136
# Required to use basename.
137
if expr a : '\(a\)' >/dev/null 2>&1 &&
138
test "X`expr 00001 : '.*\(...\)'`" = X001; then
144
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
151
# Name of the executable.
152
as_me=`$as_basename -- "$0" ||
153
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154
X"$0" : 'X\(//\)$' \| \
155
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
157
sed '/^.*\/\([^/][^/]*\)\/*$/{
137
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
175
139
if test "x$CONFIG_SHELL" = x; then
176
if (eval ":") 2>/dev/null; then
140
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144
# is contrary to our usage. Disable this feature.
145
alias -g '\${1+\"\$@\"}'='\"\$@\"'
148
case \`(set -o) 2>/dev/null\` in #(
156
as_required="as_fn_return () { (exit \$1); }
157
as_fn_success () { as_fn_return 0; }
158
as_fn_failure () { as_fn_return 1; }
159
as_fn_ret_success () { return 0; }
160
as_fn_ret_failure () { return 1; }
163
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170
exitcode=1; echo positional parameters were not saved.
172
test x\$exitcode = x0 || exit 1"
173
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
test \$(( 1 + 1 )) = 2 || exit 1"
178
if (eval "$as_required") 2>/dev/null; then :
177
179
as_have_required=yes
179
181
as_have_required=no
182
if test $as_have_required = yes && (eval ":
192
as_func_ret_success () {
195
as_func_ret_failure () {
200
if as_func_success; then
204
echo as_func_success failed.
207
if as_func_failure; then
209
echo as_func_failure succeeded.
212
if as_func_ret_success; then
216
echo as_func_ret_success failed.
219
if as_func_ret_failure; then
221
echo as_func_ret_failure succeeded.
224
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
228
echo positional parameters were not saved.
231
test \$exitcode = 0) || { (exit 1); exit 1; }
236
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238
") 2> /dev/null; then
242
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243
188
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
246
191
test -z "$as_dir" && as_dir=.
249
195
for as_base in sh bash ksh sh5; do
250
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
196
# Try only shells that exist, to save several forks.
197
as_shell=$as_dir/$as_base
198
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200
CONFIG_SHELL=$as_shell as_have_required=yes
201
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
209
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211
CONFIG_SHELL=$SHELL as_have_required=yes
257
for as_shell in $as_candidate_shells $SHELL; do
258
# Try only shells that exist, to save several forks.
259
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260
{ ("$as_shell") 2> /dev/null <<\_ASEOF
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265
# is contrary to our usage. Disable this feature.
266
alias -g '${1+"$@"}'='"$@"'
269
case `(set -o) 2>/dev/null` in
270
*posix*) set -o posix ;;
279
CONFIG_SHELL=$as_shell
281
if { "$as_shell" 2> /dev/null <<\_ASEOF
282
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
285
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286
# is contrary to our usage. Disable this feature.
287
alias -g '${1+"$@"}'='"$@"'
290
case `(set -o) 2>/dev/null` in
291
*posix*) set -o posix ;;
307
as_func_ret_success () {
310
as_func_ret_failure () {
315
if as_func_success; then
319
echo as_func_success failed.
322
if as_func_failure; then
324
echo as_func_failure succeeded.
327
if as_func_ret_success; then
331
echo as_func_ret_success failed.
334
if as_func_ret_failure; then
336
echo as_func_ret_failure succeeded.
339
if ( set x; as_func_ret_success y && test x = "$1" ); then
343
echo positional parameters were not saved.
346
test $exitcode = 0) || { (exit 1); exit 1; }
351
test "x$as_lineno_1" != "x$as_lineno_2" &&
352
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
363
if test "x$CONFIG_SHELL" != x; then
364
for as_var in BASH_ENV ENV
365
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
216
if test "x$CONFIG_SHELL" != x; then :
217
# We cannot yet assume a decent shell, so we have to provide a
218
# neutralization value for shells without unset; and this also
219
# works around shells that cannot unset nonexistent variables.
220
# Preserve -v and -x to the replacement shell.
223
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
367
224
export CONFIG_SHELL
368
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
372
if test $as_have_required = no; then
373
echo This script requires a shell more modern than all the
374
echo shells that I found on your system. Please install a
375
echo modern shell, or manually run the script under such a
376
echo shell if you do have one.
377
{ (exit 1); exit 1; }
387
(eval "as_func_return () {
396
as_func_ret_success () {
399
as_func_ret_failure () {
404
if as_func_success; then
408
echo as_func_success failed.
411
if as_func_failure; then
413
echo as_func_failure succeeded.
416
if as_func_ret_success; then
420
echo as_func_ret_success failed.
423
if as_func_ret_failure; then
425
echo as_func_ret_failure succeeded.
428
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
432
echo positional parameters were not saved.
435
test \$exitcode = 0") || {
436
echo No shell found that supports shell functions.
437
echo Please tell bug-autoconf@gnu.org about your system,
438
echo including any error possibly output before this message.
439
echo This can help us improve future autoconf versions.
440
echo Configuration will now proceed without shell functions.
447
test "x$as_lineno_1" != "x$as_lineno_2" &&
448
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
450
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451
# uniformly replaced by the line number. The first 'sed' inserts a
452
# line-number line after each line using $LINENO; the second 'sed'
453
# does the real work. The second script uses 'N' to pair each
454
# line-number line with the line containing $LINENO, and appends
455
# trailing '-' during substitution so that $LINENO is not a special
457
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458
# scripts with optimization help from Paolo Bonzini. Blame Lee
459
# E. McMahon (1931-1989) for sed's syntax. :-)
226
*v*x* | *x*v* ) as_opts=-vx ;;
231
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
234
if test x$as_have_required = xno; then :
235
$as_echo "$0: This script requires a shell more modern than all"
236
$as_echo "$0: the shells that I found on your system."
237
if test x${ZSH_VERSION+set} = xset ; then
238
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
241
$as_echo "$0: Please tell bug-autoconf@gnu.org and
242
$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
243
$0: about your system, including any error possibly output
244
$0: before this message. Then install a modern shell, or
245
$0: manually run the script under such a shell if you do
252
SHELL=${CONFIG_SHELL-/bin/sh}
254
# Unset more variables known to interfere with behavior of common tools.
255
CLICOLOR_FORCE= GREP_OPTIONS=
256
unset CLICOLOR_FORCE GREP_OPTIONS
258
## --------------------- ##
259
## M4sh Shell Functions. ##
260
## --------------------- ##
263
# Portably unset VAR.
266
{ eval $1=; unset $1;}
270
# as_fn_set_status STATUS
271
# -----------------------
272
# Set $? to STATUS, without forking.
280
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
290
# Create "$as_dir" as a directory, including parents if necessary.
295
-*) as_dir=./$as_dir;;
297
test -d "$as_dir" || eval $as_mkdir_p || {
301
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
304
as_dirs="'$as_qdir' $as_dirs"
305
as_dir=`$as_dirname -- "$as_dir" ||
306
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
307
X"$as_dir" : 'X\(//\)[^/]' \| \
308
X"$as_dir" : 'X\(//\)$' \| \
309
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
310
$as_echo X"$as_dir" |
311
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
328
test -d "$as_dir" && break
330
test -z "$as_dirs" || eval "mkdir $as_dirs"
331
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
335
# as_fn_append VAR VALUE
336
# ----------------------
337
# Append the text in VALUE to the end of the definition contained in VAR. Take
338
# advantage of any shell optimizations that allow amortized linear growth over
339
# repeated appends, instead of the typical quadratic growth present in naive
341
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
342
eval 'as_fn_append ()
355
# Perform arithmetic evaluation on the ARGs, and store the result in the
356
# global $as_val. Take advantage of shells that can avoid forks. The arguments
357
# must be portable across $(()) and expr.
358
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
366
as_val=`expr "$@" || test $? -eq 1`
371
# as_fn_error STATUS ERROR [LINENO LOG_FD]
372
# ----------------------------------------
373
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
374
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
375
# script with STATUS, using 1 if that was 0.
378
as_status=$1; test $as_status -eq 0 && as_status=1
380
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
381
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
383
$as_echo "$as_me: error: $2" >&2
384
as_fn_exit $as_status
387
if expr a : '\(a\)' >/dev/null 2>&1 &&
388
test "X`expr 00001 : '.*\(...\)'`" = X001; then
394
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
400
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
406
as_me=`$as_basename -- "$0" ||
407
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
408
X"$0" : 'X\(//\)$' \| \
409
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
411
sed '/^.*\/\([^/][^/]*\)\/*$/{
425
# Avoid depending upon Character Ranges.
426
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
427
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
428
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
429
as_cr_digits='0123456789'
430
as_cr_alnum=$as_cr_Letters$as_cr_digits
433
as_lineno_1=$LINENO as_lineno_1a=$LINENO
434
as_lineno_2=$LINENO as_lineno_2a=$LINENO
435
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
436
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
437
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
1487
1444
test -n "$ac_init_help" && exit $ac_status
1488
1445
if $ac_init_version; then
1490
xbitmaps configure 1.1.0
1491
generated by GNU Autoconf 2.63
1447
xbitmaps configure 1.1.1
1448
generated by GNU Autoconf 2.68
1493
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1494
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1450
Copyright (C) 2010 Free Software Foundation, Inc.
1495
1451
This configure script is free software; the Free Software Foundation
1496
1452
gives unlimited permission to copy, distribute and modify it.
1457
## ------------------------ ##
1458
## Autoconf initialization. ##
1459
## ------------------------ ##
1461
# ac_fn_c_try_compile LINENO
1462
# --------------------------
1463
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1464
ac_fn_c_try_compile ()
1466
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1467
rm -f conftest.$ac_objext
1468
if { { ac_try="$ac_compile"
1470
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1471
*) ac_try_echo=$ac_try;;
1473
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1474
$as_echo "$ac_try_echo"; } >&5
1475
(eval "$ac_compile") 2>conftest.err
1477
if test -s conftest.err; then
1478
grep -v '^ *+' conftest.err >conftest.er1
1479
cat conftest.er1 >&5
1480
mv -f conftest.er1 conftest.err
1482
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483
test $ac_status = 0; } && {
1484
test -z "$ac_c_werror_flag" ||
1485
test ! -s conftest.err
1486
} && test -s conftest.$ac_objext; then :
1489
$as_echo "$as_me: failed program was:" >&5
1490
sed 's/^/| /' conftest.$ac_ext >&5
1494
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1495
as_fn_set_status $ac_retval
1497
} # ac_fn_c_try_compile
1499
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1500
# ---------------------------------------------
1501
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1503
ac_fn_c_check_decl ()
1505
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1506
as_decl_name=`echo $2|sed 's/ *(.*//'`
1507
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1508
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1509
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1510
if eval \${$3+:} false; then :
1511
$as_echo_n "(cached) " >&6
1513
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1514
/* end confdefs.h. */
1519
#ifndef $as_decl_name
1521
(void) $as_decl_use;
1523
(void) $as_decl_name;
1531
if ac_fn_c_try_compile "$LINENO"; then :
1536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1539
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1540
$as_echo "$ac_res" >&6; }
1541
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1543
} # ac_fn_c_check_decl
1545
# ac_fn_c_try_cpp LINENO
1546
# ----------------------
1547
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1550
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551
if { { ac_try="$ac_cpp conftest.$ac_ext"
1553
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554
*) ac_try_echo=$ac_try;;
1556
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557
$as_echo "$ac_try_echo"; } >&5
1558
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1560
if test -s conftest.err; then
1561
grep -v '^ *+' conftest.err >conftest.er1
1562
cat conftest.er1 >&5
1563
mv -f conftest.er1 conftest.err
1565
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566
test $ac_status = 0; } > conftest.i && {
1567
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1568
test ! -s conftest.err
1572
$as_echo "$as_me: failed program was:" >&5
1573
sed 's/^/| /' conftest.$ac_ext >&5
1577
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578
as_fn_set_status $ac_retval
1582
# ac_fn_c_try_run LINENO
1583
# ----------------------
1584
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1585
# that executables *can* be run.
1588
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589
if { { ac_try="$ac_link"
1591
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592
*) ac_try_echo=$ac_try;;
1594
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595
$as_echo "$ac_try_echo"; } >&5
1596
(eval "$ac_link") 2>&5
1598
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1600
{ { case "(($ac_try" in
1601
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602
*) ac_try_echo=$ac_try;;
1604
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605
$as_echo "$ac_try_echo"; } >&5
1606
(eval "$ac_try") 2>&5
1608
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609
test $ac_status = 0; }; }; then :
1612
$as_echo "$as_me: program exited with status $ac_status" >&5
1613
$as_echo "$as_me: failed program was:" >&5
1614
sed 's/^/| /' conftest.$ac_ext >&5
1616
ac_retval=$ac_status
1618
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1619
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
as_fn_set_status $ac_retval
1624
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1625
# -------------------------------------------------------
1626
# Tests whether HEADER exists and can be compiled using the include files in
1627
# INCLUDES, setting the cache variable VAR accordingly.
1628
ac_fn_c_check_header_compile ()
1630
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1631
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1632
$as_echo_n "checking for $2... " >&6; }
1633
if eval \${$3+:} false; then :
1634
$as_echo_n "(cached) " >&6
1636
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637
/* end confdefs.h. */
1641
if ac_fn_c_try_compile "$LINENO"; then :
1646
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1650
$as_echo "$ac_res" >&6; }
1651
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
} # ac_fn_c_check_header_compile
1500
1654
cat >config.log <<_ACEOF
1501
1655
This file contains any messages produced by compilers while
1502
1656
running configure, to aid debugging if configure makes a mistake.
1504
It was created by xbitmaps $as_me 1.1.0, which was
1505
generated by GNU Autoconf 2.63. Invocation command line was
1658
It was created by xbitmaps $as_me 1.1.1, which was
1659
generated by GNU Autoconf 2.68. Invocation command line was
3023
if test -z "$ac_file"; then :
3024
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3025
$as_echo "no" >&6; }
3026
$as_echo "$as_me: failed program was:" >&5
3027
sed 's/^/| /' conftest.$ac_ext >&5
2922
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3029
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3030
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3031
as_fn_error 77 "C compiler cannot create executables
3032
See \`config.log' for more details" "$LINENO" 5; }
3034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3035
$as_echo "yes" >&6; }
3037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3038
$as_echo_n "checking for C compiler default output file name... " >&6; }
3039
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2923
3040
$as_echo "$ac_file" >&6; }
2924
if test -z "$ac_file"; then
2925
$as_echo "$as_me: failed program was:" >&5
2926
sed 's/^/| /' conftest.$ac_ext >&5
2928
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2929
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2931
See \`config.log' for more details." >&5
2932
$as_echo "$as_me: error: C compiler cannot create executables
2933
See \`config.log' for more details." >&2;}
2934
{ (exit 77); exit 77; }; }; }
2937
3041
ac_exeext=$ac_cv_exeext
2939
# Check that the compiler produces executables we can run. If not, either
2940
# the compiler is broken, or we cross compile.
2941
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2942
$as_echo_n "checking whether the C compiler works... " >&6; }
2943
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2944
# If not cross compiling, check that we can run a simple program.
2945
if test "$cross_compiling" != yes; then
2946
if { ac_try='./$ac_file'
2947
{ (case "(($ac_try" in
2948
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2949
*) ac_try_echo=$ac_try;;
2951
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2952
$as_echo "$ac_try_echo") >&5
2953
(eval "$ac_try") 2>&5
2955
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2956
(exit $ac_status); }; }; then
2959
if test "$cross_compiling" = maybe; then
2962
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2963
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2964
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2965
If you meant to cross compile, use \`--host'.
2966
See \`config.log' for more details." >&5
2967
$as_echo "$as_me: error: cannot run C compiled programs.
2968
If you meant to cross compile, use \`--host'.
2969
See \`config.log' for more details." >&2;}
2970
{ (exit 1); exit 1; }; }; }
2974
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2975
$as_echo "yes" >&6; }
2977
3043
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2978
3044
ac_clean_files=$ac_clean_files_save
2979
# Check that the compiler produces executables we can run. If not, either
2980
# the compiler is broken, or we cross compile.
2981
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2982
$as_echo_n "checking whether we are cross compiling... " >&6; }
2983
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2984
$as_echo "$cross_compiling" >&6; }
2986
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3045
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2987
3046
$as_echo_n "checking for suffix of executables... " >&6; }
2988
if { (ac_try="$ac_link"
3047
if { { ac_try="$ac_link"
2989
3048
case "(($ac_try" in
2990
3049
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2991
3050
*) ac_try_echo=$ac_try;;
2993
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2994
$as_echo "$ac_try_echo") >&5
3052
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053
$as_echo "$ac_try_echo"; } >&5
2995
3054
(eval "$ac_link") 2>&5
2997
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2998
(exit $ac_status); }; then
3056
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057
test $ac_status = 0; }; then :
2999
3058
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3000
3059
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3001
3060
# work properly (i.e., refer to `conftest.exe'), while it won't with
3556
ac_cpp='$CPP $CPPFLAGS'
3557
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3558
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3559
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3560
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3561
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3562
# On Suns, sometimes $CPP names a directory.
3563
if test -n "$CPP" && test -d "$CPP"; then
3566
if test -z "$CPP"; then
3567
if test "${ac_cv_prog_CPP+set}" = set; then
3568
$as_echo_n "(cached) " >&6
3570
# Double quotes because CPP needs to be expanded
3571
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3574
for ac_c_preproc_warn_flag in '' yes
3576
# Use a header file that comes with gcc, so configuring glibc
3577
# with a fresh cross-compiler works.
3578
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3579
# <limits.h> exists even on freestanding compilers.
3580
# On the NeXT, cc -E runs the code through the compiler's parser,
3581
# not just through cpp. "Syntax error" is here to catch this case.
3582
cat >conftest.$ac_ext <<_ACEOF
3585
cat confdefs.h >>conftest.$ac_ext
3586
cat >>conftest.$ac_ext <<_ACEOF
3587
/* end confdefs.h. */
3589
# include <limits.h>
3591
# include <assert.h>
3595
if { (ac_try="$ac_cpp conftest.$ac_ext"
3597
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598
*) ac_try_echo=$ac_try;;
3600
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3601
$as_echo "$ac_try_echo") >&5
3602
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3604
grep -v '^ *+' conftest.er1 >conftest.err
3606
cat conftest.err >&5
3607
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608
(exit $ac_status); } >/dev/null && {
3609
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3610
test ! -s conftest.err
3614
$as_echo "$as_me: failed program was:" >&5
3615
sed 's/^/| /' conftest.$ac_ext >&5
3617
# Broken: fails on valid input.
3621
rm -f conftest.err conftest.$ac_ext
3623
# OK, works on sane cases. Now check whether nonexistent headers
3624
# can be detected and how.
3625
cat >conftest.$ac_ext <<_ACEOF
3628
cat confdefs.h >>conftest.$ac_ext
3629
cat >>conftest.$ac_ext <<_ACEOF
3630
/* end confdefs.h. */
3631
#include <ac_nonexistent.h>
3633
if { (ac_try="$ac_cpp conftest.$ac_ext"
3635
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636
*) ac_try_echo=$ac_try;;
3638
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3639
$as_echo "$ac_try_echo") >&5
3640
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3642
grep -v '^ *+' conftest.er1 >conftest.err
3644
cat conftest.err >&5
3645
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646
(exit $ac_status); } >/dev/null && {
3647
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3648
test ! -s conftest.err
3650
# Broken: success on invalid input.
3653
$as_echo "$as_me: failed program was:" >&5
3654
sed 's/^/| /' conftest.$ac_ext >&5
3656
# Passes both tests.
3661
rm -f conftest.err conftest.$ac_ext
3664
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3665
rm -f conftest.err conftest.$ac_ext
3666
if $ac_preproc_ok; then
3678
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3679
$as_echo "$CPP" >&6; }
3681
for ac_c_preproc_warn_flag in '' yes
3683
# Use a header file that comes with gcc, so configuring glibc
3684
# with a fresh cross-compiler works.
3685
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3686
# <limits.h> exists even on freestanding compilers.
3687
# On the NeXT, cc -E runs the code through the compiler's parser,
3688
# not just through cpp. "Syntax error" is here to catch this case.
3689
cat >conftest.$ac_ext <<_ACEOF
3692
cat confdefs.h >>conftest.$ac_ext
3693
cat >>conftest.$ac_ext <<_ACEOF
3694
/* end confdefs.h. */
3696
# include <limits.h>
3698
# include <assert.h>
3702
if { (ac_try="$ac_cpp conftest.$ac_ext"
3704
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705
*) ac_try_echo=$ac_try;;
3707
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3708
$as_echo "$ac_try_echo") >&5
3709
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3711
grep -v '^ *+' conftest.er1 >conftest.err
3713
cat conftest.err >&5
3714
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715
(exit $ac_status); } >/dev/null && {
3716
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3717
test ! -s conftest.err
3721
$as_echo "$as_me: failed program was:" >&5
3722
sed 's/^/| /' conftest.$ac_ext >&5
3724
# Broken: fails on valid input.
3728
rm -f conftest.err conftest.$ac_ext
3730
# OK, works on sane cases. Now check whether nonexistent headers
3731
# can be detected and how.
3732
cat >conftest.$ac_ext <<_ACEOF
3735
cat confdefs.h >>conftest.$ac_ext
3736
cat >>conftest.$ac_ext <<_ACEOF
3737
/* end confdefs.h. */
3738
#include <ac_nonexistent.h>
3740
if { (ac_try="$ac_cpp conftest.$ac_ext"
3742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3743
*) ac_try_echo=$ac_try;;
3745
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3746
$as_echo "$ac_try_echo") >&5
3747
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3749
grep -v '^ *+' conftest.er1 >conftest.err
3751
cat conftest.err >&5
3752
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753
(exit $ac_status); } >/dev/null && {
3754
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3755
test ! -s conftest.err
3757
# Broken: success on invalid input.
3760
$as_echo "$as_me: failed program was:" >&5
3761
sed 's/^/| /' conftest.$ac_ext >&5
3763
# Passes both tests.
3768
rm -f conftest.err conftest.$ac_ext
3771
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3772
rm -f conftest.err conftest.$ac_ext
3773
if $ac_preproc_ok; then
3776
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3777
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3778
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3779
See \`config.log' for more details." >&5
3780
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3781
See \`config.log' for more details." >&2;}
3782
{ (exit 1); exit 1; }; }; }
3786
ac_cpp='$CPP $CPPFLAGS'
3787
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3788
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3789
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3792
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3793
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3794
if test "${ac_cv_path_GREP+set}" = set; then
3795
$as_echo_n "(cached) " >&6
3797
if test -z "$GREP"; then
3798
ac_path_GREP_found=false
3799
# Loop through the user's path and test for each of PROGNAME-LIST
3800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3804
test -z "$as_dir" && as_dir=.
3805
for ac_prog in grep ggrep; do
3806
for ac_exec_ext in '' $ac_executable_extensions; do
3807
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3808
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3809
# Check for GNU ac_path_GREP and select it if it is found.
3810
# Check for GNU $ac_path_GREP
3811
case `"$ac_path_GREP" --version 2>&1` in
3813
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3816
$as_echo_n 0123456789 >"conftest.in"
3819
cat "conftest.in" "conftest.in" >"conftest.tmp"
3820
mv "conftest.tmp" "conftest.in"
3821
cp "conftest.in" "conftest.nl"
3822
$as_echo 'GREP' >> "conftest.nl"
3823
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3824
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3825
ac_count=`expr $ac_count + 1`
3826
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3827
# Best one so far, save it but keep looking for a better one
3828
ac_cv_path_GREP="$ac_path_GREP"
3829
ac_path_GREP_max=$ac_count
3831
# 10*(2^10) chars as input seems more than enough
3832
test $ac_count -gt 10 && break
3834
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3837
$ac_path_GREP_found && break 3
3842
if test -z "$ac_cv_path_GREP"; then
3843
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3844
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3845
{ (exit 1); exit 1; }; }
3848
ac_cv_path_GREP=$GREP
3852
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3853
$as_echo "$ac_cv_path_GREP" >&6; }
3854
GREP="$ac_cv_path_GREP"
3857
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3858
$as_echo_n "checking for egrep... " >&6; }
3859
if test "${ac_cv_path_EGREP+set}" = set; then
3860
$as_echo_n "(cached) " >&6
3862
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3863
then ac_cv_path_EGREP="$GREP -E"
3865
if test -z "$EGREP"; then
3866
ac_path_EGREP_found=false
3867
# Loop through the user's path and test for each of PROGNAME-LIST
3868
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3869
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3872
test -z "$as_dir" && as_dir=.
3873
for ac_prog in egrep; do
3874
for ac_exec_ext in '' $ac_executable_extensions; do
3875
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3876
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3877
# Check for GNU ac_path_EGREP and select it if it is found.
3878
# Check for GNU $ac_path_EGREP
3879
case `"$ac_path_EGREP" --version 2>&1` in
3881
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3884
$as_echo_n 0123456789 >"conftest.in"
3887
cat "conftest.in" "conftest.in" >"conftest.tmp"
3888
mv "conftest.tmp" "conftest.in"
3889
cp "conftest.in" "conftest.nl"
3890
$as_echo 'EGREP' >> "conftest.nl"
3891
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3892
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3893
ac_count=`expr $ac_count + 1`
3894
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3895
# Best one so far, save it but keep looking for a better one
3896
ac_cv_path_EGREP="$ac_path_EGREP"
3897
ac_path_EGREP_max=$ac_count
3899
# 10*(2^10) chars as input seems more than enough
3900
test $ac_count -gt 10 && break
3902
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3905
$ac_path_EGREP_found && break 3
3910
if test -z "$ac_cv_path_EGREP"; then
3911
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3912
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3913
{ (exit 1); exit 1; }; }
3916
ac_cv_path_EGREP=$EGREP
3921
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3922
$as_echo "$ac_cv_path_EGREP" >&6; }
3923
EGREP="$ac_cv_path_EGREP"
3926
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3927
$as_echo_n "checking for ANSI C header files... " >&6; }
3928
if test "${ac_cv_header_stdc+set}" = set; then
3929
$as_echo_n "(cached) " >&6
3931
cat >conftest.$ac_ext <<_ACEOF
3934
cat confdefs.h >>conftest.$ac_ext
3935
cat >>conftest.$ac_ext <<_ACEOF
3936
/* end confdefs.h. */
3950
rm -f conftest.$ac_objext
3951
if { (ac_try="$ac_compile"
3953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954
*) ac_try_echo=$ac_try;;
3956
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3957
$as_echo "$ac_try_echo") >&5
3958
(eval "$ac_compile") 2>conftest.er1
3960
grep -v '^ *+' conftest.er1 >conftest.err
3962
cat conftest.err >&5
3963
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964
(exit $ac_status); } && {
3965
test -z "$ac_c_werror_flag" ||
3966
test ! -s conftest.err
3967
} && test -s conftest.$ac_objext; then
3968
ac_cv_header_stdc=yes
3970
$as_echo "$as_me: failed program was:" >&5
3971
sed 's/^/| /' conftest.$ac_ext >&5
3973
ac_cv_header_stdc=no
3976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3978
if test $ac_cv_header_stdc = yes; then
3979
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3980
cat >conftest.$ac_ext <<_ACEOF
3983
cat confdefs.h >>conftest.$ac_ext
3984
cat >>conftest.$ac_ext <<_ACEOF
3985
/* end confdefs.h. */
3989
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3990
$EGREP "memchr" >/dev/null 2>&1; then
3993
ac_cv_header_stdc=no
3999
if test $ac_cv_header_stdc = yes; then
4000
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4001
cat >conftest.$ac_ext <<_ACEOF
4004
cat confdefs.h >>conftest.$ac_ext
4005
cat >>conftest.$ac_ext <<_ACEOF
4006
/* end confdefs.h. */
4010
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4011
$EGREP "free" >/dev/null 2>&1; then
4014
ac_cv_header_stdc=no
4020
if test $ac_cv_header_stdc = yes; then
4021
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4022
if test "$cross_compiling" = yes; then
4025
cat >conftest.$ac_ext <<_ACEOF
4028
cat confdefs.h >>conftest.$ac_ext
4029
cat >>conftest.$ac_ext <<_ACEOF
4030
/* end confdefs.h. */
4033
#if ((' ' & 0x0FF) == 0x020)
4034
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4035
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4037
# define ISLOWER(c) \
4038
(('a' <= (c) && (c) <= 'i') \
4039
|| ('j' <= (c) && (c) <= 'r') \
4040
|| ('s' <= (c) && (c) <= 'z'))
4041
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4044
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4049
for (i = 0; i < 256; i++)
4050
if (XOR (islower (i), ISLOWER (i))
4051
|| toupper (i) != TOUPPER (i))
4056
rm -f conftest$ac_exeext
4057
if { (ac_try="$ac_link"
4059
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060
*) ac_try_echo=$ac_try;;
4062
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4063
$as_echo "$ac_try_echo") >&5
4064
(eval "$ac_link") 2>&5
4066
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4067
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4068
{ (case "(($ac_try" in
4069
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070
*) ac_try_echo=$ac_try;;
4072
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4073
$as_echo "$ac_try_echo") >&5
4074
(eval "$ac_try") 2>&5
4076
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4077
(exit $ac_status); }; }; then
4080
$as_echo "$as_me: program exited with status $ac_status" >&5
4081
$as_echo "$as_me: failed program was:" >&5
4082
sed 's/^/| /' conftest.$ac_ext >&5
4085
ac_cv_header_stdc=no
4087
rm -rf conftest.dSYM
4088
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4094
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4095
$as_echo "$ac_cv_header_stdc" >&6; }
4096
if test $ac_cv_header_stdc = yes; then
4098
cat >>confdefs.h <<\_ACEOF
4099
#define STDC_HEADERS 1
4104
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4114
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4115
inttypes.h stdint.h unistd.h
4117
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4118
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4119
$as_echo_n "checking for $ac_header... " >&6; }
4120
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4121
$as_echo_n "(cached) " >&6
4123
cat >conftest.$ac_ext <<_ACEOF
4126
cat confdefs.h >>conftest.$ac_ext
4127
cat >>conftest.$ac_ext <<_ACEOF
4128
/* end confdefs.h. */
4129
$ac_includes_default
4131
#include <$ac_header>
4133
rm -f conftest.$ac_objext
4134
if { (ac_try="$ac_compile"
4136
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137
*) ac_try_echo=$ac_try;;
4139
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4140
$as_echo "$ac_try_echo") >&5
4141
(eval "$ac_compile") 2>conftest.er1
4143
grep -v '^ *+' conftest.er1 >conftest.err
4145
cat conftest.err >&5
4146
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147
(exit $ac_status); } && {
4148
test -z "$ac_c_werror_flag" ||
4149
test ! -s conftest.err
4150
} && test -s conftest.$ac_objext; then
4151
eval "$as_ac_Header=yes"
4153
$as_echo "$as_me: failed program was:" >&5
4154
sed 's/^/| /' conftest.$ac_ext >&5
4156
eval "$as_ac_Header=no"
4159
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4161
ac_res=`eval 'as_val=${'$as_ac_Header'}
4162
$as_echo "$as_val"'`
4163
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4164
$as_echo "$ac_res" >&6; }
4165
as_val=`eval 'as_val=${'$as_ac_Header'}
4166
$as_echo "$as_val"'`
4167
if test "x$as_val" = x""yes; then
4168
cat >>confdefs.h <<_ACEOF
4169
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4177
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4178
3534
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4179
if test "${ac_cv_prog_cc_c99+set}" = set; then
3535
if ${ac_cv_prog_cc_c99+:} false; then :
4180
3536
$as_echo_n "(cached) " >&6
4182
3538
ac_cv_prog_cc_c99=no
4184
cat >conftest.$ac_ext <<_ACEOF
4187
cat confdefs.h >>conftest.$ac_ext
4188
cat >>conftest.$ac_ext <<_ACEOF
3540
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189
3541
/* end confdefs.h. */
4190
3542
#include <stdarg.h>
4191
3543
#include <stdbool.h>
4364
3693
case "x$ac_cv_prog_cc_c99" in
4366
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4367
3696
$as_echo "none needed" >&6; } ;;
4369
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
3698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4370
3699
$as_echo "unsupported" >&6; } ;;
4372
3701
CC="$CC $ac_cv_prog_cc_c99"
4373
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4374
3703
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3705
if test "x$ac_cv_prog_cc_c99" != xno; then :
3712
ac_cpp='$CPP $CPPFLAGS'
3713
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3714
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3715
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3717
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3718
# On Suns, sometimes $CPP names a directory.
3719
if test -n "$CPP" && test -d "$CPP"; then
3722
if test -z "$CPP"; then
3723
if ${ac_cv_prog_CPP+:} false; then :
3724
$as_echo_n "(cached) " >&6
3726
# Double quotes because CPP needs to be expanded
3727
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3730
for ac_c_preproc_warn_flag in '' yes
3732
# Use a header file that comes with gcc, so configuring glibc
3733
# with a fresh cross-compiler works.
3734
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3735
# <limits.h> exists even on freestanding compilers.
3736
# On the NeXT, cc -E runs the code through the compiler's parser,
3737
# not just through cpp. "Syntax error" is here to catch this case.
3738
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739
/* end confdefs.h. */
3741
# include <limits.h>
3743
# include <assert.h>
3747
if ac_fn_c_try_cpp "$LINENO"; then :
3750
# Broken: fails on valid input.
3753
rm -f conftest.err conftest.i conftest.$ac_ext
3755
# OK, works on sane cases. Now check whether nonexistent headers
3756
# can be detected and how.
3757
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3758
/* end confdefs.h. */
3759
#include <ac_nonexistent.h>
3761
if ac_fn_c_try_cpp "$LINENO"; then :
3762
# Broken: success on invalid input.
3765
# Passes both tests.
3769
rm -f conftest.err conftest.i conftest.$ac_ext
3772
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3773
rm -f conftest.i conftest.err conftest.$ac_ext
3774
if $ac_preproc_ok; then :
3786
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3787
$as_echo "$CPP" >&6; }
3789
for ac_c_preproc_warn_flag in '' yes
3791
# Use a header file that comes with gcc, so configuring glibc
3792
# with a fresh cross-compiler works.
3793
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3794
# <limits.h> exists even on freestanding compilers.
3795
# On the NeXT, cc -E runs the code through the compiler's parser,
3796
# not just through cpp. "Syntax error" is here to catch this case.
3797
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3798
/* end confdefs.h. */
3800
# include <limits.h>
3802
# include <assert.h>
3806
if ac_fn_c_try_cpp "$LINENO"; then :
3809
# Broken: fails on valid input.
3812
rm -f conftest.err conftest.i conftest.$ac_ext
3814
# OK, works on sane cases. Now check whether nonexistent headers
3815
# can be detected and how.
3816
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817
/* end confdefs.h. */
3818
#include <ac_nonexistent.h>
3820
if ac_fn_c_try_cpp "$LINENO"; then :
3821
# Broken: success on invalid input.
3824
# Passes both tests.
3828
rm -f conftest.err conftest.i conftest.$ac_ext
3831
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3832
rm -f conftest.i conftest.err conftest.$ac_ext
3833
if $ac_preproc_ok; then :
3836
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3837
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3838
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3839
See \`config.log' for more details" "$LINENO" 5; }
3843
ac_cpp='$CPP $CPPFLAGS'
3844
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3845
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3846
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3849
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3850
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3851
if ${ac_cv_path_GREP+:} false; then :
3852
$as_echo_n "(cached) " >&6
3854
if test -z "$GREP"; then
3855
ac_path_GREP_found=false
3856
# Loop through the user's path and test for each of PROGNAME-LIST
3857
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3861
test -z "$as_dir" && as_dir=.
3862
for ac_prog in grep ggrep; do
3863
for ac_exec_ext in '' $ac_executable_extensions; do
3864
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3865
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3866
# Check for GNU ac_path_GREP and select it if it is found.
3867
# Check for GNU $ac_path_GREP
3868
case `"$ac_path_GREP" --version 2>&1` in
3870
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3873
$as_echo_n 0123456789 >"conftest.in"
3876
cat "conftest.in" "conftest.in" >"conftest.tmp"
3877
mv "conftest.tmp" "conftest.in"
3878
cp "conftest.in" "conftest.nl"
3879
$as_echo 'GREP' >> "conftest.nl"
3880
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3881
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3882
as_fn_arith $ac_count + 1 && ac_count=$as_val
3883
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3884
# Best one so far, save it but keep looking for a better one
3885
ac_cv_path_GREP="$ac_path_GREP"
3886
ac_path_GREP_max=$ac_count
3888
# 10*(2^10) chars as input seems more than enough
3889
test $ac_count -gt 10 && break
3891
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3894
$ac_path_GREP_found && break 3
3899
if test -z "$ac_cv_path_GREP"; then
3900
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3903
ac_cv_path_GREP=$GREP
3907
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3908
$as_echo "$ac_cv_path_GREP" >&6; }
3909
GREP="$ac_cv_path_GREP"
3912
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3913
$as_echo_n "checking for egrep... " >&6; }
3914
if ${ac_cv_path_EGREP+:} false; then :
3915
$as_echo_n "(cached) " >&6
3917
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3918
then ac_cv_path_EGREP="$GREP -E"
3920
if test -z "$EGREP"; then
3921
ac_path_EGREP_found=false
3922
# Loop through the user's path and test for each of PROGNAME-LIST
3923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3924
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3927
test -z "$as_dir" && as_dir=.
3928
for ac_prog in egrep; do
3929
for ac_exec_ext in '' $ac_executable_extensions; do
3930
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3931
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3932
# Check for GNU ac_path_EGREP and select it if it is found.
3933
# Check for GNU $ac_path_EGREP
3934
case `"$ac_path_EGREP" --version 2>&1` in
3936
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3939
$as_echo_n 0123456789 >"conftest.in"
3942
cat "conftest.in" "conftest.in" >"conftest.tmp"
3943
mv "conftest.tmp" "conftest.in"
3944
cp "conftest.in" "conftest.nl"
3945
$as_echo 'EGREP' >> "conftest.nl"
3946
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3947
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3948
as_fn_arith $ac_count + 1 && ac_count=$as_val
3949
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3950
# Best one so far, save it but keep looking for a better one
3951
ac_cv_path_EGREP="$ac_path_EGREP"
3952
ac_path_EGREP_max=$ac_count
3954
# 10*(2^10) chars as input seems more than enough
3955
test $ac_count -gt 10 && break
3957
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3960
$ac_path_EGREP_found && break 3
3965
if test -z "$ac_cv_path_EGREP"; then
3966
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3969
ac_cv_path_EGREP=$EGREP
3974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3975
$as_echo "$ac_cv_path_EGREP" >&6; }
3976
EGREP="$ac_cv_path_EGREP"
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3980
$as_echo_n "checking for ANSI C header files... " >&6; }
3981
if ${ac_cv_header_stdc+:} false; then :
3982
$as_echo_n "(cached) " >&6
3984
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3985
/* end confdefs.h. */
3999
if ac_fn_c_try_compile "$LINENO"; then :
4000
ac_cv_header_stdc=yes
4002
ac_cv_header_stdc=no
4004
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006
if test $ac_cv_header_stdc = yes; then
4007
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4008
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4009
/* end confdefs.h. */
4013
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4014
$EGREP "memchr" >/dev/null 2>&1; then :
4017
ac_cv_header_stdc=no
4023
if test $ac_cv_header_stdc = yes; then
4024
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4025
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026
/* end confdefs.h. */
4030
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4031
$EGREP "free" >/dev/null 2>&1; then :
4034
ac_cv_header_stdc=no
4040
if test $ac_cv_header_stdc = yes; then
4041
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4042
if test "$cross_compiling" = yes; then :
4045
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046
/* end confdefs.h. */
4049
#if ((' ' & 0x0FF) == 0x020)
4050
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4051
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4053
# define ISLOWER(c) \
4054
(('a' <= (c) && (c) <= 'i') \
4055
|| ('j' <= (c) && (c) <= 'r') \
4056
|| ('s' <= (c) && (c) <= 'z'))
4057
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4060
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4065
for (i = 0; i < 256; i++)
4066
if (XOR (islower (i), ISLOWER (i))
4067
|| toupper (i) != TOUPPER (i))
4072
if ac_fn_c_try_run "$LINENO"; then :
4075
ac_cv_header_stdc=no
4077
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4078
conftest.$ac_objext conftest.beam conftest.$ac_ext
4083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4084
$as_echo "$ac_cv_header_stdc" >&6; }
4085
if test $ac_cv_header_stdc = yes; then
4087
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4091
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4092
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4093
inttypes.h stdint.h unistd.h
4095
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4096
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4098
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4099
cat >>confdefs.h <<_ACEOF
4100
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4110
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4111
if test -n "$ac_tool_prefix"; then
4112
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4113
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115
$as_echo_n "checking for $ac_word... " >&6; }
4116
if ${ac_cv_path_PKG_CONFIG+:} false; then :
4117
$as_echo_n "(cached) " >&6
4121
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4124
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128
test -z "$as_dir" && as_dir=.
4129
for ac_exec_ext in '' $ac_executable_extensions; do
4130
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4131
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4132
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4143
if test -n "$PKG_CONFIG"; then
4144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4145
$as_echo "$PKG_CONFIG" >&6; }
4147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148
$as_echo "no" >&6; }
4153
if test -z "$ac_cv_path_PKG_CONFIG"; then
4154
ac_pt_PKG_CONFIG=$PKG_CONFIG
4155
# Extract the first word of "pkg-config", so it can be a program name with args.
4156
set dummy pkg-config; ac_word=$2
4157
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4158
$as_echo_n "checking for $ac_word... " >&6; }
4159
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4160
$as_echo_n "(cached) " >&6
4162
case $ac_pt_PKG_CONFIG in
4164
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4167
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171
test -z "$as_dir" && as_dir=.
4172
for ac_exec_ext in '' $ac_executable_extensions; do
4173
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4174
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4175
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4186
if test -n "$ac_pt_PKG_CONFIG"; then
4187
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4188
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4190
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4191
$as_echo "no" >&6; }
4194
if test "x$ac_pt_PKG_CONFIG" = x; then
4197
case $cross_compiling:$ac_tool_warned in
4199
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4200
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4201
ac_tool_warned=yes ;;
4203
PKG_CONFIG=$ac_pt_PKG_CONFIG
4206
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4210
if test -n "$PKG_CONFIG"; then
4211
_pkg_min_version=0.9.0
4212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4213
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4214
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4215
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4216
$as_echo "yes" >&6; }
4218
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4219
$as_echo "no" >&6; }
4379
4224
# Make sure we can run config.sub.
4380
4225
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4381
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4382
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4383
{ (exit 1); exit 1; }; }
4226
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4385
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4386
4229
$as_echo_n "checking build system type... " >&6; }
4387
if test "${ac_cv_build+set}" = set; then
4230
if ${ac_cv_build+:} false; then :
4388
4231
$as_echo_n "(cached) " >&6
4390
4233
ac_build_alias=$build_alias
4391
4234
test "x$ac_build_alias" = x &&
4392
4235
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4393
4236
test "x$ac_build_alias" = x &&
4394
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4395
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4396
{ (exit 1); exit 1; }; }
4237
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4397
4238
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4398
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4399
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4400
{ (exit 1); exit 1; }; }
4239
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4403
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4242
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4404
4243
$as_echo "$ac_cv_build" >&6; }
4405
4244
case $ac_cv_build in
4407
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4408
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4409
{ (exit 1); exit 1; }; };;
4246
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4411
4248
build=$ac_cv_build
4412
4249
ac_save_IFS=$IFS; IFS='-'
4459
4292
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4295
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4296
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4297
if ${ac_cv_path_SED+:} false; then :
4298
$as_echo_n "(cached) " >&6
4300
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4301
for ac_i in 1 2 3 4 5 6 7; do
4302
ac_script="$ac_script$as_nl$ac_script"
4304
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4305
{ ac_script=; unset ac_script;}
4306
if test -z "$SED"; then
4307
ac_path_SED_found=false
4308
# Loop through the user's path and test for each of PROGNAME-LIST
4309
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4313
test -z "$as_dir" && as_dir=.
4314
for ac_prog in sed gsed; do
4315
for ac_exec_ext in '' $ac_executable_extensions; do
4316
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4317
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4318
# Check for GNU ac_path_SED and select it if it is found.
4319
# Check for GNU $ac_path_SED
4320
case `"$ac_path_SED" --version 2>&1` in
4322
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4325
$as_echo_n 0123456789 >"conftest.in"
4328
cat "conftest.in" "conftest.in" >"conftest.tmp"
4329
mv "conftest.tmp" "conftest.in"
4330
cp "conftest.in" "conftest.nl"
4331
$as_echo '' >> "conftest.nl"
4332
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4333
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4334
as_fn_arith $ac_count + 1 && ac_count=$as_val
4335
if test $ac_count -gt ${ac_path_SED_max-0}; then
4336
# Best one so far, save it but keep looking for a better one
4337
ac_cv_path_SED="$ac_path_SED"
4338
ac_path_SED_max=$ac_count
4340
# 10*(2^10) chars as input seems more than enough
4341
test $ac_count -gt 10 && break
4343
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4346
$ac_path_SED_found && break 3
4351
if test -z "$ac_cv_path_SED"; then
4352
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4360
$as_echo "$ac_cv_path_SED" >&6; }
4361
SED="$ac_cv_path_SED"
4465
4368
if test "x$GCC" = xyes ; then
4466
4369
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4467
4370
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4468
-Wbad-function-cast"
4371
-Wbad-function-cast -Wformat=2"
4469
4372
case `$CC -dumpversion` in
4471
4374
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4475
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4476
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4477
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4478
$as_echo_n "(cached) " >&6
4480
cat >conftest.$ac_ext <<_ACEOF
4483
cat confdefs.h >>conftest.$ac_ext
4484
cat >>conftest.$ac_ext <<_ACEOF
4485
/* end confdefs.h. */
4486
$ac_includes_default
4498
rm -f conftest.$ac_objext
4499
if { (ac_try="$ac_compile"
4501
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4502
*) ac_try_echo=$ac_try;;
4504
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4505
$as_echo "$ac_try_echo") >&5
4506
(eval "$ac_compile") 2>conftest.er1
4508
grep -v '^ *+' conftest.er1 >conftest.err
4510
cat conftest.err >&5
4511
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512
(exit $ac_status); } && {
4513
test -z "$ac_c_werror_flag" ||
4514
test ! -s conftest.err
4515
} && test -s conftest.$ac_objext; then
4516
ac_cv_have_decl___SUNPRO_C=yes
4518
$as_echo "$as_me: failed program was:" >&5
4519
sed 's/^/| /' conftest.$ac_ext >&5
4521
ac_cv_have_decl___SUNPRO_C=no
4524
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4526
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4527
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4528
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4378
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4379
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4539
# Check whether --enable-silent-rules was given.
4540
if test "${enable_silent_rules+set}" = set; then
4541
enableval=$enable_silent_rules;
4544
case $enable_silent_rules in
4545
yes) AM_DEFAULT_VERBOSITY=0;;
4546
no) AM_DEFAULT_VERBOSITY=1;;
4547
*) AM_DEFAULT_VERBOSITY=0;;
4392
# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89
4557
4396
# Check whether --enable-strict-compilation was given.
4558
if test "${enable_strict_compilation+set}" = set; then
4397
if test "${enable_strict_compilation+set}" = set; then :
4559
4398
enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
4561
4400
STRICT_COMPILE=no
4564
4403
if test "x$STRICT_COMPILE" = "xyes"; then
4565
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4566
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4567
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4568
$as_echo_n "(cached) " >&6
4570
cat >conftest.$ac_ext <<_ACEOF
4573
cat confdefs.h >>conftest.$ac_ext
4574
cat >>conftest.$ac_ext <<_ACEOF
4575
/* end confdefs.h. */
4576
$ac_includes_default
4588
rm -f conftest.$ac_objext
4589
if { (ac_try="$ac_compile"
4591
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4592
*) ac_try_echo=$ac_try;;
4594
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4595
$as_echo "$ac_try_echo") >&5
4596
(eval "$ac_compile") 2>conftest.er1
4598
grep -v '^ *+' conftest.er1 >conftest.err
4600
cat conftest.err >&5
4601
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602
(exit $ac_status); } && {
4603
test -z "$ac_c_werror_flag" ||
4604
test ! -s conftest.err
4605
} && test -s conftest.$ac_objext; then
4606
ac_cv_have_decl___SUNPRO_C=yes
4608
$as_echo "$as_me: failed program was:" >&5
4609
sed 's/^/| /' conftest.$ac_ext >&5
4611
ac_cv_have_decl___SUNPRO_C=no
4614
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4617
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4618
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4404
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4405
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4624
{ $as_echo "$as_me:$LINENO: checking whether __INTEL_COMPILER is declared" >&5
4625
$as_echo_n "checking whether __INTEL_COMPILER is declared... " >&6; }
4626
if test "${ac_cv_have_decl___INTEL_COMPILER+set}" = set; then
4627
$as_echo_n "(cached) " >&6
4629
cat >conftest.$ac_ext <<_ACEOF
4632
cat confdefs.h >>conftest.$ac_ext
4633
cat >>conftest.$ac_ext <<_ACEOF
4634
/* end confdefs.h. */
4635
$ac_includes_default
4639
#ifndef __INTEL_COMPILER
4640
(void) __INTEL_COMPILER;
4647
rm -f conftest.$ac_objext
4648
if { (ac_try="$ac_compile"
4650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4651
*) ac_try_echo=$ac_try;;
4653
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4654
$as_echo "$ac_try_echo") >&5
4655
(eval "$ac_compile") 2>conftest.er1
4657
grep -v '^ *+' conftest.er1 >conftest.err
4659
cat conftest.err >&5
4660
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661
(exit $ac_status); } && {
4662
test -z "$ac_c_werror_flag" ||
4663
test ! -s conftest.err
4664
} && test -s conftest.$ac_objext; then
4665
ac_cv_have_decl___INTEL_COMPILER=yes
4667
$as_echo "$as_me: failed program was:" >&5
4668
sed 's/^/| /' conftest.$ac_ext >&5
4670
ac_cv_have_decl___INTEL_COMPILER=no
4673
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___INTEL_COMPILER" >&5
4676
$as_echo "$ac_cv_have_decl___INTEL_COMPILER" >&6; }
4677
if test "x$ac_cv_have_decl___INTEL_COMPILER" = x""yes; then
4411
ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
4412
if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :