2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.57.
5
# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6
# Free Software Foundation, Inc.
7
# This configure script is free software; the Free Software Foundation
8
# gives unlimited permission to copy, distribute and modify it.
9
## --------------------- ##
10
## M4sh Initialization. ##
11
## --------------------- ##
13
# Be Bourne compatible
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18
# is contrary to our usage. Disable this feature.
19
alias -g '${1+"$@"}'='"$@"'
20
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24
# Support unset when possible.
25
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
32
# Work around bugs in pre-3.0 UWIN ksh.
33
$as_unset ENV MAIL MAILPATH
40
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
44
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
eval $as_var=C; export $as_var
51
# Required to use basename.
52
if expr a : '\(a\)' >/dev/null 2>&1; then
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
65
# Name of the executable.
66
as_me=`$as_basename "$0" ||
67
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
X"$0" : 'X\(//\)$' \| \
69
X"$0" : 'X\(/\)$' \| \
70
. : '\(.\)' 2>/dev/null ||
72
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73
/^X\/\(\/\/\)$/{ s//\1/; q; }
74
/^X\/\(\/\).*/{ s//\1/; q; }
78
# PATH needs CR, and LINENO needs CR and PATH.
79
# Avoid depending upon Character Ranges.
80
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83
as_cr_digits='0123456789'
84
as_cr_alnum=$as_cr_Letters$as_cr_digits
86
# The user is always right.
87
if test "${PATH_SEPARATOR+set}" != set; then
88
echo "#! /bin/sh" >conf$$.sh
89
echo "exit 0" >>conf$$.sh
91
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
102
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103
test "x$as_lineno_1" != "x$as_lineno_2" &&
104
test "x$as_lineno_3" = "x$as_lineno_2" || {
105
# Find who we are. Look in the path if we contain no path at all
108
*[\\/]* ) as_myself=$0 ;;
109
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
test -z "$as_dir" && as_dir=.
114
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
119
# We did not find ourselves, most probably we were run as `sh COMMAND'
120
# in which case we are not to be found in the path.
121
if test "x$as_myself" = x; then
124
if test ! -f "$as_myself"; then
125
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126
{ (exit 1); exit 1; }; }
128
case $CONFIG_SHELL in
130
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134
test -z "$as_dir" && as_dir=.
135
for as_base in sh bash ksh sh5; do
138
if ("$as_dir/$as_base" -c '
141
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142
test "x$as_lineno_1" != "x$as_lineno_2" &&
143
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146
CONFIG_SHELL=$as_dir/$as_base
148
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
156
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
# uniformly replaced by the line number. The first 'sed' inserts a
158
# line-number line before each line; the second 'sed' does the real
159
# work. The second script uses 'N' to pair each line-number line
160
# with the numbered line, and appends trailing '-' during
161
# substitution so that $LINENO is not a special case at line end.
162
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164
sed '=' <$as_myself |
169
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
172
s,^['$as_cr_digits']*\n,,
174
chmod +x $as_me.lineno ||
175
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
{ (exit 1); exit 1; }; }
178
# Don't try to exec as it changes $[0], causing all sort of problems
179
# (the dirname of $[0] is not the place where we might find the
180
# original and so on. Autoconf is especially sensible to this).
182
# Exit status is that of the last command.
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188
*c*,-n*) ECHO_N= ECHO_C='
190
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
194
if expr a : '\(a\)' >/dev/null 2>&1; then
200
rm -f conf$$ conf$$.exe conf$$.file
202
if ln -s conf$$.file conf$$ 2>/dev/null; then
203
# We could just check for DJGPP; but this test a) works b) is more generic
204
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205
if test -f conf$$.exe; then
206
# Don't use ln at all; we don't have any links
211
elif ln conf$$.file conf$$ 2>/dev/null; then
216
rm -f conf$$ conf$$.exe conf$$.file
218
if mkdir -p . 2>/dev/null; then
224
as_executable_p="test -f"
226
# Sed expression to map a string onto a valid CPP name.
227
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
229
# Sed expression to map a string onto a valid variable name.
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
234
# We need space, tab and new line, in precisely that order.
244
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245
# so uname gets run too.
246
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253
ac_default_prefix=/usr/local
254
ac_config_libobj_dir=.
259
SHELL=${CONFIG_SHELL-/bin/sh}
261
# Maximum number of lines to put in a shell here document.
262
# This variable seems obsolete. It should probably be removed, and
263
# only ac_max_sed_lines should be used.
264
: ${ac_max_here_lines=38}
266
# Identity of this package.
273
ac_unique_file="src/"
274
# Factoring default headers for most tests.
275
ac_includes_default="\
278
# include <sys/types.h>
281
# include <sys/stat.h>
292
# if !STDC_HEADERS && HAVE_MEMORY_H
298
# include <strings.h>
301
# include <inttypes.h>
311
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE PKG_CONFIG GTK_CFLAGS GTK_LIBS GTK_CONFIG GNOME_CFLAGS GNOME_LIBS WITH_GNOME_TRUE WITH_GNOME_FALSE CPP EGREP LIBOBJS LTLIBOBJS'
314
# Initialize some variables set by options.
316
ac_init_version=false
317
# The variables have the same names as the options, with
318
# dashes changed to underlines.
326
program_transform_name=s,x,x,
334
# Installation directory options.
335
# These are left unexpanded so users can "make install exec_prefix=/foo"
336
# and all the variables that are supposed to be based on exec_prefix
337
# by default will actually change.
338
# Use braces instead of parens because sh, perl, etc. also accept them.
339
bindir='${exec_prefix}/bin'
340
sbindir='${exec_prefix}/sbin'
341
libexecdir='${exec_prefix}/libexec'
342
datadir='${prefix}/share'
343
sysconfdir='${prefix}/etc'
344
sharedstatedir='${prefix}/com'
345
localstatedir='${prefix}/var'
346
libdir='${exec_prefix}/lib'
347
includedir='${prefix}/include'
348
oldincludedir='/usr/include'
349
infodir='${prefix}/info'
350
mandir='${prefix}/man'
355
# If the previous option needs an argument, assign it.
356
if test -n "$ac_prev"; then
357
eval "$ac_prev=\$ac_option"
362
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
# Accept the important Cygnus configure options, so we can diagnose typos.
368
-bindir | --bindir | --bindi | --bind | --bin | --bi)
370
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
373
-build | --build | --buil | --bui | --bu)
374
ac_prev=build_alias ;;
375
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
376
build_alias=$ac_optarg ;;
378
-cache-file | --cache-file | --cache-fil | --cache-fi \
379
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380
ac_prev=cache_file ;;
381
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
383
cache_file=$ac_optarg ;;
386
cache_file=config.cache ;;
388
-datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392
datadir=$ac_optarg ;;
394
-disable-* | --disable-*)
395
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
396
# Reject names that are not valid shell variable names.
397
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
399
{ (exit 1); exit 1; }; }
400
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401
eval "enable_$ac_feature=no" ;;
403
-enable-* | --enable-*)
404
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
405
# Reject names that are not valid shell variable names.
406
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
408
{ (exit 1); exit 1; }; }
409
ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
414
eval "enable_$ac_feature='$ac_optarg'" ;;
416
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418
| --exec | --exe | --ex)
419
ac_prev=exec_prefix ;;
420
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422
| --exec=* | --exe=* | --ex=*)
423
exec_prefix=$ac_optarg ;;
425
-gas | --gas | --ga | --g)
426
# Obsolete; use --with-gas.
429
-help | --help | --hel | --he | -h)
431
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432
ac_init_help=recursive ;;
433
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434
ac_init_help=short ;;
436
-host | --host | --hos | --ho)
437
ac_prev=host_alias ;;
438
-host=* | --host=* | --hos=* | --ho=*)
439
host_alias=$ac_optarg ;;
441
-includedir | --includedir | --includedi | --included | --include \
442
| --includ | --inclu | --incl | --inc)
443
ac_prev=includedir ;;
444
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445
| --includ=* | --inclu=* | --incl=* | --inc=*)
446
includedir=$ac_optarg ;;
448
-infodir | --infodir | --infodi | --infod | --info | --inf)
450
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
451
infodir=$ac_optarg ;;
453
-libdir | --libdir | --libdi | --libd)
455
-libdir=* | --libdir=* | --libdi=* | --libd=*)
458
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459
| --libexe | --libex | --libe)
460
ac_prev=libexecdir ;;
461
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462
| --libexe=* | --libex=* | --libe=*)
463
libexecdir=$ac_optarg ;;
465
-localstatedir | --localstatedir | --localstatedi | --localstated \
466
| --localstate | --localstat | --localsta | --localst \
467
| --locals | --local | --loca | --loc | --lo)
468
ac_prev=localstatedir ;;
469
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470
| --localstate=* | --localstat=* | --localsta=* | --localst=* \
471
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
472
localstatedir=$ac_optarg ;;
474
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
480
# Obsolete; use --without-fp.
483
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
484
| --no-cr | --no-c | -n)
487
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
488
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
491
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493
| --oldin | --oldi | --old | --ol | --o)
494
ac_prev=oldincludedir ;;
495
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
498
oldincludedir=$ac_optarg ;;
500
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
505
-program-prefix | --program-prefix | --program-prefi | --program-pref \
506
| --program-pre | --program-pr | --program-p)
507
ac_prev=program_prefix ;;
508
-program-prefix=* | --program-prefix=* | --program-prefi=* \
509
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
510
program_prefix=$ac_optarg ;;
512
-program-suffix | --program-suffix | --program-suffi | --program-suff \
513
| --program-suf | --program-su | --program-s)
514
ac_prev=program_suffix ;;
515
-program-suffix=* | --program-suffix=* | --program-suffi=* \
516
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
517
program_suffix=$ac_optarg ;;
519
-program-transform-name | --program-transform-name \
520
| --program-transform-nam | --program-transform-na \
521
| --program-transform-n | --program-transform- \
522
| --program-transform | --program-transfor \
523
| --program-transfo | --program-transf \
524
| --program-trans | --program-tran \
525
| --progr-tra | --program-tr | --program-t)
526
ac_prev=program_transform_name ;;
527
-program-transform-name=* | --program-transform-name=* \
528
| --program-transform-nam=* | --program-transform-na=* \
529
| --program-transform-n=* | --program-transform-=* \
530
| --program-transform=* | --program-transfor=* \
531
| --program-transfo=* | --program-transf=* \
532
| --program-trans=* | --program-tran=* \
533
| --progr-tra=* | --program-tr=* | --program-t=*)
534
program_transform_name=$ac_optarg ;;
536
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
537
| -silent | --silent | --silen | --sile | --sil)
540
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544
sbindir=$ac_optarg ;;
546
-sharedstatedir | --sharedstatedir | --sharedstatedi \
547
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548
| --sharedst | --shareds | --shared | --share | --shar \
550
ac_prev=sharedstatedir ;;
551
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555
sharedstatedir=$ac_optarg ;;
557
-site | --site | --sit)
559
-site=* | --site=* | --sit=*)
562
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
567
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568
| --syscon | --sysco | --sysc | --sys | --sy)
569
ac_prev=sysconfdir ;;
570
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
572
sysconfdir=$ac_optarg ;;
574
-target | --target | --targe | --targ | --tar | --ta | --t)
575
ac_prev=target_alias ;;
576
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
577
target_alias=$ac_optarg ;;
579
-v | -verbose | --verbose | --verbos | --verbo | --verb)
582
-version | --version | --versio | --versi | --vers | -V)
586
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
587
# Reject names that are not valid shell variable names.
588
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589
{ echo "$as_me: error: invalid package name: $ac_package" >&2
590
{ (exit 1); exit 1; }; }
591
ac_package=`echo $ac_package| sed 's/-/_/g'`
593
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
596
eval "with_$ac_package='$ac_optarg'" ;;
598
-without-* | --without-*)
599
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
600
# Reject names that are not valid shell variable names.
601
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602
{ echo "$as_me: error: invalid package name: $ac_package" >&2
603
{ (exit 1); exit 1; }; }
604
ac_package=`echo $ac_package | sed 's/-/_/g'`
605
eval "with_$ac_package=no" ;;
608
# Obsolete; use --with-x.
611
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612
| --x-incl | --x-inc | --x-in | --x-i)
613
ac_prev=x_includes ;;
614
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
616
x_includes=$ac_optarg ;;
618
-x-libraries | --x-libraries | --x-librarie | --x-librari \
619
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620
ac_prev=x_libraries ;;
621
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
623
x_libraries=$ac_optarg ;;
625
-*) { echo "$as_me: error: unrecognized option: $ac_option
626
Try \`$0 --help' for more information." >&2
627
{ (exit 1); exit 1; }; }
631
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632
# Reject names that are not valid shell variable names.
633
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635
{ (exit 1); exit 1; }; }
636
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637
eval "$ac_envvar='$ac_optarg'"
641
# FIXME: should be removed in autoconf 3.0.
642
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651
if test -n "$ac_prev"; then
652
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653
{ echo "$as_me: error: missing argument to $ac_option" >&2
654
{ (exit 1); exit 1; }; }
657
# Be sure to have absolute paths.
658
for ac_var in exec_prefix prefix
660
eval ac_val=$`echo $ac_var`
662
[\\/$]* | ?:[\\/]* | NONE | '' ) ;;
663
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
664
{ (exit 1); exit 1; }; };;
668
# Be sure to have absolute paths.
669
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670
localstatedir libdir includedir oldincludedir infodir mandir
672
eval ac_val=$`echo $ac_var`
674
[\\/$]* | ?:[\\/]* ) ;;
675
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
676
{ (exit 1); exit 1; }; };;
680
# There might be people who depend on the old broken behavior: `$host'
681
# used to hold the argument of --host etc.
682
# FIXME: To remove some day.
687
# FIXME: To remove some day.
688
if test "x$host_alias" != x; then
689
if test "x$build_alias" = x; then
690
cross_compiling=maybe
691
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692
If a cross compiler is detected then cross compile mode will be used." >&2
693
elif test "x$build_alias" != "x$host_alias"; then
699
test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
test "$silent" = yes && exec 6>/dev/null
704
# Find the source files, if location was not specified.
705
if test -z "$srcdir"; then
706
ac_srcdir_defaulted=yes
707
# Try the directory containing this script, then its parent.
708
ac_confdir=`(dirname "$0") 2>/dev/null ||
709
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710
X"$0" : 'X\(//\)[^/]' \| \
711
X"$0" : 'X\(//\)$' \| \
712
X"$0" : 'X\(/\)' \| \
713
. : '\(.\)' 2>/dev/null ||
715
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
717
/^X\(\/\/\)$/{ s//\1/; q; }
718
/^X\(\/\).*/{ s//\1/; q; }
721
if test ! -r $srcdir/$ac_unique_file; then
725
ac_srcdir_defaulted=no
727
if test ! -r $srcdir/$ac_unique_file; then
728
if test "$ac_srcdir_defaulted" = yes; then
729
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
730
{ (exit 1); exit 1; }; }
732
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
733
{ (exit 1); exit 1; }; }
736
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738
{ (exit 1); exit 1; }; }
739
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740
ac_env_build_alias_set=${build_alias+set}
741
ac_env_build_alias_value=$build_alias
742
ac_cv_env_build_alias_set=${build_alias+set}
743
ac_cv_env_build_alias_value=$build_alias
744
ac_env_host_alias_set=${host_alias+set}
745
ac_env_host_alias_value=$host_alias
746
ac_cv_env_host_alias_set=${host_alias+set}
747
ac_cv_env_host_alias_value=$host_alias
748
ac_env_target_alias_set=${target_alias+set}
749
ac_env_target_alias_value=$target_alias
750
ac_cv_env_target_alias_set=${target_alias+set}
751
ac_cv_env_target_alias_value=$target_alias
752
ac_env_CC_set=${CC+set}
754
ac_cv_env_CC_set=${CC+set}
755
ac_cv_env_CC_value=$CC
756
ac_env_CFLAGS_set=${CFLAGS+set}
757
ac_env_CFLAGS_value=$CFLAGS
758
ac_cv_env_CFLAGS_set=${CFLAGS+set}
759
ac_cv_env_CFLAGS_value=$CFLAGS
760
ac_env_LDFLAGS_set=${LDFLAGS+set}
761
ac_env_LDFLAGS_value=$LDFLAGS
762
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763
ac_cv_env_LDFLAGS_value=$LDFLAGS
764
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765
ac_env_CPPFLAGS_value=$CPPFLAGS
766
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768
ac_env_CPP_set=${CPP+set}
769
ac_env_CPP_value=$CPP
770
ac_cv_env_CPP_set=${CPP+set}
771
ac_cv_env_CPP_value=$CPP
774
# Report the --help message.
776
if test "$ac_init_help" = "long"; then
777
# Omit some internal or obsolete options to make the list less imposing.
778
# This message is too long to be a string in the A/UX 3.1 sh.
780
\`configure' configures this package to adapt to many kinds of systems.
782
Usage: $0 [OPTION]... [VAR=VALUE]...
784
To assign environment variables (e.g., CC, CFLAGS...), specify them as
785
VAR=VALUE. See below for descriptions of some of the useful variables.
787
Defaults for the options are specified in brackets.
790
-h, --help display this help and exit
791
--help=short display options specific to this package
792
--help=recursive display the short help of all the included packages
793
-V, --version display version information and exit
794
-q, --quiet, --silent do not print \`checking...' messages
795
--cache-file=FILE cache test results in FILE [disabled]
796
-C, --config-cache alias for \`--cache-file=config.cache'
797
-n, --no-create do not create output files
798
--srcdir=DIR find the sources in DIR [configure dir or \`..']
803
Installation directories:
804
--prefix=PREFIX install architecture-independent files in PREFIX
806
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
809
By default, \`make install' will install all the files in
810
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812
for instance \`--prefix=\$HOME'.
814
For better control, use the options below.
816
Fine tuning of the installation directories:
817
--bindir=DIR user executables [EPREFIX/bin]
818
--sbindir=DIR system admin executables [EPREFIX/sbin]
819
--libexecdir=DIR program executables [EPREFIX/libexec]
820
--datadir=DIR read-only architecture-independent data [PREFIX/share]
821
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
824
--libdir=DIR object code libraries [EPREFIX/lib]
825
--includedir=DIR C header files [PREFIX/include]
826
--oldincludedir=DIR C header files for non-gcc [/usr/include]
827
--infodir=DIR info documentation [PREFIX/info]
828
--mandir=DIR man documentation [PREFIX/man]
834
--program-prefix=PREFIX prepend PREFIX to installed program names
835
--program-suffix=SUFFIX append SUFFIX to installed program names
836
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
839
--build=BUILD configure for building on BUILD [guessed]
840
--host=HOST cross-compile to build programs to run on HOST [BUILD]
841
--target=TARGET configure for building compilers for TARGET [HOST]
845
if test -n "$ac_init_help"; then
850
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
852
--disable-dependency-tracking Speeds up one-time builds
853
--enable-dependency-tracking Do not reject slow dependency extractors
854
--disable-gtk2 Don't look for GTK2 libraries
855
--disable-gtktest Do not try to compile and run a test GTK program
856
--disable-sdl Don't look for the SDL library
857
--enable-gnome Turn on gnome
860
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
861
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
862
--with-gtk-prefix=PFX Prefix where GTK is installed (optional)
863
--with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
865
Some influential environment variables:
866
CC C compiler command
867
CFLAGS C compiler flags
868
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869
nonstandard directory <lib dir>
870
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871
headers in a nonstandard directory <include dir>
874
Use these variables to override the choices made by `configure' or to help
875
it to find libraries and programs with nonstandard names/locations.
880
if test "$ac_init_help" = "recursive"; then
881
# If there are subdirs, report their specific --help.
883
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884
test -d $ac_dir || continue
887
if test "$ac_dir" != .; then
888
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889
# A "../" for each directory in $ac_dir_suffix.
890
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
892
ac_dir_suffix= ac_top_builddir=
896
.) # No --srcdir option. We are building in place.
898
if test -z "$ac_top_builddir"; then
901
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
903
[\\/]* | ?:[\\/]* ) # Absolute path.
904
ac_srcdir=$srcdir$ac_dir_suffix;
905
ac_top_srcdir=$srcdir ;;
907
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908
ac_top_srcdir=$ac_top_builddir$srcdir ;;
910
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
912
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
913
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
914
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
918
# Check for guested configure; otherwise get Cygnus style configure.
919
if test -f $ac_srcdir/configure.gnu; then
921
$SHELL $ac_srcdir/configure.gnu --help=recursive
922
elif test -f $ac_srcdir/configure; then
924
$SHELL $ac_srcdir/configure --help=recursive
925
elif test -f $ac_srcdir/configure.ac ||
926
test -f $ac_srcdir/configure.in; then
930
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
936
test -n "$ac_init_help" && exit 0
937
if $ac_init_version; then
940
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
941
Free Software Foundation, Inc.
942
This configure script is free software; the Free Software Foundation
943
gives unlimited permission to copy, distribute and modify it.
949
This file contains any messages produced by compilers while
950
running configure, to aid debugging if configure makes a mistake.
952
It was created by $as_me, which was
953
generated by GNU Autoconf 2.57. Invocation command line was
964
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
965
uname -m = `(uname -m) 2>/dev/null || echo unknown`
966
uname -r = `(uname -r) 2>/dev/null || echo unknown`
967
uname -s = `(uname -s) 2>/dev/null || echo unknown`
968
uname -v = `(uname -v) 2>/dev/null || echo unknown`
970
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
971
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
973
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
974
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
975
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
976
hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
977
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
978
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
979
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
987
test -z "$as_dir" && as_dir=.
1003
# Keep a trace of the command line.
1004
# Strip out --no-create and --no-recursion so they do not pile up.
1005
# Strip out --silent because we don't want to record it for future runs.
1006
# Also quote any args containing shell meta-characters.
1007
# Make two passes to allow for proper duplicate-argument suppression.
1012
ac_must_keep_next=false
1018
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1019
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1020
| -silent | --silent | --silen | --sile | --sil)
1022
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1023
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1028
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1029
if test $ac_must_keep_next = true; then
1030
ac_must_keep_next=false # Got value, back to normal.
1033
*=* | --config-cache | -C | -disable-* | --disable-* \
1034
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1035
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1036
| -with-* | --with-* | -without-* | --without-* | --x)
1037
case "$ac_configure_args0 " in
1038
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041
-* ) ac_must_keep_next=true ;;
1044
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1045
# Get rid of the leading space.
1051
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1052
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1054
# When interrupted or exit'd, cleanup temporary files, and complete
1055
# config.log. We remove comments because anyway the quotes in there
1056
# would cause problems or look ugly.
1057
# WARNING: Be sure not to use single quotes in there, as some shells,
1058
# such as our DU 5.0 friend, will then `close' the trap.
1059
trap 'exit_status=$?
1060
# Save into config.log some information that might help in debugging.
1065
## ---------------- ##
1066
## Cache variables. ##
1067
## ---------------- ##
1070
# The following way of writing the cache mishandles newlines in values,
1073
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1077
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1081
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1088
## ----------------- ##
1089
## Output variables. ##
1090
## ----------------- ##
1093
for ac_var in $ac_subst_vars
1095
eval ac_val=$`echo $ac_var`
1096
echo "$ac_var='"'"'$ac_val'"'"'"
1100
if test -n "$ac_subst_files"; then
1107
for ac_var in $ac_subst_files
1109
eval ac_val=$`echo $ac_var`
1110
echo "$ac_var='"'"'$ac_val'"'"'"
1115
if test -s confdefs.h; then
1122
sed "/^$/d" confdefs.h | sort
1125
test "$ac_signal" != 0 &&
1126
echo "$as_me: caught signal $ac_signal"
1127
echo "$as_me: exit $exit_status"
1129
rm -f core core.* *.core &&
1130
rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1133
for ac_signal in 1 2 13 15; do
1134
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1138
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1139
rm -rf conftest* confdefs.h
1140
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143
# Predefined preprocessor variables.
1145
cat >>confdefs.h <<_ACEOF
1146
#define PACKAGE_NAME "$PACKAGE_NAME"
1150
cat >>confdefs.h <<_ACEOF
1151
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1155
cat >>confdefs.h <<_ACEOF
1156
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1160
cat >>confdefs.h <<_ACEOF
1161
#define PACKAGE_STRING "$PACKAGE_STRING"
1165
cat >>confdefs.h <<_ACEOF
1166
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1170
# Let the site file select an alternate cache file if it wants to.
1171
# Prefer explicitly selected file to automatically selected ones.
1172
if test -z "$CONFIG_SITE"; then
1173
if test "x$prefix" != xNONE; then
1174
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1176
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179
for ac_site_file in $CONFIG_SITE; do
1180
if test -r "$ac_site_file"; then
1181
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1182
echo "$as_me: loading site script $ac_site_file" >&6;}
1183
sed 's/^/| /' "$ac_site_file" >&5
1188
if test -r "$cache_file"; then
1189
# Some versions of bash will fail to source /dev/null (special
1190
# files actually), so we avoid doing that.
1191
if test -f "$cache_file"; then
1192
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1193
echo "$as_me: loading cache $cache_file" >&6;}
1195
[\\/]* | ?:[\\/]* ) . $cache_file;;
1196
*) . ./$cache_file;;
1200
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1201
echo "$as_me: creating cache $cache_file" >&6;}
1205
# Check that the precious variables saved in the cache have kept the same
1207
ac_cache_corrupted=false
1208
for ac_var in `(set) 2>&1 |
1209
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1210
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1211
eval ac_new_set=\$ac_env_${ac_var}_set
1212
eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1213
eval ac_new_val="\$ac_env_${ac_var}_value"
1214
case $ac_old_set,$ac_new_set in
1216
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1217
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1218
ac_cache_corrupted=: ;;
1220
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1221
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1222
ac_cache_corrupted=: ;;
1225
if test "x$ac_old_val" != "x$ac_new_val"; then
1226
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1227
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1228
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1229
echo "$as_me: former value: $ac_old_val" >&2;}
1230
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1231
echo "$as_me: current value: $ac_new_val" >&2;}
1232
ac_cache_corrupted=:
1235
# Pass precious variables to config.status.
1236
if test "$ac_new_set" = set; then
1238
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1239
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1240
*) ac_arg=$ac_var=$ac_new_val ;;
1242
case " $ac_configure_args " in
1243
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1244
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1248
if $ac_cache_corrupted; then
1249
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1250
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1251
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1252
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1253
{ (exit 1); exit 1; }; }
1257
ac_cpp='$CPP $CPPFLAGS'
1258
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1259
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1260
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1282
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1283
if test -f $ac_dir/install-sh; then
1285
ac_install_sh="$ac_aux_dir/install-sh -c"
1287
elif test -f $ac_dir/install.sh; then
1289
ac_install_sh="$ac_aux_dir/install.sh -c"
1291
elif test -f $ac_dir/shtool; then
1293
ac_install_sh="$ac_aux_dir/shtool install -c"
1297
if test -z "$ac_aux_dir"; then
1298
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1299
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1300
{ (exit 1); exit 1; }; }
1302
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1303
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1304
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1306
# Make sure we can run config.sub.
1307
$ac_config_sub sun4 >/dev/null 2>&1 ||
1308
{ { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1309
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1310
{ (exit 1); exit 1; }; }
1312
echo "$as_me:$LINENO: checking build system type" >&5
1313
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1314
if test "${ac_cv_build+set}" = set; then
1315
echo $ECHO_N "(cached) $ECHO_C" >&6
1317
ac_cv_build_alias=$build_alias
1318
test -z "$ac_cv_build_alias" &&
1319
ac_cv_build_alias=`$ac_config_guess`
1320
test -z "$ac_cv_build_alias" &&
1321
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1322
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1323
{ (exit 1); exit 1; }; }
1324
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1325
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1326
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1327
{ (exit 1); exit 1; }; }
1330
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1331
echo "${ECHO_T}$ac_cv_build" >&6
1333
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1334
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1335
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1338
echo "$as_me:$LINENO: checking host system type" >&5
1339
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1340
if test "${ac_cv_host+set}" = set; then
1341
echo $ECHO_N "(cached) $ECHO_C" >&6
1343
ac_cv_host_alias=$host_alias
1344
test -z "$ac_cv_host_alias" &&
1345
ac_cv_host_alias=$ac_cv_build_alias
1346
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1347
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1348
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1349
{ (exit 1); exit 1; }; }
1352
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1353
echo "${ECHO_T}$ac_cv_host" >&6
1355
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1356
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1357
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1360
echo "$as_me:$LINENO: checking target system type" >&5
1361
echo $ECHO_N "checking target system type... $ECHO_C" >&6
1362
if test "${ac_cv_target+set}" = set; then
1363
echo $ECHO_N "(cached) $ECHO_C" >&6
1365
ac_cv_target_alias=$target_alias
1366
test "x$ac_cv_target_alias" = "x" &&
1367
ac_cv_target_alias=$ac_cv_host_alias
1368
ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1369
{ { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1370
echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1371
{ (exit 1); exit 1; }; }
1374
echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1375
echo "${ECHO_T}$ac_cv_target" >&6
1376
target=$ac_cv_target
1377
target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1378
target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1379
target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1382
# The aliases save the names the user supplied, while $host etc.
1383
# will get canonicalized.
1384
test -n "$target_alias" &&
1385
test "$program_prefix$program_suffix$program_transform_name" = \
1387
program_prefix=${target_alias}-
1389
# Add the stamp file to the list of files AC keeps track of,
1390
# along with our hook.
1391
ac_config_headers="$ac_config_headers config.h"
1395
am__api_version="1.6"
1396
# Find a good install program. We prefer a C program (faster),
1397
# so one script is as good as another. But avoid the broken or
1398
# incompatible versions:
1399
# SysV /etc/install, /usr/sbin/install
1400
# SunOS /usr/etc/install
1401
# IRIX /sbin/install
1403
# AmigaOS /C/install, which installs bootblocks on floppy discs
1404
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1405
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1406
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1407
# ./install, which can be erroneously created by make from ./install.sh.
1408
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1409
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1410
if test -z "$INSTALL"; then
1411
if test "${ac_cv_path_install+set}" = set; then
1412
echo $ECHO_N "(cached) $ECHO_C" >&6
1414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1418
test -z "$as_dir" && as_dir=.
1419
# Account for people who put trailing slashes in PATH elements.
1421
./ | .// | /cC/* | \
1422
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1425
# OSF1 and SCO ODT 3.0 have their own names for install.
1426
# Don't use installbsd from OSF since it installs stuff as root
1428
for ac_prog in ginstall scoinst install; do
1429
for ac_exec_ext in '' $ac_executable_extensions; do
1430
if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1431
if test $ac_prog = install &&
1432
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1433
# AIX install. It has an incompatible calling convention.
1435
elif test $ac_prog = install &&
1436
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1437
# program-specific install script used by HP pwplus--don't use.
1440
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1452
if test "${ac_cv_path_install+set}" = set; then
1453
INSTALL=$ac_cv_path_install
1455
# As a last resort, use the slow shell script. We don't cache a
1456
# path for INSTALL within a source directory, because that will
1457
# break other packages using the cache if that directory is
1458
# removed, or if the path is relative.
1459
INSTALL=$ac_install_sh
1462
echo "$as_me:$LINENO: result: $INSTALL" >&5
1463
echo "${ECHO_T}$INSTALL" >&6
1465
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1466
# It thinks the first close brace ends the variable substitution.
1467
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1469
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1471
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1473
echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1474
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1477
echo timestamp > conftest.file
1478
# Do `set' in a subshell so we don't clobber the current shell's
1479
# arguments. Must try -L first in case configure is actually a
1480
# symlink; some systems play weird games with the mod time of symlinks
1481
# (eg FreeBSD returns the mod time of the symlink's containing
1484
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1485
if test "$*" = "X"; then
1487
set X `ls -t $srcdir/configure conftest.file`
1490
if test "$*" != "X $srcdir/configure conftest.file" \
1491
&& test "$*" != "X conftest.file $srcdir/configure"; then
1493
# If neither matched, then we have a broken ls. This can happen
1494
# if, for instance, CONFIG_SHELL is bash and it inherits a
1495
# broken ls alias from the environment. This has actually
1496
# happened. Such a system could not be considered "sane".
1497
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1498
alias in your environment" >&5
1499
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1500
alias in your environment" >&2;}
1501
{ (exit 1); exit 1; }; }
1504
test "$2" = conftest.file
1510
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1511
Check your system clock" >&5
1512
echo "$as_me: error: newly created file is older than distributed files!
1513
Check your system clock" >&2;}
1514
{ (exit 1); exit 1; }; }
1516
echo "$as_me:$LINENO: result: yes" >&5
1517
echo "${ECHO_T}yes" >&6
1518
test "$program_prefix" != NONE &&
1519
program_transform_name="s,^,$program_prefix,;$program_transform_name"
1520
# Use a double $ so make ignores it.
1521
test "$program_suffix" != NONE &&
1522
program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1523
# Double any \ or $. echo might interpret backslashes.
1524
# By default was `s,x,x', remove it if useless.
1525
cat <<\_ACEOF >conftest.sed
1526
s/[\\$]/&&/g;s/;s,x,x,$//
1528
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1532
# expand $ac_aux_dir to an absolute path
1533
am_aux_dir=`cd $ac_aux_dir && pwd`
1535
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1536
# Use eval to expand $SHELL
1537
if eval "$MISSING --run true"; then
1538
am_missing_run="$MISSING --run "
1541
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1542
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1545
for ac_prog in gawk mawk nawk awk
1547
# Extract the first word of "$ac_prog", so it can be a program name with args.
1548
set dummy $ac_prog; ac_word=$2
1549
echo "$as_me:$LINENO: checking for $ac_word" >&5
1550
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1551
if test "${ac_cv_prog_AWK+set}" = set; then
1552
echo $ECHO_N "(cached) $ECHO_C" >&6
1554
if test -n "$AWK"; then
1555
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1561
test -z "$as_dir" && as_dir=.
1562
for ac_exec_ext in '' $ac_executable_extensions; do
1563
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1564
ac_cv_prog_AWK="$ac_prog"
1565
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1574
if test -n "$AWK"; then
1575
echo "$as_me:$LINENO: result: $AWK" >&5
1576
echo "${ECHO_T}$AWK" >&6
1578
echo "$as_me:$LINENO: result: no" >&5
1579
echo "${ECHO_T}no" >&6
1582
test -n "$AWK" && break
1585
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1586
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1587
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1588
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1589
echo $ECHO_N "(cached) $ECHO_C" >&6
1591
cat >conftest.make <<\_ACEOF
1593
@echo 'ac_maketemp="$(MAKE)"'
1595
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1596
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1597
if test -n "$ac_maketemp"; then
1598
eval ac_cv_prog_make_${ac_make}_set=yes
1600
eval ac_cv_prog_make_${ac_make}_set=no
1604
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1605
echo "$as_me:$LINENO: result: yes" >&5
1606
echo "${ECHO_T}yes" >&6
1609
echo "$as_me:$LINENO: result: no" >&5
1610
echo "${ECHO_T}no" >&6
1611
SET_MAKE="MAKE=${MAKE-make}"
1614
# test to see if srcdir already configured
1615
if test "`cd $srcdir && pwd`" != "`pwd`" &&
1616
test -f $srcdir/config.status; then
1617
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1618
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1619
{ (exit 1); exit 1; }; }
1622
# Define the identity of the package.
1627
cat >>confdefs.h <<_ACEOF
1628
#define PACKAGE "$PACKAGE"
1632
cat >>confdefs.h <<_ACEOF
1633
#define VERSION "$VERSION"
1636
# Some tools Automake needs.
1638
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1641
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1644
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1647
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1650
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1653
AMTAR=${AMTAR-"${am_missing_run}tar"}
1655
install_sh=${install_sh-"$am_aux_dir/install-sh"}
1657
# Installed binaries are usually stripped using `strip' when the user
1658
# run `make install-strip'. However `strip' might not be the right
1659
# tool to use in cross-compilation environments, therefore Automake
1660
# will honor the `STRIP' environment variable to overrule this program.
1661
if test "$cross_compiling" != no; then
1662
if test -n "$ac_tool_prefix"; then
1663
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1664
set dummy ${ac_tool_prefix}strip; ac_word=$2
1665
echo "$as_me:$LINENO: checking for $ac_word" >&5
1666
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1667
if test "${ac_cv_prog_STRIP+set}" = set; then
1668
echo $ECHO_N "(cached) $ECHO_C" >&6
1670
if test -n "$STRIP"; then
1671
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1677
test -z "$as_dir" && as_dir=.
1678
for ac_exec_ext in '' $ac_executable_extensions; do
1679
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1680
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1681
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1689
STRIP=$ac_cv_prog_STRIP
1690
if test -n "$STRIP"; then
1691
echo "$as_me:$LINENO: result: $STRIP" >&5
1692
echo "${ECHO_T}$STRIP" >&6
1694
echo "$as_me:$LINENO: result: no" >&5
1695
echo "${ECHO_T}no" >&6
1699
if test -z "$ac_cv_prog_STRIP"; then
1701
# Extract the first word of "strip", so it can be a program name with args.
1702
set dummy strip; ac_word=$2
1703
echo "$as_me:$LINENO: checking for $ac_word" >&5
1704
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1705
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1706
echo $ECHO_N "(cached) $ECHO_C" >&6
1708
if test -n "$ac_ct_STRIP"; then
1709
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715
test -z "$as_dir" && as_dir=.
1716
for ac_exec_ext in '' $ac_executable_extensions; do
1717
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1718
ac_cv_prog_ac_ct_STRIP="strip"
1719
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1725
test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1728
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1729
if test -n "$ac_ct_STRIP"; then
1730
echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1731
echo "${ECHO_T}$ac_ct_STRIP" >&6
1733
echo "$as_me:$LINENO: result: no" >&5
1734
echo "${ECHO_T}no" >&6
1739
STRIP="$ac_cv_prog_STRIP"
1743
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1745
# We need awk for the "check" target. The system "awk" is bad on
1751
ac_cpp='$CPP $CPPFLAGS'
1752
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1753
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1754
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1755
if test -n "$ac_tool_prefix"; then
1756
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1757
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1758
echo "$as_me:$LINENO: checking for $ac_word" >&5
1759
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760
if test "${ac_cv_prog_CC+set}" = set; then
1761
echo $ECHO_N "(cached) $ECHO_C" >&6
1763
if test -n "$CC"; then
1764
ac_cv_prog_CC="$CC" # Let the user override the test.
1766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1770
test -z "$as_dir" && as_dir=.
1771
for ac_exec_ext in '' $ac_executable_extensions; do
1772
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773
ac_cv_prog_CC="${ac_tool_prefix}gcc"
1774
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1783
if test -n "$CC"; then
1784
echo "$as_me:$LINENO: result: $CC" >&5
1785
echo "${ECHO_T}$CC" >&6
1787
echo "$as_me:$LINENO: result: no" >&5
1788
echo "${ECHO_T}no" >&6
1792
if test -z "$ac_cv_prog_CC"; then
1794
# Extract the first word of "gcc", so it can be a program name with args.
1795
set dummy gcc; ac_word=$2
1796
echo "$as_me:$LINENO: checking for $ac_word" >&5
1797
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1799
echo $ECHO_N "(cached) $ECHO_C" >&6
1801
if test -n "$ac_ct_CC"; then
1802
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1808
test -z "$as_dir" && as_dir=.
1809
for ac_exec_ext in '' $ac_executable_extensions; do
1810
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811
ac_cv_prog_ac_ct_CC="gcc"
1812
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1820
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1821
if test -n "$ac_ct_CC"; then
1822
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1823
echo "${ECHO_T}$ac_ct_CC" >&6
1825
echo "$as_me:$LINENO: result: no" >&5
1826
echo "${ECHO_T}no" >&6
1834
if test -z "$CC"; then
1835
if test -n "$ac_tool_prefix"; then
1836
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1837
set dummy ${ac_tool_prefix}cc; ac_word=$2
1838
echo "$as_me:$LINENO: checking for $ac_word" >&5
1839
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1840
if test "${ac_cv_prog_CC+set}" = set; then
1841
echo $ECHO_N "(cached) $ECHO_C" >&6
1843
if test -n "$CC"; then
1844
ac_cv_prog_CC="$CC" # Let the user override the test.
1846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1850
test -z "$as_dir" && as_dir=.
1851
for ac_exec_ext in '' $ac_executable_extensions; do
1852
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1853
ac_cv_prog_CC="${ac_tool_prefix}cc"
1854
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1863
if test -n "$CC"; then
1864
echo "$as_me:$LINENO: result: $CC" >&5
1865
echo "${ECHO_T}$CC" >&6
1867
echo "$as_me:$LINENO: result: no" >&5
1868
echo "${ECHO_T}no" >&6
1872
if test -z "$ac_cv_prog_CC"; then
1874
# Extract the first word of "cc", so it can be a program name with args.
1875
set dummy cc; ac_word=$2
1876
echo "$as_me:$LINENO: checking for $ac_word" >&5
1877
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1879
echo $ECHO_N "(cached) $ECHO_C" >&6
1881
if test -n "$ac_ct_CC"; then
1882
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1888
test -z "$as_dir" && as_dir=.
1889
for ac_exec_ext in '' $ac_executable_extensions; do
1890
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891
ac_cv_prog_ac_ct_CC="cc"
1892
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1901
if test -n "$ac_ct_CC"; then
1902
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1903
echo "${ECHO_T}$ac_ct_CC" >&6
1905
echo "$as_me:$LINENO: result: no" >&5
1906
echo "${ECHO_T}no" >&6
1915
if test -z "$CC"; then
1916
# Extract the first word of "cc", so it can be a program name with args.
1917
set dummy cc; ac_word=$2
1918
echo "$as_me:$LINENO: checking for $ac_word" >&5
1919
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1920
if test "${ac_cv_prog_CC+set}" = set; then
1921
echo $ECHO_N "(cached) $ECHO_C" >&6
1923
if test -n "$CC"; then
1924
ac_cv_prog_CC="$CC" # Let the user override the test.
1927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1931
test -z "$as_dir" && as_dir=.
1932
for ac_exec_ext in '' $ac_executable_extensions; do
1933
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1934
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1935
ac_prog_rejected=yes
1939
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1945
if test $ac_prog_rejected = yes; then
1946
# We found a bogon in the path, so make sure we never use it.
1947
set dummy $ac_cv_prog_CC
1949
if test $# != 0; then
1950
# We chose a different compiler from the bogus one.
1951
# However, it has the same basename, so the bogon will be chosen
1952
# first if we set CC to just the basename; use the full file name.
1954
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1960
if test -n "$CC"; then
1961
echo "$as_me:$LINENO: result: $CC" >&5
1962
echo "${ECHO_T}$CC" >&6
1964
echo "$as_me:$LINENO: result: no" >&5
1965
echo "${ECHO_T}no" >&6
1969
if test -z "$CC"; then
1970
if test -n "$ac_tool_prefix"; then
1973
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1974
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1975
echo "$as_me:$LINENO: checking for $ac_word" >&5
1976
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1977
if test "${ac_cv_prog_CC+set}" = set; then
1978
echo $ECHO_N "(cached) $ECHO_C" >&6
1980
if test -n "$CC"; then
1981
ac_cv_prog_CC="$CC" # Let the user override the test.
1983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987
test -z "$as_dir" && as_dir=.
1988
for ac_exec_ext in '' $ac_executable_extensions; do
1989
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1990
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1991
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000
if test -n "$CC"; then
2001
echo "$as_me:$LINENO: result: $CC" >&5
2002
echo "${ECHO_T}$CC" >&6
2004
echo "$as_me:$LINENO: result: no" >&5
2005
echo "${ECHO_T}no" >&6
2008
test -n "$CC" && break
2011
if test -z "$CC"; then
2015
# Extract the first word of "$ac_prog", so it can be a program name with args.
2016
set dummy $ac_prog; ac_word=$2
2017
echo "$as_me:$LINENO: checking for $ac_word" >&5
2018
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2019
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2020
echo $ECHO_N "(cached) $ECHO_C" >&6
2022
if test -n "$ac_ct_CC"; then
2023
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2025
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029
test -z "$as_dir" && as_dir=.
2030
for ac_exec_ext in '' $ac_executable_extensions; do
2031
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2032
ac_cv_prog_ac_ct_CC="$ac_prog"
2033
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2041
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2042
if test -n "$ac_ct_CC"; then
2043
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2044
echo "${ECHO_T}$ac_ct_CC" >&6
2046
echo "$as_me:$LINENO: result: no" >&5
2047
echo "${ECHO_T}no" >&6
2050
test -n "$ac_ct_CC" && break
2059
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2060
See \`config.log' for more details." >&5
2061
echo "$as_me: error: no acceptable C compiler found in \$PATH
2062
See \`config.log' for more details." >&2;}
2063
{ (exit 1); exit 1; }; }
2065
# Provide some information about the compiler.
2066
echo "$as_me:$LINENO:" \
2067
"checking for C compiler version" >&5
2068
ac_compiler=`set X $ac_compile; echo $2`
2069
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2070
(eval $ac_compiler --version </dev/null >&5) 2>&5
2072
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073
(exit $ac_status); }
2074
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2075
(eval $ac_compiler -v </dev/null >&5) 2>&5
2077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078
(exit $ac_status); }
2079
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2080
(eval $ac_compiler -V </dev/null >&5) 2>&5
2082
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2083
(exit $ac_status); }
2085
cat >conftest.$ac_ext <<_ACEOF
2086
#line $LINENO "configure"
2089
cat confdefs.h >>conftest.$ac_ext
2090
cat >>conftest.$ac_ext <<_ACEOF
2091
/* end confdefs.h. */
2101
ac_clean_files_save=$ac_clean_files
2102
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2103
# Try to create an executable without -o first, disregard a.out.
2104
# It will help us diagnose broken compilers, and finding out an intuition
2106
echo "$as_me:$LINENO: checking for C compiler default output" >&5
2107
echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2108
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2109
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2110
(eval $ac_link_default) 2>&5
2112
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113
(exit $ac_status); }; then
2114
# Find the output, starting from the most likely. This scheme is
2115
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2118
# Be careful to initialize this variable, since it used to be cached.
2119
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2121
# b.out is created by i960 compilers.
2122
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2124
test -f "$ac_file" || continue
2126
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2129
# This is the source file.
2132
# We found the default executable, but exeext='' is most
2136
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2137
# FIXME: I believe we export ac_cv_exeext for Libtool,
2138
# but it would be cool to find out if it's true. Does anybody
2139
# maintain Libtool? --akim.
2147
echo "$as_me: failed program was:" >&5
2148
sed 's/^/| /' conftest.$ac_ext >&5
2150
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2151
See \`config.log' for more details." >&5
2152
echo "$as_me: error: C compiler cannot create executables
2153
See \`config.log' for more details." >&2;}
2154
{ (exit 77); exit 77; }; }
2157
ac_exeext=$ac_cv_exeext
2158
echo "$as_me:$LINENO: result: $ac_file" >&5
2159
echo "${ECHO_T}$ac_file" >&6
2161
# Check the compiler produces executables we can run. If not, either
2162
# the compiler is broken, or we cross compile.
2163
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2164
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2165
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2166
# If not cross compiling, check that we can run a simple program.
2167
if test "$cross_compiling" != yes; then
2168
if { ac_try='./$ac_file'
2169
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2173
(exit $ac_status); }; }; then
2176
if test "$cross_compiling" = maybe; then
2179
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2180
If you meant to cross compile, use \`--host'.
2181
See \`config.log' for more details." >&5
2182
echo "$as_me: error: cannot run C compiled programs.
2183
If you meant to cross compile, use \`--host'.
2184
See \`config.log' for more details." >&2;}
2185
{ (exit 1); exit 1; }; }
2189
echo "$as_me:$LINENO: result: yes" >&5
2190
echo "${ECHO_T}yes" >&6
2192
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2193
ac_clean_files=$ac_clean_files_save
2194
# Check the compiler produces executables we can run. If not, either
2195
# the compiler is broken, or we cross compile.
2196
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2197
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2198
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2199
echo "${ECHO_T}$cross_compiling" >&6
2201
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2202
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2203
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2204
(eval $ac_link) 2>&5
2206
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207
(exit $ac_status); }; then
2208
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2209
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2210
# work properly (i.e., refer to `conftest.exe'), while it won't with
2212
for ac_file in conftest.exe conftest conftest.*; do
2213
test -f "$ac_file" || continue
2215
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2216
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2223
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2224
See \`config.log' for more details." >&5
2225
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2226
See \`config.log' for more details." >&2;}
2227
{ (exit 1); exit 1; }; }
2230
rm -f conftest$ac_cv_exeext
2231
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2232
echo "${ECHO_T}$ac_cv_exeext" >&6
2234
rm -f conftest.$ac_ext
2235
EXEEXT=$ac_cv_exeext
2237
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2238
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2239
if test "${ac_cv_objext+set}" = set; then
2240
echo $ECHO_N "(cached) $ECHO_C" >&6
2242
cat >conftest.$ac_ext <<_ACEOF
2243
#line $LINENO "configure"
2246
cat confdefs.h >>conftest.$ac_ext
2247
cat >>conftest.$ac_ext <<_ACEOF
2248
/* end confdefs.h. */
2258
rm -f conftest.o conftest.obj
2259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2260
(eval $ac_compile) 2>&5
2262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2263
(exit $ac_status); }; then
2264
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2266
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2267
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2272
echo "$as_me: failed program was:" >&5
2273
sed 's/^/| /' conftest.$ac_ext >&5
2275
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2276
See \`config.log' for more details." >&5
2277
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2278
See \`config.log' for more details." >&2;}
2279
{ (exit 1); exit 1; }; }
2282
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2284
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2285
echo "${ECHO_T}$ac_cv_objext" >&6
2286
OBJEXT=$ac_cv_objext
2288
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2289
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2290
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2291
echo $ECHO_N "(cached) $ECHO_C" >&6
2293
cat >conftest.$ac_ext <<_ACEOF
2294
#line $LINENO "configure"
2297
cat confdefs.h >>conftest.$ac_ext
2298
cat >>conftest.$ac_ext <<_ACEOF
2299
/* end confdefs.h. */
2312
rm -f conftest.$ac_objext
2313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2314
(eval $ac_compile) 2>&5
2316
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317
(exit $ac_status); } &&
2318
{ ac_try='test -s conftest.$ac_objext'
2319
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2322
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2323
(exit $ac_status); }; }; then
2326
echo "$as_me: failed program was:" >&5
2327
sed 's/^/| /' conftest.$ac_ext >&5
2331
rm -f conftest.$ac_objext conftest.$ac_ext
2332
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2335
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2336
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2337
GCC=`test $ac_compiler_gnu = yes && echo yes`
2338
ac_test_CFLAGS=${CFLAGS+set}
2339
ac_save_CFLAGS=$CFLAGS
2341
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2342
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2343
if test "${ac_cv_prog_cc_g+set}" = set; then
2344
echo $ECHO_N "(cached) $ECHO_C" >&6
2346
cat >conftest.$ac_ext <<_ACEOF
2347
#line $LINENO "configure"
2350
cat confdefs.h >>conftest.$ac_ext
2351
cat >>conftest.$ac_ext <<_ACEOF
2352
/* end confdefs.h. */
2362
rm -f conftest.$ac_objext
2363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2364
(eval $ac_compile) 2>&5
2366
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367
(exit $ac_status); } &&
2368
{ ac_try='test -s conftest.$ac_objext'
2369
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373
(exit $ac_status); }; }; then
2376
echo "$as_me: failed program was:" >&5
2377
sed 's/^/| /' conftest.$ac_ext >&5
2381
rm -f conftest.$ac_objext conftest.$ac_ext
2383
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2384
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2385
if test "$ac_test_CFLAGS" = set; then
2386
CFLAGS=$ac_save_CFLAGS
2387
elif test $ac_cv_prog_cc_g = yes; then
2388
if test "$GCC" = yes; then
2394
if test "$GCC" = yes; then
2400
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2401
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2402
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2403
echo $ECHO_N "(cached) $ECHO_C" >&6
2405
ac_cv_prog_cc_stdc=no
2407
cat >conftest.$ac_ext <<_ACEOF
2408
#line $LINENO "configure"
2411
cat confdefs.h >>conftest.$ac_ext
2412
cat >>conftest.$ac_ext <<_ACEOF
2413
/* end confdefs.h. */
2416
#include <sys/types.h>
2417
#include <sys/stat.h>
2418
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2419
struct buf { int x; };
2420
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2421
static char *e (p, i)
2427
static char *f (char * (*g) (char **, int), char **p, ...)
2432
s = g (p, va_arg (v,int));
2436
int test (int i, double x);
2437
struct s1 {int (*f) (int a);};
2438
struct s2 {int (*f) (double a);};
2439
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2445
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2450
# Don't try gcc -ansi; that turns off useful extensions and
2451
# breaks some systems' header files.
2452
# AIX -qlanglvl=ansi
2453
# Ultrix and OSF/1 -std1
2454
# HP-UX 10.20 and later -Ae
2455
# HP-UX older versions -Aa -D_HPUX_SOURCE
2456
# SVR4 -Xc -D__EXTENSIONS__
2457
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2459
CC="$ac_save_CC $ac_arg"
2460
rm -f conftest.$ac_objext
2461
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2462
(eval $ac_compile) 2>&5
2464
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465
(exit $ac_status); } &&
2466
{ ac_try='test -s conftest.$ac_objext'
2467
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2470
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471
(exit $ac_status); }; }; then
2472
ac_cv_prog_cc_stdc=$ac_arg
2475
echo "$as_me: failed program was:" >&5
2476
sed 's/^/| /' conftest.$ac_ext >&5
2479
rm -f conftest.$ac_objext
2481
rm -f conftest.$ac_ext conftest.$ac_objext
2486
case "x$ac_cv_prog_cc_stdc" in
2488
echo "$as_me:$LINENO: result: none needed" >&5
2489
echo "${ECHO_T}none needed" >&6 ;;
2491
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2492
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2493
CC="$CC $ac_cv_prog_cc_stdc" ;;
2496
# Some people use a C++ compiler to compile C. Since we use `exit',
2497
# in C++ we need to declare it. In case someone uses the same compiler
2498
# for both compiling C and C++ we need to have the C++ compiler decide
2499
# the declaration of exit, since it's the most demanding environment.
2500
cat >conftest.$ac_ext <<_ACEOF
2505
rm -f conftest.$ac_objext
2506
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2507
(eval $ac_compile) 2>&5
2509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510
(exit $ac_status); } &&
2511
{ ac_try='test -s conftest.$ac_objext'
2512
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2515
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516
(exit $ac_status); }; }; then
2517
for ac_declaration in \
2519
'#include <stdlib.h>' \
2520
'extern "C" void std::exit (int) throw (); using std::exit;' \
2521
'extern "C" void std::exit (int); using std::exit;' \
2522
'extern "C" void exit (int) throw ();' \
2523
'extern "C" void exit (int);' \
2526
cat >conftest.$ac_ext <<_ACEOF
2527
#line $LINENO "configure"
2530
cat confdefs.h >>conftest.$ac_ext
2531
cat >>conftest.$ac_ext <<_ACEOF
2532
/* end confdefs.h. */
2543
rm -f conftest.$ac_objext
2544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2545
(eval $ac_compile) 2>&5
2547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548
(exit $ac_status); } &&
2549
{ ac_try='test -s conftest.$ac_objext'
2550
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2553
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554
(exit $ac_status); }; }; then
2557
echo "$as_me: failed program was:" >&5
2558
sed 's/^/| /' conftest.$ac_ext >&5
2562
rm -f conftest.$ac_objext conftest.$ac_ext
2563
cat >conftest.$ac_ext <<_ACEOF
2564
#line $LINENO "configure"
2567
cat confdefs.h >>conftest.$ac_ext
2568
cat >>conftest.$ac_ext <<_ACEOF
2569
/* end confdefs.h. */
2579
rm -f conftest.$ac_objext
2580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2581
(eval $ac_compile) 2>&5
2583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584
(exit $ac_status); } &&
2585
{ ac_try='test -s conftest.$ac_objext'
2586
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2589
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590
(exit $ac_status); }; }; then
2593
echo "$as_me: failed program was:" >&5
2594
sed 's/^/| /' conftest.$ac_ext >&5
2597
rm -f conftest.$ac_objext conftest.$ac_ext
2600
if test -n "$ac_declaration"; then
2601
echo '#ifdef __cplusplus' >>confdefs.h
2602
echo $ac_declaration >>confdefs.h
2603
echo '#endif' >>confdefs.h
2607
echo "$as_me: failed program was:" >&5
2608
sed 's/^/| /' conftest.$ac_ext >&5
2611
rm -f conftest.$ac_objext conftest.$ac_ext
2613
ac_cpp='$CPP $CPPFLAGS'
2614
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617
rm -f .deps 2>/dev/null
2618
mkdir .deps 2>/dev/null
2619
if test -d .deps; then
2622
# MS-DOS does not allow filenames that begin with a dot.
2625
rmdir .deps 2>/dev/null
2628
ac_config_commands="$ac_config_commands depfiles"
2631
am_make=${MAKE-make}
2632
cat > confinc << 'END'
2636
# If we don't find an include directive, just comment out the code.
2637
echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2638
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2642
# First try GNU make style include.
2643
echo "include confinc" > confmf
2644
# We grep out `Entering directory' and `Leaving directory'
2645
# messages which can occur if `w' ends up in MAKEFLAGS.
2646
# In particular we don't look at `^make:' because GNU make might
2647
# be invoked under some other name (usually "gmake"), in which
2648
# case it prints its new name instead of `make'.
2649
if test "`$am_make -s -f confmf 2> /dev/null | fgrep -v 'ing directory'`" = "done"; then
2654
# Now try BSD make style include.
2655
if test "$am__include" = "#"; then
2656
echo '.include "confinc"' > confmf
2657
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2658
am__include=.include
2665
echo "$as_me:$LINENO: result: $_am_result" >&5
2666
echo "${ECHO_T}$_am_result" >&6
2667
rm -f confinc confmf
2669
# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2670
if test "${enable_dependency_tracking+set}" = set; then
2671
enableval="$enable_dependency_tracking"
2674
if test "x$enable_dependency_tracking" != xno; then
2675
am_depcomp="$ac_aux_dir/depcomp"
2680
if test "x$enable_dependency_tracking" != xno; then
2691
depcc="$CC" am_compiler_list=
2693
echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2694
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2695
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
2696
echo $ECHO_N "(cached) $ECHO_C" >&6
2698
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2699
# We make a subdir and do the tests there. Otherwise we can end up
2700
# making bogus files that we don't know about and never remove. For
2701
# instance it was reported that on HP-UX the gcc test will end up
2702
# making a dummy file named `D' -- because `-MD' means `put the output
2705
# Copy depcomp to subdir because otherwise we won't find it if we're
2706
# using a relative directory.
2707
cp "$am_depcomp" conftest.dir
2710
am_cv_CC_dependencies_compiler_type=none
2711
if test "$am_compiler_list" = ""; then
2712
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2714
for depmode in $am_compiler_list; do
2715
# We need to recreate these files for each test, as the compiler may
2716
# overwrite some of them when testing with obscure command lines.
2717
# This happens at least with the AIX C compiler.
2718
echo '#include "conftest.h"' > conftest.c
2719
echo 'int i;' > conftest.h
2720
echo "${am__include} ${am__quote}conftest.Po${am__quote}" > confmf
2724
# after this tag, mechanisms are not by side-effect, so they'll
2725
# only be used when explicitly requested
2726
if test "x$enable_dependency_tracking" = xyes; then
2734
# We check with `-c' and `-o' for the sake of the "dashmstdout"
2735
# mode. It turns out that the SunPro C++ compiler does not properly
2736
# handle `-M -o', and we need to detect this.
2737
if depmode=$depmode \
2738
source=conftest.c object=conftest.o \
2739
depfile=conftest.Po tmpdepfile=conftest.TPo \
2740
$SHELL ./depcomp $depcc -c conftest.c -o conftest.o >/dev/null 2>&1 &&
2741
grep conftest.h conftest.Po > /dev/null 2>&1 &&
2742
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2743
am_cv_CC_dependencies_compiler_type=$depmode
2751
am_cv_CC_dependencies_compiler_type=none
2755
echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
2756
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
2757
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
2761
# Check whether --enable-gtk2 or --disable-gtk2 was given.
2762
if test "${enable_gtk2+set}" = set; then
2763
enableval="$enable_gtk2"
2764
enable_gtk2=$enableval
2771
if test "$enable_gtk2" = "yes" ; then
2775
if test -z "$PKG_CONFIG"; then
2776
# Extract the first word of "pkg-config", so it can be a program name with args.
2777
set dummy pkg-config; ac_word=$2
2778
echo "$as_me:$LINENO: checking for $ac_word" >&5
2779
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2780
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
2781
echo $ECHO_N "(cached) $ECHO_C" >&6
2785
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
2788
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2792
test -z "$as_dir" && as_dir=.
2793
for ac_exec_ext in '' $ac_executable_extensions; do
2794
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2795
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2796
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
2806
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
2808
if test -n "$PKG_CONFIG"; then
2809
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
2810
echo "${ECHO_T}$PKG_CONFIG" >&6
2812
echo "$as_me:$LINENO: result: no" >&5
2813
echo "${ECHO_T}no" >&6
2818
if test "$PKG_CONFIG" = "no" ; then
2819
echo "*** The pkg-config script could not be found. Make sure it is"
2820
echo "*** in your path, or set the PKG_CONFIG environment variable"
2821
echo "*** to the full path to pkg-config."
2822
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
2824
PKG_CONFIG_MIN_VERSION=0.9.0
2825
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
2826
echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.0.0" >&5
2827
echo $ECHO_N "checking for gtk+-2.0 >= 2.0.0... $ECHO_C" >&6
2829
if $PKG_CONFIG --exists "gtk+-2.0 >= 2.0.0" ; then
2830
echo "$as_me:$LINENO: result: yes" >&5
2831
echo "${ECHO_T}yes" >&6
2834
echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
2835
echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
2836
GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.0.0"`
2837
echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
2838
echo "${ECHO_T}$GTK_CFLAGS" >&6
2840
echo "$as_me:$LINENO: checking GTK_LIBS" >&5
2841
echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
2842
GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.0.0"`
2843
echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
2844
echo "${ECHO_T}$GTK_LIBS" >&6
2848
## If we have a custom action on failure, don't print errors, but
2849
## do set a variable so people can do so.
2850
GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.0.0"`
2857
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
2858
echo "*** See http://www.freedesktop.org/software/pkgconfig"
2862
if test $succeeded = yes; then
2870
if test $found_gtk2 = 0; then
2873
# Check whether --with-gtk-prefix or --without-gtk-prefix was given.
2874
if test "${with_gtk_prefix+set}" = set; then
2875
withval="$with_gtk_prefix"
2876
gtk_config_prefix="$withval"
2878
gtk_config_prefix=""
2881
# Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
2882
if test "${with_gtk_exec_prefix+set}" = set; then
2883
withval="$with_gtk_exec_prefix"
2884
gtk_config_exec_prefix="$withval"
2886
gtk_config_exec_prefix=""
2888
# Check whether --enable-gtktest or --disable-gtktest was given.
2889
if test "${enable_gtktest+set}" = set; then
2890
enableval="$enable_gtktest"
2900
gtk_config_args="$gtk_config_args gthread"
2905
if test x$gtk_config_exec_prefix != x ; then
2906
gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
2907
if test x${GTK_CONFIG+set} != xset ; then
2908
GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
2911
if test x$gtk_config_prefix != x ; then
2912
gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
2913
if test x${GTK_CONFIG+set} != xset ; then
2914
GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
2918
# Extract the first word of "gtk-config", so it can be a program name with args.
2919
set dummy gtk-config; ac_word=$2
2920
echo "$as_me:$LINENO: checking for $ac_word" >&5
2921
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2922
if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
2923
echo $ECHO_N "(cached) $ECHO_C" >&6
2927
ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
2930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934
test -z "$as_dir" && as_dir=.
2935
for ac_exec_ext in '' $ac_executable_extensions; do
2936
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937
ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2938
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2944
test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
2948
GTK_CONFIG=$ac_cv_path_GTK_CONFIG
2950
if test -n "$GTK_CONFIG"; then
2951
echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
2952
echo "${ECHO_T}$GTK_CONFIG" >&6
2954
echo "$as_me:$LINENO: result: no" >&5
2955
echo "${ECHO_T}no" >&6
2958
min_gtk_version=1.2.3
2959
echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
2960
echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6
2962
if test "$GTK_CONFIG" = "no" ; then
2965
GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2966
GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2967
gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2968
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2969
gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2970
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2971
gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2972
sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2973
if test "x$enable_gtktest" = "xyes" ; then
2974
ac_save_CFLAGS="$CFLAGS"
2975
ac_save_LIBS="$LIBS"
2976
CFLAGS="$CFLAGS $GTK_CFLAGS"
2977
LIBS="$GTK_LIBS $LIBS"
2979
if test "$cross_compiling" = yes; then
2980
echo $ac_n "cross compiling; assumed OK... $ac_c"
2982
cat >conftest.$ac_ext <<_ACEOF
2983
#line $LINENO "configure"
2986
cat confdefs.h >>conftest.$ac_ext
2987
cat >>conftest.$ac_ext <<_ACEOF
2988
/* end confdefs.h. */
2990
#include <gtk/gtk.h>
2997
int major, minor, micro;
3000
system ("touch conf.gtktest");
3002
/* HP/UX 9 (%@#!) writes to sscanf strings */
3003
tmp_version = g_strdup("$min_gtk_version");
3004
if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
3005
printf("%s, bad version string\n", "$min_gtk_version");
3009
if ((gtk_major_version != $gtk_config_major_version) ||
3010
(gtk_minor_version != $gtk_config_minor_version) ||
3011
(gtk_micro_version != $gtk_config_micro_version))
3013
printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
3014
$gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
3015
gtk_major_version, gtk_minor_version, gtk_micro_version);
3016
printf ("*** was found! If gtk-config was correct, then it is best\n");
3017
printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
3018
printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
3019
printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
3020
printf("*** required on your system.\n");
3021
printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
3022
printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
3023
printf("*** before re-running configure\n");
3025
#if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
3026
else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
3027
(gtk_minor_version != GTK_MINOR_VERSION) ||
3028
(gtk_micro_version != GTK_MICRO_VERSION))
3030
printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
3031
GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
3032
printf("*** library (version %d.%d.%d)\n",
3033
gtk_major_version, gtk_minor_version, gtk_micro_version);
3035
#endif /* defined (GTK_MAJOR_VERSION) ... */
3038
if ((gtk_major_version > major) ||
3039
((gtk_major_version == major) && (gtk_minor_version > minor)) ||
3040
((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
3046
printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
3047
gtk_major_version, gtk_minor_version, gtk_micro_version);
3048
printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
3049
major, minor, micro);
3050
printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
3052
printf("*** If you have already installed a sufficiently new version, this error\n");
3053
printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
3054
printf("*** being found. The easiest way to fix this is to remove the old version\n");
3055
printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
3056
printf("*** correct copy of gtk-config. (In this case, you will have to\n");
3057
printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
3058
printf("*** so that the correct libraries are found at run-time))\n");
3065
rm -f conftest$ac_exeext
3066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3067
(eval $ac_link) 2>&5
3069
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3071
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075
(exit $ac_status); }; }; then
3078
echo "$as_me: program exited with status $ac_status" >&5
3079
echo "$as_me: failed program was:" >&5
3080
sed 's/^/| /' conftest.$ac_ext >&5
3085
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3087
CFLAGS="$ac_save_CFLAGS"
3088
LIBS="$ac_save_LIBS"
3091
if test "x$no_gtk" = x ; then
3092
echo "$as_me:$LINENO: result: yes" >&5
3093
echo "${ECHO_T}yes" >&6
3096
echo "$as_me:$LINENO: result: no" >&5
3097
echo "${ECHO_T}no" >&6
3098
if test "$GTK_CONFIG" = "no" ; then
3099
echo "*** The gtk-config script installed by GTK could not be found"
3100
echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
3101
echo "*** your path, or set the GTK_CONFIG environment variable to the"
3102
echo "*** full path to gtk-config."
3104
if test -f conf.gtktest ; then
3107
echo "*** Could not run GTK test program, checking why..."
3108
CFLAGS="$CFLAGS $GTK_CFLAGS"
3109
LIBS="$LIBS $GTK_LIBS"
3110
cat >conftest.$ac_ext <<_ACEOF
3111
#line $LINENO "configure"
3114
cat confdefs.h >>conftest.$ac_ext
3115
cat >>conftest.$ac_ext <<_ACEOF
3116
/* end confdefs.h. */
3118
#include <gtk/gtk.h>
3124
return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
3129
rm -f conftest.$ac_objext conftest$ac_exeext
3130
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3131
(eval $ac_link) 2>&5
3133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3134
(exit $ac_status); } &&
3135
{ ac_try='test -s conftest$ac_exeext'
3136
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3139
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140
(exit $ac_status); }; }; then
3141
echo "*** The test program compiled, but did not run. This usually means"
3142
echo "*** that the run-time linker is not finding GTK or finding the wrong"
3143
echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
3144
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
3145
echo "*** to the installed location Also, make sure you have run ldconfig if that"
3146
echo "*** is required on your system"
3148
echo "*** If you have an old version installed, it is best to remove it, although"
3149
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
3151
echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
3152
echo "*** came with the system with the command"
3154
echo "*** rpm --erase --nodeps gtk gtk-devel"
3156
echo "$as_me: failed program was:" >&5
3157
sed 's/^/| /' conftest.$ac_ext >&5
3159
echo "*** The test program failed to compile or link. See the file config.log for the"
3160
echo "*** exact error that occured. This usually means GTK was incorrectly installed"
3161
echo "*** or that you have moved GTK since it was installed. In the latter case, you"
3162
echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
3164
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3165
CFLAGS="$ac_save_CFLAGS"
3166
LIBS="$ac_save_LIBS"
3171
{ { echo "$as_me:$LINENO: error: gtkboard needs GTK 1.2.3 or higher" >&5
3172
echo "$as_me: error: gtkboard needs GTK 1.2.3 or higher" >&2;}
3173
{ (exit 1); exit 1; }; }
3182
# Check whether --enable-sdl or --disable-sdl was given.
3183
if test "${enable_sdl+set}" = set; then
3184
enableval="$enable_sdl"
3185
enable_sdl=$enableval
3190
if test "$enable_sdl" = "yes" ; then
3192
# AM_PATH_SDL($SDL_VERSION,
3193
# AC_DEFINE([HAVE_SDL], [], [Do we have the SDL library]),
3194
# AC_MSG_WARN([*** SDL version $SDL_VERSION not found. Sound will be disabled])
3196
echo "$as_me:$LINENO: checking for Mix_OpenAudio in -lSDL_mixer" >&5
3197
echo $ECHO_N "checking for Mix_OpenAudio in -lSDL_mixer... $ECHO_C" >&6
3198
if test "${ac_cv_lib_SDL_mixer_Mix_OpenAudio+set}" = set; then
3199
echo $ECHO_N "(cached) $ECHO_C" >&6
3201
ac_check_lib_save_LIBS=$LIBS
3202
LIBS="-lSDL_mixer $LIBS"
3203
cat >conftest.$ac_ext <<_ACEOF
3204
#line $LINENO "configure"
3207
cat confdefs.h >>conftest.$ac_ext
3208
cat >>conftest.$ac_ext <<_ACEOF
3209
/* end confdefs.h. */
3211
/* Override any gcc2 internal prototype to avoid an error. */
3215
/* We use char because int might match the return type of a gcc2
3216
builtin and then its argument prototype would still apply. */
3217
char Mix_OpenAudio ();
3226
rm -f conftest.$ac_objext conftest$ac_exeext
3227
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3228
(eval $ac_link) 2>&5
3230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3231
(exit $ac_status); } &&
3232
{ ac_try='test -s conftest$ac_exeext'
3233
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3236
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237
(exit $ac_status); }; }; then
3238
ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
3240
echo "$as_me: failed program was:" >&5
3241
sed 's/^/| /' conftest.$ac_ext >&5
3243
ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
3245
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3246
LIBS=$ac_check_lib_save_LIBS
3248
echo "$as_me:$LINENO: result: $ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&5
3249
echo "${ECHO_T}$ac_cv_lib_SDL_mixer_Mix_OpenAudio" >&6
3250
if test $ac_cv_lib_SDL_mixer_Mix_OpenAudio = yes; then
3257
if test "$have_SDL_mixer" = "yes" ; then
3258
# CFLAGS="$CFLAGS -DHAVE_SDL"
3260
cat >>confdefs.h <<\_ACEOF
3264
LIBS="$LIBS -lSDL_mixer"
3266
echo "*** SDL_mixer not found. Configuring without audio support."
3270
# CFLAGS="$CFLAGS $SDL_CFLAGS"
3271
# LIBS="$LIBS $SDL_LIBS -lSDL_mixer"
3279
# Check whether --enable-gnome or --disable-gnome was given.
3280
if test "${enable_gnome+set}" = set; then
3281
enableval="$enable_gnome"
3283
if test "x$enableval" = "xyes"; then
3289
if test "$gnome" = true ; then
3293
if test -z "$PKG_CONFIG"; then
3294
# Extract the first word of "pkg-config", so it can be a program name with args.
3295
set dummy pkg-config; ac_word=$2
3296
echo "$as_me:$LINENO: checking for $ac_word" >&5
3297
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3298
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3299
echo $ECHO_N "(cached) $ECHO_C" >&6
3303
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3306
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3310
test -z "$as_dir" && as_dir=.
3311
for ac_exec_ext in '' $ac_executable_extensions; do
3312
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3313
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3314
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320
test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
3324
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3326
if test -n "$PKG_CONFIG"; then
3327
echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3328
echo "${ECHO_T}$PKG_CONFIG" >&6
3330
echo "$as_me:$LINENO: result: no" >&5
3331
echo "${ECHO_T}no" >&6
3336
if test "$PKG_CONFIG" = "no" ; then
3337
echo "*** The pkg-config script could not be found. Make sure it is"
3338
echo "*** in your path, or set the PKG_CONFIG environment variable"
3339
echo "*** to the full path to pkg-config."
3340
echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
3342
PKG_CONFIG_MIN_VERSION=0.9.0
3343
if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
3344
echo "$as_me:$LINENO: checking for
3345
libgnome-2.0 >= 2.0.0
3346
libgnomeui-2.0 >= 2.0.0
3348
echo $ECHO_N "checking for
3349
libgnome-2.0 >= 2.0.0
3350
libgnomeui-2.0 >= 2.0.0
3353
if $PKG_CONFIG --exists "
3354
libgnome-2.0 >= 2.0.0
3355
libgnomeui-2.0 >= 2.0.0
3357
echo "$as_me:$LINENO: result: yes" >&5
3358
echo "${ECHO_T}yes" >&6
3361
echo "$as_me:$LINENO: checking GNOME_CFLAGS" >&5
3362
echo $ECHO_N "checking GNOME_CFLAGS... $ECHO_C" >&6
3363
GNOME_CFLAGS=`$PKG_CONFIG --cflags "
3364
libgnome-2.0 >= 2.0.0
3365
libgnomeui-2.0 >= 2.0.0
3367
echo "$as_me:$LINENO: result: $GNOME_CFLAGS" >&5
3368
echo "${ECHO_T}$GNOME_CFLAGS" >&6
3370
echo "$as_me:$LINENO: checking GNOME_LIBS" >&5
3371
echo $ECHO_N "checking GNOME_LIBS... $ECHO_C" >&6
3372
GNOME_LIBS=`$PKG_CONFIG --libs "
3373
libgnome-2.0 >= 2.0.0
3374
libgnomeui-2.0 >= 2.0.0
3376
echo "$as_me:$LINENO: result: $GNOME_LIBS" >&5
3377
echo "${ECHO_T}$GNOME_LIBS" >&6
3381
## If we have a custom action on failure, don't print errors, but
3382
## do set a variable so people can do so.
3383
GNOME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
3384
libgnome-2.0 >= 2.0.0
3385
libgnomeui-2.0 >= 2.0.0
3387
echo $GNOME_PKG_ERRORS
3393
echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
3394
echo "*** See http://www.freedesktop.org/software/pkgconfig"
3398
if test $succeeded = yes; then
3401
{ { echo "$as_me:$LINENO: error: Library requirements (
3402
libgnome-2.0 >= 2.0.0
3403
libgnomeui-2.0 >= 2.0.0
3404
) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
3405
echo "$as_me: error: Library requirements (
3406
libgnome-2.0 >= 2.0.0
3407
libgnomeui-2.0 >= 2.0.0
3408
) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
3409
{ (exit 1); exit 1; }; }
3412
GNOME_CFLAGS="$GNOME_CFLAGS -DHAVE_GNOME=1"
3420
if test "x$gnome" = "xtrue"; then
3422
WITH_GNOME_FALSE='#'
3430
ac_cpp='$CPP $CPPFLAGS'
3431
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3435
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3436
# On Suns, sometimes $CPP names a directory.
3437
if test -n "$CPP" && test -d "$CPP"; then
3440
if test -z "$CPP"; then
3441
if test "${ac_cv_prog_CPP+set}" = set; then
3442
echo $ECHO_N "(cached) $ECHO_C" >&6
3444
# Double quotes because CPP needs to be expanded
3445
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3448
for ac_c_preproc_warn_flag in '' yes
3450
# Use a header file that comes with gcc, so configuring glibc
3451
# with a fresh cross-compiler works.
3452
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3453
# <limits.h> exists even on freestanding compilers.
3454
# On the NeXT, cc -E runs the code through the compiler's parser,
3455
# not just through cpp. "Syntax error" is here to catch this case.
3456
cat >conftest.$ac_ext <<_ACEOF
3457
#line $LINENO "configure"
3460
cat confdefs.h >>conftest.$ac_ext
3461
cat >>conftest.$ac_ext <<_ACEOF
3462
/* end confdefs.h. */
3464
# include <limits.h>
3466
# include <assert.h>
3470
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3471
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3473
grep -v '^ *+' conftest.er1 >conftest.err
3475
cat conftest.err >&5
3476
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3477
(exit $ac_status); } >/dev/null; then
3478
if test -s conftest.err; then
3479
ac_cpp_err=$ac_c_preproc_warn_flag
3486
if test -z "$ac_cpp_err"; then
3489
echo "$as_me: failed program was:" >&5
3490
sed 's/^/| /' conftest.$ac_ext >&5
3492
# Broken: fails on valid input.
3495
rm -f conftest.err conftest.$ac_ext
3497
# OK, works on sane cases. Now check whether non-existent headers
3498
# can be detected and how.
3499
cat >conftest.$ac_ext <<_ACEOF
3500
#line $LINENO "configure"
3503
cat confdefs.h >>conftest.$ac_ext
3504
cat >>conftest.$ac_ext <<_ACEOF
3505
/* end confdefs.h. */
3506
#include <ac_nonexistent.h>
3508
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3509
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3511
grep -v '^ *+' conftest.er1 >conftest.err
3513
cat conftest.err >&5
3514
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515
(exit $ac_status); } >/dev/null; then
3516
if test -s conftest.err; then
3517
ac_cpp_err=$ac_c_preproc_warn_flag
3524
if test -z "$ac_cpp_err"; then
3525
# Broken: success on invalid input.
3528
echo "$as_me: failed program was:" >&5
3529
sed 's/^/| /' conftest.$ac_ext >&5
3531
# Passes both tests.
3535
rm -f conftest.err conftest.$ac_ext
3538
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3539
rm -f conftest.err conftest.$ac_ext
3540
if $ac_preproc_ok; then
3552
echo "$as_me:$LINENO: result: $CPP" >&5
3553
echo "${ECHO_T}$CPP" >&6
3555
for ac_c_preproc_warn_flag in '' yes
3557
# Use a header file that comes with gcc, so configuring glibc
3558
# with a fresh cross-compiler works.
3559
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3560
# <limits.h> exists even on freestanding compilers.
3561
# On the NeXT, cc -E runs the code through the compiler's parser,
3562
# not just through cpp. "Syntax error" is here to catch this case.
3563
cat >conftest.$ac_ext <<_ACEOF
3564
#line $LINENO "configure"
3567
cat confdefs.h >>conftest.$ac_ext
3568
cat >>conftest.$ac_ext <<_ACEOF
3569
/* end confdefs.h. */
3571
# include <limits.h>
3573
# include <assert.h>
3577
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3578
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3580
grep -v '^ *+' conftest.er1 >conftest.err
3582
cat conftest.err >&5
3583
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584
(exit $ac_status); } >/dev/null; then
3585
if test -s conftest.err; then
3586
ac_cpp_err=$ac_c_preproc_warn_flag
3593
if test -z "$ac_cpp_err"; then
3596
echo "$as_me: failed program was:" >&5
3597
sed 's/^/| /' conftest.$ac_ext >&5
3599
# Broken: fails on valid input.
3602
rm -f conftest.err conftest.$ac_ext
3604
# OK, works on sane cases. Now check whether non-existent headers
3605
# can be detected and how.
3606
cat >conftest.$ac_ext <<_ACEOF
3607
#line $LINENO "configure"
3610
cat confdefs.h >>conftest.$ac_ext
3611
cat >>conftest.$ac_ext <<_ACEOF
3612
/* end confdefs.h. */
3613
#include <ac_nonexistent.h>
3615
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3616
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3618
grep -v '^ *+' conftest.er1 >conftest.err
3620
cat conftest.err >&5
3621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622
(exit $ac_status); } >/dev/null; then
3623
if test -s conftest.err; then
3624
ac_cpp_err=$ac_c_preproc_warn_flag
3631
if test -z "$ac_cpp_err"; then
3632
# Broken: success on invalid input.
3635
echo "$as_me: failed program was:" >&5
3636
sed 's/^/| /' conftest.$ac_ext >&5
3638
# Passes both tests.
3642
rm -f conftest.err conftest.$ac_ext
3645
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3646
rm -f conftest.err conftest.$ac_ext
3647
if $ac_preproc_ok; then
3650
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3651
See \`config.log' for more details." >&5
3652
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3653
See \`config.log' for more details." >&2;}
3654
{ (exit 1); exit 1; }; }
3658
ac_cpp='$CPP $CPPFLAGS'
3659
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3660
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3661
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3664
echo "$as_me:$LINENO: checking for egrep" >&5
3665
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3666
if test "${ac_cv_prog_egrep+set}" = set; then
3667
echo $ECHO_N "(cached) $ECHO_C" >&6
3669
if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3670
then ac_cv_prog_egrep='grep -E'
3671
else ac_cv_prog_egrep='egrep'
3674
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3675
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3676
EGREP=$ac_cv_prog_egrep
3679
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3680
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3681
if test "${ac_cv_header_stdc+set}" = set; then
3682
echo $ECHO_N "(cached) $ECHO_C" >&6
3684
cat >conftest.$ac_ext <<_ACEOF
3685
#line $LINENO "configure"
3688
cat confdefs.h >>conftest.$ac_ext
3689
cat >>conftest.$ac_ext <<_ACEOF
3690
/* end confdefs.h. */
3704
rm -f conftest.$ac_objext
3705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3706
(eval $ac_compile) 2>&5
3708
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709
(exit $ac_status); } &&
3710
{ ac_try='test -s conftest.$ac_objext'
3711
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3714
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715
(exit $ac_status); }; }; then
3716
ac_cv_header_stdc=yes
3718
echo "$as_me: failed program was:" >&5
3719
sed 's/^/| /' conftest.$ac_ext >&5
3721
ac_cv_header_stdc=no
3723
rm -f conftest.$ac_objext conftest.$ac_ext
3725
if test $ac_cv_header_stdc = yes; then
3726
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3727
cat >conftest.$ac_ext <<_ACEOF
3728
#line $LINENO "configure"
3731
cat confdefs.h >>conftest.$ac_ext
3732
cat >>conftest.$ac_ext <<_ACEOF
3733
/* end confdefs.h. */
3737
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3738
$EGREP "memchr" >/dev/null 2>&1; then
3741
ac_cv_header_stdc=no
3747
if test $ac_cv_header_stdc = yes; then
3748
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3749
cat >conftest.$ac_ext <<_ACEOF
3750
#line $LINENO "configure"
3753
cat confdefs.h >>conftest.$ac_ext
3754
cat >>conftest.$ac_ext <<_ACEOF
3755
/* end confdefs.h. */
3759
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3760
$EGREP "free" >/dev/null 2>&1; then
3763
ac_cv_header_stdc=no
3769
if test $ac_cv_header_stdc = yes; then
3770
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3771
if test "$cross_compiling" = yes; then
3774
cat >conftest.$ac_ext <<_ACEOF
3775
#line $LINENO "configure"
3778
cat confdefs.h >>conftest.$ac_ext
3779
cat >>conftest.$ac_ext <<_ACEOF
3780
/* end confdefs.h. */
3782
#if ((' ' & 0x0FF) == 0x020)
3783
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3784
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3786
# define ISLOWER(c) \
3787
(('a' <= (c) && (c) <= 'i') \
3788
|| ('j' <= (c) && (c) <= 'r') \
3789
|| ('s' <= (c) && (c) <= 'z'))
3790
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3793
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3798
for (i = 0; i < 256; i++)
3799
if (XOR (islower (i), ISLOWER (i))
3800
|| toupper (i) != TOUPPER (i))
3805
rm -f conftest$ac_exeext
3806
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3807
(eval $ac_link) 2>&5
3809
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3811
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3814
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3815
(exit $ac_status); }; }; then
3818
echo "$as_me: program exited with status $ac_status" >&5
3819
echo "$as_me: failed program was:" >&5
3820
sed 's/^/| /' conftest.$ac_ext >&5
3823
ac_cv_header_stdc=no
3825
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3829
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3830
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3831
if test $ac_cv_header_stdc = yes; then
3833
cat >>confdefs.h <<\_ACEOF
3834
#define STDC_HEADERS 1
3839
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3849
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3850
inttypes.h stdint.h unistd.h
3852
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3853
echo "$as_me:$LINENO: checking for $ac_header" >&5
3854
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3855
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3856
echo $ECHO_N "(cached) $ECHO_C" >&6
3858
cat >conftest.$ac_ext <<_ACEOF
3859
#line $LINENO "configure"
3862
cat confdefs.h >>conftest.$ac_ext
3863
cat >>conftest.$ac_ext <<_ACEOF
3864
/* end confdefs.h. */
3865
$ac_includes_default
3867
#include <$ac_header>
3869
rm -f conftest.$ac_objext
3870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3871
(eval $ac_compile) 2>&5
3873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3874
(exit $ac_status); } &&
3875
{ ac_try='test -s conftest.$ac_objext'
3876
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3879
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3880
(exit $ac_status); }; }; then
3881
eval "$as_ac_Header=yes"
3883
echo "$as_me: failed program was:" >&5
3884
sed 's/^/| /' conftest.$ac_ext >&5
3886
eval "$as_ac_Header=no"
3888
rm -f conftest.$ac_objext conftest.$ac_ext
3890
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3891
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3892
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3893
cat >>confdefs.h <<_ACEOF
3894
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3903
for ac_header in unistd.h
3905
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3906
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3907
echo "$as_me:$LINENO: checking for $ac_header" >&5
3908
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3909
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3910
echo $ECHO_N "(cached) $ECHO_C" >&6
3912
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3913
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3915
# Is the header compilable?
3916
echo "$as_me:$LINENO: checking $ac_header usability" >&5
3917
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3918
cat >conftest.$ac_ext <<_ACEOF
3919
#line $LINENO "configure"
3922
cat confdefs.h >>conftest.$ac_ext
3923
cat >>conftest.$ac_ext <<_ACEOF
3924
/* end confdefs.h. */
3925
$ac_includes_default
3926
#include <$ac_header>
3928
rm -f conftest.$ac_objext
3929
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930
(eval $ac_compile) 2>&5
3932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933
(exit $ac_status); } &&
3934
{ ac_try='test -s conftest.$ac_objext'
3935
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3939
(exit $ac_status); }; }; then
3940
ac_header_compiler=yes
3942
echo "$as_me: failed program was:" >&5
3943
sed 's/^/| /' conftest.$ac_ext >&5
3945
ac_header_compiler=no
3947
rm -f conftest.$ac_objext conftest.$ac_ext
3948
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3949
echo "${ECHO_T}$ac_header_compiler" >&6
3951
# Is the header present?
3952
echo "$as_me:$LINENO: checking $ac_header presence" >&5
3953
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3954
cat >conftest.$ac_ext <<_ACEOF
3955
#line $LINENO "configure"
3958
cat confdefs.h >>conftest.$ac_ext
3959
cat >>conftest.$ac_ext <<_ACEOF
3960
/* end confdefs.h. */
3961
#include <$ac_header>
3963
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3964
(eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3966
grep -v '^ *+' conftest.er1 >conftest.err
3968
cat conftest.err >&5
3969
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970
(exit $ac_status); } >/dev/null; then
3971
if test -s conftest.err; then
3972
ac_cpp_err=$ac_c_preproc_warn_flag
3979
if test -z "$ac_cpp_err"; then
3980
ac_header_preproc=yes
3982
echo "$as_me: failed program was:" >&5
3983
sed 's/^/| /' conftest.$ac_ext >&5
3985
ac_header_preproc=no
3987
rm -f conftest.err conftest.$ac_ext
3988
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3989
echo "${ECHO_T}$ac_header_preproc" >&6
3991
# So? What about this header?
3992
case $ac_header_compiler:$ac_header_preproc in
3994
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3995
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3996
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3997
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4000
## ------------------------------------ ##
4001
## Report this to bug-autoconf@gnu.org. ##
4002
## ------------------------------------ ##
4005
sed "s/^/$as_me: WARNING: /" >&2
4008
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4009
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4010
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4011
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4012
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4013
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4016
## ------------------------------------ ##
4017
## Report this to bug-autoconf@gnu.org. ##
4018
## ------------------------------------ ##
4021
sed "s/^/$as_me: WARNING: /" >&2
4024
echo "$as_me:$LINENO: checking for $ac_header" >&5
4025
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4026
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4027
echo $ECHO_N "(cached) $ECHO_C" >&6
4029
eval "$as_ac_Header=$ac_header_preproc"
4031
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4032
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4035
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4036
cat >>confdefs.h <<_ACEOF
4037
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4045
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4046
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
4047
if test "${ac_cv_c_const+set}" = set; then
4048
echo $ECHO_N "(cached) $ECHO_C" >&6
4050
cat >conftest.$ac_ext <<_ACEOF
4051
#line $LINENO "configure"
4054
cat confdefs.h >>conftest.$ac_ext
4055
cat >>conftest.$ac_ext <<_ACEOF
4056
/* end confdefs.h. */
4061
/* FIXME: Include the comments suggested by Paul. */
4063
/* Ultrix mips cc rejects this. */
4064
typedef int charset[2];
4066
/* SunOS 4.1.1 cc rejects this. */
4067
char const *const *ccp;
4069
/* NEC SVR4.0.2 mips cc rejects this. */
4070
struct point {int x, y;};
4071
static struct point const zero = {0,0};
4072
/* AIX XL C 1.02.0.0 rejects this.
4073
It does not let you subtract one const X* pointer from another in
4074
an arm of an if-expression whose if-part is not a constant
4076
const char *g = "string";
4077
ccp = &g + (g ? g-g : 0);
4078
/* HPUX 7.0 cc rejects these. */
4081
ccp = (char const *const *) p;
4082
{ /* SCO 3.2v4 cc rejects this. */
4084
char const *s = 0 ? (char *) 0 : (char const *) 0;
4088
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4090
const int *foo = &x[0];
4093
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4094
typedef const int *iptr;
4098
{ /* AIX XL C 1.02.0.0 rejects this saying
4099
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4100
struct s { int j; const int *ap[3]; };
4101
struct s *b; b->j = 5;
4103
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4112
rm -f conftest.$ac_objext
4113
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4114
(eval $ac_compile) 2>&5
4116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117
(exit $ac_status); } &&
4118
{ ac_try='test -s conftest.$ac_objext'
4119
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4122
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123
(exit $ac_status); }; }; then
4126
echo "$as_me: failed program was:" >&5
4127
sed 's/^/| /' conftest.$ac_ext >&5
4131
rm -f conftest.$ac_objext conftest.$ac_ext
4133
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4134
echo "${ECHO_T}$ac_cv_c_const" >&6
4135
if test $ac_cv_c_const = no; then
4137
cat >>confdefs.h <<\_ACEOF
4144
echo "$as_me:$LINENO: checking return type of signal handlers" >&5
4145
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
4146
if test "${ac_cv_type_signal+set}" = set; then
4147
echo $ECHO_N "(cached) $ECHO_C" >&6
4149
cat >conftest.$ac_ext <<_ACEOF
4150
#line $LINENO "configure"
4153
cat confdefs.h >>conftest.$ac_ext
4154
cat >>conftest.$ac_ext <<_ACEOF
4155
/* end confdefs.h. */
4156
#include <sys/types.h>
4162
extern "C" void (*signal (int, void (*)(int)))(int);
4164
void (*signal ()) ();
4175
rm -f conftest.$ac_objext
4176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4177
(eval $ac_compile) 2>&5
4179
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180
(exit $ac_status); } &&
4181
{ ac_try='test -s conftest.$ac_objext'
4182
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4185
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186
(exit $ac_status); }; }; then
4187
ac_cv_type_signal=void
4189
echo "$as_me: failed program was:" >&5
4190
sed 's/^/| /' conftest.$ac_ext >&5
4192
ac_cv_type_signal=int
4194
rm -f conftest.$ac_objext conftest.$ac_ext
4196
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
4197
echo "${ECHO_T}$ac_cv_type_signal" >&6
4199
cat >>confdefs.h <<_ACEOF
4200
#define RETSIGTYPE $ac_cv_type_signal
4206
for ac_func in mkdir strtol
4208
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4209
echo "$as_me:$LINENO: checking for $ac_func" >&5
4210
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4211
if eval "test \"\${$as_ac_var+set}\" = set"; then
4212
echo $ECHO_N "(cached) $ECHO_C" >&6
4214
cat >conftest.$ac_ext <<_ACEOF
4215
#line $LINENO "configure"
4218
cat confdefs.h >>conftest.$ac_ext
4219
cat >>conftest.$ac_ext <<_ACEOF
4220
/* end confdefs.h. */
4221
/* System header to define __stub macros and hopefully few prototypes,
4222
which can conflict with char $ac_func (); below.
4223
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4224
<limits.h> exists even on freestanding compilers. */
4226
# include <limits.h>
4228
# include <assert.h>
4230
/* Override any gcc2 internal prototype to avoid an error. */
4235
/* We use char because int might match the return type of a gcc2
4236
builtin and then its argument prototype would still apply. */
4238
/* The GNU C library defines this for functions which it implements
4239
to always fail with ENOSYS. Some functions are actually named
4240
something starting with __ and the normal name is an alias. */
4241
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4244
char (*f) () = $ac_func;
4253
return f != $ac_func;
4258
rm -f conftest.$ac_objext conftest$ac_exeext
4259
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4260
(eval $ac_link) 2>&5
4262
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263
(exit $ac_status); } &&
4264
{ ac_try='test -s conftest$ac_exeext'
4265
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
(exit $ac_status); }; }; then
4270
eval "$as_ac_var=yes"
4272
echo "$as_me: failed program was:" >&5
4273
sed 's/^/| /' conftest.$ac_ext >&5
4275
eval "$as_ac_var=no"
4277
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4279
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4280
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4281
if test `eval echo '${'$as_ac_var'}'` = yes; then
4282
cat >>confdefs.h <<_ACEOF
4283
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4290
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile sounds/Makefile pixmaps/Makefile"
4291
cat >confcache <<\_ACEOF
4292
# This file is a shell script that caches the results of configure
4293
# tests run on this system so they can be shared between configure
4294
# scripts and configure runs, see configure's option --config-cache.
4295
# It is not useful on other systems. If it contains results you don't
4296
# want to keep, you may remove or edit it.
4298
# config.status only pays attention to the cache file if you give it
4299
# the --recheck option to rerun configure.
4301
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4302
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4307
# The following way of writing the cache mishandles newlines in values,
4308
# but we know of no workaround that is simple, portable, and efficient.
4309
# So, don't put newlines in cache variables' values.
4310
# Ultrix sh set writes to stderr and can't be redirected directly,
4311
# and sets the high bit in the cache file unless we assign to the vars.
4314
case `(ac_space=' '; set | grep ac_space) 2>&1` in
4316
# `set' does not quote correctly, so add quotes (double-quote
4317
# substitution turns \\\\ into \\, and sed turns \\ into \).
4320
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4323
# `set' quotes correctly as required by POSIX, so do not add quotes.
4325
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
4332
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4334
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4336
if diff $cache_file confcache >/dev/null 2>&1; then :; else
4337
if test -w $cache_file; then
4338
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
4339
cat confcache >$cache_file
4341
echo "not updating unwritable cache $cache_file"
4346
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4347
# Let make expand exec_prefix.
4348
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4350
# VPATH may cause trouble with some makes, so we remove $(srcdir),
4351
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
4352
# trailing colons and then remove the whole line if VPATH becomes empty
4353
# (actually we leave an empty line to preserve line numbers).
4354
if test "x$srcdir" = x.; then
4355
ac_vpsub='/^[ ]*VPATH[ ]*=/{
4356
s/:*\$(srcdir):*/:/;
4357
s/:*\${srcdir}:*/:/;
4359
s/^\([^=]*=[ ]*\):*/\1/;
4365
DEFS=-DHAVE_CONFIG_H
4369
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4370
# 1. Remove the extension, and $U if already installed.
4371
ac_i=`echo "$ac_i" |
4372
sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
4374
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
4375
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
4379
LTLIBOBJS=$ac_ltlibobjs
4382
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4383
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
4384
Usually this means the macro was only invoked conditionally." >&5
4385
echo "$as_me: error: conditional \"AMDEP\" was never defined.
4386
Usually this means the macro was only invoked conditionally." >&2;}
4387
{ (exit 1); exit 1; }; }
4389
if test -z "${WITH_GNOME_TRUE}" && test -z "${WITH_GNOME_FALSE}"; then
4390
{ { echo "$as_me:$LINENO: error: conditional \"WITH_GNOME\" was never defined.
4391
Usually this means the macro was only invoked conditionally." >&5
4392
echo "$as_me: error: conditional \"WITH_GNOME\" was never defined.
4393
Usually this means the macro was only invoked conditionally." >&2;}
4394
{ (exit 1); exit 1; }; }
4397
: ${CONFIG_STATUS=./config.status}
4398
ac_clean_files_save=$ac_clean_files
4399
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4400
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
4401
echo "$as_me: creating $CONFIG_STATUS" >&6;}
4402
cat >$CONFIG_STATUS <<_ACEOF
4404
# Generated by $as_me.
4405
# Run this file to recreate the current configuration.
4406
# Compiler output produced by configure, useful for debugging
4407
# configure, is in config.log if it exists.
4412
SHELL=\${CONFIG_SHELL-$SHELL}
4415
cat >>$CONFIG_STATUS <<\_ACEOF
4416
## --------------------- ##
4417
## M4sh Initialization. ##
4418
## --------------------- ##
4420
# Be Bourne compatible
4421
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
4424
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
4425
# is contrary to our usage. Disable this feature.
4426
alias -g '${1+"$@"}'='"$@"'
4427
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
4431
# Support unset when possible.
4432
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
4439
# Work around bugs in pre-3.0 UWIN ksh.
4440
$as_unset ENV MAIL MAILPATH
4447
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
4448
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
4449
LC_TELEPHONE LC_TIME
4451
if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
4452
eval $as_var=C; export $as_var
4458
# Required to use basename.
4459
if expr a : '\(a\)' >/dev/null 2>&1; then
4465
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
4466
as_basename=basename
4472
# Name of the executable.
4473
as_me=`$as_basename "$0" ||
4474
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4475
X"$0" : 'X\(//\)$' \| \
4476
X"$0" : 'X\(/\)$' \| \
4477
. : '\(.\)' 2>/dev/null ||
4479
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
4480
/^X\/\(\/\/\)$/{ s//\1/; q; }
4481
/^X\/\(\/\).*/{ s//\1/; q; }
4485
# PATH needs CR, and LINENO needs CR and PATH.
4486
# Avoid depending upon Character Ranges.
4487
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4488
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4489
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4490
as_cr_digits='0123456789'
4491
as_cr_alnum=$as_cr_Letters$as_cr_digits
4493
# The user is always right.
4494
if test "${PATH_SEPARATOR+set}" != set; then
4495
echo "#! /bin/sh" >conf$$.sh
4496
echo "exit 0" >>conf$$.sh
4498
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4509
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4510
test "x$as_lineno_1" != "x$as_lineno_2" &&
4511
test "x$as_lineno_3" = "x$as_lineno_2" || {
4512
# Find who we are. Look in the path if we contain no path at all
4515
*[\\/]* ) as_myself=$0 ;;
4516
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520
test -z "$as_dir" && as_dir=.
4521
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4526
# We did not find ourselves, most probably we were run as `sh COMMAND'
4527
# in which case we are not to be found in the path.
4528
if test "x$as_myself" = x; then
4531
if test ! -f "$as_myself"; then
4532
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
4533
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
4534
{ (exit 1); exit 1; }; }
4536
case $CONFIG_SHELL in
4538
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4539
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
4542
test -z "$as_dir" && as_dir=.
4543
for as_base in sh bash ksh sh5; do
4546
if ("$as_dir/$as_base" -c '
4549
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
4550
test "x$as_lineno_1" != "x$as_lineno_2" &&
4551
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
4552
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
4553
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
4554
CONFIG_SHELL=$as_dir/$as_base
4556
exec "$CONFIG_SHELL" "$0" ${1+"$@"}
4564
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
4565
# uniformly replaced by the line number. The first 'sed' inserts a
4566
# line-number line before each line; the second 'sed' does the real
4567
# work. The second script uses 'N' to pair each line-number line
4568
# with the numbered line, and appends trailing '-' during
4569
# substitution so that $LINENO is not a special case at line end.
4570
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
4571
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
4572
sed '=' <$as_myself |
4577
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
4580
s,^['$as_cr_digits']*\n,,
4582
chmod +x $as_me.lineno ||
4583
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
4584
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
4585
{ (exit 1); exit 1; }; }
4587
# Don't try to exec as it changes $[0], causing all sort of problems
4588
# (the dirname of $[0] is not the place where we might find the
4589
# original and so on. Autoconf is especially sensible to this).
4591
# Exit status is that of the last command.
4596
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
4597
*c*,-n*) ECHO_N= ECHO_C='
4599
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
4600
*) ECHO_N= ECHO_C='\c' ECHO_T= ;;
4603
if expr a : '\(a\)' >/dev/null 2>&1; then
4609
rm -f conf$$ conf$$.exe conf$$.file
4611
if ln -s conf$$.file conf$$ 2>/dev/null; then
4612
# We could just check for DJGPP; but this test a) works b) is more generic
4613
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
4614
if test -f conf$$.exe; then
4615
# Don't use ln at all; we don't have any links
4620
elif ln conf$$.file conf$$ 2>/dev/null; then
4625
rm -f conf$$ conf$$.exe conf$$.file
4627
if mkdir -p . 2>/dev/null; then
4633
as_executable_p="test -f"
4635
# Sed expression to map a string onto a valid CPP name.
4636
as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
4638
# Sed expression to map a string onto a valid variable name.
4639
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
4643
# We need space, tab and new line, in precisely that order.
4653
# Open the log real soon, to keep \$[0] and so on meaningful, and to
4654
# report actual input values of CONFIG_FILES etc. instead of their
4655
# values after options handling. Logging --version etc. is OK.
4659
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4660
## Running $as_me. ##
4665
This file was extended by $as_me, which was
4666
generated by GNU Autoconf 2.57. Invocation command line was
4668
CONFIG_FILES = $CONFIG_FILES
4669
CONFIG_HEADERS = $CONFIG_HEADERS
4670
CONFIG_LINKS = $CONFIG_LINKS
4671
CONFIG_COMMANDS = $CONFIG_COMMANDS
4675
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
4679
# Files that config.status was made for.
4680
if test -n "$ac_config_files"; then
4681
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
4684
if test -n "$ac_config_headers"; then
4685
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
4688
if test -n "$ac_config_links"; then
4689
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
4692
if test -n "$ac_config_commands"; then
4693
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
4696
cat >>$CONFIG_STATUS <<\_ACEOF
4699
\`$as_me' instantiates files from templates according to the
4700
current configuration.
4702
Usage: $0 [OPTIONS] [FILE]...
4704
-h, --help print this help, then exit
4705
-V, --version print version number, then exit
4706
-q, --quiet do not print progress messages
4707
-d, --debug don't remove temporary files
4708
--recheck update $as_me by reconfiguring in the same conditions
4709
--file=FILE[:TEMPLATE]
4710
instantiate the configuration file FILE
4711
--header=FILE[:TEMPLATE]
4712
instantiate the configuration header FILE
4714
Configuration files:
4717
Configuration headers:
4720
Configuration commands:
4723
Report bugs to <bug-autoconf@gnu.org>."
4726
cat >>$CONFIG_STATUS <<_ACEOF
4729
configured by $0, generated by GNU Autoconf 2.57,
4730
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
4732
Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
4733
Free Software Foundation, Inc.
4734
This config.status script is free software; the Free Software Foundation
4735
gives unlimited permission to copy, distribute and modify it."
4740
cat >>$CONFIG_STATUS <<\_ACEOF
4741
# If no file are specified by the user, then we need to provide default
4742
# value. By we need to know if files were specified by the user.
4748
ac_option=`expr "x$1" : 'x\([^=]*\)='`
4749
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
4757
*) # This is not an option, so the user has probably given explicit
4760
ac_need_defaults=false;;
4764
# Handling of the options.
4766
cat >>$CONFIG_STATUS <<\_ACEOF
4767
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4769
--version | --vers* | -V )
4770
echo "$ac_cs_version"; exit 0 ;;
4772
# Conflict between --help and --header
4773
{ { echo "$as_me:$LINENO: error: ambiguous option: $1
4774
Try \`$0 --help' for more information." >&5
4775
echo "$as_me: error: ambiguous option: $1
4776
Try \`$0 --help' for more information." >&2;}
4777
{ (exit 1); exit 1; }; };;
4778
--help | --hel | -h )
4779
echo "$ac_cs_usage"; exit 0 ;;
4780
--debug | --d* | -d )
4782
--file | --fil | --fi | --f )
4784
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
4785
ac_need_defaults=false;;
4786
--header | --heade | --head | --hea )
4788
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
4789
ac_need_defaults=false;;
4790
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
4791
| -silent | --silent | --silen | --sile | --sil | --si | --s)
4795
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
4796
Try \`$0 --help' for more information." >&5
4797
echo "$as_me: error: unrecognized option: $1
4798
Try \`$0 --help' for more information." >&2;}
4799
{ (exit 1); exit 1; }; } ;;
4801
*) ac_config_targets="$ac_config_targets $1" ;;
4807
ac_configure_extra_args=
4809
if $ac_cs_silent; then
4811
ac_configure_extra_args="$ac_configure_extra_args --silent"
4815
cat >>$CONFIG_STATUS <<_ACEOF
4816
if \$ac_cs_recheck; then
4817
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
4818
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4823
cat >>$CONFIG_STATUS <<_ACEOF
4825
# INIT-COMMANDS section.
4828
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
4834
cat >>$CONFIG_STATUS <<\_ACEOF
4835
for ac_config_target in $ac_config_targets
4837
case "$ac_config_target" in
4838
# Handling of arguments.
4839
"Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4840
"doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
4841
"src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
4842
"sounds/Makefile" ) CONFIG_FILES="$CONFIG_FILES sounds/Makefile" ;;
4843
"pixmaps/Makefile" ) CONFIG_FILES="$CONFIG_FILES pixmaps/Makefile" ;;
4844
"depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
4845
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4846
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
4847
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
4848
{ (exit 1); exit 1; }; };;
4852
# If the user did not use the arguments to specify the items to instantiate,
4853
# then the envvar interface is used. Set only those that are not.
4854
# We use the long form for the default assignment because of an extremely
4855
# bizarre bug on SunOS 4.1.3.
4856
if $ac_need_defaults; then
4857
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4858
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4859
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
4862
# Have a temporary directory for convenience. Make it in the build tree
4863
# simply because there is no reason to put it here, and in addition,
4864
# creating and moving files from /tmp can sometimes cause problems.
4865
# Create a temporary directory, and hook for its removal unless debugging.
4868
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
4869
trap '{ (exit 1); exit 1; }' 1 2 13 15
4872
# Create a (secure) tmp directory for tmp files.
4875
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
4876
test -n "$tmp" && test -d "$tmp"
4879
tmp=./confstat$$-$RANDOM
4880
(umask 077 && mkdir $tmp)
4883
echo "$me: cannot create a temporary directory in ." >&2
4884
{ (exit 1); exit 1; }
4889
cat >>$CONFIG_STATUS <<_ACEOF
4892
# CONFIG_FILES section.
4895
# No need to generate the scripts if there are no CONFIG_FILES.
4896
# This happens for instance when ./config.status config.h
4897
if test -n "\$CONFIG_FILES"; then
4898
# Protect against being on the right side of a sed subst in config.status.
4899
sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
4900
s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
4901
s,@SHELL@,$SHELL,;t t
4902
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
4903
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
4904
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
4905
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
4906
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
4907
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
4908
s,@exec_prefix@,$exec_prefix,;t t
4909
s,@prefix@,$prefix,;t t
4910
s,@program_transform_name@,$program_transform_name,;t t
4911
s,@bindir@,$bindir,;t t
4912
s,@sbindir@,$sbindir,;t t
4913
s,@libexecdir@,$libexecdir,;t t
4914
s,@datadir@,$datadir,;t t
4915
s,@sysconfdir@,$sysconfdir,;t t
4916
s,@sharedstatedir@,$sharedstatedir,;t t
4917
s,@localstatedir@,$localstatedir,;t t
4918
s,@libdir@,$libdir,;t t
4919
s,@includedir@,$includedir,;t t
4920
s,@oldincludedir@,$oldincludedir,;t t
4921
s,@infodir@,$infodir,;t t
4922
s,@mandir@,$mandir,;t t
4923
s,@build_alias@,$build_alias,;t t
4924
s,@host_alias@,$host_alias,;t t
4925
s,@target_alias@,$target_alias,;t t
4927
s,@ECHO_C@,$ECHO_C,;t t
4928
s,@ECHO_N@,$ECHO_N,;t t
4929
s,@ECHO_T@,$ECHO_T,;t t
4931
s,@build@,$build,;t t
4932
s,@build_cpu@,$build_cpu,;t t
4933
s,@build_vendor@,$build_vendor,;t t
4934
s,@build_os@,$build_os,;t t
4936
s,@host_cpu@,$host_cpu,;t t
4937
s,@host_vendor@,$host_vendor,;t t
4938
s,@host_os@,$host_os,;t t
4939
s,@target@,$target,;t t
4940
s,@target_cpu@,$target_cpu,;t t
4941
s,@target_vendor@,$target_vendor,;t t
4942
s,@target_os@,$target_os,;t t
4943
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
4944
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
4945
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
4946
s,@PACKAGE@,$PACKAGE,;t t
4947
s,@VERSION@,$VERSION,;t t
4948
s,@ACLOCAL@,$ACLOCAL,;t t
4949
s,@AUTOCONF@,$AUTOCONF,;t t
4950
s,@AUTOMAKE@,$AUTOMAKE,;t t
4951
s,@AUTOHEADER@,$AUTOHEADER,;t t
4952
s,@MAKEINFO@,$MAKEINFO,;t t
4953
s,@AMTAR@,$AMTAR,;t t
4954
s,@install_sh@,$install_sh,;t t
4955
s,@STRIP@,$STRIP,;t t
4956
s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
4957
s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
4959
s,@SET_MAKE@,$SET_MAKE,;t t
4961
s,@CFLAGS@,$CFLAGS,;t t
4962
s,@LDFLAGS@,$LDFLAGS,;t t
4963
s,@CPPFLAGS@,$CPPFLAGS,;t t
4964
s,@ac_ct_CC@,$ac_ct_CC,;t t
4965
s,@EXEEXT@,$EXEEXT,;t t
4966
s,@OBJEXT@,$OBJEXT,;t t
4967
s,@DEPDIR@,$DEPDIR,;t t
4968
s,@am__include@,$am__include,;t t
4969
s,@am__quote@,$am__quote,;t t
4970
s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
4971
s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
4972
s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
4973
s,@CCDEPMODE@,$CCDEPMODE,;t t
4974
s,@PKG_CONFIG@,$PKG_CONFIG,;t t
4975
s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
4976
s,@GTK_LIBS@,$GTK_LIBS,;t t
4977
s,@GTK_CONFIG@,$GTK_CONFIG,;t t
4978
s,@GNOME_CFLAGS@,$GNOME_CFLAGS,;t t
4979
s,@GNOME_LIBS@,$GNOME_LIBS,;t t
4980
s,@WITH_GNOME_TRUE@,$WITH_GNOME_TRUE,;t t
4981
s,@WITH_GNOME_FALSE@,$WITH_GNOME_FALSE,;t t
4983
s,@EGREP@,$EGREP,;t t
4984
s,@LIBOBJS@,$LIBOBJS,;t t
4985
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
4990
cat >>$CONFIG_STATUS <<\_ACEOF
4991
# Split the substitutions into bite-sized pieces for seds with
4992
# small command number limits, like on Digital OSF/1 and HP-UX.
4994
ac_sed_frag=1 # Number of current file.
4995
ac_beg=1 # First line for current file.
4996
ac_end=$ac_max_sed_lines # Line after last line for current file.
4999
while $ac_more_lines; do
5000
if test $ac_beg -gt 1; then
5001
sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5003
sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5005
if test ! -s $tmp/subs.frag; then
5008
# The purpose of the label and of the branching condition is to
5009
# speed up the sed processing (if there are no `@' at all, there
5010
# is no need to browse any of the substitutions).
5011
# These are the two extra sed commands mentioned above.
5013
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5014
if test -z "$ac_sed_cmds"; then
5015
ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5017
ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5019
ac_sed_frag=`expr $ac_sed_frag + 1`
5021
ac_end=`expr $ac_end + $ac_max_sed_lines`
5024
if test -z "$ac_sed_cmds"; then
5027
fi # test -n "$CONFIG_FILES"
5030
cat >>$CONFIG_STATUS <<\_ACEOF
5031
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5032
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5034
- | *:- | *:-:* ) # input from stdin
5036
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5037
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5038
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5039
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5040
* ) ac_file_in=$ac_file.in ;;
5043
# Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5044
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5045
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5046
X"$ac_file" : 'X\(//\)[^/]' \| \
5047
X"$ac_file" : 'X\(//\)$' \| \
5048
X"$ac_file" : 'X\(/\)' \| \
5049
. : '\(.\)' 2>/dev/null ||
5051
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5052
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5053
/^X\(\/\/\)$/{ s//\1/; q; }
5054
/^X\(\/\).*/{ s//\1/; q; }
5056
{ if $as_mkdir_p; then
5061
while test ! -d "$as_dir"; do
5062
as_dirs="$as_dir $as_dirs"
5063
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5064
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5065
X"$as_dir" : 'X\(//\)[^/]' \| \
5066
X"$as_dir" : 'X\(//\)$' \| \
5067
X"$as_dir" : 'X\(/\)' \| \
5068
. : '\(.\)' 2>/dev/null ||
5070
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5071
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5072
/^X\(\/\/\)$/{ s//\1/; q; }
5073
/^X\(\/\).*/{ s//\1/; q; }
5076
test ! -n "$as_dirs" || mkdir $as_dirs
5077
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5078
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5079
{ (exit 1); exit 1; }; }; }
5083
if test "$ac_dir" != .; then
5084
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5085
# A "../" for each directory in $ac_dir_suffix.
5086
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5088
ac_dir_suffix= ac_top_builddir=
5092
.) # No --srcdir option. We are building in place.
5094
if test -z "$ac_top_builddir"; then
5097
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5099
[\\/]* | ?:[\\/]* ) # Absolute path.
5100
ac_srcdir=$srcdir$ac_dir_suffix;
5101
ac_top_srcdir=$srcdir ;;
5103
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5104
ac_top_srcdir=$ac_top_builddir$srcdir ;;
5106
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5108
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5109
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5110
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5111
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5115
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5116
*) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5119
if test x"$ac_file" != x-; then
5120
{ echo "$as_me:$LINENO: creating $ac_file" >&5
5121
echo "$as_me: creating $ac_file" >&6;}
5124
# Let's still pretend it is `configure' which instantiates (i.e., don't
5125
# use $as_me), people would be surprised to read:
5126
# /* config.h. Generated by config.status. */
5127
if test x"$ac_file" = x-; then
5130
configure_input="$ac_file. "
5132
configure_input=$configure_input"Generated from `echo $ac_file_in |
5133
sed 's,.*/,,'` by configure."
5135
# First look for the input files in the build tree, otherwise in the
5137
ac_file_inputs=`IFS=:
5138
for f in $ac_file_in; do
5140
-) echo $tmp/stdin ;;
5142
# Absolute (can't be DOS-style, as IFS=:)
5143
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5144
echo "$as_me: error: cannot find input file: $f" >&2;}
5145
{ (exit 1); exit 1; }; }
5148
if test -f "$f"; then
5151
elif test -f "$srcdir/$f"; then
5156
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5157
echo "$as_me: error: cannot find input file: $f" >&2;}
5158
{ (exit 1); exit 1; }; }
5161
done` || { (exit 1); exit 1; }
5163
cat >>$CONFIG_STATUS <<_ACEOF
5167
cat >>$CONFIG_STATUS <<\_ACEOF
5169
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5170
s,@configure_input@,$configure_input,;t t
5171
s,@srcdir@,$ac_srcdir,;t t
5172
s,@abs_srcdir@,$ac_abs_srcdir,;t t
5173
s,@top_srcdir@,$ac_top_srcdir,;t t
5174
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5175
s,@builddir@,$ac_builddir,;t t
5176
s,@abs_builddir@,$ac_abs_builddir,;t t
5177
s,@top_builddir@,$ac_top_builddir,;t t
5178
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5179
s,@INSTALL@,$ac_INSTALL,;t t
5180
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5182
if test x"$ac_file" != x-; then
5183
mv $tmp/out $ac_file
5191
cat >>$CONFIG_STATUS <<\_ACEOF
5194
# CONFIG_HEADER section.
5197
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5198
# NAME is the cpp macro being defined and VALUE is the value it is being given.
5200
# ac_d sets the value in "#define NAME VALUE" lines.
5201
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5202
ac_dB='[ ].*$,\1#\2'
5205
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5206
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5207
ac_uB='$,\1#\2define\3'
5211
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
5212
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5214
- | *:- | *:-:* ) # input from stdin
5216
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5217
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5218
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5219
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5220
* ) ac_file_in=$ac_file.in ;;
5223
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
5224
echo "$as_me: creating $ac_file" >&6;}
5226
# First look for the input files in the build tree, otherwise in the
5228
ac_file_inputs=`IFS=:
5229
for f in $ac_file_in; do
5231
-) echo $tmp/stdin ;;
5233
# Absolute (can't be DOS-style, as IFS=:)
5234
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5235
echo "$as_me: error: cannot find input file: $f" >&2;}
5236
{ (exit 1); exit 1; }; }
5239
if test -f "$f"; then
5242
elif test -f "$srcdir/$f"; then
5247
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5248
echo "$as_me: error: cannot find input file: $f" >&2;}
5249
{ (exit 1); exit 1; }; }
5252
done` || { (exit 1); exit 1; }
5253
# Remove the trailing spaces.
5254
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
5258
# Transform confdefs.h into two sed scripts, `conftest.defines' and
5259
# `conftest.undefs', that substitutes the proper values into
5260
# config.h.in to produce config.h. The first handles `#define'
5261
# templates, and the second `#undef' templates.
5262
# And first: Protect against being on the right side of a sed subst in
5263
# config.status. Protect against being in an unquoted here document
5265
rm -f conftest.defines conftest.undefs
5266
# Using a here document instead of a string reduces the quoting nightmare.
5267
# Putting comments in sed scripts is not portable.
5269
# `end' is used to avoid that the second main sed command (meant for
5270
# 0-ary CPP macros) applies to n-ary macro definitions.
5271
# See the Autoconf documentation for `clear'.
5272
cat >confdef2sed.sed <<\_ACEOF
5277
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
5279
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
5282
# If some macros were called several times there might be several times
5283
# the same #defines, which is useless. Nevertheless, we may not want to
5284
# sort them, since we want the *last* AC-DEFINE to be honored.
5285
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
5286
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
5287
rm -f confdef2sed.sed
5289
# This sed command replaces #undef with comments. This is necessary, for
5290
# example, in the case of _POSIX_SOURCE, which is predefined and required
5291
# on some systems where configure will not decide to define it.
5292
cat >>conftest.undefs <<\_ACEOF
5293
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
5296
# Break up conftest.defines because some shells have a limit on the size
5297
# of here documents, and old seds have small limits too (100 cmds).
5298
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
5299
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
5300
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
5301
echo ' :' >>$CONFIG_STATUS
5303
while grep . conftest.defines >/dev/null
5305
# Write a limited-size here document to $tmp/defines.sed.
5306
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
5307
# Speed up: don't consider the non `#define' lines.
5308
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
5309
# Work around the forget-to-reset-the-flag bug.
5310
echo 't clr' >>$CONFIG_STATUS
5311
echo ': clr' >>$CONFIG_STATUS
5312
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
5314
sed -f $tmp/defines.sed $tmp/in >$tmp/out
5318
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
5319
rm -f conftest.defines
5320
mv conftest.tail conftest.defines
5322
rm -f conftest.defines
5323
echo ' fi # grep' >>$CONFIG_STATUS
5324
echo >>$CONFIG_STATUS
5326
# Break up conftest.undefs because some shells have a limit on the size
5327
# of here documents, and old seds have small limits too (100 cmds).
5328
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
5330
while grep . conftest.undefs >/dev/null
5332
# Write a limited-size here document to $tmp/undefs.sed.
5333
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
5334
# Speed up: don't consider the non `#undef'
5335
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
5336
# Work around the forget-to-reset-the-flag bug.
5337
echo 't clr' >>$CONFIG_STATUS
5338
echo ': clr' >>$CONFIG_STATUS
5339
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
5341
sed -f $tmp/undefs.sed $tmp/in >$tmp/out
5345
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
5346
rm -f conftest.undefs
5347
mv conftest.tail conftest.undefs
5349
rm -f conftest.undefs
5351
cat >>$CONFIG_STATUS <<\_ACEOF
5352
# Let's still pretend it is `configure' which instantiates (i.e., don't
5353
# use $as_me), people would be surprised to read:
5354
# /* config.h. Generated by config.status. */
5355
if test x"$ac_file" = x-; then
5356
echo "/* Generated by configure. */" >$tmp/config.h
5358
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
5360
cat $tmp/in >>$tmp/config.h
5362
if test x"$ac_file" != x-; then
5363
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
5364
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
5365
echo "$as_me: $ac_file is unchanged" >&6;}
5367
ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5368
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5369
X"$ac_file" : 'X\(//\)[^/]' \| \
5370
X"$ac_file" : 'X\(//\)$' \| \
5371
X"$ac_file" : 'X\(/\)' \| \
5372
. : '\(.\)' 2>/dev/null ||
5374
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5375
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5376
/^X\(\/\/\)$/{ s//\1/; q; }
5377
/^X\(\/\).*/{ s//\1/; q; }
5379
{ if $as_mkdir_p; then
5384
while test ! -d "$as_dir"; do
5385
as_dirs="$as_dir $as_dirs"
5386
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5387
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5388
X"$as_dir" : 'X\(//\)[^/]' \| \
5389
X"$as_dir" : 'X\(//\)$' \| \
5390
X"$as_dir" : 'X\(/\)' \| \
5391
. : '\(.\)' 2>/dev/null ||
5393
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5394
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5395
/^X\(\/\/\)$/{ s//\1/; q; }
5396
/^X\(\/\).*/{ s//\1/; q; }
5399
test ! -n "$as_dirs" || mkdir $as_dirs
5400
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5401
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5402
{ (exit 1); exit 1; }; }; }
5405
mv $tmp/config.h $ac_file
5411
# Run the commands associated with the file.
5413
config.h ) # update the timestamp
5414
echo 'timestamp for config.h' >"./stamp-h1"
5419
cat >>$CONFIG_STATUS <<\_ACEOF
5422
# CONFIG_COMMANDS section.
5424
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
5425
ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
5426
ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
5427
ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
5428
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5429
X"$ac_dest" : 'X\(//\)[^/]' \| \
5430
X"$ac_dest" : 'X\(//\)$' \| \
5431
X"$ac_dest" : 'X\(/\)' \| \
5432
. : '\(.\)' 2>/dev/null ||
5434
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5435
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5436
/^X\(\/\/\)$/{ s//\1/; q; }
5437
/^X\(\/\).*/{ s//\1/; q; }
5441
if test "$ac_dir" != .; then
5442
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5443
# A "../" for each directory in $ac_dir_suffix.
5444
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5446
ac_dir_suffix= ac_top_builddir=
5450
.) # No --srcdir option. We are building in place.
5452
if test -z "$ac_top_builddir"; then
5455
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5457
[\\/]* | ?:[\\/]* ) # Absolute path.
5458
ac_srcdir=$srcdir$ac_dir_suffix;
5459
ac_top_srcdir=$srcdir ;;
5461
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5462
ac_top_srcdir=$ac_top_builddir$srcdir ;;
5464
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
5466
ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
5467
ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
5468
ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
5469
ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
5472
{ echo "$as_me:$LINENO: executing $ac_dest commands" >&5
5473
echo "$as_me: executing $ac_dest commands" >&6;}
5475
depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
5476
# Strip MF so we end up with the name of the file.
5477
mf=`echo "$mf" | sed -e 's/:.*$//'`
5478
# Check whether this is an Automake generated Makefile or not.
5479
# We used to match only the files named `Makefile.in', but
5480
# some people rename them; so instead we look at the file content.
5481
# Grep'ing the first line is not enough: some people post-process
5482
# each Makefile.in and add a new line on top of each file to say so.
5483
# So let's grep whole file.
5484
if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
5485
dirpart=`(dirname "$mf") 2>/dev/null ||
5486
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5487
X"$mf" : 'X\(//\)[^/]' \| \
5488
X"$mf" : 'X\(//\)$' \| \
5489
X"$mf" : 'X\(/\)' \| \
5490
. : '\(.\)' 2>/dev/null ||
5492
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5493
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5494
/^X\(\/\/\)$/{ s//\1/; q; }
5495
/^X\(\/\).*/{ s//\1/; q; }
5500
grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
5501
# Extract the definition of DEP_FILES from the Makefile without
5503
DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
5504
test -z "$DEPDIR" && continue
5505
# When using ansi2knr, U may be empty or an underscore; expand it
5506
U=`sed -n -e '/^U = / s///p' < "$mf"`
5507
test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
5508
# We invoke sed twice because it is the simplest approach to
5509
# changing $(DEPDIR) to its actual value in the expansion.
5510
for file in `sed -n -e '
5511
/^DEP_FILES = .*\\\\$/ {
5520
/^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
5521
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5522
# Make sure the directory exists.
5523
test -f "$dirpart/$file" && continue
5524
fdir=`(dirname "$file") 2>/dev/null ||
5525
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5526
X"$file" : 'X\(//\)[^/]' \| \
5527
X"$file" : 'X\(//\)$' \| \
5528
X"$file" : 'X\(/\)' \| \
5529
. : '\(.\)' 2>/dev/null ||
5531
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5532
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5533
/^X\(\/\/\)$/{ s//\1/; q; }
5534
/^X\(\/\).*/{ s//\1/; q; }
5536
{ if $as_mkdir_p; then
5537
mkdir -p $dirpart/$fdir
5539
as_dir=$dirpart/$fdir
5541
while test ! -d "$as_dir"; do
5542
as_dirs="$as_dir $as_dirs"
5543
as_dir=`(dirname "$as_dir") 2>/dev/null ||
5544
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5545
X"$as_dir" : 'X\(//\)[^/]' \| \
5546
X"$as_dir" : 'X\(//\)$' \| \
5547
X"$as_dir" : 'X\(/\)' \| \
5548
. : '\(.\)' 2>/dev/null ||
5550
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5551
/^X\(\/\/\)[^/].*/{ s//\1/; q; }
5552
/^X\(\/\/\)$/{ s//\1/; q; }
5553
/^X\(\/\).*/{ s//\1/; q; }
5556
test ! -n "$as_dirs" || mkdir $as_dirs
5557
fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
5558
echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
5559
{ (exit 1); exit 1; }; }; }
5561
# echo "creating $dirpart/$file"
5562
echo '# dummy' > "$dirpart/$file"
5570
cat >>$CONFIG_STATUS <<\_ACEOF
5572
{ (exit 0); exit 0; }
5574
chmod +x $CONFIG_STATUS
5575
ac_clean_files=$ac_clean_files_save
5578
# configure is writing to config.log, and then calls config.status.
5579
# config.status does its own redirection, appending to config.log.
5580
# Unfortunately, on DOS this fails, as config.log is still kept open
5581
# by configure, so config.status won't be able to write to it; its
5582
# output is simply discarded. So we exec the FD to /dev/null,
5583
# effectively closing config.log, so it can be properly (re)opened and
5584
# appended to by config.status. When coming back to configure, we
5585
# need to make the FD available again.
5586
if test "$no_create" != yes; then
5588
ac_config_status_args=
5589
test "$silent" = yes &&
5590
ac_config_status_args="$ac_config_status_args --quiet"
5592
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5594
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
5595
# would make configure fail if this is the last instruction.
5596
$ac_cs_success || { (exit 1); exit 1; }
5602
if test "$enable_gtk2" = "yes" ; then
5603
echo "$as_me:$LINENO: result: GTK2 enabled." >&5
5604
echo "${ECHO_T} GTK2 enabled." >&6
5606
echo "$as_me:$LINENO: result: GTK2 disabled." >&5
5607
echo "${ECHO_T} GTK2 disabled." >&6
5610
if test "$enable_sdl" = "yes" ; then
5611
echo "$as_me:$LINENO: result: SDL enabled." >&5
5612
echo "${ECHO_T} SDL enabled." >&6
5614
echo "$as_me:$LINENO: result: SDL disabled." >&5
5615
echo "${ECHO_T} SDL disabled." >&6
5617
if test "$enable_gnome" = "yes" ; then
5618
echo "$as_me:$LINENO: result: GNOME enabled." >&5
5619
echo "${ECHO_T} GNOME enabled." >&6
5621
echo "$as_me:$LINENO: result: GNOME disabled." >&5
5622
echo "${ECHO_T} GNOME disabled." >&6