~ubuntu-branches/ubuntu/natty/gtkboard/natty

« back to all changes in this revision

Viewing changes to .pc/debian-changes-0.11pre0+cvs.2003.11.02-2/configure

  • Committer: Bazaar Package Importer
  • Author(s): Barak A. Pearlmutter
  • Date: 2011-02-28 11:25:02 UTC
  • mto: This revision was merged to the branch mainline in revision 10.
  • Revision ID: james.westby@ubuntu.com-20110228112502-e9aah248wxelm7ao
Tags: 0.11pre0+cvs.2003.11.02-2
autotools tweaks, most notably -lSDL to supplement -lSDL_mixer

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.57.
 
4
#
 
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
## --------------------- ##
 
12
 
 
13
# Be Bourne compatible
 
14
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
15
  emulate sh
 
16
  NULLCMD=:
 
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
 
21
  set -o posix
 
22
fi
 
23
 
 
24
# Support unset when possible.
 
25
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
26
  as_unset=unset
 
27
else
 
28
  as_unset=false
 
29
fi
 
30
 
 
31
 
 
32
# Work around bugs in pre-3.0 UWIN ksh.
 
33
$as_unset ENV MAIL MAILPATH
 
34
PS1='$ '
 
35
PS2='> '
 
36
PS4='+ '
 
37
 
 
38
# NLS nuisances.
 
39
for as_var in \
 
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 \
 
42
  LC_TELEPHONE LC_TIME
 
43
do
 
44
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
45
    eval $as_var=C; export $as_var
 
46
  else
 
47
    $as_unset $as_var
 
48
  fi
 
49
done
 
50
 
 
51
# Required to use basename.
 
52
if expr a : '\(a\)' >/dev/null 2>&1; then
 
53
  as_expr=expr
 
54
else
 
55
  as_expr=false
 
56
fi
 
57
 
 
58
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
59
  as_basename=basename
 
60
else
 
61
  as_basename=false
 
62
fi
 
63
 
 
64
 
 
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 ||
 
71
echo X/"$0" |
 
72
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
73
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
74
          /^X\/\(\/\).*/{ s//\1/; q; }
 
75
          s/.*/./; q'`
 
76
 
 
77
 
 
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
 
85
 
 
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
 
90
  chmod +x conf$$.sh
 
91
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
92
    PATH_SEPARATOR=';'
 
93
  else
 
94
    PATH_SEPARATOR=:
 
95
  fi
 
96
  rm -f conf$$.sh
 
97
fi
 
98
 
 
99
 
 
100
  as_lineno_1=$LINENO
 
101
  as_lineno_2=$LINENO
 
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
 
106
  # relative or not.
 
107
  case $0 in
 
108
    *[\\/]* ) as_myself=$0 ;;
 
109
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
110
for as_dir in $PATH
 
111
do
 
112
  IFS=$as_save_IFS
 
113
  test -z "$as_dir" && as_dir=.
 
114
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
115
done
 
116
 
 
117
       ;;
 
118
  esac
 
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
 
122
    as_myself=$0
 
123
  fi
 
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; }; }
 
127
  fi
 
128
  case $CONFIG_SHELL in
 
129
  '')
 
130
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
131
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
132
do
 
133
  IFS=$as_save_IFS
 
134
  test -z "$as_dir" && as_dir=.
 
135
  for as_base in sh bash ksh sh5; do
 
136
         case $as_dir in
 
137
         /*)
 
138
           if ("$as_dir/$as_base" -c '
 
139
  as_lineno_1=$LINENO
 
140
  as_lineno_2=$LINENO
 
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
 
147
             export CONFIG_SHELL
 
148
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
149
           fi;;
 
150
         esac
 
151
       done
 
152
done
 
153
;;
 
154
  esac
 
155
 
 
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 |
 
165
    sed '
 
166
      N
 
167
      s,$,-,
 
168
      : loop
 
169
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
170
      t loop
 
171
      s,-$,,
 
172
      s,^['$as_cr_digits']*\n,,
 
173
    ' >$as_me.lineno &&
 
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; }; }
 
177
 
 
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).
 
181
  . ./$as_me.lineno
 
182
  # Exit status is that of the last command.
 
183
  exit
 
184
}
 
185
 
 
186
 
 
187
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
188
  *c*,-n*) ECHO_N= ECHO_C='
 
189
' ECHO_T='      ' ;;
 
190
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
191
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
192
esac
 
193
 
 
194
if expr a : '\(a\)' >/dev/null 2>&1; then
 
195
  as_expr=expr
 
196
else
 
197
  as_expr=false
 
198
fi
 
199
 
 
200
rm -f conf$$ conf$$.exe conf$$.file
 
201
echo >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
 
207
    as_ln_s='cp -p'
 
208
  else
 
209
    as_ln_s='ln -s'
 
210
  fi
 
211
elif ln conf$$.file conf$$ 2>/dev/null; then
 
212
  as_ln_s=ln
 
213
else
 
214
  as_ln_s='cp -p'
 
215
fi
 
216
rm -f conf$$ conf$$.exe conf$$.file
 
217
 
 
218
if mkdir -p . 2>/dev/null; then
 
219
  as_mkdir_p=:
 
220
else
 
221
  as_mkdir_p=false
 
222
fi
 
223
 
 
224
as_executable_p="test -f"
 
225
 
 
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"
 
228
 
 
229
# Sed expression to map a string onto a valid variable name.
 
230
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
231
 
 
232
 
 
233
# IFS
 
234
# We need space, tab and new line, in precisely that order.
 
235
as_nl='
 
236
'
 
237
IFS="   $as_nl"
 
238
 
 
239
# CDPATH.
 
240
$as_unset CDPATH
 
241
 
 
242
 
 
243
# Name of the host.
 
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`
 
247
 
 
248
exec 6>&1
 
249
 
 
250
#
 
251
# Initializations.
 
252
#
 
253
ac_default_prefix=/usr/local
 
254
ac_config_libobj_dir=.
 
255
cross_compiling=no
 
256
subdirs=
 
257
MFLAGS=
 
258
MAKEFLAGS=
 
259
SHELL=${CONFIG_SHELL-/bin/sh}
 
260
 
 
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}
 
265
 
 
266
# Identity of this package.
 
267
PACKAGE_NAME=
 
268
PACKAGE_TARNAME=
 
269
PACKAGE_VERSION=
 
270
PACKAGE_STRING=
 
271
PACKAGE_BUGREPORT=
 
272
 
 
273
ac_unique_file="src/"
 
274
# Factoring default headers for most tests.
 
275
ac_includes_default="\
 
276
#include <stdio.h>
 
277
#if HAVE_SYS_TYPES_H
 
278
# include <sys/types.h>
 
279
#endif
 
280
#if HAVE_SYS_STAT_H
 
281
# include <sys/stat.h>
 
282
#endif
 
283
#if STDC_HEADERS
 
284
# include <stdlib.h>
 
285
# include <stddef.h>
 
286
#else
 
287
# if HAVE_STDLIB_H
 
288
#  include <stdlib.h>
 
289
# endif
 
290
#endif
 
291
#if HAVE_STRING_H
 
292
# if !STDC_HEADERS && HAVE_MEMORY_H
 
293
#  include <memory.h>
 
294
# endif
 
295
# include <string.h>
 
296
#endif
 
297
#if HAVE_STRINGS_H
 
298
# include <strings.h>
 
299
#endif
 
300
#if HAVE_INTTYPES_H
 
301
# include <inttypes.h>
 
302
#else
 
303
# if HAVE_STDINT_H
 
304
#  include <stdint.h>
 
305
# endif
 
306
#endif
 
307
#if HAVE_UNISTD_H
 
308
# include <unistd.h>
 
309
#endif"
 
310
 
 
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'
 
312
ac_subst_files=''
 
313
 
 
314
# Initialize some variables set by options.
 
315
ac_init_help=
 
316
ac_init_version=false
 
317
# The variables have the same names as the options, with
 
318
# dashes changed to underlines.
 
319
cache_file=/dev/null
 
320
exec_prefix=NONE
 
321
no_create=
 
322
no_recursion=
 
323
prefix=NONE
 
324
program_prefix=NONE
 
325
program_suffix=NONE
 
326
program_transform_name=s,x,x,
 
327
silent=
 
328
site=
 
329
srcdir=
 
330
verbose=
 
331
x_includes=NONE
 
332
x_libraries=NONE
 
333
 
 
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'
 
351
 
 
352
ac_prev=
 
353
for ac_option
 
354
do
 
355
  # If the previous option needs an argument, assign it.
 
356
  if test -n "$ac_prev"; then
 
357
    eval "$ac_prev=\$ac_option"
 
358
    ac_prev=
 
359
    continue
 
360
  fi
 
361
 
 
362
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
363
 
 
364
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
365
 
 
366
  case $ac_option in
 
367
 
 
368
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
369
    ac_prev=bindir ;;
 
370
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
371
    bindir=$ac_optarg ;;
 
372
 
 
373
  -build | --build | --buil | --bui | --bu)
 
374
    ac_prev=build_alias ;;
 
375
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
376
    build_alias=$ac_optarg ;;
 
377
 
 
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 ;;
 
384
 
 
385
  --config-cache | -C)
 
386
    cache_file=config.cache ;;
 
387
 
 
388
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
389
    ac_prev=datadir ;;
 
390
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
 
391
  | --da=*)
 
392
    datadir=$ac_optarg ;;
 
393
 
 
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" ;;
 
402
 
 
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'`
 
410
    case $ac_option in
 
411
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
412
      *) ac_optarg=yes ;;
 
413
    esac
 
414
    eval "enable_$ac_feature='$ac_optarg'" ;;
 
415
 
 
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 ;;
 
424
 
 
425
  -gas | --gas | --ga | --g)
 
426
    # Obsolete; use --with-gas.
 
427
    with_gas=yes ;;
 
428
 
 
429
  -help | --help | --hel | --he | -h)
 
430
    ac_init_help=long ;;
 
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 ;;
 
435
 
 
436
  -host | --host | --hos | --ho)
 
437
    ac_prev=host_alias ;;
 
438
  -host=* | --host=* | --hos=* | --ho=*)
 
439
    host_alias=$ac_optarg ;;
 
440
 
 
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 ;;
 
447
 
 
448
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
449
    ac_prev=infodir ;;
 
450
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
451
    infodir=$ac_optarg ;;
 
452
 
 
453
  -libdir | --libdir | --libdi | --libd)
 
454
    ac_prev=libdir ;;
 
455
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
456
    libdir=$ac_optarg ;;
 
457
 
 
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 ;;
 
464
 
 
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 ;;
 
473
 
 
474
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
475
    ac_prev=mandir ;;
 
476
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
477
    mandir=$ac_optarg ;;
 
478
 
 
479
  -nfp | --nfp | --nf)
 
480
    # Obsolete; use --without-fp.
 
481
    with_fp=no ;;
 
482
 
 
483
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
484
  | --no-cr | --no-c | -n)
 
485
    no_create=yes ;;
 
486
 
 
487
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
488
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
489
    no_recursion=yes ;;
 
490
 
 
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 ;;
 
499
 
 
500
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
501
    ac_prev=prefix ;;
 
502
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
503
    prefix=$ac_optarg ;;
 
504
 
 
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 ;;
 
511
 
 
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 ;;
 
518
 
 
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 ;;
 
535
 
 
536
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
537
  | -silent | --silent | --silen | --sile | --sil)
 
538
    silent=yes ;;
 
539
 
 
540
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
541
    ac_prev=sbindir ;;
 
542
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
543
  | --sbi=* | --sb=*)
 
544
    sbindir=$ac_optarg ;;
 
545
 
 
546
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
547
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
548
  | --sharedst | --shareds | --shared | --share | --shar \
 
549
  | --sha | --sh)
 
550
    ac_prev=sharedstatedir ;;
 
551
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
552
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
553
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
554
  | --sha=* | --sh=*)
 
555
    sharedstatedir=$ac_optarg ;;
 
556
 
 
557
  -site | --site | --sit)
 
558
    ac_prev=site ;;
 
559
  -site=* | --site=* | --sit=*)
 
560
    site=$ac_optarg ;;
 
561
 
 
562
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
563
    ac_prev=srcdir ;;
 
564
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
565
    srcdir=$ac_optarg ;;
 
566
 
 
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 ;;
 
573
 
 
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 ;;
 
578
 
 
579
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
580
    verbose=yes ;;
 
581
 
 
582
  -version | --version | --versio | --versi | --vers | -V)
 
583
    ac_init_version=: ;;
 
584
 
 
585
  -with-* | --with-*)
 
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'`
 
592
    case $ac_option in
 
593
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
 
594
      *) ac_optarg=yes ;;
 
595
    esac
 
596
    eval "with_$ac_package='$ac_optarg'" ;;
 
597
 
 
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" ;;
 
606
 
 
607
  --x)
 
608
    # Obsolete; use --with-x.
 
609
    with_x=yes ;;
 
610
 
 
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 ;;
 
617
 
 
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 ;;
 
624
 
 
625
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
626
Try \`$0 --help' for more information." >&2
 
627
   { (exit 1); exit 1; }; }
 
628
    ;;
 
629
 
 
630
  *=*)
 
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'"
 
638
    export $ac_envvar ;;
 
639
 
 
640
  *)
 
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}
 
646
    ;;
 
647
 
 
648
  esac
 
649
done
 
650
 
 
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; }; }
 
655
fi
 
656
 
 
657
# Be sure to have absolute paths.
 
658
for ac_var in exec_prefix prefix
 
659
do
 
660
  eval ac_val=$`echo $ac_var`
 
661
  case $ac_val in
 
662
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
 
663
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
664
   { (exit 1); exit 1; }; };;
 
665
  esac
 
666
done
 
667
 
 
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
 
671
do
 
672
  eval ac_val=$`echo $ac_var`
 
673
  case $ac_val in
 
674
    [\\/$]* | ?:[\\/]* ) ;;
 
675
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
676
   { (exit 1); exit 1; }; };;
 
677
  esac
 
678
done
 
679
 
 
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.
 
683
build=$build_alias
 
684
host=$host_alias
 
685
target=$target_alias
 
686
 
 
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
 
694
    cross_compiling=yes
 
695
  fi
 
696
fi
 
697
 
 
698
ac_tool_prefix=
 
699
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
700
 
 
701
test "$silent" = yes && exec 6>/dev/null
 
702
 
 
703
 
 
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 ||
 
714
echo X"$0" |
 
715
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
716
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
717
          /^X\(\/\/\)$/{ s//\1/; q; }
 
718
          /^X\(\/\).*/{ s//\1/; q; }
 
719
          s/.*/./; q'`
 
720
  srcdir=$ac_confdir
 
721
  if test ! -r $srcdir/$ac_unique_file; then
 
722
    srcdir=..
 
723
  fi
 
724
else
 
725
  ac_srcdir_defaulted=no
 
726
fi
 
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; }; }
 
731
  else
 
732
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
733
   { (exit 1); exit 1; }; }
 
734
  fi
 
735
fi
 
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}
 
753
ac_env_CC_value=$CC
 
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
 
772
 
 
773
#
 
774
# Report the --help message.
 
775
#
 
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.
 
779
  cat <<_ACEOF
 
780
\`configure' configures this package to adapt to many kinds of systems.
 
781
 
 
782
Usage: $0 [OPTION]... [VAR=VALUE]...
 
783
 
 
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.
 
786
 
 
787
Defaults for the options are specified in brackets.
 
788
 
 
789
Configuration:
 
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 \`..']
 
799
 
 
800
_ACEOF
 
801
 
 
802
  cat <<_ACEOF
 
803
Installation directories:
 
804
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
805
                          [$ac_default_prefix]
 
806
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
807
                          [PREFIX]
 
808
 
 
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'.
 
813
 
 
814
For better control, use the options below.
 
815
 
 
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]
 
829
_ACEOF
 
830
 
 
831
  cat <<\_ACEOF
 
832
 
 
833
Program names:
 
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
 
837
 
 
838
System types:
 
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]
 
842
_ACEOF
 
843
fi
 
844
 
 
845
if test -n "$ac_init_help"; then
 
846
 
 
847
  cat <<\_ACEOF
 
848
 
 
849
Optional Features:
 
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
 
858
 
 
859
Optional Packages:
 
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)
 
864
 
 
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>
 
872
  CPP         C preprocessor
 
873
 
 
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.
 
876
 
 
877
_ACEOF
 
878
fi
 
879
 
 
880
if test "$ac_init_help" = "recursive"; then
 
881
  # If there are subdirs, report their specific --help.
 
882
  ac_popdir=`pwd`
 
883
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
884
    test -d $ac_dir || continue
 
885
    ac_builddir=.
 
886
 
 
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'`
 
891
else
 
892
  ac_dir_suffix= ac_top_builddir=
 
893
fi
 
894
 
 
895
case $srcdir in
 
896
  .)  # No --srcdir option.  We are building in place.
 
897
    ac_srcdir=.
 
898
    if test -z "$ac_top_builddir"; then
 
899
       ac_top_srcdir=.
 
900
    else
 
901
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
902
    fi ;;
 
903
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
904
    ac_srcdir=$srcdir$ac_dir_suffix;
 
905
    ac_top_srcdir=$srcdir ;;
 
906
  *) # Relative path.
 
907
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
908
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
909
esac
 
910
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
911
# absolute.
 
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`
 
916
 
 
917
    cd $ac_dir
 
918
    # Check for guested configure; otherwise get Cygnus style configure.
 
919
    if test -f $ac_srcdir/configure.gnu; then
 
920
      echo
 
921
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
 
922
    elif test -f $ac_srcdir/configure; then
 
923
      echo
 
924
      $SHELL $ac_srcdir/configure  --help=recursive
 
925
    elif test -f $ac_srcdir/configure.ac ||
 
926
           test -f $ac_srcdir/configure.in; then
 
927
      echo
 
928
      $ac_configure --help
 
929
    else
 
930
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
931
    fi
 
932
    cd $ac_popdir
 
933
  done
 
934
fi
 
935
 
 
936
test -n "$ac_init_help" && exit 0
 
937
if $ac_init_version; then
 
938
  cat <<\_ACEOF
 
939
 
 
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.
 
944
_ACEOF
 
945
  exit 0
 
946
fi
 
947
exec 5>config.log
 
948
cat >&5 <<_ACEOF
 
949
This file contains any messages produced by compilers while
 
950
running configure, to aid debugging if configure makes a mistake.
 
951
 
 
952
It was created by $as_me, which was
 
953
generated by GNU Autoconf 2.57.  Invocation command line was
 
954
 
 
955
  $ $0 $@
 
956
 
 
957
_ACEOF
 
958
{
 
959
cat <<_ASUNAME
 
960
## --------- ##
 
961
## Platform. ##
 
962
## --------- ##
 
963
 
 
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`
 
969
 
 
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`
 
972
 
 
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`
 
980
 
 
981
_ASUNAME
 
982
 
 
983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
984
for as_dir in $PATH
 
985
do
 
986
  IFS=$as_save_IFS
 
987
  test -z "$as_dir" && as_dir=.
 
988
  echo "PATH: $as_dir"
 
989
done
 
990
 
 
991
} >&5
 
992
 
 
993
cat >&5 <<_ACEOF
 
994
 
 
995
 
 
996
## ----------- ##
 
997
## Core tests. ##
 
998
## ----------- ##
 
999
 
 
1000
_ACEOF
 
1001
 
 
1002
 
 
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.
 
1008
ac_configure_args=
 
1009
ac_configure_args0=
 
1010
ac_configure_args1=
 
1011
ac_sep=
 
1012
ac_must_keep_next=false
 
1013
for ac_pass in 1 2
 
1014
do
 
1015
  for ac_arg
 
1016
  do
 
1017
    case $ac_arg in
 
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)
 
1021
      continue ;;
 
1022
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1023
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1024
    esac
 
1025
    case $ac_pass in
 
1026
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1027
    2)
 
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.
 
1031
      else
 
1032
        case $ac_arg in
 
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 ;;
 
1039
            esac
 
1040
            ;;
 
1041
          -* ) ac_must_keep_next=true ;;
 
1042
        esac
 
1043
      fi
 
1044
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
 
1045
      # Get rid of the leading space.
 
1046
      ac_sep=" "
 
1047
      ;;
 
1048
    esac
 
1049
  done
 
1050
done
 
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; }
 
1053
 
 
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.
 
1061
  {
 
1062
    echo
 
1063
 
 
1064
    cat <<\_ASBOX
 
1065
## ---------------- ##
 
1066
## Cache variables. ##
 
1067
## ---------------- ##
 
1068
_ASBOX
 
1069
    echo
 
1070
    # The following way of writing the cache mishandles newlines in values,
 
1071
{
 
1072
  (set) 2>&1 |
 
1073
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
 
1074
    *ac_space=\ *)
 
1075
      sed -n \
 
1076
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
 
1077
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
 
1078
      ;;
 
1079
    *)
 
1080
      sed -n \
 
1081
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1082
      ;;
 
1083
    esac;
 
1084
}
 
1085
    echo
 
1086
 
 
1087
    cat <<\_ASBOX
 
1088
## ----------------- ##
 
1089
## Output variables. ##
 
1090
## ----------------- ##
 
1091
_ASBOX
 
1092
    echo
 
1093
    for ac_var in $ac_subst_vars
 
1094
    do
 
1095
      eval ac_val=$`echo $ac_var`
 
1096
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1097
    done | sort
 
1098
    echo
 
1099
 
 
1100
    if test -n "$ac_subst_files"; then
 
1101
      cat <<\_ASBOX
 
1102
## ------------- ##
 
1103
## Output files. ##
 
1104
## ------------- ##
 
1105
_ASBOX
 
1106
      echo
 
1107
      for ac_var in $ac_subst_files
 
1108
      do
 
1109
        eval ac_val=$`echo $ac_var`
 
1110
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1111
      done | sort
 
1112
      echo
 
1113
    fi
 
1114
 
 
1115
    if test -s confdefs.h; then
 
1116
      cat <<\_ASBOX
 
1117
## ----------- ##
 
1118
## confdefs.h. ##
 
1119
## ----------- ##
 
1120
_ASBOX
 
1121
      echo
 
1122
      sed "/^$/d" confdefs.h | sort
 
1123
      echo
 
1124
    fi
 
1125
    test "$ac_signal" != 0 &&
 
1126
      echo "$as_me: caught signal $ac_signal"
 
1127
    echo "$as_me: exit $exit_status"
 
1128
  } >&5
 
1129
  rm -f core core.* *.core &&
 
1130
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1131
    exit $exit_status
 
1132
     ' 0
 
1133
for ac_signal in 1 2 13 15; do
 
1134
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1135
done
 
1136
ac_signal=0
 
1137
 
 
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.
 
1141
echo >confdefs.h
 
1142
 
 
1143
# Predefined preprocessor variables.
 
1144
 
 
1145
cat >>confdefs.h <<_ACEOF
 
1146
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1147
_ACEOF
 
1148
 
 
1149
 
 
1150
cat >>confdefs.h <<_ACEOF
 
1151
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1152
_ACEOF
 
1153
 
 
1154
 
 
1155
cat >>confdefs.h <<_ACEOF
 
1156
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1157
_ACEOF
 
1158
 
 
1159
 
 
1160
cat >>confdefs.h <<_ACEOF
 
1161
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1162
_ACEOF
 
1163
 
 
1164
 
 
1165
cat >>confdefs.h <<_ACEOF
 
1166
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1167
_ACEOF
 
1168
 
 
1169
 
 
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"
 
1175
  else
 
1176
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
 
1177
  fi
 
1178
fi
 
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
 
1184
    . "$ac_site_file"
 
1185
  fi
 
1186
done
 
1187
 
 
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;}
 
1194
    case $cache_file in
 
1195
      [\\/]* | ?:[\\/]* ) . $cache_file;;
 
1196
      *)                      . ./$cache_file;;
 
1197
    esac
 
1198
  fi
 
1199
else
 
1200
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1201
echo "$as_me: creating cache $cache_file" >&6;}
 
1202
  >$cache_file
 
1203
fi
 
1204
 
 
1205
# Check that the precious variables saved in the cache have kept the same
 
1206
# value.
 
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
 
1215
    set,)
 
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=: ;;
 
1219
    ,set)
 
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=: ;;
 
1223
    ,);;
 
1224
    *)
 
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=:
 
1233
      fi;;
 
1234
  esac
 
1235
  # Pass precious variables to config.status.
 
1236
  if test "$ac_new_set" = set; then
 
1237
    case $ac_new_val in
 
1238
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1239
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1240
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1241
    esac
 
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'" ;;
 
1245
    esac
 
1246
  fi
 
1247
done
 
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; }; }
 
1254
fi
 
1255
 
 
1256
ac_ext=c
 
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
 
1261
 
 
1262
 
 
1263
 
 
1264
 
 
1265
 
 
1266
 
 
1267
 
 
1268
 
 
1269
 
 
1270
 
 
1271
 
 
1272
 
 
1273
 
 
1274
 
 
1275
 
 
1276
 
 
1277
 
 
1278
 
 
1279
 
 
1280
 
 
1281
ac_aux_dir=
 
1282
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 
1283
  if test -f $ac_dir/install-sh; then
 
1284
    ac_aux_dir=$ac_dir
 
1285
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1286
    break
 
1287
  elif test -f $ac_dir/install.sh; then
 
1288
    ac_aux_dir=$ac_dir
 
1289
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1290
    break
 
1291
  elif test -f $ac_dir/shtool; then
 
1292
    ac_aux_dir=$ac_dir
 
1293
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1294
    break
 
1295
  fi
 
1296
done
 
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; }; }
 
1301
fi
 
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.
 
1305
 
 
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; }; }
 
1311
 
 
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
 
1316
else
 
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; }; }
 
1328
 
 
1329
fi
 
1330
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1331
echo "${ECHO_T}$ac_cv_build" >&6
 
1332
build=$ac_cv_build
 
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/'`
 
1336
 
 
1337
 
 
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
 
1342
else
 
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; }; }
 
1350
 
 
1351
fi
 
1352
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1353
echo "${ECHO_T}$ac_cv_host" >&6
 
1354
host=$ac_cv_host
 
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/'`
 
1358
 
 
1359
 
 
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
 
1364
else
 
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; }; }
 
1372
 
 
1373
fi
 
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/'`
 
1380
 
 
1381
 
 
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" = \
 
1386
    NONENONEs,x,x, &&
 
1387
  program_prefix=${target_alias}-
 
1388
 
 
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"
 
1392
 
 
1393
 
 
1394
 
 
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
 
1402
# AIX /bin/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
 
1413
else
 
1414
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1415
for as_dir in $PATH
 
1416
do
 
1417
  IFS=$as_save_IFS
 
1418
  test -z "$as_dir" && as_dir=.
 
1419
  # Account for people who put trailing slashes in PATH elements.
 
1420
case $as_dir/ in
 
1421
  ./ | .// | /cC/* | \
 
1422
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1423
  /usr/ucb/* ) ;;
 
1424
  *)
 
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
 
1427
    # by default.
 
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.
 
1434
            :
 
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.
 
1438
            :
 
1439
          else
 
1440
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1441
            break 3
 
1442
          fi
 
1443
        fi
 
1444
      done
 
1445
    done
 
1446
    ;;
 
1447
esac
 
1448
done
 
1449
 
 
1450
 
 
1451
fi
 
1452
  if test "${ac_cv_path_install+set}" = set; then
 
1453
    INSTALL=$ac_cv_path_install
 
1454
  else
 
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
 
1460
  fi
 
1461
fi
 
1462
echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1463
echo "${ECHO_T}$INSTALL" >&6
 
1464
 
 
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}'
 
1468
 
 
1469
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1470
 
 
1471
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1472
 
 
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
 
1475
# Just in case
 
1476
sleep 1
 
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
 
1482
# directory).
 
1483
if (
 
1484
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1485
   if test "$*" = "X"; then
 
1486
      # -L didn't work.
 
1487
      set X `ls -t $srcdir/configure conftest.file`
 
1488
   fi
 
1489
   rm -f conftest.file
 
1490
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1491
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1492
 
 
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; }; }
 
1502
   fi
 
1503
 
 
1504
   test "$2" = conftest.file
 
1505
   )
 
1506
then
 
1507
   # Ok.
 
1508
   :
 
1509
else
 
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; }; }
 
1515
fi
 
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,$//
 
1527
_ACEOF
 
1528
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1529
rm conftest.sed
 
1530
 
 
1531
 
 
1532
# expand $ac_aux_dir to an absolute path
 
1533
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1534
 
 
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 "
 
1539
else
 
1540
  am_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;}
 
1543
fi
 
1544
 
 
1545
for ac_prog in gawk mawk nawk awk
 
1546
do
 
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
 
1553
else
 
1554
  if test -n "$AWK"; then
 
1555
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
1556
else
 
1557
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1558
for as_dir in $PATH
 
1559
do
 
1560
  IFS=$as_save_IFS
 
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
 
1566
    break 2
 
1567
  fi
 
1568
done
 
1569
done
 
1570
 
 
1571
fi
 
1572
fi
 
1573
AWK=$ac_cv_prog_AWK
 
1574
if test -n "$AWK"; then
 
1575
  echo "$as_me:$LINENO: result: $AWK" >&5
 
1576
echo "${ECHO_T}$AWK" >&6
 
1577
else
 
1578
  echo "$as_me:$LINENO: result: no" >&5
 
1579
echo "${ECHO_T}no" >&6
 
1580
fi
 
1581
 
 
1582
  test -n "$AWK" && break
 
1583
done
 
1584
 
 
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
 
1590
else
 
1591
  cat >conftest.make <<\_ACEOF
 
1592
all:
 
1593
        @echo 'ac_maketemp="$(MAKE)"'
 
1594
_ACEOF
 
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
 
1599
else
 
1600
  eval ac_cv_prog_make_${ac_make}_set=no
 
1601
fi
 
1602
rm -f conftest.make
 
1603
fi
 
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
 
1607
  SET_MAKE=
 
1608
else
 
1609
  echo "$as_me:$LINENO: result: no" >&5
 
1610
echo "${ECHO_T}no" >&6
 
1611
  SET_MAKE="MAKE=${MAKE-make}"
 
1612
fi
 
1613
 
 
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; }; }
 
1620
fi
 
1621
 
 
1622
# Define the identity of the package.
 
1623
 PACKAGE=gtkboard
 
1624
 VERSION=0.11pre0
 
1625
 
 
1626
 
 
1627
cat >>confdefs.h <<_ACEOF
 
1628
#define PACKAGE "$PACKAGE"
 
1629
_ACEOF
 
1630
 
 
1631
 
 
1632
cat >>confdefs.h <<_ACEOF
 
1633
#define VERSION "$VERSION"
 
1634
_ACEOF
 
1635
 
 
1636
# Some tools Automake needs.
 
1637
 
 
1638
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
1639
 
 
1640
 
 
1641
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
1642
 
 
1643
 
 
1644
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
1645
 
 
1646
 
 
1647
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
1648
 
 
1649
 
 
1650
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
1651
 
 
1652
 
 
1653
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
1654
 
 
1655
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
1656
 
 
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
 
1669
else
 
1670
  if test -n "$STRIP"; then
 
1671
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
1672
else
 
1673
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1674
for as_dir in $PATH
 
1675
do
 
1676
  IFS=$as_save_IFS
 
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
 
1682
    break 2
 
1683
  fi
 
1684
done
 
1685
done
 
1686
 
 
1687
fi
 
1688
fi
 
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
 
1693
else
 
1694
  echo "$as_me:$LINENO: result: no" >&5
 
1695
echo "${ECHO_T}no" >&6
 
1696
fi
 
1697
 
 
1698
fi
 
1699
if test -z "$ac_cv_prog_STRIP"; then
 
1700
  ac_ct_STRIP=$STRIP
 
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
 
1707
else
 
1708
  if test -n "$ac_ct_STRIP"; then
 
1709
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
1710
else
 
1711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1712
for as_dir in $PATH
 
1713
do
 
1714
  IFS=$as_save_IFS
 
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
 
1720
    break 2
 
1721
  fi
 
1722
done
 
1723
done
 
1724
 
 
1725
  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 
1726
fi
 
1727
fi
 
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
 
1732
else
 
1733
  echo "$as_me:$LINENO: result: no" >&5
 
1734
echo "${ECHO_T}no" >&6
 
1735
fi
 
1736
 
 
1737
  STRIP=$ac_ct_STRIP
 
1738
else
 
1739
  STRIP="$ac_cv_prog_STRIP"
 
1740
fi
 
1741
 
 
1742
fi
 
1743
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
1744
 
 
1745
# We need awk for the "check" target.  The system "awk" is bad on
 
1746
# some platforms.
 
1747
 
 
1748
 
 
1749
 
 
1750
ac_ext=c
 
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
 
1762
else
 
1763
  if test -n "$CC"; then
 
1764
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1765
else
 
1766
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1767
for as_dir in $PATH
 
1768
do
 
1769
  IFS=$as_save_IFS
 
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
 
1775
    break 2
 
1776
  fi
 
1777
done
 
1778
done
 
1779
 
 
1780
fi
 
1781
fi
 
1782
CC=$ac_cv_prog_CC
 
1783
if test -n "$CC"; then
 
1784
  echo "$as_me:$LINENO: result: $CC" >&5
 
1785
echo "${ECHO_T}$CC" >&6
 
1786
else
 
1787
  echo "$as_me:$LINENO: result: no" >&5
 
1788
echo "${ECHO_T}no" >&6
 
1789
fi
 
1790
 
 
1791
fi
 
1792
if test -z "$ac_cv_prog_CC"; then
 
1793
  ac_ct_CC=$CC
 
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
 
1800
else
 
1801
  if test -n "$ac_ct_CC"; then
 
1802
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1803
else
 
1804
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1805
for as_dir in $PATH
 
1806
do
 
1807
  IFS=$as_save_IFS
 
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
 
1813
    break 2
 
1814
  fi
 
1815
done
 
1816
done
 
1817
 
 
1818
fi
 
1819
fi
 
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
 
1824
else
 
1825
  echo "$as_me:$LINENO: result: no" >&5
 
1826
echo "${ECHO_T}no" >&6
 
1827
fi
 
1828
 
 
1829
  CC=$ac_ct_CC
 
1830
else
 
1831
  CC="$ac_cv_prog_CC"
 
1832
fi
 
1833
 
 
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
 
1842
else
 
1843
  if test -n "$CC"; then
 
1844
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1845
else
 
1846
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1847
for as_dir in $PATH
 
1848
do
 
1849
  IFS=$as_save_IFS
 
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
 
1855
    break 2
 
1856
  fi
 
1857
done
 
1858
done
 
1859
 
 
1860
fi
 
1861
fi
 
1862
CC=$ac_cv_prog_CC
 
1863
if test -n "$CC"; then
 
1864
  echo "$as_me:$LINENO: result: $CC" >&5
 
1865
echo "${ECHO_T}$CC" >&6
 
1866
else
 
1867
  echo "$as_me:$LINENO: result: no" >&5
 
1868
echo "${ECHO_T}no" >&6
 
1869
fi
 
1870
 
 
1871
fi
 
1872
if test -z "$ac_cv_prog_CC"; then
 
1873
  ac_ct_CC=$CC
 
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
 
1880
else
 
1881
  if test -n "$ac_ct_CC"; then
 
1882
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
1883
else
 
1884
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1885
for as_dir in $PATH
 
1886
do
 
1887
  IFS=$as_save_IFS
 
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
 
1893
    break 2
 
1894
  fi
 
1895
done
 
1896
done
 
1897
 
 
1898
fi
 
1899
fi
 
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
 
1904
else
 
1905
  echo "$as_me:$LINENO: result: no" >&5
 
1906
echo "${ECHO_T}no" >&6
 
1907
fi
 
1908
 
 
1909
  CC=$ac_ct_CC
 
1910
else
 
1911
  CC="$ac_cv_prog_CC"
 
1912
fi
 
1913
 
 
1914
fi
 
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
 
1922
else
 
1923
  if test -n "$CC"; then
 
1924
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1925
else
 
1926
  ac_prog_rejected=no
 
1927
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1928
for as_dir in $PATH
 
1929
do
 
1930
  IFS=$as_save_IFS
 
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
 
1936
       continue
 
1937
     fi
 
1938
    ac_cv_prog_CC="cc"
 
1939
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
1940
    break 2
 
1941
  fi
 
1942
done
 
1943
done
 
1944
 
 
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
 
1948
  shift
 
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.
 
1953
    shift
 
1954
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
1955
  fi
 
1956
fi
 
1957
fi
 
1958
fi
 
1959
CC=$ac_cv_prog_CC
 
1960
if test -n "$CC"; then
 
1961
  echo "$as_me:$LINENO: result: $CC" >&5
 
1962
echo "${ECHO_T}$CC" >&6
 
1963
else
 
1964
  echo "$as_me:$LINENO: result: no" >&5
 
1965
echo "${ECHO_T}no" >&6
 
1966
fi
 
1967
 
 
1968
fi
 
1969
if test -z "$CC"; then
 
1970
  if test -n "$ac_tool_prefix"; then
 
1971
  for ac_prog in cl
 
1972
  do
 
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
 
1979
else
 
1980
  if test -n "$CC"; then
 
1981
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
1982
else
 
1983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1984
for as_dir in $PATH
 
1985
do
 
1986
  IFS=$as_save_IFS
 
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
 
1992
    break 2
 
1993
  fi
 
1994
done
 
1995
done
 
1996
 
 
1997
fi
 
1998
fi
 
1999
CC=$ac_cv_prog_CC
 
2000
if test -n "$CC"; then
 
2001
  echo "$as_me:$LINENO: result: $CC" >&5
 
2002
echo "${ECHO_T}$CC" >&6
 
2003
else
 
2004
  echo "$as_me:$LINENO: result: no" >&5
 
2005
echo "${ECHO_T}no" >&6
 
2006
fi
 
2007
 
 
2008
    test -n "$CC" && break
 
2009
  done
 
2010
fi
 
2011
if test -z "$CC"; then
 
2012
  ac_ct_CC=$CC
 
2013
  for ac_prog in cl
 
2014
do
 
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
 
2021
else
 
2022
  if test -n "$ac_ct_CC"; then
 
2023
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
2024
else
 
2025
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2026
for as_dir in $PATH
 
2027
do
 
2028
  IFS=$as_save_IFS
 
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
 
2034
    break 2
 
2035
  fi
 
2036
done
 
2037
done
 
2038
 
 
2039
fi
 
2040
fi
 
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
 
2045
else
 
2046
  echo "$as_me:$LINENO: result: no" >&5
 
2047
echo "${ECHO_T}no" >&6
 
2048
fi
 
2049
 
 
2050
  test -n "$ac_ct_CC" && break
 
2051
done
 
2052
 
 
2053
  CC=$ac_ct_CC
 
2054
fi
 
2055
 
 
2056
fi
 
2057
 
 
2058
 
 
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; }; }
 
2064
 
 
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
 
2071
  ac_status=$?
 
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
 
2076
  ac_status=$?
 
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
 
2081
  ac_status=$?
 
2082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2083
  (exit $ac_status); }
 
2084
 
 
2085
cat >conftest.$ac_ext <<_ACEOF
 
2086
#line $LINENO "configure"
 
2087
/* confdefs.h.  */
 
2088
_ACEOF
 
2089
cat confdefs.h >>conftest.$ac_ext
 
2090
cat >>conftest.$ac_ext <<_ACEOF
 
2091
/* end confdefs.h.  */
 
2092
 
 
2093
int
 
2094
main ()
 
2095
{
 
2096
 
 
2097
  ;
 
2098
  return 0;
 
2099
}
 
2100
_ACEOF
 
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
 
2105
# of exeext.
 
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
 
2111
  ac_status=$?
 
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
 
2116
# resort.
 
2117
 
 
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.
 
2120
ac_cv_exeext=
 
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
 
2123
do
 
2124
  test -f "$ac_file" || continue
 
2125
  case $ac_file in
 
2126
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 
2127
        ;;
 
2128
    conftest.$ac_ext )
 
2129
        # This is the source file.
 
2130
        ;;
 
2131
    [ab].out )
 
2132
        # We found the default executable, but exeext='' is most
 
2133
        # certainly right.
 
2134
        break;;
 
2135
    *.* )
 
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.
 
2140
        export ac_cv_exeext
 
2141
        break;;
 
2142
    * )
 
2143
        break;;
 
2144
  esac
 
2145
done
 
2146
else
 
2147
  echo "$as_me: failed program was:" >&5
 
2148
sed 's/^/| /' conftest.$ac_ext >&5
 
2149
 
 
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; }; }
 
2155
fi
 
2156
 
 
2157
ac_exeext=$ac_cv_exeext
 
2158
echo "$as_me:$LINENO: result: $ac_file" >&5
 
2159
echo "${ECHO_T}$ac_file" >&6
 
2160
 
 
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
 
2170
  (eval $ac_try) 2>&5
 
2171
  ac_status=$?
 
2172
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2173
  (exit $ac_status); }; }; then
 
2174
    cross_compiling=no
 
2175
  else
 
2176
    if test "$cross_compiling" = maybe; then
 
2177
        cross_compiling=yes
 
2178
    else
 
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; }; }
 
2186
    fi
 
2187
  fi
 
2188
fi
 
2189
echo "$as_me:$LINENO: result: yes" >&5
 
2190
echo "${ECHO_T}yes" >&6
 
2191
 
 
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
 
2200
 
 
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
 
2205
  ac_status=$?
 
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
 
2211
# `rm'.
 
2212
for ac_file in conftest.exe conftest conftest.*; do
 
2213
  test -f "$ac_file" || continue
 
2214
  case $ac_file in
 
2215
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2216
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2217
          export ac_cv_exeext
 
2218
          break;;
 
2219
    * ) break;;
 
2220
  esac
 
2221
done
 
2222
else
 
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; }; }
 
2228
fi
 
2229
 
 
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
 
2233
 
 
2234
rm -f conftest.$ac_ext
 
2235
EXEEXT=$ac_cv_exeext
 
2236
ac_exeext=$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
 
2241
else
 
2242
  cat >conftest.$ac_ext <<_ACEOF
 
2243
#line $LINENO "configure"
 
2244
/* confdefs.h.  */
 
2245
_ACEOF
 
2246
cat confdefs.h >>conftest.$ac_ext
 
2247
cat >>conftest.$ac_ext <<_ACEOF
 
2248
/* end confdefs.h.  */
 
2249
 
 
2250
int
 
2251
main ()
 
2252
{
 
2253
 
 
2254
  ;
 
2255
  return 0;
 
2256
}
 
2257
_ACEOF
 
2258
rm -f conftest.o conftest.obj
 
2259
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2260
  (eval $ac_compile) 2>&5
 
2261
  ac_status=$?
 
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
 
2265
  case $ac_file in
 
2266
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2267
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2268
       break;;
 
2269
  esac
 
2270
done
 
2271
else
 
2272
  echo "$as_me: failed program was:" >&5
 
2273
sed 's/^/| /' conftest.$ac_ext >&5
 
2274
 
 
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; }; }
 
2280
fi
 
2281
 
 
2282
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2283
fi
 
2284
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2285
echo "${ECHO_T}$ac_cv_objext" >&6
 
2286
OBJEXT=$ac_cv_objext
 
2287
ac_objext=$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
 
2292
else
 
2293
  cat >conftest.$ac_ext <<_ACEOF
 
2294
#line $LINENO "configure"
 
2295
/* confdefs.h.  */
 
2296
_ACEOF
 
2297
cat confdefs.h >>conftest.$ac_ext
 
2298
cat >>conftest.$ac_ext <<_ACEOF
 
2299
/* end confdefs.h.  */
 
2300
 
 
2301
int
 
2302
main ()
 
2303
{
 
2304
#ifndef __GNUC__
 
2305
       choke me
 
2306
#endif
 
2307
 
 
2308
  ;
 
2309
  return 0;
 
2310
}
 
2311
_ACEOF
 
2312
rm -f conftest.$ac_objext
 
2313
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2314
  (eval $ac_compile) 2>&5
 
2315
  ac_status=$?
 
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
 
2320
  (eval $ac_try) 2>&5
 
2321
  ac_status=$?
 
2322
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2323
  (exit $ac_status); }; }; then
 
2324
  ac_compiler_gnu=yes
 
2325
else
 
2326
  echo "$as_me: failed program was:" >&5
 
2327
sed 's/^/| /' conftest.$ac_ext >&5
 
2328
 
 
2329
ac_compiler_gnu=no
 
2330
fi
 
2331
rm -f conftest.$ac_objext conftest.$ac_ext
 
2332
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
2333
 
 
2334
fi
 
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
 
2340
CFLAGS="-g"
 
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
 
2345
else
 
2346
  cat >conftest.$ac_ext <<_ACEOF
 
2347
#line $LINENO "configure"
 
2348
/* confdefs.h.  */
 
2349
_ACEOF
 
2350
cat confdefs.h >>conftest.$ac_ext
 
2351
cat >>conftest.$ac_ext <<_ACEOF
 
2352
/* end confdefs.h.  */
 
2353
 
 
2354
int
 
2355
main ()
 
2356
{
 
2357
 
 
2358
  ;
 
2359
  return 0;
 
2360
}
 
2361
_ACEOF
 
2362
rm -f conftest.$ac_objext
 
2363
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2364
  (eval $ac_compile) 2>&5
 
2365
  ac_status=$?
 
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
 
2370
  (eval $ac_try) 2>&5
 
2371
  ac_status=$?
 
2372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2373
  (exit $ac_status); }; }; then
 
2374
  ac_cv_prog_cc_g=yes
 
2375
else
 
2376
  echo "$as_me: failed program was:" >&5
 
2377
sed 's/^/| /' conftest.$ac_ext >&5
 
2378
 
 
2379
ac_cv_prog_cc_g=no
 
2380
fi
 
2381
rm -f conftest.$ac_objext conftest.$ac_ext
 
2382
fi
 
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
 
2389
    CFLAGS="-g -O2"
 
2390
  else
 
2391
    CFLAGS="-g"
 
2392
  fi
 
2393
else
 
2394
  if test "$GCC" = yes; then
 
2395
    CFLAGS="-O2"
 
2396
  else
 
2397
    CFLAGS=
 
2398
  fi
 
2399
fi
 
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
 
2404
else
 
2405
  ac_cv_prog_cc_stdc=no
 
2406
ac_save_CC=$CC
 
2407
cat >conftest.$ac_ext <<_ACEOF
 
2408
#line $LINENO "configure"
 
2409
/* confdefs.h.  */
 
2410
_ACEOF
 
2411
cat confdefs.h >>conftest.$ac_ext
 
2412
cat >>conftest.$ac_ext <<_ACEOF
 
2413
/* end confdefs.h.  */
 
2414
#include <stdarg.h>
 
2415
#include <stdio.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)
 
2422
     char **p;
 
2423
     int i;
 
2424
{
 
2425
  return p[i];
 
2426
}
 
2427
static char *f (char * (*g) (char **, int), char **p, ...)
 
2428
{
 
2429
  char *s;
 
2430
  va_list v;
 
2431
  va_start (v,p);
 
2432
  s = g (p, va_arg (v,int));
 
2433
  va_end (v);
 
2434
  return s;
 
2435
}
 
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);
 
2440
int argc;
 
2441
char **argv;
 
2442
int
 
2443
main ()
 
2444
{
 
2445
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
2446
  ;
 
2447
  return 0;
 
2448
}
 
2449
_ACEOF
 
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__"
 
2458
do
 
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
 
2463
  ac_status=$?
 
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
 
2468
  (eval $ac_try) 2>&5
 
2469
  ac_status=$?
 
2470
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2471
  (exit $ac_status); }; }; then
 
2472
  ac_cv_prog_cc_stdc=$ac_arg
 
2473
break
 
2474
else
 
2475
  echo "$as_me: failed program was:" >&5
 
2476
sed 's/^/| /' conftest.$ac_ext >&5
 
2477
 
 
2478
fi
 
2479
rm -f conftest.$ac_objext
 
2480
done
 
2481
rm -f conftest.$ac_ext conftest.$ac_objext
 
2482
CC=$ac_save_CC
 
2483
 
 
2484
fi
 
2485
 
 
2486
case "x$ac_cv_prog_cc_stdc" in
 
2487
  x|xno)
 
2488
    echo "$as_me:$LINENO: result: none needed" >&5
 
2489
echo "${ECHO_T}none needed" >&6 ;;
 
2490
  *)
 
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" ;;
 
2494
esac
 
2495
 
 
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
 
2501
#ifndef __cplusplus
 
2502
  choke me
 
2503
#endif
 
2504
_ACEOF
 
2505
rm -f conftest.$ac_objext
 
2506
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2507
  (eval $ac_compile) 2>&5
 
2508
  ac_status=$?
 
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
 
2513
  (eval $ac_try) 2>&5
 
2514
  ac_status=$?
 
2515
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2516
  (exit $ac_status); }; }; then
 
2517
  for ac_declaration in \
 
2518
   ''\
 
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);' \
 
2524
   'void exit (int);'
 
2525
do
 
2526
  cat >conftest.$ac_ext <<_ACEOF
 
2527
#line $LINENO "configure"
 
2528
/* confdefs.h.  */
 
2529
_ACEOF
 
2530
cat confdefs.h >>conftest.$ac_ext
 
2531
cat >>conftest.$ac_ext <<_ACEOF
 
2532
/* end confdefs.h.  */
 
2533
#include <stdlib.h>
 
2534
$ac_declaration
 
2535
int
 
2536
main ()
 
2537
{
 
2538
exit (42);
 
2539
  ;
 
2540
  return 0;
 
2541
}
 
2542
_ACEOF
 
2543
rm -f conftest.$ac_objext
 
2544
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2545
  (eval $ac_compile) 2>&5
 
2546
  ac_status=$?
 
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
 
2551
  (eval $ac_try) 2>&5
 
2552
  ac_status=$?
 
2553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2554
  (exit $ac_status); }; }; then
 
2555
  :
 
2556
else
 
2557
  echo "$as_me: failed program was:" >&5
 
2558
sed 's/^/| /' conftest.$ac_ext >&5
 
2559
 
 
2560
continue
 
2561
fi
 
2562
rm -f conftest.$ac_objext conftest.$ac_ext
 
2563
  cat >conftest.$ac_ext <<_ACEOF
 
2564
#line $LINENO "configure"
 
2565
/* confdefs.h.  */
 
2566
_ACEOF
 
2567
cat confdefs.h >>conftest.$ac_ext
 
2568
cat >>conftest.$ac_ext <<_ACEOF
 
2569
/* end confdefs.h.  */
 
2570
$ac_declaration
 
2571
int
 
2572
main ()
 
2573
{
 
2574
exit (42);
 
2575
  ;
 
2576
  return 0;
 
2577
}
 
2578
_ACEOF
 
2579
rm -f conftest.$ac_objext
 
2580
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
2581
  (eval $ac_compile) 2>&5
 
2582
  ac_status=$?
 
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
 
2587
  (eval $ac_try) 2>&5
 
2588
  ac_status=$?
 
2589
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2590
  (exit $ac_status); }; }; then
 
2591
  break
 
2592
else
 
2593
  echo "$as_me: failed program was:" >&5
 
2594
sed 's/^/| /' conftest.$ac_ext >&5
 
2595
 
 
2596
fi
 
2597
rm -f conftest.$ac_objext conftest.$ac_ext
 
2598
done
 
2599
rm -f conftest*
 
2600
if test -n "$ac_declaration"; then
 
2601
  echo '#ifdef __cplusplus' >>confdefs.h
 
2602
  echo $ac_declaration      >>confdefs.h
 
2603
  echo '#endif'             >>confdefs.h
 
2604
fi
 
2605
 
 
2606
else
 
2607
  echo "$as_me: failed program was:" >&5
 
2608
sed 's/^/| /' conftest.$ac_ext >&5
 
2609
 
 
2610
fi
 
2611
rm -f conftest.$ac_objext conftest.$ac_ext
 
2612
ac_ext=c
 
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
 
2620
  DEPDIR=.deps
 
2621
else
 
2622
  # MS-DOS does not allow filenames that begin with a dot.
 
2623
  DEPDIR=_deps
 
2624
fi
 
2625
rmdir .deps 2>/dev/null
 
2626
 
 
2627
 
 
2628
          ac_config_commands="$ac_config_commands depfiles"
 
2629
 
 
2630
 
 
2631
am_make=${MAKE-make}
 
2632
cat > confinc << 'END'
 
2633
doit:
 
2634
        @echo done
 
2635
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
 
2639
am__include="#"
 
2640
am__quote=
 
2641
_am_result=none
 
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
 
2650
   am__include=include
 
2651
   am__quote=
 
2652
   _am_result=GNU
 
2653
fi
 
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
 
2659
      am__quote="\""
 
2660
      _am_result=BSD
 
2661
   fi
 
2662
fi
 
2663
 
 
2664
 
 
2665
echo "$as_me:$LINENO: result: $_am_result" >&5
 
2666
echo "${ECHO_T}$_am_result" >&6
 
2667
rm -f confinc confmf
 
2668
 
 
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"
 
2672
 
 
2673
fi;
 
2674
if test "x$enable_dependency_tracking" != xno; then
 
2675
  am_depcomp="$ac_aux_dir/depcomp"
 
2676
  AMDEPBACKSLASH='\'
 
2677
fi
 
2678
 
 
2679
 
 
2680
if test "x$enable_dependency_tracking" != xno; then
 
2681
  AMDEP_TRUE=
 
2682
  AMDEP_FALSE='#'
 
2683
else
 
2684
  AMDEP_TRUE='#'
 
2685
  AMDEP_FALSE=
 
2686
fi
 
2687
 
 
2688
 
 
2689
 
 
2690
 
 
2691
depcc="$CC"   am_compiler_list=
 
2692
 
 
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
 
2697
else
 
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
 
2703
  # in D'.
 
2704
  mkdir conftest.dir
 
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
 
2708
  cd conftest.dir
 
2709
 
 
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`
 
2713
  fi
 
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
 
2721
 
 
2722
    case $depmode in
 
2723
    nosideeffect)
 
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
 
2727
        continue
 
2728
      else
 
2729
        break
 
2730
      fi
 
2731
      ;;
 
2732
    none) break ;;
 
2733
    esac
 
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
 
2744
      break
 
2745
    fi
 
2746
  done
 
2747
 
 
2748
  cd ..
 
2749
  rm -rf conftest.dir
 
2750
else
 
2751
  am_cv_CC_dependencies_compiler_type=none
 
2752
fi
 
2753
 
 
2754
fi
 
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
 
2758
 
 
2759
 
 
2760
 
 
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
 
2765
else
 
2766
  enable_gtk2="yes"
 
2767
fi;
 
2768
 
 
2769
found_gtk2=0;
 
2770
 
 
2771
if test "$enable_gtk2" = "yes" ; then
 
2772
 
 
2773
  succeeded=no
 
2774
 
 
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
 
2782
else
 
2783
  case $PKG_CONFIG in
 
2784
  [\\/]* | ?:[\\/]*)
 
2785
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
2786
  ;;
 
2787
  *)
 
2788
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2789
for as_dir in $PATH
 
2790
do
 
2791
  IFS=$as_save_IFS
 
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
 
2797
    break 2
 
2798
  fi
 
2799
done
 
2800
done
 
2801
 
 
2802
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
2803
  ;;
 
2804
esac
 
2805
fi
 
2806
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
2807
 
 
2808
if test -n "$PKG_CONFIG"; then
 
2809
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
2810
echo "${ECHO_T}$PKG_CONFIG" >&6
 
2811
else
 
2812
  echo "$as_me:$LINENO: result: no" >&5
 
2813
echo "${ECHO_T}no" >&6
 
2814
fi
 
2815
 
 
2816
  fi
 
2817
 
 
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."
 
2823
  else
 
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
 
2828
 
 
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
 
2832
            succeeded=yes
 
2833
 
 
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
 
2839
 
 
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
 
2845
        else
 
2846
            GTK_CFLAGS=""
 
2847
            GTK_LIBS=""
 
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"`
 
2851
 
 
2852
        fi
 
2853
 
 
2854
 
 
2855
 
 
2856
     else
 
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"
 
2859
     fi
 
2860
  fi
 
2861
 
 
2862
  if test $succeeded = yes; then
 
2863
     found_gtk2=1
 
2864
  else
 
2865
     found_gtk2=0
 
2866
  fi
 
2867
 
 
2868
fi
 
2869
 
 
2870
if test $found_gtk2 = 0; then
 
2871
 
 
2872
 
 
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"
 
2877
else
 
2878
  gtk_config_prefix=""
 
2879
fi;
 
2880
 
 
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"
 
2885
else
 
2886
  gtk_config_exec_prefix=""
 
2887
fi;
 
2888
# Check whether --enable-gtktest or --disable-gtktest was given.
 
2889
if test "${enable_gtktest+set}" = set; then
 
2890
  enableval="$enable_gtktest"
 
2891
 
 
2892
else
 
2893
  enable_gtktest=yes
 
2894
fi;
 
2895
 
 
2896
  for module in .
 
2897
  do
 
2898
      case "$module" in
 
2899
         gthread)
 
2900
             gtk_config_args="$gtk_config_args gthread"
 
2901
         ;;
 
2902
      esac
 
2903
  done
 
2904
 
 
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
 
2909
     fi
 
2910
  fi
 
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
 
2915
     fi
 
2916
  fi
 
2917
 
 
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
 
2924
else
 
2925
  case $GTK_CONFIG in
 
2926
  [\\/]* | ?:[\\/]*)
 
2927
  ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
 
2928
  ;;
 
2929
  *)
 
2930
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2931
for as_dir in $PATH
 
2932
do
 
2933
  IFS=$as_save_IFS
 
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
 
2939
    break 2
 
2940
  fi
 
2941
done
 
2942
done
 
2943
 
 
2944
  test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
 
2945
  ;;
 
2946
esac
 
2947
fi
 
2948
GTK_CONFIG=$ac_cv_path_GTK_CONFIG
 
2949
 
 
2950
if test -n "$GTK_CONFIG"; then
 
2951
  echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
 
2952
echo "${ECHO_T}$GTK_CONFIG" >&6
 
2953
else
 
2954
  echo "$as_me:$LINENO: result: no" >&5
 
2955
echo "${ECHO_T}no" >&6
 
2956
fi
 
2957
 
 
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
 
2961
  no_gtk=""
 
2962
  if test "$GTK_CONFIG" = "no" ; then
 
2963
    no_gtk=yes
 
2964
  else
 
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"
 
2978
      rm -f conf.gtktest
 
2979
      if test "$cross_compiling" = yes; then
 
2980
  echo $ac_n "cross compiling; assumed OK... $ac_c"
 
2981
else
 
2982
  cat >conftest.$ac_ext <<_ACEOF
 
2983
#line $LINENO "configure"
 
2984
/* confdefs.h.  */
 
2985
_ACEOF
 
2986
cat confdefs.h >>conftest.$ac_ext
 
2987
cat >>conftest.$ac_ext <<_ACEOF
 
2988
/* end confdefs.h.  */
 
2989
 
 
2990
#include <gtk/gtk.h>
 
2991
#include <stdio.h>
 
2992
#include <stdlib.h>
 
2993
 
 
2994
int
 
2995
main ()
 
2996
{
 
2997
  int major, minor, micro;
 
2998
  char *tmp_version;
 
2999
 
 
3000
  system ("touch conf.gtktest");
 
3001
 
 
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, &micro) != 3) {
 
3005
     printf("%s, bad version string\n", "$min_gtk_version");
 
3006
     exit(1);
 
3007
   }
 
3008
 
 
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))
 
3012
    {
 
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");
 
3024
    }
 
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))
 
3029
    {
 
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);
 
3034
    }
 
3035
#endif /* defined (GTK_MAJOR_VERSION) ... */
 
3036
  else
 
3037
    {
 
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)))
 
3041
      {
 
3042
        return 0;
 
3043
       }
 
3044
     else
 
3045
      {
 
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");
 
3051
        printf("***\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");
 
3059
      }
 
3060
    }
 
3061
  return 1;
 
3062
}
 
3063
 
 
3064
_ACEOF
 
3065
rm -f conftest$ac_exeext
 
3066
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3067
  (eval $ac_link) 2>&5
 
3068
  ac_status=$?
 
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
 
3072
  (eval $ac_try) 2>&5
 
3073
  ac_status=$?
 
3074
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3075
  (exit $ac_status); }; }; then
 
3076
  :
 
3077
else
 
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
 
3081
 
 
3082
( exit $ac_status )
 
3083
no_gtk=yes
 
3084
fi
 
3085
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3086
fi
 
3087
       CFLAGS="$ac_save_CFLAGS"
 
3088
       LIBS="$ac_save_LIBS"
 
3089
     fi
 
3090
  fi
 
3091
  if test "x$no_gtk" = x ; then
 
3092
     echo "$as_me:$LINENO: result: yes" >&5
 
3093
echo "${ECHO_T}yes" >&6
 
3094
     :
 
3095
  else
 
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."
 
3103
     else
 
3104
       if test -f conf.gtktest ; then
 
3105
        :
 
3106
       else
 
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"
 
3112
/* confdefs.h.  */
 
3113
_ACEOF
 
3114
cat confdefs.h >>conftest.$ac_ext
 
3115
cat >>conftest.$ac_ext <<_ACEOF
 
3116
/* end confdefs.h.  */
 
3117
 
 
3118
#include <gtk/gtk.h>
 
3119
#include <stdio.h>
 
3120
 
 
3121
int
 
3122
main ()
 
3123
{
 
3124
 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
 
3125
  ;
 
3126
  return 0;
 
3127
}
 
3128
_ACEOF
 
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
 
3132
  ac_status=$?
 
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
 
3137
  (eval $ac_try) 2>&5
 
3138
  ac_status=$?
 
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"
 
3147
          echo "***"
 
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"
 
3150
          echo "***"
 
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"
 
3153
          echo "***"
 
3154
          echo "***    rpm --erase --nodeps gtk gtk-devel"
 
3155
else
 
3156
  echo "$as_me: failed program was:" >&5
 
3157
sed 's/^/| /' conftest.$ac_ext >&5
 
3158
 
 
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"
 
3163
fi
 
3164
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3165
          CFLAGS="$ac_save_CFLAGS"
 
3166
          LIBS="$ac_save_LIBS"
 
3167
       fi
 
3168
     fi
 
3169
     GTK_CFLAGS=""
 
3170
     GTK_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; }; }
 
3174
  fi
 
3175
 
 
3176
 
 
3177
  rm -f conf.gtktest
 
3178
 
 
3179
fi
 
3180
 
 
3181
 
 
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
 
3186
else
 
3187
  enable_sdl="yes"
 
3188
fi;
 
3189
 
 
3190
if test "$enable_sdl" = "yes" ; then
 
3191
        #       SDL_VERSION=1.2.0
 
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])
 
3195
#       )
 
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
 
3200
else
 
3201
  ac_check_lib_save_LIBS=$LIBS
 
3202
LIBS="-lSDL_mixer  $LIBS"
 
3203
cat >conftest.$ac_ext <<_ACEOF
 
3204
#line $LINENO "configure"
 
3205
/* confdefs.h.  */
 
3206
_ACEOF
 
3207
cat confdefs.h >>conftest.$ac_ext
 
3208
cat >>conftest.$ac_ext <<_ACEOF
 
3209
/* end confdefs.h.  */
 
3210
 
 
3211
/* Override any gcc2 internal prototype to avoid an error.  */
 
3212
#ifdef __cplusplus
 
3213
extern "C"
 
3214
#endif
 
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 ();
 
3218
int
 
3219
main ()
 
3220
{
 
3221
Mix_OpenAudio ();
 
3222
  ;
 
3223
  return 0;
 
3224
}
 
3225
_ACEOF
 
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
 
3229
  ac_status=$?
 
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
 
3234
  (eval $ac_try) 2>&5
 
3235
  ac_status=$?
 
3236
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3237
  (exit $ac_status); }; }; then
 
3238
  ac_cv_lib_SDL_mixer_Mix_OpenAudio=yes
 
3239
else
 
3240
  echo "$as_me: failed program was:" >&5
 
3241
sed 's/^/| /' conftest.$ac_ext >&5
 
3242
 
 
3243
ac_cv_lib_SDL_mixer_Mix_OpenAudio=no
 
3244
fi
 
3245
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
3246
LIBS=$ac_check_lib_save_LIBS
 
3247
fi
 
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
 
3251
  have_SDL_mixer=yes
 
3252
else
 
3253
  have_SDL_mixer=no
 
3254
fi
 
3255
 
 
3256
 
 
3257
        if test "$have_SDL_mixer" = "yes" ; then
 
3258
#               CFLAGS="$CFLAGS -DHAVE_SDL"
 
3259
 
 
3260
cat >>confdefs.h <<\_ACEOF
 
3261
#define HAVE_SDL
 
3262
_ACEOF
 
3263
 
 
3264
            LIBS="$LIBS -lSDL_mixer"
 
3265
        else
 
3266
            echo "*** SDL_mixer not found.  Configuring without audio support."
 
3267
        fi
 
3268
 
 
3269
 
 
3270
#       CFLAGS="$CFLAGS $SDL_CFLAGS"
 
3271
#       LIBS="$LIBS $SDL_LIBS -lSDL_mixer"
 
3272
fi
 
3273
 
 
3274
gnome=false
 
3275
 
 
3276
GNOME_CFLAGS=""
 
3277
GNOME_LIBS=""
 
3278
 
 
3279
# Check whether --enable-gnome or --disable-gnome was given.
 
3280
if test "${enable_gnome+set}" = set; then
 
3281
  enableval="$enable_gnome"
 
3282
 
 
3283
        if test "x$enableval" = "xyes"; then
 
3284
                gnome=true
 
3285
        fi
 
3286
 
 
3287
fi;
 
3288
 
 
3289
if test "$gnome" = true ; then
 
3290
 
 
3291
  succeeded=no
 
3292
 
 
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
 
3300
else
 
3301
  case $PKG_CONFIG in
 
3302
  [\\/]* | ?:[\\/]*)
 
3303
  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
 
3304
  ;;
 
3305
  *)
 
3306
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3307
for as_dir in $PATH
 
3308
do
 
3309
  IFS=$as_save_IFS
 
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
 
3315
    break 2
 
3316
  fi
 
3317
done
 
3318
done
 
3319
 
 
3320
  test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
 
3321
  ;;
 
3322
esac
 
3323
fi
 
3324
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
 
3325
 
 
3326
if test -n "$PKG_CONFIG"; then
 
3327
  echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
 
3328
echo "${ECHO_T}$PKG_CONFIG" >&6
 
3329
else
 
3330
  echo "$as_me:$LINENO: result: no" >&5
 
3331
echo "${ECHO_T}no" >&6
 
3332
fi
 
3333
 
 
3334
  fi
 
3335
 
 
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."
 
3341
  else
 
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
 
3347
        " >&5
 
3348
echo $ECHO_N "checking for
 
3349
                        libgnome-2.0 >= 2.0.0
 
3350
                        libgnomeui-2.0 >= 2.0.0
 
3351
        ... $ECHO_C" >&6
 
3352
 
 
3353
        if $PKG_CONFIG --exists "
 
3354
                        libgnome-2.0 >= 2.0.0
 
3355
                        libgnomeui-2.0 >= 2.0.0
 
3356
        " ; then
 
3357
            echo "$as_me:$LINENO: result: yes" >&5
 
3358
echo "${ECHO_T}yes" >&6
 
3359
            succeeded=yes
 
3360
 
 
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
 
3366
        "`
 
3367
            echo "$as_me:$LINENO: result: $GNOME_CFLAGS" >&5
 
3368
echo "${ECHO_T}$GNOME_CFLAGS" >&6
 
3369
 
 
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
 
3375
        "`
 
3376
            echo "$as_me:$LINENO: result: $GNOME_LIBS" >&5
 
3377
echo "${ECHO_T}$GNOME_LIBS" >&6
 
3378
        else
 
3379
            GNOME_CFLAGS=""
 
3380
            GNOME_LIBS=""
 
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
 
3386
        "`
 
3387
            echo $GNOME_PKG_ERRORS
 
3388
        fi
 
3389
 
 
3390
 
 
3391
 
 
3392
     else
 
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"
 
3395
     fi
 
3396
  fi
 
3397
 
 
3398
  if test $succeeded = yes; then
 
3399
     :
 
3400
  else
 
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; }; }
 
3410
  fi
 
3411
 
 
3412
        GNOME_CFLAGS="$GNOME_CFLAGS -DHAVE_GNOME=1"
 
3413
fi
 
3414
 
 
3415
 
 
3416
 
 
3417
 
 
3418
 
 
3419
 
 
3420
if test "x$gnome" = "xtrue"; then
 
3421
  WITH_GNOME_TRUE=
 
3422
  WITH_GNOME_FALSE='#'
 
3423
else
 
3424
  WITH_GNOME_TRUE='#'
 
3425
  WITH_GNOME_FALSE=
 
3426
fi
 
3427
 
 
3428
 
 
3429
ac_ext=c
 
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
 
3438
  CPP=
 
3439
fi
 
3440
if test -z "$CPP"; then
 
3441
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3443
else
 
3444
      # Double quotes because CPP needs to be expanded
 
3445
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3446
    do
 
3447
      ac_preproc_ok=false
 
3448
for ac_c_preproc_warn_flag in '' yes
 
3449
do
 
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"
 
3458
/* confdefs.h.  */
 
3459
_ACEOF
 
3460
cat confdefs.h >>conftest.$ac_ext
 
3461
cat >>conftest.$ac_ext <<_ACEOF
 
3462
/* end confdefs.h.  */
 
3463
#ifdef __STDC__
 
3464
# include <limits.h>
 
3465
#else
 
3466
# include <assert.h>
 
3467
#endif
 
3468
                     Syntax error
 
3469
_ACEOF
 
3470
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3471
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3472
  ac_status=$?
 
3473
  grep -v '^ *+' conftest.er1 >conftest.err
 
3474
  rm -f conftest.er1
 
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
 
3480
  else
 
3481
    ac_cpp_err=
 
3482
  fi
 
3483
else
 
3484
  ac_cpp_err=yes
 
3485
fi
 
3486
if test -z "$ac_cpp_err"; then
 
3487
  :
 
3488
else
 
3489
  echo "$as_me: failed program was:" >&5
 
3490
sed 's/^/| /' conftest.$ac_ext >&5
 
3491
 
 
3492
  # Broken: fails on valid input.
 
3493
continue
 
3494
fi
 
3495
rm -f conftest.err conftest.$ac_ext
 
3496
 
 
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"
 
3501
/* confdefs.h.  */
 
3502
_ACEOF
 
3503
cat confdefs.h >>conftest.$ac_ext
 
3504
cat >>conftest.$ac_ext <<_ACEOF
 
3505
/* end confdefs.h.  */
 
3506
#include <ac_nonexistent.h>
 
3507
_ACEOF
 
3508
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3509
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3510
  ac_status=$?
 
3511
  grep -v '^ *+' conftest.er1 >conftest.err
 
3512
  rm -f conftest.er1
 
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
 
3518
  else
 
3519
    ac_cpp_err=
 
3520
  fi
 
3521
else
 
3522
  ac_cpp_err=yes
 
3523
fi
 
3524
if test -z "$ac_cpp_err"; then
 
3525
  # Broken: success on invalid input.
 
3526
continue
 
3527
else
 
3528
  echo "$as_me: failed program was:" >&5
 
3529
sed 's/^/| /' conftest.$ac_ext >&5
 
3530
 
 
3531
  # Passes both tests.
 
3532
ac_preproc_ok=:
 
3533
break
 
3534
fi
 
3535
rm -f conftest.err conftest.$ac_ext
 
3536
 
 
3537
done
 
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
 
3541
  break
 
3542
fi
 
3543
 
 
3544
    done
 
3545
    ac_cv_prog_CPP=$CPP
 
3546
 
 
3547
fi
 
3548
  CPP=$ac_cv_prog_CPP
 
3549
else
 
3550
  ac_cv_prog_CPP=$CPP
 
3551
fi
 
3552
echo "$as_me:$LINENO: result: $CPP" >&5
 
3553
echo "${ECHO_T}$CPP" >&6
 
3554
ac_preproc_ok=false
 
3555
for ac_c_preproc_warn_flag in '' yes
 
3556
do
 
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"
 
3565
/* confdefs.h.  */
 
3566
_ACEOF
 
3567
cat confdefs.h >>conftest.$ac_ext
 
3568
cat >>conftest.$ac_ext <<_ACEOF
 
3569
/* end confdefs.h.  */
 
3570
#ifdef __STDC__
 
3571
# include <limits.h>
 
3572
#else
 
3573
# include <assert.h>
 
3574
#endif
 
3575
                     Syntax error
 
3576
_ACEOF
 
3577
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3578
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3579
  ac_status=$?
 
3580
  grep -v '^ *+' conftest.er1 >conftest.err
 
3581
  rm -f conftest.er1
 
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
 
3587
  else
 
3588
    ac_cpp_err=
 
3589
  fi
 
3590
else
 
3591
  ac_cpp_err=yes
 
3592
fi
 
3593
if test -z "$ac_cpp_err"; then
 
3594
  :
 
3595
else
 
3596
  echo "$as_me: failed program was:" >&5
 
3597
sed 's/^/| /' conftest.$ac_ext >&5
 
3598
 
 
3599
  # Broken: fails on valid input.
 
3600
continue
 
3601
fi
 
3602
rm -f conftest.err conftest.$ac_ext
 
3603
 
 
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"
 
3608
/* confdefs.h.  */
 
3609
_ACEOF
 
3610
cat confdefs.h >>conftest.$ac_ext
 
3611
cat >>conftest.$ac_ext <<_ACEOF
 
3612
/* end confdefs.h.  */
 
3613
#include <ac_nonexistent.h>
 
3614
_ACEOF
 
3615
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3616
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3617
  ac_status=$?
 
3618
  grep -v '^ *+' conftest.er1 >conftest.err
 
3619
  rm -f conftest.er1
 
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
 
3625
  else
 
3626
    ac_cpp_err=
 
3627
  fi
 
3628
else
 
3629
  ac_cpp_err=yes
 
3630
fi
 
3631
if test -z "$ac_cpp_err"; then
 
3632
  # Broken: success on invalid input.
 
3633
continue
 
3634
else
 
3635
  echo "$as_me: failed program was:" >&5
 
3636
sed 's/^/| /' conftest.$ac_ext >&5
 
3637
 
 
3638
  # Passes both tests.
 
3639
ac_preproc_ok=:
 
3640
break
 
3641
fi
 
3642
rm -f conftest.err conftest.$ac_ext
 
3643
 
 
3644
done
 
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
 
3648
  :
 
3649
else
 
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; }; }
 
3655
fi
 
3656
 
 
3657
ac_ext=c
 
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
 
3662
 
 
3663
 
 
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
 
3668
else
 
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'
 
3672
    fi
 
3673
fi
 
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
 
3677
 
 
3678
 
 
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
 
3683
else
 
3684
  cat >conftest.$ac_ext <<_ACEOF
 
3685
#line $LINENO "configure"
 
3686
/* confdefs.h.  */
 
3687
_ACEOF
 
3688
cat confdefs.h >>conftest.$ac_ext
 
3689
cat >>conftest.$ac_ext <<_ACEOF
 
3690
/* end confdefs.h.  */
 
3691
#include <stdlib.h>
 
3692
#include <stdarg.h>
 
3693
#include <string.h>
 
3694
#include <float.h>
 
3695
 
 
3696
int
 
3697
main ()
 
3698
{
 
3699
 
 
3700
  ;
 
3701
  return 0;
 
3702
}
 
3703
_ACEOF
 
3704
rm -f conftest.$ac_objext
 
3705
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3706
  (eval $ac_compile) 2>&5
 
3707
  ac_status=$?
 
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
 
3712
  (eval $ac_try) 2>&5
 
3713
  ac_status=$?
 
3714
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3715
  (exit $ac_status); }; }; then
 
3716
  ac_cv_header_stdc=yes
 
3717
else
 
3718
  echo "$as_me: failed program was:" >&5
 
3719
sed 's/^/| /' conftest.$ac_ext >&5
 
3720
 
 
3721
ac_cv_header_stdc=no
 
3722
fi
 
3723
rm -f conftest.$ac_objext conftest.$ac_ext
 
3724
 
 
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"
 
3729
/* confdefs.h.  */
 
3730
_ACEOF
 
3731
cat confdefs.h >>conftest.$ac_ext
 
3732
cat >>conftest.$ac_ext <<_ACEOF
 
3733
/* end confdefs.h.  */
 
3734
#include <string.h>
 
3735
 
 
3736
_ACEOF
 
3737
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3738
  $EGREP "memchr" >/dev/null 2>&1; then
 
3739
  :
 
3740
else
 
3741
  ac_cv_header_stdc=no
 
3742
fi
 
3743
rm -f conftest*
 
3744
 
 
3745
fi
 
3746
 
 
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"
 
3751
/* confdefs.h.  */
 
3752
_ACEOF
 
3753
cat confdefs.h >>conftest.$ac_ext
 
3754
cat >>conftest.$ac_ext <<_ACEOF
 
3755
/* end confdefs.h.  */
 
3756
#include <stdlib.h>
 
3757
 
 
3758
_ACEOF
 
3759
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
3760
  $EGREP "free" >/dev/null 2>&1; then
 
3761
  :
 
3762
else
 
3763
  ac_cv_header_stdc=no
 
3764
fi
 
3765
rm -f conftest*
 
3766
 
 
3767
fi
 
3768
 
 
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
 
3772
  :
 
3773
else
 
3774
  cat >conftest.$ac_ext <<_ACEOF
 
3775
#line $LINENO "configure"
 
3776
/* confdefs.h.  */
 
3777
_ACEOF
 
3778
cat confdefs.h >>conftest.$ac_ext
 
3779
cat >>conftest.$ac_ext <<_ACEOF
 
3780
/* end confdefs.h.  */
 
3781
#include <ctype.h>
 
3782
#if ((' ' & 0x0FF) == 0x020)
 
3783
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
3784
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
3785
#else
 
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))
 
3791
#endif
 
3792
 
 
3793
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
3794
int
 
3795
main ()
 
3796
{
 
3797
  int i;
 
3798
  for (i = 0; i < 256; i++)
 
3799
    if (XOR (islower (i), ISLOWER (i))
 
3800
        || toupper (i) != TOUPPER (i))
 
3801
      exit(2);
 
3802
  exit (0);
 
3803
}
 
3804
_ACEOF
 
3805
rm -f conftest$ac_exeext
 
3806
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 
3807
  (eval $ac_link) 2>&5
 
3808
  ac_status=$?
 
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
 
3812
  (eval $ac_try) 2>&5
 
3813
  ac_status=$?
 
3814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3815
  (exit $ac_status); }; }; then
 
3816
  :
 
3817
else
 
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
 
3821
 
 
3822
( exit $ac_status )
 
3823
ac_cv_header_stdc=no
 
3824
fi
 
3825
rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3826
fi
 
3827
fi
 
3828
fi
 
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
 
3832
 
 
3833
cat >>confdefs.h <<\_ACEOF
 
3834
#define STDC_HEADERS 1
 
3835
_ACEOF
 
3836
 
 
3837
fi
 
3838
 
 
3839
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
3840
 
 
3841
 
 
3842
 
 
3843
 
 
3844
 
 
3845
 
 
3846
 
 
3847
 
 
3848
 
 
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
 
3851
do
 
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
 
3857
else
 
3858
  cat >conftest.$ac_ext <<_ACEOF
 
3859
#line $LINENO "configure"
 
3860
/* confdefs.h.  */
 
3861
_ACEOF
 
3862
cat confdefs.h >>conftest.$ac_ext
 
3863
cat >>conftest.$ac_ext <<_ACEOF
 
3864
/* end confdefs.h.  */
 
3865
$ac_includes_default
 
3866
 
 
3867
#include <$ac_header>
 
3868
_ACEOF
 
3869
rm -f conftest.$ac_objext
 
3870
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3871
  (eval $ac_compile) 2>&5
 
3872
  ac_status=$?
 
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
 
3877
  (eval $ac_try) 2>&5
 
3878
  ac_status=$?
 
3879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3880
  (exit $ac_status); }; }; then
 
3881
  eval "$as_ac_Header=yes"
 
3882
else
 
3883
  echo "$as_me: failed program was:" >&5
 
3884
sed 's/^/| /' conftest.$ac_ext >&5
 
3885
 
 
3886
eval "$as_ac_Header=no"
 
3887
fi
 
3888
rm -f conftest.$ac_objext conftest.$ac_ext
 
3889
fi
 
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
 
3895
_ACEOF
 
3896
 
 
3897
fi
 
3898
 
 
3899
done
 
3900
 
 
3901
 
 
3902
 
 
3903
for ac_header in unistd.h
 
3904
do
 
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
 
3911
fi
 
3912
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
3913
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
3914
else
 
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"
 
3920
/* confdefs.h.  */
 
3921
_ACEOF
 
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>
 
3927
_ACEOF
 
3928
rm -f conftest.$ac_objext
 
3929
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
3930
  (eval $ac_compile) 2>&5
 
3931
  ac_status=$?
 
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
 
3936
  (eval $ac_try) 2>&5
 
3937
  ac_status=$?
 
3938
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3939
  (exit $ac_status); }; }; then
 
3940
  ac_header_compiler=yes
 
3941
else
 
3942
  echo "$as_me: failed program was:" >&5
 
3943
sed 's/^/| /' conftest.$ac_ext >&5
 
3944
 
 
3945
ac_header_compiler=no
 
3946
fi
 
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
 
3950
 
 
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"
 
3956
/* confdefs.h.  */
 
3957
_ACEOF
 
3958
cat confdefs.h >>conftest.$ac_ext
 
3959
cat >>conftest.$ac_ext <<_ACEOF
 
3960
/* end confdefs.h.  */
 
3961
#include <$ac_header>
 
3962
_ACEOF
 
3963
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 
3964
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3965
  ac_status=$?
 
3966
  grep -v '^ *+' conftest.er1 >conftest.err
 
3967
  rm -f conftest.er1
 
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
 
3973
  else
 
3974
    ac_cpp_err=
 
3975
  fi
 
3976
else
 
3977
  ac_cpp_err=yes
 
3978
fi
 
3979
if test -z "$ac_cpp_err"; then
 
3980
  ac_header_preproc=yes
 
3981
else
 
3982
  echo "$as_me: failed program was:" >&5
 
3983
sed 's/^/| /' conftest.$ac_ext >&5
 
3984
 
 
3985
  ac_header_preproc=no
 
3986
fi
 
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
 
3990
 
 
3991
# So?  What about this header?
 
3992
case $ac_header_compiler:$ac_header_preproc in
 
3993
  yes:no )
 
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;}
 
3998
    (
 
3999
      cat <<\_ASBOX
 
4000
## ------------------------------------ ##
 
4001
## Report this to bug-autoconf@gnu.org. ##
 
4002
## ------------------------------------ ##
 
4003
_ASBOX
 
4004
    ) |
 
4005
      sed "s/^/$as_me: WARNING:     /" >&2
 
4006
    ;;
 
4007
  no:yes )
 
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;}
 
4014
    (
 
4015
      cat <<\_ASBOX
 
4016
## ------------------------------------ ##
 
4017
## Report this to bug-autoconf@gnu.org. ##
 
4018
## ------------------------------------ ##
 
4019
_ASBOX
 
4020
    ) |
 
4021
      sed "s/^/$as_me: WARNING:     /" >&2
 
4022
    ;;
 
4023
esac
 
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
 
4028
else
 
4029
  eval "$as_ac_Header=$ac_header_preproc"
 
4030
fi
 
4031
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 
4032
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 
4033
 
 
4034
fi
 
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
 
4038
_ACEOF
 
4039
 
 
4040
fi
 
4041
 
 
4042
done
 
4043
 
 
4044
 
 
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
 
4049
else
 
4050
  cat >conftest.$ac_ext <<_ACEOF
 
4051
#line $LINENO "configure"
 
4052
/* confdefs.h.  */
 
4053
_ACEOF
 
4054
cat confdefs.h >>conftest.$ac_ext
 
4055
cat >>conftest.$ac_ext <<_ACEOF
 
4056
/* end confdefs.h.  */
 
4057
 
 
4058
int
 
4059
main ()
 
4060
{
 
4061
/* FIXME: Include the comments suggested by Paul. */
 
4062
#ifndef __cplusplus
 
4063
  /* Ultrix mips cc rejects this.  */
 
4064
  typedef int charset[2];
 
4065
  const charset x;
 
4066
  /* SunOS 4.1.1 cc rejects this.  */
 
4067
  char const *const *ccp;
 
4068
  char **p;
 
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
 
4075
     expression */
 
4076
  const char *g = "string";
 
4077
  ccp = &g + (g ? g-g : 0);
 
4078
  /* HPUX 7.0 cc rejects these. */
 
4079
  ++ccp;
 
4080
  p = (char**) ccp;
 
4081
  ccp = (char const *const *) p;
 
4082
  { /* SCO 3.2v4 cc rejects this.  */
 
4083
    char *t;
 
4084
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4085
 
 
4086
    *t++ = 0;
 
4087
  }
 
4088
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4089
    int x[] = {25, 17};
 
4090
    const int *foo = &x[0];
 
4091
    ++foo;
 
4092
  }
 
4093
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4094
    typedef const int *iptr;
 
4095
    iptr p = 0;
 
4096
    ++p;
 
4097
  }
 
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;
 
4102
  }
 
4103
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4104
    const int foo = 10;
 
4105
  }
 
4106
#endif
 
4107
 
 
4108
  ;
 
4109
  return 0;
 
4110
}
 
4111
_ACEOF
 
4112
rm -f conftest.$ac_objext
 
4113
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4114
  (eval $ac_compile) 2>&5
 
4115
  ac_status=$?
 
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
 
4120
  (eval $ac_try) 2>&5
 
4121
  ac_status=$?
 
4122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4123
  (exit $ac_status); }; }; then
 
4124
  ac_cv_c_const=yes
 
4125
else
 
4126
  echo "$as_me: failed program was:" >&5
 
4127
sed 's/^/| /' conftest.$ac_ext >&5
 
4128
 
 
4129
ac_cv_c_const=no
 
4130
fi
 
4131
rm -f conftest.$ac_objext conftest.$ac_ext
 
4132
fi
 
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
 
4136
 
 
4137
cat >>confdefs.h <<\_ACEOF
 
4138
#define const
 
4139
_ACEOF
 
4140
 
 
4141
fi
 
4142
 
 
4143
 
 
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
 
4148
else
 
4149
  cat >conftest.$ac_ext <<_ACEOF
 
4150
#line $LINENO "configure"
 
4151
/* confdefs.h.  */
 
4152
_ACEOF
 
4153
cat confdefs.h >>conftest.$ac_ext
 
4154
cat >>conftest.$ac_ext <<_ACEOF
 
4155
/* end confdefs.h.  */
 
4156
#include <sys/types.h>
 
4157
#include <signal.h>
 
4158
#ifdef signal
 
4159
# undef signal
 
4160
#endif
 
4161
#ifdef __cplusplus
 
4162
extern "C" void (*signal (int, void (*)(int)))(int);
 
4163
#else
 
4164
void (*signal ()) ();
 
4165
#endif
 
4166
 
 
4167
int
 
4168
main ()
 
4169
{
 
4170
int i;
 
4171
  ;
 
4172
  return 0;
 
4173
}
 
4174
_ACEOF
 
4175
rm -f conftest.$ac_objext
 
4176
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 
4177
  (eval $ac_compile) 2>&5
 
4178
  ac_status=$?
 
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
 
4183
  (eval $ac_try) 2>&5
 
4184
  ac_status=$?
 
4185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4186
  (exit $ac_status); }; }; then
 
4187
  ac_cv_type_signal=void
 
4188
else
 
4189
  echo "$as_me: failed program was:" >&5
 
4190
sed 's/^/| /' conftest.$ac_ext >&5
 
4191
 
 
4192
ac_cv_type_signal=int
 
4193
fi
 
4194
rm -f conftest.$ac_objext conftest.$ac_ext
 
4195
fi
 
4196
echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
4197
echo "${ECHO_T}$ac_cv_type_signal" >&6
 
4198
 
 
4199
cat >>confdefs.h <<_ACEOF
 
4200
#define RETSIGTYPE $ac_cv_type_signal
 
4201
_ACEOF
 
4202
 
 
4203
 
 
4204
 
 
4205
 
 
4206
for ac_func in mkdir strtol
 
4207
do
 
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
 
4213
else
 
4214
  cat >conftest.$ac_ext <<_ACEOF
 
4215
#line $LINENO "configure"
 
4216
/* confdefs.h.  */
 
4217
_ACEOF
 
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.  */
 
