~ubuntu-branches/ubuntu/karmic/libsdl1.2/karmic

« back to all changes in this revision

Viewing changes to test/autom4te.cache/output.0

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2008-01-05 14:10:45 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080105141045-letjq81gx5olnxre
Tags: 1.2.13-1ubuntu1
* Merge from Debian unstable.
* Remaining Ubuntu changes:
  - Remove svgalib support.
  - Prefer libgl1-mesa-dev build-dependency over xlibmesa-gl-dev.
  - Build for lpia as for i386.
  - Link using -Wl,-Bsymbolic-functions.
  - Munge Maintainer field as per spec.

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.59.
4
 
@%:@ 
5
 
@%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6
 
@%:@ This configure script is free software; the Free Software Foundation
7
 
@%:@ gives unlimited permission to copy, distribute and modify it.
8
 
## --------------------- ##
9
 
## M4sh Initialization.  ##
10
 
## --------------------- ##
11
 
 
12
 
# Be Bourne compatible
13
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14
 
  emulate sh
15
 
  NULLCMD=:
16
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17
 
  # is contrary to our usage.  Disable this feature.
18
 
  alias -g '${1+"$@"}'='"$@"'
19
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20
 
  set -o posix
21
 
fi
22
 
DUALCASE=1; export DUALCASE # for MKS sh
23
 
 
24
 
# Support unset when possible.
25
 
if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
 
  test -d ./-p && rmdir ./-p
222
 
  as_mkdir_p=false
223
 
fi
224
 
 
225
 
as_executable_p="test -f"
226
 
 
227
 
# Sed expression to map a string onto a valid CPP name.
228
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
 
 
230
 
# Sed expression to map a string onto a valid variable name.
231
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
 
 
233
 
 
234
 
# IFS
235
 
# We need space, tab and new line, in precisely that order.
236
 
as_nl='
237
 
'
238
 
IFS="   $as_nl"
239
 
 
240
 
# CDPATH.
241
 
$as_unset CDPATH
242
 
 
243
 
 
244
 
# Name of the host.
245
 
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
 
# so uname gets run too.
247
 
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
 
 
249
 
exec 6>&1
250
 
 
251
 
#
252
 
# Initializations.
253
 
#
254
 
ac_default_prefix=/usr/local
255
 
ac_config_libobj_dir=.
256
 
cross_compiling=no
257
 
subdirs=
258
 
MFLAGS=
259
 
MAKEFLAGS=
260
 
SHELL=${CONFIG_SHELL-/bin/sh}
261
 
 
262
 
# Maximum number of lines to put in a shell here document.
263
 
# This variable seems obsolete.  It should probably be removed, and
264
 
# only ac_max_sed_lines should be used.
265
 
: ${ac_max_here_lines=38}
266
 
 
267
 
# Identity of this package.
268
 
PACKAGE_NAME=
269
 
PACKAGE_TARNAME=
270
 
PACKAGE_VERSION=
271
 
PACKAGE_STRING=
272
 
PACKAGE_BUGREPORT=
273
 
 
274
 
ac_unique_file="README"
275
 
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 CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT OSMESA_CONFIG EXE MATHLIB SDL_CONFIG SDL_CFLAGS SDL_LIBS CPP GLLIB LIB@&t@OBJS LTLIBOBJS'
276
 
ac_subst_files=''
277
 
 
278
 
# Initialize some variables set by options.
279
 
ac_init_help=
280
 
ac_init_version=false
281
 
# The variables have the same names as the options, with
282
 
# dashes changed to underlines.
283
 
cache_file=/dev/null
284
 
exec_prefix=NONE
285
 
no_create=
286
 
no_recursion=
287
 
prefix=NONE
288
 
program_prefix=NONE
289
 
program_suffix=NONE
290
 
program_transform_name=s,x,x,
291
 
silent=
292
 
site=
293
 
srcdir=
294
 
verbose=
295
 
x_includes=NONE
296
 
x_libraries=NONE
297
 
 
298
 
# Installation directory options.
299
 
# These are left unexpanded so users can "make install exec_prefix=/foo"
300
 
# and all the variables that are supposed to be based on exec_prefix
301
 
# by default will actually change.
302
 
# Use braces instead of parens because sh, perl, etc. also accept them.
303
 
bindir='${exec_prefix}/bin'
304
 
sbindir='${exec_prefix}/sbin'
305
 
libexecdir='${exec_prefix}/libexec'
306
 
datadir='${prefix}/share'
307
 
sysconfdir='${prefix}/etc'
308
 
sharedstatedir='${prefix}/com'
309
 
localstatedir='${prefix}/var'
310
 
libdir='${exec_prefix}/lib'
311
 
includedir='${prefix}/include'
312
 
oldincludedir='/usr/include'
313
 
infodir='${prefix}/info'
314
 
mandir='${prefix}/man'
315
 
 
316
 
ac_prev=
317
 
for ac_option
318
 
do
319
 
  # If the previous option needs an argument, assign it.
320
 
  if test -n "$ac_prev"; then
321
 
    eval "$ac_prev=\$ac_option"
322
 
    ac_prev=
323
 
    continue
324
 
  fi
325
 
 
326
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
327
 
 
328
 
  # Accept the important Cygnus configure options, so we can diagnose typos.
329
 
 
330
 
  case $ac_option in
331
 
 
332
 
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333
 
    ac_prev=bindir ;;
334
 
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
335
 
    bindir=$ac_optarg ;;
336
 
 
337
 
  -build | --build | --buil | --bui | --bu)
338
 
    ac_prev=build_alias ;;
339
 
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
340
 
    build_alias=$ac_optarg ;;
341
 
 
342
 
  -cache-file | --cache-file | --cache-fil | --cache-fi \
343
 
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
344
 
    ac_prev=cache_file ;;
345
 
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
346
 
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
347
 
    cache_file=$ac_optarg ;;
348
 
 
349
 
  --config-cache | -C)
350
 
    cache_file=config.cache ;;
351
 
 
352
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
353
 
    ac_prev=datadir ;;
354
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355
 
  | --da=*)
356
 
    datadir=$ac_optarg ;;
357
 
 
358
 
  -disable-* | --disable-*)
359
 
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360
 
    # Reject names that are not valid shell variable names.
361
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
362
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363
 
   { (exit 1); exit 1; }; }
364
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365
 
    eval "enable_$ac_feature=no" ;;
366
 
 
367
 
  -enable-* | --enable-*)
368
 
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369
 
    # Reject names that are not valid shell variable names.
370
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
371
 
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372
 
   { (exit 1); exit 1; }; }
373
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
374
 
    case $ac_option in
375
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
376
 
      *) ac_optarg=yes ;;
377
 
    esac
378
 
    eval "enable_$ac_feature='$ac_optarg'" ;;
379
 
 
380
 
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381
 
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
382
 
  | --exec | --exe | --ex)
383
 
    ac_prev=exec_prefix ;;
384
 
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
385
 
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
386
 
  | --exec=* | --exe=* | --ex=*)
387
 
    exec_prefix=$ac_optarg ;;
388
 
 
389
 
  -gas | --gas | --ga | --g)
390
 
    # Obsolete; use --with-gas.
391
 
    with_gas=yes ;;
392
 
 
393
 
  -help | --help | --hel | --he | -h)
394
 
    ac_init_help=long ;;
395
 
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
396
 
    ac_init_help=recursive ;;
397
 
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
398
 
    ac_init_help=short ;;
399
 
 
400
 
  -host | --host | --hos | --ho)
401
 
    ac_prev=host_alias ;;
402
 
  -host=* | --host=* | --hos=* | --ho=*)
403
 
    host_alias=$ac_optarg ;;
404
 
 
405
 
  -includedir | --includedir | --includedi | --included | --include \
406
 
  | --includ | --inclu | --incl | --inc)
407
 
    ac_prev=includedir ;;
408
 
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
409
 
  | --includ=* | --inclu=* | --incl=* | --inc=*)
410
 
    includedir=$ac_optarg ;;
411
 
 
412
 
  -infodir | --infodir | --infodi | --infod | --info | --inf)
413
 
    ac_prev=infodir ;;
414
 
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
415
 
    infodir=$ac_optarg ;;
416
 
 
417
 
  -libdir | --libdir | --libdi | --libd)
418
 
    ac_prev=libdir ;;
419
 
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
420
 
    libdir=$ac_optarg ;;
421
 
 
422
 
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
423
 
  | --libexe | --libex | --libe)
424
 
    ac_prev=libexecdir ;;
425
 
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
426
 
  | --libexe=* | --libex=* | --libe=*)
427
 
    libexecdir=$ac_optarg ;;
428
 
 
429
 
  -localstatedir | --localstatedir | --localstatedi | --localstated \
430
 
  | --localstate | --localstat | --localsta | --localst \
431
 
  | --locals | --local | --loca | --loc | --lo)
432
 
    ac_prev=localstatedir ;;
433
 
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
436
 
    localstatedir=$ac_optarg ;;
437
 
 
438
 
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
439
 
    ac_prev=mandir ;;
440
 
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
441
 
    mandir=$ac_optarg ;;
442
 
 
443
 
  -nfp | --nfp | --nf)
444
 
    # Obsolete; use --without-fp.
445
 
    with_fp=no ;;
446
 
 
447
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
448
 
  | --no-cr | --no-c | -n)
449
 
    no_create=yes ;;
450
 
 
451
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
452
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
453
 
    no_recursion=yes ;;
454
 
 
455
 
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
456
 
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
457
 
  | --oldin | --oldi | --old | --ol | --o)
458
 
    ac_prev=oldincludedir ;;
459
 
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
460
 
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
461
 
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
462
 
    oldincludedir=$ac_optarg ;;
463
 
 
464
 
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
465
 
    ac_prev=prefix ;;
466
 
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
467
 
    prefix=$ac_optarg ;;
468
 
 
469
 
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
470
 
  | --program-pre | --program-pr | --program-p)
471
 
    ac_prev=program_prefix ;;
472
 
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
473
 
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
474
 
    program_prefix=$ac_optarg ;;
475
 
 
476
 
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
477
 
  | --program-suf | --program-su | --program-s)
478
 
    ac_prev=program_suffix ;;
479
 
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
480
 
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
481
 
    program_suffix=$ac_optarg ;;
482
 
 
483
 
  -program-transform-name | --program-transform-name \
484
 
  | --program-transform-nam | --program-transform-na \
485
 
  | --program-transform-n | --program-transform- \
486
 
  | --program-transform | --program-transfor \
487
 
  | --program-transfo | --program-transf \
488
 
  | --program-trans | --program-tran \
489
 
  | --progr-tra | --program-tr | --program-t)
490
 
    ac_prev=program_transform_name ;;
491
 
  -program-transform-name=* | --program-transform-name=* \
492
 
  | --program-transform-nam=* | --program-transform-na=* \
493
 
  | --program-transform-n=* | --program-transform-=* \
494
 
  | --program-transform=* | --program-transfor=* \
495
 
  | --program-transfo=* | --program-transf=* \
496
 
  | --program-trans=* | --program-tran=* \
497
 
  | --progr-tra=* | --program-tr=* | --program-t=*)
498
 
    program_transform_name=$ac_optarg ;;
499
 
 
500
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501
 
  | -silent | --silent | --silen | --sile | --sil)
502
 
    silent=yes ;;
503
 
 
504
 
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
505
 
    ac_prev=sbindir ;;
506
 
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
507
 
  | --sbi=* | --sb=*)
508
 
    sbindir=$ac_optarg ;;
509
 
 
510
 
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
511
 
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
512
 
  | --sharedst | --shareds | --shared | --share | --shar \
513
 
  | --sha | --sh)
514
 
    ac_prev=sharedstatedir ;;
515
 
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
516
 
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
517
 
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
518
 
  | --sha=* | --sh=*)
519
 
    sharedstatedir=$ac_optarg ;;
520
 
 
521
 
  -site | --site | --sit)
522
 
    ac_prev=site ;;
523
 
  -site=* | --site=* | --sit=*)
524
 
    site=$ac_optarg ;;
525
 
 
526
 
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
527
 
    ac_prev=srcdir ;;
528
 
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
529
 
    srcdir=$ac_optarg ;;
530
 
 
531
 
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
532
 
  | --syscon | --sysco | --sysc | --sys | --sy)
533
 
    ac_prev=sysconfdir ;;
534
 
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
535
 
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
536
 
    sysconfdir=$ac_optarg ;;
537
 
 
538
 
  -target | --target | --targe | --targ | --tar | --ta | --t)
539
 
    ac_prev=target_alias ;;
540
 
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
541
 
    target_alias=$ac_optarg ;;
542
 
 
543
 
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
544
 
    verbose=yes ;;
545
 
 
546
 
  -version | --version | --versio | --versi | --vers | -V)
547
 
    ac_init_version=: ;;
548
 
 
549
 
  -with-* | --with-*)
550
 
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551
 
    # Reject names that are not valid shell variable names.
552
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
554
 
   { (exit 1); exit 1; }; }
555
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
556
 
    case $ac_option in
557
 
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
558
 
      *) ac_optarg=yes ;;
559
 
    esac
560
 
    eval "with_$ac_package='$ac_optarg'" ;;
561
 
 
562
 
  -without-* | --without-*)
563
 
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564
 
    # Reject names that are not valid shell variable names.
565
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566
 
      { echo "$as_me: error: invalid package name: $ac_package" >&2
567
 
   { (exit 1); exit 1; }; }
568
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
569
 
    eval "with_$ac_package=no" ;;
570
 
 
571
 
  --x)
572
 
    # Obsolete; use --with-x.
573
 
    with_x=yes ;;
574
 
 
575
 
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
576
 
  | --x-incl | --x-inc | --x-in | --x-i)
577
 
    ac_prev=x_includes ;;
578
 
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
579
 
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
580
 
    x_includes=$ac_optarg ;;
581
 
 
582
 
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
583
 
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
584
 
    ac_prev=x_libraries ;;
585
 
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
586
 
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
587
 
    x_libraries=$ac_optarg ;;
588
 
 
589
 
  -*) { echo "$as_me: error: unrecognized option: $ac_option
590
 
Try \`$0 --help' for more information." >&2
591
 
   { (exit 1); exit 1; }; }
592
 
    ;;
593
 
 
594
 
  *=*)
595
 
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
596
 
    # Reject names that are not valid shell variable names.
597
 
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598
 
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599
 
   { (exit 1); exit 1; }; }
600
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601
 
    eval "$ac_envvar='$ac_optarg'"
602
 
    export $ac_envvar ;;
603
 
 
604
 
  *)
605
 
    # FIXME: should be removed in autoconf 3.0.
606
 
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
607
 
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
608
 
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
609
 
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
610
 
    ;;
611
 
 
612
 
  esac
613
 
done
614
 
 
615
 
if test -n "$ac_prev"; then
616
 
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
617
 
  { echo "$as_me: error: missing argument to $ac_option" >&2
618
 
   { (exit 1); exit 1; }; }
619
 
fi
620
 
 
621
 
# Be sure to have absolute paths.
622
 
for ac_var in exec_prefix prefix
623
 
do
624
 
  eval ac_val=$`echo $ac_var`
625
 
  case $ac_val in
626
 
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
627
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
628
 
   { (exit 1); exit 1; }; };;
629
 
  esac
630
 
done
631
 
 
632
 
# Be sure to have absolute paths.
633
 
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
634
 
              localstatedir libdir includedir oldincludedir infodir mandir
635
 
do
636
 
  eval ac_val=$`echo $ac_var`
637
 
  case $ac_val in
638
 
    [\\/$]* | ?:[\\/]* ) ;;
639
 
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
640
 
   { (exit 1); exit 1; }; };;
641
 
  esac
642
 
done
643
 
 
644
 
# There might be people who depend on the old broken behavior: `$host'
645
 
# used to hold the argument of --host etc.
646
 
# FIXME: To remove some day.
647
 
build=$build_alias
648
 
host=$host_alias
649
 
target=$target_alias
650
 
 
651
 
# FIXME: To remove some day.
652
 
if test "x$host_alias" != x; then
653
 
  if test "x$build_alias" = x; then
654
 
    cross_compiling=maybe
655
 
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
656
 
    If a cross compiler is detected then cross compile mode will be used." >&2
657
 
  elif test "x$build_alias" != "x$host_alias"; then
658
 
    cross_compiling=yes
659
 
  fi
660
 
fi
661
 
 
662
 
ac_tool_prefix=
663
 
test -n "$host_alias" && ac_tool_prefix=$host_alias-
664
 
 
665
 
test "$silent" = yes && exec 6>/dev/null
666
 
 
667
 
 
668
 
# Find the source files, if location was not specified.
669
 
if test -z "$srcdir"; then
670
 
  ac_srcdir_defaulted=yes
671
 
  # Try the directory containing this script, then its parent.
672
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
673
 
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674
 
         X"$0" : 'X\(//\)[^/]' \| \
675
 
         X"$0" : 'X\(//\)$' \| \
676
 
         X"$0" : 'X\(/\)' \| \
677
 
         .     : '\(.\)' 2>/dev/null ||
678
 
echo X"$0" |
679
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
680
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
681
 
          /^X\(\/\/\)$/{ s//\1/; q; }
682
 
          /^X\(\/\).*/{ s//\1/; q; }
683
 
          s/.*/./; q'`
684
 
  srcdir=$ac_confdir
685
 
  if test ! -r $srcdir/$ac_unique_file; then
686
 
    srcdir=..
687
 
  fi
688
 
else
689
 
  ac_srcdir_defaulted=no
690
 
fi
691
 
if test ! -r $srcdir/$ac_unique_file; then
692
 
  if test "$ac_srcdir_defaulted" = yes; then
693
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
694
 
   { (exit 1); exit 1; }; }
695
 
  else
696
 
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
697
 
   { (exit 1); exit 1; }; }
698
 
  fi
699
 
fi
700
 
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
701
 
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
702
 
   { (exit 1); exit 1; }; }
703
 
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
704
 
ac_env_build_alias_set=${build_alias+set}
705
 
ac_env_build_alias_value=$build_alias
706
 
ac_cv_env_build_alias_set=${build_alias+set}
707
 
ac_cv_env_build_alias_value=$build_alias
708
 
ac_env_host_alias_set=${host_alias+set}
709
 
ac_env_host_alias_value=$host_alias
710
 
ac_cv_env_host_alias_set=${host_alias+set}
711
 
ac_cv_env_host_alias_value=$host_alias
712
 
ac_env_target_alias_set=${target_alias+set}
713
 
ac_env_target_alias_value=$target_alias
714
 
ac_cv_env_target_alias_set=${target_alias+set}
715
 
ac_cv_env_target_alias_value=$target_alias
716
 
ac_env_CC_set=${CC+set}
717
 
ac_env_CC_value=$CC
718
 
ac_cv_env_CC_set=${CC+set}
719
 
ac_cv_env_CC_value=$CC
720
 
ac_env_CFLAGS_set=${CFLAGS+set}
721
 
ac_env_CFLAGS_value=$CFLAGS
722
 
ac_cv_env_CFLAGS_set=${CFLAGS+set}
723
 
ac_cv_env_CFLAGS_value=$CFLAGS
724
 
ac_env_LDFLAGS_set=${LDFLAGS+set}
725
 
ac_env_LDFLAGS_value=$LDFLAGS
726
 
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
727
 
ac_cv_env_LDFLAGS_value=$LDFLAGS
728
 
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
729
 
ac_env_CPPFLAGS_value=$CPPFLAGS
730
 
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
731
 
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
732
 
ac_env_CPP_set=${CPP+set}
733
 
ac_env_CPP_value=$CPP
734
 
ac_cv_env_CPP_set=${CPP+set}
735
 
ac_cv_env_CPP_value=$CPP
736
 
 
737
 
#
738
 
# Report the --help message.
739
 
#
740
 
if test "$ac_init_help" = "long"; then
741
 
  # Omit some internal or obsolete options to make the list less imposing.
742
 
  # This message is too long to be a string in the A/UX 3.1 sh.
743
 
  cat <<_ACEOF
744
 
\`configure' configures this package to adapt to many kinds of systems.
745
 
 
746
 
Usage: $0 [OPTION]... [VAR=VALUE]...
747
 
 
748
 
To assign environment variables (e.g., CC, CFLAGS...), specify them as
749
 
VAR=VALUE.  See below for descriptions of some of the useful variables.
750
 
 
751
 
Defaults for the options are specified in brackets.
752
 
 
753
 
Configuration:
754
 
  -h, --help              display this help and exit
755
 
      --help=short        display options specific to this package
756
 
      --help=recursive    display the short help of all the included packages
757
 
  -V, --version           display version information and exit
758
 
  -q, --quiet, --silent   do not print \`checking...' messages
759
 
      --cache-file=FILE   cache test results in FILE [disabled]
760
 
  -C, --config-cache      alias for \`--cache-file=config.cache'
761
 
  -n, --no-create         do not create output files
762
 
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
763
 
 
764
 
_ACEOF
765
 
 
766
 
  cat <<_ACEOF
767
 
Installation directories:
768
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
769
 
                          [$ac_default_prefix]
770
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
771
 
                          [PREFIX]
772
 
 
773
 
By default, \`make install' will install all the files in
774
 
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
775
 
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
776
 
for instance \`--prefix=\$HOME'.
777
 
 
778
 
For better control, use the options below.
779
 
 
780
 
Fine tuning of the installation directories:
781
 
  --bindir=DIR           user executables [EPREFIX/bin]
782
 
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
783
 
  --libexecdir=DIR       program executables [EPREFIX/libexec]
784
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
785
 
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
786
 
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
787
 
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
788
 
  --libdir=DIR           object code libraries [EPREFIX/lib]
789
 
  --includedir=DIR       C header files [PREFIX/include]
790
 
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
791
 
  --infodir=DIR          info documentation [PREFIX/info]
792
 
  --mandir=DIR           man documentation [PREFIX/man]
793
 
_ACEOF
794
 
 
795
 
  cat <<\_ACEOF
796
 
 
797
 
X features:
798
 
  --x-includes=DIR    X include files are in DIR
799
 
  --x-libraries=DIR   X library files are in DIR
800
 
 
801
 
System types:
802
 
  --build=BUILD     configure for building on BUILD [guessed]
803
 
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
804
 
_ACEOF
805
 
fi
806
 
 
807
 
if test -n "$ac_init_help"; then
808
 
 
809
 
  cat <<\_ACEOF
810
 
 
811
 
Optional Features:
812
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
813
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
814
 
  --disable-sdltest       Do not try to compile and run a test SDL program
815
 
 
816
 
Optional Packages:
817
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
818
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
819
 
  --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
820
 
  --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
821
 
  --with-x                use the X Window System
822
 
 
823
 
Some influential environment variables:
824
 
  CC          C compiler command
825
 
  CFLAGS      C compiler flags
826
 
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
827
 
              nonstandard directory <lib dir>
828
 
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
829
 
              headers in a nonstandard directory <include dir>
830
 
  CPP         C preprocessor
831
 
 
832
 
Use these variables to override the choices made by `configure' or to help
833
 
it to find libraries and programs with nonstandard names/locations.
834
 
 
835
 
_ACEOF
836
 
fi
837
 
 
838
 
if test "$ac_init_help" = "recursive"; then
839
 
  # If there are subdirs, report their specific --help.
840
 
  ac_popdir=`pwd`
841
 
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
842
 
    test -d $ac_dir || continue
843
 
    ac_builddir=.
844
 
 
845
 
if test "$ac_dir" != .; then
846
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
847
 
  # A "../" for each directory in $ac_dir_suffix.
848
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
849
 
else
850
 
  ac_dir_suffix= ac_top_builddir=
851
 
fi
852
 
 
853
 
case $srcdir in
854
 
  .)  # No --srcdir option.  We are building in place.
855
 
    ac_srcdir=.
856
 
    if test -z "$ac_top_builddir"; then
857
 
       ac_top_srcdir=.
858
 
    else
859
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
860
 
    fi ;;
861
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
862
 
    ac_srcdir=$srcdir$ac_dir_suffix;
863
 
    ac_top_srcdir=$srcdir ;;
864
 
  *) # Relative path.
865
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
866
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
867
 
esac
868
 
 
869
 
# Do not use `cd foo && pwd` to compute absolute paths, because
870
 
# the directories may not exist.
871
 
case `pwd` in
872
 
.) ac_abs_builddir="$ac_dir";;
873
 
*)
874
 
  case "$ac_dir" in
875
 
  .) ac_abs_builddir=`pwd`;;
876
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
877
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
878
 
  esac;;
879
 
esac
880
 
case $ac_abs_builddir in
881
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
882
 
*)
883
 
  case ${ac_top_builddir}. in
884
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
885
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
886
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
887
 
  esac;;
888
 
esac
889
 
case $ac_abs_builddir in
890
 
.) ac_abs_srcdir=$ac_srcdir;;
891
 
*)
892
 
  case $ac_srcdir in
893
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
894
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
895
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
896
 
  esac;;
897
 
esac
898
 
case $ac_abs_builddir in
899
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
900
 
*)
901
 
  case $ac_top_srcdir in
902
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
903
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
904
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
905
 
  esac;;
906
 
esac
907
 
 
908
 
    cd $ac_dir
909
 
    # Check for guested configure; otherwise get Cygnus style configure.
910
 
    if test -f $ac_srcdir/configure.gnu; then
911
 
      echo
912
 
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
913
 
    elif test -f $ac_srcdir/configure; then
914
 
      echo
915
 
      $SHELL $ac_srcdir/configure  --help=recursive
916
 
    elif test -f $ac_srcdir/configure.ac ||
917
 
           test -f $ac_srcdir/configure.in; then
918
 
      echo
919
 
      $ac_configure --help
920
 
    else
921
 
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
922
 
    fi
923
 
    cd $ac_popdir
924
 
  done
925
 
fi
926
 
 
927
 
test -n "$ac_init_help" && exit 0
928
 
if $ac_init_version; then
929
 
  cat <<\_ACEOF
930
 
 
931
 
Copyright (C) 2003 Free Software Foundation, Inc.
932
 
This configure script is free software; the Free Software Foundation
933
 
gives unlimited permission to copy, distribute and modify it.
934
 
_ACEOF
935
 
  exit 0
936
 
fi
937
 
exec 5>config.log
938
 
cat >&5 <<_ACEOF
939
 
This file contains any messages produced by compilers while
940
 
running configure, to aid debugging if configure makes a mistake.
941
 
 
942
 
It was created by $as_me, which was
943
 
generated by GNU Autoconf 2.59.  Invocation command line was
944
 
 
945
 
  $ $0 $@
946
 
 
947
 
_ACEOF
948
 
{
949
 
cat <<_ASUNAME
950
 
@%:@@%:@ --------- @%:@@%:@
951
 
@%:@@%:@ Platform. @%:@@%:@
952
 
@%:@@%:@ --------- @%:@@%:@
953
 
 
954
 
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
955
 
uname -m = `(uname -m) 2>/dev/null || echo unknown`
956
 
uname -r = `(uname -r) 2>/dev/null || echo unknown`
957
 
uname -s = `(uname -s) 2>/dev/null || echo unknown`
958
 
uname -v = `(uname -v) 2>/dev/null || echo unknown`
959
 
 
960
 
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
961
 
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
962
 
 
963
 
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
964
 
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
965
 
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
967
 
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
968
 
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
969
 
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
970
 
 
971
 
_ASUNAME
972
 
 
973
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
974
 
for as_dir in $PATH
975
 
do
976
 
  IFS=$as_save_IFS
977
 
  test -z "$as_dir" && as_dir=.
978
 
  echo "PATH: $as_dir"
979
 
done
980
 
 
981
 
} >&5
982
 
 
983
 
cat >&5 <<_ACEOF
984
 
 
985
 
 
986
 
@%:@@%:@ ----------- @%:@@%:@
987
 
@%:@@%:@ Core tests. @%:@@%:@
988
 
@%:@@%:@ ----------- @%:@@%:@
989
 
 
990
 
_ACEOF
991
 
 
992
 
 
993
 
# Keep a trace of the command line.
994
 
# Strip out --no-create and --no-recursion so they do not pile up.
995
 
# Strip out --silent because we don't want to record it for future runs.
996
 
# Also quote any args containing shell meta-characters.
997
 
# Make two passes to allow for proper duplicate-argument suppression.
998
 
ac_configure_args=
999
 
ac_configure_args0=
1000
 
ac_configure_args1=
1001
 
ac_sep=
1002
 
ac_must_keep_next=false
1003
 
for ac_pass in 1 2
1004
 
do
1005
 
  for ac_arg
1006
 
  do
1007
 
    case $ac_arg in
1008
 
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1009
 
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010
 
    | -silent | --silent | --silen | --sile | --sil)
1011
 
      continue ;;
1012
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1013
 
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1014
 
    esac
1015
 
    case $ac_pass in
1016
 
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1017
 
    2)
1018
 
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1019
 
      if test $ac_must_keep_next = true; then
1020
 
        ac_must_keep_next=false # Got value, back to normal.
1021
 
      else
1022
 
        case $ac_arg in
1023
 
          *=* | --config-cache | -C | -disable-* | --disable-* \
1024
 
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1025
 
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1026
 
          | -with-* | --with-* | -without-* | --without-* | --x)
1027
 
            case "$ac_configure_args0 " in
1028
 
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1029
 
            esac
1030
 
            ;;
1031
 
          -* ) ac_must_keep_next=true ;;
1032
 
        esac
1033
 
      fi
1034
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1035
 
      # Get rid of the leading space.
1036
 
      ac_sep=" "
1037
 
      ;;
1038
 
    esac
1039
 
  done
1040
 
done
1041
 
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1042
 
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1043
 
 
1044
 
# When interrupted or exit'd, cleanup temporary files, and complete
1045
 
# config.log.  We remove comments because anyway the quotes in there
1046
 
# would cause problems or look ugly.
1047
 
# WARNING: Be sure not to use single quotes in there, as some shells,
1048
 
# such as our DU 5.0 friend, will then `close' the trap.
1049
 
trap 'exit_status=$?
1050
 
  # Save into config.log some information that might help in debugging.
1051
 
  {
1052
 
    echo
1053
 
 
1054
 
    cat <<\_ASBOX
1055
 
@%:@@%:@ ---------------- @%:@@%:@
1056
 
@%:@@%:@ Cache variables. @%:@@%:@
1057
 
@%:@@%:@ ---------------- @%:@@%:@
1058
 
_ASBOX
1059
 
    echo
1060
 
    # The following way of writing the cache mishandles newlines in values,
1061
 
{
1062
 
  (set) 2>&1 |
1063
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064
 
    *ac_space=\ *)
1065
 
      sed -n \
1066
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068
 
      ;;
1069
 
    *)
1070
 
      sed -n \
1071
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1072
 
      ;;
1073
 
    esac;
1074
 
}
1075
 
    echo
1076
 
 
1077
 
    cat <<\_ASBOX
1078
 
@%:@@%:@ ----------------- @%:@@%:@
1079
 
@%:@@%:@ Output variables. @%:@@%:@
1080
 
@%:@@%:@ ----------------- @%:@@%:@
1081
 
_ASBOX
1082
 
    echo
1083
 
    for ac_var in $ac_subst_vars
1084
 
    do
1085
 
      eval ac_val=$`echo $ac_var`
1086
 
      echo "$ac_var='"'"'$ac_val'"'"'"
1087
 
    done | sort
1088
 
    echo
1089
 
 
1090
 
    if test -n "$ac_subst_files"; then
1091
 
      cat <<\_ASBOX
1092
 
@%:@@%:@ ------------- @%:@@%:@
1093
 
@%:@@%:@ Output files. @%:@@%:@
1094
 
@%:@@%:@ ------------- @%:@@%:@
1095
 
_ASBOX
1096
 
      echo
1097
 
      for ac_var in $ac_subst_files
1098
 
      do
1099
 
        eval ac_val=$`echo $ac_var`
1100
 
        echo "$ac_var='"'"'$ac_val'"'"'"
1101
 
      done | sort
1102
 
      echo
1103
 
    fi
1104
 
 
1105
 
    if test -s confdefs.h; then
1106
 
      cat <<\_ASBOX
1107
 
@%:@@%:@ ----------- @%:@@%:@
1108
 
@%:@@%:@ confdefs.h. @%:@@%:@
1109
 
@%:@@%:@ ----------- @%:@@%:@
1110
 
_ASBOX
1111
 
      echo
1112
 
      sed "/^$/d" confdefs.h | sort
1113
 
      echo
1114
 
    fi
1115
 
    test "$ac_signal" != 0 &&
1116
 
      echo "$as_me: caught signal $ac_signal"
1117
 
    echo "$as_me: exit $exit_status"
1118
 
  } >&5
1119
 
  rm -f core *.core &&
1120
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1121
 
    exit $exit_status
1122
 
     ' 0
1123
 
for ac_signal in 1 2 13 15; do
1124
 
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1125
 
done
1126
 
ac_signal=0
1127
 
 
1128
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1129
 
rm -rf conftest* confdefs.h
1130
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1131
 
echo >confdefs.h
1132
 
 
1133
 
# Predefined preprocessor variables.
1134
 
 
1135
 
cat >>confdefs.h <<_ACEOF
1136
 
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
1137
 
_ACEOF
1138
 
 
1139
 
 
1140
 
cat >>confdefs.h <<_ACEOF
1141
 
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1142
 
_ACEOF
1143
 
 
1144
 
 
1145
 
cat >>confdefs.h <<_ACEOF
1146
 
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1147
 
_ACEOF
1148
 
 
1149
 
 
1150
 
cat >>confdefs.h <<_ACEOF
1151
 
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
1152
 
_ACEOF
1153
 
 
1154
 
 
1155
 
cat >>confdefs.h <<_ACEOF
1156
 
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1157
 
_ACEOF
1158
 
 
1159
 
 
1160
 
# Let the site file select an alternate cache file if it wants to.
1161
 
# Prefer explicitly selected file to automatically selected ones.
1162
 
if test -z "$CONFIG_SITE"; then
1163
 
  if test "x$prefix" != xNONE; then
1164
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1165
 
  else
1166
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1167
 
  fi
1168
 
fi
1169
 
for ac_site_file in $CONFIG_SITE; do
1170
 
  if test -r "$ac_site_file"; then
1171
 
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1172
 
echo "$as_me: loading site script $ac_site_file" >&6;}
1173
 
    sed 's/^/| /' "$ac_site_file" >&5
1174
 
    . "$ac_site_file"
1175
 
  fi
1176
 
done
1177
 
 
1178
 
if test -r "$cache_file"; then
1179
 
  # Some versions of bash will fail to source /dev/null (special
1180
 
  # files actually), so we avoid doing that.
1181
 
  if test -f "$cache_file"; then
1182
 
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1183
 
echo "$as_me: loading cache $cache_file" >&6;}
1184
 
    case $cache_file in
1185
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1186
 
      *)                      . ./$cache_file;;
1187
 
    esac
1188
 
  fi
1189
 
else
1190
 
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1191
 
echo "$as_me: creating cache $cache_file" >&6;}
1192
 
  >$cache_file
1193
 
fi
1194
 
 
1195
 
# Check that the precious variables saved in the cache have kept the same
1196
 
# value.
1197
 
ac_cache_corrupted=false
1198
 
for ac_var in `(set) 2>&1 |
1199
 
               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1200
 
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1201
 
  eval ac_new_set=\$ac_env_${ac_var}_set
1202
 
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1203
 
  eval ac_new_val="\$ac_env_${ac_var}_value"
1204
 
  case $ac_old_set,$ac_new_set in
1205
 
    set,)
1206
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1207
 
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1208
 
      ac_cache_corrupted=: ;;
1209
 
    ,set)
1210
 
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1211
 
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1212
 
      ac_cache_corrupted=: ;;
1213
 
    ,);;
1214
 
    *)
1215
 
      if test "x$ac_old_val" != "x$ac_new_val"; then
1216
 
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1217
 
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1218
 
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1219
 
echo "$as_me:   former value:  $ac_old_val" >&2;}
1220
 
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1221
 
echo "$as_me:   current value: $ac_new_val" >&2;}
1222
 
        ac_cache_corrupted=:
1223
 
      fi;;
1224
 
  esac
1225
 
  # Pass precious variables to config.status.
1226
 
  if test "$ac_new_set" = set; then
1227
 
    case $ac_new_val in
1228
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1230
 
    *) ac_arg=$ac_var=$ac_new_val ;;
1231
 
    esac
1232
 
    case " $ac_configure_args " in
1233
 
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1234
 
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1235
 
    esac
1236
 
  fi
1237
 
done
1238
 
if $ac_cache_corrupted; then
1239
 
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1240
 
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1241
 
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1242
 
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1243
 
   { (exit 1); exit 1; }; }
1244
 
fi
1245
 
 
1246
 
ac_ext=c
1247
 
ac_cpp='$CPP $CPPFLAGS'
1248
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1249
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1250
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1251
 
 
1252
 
 
1253
 
 
1254
 
 
1255
 
 
1256
 
 
1257
 
 
1258
 
 
1259
 
 
1260
 
 
1261
 
 
1262
 
 
1263
 
 
1264
 
 
1265
 
 
1266
 
 
1267
 
 
1268
 
 
1269
 
 
1270
 
 
1271
 
ac_aux_dir=
1272
 
for ac_dir in $srcdir/../build-scripts; do
1273
 
  if test -f $ac_dir/install-sh; then
1274
 
    ac_aux_dir=$ac_dir
1275
 
    ac_install_sh="$ac_aux_dir/install-sh -c"
1276
 
    break
1277
 
  elif test -f $ac_dir/install.sh; then
1278
 
    ac_aux_dir=$ac_dir
1279
 
    ac_install_sh="$ac_aux_dir/install.sh -c"
1280
 
    break
1281
 
  elif test -f $ac_dir/shtool; then
1282
 
    ac_aux_dir=$ac_dir
1283
 
    ac_install_sh="$ac_aux_dir/shtool install -c"
1284
 
    break
1285
 
  fi
1286
 
done
1287
 
if test -z "$ac_aux_dir"; then
1288
 
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&5
1289
 
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&2;}
1290
 
   { (exit 1); exit 1; }; }
1291
 
fi
1292
 
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1293
 
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1294
 
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1295
 
 
1296
 
# Make sure we can run config.sub.
1297
 
$ac_config_sub sun4 >/dev/null 2>&1 ||
1298
 
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1299
 
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1300
 
   { (exit 1); exit 1; }; }
1301
 
 
1302
 
echo "$as_me:$LINENO: checking build system type" >&5
1303
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1304
 
if test "${ac_cv_build+set}" = set; then
1305
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1306
 
else
1307
 
  ac_cv_build_alias=$build_alias
1308
 
test -z "$ac_cv_build_alias" &&
1309
 
  ac_cv_build_alias=`$ac_config_guess`
1310
 
test -z "$ac_cv_build_alias" &&
1311
 
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1312
 
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1313
 
   { (exit 1); exit 1; }; }
1314
 
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1315
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1316
 
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1317
 
   { (exit 1); exit 1; }; }
1318
 
 
1319
 
fi
1320
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1321
 
echo "${ECHO_T}$ac_cv_build" >&6
1322
 
build=$ac_cv_build
1323
 
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1324
 
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1325
 
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1326
 
 
1327
 
 
1328
 
echo "$as_me:$LINENO: checking host system type" >&5
1329
 
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1330
 
if test "${ac_cv_host+set}" = set; then
1331
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1332
 
else
1333
 
  ac_cv_host_alias=$host_alias
1334
 
test -z "$ac_cv_host_alias" &&
1335
 
  ac_cv_host_alias=$ac_cv_build_alias
1336
 
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1337
 
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1338
 
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1339
 
   { (exit 1); exit 1; }; }
1340
 
 
1341
 
fi
1342
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1343
 
echo "${ECHO_T}$ac_cv_host" >&6
1344
 
host=$ac_cv_host
1345
 
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1346
 
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1347
 
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1348
 
 
1349
 
 
1350
 
 
1351
 
 
1352
 
ac_ext=c
1353
 
ac_cpp='$CPP $CPPFLAGS'
1354
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1355
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1356
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1357
 
if test -n "$ac_tool_prefix"; then
1358
 
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1359
 
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1360
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1361
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1362
 
if test "${ac_cv_prog_CC+set}" = set; then
1363
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1364
 
else
1365
 
  if test -n "$CC"; then
1366
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1367
 
else
1368
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1369
 
for as_dir in $PATH
1370
 
do
1371
 
  IFS=$as_save_IFS
1372
 
  test -z "$as_dir" && as_dir=.
1373
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1374
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1375
 
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1376
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1377
 
    break 2
1378
 
  fi
1379
 
done
1380
 
done
1381
 
 
1382
 
fi
1383
 
fi
1384
 
CC=$ac_cv_prog_CC
1385
 
if test -n "$CC"; then
1386
 
  echo "$as_me:$LINENO: result: $CC" >&5
1387
 
echo "${ECHO_T}$CC" >&6
1388
 
else
1389
 
  echo "$as_me:$LINENO: result: no" >&5
1390
 
echo "${ECHO_T}no" >&6
1391
 
fi
1392
 
 
1393
 
fi
1394
 
if test -z "$ac_cv_prog_CC"; then
1395
 
  ac_ct_CC=$CC
1396
 
  # Extract the first word of "gcc", so it can be a program name with args.
1397
 
set dummy gcc; ac_word=$2
1398
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1399
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1400
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1401
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1402
 
else
1403
 
  if test -n "$ac_ct_CC"; then
1404
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1405
 
else
1406
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1407
 
for as_dir in $PATH
1408
 
do
1409
 
  IFS=$as_save_IFS
1410
 
  test -z "$as_dir" && as_dir=.
1411
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1412
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1413
 
    ac_cv_prog_ac_ct_CC="gcc"
1414
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1415
 
    break 2
1416
 
  fi
1417
 
done
1418
 
done
1419
 
 
1420
 
fi
1421
 
fi
1422
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1423
 
if test -n "$ac_ct_CC"; then
1424
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1425
 
echo "${ECHO_T}$ac_ct_CC" >&6
1426
 
else
1427
 
  echo "$as_me:$LINENO: result: no" >&5
1428
 
echo "${ECHO_T}no" >&6
1429
 
fi
1430
 
 
1431
 
  CC=$ac_ct_CC
1432
 
else
1433
 
  CC="$ac_cv_prog_CC"
1434
 
fi
1435
 
 
1436
 
if test -z "$CC"; then
1437
 
  if test -n "$ac_tool_prefix"; then
1438
 
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1439
 
set dummy ${ac_tool_prefix}cc; ac_word=$2
1440
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1441
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1442
 
if test "${ac_cv_prog_CC+set}" = set; then
1443
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1444
 
else
1445
 
  if test -n "$CC"; then
1446
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1447
 
else
1448
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1449
 
for as_dir in $PATH
1450
 
do
1451
 
  IFS=$as_save_IFS
1452
 
  test -z "$as_dir" && as_dir=.
1453
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1454
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1455
 
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1456
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457
 
    break 2
1458
 
  fi
1459
 
done
1460
 
done
1461
 
 
1462
 
fi
1463
 
fi
1464
 
CC=$ac_cv_prog_CC
1465
 
if test -n "$CC"; then
1466
 
  echo "$as_me:$LINENO: result: $CC" >&5
1467
 
echo "${ECHO_T}$CC" >&6
1468
 
else
1469
 
  echo "$as_me:$LINENO: result: no" >&5
1470
 
echo "${ECHO_T}no" >&6
1471
 
fi
1472
 
 
1473
 
fi
1474
 
if test -z "$ac_cv_prog_CC"; then
1475
 
  ac_ct_CC=$CC
1476
 
  # Extract the first word of "cc", so it can be a program name with args.
1477
 
set dummy cc; ac_word=$2
1478
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1479
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1480
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1481
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1482
 
else
1483
 
  if test -n "$ac_ct_CC"; then
1484
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1485
 
else
1486
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487
 
for as_dir in $PATH
1488
 
do
1489
 
  IFS=$as_save_IFS
1490
 
  test -z "$as_dir" && as_dir=.
1491
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1492
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1493
 
    ac_cv_prog_ac_ct_CC="cc"
1494
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495
 
    break 2
1496
 
  fi
1497
 
done
1498
 
done
1499
 
 
1500
 
fi
1501
 
fi
1502
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1503
 
if test -n "$ac_ct_CC"; then
1504
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1505
 
echo "${ECHO_T}$ac_ct_CC" >&6
1506
 
else
1507
 
  echo "$as_me:$LINENO: result: no" >&5
1508
 
echo "${ECHO_T}no" >&6
1509
 
fi
1510
 
 
1511
 
  CC=$ac_ct_CC
1512
 
else
1513
 
  CC="$ac_cv_prog_CC"
1514
 
fi
1515
 
 
1516
 
fi
1517
 
if test -z "$CC"; then
1518
 
  # Extract the first word of "cc", so it can be a program name with args.
1519
 
set dummy cc; ac_word=$2
1520
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1521
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1522
 
if test "${ac_cv_prog_CC+set}" = set; then
1523
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1524
 
else
1525
 
  if test -n "$CC"; then
1526
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1527
 
else
1528
 
  ac_prog_rejected=no
1529
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1530
 
for as_dir in $PATH
1531
 
do
1532
 
  IFS=$as_save_IFS
1533
 
  test -z "$as_dir" && as_dir=.
1534
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1535
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1536
 
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1537
 
       ac_prog_rejected=yes
1538
 
       continue
1539
 
     fi
1540
 
    ac_cv_prog_CC="cc"
1541
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1542
 
    break 2
1543
 
  fi
1544
 
done
1545
 
done
1546
 
 
1547
 
if test $ac_prog_rejected = yes; then
1548
 
  # We found a bogon in the path, so make sure we never use it.
1549
 
  set dummy $ac_cv_prog_CC
1550
 
  shift
1551
 
  if test $@%:@ != 0; then
1552
 
    # We chose a different compiler from the bogus one.
1553
 
    # However, it has the same basename, so the bogon will be chosen
1554
 
    # first if we set CC to just the basename; use the full file name.
1555
 
    shift
1556
 
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1557
 
  fi
1558
 
fi
1559
 
fi
1560
 
fi
1561
 
CC=$ac_cv_prog_CC
1562
 
if test -n "$CC"; then
1563
 
  echo "$as_me:$LINENO: result: $CC" >&5
1564
 
echo "${ECHO_T}$CC" >&6
1565
 
else
1566
 
  echo "$as_me:$LINENO: result: no" >&5
1567
 
echo "${ECHO_T}no" >&6
1568
 
fi
1569
 
 
1570
 
fi
1571
 
if test -z "$CC"; then
1572
 
  if test -n "$ac_tool_prefix"; then
1573
 
  for ac_prog in cl
1574
 
  do
1575
 
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1576
 
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1577
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1578
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1579
 
if test "${ac_cv_prog_CC+set}" = set; then
1580
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1581
 
else
1582
 
  if test -n "$CC"; then
1583
 
  ac_cv_prog_CC="$CC" # Let the user override the test.
1584
 
else
1585
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586
 
for as_dir in $PATH
1587
 
do
1588
 
  IFS=$as_save_IFS
1589
 
  test -z "$as_dir" && as_dir=.
1590
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1591
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1592
 
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1593
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594
 
    break 2
1595
 
  fi
1596
 
done
1597
 
done
1598
 
 
1599
 
fi
1600
 
fi
1601
 
CC=$ac_cv_prog_CC
1602
 
if test -n "$CC"; then
1603
 
  echo "$as_me:$LINENO: result: $CC" >&5
1604
 
echo "${ECHO_T}$CC" >&6
1605
 
else
1606
 
  echo "$as_me:$LINENO: result: no" >&5
1607
 
echo "${ECHO_T}no" >&6
1608
 
fi
1609
 
 
1610
 
    test -n "$CC" && break
1611
 
  done
1612
 
fi
1613
 
if test -z "$CC"; then
1614
 
  ac_ct_CC=$CC
1615
 
  for ac_prog in cl
1616
 
do
1617
 
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1618
 
set dummy $ac_prog; ac_word=$2
1619
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
1620
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1621
 
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1622
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1623
 
else
1624
 
  if test -n "$ac_ct_CC"; then
1625
 
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1626
 
else
1627
 
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1628
 
for as_dir in $PATH
1629
 
do
1630
 
  IFS=$as_save_IFS
1631
 
  test -z "$as_dir" && as_dir=.
1632
 
  for ac_exec_ext in '' $ac_executable_extensions; do
1633
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1634
 
    ac_cv_prog_ac_ct_CC="$ac_prog"
1635
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636
 
    break 2
1637
 
  fi
1638
 
done
1639
 
done
1640
 
 
1641
 
fi
1642
 
fi
1643
 
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1644
 
if test -n "$ac_ct_CC"; then
1645
 
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1646
 
echo "${ECHO_T}$ac_ct_CC" >&6
1647
 
else
1648
 
  echo "$as_me:$LINENO: result: no" >&5
1649
 
echo "${ECHO_T}no" >&6
1650
 
fi
1651
 
 
1652
 
  test -n "$ac_ct_CC" && break
1653
 
done
1654
 
 
1655
 
  CC=$ac_ct_CC
1656
 
fi
1657
 
 
1658
 
fi
1659
 
 
1660
 
 
1661
 
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1662
 
See \`config.log' for more details." >&5
1663
 
echo "$as_me: error: no acceptable C compiler found in \$PATH
1664
 
See \`config.log' for more details." >&2;}
1665
 
   { (exit 1); exit 1; }; }
1666
 
 
1667
 
# Provide some information about the compiler.
1668
 
echo "$as_me:$LINENO:" \
1669
 
     "checking for C compiler version" >&5
1670
 
ac_compiler=`set X $ac_compile; echo $2`
1671
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1672
 
  (eval $ac_compiler --version </dev/null >&5) 2>&5
1673
 
  ac_status=$?
1674
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1675
 
  (exit $ac_status); }
1676
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1677
 
  (eval $ac_compiler -v </dev/null >&5) 2>&5
1678
 
  ac_status=$?
1679
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1680
 
  (exit $ac_status); }
1681
 
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1682
 
  (eval $ac_compiler -V </dev/null >&5) 2>&5
1683
 
  ac_status=$?
1684
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685
 
  (exit $ac_status); }
1686
 
 
1687
 
cat >conftest.$ac_ext <<_ACEOF
1688
 
/* confdefs.h.  */
1689
 
_ACEOF
1690
 
cat confdefs.h >>conftest.$ac_ext
1691
 
cat >>conftest.$ac_ext <<_ACEOF
1692
 
/* end confdefs.h.  */
1693
 
 
1694
 
int
1695
 
main ()
1696
 
{
1697
 
 
1698
 
  ;
1699
 
  return 0;
1700
 
}
1701
 
_ACEOF
1702
 
ac_clean_files_save=$ac_clean_files
1703
 
ac_clean_files="$ac_clean_files a.out a.exe b.out"
1704
 
# Try to create an executable without -o first, disregard a.out.
1705
 
# It will help us diagnose broken compilers, and finding out an intuition
1706
 
# of exeext.
1707
 
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1708
 
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1709
 
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1710
 
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1711
 
  (eval $ac_link_default) 2>&5
1712
 
  ac_status=$?
1713
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714
 
  (exit $ac_status); }; then
1715
 
  # Find the output, starting from the most likely.  This scheme is
1716
 
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1717
 
# resort.
1718
 
 
1719
 
# Be careful to initialize this variable, since it used to be cached.
1720
 
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1721
 
ac_cv_exeext=
1722
 
# b.out is created by i960 compilers.
1723
 
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1724
 
do
1725
 
  test -f "$ac_file" || continue
1726
 
  case $ac_file in
1727
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1728
 
        ;;
1729
 
    conftest.$ac_ext )
1730
 
        # This is the source file.
1731
 
        ;;
1732
 
    [ab].out )
1733
 
        # We found the default executable, but exeext='' is most
1734
 
        # certainly right.
1735
 
        break;;
1736
 
    *.* )
1737
 
        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1738
 
        # FIXME: I believe we export ac_cv_exeext for Libtool,
1739
 
        # but it would be cool to find out if it's true.  Does anybody
1740
 
        # maintain Libtool? --akim.
1741
 
        export ac_cv_exeext
1742
 
        break;;
1743
 
    * )
1744
 
        break;;
1745
 
  esac
1746
 
done
1747
 
else
1748
 
  echo "$as_me: failed program was:" >&5
1749
 
sed 's/^/| /' conftest.$ac_ext >&5
1750
 
 
1751
 
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1752
 
See \`config.log' for more details." >&5
1753
 
echo "$as_me: error: C compiler cannot create executables
1754
 
See \`config.log' for more details." >&2;}
1755
 
   { (exit 77); exit 77; }; }
1756
 
fi
1757
 
 
1758
 
ac_exeext=$ac_cv_exeext
1759
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1760
 
echo "${ECHO_T}$ac_file" >&6
1761
 
 
1762
 
# Check the compiler produces executables we can run.  If not, either
1763
 
# the compiler is broken, or we cross compile.
1764
 
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1765
 
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1766
 
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1767
 
# If not cross compiling, check that we can run a simple program.
1768
 
if test "$cross_compiling" != yes; then
1769
 
  if { ac_try='./$ac_file'
1770
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1771
 
  (eval $ac_try) 2>&5
1772
 
  ac_status=$?
1773
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774
 
  (exit $ac_status); }; }; then
1775
 
    cross_compiling=no
1776
 
  else
1777
 
    if test "$cross_compiling" = maybe; then
1778
 
        cross_compiling=yes
1779
 
    else
1780
 
        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1781
 
If you meant to cross compile, use \`--host'.
1782
 
See \`config.log' for more details." >&5
1783
 
echo "$as_me: error: cannot run C compiled programs.
1784
 
If you meant to cross compile, use \`--host'.
1785
 
See \`config.log' for more details." >&2;}
1786
 
   { (exit 1); exit 1; }; }
1787
 
    fi
1788
 
  fi
1789
 
fi
1790
 
echo "$as_me:$LINENO: result: yes" >&5
1791
 
echo "${ECHO_T}yes" >&6
1792
 
 
1793
 
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1794
 
ac_clean_files=$ac_clean_files_save
1795
 
# Check the compiler produces executables we can run.  If not, either
1796
 
# the compiler is broken, or we cross compile.
1797
 
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1798
 
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1799
 
echo "$as_me:$LINENO: result: $cross_compiling" >&5
1800
 
echo "${ECHO_T}$cross_compiling" >&6
1801
 
 
1802
 
echo "$as_me:$LINENO: checking for suffix of executables" >&5
1803
 
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1804
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1805
 
  (eval $ac_link) 2>&5
1806
 
  ac_status=$?
1807
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808
 
  (exit $ac_status); }; then
1809
 
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1810
 
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1811
 
# work properly (i.e., refer to `conftest.exe'), while it won't with
1812
 
# `rm'.
1813
 
for ac_file in conftest.exe conftest conftest.*; do
1814
 
  test -f "$ac_file" || continue
1815
 
  case $ac_file in
1816
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1817
 
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818
 
          export ac_cv_exeext
1819
 
          break;;
1820
 
    * ) break;;
1821
 
  esac
1822
 
done
1823
 
else
1824
 
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1825
 
See \`config.log' for more details." >&5
1826
 
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1827
 
See \`config.log' for more details." >&2;}
1828
 
   { (exit 1); exit 1; }; }
1829
 
fi
1830
 
 
1831
 
rm -f conftest$ac_cv_exeext
1832
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1833
 
echo "${ECHO_T}$ac_cv_exeext" >&6
1834
 
 
1835
 
rm -f conftest.$ac_ext
1836
 
EXEEXT=$ac_cv_exeext
1837
 
ac_exeext=$EXEEXT
1838
 
echo "$as_me:$LINENO: checking for suffix of object files" >&5
1839
 
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1840
 
if test "${ac_cv_objext+set}" = set; then
1841
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1842
 
else
1843
 
  cat >conftest.$ac_ext <<_ACEOF
1844
 
/* confdefs.h.  */
1845
 
_ACEOF
1846
 
cat confdefs.h >>conftest.$ac_ext
1847
 
cat >>conftest.$ac_ext <<_ACEOF
1848
 
/* end confdefs.h.  */
1849
 
 
1850
 
int
1851
 
main ()
1852
 
{
1853
 
 
1854
 
  ;
1855
 
  return 0;
1856
 
}
1857
 
_ACEOF
1858
 
rm -f conftest.o conftest.obj
1859
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1860
 
  (eval $ac_compile) 2>&5
1861
 
  ac_status=$?
1862
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863
 
  (exit $ac_status); }; then
1864
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1865
 
  case $ac_file in
1866
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1867
 
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1868
 
       break;;
1869
 
  esac
1870
 
done
1871
 
else
1872
 
  echo "$as_me: failed program was:" >&5
1873
 
sed 's/^/| /' conftest.$ac_ext >&5
1874
 
 
1875
 
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1876
 
See \`config.log' for more details." >&5
1877
 
echo "$as_me: error: cannot compute suffix of object files: cannot compile
1878
 
See \`config.log' for more details." >&2;}
1879
 
   { (exit 1); exit 1; }; }
1880
 
fi
1881
 
 
1882
 
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1883
 
fi
1884
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1885
 
echo "${ECHO_T}$ac_cv_objext" >&6
1886
 
OBJEXT=$ac_cv_objext
1887
 
ac_objext=$OBJEXT
1888
 
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1889
 
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1890
 
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1891
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1892
 
else
1893
 
  cat >conftest.$ac_ext <<_ACEOF
1894
 
/* confdefs.h.  */
1895
 
_ACEOF
1896
 
cat confdefs.h >>conftest.$ac_ext
1897
 
cat >>conftest.$ac_ext <<_ACEOF
1898
 
/* end confdefs.h.  */
1899
 
 
1900
 
int
1901
 
main ()
1902
 
{
1903
 
#ifndef __GNUC__
1904
 
       choke me
1905
 
#endif
1906
 
 
1907
 
  ;
1908
 
  return 0;
1909
 
}
1910
 
_ACEOF
1911
 
rm -f conftest.$ac_objext
1912
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913
 
  (eval $ac_compile) 2>conftest.er1
1914
 
  ac_status=$?
1915
 
  grep -v '^ *+' conftest.er1 >conftest.err
1916
 
  rm -f conftest.er1
1917
 
  cat conftest.err >&5
1918
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1919
 
  (exit $ac_status); } &&
1920
 
         { ac_try='test -z "$ac_c_werror_flag"
1921
 
                         || test ! -s conftest.err'
1922
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923
 
  (eval $ac_try) 2>&5
1924
 
  ac_status=$?
1925
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926
 
  (exit $ac_status); }; } &&
1927
 
         { ac_try='test -s conftest.$ac_objext'
1928
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1929
 
  (eval $ac_try) 2>&5
1930
 
  ac_status=$?
1931
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1932
 
  (exit $ac_status); }; }; then
1933
 
  ac_compiler_gnu=yes
1934
 
else
1935
 
  echo "$as_me: failed program was:" >&5
1936
 
sed 's/^/| /' conftest.$ac_ext >&5
1937
 
 
1938
 
ac_compiler_gnu=no
1939
 
fi
1940
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1941
 
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1942
 
 
1943
 
fi
1944
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1945
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1946
 
GCC=`test $ac_compiler_gnu = yes && echo yes`
1947
 
ac_test_CFLAGS=${CFLAGS+set}
1948
 
ac_save_CFLAGS=$CFLAGS
1949
 
CFLAGS="-g"
1950
 
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1951
 
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1952
 
if test "${ac_cv_prog_cc_g+set}" = set; then
1953
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
1954
 
else
1955
 
  cat >conftest.$ac_ext <<_ACEOF
1956
 
/* confdefs.h.  */
1957
 
_ACEOF
1958
 
cat confdefs.h >>conftest.$ac_ext
1959
 
cat >>conftest.$ac_ext <<_ACEOF
1960
 
/* end confdefs.h.  */
1961
 
 
1962
 
int
1963
 
main ()
1964
 
{
1965
 
 
1966
 
  ;
1967
 
  return 0;
1968
 
}
1969
 
_ACEOF
1970
 
rm -f conftest.$ac_objext
1971
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1972
 
  (eval $ac_compile) 2>conftest.er1
1973
 
  ac_status=$?
1974
 
  grep -v '^ *+' conftest.er1 >conftest.err
1975
 
  rm -f conftest.er1
1976
 
  cat conftest.err >&5
1977
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1978
 
  (exit $ac_status); } &&
1979
 
         { ac_try='test -z "$ac_c_werror_flag"
1980
 
                         || test ! -s conftest.err'
1981
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1982
 
  (eval $ac_try) 2>&5
1983
 
  ac_status=$?
1984
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1985
 
  (exit $ac_status); }; } &&
1986
 
         { ac_try='test -s conftest.$ac_objext'
1987
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1988
 
  (eval $ac_try) 2>&5
1989
 
  ac_status=$?
1990
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991
 
  (exit $ac_status); }; }; then
1992
 
  ac_cv_prog_cc_g=yes
1993
 
else
1994
 
  echo "$as_me: failed program was:" >&5
1995
 
sed 's/^/| /' conftest.$ac_ext >&5
1996
 
 
1997
 
ac_cv_prog_cc_g=no
1998
 
fi
1999
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2000
 
fi
2001
 
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2002
 
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2003
 
if test "$ac_test_CFLAGS" = set; then
2004
 
  CFLAGS=$ac_save_CFLAGS
2005
 
elif test $ac_cv_prog_cc_g = yes; then
2006
 
  if test "$GCC" = yes; then
2007
 
    CFLAGS="-g -O2"
2008
 
  else
2009
 
    CFLAGS="-g"
2010
 
  fi
2011
 
else
2012
 
  if test "$GCC" = yes; then
2013
 
    CFLAGS="-O2"
2014
 
  else
2015
 
    CFLAGS=
2016
 
  fi
2017
 
fi
2018
 
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2019
 
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2020
 
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2021
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2022
 
else
2023
 
  ac_cv_prog_cc_stdc=no
2024
 
ac_save_CC=$CC
2025
 
cat >conftest.$ac_ext <<_ACEOF
2026
 
/* confdefs.h.  */
2027
 
_ACEOF
2028
 
cat confdefs.h >>conftest.$ac_ext
2029
 
cat >>conftest.$ac_ext <<_ACEOF
2030
 
/* end confdefs.h.  */
2031
 
#include <stdarg.h>
2032
 
#include <stdio.h>
2033
 
#include <sys/types.h>
2034
 
#include <sys/stat.h>
2035
 
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2036
 
struct buf { int x; };
2037
 
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2038
 
static char *e (p, i)
2039
 
     char **p;
2040
 
     int i;
2041
 
{
2042
 
  return p[i];
2043
 
}
2044
 
static char *f (char * (*g) (char **, int), char **p, ...)
2045
 
{
2046
 
  char *s;
2047
 
  va_list v;
2048
 
  va_start (v,p);
2049
 
  s = g (p, va_arg (v,int));
2050
 
  va_end (v);
2051
 
  return s;
2052
 
}
2053
 
 
2054
 
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2055
 
   function prototypes and stuff, but not '\xHH' hex character constants.
2056
 
   These don't provoke an error unfortunately, instead are silently treated
2057
 
   as 'x'.  The following induces an error, until -std1 is added to get
2058
 
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2059
 
   array size at least.  It's necessary to write '\x00'==0 to get something
2060
 
   that's true only with -std1.  */
2061
 
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2062
 
 
2063
 
int test (int i, double x);
2064
 
struct s1 {int (*f) (int a);};
2065
 
struct s2 {int (*f) (double a);};
2066
 
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2067
 
int argc;
2068
 
char **argv;
2069
 
int
2070
 
main ()
2071
 
{
2072
 
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2073
 
  ;
2074
 
  return 0;
2075
 
}
2076
 
_ACEOF
2077
 
# Don't try gcc -ansi; that turns off useful extensions and
2078
 
# breaks some systems' header files.
2079
 
# AIX                   -qlanglvl=ansi
2080
 
# Ultrix and OSF/1      -std1
2081
 
# HP-UX 10.20 and later -Ae
2082
 
# HP-UX older versions  -Aa -D_HPUX_SOURCE
2083
 
# SVR4                  -Xc -D__EXTENSIONS__
2084
 
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2085
 
do
2086
 
  CC="$ac_save_CC $ac_arg"
2087
 
  rm -f conftest.$ac_objext
2088
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2089
 
  (eval $ac_compile) 2>conftest.er1
2090
 
  ac_status=$?
2091
 
  grep -v '^ *+' conftest.er1 >conftest.err
2092
 
  rm -f conftest.er1
2093
 
  cat conftest.err >&5
2094
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2095
 
  (exit $ac_status); } &&
2096
 
         { ac_try='test -z "$ac_c_werror_flag"
2097
 
                         || test ! -s conftest.err'
2098
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099
 
  (eval $ac_try) 2>&5
2100
 
  ac_status=$?
2101
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102
 
  (exit $ac_status); }; } &&
2103
 
         { ac_try='test -s conftest.$ac_objext'
2104
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2105
 
  (eval $ac_try) 2>&5
2106
 
  ac_status=$?
2107
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108
 
  (exit $ac_status); }; }; then
2109
 
  ac_cv_prog_cc_stdc=$ac_arg
2110
 
break
2111
 
else
2112
 
  echo "$as_me: failed program was:" >&5
2113
 
sed 's/^/| /' conftest.$ac_ext >&5
2114
 
 
2115
 
fi
2116
 
rm -f conftest.err conftest.$ac_objext 
2117
 
done
2118
 
rm -f conftest.$ac_ext conftest.$ac_objext
2119
 
CC=$ac_save_CC
2120
 
 
2121
 
fi
2122
 
 
2123
 
case "x$ac_cv_prog_cc_stdc" in
2124
 
  x|xno)
2125
 
    echo "$as_me:$LINENO: result: none needed" >&5
2126
 
echo "${ECHO_T}none needed" >&6 ;;
2127
 
  *)
2128
 
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2129
 
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2130
 
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2131
 
esac
2132
 
 
2133
 
# Some people use a C++ compiler to compile C.  Since we use `exit',
2134
 
# in C++ we need to declare it.  In case someone uses the same compiler
2135
 
# for both compiling C and C++ we need to have the C++ compiler decide
2136
 
# the declaration of exit, since it's the most demanding environment.
2137
 
cat >conftest.$ac_ext <<_ACEOF
2138
 
@%:@ifndef __cplusplus
2139
 
  choke me
2140
 
@%:@endif
2141
 
_ACEOF
2142
 
rm -f conftest.$ac_objext
2143
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2144
 
  (eval $ac_compile) 2>conftest.er1
2145
 
  ac_status=$?
2146
 
  grep -v '^ *+' conftest.er1 >conftest.err
2147
 
  rm -f conftest.er1
2148
 
  cat conftest.err >&5
2149
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150
 
  (exit $ac_status); } &&
2151
 
         { ac_try='test -z "$ac_c_werror_flag"
2152
 
                         || test ! -s conftest.err'
2153
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154
 
  (eval $ac_try) 2>&5
2155
 
  ac_status=$?
2156
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157
 
  (exit $ac_status); }; } &&
2158
 
         { ac_try='test -s conftest.$ac_objext'
2159
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160
 
  (eval $ac_try) 2>&5
2161
 
  ac_status=$?
2162
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163
 
  (exit $ac_status); }; }; then
2164
 
  for ac_declaration in \
2165
 
   '' \
2166
 
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2167
 
   'extern "C" void std::exit (int); using std::exit;' \
2168
 
   'extern "C" void exit (int) throw ();' \
2169
 
   'extern "C" void exit (int);' \
2170
 
   'void exit (int);'
2171
 
do
2172
 
  cat >conftest.$ac_ext <<_ACEOF
2173
 
/* confdefs.h.  */
2174
 
_ACEOF
2175
 
cat confdefs.h >>conftest.$ac_ext
2176
 
cat >>conftest.$ac_ext <<_ACEOF
2177
 
/* end confdefs.h.  */
2178
 
$ac_declaration
2179
 
@%:@include <stdlib.h>
2180
 
int
2181
 
main ()
2182
 
{
2183
 
exit (42);
2184
 
  ;
2185
 
  return 0;
2186
 
}
2187
 
_ACEOF
2188
 
rm -f conftest.$ac_objext
2189
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190
 
  (eval $ac_compile) 2>conftest.er1
2191
 
  ac_status=$?
2192
 
  grep -v '^ *+' conftest.er1 >conftest.err
2193
 
  rm -f conftest.er1
2194
 
  cat conftest.err >&5
2195
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196
 
  (exit $ac_status); } &&
2197
 
         { ac_try='test -z "$ac_c_werror_flag"
2198
 
                         || test ! -s conftest.err'
2199
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2200
 
  (eval $ac_try) 2>&5
2201
 
  ac_status=$?
2202
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203
 
  (exit $ac_status); }; } &&
2204
 
         { ac_try='test -s conftest.$ac_objext'
2205
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206
 
  (eval $ac_try) 2>&5
2207
 
  ac_status=$?
2208
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209
 
  (exit $ac_status); }; }; then
2210
 
  :
2211
 
else
2212
 
  echo "$as_me: failed program was:" >&5
2213
 
sed 's/^/| /' conftest.$ac_ext >&5
2214
 
 
2215
 
continue
2216
 
fi
2217
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218
 
  cat >conftest.$ac_ext <<_ACEOF
2219
 
/* confdefs.h.  */
2220
 
_ACEOF
2221
 
cat confdefs.h >>conftest.$ac_ext
2222
 
cat >>conftest.$ac_ext <<_ACEOF
2223
 
/* end confdefs.h.  */
2224
 
$ac_declaration
2225
 
int
2226
 
main ()
2227
 
{
2228
 
exit (42);
2229
 
  ;
2230
 
  return 0;
2231
 
}
2232
 
_ACEOF
2233
 
rm -f conftest.$ac_objext
2234
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2235
 
  (eval $ac_compile) 2>conftest.er1
2236
 
  ac_status=$?
2237
 
  grep -v '^ *+' conftest.er1 >conftest.err
2238
 
  rm -f conftest.er1
2239
 
  cat conftest.err >&5
2240
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2241
 
  (exit $ac_status); } &&
2242
 
         { ac_try='test -z "$ac_c_werror_flag"
2243
 
                         || test ! -s conftest.err'
2244
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2245
 
  (eval $ac_try) 2>&5
2246
 
  ac_status=$?
2247
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2248
 
  (exit $ac_status); }; } &&
2249
 
         { ac_try='test -s conftest.$ac_objext'
2250
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251
 
  (eval $ac_try) 2>&5
2252
 
  ac_status=$?
2253
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254
 
  (exit $ac_status); }; }; then
2255
 
  break
2256
 
else
2257
 
  echo "$as_me: failed program was:" >&5
2258
 
sed 's/^/| /' conftest.$ac_ext >&5
2259
 
 
2260
 
fi
2261
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2262
 
done
2263
 
rm -f conftest*
2264
 
if test -n "$ac_declaration"; then
2265
 
  echo '#ifdef __cplusplus' >>confdefs.h
2266
 
  echo $ac_declaration      >>confdefs.h
2267
 
  echo '#endif'             >>confdefs.h
2268
 
fi
2269
 
 
2270
 
else
2271
 
  echo "$as_me: failed program was:" >&5
2272
 
sed 's/^/| /' conftest.$ac_ext >&5
2273
 
 
2274
 
fi
2275
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276
 
ac_ext=c
2277
 
ac_cpp='$CPP $CPPFLAGS'
2278
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2281
 
 
2282
 
 
2283
 
 
2284
 
 
2285
 
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
2286
 
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
2287
 
if test "${ac_cv_c_const+set}" = set; then
2288
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2289
 
else
2290
 
  cat >conftest.$ac_ext <<_ACEOF
2291
 
/* confdefs.h.  */
2292
 
_ACEOF
2293
 
cat confdefs.h >>conftest.$ac_ext
2294
 
cat >>conftest.$ac_ext <<_ACEOF
2295
 
/* end confdefs.h.  */
2296
 
 
2297
 
int
2298
 
main ()
2299
 
{
2300
 
/* FIXME: Include the comments suggested by Paul. */
2301
 
#ifndef __cplusplus
2302
 
  /* Ultrix mips cc rejects this.  */
2303
 
  typedef int charset[2];
2304
 
  const charset x;
2305
 
  /* SunOS 4.1.1 cc rejects this.  */
2306
 
  char const *const *ccp;
2307
 
  char **p;
2308
 
  /* NEC SVR4.0.2 mips cc rejects this.  */
2309
 
  struct point {int x, y;};
2310
 
  static struct point const zero = {0,0};
2311
 
  /* AIX XL C 1.02.0.0 rejects this.
2312
 
     It does not let you subtract one const X* pointer from another in
2313
 
     an arm of an if-expression whose if-part is not a constant
2314
 
     expression */
2315
 
  const char *g = "string";
2316
 
  ccp = &g + (g ? g-g : 0);
2317
 
  /* HPUX 7.0 cc rejects these. */
2318
 
  ++ccp;
2319
 
  p = (char**) ccp;
2320
 
  ccp = (char const *const *) p;
2321
 
  { /* SCO 3.2v4 cc rejects this.  */
2322
 
    char *t;
2323
 
    char const *s = 0 ? (char *) 0 : (char const *) 0;
2324
 
 
2325
 
    *t++ = 0;
2326
 
  }
2327
 
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2328
 
    int x[] = {25, 17};
2329
 
    const int *foo = &x[0];
2330
 
    ++foo;
2331
 
  }
