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. :-)
1507
1465
test -n "$ac_init_help" && exit $ac_status
1508
1466
if $ac_init_version; then
1510
xeyes configure 1.1.0
1511
generated by GNU Autoconf 2.63
1468
xeyes configure 1.1.1
1469
generated by GNU Autoconf 2.68
1513
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1514
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1471
Copyright (C) 2010 Free Software Foundation, Inc.
1515
1472
This configure script is free software; the Free Software Foundation
1516
1473
gives unlimited permission to copy, distribute and modify it.
1478
## ------------------------ ##
1479
## Autoconf initialization. ##
1480
## ------------------------ ##
1482
# ac_fn_c_try_compile LINENO
1483
# --------------------------
1484
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1485
ac_fn_c_try_compile ()
1487
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1488
rm -f conftest.$ac_objext
1489
if { { ac_try="$ac_compile"
1491
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492
*) ac_try_echo=$ac_try;;
1494
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495
$as_echo "$ac_try_echo"; } >&5
1496
(eval "$ac_compile") 2>conftest.err
1498
if test -s conftest.err; then
1499
grep -v '^ *+' conftest.err >conftest.er1
1500
cat conftest.er1 >&5
1501
mv -f conftest.er1 conftest.err
1503
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504
test $ac_status = 0; } && {
1505
test -z "$ac_c_werror_flag" ||
1506
test ! -s conftest.err
1507
} && test -s conftest.$ac_objext; then :
1510
$as_echo "$as_me: failed program was:" >&5
1511
sed 's/^/| /' conftest.$ac_ext >&5
1515
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1516
as_fn_set_status $ac_retval
1518
} # ac_fn_c_try_compile
1520
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1521
# ---------------------------------------------
1522
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1524
ac_fn_c_check_decl ()
1526
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527
as_decl_name=`echo $2|sed 's/ *(.*//'`
1528
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1530
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1531
if eval \${$3+:} false; then :
1532
$as_echo_n "(cached) " >&6
1534
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1535
/* end confdefs.h. */
1540
#ifndef $as_decl_name
1542
(void) $as_decl_use;
1544
(void) $as_decl_name;
1552
if ac_fn_c_try_compile "$LINENO"; then :
1557
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1561
$as_echo "$ac_res" >&6; }
1562
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1564
} # ac_fn_c_check_decl
1566
# ac_fn_c_try_cpp LINENO
1567
# ----------------------
1568
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1571
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572
if { { ac_try="$ac_cpp conftest.$ac_ext"
1574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575
*) ac_try_echo=$ac_try;;
1577
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578
$as_echo "$ac_try_echo"; } >&5
1579
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1581
if test -s conftest.err; then
1582
grep -v '^ *+' conftest.err >conftest.er1
1583
cat conftest.er1 >&5
1584
mv -f conftest.er1 conftest.err
1586
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587
test $ac_status = 0; } > conftest.i && {
1588
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1589
test ! -s conftest.err
1593
$as_echo "$as_me: failed program was:" >&5
1594
sed 's/^/| /' conftest.$ac_ext >&5
1598
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1599
as_fn_set_status $ac_retval
1603
# ac_fn_c_try_run LINENO
1604
# ----------------------
1605
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1606
# that executables *can* be run.
1609
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610
if { { ac_try="$ac_link"
1612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613
*) ac_try_echo=$ac_try;;
1615
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616
$as_echo "$ac_try_echo"; } >&5
1617
(eval "$ac_link") 2>&5
1619
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1620
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1621
{ { case "(($ac_try" in
1622
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623
*) ac_try_echo=$ac_try;;
1625
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626
$as_echo "$ac_try_echo"; } >&5
1627
(eval "$ac_try") 2>&5
1629
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630
test $ac_status = 0; }; }; then :
1633
$as_echo "$as_me: program exited with status $ac_status" >&5
1634
$as_echo "$as_me: failed program was:" >&5
1635
sed 's/^/| /' conftest.$ac_ext >&5
1637
ac_retval=$ac_status
1639
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1640
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1641
as_fn_set_status $ac_retval
1645
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1646
# -------------------------------------------------------
1647
# Tests whether HEADER exists and can be compiled using the include files in
1648
# INCLUDES, setting the cache variable VAR accordingly.
1649
ac_fn_c_check_header_compile ()
1651
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1653
$as_echo_n "checking for $2... " >&6; }
1654
if eval \${$3+:} false; then :
1655
$as_echo_n "(cached) " >&6
1657
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1658
/* end confdefs.h. */
1662
if ac_fn_c_try_compile "$LINENO"; then :
1667
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1671
$as_echo "$ac_res" >&6; }
1672
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674
} # ac_fn_c_check_header_compile
1520
1675
cat >config.log <<_ACEOF
1521
1676
This file contains any messages produced by compilers while
1522
1677
running configure, to aid debugging if configure makes a mistake.
1524
It was created by xeyes $as_me 1.1.0, which was
1525
generated by GNU Autoconf 2.63. Invocation command line was
1679
It was created by xeyes $as_me 1.1.1, which was
1680
generated by GNU Autoconf 2.68. Invocation command line was
3576
ac_cpp='$CPP $CPPFLAGS'
3577
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3578
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3579
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3581
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3582
# On Suns, sometimes $CPP names a directory.
3583
if test -n "$CPP" && test -d "$CPP"; then
3586
if test -z "$CPP"; then
3587
if test "${ac_cv_prog_CPP+set}" = set; then
3588
$as_echo_n "(cached) " >&6
3590
# Double quotes because CPP needs to be expanded
3591
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3594
for ac_c_preproc_warn_flag in '' yes
3596
# Use a header file that comes with gcc, so configuring glibc
3597
# with a fresh cross-compiler works.
3598
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3599
# <limits.h> exists even on freestanding compilers.
3600
# On the NeXT, cc -E runs the code through the compiler's parser,
3601
# not just through cpp. "Syntax error" is here to catch this case.
3602
cat >conftest.$ac_ext <<_ACEOF
3605
cat confdefs.h >>conftest.$ac_ext
3606
cat >>conftest.$ac_ext <<_ACEOF
3607
/* end confdefs.h. */
3609
# include <limits.h>
3611
# include <assert.h>
3615
if { (ac_try="$ac_cpp conftest.$ac_ext"
3617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618
*) ac_try_echo=$ac_try;;
3620
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621
$as_echo "$ac_try_echo") >&5
3622
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3624
grep -v '^ *+' conftest.er1 >conftest.err
3626
cat conftest.err >&5
3627
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628
(exit $ac_status); } >/dev/null && {
3629
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3630
test ! -s conftest.err
3634
$as_echo "$as_me: failed program was:" >&5
3635
sed 's/^/| /' conftest.$ac_ext >&5
3637
# Broken: fails on valid input.
3641
rm -f conftest.err conftest.$ac_ext
3643
# OK, works on sane cases. Now check whether nonexistent headers
3644
# can be detected and how.
3645
cat >conftest.$ac_ext <<_ACEOF
3648
cat confdefs.h >>conftest.$ac_ext
3649
cat >>conftest.$ac_ext <<_ACEOF
3650
/* end confdefs.h. */
3651
#include <ac_nonexistent.h>
3653
if { (ac_try="$ac_cpp conftest.$ac_ext"
3655
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656
*) ac_try_echo=$ac_try;;
3658
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659
$as_echo "$ac_try_echo") >&5
3660
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3662
grep -v '^ *+' conftest.er1 >conftest.err
3664
cat conftest.err >&5
3665
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666
(exit $ac_status); } >/dev/null && {
3667
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3668
test ! -s conftest.err
3670
# Broken: success on invalid input.
3673
$as_echo "$as_me: failed program was:" >&5
3674
sed 's/^/| /' conftest.$ac_ext >&5
3676
# Passes both tests.
3681
rm -f conftest.err conftest.$ac_ext
3684
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3685
rm -f conftest.err conftest.$ac_ext
3686
if $ac_preproc_ok; then
3698
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3699
$as_echo "$CPP" >&6; }
3701
for ac_c_preproc_warn_flag in '' yes
3703
# Use a header file that comes with gcc, so configuring glibc
3704
# with a fresh cross-compiler works.
3705
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3706
# <limits.h> exists even on freestanding compilers.
3707
# On the NeXT, cc -E runs the code through the compiler's parser,
3708
# not just through cpp. "Syntax error" is here to catch this case.
3709
cat >conftest.$ac_ext <<_ACEOF
3712
cat confdefs.h >>conftest.$ac_ext
3713
cat >>conftest.$ac_ext <<_ACEOF
3714
/* end confdefs.h. */
3716
# include <limits.h>
3718
# include <assert.h>
3722
if { (ac_try="$ac_cpp conftest.$ac_ext"
3724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3725
*) ac_try_echo=$ac_try;;
3727
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3728
$as_echo "$ac_try_echo") >&5
3729
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3731
grep -v '^ *+' conftest.er1 >conftest.err
3733
cat conftest.err >&5
3734
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3735
(exit $ac_status); } >/dev/null && {
3736
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3737
test ! -s conftest.err
3741
$as_echo "$as_me: failed program was:" >&5
3742
sed 's/^/| /' conftest.$ac_ext >&5
3744
# Broken: fails on valid input.
3748
rm -f conftest.err conftest.$ac_ext
3750
# OK, works on sane cases. Now check whether nonexistent headers
3751
# can be detected and how.
3752
cat >conftest.$ac_ext <<_ACEOF
3755
cat confdefs.h >>conftest.$ac_ext
3756
cat >>conftest.$ac_ext <<_ACEOF
3757
/* end confdefs.h. */
3758
#include <ac_nonexistent.h>
3760
if { (ac_try="$ac_cpp conftest.$ac_ext"
3762
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763
*) ac_try_echo=$ac_try;;
3765
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3766
$as_echo "$ac_try_echo") >&5
3767
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3769
grep -v '^ *+' conftest.er1 >conftest.err
3771
cat conftest.err >&5
3772
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3773
(exit $ac_status); } >/dev/null && {
3774
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3775
test ! -s conftest.err
3777
# Broken: success on invalid input.
3780
$as_echo "$as_me: failed program was:" >&5
3781
sed 's/^/| /' conftest.$ac_ext >&5
3783
# Passes both tests.
3788
rm -f conftest.err conftest.$ac_ext
3791
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3792
rm -f conftest.err conftest.$ac_ext
3793
if $ac_preproc_ok; then
3796
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3797
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3798
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3799
See \`config.log' for more details." >&5
3800
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3801
See \`config.log' for more details." >&2;}
3802
{ (exit 1); exit 1; }; }; }
3806
ac_cpp='$CPP $CPPFLAGS'
3807
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3808
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3809
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3812
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3813
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3814
if test "${ac_cv_path_GREP+set}" = set; then
3815
$as_echo_n "(cached) " >&6
3817
if test -z "$GREP"; then
3818
ac_path_GREP_found=false
3819
# Loop through the user's path and test for each of PROGNAME-LIST
3820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3824
test -z "$as_dir" && as_dir=.
3825
for ac_prog in grep ggrep; do
3826
for ac_exec_ext in '' $ac_executable_extensions; do
3827
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3828
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3829
# Check for GNU ac_path_GREP and select it if it is found.
3830
# Check for GNU $ac_path_GREP
3831
case `"$ac_path_GREP" --version 2>&1` in
3833
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3836
$as_echo_n 0123456789 >"conftest.in"
3839
cat "conftest.in" "conftest.in" >"conftest.tmp"
3840
mv "conftest.tmp" "conftest.in"
3841
cp "conftest.in" "conftest.nl"
3842
$as_echo 'GREP' >> "conftest.nl"
3843
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3844
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3845
ac_count=`expr $ac_count + 1`
3846
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3847
# Best one so far, save it but keep looking for a better one
3848
ac_cv_path_GREP="$ac_path_GREP"
3849
ac_path_GREP_max=$ac_count
3851
# 10*(2^10) chars as input seems more than enough
3852
test $ac_count -gt 10 && break
3854
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3857
$ac_path_GREP_found && break 3
3862
if test -z "$ac_cv_path_GREP"; then
3863
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3864
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3865
{ (exit 1); exit 1; }; }
3868
ac_cv_path_GREP=$GREP
3872
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3873
$as_echo "$ac_cv_path_GREP" >&6; }
3874
GREP="$ac_cv_path_GREP"
3877
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3878
$as_echo_n "checking for egrep... " >&6; }
3879
if test "${ac_cv_path_EGREP+set}" = set; then
3880
$as_echo_n "(cached) " >&6
3882
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3883
then ac_cv_path_EGREP="$GREP -E"
3885
if test -z "$EGREP"; then
3886
ac_path_EGREP_found=false
3887
# Loop through the user's path and test for each of PROGNAME-LIST
3888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3892
test -z "$as_dir" && as_dir=.
3893
for ac_prog in egrep; do
3894
for ac_exec_ext in '' $ac_executable_extensions; do
3895
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3896
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3897
# Check for GNU ac_path_EGREP and select it if it is found.
3898
# Check for GNU $ac_path_EGREP
3899
case `"$ac_path_EGREP" --version 2>&1` in
3901
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3904
$as_echo_n 0123456789 >"conftest.in"
3907
cat "conftest.in" "conftest.in" >"conftest.tmp"
3908
mv "conftest.tmp" "conftest.in"
3909
cp "conftest.in" "conftest.nl"
3910
$as_echo 'EGREP' >> "conftest.nl"
3911
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3912
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3913
ac_count=`expr $ac_count + 1`
3914
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3915
# Best one so far, save it but keep looking for a better one
3916
ac_cv_path_EGREP="$ac_path_EGREP"
3917
ac_path_EGREP_max=$ac_count
3919
# 10*(2^10) chars as input seems more than enough
3920
test $ac_count -gt 10 && break
3922
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3925
$ac_path_EGREP_found && break 3
3930
if test -z "$ac_cv_path_EGREP"; then
3931
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3932
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3933
{ (exit 1); exit 1; }; }
3936
ac_cv_path_EGREP=$EGREP
3941
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3942
$as_echo "$ac_cv_path_EGREP" >&6; }
3943
EGREP="$ac_cv_path_EGREP"
3946
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3947
$as_echo_n "checking for ANSI C header files... " >&6; }
3948
if test "${ac_cv_header_stdc+set}" = set; then
3949
$as_echo_n "(cached) " >&6
3951
cat >conftest.$ac_ext <<_ACEOF
3954
cat confdefs.h >>conftest.$ac_ext
3955
cat >>conftest.$ac_ext <<_ACEOF
3956
/* end confdefs.h. */
3970
rm -f conftest.$ac_objext
3971
if { (ac_try="$ac_compile"
3973
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974
*) ac_try_echo=$ac_try;;
3976
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3977
$as_echo "$ac_try_echo") >&5
3978
(eval "$ac_compile") 2>conftest.er1
3980
grep -v '^ *+' conftest.er1 >conftest.err
3982
cat conftest.err >&5
3983
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3984
(exit $ac_status); } && {
3985
test -z "$ac_c_werror_flag" ||
3986
test ! -s conftest.err
3987
} && test -s conftest.$ac_objext; then
3988
ac_cv_header_stdc=yes
3990
$as_echo "$as_me: failed program was:" >&5
3991
sed 's/^/| /' conftest.$ac_ext >&5
3993
ac_cv_header_stdc=no
3996
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3998
if test $ac_cv_header_stdc = yes; then
3999
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4000
cat >conftest.$ac_ext <<_ACEOF
4003
cat confdefs.h >>conftest.$ac_ext
4004
cat >>conftest.$ac_ext <<_ACEOF
4005
/* end confdefs.h. */
4009
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4010
$EGREP "memchr" >/dev/null 2>&1; then
4013
ac_cv_header_stdc=no
4019
if test $ac_cv_header_stdc = yes; then
4020
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4021
cat >conftest.$ac_ext <<_ACEOF
4024
cat confdefs.h >>conftest.$ac_ext
4025
cat >>conftest.$ac_ext <<_ACEOF
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 >conftest.$ac_ext <<_ACEOF
4048
cat confdefs.h >>conftest.$ac_ext
4049
cat >>conftest.$ac_ext <<_ACEOF
4050
/* end confdefs.h. */
4053
#if ((' ' & 0x0FF) == 0x020)
4054
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4055
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4057
# define ISLOWER(c) \
4058
(('a' <= (c) && (c) <= 'i') \
4059
|| ('j' <= (c) && (c) <= 'r') \
4060
|| ('s' <= (c) && (c) <= 'z'))
4061
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4064
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4069
for (i = 0; i < 256; i++)
4070
if (XOR (islower (i), ISLOWER (i))
4071
|| toupper (i) != TOUPPER (i))
4076
rm -f conftest$ac_exeext
4077
if { (ac_try="$ac_link"
4079
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080
*) ac_try_echo=$ac_try;;
4082
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4083
$as_echo "$ac_try_echo") >&5
4084
(eval "$ac_link") 2>&5
4086
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4088
{ (case "(($ac_try" in
4089
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090
*) ac_try_echo=$ac_try;;
4092
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4093
$as_echo "$ac_try_echo") >&5
4094
(eval "$ac_try") 2>&5
4096
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4097
(exit $ac_status); }; }; then
4100
$as_echo "$as_me: program exited with status $ac_status" >&5
4101
$as_echo "$as_me: failed program was:" >&5
4102
sed 's/^/| /' conftest.$ac_ext >&5
4105
ac_cv_header_stdc=no
4107
rm -rf conftest.dSYM
4108
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4114
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4115
$as_echo "$ac_cv_header_stdc" >&6; }
4116
if test $ac_cv_header_stdc = yes; then
4118
cat >>confdefs.h <<\_ACEOF
4119
#define STDC_HEADERS 1
4124
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4134
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4135
inttypes.h stdint.h unistd.h
4137
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4138
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4139
$as_echo_n "checking for $ac_header... " >&6; }
4140
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4141
$as_echo_n "(cached) " >&6
4143
cat >conftest.$ac_ext <<_ACEOF
4146
cat confdefs.h >>conftest.$ac_ext
4147
cat >>conftest.$ac_ext <<_ACEOF
4148
/* end confdefs.h. */
4149
$ac_includes_default
4151
#include <$ac_header>
4153
rm -f conftest.$ac_objext
4154
if { (ac_try="$ac_compile"
4156
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157
*) ac_try_echo=$ac_try;;
4159
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4160
$as_echo "$ac_try_echo") >&5
4161
(eval "$ac_compile") 2>conftest.er1
4163
grep -v '^ *+' conftest.er1 >conftest.err
4165
cat conftest.err >&5
4166
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167
(exit $ac_status); } && {
4168
test -z "$ac_c_werror_flag" ||
4169
test ! -s conftest.err
4170
} && test -s conftest.$ac_objext; then
4171
eval "$as_ac_Header=yes"
4173
$as_echo "$as_me: failed program was:" >&5
4174
sed 's/^/| /' conftest.$ac_ext >&5
4176
eval "$as_ac_Header=no"
4179
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4181
ac_res=`eval 'as_val=${'$as_ac_Header'}
4182
$as_echo "$as_val"'`
4183
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4184
$as_echo "$ac_res" >&6; }
4185
as_val=`eval 'as_val=${'$as_ac_Header'}
4186
$as_echo "$as_val"'`
4187
if test "x$as_val" = x""yes; then
4188
cat >>confdefs.h <<_ACEOF
4189
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4197
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3554
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4198
3555
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4199
if test "${ac_cv_prog_cc_c99+set}" = set; then
3556
if ${ac_cv_prog_cc_c99+:} false; then :
4200
3557
$as_echo_n "(cached) " >&6
4202
3559
ac_cv_prog_cc_c99=no
4204
cat >conftest.$ac_ext <<_ACEOF
4207
cat confdefs.h >>conftest.$ac_ext
4208
cat >>conftest.$ac_ext <<_ACEOF
3561
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209
3562
/* end confdefs.h. */
4210
3563
#include <stdarg.h>
4211
3564
#include <stdbool.h>
4384
3714
case "x$ac_cv_prog_cc_c99" in
4386
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4387
3717
$as_echo "none needed" >&6; } ;;
4389
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
3719
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4390
3720
$as_echo "unsupported" >&6; } ;;
4392
3722
CC="$CC $ac_cv_prog_cc_c99"
4393
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3723
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4394
3724
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3726
if test "x$ac_cv_prog_cc_c99" != xno; then :
3733
ac_cpp='$CPP $CPPFLAGS'
3734
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3735
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3736
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3738
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3739
# On Suns, sometimes $CPP names a directory.
3740
if test -n "$CPP" && test -d "$CPP"; then
3743
if test -z "$CPP"; then
3744
if ${ac_cv_prog_CPP+:} false; then :
3745
$as_echo_n "(cached) " >&6
3747
# Double quotes because CPP needs to be expanded
3748
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3751
for ac_c_preproc_warn_flag in '' yes
3753
# Use a header file that comes with gcc, so configuring glibc
3754
# with a fresh cross-compiler works.
3755
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3756
# <limits.h> exists even on freestanding compilers.
3757
# On the NeXT, cc -E runs the code through the compiler's parser,
3758
# not just through cpp. "Syntax error" is here to catch this case.
3759
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3760
/* end confdefs.h. */
3762
# include <limits.h>
3764
# include <assert.h>
3768
if ac_fn_c_try_cpp "$LINENO"; then :
3771
# Broken: fails on valid input.
3774
rm -f conftest.err conftest.i conftest.$ac_ext
3776
# OK, works on sane cases. Now check whether nonexistent headers
3777
# can be detected and how.
3778
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3779
/* end confdefs.h. */
3780
#include <ac_nonexistent.h>
3782
if ac_fn_c_try_cpp "$LINENO"; then :
3783
# Broken: success on invalid input.
3786
# Passes both tests.
3790
rm -f conftest.err conftest.i conftest.$ac_ext
3793
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3794
rm -f conftest.i conftest.err conftest.$ac_ext
3795
if $ac_preproc_ok; then :
3807
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3808
$as_echo "$CPP" >&6; }
3810
for ac_c_preproc_warn_flag in '' yes
3812
# Use a header file that comes with gcc, so configuring glibc
3813
# with a fresh cross-compiler works.
3814
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3815
# <limits.h> exists even on freestanding compilers.
3816
# On the NeXT, cc -E runs the code through the compiler's parser,
3817
# not just through cpp. "Syntax error" is here to catch this case.
3818
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819
/* end confdefs.h. */
3821
# include <limits.h>
3823
# include <assert.h>
3827
if ac_fn_c_try_cpp "$LINENO"; then :
3830
# Broken: fails on valid input.
3833
rm -f conftest.err conftest.i conftest.$ac_ext
3835
# OK, works on sane cases. Now check whether nonexistent headers
3836
# can be detected and how.
3837
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838
/* end confdefs.h. */
3839
#include <ac_nonexistent.h>
3841
if ac_fn_c_try_cpp "$LINENO"; then :
3842
# Broken: success on invalid input.
3845
# Passes both tests.
3849
rm -f conftest.err conftest.i conftest.$ac_ext
3852
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3853
rm -f conftest.i conftest.err conftest.$ac_ext
3854
if $ac_preproc_ok; then :
3857
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3858
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3859
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3860
See \`config.log' for more details" "$LINENO" 5; }
3864
ac_cpp='$CPP $CPPFLAGS'
3865
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3866
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3867
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3871
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3872
if ${ac_cv_path_GREP+:} false; then :
3873
$as_echo_n "(cached) " >&6
3875
if test -z "$GREP"; then
3876
ac_path_GREP_found=false
3877
# Loop through the user's path and test for each of PROGNAME-LIST
3878
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3879
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3882
test -z "$as_dir" && as_dir=.
3883
for ac_prog in grep ggrep; do
3884
for ac_exec_ext in '' $ac_executable_extensions; do
3885
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3886
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3887
# Check for GNU ac_path_GREP and select it if it is found.
3888
# Check for GNU $ac_path_GREP
3889
case `"$ac_path_GREP" --version 2>&1` in
3891
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3894
$as_echo_n 0123456789 >"conftest.in"
3897
cat "conftest.in" "conftest.in" >"conftest.tmp"
3898
mv "conftest.tmp" "conftest.in"
3899
cp "conftest.in" "conftest.nl"
3900
$as_echo 'GREP' >> "conftest.nl"
3901
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3902
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3903
as_fn_arith $ac_count + 1 && ac_count=$as_val
3904
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3905
# Best one so far, save it but keep looking for a better one
3906
ac_cv_path_GREP="$ac_path_GREP"
3907
ac_path_GREP_max=$ac_count
3909
# 10*(2^10) chars as input seems more than enough
3910
test $ac_count -gt 10 && break
3912
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3915
$ac_path_GREP_found && break 3
3920
if test -z "$ac_cv_path_GREP"; then
3921
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3924
ac_cv_path_GREP=$GREP
3928
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3929
$as_echo "$ac_cv_path_GREP" >&6; }
3930
GREP="$ac_cv_path_GREP"
3933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3934
$as_echo_n "checking for egrep... " >&6; }
3935
if ${ac_cv_path_EGREP+:} false; then :
3936
$as_echo_n "(cached) " >&6
3938
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3939
then ac_cv_path_EGREP="$GREP -E"
3941
if test -z "$EGREP"; then
3942
ac_path_EGREP_found=false
3943
# Loop through the user's path and test for each of PROGNAME-LIST
3944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3948
test -z "$as_dir" && as_dir=.
3949
for ac_prog in egrep; do
3950
for ac_exec_ext in '' $ac_executable_extensions; do
3951
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3952
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3953
# Check for GNU ac_path_EGREP and select it if it is found.
3954
# Check for GNU $ac_path_EGREP
3955
case `"$ac_path_EGREP" --version 2>&1` in
3957
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3960
$as_echo_n 0123456789 >"conftest.in"
3963
cat "conftest.in" "conftest.in" >"conftest.tmp"
3964
mv "conftest.tmp" "conftest.in"
3965
cp "conftest.in" "conftest.nl"
3966
$as_echo 'EGREP' >> "conftest.nl"
3967
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3968
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3969
as_fn_arith $ac_count + 1 && ac_count=$as_val
3970
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3971
# Best one so far, save it but keep looking for a better one
3972
ac_cv_path_EGREP="$ac_path_EGREP"
3973
ac_path_EGREP_max=$ac_count
3975
# 10*(2^10) chars as input seems more than enough
3976
test $ac_count -gt 10 && break
3978
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3981
$ac_path_EGREP_found && break 3
3986
if test -z "$ac_cv_path_EGREP"; then
3987
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3990
ac_cv_path_EGREP=$EGREP
3995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3996
$as_echo "$ac_cv_path_EGREP" >&6; }
3997
EGREP="$ac_cv_path_EGREP"
4000
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4001
$as_echo_n "checking for ANSI C header files... " >&6; }
4002
if ${ac_cv_header_stdc+:} false; then :
4003
$as_echo_n "(cached) " >&6
4005
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4006
/* end confdefs.h. */
4020
if ac_fn_c_try_compile "$LINENO"; then :
4021
ac_cv_header_stdc=yes
4023
ac_cv_header_stdc=no
4025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4027
if test $ac_cv_header_stdc = yes; then
4028
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4029
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030
/* end confdefs.h. */
4034
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4035
$EGREP "memchr" >/dev/null 2>&1; then :
4038
ac_cv_header_stdc=no
4044
if test $ac_cv_header_stdc = yes; then
4045
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4046
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047
/* end confdefs.h. */
4051
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052
$EGREP "free" >/dev/null 2>&1; then :
4055
ac_cv_header_stdc=no
4061
if test $ac_cv_header_stdc = yes; then
4062
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4063
if test "$cross_compiling" = yes; then :
4066
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067
/* end confdefs.h. */
4070
#if ((' ' & 0x0FF) == 0x020)
4071
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4072
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4074
# define ISLOWER(c) \
4075
(('a' <= (c) && (c) <= 'i') \
4076
|| ('j' <= (c) && (c) <= 'r') \
4077
|| ('s' <= (c) && (c) <= 'z'))
4078
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4081
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4086
for (i = 0; i < 256; i++)
4087
if (XOR (islower (i), ISLOWER (i))
4088
|| toupper (i) != TOUPPER (i))
4093
if ac_fn_c_try_run "$LINENO"; then :
4096
ac_cv_header_stdc=no
4098
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4099
conftest.$ac_objext conftest.beam conftest.$ac_ext
4104
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4105
$as_echo "$ac_cv_header_stdc" >&6; }
4106
if test $ac_cv_header_stdc = yes; then
4108
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4112
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4113
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4114
inttypes.h stdint.h unistd.h
4116
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4117
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4119
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4120
cat >>confdefs.h <<_ACEOF
4121
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4959
ac_cpp='$CPP $CPPFLAGS'
4960
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4961
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4962
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4963
if test -n "$ac_tool_prefix"; then
4964
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4965
set dummy ${ac_tool_prefix}gcc; ac_word=$2
4966
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4967
$as_echo_n "checking for $ac_word... " >&6; }
4968
if test "${ac_cv_prog_CC+set}" = set; then
4969
$as_echo_n "(cached) " >&6
4971
if test -n "$CC"; then
4972
ac_cv_prog_CC="$CC" # Let the user override the test.
4974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4978
test -z "$as_dir" && as_dir=.
4979
for ac_exec_ext in '' $ac_executable_extensions; do
4980
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4981
ac_cv_prog_CC="${ac_tool_prefix}gcc"
4982
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992
if test -n "$CC"; then
4993
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
4994
$as_echo "$CC" >&6; }
4996
{ $as_echo "$as_me:$LINENO: result: no" >&5
4997
$as_echo "no" >&6; }
5002
if test -z "$ac_cv_prog_CC"; then
5004
# Extract the first word of "gcc", so it can be a program name with args.
5005
set dummy gcc; ac_word=$2
5006
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5007
$as_echo_n "checking for $ac_word... " >&6; }
5008
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5009
$as_echo_n "(cached) " >&6
5011
if test -n "$ac_ct_CC"; then
5012
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5014
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5018
test -z "$as_dir" && as_dir=.
5019
for ac_exec_ext in '' $ac_executable_extensions; do
5020
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5021
ac_cv_prog_ac_ct_CC="gcc"
5022
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5032
if test -n "$ac_ct_CC"; then
5033
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5034
$as_echo "$ac_ct_CC" >&6; }
5036
{ $as_echo "$as_me:$LINENO: result: no" >&5
5037
$as_echo "no" >&6; }
5040
if test "x$ac_ct_CC" = x; then
5043
case $cross_compiling:$ac_tool_warned in
5045
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5046
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5047
ac_tool_warned=yes ;;
5055
if test -z "$CC"; then
5056
if test -n "$ac_tool_prefix"; then
5057
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5058
set dummy ${ac_tool_prefix}cc; ac_word=$2
5059
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5060
$as_echo_n "checking for $ac_word... " >&6; }
5061
if test "${ac_cv_prog_CC+set}" = set; then
5062
$as_echo_n "(cached) " >&6
5064
if test -n "$CC"; then
5065
ac_cv_prog_CC="$CC" # Let the user override the test.
5067
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071
test -z "$as_dir" && as_dir=.
5072
for ac_exec_ext in '' $ac_executable_extensions; do
5073
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5074
ac_cv_prog_CC="${ac_tool_prefix}cc"
5075
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5085
if test -n "$CC"; then
5086
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
5087
$as_echo "$CC" >&6; }
5089
{ $as_echo "$as_me:$LINENO: result: no" >&5
5090
$as_echo "no" >&6; }
5096
if test -z "$CC"; then
5097
# Extract the first word of "cc", so it can be a program name with args.
5098
set dummy cc; ac_word=$2
5099
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5100
$as_echo_n "checking for $ac_word... " >&6; }
5101
if test "${ac_cv_prog_CC+set}" = set; then
5102
$as_echo_n "(cached) " >&6
5104
if test -n "$CC"; then
5105
ac_cv_prog_CC="$CC" # Let the user override the test.
5108
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5112
test -z "$as_dir" && as_dir=.
5113
for ac_exec_ext in '' $ac_executable_extensions; do
5114
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5116
ac_prog_rejected=yes
5120
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127
if test $ac_prog_rejected = yes; then
5128
# We found a bogon in the path, so make sure we never use it.
5129
set dummy $ac_cv_prog_CC
5131
if test $# != 0; then
5132
# We chose a different compiler from the bogus one.
5133
# However, it has the same basename, so the bogon will be chosen
5134
# first if we set CC to just the basename; use the full file name.
5136
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5142
if test -n "$CC"; then
5143
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
5144
$as_echo "$CC" >&6; }
5146
{ $as_echo "$as_me:$LINENO: result: no" >&5
5147
$as_echo "no" >&6; }
5152
if test -z "$CC"; then
5153
if test -n "$ac_tool_prefix"; then
5154
for ac_prog in cl.exe
5156
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5157
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5158
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5159
$as_echo_n "checking for $ac_word... " >&6; }
5160
if test "${ac_cv_prog_CC+set}" = set; then
5161
$as_echo_n "(cached) " >&6
5163
if test -n "$CC"; then
5164
ac_cv_prog_CC="$CC" # Let the user override the test.
5166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170
test -z "$as_dir" && as_dir=.
5171
for ac_exec_ext in '' $ac_executable_extensions; do
5172
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5173
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5174
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184
if test -n "$CC"; then
5185
{ $as_echo "$as_me:$LINENO: result: $CC" >&5
5186
$as_echo "$CC" >&6; }
5188
{ $as_echo "$as_me:$LINENO: result: no" >&5
5189
$as_echo "no" >&6; }
5193
test -n "$CC" && break
5196
if test -z "$CC"; then
5198
for ac_prog in cl.exe
5200
# Extract the first word of "$ac_prog", so it can be a program name with args.
5201
set dummy $ac_prog; ac_word=$2
5202
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5203
$as_echo_n "checking for $ac_word... " >&6; }
5204
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5205
$as_echo_n "(cached) " >&6
5207
if test -n "$ac_ct_CC"; then
5208
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5210
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5214
test -z "$as_dir" && as_dir=.
5215
for ac_exec_ext in '' $ac_executable_extensions; do
5216
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5217
ac_cv_prog_ac_ct_CC="$ac_prog"
5218
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5227
ac_ct_CC=$ac_cv_prog_ac_ct_CC
5228
if test -n "$ac_ct_CC"; then
5229
{ $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5230
$as_echo "$ac_ct_CC" >&6; }
5232
{ $as_echo "$as_me:$LINENO: result: no" >&5
5233
$as_echo "no" >&6; }
5237
test -n "$ac_ct_CC" && break
5240
if test "x$ac_ct_CC" = x; then
5243
case $cross_compiling:$ac_tool_warned in
5245
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5246
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5247
ac_tool_warned=yes ;;
5256
test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5257
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5258
{ { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5259
See \`config.log' for more details." >&5
5260
$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
5261
See \`config.log' for more details." >&2;}
5262
{ (exit 1); exit 1; }; }; }
5264
# Provide some information about the compiler.
5265
$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
5268
{ (ac_try="$ac_compiler --version >&5"
5270
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271
*) ac_try_echo=$ac_try;;
5273
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5274
$as_echo "$ac_try_echo") >&5
5275
(eval "$ac_compiler --version >&5") 2>&5
5277
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5278
(exit $ac_status); }
5279
{ (ac_try="$ac_compiler -v >&5"
5281
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5282
*) ac_try_echo=$ac_try;;
5284
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5285
$as_echo "$ac_try_echo") >&5
5286
(eval "$ac_compiler -v >&5") 2>&5
5288
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289
(exit $ac_status); }
5290
{ (ac_try="$ac_compiler -V >&5"
5292
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5293
*) ac_try_echo=$ac_try;;
5295
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5296
$as_echo "$ac_try_echo") >&5
5297
(eval "$ac_compiler -V >&5") 2>&5
5299
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300
(exit $ac_status); }
5302
{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5303
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5304
if test "${ac_cv_c_compiler_gnu+set}" = set; then
5305
$as_echo_n "(cached) " >&6
5307
cat >conftest.$ac_ext <<_ACEOF
5310
cat confdefs.h >>conftest.$ac_ext
5311
cat >>conftest.$ac_ext <<_ACEOF
5312
/* end confdefs.h. */
5325
rm -f conftest.$ac_objext
5326
if { (ac_try="$ac_compile"
5328
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329
*) ac_try_echo=$ac_try;;
5331
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5332
$as_echo "$ac_try_echo") >&5
5333
(eval "$ac_compile") 2>conftest.er1
5335
grep -v '^ *+' conftest.er1 >conftest.err
5337
cat conftest.err >&5
5338
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339
(exit $ac_status); } && {
5340
test -z "$ac_c_werror_flag" ||
5341
test ! -s conftest.err
5342
} && test -s conftest.$ac_objext; then
5345
$as_echo "$as_me: failed program was:" >&5
5346
sed 's/^/| /' conftest.$ac_ext >&5
5351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5352
ac_cv_c_compiler_gnu=$ac_compiler_gnu
5355
{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5356
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5357
if test $ac_compiler_gnu = yes; then
5362
ac_test_CFLAGS=${CFLAGS+set}
5363
ac_save_CFLAGS=$CFLAGS
5364
{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5365
$as_echo_n "checking whether $CC accepts -g... " >&6; }
5366
if test "${ac_cv_prog_cc_g+set}" = set; then
5367
$as_echo_n "(cached) " >&6
5369
ac_save_c_werror_flag=$ac_c_werror_flag
5370
ac_c_werror_flag=yes
5373
cat >conftest.$ac_ext <<_ACEOF
5376
cat confdefs.h >>conftest.$ac_ext
5377
cat >>conftest.$ac_ext <<_ACEOF
5378
/* end confdefs.h. */
5388
rm -f conftest.$ac_objext
5389
if { (ac_try="$ac_compile"
5391
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5392
*) ac_try_echo=$ac_try;;
5394
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5395
$as_echo "$ac_try_echo") >&5
5396
(eval "$ac_compile") 2>conftest.er1
5398
grep -v '^ *+' conftest.er1 >conftest.err
5400
cat conftest.err >&5
5401
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5402
(exit $ac_status); } && {
5403
test -z "$ac_c_werror_flag" ||
5404
test ! -s conftest.err
5405
} && test -s conftest.$ac_objext; then
5408
$as_echo "$as_me: failed program was:" >&5
5409
sed 's/^/| /' conftest.$ac_ext >&5
5412
cat >conftest.$ac_ext <<_ACEOF
5415
cat confdefs.h >>conftest.$ac_ext
5416
cat >>conftest.$ac_ext <<_ACEOF
5417
/* end confdefs.h. */
5427
rm -f conftest.$ac_objext
5428
if { (ac_try="$ac_compile"
5430
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5431
*) ac_try_echo=$ac_try;;
5433
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5434
$as_echo "$ac_try_echo") >&5
5435
(eval "$ac_compile") 2>conftest.er1
5437
grep -v '^ *+' conftest.er1 >conftest.err
5439
cat conftest.err >&5
5440
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5441
(exit $ac_status); } && {
5442
test -z "$ac_c_werror_flag" ||
5443
test ! -s conftest.err
5444
} && test -s conftest.$ac_objext; then
5447
$as_echo "$as_me: failed program was:" >&5
5448
sed 's/^/| /' conftest.$ac_ext >&5
5450
ac_c_werror_flag=$ac_save_c_werror_flag
5452
cat >conftest.$ac_ext <<_ACEOF
5455
cat confdefs.h >>conftest.$ac_ext
5456
cat >>conftest.$ac_ext <<_ACEOF
5457
/* end confdefs.h. */
5467
rm -f conftest.$ac_objext
5468
if { (ac_try="$ac_compile"
5470
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5471
*) ac_try_echo=$ac_try;;
5473
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5474
$as_echo "$ac_try_echo") >&5
5475
(eval "$ac_compile") 2>conftest.er1
5477
grep -v '^ *+' conftest.er1 >conftest.err
5479
cat conftest.err >&5
5480
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5481
(exit $ac_status); } && {
5482
test -z "$ac_c_werror_flag" ||
5483
test ! -s conftest.err
5484
} && test -s conftest.$ac_objext; then
5487
$as_echo "$as_me: failed program was:" >&5
5488
sed 's/^/| /' conftest.$ac_ext >&5
5493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5496
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5499
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5500
ac_c_werror_flag=$ac_save_c_werror_flag
5502
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5503
$as_echo "$ac_cv_prog_cc_g" >&6; }
5504
if test "$ac_test_CFLAGS" = set; then
5505
CFLAGS=$ac_save_CFLAGS
5506
elif test $ac_cv_prog_cc_g = yes; then
5507
if test "$GCC" = yes; then
5513
if test "$GCC" = yes; then
5519
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5520
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5521
if test "${ac_cv_prog_cc_c89+set}" = set; then
5522
$as_echo_n "(cached) " >&6
5524
ac_cv_prog_cc_c89=no
5526
cat >conftest.$ac_ext <<_ACEOF
5529
cat confdefs.h >>conftest.$ac_ext
5530
cat >>conftest.$ac_ext <<_ACEOF
5531
/* end confdefs.h. */
5534
#include <sys/types.h>
5535
#include <sys/stat.h>
5536
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5537
struct buf { int x; };
5538
FILE * (*rcsopen) (struct buf *, struct stat *, int);
5539
static char *e (p, i)
5545
static char *f (char * (*g) (char **, int), char **p, ...)
5550
s = g (p, va_arg (v,int));
5555
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5556
function prototypes and stuff, but not '\xHH' hex character constants.
5557
These don't provoke an error unfortunately, instead are silently treated
5558
as 'x'. The following induces an error, until -std is added to get
5559
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5560
array size at least. It's necessary to write '\x00'==0 to get something
5561
that's true only with -std. */
5562
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5564
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5565
inside strings and character constants. */
5567
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5569
int test (int i, double x);
5570
struct s1 {int (*f) (int a);};
5571
struct s2 {int (*f) (double a);};
5572
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5578
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5583
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5584
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5586
CC="$ac_save_CC $ac_arg"
5587
rm -f conftest.$ac_objext
5588
if { (ac_try="$ac_compile"
5590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5591
*) ac_try_echo=$ac_try;;
5593
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5594
$as_echo "$ac_try_echo") >&5
5595
(eval "$ac_compile") 2>conftest.er1
5597
grep -v '^ *+' conftest.er1 >conftest.err
5599
cat conftest.err >&5
5600
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601
(exit $ac_status); } && {
5602
test -z "$ac_c_werror_flag" ||
5603
test ! -s conftest.err
5604
} && test -s conftest.$ac_objext; then
5605
ac_cv_prog_cc_c89=$ac_arg
5607
$as_echo "$as_me: failed program was:" >&5
5608
sed 's/^/| /' conftest.$ac_ext >&5
5613
rm -f core conftest.err conftest.$ac_objext
5614
test "x$ac_cv_prog_cc_c89" != "xno" && break
5616
rm -f conftest.$ac_ext
5621
case "x$ac_cv_prog_cc_c89" in
5623
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
5624
$as_echo "none needed" >&6; } ;;
5626
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
5627
$as_echo "unsupported" >&6; } ;;
5629
CC="$CC $ac_cv_prog_cc_c89"
5630
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5631
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5636
ac_cpp='$CPP $CPPFLAGS'
5637
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5641
depcc="$CC" am_compiler_list=
5643
{ $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5644
$as_echo_n "checking dependency style of $depcc... " >&6; }
5645
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5646
$as_echo_n "(cached) " >&6
5648
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5649
# We make a subdir and do the tests there. Otherwise we can end up
5650
# making bogus files that we don't know about and never remove. For
5651
# instance it was reported that on HP-UX the gcc test will end up
5652
# making a dummy file named `D' -- because `-MD' means `put the output
5655
# Copy depcomp to subdir because otherwise we won't find it if we're
5656
# using a relative directory.
5657
cp "$am_depcomp" conftest.dir
5659
# We will build objects and dependencies in a subdirectory because
5660
# it helps to detect inapplicable dependency modes. For instance
5661
# both Tru64's cc and ICC support -MD to output dependencies as a
5662
# side effect of compilation, but ICC will put the dependencies in
5663
# the current directory while Tru64 will put them in the object
5667
am_cv_CC_dependencies_compiler_type=none
5668
if test "$am_compiler_list" = ""; then
5669
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5672
case " $depcc " in #(
5673
*\ -arch\ *\ -arch\ *) am__universal=true ;;
5676
for depmode in $am_compiler_list; do
5677
# Setup a source with many dependencies, because some compilers
5678
# like to wrap large dependency lists on column 80 (with \), and
5679
# we should not choose a depcomp mode which is confused by this.
5681
# We need to recreate these files for each test, as the compiler may
5682
# overwrite some of them when testing with obscure command lines.
5683
# This happens at least with the AIX C compiler.
5685
for i in 1 2 3 4 5 6; do
5686
echo '#include "conftst'$i'.h"' >> sub/conftest.c
5687
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5688
# Solaris 8's {/usr,}/bin/sh.
5689
touch sub/conftst$i.h
5691
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5693
# We check with `-c' and `-o' for the sake of the "dashmstdout"
5694
# mode. It turns out that the SunPro C++ compiler does not properly
5695
# handle `-M -o', and we need to detect this. Also, some Intel
5696
# versions had trouble with output in subdirs
5697
am__obj=sub/conftest.${OBJEXT-o}
5698
am__minus_obj="-o $am__obj"
5701
# This depmode causes a compiler race in universal mode.
5702
test "$am__universal" = false || continue
5705
# after this tag, mechanisms are not by side-effect, so they'll
5706
# only be used when explicitly requested
5707
if test "x$enable_dependency_tracking" = xyes; then
5713
msvisualcpp | msvcmsys)
5714
# This compiler won't grok `-c -o', but also, the minuso test has
5715
# not run yet. These depmodes are late enough in the game, and
5716
# so weak that their functioning should not be impacted.
5717
am__obj=conftest.${OBJEXT-o}
5722
if depmode=$depmode \
5723
source=sub/conftest.c object=$am__obj \
5724
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5725
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5726
>/dev/null 2>conftest.err &&
5727
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5728
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5729
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5730
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5731
# icc doesn't choke on unknown options, it will just issue warnings
5732
# or remarks (even with -Werror). So we grep stderr for any message
5733
# that says an option was ignored or not supported.
5734
# When given -MP, icc 7.0 and 7.1 complain thusly:
5735
# icc: Command line warning: ignoring option '-M'; no argument required
5736
# The diagnosis changed in icc 8.0:
5737
# icc: Command line remark: option '-MP' not supported
5738
if (grep 'ignoring option' conftest.err ||
5739
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5740
am_cv_CC_dependencies_compiler_type=$depmode
5749
am_cv_CC_dependencies_compiler_type=none
5753
{ $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5754
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5755
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5758
test "x$enable_dependency_tracking" != xno \
5759
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5761
am__fastdepCC_FALSE='#'
5763
am__fastdepCC_TRUE='#'
5764
am__fastdepCC_FALSE=
5768
# Find a good install program. We prefer a C program (faster),
5769
# so one script is as good as another. But avoid the broken or
5770
# incompatible versions:
5771
# SysV /etc/install, /usr/sbin/install
5772
# SunOS /usr/etc/install
5773
# IRIX /sbin/install
5775
# AmigaOS /C/install, which installs bootblocks on floppy discs
5776
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5777
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5778
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5779
# OS/2's system install, which has a completely different semantic
5780
# ./install, which can be erroneously created by make from ./install.sh.
5781
# Reject install programs that cannot install multiple files.
5782
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5783
$as_echo_n "checking for a BSD-compatible install... " >&6; }
5784
if test -z "$INSTALL"; then
5785
if test "${ac_cv_path_install+set}" = set; then
5786
$as_echo_n "(cached) " >&6
5788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5792
test -z "$as_dir" && as_dir=.
5793
# Account for people who put trailing slashes in PATH elements.
5795
./ | .// | /cC/* | \
5796
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5797
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5800
# OSF1 and SCO ODT 3.0 have their own names for install.
5801
# Don't use installbsd from OSF since it installs stuff as root
5803
for ac_prog in ginstall scoinst install; do
5804
for ac_exec_ext in '' $ac_executable_extensions; do
5805
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5806
if test $ac_prog = install &&
5807
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5808
# AIX install. It has an incompatible calling convention.
5810
elif test $ac_prog = install &&
5811
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5812
# program-specific install script used by HP pwplus--don't use.
5815
rm -rf conftest.one conftest.two conftest.dir
5816
echo one > conftest.one
5817
echo two > conftest.two
5819
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5820
test -s conftest.one && test -s conftest.two &&
5821
test -s conftest.dir/conftest.one &&
5822
test -s conftest.dir/conftest.two
5824
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5837
rm -rf conftest.one conftest.two conftest.dir
5840
if test "${ac_cv_path_install+set}" = set; then
5841
INSTALL=$ac_cv_path_install
5843
# As a last resort, use the slow shell script. Don't cache a
5844
# value for INSTALL within a source directory, because that will
5845
# break other packages using the cache if that directory is
5846
# removed, or if the value is a relative name.
5847
INSTALL=$ac_install_sh
5850
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5851
$as_echo "$INSTALL" >&6; }
5853
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5854
# It thinks the first close brace ends the variable substitution.
5855
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5857
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5859
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4563
XORG_MAN_PAGE="X Version 11"
4566
-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4567
-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4568
-e 's|__xservername__|Xorg|g' \
4569
-e 's|__xconfigfile__|xorg.conf|g' \
4570
-e 's|__projectroot__|\$(prefix)|g' \
4571
-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4572
-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4573
-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4574
-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4575
-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4576
-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4577
-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4581
# Check whether --enable-silent-rules was given.
4582
if test "${enable_silent_rules+set}" = set; then :
4583
enableval=$enable_silent_rules;
4586
case $enable_silent_rules in
4587
yes) AM_DEFAULT_VERBOSITY=0;;
4588
no) AM_DEFAULT_VERBOSITY=1;;
4589
*) AM_DEFAULT_VERBOSITY=0;;
5863
4595
# Checks for pkg-config packages
5866
{ $as_echo "$as_me:$LINENO: checking for XEYES" >&5
4598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XEYES" >&5
5867
4599
$as_echo_n "checking for XEYES... " >&6; }
5869
4601
if test -n "$XEYES_CFLAGS"; then
5870
4602
pkg_cv_XEYES_CFLAGS="$XEYES_CFLAGS"
5871
4603
elif test -n "$PKG_CONFIG"; then
5872
4604
if test -n "$PKG_CONFIG" && \
5873
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xmu\"") >&5
4605
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xt xext xmu\""; } >&5
5874
4606
($PKG_CONFIG --exists --print-errors "x11 xt xext xmu") 2>&5
5876
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5877
(exit $ac_status); }; then
4608
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4609
test $ac_status = 0; }; then
5878
4610
pkg_cv_XEYES_CFLAGS=`$PKG_CONFIG --cflags "x11 xt xext xmu" 2>/dev/null`