4225
#ifdef __STDC__
 
4226
# include <limits.h>
 
4227
#else
 
4228
# include <assert.h>
 
4229
#endif
 
4230
/* Override any gcc2 internal prototype to avoid an error.  */
 
4231
#ifdef __cplusplus
 
4232
extern "C"
 
4233
{
 
4234
#endif
 
4235
/* We use char because int might match the return type of a gcc2
 
4236
   builtin and then its argument prototype would still apply.  */
 
4237
char $ac_func ();
 
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)
 
4242
choke me
 
4243
#else
 
4244
char (*f) () = $ac_func;
 
4245
#endif
 
4246
#ifdef __cplusplus
 
4247
}
 
4248
#endif
 
4249
 
 
4250
int
 
4251
main ()
 
4252
{
 
4253
return f != $ac_func;
 
4254
  ;
 
4255
  return 0;
 
4256
}
 
4257
_ACEOF
 
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
 
4261
  ac_status=$?
 
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
 
4266
  (eval $ac_try) 2>&5
 
4267
  ac_status=$?
 
4268
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4269
  (exit $ac_status); }; }; then
 
4270
  eval "$as_ac_var=yes"
 
4271
else
 
4272
  echo "$as_me: failed program was:" >&5
 
4273
sed 's/^/| /' conftest.$ac_ext >&5
 
4274
 
 
4275
eval "$as_ac_var=no"
 
4276
fi
 
4277
rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
 
4278
fi
 
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
 
4284
_ACEOF
 
4285
 
 
4286
fi
 
4287
done
 
4288
 
 
4289
 
 
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.
 
4297
#
 
4298
# config.status only pays attention to the cache file if you give it
 
4299
# the --recheck option to rerun configure.
 
4300
#
 
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
 
4303
# following values.
 
4304
 
 
4305
_ACEOF
 
4306
 
 
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.
 
4312
{
 
4313
  (set) 2>&1 |
 
4314
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
 
4315
    *ac_space=\ *)
 
4316
      # `set' does not quote correctly, so add quotes (double-quote
 
4317
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
4318
      sed -n \
 
4319
        "s/'/'\\\\''/g;
 
4320
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
4321
      ;;
 
4322
    *)
 
4323
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
4324
      sed -n \
 
4325
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
4326
      ;;
 
4327
    esac;
 
4328
} |
 
4329
  sed '
 
4330
     t clear
 
4331
     : clear
 
4332
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
4333
     t end
 
4334
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
4335
     : end' >>confcache
 
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
 
4340
  else
 
4341
    echo "not updating unwritable cache $cache_file"
 
4342
  fi
 
4343
fi
 
4344
rm -f confcache
 
4345
 
 
4346
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
4347
# Let make expand exec_prefix.
 
4348
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
4349
 
 
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}:*/:/;
 
4358
s/:*@srcdir@:*/:/;
 
4359
s/^\([^=]*=[    ]*\):*/\1/;
 
4360
s/:*$//;
 
4361
s/^[^=]*=[      ]*$//;
 
4362
}'
 
4363
fi
 
4364
 
 
4365
DEFS=-DHAVE_CONFIG_H
 
4366
 
 
4367
ac_libobjs=
 
4368
ac_ltlibobjs=
 
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$//'`
 
4373
  # 2. Add them.
 
4374
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
 
4375
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
 
4376
done
 
4377
LIBOBJS=$ac_libobjs
 
4378
 
 
4379
LTLIBOBJS=$ac_ltlibobjs
 
4380
 
 
4381
 
 
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; }; }
 
4388
fi
 
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; }; }
 
4395
fi
 
4396
 
 
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
 
4403
#! $SHELL
 
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.
 
4408
 
 
4409
debug=false
 
4410
ac_cs_recheck=false
 
4411
ac_cs_silent=false
 
4412
SHELL=\${CONFIG_SHELL-$SHELL}
 
4413
_ACEOF
 
4414
 
 
4415
cat >>$CONFIG_STATUS <<\_ACEOF
 
4416
## --------------------- ##
 
4417
## M4sh Initialization.  ##
 
4418
## --------------------- ##
 
4419
 
 
4420
# Be Bourne compatible
 
4421
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
4422
  emulate sh
 
4423
  NULLCMD=:
 
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
 
4428
  set -o posix
 
4429
fi
 
4430
 
 
4431
# Support unset when possible.
 
4432
if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
 
4433
  as_unset=unset
 
4434
else
 
4435
  as_unset=false
 
4436
fi
 
4437
 
 
4438
 
 
4439
# Work around bugs in pre-3.0 UWIN ksh.
 
4440
$as_unset ENV MAIL MAILPATH
 
4441
PS1='$ '
 
4442
PS2='> '
 
4443
PS4='+ '
 
4444
 
 
4445
# NLS nuisances.
 
4446
for as_var in \
 
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
 
4450
do
 
4451
  if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
4452
    eval $as_var=C; export $as_var
 
4453
  else
 
4454
    $as_unset $as_var
 
4455
  fi
 
4456
done
 
4457
 
 
4458
# Required to use basename.
 
4459
if expr a : '\(a\)' >/dev/null 2>&1; then
 
4460
  as_expr=expr
 
4461
else
 
4462
  as_expr=false
 
4463
fi
 
4464
 
 
4465
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
4466
  as_basename=basename
 
4467
else
 
4468
  as_basename=false
 
4469
fi
 
4470
 
 
4471
 
 
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 ||
 
4478
echo X/"$0" |
 
4479
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
 
4480
          /^X\/\(\/\/\)$/{ s//\1/; q; }
 
4481
          /^X\/\(\/\).*/{ s//\1/; q; }
 
4482
          s/.*/./; q'`
 
4483
 
 
4484
 
 
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
 
4492
 
 
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
 
4497
  chmod +x conf$$.sh
 
4498
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
4499
    PATH_SEPARATOR=';'
 
4500
  else
 
4501
    PATH_SEPARATOR=:
 
4502
  fi
 
4503
  rm -f conf$$.sh
 
4504
fi
 
4505
 
 
4506
 
 
4507
  as_lineno_1=$LINENO
 
4508
  as_lineno_2=$LINENO
 
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
 
4513
  # relative or not.
 
4514
  case $0 in
 
4515
    *[\\/]* ) as_myself=$0 ;;
 
4516
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4517
for as_dir in $PATH
 
4518
do
 
4519
  IFS=$as_save_IFS
 
4520
  test -z "$as_dir" && as_dir=.
 
4521
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
4522
done
 
4523
 
 
4524
       ;;
 
4525
  esac
 
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
 
4529
    as_myself=$0
 
4530
  fi
 
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; }; }
 
4535
  fi
 
4536
  case $CONFIG_SHELL in
 
4537
  '')
 
4538
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4539
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
4540
do
 
4541
  IFS=$as_save_IFS
 
4542
  test -z "$as_dir" && as_dir=.
 
4543
  for as_base in sh bash ksh sh5; do
 
4544
         case $as_dir in
 
4545
         /*)
 
4546
           if ("$as_dir/$as_base" -c '
 
4547
  as_lineno_1=$LINENO
 
4548
  as_lineno_2=$LINENO
 
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
 
4555
             export CONFIG_SHELL
 
4556
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
 
4557
           fi;;
 
4558
         esac
 
4559
       done
 
4560
done
 
4561
;;
 
4562
  esac
 
4563
 
 
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 |
 
4573
    sed '
 
4574
      N
 
4575
      s,$,-,
 
4576
      : loop
 
4577
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
4578
      t loop
 
4579
      s,-$,,
 
4580
      s,^['$as_cr_digits']*\n,,
 
4581
    ' >$as_me.lineno &&
 
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; }; }
 
4586
 
 
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).
 
4590
  . ./$as_me.lineno
 
4591
  # Exit status is that of the last command.
 
4592
  exit
 
4593
}
 
4594
 
 
4595
 
 
4596
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
 
4597
  *c*,-n*) ECHO_N= ECHO_C='
 
4598
' ECHO_T='      ' ;;
 
4599
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
 
4600
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
 
4601
esac
 
4602
 
 
4603
if expr a : '\(a\)' >/dev/null 2>&1; then
 
4604
  as_expr=expr
 
4605
else
 
4606
  as_expr=false
 
4607
fi
 
4608
 
 
4609
rm -f conf$$ conf$$.exe conf$$.file
 
4610
echo >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
 
4616
    as_ln_s='cp -p'
 
4617
  else
 
4618
    as_ln_s='ln -s'
 
4619
  fi
 
4620
elif ln conf$$.file conf$$ 2>/dev/null; then
 
4621
  as_ln_s=ln
 
4622
else
 
4623
  as_ln_s='cp -p'
 
4624
fi
 
4625
rm -f conf$$ conf$$.exe conf$$.file
 
4626
 
 
4627
if mkdir -p . 2>/dev/null; then
 
4628
  as_mkdir_p=:
 
4629
else
 
4630
  as_mkdir_p=false
 
4631
fi
 
4632
 
 
4633
as_executable_p="test -f"
 
4634
 
 
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"
 
4637
 
 
4638
# Sed expression to map a string onto a valid variable name.
 
4639
as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
 
4640
 
 
4641
 
 
4642
# IFS
 
4643
# We need space, tab and new line, in precisely that order.
 
4644
as_nl='
 
4645
'
 
4646
IFS="   $as_nl"
 
4647
 
 
4648
# CDPATH.
 
4649
$as_unset CDPATH
 
4650
 
 
4651
exec 6>&1
 
4652
 
 
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.
 
4656
exec 5>>config.log
 
4657
{
 
4658
  echo
 
4659
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
4660
## Running $as_me. ##
 
4661
_ASBOX
 
4662
} >&5
 
4663
cat >&5 <<_CSEOF
 
4664
 
 
4665
This file was extended by $as_me, which was
 
4666
generated by GNU Autoconf 2.57.  Invocation command line was
 
4667
 
 
4668
  CONFIG_FILES    = $CONFIG_FILES
 
4669
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
4670
  CONFIG_LINKS    = $CONFIG_LINKS
 
4671
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
4672
  $ $0 $@
 
4673
 
 
4674
_CSEOF
 
4675
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
 
4676
echo >&5
 
4677
_ACEOF
 
4678
 
 
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
 
4682
fi
 
4683
 
 
4684
if test -n "$ac_config_headers"; then
 
4685
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
 
4686
fi
 
4687
 
 
4688
if test -n "$ac_config_links"; then
 
4689
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
 
4690
fi
 
4691
 
 
4692
if test -n "$ac_config_commands"; then
 
4693
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
 
4694
fi
 
4695
 
 
4696
cat >>$CONFIG_STATUS <<\_ACEOF
 
4697
 
 
4698
ac_cs_usage="\
 
4699
\`$as_me' instantiates files from templates according to the
 
4700
current configuration.
 
4701
 
 
4702
Usage: $0 [OPTIONS] [FILE]...
 
4703
 
 
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
 
4713
 
 
4714
Configuration files:
 
4715
$config_files
 
4716
 
 
4717
Configuration headers:
 
4718
$config_headers
 
4719
 
 
4720
Configuration commands:
 
4721
$config_commands
 
4722
 
 
4723
Report bugs to <bug-autoconf@gnu.org>."
 
4724
_ACEOF
 
4725
 
 
4726
cat >>$CONFIG_STATUS <<_ACEOF
 
4727
ac_cs_version="\\
 
4728
config.status
 
4729
configured by $0, generated by GNU Autoconf 2.57,
 
4730
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
4731
 
 
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."
 
4736
srcdir=$srcdir
 
4737
INSTALL="$INSTALL"
 
4738
_ACEOF
 
4739
 
 
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.
 
4743
ac_need_defaults=:
 
4744
while test $# != 0
 
4745
do
 
4746
  case $1 in
 
4747
  --*=*)
 
4748
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
 
4749
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
4750
    ac_shift=:
 
4751
    ;;
 
4752
  -*)
 
4753
    ac_option=$1
 
4754
    ac_optarg=$2
 
4755
    ac_shift=shift
 
4756
    ;;
 
4757
  *) # This is not an option, so the user has probably given explicit
 
4758
     # arguments.
 
4759
     ac_option=$1
 
4760
     ac_need_defaults=false;;
 
4761
  esac
 
4762
 
 
4763
  case $ac_option in
 
4764
  # Handling of the options.
 
4765
_ACEOF
 
4766
cat >>$CONFIG_STATUS <<\_ACEOF
 
4767
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
4768
    ac_cs_recheck=: ;;
 
4769
  --version | --vers* | -V )
 
4770
    echo "$ac_cs_version"; exit 0 ;;
 
4771
  --he | --h)
 
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 )
 
4781
    debug=: ;;
 
4782
  --file | --fil | --fi | --f )
 
4783
    $ac_shift
 
4784
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
4785
    ac_need_defaults=false;;
 
4786
  --header | --heade | --head | --hea )
 
4787
    $ac_shift
 
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)
 
4792
    ac_cs_silent=: ;;
 
4793
 
 
4794
  # This is an error.
 
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; }; } ;;
 
4800
 
 
4801
  *) ac_config_targets="$ac_config_targets $1" ;;
 
4802
 
 
4803
  esac
 
4804
  shift
 
4805
done
 
4806
 
 
4807
ac_configure_extra_args=
 
4808
 
 
4809
if $ac_cs_silent; then
 
4810
  exec 6>/dev/null
 
4811
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
4812
fi
 
4813
 
 
4814
_ACEOF
 
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
 
4819
fi
 
4820
 
 
4821
_ACEOF
 
4822
 
 
4823
cat >>$CONFIG_STATUS <<_ACEOF
 
4824
#
 
4825
# INIT-COMMANDS section.
 
4826
#
 
4827
 
 
4828
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
4829
 
 
4830
_ACEOF
 
4831
 
 
4832
 
 
4833
 
 
4834
cat >>$CONFIG_STATUS <<\_ACEOF
 
4835
for ac_config_target in $ac_config_targets
 
4836
do
 
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; }; };;
 
4849
  esac
 
4850
done
 
4851
 
 
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
 
4860
fi
 
4861
 
 
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.
 
4866
$debug ||
 
4867
{
 
4868
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
4869
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
4870
}
 
4871
 
 
4872
# Create a (secure) tmp directory for tmp files.
 
4873
 
 
4874
{
 
4875
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
4876
  test -n "$tmp" && test -d "$tmp"
 
4877
}  ||
 
4878
{
 
4879
  tmp=./confstat$$-$RANDOM
 
4880
  (umask 077 && mkdir $tmp)
 
4881
} ||
 
4882
{
 
4883
   echo "$me: cannot create a temporary directory in ." >&2
 
4884
   { (exit 1); exit 1; }
 
4885
}
 
4886
 
 
4887
_ACEOF
 
4888
 
 
4889
cat >>$CONFIG_STATUS <<_ACEOF
 
4890
 
 
4891
#
 
4892
# CONFIG_FILES section.
 
4893
#
 
4894
 
 
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
 
4926
s,@DEFS@,$DEFS,;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
 
4930
s,@LIBS@,$LIBS,;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
 
4935
s,@host@,$host,;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
 
4958
s,@AWK@,$AWK,;t t
 
4959
s,@SET_MAKE@,$SET_MAKE,;t t
 
4960
s,@CC@,$CC,;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
 
4982
s,@CPP@,$CPP,;t t
 
4983
s,@EGREP@,$EGREP,;t t
 
4984
s,@LIBOBJS@,$LIBOBJS,;t t
 
4985
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 
4986
CEOF
 
4987
 
 
4988
_ACEOF
 
4989
 
 
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.
 
4993
  ac_max_sed_lines=48
 
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.
 
4997
  ac_more_lines=:
 
4998
  ac_sed_cmds=
 
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
 
5002
    else
 
5003
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
 
5004
    fi
 
5005
    if test ! -s $tmp/subs.frag; then
 
5006
      ac_more_lines=false
 
5007
    else
 
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.
 
5012
      (echo ':t
 
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"
 
5016
      else
 
5017
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
 
5018
      fi
 
5019
      ac_sed_frag=`expr $ac_sed_frag + 1`
 
5020
      ac_beg=$ac_end
 
5021
      ac_end=`expr $ac_end + $ac_max_sed_lines`
 
5022
    fi
 
5023
  done
 
5024
  if test -z "$ac_sed_cmds"; then
 
5025
    ac_sed_cmds=cat
 
5026
  fi
 
5027
fi # test -n "$CONFIG_FILES"
 
5028
 
 
5029
_ACEOF
 
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".
 
5033
  case $ac_file in
 
5034
  - | *:- | *:-:* ) # input from stdin
 
5035
        cat >$tmp/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 ;;
 
5041
  esac
 
5042
 
 
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 ||
 
5050
echo X"$ac_file" |
 
5051
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5052
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5053
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5054
          /^X\(\/\).*/{ s//\1/; q; }
 
5055
          s/.*/./; q'`
 
5056
  { if $as_mkdir_p; then
 
5057
    mkdir -p "$ac_dir"
 
5058
  else
 
5059
    as_dir="$ac_dir"
 
5060
    as_dirs=
 
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 ||
 
5069
echo X"$as_dir" |
 
5070
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5071
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5072
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5073
          /^X\(\/\).*/{ s//\1/; q; }
 
5074
          s/.*/./; q'`
 
5075
    done
 
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; }; }; }
 