2332
 
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2333
 
    typedef const int *iptr;
2334
 
    iptr p = 0;
2335
 
    ++p;
2336
 
  }
2337
 
  { /* AIX XL C 1.02.0.0 rejects this saying
2338
 
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2339
 
    struct s { int j; const int *ap[3]; };
2340
 
    struct s *b; b->j = 5;
2341
 
  }
2342
 
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2343
 
    const int foo = 10;
2344
 
  }
2345
 
#endif
2346
 
 
2347
 
  ;
2348
 
  return 0;
2349
 
}
2350
 
_ACEOF
2351
 
rm -f conftest.$ac_objext
2352
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353
 
  (eval $ac_compile) 2>conftest.er1
2354
 
  ac_status=$?
2355
 
  grep -v '^ *+' conftest.er1 >conftest.err
2356
 
  rm -f conftest.er1
2357
 
  cat conftest.err >&5
2358
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359
 
  (exit $ac_status); } &&
2360
 
         { ac_try='test -z "$ac_c_werror_flag"
2361
 
                         || test ! -s conftest.err'
2362
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363
 
  (eval $ac_try) 2>&5
2364
 
  ac_status=$?
2365
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366
 
  (exit $ac_status); }; } &&
2367
 
         { ac_try='test -s conftest.$ac_objext'
2368
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369
 
  (eval $ac_try) 2>&5
2370
 
  ac_status=$?
2371
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372
 
  (exit $ac_status); }; }; then
2373
 
  ac_cv_c_const=yes
2374
 
else
2375
 
  echo "$as_me: failed program was:" >&5
2376
 
sed 's/^/| /' conftest.$ac_ext >&5
2377
 
 
2378
 
ac_cv_c_const=no
2379
 
fi
2380
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2381
 
fi
2382
 
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
2383
 
echo "${ECHO_T}$ac_cv_c_const" >&6
2384
 
if test $ac_cv_c_const = no; then
2385
 
  
2386
 
cat >>confdefs.h <<\_ACEOF
2387
 
@%:@define const 
2388
 
_ACEOF
2389
 
 
2390
 
fi
2391
 
 
2392
 
 
2393
 
case "$host" in
2394
 
    *-*-cygwin* | *-*-mingw32*)
2395
 
        EXE=".exe"
2396
 
        MATHLIB=""
2397
 
        SYS_GL_LIBS="-lopengl32"
2398
 
        ;;
2399
 
    *-*-beos*)
2400
 
        EXE=""
2401
 
        MATHLIB=""
2402
 
        SYS_GL_LIBS="-lGL"
2403
 
        ;;
2404
 
    *-*-darwin* )
2405
 
        EXE=""
2406
 
        MATHLIB=""
2407
 
        SYS_GL_LIBS="-Wl,-framework,OpenGL"
2408
 
        ;;
2409
 
    *-*-aix*)
2410
 
        EXE=""
2411
 
        if test x$ac_cv_c_compiler_gnu = xyes; then
2412
 
            CFLAGS="-mthreads"
2413
 
        fi
2414
 
        SYS_GL_LIBS=""
2415
 
        ;;
2416
 
    *-*-mint*)
2417
 
        EXE=""
2418
 
        MATHLIB=""
2419
 
        # Extract the first word of "osmesa-config", so it can be a program name with args.
2420
 
set dummy osmesa-config; ac_word=$2
2421
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2422
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2423
 
if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
2424
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2425
 
else
2426
 
  case $OSMESA_CONFIG in
2427
 
  [\\/]* | ?:[\\/]*)
2428
 
  ac_cv_path_OSMESA_CONFIG="$OSMESA_CONFIG" # Let the user override the test with a path.
2429
 
  ;;
2430
 
  *)
2431
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432
 
for as_dir in $PATH
2433
 
do
2434
 
  IFS=$as_save_IFS
2435
 
  test -z "$as_dir" && as_dir=.
2436
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2437
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2438
 
    ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2439
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440
 
    break 2
2441
 
  fi
2442
 
done
2443
 
done
2444
 
 
2445
 
  test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
2446
 
  ;;
2447
 
esac
2448
 
fi
2449
 
OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
2450
 
 
2451
 
if test -n "$OSMESA_CONFIG"; then
2452
 
  echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
2453
 
echo "${ECHO_T}$OSMESA_CONFIG" >&6
2454
 
else
2455
 
  echo "$as_me:$LINENO: result: no" >&5
2456
 
echo "${ECHO_T}no" >&6
2457
 
fi
2458
 
 
2459
 
        if test "x$OSMESA_CONFIG" = "xyes"; then
2460
 
            OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
2461
 
            OSMESA_LIBS=`$OSMESA_CONFIG --libs`
2462
 
            CFLAGS="$CFLAGS $OSMESA_CFLAGS"
2463
 
            SYS_GL_LIBS="$OSMESA_LIBS"
2464
 
        else
2465
 
            SYS_GL_LIBS="-lOSMesa"
2466
 
        fi
2467
 
                ;;
2468
 
    *)
2469
 
        EXE=""
2470
 
        MATHLIB="-lm"
2471
 
        SYS_GL_LIBS="-lGL"
2472
 
        ;;
2473
 
esac
2474
 
 
2475
 
 
2476
 
 
2477
 
SDL_VERSION=1.2.10
2478
 
 
2479
 
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
2480
 
if test "${with_sdl_prefix+set}" = set; then
2481
 
  withval="$with_sdl_prefix"
2482
 
  sdl_prefix="$withval"
2483
 
else
2484
 
  sdl_prefix=""
2485
 
fi; 
2486
 
 
2487
 
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
2488
 
if test "${with_sdl_exec_prefix+set}" = set; then
2489
 
  withval="$with_sdl_exec_prefix"
2490
 
  sdl_exec_prefix="$withval"
2491
 
else
2492
 
  sdl_exec_prefix=""
2493
 
fi; 
2494
 
# Check whether --enable-sdltest or --disable-sdltest was given.
2495
 
if test "${enable_sdltest+set}" = set; then
2496
 
  enableval="$enable_sdltest"
2497
 
  
2498
 
else
2499
 
  enable_sdltest=yes
2500
 
fi; 
2501
 
 
2502
 
  if test x$sdl_exec_prefix != x ; then
2503
 
    sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
2504
 
    if test x${SDL_CONFIG+set} != xset ; then
2505
 
       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
2506
 
    fi
2507
 
  fi
2508
 
  if test x$sdl_prefix != x ; then
2509
 
    sdl_args="$sdl_args --prefix=$sdl_prefix"
2510
 
    if test x${SDL_CONFIG+set} != xset ; then
2511
 
       SDL_CONFIG=$sdl_prefix/bin/sdl-config
2512
 
    fi
2513
 
  fi
2514
 
 
2515
 
  if test "x$prefix" != xNONE; then
2516
 
    PATH="$prefix/bin:$prefix/usr/bin:$PATH"
2517
 
  fi
2518
 
  # Extract the first word of "sdl-config", so it can be a program name with args.
2519
 
set dummy sdl-config; ac_word=$2
2520
 
echo "$as_me:$LINENO: checking for $ac_word" >&5
2521
 
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2522
 
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
2523
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2524
 
else
2525
 
  case $SDL_CONFIG in
2526
 
  [\\/]* | ?:[\\/]*)
2527
 
  ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
2528
 
  ;;
2529
 
  *)
2530
 
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2531
 
for as_dir in $PATH
2532
 
do
2533
 
  IFS=$as_save_IFS
2534
 
  test -z "$as_dir" && as_dir=.
2535
 
  for ac_exec_ext in '' $ac_executable_extensions; do
2536
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2537
 
    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2538
 
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539
 
    break 2
2540
 
  fi
2541
 
done
2542
 
done
2543
 
 
2544
 
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
2545
 
  ;;
2546
 
esac
2547
 
fi
2548
 
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
2549
 
 
2550
 
if test -n "$SDL_CONFIG"; then
2551
 
  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
2552
 
echo "${ECHO_T}$SDL_CONFIG" >&6
2553
 
else
2554
 
  echo "$as_me:$LINENO: result: no" >&5
2555
 
echo "${ECHO_T}no" >&6
2556
 
fi
2557
 
 
2558
 
  min_sdl_version=$SDL_VERSION
2559
 
  echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
2560
 
echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6
2561
 
  no_sdl=""
2562
 
  if test "$SDL_CONFIG" = "no" ; then
2563
 
    no_sdl=yes
2564
 
  else
2565
 
    SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
2566
 
    SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
2567
 
 
2568
 
    sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
2569
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2570
 
    sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
2571
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2572
 
    sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
2573
 
           sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2574
 
    if test "x$enable_sdltest" = "xyes" ; then
2575
 
      ac_save_CFLAGS="$CFLAGS"
2576
 
      ac_save_CXXFLAGS="$CXXFLAGS"
2577
 
      ac_save_LIBS="$LIBS"
2578
 
      CFLAGS="$CFLAGS $SDL_CFLAGS"
2579
 
      CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
2580
 
      LIBS="$LIBS $SDL_LIBS"
2581
 
      rm -f conf.sdltest
2582
 
      if test "$cross_compiling" = yes; then
2583
 
  echo $ac_n "cross compiling; assumed OK... $ac_c"
2584
 
else
2585
 
  cat >conftest.$ac_ext <<_ACEOF
2586
 
/* confdefs.h.  */
2587
 
_ACEOF
2588
 
cat confdefs.h >>conftest.$ac_ext
2589
 
cat >>conftest.$ac_ext <<_ACEOF
2590
 
/* end confdefs.h.  */
2591
 
 
2592
 
#include <stdio.h>
2593
 
#include <stdlib.h>
2594
 
#include <string.h>
2595
 
#include "SDL.h"
2596
 
 
2597
 
char*
2598
 
my_strdup (char *str)
2599
 
{
2600
 
  char *new_str;
2601
 
  
2602
 
  if (str)
2603
 
    {
2604
 
      new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
2605
 
      strcpy (new_str, str);
2606
 
    }
2607
 
  else
2608
 
    new_str = NULL;
2609
 
  
2610
 
  return new_str;
2611
 
}
2612
 
 
2613
 
int main (int argc, char *argv[])
2614
 
{
2615
 
  int major, minor, micro;
2616
 
  char *tmp_version;
2617
 
 
2618
 
  /* This hangs on some systems (?)
2619
 
  system ("touch conf.sdltest");
2620
 
  */
2621
 
  { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
2622
 
 
2623
 
  /* HP/UX 9 (%@#!) writes to sscanf strings */
2624
 
  tmp_version = my_strdup("$min_sdl_version");
2625
 
  if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2626
 
     printf("%s, bad version string\n", "$min_sdl_version");
2627
 
     exit(1);
2628
 
   }
2629
 
 
2630
 
   if (($sdl_major_version > major) ||
2631
 
      (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
2632
 
      (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
2633
 
    {
2634
 
      return 0;
2635
 
    }
2636
 
  else
2637
 
    {
2638
 
      printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
2639
 
      printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
2640
 
      printf("*** best to upgrade to the required version.\n");
2641
 
      printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
2642
 
      printf("*** to point to the correct copy of sdl-config, and remove the file\n");
2643
 
      printf("*** config.cache before re-running configure\n");
2644
 
      return 1;
2645
 
    }
2646
 
}
2647
 
 
2648
 
 
2649
 
_ACEOF
2650
 
rm -f conftest$ac_exeext
2651
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2652
 
  (eval $ac_link) 2>&5
2653
 
  ac_status=$?
2654
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655
 
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2656
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657
 
  (eval $ac_try) 2>&5
2658
 
  ac_status=$?
2659
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660
 
  (exit $ac_status); }; }; then
2661
 
  :
2662
 
else
2663
 
  echo "$as_me: program exited with status $ac_status" >&5
2664
 
echo "$as_me: failed program was:" >&5
2665
 
sed 's/^/| /' conftest.$ac_ext >&5
2666
 
 
2667
 
( exit $ac_status )
2668
 
no_sdl=yes
2669
 
fi
2670
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2671
 
fi
2672
 
       CFLAGS="$ac_save_CFLAGS"
2673
 
       CXXFLAGS="$ac_save_CXXFLAGS"
2674
 
       LIBS="$ac_save_LIBS"
2675
 
     fi
2676
 
  fi
2677
 
  if test "x$no_sdl" = x ; then
2678
 
     echo "$as_me:$LINENO: result: yes" >&5
2679
 
echo "${ECHO_T}yes" >&6
2680
 
     :     
2681
 
  else
2682
 
     echo "$as_me:$LINENO: result: no" >&5
2683
 
echo "${ECHO_T}no" >&6
2684
 
     if test "$SDL_CONFIG" = "no" ; then
2685
 
       echo "*** The sdl-config script installed by SDL could not be found"
2686
 
       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
2687
 
       echo "*** your path, or set the SDL_CONFIG environment variable to the"
2688
 
       echo "*** full path to sdl-config."
2689
 
     else
2690
 
       if test -f conf.sdltest ; then
2691
 
        :
2692
 
       else
2693
 
          echo "*** Could not run SDL test program, checking why..."
2694
 
          CFLAGS="$CFLAGS $SDL_CFLAGS"
2695
 
          CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
2696
 
          LIBS="$LIBS $SDL_LIBS"
2697
 
          cat >conftest.$ac_ext <<_ACEOF
2698
 
/* confdefs.h.  */
2699
 
_ACEOF
2700
 
cat confdefs.h >>conftest.$ac_ext
2701
 
cat >>conftest.$ac_ext <<_ACEOF
2702
 
/* end confdefs.h.  */
2703
 
 
2704
 
#include <stdio.h>
2705
 
#include "SDL.h"
2706
 
 
2707
 
int main(int argc, char *argv[])
2708
 
{ return 0; }
2709
 
#undef  main
2710
 
#define main K_and_R_C_main
2711
 
 
2712
 
int
2713
 
main ()
2714
 
{
2715
 
 return 0; 
2716
 
  ;
2717
 
  return 0;
2718
 
}
2719
 
_ACEOF
2720
 
rm -f conftest.$ac_objext conftest$ac_exeext
2721
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2722
 
  (eval $ac_link) 2>conftest.er1
2723
 
  ac_status=$?
2724
 
  grep -v '^ *+' conftest.er1 >conftest.err
2725
 
  rm -f conftest.er1
2726
 
  cat conftest.err >&5
2727
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728
 
  (exit $ac_status); } &&
2729
 
         { ac_try='test -z "$ac_c_werror_flag"
2730
 
                         || test ! -s conftest.err'
2731
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2732
 
  (eval $ac_try) 2>&5
2733
 
  ac_status=$?
2734
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735
 
  (exit $ac_status); }; } &&
2736
 
         { ac_try='test -s conftest$ac_exeext'
2737
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738
 
  (eval $ac_try) 2>&5
2739
 
  ac_status=$?
2740
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2741
 
  (exit $ac_status); }; }; then
2742
 
   echo "*** The test program compiled, but did not run. This usually means"
2743
 
          echo "*** that the run-time linker is not finding SDL or finding the wrong"
2744
 
          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
2745
 
          echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2746
 
          echo "*** to the installed location  Also, make sure you have run ldconfig if that"
2747
 
          echo "*** is required on your system"
2748
 
          echo "***"
2749
 
          echo "*** If you have an old version installed, it is best to remove it, although"
2750
 
          echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2751
 
else
2752
 
  echo "$as_me: failed program was:" >&5
2753
 
sed 's/^/| /' conftest.$ac_ext >&5
2754
 
 
2755
 
 echo "*** The test program failed to compile or link. See the file config.log for the"
2756
 
          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
2757
 
          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
2758
 
          echo "*** may want to edit the sdl-config script: $SDL_CONFIG" 
2759
 
fi
2760
 
rm -f conftest.err conftest.$ac_objext \
2761
 
      conftest$ac_exeext conftest.$ac_ext
2762
 
          CFLAGS="$ac_save_CFLAGS"
2763
 
          CXXFLAGS="$ac_save_CXXFLAGS"
2764
 
          LIBS="$ac_save_LIBS"
2765
 
       fi
2766
 
     fi
2767
 
     SDL_CFLAGS=""
2768
 
     SDL_LIBS=""
2769
 
     { { echo "$as_me:$LINENO: error: *** SDL version $SDL_VERSION not found!" >&5
2770
 
echo "$as_me: error: *** SDL version $SDL_VERSION not found!" >&2;}
2771
 
   { (exit 1); exit 1; }; }
2772
 
 
2773
 
  fi
2774
 
  
2775
 
  
2776
 
  rm -f conf.sdltest
2777
 
 
2778
 
CFLAGS="$CFLAGS $SDL_CFLAGS"
2779
 
LIBS="$LIBS $SDL_LIBS"
2780
 
 
2781
 
ac_ext=c
2782
 
ac_cpp='$CPP $CPPFLAGS'
2783
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2786
 
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2787
 
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2788
 
# On Suns, sometimes $CPP names a directory.
2789
 
if test -n "$CPP" && test -d "$CPP"; then
2790
 
  CPP=
2791
 
fi
2792
 
if test -z "$CPP"; then
2793
 
  if test "${ac_cv_prog_CPP+set}" = set; then
2794
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
2795
 
else
2796
 
      # Double quotes because CPP needs to be expanded
2797
 
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2798
 
    do
2799
 
      ac_preproc_ok=false
2800
 
for ac_c_preproc_warn_flag in '' yes
2801
 
do
2802
 
  # Use a header file that comes with gcc, so configuring glibc
2803
 
  # with a fresh cross-compiler works.
2804
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2805
 
  # <limits.h> exists even on freestanding compilers.
2806
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2807
 
  # not just through cpp. "Syntax error" is here to catch this case.
2808
 
  cat >conftest.$ac_ext <<_ACEOF
