65
132
# Name of the executable.
66
as_me=`$as_basename "$0" ||
133
as_me=`$as_basename -- "$0" ||
67
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
135
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
130
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
227
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
156
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
431
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
162
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
172
s,^['$as_cr_digits']*\n,,
173
454
' >$as_me.lineno &&
174
chmod +x $as_me.lineno ||
455
chmod +x "$as_me.lineno" ||
175
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
457
{ (exit 1); exit 1; }; }
178
459
# Don't try to exec as it changes $[0], causing all sort of problems
179
460
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
461
# original and so on. Autoconf is especially sensitive to this).
182
463
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
194
if expr a : '\(a\)' >/dev/null 2>&1; then
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
200
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
201
499
echo >conf$$.file
202
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
211
508
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
218
516
if mkdir -p . 2>/dev/null; then
1899
2413
IFS=$as_save_IFS
1900
2414
test -z "$as_dir" && as_dir=.
1901
2415
for ac_exec_ext in '' $ac_executable_extensions; do
1902
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1903
2417
ac_cv_prog_ac_ct_STRIP="strip"
1904
2418
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1910
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1913
2427
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1914
2428
if test -n "$ac_ct_STRIP"; then
1915
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1916
echo "${ECHO_T}$ac_ct_STRIP" >&6
2429
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2430
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
1918
echo "$as_me:$LINENO: result: no" >&5
1919
echo "${ECHO_T}no" >&6
2432
{ echo "$as_me:$LINENO: result: no" >&5
2433
echo "${ECHO_T}no" >&6; }
2436
if test "x$ac_ct_STRIP" = x; then
2439
case $cross_compiling:$ac_tool_warned in
2441
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2442
whose name does not start with the host triplet. If you think this
2443
configuration is useful to you, please write to autoconf@gnu.org." >&5
2444
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2445
whose name does not start with the host triplet. If you think this
2446
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2447
ac_tool_warned=yes ;;
1924
2452
STRIP="$ac_cv_prog_STRIP"
1928
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2456
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1930
2458
# We need awk for the "check" target. The system "awk" is bad on
1931
2459
# some platforms.
1935
echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1936
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1937
# Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1938
if test "${enable_maintainer_mode+set}" = set; then
1939
enableval="$enable_maintainer_mode"
1940
USE_MAINTAINER_MODE=$enableval
1942
USE_MAINTAINER_MODE=no
1944
echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1945
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1948
if test $USE_MAINTAINER_MODE = yes; then
1949
MAINTAINER_MODE_TRUE=
1950
MAINTAINER_MODE_FALSE='#'
1952
MAINTAINER_MODE_TRUE='#'
1953
MAINTAINER_MODE_FALSE=
1956
MAINT=$MAINTAINER_MODE_TRUE
1960
# Check whether --enable-shared or --disable-shared was given.
1961
if test "${enable_shared+set}" = set; then
1962
enableval="$enable_shared"
1963
p=${PACKAGE-default}
1965
yes) enable_shared=yes ;;
1966
no) enable_shared=no ;;
1969
# Look at the argument we got. We use all the common list separators.
1970
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1971
for pkg in $enableval; do
1973
if test "X$pkg" = "X$p"; then
1984
# Check whether --enable-static or --disable-static was given.
1985
if test "${enable_static+set}" = set; then
1986
enableval="$enable_static"
1987
p=${PACKAGE-default}
1989
yes) enable_static=yes ;;
1990
no) enable_static=no ;;
1993
# Look at the argument we got. We use all the common list separators.
1994
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
1995
for pkg in $enableval; do
1997
if test "X$pkg" = "X$p"; then
2008
# Check whether --enable-fast-install or --disable-fast-install was given.
2009
if test "${enable_fast_install+set}" = set; then
2010
enableval="$enable_fast_install"
2011
p=${PACKAGE-default}
2013
yes) enable_fast_install=yes ;;
2014
no) enable_fast_install=no ;;
2016
enable_fast_install=no
2017
# Look at the argument we got. We use all the common list separators.
2018
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2019
for pkg in $enableval; do
2021
if test "X$pkg" = "X$p"; then
2022
enable_fast_install=yes
2029
enable_fast_install=yes
2032
# Make sure we can run config.sub.
2033
$ac_config_sub sun4 >/dev/null 2>&1 ||
2034
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2035
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2036
{ (exit 1); exit 1; }; }
2038
echo "$as_me:$LINENO: checking build system type" >&5
2039
echo $ECHO_N "checking build system type... $ECHO_C" >&6
2040
if test "${ac_cv_build+set}" = set; then
2041
echo $ECHO_N "(cached) $ECHO_C" >&6
2043
ac_cv_build_alias=$build_alias
2044
test -z "$ac_cv_build_alias" &&
2045
ac_cv_build_alias=`$ac_config_guess`
2046
test -z "$ac_cv_build_alias" &&
2047
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2048
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2049
{ (exit 1); exit 1; }; }
2050
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2051
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2052
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2053
{ (exit 1); exit 1; }; }
2056
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2057
echo "${ECHO_T}$ac_cv_build" >&6
2059
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2060
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2061
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2064
echo "$as_me:$LINENO: checking host system type" >&5
2065
echo $ECHO_N "checking host system type... $ECHO_C" >&6
2066
if test "${ac_cv_host+set}" = set; then
2067
echo $ECHO_N "(cached) $ECHO_C" >&6
2069
ac_cv_host_alias=$host_alias
2070
test -z "$ac_cv_host_alias" &&
2071
ac_cv_host_alias=$ac_cv_build_alias
2072
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2073
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2074
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2075
{ (exit 1); exit 1; }; }
2078
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2079
echo "${ECHO_T}$ac_cv_host" >&6
2081
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2082
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2083
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2086
DEPDIR="${am__leading_dot}deps"
2088
ac_config_commands="$ac_config_commands depfiles"
2091
am_make=${MAKE-make}
2092
cat > confinc << 'END'
2097
# If we don't find an include directive, just comment out the code.
2098
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2099
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2103
# First try GNU make style include.
2104
echo "include confinc" > confmf
2105
# We grep out `Entering directory' and `Leaving directory'
2106
# messages which can occur if `w' ends up in MAKEFLAGS.
2107
# In particular we don't look at `^make:' because GNU make might
2108
# be invoked under some other name (usually "gmake"), in which
2109
# case it prints its new name instead of `make'.
2110
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2115
# Now try BSD make style include.
2116
if test "$am__include" = "#"; then
2117
echo '.include "confinc"' > confmf
2118
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2119
am__include=.include
2126
echo "$as_me:$LINENO: result: $_am_result" >&5
2127
echo "${ECHO_T}$_am_result" >&6
2128
rm -f confinc confmf
2130
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2131
if test "${enable_dependency_tracking+set}" = set; then
2132
enableval="$enable_dependency_tracking"
2135
if test "x$enable_dependency_tracking" != xno; then
2136
am_depcomp="$ac_aux_dir/depcomp"
2141
if test "x$enable_dependency_tracking" != xno; then
2460
# Always define AMTAR for backward compatibility.
2462
AMTAR=${AMTAR-"${am_missing_run}tar"}
2464
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2471
if test ! -d "$srcdir/m4m"; then
2472
{ { echo "$as_me:$LINENO: error:
2473
You are missing the m4m/ directory in your top
2474
$PACKAGE_TARNAME source directory.
2476
You are probably using an ill-maintained CVS tree.
2482
and re-running autogen.sh might help.
2484
echo "$as_me: error:
2485
You are missing the m4m/ directory in your top
2486
$PACKAGE_TARNAME source directory.
2488
You are probably using an ill-maintained CVS tree.
2494
and re-running autogen.sh might help.
2496
{ (exit 1); exit 1; }; }
2500
# make sure "cd" doesn't print anything on stdout
2501
if test x"${CDPATH+set}" = xset
2507
# make sure $() command substitution works
2508
{ echo "$as_me:$LINENO: checking for POSIX sh \$() command substitution" >&5
2509
echo $ECHO_N "checking for POSIX sh \$() command substitution... $ECHO_C" >&6; }
2510
if test "x$(pwd)" = "x`pwd`" && test "y$(echo "foobar")" = "y`echo foobar`" # ''''
2512
{ echo "$as_me:$LINENO: result: yes" >&5
2513
echo "${ECHO_T}yes" >&6; }
2515
{ echo "$as_me:$LINENO: result: no" >&5
2516
echo "${ECHO_T}no" >&6; }
2517
uname=`uname 2>&1` # ''
2518
uname_a=`uname -a 2>&1` # ''
2519
{ { echo "$as_me:$LINENO: error:
2521
* POSIX sh \$() command substition does not work with this shell.
2523
* You are running a very rare species of shell. Please report this
2524
* sighting to <${PACKAGE_BUGREPORT}>:
2527
* uname-a=${uname_a}
2528
* Please also include your OS and version.
2530
* Run this configure script using a better (i.e. POSIX compliant) shell.
2532
echo "$as_me: error:
2534
* POSIX sh \$() command substition does not work with this shell.
2536
* You are running a very rare species of shell. Please report this
2537
* sighting to <${PACKAGE_BUGREPORT}>:
2540
* uname-a=${uname_a}
2541
* Please also include your OS and version.
2543
* Run this configure script using a better (i.e. POSIX compliant) shell.
2545
{ (exit 1); exit 1; }; }
2552
gp_config_len3="$(expr "$gp_config_len" - 3)"
2554
while test "$n" -gt 0; do
2555
gp_config_empty="${gp_config_empty} "
2556
n="$(expr "$n" - 1)"
2559
Configuration (${PACKAGE_TARNAME} ${PACKAGE_VERSION}):
2563
gp_config_msg="${gp_config_msg}
2568
gp_config_msg_len="$(expr "Source code location" : '.*')"
2569
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
2570
gp_config_msg_lhs="$(expr "Source code location" : "\(.\{0,${gp_config_len3}\}\)")..:"
2572
gp_config_msg_lhs="$(expr "Source code location:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
2574
gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${srcdir}
2874
# Don't try gcc -ansi; that turns off useful extensions and
2875
# breaks some systems' header files.
2876
# AIX -qlanglvl=ansi
2877
# Ultrix and OSF/1 -std1
2878
# HP-UX 10.20 and later -Ae
2879
# HP-UX older versions -Aa -D_HPUX_SOURCE
2880
# SVR4 -Xc -D__EXTENSIONS__
2881
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3440
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3441
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2883
3443
CC="$ac_save_CC $ac_arg"
2884
3444
rm -f conftest.$ac_objext
2885
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2886
(eval $ac_compile) 2>conftest.er1
3445
if { (ac_try="$ac_compile"
3447
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3448
*) ac_try_echo=$ac_try;;
3450
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3451
(eval "$ac_compile") 2>conftest.er1
2888
3453
grep -v '^ *+' conftest.er1 >conftest.err
2889
3454
rm -f conftest.er1
2890
3455
cat conftest.err >&5
2891
3456
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892
(exit $ac_status); } &&
2893
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2894
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898
(exit $ac_status); }; } &&
2899
{ ac_try='test -s conftest.$ac_objext'
2900
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2903
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2904
(exit $ac_status); }; }; then
2905
ac_cv_prog_cc_stdc=$ac_arg
3457
(exit $ac_status); } && {
3458
test -z "$ac_c_werror_flag" ||
3459
test ! -s conftest.err
3460
} && test -s conftest.$ac_objext; then
3461
ac_cv_prog_cc_c89=$ac_arg
2908
3463
echo "$as_me: failed program was:" >&5
2909
3464
sed 's/^/| /' conftest.$ac_ext >&5
2912
rm -f conftest.err conftest.$ac_objext
3469
rm -f core conftest.err conftest.$ac_objext
3470
test "x$ac_cv_prog_cc_c89" != "xno" && break
2914
rm -f conftest.$ac_ext conftest.$ac_objext
3472
rm -f conftest.$ac_ext
2919
case "x$ac_cv_prog_cc_stdc" in
2921
echo "$as_me:$LINENO: result: none needed" >&5
2922
echo "${ECHO_T}none needed" >&6 ;;
3477
case "x$ac_cv_prog_cc_c89" in
3479
{ echo "$as_me:$LINENO: result: none needed" >&5
3480
echo "${ECHO_T}none needed" >&6; } ;;
3482
{ echo "$as_me:$LINENO: result: unsupported" >&5
3483
echo "${ECHO_T}unsupported" >&6; } ;;
2924
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2925
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2926
CC="$CC $ac_cv_prog_cc_stdc" ;;
3485
CC="$CC $ac_cv_prog_cc_c89"
3486
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3487
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2929
# Some people use a C++ compiler to compile C. Since we use `exit',
2930
# in C++ we need to declare it. In case someone uses the same compiler
2931
# for both compiling C and C++ we need to have the C++ compiler decide
2932
# the declaration of exit, since it's the most demanding environment.
2933
cat >conftest.$ac_ext <<_ACEOF
2938
rm -f conftest.$ac_objext
2939
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2940
(eval $ac_compile) 2>conftest.er1
2942
grep -v '^ *+' conftest.er1 >conftest.err
2944
cat conftest.err >&5
2945
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946
(exit $ac_status); } &&
2947
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2948
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2951
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952
(exit $ac_status); }; } &&
2953
{ ac_try='test -s conftest.$ac_objext'
2954
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2957
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958
(exit $ac_status); }; }; then
2959
for ac_declaration in \
2961
'extern "C" void std::exit (int) throw (); using std::exit;' \
2962
'extern "C" void std::exit (int); using std::exit;' \
2963
'extern "C" void exit (int) throw ();' \
2964
'extern "C" void exit (int);' \
2967
cat >conftest.$ac_ext <<_ACEOF
2970
cat confdefs.h >>conftest.$ac_ext
2971
cat >>conftest.$ac_ext <<_ACEOF
2972
/* end confdefs.h. */
2983
rm -f conftest.$ac_objext
2984
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985
(eval $ac_compile) 2>conftest.er1
2987
grep -v '^ *+' conftest.er1 >conftest.err
2989
cat conftest.err >&5
2990
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2991
(exit $ac_status); } &&
2992
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2993
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2996
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2997
(exit $ac_status); }; } &&
2998
{ ac_try='test -s conftest.$ac_objext'
2999
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3002
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003
(exit $ac_status); }; }; then
3006
echo "$as_me: failed program was:" >&5
3007
sed 's/^/| /' conftest.$ac_ext >&5
3011
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3012
cat >conftest.$ac_ext <<_ACEOF
3015
cat confdefs.h >>conftest.$ac_ext
3016
cat >>conftest.$ac_ext <<_ACEOF
3017
/* end confdefs.h. */
3027
rm -f conftest.$ac_objext
3028
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3029
(eval $ac_compile) 2>conftest.er1
3031
grep -v '^ *+' conftest.er1 >conftest.err
3033
cat conftest.err >&5
3034
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035
(exit $ac_status); } &&
3036
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3037
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041
(exit $ac_status); }; } &&
3042
{ ac_try='test -s conftest.$ac_objext'
3043
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047
(exit $ac_status); }; }; then
3050
echo "$as_me: failed program was:" >&5
3051
sed 's/^/| /' conftest.$ac_ext >&5
3054
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3057
if test -n "$ac_declaration"; then
3058
echo '#ifdef __cplusplus' >>confdefs.h
3059
echo $ac_declaration >>confdefs.h
3060
echo '#endif' >>confdefs.h
3064
echo "$as_me: failed program was:" >&5
3065
sed 's/^/| /' conftest.$ac_ext >&5
3068
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3070
3492
ac_cpp='$CPP $CPPFLAGS'
3071
3493
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072
3494
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073
3495
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496
DEPDIR="${am__leading_dot}deps"
3498
ac_config_commands="$ac_config_commands depfiles"
3501
am_make=${MAKE-make}
3502
cat > confinc << 'END'
3507
# If we don't find an include directive, just comment out the code.
3508
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3509
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3513
# First try GNU make style include.
3514
echo "include confinc" > confmf
3515
# We grep out `Entering directory' and `Leaving directory'
3516
# messages which can occur if `w' ends up in MAKEFLAGS.
3517
# In particular we don't look at `^make:' because GNU make might
3518
# be invoked under some other name (usually "gmake"), in which
3519
# case it prints its new name instead of `make'.
3520
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3525
# Now try BSD make style include.
3526
if test "$am__include" = "#"; then
3527
echo '.include "confinc"' > confmf
3528
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3529
am__include=.include
3536
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3537
echo "${ECHO_T}$_am_result" >&6; }
3538
rm -f confinc confmf
3540
# Check whether --enable-dependency-tracking was given.
3541
if test "${enable_dependency_tracking+set}" = set; then
3542
enableval=$enable_dependency_tracking;
3545
if test "x$enable_dependency_tracking" != xno; then
3546
am_depcomp="$ac_aux_dir/depcomp"
3549
if test "x$enable_dependency_tracking" != xno; then
3075
3559
depcc="$CC" am_compiler_list=
3077
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3078
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3561
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3562
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3079
3563
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3080
3564
echo $ECHO_N "(cached) $ECHO_C" >&6
11784
13342
enable_fast_install=needless
11789
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11790
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11791
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11792
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11793
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11794
echo "$as_me:$LINENO: result: yes" >&5
11795
echo "${ECHO_T}yes" >&6
11797
# FIXME - insert some real tests, host_os isn't really good enough
11800
if test -n "$STRIP" ; then
11801
striplib="$STRIP -x"
11802
echo "$as_me:$LINENO: result: yes" >&5
11803
echo "${ECHO_T}yes" >&6
11805
echo "$as_me:$LINENO: result: no" >&5
11806
echo "${ECHO_T}no" >&6
11810
echo "$as_me:$LINENO: result: no" >&5
11811
echo "${ECHO_T}no" >&6
11816
if test "x$enable_dlopen" != xyes; then
11817
enable_dlopen=unknown
11818
enable_dlopen_self=unknown
11819
enable_dlopen_self_static=unknown
11826
lt_cv_dlopen="load_add_on"
11828
lt_cv_dlopen_self=yes
11832
lt_cv_dlopen="LoadLibrary"
11837
lt_cv_dlopen="dlopen"
11842
# if libdl is installed we need to link against it
11843
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11844
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11845
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11846
echo $ECHO_N "(cached) $ECHO_C" >&6
11848
ac_check_lib_save_LIBS=$LIBS
11850
cat >conftest.$ac_ext <<_ACEOF
11853
cat confdefs.h >>conftest.$ac_ext
11854
cat >>conftest.$ac_ext <<_ACEOF
11855
/* end confdefs.h. */
11857
/* Override any gcc2 internal prototype to avoid an error. */
11861
/* We use char because int might match the return type of a gcc2
11862
builtin and then its argument prototype would still apply. */
11872
rm -f conftest.$ac_objext conftest$ac_exeext
11873
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11874
(eval $ac_link) 2>conftest.er1
11876
grep -v '^ *+' conftest.er1 >conftest.err
11878
cat conftest.err >&5
11879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880
(exit $ac_status); } &&
11881
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11882
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11883
(eval $ac_try) 2>&5
11885
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11886
(exit $ac_status); }; } &&
11887
{ ac_try='test -s conftest$ac_exeext'
11888
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11889
(eval $ac_try) 2>&5
11891
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892
(exit $ac_status); }; }; then
11893
ac_cv_lib_dl_dlopen=yes
11895
echo "$as_me: failed program was:" >&5
11896
sed 's/^/| /' conftest.$ac_ext >&5
11898
ac_cv_lib_dl_dlopen=no
11900
rm -f conftest.err conftest.$ac_objext \
11901
conftest$ac_exeext conftest.$ac_ext
11902
LIBS=$ac_check_lib_save_LIBS
11904
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11905
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11906
if test $ac_cv_lib_dl_dlopen = yes; then
11907
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11910
lt_cv_dlopen="dyld"
11912
lt_cv_dlopen_self=yes
11919
echo "$as_me:$LINENO: checking for shl_load" >&5
11920
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11921
if test "${ac_cv_func_shl_load+set}" = set; then
11922
echo $ECHO_N "(cached) $ECHO_C" >&6
11924
cat >conftest.$ac_ext <<_ACEOF
11927
cat confdefs.h >>conftest.$ac_ext
11928
cat >>conftest.$ac_ext <<_ACEOF
11929
/* end confdefs.h. */
11930
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11931
For example, HP-UX 11i <limits.h> declares gettimeofday. */
11932
#define shl_load innocuous_shl_load
11934
/* System header to define __stub macros and hopefully few prototypes,
11935
which can conflict with char shl_load (); below.
11936
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11937
<limits.h> exists even on freestanding compilers. */
11940
# include <limits.h>
11942
# include <assert.h>
11947
/* Override any gcc2 internal prototype to avoid an error. */
11952
/* We use char because int might match the return type of a gcc2
11953
builtin and then its argument prototype would still apply. */
11955
/* The GNU C library defines this for functions which it implements
11956
to always fail with ENOSYS. Some functions are actually named
11957
something starting with __ and the normal name is an alias. */
11958
#if defined (__stub_shl_load) || defined (__stub___shl_load)
11961
char (*f) () = shl_load;
11970
return f != shl_load;
11975
rm -f conftest.$ac_objext conftest$ac_exeext
11976
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11977
(eval $ac_link) 2>conftest.er1
11979
grep -v '^ *+' conftest.er1 >conftest.err
11981
cat conftest.err >&5
11982
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983
(exit $ac_status); } &&
11984
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11985
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11986
(eval $ac_try) 2>&5
11988
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989
(exit $ac_status); }; } &&
11990
{ ac_try='test -s conftest$ac_exeext'
11991
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992
(eval $ac_try) 2>&5
11994
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995
(exit $ac_status); }; }; then
11996
ac_cv_func_shl_load=yes
11998
echo "$as_me: failed program was:" >&5
11999
sed 's/^/| /' conftest.$ac_ext >&5
12001
ac_cv_func_shl_load=no
12003
rm -f conftest.err conftest.$ac_objext \
12004
conftest$ac_exeext conftest.$ac_ext
12006
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12007
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12008
if test $ac_cv_func_shl_load = yes; then
12009
lt_cv_dlopen="shl_load"
12011
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12012
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12013
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12014
echo $ECHO_N "(cached) $ECHO_C" >&6
12016
ac_check_lib_save_LIBS=$LIBS
12018
cat >conftest.$ac_ext <<_ACEOF
12021
cat confdefs.h >>conftest.$ac_ext
12022
cat >>conftest.$ac_ext <<_ACEOF
12023
/* end confdefs.h. */
12025
/* Override any gcc2 internal prototype to avoid an error. */
12029
/* We use char because int might match the return type of a gcc2
12030
builtin and then its argument prototype would still apply. */
12040
rm -f conftest.$ac_objext conftest$ac_exeext
12041
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12042
(eval $ac_link) 2>conftest.er1
12044
grep -v '^ *+' conftest.er1 >conftest.err
12046
cat conftest.err >&5
12047
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12048
(exit $ac_status); } &&
12049
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12050
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12051
(eval $ac_try) 2>&5
12053
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054
(exit $ac_status); }; } &&
12055
{ ac_try='test -s conftest$ac_exeext'
12056
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057
(eval $ac_try) 2>&5
12059
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060
(exit $ac_status); }; }; then
12061
ac_cv_lib_dld_shl_load=yes
12063
echo "$as_me: failed program was:" >&5
12064
sed 's/^/| /' conftest.$ac_ext >&5
12066
ac_cv_lib_dld_shl_load=no
12068
rm -f conftest.err conftest.$ac_objext \
12069
conftest$ac_exeext conftest.$ac_ext
12070
LIBS=$ac_check_lib_save_LIBS
12072
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12073
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12074
if test $ac_cv_lib_dld_shl_load = yes; then
12075
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12077
echo "$as_me:$LINENO: checking for dlopen" >&5
12078
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12079
if test "${ac_cv_func_dlopen+set}" = set; then
12080
echo $ECHO_N "(cached) $ECHO_C" >&6
12082
cat >conftest.$ac_ext <<_ACEOF
12085
cat confdefs.h >>conftest.$ac_ext
12086
cat >>conftest.$ac_ext <<_ACEOF
12087
/* end confdefs.h. */
12088
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12089
For example, HP-UX 11i <limits.h> declares gettimeofday. */
12090
#define dlopen innocuous_dlopen
12092
/* System header to define __stub macros and hopefully few prototypes,
12093
which can conflict with char dlopen (); below.
12094
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12095
<limits.h> exists even on freestanding compilers. */
12098
# include <limits.h>
12100
# include <assert.h>
12105
/* Override any gcc2 internal prototype to avoid an error. */
12110
/* We use char because int might match the return type of a gcc2
12111
builtin and then its argument prototype would still apply. */
12113
/* The GNU C library defines this for functions which it implements
12114
to always fail with ENOSYS. Some functions are actually named
12115
something starting with __ and the normal name is an alias. */
12116
#if defined (__stub_dlopen) || defined (__stub___dlopen)
12119
char (*f) () = dlopen;
12128
return f != dlopen;
12133
rm -f conftest.$ac_objext conftest$ac_exeext
12134
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12135
(eval $ac_link) 2>conftest.er1
12137
grep -v '^ *+' conftest.er1 >conftest.err
12139
cat conftest.err >&5
12140
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141
(exit $ac_status); } &&
12142
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12143
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12144
(eval $ac_try) 2>&5
12146
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147
(exit $ac_status); }; } &&
12148
{ ac_try='test -s conftest$ac_exeext'
12149
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12150
(eval $ac_try) 2>&5
12152
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12153
(exit $ac_status); }; }; then
12154
ac_cv_func_dlopen=yes
12156
echo "$as_me: failed program was:" >&5
12157
sed 's/^/| /' conftest.$ac_ext >&5
12159
ac_cv_func_dlopen=no
12161
rm -f conftest.err conftest.$ac_objext \
12162
conftest$ac_exeext conftest.$ac_ext
12164
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12165
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12166
if test $ac_cv_func_dlopen = yes; then
12167
lt_cv_dlopen="dlopen"
12169
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12170
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12171
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12172
echo $ECHO_N "(cached) $ECHO_C" >&6
12174
ac_check_lib_save_LIBS=$LIBS
12176
cat >conftest.$ac_ext <<_ACEOF
12179
cat confdefs.h >>conftest.$ac_ext
12180
cat >>conftest.$ac_ext <<_ACEOF
12181
/* end confdefs.h. */
12183
/* Override any gcc2 internal prototype to avoid an error. */
12187
/* We use char because int might match the return type of a gcc2
12188
builtin and then its argument prototype would still apply. */
12198
rm -f conftest.$ac_objext conftest$ac_exeext
12199
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12200
(eval $ac_link) 2>conftest.er1
12202
grep -v '^ *+' conftest.er1 >conftest.err
12204
cat conftest.err >&5
12205
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12206
(exit $ac_status); } &&
12207
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12208
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12209
(eval $ac_try) 2>&5
12211
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212
(exit $ac_status); }; } &&
12213
{ ac_try='test -s conftest$ac_exeext'
12214
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12215
(eval $ac_try) 2>&5
12217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218
(exit $ac_status); }; }; then
12219
ac_cv_lib_dl_dlopen=yes
12221
echo "$as_me: failed program was:" >&5
12222
sed 's/^/| /' conftest.$ac_ext >&5
12224
ac_cv_lib_dl_dlopen=no
12226
rm -f conftest.err conftest.$ac_objext \
12227
conftest$ac_exeext conftest.$ac_ext
12228
LIBS=$ac_check_lib_save_LIBS
12230
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12231
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12232
if test $ac_cv_lib_dl_dlopen = yes; then
12233
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12235
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12236
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12237
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12238
echo $ECHO_N "(cached) $ECHO_C" >&6
12240
ac_check_lib_save_LIBS=$LIBS
12241
LIBS="-lsvld $LIBS"
12242
cat >conftest.$ac_ext <<_ACEOF
12245
cat confdefs.h >>conftest.$ac_ext
12246
cat >>conftest.$ac_ext <<_ACEOF
12247
/* end confdefs.h. */
12249
/* Override any gcc2 internal prototype to avoid an error. */
12253
/* We use char because int might match the return type of a gcc2
12254
builtin and then its argument prototype would still apply. */
12264
rm -f conftest.$ac_objext conftest$ac_exeext
12265
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12266
(eval $ac_link) 2>conftest.er1
12268
grep -v '^ *+' conftest.er1 >conftest.err
12270
cat conftest.err >&5
12271
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12272
(exit $ac_status); } &&
12273
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12274
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12275
(eval $ac_try) 2>&5
12277
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278
(exit $ac_status); }; } &&
12279
{ ac_try='test -s conftest$ac_exeext'
12280
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281
(eval $ac_try) 2>&5
12283
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284
(exit $ac_status); }; }; then
12285
ac_cv_lib_svld_dlopen=yes
12287
echo "$as_me: failed program was:" >&5
12288
sed 's/^/| /' conftest.$ac_ext >&5
12290
ac_cv_lib_svld_dlopen=no
12292
rm -f conftest.err conftest.$ac_objext \
12293
conftest$ac_exeext conftest.$ac_ext
12294
LIBS=$ac_check_lib_save_LIBS
12296
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12297
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12298
if test $ac_cv_lib_svld_dlopen = yes; then
12299
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12301
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12302
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12303
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12304
echo $ECHO_N "(cached) $ECHO_C" >&6
12306
ac_check_lib_save_LIBS=$LIBS
12308
cat >conftest.$ac_ext <<_ACEOF
12311
cat confdefs.h >>conftest.$ac_ext
12312
cat >>conftest.$ac_ext <<_ACEOF
12313
/* end confdefs.h. */
12315
/* Override any gcc2 internal prototype to avoid an error. */
12319
/* We use char because int might match the return type of a gcc2
12320
builtin and then its argument prototype would still apply. */
12330
rm -f conftest.$ac_objext conftest$ac_exeext
12331
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12332
(eval $ac_link) 2>conftest.er1
12334
grep -v '^ *+' conftest.er1 >conftest.err
12336
cat conftest.err >&5
12337
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338
(exit $ac_status); } &&
12339
{ ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12340
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12341
(eval $ac_try) 2>&5
12343
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344
(exit $ac_status); }; } &&
12345
{ ac_try='test -s conftest$ac_exeext'
12346
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12347
(eval $ac_try) 2>&5
12349
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350
(exit $ac_status); }; }; then
12351
ac_cv_lib_dld_dld_link=yes
12353
echo "$as_me: failed program was:" >&5
12354
sed 's/^/| /' conftest.$ac_ext >&5
12356
ac_cv_lib_dld_dld_link=no
12358
rm -f conftest.err conftest.$ac_objext \
12359
conftest$ac_exeext conftest.$ac_ext
12360
LIBS=$ac_check_lib_save_LIBS
12362
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12363
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12364
if test $ac_cv_lib_dld_dld_link = yes; then
12365
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12386
if test "x$lt_cv_dlopen" != xno; then
12392
case $lt_cv_dlopen in
12394
save_CPPFLAGS="$CPPFLAGS"
12395
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12397
save_LDFLAGS="$LDFLAGS"
12398
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12401
LIBS="$lt_cv_dlopen_libs $LIBS"
12403
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12404
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12405
if test "${lt_cv_dlopen_self+set}" = set; then
12406
echo $ECHO_N "(cached) $ECHO_C" >&6
12408
if test "$cross_compiling" = yes; then :
12409
lt_cv_dlopen_self=cross
12411
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12412
lt_status=$lt_dlunknown
12413
cat > conftest.$ac_ext <<EOF
12414
#line 12414 "configure"
12415
#include "confdefs.h"
12424
# define LT_DLGLOBAL RTLD_GLOBAL
12427
# define LT_DLGLOBAL DL_GLOBAL
12429
# define LT_DLGLOBAL 0
12433
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12434
find out it does not work in some platform. */
12435
#ifndef LT_DLLAZY_OR_NOW
12437
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12440
# define LT_DLLAZY_OR_NOW DL_LAZY
12443
# define LT_DLLAZY_OR_NOW RTLD_NOW
12446
# define LT_DLLAZY_OR_NOW DL_NOW
12448
# define LT_DLLAZY_OR_NOW 0
12456
extern "C" void exit (int);
12459
void fnord() { int i=42;}
12462
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12463
int status = $lt_dlunknown;
12467
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12468
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12469
/* dlclose (self); */
12475
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12476
(eval $ac_link) 2>&5
12478
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12479
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12480
(./conftest; exit; ) 2>/dev/null
12482
case x$lt_status in
12483
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12484
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12485
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12488
# compilation failed
12489
lt_cv_dlopen_self=no
12496
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12497
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12499
if test "x$lt_cv_dlopen_self" = xyes; then
12500
LDFLAGS="$LDFLAGS $link_static_flag"
12501
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12502
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12503
if test "${lt_cv_dlopen_self_static+set}" = set; then
12504
echo $ECHO_N "(cached) $ECHO_C" >&6
12506
if test "$cross_compiling" = yes; then :
12507
lt_cv_dlopen_self_static=cross
12509
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12510
lt_status=$lt_dlunknown
12511
cat > conftest.$ac_ext <<EOF
12512
#line 12512 "configure"
12513
#include "confdefs.h"
12522
# define LT_DLGLOBAL RTLD_GLOBAL
12525
# define LT_DLGLOBAL DL_GLOBAL
12527
# define LT_DLGLOBAL 0
12531
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12532
find out it does not work in some platform. */
12533
#ifndef LT_DLLAZY_OR_NOW
12535
# define LT_DLLAZY_OR_NOW RTLD_LAZY
12538
# define LT_DLLAZY_OR_NOW DL_LAZY
12541
# define LT_DLLAZY_OR_NOW RTLD_NOW
12544
# define LT_DLLAZY_OR_NOW DL_NOW
12546
# define LT_DLLAZY_OR_NOW 0
12554
extern "C" void exit (int);
12557
void fnord() { int i=42;}
12560
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12561
int status = $lt_dlunknown;
12565
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12566
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12567
/* dlclose (self); */
12573
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12574
(eval $ac_link) 2>&5
12576
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12578
(./conftest; exit; ) 2>/dev/null
12580
case x$lt_status in
12581
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12582
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12583
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12586
# compilation failed
12587
lt_cv_dlopen_self_static=no
12594
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12595
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12598
CPPFLAGS="$save_CPPFLAGS"
12599
LDFLAGS="$save_LDFLAGS"
12604
case $lt_cv_dlopen_self in
12605
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12606
*) enable_dlopen_self=unknown ;;
12609
case $lt_cv_dlopen_self_static in
12610
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12611
*) enable_dlopen_self_static=unknown ;;
12616
13346
# The else clause should only fire when bootstrapping the
12617
13347
# libtool distribution, otherwise you forgot to ship ltmain.sh
17271
18563
enable_fast_install=needless
17276
echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17277
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17278
if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17279
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17280
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17281
echo "$as_me:$LINENO: result: yes" >&5
17282
echo "${ECHO_T}yes" >&6
17284
# FIXME - insert some real tests, host_os isn't really good enough
17287
if test -n "$STRIP" ; then
17288
striplib="$STRIP -x"
17289
echo "$as_me:$LINENO: result: yes" >&5
17290
echo "${ECHO_T}yes" >&6
17292
echo "$as_me:$LINENO: result: no" >&5
17293
echo "${ECHO_T}no" >&6
17297
echo "$as_me:$LINENO: result: no" >&5
17298
echo "${ECHO_T}no" >&6
17303
if test "x$enable_dlopen" != xyes; then
17304
enable_dlopen=unknown
17305
enable_dlopen_self=unknown
17306
enable_dlopen_self_static=unknown
17313
lt_cv_dlopen="load_add_on"
17315
lt_cv_dlopen_self=yes
17319
lt_cv_dlopen="LoadLibrary"
17324
lt_cv_dlopen="dlopen"
17329
# if libdl is installed we need to link against it
17330
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17331
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17332
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17333
echo $ECHO_N "(cached) $ECHO_C" >&6
17335
ac_check_lib_save_LIBS=$LIBS
17337
cat >conftest.$ac_ext <<_ACEOF
17340
cat confdefs.h >>conftest.$ac_ext
17341
cat >>conftest.$ac_ext <<_ACEOF
17342
/* end confdefs.h. */
17344
/* Override any gcc2 internal prototype to avoid an error. */
17348
/* We use char because int might match the return type of a gcc2
17349
builtin and then its argument prototype would still apply. */
17359
rm -f conftest.$ac_objext conftest$ac_exeext
17360
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17361
(eval $ac_link) 2>conftest.er1
17363
grep -v '^ *+' conftest.er1 >conftest.err
17365
cat conftest.err >&5
17366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17367
(exit $ac_status); } &&
17368
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17370
(eval $ac_try) 2>&5
17372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17373
(exit $ac_status); }; } &&
17374
{ ac_try='test -s conftest$ac_exeext'
17375
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17376
(eval $ac_try) 2>&5
17378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17379
(exit $ac_status); }; }; then
17380
ac_cv_lib_dl_dlopen=yes
17382
echo "$as_me: failed program was:" >&5
17383
sed 's/^/| /' conftest.$ac_ext >&5
17385
ac_cv_lib_dl_dlopen=no
17387
rm -f conftest.err conftest.$ac_objext \
17388
conftest$ac_exeext conftest.$ac_ext
17389
LIBS=$ac_check_lib_save_LIBS
17391
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17392
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17393
if test $ac_cv_lib_dl_dlopen = yes; then
17394
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17397
lt_cv_dlopen="dyld"
17399
lt_cv_dlopen_self=yes
17406
echo "$as_me:$LINENO: checking for shl_load" >&5
17407
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17408
if test "${ac_cv_func_shl_load+set}" = set; then
17409
echo $ECHO_N "(cached) $ECHO_C" >&6
17411
cat >conftest.$ac_ext <<_ACEOF
17414
cat confdefs.h >>conftest.$ac_ext
17415
cat >>conftest.$ac_ext <<_ACEOF
17416
/* end confdefs.h. */
17417
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17418
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17419
#define shl_load innocuous_shl_load
17421
/* System header to define __stub macros and hopefully few prototypes,
17422
which can conflict with char shl_load (); below.
17423
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17424
<limits.h> exists even on freestanding compilers. */
17427
# include <limits.h>
17429
# include <assert.h>
17434
/* Override any gcc2 internal prototype to avoid an error. */
17439
/* We use char because int might match the return type of a gcc2
17440
builtin and then its argument prototype would still apply. */
17442
/* The GNU C library defines this for functions which it implements
17443
to always fail with ENOSYS. Some functions are actually named
17444
something starting with __ and the normal name is an alias. */
17445
#if defined (__stub_shl_load) || defined (__stub___shl_load)
17448
char (*f) () = shl_load;
17457
return f != shl_load;
17462
rm -f conftest.$ac_objext conftest$ac_exeext
17463
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464
(eval $ac_link) 2>conftest.er1
17466
grep -v '^ *+' conftest.er1 >conftest.err
17468
cat conftest.err >&5
17469
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470
(exit $ac_status); } &&
17471
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473
(eval $ac_try) 2>&5
17475
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476
(exit $ac_status); }; } &&
17477
{ ac_try='test -s conftest$ac_exeext'
17478
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479
(eval $ac_try) 2>&5
17481
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482
(exit $ac_status); }; }; then
17483
ac_cv_func_shl_load=yes
17485
echo "$as_me: failed program was:" >&5
17486
sed 's/^/| /' conftest.$ac_ext >&5
17488
ac_cv_func_shl_load=no
17490
rm -f conftest.err conftest.$ac_objext \
17491
conftest$ac_exeext conftest.$ac_ext
17493
echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17494
echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17495
if test $ac_cv_func_shl_load = yes; then
17496
lt_cv_dlopen="shl_load"
17498
echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17499
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17500
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17501
echo $ECHO_N "(cached) $ECHO_C" >&6
17503
ac_check_lib_save_LIBS=$LIBS
17505
cat >conftest.$ac_ext <<_ACEOF
17508
cat confdefs.h >>conftest.$ac_ext
17509
cat >>conftest.$ac_ext <<_ACEOF
17510
/* end confdefs.h. */
17512
/* Override any gcc2 internal prototype to avoid an error. */
17516
/* We use char because int might match the return type of a gcc2
17517
builtin and then its argument prototype would still apply. */
17527
rm -f conftest.$ac_objext conftest$ac_exeext
17528
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17529
(eval $ac_link) 2>conftest.er1
17531
grep -v '^ *+' conftest.er1 >conftest.err
17533
cat conftest.err >&5
17534
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17535
(exit $ac_status); } &&
17536
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17537
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538
(eval $ac_try) 2>&5
17540
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541
(exit $ac_status); }; } &&
17542
{ ac_try='test -s conftest$ac_exeext'
17543
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17544
(eval $ac_try) 2>&5
17546
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17547
(exit $ac_status); }; }; then
17548
ac_cv_lib_dld_shl_load=yes
17550
echo "$as_me: failed program was:" >&5
17551
sed 's/^/| /' conftest.$ac_ext >&5
17553
ac_cv_lib_dld_shl_load=no
17555
rm -f conftest.err conftest.$ac_objext \
17556
conftest$ac_exeext conftest.$ac_ext
17557
LIBS=$ac_check_lib_save_LIBS
17559
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17560
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17561
if test $ac_cv_lib_dld_shl_load = yes; then
17562
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17564
echo "$as_me:$LINENO: checking for dlopen" >&5
17565
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17566
if test "${ac_cv_func_dlopen+set}" = set; then
17567
echo $ECHO_N "(cached) $ECHO_C" >&6
17569
cat >conftest.$ac_ext <<_ACEOF
17572
cat confdefs.h >>conftest.$ac_ext
17573
cat >>conftest.$ac_ext <<_ACEOF
17574
/* end confdefs.h. */
17575
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17576
For example, HP-UX 11i <limits.h> declares gettimeofday. */
17577
#define dlopen innocuous_dlopen
17579
/* System header to define __stub macros and hopefully few prototypes,
17580
which can conflict with char dlopen (); below.
17581
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17582
<limits.h> exists even on freestanding compilers. */
17585
# include <limits.h>
17587
# include <assert.h>
17592
/* Override any gcc2 internal prototype to avoid an error. */
17597
/* We use char because int might match the return type of a gcc2
17598
builtin and then its argument prototype would still apply. */
17600
/* The GNU C library defines this for functions which it implements
17601
to always fail with ENOSYS. Some functions are actually named
17602
something starting with __ and the normal name is an alias. */
17603
#if defined (__stub_dlopen) || defined (__stub___dlopen)
17606
char (*f) () = dlopen;
17615
return f != dlopen;
17620
rm -f conftest.$ac_objext conftest$ac_exeext
17621
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17622
(eval $ac_link) 2>conftest.er1
17624
grep -v '^ *+' conftest.er1 >conftest.err
17626
cat conftest.err >&5
17627
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17628
(exit $ac_status); } &&
17629
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17630
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17631
(eval $ac_try) 2>&5
17633
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634
(exit $ac_status); }; } &&
17635
{ ac_try='test -s conftest$ac_exeext'
17636
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17637
(eval $ac_try) 2>&5
17639
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640
(exit $ac_status); }; }; then
17641
ac_cv_func_dlopen=yes
17643
echo "$as_me: failed program was:" >&5
17644
sed 's/^/| /' conftest.$ac_ext >&5
17646
ac_cv_func_dlopen=no
17648
rm -f conftest.err conftest.$ac_objext \
17649
conftest$ac_exeext conftest.$ac_ext
17651
echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17652
echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17653
if test $ac_cv_func_dlopen = yes; then
17654
lt_cv_dlopen="dlopen"
17656
echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17657
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17658
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17659
echo $ECHO_N "(cached) $ECHO_C" >&6
17661
ac_check_lib_save_LIBS=$LIBS
17663
cat >conftest.$ac_ext <<_ACEOF
17666
cat confdefs.h >>conftest.$ac_ext
17667
cat >>conftest.$ac_ext <<_ACEOF
17668
/* end confdefs.h. */
17670
/* Override any gcc2 internal prototype to avoid an error. */
17674
/* We use char because int might match the return type of a gcc2
17675
builtin and then its argument prototype would still apply. */
17685
rm -f conftest.$ac_objext conftest$ac_exeext
17686
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17687
(eval $ac_link) 2>conftest.er1
17689
grep -v '^ *+' conftest.er1 >conftest.err
17691
cat conftest.err >&5
17692
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17693
(exit $ac_status); } &&
17694
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17695
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17696
(eval $ac_try) 2>&5
17698
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699
(exit $ac_status); }; } &&
17700
{ ac_try='test -s conftest$ac_exeext'
17701
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17702
(eval $ac_try) 2>&5
17704
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17705
(exit $ac_status); }; }; then
17706
ac_cv_lib_dl_dlopen=yes
17708
echo "$as_me: failed program was:" >&5
17709
sed 's/^/| /' conftest.$ac_ext >&5
17711
ac_cv_lib_dl_dlopen=no
17713
rm -f conftest.err conftest.$ac_objext \
17714
conftest$ac_exeext conftest.$ac_ext
17715
LIBS=$ac_check_lib_save_LIBS
17717
echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17718
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17719
if test $ac_cv_lib_dl_dlopen = yes; then
17720
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17722
echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17723
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17724
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17725
echo $ECHO_N "(cached) $ECHO_C" >&6
17727
ac_check_lib_save_LIBS=$LIBS
17728
LIBS="-lsvld $LIBS"
17729
cat >conftest.$ac_ext <<_ACEOF
17732
cat confdefs.h >>conftest.$ac_ext
17733
cat >>conftest.$ac_ext <<_ACEOF
17734
/* end confdefs.h. */
17736
/* Override any gcc2 internal prototype to avoid an error. */
17740
/* We use char because int might match the return type of a gcc2
17741
builtin and then its argument prototype would still apply. */
17751
rm -f conftest.$ac_objext conftest$ac_exeext
17752
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17753
(eval $ac_link) 2>conftest.er1
17755
grep -v '^ *+' conftest.er1 >conftest.err
17757
cat conftest.err >&5
17758
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17759
(exit $ac_status); } &&
17760
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17761
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762
(eval $ac_try) 2>&5
17764
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765
(exit $ac_status); }; } &&
17766
{ ac_try='test -s conftest$ac_exeext'
17767
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768
(eval $ac_try) 2>&5
17770
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771
(exit $ac_status); }; }; then
17772
ac_cv_lib_svld_dlopen=yes
17774
echo "$as_me: failed program was:" >&5
17775
sed 's/^/| /' conftest.$ac_ext >&5
17777
ac_cv_lib_svld_dlopen=no
17779
rm -f conftest.err conftest.$ac_objext \
17780
conftest$ac_exeext conftest.$ac_ext
17781
LIBS=$ac_check_lib_save_LIBS
17783
echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17784
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17785
if test $ac_cv_lib_svld_dlopen = yes; then
17786
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17788
echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17789
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17790
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17791
echo $ECHO_N "(cached) $ECHO_C" >&6
17793
ac_check_lib_save_LIBS=$LIBS
17795
cat >conftest.$ac_ext <<_ACEOF
17798
cat confdefs.h >>conftest.$ac_ext
17799
cat >>conftest.$ac_ext <<_ACEOF
17800
/* end confdefs.h. */
17802
/* Override any gcc2 internal prototype to avoid an error. */
17806
/* We use char because int might match the return type of a gcc2
17807
builtin and then its argument prototype would still apply. */
17817
rm -f conftest.$ac_objext conftest$ac_exeext
17818
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819
(eval $ac_link) 2>conftest.er1
17821
grep -v '^ *+' conftest.er1 >conftest.err
17823
cat conftest.err >&5
17824
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825
(exit $ac_status); } &&
17826
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17827
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828
(eval $ac_try) 2>&5
17830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831
(exit $ac_status); }; } &&
17832
{ ac_try='test -s conftest$ac_exeext'
17833
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17834
(eval $ac_try) 2>&5
17836
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17837
(exit $ac_status); }; }; then
17838
ac_cv_lib_dld_dld_link=yes
17840
echo "$as_me: failed program was:" >&5
17841
sed 's/^/| /' conftest.$ac_ext >&5
17843
ac_cv_lib_dld_dld_link=no
17845
rm -f conftest.err conftest.$ac_objext \
17846
conftest$ac_exeext conftest.$ac_ext
17847
LIBS=$ac_check_lib_save_LIBS
17849
echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17850
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17851
if test $ac_cv_lib_dld_dld_link = yes; then
17852
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17873
if test "x$lt_cv_dlopen" != xno; then
17879
case $lt_cv_dlopen in
17881
save_CPPFLAGS="$CPPFLAGS"
17882
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17884
save_LDFLAGS="$LDFLAGS"
17885
eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17888
LIBS="$lt_cv_dlopen_libs $LIBS"
17890
echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17891
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17892
if test "${lt_cv_dlopen_self+set}" = set; then
17893
echo $ECHO_N "(cached) $ECHO_C" >&6
17895
if test "$cross_compiling" = yes; then :
17896
lt_cv_dlopen_self=cross
17898
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17899
lt_status=$lt_dlunknown
17900
cat > conftest.$ac_ext <<EOF
17901
#line 17901 "configure"
17902
#include "confdefs.h"
17911
# define LT_DLGLOBAL RTLD_GLOBAL
17914
# define LT_DLGLOBAL DL_GLOBAL
17916
# define LT_DLGLOBAL 0
17920
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17921
find out it does not work in some platform. */
17922
#ifndef LT_DLLAZY_OR_NOW
17924
# define LT_DLLAZY_OR_NOW RTLD_LAZY
17927
# define LT_DLLAZY_OR_NOW DL_LAZY
17930
# define LT_DLLAZY_OR_NOW RTLD_NOW
17933
# define LT_DLLAZY_OR_NOW DL_NOW
17935
# define LT_DLLAZY_OR_NOW 0
17943
extern "C" void exit (int);
17946
void fnord() { int i=42;}
17949
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17950
int status = $lt_dlunknown;
17954
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17955
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17956
/* dlclose (self); */
17962
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17963
(eval $ac_link) 2>&5
17965
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17967
(./conftest; exit; ) 2>/dev/null
17969
case x$lt_status in
17970
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17971
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17972
x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17975
# compilation failed
17976
lt_cv_dlopen_self=no
17983
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17984
echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17986
if test "x$lt_cv_dlopen_self" = xyes; then
17987
LDFLAGS="$LDFLAGS $link_static_flag"
17988
echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17989
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17990
if test "${lt_cv_dlopen_self_static+set}" = set; then
17991
echo $ECHO_N "(cached) $ECHO_C" >&6
17993
if test "$cross_compiling" = yes; then :
17994
lt_cv_dlopen_self_static=cross
17996
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17997
lt_status=$lt_dlunknown
17998
cat > conftest.$ac_ext <<EOF
17999
#line 17999 "configure"
18000
#include "confdefs.h"
18009
# define LT_DLGLOBAL RTLD_GLOBAL
18012
# define LT_DLGLOBAL DL_GLOBAL
18014
# define LT_DLGLOBAL 0
18018
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18019
find out it does not work in some platform. */
18020
#ifndef LT_DLLAZY_OR_NOW
18022
# define LT_DLLAZY_OR_NOW RTLD_LAZY
18025
# define LT_DLLAZY_OR_NOW DL_LAZY
18028
# define LT_DLLAZY_OR_NOW RTLD_NOW
18031
# define LT_DLLAZY_OR_NOW DL_NOW
18033
# define LT_DLLAZY_OR_NOW 0
18041
extern "C" void exit (int);
18044
void fnord() { int i=42;}
18047
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18048
int status = $lt_dlunknown;
18052
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18053
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18054
/* dlclose (self); */
18060
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18061
(eval $ac_link) 2>&5
18063
echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18065
(./conftest; exit; ) 2>/dev/null
18067
case x$lt_status in
18068
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18069
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18070
x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18073
# compilation failed
18074
lt_cv_dlopen_self_static=no
18081
echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18082
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18085
CPPFLAGS="$save_CPPFLAGS"
18086
LDFLAGS="$save_LDFLAGS"
18091
case $lt_cv_dlopen_self in
18092
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18093
*) enable_dlopen_self=unknown ;;
18096
case $lt_cv_dlopen_self_static in
18097
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18098
*) enable_dlopen_self_static=unknown ;;
18103
18567
# The else clause should only fire when bootstrapping the
18104
18568
# libtool distribution, otherwise you forgot to ship ltmain.sh
20800
21675
IFS=$as_save_IFS
20801
21676
test -z "$as_dir" && as_dir=.
20802
21677
for ac_exec_ext in '' $ac_executable_extensions; do
20803
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20804
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21678
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21679
ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
20805
21680
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20811
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21687
test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
20815
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20817
if test -n "$PKG_CONFIG"; then
20818
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20819
echo "${ECHO_T}$PKG_CONFIG" >&6
20821
echo "$as_me:$LINENO: result: no" >&5
20822
echo "${ECHO_T}no" >&6
20827
if test "$PKG_CONFIG" = "no" ; then
20828
echo "*** The pkg-config script could not be found. Make sure it is"
20829
echo "*** in your path, or set the PKG_CONFIG environment variable"
20830
echo "*** to the full path to pkg-config."
20831
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20833
PKG_CONFIG_MIN_VERSION=0.9.0
20834
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20835
echo "$as_me:$LINENO: checking for libexif >= 0.6.9" >&5
20836
echo $ECHO_N "checking for libexif >= 0.6.9... $ECHO_C" >&6
20838
if $PKG_CONFIG --exists "libexif >= 0.6.9" ; then
20839
echo "$as_me:$LINENO: result: yes" >&5
20840
echo "${ECHO_T}yes" >&6
20843
echo "$as_me:$LINENO: checking LIBEXIF_CFLAGS" >&5
20844
echo $ECHO_N "checking LIBEXIF_CFLAGS... $ECHO_C" >&6
20845
LIBEXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif >= 0.6.9"`
20846
echo "$as_me:$LINENO: result: $LIBEXIF_CFLAGS" >&5
20847
echo "${ECHO_T}$LIBEXIF_CFLAGS" >&6
20849
echo "$as_me:$LINENO: checking LIBEXIF_LIBS" >&5
20850
echo $ECHO_N "checking LIBEXIF_LIBS... $ECHO_C" >&6
20851
LIBEXIF_LIBS=`$PKG_CONFIG --libs "libexif >= 0.6.9"`
20852
echo "$as_me:$LINENO: result: $LIBEXIF_LIBS" >&5
20853
echo "${ECHO_T}$LIBEXIF_LIBS" >&6
20857
## If we have a custom action on failure, don't print errors, but
20858
## do set a variable so people can do so.
20859
LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libexif >= 0.6.9"`
20860
echo $LIBEXIF_PKG_ERRORS
20866
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20867
echo "*** See http://www.freedesktop.org/software/pkgconfig"
20871
if test $succeeded = yes; then
20874
{ { echo "$as_me:$LINENO: error: Library requirements (libexif >= 0.6.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
20875
echo "$as_me: error: Library requirements (libexif >= 0.6.9) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
20876
{ (exit 1); exit 1; }; }
21691
GMSGFMT=$ac_cv_path_GMSGFMT
21692
if test -n "$GMSGFMT"; then
21693
{ echo "$as_me:$LINENO: result: $GMSGFMT" >&5
21694
echo "${ECHO_T}$GMSGFMT" >&6; }
21696
{ echo "$as_me:$LINENO: result: no" >&5
21697
echo "${ECHO_T}no" >&6; }
21703
# Prepare PATH_SEPARATOR.
21704
# The user is always right.
21705
if test "${PATH_SEPARATOR+set}" != set; then
21706
echo "#! /bin/sh" >conf$$.sh
21707
echo "exit 0" >>conf$$.sh
21709
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21717
# Find out how to test for executable files. Don't use a zero-byte file,
21718
# as systems may use methods other than mode bits to determine executability.
21719
cat >conf$$.file <<_ASEOF
21723
chmod +x conf$$.file
21724
if test -x conf$$.file >/dev/null 2>&1; then
21725
ac_executable_p="test -x"
21727
ac_executable_p="test -f"
21731
# Extract the first word of "xgettext", so it can be a program name with args.
21732
set dummy xgettext; ac_word=$2
21733
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21734
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21735
if test "${ac_cv_path_XGETTEXT+set}" = set; then
21736
echo $ECHO_N "(cached) $ECHO_C" >&6
21738
case "$XGETTEXT" in
21740
ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21743
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21744
for ac_dir in $PATH; do
21746
test -z "$ac_dir" && ac_dir=.
21747
for ac_exec_ext in '' $ac_executable_extensions; do
21748
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21749
if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
21750
(if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21751
ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21758
test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21762
XGETTEXT="$ac_cv_path_XGETTEXT"
21763
if test "$XGETTEXT" != ":"; then
21764
{ echo "$as_me:$LINENO: result: $XGETTEXT" >&5
21765
echo "${ECHO_T}$XGETTEXT" >&6; }
21767
{ echo "$as_me:$LINENO: result: no" >&5
21768
echo "${ECHO_T}no" >&6; }
21774
# Prepare PATH_SEPARATOR.
21775
# The user is always right.
21776
if test "${PATH_SEPARATOR+set}" != set; then
21777
echo "#! /bin/sh" >conf$$.sh
21778
echo "exit 0" >>conf$$.sh
21780
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21788
# Find out how to test for executable files. Don't use a zero-byte file,
21789
# as systems may use methods other than mode bits to determine executability.
21790
cat >conf$$.file <<_ASEOF
21794
chmod +x conf$$.file
21795
if test -x conf$$.file >/dev/null 2>&1; then
21796
ac_executable_p="test -x"
21798
ac_executable_p="test -f"
21802
# Extract the first word of "msgmerge", so it can be a program name with args.
21803
set dummy msgmerge; ac_word=$2
21804
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
21805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
21806
if test "${ac_cv_path_MSGMERGE+set}" = set; then
21807
echo $ECHO_N "(cached) $ECHO_C" >&6
21809
case "$MSGMERGE" in
21811
ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21814
ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21815
for ac_dir in $PATH; do
21817
test -z "$ac_dir" && ac_dir=.
21818
for ac_exec_ext in '' $ac_executable_extensions; do
21819
if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21820
if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
21821
ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21828
test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21832
MSGMERGE="$ac_cv_path_MSGMERGE"
21833
if test "$MSGMERGE" != ":"; then
21834
{ echo "$as_me:$LINENO: result: $MSGMERGE" >&5
21835
echo "${ECHO_T}$MSGMERGE" >&6; }
21837
{ echo "$as_me:$LINENO: result: no" >&5
21838
echo "${ECHO_T}no" >&6; }
21842
if test "$GMSGFMT" != ":"; then
21843
if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
21844
(if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21847
GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
21848
{ echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
21849
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
21854
if test "$XGETTEXT" != ":"; then
21855
if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
21856
(if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21859
{ echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
21860
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
21866
ac_config_commands="$ac_config_commands default-2"
21874
am_save_CPPFLAGS="$CPPFLAGS"
21876
for element in $INCICONV; do
21878
for x in $CPPFLAGS; do
21880
acl_save_prefix="$prefix"
21881
prefix="$acl_final_prefix"
21882
acl_save_exec_prefix="$exec_prefix"
21883
exec_prefix="$acl_final_exec_prefix"
21885
exec_prefix="$acl_save_exec_prefix"
21886
prefix="$acl_save_prefix"
21888
if test "X$x" = "X$element"; then
21893
if test -z "$haveit"; then
21894
CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21899
{ echo "$as_me:$LINENO: checking for iconv" >&5
21900
echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
21901
if test "${am_cv_func_iconv+set}" = set; then
21902
echo $ECHO_N "(cached) $ECHO_C" >&6
21905
am_cv_func_iconv="no, consider installing GNU libiconv"
21907
cat >conftest.$ac_ext <<_ACEOF
21910
cat confdefs.h >>conftest.$ac_ext
21911
cat >>conftest.$ac_ext <<_ACEOF
21912
/* end confdefs.h. */
21913
#include <stdlib.h>
21918
iconv_t cd = iconv_open("","");
21919
iconv(cd,NULL,NULL,NULL,NULL);
21925
rm -f conftest.$ac_objext conftest$ac_exeext
21926
if { (ac_try="$ac_link"
21927
case "(($ac_try" in
21928
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21929
*) ac_try_echo=$ac_try;;
21931
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21932
(eval "$ac_link") 2>conftest.er1
21934
grep -v '^ *+' conftest.er1 >conftest.err
21936
cat conftest.err >&5
21937
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938
(exit $ac_status); } && {
21939
test -z "$ac_c_werror_flag" ||
21940
test ! -s conftest.err
21941
} && test -s conftest$ac_exeext &&
21942
$as_test_x conftest$ac_exeext; then
21943
am_cv_func_iconv=yes
21945
echo "$as_me: failed program was:" >&5
21946
sed 's/^/| /' conftest.$ac_ext >&5
21951
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21952
conftest$ac_exeext conftest.$ac_ext
21953
if test "$am_cv_func_iconv" != yes; then
21954
am_save_LIBS="$LIBS"
21955
LIBS="$LIBS $LIBICONV"
21956
cat >conftest.$ac_ext <<_ACEOF
21959
cat confdefs.h >>conftest.$ac_ext
21960
cat >>conftest.$ac_ext <<_ACEOF
21961
/* end confdefs.h. */
21962
#include <stdlib.h>
21967
iconv_t cd = iconv_open("","");
21968
iconv(cd,NULL,NULL,NULL,NULL);
21974
rm -f conftest.$ac_objext conftest$ac_exeext
21975
if { (ac_try="$ac_link"
21976
case "(($ac_try" in
21977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21978
*) ac_try_echo=$ac_try;;
21980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21981
(eval "$ac_link") 2>conftest.er1
21983
grep -v '^ *+' conftest.er1 >conftest.err
21985
cat conftest.err >&5
21986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
21987
(exit $ac_status); } && {
21988
test -z "$ac_c_werror_flag" ||
21989
test ! -s conftest.err
21990
} && test -s conftest$ac_exeext &&
21991
$as_test_x conftest$ac_exeext; then
21992
am_cv_lib_iconv=yes
21993
am_cv_func_iconv=yes
21995
echo "$as_me: failed program was:" >&5
21996
sed 's/^/| /' conftest.$ac_ext >&5
22001
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22002
conftest$ac_exeext conftest.$ac_ext
22003
LIBS="$am_save_LIBS"
22007
{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
22008
echo "${ECHO_T}$am_cv_func_iconv" >&6; }
22009
if test "$am_cv_func_iconv" = yes; then
22011
cat >>confdefs.h <<\_ACEOF
22012
#define HAVE_ICONV 1
22016
if test "$am_cv_lib_iconv" = yes; then
22017
{ echo "$as_me:$LINENO: checking how to link with libiconv" >&5
22018
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
22019
{ echo "$as_me:$LINENO: result: $LIBICONV" >&5
22020
echo "${ECHO_T}$LIBICONV" >&6; }
22022
CPPFLAGS="$am_save_CPPFLAGS"
22029
if test "$am_cv_func_iconv" = yes; then
22030
{ echo "$as_me:$LINENO: checking for iconv declaration" >&5
22031
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
22032
if test "${am_cv_proto_iconv+set}" = set; then
22033
echo $ECHO_N "(cached) $ECHO_C" >&6
22036
cat >conftest.$ac_ext <<_ACEOF
22039
cat confdefs.h >>conftest.$ac_ext
22040
cat >>conftest.$ac_ext <<_ACEOF
22041
/* end confdefs.h. */
22043
#include <stdlib.h>
22049
#if defined(__STDC__) || defined(__cplusplus)
22050
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
22063
rm -f conftest.$ac_objext
22064
if { (ac_try="$ac_compile"
22065
case "(($ac_try" in
22066
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067
*) ac_try_echo=$ac_try;;
22069
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22070
(eval "$ac_compile") 2>conftest.er1
22072
grep -v '^ *+' conftest.er1 >conftest.err
22074
cat conftest.err >&5
22075
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22076
(exit $ac_status); } && {
22077
test -z "$ac_c_werror_flag" ||
22078
test ! -s conftest.err
22079
} && test -s conftest.$ac_objext; then
22080
am_cv_proto_iconv_arg1=""
22082
echo "$as_me: failed program was:" >&5
22083
sed 's/^/| /' conftest.$ac_ext >&5
22085
am_cv_proto_iconv_arg1="const"
22088
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089
am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
22092
am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
22093
{ echo "$as_me:$LINENO: result: ${ac_t:-
22094
}$am_cv_proto_iconv" >&5
22095
echo "${ECHO_T}${ac_t:-
22096
}$am_cv_proto_iconv" >&6; }
22098
cat >>confdefs.h <<_ACEOF
22099
#define ICONV_CONST $am_cv_proto_iconv_arg1
22107
if test "x${BUILD_INCLUDED_LIBINTL}" = "xyes"; then
22108
AM_CFLAGS="${AM_CFLAGS} -I\$(top_srcdir)/intl"
22111
gp_config_msg_len="$(expr "Use translations" : '.*')"
22112
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
22113
gp_config_msg_lhs="$(expr "Use translations" : "\(.\{0,${gp_config_len3}\}\)")..:"
22115
gp_config_msg_lhs="$(expr "Use translations:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
22117
gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${USE_NLS}
22120
if test "x$USE_NLS" = "xyes" && test "${BUILD_INCLUDED_LIBINTL}"; then
22122
gp_config_msg_len="$(expr "Use included libintl" : '.*')"
22123
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
22124
gp_config_msg_lhs="$(expr "Use included libintl" : "\(.\{0,${gp_config_len3}\}\)")..:"
22126
gp_config_msg_lhs="$(expr "Use included libintl:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
22128
gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} ${BUILD_INCLUDED_LIBINTL}
22134
# We cannot use [AC_DEFINE_UNQUOTED()] for these definitions, as
22135
# we require make to do insert the proper $(datadir) value
22136
localedir="\$(datadir)/locale"
22138
AM_CPPFLAGS="$AM_CPPFLAGS -DLOCALEDIR=\\\"${localedir}\\\""
22140
# ---------------------------------------------------------------------------
22141
# locale.h: locale.h provides setlocale. It seems that some systems don't
22142
# have it (at least if configured --without-nls).
22143
# ---------------------------------------------------------------------------
20883
22145
for ac_header in locale.h
20885
22147
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20886
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20887
echo "$as_me:$LINENO: checking for $ac_header" >&5
20888
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20889
if eval "test \"\${$as_ac_Header+set}\" = set"; then
20890
echo $ECHO_N "(cached) $ECHO_C" >&6
20892
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20893
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20895
# Is the header compilable?
20896
echo "$as_me:$LINENO: checking $ac_header usability" >&5
20897
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20898
cat >conftest.$ac_ext <<_ACEOF
20901
cat confdefs.h >>conftest.$ac_ext
20902
cat >>conftest.$ac_ext <<_ACEOF
20903
/* end confdefs.h. */
20904
$ac_includes_default
20905
#include <$ac_header>
20907
rm -f conftest.$ac_objext
20908
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20909
(eval $ac_compile) 2>conftest.er1
20911
grep -v '^ *+' conftest.er1 >conftest.err
20913
cat conftest.err >&5
20914
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915
(exit $ac_status); } &&
20916
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20917
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20918
(eval $ac_try) 2>&5
20920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20921
(exit $ac_status); }; } &&
20922
{ ac_try='test -s conftest.$ac_objext'
20923
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20924
(eval $ac_try) 2>&5
20926
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927
(exit $ac_status); }; }; then
20928
ac_header_compiler=yes
20930
echo "$as_me: failed program was:" >&5
20931
sed 's/^/| /' conftest.$ac_ext >&5
20933
ac_header_compiler=no
20935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20936
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20937
echo "${ECHO_T}$ac_header_compiler" >&6
20939
# Is the header present?
20940
echo "$as_me:$LINENO: checking $ac_header presence" >&5
20941
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20942
cat >conftest.$ac_ext <<_ACEOF
20945
cat confdefs.h >>conftest.$ac_ext
20946
cat >>conftest.$ac_ext <<_ACEOF
20947
/* end confdefs.h. */
20948
#include <$ac_header>
20950
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20951
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20953
grep -v '^ *+' conftest.er1 >conftest.err
20955
cat conftest.err >&5
20956
echo "$as_me:$LINENO: \$? = $ac_status" >&5
20957
(exit $ac_status); } >/dev/null; then
20958
if test -s conftest.err; then
20959
ac_cpp_err=$ac_c_preproc_warn_flag
20960
ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22148
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22149
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22150
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22151
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22152
echo $ECHO_N "(cached) $ECHO_C" >&6
22154
ac_res=`eval echo '${'$as_ac_Header'}'`
22155
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22156
echo "${ECHO_T}$ac_res" >&6; }
22158
# Is the header compilable?
22159
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22160
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22161
cat >conftest.$ac_ext <<_ACEOF
22164
cat confdefs.h >>conftest.$ac_ext
22165
cat >>conftest.$ac_ext <<_ACEOF
22166
/* end confdefs.h. */
22167
$ac_includes_default
22168
#include <$ac_header>
22170
rm -f conftest.$ac_objext
22171
if { (ac_try="$ac_compile"
22172
case "(($ac_try" in
22173
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174
*) ac_try_echo=$ac_try;;
22176
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22177
(eval "$ac_compile") 2>conftest.er1
22179
grep -v '^ *+' conftest.er1 >conftest.err
22181
cat conftest.err >&5
22182
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22183
(exit $ac_status); } && {
22184
test -z "$ac_c_werror_flag" ||
22185
test ! -s conftest.err
22186
} && test -s conftest.$ac_objext; then
22187
ac_header_compiler=yes
22189
echo "$as_me: failed program was:" >&5
22190
sed 's/^/| /' conftest.$ac_ext >&5
22192
ac_header_compiler=no
22195
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22196
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22197
echo "${ECHO_T}$ac_header_compiler" >&6; }
22199
# Is the header present?
22200
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22201
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22202
cat >conftest.$ac_ext <<_ACEOF
22205
cat confdefs.h >>conftest.$ac_ext
22206
cat >>conftest.$ac_ext <<_ACEOF
22207
/* end confdefs.h. */
22208
#include <$ac_header>
22210
if { (ac_try="$ac_cpp conftest.$ac_ext"
22211
case "(($ac_try" in
22212
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22213
*) ac_try_echo=$ac_try;;
22215
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22216
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22218
grep -v '^ *+' conftest.er1 >conftest.err
22220
cat conftest.err >&5
22221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222
(exit $ac_status); } >/dev/null && {
22223
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22224
test ! -s conftest.err
22226
ac_header_preproc=yes
22228
echo "$as_me: failed program was:" >&5
22229
sed 's/^/| /' conftest.$ac_ext >&5
22231
ac_header_preproc=no
22234
rm -f conftest.err conftest.$ac_ext
22235
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22236
echo "${ECHO_T}$ac_header_preproc" >&6; }
22238
# So? What about this header?
22239
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22241
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22242
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22243
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22244
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22245
ac_header_preproc=yes
22248
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22249
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22250
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22251
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22252
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22253
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22254
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22255
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22256
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22257
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22258
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22259
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22261
## -------------------------------------------------- ##
22262
## Report this to libexif-devel@lists.sourceforge.net ##
22263
## -------------------------------------------------- ##
22265
) | sed "s/^/$as_me: WARNING: /" >&2
22268
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22269
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22270
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22271
echo $ECHO_N "(cached) $ECHO_C" >&6
22273
eval "$as_ac_Header=\$ac_header_preproc"
22275
ac_res=`eval echo '${'$as_ac_Header'}'`
22276
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22277
echo "${ECHO_T}$ac_res" >&6; }
22280
if test `eval echo '${'$as_ac_Header'}'` = yes; then
22281
cat >>confdefs.h <<_ACEOF
22282
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22289
if test "${ac_cv_header_iconv_h+set}" = set; then
22290
{ echo "$as_me:$LINENO: checking for iconv.h" >&5
22291
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
22292
if test "${ac_cv_header_iconv_h+set}" = set; then
22293
echo $ECHO_N "(cached) $ECHO_C" >&6
22295
{ echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
22296
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
22298
# Is the header compilable?
22299
{ echo "$as_me:$LINENO: checking iconv.h usability" >&5
22300
echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6; }
22301
cat >conftest.$ac_ext <<_ACEOF
22304
cat confdefs.h >>conftest.$ac_ext
22305
cat >>conftest.$ac_ext <<_ACEOF
22306
/* end confdefs.h. */
22307
$ac_includes_default
22310
rm -f conftest.$ac_objext
22311
if { (ac_try="$ac_compile"
22312
case "(($ac_try" in
22313
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22314
*) ac_try_echo=$ac_try;;
22316
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22317
(eval "$ac_compile") 2>conftest.er1
22319
grep -v '^ *+' conftest.er1 >conftest.err
22321
cat conftest.err >&5
22322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323
(exit $ac_status); } && {
22324
test -z "$ac_c_werror_flag" ||
22325
test ! -s conftest.err
22326
} && test -s conftest.$ac_objext; then
22327
ac_header_compiler=yes
22329
echo "$as_me: failed program was:" >&5
22330
sed 's/^/| /' conftest.$ac_ext >&5
22332
ac_header_compiler=no
22335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22337
echo "${ECHO_T}$ac_header_compiler" >&6; }
22339
# Is the header present?
22340
{ echo "$as_me:$LINENO: checking iconv.h presence" >&5
22341
echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6; }
22342
cat >conftest.$ac_ext <<_ACEOF
22345
cat confdefs.h >>conftest.$ac_ext
22346
cat >>conftest.$ac_ext <<_ACEOF
22347
/* end confdefs.h. */
22350
if { (ac_try="$ac_cpp conftest.$ac_ext"
22351
case "(($ac_try" in
22352
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353
*) ac_try_echo=$ac_try;;
22355
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22356
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22358
grep -v '^ *+' conftest.er1 >conftest.err
22360
cat conftest.err >&5
22361
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22362
(exit $ac_status); } >/dev/null && {
22363
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22364
test ! -s conftest.err
22366
ac_header_preproc=yes
22368
echo "$as_me: failed program was:" >&5
22369
sed 's/^/| /' conftest.$ac_ext >&5
22371
ac_header_preproc=no
22374
rm -f conftest.err conftest.$ac_ext
22375
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22376
echo "${ECHO_T}$ac_header_preproc" >&6; }
22378
# So? What about this header?
22379
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22381
{ echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
22382
echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22383
{ echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
22384
echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
22385
ac_header_preproc=yes
22388
{ echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
22389
echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
22390
{ echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
22391
echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
22392
{ echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
22393
echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
22394
{ echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
22395
echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
22396
{ echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
22397
echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
22398
{ echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
22399
echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
22401
## -------------------------------------------------- ##
22402
## Report this to libexif-devel@lists.sourceforge.net ##
22403
## -------------------------------------------------- ##
22405
) | sed "s/^/$as_me: WARNING: /" >&2
22408
{ echo "$as_me:$LINENO: checking for iconv.h" >&5
22409
echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6; }
22410
if test "${ac_cv_header_iconv_h+set}" = set; then
22411
echo $ECHO_N "(cached) $ECHO_C" >&6
22413
ac_cv_header_iconv_h=$ac_header_preproc
22415
{ echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
22416
echo "${ECHO_T}$ac_cv_header_iconv_h" >&6; }
22419
if test $ac_cv_header_iconv_h = yes; then
22422
cat >>confdefs.h <<\_ACEOF
22423
#define HAVE_ICONV 1
22431
# ---------------------------------------------------------------------------
22433
# ---------------------------------------------------------------------------
22434
{ echo "$as_me:$LINENO: checking for dynamic library extension" >&5
22435
echo $ECHO_N "checking for dynamic library extension... $ECHO_C" >&6; }
22438
*linux*) soext=".so" ;;
22439
*sunos*) soext=".so" ;;
22440
*solaris*) soext=".so" ;;
22441
*bsd*) soext=".so" ;;
22442
*darwin*) soext=".dylib" ;;
22443
*w32*) soext=".dll" ;;
22445
if test "x$soext" = "x"; then
22447
{ echo "$as_me:$LINENO: result: ${soext}" >&5
22448
echo "${ECHO_T}${soext}" >&6; }
22449
{ echo "$as_me:$LINENO: WARNING:
22450
Host system \"${host}\" not recognized, defaulting to \"${soext}\".
22452
echo "$as_me: WARNING:
22453
Host system \"${host}\" not recognized, defaulting to \"${soext}\".
22456
{ echo "$as_me:$LINENO: result: ${soext}" >&5
22457
echo "${ECHO_T}${soext}" >&6; }
22462
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22463
if test -n "$ac_tool_prefix"; then
22464
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22465
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22466
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22467
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22468
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22469
echo $ECHO_N "(cached) $ECHO_C" >&6
22471
case $PKG_CONFIG in
22473
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22476
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22477
for as_dir in $PATH
22480
test -z "$as_dir" && as_dir=.
22481
for ac_exec_ext in '' $ac_executable_extensions; do
22482
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22483
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22484
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22494
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22495
if test -n "$PKG_CONFIG"; then
22496
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22497
echo "${ECHO_T}$PKG_CONFIG" >&6; }
22499
{ echo "$as_me:$LINENO: result: no" >&5
22500
echo "${ECHO_T}no" >&6; }
22505
if test -z "$ac_cv_path_PKG_CONFIG"; then
22506
ac_pt_PKG_CONFIG=$PKG_CONFIG
22507
# Extract the first word of "pkg-config", so it can be a program name with args.
22508
set dummy pkg-config; ac_word=$2
22509
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22510
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22511
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
22512
echo $ECHO_N "(cached) $ECHO_C" >&6
22514
case $ac_pt_PKG_CONFIG in
22516
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22519
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22520
for as_dir in $PATH
22523
test -z "$as_dir" && as_dir=.
22524
for ac_exec_ext in '' $ac_executable_extensions; do
22525
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22526
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22527
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22537
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22538
if test -n "$ac_pt_PKG_CONFIG"; then
22539
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
22540
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
22542
{ echo "$as_me:$LINENO: result: no" >&5
22543
echo "${ECHO_T}no" >&6; }
22546
if test "x$ac_pt_PKG_CONFIG" = x; then
20967
if test -z "$ac_cpp_err"; then
22549
case $cross_compiling:$ac_tool_warned in
22551
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
22552
whose name does not start with the host triplet. If you think this
22553
configuration is useful to you, please write to autoconf@gnu.org." >&5
22554
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
22555
whose name does not start with the host triplet. If you think this
22556
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
22557
ac_tool_warned=yes ;;
22559
PKG_CONFIG=$ac_pt_PKG_CONFIG
22562
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22566
if test -n "$PKG_CONFIG"; then
22567
_pkg_min_version=0.9.0
22568
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
22569
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
22570
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22571
{ echo "$as_me:$LINENO: result: yes" >&5
22572
echo "${ECHO_T}yes" >&6; }
22574
{ echo "$as_me:$LINENO: result: no" >&5
22575
echo "${ECHO_T}no" >&6; }
22581
# ----------------------------------------------------------------------
22582
# [GP_CHECK_LIBRARY]([LIBEXIF],[libexif],[>= 0.6.13],
22584
# [...],[...],[mandatory])
22585
# ----------------------------------------------------------------------
22586
{ echo "$as_me:$LINENO: checking for libexif to use" >&5
22587
echo $ECHO_N "checking for libexif to use... $ECHO_C" >&6; }
22590
if test "x${LIBEXIF_LIBS}" = "x" && test "x${LIBEXIF_CFLAGS}" = "x"; then
22593
# Check whether --with-libexif was given.
22594
if test "${with_libexif+set}" = set; then
22595
withval=$with_libexif; try_LIBEXIF="$withval"
22598
if test "x${try_LIBEXIF}" = "xauto"; then try_LIBEXIF=autodetect; fi
22599
{ echo "$as_me:$LINENO: result: ${try_LIBEXIF}" >&5
22600
echo "${ECHO_T}${try_LIBEXIF}" >&6; }
22601
if test "x${try_LIBEXIF}" = "xautodetect"; then
22602
if test "x${have_LIBEXIF}" = "xno"; then
22605
{ echo "$as_me:$LINENO: checking for LIBEXIF" >&5
22606
echo $ECHO_N "checking for LIBEXIF... $ECHO_C" >&6; }
22608
if test -n "$PKG_CONFIG"; then
22609
if test -n "$LIBEXIF_CFLAGS"; then
22610
pkg_cv_LIBEXIF_CFLAGS="$LIBEXIF_CFLAGS"
22612
if test -n "$PKG_CONFIG" && \
22613
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\"") >&5
22614
($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
22616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617
(exit $ac_status); }; then
22618
pkg_cv_LIBEXIF_CFLAGS=`$PKG_CONFIG --cflags "libexif >= 0.6.13" 2>/dev/null`
22626
if test -n "$PKG_CONFIG"; then
22627
if test -n "$LIBEXIF_LIBS"; then
22628
pkg_cv_LIBEXIF_LIBS="$LIBEXIF_LIBS"
22630
if test -n "$PKG_CONFIG" && \
22631
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libexif >= 0.6.13\"") >&5
22632
($PKG_CONFIG --exists --print-errors "libexif >= 0.6.13") 2>&5
22634
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22635
(exit $ac_status); }; then
22636
pkg_cv_LIBEXIF_LIBS=`$PKG_CONFIG --libs "libexif >= 0.6.13" 2>/dev/null`
22647
if test $pkg_failed = yes; then
22649
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22650
_pkg_short_errors_supported=yes
22652
_pkg_short_errors_supported=no
22654
if test $_pkg_short_errors_supported = yes; then
22655
LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libexif >= 0.6.13"`
22657
LIBEXIF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libexif >= 0.6.13"`
22659
# Put the nasty error message in config.log where it belongs
22660
echo "$LIBEXIF_PKG_ERRORS" >&5
22662
{ echo "$as_me:$LINENO: result: no" >&5
22663
echo "${ECHO_T}no" >&6; }
22665
elif test $pkg_failed = untried; then
22668
LIBEXIF_CFLAGS=$pkg_cv_LIBEXIF_CFLAGS
22669
LIBEXIF_LIBS=$pkg_cv_LIBEXIF_LIBS
22670
{ echo "$as_me:$LINENO: result: yes" >&5
22671
echo "${ECHO_T}yes" >&6; }
22675
if test "x${have_LIBEXIF}" = "xno"; then
22676
{ echo "$as_me:$LINENO: WARNING: The \`libexif' library could not be found using pkg-config.
22677
No version checks will be performed if it is found using any other method." >&5
22678
echo "$as_me: WARNING: The \`libexif' library could not be found using pkg-config.
22679
No version checks will be performed if it is found using any other method." >&2;}
22680
{ echo "$as_me:$LINENO: checking libexif config program" >&5
22681
echo $ECHO_N "checking libexif config program... $ECHO_C" >&6; }
22682
{ echo "$as_me:$LINENO: result: none" >&5
22683
echo "${ECHO_T}none" >&6; }
22684
# Extract the first word of "gp_lib_config", so it can be a program name with args.
22685
set dummy none; ac_word=$2
22686
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
22687
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
22688
if test "${ac_cv_path_LIBEXIF_CONFIG_PROG+set}" = set; then
22689
echo $ECHO_N "(cached) $ECHO_C" >&6
22691
case $LIBEXIF_CONFIG_PROG in
22693
ac_cv_path_LIBEXIF_CONFIG_PROG="$LIBEXIF_CONFIG_PROG" # Let the user override the test with a path.
22696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22697
for as_dir in $PATH
22700
test -z "$as_dir" && as_dir=.
22701
for ac_exec_ext in '' $ac_executable_extensions; do
22702
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22703
ac_cv_path_LIBEXIF_CONFIG_PROG="$as_dir/$ac_word$ac_exec_ext"
22704
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22714
LIBEXIF_CONFIG_PROG=$ac_cv_path_LIBEXIF_CONFIG_PROG
22715
if test -n "$LIBEXIF_CONFIG_PROG"; then
22716
{ echo "$as_me:$LINENO: result: $LIBEXIF_CONFIG_PROG" >&5
22717
echo "${ECHO_T}$LIBEXIF_CONFIG_PROG" >&6; }
22719
{ echo "$as_me:$LINENO: result: no" >&5
22720
echo "${ECHO_T}no" >&6; }
22724
if test -n "${LIBEXIF_CONFIG_PROG}" &&
22725
test "${LIBEXIF_CONFIG_PROG}" != "none"; then
22726
{ echo "$as_me:$LINENO: checking for libexif parameters from none" >&5
22727
echo $ECHO_N "checking for libexif parameters from none... $ECHO_C" >&6; }
22728
LIBEXIF_LIBS="$(${LIBEXIF_CONFIG_PROG} --libs || echo "*error*")"
22729
LIBEXIF_CFLAGSS="$(${LIBEXIF_CONFIG_PROG} --cflags || echo "*error*")"
22730
if test "x${LIBEXIF_LIBS}" = "*error*" ||
22731
test "x${LIBEXIF_CFLAGS}" = "*error*"; then
22732
{ echo "$as_me:$LINENO: result: error" >&5
22733
echo "${ECHO_T}error" >&6; }
22736
{ echo "$as_me:$LINENO: result: ok" >&5
22737
echo "${ECHO_T}ok" >&6; }
22741
if test "x${have_LIBEXIF}" = "xno"; then
22743
IFS=":" # FIXME: for W32 and OS/2 we may need ";" here
22745
${LD_LIBRARY_PATH} \
22747
"${prefix}/lib64" "${prefix}/lib" \
22748
/usr/lib64 /usr/lib \
22749
/usr/local/lib64 /usr/local/lib \
22750
/opt/lib64 /opt/lib
22753
for _soext_ in .la ${soext} .a; do
22754
if test -f "${_libdir_}/libexif${_soext_}"
22756
if test "x${_soext_}" = "x.la" ||
22757
test "x${_soext_}" = "x.a"; then
22758
LIBEXIF_LIBS="${_libdir_}/libexif${_soext_}"
22760
LIBEXIF_LIBS="-L${_libdir_} -l$(echo "libexif" | sed 's/^lib//')"
22765
if test "x${LIBEXIF_LIBS}" != "x"; then
22770
if test "x${LIBEXIF_LIBS}" != "x"; then
22774
elif test "x${try_LIBEXIF}" = "xno"; then
22777
LIBEXIF_LIBS="-L${try_LIBEXIF}/lib -l$(echo "libexif" | sed 's/^lib//')"
22778
LIBEXIF_CFLAGS="-I${try_LIBEXIF}/include"
22780
elif test "x${LIBEXIF_LIBS}" != "x" && test "x${LIBEXIF_CFLAGS}" != "x"; then
22781
{ echo "$as_me:$LINENO: result: user-defined" >&5
22782
echo "${ECHO_T}user-defined" >&6; }
22783
userdef_LIBEXIF=yes
22786
{ echo "$as_me:$LINENO: result: broken call" >&5
22787
echo "${ECHO_T}broken call" >&6; }
22788
{ { echo "$as_me:$LINENO: error:
22790
* When calling configure for ${PACKAGE_TARNAME}
22792
* either set both LIBEXIF_LIBS *and* LIBEXIF_CFLAGS
22795
echo "$as_me: error:
22797
* When calling configure for ${PACKAGE_TARNAME}
22799
* either set both LIBEXIF_LIBS *and* LIBEXIF_CFLAGS
22802
{ (exit 1); exit 1; }; }
22805
if test "x${have_LIBEXIF}" = "xno"; then
22806
{ { echo "$as_me:$LINENO: error:
22807
PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
22808
LIBEXIF_LIBS=${LIBEXIF_LIBS}
22809
LIBEXIF_CFLAGS=${LIBEXIF_CFLAGS}
22811
* Fatal: ${PACKAGE_NAME} requires libexif to build.
22813
* Possible solutions:
22814
* - set PKG_CONFIG_PATH to adequate value
22815
* - call configure with LIBEXIF_LIBS=.. and LIBEXIF_CFLAGS=..
22816
* - call configure with one of the --with-libexif parameters
22817
* - get libexif and install it:
22819
echo "$as_me: error:
22820
PKG_CONFIG_PATH=${PKG_CONFIG_PATH}
22821
LIBEXIF_LIBS=${LIBEXIF_LIBS}
22822
LIBEXIF_CFLAGS=${LIBEXIF_CFLAGS}
22824
* Fatal: ${PACKAGE_NAME} requires libexif to build.
22826
* Possible solutions:
22827
* - set PKG_CONFIG_PATH to adequate value
22828
* - call configure with LIBEXIF_LIBS=.. and LIBEXIF_CFLAGS=..
22829
* - call configure with one of the --with-libexif parameters
22830
* - get libexif and install it:
22832
{ (exit 1); exit 1; }; }
22834
if test "x$have_LIBEXIF" = "xyes"; then
22836
HAVE_LIBEXIF_FALSE='#'
22838
HAVE_LIBEXIF_TRUE='#'
22839
HAVE_LIBEXIF_FALSE=
22842
if test "x$have_LIBEXIF" = "xyes"; then
22844
cat >>confdefs.h <<\_ACEOF
22845
#define HAVE_LIBEXIF 1
22849
gp_config_msg_len="$(expr "libexif" : '.*')"
22850
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
22851
gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
22853
gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
22855
gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} yes
22857
{ echo "$as_me:$LINENO: checking libexif library flags" >&5
22858
echo $ECHO_N "checking libexif library flags... $ECHO_C" >&6; }
22859
{ echo "$as_me:$LINENO: result: ${LIBEXIF_LIBS}" >&5
22860
echo "${ECHO_T}${LIBEXIF_LIBS}" >&6; }
22861
{ echo "$as_me:$LINENO: checking libexif cpp flags" >&5
22862
echo $ECHO_N "checking libexif cpp flags... $ECHO_C" >&6; }
22863
{ echo "$as_me:$LINENO: result: ${LIBEXIF_CFLAGS}" >&5
22864
echo "${ECHO_T}${LIBEXIF_CFLAGS}" >&6; }
22867
gp_config_msg_len="$(expr "libexif" : '.*')"
22868
if test "$gp_config_msg_len" -ge "$gp_config_len"; then
22869
gp_config_msg_lhs="$(expr "libexif" : "\(.\{0,${gp_config_len3}\}\)")..:"
22871
gp_config_msg_lhs="$(expr "libexif:${gp_config_empty}" : "\(.\{0,${gp_config_len}\}\)")"
22873
gp_config_msg="${gp_config_msg} ${gp_config_msg_lhs} no
22879
# ---------------------------------------------------------------------------
22880
# Check for misc headers
22881
# ---------------------------------------------------------------------------
22883
for ac_header in unistd.h
22885
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22886
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22887
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
22888
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22889
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22890
echo $ECHO_N "(cached) $ECHO_C" >&6
22892
ac_res=`eval echo '${'$as_ac_Header'}'`
22893
{ echo "$as_me:$LINENO: result: $ac_res" >&5
22894
echo "${ECHO_T}$ac_res" >&6; }
22896
# Is the header compilable?
22897
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
22898
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22899
cat >conftest.$ac_ext <<_ACEOF
22902
cat confdefs.h >>conftest.$ac_ext
22903
cat >>conftest.$ac_ext <<_ACEOF
22904
/* end confdefs.h. */
22905
$ac_includes_default
22906
#include <$ac_header>
22908
rm -f conftest.$ac_objext
22909
if { (ac_try="$ac_compile"
22910
case "(($ac_try" in
22911
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22912
*) ac_try_echo=$ac_try;;
22914
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22915
(eval "$ac_compile") 2>conftest.er1
22917
grep -v '^ *+' conftest.er1 >conftest.err
22919
cat conftest.err >&5
22920
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921
(exit $ac_status); } && {
22922
test -z "$ac_c_werror_flag" ||
22923
test ! -s conftest.err
22924
} && test -s conftest.$ac_objext; then
22925
ac_header_compiler=yes
22927
echo "$as_me: failed program was:" >&5
22928
sed 's/^/| /' conftest.$ac_ext >&5
22930
ac_header_compiler=no
22933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22934
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22935
echo "${ECHO_T}$ac_header_compiler" >&6; }
22937
# Is the header present?
22938
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
22939
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22940
cat >conftest.$ac_ext <<_ACEOF
22943
cat confdefs.h >>conftest.$ac_ext
22944
cat >>conftest.$ac_ext <<_ACEOF
22945
/* end confdefs.h. */
22946
#include <$ac_header>
22948
if { (ac_try="$ac_cpp conftest.$ac_ext"
22949
case "(($ac_try" in
22950
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22951
*) ac_try_echo=$ac_try;;
22953
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22954
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22956
grep -v '^ *+' conftest.er1 >conftest.err
22958
cat conftest.err >&5
22959
echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960
(exit $ac_status); } >/dev/null && {
22961
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22962
test ! -s conftest.err
20968
22964
ac_header_preproc=yes
20970
22966
echo "$as_me: failed program was:" >&5
21983
24083
# Have a temporary directory for convenience. Make it in the build tree
21984
# simply because there is no reason to put it here, and in addition,
24084
# simply because there is no reason against having it here, and in addition,
21985
24085
# creating and moving files from /tmp can sometimes cause problems.
21986
# Create a temporary directory, and hook for its removal unless debugging.
24086
# Hook for its removal unless debugging.
24087
# Note that there is a small window in which the directory will not be cleaned:
24088
# after its creation but before its name has been assigned to `$tmp'.
21989
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24092
trap 'exit_status=$?
24093
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21990
24095
trap '{ (exit 1); exit 1; }' 1 2 13 15
21993
24097
# Create a (secure) tmp directory for tmp files.
21996
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24100
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21997
24101
test -n "$tmp" && test -d "$tmp"
22000
tmp=./confstat$$-$RANDOM
22001
(umask 077 && mkdir $tmp)
24104
tmp=./conf$$-$RANDOM
24105
(umask 077 && mkdir "$tmp")
22004
24108
echo "$me: cannot create a temporary directory in ." >&2
22005
24109
{ (exit 1); exit 1; }
22010
cat >>$CONFIG_STATUS <<_ACEOF
22013
# CONFIG_FILES section.
24113
# Set up the sed scripts for CONFIG_FILES section.
22016
24116
# No need to generate the scripts if there are no CONFIG_FILES.
22017
24117
# This happens for instance when ./config.status config.h
22018
if test -n "\$CONFIG_FILES"; then
22019
# Protect against being on the right side of a sed subst in config.status.
22020
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22021
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22022
s,@SHELL@,$SHELL,;t t
22023
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22024
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22025
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22026
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22027
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22028
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22029
s,@exec_prefix@,$exec_prefix,;t t
22030
s,@prefix@,$prefix,;t t
22031
s,@program_transform_name@,$program_transform_name,;t t
22032
s,@bindir@,$bindir,;t t
22033
s,@sbindir@,$sbindir,;t t
22034
s,@libexecdir@,$libexecdir,;t t
22035
s,@datadir@,$datadir,;t t
22036
s,@sysconfdir@,$sysconfdir,;t t
22037
s,@sharedstatedir@,$sharedstatedir,;t t
22038
s,@localstatedir@,$localstatedir,;t t
22039
s,@libdir@,$libdir,;t t
22040
s,@includedir@,$includedir,;t t
22041
s,@oldincludedir@,$oldincludedir,;t t
22042
s,@infodir@,$infodir,;t t
22043
s,@mandir@,$mandir,;t t
22044
s,@build_alias@,$build_alias,;t t
22045
s,@host_alias@,$host_alias,;t t
22046
s,@target_alias@,$target_alias,;t t
22047
s,@DEFS@,$DEFS,;t t
22048
s,@ECHO_C@,$ECHO_C,;t t
22049
s,@ECHO_N@,$ECHO_N,;t t
22050
s,@ECHO_T@,$ECHO_T,;t t
22051
s,@LIBS@,$LIBS,;t t
22052
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22053
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22054
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22055
s,@CYGPATH_W@,$CYGPATH_W,;t t
22056
s,@PACKAGE@,$PACKAGE,;t t
22057
s,@VERSION@,$VERSION,;t t
22058
s,@ACLOCAL@,$ACLOCAL,;t t
22059
s,@AUTOCONF@,$AUTOCONF,;t t
22060
s,@AUTOMAKE@,$AUTOMAKE,;t t
22061
s,@AUTOHEADER@,$AUTOHEADER,;t t
22062
s,@MAKEINFO@,$MAKEINFO,;t t
22063
s,@AMTAR@,$AMTAR,;t t
22064
s,@install_sh@,$install_sh,;t t
22065
s,@STRIP@,$STRIP,;t t
22066
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22067
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22068
s,@mkdir_p@,$mkdir_p,;t t
22070
s,@SET_MAKE@,$SET_MAKE,;t t
22071
s,@am__leading_dot@,$am__leading_dot,;t t
22072
s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22073
s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22074
s,@MAINT@,$MAINT,;t t
22075
s,@build@,$build,;t t
22076
s,@build_cpu@,$build_cpu,;t t
22077
s,@build_vendor@,$build_vendor,;t t
22078
s,@build_os@,$build_os,;t t
22079
s,@host@,$host,;t t
22080
s,@host_cpu@,$host_cpu,;t t
22081
s,@host_vendor@,$host_vendor,;t t
22082
s,@host_os@,$host_os,;t t
22084
s,@CFLAGS@,$CFLAGS,;t t
22085
s,@LDFLAGS@,$LDFLAGS,;t t
22086
s,@CPPFLAGS@,$CPPFLAGS,;t t
22087
s,@ac_ct_CC@,$ac_ct_CC,;t t
22088
s,@EXEEXT@,$EXEEXT,;t t
22089
s,@OBJEXT@,$OBJEXT,;t t
22090
s,@DEPDIR@,$DEPDIR,;t t
22091
s,@am__include@,$am__include,;t t
22092
s,@am__quote@,$am__quote,;t t
22093
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22094
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22095
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22096
s,@CCDEPMODE@,$CCDEPMODE,;t t
22097
s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22098
s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22099
s,@EGREP@,$EGREP,;t t
22100
s,@LN_S@,$LN_S,;t t
22101
s,@ECHO@,$ECHO,;t t
22103
s,@ac_ct_AR@,$ac_ct_AR,;t t
22104
s,@RANLIB@,$RANLIB,;t t
22105
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22108
s,@CXXFLAGS@,$CXXFLAGS,;t t
22109
s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22110
s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22111
s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22112
s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22113
s,@CXXCPP@,$CXXCPP,;t t
22115
s,@FFLAGS@,$FFLAGS,;t t
22116
s,@ac_ct_F77@,$ac_ct_F77,;t t
22117
s,@LIBTOOL@,$LIBTOOL,;t t
22118
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
22119
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
22120
s,@USE_NLS@,$USE_NLS,;t t
22121
s,@MSGFMT@,$MSGFMT,;t t
22122
s,@GMSGFMT@,$GMSGFMT,;t t
22123
s,@XGETTEXT@,$XGETTEXT,;t t
22124
s,@MSGMERGE@,$MSGMERGE,;t t
22125
s,@LIBICONV@,$LIBICONV,;t t
22126
s,@LTLIBICONV@,$LTLIBICONV,;t t
22127
s,@INTLLIBS@,$INTLLIBS,;t t
22128
s,@LIBINTL@,$LIBINTL,;t t
22129
s,@LTLIBINTL@,$LTLIBINTL,;t t
22130
s,@POSUB@,$POSUB,;t t
22131
s,@LIBEXIF_CFLAGS@,$LIBEXIF_CFLAGS,;t t
22132
s,@LIBEXIF_LIBS@,$LIBEXIF_LIBS,;t t
22133
s,@HAVE_POPT_TRUE@,$HAVE_POPT_TRUE,;t t
22134
s,@HAVE_POPT_FALSE@,$HAVE_POPT_FALSE,;t t
22135
s,@POPT_LIBS@,$POPT_LIBS,;t t
22136
s,@POPT_CFLAGS@,$POPT_CFLAGS,;t t
22137
s,@LIBOBJS@,$LIBOBJS,;t t
22138
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22143
cat >>$CONFIG_STATUS <<\_ACEOF
22144
# Split the substitutions into bite-sized pieces for seds with
22145
# small command number limits, like on Digital OSF/1 and HP-UX.
22146
ac_max_sed_lines=48
22147
ac_sed_frag=1 # Number of current file.
22148
ac_beg=1 # First line for current file.
22149
ac_end=$ac_max_sed_lines # Line after last line for current file.
22152
while $ac_more_lines; do
22153
if test $ac_beg -gt 1; then
22154
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22156
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22158
if test ! -s $tmp/subs.frag; then
22159
ac_more_lines=false
22161
# The purpose of the label and of the branching condition is to
22162
# speed up the sed processing (if there are no `@' at all, there
22163
# is no need to browse any of the substitutions).
22164
# These are the two extra sed commands mentioned above.
22166
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22167
if test -z "$ac_sed_cmds"; then
22168
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22170
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22172
ac_sed_frag=`expr $ac_sed_frag + 1`
22174
ac_end=`expr $ac_end + $ac_max_sed_lines`
22177
if test -z "$ac_sed_cmds"; then
24118
if test -n "$CONFIG_FILES"; then
24125
for ac_last_try in false false false false false :; do
24126
cat >conf$$subs.sed <<_ACEOF
24127
SHELL!$SHELL$ac_delim
24128
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24129
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24130
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24131
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24132
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24133
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24134
exec_prefix!$exec_prefix$ac_delim
24135
prefix!$prefix$ac_delim
24136
program_transform_name!$program_transform_name$ac_delim
24137
bindir!$bindir$ac_delim
24138
sbindir!$sbindir$ac_delim
24139
libexecdir!$libexecdir$ac_delim
24140
datarootdir!$datarootdir$ac_delim
24141
datadir!$datadir$ac_delim
24142
sysconfdir!$sysconfdir$ac_delim
24143
sharedstatedir!$sharedstatedir$ac_delim
24144
localstatedir!$localstatedir$ac_delim
24145
includedir!$includedir$ac_delim
24146
oldincludedir!$oldincludedir$ac_delim
24147
docdir!$docdir$ac_delim
24148
infodir!$infodir$ac_delim
24149
htmldir!$htmldir$ac_delim
24150
dvidir!$dvidir$ac_delim
24151
pdfdir!$pdfdir$ac_delim
24152
psdir!$psdir$ac_delim
24153
libdir!$libdir$ac_delim
24154
localedir!$localedir$ac_delim
24155
mandir!$mandir$ac_delim
24156
DEFS!$DEFS$ac_delim
24157
ECHO_C!$ECHO_C$ac_delim
24158
ECHO_N!$ECHO_N$ac_delim
24159
ECHO_T!$ECHO_T$ac_delim
24160
LIBS!$LIBS$ac_delim
24161
build_alias!$build_alias$ac_delim
24162
host_alias!$host_alias$ac_delim
24163
target_alias!$target_alias$ac_delim
24164
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24165
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24166
INSTALL_DATA!$INSTALL_DATA$ac_delim
24167
am__isrc!$am__isrc$ac_delim
24168
CYGPATH_W!$CYGPATH_W$ac_delim
24169
PACKAGE!$PACKAGE$ac_delim
24170
VERSION!$VERSION$ac_delim
24171
ACLOCAL!$ACLOCAL$ac_delim
24172
AUTOCONF!$AUTOCONF$ac_delim
24173
AUTOMAKE!$AUTOMAKE$ac_delim
24174
AUTOHEADER!$AUTOHEADER$ac_delim
24175
MAKEINFO!$MAKEINFO$ac_delim
24176
install_sh!$install_sh$ac_delim
24177
STRIP!$STRIP$ac_delim
24178
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
24179
mkdir_p!$mkdir_p$ac_delim
24181
SET_MAKE!$SET_MAKE$ac_delim
24182
am__leading_dot!$am__leading_dot$ac_delim
24183
AMTAR!$AMTAR$ac_delim
24184
am__tar!$am__tar$ac_delim
24185
am__untar!$am__untar$ac_delim
24187
CFLAGS!$CFLAGS$ac_delim
24188
LDFLAGS!$LDFLAGS$ac_delim
24189
CPPFLAGS!$CPPFLAGS$ac_delim
24190
ac_ct_CC!$ac_ct_CC$ac_delim
24191
EXEEXT!$EXEEXT$ac_delim
24192
OBJEXT!$OBJEXT$ac_delim
24193
DEPDIR!$DEPDIR$ac_delim
24194
am__include!$am__include$ac_delim
24195
am__quote!$am__quote$ac_delim
24196
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
24197
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
24198
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
24199
CCDEPMODE!$CCDEPMODE$ac_delim
24200
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
24201
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
24202
build!$build$ac_delim
24203
build_cpu!$build_cpu$ac_delim
24204
build_vendor!$build_vendor$ac_delim
24205
build_os!$build_os$ac_delim
24206
host!$host$ac_delim
24207
host_cpu!$host_cpu$ac_delim
24208
host_vendor!$host_vendor$ac_delim
24209
host_os!$host_os$ac_delim
24211
GREP!$GREP$ac_delim
24212
EGREP!$EGREP$ac_delim
24213
LN_S!$LN_S$ac_delim
24214
ECHO!$ECHO$ac_delim
24216
RANLIB!$RANLIB$ac_delim
24219
CXXFLAGS!$CXXFLAGS$ac_delim
24220
ac_ct_CXX!$ac_ct_CXX$ac_delim
24221
CXXDEPMODE!$CXXDEPMODE$ac_delim
24222
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
24223
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
24226
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24228
elif $ac_last_try; then
24229
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24230
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24231
{ (exit 1); exit 1; }; }
24233
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24237
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24238
if test -n "$ac_eof"; then
24239
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24240
ac_eof=`expr $ac_eof + 1`
24243
cat >>$CONFIG_STATUS <<_ACEOF
24244
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24245
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24248
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24249
s/^/s,@/; s/!/@,|#_!!_#|/
24252
s/'"$ac_delim"'$/,g/; t
24254
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24255
' >>$CONFIG_STATUS <conf$$subs.sed
24256
rm -f conf$$subs.sed
24257
cat >>$CONFIG_STATUS <<_ACEOF
24263
for ac_last_try in false false false false false :; do
24264
cat >conf$$subs.sed <<_ACEOF
24265
CXXCPP!$CXXCPP$ac_delim
24267
FFLAGS!$FFLAGS$ac_delim
24268
ac_ct_F77!$ac_ct_F77$ac_delim
24269
LIBTOOL!$LIBTOOL$ac_delim
24270
PKG_CONFIG!$PKG_CONFIG$ac_delim
24271
PKG_CONFIG_PATH!$PKG_CONFIG_PATH$ac_delim
24272
GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
24273
MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
24274
USE_NLS!$USE_NLS$ac_delim
24275
MSGFMT!$MSGFMT$ac_delim
24276
GMSGFMT!$GMSGFMT$ac_delim
24277
XGETTEXT!$XGETTEXT$ac_delim
24278
MSGMERGE!$MSGMERGE$ac_delim
24279
LIBICONV!$LIBICONV$ac_delim
24280
LTLIBICONV!$LTLIBICONV$ac_delim
24281
INTLLIBS!$INTLLIBS$ac_delim
24282
LIBINTL!$LIBINTL$ac_delim
24283
LTLIBINTL!$LTLIBINTL$ac_delim
24284
POSUB!$POSUB$ac_delim
24285
LIBEXIF_CFLAGS!$LIBEXIF_CFLAGS$ac_delim
24286
LIBEXIF_LIBS!$LIBEXIF_LIBS$ac_delim
24287
LIBEXIF_CONFIG_PROG!$LIBEXIF_CONFIG_PROG$ac_delim
24288
HAVE_LIBEXIF_TRUE!$HAVE_LIBEXIF_TRUE$ac_delim
24289
HAVE_LIBEXIF_FALSE!$HAVE_LIBEXIF_FALSE$ac_delim
24290
POPT_CFLAGS!$POPT_CFLAGS$ac_delim
24291
POPT_LIBS!$POPT_LIBS$ac_delim
24292
HAVE_POPT_TRUE!$HAVE_POPT_TRUE$ac_delim
24293
HAVE_POPT_FALSE!$HAVE_POPT_FALSE$ac_delim
24294
AM_CPPFLAGS!$AM_CPPFLAGS$ac_delim
24295
AM_LDFLAGS!$AM_LDFLAGS$ac_delim
24296
LIBOBJS!$LIBOBJS$ac_delim
24297
LTLIBOBJS!$LTLIBOBJS$ac_delim
24300
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 33; then
24302
elif $ac_last_try; then
24303
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24304
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24305
{ (exit 1); exit 1; }; }
24307
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24311
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24312
if test -n "$ac_eof"; then
24313
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24314
ac_eof=`expr $ac_eof + 1`
24317
cat >>$CONFIG_STATUS <<_ACEOF
24318
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24319
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24322
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24323
s/^/s,@/; s/!/@,|#_!!_#|/
24326
s/'"$ac_delim"'$/,g/; t
24328
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24329
' >>$CONFIG_STATUS <conf$$subs.sed
24330
rm -f conf$$subs.sed
24331
cat >>$CONFIG_STATUS <<_ACEOF
24338
# VPATH may cause trouble with some makes, so we remove $(srcdir),
24339
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24340
# trailing colons and then remove the whole line if VPATH becomes empty
24341
# (actually we leave an empty line to preserve line numbers).
24342
if test "x$srcdir" = x.; then
24343
ac_vpsub='/^[ ]*VPATH[ ]*=/{
24344
s/:*\$(srcdir):*/:/
24345
s/:*\${srcdir}:*/:/
24347
s/^\([^=]*=[ ]*\):*/\1/
24353
cat >>$CONFIG_STATUS <<\_ACEOF
22180
24354
fi # test -n "$CONFIG_FILES"
22183
cat >>$CONFIG_STATUS <<\_ACEOF
22184
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22185
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22187
- | *:- | *:-:* ) # input from stdin
22189
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22190
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22191
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22192
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22193
* ) ac_file_in=$ac_file.in ;;
22196
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
22197
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24357
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24360
:[FHLC]) ac_mode=$ac_tag; continue;;
24362
case $ac_mode$ac_tag in
24364
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24365
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24366
{ (exit 1); exit 1; }; };;
24367
:[FH]-) ac_tag=-:-;;
24368
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24385
-) ac_f="$tmp/stdin";;
24386
*) # Look for the file first in the build tree, then in the source tree
24387
# (if the path is not absolute). The absolute path cannot be DOS-style,
24388
# because $ac_f cannot contain `:'.
24392
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24394
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24395
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24396
{ (exit 1); exit 1; }; };;
24398
ac_file_inputs="$ac_file_inputs $ac_f"
24401
# Let's still pretend it is `configure' which instantiates (i.e., don't
24402
# use $as_me), people would be surprised to read:
24403
# /* config.h. Generated by config.status. */
24404
configure_input="Generated from "`IFS=:
24405
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24406
if test x"$ac_file" != x-; then
24407
configure_input="$ac_file. $configure_input"
24408
{ echo "$as_me:$LINENO: creating $ac_file" >&5
24409
echo "$as_me: creating $ac_file" >&6;}
24413
*:-:* | *:-) cat >"$tmp/stdin";;
24418
ac_dir=`$as_dirname -- "$ac_file" ||
22198
24419
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22199
24420
X"$ac_file" : 'X\(//\)[^/]' \| \
22200
24421
X"$ac_file" : 'X\(//\)$' \| \
22201
X"$ac_file" : 'X\(/\)' \| \
22202
. : '\(.\)' 2>/dev/null ||
24422
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22203
24423
echo X"$ac_file" |
22204
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22205
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22206
/^X\(\/\/\)$/{ s//\1/; q; }
22207
/^X\(\/\).*/{ s//\1/; q; }
22209
{ if $as_mkdir_p; then
24424
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24428
/^X\(\/\/\)[^/].*/{
24443
-*) as_dir=./$as_dir;;
24445
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22214
while test ! -d "$as_dir"; do
22215
as_dirs="$as_dir $as_dirs"
22216
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24449
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24450
*) as_qdir=$as_dir;;
24452
as_dirs="'$as_qdir' $as_dirs"
24453
as_dir=`$as_dirname -- "$as_dir" ||
22217
24454
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22218
24455
X"$as_dir" : 'X\(//\)[^/]' \| \
22219
24456
X"$as_dir" : 'X\(//\)$' \| \
22220
X"$as_dir" : 'X\(/\)' \| \
22221
. : '\(.\)' 2>/dev/null ||
24457
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22222
24458
echo X"$as_dir" |
22223
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22224
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22225
/^X\(\/\/\)$/{ s//\1/; q; }
22226
/^X\(\/\).*/{ s//\1/; q; }
24459
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24463
/^X\(\/\/\)[^/].*/{
24476
test -d "$as_dir" && break
22229
test ! -n "$as_dirs" || mkdir $as_dirs
22230
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22231
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24478
test -z "$as_dirs" || eval "mkdir $as_dirs"
24479
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24480
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22232
24481
{ (exit 1); exit 1; }; }; }
22234
24482
ac_builddir=.
22236
if test "$ac_dir" != .; then
24485
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22237
24487
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22238
# A "../" for each directory in $ac_dir_suffix.
22239
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
22241
ac_dir_suffix= ac_top_builddir=
24488
# A ".." for each directory in $ac_dir_suffix.
24489
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24490
case $ac_top_builddir_sub in
24491
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24492
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24495
ac_abs_top_builddir=$ac_pwd
24496
ac_abs_builddir=$ac_pwd$ac_dir_suffix
24497
# for backward compatibility:
24498
ac_top_builddir=$ac_top_build_prefix
22244
24500
case $srcdir in
22245
.) # No --srcdir option. We are building in place.
24501
.) # We are building in place.
22247
if test -z "$ac_top_builddir"; then
22250
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
22252
[\\/]* | ?:[\\/]* ) # Absolute path.
24503
ac_top_srcdir=$ac_top_builddir_sub
24504
ac_abs_top_srcdir=$ac_pwd ;;
24505
[\\/]* | ?:[\\/]* ) # Absolute name.
22253
24506
ac_srcdir=$srcdir$ac_dir_suffix;
22254
ac_top_srcdir=$srcdir ;;
22255
*) # Relative path.
22256
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
22257
ac_top_srcdir=$ac_top_builddir$srcdir ;;
22260
# Do not use `cd foo && pwd` to compute absolute paths, because
22261
# the directories may not exist.
22263
.) ac_abs_builddir="$ac_dir";;
22266
.) ac_abs_builddir=`pwd`;;
22267
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
22268
*) ac_abs_builddir=`pwd`/"$ac_dir";;
22271
case $ac_abs_builddir in
22272
.) ac_abs_top_builddir=${ac_top_builddir}.;;
22274
case ${ac_top_builddir}. in
22275
.) ac_abs_top_builddir=$ac_abs_builddir;;
22276
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
22277
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
22280
case $ac_abs_builddir in
22281
.) ac_abs_srcdir=$ac_srcdir;;
22284
.) ac_abs_srcdir=$ac_abs_builddir;;
22285
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
22286
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
22289
case $ac_abs_builddir in
22290
.) ac_abs_top_srcdir=$ac_top_srcdir;;
22292
case $ac_top_srcdir in
22293
.) ac_abs_top_srcdir=$ac_abs_builddir;;
22294
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
22295
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24507
ac_top_srcdir=$srcdir
24508
ac_abs_top_srcdir=$srcdir ;;
24509
*) # Relative name.
24510
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24511
ac_top_srcdir=$ac_top_build_prefix$srcdir
24512
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24514
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22300
24523
case $INSTALL in
22301
24524
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22302
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
22305
# Let's still pretend it is `configure' which instantiates (i.e., don't
22306
# use $as_me), people would be surprised to read:
22307
# /* config.h. Generated by config.status. */
22308
if test x"$ac_file" = x-; then
22311
configure_input="$ac_file. "
22313
configure_input=$configure_input"Generated from `echo $ac_file_in |
22314
sed 's,.*/,,'` by configure."
22316
# First look for the input files in the build tree, otherwise in the
22318
ac_file_inputs=`IFS=:
22319
for f in $ac_file_in; do
22321
-) echo $tmp/stdin ;;
22323
# Absolute (can't be DOS-style, as IFS=:)
22324
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22325
echo "$as_me: error: cannot find input file: $f" >&2;}
22326
{ (exit 1); exit 1; }; }
22329
if test -f "$f"; then
22332
elif test -f "$srcdir/$f"; then
22337
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22338
echo "$as_me: error: cannot find input file: $f" >&2;}
22339
{ (exit 1); exit 1; }; }
22342
done` || { (exit 1); exit 1; }
22344
if test x"$ac_file" != x-; then
22345
{ echo "$as_me:$LINENO: creating $ac_file" >&5
22346
echo "$as_me: creating $ac_file" >&6;}
24525
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24527
ac_MKDIR_P=$MKDIR_P
24529
[\\/$]* | ?:[\\/]* ) ;;
24530
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24534
cat >>$CONFIG_STATUS <<\_ACEOF
24535
# If the template does not know about datarootdir, expand it.
24536
# FIXME: This hack should be removed a few years after 2.60.
24537
ac_datarootdir_hack=; ac_datarootdir_seen=
24539
case `sed -n '/datarootdir/ {
24548
' $ac_file_inputs` in
24549
*datarootdir*) ac_datarootdir_seen=yes;;
24550
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24551
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24552
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24554
cat >>$CONFIG_STATUS <<_ACEOF
24555
ac_datarootdir_hack='
24556
s&@datadir@&$datadir&g
24557
s&@docdir@&$docdir&g
24558
s&@infodir@&$infodir&g
24559
s&@localedir@&$localedir&g
24560
s&@mandir@&$mandir&g
24561
s&\\\${datarootdir}&$datarootdir&g' ;;
24565
# Neutralize VPATH when `$srcdir' = `.'.
24566
# Shell code in configure.ac might set extrasub.
24567
# FIXME: do we really want to maintain this feature?
22350
24568
cat >>$CONFIG_STATUS <<_ACEOF
22351
24569
sed "$ac_vpsub
22354
24572
cat >>$CONFIG_STATUS <<\_ACEOF
22356
24574
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22357
s,@configure_input@,$configure_input,;t t
22358
s,@srcdir@,$ac_srcdir,;t t
22359
s,@abs_srcdir@,$ac_abs_srcdir,;t t
22360
s,@top_srcdir@,$ac_top_srcdir,;t t
22361
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
22362
s,@builddir@,$ac_builddir,;t t
22363
s,@abs_builddir@,$ac_abs_builddir,;t t
22364
s,@top_builddir@,$ac_top_builddir,;t t
22365
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
22366
s,@INSTALL@,$ac_INSTALL,;t t
22367
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
22369
if test x"$ac_file" != x-; then
22370
mv $tmp/out $ac_file
24575
s&@configure_input@&$configure_input&;t t
24576
s&@top_builddir@&$ac_top_builddir_sub&;t t
24577
s&@srcdir@&$ac_srcdir&;t t
24578
s&@abs_srcdir@&$ac_abs_srcdir&;t t
24579
s&@top_srcdir@&$ac_top_srcdir&;t t
24580
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24581
s&@builddir@&$ac_builddir&;t t
24582
s&@abs_builddir@&$ac_abs_builddir&;t t
24583
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24584
s&@INSTALL@&$ac_INSTALL&;t t
24585
s&@MKDIR_P@&$ac_MKDIR_P&;t t
24586
$ac_datarootdir_hack
24587
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24589
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24590
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24591
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24592
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24593
which seems to be undefined. Please make sure it is defined." >&5
24594
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24595
which seems to be undefined. Please make sure it is defined." >&2;}
24599
-) cat "$tmp/out"; rm -f "$tmp/out";;
24600
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22378
cat >>$CONFIG_STATUS <<\_ACEOF
22381
# CONFIG_HEADER section.
22384
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
22385
# NAME is the cpp macro being defined and VALUE is the value it is being given.
22387
# ac_d sets the value in "#define NAME VALUE" lines.
22388
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
22389
ac_dB='[ ].*$,\1#\2'
24609
# Transform confdefs.h into a sed script `conftest.defines', that
24610
# substitutes the proper values into config.h.in to produce config.h.
24611
rm -f conftest.defines conftest.tail
24612
# First, append a space to every undef/define line, to ease matching.
24613
echo 's/$/ /' >conftest.defines
24614
# Then, protect against being on the right side of a sed subst, or in
24615
# an unquoted here document, in config.status. If some macros were
24616
# called several times there might be several #defines for the same
24617
# symbol, which is useless. But do not sort them, since the last
24618
# AC_DEFINE must be honored.
24619
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24620
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24621
# NAME is the cpp macro being defined, VALUE is the value it is being given.
24622
# PARAMS is the parameter list in the macro definition--in most cases, it's
24623
# just an empty string.
24624
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24625
ac_dB='\\)[ (].*,\\1define\\2'
22392
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
22393
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
22394
ac_uB='$,\1#\2define\3'
22398
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
22399
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22401
- | *:- | *:-:* ) # input from stdin
22403
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22404
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22405
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22406
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22407
* ) ac_file_in=$ac_file.in ;;
22410
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
22411
echo "$as_me: creating $ac_file" >&6;}
22413
# First look for the input files in the build tree, otherwise in the
22415
ac_file_inputs=`IFS=:
22416
for f in $ac_file_in; do
22418
-) echo $tmp/stdin ;;
22420
# Absolute (can't be DOS-style, as IFS=:)
22421
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22422
echo "$as_me: error: cannot find input file: $f" >&2;}
22423
{ (exit 1); exit 1; }; }
22424
# Do quote $f, to prevent DOS paths from being IFS'd.
22427
if test -f "$f"; then
22430
elif test -f "$srcdir/$f"; then
22435
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
22436
echo "$as_me: error: cannot find input file: $f" >&2;}
22437
{ (exit 1); exit 1; }; }
22440
done` || { (exit 1); exit 1; }
22441
# Remove the trailing spaces.
22442
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
22446
# Transform confdefs.h into two sed scripts, `conftest.defines' and
22447
# `conftest.undefs', that substitutes the proper values into
22448
# config.h.in to produce config.h. The first handles `#define'
22449
# templates, and the second `#undef' templates.
22450
# And first: Protect against being on the right side of a sed subst in
22451
# config.status. Protect against being in an unquoted here document
22452
# in config.status.
22453
rm -f conftest.defines conftest.undefs
22454
# Using a here document instead of a string reduces the quoting nightmare.
22455
# Putting comments in sed scripts is not portable.
22457
# `end' is used to avoid that the second main sed command (meant for
22458
# 0-ary CPP macros) applies to n-ary macro definitions.
22459
# See the Autoconf documentation for `clear'.
22460
cat >confdef2sed.sed <<\_ACEOF
22465
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
22467
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
22470
# If some macros were called several times there might be several times
22471
# the same #defines, which is useless. Nevertheless, we may not want to
22472
# sort them, since we want the *last* AC-DEFINE to be honored.
22473
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
22474
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
22475
rm -f confdef2sed.sed
22477
# This sed command replaces #undef with comments. This is necessary, for
24633
s/^[ ]*#[ ]*define[ ][ ]*//
24638
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24639
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24640
' >>conftest.defines
24642
# Remove the space that was appended to ease matching.
24643
# Then replace #undef with comments. This is necessary, for
22478
24644
# example, in the case of _POSIX_SOURCE, which is predefined and required
22479
24645
# on some systems where configure will not decide to define it.
22480
cat >>conftest.undefs <<\_ACEOF
22481
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24646
# (The regexp can be short, since the line contains either #define or #undef.)
24648
s,^[ #]*u.*,/* & */,' >>conftest.defines
24650
# Break up conftest.defines:
24651
ac_max_sed_lines=50
24653
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24654
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24655
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24657
ac_in='$ac_file_inputs'
24658
ac_out='"$tmp/out1"'
24659
ac_nxt='"$tmp/out2"'
24663
# Write a here document:
24664
cat >>$CONFIG_STATUS <<_ACEOF
24665
# First, check the format of the line:
24666
cat >"\$tmp/defines.sed" <<\\CEOF
24667
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24668
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22484
# Break up conftest.defines because some shells have a limit on the size
22485
# of here documents, and old seds have small limits too (100 cmds).
22486
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
22487
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
22488
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
22489
echo ' :' >>$CONFIG_STATUS
22490
rm -f conftest.tail
22491
while grep . conftest.defines >/dev/null
22493
# Write a limited-size here document to $tmp/defines.sed.
22494
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
22495
# Speed up: don't consider the non `#define' lines.
22496
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
22497
# Work around the forget-to-reset-the-flag bug.
22498
echo 't clr' >>$CONFIG_STATUS
22499
echo ': clr' >>$CONFIG_STATUS
22500
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24672
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22502
sed -f $tmp/defines.sed $tmp/in >$tmp/out
22504
mv $tmp/out $tmp/in
22506
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24674
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24675
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24676
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24677
grep . conftest.tail >/dev/null || break
22507
24678
rm -f conftest.defines
22508
24679
mv conftest.tail conftest.defines
22510
rm -f conftest.defines
22511
echo ' fi # grep' >>$CONFIG_STATUS
22512
echo >>$CONFIG_STATUS
22514
# Break up conftest.undefs because some shells have a limit on the size
22515
# of here documents, and old seds have small limits too (100 cmds).
22516
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
22517
rm -f conftest.tail
22518
while grep . conftest.undefs >/dev/null
22520
# Write a limited-size here document to $tmp/undefs.sed.
22521
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
22522
# Speed up: don't consider the non `#undef'
22523
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
22524
# Work around the forget-to-reset-the-flag bug.
22525
echo 't clr' >>$CONFIG_STATUS
22526
echo ': clr' >>$CONFIG_STATUS
22527
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
22529
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
22531
mv $tmp/out $tmp/in
22533
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
22534
rm -f conftest.undefs
22535
mv conftest.tail conftest.undefs
22537
rm -f conftest.undefs
24681
rm -f conftest.defines conftest.tail
24683
echo "ac_result=$ac_in" >>$CONFIG_STATUS
22539
24684
cat >>$CONFIG_STATUS <<\_ACEOF
22540
# Let's still pretend it is `configure' which instantiates (i.e., don't
22541
# use $as_me), people would be surprised to read:
22542
# /* config.h. Generated by config.status. */
22543
if test x"$ac_file" = x-; then
22544
echo "/* Generated by configure. */" >$tmp/config.h
22546
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
22548
cat $tmp/in >>$tmp/config.h
22550
24685
if test x"$ac_file" != x-; then
22551
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24686
echo "/* $configure_input */" >"$tmp/config.h"
24687
cat "$ac_result" >>"$tmp/config.h"
24688
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22552
24689
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22553
24690
echo "$as_me: $ac_file is unchanged" >&6;}
22555
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
22556
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22557
X"$ac_file" : 'X\(//\)[^/]' \| \
22558
X"$ac_file" : 'X\(//\)$' \| \
22559
X"$ac_file" : 'X\(/\)' \| \
22560
. : '\(.\)' 2>/dev/null ||
22562
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22563
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22564
/^X\(\/\/\)$/{ s//\1/; q; }
22565
/^X\(\/\).*/{ s//\1/; q; }
22567
{ if $as_mkdir_p; then
22572
while test ! -d "$as_dir"; do
22573
as_dirs="$as_dir $as_dirs"
22574
as_dir=`(dirname "$as_dir") 2>/dev/null ||
22575
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22576
X"$as_dir" : 'X\(//\)[^/]' \| \
22577
X"$as_dir" : 'X\(//\)$' \| \
22578
X"$as_dir" : 'X\(/\)' \| \
22579
. : '\(.\)' 2>/dev/null ||
22581
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22582
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22583
/^X\(\/\/\)$/{ s//\1/; q; }
22584
/^X\(\/\).*/{ s//\1/; q; }
22587
test ! -n "$as_dirs" || mkdir $as_dirs
22588
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
22589
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
22590
{ (exit 1); exit 1; }; }; }
22592
24692
rm -f $ac_file
22593
mv $tmp/config.h $ac_file
24693
mv "$tmp/config.h" $ac_file
22597
rm -f $tmp/config.h
24696
echo "/* $configure_input */"
22599
24700
# Compute $ac_file's index in $config_headers.
22600
24701
_am_stamp_count=1
22601
24702
for _am_header in $config_headers :; do
22742
24747
# some people rename them; so instead we look at the file content.
22743
24748
# Grep'ing the first line is not enough: some people post-process
22744
24749
# each Makefile.in and add a new line on top of each file to say so.
22745
# So let's grep whole file.
22746
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22747
dirpart=`(dirname "$mf") 2>/dev/null ||
24750
# Grep'ing the whole file is not good either: AIX grep has a line
24751
# limit of 2048, but all sed's we know have understand at least 4000.
24752
if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
24753
dirpart=`$as_dirname -- "$mf" ||
22748
24754
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22749
24755
X"$mf" : 'X\(//\)[^/]' \| \
22750
24756
X"$mf" : 'X\(//\)$' \| \
22751
X"$mf" : 'X\(/\)' \| \
22752
. : '\(.\)' 2>/dev/null ||
24757
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22753
24758
echo X"$mf" |
22754
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22755
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22756
/^X\(\/\/\)$/{ s//\1/; q; }
22757
/^X\(\/\).*/{ s//\1/; q; }
24759
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24763
/^X\(\/\/\)[^/].*/{
22762
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
22763
# Extract the definition of DEP_FILES from the Makefile without
24779
# Extract the definition of DEPDIR, am__include, and am__quote
24780
# from the Makefile without running `make'.
22765
24781
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22766
24782
test -z "$DEPDIR" && continue
24783
am__include=`sed -n 's/^am__include = //p' < "$mf"`
24784
test -z "am__include" && continue
24785
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22767
24786
# When using ansi2knr, U may be empty or an underscore; expand it
22768
24787
U=`sed -n 's/^U = //p' < "$mf"`
22769
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
22770
# We invoke sed twice because it is the simplest approach to
22771
# changing $(DEPDIR) to its actual value in the expansion.
22772
for file in `sed -n '
22773
/^DEP_FILES = .*\\\\$/ {
22782
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24788
# Find all dependency output files, they are included files with
24789
# $(DEPDIR) in their names. We invoke sed twice because it is the
24790
# simplest approach to changing $(DEPDIR) to its actual value in the
24792
for file in `sed -n "
24793
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22783
24794
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22784
24795
# Make sure the directory exists.
22785
24796
test -f "$dirpart/$file" && continue
22786
fdir=`(dirname "$file") 2>/dev/null ||
24797
fdir=`$as_dirname -- "$file" ||
22787
24798
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22788
24799
X"$file" : 'X\(//\)[^/]' \| \
22789
24800
X"$file" : 'X\(//\)$' \| \
22790
X"$file" : 'X\(/\)' \| \
22791
. : '\(.\)' 2>/dev/null ||
24801
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22792
24802
echo X"$file" |
22793
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22794
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22795
/^X\(\/\/\)$/{ s//\1/; q; }
22796
/^X\(\/\).*/{ s//\1/; q; }
22798
{ if $as_mkdir_p; then
22799
mkdir -p $dirpart/$fdir
22801
as_dir=$dirpart/$fdir
24803
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24807
/^X\(\/\/\)[^/].*/{
24820
{ as_dir=$dirpart/$fdir
24822
-*) as_dir=./$as_dir;;
24824
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22803
while test ! -d "$as_dir"; do
22804
as_dirs="$as_dir $as_dirs"
22805
as_dir=`(dirname "$as_dir") 2>/dev/null ||
24828
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24829
*) as_qdir=$as_dir;;
24831
as_dirs="'$as_qdir' $as_dirs"
24832
as_dir=`$as_dirname -- "$as_dir" ||
22806
24833
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22807
24834
X"$as_dir" : 'X\(//\)[^/]' \| \
22808
24835
X"$as_dir" : 'X\(//\)$' \| \
22809
X"$as_dir" : 'X\(/\)' \| \
22810
. : '\(.\)' 2>/dev/null ||
24836
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22811
24837
echo X"$as_dir" |
22812
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
22813
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
22814
/^X\(\/\/\)$/{ s//\1/; q; }
22815
/^X\(\/\).*/{ s//\1/; q; }
24838
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24842
/^X\(\/\/\)[^/].*/{
24855
test -d "$as_dir" && break
22818
test ! -n "$as_dirs" || mkdir $as_dirs
22819
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22820
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24857
test -z "$as_dirs" || eval "mkdir $as_dirs"
24858
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24859
echo "$as_me: error: cannot create directory $as_dir" >&2;}
22821
24860
{ (exit 1); exit 1; }; }; }
22823
24861
# echo "creating $dirpart/$file"
22824
24862
echo '# dummy' > "$dirpart/$file"
22829
for ac_file in $CONFIG_FILES; do
22830
# Support "outfile[:infile[:infile...]]"
22832
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
22834
# PO directories have a Makefile.in generated from Makefile.in.in.
22835
case "$ac_file" in */Makefile.in)
22836
# Adjust a relative srcdir.
22837
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
22838
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
22839
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
22840
# In autoconf-2.13 it is called $ac_given_srcdir.
22841
# In autoconf-2.50 it is called $srcdir.
22842
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
22843
case "$ac_given_srcdir" in
22844
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
22845
/*) top_srcdir="$ac_given_srcdir" ;;
22846
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
22848
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
22849
rm -f "$ac_dir/POTFILES"
22850
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
22851
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
22852
POMAKEFILEDEPS="POTFILES.in"
22853
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
22854
# on $ac_dir but don't depend on user-specified configuration
22856
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
22857
# The LINGUAS file contains the set of available languages.
22858
if test -n "$OBSOLETE_ALL_LINGUAS"; then
22859
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
22861
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
22862
# Hide the ALL_LINGUAS assigment from automake.
22863
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
22864
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
22866
# The set of available languages was given in configure.in.
22867
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
22870
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
22871
# Compute UPDATEPOFILES
22872
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
22873
# Compute DUMMYPOFILES
22874
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
22876
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
22877
case "$ac_given_srcdir" in
22879
*) srcdirpre='$(srcdir)/' ;;
22885
for lang in $ALL_LINGUAS; do
22886
POFILES="$POFILES $srcdirpre$lang.po"
22887
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
22888
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
22889
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
22891
# CATALOGS depends on both $ac_dir and the user's LINGUAS
22892
# environment variable.
22894
if test -n "$ALL_LINGUAS"; then
22895
for presentlang in $ALL_LINGUAS; do
22897
if test "%UNSET%" != "$LINGUAS"; then
22898
desiredlanguages="$LINGUAS"
22900
desiredlanguages="$ALL_LINGUAS"
22902
for desiredlang in $desiredlanguages; do
22903
# Use the presentlang catalog if desiredlang is
22904
# a. equal to presentlang, or
22905
# b. a variant of presentlang (because in this case,
22906
# presentlang can be used as a fallback for messages
22907
# which are not translated in the desiredlang catalog).
22908
case "$desiredlang" in
22909
"$presentlang"*) useit=yes;;
22912
if test $useit = yes; then
22913
INST_LINGUAS="$INST_LINGUAS $presentlang"
22918
if test -n "$INST_LINGUAS"; then
22919
for lang in $INST_LINGUAS; do
22920
CATALOGS="$CATALOGS $lang.gmo"
22923
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
22924
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
22925
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
22926
if test -f "$f"; then
22928
*.orig | *.bak | *~) ;;
22929
*) cat "$f" >> "$ac_dir/Makefile" ;;
24867
for ac_file in $CONFIG_FILES; do
24868
# Support "outfile[:infile[:infile...]]"
24870
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24872
# PO directories have a Makefile.in generated from Makefile.in.in.
24873
case "$ac_file" in */Makefile.in)
24874
# Adjust a relative srcdir.
24875
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24876
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24877
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24878
# In autoconf-2.13 it is called $ac_given_srcdir.
24879
# In autoconf-2.50 it is called $srcdir.
24880
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24881
case "$ac_given_srcdir" in
24882
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24883
/*) top_srcdir="$ac_given_srcdir" ;;
24884
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24886
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24887
rm -f "$ac_dir/POTFILES"
24888
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24889
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24890
POMAKEFILEDEPS="POTFILES.in"
24891
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24892
# on $ac_dir but don't depend on user-specified configuration
24894
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24895
# The LINGUAS file contains the set of available languages.
24896
if test -n "$OBSOLETE_ALL_LINGUAS"; then
24897
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24899
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24900
# Hide the ALL_LINGUAS assigment from automake.
24901
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24902
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24904
# The set of available languages was given in configure.in.
24905
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24908
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24909
# Compute UPDATEPOFILES
24910
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24911
# Compute DUMMYPOFILES
24912
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24914
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24915
case "$ac_given_srcdir" in
24917
*) srcdirpre='$(srcdir)/' ;;
24923
for lang in $ALL_LINGUAS; do
24924
POFILES="$POFILES $srcdirpre$lang.po"
24925
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24926
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24927
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24929
# CATALOGS depends on both $ac_dir and the user's LINGUAS
24930
# environment variable.
24932
if test -n "$ALL_LINGUAS"; then
24933
for presentlang in $ALL_LINGUAS; do
24935
if test "%UNSET%" != "$LINGUAS"; then
24936
desiredlanguages="$LINGUAS"
24938
desiredlanguages="$ALL_LINGUAS"
24940
for desiredlang in $desiredlanguages; do
24941
# Use the presentlang catalog if desiredlang is
24942
# a. equal to presentlang, or
24943
# b. a variant of presentlang (because in this case,
24944
# presentlang can be used as a fallback for messages
24945
# which are not translated in the desiredlang catalog).
24946
case "$desiredlang" in
24947
"$presentlang"*) useit=yes;;
24950
if test $useit = yes; then
24951
INST_LINGUAS="$INST_LINGUAS $presentlang"
24956
if test -n "$INST_LINGUAS"; then
24957
for lang in $INST_LINGUAS; do
24958
CATALOGS="$CATALOGS $lang.gmo"
24961
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24962
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24963
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24964
if test -f "$f"; then
24966
*.orig | *.bak | *~) ;;
24967
*) cat "$f" >> "$ac_dir/Makefile" ;;
24976
for ac_file in $CONFIG_FILES; do
24977
# Support "outfile[:infile[:infile...]]"
24979
*:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24981
# PO directories have a Makefile.in generated from Makefile.in.in.
24982
case "$ac_file" in */Makefile.in)
24983
# Adjust a relative srcdir.
24984
ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24985
ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
24986
ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24987
# In autoconf-2.13 it is called $ac_given_srcdir.
24988
# In autoconf-2.50 it is called $srcdir.
24989
test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24990
case "$ac_given_srcdir" in
24991
.) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24992
/*) top_srcdir="$ac_given_srcdir" ;;
24993
*) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24995
if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24996
rm -f "$ac_dir/POTFILES"
24997
test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24998
cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24999
POMAKEFILEDEPS="POTFILES.in"
25000
# ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
25001
# on $ac_dir but don't depend on user-specified configuration
25003
if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
25004
# The LINGUAS file contains the set of available languages.
25005
if test -n "$OBSOLETE_ALL_LINGUAS"; then
25006
test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
25008
ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
25009
# Hide the ALL_LINGUAS assigment from automake.
25010
eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
25011
POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
25013
# The set of available languages was given in configure.in.
25014
eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
25017
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
25018
# Compute UPDATEPOFILES
25019
# as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
25020
# Compute DUMMYPOFILES
25021
# as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
25023
# as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
25024
case "$ac_given_srcdir" in
25026
*) srcdirpre='$(srcdir)/' ;;
25032
for lang in $ALL_LINGUAS; do
25033
POFILES="$POFILES $srcdirpre$lang.po"
25034
UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
25035
DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
25036
GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
25038
# CATALOGS depends on both $ac_dir and the user's LINGUAS
25039
# environment variable.
25041
if test -n "$ALL_LINGUAS"; then
25042
for presentlang in $ALL_LINGUAS; do
25044
if test "%UNSET%" != "$LINGUAS"; then
25045
desiredlanguages="$LINGUAS"
25047
desiredlanguages="$ALL_LINGUAS"
25049
for desiredlang in $desiredlanguages; do
25050
# Use the presentlang catalog if desiredlang is
25051
# a. equal to presentlang, or
25052
# b. a variant of presentlang (because in this case,
25053
# presentlang can be used as a fallback for messages
25054
# which are not translated in the desiredlang catalog).
25055
case "$desiredlang" in
25056
"$presentlang"*) useit=yes;;
25059
if test $useit = yes; then
25060
INST_LINGUAS="$INST_LINGUAS $presentlang"
25065
if test -n "$INST_LINGUAS"; then
25066
for lang in $INST_LINGUAS; do
25067
CATALOGS="$CATALOGS $lang.gmo"
25070
test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
25071
sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
25072
for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
25073
if test -f "$f"; then
25075
*.orig | *.bak | *~) ;;
25076
*) cat "$f" >> "$ac_dir/Makefile" ;;
22941
cat >>$CONFIG_STATUS <<\_ACEOF
22943
25089
{ (exit 0); exit 0; }