5080
 
 
5081
  ac_builddir=.
 
5082
 
 
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'`
 
5087
else
 
5088
  ac_dir_suffix= ac_top_builddir=
 
5089
fi
 
5090
 
 
5091
case $srcdir in
 
5092
  .)  # No --srcdir option.  We are building in place.
 
5093
    ac_srcdir=.
 
5094
    if test -z "$ac_top_builddir"; then
 
5095
       ac_top_srcdir=.
 
5096
    else
 
5097
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
5098
    fi ;;
 
5099
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
5100
    ac_srcdir=$srcdir$ac_dir_suffix;
 
5101
    ac_top_srcdir=$srcdir ;;
 
5102
  *) # Relative path.
 
5103
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
5104
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
5105
esac
 
5106
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
5107
# absolute.
 
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`
 
5112
 
 
5113
 
 
5114
  case $INSTALL in
 
5115
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
5116
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
 
5117
  esac
 
5118
 
 
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;}
 
5122
    rm -f "$ac_file"
 
5123
  fi
 
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
 
5128
    configure_input=
 
5129
  else
 
5130
    configure_input="$ac_file.  "
 
5131
  fi
 
5132
  configure_input=$configure_input"Generated from `echo $ac_file_in |
 
5133
                                     sed 's,.*/,,'` by configure."
 
5134
 
 
5135
  # First look for the input files in the build tree, otherwise in the
 
5136
  # src tree.
 
5137
  ac_file_inputs=`IFS=:
 
5138
    for f in $ac_file_in; do
 
5139
      case $f in
 
5140
      -) echo $tmp/stdin ;;
 
5141
      [\\/$]*)
 
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; }; }
 
5146
         echo $f;;
 
5147
      *) # Relative
 
5148
         if test -f "$f"; then
 
5149
           # Build tree
 
5150
           echo $f
 
5151
         elif test -f "$srcdir/$f"; then
 
5152
           # Source tree
 
5153
           echo $srcdir/$f
 
5154
         else
 
5155
           # /dev/null tree
 
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; }; }
 
5159
         fi;;
 
5160
      esac
 
5161
    done` || { (exit 1); exit 1; }
 
5162
_ACEOF
 
5163
cat >>$CONFIG_STATUS <<_ACEOF
 
5164
  sed "$ac_vpsub
 
5165
$extrasub
 
5166
_ACEOF
 
5167
cat >>$CONFIG_STATUS <<\_ACEOF
 
5168
:t
 
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
 
5181
  rm -f $tmp/stdin
 
5182
  if test x"$ac_file" != x-; then
 
5183
    mv $tmp/out $ac_file
 
5184
  else
 
5185
    cat $tmp/out
 
5186
    rm -f $tmp/out
 
5187
  fi
 
5188
 
 
5189
done
 
5190
_ACEOF
 
5191
cat >>$CONFIG_STATUS <<\_ACEOF
 
5192
 
 
5193
#
 
5194
# CONFIG_HEADER section.
 
5195
#
 
5196
 
 
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.
 
5199
#
 
5200
# ac_d sets the value in "#define NAME VALUE" lines.
 
5201
ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
 
5202
ac_dB='[        ].*$,\1#\2'
 
5203
ac_dC=' '
 
5204
ac_dD=',;t'
 
5205
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
 
5206
ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
 
5207
ac_uB='$,\1#\2define\3'
 
5208
ac_uC=' '
 
5209
ac_uD=',;t'
 
5210
 
 
5211
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
 
5212
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
 
5213
  case $ac_file in
 
5214
  - | *:- | *:-:* ) # input from stdin
 
5215
        cat >$tmp/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 ;;
 
5221
  esac
 
5222
 
 
5223
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
 
5224
echo "$as_me: creating $ac_file" >&6;}
 
5225
 
 
5226
  # First look for the input files in the build tree, otherwise in the
 
5227
  # src tree.
 
5228
  ac_file_inputs=`IFS=:
 
5229
    for f in $ac_file_in; do
 
5230
      case $f in
 
5231
      -) echo $tmp/stdin ;;
 
5232
      [\\/$]*)
 
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; }; }
 
5237
         echo $f;;
 
5238
      *) # Relative
 
5239
         if test -f "$f"; then
 
5240
           # Build tree
 
5241
           echo $f
 
5242
         elif test -f "$srcdir/$f"; then
 
5243
           # Source tree
 
5244
           echo $srcdir/$f
 
5245
         else
 
5246
           # /dev/null tree
 
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; }; }
 
5250
         fi;;
 
5251
      esac
 
5252
    done` || { (exit 1); exit 1; }
 
5253
  # Remove the trailing spaces.
 
5254
  sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
 
5255
 
 
5256
_ACEOF
 
5257
 
 
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
 
5264
# in config.status.
 
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.
 
5268
#
 
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
 
5273
s/[\\&,]/\\&/g
 
5274
s,[\\$`],\\&,g
 
5275
t clear
 
5276
: clear
 
5277
s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
 
5278
t end
 
5279
s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
 
5280
: end
 
5281
_ACEOF
 
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
 
5288
 
 
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]*,/* & */,
 
5294
_ACEOF
 
5295
 
 
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
 
5302
rm -f conftest.tail
 
5303
while grep . conftest.defines >/dev/null
 
5304
do
 
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
 
5313
  echo 'CEOF
 
5314
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
 
5315
  rm -f $tmp/in
 
5316
  mv $tmp/out $tmp/in
 
5317
' >>$CONFIG_STATUS
 
5318
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
 
5319
  rm -f conftest.defines
 
5320
  mv conftest.tail conftest.defines
 
5321
done
 
5322
rm -f conftest.defines
 
5323
echo '  fi # grep' >>$CONFIG_STATUS
 
5324
echo >>$CONFIG_STATUS
 
5325
 
 
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
 
5329
rm -f conftest.tail
 
5330
while grep . conftest.undefs >/dev/null
 
5331
do
 
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
 
5340
  echo 'CEOF
 
5341
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
 
5342
  rm -f $tmp/in
 
5343
  mv $tmp/out $tmp/in
 
5344
' >>$CONFIG_STATUS
 
5345
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
 
5346
  rm -f conftest.undefs
 
5347
  mv conftest.tail conftest.undefs
 
5348
done
 
5349
rm -f conftest.undefs
 
5350
 
 
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
 
5357
  else
 
5358
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
 
5359
  fi
 
5360
  cat $tmp/in >>$tmp/config.h
 
5361
  rm -f $tmp/in
 
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;}
 
5366
    else
 
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 ||
 
5373
echo X"$ac_file" |
 
5374
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5375
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5376
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5377
          /^X\(\/\).*/{ s//\1/; q; }
 
5378
          s/.*/./; q'`
 
5379
      { if $as_mkdir_p; then
 
5380
    mkdir -p "$ac_dir"
 
5381
  else
 
5382
    as_dir="$ac_dir"
 
5383
    as_dirs=
 
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 ||
 
5392
echo X"$as_dir" |
 
5393
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5394
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5395
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5396
          /^X\(\/\).*/{ s//\1/; q; }
 
5397
          s/.*/./; q'`
 
5398
    done
 
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; }; }; }
 
5403
 
 
5404
      rm -f $ac_file
 
5405
      mv $tmp/config.h $ac_file
 
5406
    fi
 
5407
  else
 
5408
    cat $tmp/config.h
 
5409
    rm -f $tmp/config.h
 
5410
  fi
 
5411
  # Run the commands associated with the file.
 
5412
  case $ac_file in
 
5413
    config.h ) # update the timestamp
 
5414
echo 'timestamp for config.h' >"./stamp-h1"
 
5415
 ;;
 
5416
  esac
 
5417
done
 
5418
_ACEOF
 
5419
cat >>$CONFIG_STATUS <<\_ACEOF
 
5420
 
 
5421
#
 
5422
# CONFIG_COMMANDS section.
 
5423
#
 
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 ||
 
5433
echo X"$ac_dest" |
 
5434
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5435
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5436
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5437
          /^X\(\/\).*/{ s//\1/; q; }
 
5438
          s/.*/./; q'`
 
5439
  ac_builddir=.
 
5440
 
 
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'`
 
5445
else
 
5446
  ac_dir_suffix= ac_top_builddir=
 
5447
fi
 
5448
 
 
5449
case $srcdir in
 
5450
  .)  # No --srcdir option.  We are building in place.
 
5451
    ac_srcdir=.
 
5452
    if test -z "$ac_top_builddir"; then
 
5453
       ac_top_srcdir=.
 
5454
    else
 
5455
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
 
5456
    fi ;;
 
5457
  [\\/]* | ?:[\\/]* )  # Absolute path.
 
5458
    ac_srcdir=$srcdir$ac_dir_suffix;
 
5459
    ac_top_srcdir=$srcdir ;;
 
5460
  *) # Relative path.
 
5461
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
 
5462
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
 
5463
esac
 
5464
# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
 
5465
# absolute.
 
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`
 
5470
 
 
5471
 
 
5472
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
 
5473
echo "$as_me: executing $ac_dest commands" >&6;}
 
5474
  case $ac_dest in
 
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 ||
 
5491
echo X"$mf" |
 
5492
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5493
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5494
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5495
          /^X\(\/\).*/{ s//\1/; q; }
 
5496
          s/.*/./; q'`
 
5497
  else
 
5498
    continue
 
5499
  fi
 
5500
  grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
 
5501
  # Extract the definition of DEP_FILES from the Makefile without
 
5502
  # running `make'.
 
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 = .*\\\\$/ {
 
5512
      s/^DEP_FILES = //
 
5513
      :loop
 
5514
        s/\\\\$//
 
5515
        p
 
5516
        n
 
5517
        /\\\\$/ b loop
 
5518
      p
 
5519
    }
 
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 ||
 
5530
echo X"$file" |
 
5531
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5532
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5533
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5534
          /^X\(\/\).*/{ s//\1/; q; }
 
5535
          s/.*/./; q'`
 
5536
    { if $as_mkdir_p; then
 
5537
    mkdir -p $dirpart/$fdir
 
5538
  else
 
5539
    as_dir=$dirpart/$fdir
 
5540
    as_dirs=
 
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 ||
 
5549
echo X"$as_dir" |
 
5550
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
 
5551
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
 
5552
          /^X\(\/\/\)$/{ s//\1/; q; }
 
5553
          /^X\(\/\).*/{ s//\1/; q; }
 
5554
          s/.*/./; q'`
 
5555
    done
 
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; }; }; }
 
5560
 
 
5561
    # echo "creating $dirpart/$file"
 
5562
    echo '# dummy' > "$dirpart/$file"
 
5563
  done
 
5564
done
 
5565
 ;;
 
5566
  esac
 
5567
done
 
5568
_ACEOF
 
5569
 
 
5570
cat >>$CONFIG_STATUS <<\_ACEOF
 
5571
 
 
5572
{ (exit 0); exit 0; }
 
5573
_ACEOF
 
5574
chmod +x $CONFIG_STATUS
 
5575
ac_clean_files=$ac_clean_files_save
 
5576
 
 
5577
 
 
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
 
5587
  ac_cs_success=:
 
5588
  ac_config_status_args=
 
5589
  test "$silent" = yes &&
 
5590
    ac_config_status_args="$ac_config_status_args --quiet"
 
5591
  exec 5>/dev/null
 
5592
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
5593
  exec 5>>config.log
 
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; }
 
5597
fi
 
5598
 
 
5599
 
 
5600
echo " "
 
5601
 
 
5602
if test "$enable_gtk2" = "yes" ; then
 
5603
        echo "$as_me:$LINENO: result:     GTK2 enabled." >&5
 
5604
echo "${ECHO_T}    GTK2 enabled." >&6
 
5605
else
 
5606
        echo "$as_me:$LINENO: result:     GTK2 disabled." >&5
 
5607
echo "${ECHO_T}    GTK2 disabled." >&6
 
5608
fi
 
5609
 
 
5610
if test "$enable_sdl" = "yes" ; then
 
5611
        echo "$as_me:$LINENO: result:      SDL enabled." >&5
 
5612
echo "${ECHO_T}     SDL enabled." >&6
 
5613
else
 
5614
        echo "$as_me:$LINENO: result:      SDL disabled." >&5
 
5615
echo "${ECHO_T}     SDL disabled." >&6
 
5616
fi
 
5617
if test "$enable_gnome" = "yes" ; then
 
5618
        echo "$as_me:$LINENO: result:    GNOME enabled." >&5
 
5619
echo "${ECHO_T}   GNOME enabled." >&6
 
5620
else
 
5621
        echo "$as_me:$LINENO: result:    GNOME disabled." >&5
 
5622
echo "${ECHO_T}   GNOME disabled." >&6
 
5623
fi
 
5624