2809
 
/* confdefs.h.  */
2810
 
_ACEOF
2811
 
cat confdefs.h >>conftest.$ac_ext
2812
 
cat >>conftest.$ac_ext <<_ACEOF
2813
 
/* end confdefs.h.  */
2814
 
@%:@ifdef __STDC__
2815
 
@%:@ include <limits.h>
2816
 
@%:@else
2817
 
@%:@ include <assert.h>
2818
 
@%:@endif
2819
 
                     Syntax error
2820
 
_ACEOF
2821
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2822
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2823
 
  ac_status=$?
2824
 
  grep -v '^ *+' conftest.er1 >conftest.err
2825
 
  rm -f conftest.er1
2826
 
  cat conftest.err >&5
2827
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828
 
  (exit $ac_status); } >/dev/null; then
2829
 
  if test -s conftest.err; then
2830
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2831
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2832
 
  else
2833
 
    ac_cpp_err=
2834
 
  fi
2835
 
else
2836
 
  ac_cpp_err=yes
2837
 
fi
2838
 
if test -z "$ac_cpp_err"; then
2839
 
  :
2840
 
else
2841
 
  echo "$as_me: failed program was:" >&5
2842
 
sed 's/^/| /' conftest.$ac_ext >&5
2843
 
 
2844
 
  # Broken: fails on valid input.
2845
 
continue
2846
 
fi
2847
 
rm -f conftest.err conftest.$ac_ext
2848
 
 
2849
 
  # OK, works on sane cases.  Now check whether non-existent headers
2850
 
  # can be detected and how.
2851
 
  cat >conftest.$ac_ext <<_ACEOF
2852
 
/* confdefs.h.  */
2853
 
_ACEOF
2854
 
cat confdefs.h >>conftest.$ac_ext
2855
 
cat >>conftest.$ac_ext <<_ACEOF
2856
 
/* end confdefs.h.  */
2857
 
@%:@include <ac_nonexistent.h>
2858
 
_ACEOF
2859
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2860
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2861
 
  ac_status=$?
2862
 
  grep -v '^ *+' conftest.er1 >conftest.err
2863
 
  rm -f conftest.er1
2864
 
  cat conftest.err >&5
2865
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866
 
  (exit $ac_status); } >/dev/null; then
2867
 
  if test -s conftest.err; then
2868
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2869
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2870
 
  else
2871
 
    ac_cpp_err=
2872
 
  fi
2873
 
else
2874
 
  ac_cpp_err=yes
2875
 
fi
2876
 
if test -z "$ac_cpp_err"; then
2877
 
  # Broken: success on invalid input.
2878
 
continue
2879
 
else
2880
 
  echo "$as_me: failed program was:" >&5
2881
 
sed 's/^/| /' conftest.$ac_ext >&5
2882
 
 
2883
 
  # Passes both tests.
2884
 
ac_preproc_ok=:
2885
 
break
2886
 
fi
2887
 
rm -f conftest.err conftest.$ac_ext
2888
 
 
2889
 
done
2890
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2891
 
rm -f conftest.err conftest.$ac_ext
2892
 
if $ac_preproc_ok; then
2893
 
  break
2894
 
fi
2895
 
 
2896
 
    done
2897
 
    ac_cv_prog_CPP=$CPP
2898
 
  
2899
 
fi
2900
 
  CPP=$ac_cv_prog_CPP
2901
 
else
2902
 
  ac_cv_prog_CPP=$CPP
2903
 
fi
2904
 
echo "$as_me:$LINENO: result: $CPP" >&5
2905
 
echo "${ECHO_T}$CPP" >&6
2906
 
ac_preproc_ok=false
2907
 
for ac_c_preproc_warn_flag in '' yes
2908
 
do
2909
 
  # Use a header file that comes with gcc, so configuring glibc
2910
 
  # with a fresh cross-compiler works.
2911
 
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2912
 
  # <limits.h> exists even on freestanding compilers.
2913
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
2914
 
  # not just through cpp. "Syntax error" is here to catch this case.
2915
 
  cat >conftest.$ac_ext <<_ACEOF
2916
 
/* confdefs.h.  */
2917
 
_ACEOF
2918
 
cat confdefs.h >>conftest.$ac_ext
2919
 
cat >>conftest.$ac_ext <<_ACEOF
2920
 
/* end confdefs.h.  */
2921
 
@%:@ifdef __STDC__
2922
 
@%:@ include <limits.h>
2923
 
@%:@else
2924
 
@%:@ include <assert.h>
2925
 
@%:@endif
2926
 
                     Syntax error
2927
 
_ACEOF
2928
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2930
 
  ac_status=$?
2931
 
  grep -v '^ *+' conftest.er1 >conftest.err
2932
 
  rm -f conftest.er1
2933
 
  cat conftest.err >&5
2934
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935
 
  (exit $ac_status); } >/dev/null; then
2936
 
  if test -s conftest.err; then
2937
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2938
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2939
 
  else
2940
 
    ac_cpp_err=
2941
 
  fi
2942
 
else
2943
 
  ac_cpp_err=yes
2944
 
fi
2945
 
if test -z "$ac_cpp_err"; then
2946
 
  :
2947
 
else
2948
 
  echo "$as_me: failed program was:" >&5
2949
 
sed 's/^/| /' conftest.$ac_ext >&5
2950
 
 
2951
 
  # Broken: fails on valid input.
2952
 
continue
2953
 
fi
2954
 
rm -f conftest.err conftest.$ac_ext
2955
 
 
2956
 
  # OK, works on sane cases.  Now check whether non-existent headers
2957
 
  # can be detected and how.
2958
 
  cat >conftest.$ac_ext <<_ACEOF
2959
 
/* confdefs.h.  */
2960
 
_ACEOF
2961
 
cat confdefs.h >>conftest.$ac_ext
2962
 
cat >>conftest.$ac_ext <<_ACEOF
2963
 
/* end confdefs.h.  */
2964
 
@%:@include <ac_nonexistent.h>
2965
 
_ACEOF
2966
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2968
 
  ac_status=$?
2969
 
  grep -v '^ *+' conftest.er1 >conftest.err
2970
 
  rm -f conftest.er1
2971
 
  cat conftest.err >&5
2972
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973
 
  (exit $ac_status); } >/dev/null; then
2974
 
  if test -s conftest.err; then
2975
 
    ac_cpp_err=$ac_c_preproc_warn_flag
2976
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2977
 
  else
2978
 
    ac_cpp_err=
2979
 
  fi
2980
 
else
2981
 
  ac_cpp_err=yes
2982
 
fi
2983
 
if test -z "$ac_cpp_err"; then
2984
 
  # Broken: success on invalid input.
2985
 
continue
2986
 
else
2987
 
  echo "$as_me: failed program was:" >&5
2988
 
sed 's/^/| /' conftest.$ac_ext >&5
2989
 
 
2990
 
  # Passes both tests.
2991
 
ac_preproc_ok=:
2992
 
break
2993
 
fi
2994
 
rm -f conftest.err conftest.$ac_ext
2995
 
 
2996
 
done
2997
 
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2998
 
rm -f conftest.err conftest.$ac_ext
2999
 
if $ac_preproc_ok; then
3000
 
  :
3001
 
else
3002
 
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3003
 
See \`config.log' for more details." >&5
3004
 
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3005
 
See \`config.log' for more details." >&2;}
3006
 
   { (exit 1); exit 1; }; }
3007
 
fi
3008
 
 
3009
 
ac_ext=c
3010
 
ac_cpp='$CPP $CPPFLAGS'
3011
 
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3012
 
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3013
 
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014
 
 
3015
 
 
3016
 
echo "$as_me:$LINENO: checking for X" >&5
3017
 
echo $ECHO_N "checking for X... $ECHO_C" >&6
3018
 
 
3019
 
 
3020
 
# Check whether --with-x or --without-x was given.
3021
 
if test "${with_x+set}" = set; then
3022
 
  withval="$with_x"
3023
 
  
3024
 
fi; 
3025
 
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3026
 
if test "x$with_x" = xno; then
3027
 
  # The user explicitly disabled X.
3028
 
  have_x=disabled
3029
 
else
3030
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3031
 
    # Both variables are already set.
3032
 
    have_x=yes
3033
 
  else
3034
 
    if test "${ac_cv_have_x+set}" = set; then
3035
 
  echo $ECHO_N "(cached) $ECHO_C" >&6
3036
 
else
3037
 
  # One or both of the vars are not set, and there is no cached value.
3038
 
ac_x_includes=no ac_x_libraries=no
3039
 
rm -fr conftest.dir
3040
 
if mkdir conftest.dir; then
3041
 
  cd conftest.dir
3042
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3043
 
  cat >Imakefile <<'_ACEOF'
3044
 
acfindx:
3045
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3046
 
_ACEOF
3047
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3048
 
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3049
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3050
 
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3051
 
    for ac_extension in a so sl; do
3052
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3053
 
         test -f $ac_im_libdir/libX11.$ac_extension; then
3054
 
        ac_im_usrlibdir=$ac_im_libdir; break
3055
 
      fi
3056
 
    done
3057
 
    # Screen out bogus values from the imake configuration.  They are
3058
 
    # bogus both because they are the default anyway, and because
3059
 
    # using them would break gcc on systems where it needs fixed includes.
3060
 
    case $ac_im_incroot in
3061
 
        /usr/include) ;;
3062
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3063
 
    esac
3064
 
    case $ac_im_usrlibdir in
3065
 
        /usr/lib | /lib) ;;
3066
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
3067
 
    esac
3068
 
  fi
3069
 
  cd ..
3070
 
  rm -fr conftest.dir
3071
 
fi
3072
 
 
3073
 
# Standard set of common directories for X headers.
3074
 
# Check X11 before X11Rn because it is often a symlink to the current release.
3075
 
ac_x_header_dirs='
3076
 
/usr/X11/include
3077
 
/usr/X11R6/include
3078
 
/usr/X11R5/include
3079
 
/usr/X11R4/include
3080
 
 
3081
 
/usr/include/X11
3082
 
/usr/include/X11R6
3083
 
/usr/include/X11R5
3084
 
/usr/include/X11R4
3085
 
 
3086
 
/usr/local/X11/include
3087
 
/usr/local/X11R6/include
3088
 
/usr/local/X11R5/include
3089
 
/usr/local/X11R4/include
3090
 
 
3091
 
/usr/local/include/X11
3092
 
/usr/local/include/X11R6
3093
 
/usr/local/include/X11R5
3094
 
/usr/local/include/X11R4
3095
 
 
3096
 
/usr/X386/include
3097
 
/usr/x386/include
3098
 
/usr/XFree86/include/X11
3099
 
 
3100
 
/usr/include
3101
 
/usr/local/include
3102
 
/usr/unsupported/include
3103
 
/usr/athena/include
3104
 
/usr/local/x11r5/include
3105
 
/usr/lpp/Xamples/include
3106
 
 
3107
 
/usr/openwin/include
3108
 
/usr/openwin/share/include'
3109
 
 
3110
 
if test "$ac_x_includes" = no; then
3111
 
  # Guess where to find include files, by looking for Intrinsic.h.
3112
 
  # First, try using that file with no special directory specified.
3113
 
  cat >conftest.$ac_ext <<_ACEOF
3114
 
/* confdefs.h.  */
3115
 
_ACEOF
3116
 
cat confdefs.h >>conftest.$ac_ext
3117
 
cat >>conftest.$ac_ext <<_ACEOF
3118
 
/* end confdefs.h.  */
3119
 
@%:@include <X11/Intrinsic.h>
3120
 
_ACEOF
3121
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3123
 
  ac_status=$?
3124
 
  grep -v '^ *+' conftest.er1 >conftest.err
3125
 
  rm -f conftest.er1
3126
 
  cat conftest.err >&5
3127
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3128
 
  (exit $ac_status); } >/dev/null; then
3129
 
  if test -s conftest.err; then
3130
 
    ac_cpp_err=$ac_c_preproc_warn_flag
3131
 
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3132
 
  else
3133
 
    ac_cpp_err=
3134
 
  fi
3135
 
else
3136
 
  ac_cpp_err=yes
3137
 
fi
3138
 
if test -z "$ac_cpp_err"; then
3139
 
  # We can compile using X headers with no special include directory.
3140
 
ac_x_includes=
3141
 
else
3142
 
  echo "$as_me: failed program was:" >&5
3143
 
sed 's/^/| /' conftest.$ac_ext >&5
3144
 
 
3145
 
  for ac_dir in $ac_x_header_dirs; do
3146
 
  if test -r "$ac_dir/X11/Intrinsic.h"; then
3147
 
    ac_x_includes=$ac_dir
3148
 
    break
3149
 
  fi
3150
 
done
3151
 
fi
3152
 
rm -f conftest.err conftest.$ac_ext
3153
 
fi # $ac_x_includes = no
3154
 
 
3155
 
if test "$ac_x_libraries" = no; then
3156
 
  # Check for the libraries.
3157
 
  # See if we find them without any special options.
3158
 
  # Don't add to $LIBS permanently.
3159
 
  ac_save_LIBS=$LIBS
3160
 
  LIBS="-lXt $LIBS"
3161
 
  cat >conftest.$ac_ext <<_ACEOF
3162
 
/* confdefs.h.  */
3163
 
_ACEOF
3164
 
cat confdefs.h >>conftest.$ac_ext
3165
 
cat >>conftest.$ac_ext <<_ACEOF
3166
 
/* end confdefs.h.  */
3167
 
@%:@include <X11/Intrinsic.h>
3168
 
int
3169
 
main ()
3170
 
{
3171
 
XtMalloc (0)
3172
 
  ;
3173
 
  return 0;
3174
 
}
3175
 
_ACEOF
3176
 
rm -f conftest.$ac_objext conftest$ac_exeext
3177
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3178
 
  (eval $ac_link) 2>conftest.er1
3179
 
  ac_status=$?
3180
 
  grep -v '^ *+' conftest.er1 >conftest.err
3181
 
  rm -f conftest.er1
3182
 
  cat conftest.err >&5
3183
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184
 
  (exit $ac_status); } &&
3185
 
         { ac_try='test -z "$ac_c_werror_flag"
3186
 
                         || test ! -s conftest.err'
3187
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3188
 
  (eval $ac_try) 2>&5
3189
 
  ac_status=$?
3190
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191
 
  (exit $ac_status); }; } &&
3192
 
         { ac_try='test -s conftest$ac_exeext'
3193
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3194
 
  (eval $ac_try) 2>&5
3195
 
  ac_status=$?
3196
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3197
 
  (exit $ac_status); }; }; then
3198
 
  LIBS=$ac_save_LIBS
3199
 
# We can link X programs with no special library path.
3200
 
ac_x_libraries=
3201
 
else
3202
 
  echo "$as_me: failed program was:" >&5
3203
 
sed 's/^/| /' conftest.$ac_ext >&5
3204
 
 
3205
 
LIBS=$ac_save_LIBS
3206
 
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3207
 
do
3208
 
  # Don't even attempt the hair of trying to link an X program!
3209
 
  for ac_extension in a so sl; do
3210
 
    if test -r $ac_dir/libXt.$ac_extension; then
3211
 
      ac_x_libraries=$ac_dir
3212
 
      break 2
3213
 
    fi
3214
 
  done
3215
 
done
3216
 
fi
3217
 
rm -f conftest.err conftest.$ac_objext \
3218
 
      conftest$ac_exeext conftest.$ac_ext
3219
 
fi # $ac_x_libraries = no
3220
 
 
3221
 
if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
3222
 
  # Didn't find X anywhere.  Cache the known absence of X.
3223
 
  ac_cv_have_x="have_x=no"
3224
 
else
3225
 
  # Record where we found X for the cache.
3226
 
  ac_cv_have_x="have_x=yes \
3227
 
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3228
 
fi
3229
 
fi
3230
 
 
3231
 
  fi
3232
 
  eval "$ac_cv_have_x"
3233
 
fi # $with_x != no
3234
 
 
3235
 
if test "$have_x" != yes; then
3236
 
  echo "$as_me:$LINENO: result: $have_x" >&5
3237
 
echo "${ECHO_T}$have_x" >&6
3238
 
  no_x=yes
3239
 
else
3240
 
  # If each of the values was on the command line, it overrides each guess.
3241
 
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3242
 
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3243
 
  # Update the cache value to reflect the command line values.
3244
 
  ac_cv_have_x="have_x=yes \
3245
 
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3246
 
  echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
3247
 
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
3248
 
fi
3249
 
 
3250
 
if test x$have_x = xyes; then
3251
 
    if test x$ac_x_includes = xno || test x$ac_x_includes = x; then
3252
 
        :
3253
 
    else
3254
 
        CFLAGS="$CFLAGS -I$ac_x_includes"
3255
 
    fi
3256
 
    if test x$ac_x_libraries = xno || test x$ac_x_libraries = x; then
3257
 
        :
3258
 
    else
3259
 
        XPATH="-L$ac_x_libraries"
3260
 
    fi
3261
 
fi
3262
 
 
3263
 
echo "$as_me:$LINENO: checking for OpenGL support" >&5
3264
 
echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6
3265
 
have_opengl=no
3266
 
cat >conftest.$ac_ext <<_ACEOF
3267
 
/* confdefs.h.  */
3268
 
_ACEOF
3269
 
cat confdefs.h >>conftest.$ac_ext
3270
 
cat >>conftest.$ac_ext <<_ACEOF
3271
 
/* end confdefs.h.  */
3272
 
 
3273
 
 #include "SDL_opengl.h"
3274
 
 
3275
 
int
3276
 
main ()
3277
 
{
3278
 
 
3279
 
 
3280
 
  ;
3281
 
  return 0;
3282
 
}
3283
 
_ACEOF
3284
 
rm -f conftest.$ac_objext
3285
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286
 
  (eval $ac_compile) 2>conftest.er1
3287
 
  ac_status=$?
3288
 
  grep -v '^ *+' conftest.er1 >conftest.err
3289
 
  rm -f conftest.er1
3290
 
  cat conftest.err >&5
3291
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292
 
  (exit $ac_status); } &&
3293
 
         { ac_try='test -z "$ac_c_werror_flag"
3294
 
                         || test ! -s conftest.err'
3295
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3296
 
  (eval $ac_try) 2>&5
3297
 
  ac_status=$?
3298
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299
 
  (exit $ac_status); }; } &&
3300
 
         { ac_try='test -s conftest.$ac_objext'
3301
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3302
 
  (eval $ac_try) 2>&5
3303
 
  ac_status=$?
3304
 
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3305
 
  (exit $ac_status); }; }; then
3306
 
  
3307
 
have_opengl=yes
3308
 
 
3309
 
else
3310
 
  echo "$as_me: failed program was:" >&5
3311
 
sed 's/^/| /' conftest.$ac_ext >&5
3312
 
 
3313
 
fi
3314
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3315
 
echo "$as_me:$LINENO: result: $have_opengl" >&5
3316
 
echo "${ECHO_T}$have_opengl" >&6
3317
 
if test x$have_opengl = xyes; then
3318
 
    CFLAGS="$CFLAGS -DHAVE_OPENGL"
3319
 
    GLLIB="$XPATH $SYS_GL_LIBS"
3320
 
else
3321
 
    GLLIB=""
3322
 
fi
3323
 
 
3324
 
 
3325
 
          ac_config_files="$ac_config_files Makefile"
3326
 
cat >confcache <<\_ACEOF
3327
 
# This file is a shell script that caches the results of configure
3328
 
# tests run on this system so they can be shared between configure
3329
 
# scripts and configure runs, see configure's option --config-cache.
3330
 
# It is not useful on other systems.  If it contains results you don't
3331
 
# want to keep, you may remove or edit it.
3332
 
#
3333
 
# config.status only pays attention to the cache file if you give it
3334
 
# the --recheck option to rerun configure.
3335
 
#
3336
 
# `ac_cv_env_foo' variables (set or unset) will be overridden when
3337
 
