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. :-)
1498
1451
test -n "$ac_init_help" && exit $ac_status
1499
1452
if $ac_init_version; then
1501
xcursorgen configure 1.0.3
1502
generated by GNU Autoconf 2.63
1454
xcursorgen configure 1.0.4
1455
generated by GNU Autoconf 2.68
1504
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1505
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1457
Copyright (C) 2010 Free Software Foundation, Inc.
1506
1458
This configure script is free software; the Free Software Foundation
1507
1459
gives unlimited permission to copy, distribute and modify it.
1464
## ------------------------ ##
1465
## Autoconf initialization. ##
1466
## ------------------------ ##
1468
# ac_fn_c_try_compile LINENO
1469
# --------------------------
1470
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1471
ac_fn_c_try_compile ()
1473
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1474
rm -f conftest.$ac_objext
1475
if { { ac_try="$ac_compile"
1477
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1478
*) ac_try_echo=$ac_try;;
1480
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1481
$as_echo "$ac_try_echo"; } >&5
1482
(eval "$ac_compile") 2>conftest.err
1484
if test -s conftest.err; then
1485
grep -v '^ *+' conftest.err >conftest.er1
1486
cat conftest.er1 >&5
1487
mv -f conftest.er1 conftest.err
1489
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1490
test $ac_status = 0; } && {
1491
test -z "$ac_c_werror_flag" ||
1492
test ! -s conftest.err
1493
} && test -s conftest.$ac_objext; then :
1496
$as_echo "$as_me: failed program was:" >&5
1497
sed 's/^/| /' conftest.$ac_ext >&5
1501
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1502
as_fn_set_status $ac_retval
1504
} # ac_fn_c_try_compile
1506
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1507
# ---------------------------------------------
1508
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1510
ac_fn_c_check_decl ()
1512
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513
as_decl_name=`echo $2|sed 's/ *(.*//'`
1514
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1515
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1516
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1517
if eval \${$3+:} false; then :
1518
$as_echo_n "(cached) " >&6
1520
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1521
/* end confdefs.h. */
1526
#ifndef $as_decl_name
1528
(void) $as_decl_use;
1530
(void) $as_decl_name;
1538
if ac_fn_c_try_compile "$LINENO"; then :
1543
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1547
$as_echo "$ac_res" >&6; }
1548
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1550
} # ac_fn_c_check_decl
1552
# ac_fn_c_try_cpp LINENO
1553
# ----------------------
1554
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1557
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1558
if { { ac_try="$ac_cpp conftest.$ac_ext"
1560
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1561
*) ac_try_echo=$ac_try;;
1563
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1564
$as_echo "$ac_try_echo"; } >&5
1565
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1567
if test -s conftest.err; then
1568
grep -v '^ *+' conftest.err >conftest.er1
1569
cat conftest.er1 >&5
1570
mv -f conftest.er1 conftest.err
1572
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1573
test $ac_status = 0; } > conftest.i && {
1574
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1575
test ! -s conftest.err
1579
$as_echo "$as_me: failed program was:" >&5
1580
sed 's/^/| /' conftest.$ac_ext >&5
1584
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1585
as_fn_set_status $ac_retval
1589
# ac_fn_c_try_run LINENO
1590
# ----------------------
1591
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1592
# that executables *can* be run.
1595
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596
if { { ac_try="$ac_link"
1598
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1599
*) ac_try_echo=$ac_try;;
1601
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1602
$as_echo "$ac_try_echo"; } >&5
1603
(eval "$ac_link") 2>&5
1605
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1607
{ { case "(($ac_try" in
1608
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609
*) ac_try_echo=$ac_try;;
1611
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612
$as_echo "$ac_try_echo"; } >&5
1613
(eval "$ac_try") 2>&5
1615
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616
test $ac_status = 0; }; }; then :
1619
$as_echo "$as_me: program exited with status $ac_status" >&5
1620
$as_echo "$as_me: failed program was:" >&5
1621
sed 's/^/| /' conftest.$ac_ext >&5
1623
ac_retval=$ac_status
1625
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1626
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627
as_fn_set_status $ac_retval
1631
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1632
# -------------------------------------------------------
1633
# Tests whether HEADER exists and can be compiled using the include files in
1634
# INCLUDES, setting the cache variable VAR accordingly.
1635
ac_fn_c_check_header_compile ()
1637
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1639
$as_echo_n "checking for $2... " >&6; }
1640
if eval \${$3+:} false; then :
1641
$as_echo_n "(cached) " >&6
1643
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1644
/* end confdefs.h. */
1648
if ac_fn_c_try_compile "$LINENO"; then :
1653
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657
$as_echo "$ac_res" >&6; }
1658
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660
} # ac_fn_c_check_header_compile
1511
1661
cat >config.log <<_ACEOF
1512
1662
This file contains any messages produced by compilers while
1513
1663
running configure, to aid debugging if configure makes a mistake.
1515
It was created by xcursorgen $as_me 1.0.3, which was
1516
generated by GNU Autoconf 2.63. Invocation command line was
1665
It was created by xcursorgen $as_me 1.0.4, which was
1666
generated by GNU Autoconf 2.68. Invocation command line was
3029
if test -z "$ac_file"; then :
3030
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031
$as_echo "no" >&6; }
3032
$as_echo "$as_me: failed program was:" >&5
3033
sed 's/^/| /' conftest.$ac_ext >&5
2872
{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3035
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3036
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3037
as_fn_error 77 "C compiler cannot create executables
3038
See \`config.log' for more details" "$LINENO" 5; }
3040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3041
$as_echo "yes" >&6; }
3043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3044
$as_echo_n "checking for C compiler default output file name... " >&6; }
3045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2873
3046
$as_echo "$ac_file" >&6; }
2874
if test -z "$ac_file"; then
2875
$as_echo "$as_me: failed program was:" >&5
2876
sed 's/^/| /' conftest.$ac_ext >&5
2878
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2879
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2880
{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2881
See \`config.log' for more details." >&5
2882
$as_echo "$as_me: error: C compiler cannot create executables
2883
See \`config.log' for more details." >&2;}
2884
{ (exit 77); exit 77; }; }; }
2887
3047
ac_exeext=$ac_cv_exeext
2889
# Check that the compiler produces executables we can run. If not, either
2890
# the compiler is broken, or we cross compile.
2891
{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2892
$as_echo_n "checking whether the C compiler works... " >&6; }
2893
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2894
# If not cross compiling, check that we can run a simple program.
2895
if test "$cross_compiling" != yes; then
2896
if { ac_try='./$ac_file'
2897
{ (case "(($ac_try" in
2898
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899
*) ac_try_echo=$ac_try;;
2901
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2902
$as_echo "$ac_try_echo") >&5
2903
(eval "$ac_try") 2>&5
2905
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906
(exit $ac_status); }; }; then
2909
if test "$cross_compiling" = maybe; then
2912
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2913
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2914
{ { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2915
If you meant to cross compile, use \`--host'.
2916
See \`config.log' for more details." >&5
2917
$as_echo "$as_me: error: cannot run C compiled programs.
2918
If you meant to cross compile, use \`--host'.
2919
See \`config.log' for more details." >&2;}
2920
{ (exit 1); exit 1; }; }; }
2924
{ $as_echo "$as_me:$LINENO: result: yes" >&5
2925
$as_echo "yes" >&6; }
2927
3049
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2928
3050
ac_clean_files=$ac_clean_files_save
2929
# Check that the compiler produces executables we can run. If not, either
2930
# the compiler is broken, or we cross compile.
2931
{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2932
$as_echo_n "checking whether we are cross compiling... " >&6; }
2933
{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2934
$as_echo "$cross_compiling" >&6; }
2936
{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3051
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2937
3052
$as_echo_n "checking for suffix of executables... " >&6; }
2938
if { (ac_try="$ac_link"
3053
if { { ac_try="$ac_link"
2939
3054
case "(($ac_try" in
2940
3055
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941
3056
*) ac_try_echo=$ac_try;;
2943
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2944
$as_echo "$ac_try_echo") >&5
3058
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3059
$as_echo "$ac_try_echo"; } >&5
2945
3060
(eval "$ac_link") 2>&5
2947
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948
(exit $ac_status); }; then
3062
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3063
test $ac_status = 0; }; then :
2949
3064
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2950
3065
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2951
3066
# work properly (i.e., refer to `conftest.exe'), while it won't with
3566
# Find a good install program. We prefer a C program (faster),
3567
# so one script is as good as another. But avoid the broken or
3568
# incompatible versions:
3569
# SysV /etc/install, /usr/sbin/install
3570
# SunOS /usr/etc/install
3571
# IRIX /sbin/install
3573
# AmigaOS /C/install, which installs bootblocks on floppy discs
3574
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3575
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3576
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3577
# OS/2's system install, which has a completely different semantic
3578
# ./install, which can be erroneously created by make from ./install.sh.
3579
# Reject install programs that cannot install multiple files.
3580
{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3581
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3582
if test -z "$INSTALL"; then
3583
if test "${ac_cv_path_install+set}" = set; then
3584
$as_echo_n "(cached) " >&6
3586
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590
test -z "$as_dir" && as_dir=.
3591
# Account for people who put trailing slashes in PATH elements.
3593
./ | .// | /cC/* | \
3594
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3595
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3598
# OSF1 and SCO ODT 3.0 have their own names for install.
3599
# Don't use installbsd from OSF since it installs stuff as root
3601
for ac_prog in ginstall scoinst install; do
3602
for ac_exec_ext in '' $ac_executable_extensions; do
3603
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3604
if test $ac_prog = install &&
3605
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3606
# AIX install. It has an incompatible calling convention.
3608
elif test $ac_prog = install &&
3609
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3610
# program-specific install script used by HP pwplus--don't use.
3613
rm -rf conftest.one conftest.two conftest.dir
3614
echo one > conftest.one
3615
echo two > conftest.two
3617
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3618
test -s conftest.one && test -s conftest.two &&
3619
test -s conftest.dir/conftest.one &&
3620
test -s conftest.dir/conftest.two
3622
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3635
rm -rf conftest.one conftest.two conftest.dir
3638
if test "${ac_cv_path_install+set}" = set; then
3639
INSTALL=$ac_cv_path_install
3641
# As a last resort, use the slow shell script. Don't cache a
3642
# value for INSTALL within a source directory, because that will
3643
# break other packages using the cache if that directory is
3644
# removed, or if the value is a relative name.
3645
INSTALL=$ac_install_sh
3648
{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3649
$as_echo "$INSTALL" >&6; }
3651
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3652
# It thinks the first close brace ends the variable substitution.
3653
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3655
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3657
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3662
ac_cpp='$CPP $CPPFLAGS'
3663
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3666
{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3667
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3668
# On Suns, sometimes $CPP names a directory.
3669
if test -n "$CPP" && test -d "$CPP"; then
3672
if test -z "$CPP"; then
3673
if test "${ac_cv_prog_CPP+set}" = set; then
3674
$as_echo_n "(cached) " >&6
3676
# Double quotes because CPP needs to be expanded
3677
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3680
for ac_c_preproc_warn_flag in '' yes
3682
# Use a header file that comes with gcc, so configuring glibc
3683
# with a fresh cross-compiler works.
3684
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3685
# <limits.h> exists even on freestanding compilers.
3686
# On the NeXT, cc -E runs the code through the compiler's parser,
3687
# not just through cpp. "Syntax error" is here to catch this case.
3688
cat >conftest.$ac_ext <<_ACEOF
3691
cat confdefs.h >>conftest.$ac_ext
3692
cat >>conftest.$ac_ext <<_ACEOF
3693
/* end confdefs.h. */
3695
# include <limits.h>
3697
# include <assert.h>
3701
if { (ac_try="$ac_cpp conftest.$ac_ext"
3703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3704
*) ac_try_echo=$ac_try;;
3706
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3707
$as_echo "$ac_try_echo") >&5
3708
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3710
grep -v '^ *+' conftest.er1 >conftest.err
3712
cat conftest.err >&5
3713
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714
(exit $ac_status); } >/dev/null && {
3715
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3716
test ! -s conftest.err
3720
$as_echo "$as_me: failed program was:" >&5
3721
sed 's/^/| /' conftest.$ac_ext >&5
3723
# Broken: fails on valid input.
3727
rm -f conftest.err conftest.$ac_ext
3729
# OK, works on sane cases. Now check whether nonexistent headers
3730
# can be detected and how.
3731
cat >conftest.$ac_ext <<_ACEOF
3734
cat confdefs.h >>conftest.$ac_ext
3735
cat >>conftest.$ac_ext <<_ACEOF
3736
/* end confdefs.h. */
3737
#include <ac_nonexistent.h>
3739
if { (ac_try="$ac_cpp conftest.$ac_ext"
3741
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742
*) ac_try_echo=$ac_try;;
3744
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3745
$as_echo "$ac_try_echo") >&5
3746
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3748
grep -v '^ *+' conftest.er1 >conftest.err
3750
cat conftest.err >&5
3751
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3752
(exit $ac_status); } >/dev/null && {
3753
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3754
test ! -s conftest.err
3756
# Broken: success on invalid input.
3759
$as_echo "$as_me: failed program was:" >&5
3760
sed 's/^/| /' conftest.$ac_ext >&5
3762
# Passes both tests.
3767
rm -f conftest.err conftest.$ac_ext
3770
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3771
rm -f conftest.err conftest.$ac_ext
3772
if $ac_preproc_ok; then
3784
{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
3785
$as_echo "$CPP" >&6; }
3787
for ac_c_preproc_warn_flag in '' yes
3789
# Use a header file that comes with gcc, so configuring glibc
3790
# with a fresh cross-compiler works.
3791
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3792
# <limits.h> exists even on freestanding compilers.
3793
# On the NeXT, cc -E runs the code through the compiler's parser,
3794
# not just through cpp. "Syntax error" is here to catch this case.
3795
cat >conftest.$ac_ext <<_ACEOF
3798
cat confdefs.h >>conftest.$ac_ext
3799
cat >>conftest.$ac_ext <<_ACEOF
3800
/* end confdefs.h. */
3802
# include <limits.h>
3804
# include <assert.h>
3808
if { (ac_try="$ac_cpp conftest.$ac_ext"
3810
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811
*) ac_try_echo=$ac_try;;
3813
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3814
$as_echo "$ac_try_echo") >&5
3815
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3817
grep -v '^ *+' conftest.er1 >conftest.err
3819
cat conftest.err >&5
3820
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3821
(exit $ac_status); } >/dev/null && {
3822
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3823
test ! -s conftest.err
3827
$as_echo "$as_me: failed program was:" >&5
3828
sed 's/^/| /' conftest.$ac_ext >&5
3830
# Broken: fails on valid input.
3834
rm -f conftest.err conftest.$ac_ext
3836
# OK, works on sane cases. Now check whether nonexistent headers
3837
# can be detected and how.
3838
cat >conftest.$ac_ext <<_ACEOF
3841
cat confdefs.h >>conftest.$ac_ext
3842
cat >>conftest.$ac_ext <<_ACEOF
3843
/* end confdefs.h. */
3844
#include <ac_nonexistent.h>
3846
if { (ac_try="$ac_cpp conftest.$ac_ext"
3848
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849
*) ac_try_echo=$ac_try;;
3851
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3852
$as_echo "$ac_try_echo") >&5
3853
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3855
grep -v '^ *+' conftest.er1 >conftest.err
3857
cat conftest.err >&5
3858
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859
(exit $ac_status); } >/dev/null && {
3860
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3861
test ! -s conftest.err
3863
# Broken: success on invalid input.
3866
$as_echo "$as_me: failed program was:" >&5
3867
sed 's/^/| /' conftest.$ac_ext >&5
3869
# Passes both tests.
3874
rm -f conftest.err conftest.$ac_ext
3877
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3878
rm -f conftest.err conftest.$ac_ext
3879
if $ac_preproc_ok; then
3882
{ { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3883
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884
{ { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3885
See \`config.log' for more details." >&5
3886
$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3887
See \`config.log' for more details." >&2;}
3888
{ (exit 1); exit 1; }; }; }
3892
ac_cpp='$CPP $CPPFLAGS'
3893
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3894
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3895
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3898
{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3899
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3900
if test "${ac_cv_path_GREP+set}" = set; then
3901
$as_echo_n "(cached) " >&6
3903
if test -z "$GREP"; then
3904
ac_path_GREP_found=false
3905
# Loop through the user's path and test for each of PROGNAME-LIST
3906
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3907
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3910
test -z "$as_dir" && as_dir=.
3911
for ac_prog in grep ggrep; do
3912
for ac_exec_ext in '' $ac_executable_extensions; do
3913
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3914
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3915
# Check for GNU ac_path_GREP and select it if it is found.
3916
# Check for GNU $ac_path_GREP
3917
case `"$ac_path_GREP" --version 2>&1` in
3919
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3922
$as_echo_n 0123456789 >"conftest.in"
3925
cat "conftest.in" "conftest.in" >"conftest.tmp"
3926
mv "conftest.tmp" "conftest.in"
3927
cp "conftest.in" "conftest.nl"
3928
$as_echo 'GREP' >> "conftest.nl"
3929
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3930
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3931
ac_count=`expr $ac_count + 1`
3932
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3933
# Best one so far, save it but keep looking for a better one
3934
ac_cv_path_GREP="$ac_path_GREP"
3935
ac_path_GREP_max=$ac_count
3937
# 10*(2^10) chars as input seems more than enough
3938
test $ac_count -gt 10 && break
3940
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3943
$ac_path_GREP_found && break 3
3948
if test -z "$ac_cv_path_GREP"; then
3949
{ { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3950
$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3951
{ (exit 1); exit 1; }; }
3954
ac_cv_path_GREP=$GREP
3958
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3959
$as_echo "$ac_cv_path_GREP" >&6; }
3960
GREP="$ac_cv_path_GREP"
3963
{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
3964
$as_echo_n "checking for egrep... " >&6; }
3965
if test "${ac_cv_path_EGREP+set}" = set; then
3966
$as_echo_n "(cached) " >&6
3968
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3969
then ac_cv_path_EGREP="$GREP -E"
3971
if test -z "$EGREP"; then
3972
ac_path_EGREP_found=false
3973
# Loop through the user's path and test for each of PROGNAME-LIST
3974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3978
test -z "$as_dir" && as_dir=.
3979
for ac_prog in egrep; do
3980
for ac_exec_ext in '' $ac_executable_extensions; do
3981
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3982
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3983
# Check for GNU ac_path_EGREP and select it if it is found.
3984
# Check for GNU $ac_path_EGREP
3985
case `"$ac_path_EGREP" --version 2>&1` in
3987
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3990
$as_echo_n 0123456789 >"conftest.in"
3993
cat "conftest.in" "conftest.in" >"conftest.tmp"
3994
mv "conftest.tmp" "conftest.in"
3995
cp "conftest.in" "conftest.nl"
3996
$as_echo 'EGREP' >> "conftest.nl"
3997
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3998
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3999
ac_count=`expr $ac_count + 1`
4000
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4001
# Best one so far, save it but keep looking for a better one
4002
ac_cv_path_EGREP="$ac_path_EGREP"
4003
ac_path_EGREP_max=$ac_count
4005
# 10*(2^10) chars as input seems more than enough
4006
test $ac_count -gt 10 && break
4008
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4011
$ac_path_EGREP_found && break 3
4016
if test -z "$ac_cv_path_EGREP"; then
4017
{ { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018
$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019
{ (exit 1); exit 1; }; }
4022
ac_cv_path_EGREP=$EGREP
4027
{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4028
$as_echo "$ac_cv_path_EGREP" >&6; }
4029
EGREP="$ac_cv_path_EGREP"
4032
{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4033
$as_echo_n "checking for ANSI C header files... " >&6; }
4034
if test "${ac_cv_header_stdc+set}" = set; then
4035
$as_echo_n "(cached) " >&6
4037
cat >conftest.$ac_ext <<_ACEOF
4040
cat confdefs.h >>conftest.$ac_ext
4041
cat >>conftest.$ac_ext <<_ACEOF
4042
/* end confdefs.h. */
4056
rm -f conftest.$ac_objext
4057
if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
4066
grep -v '^ *+' conftest.er1 >conftest.err
4068
cat conftest.err >&5
4069
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070
(exit $ac_status); } && {
4071
test -z "$ac_c_werror_flag" ||
4072
test ! -s conftest.err
4073
} && test -s conftest.$ac_objext; then
4074
ac_cv_header_stdc=yes
4076
$as_echo "$as_me: failed program was:" >&5
4077
sed 's/^/| /' conftest.$ac_ext >&5
4079
ac_cv_header_stdc=no
4082
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4084
if test $ac_cv_header_stdc = yes; then
4085
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4086
cat >conftest.$ac_ext <<_ACEOF
4089
cat confdefs.h >>conftest.$ac_ext
4090
cat >>conftest.$ac_ext <<_ACEOF
4091
/* end confdefs.h. */
4095
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4096
$EGREP "memchr" >/dev/null 2>&1; then
4099
ac_cv_header_stdc=no
4105
if test $ac_cv_header_stdc = yes; then
4106
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4107
cat >conftest.$ac_ext <<_ACEOF
4110
cat confdefs.h >>conftest.$ac_ext
4111
cat >>conftest.$ac_ext <<_ACEOF
4112
/* end confdefs.h. */
4116
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4117
$EGREP "free" >/dev/null 2>&1; then
4120
ac_cv_header_stdc=no
4126
if test $ac_cv_header_stdc = yes; then
4127
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4128
if test "$cross_compiling" = yes; then
4131
cat >conftest.$ac_ext <<_ACEOF
4134
cat confdefs.h >>conftest.$ac_ext
4135
cat >>conftest.$ac_ext <<_ACEOF
4136
/* end confdefs.h. */
4139
#if ((' ' & 0x0FF) == 0x020)
4140
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4141
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4143
# define ISLOWER(c) \
4144
(('a' <= (c) && (c) <= 'i') \
4145
|| ('j' <= (c) && (c) <= 'r') \
4146
|| ('s' <= (c) && (c) <= 'z'))
4147
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4150
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4155
for (i = 0; i < 256; i++)
4156
if (XOR (islower (i), ISLOWER (i))
4157
|| toupper (i) != TOUPPER (i))
4162
rm -f conftest$ac_exeext
4163
if { (ac_try="$ac_link"
4165
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4166
*) ac_try_echo=$ac_try;;
4168
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4169
$as_echo "$ac_try_echo") >&5
4170
(eval "$ac_link") 2>&5
4172
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4174
{ (case "(($ac_try" in
4175
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176
*) ac_try_echo=$ac_try;;
4178
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4179
$as_echo "$ac_try_echo") >&5
4180
(eval "$ac_try") 2>&5
4182
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4183
(exit $ac_status); }; }; then
4186
$as_echo "$as_me: program exited with status $ac_status" >&5
4187
$as_echo "$as_me: failed program was:" >&5
4188
sed 's/^/| /' conftest.$ac_ext >&5
4191
ac_cv_header_stdc=no
4193
rm -rf conftest.dSYM
4194
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4200
{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4201
$as_echo "$ac_cv_header_stdc" >&6; }
4202
if test $ac_cv_header_stdc = yes; then
4204
cat >>confdefs.h <<\_ACEOF
4205
#define STDC_HEADERS 1
4210
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4220
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4221
inttypes.h stdint.h unistd.h
4223
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4224
{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4225
$as_echo_n "checking for $ac_header... " >&6; }
4226
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4227
$as_echo_n "(cached) " >&6
4229
cat >conftest.$ac_ext <<_ACEOF
4232
cat confdefs.h >>conftest.$ac_ext
4233
cat >>conftest.$ac_ext <<_ACEOF
4234
/* end confdefs.h. */
4235
$ac_includes_default
4237
#include <$ac_header>
4239
rm -f conftest.$ac_objext
4240
if { (ac_try="$ac_compile"
4242
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243
*) ac_try_echo=$ac_try;;
4245
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4246
$as_echo "$ac_try_echo") >&5
4247
(eval "$ac_compile") 2>conftest.er1
4249
grep -v '^ *+' conftest.er1 >conftest.err
4251
cat conftest.err >&5
4252
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253
(exit $ac_status); } && {
4254
test -z "$ac_c_werror_flag" ||
4255
test ! -s conftest.err
4256
} && test -s conftest.$ac_objext; then
4257
eval "$as_ac_Header=yes"
4259
$as_echo "$as_me: failed program was:" >&5
4260
sed 's/^/| /' conftest.$ac_ext >&5
4262
eval "$as_ac_Header=no"
4265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4267
ac_res=`eval 'as_val=${'$as_ac_Header'}
4268
$as_echo "$as_val"'`
4269
{ $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4270
$as_echo "$ac_res" >&6; }
4271
as_val=`eval 'as_val=${'$as_ac_Header'}
4272
$as_echo "$as_val"'`
4273
if test "x$as_val" = x""yes; then
4274
cat >>confdefs.h <<_ACEOF
4275
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4283
{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4284
3540
$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4285
if test "${ac_cv_prog_cc_c99+set}" = set; then
3541
if ${ac_cv_prog_cc_c99+:} false; then :
4286
3542
$as_echo_n "(cached) " >&6
4288
3544
ac_cv_prog_cc_c99=no
4290
cat >conftest.$ac_ext <<_ACEOF
4293
cat confdefs.h >>conftest.$ac_ext
4294
cat >>conftest.$ac_ext <<_ACEOF
3546
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295
3547
/* end confdefs.h. */
4296
3548
#include <stdarg.h>
4297
3549
#include <stdbool.h>
4470
3699
case "x$ac_cv_prog_cc_c99" in
4472
{ $as_echo "$as_me:$LINENO: result: none needed" >&5
3701
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4473
3702
$as_echo "none needed" >&6; } ;;
4475
{ $as_echo "$as_me:$LINENO: result: unsupported" >&5
3704
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4476
3705
$as_echo "unsupported" >&6; } ;;
4478
3707
CC="$CC $ac_cv_prog_cc_c99"
4479
{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4480
3709
$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
3711
if test "x$ac_cv_prog_cc_c99" != xno; then :
3718
ac_cpp='$CPP $CPPFLAGS'
3719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3722
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3723
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3724
# On Suns, sometimes $CPP names a directory.
3725
if test -n "$CPP" && test -d "$CPP"; then
3728
if test -z "$CPP"; then
3729
if ${ac_cv_prog_CPP+:} false; then :
3730
$as_echo_n "(cached) " >&6
3732
# Double quotes because CPP needs to be expanded
3733
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3736
for ac_c_preproc_warn_flag in '' yes
3738
# Use a header file that comes with gcc, so configuring glibc
3739
# with a fresh cross-compiler works.
3740
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3741
# <limits.h> exists even on freestanding compilers.
3742
# On the NeXT, cc -E runs the code through the compiler's parser,
3743
# not just through cpp. "Syntax error" is here to catch this case.
3744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745
/* end confdefs.h. */
3747
# include <limits.h>
3749
# include <assert.h>
3753
if ac_fn_c_try_cpp "$LINENO"; then :
3756
# Broken: fails on valid input.
3759
rm -f conftest.err conftest.i conftest.$ac_ext
3761
# OK, works on sane cases. Now check whether nonexistent headers
3762
# can be detected and how.
3763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3764
/* end confdefs.h. */
3765
#include <ac_nonexistent.h>
3767
if ac_fn_c_try_cpp "$LINENO"; then :
3768
# Broken: success on invalid input.
3771
# Passes both tests.
3775
rm -f conftest.err conftest.i conftest.$ac_ext
3778
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3779
rm -f conftest.i conftest.err conftest.$ac_ext
3780
if $ac_preproc_ok; then :
3792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3793
$as_echo "$CPP" >&6; }
3795
for ac_c_preproc_warn_flag in '' yes
3797
# Use a header file that comes with gcc, so configuring glibc
3798
# with a fresh cross-compiler works.
3799
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3800
# <limits.h> exists even on freestanding compilers.
3801
# On the NeXT, cc -E runs the code through the compiler's parser,
3802
# not just through cpp. "Syntax error" is here to catch this case.
3803
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804
/* end confdefs.h. */
3806
# include <limits.h>
3808
# include <assert.h>
3812
if ac_fn_c_try_cpp "$LINENO"; then :
3815
# Broken: fails on valid input.
3818
rm -f conftest.err conftest.i conftest.$ac_ext
3820
# OK, works on sane cases. Now check whether nonexistent headers
3821
# can be detected and how.
3822
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3823
/* end confdefs.h. */
3824
#include <ac_nonexistent.h>
3826
if ac_fn_c_try_cpp "$LINENO"; then :
3827
# Broken: success on invalid input.
3830
# Passes both tests.
3834
rm -f conftest.err conftest.i conftest.$ac_ext
3837
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3838
rm -f conftest.i conftest.err conftest.$ac_ext
3839
if $ac_preproc_ok; then :
3842
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3843
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3844
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3845
See \`config.log' for more details" "$LINENO" 5; }
3849
ac_cpp='$CPP $CPPFLAGS'
3850
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3856
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3857
if ${ac_cv_path_GREP+:} false; then :
3858
$as_echo_n "(cached) " >&6
3860
if test -z "$GREP"; then
3861
ac_path_GREP_found=false
3862
# Loop through the user's path and test for each of PROGNAME-LIST
3863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3867
test -z "$as_dir" && as_dir=.
3868
for ac_prog in grep ggrep; do
3869
for ac_exec_ext in '' $ac_executable_extensions; do
3870
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3871
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3872
# Check for GNU ac_path_GREP and select it if it is found.
3873
# Check for GNU $ac_path_GREP
3874
case `"$ac_path_GREP" --version 2>&1` in
3876
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3879
$as_echo_n 0123456789 >"conftest.in"
3882
cat "conftest.in" "conftest.in" >"conftest.tmp"
3883
mv "conftest.tmp" "conftest.in"
3884
cp "conftest.in" "conftest.nl"
3885
$as_echo 'GREP' >> "conftest.nl"
3886
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3887
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3888
as_fn_arith $ac_count + 1 && ac_count=$as_val
3889
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3890
# Best one so far, save it but keep looking for a better one
3891
ac_cv_path_GREP="$ac_path_GREP"
3892
ac_path_GREP_max=$ac_count
3894
# 10*(2^10) chars as input seems more than enough
3895
test $ac_count -gt 10 && break
3897
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3900
$ac_path_GREP_found && break 3
3905
if test -z "$ac_cv_path_GREP"; then
3906
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3909
ac_cv_path_GREP=$GREP
3913
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3914
$as_echo "$ac_cv_path_GREP" >&6; }
3915
GREP="$ac_cv_path_GREP"
3918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3919
$as_echo_n "checking for egrep... " >&6; }
3920
if ${ac_cv_path_EGREP+:} false; then :
3921
$as_echo_n "(cached) " >&6
3923
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3924
then ac_cv_path_EGREP="$GREP -E"
3926
if test -z "$EGREP"; then
3927
ac_path_EGREP_found=false
3928
# Loop through the user's path and test for each of PROGNAME-LIST
3929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3933
test -z "$as_dir" && as_dir=.
3934
for ac_prog in egrep; do
3935
for ac_exec_ext in '' $ac_executable_extensions; do
3936
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3937
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3938
# Check for GNU ac_path_EGREP and select it if it is found.
3939
# Check for GNU $ac_path_EGREP
3940
case `"$ac_path_EGREP" --version 2>&1` in
3942
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3945
$as_echo_n 0123456789 >"conftest.in"
3948
cat "conftest.in" "conftest.in" >"conftest.tmp"
3949
mv "conftest.tmp" "conftest.in"
3950
cp "conftest.in" "conftest.nl"
3951
$as_echo 'EGREP' >> "conftest.nl"
3952
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3953
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3954
as_fn_arith $ac_count + 1 && ac_count=$as_val
3955
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3956
# Best one so far, save it but keep looking for a better one
3957
ac_cv_path_EGREP="$ac_path_EGREP"
3958
ac_path_EGREP_max=$ac_count
3960
# 10*(2^10) chars as input seems more than enough
3961
test $ac_count -gt 10 && break
3963
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3966
$ac_path_EGREP_found && break 3
3971
if test -z "$ac_cv_path_EGREP"; then
3972
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3975
ac_cv_path_EGREP=$EGREP
3980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3981
$as_echo "$ac_cv_path_EGREP" >&6; }
3982
EGREP="$ac_cv_path_EGREP"
3985
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3986
$as_echo_n "checking for ANSI C header files... " >&6; }
3987
if ${ac_cv_header_stdc+:} false; then :
3988
$as_echo_n "(cached) " >&6
3990
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3991
/* end confdefs.h. */
4005
if ac_fn_c_try_compile "$LINENO"; then :
4006
ac_cv_header_stdc=yes
4008
ac_cv_header_stdc=no
4010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012
if test $ac_cv_header_stdc = yes; then
4013
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4014
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4015
/* end confdefs.h. */
4019
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4020
$EGREP "memchr" >/dev/null 2>&1; then :
4023
ac_cv_header_stdc=no
4029
if test $ac_cv_header_stdc = yes; then
4030
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4031
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4032
/* end confdefs.h. */
4036
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4037
$EGREP "free" >/dev/null 2>&1; then :
4040
ac_cv_header_stdc=no
4046
if test $ac_cv_header_stdc = yes; then
4047
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4048
if test "$cross_compiling" = yes; then :
4051
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052
/* end confdefs.h. */
4055
#if ((' ' & 0x0FF) == 0x020)
4056
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4057
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4059
# define ISLOWER(c) \
4060
(('a' <= (c) && (c) <= 'i') \
4061
|| ('j' <= (c) && (c) <= 'r') \
4062
|| ('s' <= (c) && (c) <= 'z'))
4063
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4066
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4071
for (i = 0; i < 256; i++)
4072
if (XOR (islower (i), ISLOWER (i))
4073
|| toupper (i) != TOUPPER (i))
4078
if ac_fn_c_try_run "$LINENO"; then :
4081
ac_cv_header_stdc=no
4083
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4084
conftest.$ac_objext conftest.beam conftest.$ac_ext
4089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4090
$as_echo "$ac_cv_header_stdc" >&6; }
4091
if test $ac_cv_header_stdc = yes; then
4093
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4097
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4098
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4099
inttypes.h stdint.h unistd.h
4101
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4102
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4104
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4105
cat >>confdefs.h <<_ACEOF
4106
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4116
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4117
if test -n "$ac_tool_prefix"; then
4118
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4119
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4120
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4121
$as_echo_n "checking for $ac_word... " >&6; }
4122
if ${ac_cv_path_PKG_CONFIG+:} false; then :
4123
$as_echo_n "(cached) " >&6
4127
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4134
test -z "$as_dir" && as_dir=.
4135
for ac_exec_ext in '' $ac_executable_extensions; do
4136
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4137
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4138
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4149
if test -n "$PKG_CONFIG"; then
4150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4151
$as_echo "$PKG_CONFIG" >&6; }
4153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4154
$as_echo "no" >&6; }
4159
if test -z "$ac_cv_path_PKG_CONFIG"; then
4160
ac_pt_PKG_CONFIG=$PKG_CONFIG
4161
# Extract the first word of "pkg-config", so it can be a program name with args.
4162
set dummy pkg-config; ac_word=$2
4163
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4164
$as_echo_n "checking for $ac_word... " >&6; }
4165
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4166
$as_echo_n "(cached) " >&6
4168
case $ac_pt_PKG_CONFIG in
4170
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4177
test -z "$as_dir" && as_dir=.
4178
for ac_exec_ext in '' $ac_executable_extensions; do
4179
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4180
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4181
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4191
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4192
if test -n "$ac_pt_PKG_CONFIG"; then
4193
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4194
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4197
$as_echo "no" >&6; }
4200
if test "x$ac_pt_PKG_CONFIG" = x; then
4203
case $cross_compiling:$ac_tool_warned in
4205
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4206
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4207
ac_tool_warned=yes ;;
4209
PKG_CONFIG=$ac_pt_PKG_CONFIG
4212
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4216
if test -n "$PKG_CONFIG"; then
4217
_pkg_min_version=0.9.0
4218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4219
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4220
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4222
$as_echo "yes" >&6; }
4224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4225
$as_echo "no" >&6; }
4485
4230
# Make sure we can run config.sub.
4486
4231
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4487
{ { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4488
$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4489
{ (exit 1); exit 1; }; }
4232
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4491
{ $as_echo "$as_me:$LINENO: checking build system type" >&5
4234
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4492
4235
$as_echo_n "checking build system type... " >&6; }
4493
if test "${ac_cv_build+set}" = set; then
4236
if ${ac_cv_build+:} false; then :
4494
4237
$as_echo_n "(cached) " >&6
4496
4239
ac_build_alias=$build_alias
4497
4240
test "x$ac_build_alias" = x &&
4498
4241
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4499
4242
test "x$ac_build_alias" = x &&
4500
{ { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4501
$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4502
{ (exit 1); exit 1; }; }
4243
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4503
4244
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4504
{ { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4505
$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4506
{ (exit 1); exit 1; }; }
4245
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4509
{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4510
4249
$as_echo "$ac_cv_build" >&6; }
4511
4250
case $ac_cv_build in
4513
*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4514
$as_echo "$as_me: error: invalid value of canonical build" >&2;}
4515
{ (exit 1); exit 1; }; };;
4252
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4517
4254
build=$ac_cv_build
4518
4255
ac_save_IFS=$IFS; IFS='-'
4565
4298
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4301
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4302
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4303
if ${ac_cv_path_SED+:} false; then :
4304
$as_echo_n "(cached) " >&6
4306
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4307
for ac_i in 1 2 3 4 5 6 7; do
4308
ac_script="$ac_script$as_nl$ac_script"
4310
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4311
{ ac_script=; unset ac_script;}
4312
if test -z "$SED"; then
4313
ac_path_SED_found=false
4314
# Loop through the user's path and test for each of PROGNAME-LIST
4315
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4319
test -z "$as_dir" && as_dir=.
4320
for ac_prog in sed gsed; do
4321
for ac_exec_ext in '' $ac_executable_extensions; do
4322
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4323
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4324
# Check for GNU ac_path_SED and select it if it is found.
4325
# Check for GNU $ac_path_SED
4326
case `"$ac_path_SED" --version 2>&1` in
4328
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4331
$as_echo_n 0123456789 >"conftest.in"
4334
cat "conftest.in" "conftest.in" >"conftest.tmp"
4335
mv "conftest.tmp" "conftest.in"
4336
cp "conftest.in" "conftest.nl"
4337
$as_echo '' >> "conftest.nl"
4338
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4339
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4340
as_fn_arith $ac_count + 1 && ac_count=$as_val
4341
if test $ac_count -gt ${ac_path_SED_max-0}; then
4342
# Best one so far, save it but keep looking for a better one
4343
ac_cv_path_SED="$ac_path_SED"
4344
ac_path_SED_max=$ac_count
4346
# 10*(2^10) chars as input seems more than enough
4347
test $ac_count -gt 10 && break
4349
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4352
$ac_path_SED_found && break 3
4357
if test -z "$ac_cv_path_SED"; then
4358
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4366
$as_echo "$ac_cv_path_SED" >&6; }
4367
SED="$ac_cv_path_SED"
4571
4374
if test "x$GCC" = xyes ; then
4572
4375
CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \
4573
4376
-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \
4574
-Wbad-function-cast"
4377
-Wbad-function-cast -Wformat=2"
4575
4378
case `$CC -dumpversion` in
4577
4380
CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement"
4581
{ $as_echo "$as_me:$LINENO: checking whether __SUNPRO_C is declared" >&5
4582
$as_echo_n "checking whether __SUNPRO_C is declared... " >&6; }
4583
if test "${ac_cv_have_decl___SUNPRO_C+set}" = set; then
4584
$as_echo_n "(cached) " >&6
4586
cat >conftest.$ac_ext <<_ACEOF
4589
cat confdefs.h >>conftest.$ac_ext
4590
cat >>conftest.$ac_ext <<_ACEOF
4591
/* end confdefs.h. */
4592
$ac_includes_default
4604
rm -f conftest.$ac_objext
4605
if { (ac_try="$ac_compile"
4607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4608
*) ac_try_echo=$ac_try;;
4610
eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4611
$as_echo "$ac_try_echo") >&5
4612
(eval "$ac_compile") 2>conftest.er1
4614
grep -v '^ *+' conftest.er1 >conftest.err
4616
cat conftest.err >&5
4617
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618
(exit $ac_status); } && {
4619
test -z "$ac_c_werror_flag" ||
4620
test ! -s conftest.err
4621
} && test -s conftest.$ac_objext; then
4622
ac_cv_have_decl___SUNPRO_C=yes
4624
$as_echo "$as_me: failed program was:" >&5
4625
sed 's/^/| /' conftest.$ac_ext >&5
4627
ac_cv_have_decl___SUNPRO_C=no
4630
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4632
{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___SUNPRO_C" >&5
4633
$as_echo "$ac_cv_have_decl___SUNPRO_C" >&6; }
4634
if test "x$ac_cv_have_decl___SUNPRO_C" = x""yes; then
4384
ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
4385
if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
4548
XORG_MAN_PAGE="X Version 11"
4551
-e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4552
-e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
4553
-e 's|__xservername__|Xorg|g' \
4554
-e 's|__xconfigfile__|xorg.conf|g' \
4555
-e 's|__projectroot__|\$(prefix)|g' \
4556
-e 's|__apploaddir__|\$(appdefaultdir)|g' \
4557
-e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
4558
-e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
4559
-e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
4560
-e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
4561
-e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
4562
-e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
4566
# Check whether --enable-silent-rules was given.
4567
if test "${enable_silent_rules+set}" = set; then :
4568
enableval=$enable_silent_rules;
4571
case $enable_silent_rules in
4572
yes) AM_DEFAULT_VERBOSITY=0;;
4573
no) AM_DEFAULT_VERBOSITY=1;;
4574
*) AM_DEFAULT_VERBOSITY=0;;
4920
4580
# Checks for pkg-config packages
4923
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4924
if test -n "$ac_tool_prefix"; then
4925
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4926
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4927
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4928
$as_echo_n "checking for $ac_word... " >&6; }
4929
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4930
$as_echo_n "(cached) " >&6
4934
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4937
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4941
test -z "$as_dir" && as_dir=.
4942
for ac_exec_ext in '' $ac_executable_extensions; do
4943
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4944
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4945
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4955
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4956
if test -n "$PKG_CONFIG"; then
4957
{ $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4958
$as_echo "$PKG_CONFIG" >&6; }
4960
{ $as_echo "$as_me:$LINENO: result: no" >&5
4961
$as_echo "no" >&6; }
4966
if test -z "$ac_cv_path_PKG_CONFIG"; then
4967
ac_pt_PKG_CONFIG=$PKG_CONFIG
4968
# Extract the first word of "pkg-config", so it can be a program name with args.
4969
set dummy pkg-config; ac_word=$2
4970
{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4971
$as_echo_n "checking for $ac_word... " >&6; }
4972
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4973
$as_echo_n "(cached) " >&6
4975
case $ac_pt_PKG_CONFIG in
4977
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4980
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984
test -z "$as_dir" && as_dir=.
4985
for ac_exec_ext in '' $ac_executable_extensions; do
4986
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4987
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4988
$as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4998
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4999
if test -n "$ac_pt_PKG_CONFIG"; then
5000
{ $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
5001
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5003
{ $as_echo "$as_me:$LINENO: result: no" >&5
5004
$as_echo "no" >&6; }
5007
if test "x$ac_pt_PKG_CONFIG" = x; then
5010
case $cross_compiling:$ac_tool_warned in
5012
{ $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5013
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5014
ac_tool_warned=yes ;;
5016
PKG_CONFIG=$ac_pt_PKG_CONFIG
5019
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5023
if test -n "$PKG_CONFIG"; then
5024
_pkg_min_version=0.9.0
5025
{ $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
5026
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5027
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5028
{ $as_echo "$as_me:$LINENO: result: yes" >&5
5029
$as_echo "yes" >&6; }
5031
{ $as_echo "$as_me:$LINENO: result: no" >&5
5032
$as_echo "no" >&6; }
5039
{ $as_echo "$as_me:$LINENO: checking for XCURSORGEN" >&5
4583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCURSORGEN" >&5
5040
4584
$as_echo_n "checking for XCURSORGEN... " >&6; }
5042
4586
if test -n "$XCURSORGEN_CFLAGS"; then
5043
4587
pkg_cv_XCURSORGEN_CFLAGS="$XCURSORGEN_CFLAGS"
5044
4588
elif test -n "$PKG_CONFIG"; then
5045
4589
if test -n "$PKG_CONFIG" && \
5046
{ ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"x11 xcursor libpng12\"") >&5
5047
($PKG_CONFIG --exists --print-errors "x11 xcursor libpng12") 2>&5
4590
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xcursor libpng >= 1.2.0\""; } >&5
4591
($PKG_CONFIG --exists --print-errors "x11 xcursor libpng >= 1.2.0") 2>&5
5049
$as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050
(exit $ac_status); }; then
5051
pkg_cv_XCURSORGEN_CFLAGS=`$PKG_CONFIG --cflags "x11 xcursor libpng12" 2>/dev/null`
4593
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4594
test $ac_status = 0; }; then
4595
pkg_cv_XCURSORGEN_CFLAGS=`$PKG_CONFIG --cflags "x11 xcursor libpng >= 1.2.0" 2>/dev/null`