# loading this file, other *unset* `ac_cv_foo' will be assigned the
3338
 
# following values.
3339
 
 
3340
 
_ACEOF
3341
 
 
3342
 
# The following way of writing the cache mishandles newlines in values,
3343
 
# but we know of no workaround that is simple, portable, and efficient.
3344
 
# So, don't put newlines in cache variables' values.
3345
 
# Ultrix sh set writes to stderr and can't be redirected directly,
3346
 
# and sets the high bit in the cache file unless we assign to the vars.
3347
 
{
3348
 
  (set) 2>&1 |
3349
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3350
 
    *ac_space=\ *)
3351
 
      # `set' does not quote correctly, so add quotes (double-quote
3352
 
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3353
 
      sed -n \
3354
 
        "s/'/'\\\\''/g;
3355
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3356
 
      ;;
3357
 
    *)
3358
 
      # `set' quotes correctly as required by POSIX, so do not add quotes.
3359
 
      sed -n \
3360
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3361
 
      ;;
3362
 
    esac;
3363
 
} |
3364
 
  sed '
3365
 
     t clear
3366
 
     : clear
3367
 
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3368
 
     t end
3369
 
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3370
 
     : end' >>confcache
3371
 
if diff $cache_file confcache >/dev/null 2>&1; then :; else
3372
 
  if test -w $cache_file; then
3373
 
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3374
 
    cat confcache >$cache_file
3375
 
  else
3376
 
    echo "not updating unwritable cache $cache_file"
3377
 
  fi
3378
 
fi
3379
 
rm -f confcache
3380
 
 
3381
 
test "x$prefix" = xNONE && prefix=$ac_default_prefix
3382
 
# Let make expand exec_prefix.
3383
 
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3384
 
 
3385
 
# VPATH may cause trouble with some makes, so we remove $(srcdir),
3386
 
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3387
 
# trailing colons and then remove the whole line if VPATH becomes empty
3388
 
# (actually we leave an empty line to preserve line numbers).
3389
 
if test "x$srcdir" = x.; then
3390
 
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
3391
 
s/:*\$(srcdir):*/:/;
3392
 
s/:*\${srcdir}:*/:/;
3393
 
s/:*@srcdir@:*/:/;
3394
 
s/^\([^=]*=[     ]*\):*/\1/;
3395
 
s/:*$//;
3396
 
s/^[^=]*=[       ]*$//;
3397
 
}'
3398
 
fi
3399
 
 
3400
 
# Transform confdefs.h into DEFS.
3401
 
# Protect against shell expansion while executing Makefile rules.
3402
 
# Protect against Makefile macro expansion.
3403
 
#
3404
 
# If the first sed substitution is executed (which looks for macros that
3405
 
# take arguments), then we branch to the quote section.  Otherwise,
3406
 
# look for a macro that doesn't take arguments.
3407
 
cat >confdef2opt.sed <<\_ACEOF
3408
 
t clear
3409
 
: clear
3410
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3411
 
t quote
3412
 
s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
3413
 
t quote
3414
 
d
3415
 
: quote
3416
 
s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
3417
 
s,\[,\\&,g
3418
 
s,\],\\&,g
3419
 
s,\$,$$,g
3420
 
p
3421
 
_ACEOF
3422
 
# We use echo to avoid assuming a particular line-breaking character.
3423
 
# The extra dot is to prevent the shell from consuming trailing
3424
 
# line-breaks from the sub-command output.  A line-break within
3425
 
# single-quotes doesn't work because, if this script is created in a
3426
 
# platform that uses two characters for line-breaks (e.g., DOS), tr
3427
 
# would break.
3428
 
ac_LF_and_DOT=`echo; echo .`
3429
 
DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3430
 
rm -f confdef2opt.sed
3431
 
 
3432
 
 
3433
 
ac_libobjs=
3434
 
ac_ltlibobjs=
3435
 
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
3436
 
  # 1. Remove the extension, and $U if already installed.
3437
 
  ac_i=`echo "$ac_i" |
3438
 
         sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3439
 
  # 2. Add them.
3440
 
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3441
 
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3442
 
done
3443
 
LIB@&t@OBJS=$ac_libobjs
3444
 
 
3445
 
LTLIBOBJS=$ac_ltlibobjs
3446
 
 
3447
 
 
3448
 
 
3449
 
: ${CONFIG_STATUS=./config.status}
3450
 
ac_clean_files_save=$ac_clean_files
3451
 
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3452
 
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3453
 
echo "$as_me: creating $CONFIG_STATUS" >&6;}
3454
 
cat >$CONFIG_STATUS <<_ACEOF
3455
 
#! $SHELL
3456
 
# Generated by $as_me.
3457
 
# Run this file to recreate the current configuration.
3458
 
# Compiler output produced by configure, useful for debugging
3459
 
# configure, is in config.log if it exists.
3460
 
 
3461
 
debug=false
3462
 
ac_cs_recheck=false
3463
 
ac_cs_silent=false
3464
 
SHELL=\${CONFIG_SHELL-$SHELL}
3465
 
_ACEOF
3466
 
 
3467
 
cat >>$CONFIG_STATUS <<\_ACEOF
3468
 
## --------------------- ##
3469
 
## M4sh Initialization.  ##
3470
 
## --------------------- ##
3471
 
 
3472
 
# Be Bourne compatible
3473
 
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3474
 
  emulate sh
3475
 
  NULLCMD=:
3476
 
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3477
 
  # is contrary to our usage.  Disable this feature.
3478
 
  alias -g '${1+"$@"}'='"$@"'
3479
 
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3480
 
  set -o posix
3481
 
fi
3482
 
DUALCASE=1; export DUALCASE # for MKS sh
3483
 
 
3484
 
# Support unset when possible.
3485
 
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3486
 
  as_unset=unset
3487
 
else
3488
 
  as_unset=false
3489
 
fi
3490
 
 
3491
 
 
3492
 
# Work around bugs in pre-3.0 UWIN ksh.
3493
 
$as_unset ENV MAIL MAILPATH
3494
 
PS1='$ '
3495
 
PS2='> '
3496
 
PS4='+ '
3497
 
 
3498
 
# NLS nuisances.
3499
 
for as_var in \
3500
 
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3501
 
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3502
 
  LC_TELEPHONE LC_TIME
3503
 
do
3504
 
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3505
 
    eval $as_var=C; export $as_var
3506
 
  else
3507
 
    $as_unset $as_var
3508
 
  fi
3509
 
done
3510
 
 
3511
 
# Required to use basename.
3512
 
if expr a : '\(a\)' >/dev/null 2>&1; then
3513
 
  as_expr=expr
3514
 
else
3515
 
  as_expr=false
3516
 
fi
3517
 
 
3518
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3519
 
  as_basename=basename
3520
 
else
3521
 
  as_basename=false
3522
 
fi
3523
 
 
3524
 
 
3525
 
# Name of the executable.
3526
 
as_me=`$as_basename "$0" ||
3527
 
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3528
 
         X"$0" : 'X\(//\)$' \| \
3529
 
         X"$0" : 'X\(/\)$' \| \
3530
 
         .     : '\(.\)' 2>/dev/null ||
3531
 
echo X/"$0" |
3532
 
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3533
 
          /^X\/\(\/\/\)$/{ s//\1/; q; }
3534
 
          /^X\/\(\/\).*/{ s//\1/; q; }
3535
 
          s/.*/./; q'`
3536
 
 
3537
 
 
3538
 
# PATH needs CR, and LINENO needs CR and PATH.
3539
 
# Avoid depending upon Character Ranges.
3540
 
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3541
 
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3542
 
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3543
 
as_cr_digits='0123456789'
3544
 
as_cr_alnum=$as_cr_Letters$as_cr_digits
3545
 
 
3546
 
# The user is always right.
3547
 
if test "${PATH_SEPARATOR+set}" != set; then
3548
 
  echo "#! /bin/sh" >conf$$.sh
3549
 
  echo  "exit 0"   >>conf$$.sh
3550
 
  chmod +x conf$$.sh
3551
 
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3552
 
    PATH_SEPARATOR=';'
3553
 
  else
3554
 
    PATH_SEPARATOR=:
3555
 
  fi
3556
 
  rm -f conf$$.sh
3557
 
fi
3558
 
 
3559
 
 
3560
 
  as_lineno_1=$LINENO
3561
 
  as_lineno_2=$LINENO
3562
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3563
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
3564
 
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3565
 
  # Find who we are.  Look in the path if we contain no path at all
3566
 
  # relative or not.
3567
 
  case $0 in
3568
 
    *[\\/]* ) as_myself=$0 ;;
3569
 
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570
 
for as_dir in $PATH
3571
 
do
3572
 
  IFS=$as_save_IFS
3573
 
  test -z "$as_dir" && as_dir=.
3574
 
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3575
 
done
3576
 
 
3577
 
       ;;
3578
 
  esac
3579
 
  # We did not find ourselves, most probably we were run as `sh COMMAND'
3580
 
  # in which case we are not to be found in the path.
3581
 
  if test "x$as_myself" = x; then
3582
 
    as_myself=$0
3583
 
  fi
3584
 
  if test ! -f "$as_myself"; then
3585
 
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3586
 
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3587
 
   { (exit 1); exit 1; }; }
3588
 
  fi
3589
 
  case $CONFIG_SHELL in
3590
 
  '')
3591
 
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3592
 
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3593
 
do
3594
 
  IFS=$as_save_IFS
3595
 
  test -z "$as_dir" && as_dir=.
3596
 
  for as_base in sh bash ksh sh5; do
3597
 
         case $as_dir in
3598
 
         /*)
3599
 
           if ("$as_dir/$as_base" -c '
3600
 
  as_lineno_1=$LINENO
3601
 
  as_lineno_2=$LINENO
3602
 
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3603
 
  test "x$as_lineno_1" != "x$as_lineno_2" &&
3604
 
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3605
 
             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3606
 
             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3607
 
             CONFIG_SHELL=$as_dir/$as_base
3608
 
             export CONFIG_SHELL
3609
 
             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3610
 
           fi;;
3611
 
         esac
3612
 
       done
3613
 
done
3614
 
;;
3615
 
  esac
3616
 
 
3617
 
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3618
 
  # uniformly replaced by the line number.  The first 'sed' inserts a
3619
 
  # line-number line before each line; the second 'sed' does the real
3620
 
  # work.  The second script uses 'N' to pair each line-number line
3621
 
  # with the numbered line, and appends trailing '-' during
3622
 
  # substitution so that $LINENO is not a special case at line end.
3623
 
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3624
 
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3625
 
  sed '=' <$as_myself |
3626
 
    sed '
3627
 
      N
3628
 
      s,$,-,
3629
 
      : loop
3630
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3631
 
      t loop
3632
 
      s,-$,,
3633
 
      s,^['$as_cr_digits']*\n,,
3634
 
    ' >$as_me.lineno &&
3635
 
  chmod +x $as_me.lineno ||
3636
 
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3637
 
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3638
 
   { (exit 1); exit 1; }; }
3639
 
 
3640
 
  # Don't try to exec as it changes $[0], causing all sort of problems
3641
 
  # (the dirname of $[0] is not the place where we might find the
3642
 
  # original and so on.  Autoconf is especially sensible to this).
3643
 
  . ./$as_me.lineno
3644
 
  # Exit status is that of the last command.
3645
 
  exit
3646
 
}
3647
 
 
3648
 
 
3649
 
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3650
 
  *c*,-n*) ECHO_N= ECHO_C='
3651
 
' ECHO_T='      ' ;;
3652
 
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3653
 
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3654
 
esac
3655
 
 
3656
 
if expr a : '\(a\)' >/dev/null 2>&1; then
3657
 
  as_expr=expr
3658
 
else
3659
 
  as_expr=false
3660
 
fi
3661
 
 
3662
 
rm -f conf$$ conf$$.exe conf$$.file
3663
 
echo >conf$$.file
3664
 
if ln -s conf$$.file conf$$ 2>/dev/null; then
3665
 
  # We could just check for DJGPP; but this test a) works b) is more generic
3666
 
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3667
 
  if test -f conf$$.exe; then
3668
 
    # Don't use ln at all; we don't have any links
3669
 
    as_ln_s='cp -p'
3670
 
  else
3671
 
    as_ln_s='ln -s'
3672
 
  fi
3673
 
elif ln conf$$.file conf$$ 2>/dev/null; then
3674
 
  as_ln_s=ln
3675
 
else
3676
 
  as_ln_s='cp -p'
3677
 
fi
3678
 
rm -f conf$$ conf$$.exe conf$$.file
3679
 
 
3680
 
if mkdir -p . 2>/dev/null; then
3681
 
  as_mkdir_p=:
3682
 
else
3683
 
  test -d ./-p && rmdir ./-p
3684
 
  as_mkdir_p=false
3685
 
fi
3686
 
 
3687
 
as_executable_p="test -f"
3688
 
 
3689
 
# Sed expression to map a string onto a valid CPP name.
3690
 
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3691
 
 
3692
 
# Sed expression to map a string onto a valid variable name.
3693
 
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3694
 
 
3695
 
 
3696
 
# IFS
3697
 
# We need space, tab and new line, in precisely that order.
3698
 
as_nl='
3699
 
'
3700
 
IFS="   $as_nl"
3701
 
 
3702
 
# CDPATH.
3703
 
$as_unset CDPATH
3704
 
 
3705
 
exec 6>&1
3706
 
 
3707
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
3708
 
# report actual input values of CONFIG_FILES etc. instead of their
3709
 
# values after options handling.  Logging --version etc. is OK.
3710
 
exec 5>>config.log
3711
 
{
3712
 
  echo
3713
 
  sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
3714
 
@%:@@%:@ Running $as_me. @%:@@%:@
3715
 
_ASBOX
3716
 
} >&5
3717
 
cat >&5 <<_CSEOF
3718
 
 
3719
 
This file was extended by $as_me, which was
3720
 
generated by GNU Autoconf 2.59.  Invocation command line was
3721
 
 
3722
 
  CONFIG_FILES    = $CONFIG_FILES
3723
 
  CONFIG_HEADERS  = $CONFIG_HEADERS
3724
 
  CONFIG_LINKS    = $CONFIG_LINKS
3725
 
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3726
 
  $ $0 $@
3727
 
 
3728
 
_CSEOF
3729
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3730
 
echo >&5
3731
 
_ACEOF
3732
 
 
3733
 
# Files that config.status was made for.
3734
 
if test -n "$ac_config_files"; then
3735
 
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3736
 
fi
3737
 
 
3738
 
if test -n "$ac_config_headers"; then
3739
 
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3740
 
fi
3741
 
 
3742
 
if test -n "$ac_config_links"; then
3743
 
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3744
 
fi
3745
 
 
3746
 
if test -n "$ac_config_commands"; then
3747
 
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3748
 
fi
3749
 
 
3750
 
cat >>$CONFIG_STATUS <<\_ACEOF
3751
 
 
3752
 
ac_cs_usage="\
3753
 
\`$as_me' instantiates files from templates according to the
3754
 
current configuration.
3755
 
 
3756
 
Usage: $0 [OPTIONS] [FILE]...
3757
 
 
3758
 
  -h, --help       print this help, then exit
3759
 
  -V, --version    print version number, then exit
3760
 
  -q, --quiet      do not print progress messages
3761
 
  -d, --debug      don't remove temporary files
3762
 
      --recheck    update $as_me by reconfiguring in the same conditions
3763
 
  --file=FILE[:TEMPLATE]
3764
 
                   instantiate the configuration file FILE
3765
 
 
3766
 
Configuration files:
3767
 
$config_files
3768
 
 
3769
 
Report bugs to <bug-autoconf@gnu.org>."
3770
 
_ACEOF
3771
 
 
3772
 
cat >>$CONFIG_STATUS <<_ACEOF
3773
 
ac_cs_version="\\
3774
 
config.status
3775
 
configured by $0, generated by GNU Autoconf 2.59,
3776
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3777
 
 
3778
 
Copyright (C) 2003 Free Software Foundation, Inc.
3779
 
This config.status script is free software; the Free Software Foundation
3780
 
gives unlimited permission to copy, distribute and modify it."
3781
 
srcdir=$srcdir
3782
 
_ACEOF
3783
 
 
3784
 
cat >>$CONFIG_STATUS <<\_ACEOF
3785
 
# If no file are specified by the user, then we need to provide default
3786
 
# value.  By we need to know if files were specified by the user.
3787
 
ac_need_defaults=:
3788
 
while test $# != 0
3789
 
do
3790
 
  case $1 in
3791
 
  --*=*)
3792
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3793
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3794
 
    ac_shift=:
3795
 
    ;;
3796
 
  -*)
3797
 
    ac_option=$1
3798
 
    ac_optarg=$2
3799
 
    ac_shift=shift
3800
 
    ;;
3801
 
  *) # This is not an option, so the user has probably given explicit
3802
 
     # arguments.
3803
 
     ac_option=$1
3804
 
     ac_need_defaults=false;;
3805
 
  esac
3806
 
 
3807
 
  case $ac_option in
3808
 
  # Handling of the options.
3809
 
_ACEOF
3810
 
cat >>$CONFIG_STATUS <<\_ACEOF
3811
 
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3812
 
    ac_cs_recheck=: ;;
3813
 
  --version | --vers* | -V )
3814
 
    echo "$ac_cs_version"; exit 0 ;;
3815
 
  --he | --h)
3816
 
    # Conflict between --help and --header
3817
 
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3818
 
Try \`$0 --help' for more information." >&5
3819
 
echo "$as_me: error: ambiguous option: $1
3820
 
Try \`$0 --help' for more information." >&2;}
3821
 
   { (exit 1); exit 1; }; };;
3822
 
  --help | --hel | -h )
3823
 
    echo "$ac_cs_usage"; exit 0 ;;
3824
 
  --debug | --d* | -d )
3825
 
    debug=: ;;
3826
 
  --file | --fil | --fi | --f )
3827
 
    $ac_shift
3828
 
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3829
 
    ac_need_defaults=false;;
3830
 
  --header | --heade | --head | --hea )
3831
 
    $ac_shift
3832
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3833
 
    ac_need_defaults=false;;
3834
 
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3835
 
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3836
 
    ac_cs_silent=: ;;
3837
 
 
3838
 
  # This is an error.
3839
 
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3840
 
Try \`$0 --help' for more information." >&5
3841
 
echo "$as_me: error: unrecognized option: $1
3842
 
Try \`$0 --help' for more information." >&2;}
3843
 
   { (exit 1); exit 1; }; } ;;
3844
 
 
3845
 
  *) ac_config_targets="$ac_config_targets $1" ;;
3846
 
 
3847
 
  esac
3848
 
  shift
3849
 
done
3850
 
 
3851
 
ac_configure_extra_args=
3852
 
 
3853
 
if $ac_cs_silent; then
3854
 
  exec 6>/dev/null
3855
 
  ac_configure_extra_args="$ac_configure_extra_args --silent"
3856
 
fi
3857
 
 
3858
 
_ACEOF
3859
 
cat >>$CONFIG_STATUS <<_ACEOF
3860
 
if \$ac_cs_recheck; then
3861
 
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3862
 
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3863
 
fi
3864
 
 
3865
 
_ACEOF
3866
 
 
3867
 
 
3868
 
 
3869
 
 
3870
 
 
3871
 
cat >>$CONFIG_STATUS <<\_ACEOF
3872
 
for ac_config_target in $ac_config_targets
3873
 
do
3874
 
  case "$ac_config_target" in
3875
 
  # Handling of arguments.
3876
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3877
 
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3878
 
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3879
 
   { (exit 1); exit 1; }; };;
3880
 
  esac
3881
 
done
3882
 
 
3883
 
# If the user did not use the arguments to specify the items to instantiate,
3884
 
# then the envvar interface is used.  Set only those that are not.
3885
 
# We use the long form for the default assignment because of an extremely
3886
 
# bizarre bug on SunOS 4.1.3.
3887
 
if $ac_need_defaults; then
3888
 
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3889
 
fi
3890
 
 
3891
 
# Have a temporary directory for convenience.  Make it in the build tree
3892
 
# simply because there is no reason to put it here, and in addition,
3893
 
# creating and moving files from /tmp can sometimes cause problems.
3894
 
# Create a temporary directory, and hook for its removal unless debugging.
3895
 
$debug ||
3896
 
{
3897
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3898
 
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3899
 
}
3900
 
 
3901
 
# Create a (secure) tmp directory for tmp files.
3902
 
 
3903
 
{
3904
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3905
 
  test -n "$tmp" && test -d "$tmp"
3906
 
}  ||
3907
 
{
3908
 
  tmp=./confstat$$-$RANDOM
3909
 
  (umask 077 && mkdir $tmp)
3910
 
} ||
3911
 
{
3912
 
   echo "$me: cannot create a temporary directory in ." >&2
3913
 
   { (exit 1); exit 1; }
3914
 
}
3915
 
 
3916
 
_ACEOF
3917
 
 
3918
 
cat >>$CONFIG_STATUS <<_ACEOF
3919
 
 
3920
 
#
3921
 
# CONFIG_FILES section.
3922
 
#
3923
 
 
3924
 
# No need to generate the scripts if there are no CONFIG_FILES.
3925
 
# This happens for instance when ./config.status config.h
3926
 
if test -n "\$CONFIG_FILES"; then
3927
 
  # Protect against being on the right side of a sed subst in config.status.
3928
 
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3929
 
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3930
 
s,@SHELL@,$SHELL,;t t
3931
 
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3932
 
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3933
 
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3934
 
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3935
 
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3936
 
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3937
 
s,@exec_prefix@,$exec_prefix,;t t
3938
 
s,@prefix@,$prefix,;t t
3939
 
s,@program_transform_name@,$program_transform_name,;t t
3940
 
s,@bindir@,$bindir,;t t
3941
 
s,@sbindir@,$sbindir,;t t
3942
 
s,@libexecdir@,$libexecdir,;t t
3943
 
s,@datadir@,$datadir,;t t
3944
 
s,@sysconfdir@,$sysconfdir,;t t
3945
 
s,@sharedstatedir@,$sharedstatedir,;t t
3946
 
s,@localstatedir@,$localstatedir,;t t
3947
 
s,@libdir@,$libdir,;t t
3948
 
s,@includedir@,$includedir,;t t
3949
 
s,@oldincludedir@,$oldincludedir,;t t
3950
 
s,@infodir@,$infodir,;t t
3951
 
s,@mandir@,$mandir,;t t
3952
 
s,@build_alias@,$build_alias,;t t
3953
 
s,@host_alias@,$host_alias,;t t
3954
 
s,@target_alias@,$target_alias,;t t
3955
 
s,@DEFS@,$DEFS,;t t
3956
 
s,@ECHO_C@,$ECHO_C,;t t
3957
 
s,@ECHO_N@,$ECHO_N,;t t
3958
 
s,@ECHO_T@,$ECHO_T,;t t
3959
 
s,@LIBS@,$LIBS,;t t
3960
 
s,@build@,$build,;t t
3961
 
s,@build_cpu@,$build_cpu,;t t
3962
 
s,@build_vendor@,$build_vendor,;t t
3963
 
s,@build_os@,$build_os,;t t
3964
 
s,@host@,$host,;t t
3965
 
s,@host_cpu@,$host_cpu,;t t
3966
 
s,@host_vendor@,$host_vendor,;t t
3967
 
s,@host_os@,$host_os,;t t
3968
 
s,@CC@,$CC,;t t
3969
 
s,@CFLAGS@,$CFLAGS,;t t
3970
 
s,@LDFLAGS@,$LDFLAGS,;t t
3971
 
s,@CPPFLAGS@,$CPPFLAGS,;t t
3972
 
s,@ac_ct_CC@,$ac_ct_CC,;t t
3973
 
s,@EXEEXT@,$EXEEXT,;t t
3974
 
s,@OBJEXT@,$OBJEXT,;t t
3975
 
s,@OSMESA_CONFIG@,$OSMESA_CONFIG,;t t
3976
 
s,@EXE@,$EXE,;t t
3977
 
s,@MATHLIB@,$MATHLIB,;t t
3978
 
s,@SDL_CONFIG@,$SDL_CONFIG,;t t
3979
 
s,@SDL_CFLAGS@,$SDL_CFLAGS,;t t
3980
 
s,@SDL_LIBS@,$SDL_LIBS,;t t
3981
 
s,@CPP@,$CPP,;t t
3982
 
s,@GLLIB@,$GLLIB,;t t
3983
 
s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
3984
 
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3985
 
CEOF
3986
 
 
3987
 
_ACEOF
3988
 
 
3989
 
  cat >>$CONFIG_STATUS <<\_ACEOF
3990
 
  # Split the substitutions into bite-sized pieces for seds with
3991
 
  # small command number limits, like on Digital OSF/1 and HP-UX.
3992
 
  ac_max_sed_lines=48
3993
 
  ac_sed_frag=1 # Number of current file.
3994
 
  ac_beg=1 # First line for current file.
3995
 
  ac_end=$ac_max_sed_lines # Line after last line for current file.
3996
 
  ac_more_lines=:
3997
 
  ac_sed_cmds=
3998
 
  while $ac_more_lines; do
3999
 
    if test $ac_beg -gt 1; then
4000
 
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4001
 
    else
4002
 
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
4003
 
    fi
4004
 
    if test ! -s $tmp/subs.frag; then
4005
 
      ac_more_lines=false
4006
 
    else
4007
 
      # The purpose of the label and of the branching condition is to
4008
 
      # speed up the sed processing (if there are no `@' at all, there
4009
 
      # is no need to browse any of the substitutions).
4010
 
      # These are the two extra sed commands mentioned above.
4011
 
      (echo ':t
4012
 
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4013
 
      if test -z "$ac_sed_cmds"; then
4014
 
        ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4015
 
      else
4016
 
        ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4017
 
      fi
4018
 
      ac_sed_frag=`expr $ac_sed_frag + 1`
4019
 
      ac_beg=$ac_end
4020
 
      ac_end=`expr $ac_end + $ac_max_sed_lines`
4021
 
    fi
4022
 
  done
4023
 
  if test -z "$ac_sed_cmds"; then
4024
 
    ac_sed_cmds=cat
4025
 
  fi
4026
 
fi # test -n "$CONFIG_FILES"
4027
 
 
4028
 
_ACEOF
4029
 
cat >>$CONFIG_STATUS <<\_ACEOF
4030
 
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4031
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4032
 
  case $ac_file in
4033
 
  - | *:- | *:-:* ) # input from stdin
4034
 
        cat >$tmp/stdin
4035
 
        ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4036
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4037
 
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4038
 
        ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4039
 
  * )   ac_file_in=$ac_file.in ;;
4040
 
  esac
4041
 
 
4042
 
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4043
 
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4044
 
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4045
 
         X"$ac_file" : 'X\(//\)[^/]' \| \
4046
 
         X"$ac_file" : 'X\(//\)$' \| \
4047
 
         X"$ac_file" : 'X\(/\)' \| \
4048
 
         .     : '\(.\)' 2>/dev/null ||
4049
 
echo X"$ac_file" |
4050
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4051
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4052
 
          /^X\(\/\/\)$/{ s//\1/; q; }
4053
 
          /^X\(\/\).*/{ s//\1/; q; }
4054
 
          s/.*/./; q'`
4055
 
  { if $as_mkdir_p; then
4056
 
    mkdir -p "$ac_dir"
4057
 
  else
4058
 
    as_dir="$ac_dir"
4059
 
    as_dirs=
4060
 
    while test ! -d "$as_dir"; do
4061
 
      as_dirs="$as_dir $as_dirs"
4062
 
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4063
 
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4064
 
         X"$as_dir" : 'X\(//\)[^/]' \| \
4065
 
         X"$as_dir" : 'X\(//\)$' \| \
4066
 
         X"$as_dir" : 'X\(/\)' \| \
4067
 
         .     : '\(.\)' 2>/dev/null ||
4068
 
echo X"$as_dir" |
4069
 
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4070
 
          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4071
 
          /^X\(\/\/\)$/{ s//\1/; q; }
4072
 
          /^X\(\/\).*/{ s//\1/; q; }
4073
 
          s/.*/./; q'`
4074
 
    done
4075
 
    test ! -n "$as_dirs" || mkdir $as_dirs
4076
 
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4077
 
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4078
 
   { (exit 1); exit 1; }; }; }
4079
 
 
4080
 
  ac_builddir=.
4081
 
 
4082
 
if test "$ac_dir" != .; then
4083
 
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4084
 
  # A "../" for each directory in $ac_dir_suffix.
4085
 
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4086
 
else
4087
 
  ac_dir_suffix= ac_top_builddir=
4088
 
fi
4089
 
 
4090
 
case $srcdir in
4091
 
  .)  # No --srcdir option.  We are building in place.
4092
 
    ac_srcdir=.
4093
 
    if test -z "$ac_top_builddir"; then
4094
 
       ac_top_srcdir=.
4095
 
    else
4096
 
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4097
 
    fi ;;
4098
 
  [\\/]* | ?:[\\/]* )  # Absolute path.
4099
 
    ac_srcdir=$srcdir$ac_dir_suffix;
4100
 
    ac_top_srcdir=$srcdir ;;
4101
 
  *) # Relative path.
4102
 
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4103
 
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4104
 
esac
4105
 
 
4106
 
# Do not use `cd foo && pwd` to compute absolute paths, because
4107
 
# the directories may not exist.
4108
 
case `pwd` in
4109
 
.) ac_abs_builddir="$ac_dir";;
4110
 
*)
4111
 
  case "$ac_dir" in
4112
 
  .) ac_abs_builddir=`pwd`;;
4113
 
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4114
 
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4115
 
  esac;;
4116
 
esac
4117
 
case $ac_abs_builddir in
4118
 
.) ac_abs_top_builddir=${ac_top_builddir}.;;
4119
 
*)
4120
 
  case ${ac_top_builddir}. in
4121
 
  .) ac_abs_top_builddir=$ac_abs_builddir;;
4122
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4123
 
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4124
 
  esac;;
4125
 
esac
4126
 
case $ac_abs_builddir in
4127
 
.) ac_abs_srcdir=$ac_srcdir;;
4128
 
*)
4129
 
  case $ac_srcdir in
4130
 
  .) ac_abs_srcdir=$ac_abs_builddir;;
4131
 
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4132
 
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4133
 
  esac;;
4134
 
esac
4135
 
case $ac_abs_builddir in
4136
 
.) ac_abs_top_srcdir=$ac_top_srcdir;;
4137
 
*)
4138
 
  case $ac_top_srcdir in
4139
 
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4140
 
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4141
 
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4142
 
  esac;;
4143
 
esac
4144
 
 
4145
 
 
4146
 
 
4147
 
  if test x"$ac_file" != x-; then
4148
 
    { echo "$as_me:$LINENO: creating $ac_file" >&5
4149
 
echo "$as_me: creating $ac_file" >&6;}
4150
 
    rm -f "$ac_file"
4151
 
  fi
4152
 
  # Let's still pretend it is `configure' which instantiates (i.e., don't
4153
 
  # use $as_me), people would be surprised to read:
4154
 
  #    /* config.h.  Generated by config.status.  */
4155
 
  if test x"$ac_file" = x-; then
4156
 
    configure_input=
4157
 
  else
4158
 
    configure_input="$ac_file.  "
4159
 
  fi
4160
 
  configure_input=$configure_input"Generated from `echo $ac_file_in |
4161
 
                                     sed 's,.*/,,'` by configure."
4162
 
 
4163
 
  # First look for the input files in the build tree, otherwise in the
4164
 
  # src tree.
4165
 
  ac_file_inputs=`IFS=:
4166
 
    for f in $ac_file_in; do
4167
 
      case $f in
4168
 
      -) echo $tmp/stdin ;;
4169
 
      [\\/$]*)
4170
 
         # Absolute (can't be DOS-style, as IFS=:)
4171
 
         test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4172
 
echo "$as_me: error: cannot find input file: $f" >&2;}
4173
 
   { (exit 1); exit 1; }; }
4174
 
         echo "$f";;
4175
 
      *) # Relative
4176
 
         if test -f "$f"; then
4177
 
           # Build tree
4178
 
           echo "$f"
4179
 
         elif test -f "$srcdir/$f"; then
4180
 
           # Source tree
4181
 
           echo "$srcdir/$f"
4182
 
         else
4183
 
           # /dev/null tree
4184
 
           { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4185
 
echo "$as_me: error: cannot find input file: $f" >&2;}
4186
 
   { (exit 1); exit 1; }; }
4187
 
         fi;;
4188
 
      esac
4189
 
    done` || { (exit 1); exit 1; }
4190
 
_ACEOF
4191
 
cat >>$CONFIG_STATUS <<_ACEOF
4192
 
  sed "$ac_vpsub
4193
 
$extrasub
4194
 
_ACEOF
4195
 
cat >>$CONFIG_STATUS <<\_ACEOF
4196
 
:t
4197
 
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4198
 
s,@configure_input@,$configure_input,;t t
4199
 
s,@srcdir@,$ac_srcdir,;t t
4200
 
s,@abs_srcdir@,$ac_abs_srcdir,;t t
4201
 
s,@top_srcdir@,$ac_top_srcdir,;t t
4202
 
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4203
 
s,@builddir@,$ac_builddir,;t t
4204
 
s,@abs_builddir@,$ac_abs_builddir,;t t
4205
 
s,@top_builddir@,$ac_top_builddir,;t t
4206
 
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4207
 
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4208
 
  rm -f $tmp/stdin
4209
 
  if test x"$ac_file" != x-; then
4210
 
    mv $tmp/out $ac_file
4211
 
  else
4212
 
    cat $tmp/out
4213
 
    rm -f $tmp/out
4214
 
  fi
4215
 
 
4216
 
done
4217
 
_ACEOF
4218
 
 
4219
 
cat >>$CONFIG_STATUS <<\_ACEOF
4220
 
 
4221
 
{ (exit 0); exit 0; }
4222
 
_ACEOF
4223
 
chmod +x $CONFIG_STATUS
4224
 
ac_clean_files=$ac_clean_files_save
4225
 
 
4226
 
 
4227
 
# configure is writing to config.log, and then calls config.status.
4228
 
# config.status does its own redirection, appending to config.log.
4229
 
# Unfortunately, on DOS this fails, as config.log is still kept open
4230
 
# by configure, so config.status won't be able to write to it; its
4231
 
# output is simply discarded.  So we exec the FD to /dev/null,
4232
 
# effectively closing config.log, so it can be properly (re)opened and
4233
 
# appended to by config.status.  When coming back to configure, we
4234
 
# need to make the FD available again.
4235
 
if test "$no_create" != yes; then
4236
 
  ac_cs_success=:
4237
 
  ac_config_status_args=
4238
 
  test "$silent" = yes &&
4239
 
    ac_config_status_args="$ac_config_status_args --quiet"
4240
 
  exec 5>/dev/null
4241
 
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4242
 
  exec 5>>config.log
4243
 
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4244
 
  # would make configure fail if this is the last instruction.
4245
 
  $ac_cs_success || { (exit 1); exit 1; }
4246
 
fi
4247