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

« back to all changes in this revision

Viewing changes to test/configure

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2008-01-05 14:10:45 UTC
  • mto: (2.1.3 lenny)
  • mto: This revision was merged to the branch mainline in revision 16.
  • Revision ID: james.westby@ubuntu.com-20080105141045-mjdg2rp09mamme4a
Tags: upstream-1.2.13
ImportĀ upstreamĀ versionĀ 1.2.13

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
2
# Guess values for system-dependent variables and create Makefiles.
3
 
# Generated by GNU Autoconf 2.59.
 
3
# Generated by GNU Autoconf 2.61.
4
4
#
5
 
# Copyright (C) 2003 Free Software Foundation, Inc.
 
5
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
6
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
6
7
# This configure script is free software; the Free Software Foundation
7
8
# gives unlimited permission to copy, distribute and modify it.
8
9
## --------------------- ##
9
10
## M4sh Initialization.  ##
10
11
## --------------------- ##
11
12
 
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
 
13
# Be more Bourne compatible
22
14
DUALCASE=1; export DUALCASE # for MKS sh
 
15
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
16
  emulate sh
 
17
  NULLCMD=:
 
18
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
19
  # is contrary to our usage.  Disable this feature.
 
20
  alias -g '${1+"$@"}'='"$@"'
 
21
  setopt NO_GLOB_SUBST
 
22
else
 
23
  case `(set -o) 2>/dev/null` in
 
24
  *posix*) set -o posix ;;
 
25
esac
 
26
 
 
27
fi
 
28
 
 
29
 
 
30
 
 
31
 
 
32
# PATH needs CR
 
33
# Avoid depending upon Character Ranges.
 
34
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
35
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
36
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
37
as_cr_digits='0123456789'
 
38
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
39
 
 
40
# The user is always right.
 
41
if test "${PATH_SEPARATOR+set}" != set; then
 
42
  echo "#! /bin/sh" >conf$$.sh
 
43
  echo  "exit 0"   >>conf$$.sh
 
44
  chmod +x conf$$.sh
 
45
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
46
    PATH_SEPARATOR=';'
 
47
  else
 
48
    PATH_SEPARATOR=:
 
49
  fi
 
50
  rm -f conf$$.sh
 
51
fi
23
52
 
24
53
# Support unset when possible.
25
54
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29
58
fi
30
59
 
31
60
 
 
61
# IFS
 
62
# We need space, tab and new line, in precisely that order.  Quoting is
 
63
# there to prevent editors from complaining about space-tab.
 
64
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
65
# splitting by setting IFS to empty value.)
 
66
as_nl='
 
67
'
 
68
IFS=" ""        $as_nl"
 
69
 
 
70
# Find who we are.  Look in the path if we contain no directory separator.
 
71
case $0 in
 
72
  *[\\/]* ) as_myself=$0 ;;
 
73
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
74
for as_dir in $PATH
 
75
do
 
76
  IFS=$as_save_IFS
 
77
  test -z "$as_dir" && as_dir=.
 
78
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
79
done
 
80
IFS=$as_save_IFS
 
81
 
 
82
     ;;
 
83
esac
 
84
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
85
# in which case we are not to be found in the path.
 
86
if test "x$as_myself" = x; then
 
87
  as_myself=$0
 
88
fi
 
89
if test ! -f "$as_myself"; then
 
90
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
91
  { (exit 1); exit 1; }
 
92
fi
 
93
 
32
94
# Work around bugs in pre-3.0 UWIN ksh.
33
 
$as_unset ENV MAIL MAILPATH
 
95
for as_var in ENV MAIL MAILPATH
 
96
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
97
done
34
98
PS1='$ '
35
99
PS2='> '
36
100
PS4='+ '
44
108
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45
109
    eval $as_var=C; export $as_var
46
110
  else
47
 
    $as_unset $as_var
 
111
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
48
112
  fi
49
113
done
50
114
 
51
115
# Required to use basename.
52
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
116
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
117
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
53
118
  as_expr=expr
54
119
else
55
120
  as_expr=false
56
121
fi
57
122
 
58
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
123
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59
124
  as_basename=basename
60
125
else
61
126
  as_basename=false
63
128
 
64
129
 
65
130
# Name of the executable.
66
 
as_me=`$as_basename "$0" ||
 
131
as_me=`$as_basename -- "$0" ||
67
132
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68
133
         X"$0" : 'X\(//\)$' \| \
69
 
         X"$0" : 'X\(/\)$' \| \
70
 
         .     : '\(.\)' 2>/dev/null ||
 
134
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
71
135
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
 
  '')
 
136
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
137
            s//\1/
 
138
            q
 
139
          }
 
140
          /^X\/\(\/\/\)$/{
 
141
            s//\1/
 
142
            q
 
143
          }
 
144
          /^X\/\(\/\).*/{
 
145
            s//\1/
 
146
            q
 
147
          }
 
148
          s/.*/./; q'`
 
149
 
 
150
# CDPATH.
 
151
$as_unset CDPATH
 
152
 
 
153
 
 
154
if test "x$CONFIG_SHELL" = x; then
 
155
  if (eval ":") 2>/dev/null; then
 
156
  as_have_required=yes
 
157
else
 
158
  as_have_required=no
 
159
fi
 
160
 
 
161
  if test $as_have_required = yes &&     (eval ":
 
162
(as_func_return () {
 
163
  (exit \$1)
 
164
}
 
165
as_func_success () {
 
166
  as_func_return 0
 
167
}
 
168
as_func_failure () {
 
169
  as_func_return 1
 
170
}
 
171
as_func_ret_success () {
 
172
  return 0
 
173
}
 
174
as_func_ret_failure () {
 
175
  return 1
 
176
}
 
177
 
 
178
exitcode=0
 
179
if as_func_success; then
 
180
  :
 
181
else
 
182
  exitcode=1
 
183
  echo as_func_success failed.
 
184
fi
 
185
 
 
186
if as_func_failure; then
 
187
  exitcode=1
 
188
  echo as_func_failure succeeded.
 
189
fi
 
190
 
 
191
if as_func_ret_success; then
 
192
  :
 
193
else
 
194
  exitcode=1
 
195
  echo as_func_ret_success failed.
 
196
fi
 
197
 
 
198
if as_func_ret_failure; then
 
199
  exitcode=1
 
200
  echo as_func_ret_failure succeeded.
 
201
fi
 
202
 
 
203
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
204
  :
 
205
else
 
206
  exitcode=1
 
207
  echo positional parameters were not saved.
 
208
fi
 
209
 
 
210
test \$exitcode = 0) || { (exit 1); exit 1; }
 
211
 
 
212
(
 
213
  as_lineno_1=\$LINENO
 
214
  as_lineno_2=\$LINENO
 
215
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
216
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
217
") 2> /dev/null; then
 
218
  :
 
219
else
 
220
  as_candidate_shells=
130
221
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131
222
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132
223
do
133
224
  IFS=$as_save_IFS
134
225
  test -z "$as_dir" && as_dir=.
135
 
  for as_base in sh bash ksh sh5; do
136
 
         case $as_dir in
 
226
  case $as_dir in
137
227
         /*)
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
 
228
           for as_base in sh bash ksh sh5; do
 
229
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
230
           done;;
 
231
       esac
152
232
done
153
 
;;
154
 
  esac
 
233
IFS=$as_save_IFS
 
234
 
 
235
 
 
236
      for as_shell in $as_candidate_shells $SHELL; do
 
237
         # Try only shells that exist, to save several forks.
 
238
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
239
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
240
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
241
  emulate sh
 
242
  NULLCMD=:
 
243
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
244
  # is contrary to our usage.  Disable this feature.
 
245
  alias -g '${1+"$@"}'='"$@"'
 
246
  setopt NO_GLOB_SUBST
 
247
else
 
248
  case `(set -o) 2>/dev/null` in
 
249
  *posix*) set -o posix ;;
 
250
esac
 
251
 
 
252
fi
 
253
 
 
254
 
 
255
:
 
256
_ASEOF
 
257
}; then
 
258
  CONFIG_SHELL=$as_shell
 
259
               as_have_required=yes
 
260
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
261
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
262
  emulate sh
 
263
  NULLCMD=:
 
264
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
265
  # is contrary to our usage.  Disable this feature.
 
266
  alias -g '${1+"$@"}'='"$@"'
 
267
  setopt NO_GLOB_SUBST
 
268
else
 
269
  case `(set -o) 2>/dev/null` in
 
270
  *posix*) set -o posix ;;
 
271
esac
 
272
 
 
273
fi
 
274
 
 
275
 
 
276
:
 
277
(as_func_return () {
 
278
  (exit $1)
 
279
}
 
280
as_func_success () {
 
281
  as_func_return 0
 
282
}
 
283
as_func_failure () {
 
284
  as_func_return 1
 
285
}
 
286
as_func_ret_success () {
 
287
  return 0
 
288
}
 
289
as_func_ret_failure () {
 
290
  return 1
 
291
}
 
292
 
 
293
exitcode=0
 
294
if as_func_success; then
 
295
  :
 
296
else
 
297
  exitcode=1
 
298
  echo as_func_success failed.
 
299
fi
 
300
 
 
301
if as_func_failure; then
 
302
  exitcode=1
 
303
  echo as_func_failure succeeded.
 
304
fi
 
305
 
 
306
if as_func_ret_success; then
 
307
  :
 
308
else
 
309
  exitcode=1
 
310
  echo as_func_ret_success failed.
 
311
fi
 
312
 
 
313
if as_func_ret_failure; then
 
314
  exitcode=1
 
315
  echo as_func_ret_failure succeeded.
 
316
fi
 
317
 
 
318
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
319
  :
 
320
else
 
321
  exitcode=1
 
322
  echo positional parameters were not saved.
 
323
fi
 
324
 
 
325
test $exitcode = 0) || { (exit 1); exit 1; }
 
326
 
 
327
(
 
328
  as_lineno_1=$LINENO
 
329
  as_lineno_2=$LINENO
 
330
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
331
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
332
 
 
333
_ASEOF
 
334
}; then
 
335
  break
 
336
fi
 
337
 
 
338
fi
 
339
 
 
340
      done
 
341
 
 
342
      if test "x$CONFIG_SHELL" != x; then
 
343
  for as_var in BASH_ENV ENV
 
344
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
345
        done
 
346
        export CONFIG_SHELL
 
347
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
348
fi
 
349
 
 
350
 
 
351
    if test $as_have_required = no; then
 
352
  echo This script requires a shell more modern than all the
 
353
      echo shells that I found on your system.  Please install a
 
354
      echo modern shell, or manually run the script under such a
 
355
      echo shell if you do have one.
 
356
      { (exit 1); exit 1; }
 
357
fi
 
358
 
 
359
 
 
360
fi
 
361
 
 
362
fi
 
363
 
 
364
 
 
365
 
 
366
(eval "as_func_return () {
 
367
  (exit \$1)
 
368
}
 
369
as_func_success () {
 
370
  as_func_return 0
 
371
}
 
372
as_func_failure () {
 
373
  as_func_return 1
 
374
}
 
375
as_func_ret_success () {
 
376
  return 0
 
377
}
 
378
as_func_ret_failure () {
 
379
  return 1
 
380
}
 
381
 
 
382
exitcode=0
 
383
if as_func_success; then
 
384
  :
 
385
else
 
386
  exitcode=1
 
387
  echo as_func_success failed.
 
388
fi
 
389
 
 
390
if as_func_failure; then
 
391
  exitcode=1
 
392
  echo as_func_failure succeeded.
 
393
fi
 
394
 
 
395
if as_func_ret_success; then
 
396
  :
 
397
else
 
398
  exitcode=1
 
399
  echo as_func_ret_success failed.
 
400
fi
 
401
 
 
402
if as_func_ret_failure; then
 
403
  exitcode=1
 
404
  echo as_func_ret_failure succeeded.
 
405
fi
 
406
 
 
407
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
408
  :
 
409
else
 
410
  exitcode=1
 
411
  echo positional parameters were not saved.
 
412
fi
 
413
 
 
414
test \$exitcode = 0") || {
 
415
  echo No shell found that supports shell functions.
 
416
  echo Please tell autoconf@gnu.org about your system,
 
417
  echo including any error possibly output before this
 
418
  echo message
 
419
}
 
420
 
 
421
 
 
422
 
 
423
  as_lineno_1=$LINENO
 
424
  as_lineno_2=$LINENO
 
425
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
426
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
155
427
 
156
428
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157
429
  # 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.
 
430
  # line-number line after each line using $LINENO; the second 'sed'
 
431
  # does the real work.  The second script uses 'N' to pair each
 
432
  # line-number line with the line containing $LINENO, and appends
 
433
  # trailing '-' during substitution so that $LINENO is not a special
 
434
  # case at line end.
162
435
  # (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 |
 
436
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
437
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
438
  sed -n '
 
439
    p
 
440
    /[$]LINENO/=
 
441
  ' <$as_myself |
165
442
    sed '
 
443
      s/[$]LINENO.*/&-/
 
444
      t lineno
 
445
      b
 
446
      :lineno
166
447
      N
167
 
      s,$,-,
168
 
      : loop
169
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
448
      :loop
 
449
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
170
450
      t loop
171
 
      s,-$,,
172
 
      s,^['$as_cr_digits']*\n,,
 
451
      s/-\n.*//
173
452
    ' >$as_me.lineno &&
174
 
  chmod +x $as_me.lineno ||
 
453
  chmod +x "$as_me.lineno" ||
175
454
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176
455
   { (exit 1); exit 1; }; }
177
456
 
178
457
  # Don't try to exec as it changes $[0], causing all sort of problems
179
458
  # (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
 
459
  # original and so on.  Autoconf is especially sensitive to this).
 
460
  . "./$as_me.lineno"
182
461
  # Exit status is that of the last command.
183
462
  exit
184
463
}
185
464
 
186
465
 
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= ;;
 
466
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
467
  as_dirname=dirname
 
468
else
 
469
  as_dirname=false
 
470
fi
 
471
 
 
472
ECHO_C= ECHO_N= ECHO_T=
 
473
case `echo -n x` in
 
474
-n*)
 
475
  case `echo 'x\c'` in
 
476
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
477
  *)   ECHO_C='\c';;
 
478
  esac;;
 
479
*)
 
480
  ECHO_N='-n';;
192
481
esac
193
482
 
194
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
483
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
484
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
195
485
  as_expr=expr
196
486
else
197
487
  as_expr=false
198
488
fi
199
489
 
200
490
rm -f conf$$ conf$$.exe conf$$.file
 
491
if test -d conf$$.dir; then
 
492
  rm -f conf$$.dir/conf$$.file
 
493
else
 
494
  rm -f conf$$.dir
 
495
  mkdir conf$$.dir
 
496
fi
201
497
echo >conf$$.file
202
498
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
 
499
  as_ln_s='ln -s'
 
500
  # ... but there are two gotchas:
 
501
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
502
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
503
  # In both cases, we have to default to `cp -p'.
 
504
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
207
505
    as_ln_s='cp -p'
208
 
  else
209
 
    as_ln_s='ln -s'
210
 
  fi
211
506
elif ln conf$$.file conf$$ 2>/dev/null; then
212
507
  as_ln_s=ln
213
508
else
214
509
  as_ln_s='cp -p'
215
510
fi
216
 
rm -f conf$$ conf$$.exe conf$$.file
 
511
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
512
rmdir conf$$.dir 2>/dev/null
217
513
 
218
514
if mkdir -p . 2>/dev/null; then
219
515
  as_mkdir_p=:
222
518
  as_mkdir_p=false
223
519
fi
224
520
 
225
 
as_executable_p="test -f"
 
521
if test -x / >/dev/null 2>&1; then
 
522
  as_test_x='test -x'
 
523
else
 
524
  if ls -dL / >/dev/null 2>&1; then
 
525
    as_ls_L_option=L
 
526
  else
 
527
    as_ls_L_option=
 
528
  fi
 
529
  as_test_x='
 
530
    eval sh -c '\''
 
531
      if test -d "$1"; then
 
532
        test -d "$1/.";
 
533
      else
 
534
        case $1 in
 
535
        -*)set "./$1";;
 
536
        esac;
 
537
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
538
        ???[sx]*):;;*)false;;esac;fi
 
539
    '\'' sh
 
540
  '
 
541
fi
 
542
as_executable_p=$as_test_x
226
543
 
227
544
# Sed expression to map a string onto a valid CPP name.
228
545
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231
548
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
549
 
233
550
 
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
 
 
 
551
 
 
552
exec 7<&0 </dev/null 6>&1
243
553
 
244
554
# Name of the host.
245
555
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246
556
# so uname gets run too.
247
557
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
558
 
249
 
exec 6>&1
250
 
 
251
559
#
252
560
# Initializations.
253
561
#
254
562
ac_default_prefix=/usr/local
 
563
ac_clean_files=
255
564
ac_config_libobj_dir=.
 
565
LIBOBJS=
256
566
cross_compiling=no
257
567
subdirs=
258
568
MFLAGS=
259
569
MAKEFLAGS=
260
570
SHELL=${CONFIG_SHELL-/bin/sh}
261
571
 
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
572
# Identity of this package.
268
573
PACKAGE_NAME=
269
574
PACKAGE_TARNAME=
272
577
PACKAGE_BUGREPORT=
273
578
 
274
579
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 LIBOBJS LTLIBOBJS'
 
580
ac_subst_vars='SHELL
 
581
PATH_SEPARATOR
 
582
PACKAGE_NAME
 
583
PACKAGE_TARNAME
 
584
PACKAGE_VERSION
 
585
PACKAGE_STRING
 
586
PACKAGE_BUGREPORT
 
587
exec_prefix
 
588
prefix
 
589
program_transform_name
 
590
bindir
 
591
sbindir
 
592
libexecdir
 
593
datarootdir
 
594
datadir
 
595
sysconfdir
 
596
sharedstatedir
 
597
localstatedir
 
598
includedir
 
599
oldincludedir
 
600
docdir
 
601
infodir
 
602
htmldir
 
603
dvidir
 
604
pdfdir
 
605
psdir
 
606
libdir
 
607
localedir
 
608
mandir
 
609
DEFS
 
610
ECHO_C
 
611
ECHO_N
 
612
ECHO_T
 
613
LIBS
 
614
build_alias
 
615
host_alias
 
616
target_alias
 
617
build
 
618
build_cpu
 
619
build_vendor
 
620
build_os
 
621
host
 
622
host_cpu
 
623
host_vendor
 
624
host_os
 
625
CC
 
626
CFLAGS
 
627
LDFLAGS
 
628
CPPFLAGS
 
629
ac_ct_CC
 
630
EXEEXT
 
631
OBJEXT
 
632
OSMESA_CONFIG
 
633
EXE
 
634
MATHLIB
 
635
SDL_CONFIG
 
636
SDL_CFLAGS
 
637
SDL_LIBS
 
638
XMKMF
 
639
CPP
 
640
GLLIB
 
641
LIBOBJS
 
642
LTLIBOBJS'
276
643
ac_subst_files=''
 
644
      ac_precious_vars='build_alias
 
645
host_alias
 
646
target_alias
 
647
CC
 
648
CFLAGS
 
649
LDFLAGS
 
650
LIBS
 
651
CPPFLAGS
 
652
XMKMF
 
653
CPP'
 
654
 
277
655
 
278
656
# Initialize some variables set by options.
279
657
ac_init_help=
300
678
# and all the variables that are supposed to be based on exec_prefix
301
679
# by default will actually change.
302
680
# Use braces instead of parens because sh, perl, etc. also accept them.
 
681
# (The list follows the same order as the GNU Coding Standards.)
303
682
bindir='${exec_prefix}/bin'
304
683
sbindir='${exec_prefix}/sbin'
305
684
libexecdir='${exec_prefix}/libexec'
306
 
datadir='${prefix}/share'
 
685
datarootdir='${prefix}/share'
 
686
datadir='${datarootdir}'
307
687
sysconfdir='${prefix}/etc'
308
688
sharedstatedir='${prefix}/com'
309
689
localstatedir='${prefix}/var'
310
 
libdir='${exec_prefix}/lib'
311
690
includedir='${prefix}/include'
312
691
oldincludedir='/usr/include'
313
 
infodir='${prefix}/info'
314
 
mandir='${prefix}/man'
 
692
docdir='${datarootdir}/doc/${PACKAGE}'
 
693
infodir='${datarootdir}/info'
 
694
htmldir='${docdir}'
 
695
dvidir='${docdir}'
 
696
pdfdir='${docdir}'
 
697
psdir='${docdir}'
 
698
libdir='${exec_prefix}/lib'
 
699
localedir='${datarootdir}/locale'
 
700
mandir='${datarootdir}/man'
315
701
 
316
702
ac_prev=
 
703
ac_dashdash=
317
704
for ac_option
318
705
do
319
706
  # If the previous option needs an argument, assign it.
320
707
  if test -n "$ac_prev"; then
321
 
    eval "$ac_prev=\$ac_option"
 
708
    eval $ac_prev=\$ac_option
322
709
    ac_prev=
323
710
    continue
324
711
  fi
325
712
 
326
 
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
 
713
  case $ac_option in
 
714
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
715
  *)    ac_optarg=yes ;;
 
716
  esac
327
717
 
328
718
  # Accept the important Cygnus configure options, so we can diagnose typos.
329
719
 
330
 
  case $ac_option in
 
720
  case $ac_dashdash$ac_option in
 
721
  --)
 
722
    ac_dashdash=yes ;;
331
723
 
332
724
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
333
725
    ac_prev=bindir ;;
349
741
  --config-cache | -C)
350
742
    cache_file=config.cache ;;
351
743
 
352
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
744
  -datadir | --datadir | --datadi | --datad)
353
745
    ac_prev=datadir ;;
354
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
355
 
  | --da=*)
 
746
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
356
747
    datadir=$ac_optarg ;;
357
748
 
 
749
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
750
  | --dataroo | --dataro | --datar)
 
751
    ac_prev=datarootdir ;;
 
752
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
753
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
754
    datarootdir=$ac_optarg ;;
 
755
 
358
756
  -disable-* | --disable-*)
359
757
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
360
758
    # Reject names that are not valid shell variable names.
361
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
759
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
362
760
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
363
761
   { (exit 1); exit 1; }; }
364
 
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
365
 
    eval "enable_$ac_feature=no" ;;
 
762
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
763
    eval enable_$ac_feature=no ;;
 
764
 
 
765
  -docdir | --docdir | --docdi | --doc | --do)
 
766
    ac_prev=docdir ;;
 
767
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
768
    docdir=$ac_optarg ;;
 
769
 
 
770
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
771
    ac_prev=dvidir ;;
 
772
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
773
    dvidir=$ac_optarg ;;
366
774
 
367
775
  -enable-* | --enable-*)
368
776
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
369
777
    # Reject names that are not valid shell variable names.
370
 
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
778
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
371
779
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
372
780
   { (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'" ;;
 
781
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
782
    eval enable_$ac_feature=\$ac_optarg ;;
379
783
 
380
784
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
381
785
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
402
806
  -host=* | --host=* | --hos=* | --ho=*)
403
807
    host_alias=$ac_optarg ;;
404
808
 
 
809
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
810
    ac_prev=htmldir ;;
 
811
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
812
  | --ht=*)
 
813
    htmldir=$ac_optarg ;;
 
814
 
405
815
  -includedir | --includedir | --includedi | --included | --include \
406
816
  | --includ | --inclu | --incl | --inc)
407
817
    ac_prev=includedir ;;
426
836
  | --libexe=* | --libex=* | --libe=*)
427
837
    libexecdir=$ac_optarg ;;
428
838
 
 
839
  -localedir | --localedir | --localedi | --localed | --locale)
 
840
    ac_prev=localedir ;;
 
841
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
842
    localedir=$ac_optarg ;;
 
843
 
429
844
  -localstatedir | --localstatedir | --localstatedi | --localstated \
430
 
  | --localstate | --localstat | --localsta | --localst \
431
 
  | --locals | --local | --loca | --loc | --lo)
 
845
  | --localstate | --localstat | --localsta | --localst | --locals)
432
846
    ac_prev=localstatedir ;;
433
847
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
434
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
435
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
 
848
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
436
849
    localstatedir=$ac_optarg ;;
437
850
 
438
851
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
497
910
  | --progr-tra=* | --program-tr=* | --program-t=*)
498
911
    program_transform_name=$ac_optarg ;;
499
912
 
 
913
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
914
    ac_prev=pdfdir ;;
 
915
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
916
    pdfdir=$ac_optarg ;;
 
917
 
 
918
  -psdir | --psdir | --psdi | --psd | --ps)
 
919
    ac_prev=psdir ;;
 
920
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
921
    psdir=$ac_optarg ;;
 
922
 
500
923
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
501
924
  | -silent | --silent | --silen | --sile | --sil)
502
925
    silent=yes ;;
549
972
  -with-* | --with-*)
550
973
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
551
974
    # Reject names that are not valid shell variable names.
552
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
975
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
553
976
      { echo "$as_me: error: invalid package name: $ac_package" >&2
554
977
   { (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'" ;;
 
978
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
979
    eval with_$ac_package=\$ac_optarg ;;
561
980
 
562
981
  -without-* | --without-*)
563
982
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
564
983
    # Reject names that are not valid shell variable names.
565
 
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
 
984
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
566
985
      { echo "$as_me: error: invalid package name: $ac_package" >&2
567
986
   { (exit 1); exit 1; }; }
568
 
    ac_package=`echo $ac_package | sed 's/-/_/g'`
569
 
    eval "with_$ac_package=no" ;;
 
987
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
988
    eval with_$ac_package=no ;;
570
989
 
571
990
  --x)
572
991
    # Obsolete; use --with-x.
597
1016
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
598
1017
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
599
1018
   { (exit 1); exit 1; }; }
600
 
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
601
 
    eval "$ac_envvar='$ac_optarg'"
 
1019
    eval $ac_envvar=\$ac_optarg
602
1020
    export $ac_envvar ;;
603
1021
 
604
1022
  *)
618
1036
   { (exit 1); exit 1; }; }
619
1037
fi
620
1038
 
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
 
1039
# Be sure to have absolute directory names.
 
1040
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1041
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1042
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1043
                libdir localedir mandir
 
1044
do
 
1045
  eval ac_val=\$$ac_var
 
1046
  case $ac_val in
 
1047
    [\\/$]* | ?:[\\/]* )  continue;;
 
1048
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1049
  esac
 
1050
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1051
   { (exit 1); exit 1; }; }
642
1052
done
643
1053
 
644
1054
# There might be people who depend on the old broken behavior: `$host'
665
1075
test "$silent" = yes && exec 6>/dev/null
666
1076
 
667
1077
 
 
1078
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1079
ac_ls_di=`ls -di .` &&
 
1080
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1081
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1082
   { (exit 1); exit 1; }; }
 
1083
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1084
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1085
   { (exit 1); exit 1; }; }
 
1086
 
 
1087
 
668
1088
# Find the source files, if location was not specified.
669
1089
if test -z "$srcdir"; then
670
1090
  ac_srcdir_defaulted=yes
671
 
  # Try the directory containing this script, then its parent.
672
 
  ac_confdir=`(dirname "$0") 2>/dev/null ||
 
1091
  # Try the directory containing this script, then the parent directory.
 
1092
  ac_confdir=`$as_dirname -- "$0" ||
673
1093
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
674
1094
         X"$0" : 'X\(//\)[^/]' \| \
675
1095
         X"$0" : 'X\(//\)$' \| \
676
 
         X"$0" : 'X\(/\)' \| \
677
 
         .     : '\(.\)' 2>/dev/null ||
 
1096
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
678
1097
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'`
 
1098
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1099
            s//\1/
 
1100
            q
 
1101
          }
 
1102
          /^X\(\/\/\)[^/].*/{
 
1103
            s//\1/
 
1104
            q
 
1105
          }
 
1106
          /^X\(\/\/\)$/{
 
1107
            s//\1/
 
1108
            q
 
1109
          }
 
1110
          /^X\(\/\).*/{
 
1111
            s//\1/
 
1112
            q
 
1113
          }
 
1114
          s/.*/./; q'`
684
1115
  srcdir=$ac_confdir
685
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1116
  if test ! -r "$srcdir/$ac_unique_file"; then
686
1117
    srcdir=..
687
1118
  fi
688
1119
else
689
1120
  ac_srcdir_defaulted=no
690
1121
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
 
1122
if test ! -r "$srcdir/$ac_unique_file"; then
 
1123
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1124
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1125
   { (exit 1); exit 1; }; }
 
1126
fi
 
1127
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1128
ac_abs_confdir=`(
 
1129
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1130
   { (exit 1); exit 1; }; }
 
1131
        pwd)`
 
1132
# When building in place, set srcdir=.
 
1133
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1134
  srcdir=.
 
1135
fi
 
1136
# Remove unnecessary trailing slashes from srcdir.
 
1137
# Double slashes in file names in object file debugging info
 
1138
# mess up M-x gdb in Emacs.
 
1139
case $srcdir in
 
1140
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1141
esac
 
1142
for ac_var in $ac_precious_vars; do
 
1143
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1144
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1145
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1146
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1147
done
736
1148
 
737
1149
#
738
1150
# Report the --help message.
761
1173
  -n, --no-create         do not create output files
762
1174
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
763
1175
 
764
 
_ACEOF
765
 
 
766
 
  cat <<_ACEOF
767
1176
Installation directories:
768
1177
  --prefix=PREFIX         install architecture-independent files in PREFIX
769
1178
                          [$ac_default_prefix]
781
1190
  --bindir=DIR           user executables [EPREFIX/bin]
782
1191
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
783
1192
  --libexecdir=DIR       program executables [EPREFIX/libexec]
784
 
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
785
1193
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
786
1194
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
787
1195
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
788
1196
  --libdir=DIR           object code libraries [EPREFIX/lib]
789
1197
  --includedir=DIR       C header files [PREFIX/include]
790
1198
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
791
 
  --infodir=DIR          info documentation [PREFIX/info]
792
 
  --mandir=DIR           man documentation [PREFIX/man]
 
1199
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1200
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1201
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1202
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1203
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1204
  --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
 
1205
  --htmldir=DIR          html documentation [DOCDIR]
 
1206
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1207
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1208
  --psdir=DIR            ps documentation [DOCDIR]
793
1209
_ACEOF
794
1210
 
795
1211
  cat <<\_ACEOF
825
1241
  CFLAGS      C compiler flags
826
1242
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
827
1243
              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>
 
1244
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1245
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1246
              you have headers in a nonstandard directory <include dir>
 
1247
  XMKMF       Path to xmkmf, Makefile generator for X Window System
830
1248
  CPP         C preprocessor
831
1249
 
832
1250
Use these variables to override the choices made by `configure' or to help
833
1251
it to find libraries and programs with nonstandard names/locations.
834
1252
 
835
1253
_ACEOF
 
1254
ac_status=$?
836
1255
fi
837
1256
 
838
1257
if test "$ac_init_help" = "recursive"; then
839
1258
  # If there are subdirs, report their specific --help.
840
 
  ac_popdir=`pwd`
841
1259
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
842
 
    test -d $ac_dir || continue
 
1260
    test -d "$ac_dir" || continue
843
1261
    ac_builddir=.
844
1262
 
845
 
if test "$ac_dir" != .; then
 
1263
case "$ac_dir" in
 
1264
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1265
*)
846
1266
  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
 
1267
  # A ".." for each directory in $ac_dir_suffix.
 
1268
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1269
  case $ac_top_builddir_sub in
 
1270
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1271
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1272
  esac ;;
 
1273
esac
 
1274
ac_abs_top_builddir=$ac_pwd
 
1275
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1276
# for backward compatibility:
 
1277
ac_top_builddir=$ac_top_build_prefix
852
1278
 
853
1279
case $srcdir in
854
 
  .)  # No --srcdir option.  We are building in place.
 
1280
  .)  # We are building in place.
855
1281
    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.
 
1282
    ac_top_srcdir=$ac_top_builddir_sub
 
1283
    ac_abs_top_srcdir=$ac_pwd ;;
 
1284
  [\\/]* | ?:[\\/]* )  # Absolute name.
862
1285
    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
 
1286
    ac_top_srcdir=$srcdir
 
1287
    ac_abs_top_srcdir=$srcdir ;;
 
1288
  *) # Relative name.
 
1289
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1290
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1291
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1292
esac
 
1293
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1294
 
 
1295
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1296
    # Check for guested configure.
 
1297
    if test -f "$ac_srcdir/configure.gnu"; then
 
1298
      echo &&
 
1299
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1300
    elif test -f "$ac_srcdir/configure"; then
 
1301
      echo &&
 
1302
      $SHELL "$ac_srcdir/configure" --help=recursive
920
1303
    else
921
1304
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
922
 
    fi
923
 
    cd $ac_popdir
 
1305
    fi || ac_status=$?
 
1306
    cd "$ac_pwd" || { ac_status=$?; break; }
924
1307
  done
925
1308
fi
926
1309
 
927
 
test -n "$ac_init_help" && exit 0
 
1310
test -n "$ac_init_help" && exit $ac_status
928
1311
if $ac_init_version; then
929
1312
  cat <<\_ACEOF
 
1313
configure
 
1314
generated by GNU Autoconf 2.61
930
1315
 
931
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
1316
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1317
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
932
1318
This configure script is free software; the Free Software Foundation
933
1319
gives unlimited permission to copy, distribute and modify it.
934
1320
_ACEOF
935
 
  exit 0
 
1321
  exit
936
1322
fi
937
 
exec 5>config.log
938
 
cat >&5 <<_ACEOF
 
1323
cat >config.log <<_ACEOF
939
1324
This file contains any messages produced by compilers while
940
1325
running configure, to aid debugging if configure makes a mistake.
941
1326
 
942
1327
It was created by $as_me, which was
943
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
1328
generated by GNU Autoconf 2.61.  Invocation command line was
944
1329
 
945
1330
  $ $0 $@
946
1331
 
947
1332
_ACEOF
 
1333
exec 5>>config.log
948
1334
{
949
1335
cat <<_ASUNAME
950
1336
## --------- ##
963
1349
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
964
1350
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
965
1351
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
966
 
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
 
1352
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
967
1353
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
968
1354
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
969
1355
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
977
1363
  test -z "$as_dir" && as_dir=.
978
1364
  echo "PATH: $as_dir"
979
1365
done
 
1366
IFS=$as_save_IFS
980
1367
 
981
1368
} >&5
982
1369
 
998
1385
ac_configure_args=
999
1386
ac_configure_args0=
1000
1387
ac_configure_args1=
1001
 
ac_sep=
1002
1388
ac_must_keep_next=false
1003
1389
for ac_pass in 1 2
1004
1390
do
1009
1395
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1010
1396
    | -silent | --silent | --silen | --sile | --sil)
1011
1397
      continue ;;
1012
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
 
1398
    *\'*)
1013
1399
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1014
1400
    esac
1015
1401
    case $ac_pass in
1031
1417
          -* ) ac_must_keep_next=true ;;
1032
1418
        esac
1033
1419
      fi
1034
 
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1035
 
      # Get rid of the leading space.
1036
 
      ac_sep=" "
 
1420
      ac_configure_args="$ac_configure_args '$ac_arg'"
1037
1421
      ;;
1038
1422
    esac
1039
1423
  done
1044
1428
# When interrupted or exit'd, cleanup temporary files, and complete
1045
1429
# config.log.  We remove comments because anyway the quotes in there
1046
1430
# 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.
 
1431
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1432
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1049
1433
trap 'exit_status=$?
1050
1434
  # Save into config.log some information that might help in debugging.
1051
1435
  {
1058
1442
_ASBOX
1059
1443
    echo
1060
1444
    # The following way of writing the cache mishandles newlines in values,
1061
 
{
 
1445
(
 
1446
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1447
    eval ac_val=\$$ac_var
 
1448
    case $ac_val in #(
 
1449
    *${as_nl}*)
 
1450
      case $ac_var in #(
 
1451
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1452
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1453
      esac
 
1454
      case $ac_var in #(
 
1455
      _ | IFS | as_nl) ;; #(
 
1456
      *) $as_unset $ac_var ;;
 
1457
      esac ;;
 
1458
    esac
 
1459
  done
1062
1460
  (set) 2>&1 |
1063
 
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1064
 
    *ac_space=\ *)
 
1461
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1462
    *${as_nl}ac_space=\ *)
1065
1463
      sed -n \
1066
 
        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1067
 
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1068
 
      ;;
 
1464
        "s/'\''/'\''\\\\'\'''\''/g;
 
1465
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1466
      ;; #(
1069
1467
    *)
1070
 
      sed -n \
1071
 
        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
 
1468
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1072
1469
      ;;
1073
 
    esac;
1074
 
}
 
1470
    esac |
 
1471
    sort
 
1472
)
1075
1473
    echo
1076
1474
 
1077
1475
    cat <<\_ASBOX
1082
1480
    echo
1083
1481
    for ac_var in $ac_subst_vars
1084
1482
    do
1085
 
      eval ac_val=$`echo $ac_var`
1086
 
      echo "$ac_var='"'"'$ac_val'"'"'"
 
1483
      eval ac_val=\$$ac_var
 
1484
      case $ac_val in
 
1485
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1486
      esac
 
1487
      echo "$ac_var='\''$ac_val'\''"
1087
1488
    done | sort
1088
1489
    echo
1089
1490
 
1090
1491
    if test -n "$ac_subst_files"; then
1091
1492
      cat <<\_ASBOX
1092
 
## ------------- ##
1093
 
## Output files. ##
1094
 
## ------------- ##
 
1493
## ------------------- ##
 
1494
## File substitutions. ##
 
1495
## ------------------- ##
1095
1496
_ASBOX
1096
1497
      echo
1097
1498
      for ac_var in $ac_subst_files
1098
1499
      do
1099
 
        eval ac_val=$`echo $ac_var`
1100
 
        echo "$ac_var='"'"'$ac_val'"'"'"
 
1500
        eval ac_val=\$$ac_var
 
1501
        case $ac_val in
 
1502
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1503
        esac
 
1504
        echo "$ac_var='\''$ac_val'\''"
1101
1505
      done | sort
1102
1506
      echo
1103
1507
    fi
1109
1513
## ----------- ##
1110
1514
_ASBOX
1111
1515
      echo
1112
 
      sed "/^$/d" confdefs.h | sort
 
1516
      cat confdefs.h
1113
1517
      echo
1114
1518
    fi
1115
1519
    test "$ac_signal" != 0 &&
1116
1520
      echo "$as_me: caught signal $ac_signal"
1117
1521
    echo "$as_me: exit $exit_status"
1118
1522
  } >&5
1119
 
  rm -f core *.core &&
1120
 
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
 
1523
  rm -f core *.core core.conftest.* &&
 
1524
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1121
1525
    exit $exit_status
1122
 
     ' 0
 
1526
' 0
1123
1527
for ac_signal in 1 2 13 15; do
1124
1528
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1125
1529
done
1126
1530
ac_signal=0
1127
1531
 
1128
1532
# 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
 
1533
rm -f -r conftest* confdefs.h
1132
1534
 
1133
1535
# Predefined preprocessor variables.
1134
1536
 
1159
1561
 
1160
1562
# Let the site file select an alternate cache file if it wants to.
1161
1563
# 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
 
1564
if test -n "$CONFIG_SITE"; then
 
1565
  set x "$CONFIG_SITE"
 
1566
elif test "x$prefix" != xNONE; then
 
1567
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1568
else
 
1569
  set x "$ac_default_prefix/share/config.site" \
 
1570
        "$ac_default_prefix/etc/config.site"
1168
1571
fi
1169
 
for ac_site_file in $CONFIG_SITE; do
 
1572
shift
 
1573
for ac_site_file
 
1574
do
1170
1575
  if test -r "$ac_site_file"; then
1171
1576
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1172
1577
echo "$as_me: loading site script $ac_site_file" >&6;}
1182
1587
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1183
1588
echo "$as_me: loading cache $cache_file" >&6;}
1184
1589
    case $cache_file in
1185
 
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1186
 
      *)                      . ./$cache_file;;
 
1590
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1591
      *)                      . "./$cache_file";;
1187
1592
    esac
1188
1593
  fi
1189
1594
else
1195
1600
# Check that the precious variables saved in the cache have kept the same
1196
1601
# value.
1197
1602
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
 
1603
for ac_var in $ac_precious_vars; do
1200
1604
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1201
1605
  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"
 
1606
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1607
  eval ac_new_val=\$ac_env_${ac_var}_value
1204
1608
  case $ac_old_set,$ac_new_set in
1205
1609
    set,)
1206
1610
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1225
1629
  # Pass precious variables to config.status.
1226
1630
  if test "$ac_new_set" = set; then
1227
1631
    case $ac_new_val in
1228
 
    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1229
 
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1632
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1230
1633
    *) ac_arg=$ac_var=$ac_new_val ;;
1231
1634
    esac
1232
1635
    case " $ac_configure_args " in
1243
1646
   { (exit 1); exit 1; }; }
1244
1647
fi
1245
1648
 
 
1649
 
 
1650
 
 
1651
 
 
1652
 
 
1653
 
 
1654
 
 
1655
 
 
1656
 
 
1657
 
 
1658
 
 
1659
 
 
1660
 
 
1661
 
 
1662
 
 
1663
 
 
1664
 
1246
1665
ac_ext=c
1247
1666
ac_cpp='$CPP $CPPFLAGS'
1248
1667
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1251
1670
 
1252
1671
 
1253
1672
 
1254
 
 
1255
 
 
1256
 
 
1257
 
 
1258
 
 
1259
 
 
1260
 
 
1261
 
 
1262
 
 
1263
 
 
1264
 
 
1265
 
 
1266
 
 
1267
 
 
1268
 
 
1269
 
 
1270
 
 
1271
1673
ac_aux_dir=
1272
1674
for ac_dir in $srcdir/../build-scripts; do
1273
 
  if test -f $ac_dir/install-sh; then
 
1675
  if test -f "$ac_dir/install-sh"; then
1274
1676
    ac_aux_dir=$ac_dir
1275
1677
    ac_install_sh="$ac_aux_dir/install-sh -c"
1276
1678
    break
1277
 
  elif test -f $ac_dir/install.sh; then
 
1679
  elif test -f "$ac_dir/install.sh"; then
1278
1680
    ac_aux_dir=$ac_dir
1279
1681
    ac_install_sh="$ac_aux_dir/install.sh -c"
1280
1682
    break
1281
 
  elif test -f $ac_dir/shtool; then
 
1683
  elif test -f "$ac_dir/shtool"; then
1282
1684
    ac_aux_dir=$ac_dir
1283
1685
    ac_install_sh="$ac_aux_dir/shtool install -c"
1284
1686
    break
1289
1691
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/../build-scripts" >&2;}
1290
1692
   { (exit 1); exit 1; }; }
1291
1693
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.
 
1694
 
 
1695
# These three variables are undocumented and unsupported,
 
1696
# and are intended to be withdrawn in a future Autoconf release.
 
1697
# They can cause serious problems if a builder's source tree is in a directory
 
1698
# whose full name contains unusual characters.
 
1699
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1700
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1701
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1702
 
1295
1703
 
1296
1704
# 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;}
 
1705
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
 
1706
  { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
 
1707
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1300
1708
   { (exit 1); exit 1; }; }
1301
1709
 
1302
 
echo "$as_me:$LINENO: checking build system type" >&5
1303
 
echo $ECHO_N "checking build system type... $ECHO_C" >&6
 
1710
{ echo "$as_me:$LINENO: checking build system type" >&5
 
1711
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1304
1712
if test "${ac_cv_build+set}" = set; then
1305
1713
  echo $ECHO_N "(cached) $ECHO_C" >&6
1306
1714
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" &&
 
1715
  ac_build_alias=$build_alias
 
1716
test "x$ac_build_alias" = x &&
 
1717
  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
 
1718
test "x$ac_build_alias" = x &&
1311
1719
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1312
1720
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1313
1721
   { (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;}
 
1722
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
 
1723
  { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
 
1724
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1317
1725
   { (exit 1); exit 1; }; }
1318
1726
 
1319
1727
fi
1320
 
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1321
 
echo "${ECHO_T}$ac_cv_build" >&6
 
1728
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 
1729
echo "${ECHO_T}$ac_cv_build" >&6; }
 
1730
case $ac_cv_build in
 
1731
*-*-*) ;;
 
1732
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
 
1733
echo "$as_me: error: invalid value of canonical build" >&2;}
 
1734
   { (exit 1); exit 1; }; };;
 
1735
esac
1322
1736
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
 
1737
ac_save_IFS=$IFS; IFS='-'
 
1738
set x $ac_cv_build
 
1739
shift
 
1740
build_cpu=$1
 
1741
build_vendor=$2
 
1742
shift; shift
 
1743
# Remember, the first character of IFS is used to create $*,
 
1744
# except with old shells:
 
1745
build_os=$*
 
1746
IFS=$ac_save_IFS
 
1747
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
 
1748
 
 
1749
 
 
1750
{ echo "$as_me:$LINENO: checking host system type" >&5
 
1751
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
1330
1752
if test "${ac_cv_host+set}" = set; then
1331
1753
  echo $ECHO_N "(cached) $ECHO_C" >&6
1332
1754
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;}
 
1755
  if test "x$host_alias" = x; then
 
1756
  ac_cv_host=$ac_cv_build
 
1757
else
 
1758
  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
 
1759
    { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
 
1760
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1339
1761
   { (exit 1); exit 1; }; }
 
1762
fi
1340
1763
 
1341
1764
fi
1342
 
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1343
 
echo "${ECHO_T}$ac_cv_host" >&6
 
1765
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 
1766
echo "${ECHO_T}$ac_cv_host" >&6; }
 
1767
case $ac_cv_host in
 
1768
*-*-*) ;;
 
1769
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
 
1770
echo "$as_me: error: invalid value of canonical host" >&2;}
 
1771
   { (exit 1); exit 1; }; };;
 
1772
esac
1344
1773
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/'`
 
1774
ac_save_IFS=$IFS; IFS='-'
 
1775
set x $ac_cv_host
 
1776
shift
 
1777
host_cpu=$1
 
1778
host_vendor=$2
 
1779
shift; shift
 
1780
# Remember, the first character of IFS is used to create $*,
 
1781
# except with old shells:
 
1782
host_os=$*
 
1783
IFS=$ac_save_IFS
 
1784
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1348
1785
 
1349
1786
 
1350
1787
 
1357
1794
if test -n "$ac_tool_prefix"; then
1358
1795
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1359
1796
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
 
1797
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1798
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1362
1799
if test "${ac_cv_prog_CC+set}" = set; then
1363
1800
  echo $ECHO_N "(cached) $ECHO_C" >&6
1364
1801
else
1371
1808
  IFS=$as_save_IFS
1372
1809
  test -z "$as_dir" && as_dir=.
1373
1810
  for ac_exec_ext in '' $ac_executable_extensions; do
1374
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1811
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1375
1812
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1376
1813
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1377
1814
    break 2
1378
1815
  fi
1379
1816
done
1380
1817
done
 
1818
IFS=$as_save_IFS
1381
1819
 
1382
1820
fi
1383
1821
fi
1384
1822
CC=$ac_cv_prog_CC
1385
1823
if test -n "$CC"; then
1386
 
  echo "$as_me:$LINENO: result: $CC" >&5
1387
 
echo "${ECHO_T}$CC" >&6
 
1824
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1825
echo "${ECHO_T}$CC" >&6; }
1388
1826
else
1389
 
  echo "$as_me:$LINENO: result: no" >&5
1390
 
echo "${ECHO_T}no" >&6
 
1827
  { echo "$as_me:$LINENO: result: no" >&5
 
1828
echo "${ECHO_T}no" >&6; }
1391
1829
fi
 
1830
 
1392
1831
 
1393
1832
fi
1394
1833
if test -z "$ac_cv_prog_CC"; then
1395
1834
  ac_ct_CC=$CC
1396
1835
  # Extract the first word of "gcc", so it can be a program name with args.
1397
1836
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
 
1837
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1838
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1400
1839
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1401
1840
  echo $ECHO_N "(cached) $ECHO_C" >&6
1402
1841
else
1409
1848
  IFS=$as_save_IFS
1410
1849
  test -z "$as_dir" && as_dir=.
1411
1850
  for ac_exec_ext in '' $ac_executable_extensions; do
1412
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1851
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1413
1852
    ac_cv_prog_ac_ct_CC="gcc"
1414
1853
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1415
1854
    break 2
1416
1855
  fi
1417
1856
done
1418
1857
done
 
1858
IFS=$as_save_IFS
1419
1859
 
1420
1860
fi
1421
1861
fi
1422
1862
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1423
1863
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
 
1864
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
1865
echo "${ECHO_T}$ac_ct_CC" >&6; }
1426
1866
else
1427
 
  echo "$as_me:$LINENO: result: no" >&5
1428
 
echo "${ECHO_T}no" >&6
 
1867
  { echo "$as_me:$LINENO: result: no" >&5
 
1868
echo "${ECHO_T}no" >&6; }
1429
1869
fi
1430
1870
 
1431
 
  CC=$ac_ct_CC
 
1871
  if test "x$ac_ct_CC" = x; then
 
1872
    CC=""
 
1873
  else
 
1874
    case $cross_compiling:$ac_tool_warned in
 
1875
yes:)
 
1876
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
1877
whose name does not start with the host triplet.  If you think this
 
1878
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
1879
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
1880
whose name does not start with the host triplet.  If you think this
 
1881
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
1882
ac_tool_warned=yes ;;
 
1883
esac
 
1884
    CC=$ac_ct_CC
 
1885
  fi
1432
1886
else
1433
1887
  CC="$ac_cv_prog_CC"
1434
1888
fi
1435
1889
 
1436
1890
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.
 
1891
          if test -n "$ac_tool_prefix"; then
 
1892
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1439
1893
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
 
1894
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1895
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1442
1896
if test "${ac_cv_prog_CC+set}" = set; then
1443
1897
  echo $ECHO_N "(cached) $ECHO_C" >&6
1444
1898
else
1451
1905
  IFS=$as_save_IFS
1452
1906
  test -z "$as_dir" && as_dir=.
1453
1907
  for ac_exec_ext in '' $ac_executable_extensions; do
1454
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1908
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1455
1909
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1456
1910
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1457
1911
    break 2
1458
1912
  fi
1459
1913
done
1460
1914
done
 
1915
IFS=$as_save_IFS
1461
1916
 
1462
1917
fi
1463
1918
fi
1464
1919
CC=$ac_cv_prog_CC
1465
1920
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
 
1921
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1922
echo "${ECHO_T}$CC" >&6; }
 
1923
else
 
1924
  { echo "$as_me:$LINENO: result: no" >&5
 
1925
echo "${ECHO_T}no" >&6; }
 
1926
fi
 
1927
 
 
1928
 
1496
1929
  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
1930
fi
1517
1931
if test -z "$CC"; then
1518
1932
  # Extract the first word of "cc", so it can be a program name with args.
1519
1933
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
 
1934
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1935
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1522
1936
if test "${ac_cv_prog_CC+set}" = set; then
1523
1937
  echo $ECHO_N "(cached) $ECHO_C" >&6
1524
1938
else
1532
1946
  IFS=$as_save_IFS
1533
1947
  test -z "$as_dir" && as_dir=.
1534
1948
  for ac_exec_ext in '' $ac_executable_extensions; do
1535
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
1949
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1536
1950
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1537
1951
       ac_prog_rejected=yes
1538
1952
       continue
1543
1957
  fi
1544
1958
done
1545
1959
done
 
1960
IFS=$as_save_IFS
1546
1961
 
1547
1962
if test $ac_prog_rejected = yes; then
1548
1963
  # We found a bogon in the path, so make sure we never use it.
1560
1975
fi
1561
1976
CC=$ac_cv_prog_CC
1562
1977
if test -n "$CC"; then
1563
 
  echo "$as_me:$LINENO: result: $CC" >&5
1564
 
echo "${ECHO_T}$CC" >&6
 
1978
  { echo "$as_me:$LINENO: result: $CC" >&5
 
1979
echo "${ECHO_T}$CC" >&6; }
1565
1980
else
1566
 
  echo "$as_me:$LINENO: result: no" >&5
1567
 
echo "${ECHO_T}no" >&6
 
1981
  { echo "$as_me:$LINENO: result: no" >&5
 
1982
echo "${ECHO_T}no" >&6; }
1568
1983
fi
 
1984
 
1569
1985
 
1570
1986
fi
1571
1987
if test -z "$CC"; then
1572
1988
  if test -n "$ac_tool_prefix"; then
1573
 
  for ac_prog in cl
 
1989
  for ac_prog in cl.exe
1574
1990
  do
1575
1991
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1576
1992
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
 
1993
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
1994
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1579
1995
if test "${ac_cv_prog_CC+set}" = set; then
1580
1996
  echo $ECHO_N "(cached) $ECHO_C" >&6
1581
1997
else
1588
2004
  IFS=$as_save_IFS
1589
2005
  test -z "$as_dir" && as_dir=.
1590
2006
  for ac_exec_ext in '' $ac_executable_extensions; do
1591
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2007
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1592
2008
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1593
2009
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1594
2010
    break 2
1595
2011
  fi
1596
2012
done
1597
2013
done
 
2014
IFS=$as_save_IFS
1598
2015
 
1599
2016
fi
1600
2017
fi
1601
2018
CC=$ac_cv_prog_CC
1602
2019
if test -n "$CC"; then
1603
 
  echo "$as_me:$LINENO: result: $CC" >&5
1604
 
echo "${ECHO_T}$CC" >&6
 
2020
  { echo "$as_me:$LINENO: result: $CC" >&5
 
2021
echo "${ECHO_T}$CC" >&6; }
1605
2022
else
1606
 
  echo "$as_me:$LINENO: result: no" >&5
1607
 
echo "${ECHO_T}no" >&6
 
2023
  { echo "$as_me:$LINENO: result: no" >&5
 
2024
echo "${ECHO_T}no" >&6; }
1608
2025
fi
1609
2026
 
 
2027
 
1610
2028
    test -n "$CC" && break
1611
2029
  done
1612
2030
fi
1613
2031
if test -z "$CC"; then
1614
2032
  ac_ct_CC=$CC
1615
 
  for ac_prog in cl
 
2033
  for ac_prog in cl.exe
1616
2034
do
1617
2035
  # Extract the first word of "$ac_prog", so it can be a program name with args.
1618
2036
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
 
2037
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2038
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1621
2039
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1622
2040
  echo $ECHO_N "(cached) $ECHO_C" >&6
1623
2041
else
1630
2048
  IFS=$as_save_IFS
1631
2049
  test -z "$as_dir" && as_dir=.
1632
2050
  for ac_exec_ext in '' $ac_executable_extensions; do
1633
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2051
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1634
2052
    ac_cv_prog_ac_ct_CC="$ac_prog"
1635
2053
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1636
2054
    break 2
1637
2055
  fi
1638
2056
done
1639
2057
done
 
2058
IFS=$as_save_IFS
1640
2059
 
1641
2060
fi
1642
2061
fi
1643
2062
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1644
2063
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
 
2064
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
2065
echo "${ECHO_T}$ac_ct_CC" >&6; }
1647
2066
else
1648
 
  echo "$as_me:$LINENO: result: no" >&5
1649
 
echo "${ECHO_T}no" >&6
 
2067
  { echo "$as_me:$LINENO: result: no" >&5
 
2068
echo "${ECHO_T}no" >&6; }
1650
2069
fi
1651
2070
 
 
2071
 
1652
2072
  test -n "$ac_ct_CC" && break
1653
2073
done
1654
2074
 
1655
 
  CC=$ac_ct_CC
 
2075
  if test "x$ac_ct_CC" = x; then
 
2076
    CC=""
 
2077
  else
 
2078
    case $cross_compiling:$ac_tool_warned in
 
2079
yes:)
 
2080
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2081
whose name does not start with the host triplet.  If you think this
 
2082
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2083
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2084
whose name does not start with the host triplet.  If you think this
 
2085
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2086
ac_tool_warned=yes ;;
 
2087
esac
 
2088
    CC=$ac_ct_CC
 
2089
  fi
1656
2090
fi
1657
2091
 
1658
2092
fi
1665
2099
   { (exit 1); exit 1; }; }
1666
2100
 
1667
2101
# Provide some information about the compiler.
1668
 
echo "$as_me:$LINENO:" \
1669
 
     "checking for C compiler version" >&5
 
2102
echo "$as_me:$LINENO: checking for C compiler version" >&5
1670
2103
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
 
2104
{ (ac_try="$ac_compiler --version >&5"
 
2105
case "(($ac_try" in
 
2106
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2107
  *) ac_try_echo=$ac_try;;
 
2108
esac
 
2109
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2110
  (eval "$ac_compiler --version >&5") 2>&5
 
2111
  ac_status=$?
 
2112
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2113
  (exit $ac_status); }
 
2114
{ (ac_try="$ac_compiler -v >&5"
 
2115
case "(($ac_try" in
 
2116
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2117
  *) ac_try_echo=$ac_try;;
 
2118
esac
 
2119
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2120
  (eval "$ac_compiler -v >&5") 2>&5
 
2121
  ac_status=$?
 
2122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2123
  (exit $ac_status); }
 
2124
{ (ac_try="$ac_compiler -V >&5"
 
2125
case "(($ac_try" in
 
2126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2127
  *) ac_try_echo=$ac_try;;
 
2128
esac
 
2129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2130
  (eval "$ac_compiler -V >&5") 2>&5
1683
2131
  ac_status=$?
1684
2132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1685
2133
  (exit $ac_status); }
1704
2152
# Try to create an executable without -o first, disregard a.out.
1705
2153
# It will help us diagnose broken compilers, and finding out an intuition
1706
2154
# 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
 
2155
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 
2156
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
1709
2157
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
 
2158
#
 
2159
# List of possible output files, starting from the most likely.
 
2160
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2161
# only as a last resort.  b.out is created by i960 compilers.
 
2162
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2163
#
 
2164
# The IRIX 6 linker writes into existing files which may not be
 
2165
# executable, retaining their permissions.  Remove them first so a
 
2166
# subsequent execution test works.
 
2167
ac_rmfiles=
 
2168
for ac_file in $ac_files
 
2169
do
 
2170
  case $ac_file in
 
2171
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2172
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2173
  esac
 
2174
done
 
2175
rm -f $ac_rmfiles
 
2176
 
 
2177
if { (ac_try="$ac_link_default"
 
2178
case "(($ac_try" in
 
2179
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2180
  *) ac_try_echo=$ac_try;;
 
2181
esac
 
2182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2183
  (eval "$ac_link_default") 2>&5
1712
2184
  ac_status=$?
1713
2185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1714
2186
  (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
 
2187
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2188
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2189
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2190
# so that the user can short-circuit this test for compilers unknown to
 
2191
# Autoconf.
 
2192
for ac_file in $ac_files ''
1724
2193
do
1725
2194
  test -f "$ac_file" || continue
1726
2195
  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.
 
2196
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
1731
2197
        ;;
1732
2198
    [ab].out )
1733
2199
        # We found the default executable, but exeext='' is most
1734
2200
        # certainly right.
1735
2201
        break;;
1736
2202
    *.* )
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
 
2203
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2204
        then :; else
 
2205
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2206
        fi
 
2207
        # We set ac_cv_exeext here because the later test for it is not
 
2208
        # safe: cross compilers may not add the suffix if given an `-o'
 
2209
        # argument, so we may need to know it at that point already.
 
2210
        # Even if this section looks crufty: it has the advantage of
 
2211
        # actually working.
1742
2212
        break;;
1743
2213
    * )
1744
2214
        break;;
1745
2215
  esac
1746
2216
done
 
2217
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2218
 
1747
2219
else
 
2220
  ac_file=''
 
2221
fi
 
2222
 
 
2223
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2224
echo "${ECHO_T}$ac_file" >&6; }
 
2225
if test -z "$ac_file"; then
1748
2226
  echo "$as_me: failed program was:" >&5
1749
2227
sed 's/^/| /' conftest.$ac_ext >&5
1750
2228
 
1756
2234
fi
1757
2235
 
1758
2236
ac_exeext=$ac_cv_exeext
1759
 
echo "$as_me:$LINENO: result: $ac_file" >&5
1760
 
echo "${ECHO_T}$ac_file" >&6
1761
2237
 
1762
 
# Check the compiler produces executables we can run.  If not, either
 
2238
# Check that the compiler produces executables we can run.  If not, either
1763
2239
# 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
 
2240
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 
2241
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
1766
2242
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1767
2243
# If not cross compiling, check that we can run a simple program.
1768
2244
if test "$cross_compiling" != yes; then
1769
2245
  if { ac_try='./$ac_file'
1770
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1771
 
  (eval $ac_try) 2>&5
 
2246
  { (case "(($ac_try" in
 
2247
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2248
  *) ac_try_echo=$ac_try;;
 
2249
esac
 
2250
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2251
  (eval "$ac_try") 2>&5
1772
2252
  ac_status=$?
1773
2253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1774
2254
  (exit $ac_status); }; }; then
1787
2267
    fi
1788
2268
  fi
1789
2269
fi
1790
 
echo "$as_me:$LINENO: result: yes" >&5
1791
 
echo "${ECHO_T}yes" >&6
 
2270
{ echo "$as_me:$LINENO: result: yes" >&5
 
2271
echo "${ECHO_T}yes" >&6; }
1792
2272
 
1793
2273
rm -f a.out a.exe conftest$ac_cv_exeext b.out
1794
2274
ac_clean_files=$ac_clean_files_save
1795
 
# Check the compiler produces executables we can run.  If not, either
 
2275
# Check that the compiler produces executables we can run.  If not, either
1796
2276
# 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
 
2277
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2278
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2279
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2280
echo "${ECHO_T}$cross_compiling" >&6; }
1801
2281
 
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
 
2282
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2283
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2284
if { (ac_try="$ac_link"
 
2285
case "(($ac_try" in
 
2286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2287
  *) ac_try_echo=$ac_try;;
 
2288
esac
 
2289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2290
  (eval "$ac_link") 2>&5
1806
2291
  ac_status=$?
1807
2292
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808
2293
  (exit $ac_status); }; then
1813
2298
for ac_file in conftest.exe conftest conftest.*; do
1814
2299
  test -f "$ac_file" || continue
1815
2300
  case $ac_file in
1816
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 
2301
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
1817
2302
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1818
 
          export ac_cv_exeext
1819
2303
          break;;
1820
2304
    * ) break;;
1821
2305
  esac
1829
2313
fi
1830
2314
 
1831
2315
rm -f conftest$ac_cv_exeext
1832
 
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1833
 
echo "${ECHO_T}$ac_cv_exeext" >&6
 
2316
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2317
echo "${ECHO_T}$ac_cv_exeext" >&6; }
1834
2318
 
1835
2319
rm -f conftest.$ac_ext
1836
2320
EXEEXT=$ac_cv_exeext
1837
2321
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
 
2322
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2323
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
1840
2324
if test "${ac_cv_objext+set}" = set; then
1841
2325
  echo $ECHO_N "(cached) $ECHO_C" >&6
1842
2326
else
1856
2340
}
1857
2341
_ACEOF
1858
2342
rm -f conftest.o conftest.obj
1859
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1860
 
  (eval $ac_compile) 2>&5
 
2343
if { (ac_try="$ac_compile"
 
2344
case "(($ac_try" in
 
2345
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2346
  *) ac_try_echo=$ac_try;;
 
2347
esac
 
2348
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2349
  (eval "$ac_compile") 2>&5
1861
2350
  ac_status=$?
1862
2351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1863
2352
  (exit $ac_status); }; then
1864
 
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 
2353
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2354
  test -f "$ac_file" || continue;
1865
2355
  case $ac_file in
1866
 
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 
2356
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
1867
2357
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1868
2358
       break;;
1869
2359
  esac
1881
2371
 
1882
2372
rm -f conftest.$ac_cv_objext conftest.$ac_ext
1883
2373
fi
1884
 
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1885
 
echo "${ECHO_T}$ac_cv_objext" >&6
 
2374
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2375
echo "${ECHO_T}$ac_cv_objext" >&6; }
1886
2376
OBJEXT=$ac_cv_objext
1887
2377
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
 
2378
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
2379
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
1890
2380
if test "${ac_cv_c_compiler_gnu+set}" = set; then
1891
2381
  echo $ECHO_N "(cached) $ECHO_C" >&6
1892
2382
else
1909
2399
}
1910
2400
_ACEOF
1911
2401
rm -f conftest.$ac_objext
1912
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1913
 
  (eval $ac_compile) 2>conftest.er1
 
2402
if { (ac_try="$ac_compile"
 
2403
case "(($ac_try" in
 
2404
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2405
  *) ac_try_echo=$ac_try;;
 
2406
esac
 
2407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2408
  (eval "$ac_compile") 2>conftest.er1
1914
2409
  ac_status=$?
1915
2410
  grep -v '^ *+' conftest.er1 >conftest.err
1916
2411
  rm -f conftest.er1
1917
2412
  cat conftest.err >&5
1918
2413
  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
 
2414
  (exit $ac_status); } && {
 
2415
         test -z "$ac_c_werror_flag" ||
 
2416
         test ! -s conftest.err
 
2417
       } && test -s conftest.$ac_objext; then
1933
2418
  ac_compiler_gnu=yes
1934
2419
else
1935
2420
  echo "$as_me: failed program was:" >&5
1936
2421
sed 's/^/| /' conftest.$ac_ext >&5
1937
2422
 
1938
 
ac_compiler_gnu=no
 
2423
        ac_compiler_gnu=no
1939
2424
fi
1940
 
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 
2425
 
 
2426
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941
2427
ac_cv_c_compiler_gnu=$ac_compiler_gnu
1942
2428
 
1943
2429
fi
1944
 
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1945
 
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 
2430
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
2431
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
1946
2432
GCC=`test $ac_compiler_gnu = yes && echo yes`
1947
2433
ac_test_CFLAGS=${CFLAGS+set}
1948
2434
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
 
2435
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
2436
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
1952
2437
if test "${ac_cv_prog_cc_g+set}" = set; then
1953
2438
  echo $ECHO_N "(cached) $ECHO_C" >&6
1954
2439
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
 
2440
  ac_save_c_werror_flag=$ac_c_werror_flag
 
2441
   ac_c_werror_flag=yes
 
2442
   ac_cv_prog_cc_g=no
 
2443
   CFLAGS="-g"
 
2444
   cat >conftest.$ac_ext <<_ACEOF
 
2445
/* confdefs.h.  */
 
2446
_ACEOF
 
2447
cat confdefs.h >>conftest.$ac_ext
 
2448
cat >>conftest.$ac_ext <<_ACEOF
 
2449
/* end confdefs.h.  */
 
2450
 
 
2451
int
 
2452
main ()
 
2453
{
 
2454
 
 
2455
  ;
 
2456
  return 0;
 
2457
}
 
2458
_ACEOF
 
2459
rm -f conftest.$ac_objext
 
2460
if { (ac_try="$ac_compile"
 
2461
case "(($ac_try" in
 
2462
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2463
  *) ac_try_echo=$ac_try;;
 
2464
esac
 
2465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2466
  (eval "$ac_compile") 2>conftest.er1
 
2467
  ac_status=$?
 
2468
  grep -v '^ *+' conftest.er1 >conftest.err
 
2469
  rm -f conftest.er1
 
2470
  cat conftest.err >&5
 
2471
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2472
  (exit $ac_status); } && {
 
2473
         test -z "$ac_c_werror_flag" ||
 
2474
         test ! -s conftest.err
 
2475
       } && test -s conftest.$ac_objext; then
 
2476
  ac_cv_prog_cc_g=yes
 
2477
else
 
2478
  echo "$as_me: failed program was:" >&5
 
2479
sed 's/^/| /' conftest.$ac_ext >&5
 
2480
 
 
2481
        CFLAGS=""
 
2482
      cat >conftest.$ac_ext <<_ACEOF
 
2483
/* confdefs.h.  */
 
2484
_ACEOF
 
2485
cat confdefs.h >>conftest.$ac_ext
 
2486
cat >>conftest.$ac_ext <<_ACEOF
 
2487
/* end confdefs.h.  */
 
2488
 
 
2489
int
 
2490
main ()
 
2491
{
 
2492
 
 
2493
  ;
 
2494
  return 0;
 
2495
}
 
2496
_ACEOF
 
2497
rm -f conftest.$ac_objext
 
2498
if { (ac_try="$ac_compile"
 
2499
case "(($ac_try" in
 
2500
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2501
  *) ac_try_echo=$ac_try;;
 
2502
esac
 
2503
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2504
  (eval "$ac_compile") 2>conftest.er1
 
2505
  ac_status=$?
 
2506
  grep -v '^ *+' conftest.er1 >conftest.err
 
2507
  rm -f conftest.er1
 
2508
  cat conftest.err >&5
 
2509
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2510
  (exit $ac_status); } && {
 
2511
         test -z "$ac_c_werror_flag" ||
 
2512
         test ! -s conftest.err
 
2513
       } && test -s conftest.$ac_objext; then
 
2514
  :
 
2515
else
 
2516
  echo "$as_me: failed program was:" >&5
 
2517
sed 's/^/| /' conftest.$ac_ext >&5
 
2518
 
 
2519
        ac_c_werror_flag=$ac_save_c_werror_flag
 
2520
         CFLAGS="-g"
 
2521
         cat >conftest.$ac_ext <<_ACEOF
 
2522
/* confdefs.h.  */
 
2523
_ACEOF
 
2524
cat confdefs.h >>conftest.$ac_ext
 
2525
cat >>conftest.$ac_ext <<_ACEOF
 
2526
/* end confdefs.h.  */
 
2527
 
 
2528
int
 
2529
main ()
 
2530
{
 
2531
 
 
2532
  ;
 
2533
  return 0;
 
2534
}
 
2535
_ACEOF
 
2536
rm -f conftest.$ac_objext
 
2537
if { (ac_try="$ac_compile"
 
2538
case "(($ac_try" in
 
2539
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2540
  *) ac_try_echo=$ac_try;;
 
2541
esac
 
2542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2543
  (eval "$ac_compile") 2>conftest.er1
 
2544
  ac_status=$?
 
2545
  grep -v '^ *+' conftest.er1 >conftest.err
 
2546
  rm -f conftest.er1
 
2547
  cat conftest.err >&5
 
2548
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2549
  (exit $ac_status); } && {
 
2550
         test -z "$ac_c_werror_flag" ||
 
2551
         test ! -s conftest.err
 
2552
       } && test -s conftest.$ac_objext; then
 
2553
  ac_cv_prog_cc_g=yes
 
2554
else
 
2555
  echo "$as_me: failed program was:" >&5
 
2556
sed 's/^/| /' conftest.$ac_ext >&5
 
2557
 
 
2558
 
 
2559
fi
 
2560
 
 
2561
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2562
fi
 
2563
 
 
2564
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2565
fi
 
2566
 
 
2567
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2568
   ac_c_werror_flag=$ac_save_c_werror_flag
 
2569
fi
 
2570
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
2571
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2003
2572
if test "$ac_test_CFLAGS" = set; then
2004
2573
  CFLAGS=$ac_save_CFLAGS
2005
2574
elif test $ac_cv_prog_cc_g = yes; then
2015
2584
    CFLAGS=
2016
2585
  fi
2017
2586
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
 
2587
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
2588
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
2589
if test "${ac_cv_prog_cc_c89+set}" = set; then
2021
2590
  echo $ECHO_N "(cached) $ECHO_C" >&6
2022
2591
else
2023
 
  ac_cv_prog_cc_stdc=no
 
2592
  ac_cv_prog_cc_c89=no
2024
2593
ac_save_CC=$CC
2025
2594
cat >conftest.$ac_ext <<_ACEOF
2026
2595
/* confdefs.h.  */
2054
2623
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2055
2624
   function prototypes and stuff, but not '\xHH' hex character constants.
2056
2625
   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
 
2626
   as 'x'.  The following induces an error, until -std is added to get
2058
2627
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2059
2628
   array size at least.  It's necessary to write '\x00'==0 to get something
2060
 
   that's true only with -std1.  */
 
2629
   that's true only with -std.  */
2061
2630
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2062
2631
 
 
2632
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
2633
   inside strings and character constants.  */
 
2634
#define FOO(x) 'x'
 
2635
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
2636
 
2063
2637
int test (int i, double x);
2064
2638
struct s1 {int (*f) (int a);};
2065
2639
struct s2 {int (*f) (double a);};
2074
2648
  return 0;
2075
2649
}
2076
2650
_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__"
 
2651
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
2652
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2085
2653
do
2086
2654
  CC="$ac_save_CC $ac_arg"
2087
2655
  rm -f conftest.$ac_objext
2088
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2089
 
  (eval $ac_compile) 2>conftest.er1
 
2656
if { (ac_try="$ac_compile"
 
2657
case "(($ac_try" in
 
2658
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2659
  *) ac_try_echo=$ac_try;;
 
2660
esac
 
2661
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2662
  (eval "$ac_compile") 2>conftest.er1
2090
2663
  ac_status=$?
2091
2664
  grep -v '^ *+' conftest.er1 >conftest.err
2092
2665
  rm -f conftest.er1
2093
2666
  cat conftest.err >&5
2094
2667
  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
 
2668
  (exit $ac_status); } && {
 
2669
         test -z "$ac_c_werror_flag" ||
 
2670
         test ! -s conftest.err
 
2671
       } && test -s conftest.$ac_objext; then
 
2672
  ac_cv_prog_cc_c89=$ac_arg
2111
2673
else
2112
2674
  echo "$as_me: failed program was:" >&5
2113
2675
sed 's/^/| /' conftest.$ac_ext >&5
2114
2676
 
 
2677
 
2115
2678
fi
2116
 
rm -f conftest.err conftest.$ac_objext
 
2679
 
 
2680
rm -f core conftest.err conftest.$ac_objext
 
2681
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2117
2682
done
2118
 
rm -f conftest.$ac_ext conftest.$ac_objext
 
2683
rm -f conftest.$ac_ext
2119
2684
CC=$ac_save_CC
2120
2685
 
2121
2686
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 ;;
 
2687
# AC_CACHE_VAL
 
2688
case "x$ac_cv_prog_cc_c89" in
 
2689
  x)
 
2690
    { echo "$as_me:$LINENO: result: none needed" >&5
 
2691
echo "${ECHO_T}none needed" >&6; } ;;
 
2692
  xno)
 
2693
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
2694
echo "${ECHO_T}unsupported" >&6; } ;;
2127
2695
  *)
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" ;;
 
2696
    CC="$CC $ac_cv_prog_cc_c89"
 
2697
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
2698
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2131
2699
esac
2132
2700
 
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
 
2701
 
2276
2702
ac_ext=c
2277
2703
ac_cpp='$CPP $CPPFLAGS'
2278
2704
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2282
2708
 
2283
2709
 
2284
2710
 
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
 
2711
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
2712
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
2287
2713
if test "${ac_cv_c_const+set}" = set; then
2288
2714
  echo $ECHO_N "(cached) $ECHO_C" >&6
2289
2715
else
2301
2727
#ifndef __cplusplus
2302
2728
  /* Ultrix mips cc rejects this.  */
2303
2729
  typedef int charset[2];
2304
 
  const charset x;
 
2730
  const charset cs;
2305
2731
  /* SunOS 4.1.1 cc rejects this.  */
2306
 
  char const *const *ccp;
2307
 
  char **p;
 
2732
  char const *const *pcpcc;
 
2733
  char **ppc;
2308
2734
  /* NEC SVR4.0.2 mips cc rejects this.  */
2309
2735
  struct point {int x, y;};
2310
2736
  static struct point const zero = {0,0};
2313
2739
     an arm of an if-expression whose if-part is not a constant
2314
2740
     expression */
2315
2741
  const char *g = "string";
2316
 
  ccp = &g + (g ? g-g : 0);
 
2742
  pcpcc = &g + (g ? g-g : 0);
2317
2743
  /* HPUX 7.0 cc rejects these. */
2318
 
  ++ccp;
2319
 
  p = (char**) ccp;
2320
 
  ccp = (char const *const *) p;
 
2744
  ++pcpcc;
 
2745
  ppc = (char**) pcpcc;
 
2746
  pcpcc = (char const *const *) ppc;
2321
2747
  { /* SCO 3.2v4 cc rejects this.  */
2322
2748
    char *t;
2323
2749
    char const *s = 0 ? (char *) 0 : (char const *) 0;
2324
2750
 
2325
2751
    *t++ = 0;
 
2752
    if (s) return 0;
2326
2753
  }
2327
2754
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
2328
2755
    int x[] = {25, 17};
2341
2768
  }
2342
2769
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2343
2770
    const int foo = 10;
 
2771
    if (!foo) return 0;
2344
2772
  }
 
2773
  return !cs[0] && !zero.x;
2345
2774
#endif
2346
2775
 
2347
2776
  ;
2349
2778
}
2350
2779
_ACEOF
2351
2780
rm -f conftest.$ac_objext
2352
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353
 
  (eval $ac_compile) 2>conftest.er1
 
2781
if { (ac_try="$ac_compile"
 
2782
case "(($ac_try" in
 
2783
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2784
  *) ac_try_echo=$ac_try;;
 
2785
esac
 
2786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2787
  (eval "$ac_compile") 2>conftest.er1
2354
2788
  ac_status=$?
2355
2789
  grep -v '^ *+' conftest.er1 >conftest.err
2356
2790
  rm -f conftest.er1
2357
2791
  cat conftest.err >&5
2358
2792
  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
 
2793
  (exit $ac_status); } && {
 
2794
         test -z "$ac_c_werror_flag" ||
 
2795
         test ! -s conftest.err
 
2796
       } && test -s conftest.$ac_objext; then
2373
2797
  ac_cv_c_const=yes
2374
2798
else
2375
2799
  echo "$as_me: failed program was:" >&5
2376
2800
sed 's/^/| /' conftest.$ac_ext >&5
2377
2801
 
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
 
2802
        ac_cv_c_const=no
 
2803
fi
 
2804
 
 
2805
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2806
fi
 
2807
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
2808
echo "${ECHO_T}$ac_cv_c_const" >&6; }
2384
2809
if test $ac_cv_c_const = no; then
2385
2810
 
2386
2811
cat >>confdefs.h <<\_ACEOF
2418
2843
        MATHLIB=""
2419
2844
        # Extract the first word of "osmesa-config", so it can be a program name with args.
2420
2845
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
 
2846
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2847
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2423
2848
if test "${ac_cv_path_OSMESA_CONFIG+set}" = set; then
2424
2849
  echo $ECHO_N "(cached) $ECHO_C" >&6
2425
2850
else
2434
2859
  IFS=$as_save_IFS
2435
2860
  test -z "$as_dir" && as_dir=.
2436
2861
  for ac_exec_ext in '' $ac_executable_extensions; do
2437
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2862
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438
2863
    ac_cv_path_OSMESA_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2439
2864
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440
2865
    break 2
2441
2866
  fi
2442
2867
done
2443
2868
done
 
2869
IFS=$as_save_IFS
2444
2870
 
2445
2871
  test -z "$ac_cv_path_OSMESA_CONFIG" && ac_cv_path_OSMESA_CONFIG="no"
2446
2872
  ;;
2447
2873
esac
2448
2874
fi
2449
2875
OSMESA_CONFIG=$ac_cv_path_OSMESA_CONFIG
2450
 
 
2451
2876
if test -n "$OSMESA_CONFIG"; then
2452
 
  echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
2453
 
echo "${ECHO_T}$OSMESA_CONFIG" >&6
 
2877
  { echo "$as_me:$LINENO: result: $OSMESA_CONFIG" >&5
 
2878
echo "${ECHO_T}$OSMESA_CONFIG" >&6; }
2454
2879
else
2455
 
  echo "$as_me:$LINENO: result: no" >&5
2456
 
echo "${ECHO_T}no" >&6
 
2880
  { echo "$as_me:$LINENO: result: no" >&5
 
2881
echo "${ECHO_T}no" >&6; }
2457
2882
fi
2458
2883
 
 
2884
 
2459
2885
        if test "x$OSMESA_CONFIG" = "xyes"; then
2460
2886
            OSMESA_CFLAGS=`$OSMESA_CONFIG --cflags`
2461
2887
            OSMESA_LIBS=`$OSMESA_CONFIG --libs`
2476
2902
 
2477
2903
SDL_VERSION=1.2.10
2478
2904
 
2479
 
# Check whether --with-sdl-prefix or --without-sdl-prefix was given.
 
2905
# Check whether --with-sdl-prefix was given.
2480
2906
if test "${with_sdl_prefix+set}" = set; then
2481
 
  withval="$with_sdl_prefix"
2482
 
  sdl_prefix="$withval"
 
2907
  withval=$with_sdl_prefix; sdl_prefix="$withval"
2483
2908
else
2484
2909
  sdl_prefix=""
2485
 
fi;
2486
 
 
2487
 
# Check whether --with-sdl-exec-prefix or --without-sdl-exec-prefix was given.
 
2910
fi
 
2911
 
 
2912
 
 
2913
# Check whether --with-sdl-exec-prefix was given.
2488
2914
if test "${with_sdl_exec_prefix+set}" = set; then
2489
 
  withval="$with_sdl_exec_prefix"
2490
 
  sdl_exec_prefix="$withval"
 
2915
  withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
2491
2916
else
2492
2917
  sdl_exec_prefix=""
2493
 
fi;
2494
 
# Check whether --enable-sdltest or --disable-sdltest was given.
 
2918
fi
 
2919
 
 
2920
# Check whether --enable-sdltest was given.
2495
2921
if test "${enable_sdltest+set}" = set; then
2496
 
  enableval="$enable_sdltest"
2497
 
 
 
2922
  enableval=$enable_sdltest;
2498
2923
else
2499
2924
  enable_sdltest=yes
2500
 
fi;
 
2925
fi
 
2926
 
2501
2927
 
2502
2928
  if test x$sdl_exec_prefix != x ; then
2503
2929
    sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
2517
2943
  fi
2518
2944
  # Extract the first word of "sdl-config", so it can be a program name with args.
2519
2945
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
 
2946
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2947
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2522
2948
if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
2523
2949
  echo $ECHO_N "(cached) $ECHO_C" >&6
2524
2950
else
2533
2959
  IFS=$as_save_IFS
2534
2960
  test -z "$as_dir" && as_dir=.
2535
2961
  for ac_exec_ext in '' $ac_executable_extensions; do
2536
 
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 
2962
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2537
2963
    ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
2538
2964
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2539
2965
    break 2
2540
2966
  fi
2541
2967
done
2542
2968
done
 
2969
IFS=$as_save_IFS
2543
2970
 
2544
2971
  test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
2545
2972
  ;;
2546
2973
esac
2547
2974
fi
2548
2975
SDL_CONFIG=$ac_cv_path_SDL_CONFIG
2549
 
 
2550
2976
if test -n "$SDL_CONFIG"; then
2551
 
  echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
2552
 
echo "${ECHO_T}$SDL_CONFIG" >&6
 
2977
  { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
 
2978
echo "${ECHO_T}$SDL_CONFIG" >&6; }
2553
2979
else
2554
 
  echo "$as_me:$LINENO: result: no" >&5
2555
 
echo "${ECHO_T}no" >&6
 
2980
  { echo "$as_me:$LINENO: result: no" >&5
 
2981
echo "${ECHO_T}no" >&6; }
2556
2982
fi
2557
2983
 
 
2984
 
2558
2985
  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
 
2986
  { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
 
2987
echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
2561
2988
  no_sdl=""
2562
2989
  if test "$SDL_CONFIG" = "no" ; then
2563
2990
    no_sdl=yes
2648
3075
 
2649
3076
_ACEOF
2650
3077
rm -f conftest$ac_exeext
2651
 
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2652
 
  (eval $ac_link) 2>&5
 
3078
if { (ac_try="$ac_link"
 
3079
case "(($ac_try" in
 
3080
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3081
  *) ac_try_echo=$ac_try;;
 
3082
esac
 
3083
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3084
  (eval "$ac_link") 2>&5
2653
3085
  ac_status=$?
2654
3086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655
3087
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2656
 
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2657
 
  (eval $ac_try) 2>&5
 
3088
  { (case "(($ac_try" in
 
3089
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3090
  *) ac_try_echo=$ac_try;;
 
3091
esac
 
3092
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3093
  (eval "$ac_try") 2>&5
2658
3094
  ac_status=$?
2659
3095
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660
3096
  (exit $ac_status); }; }; then
2667
3103
( exit $ac_status )
2668
3104
no_sdl=yes
2669
3105
fi
2670
 
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
3106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2671
3107
fi
 
3108
 
 
3109
 
2672
3110
       CFLAGS="$ac_save_CFLAGS"
2673
3111
       CXXFLAGS="$ac_save_CXXFLAGS"
2674
3112
       LIBS="$ac_save_LIBS"
2675
3113
     fi
2676
3114
  fi
2677
3115
  if test "x$no_sdl" = x ; then
2678
 
     echo "$as_me:$LINENO: result: yes" >&5
2679
 
echo "${ECHO_T}yes" >&6
 
3116
     { echo "$as_me:$LINENO: result: yes" >&5
 
3117
echo "${ECHO_T}yes" >&6; }
2680
3118
     :
2681
3119
  else
2682
 
     echo "$as_me:$LINENO: result: no" >&5
2683
 
echo "${ECHO_T}no" >&6
 
3120
     { echo "$as_me:$LINENO: result: no" >&5
 
3121
echo "${ECHO_T}no" >&6; }
2684
3122
     if test "$SDL_CONFIG" = "no" ; then
2685
3123
       echo "*** The sdl-config script installed by SDL could not be found"
2686
3124
       echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
2718
3156
}
2719
3157
_ACEOF
2720
3158
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
 
3159
if { (ac_try="$ac_link"
 
3160
case "(($ac_try" in
 
3161
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3162
  *) ac_try_echo=$ac_try;;
 
3163
esac
 
3164
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3165
  (eval "$ac_link") 2>conftest.er1
2723
3166
  ac_status=$?
2724
3167
  grep -v '^ *+' conftest.er1 >conftest.err
2725
3168
  rm -f conftest.er1
2726
3169
  cat conftest.err >&5
2727
3170
  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
 
3171
  (exit $ac_status); } && {
 
3172
         test -z "$ac_c_werror_flag" ||
 
3173
         test ! -s conftest.err
 
3174
       } && test -s conftest$ac_exeext &&
 
3175
       $as_test_x conftest$ac_exeext; then
2742
3176
   echo "*** The test program compiled, but did not run. This usually means"
2743
3177
          echo "*** that the run-time linker is not finding SDL or finding the wrong"
2744
3178
          echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
2752
3186
  echo "$as_me: failed program was:" >&5
2753
3187
sed 's/^/| /' conftest.$ac_ext >&5
2754
3188
 
2755
 
 echo "*** The test program failed to compile or link. See the file config.log for the"
 
3189
         echo "*** The test program failed to compile or link. See the file config.log for the"
2756
3190
          echo "*** exact error that occured. This usually means SDL was incorrectly installed"
2757
3191
          echo "*** or that you have moved SDL since it was installed. In the latter case, you"
2758
3192
          echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
2759
3193
fi
2760
 
rm -f conftest.err conftest.$ac_objext \
 
3194
 
 
3195
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2761
3196
      conftest$ac_exeext conftest.$ac_ext
2762
3197
          CFLAGS="$ac_save_CFLAGS"
2763
3198
          CXXFLAGS="$ac_save_CXXFLAGS"
2783
3218
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2784
3219
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2785
3220
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
 
3221
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3222
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
2788
3223
# On Suns, sometimes $CPP names a directory.
2789
3224
if test -n "$CPP" && test -d "$CPP"; then
2790
3225
  CPP=
2818
3253
#endif
2819
3254
                     Syntax error
2820
3255
_ACEOF
2821
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2822
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3256
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3257
case "(($ac_try" in
 
3258
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3259
  *) ac_try_echo=$ac_try;;
 
3260
esac
 
3261
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3262
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2823
3263
  ac_status=$?
2824
3264
  grep -v '^ *+' conftest.er1 >conftest.err
2825
3265
  rm -f conftest.er1
2826
3266
  cat conftest.err >&5
2827
3267
  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
 
3268
  (exit $ac_status); } >/dev/null && {
 
3269
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3270
         test ! -s conftest.err
 
3271
       }; then
2839
3272
  :
2840
3273
else
2841
3274
  echo "$as_me: failed program was:" >&5
2844
3277
  # Broken: fails on valid input.
2845
3278
continue
2846
3279
fi
 
3280
 
2847
3281
rm -f conftest.err conftest.$ac_ext
2848
3282
 
2849
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
3283
  # OK, works on sane cases.  Now check whether nonexistent headers
2850
3284
  # can be detected and how.
2851
3285
  cat >conftest.$ac_ext <<_ACEOF
2852
3286
/* confdefs.h.  */
2856
3290
/* end confdefs.h.  */
2857
3291
#include <ac_nonexistent.h>
2858
3292
_ACEOF
2859
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2860
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3293
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3294
case "(($ac_try" in
 
3295
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3296
  *) ac_try_echo=$ac_try;;
 
3297
esac
 
3298
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3299
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2861
3300
  ac_status=$?
2862
3301
  grep -v '^ *+' conftest.er1 >conftest.err
2863
3302
  rm -f conftest.er1
2864
3303
  cat conftest.err >&5
2865
3304
  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
 
3305
  (exit $ac_status); } >/dev/null && {
 
3306
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3307
         test ! -s conftest.err
 
3308
       }; then
2877
3309
  # Broken: success on invalid input.
2878
3310
continue
2879
3311
else
2884
3316
ac_preproc_ok=:
2885
3317
break
2886
3318
fi
 
3319
 
2887
3320
rm -f conftest.err conftest.$ac_ext
2888
3321
 
2889
3322
done
2901
3334
else
2902
3335
  ac_cv_prog_CPP=$CPP
2903
3336
fi
2904
 
echo "$as_me:$LINENO: result: $CPP" >&5
2905
 
echo "${ECHO_T}$CPP" >&6
 
3337
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
3338
echo "${ECHO_T}$CPP" >&6; }
2906
3339
ac_preproc_ok=false
2907
3340
for ac_c_preproc_warn_flag in '' yes
2908
3341
do
2925
3358
#endif
2926
3359
                     Syntax error
2927
3360
_ACEOF
2928
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2929
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3361
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3362
case "(($ac_try" in
 
3363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3364
  *) ac_try_echo=$ac_try;;
 
3365
esac
 
3366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3367
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2930
3368
  ac_status=$?
2931
3369
  grep -v '^ *+' conftest.er1 >conftest.err
2932
3370
  rm -f conftest.er1
2933
3371
  cat conftest.err >&5
2934
3372
  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
 
3373
  (exit $ac_status); } >/dev/null && {
 
3374
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3375
         test ! -s conftest.err
 
3376
       }; then
2946
3377
  :
2947
3378
else
2948
3379
  echo "$as_me: failed program was:" >&5
2951
3382
  # Broken: fails on valid input.
2952
3383
continue
2953
3384
fi
 
3385
 
2954
3386
rm -f conftest.err conftest.$ac_ext
2955
3387
 
2956
 
  # OK, works on sane cases.  Now check whether non-existent headers
 
3388
  # OK, works on sane cases.  Now check whether nonexistent headers
2957
3389
  # can be detected and how.
2958
3390
  cat >conftest.$ac_ext <<_ACEOF
2959
3391
/* confdefs.h.  */
2963
3395
/* end confdefs.h.  */
2964
3396
#include <ac_nonexistent.h>
2965
3397
_ACEOF
2966
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2967
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3398
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3399
case "(($ac_try" in
 
3400
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3401
  *) ac_try_echo=$ac_try;;
 
3402
esac
 
3403
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3404
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
2968
3405
  ac_status=$?
2969
3406
  grep -v '^ *+' conftest.er1 >conftest.err
2970
3407
  rm -f conftest.er1
2971
3408
  cat conftest.err >&5
2972
3409
  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
 
3410
  (exit $ac_status); } >/dev/null && {
 
3411
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3412
         test ! -s conftest.err
 
3413
       }; then
2984
3414
  # Broken: success on invalid input.
2985
3415
continue
2986
3416
else
2991
3421
ac_preproc_ok=:
2992
3422
break
2993
3423
fi
 
3424
 
2994
3425
rm -f conftest.err conftest.$ac_ext
2995
3426
 
2996
3427
done
3013
3444
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3014
3445
 
3015
3446
 
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.
 
3447
{ echo "$as_me:$LINENO: checking for X" >&5
 
3448
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
3449
 
 
3450
 
 
3451
# Check whether --with-x was given.
3021
3452
if test "${with_x+set}" = set; then
3022
 
  withval="$with_x"
 
3453
  withval=$with_x;
 
3454
fi
3023
3455
 
3024
 
fi;
3025
3456
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3026
3457
if test "x$with_x" = xno; then
3027
3458
  # The user explicitly disabled X.
3028
3459
  have_x=disabled
3029
3460
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
 
3461
  case $x_includes,$x_libraries in #(
 
3462
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
 
3463
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
 
3464
   { (exit 1); exit 1; }; };; #(
 
3465
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
3035
3466
  echo $ECHO_N "(cached) $ECHO_C" >&6
3036
3467
else
3037
3468
  # One or both of the vars are not set, and there is no cached value.
3038
3469
ac_x_includes=no ac_x_libraries=no
3039
 
rm -fr conftest.dir
 
3470
rm -f -r conftest.dir
3040
3471
if mkdir conftest.dir; then
3041
3472
  cd conftest.dir
3042
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3043
3473
  cat >Imakefile <<'_ACEOF'
3044
 
acfindx:
3045
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
 
3474
incroot:
 
3475
        @echo incroot='${INCROOT}'
 
3476
usrlibdir:
 
3477
        @echo usrlibdir='${USRLIBDIR}'
 
3478
libdir:
 
3479
        @echo libdir='${LIBDIR}'
3046
3480
_ACEOF
3047
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
3481
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
3048
3482
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3049
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
3483
    for ac_var in incroot usrlibdir libdir; do
 
3484
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
3485
    done
3050
3486
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3051
3487
    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
 
3488
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
3489
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
3054
3490
        ac_im_usrlibdir=$ac_im_libdir; break
3055
3491
      fi
3056
3492
    done
3058
3494
    # bogus both because they are the default anyway, and because
3059
3495
    # using them would break gcc on systems where it needs fixed includes.
3060
3496
    case $ac_im_incroot in
3061
 
        /usr/include) ;;
 
3497
        /usr/include) ac_x_includes= ;;
3062
3498
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
3063
3499
    esac
3064
3500
    case $ac_im_usrlibdir in
3067
3503
    esac
3068
3504
  fi
3069
3505
  cd ..
3070
 
  rm -fr conftest.dir
 
3506
  rm -f -r conftest.dir
3071
3507
fi
3072
3508
 
3073
3509
# Standard set of common directories for X headers.
3108
3544
/usr/openwin/share/include'
3109
3545
 
3110
3546
if test "$ac_x_includes" = no; then
3111
 
  # Guess where to find include files, by looking for Intrinsic.h.
 
3547
  # Guess where to find include files, by looking for Xlib.h.
3112
3548
  # First, try using that file with no special directory specified.
3113
3549
  cat >conftest.$ac_ext <<_ACEOF
3114
3550
/* confdefs.h.  */
3116
3552
cat confdefs.h >>conftest.$ac_ext
3117
3553
cat >>conftest.$ac_ext <<_ACEOF
3118
3554
/* end confdefs.h.  */
3119
 
#include <X11/Intrinsic.h>
 
3555
#include <X11/Xlib.h>
3120
3556
_ACEOF
3121
 
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3122
 
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 
3557
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3558
case "(($ac_try" in
 
3559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3560
  *) ac_try_echo=$ac_try;;
 
3561
esac
 
3562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3563
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3123
3564
  ac_status=$?
3124
3565
  grep -v '^ *+' conftest.er1 >conftest.err
3125
3566
  rm -f conftest.er1
3126
3567
  cat conftest.err >&5
3127
3568
  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
 
3569
  (exit $ac_status); } >/dev/null && {
 
3570
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3571
         test ! -s conftest.err
 
3572
       }; then
3139
3573
  # We can compile using X headers with no special include directory.
3140
3574
ac_x_includes=
3141
3575
else
3143
3577
sed 's/^/| /' conftest.$ac_ext >&5
3144
3578
 
3145
3579
  for ac_dir in $ac_x_header_dirs; do
3146
 
  if test -r "$ac_dir/X11/Intrinsic.h"; then
 
3580
  if test -r "$ac_dir/X11/Xlib.h"; then
3147
3581
    ac_x_includes=$ac_dir
3148
3582
    break
3149
3583
  fi
3150
3584
done
3151
3585
fi
 
3586
 
3152
3587
rm -f conftest.err conftest.$ac_ext
3153
3588
fi # $ac_x_includes = no
3154
3589
 
3157
3592
  # See if we find them without any special options.
3158
3593
  # Don't add to $LIBS permanently.
3159
3594
  ac_save_LIBS=$LIBS
3160
 
  LIBS="-lXt $LIBS"
 
3595
  LIBS="-lX11 $LIBS"
3161
3596
  cat >conftest.$ac_ext <<_ACEOF
3162
3597
/* confdefs.h.  */
3163
3598
_ACEOF
3164
3599
cat confdefs.h >>conftest.$ac_ext
3165
3600
cat >>conftest.$ac_ext <<_ACEOF
3166
3601
/* end confdefs.h.  */
3167
 
#include <X11/Intrinsic.h>
 
3602
#include <X11/Xlib.h>
3168
3603
int
3169
3604
main ()
3170
3605
{
3171
 
XtMalloc (0)
 
3606
XrmInitialize ()
3172
3607
  ;
3173
3608
  return 0;
3174
3609
}
3175
3610
_ACEOF
3176
3611
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
 
3612
if { (ac_try="$ac_link"
 
3613
case "(($ac_try" in
 
3614
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3615
  *) ac_try_echo=$ac_try;;
 
3616
esac
 
3617
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3618
  (eval "$ac_link") 2>conftest.er1
3179
3619
  ac_status=$?
3180
3620
  grep -v '^ *+' conftest.er1 >conftest.err
3181
3621
  rm -f conftest.er1
3182
3622
  cat conftest.err >&5
3183
3623
  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
 
3624
  (exit $ac_status); } && {
 
3625
         test -z "$ac_c_werror_flag" ||
 
3626
         test ! -s conftest.err
 
3627
       } && test -s conftest$ac_exeext &&
 
3628
       $as_test_x conftest$ac_exeext; then
3198
3629
  LIBS=$ac_save_LIBS
3199
3630
# We can link X programs with no special library path.
3200
3631
ac_x_libraries=
3202
3633
  echo "$as_me: failed program was:" >&5
3203
3634
sed 's/^/| /' conftest.$ac_ext >&5
3204
3635
 
3205
 
LIBS=$ac_save_LIBS
 
3636
        LIBS=$ac_save_LIBS
3206
3637
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
3207
3638
do
3208
3639
  # Don't even attempt the hair of trying to link an X program!
3209
3640
  for ac_extension in a so sl; do
3210
 
    if test -r $ac_dir/libXt.$ac_extension; then
 
3641
    if test -r "$ac_dir/libX11.$ac_extension"; then
3211
3642
      ac_x_libraries=$ac_dir
3212
3643
      break 2
3213
3644
    fi
3214
3645
  done
3215
3646
done
3216
3647
fi
3217
 
rm -f conftest.err conftest.$ac_objext \
 
3648
 
 
3649
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3218
3650
      conftest$ac_exeext conftest.$ac_ext
3219
3651
fi # $ac_x_libraries = no
3220
3652
 
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
 
3653
case $ac_x_includes,$ac_x_libraries in #(
 
3654
  no,* | *,no | *\'*)
 
3655
    # Didn't find X, or a directory has "'" in its name.
 
3656
    ac_cv_have_x="have_x=no";; #(
 
3657
  *)
 
3658
    # Record where we found X for the cache.
 
3659
    ac_cv_have_x="have_x=yes\
 
3660
        ac_x_includes='$ac_x_includes'\
 
3661
        ac_x_libraries='$ac_x_libraries'"
 
3662
esac
 
3663
fi
 
3664
;; #(
 
3665
    *) have_x=yes;;
 
3666
  esac
3232
3667
  eval "$ac_cv_have_x"
3233
3668
fi # $with_x != no
3234
3669
 
3235
3670
if test "$have_x" != yes; then
3236
 
  echo "$as_me:$LINENO: result: $have_x" >&5
3237
 
echo "${ECHO_T}$have_x" >&6
 
3671
  { echo "$as_me:$LINENO: result: $have_x" >&5
 
3672
echo "${ECHO_T}$have_x" >&6; }
3238
3673
  no_x=yes
3239
3674
else
3240
3675
  # If each of the values was on the command line, it overrides each guess.
3241
3676
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3242
3677
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3243
3678
  # 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
 
3679
  ac_cv_have_x="have_x=yes\
 
3680
        ac_x_includes='$x_includes'\
 
3681
        ac_x_libraries='$x_libraries'"
 
3682
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
3683
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
3248
3684
fi
3249
3685
 
3250
3686
if test x$have_x = xyes; then
3260
3696
    fi
3261
3697
fi
3262
3698
 
3263
 
echo "$as_me:$LINENO: checking for OpenGL support" >&5
3264
 
echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6
 
3699
{ echo "$as_me:$LINENO: checking for OpenGL support" >&5
 
3700
echo $ECHO_N "checking for OpenGL support... $ECHO_C" >&6; }
3265
3701
have_opengl=no
3266
3702
cat >conftest.$ac_ext <<_ACEOF
3267
3703
/* confdefs.h.  */
3282
3718
}
3283
3719
_ACEOF
3284
3720
rm -f conftest.$ac_objext
3285
 
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3286
 
  (eval $ac_compile) 2>conftest.er1
 
3721
if { (ac_try="$ac_compile"
 
3722
case "(($ac_try" in
 
3723
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3724
  *) ac_try_echo=$ac_try;;
 
3725
esac
 
3726
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3727
  (eval "$ac_compile") 2>conftest.er1
3287
3728
  ac_status=$?
3288
3729
  grep -v '^ *+' conftest.er1 >conftest.err
3289
3730
  rm -f conftest.er1
3290
3731
  cat conftest.err >&5
3291
3732
  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
 
3733
  (exit $ac_status); } && {
 
3734
         test -z "$ac_c_werror_flag" ||
 
3735
         test ! -s conftest.err
 
3736
       } && test -s conftest.$ac_objext; then
3306
3737
 
3307
3738
have_opengl=yes
3308
3739
 
3310
3741
  echo "$as_me: failed program was:" >&5
3311
3742
sed 's/^/| /' conftest.$ac_ext >&5
3312
3743
 
 
3744
 
3313
3745
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
 
3746
 
 
3747
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3748
{ echo "$as_me:$LINENO: result: $have_opengl" >&5
 
3749
echo "${ECHO_T}$have_opengl" >&6; }
3317
3750
if test x$have_opengl = xyes; then
3318
3751
    CFLAGS="$CFLAGS -DHAVE_OPENGL"
3319
3752
    GLLIB="$XPATH $SYS_GL_LIBS"
3322
3755
fi
3323
3756
 
3324
3757
 
3325
 
          ac_config_files="$ac_config_files Makefile"
 
3758
ac_config_files="$ac_config_files Makefile"
 
3759
 
3326
3760
cat >confcache <<\_ACEOF
3327
3761
# This file is a shell script that caches the results of configure
3328
3762
# tests run on this system so they can be shared between configure
3341
3775
 
3342
3776
# The following way of writing the cache mishandles newlines in values,
3343
3777
# but we know of no workaround that is simple, portable, and efficient.
3344
 
# So, don't put newlines in cache variables' values.
 
3778
# So, we kill variables containing newlines.
3345
3779
# Ultrix sh set writes to stderr and can't be redirected directly,
3346
3780
# and sets the high bit in the cache file unless we assign to the vars.
3347
 
{
 
3781
(
 
3782
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
3783
    eval ac_val=\$$ac_var
 
3784
    case $ac_val in #(
 
3785
    *${as_nl}*)
 
3786
      case $ac_var in #(
 
3787
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
3788
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
3789
      esac
 
3790
      case $ac_var in #(
 
3791
      _ | IFS | as_nl) ;; #(
 
3792
      *) $as_unset $ac_var ;;
 
3793
      esac ;;
 
3794
    esac
 
3795
  done
 
3796
 
3348
3797
  (set) 2>&1 |
3349
 
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3350
 
    *ac_space=\ *)
 
3798
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
3799
    *${as_nl}ac_space=\ *)
3351
3800
      # `set' does not quote correctly, so add quotes (double-quote
3352
3801
      # substitution turns \\\\ into \\, and sed turns \\ into \).
3353
3802
      sed -n \
3354
3803
        "s/'/'\\\\''/g;
3355
3804
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3356
 
      ;;
 
3805
      ;; #(
3357
3806
    *)
3358
3807
      # `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"
 
3808
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3361
3809
      ;;
3362
 
    esac;
3363
 
} |
 
3810
    esac |
 
3811
    sort
 
3812
) |
3364
3813
  sed '
 
3814
     /^ac_cv_env_/b end
3365
3815
     t clear
3366
 
     : clear
 
3816
     :clear
3367
3817
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3368
3818
     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"
 
3819
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
3820
     :end' >>confcache
 
3821
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
3822
  if test -w "$cache_file"; then
 
3823
    test "x$cache_file" != "x/dev/null" &&
 
3824
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
3825
echo "$as_me: updating cache $cache_file" >&6;}
3374
3826
    cat confcache >$cache_file
3375
3827
  else
3376
 
    echo "not updating unwritable cache $cache_file"
 
3828
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
3829
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
3377
3830
  fi
3378
3831
fi
3379
3832
rm -f confcache
3382
3835
# Let make expand exec_prefix.
3383
3836
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3384
3837
 
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
3838
# Transform confdefs.h into DEFS.
3401
3839
# Protect against shell expansion while executing Makefile rules.
3402
3840
# Protect against Makefile macro expansion.
3403
3841
#
3404
3842
# If the first sed substitution is executed (which looks for macros that
3405
 
# take arguments), then we branch to the quote section.  Otherwise,
 
3843
# take arguments), then branch to the quote section.  Otherwise,
3406
3844
# look for a macro that doesn't take arguments.
3407
 
cat >confdef2opt.sed <<\_ACEOF
 
3845
ac_script='
3408
3846
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
 
3847
:clear
 
3848
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 
3849
t quote
 
3850
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 
3851
t quote
 
3852
b any
 
3853
:quote
 
3854
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 
3855
s/\[/\\&/g
 
3856
s/\]/\\&/g
 
3857
s/\$/$$/g
 
3858
H
 
3859
:any
 
3860
${
 
3861
        g
 
3862
        s/^\n//
 
3863
        s/\n/ /g
 
3864
        p
 
3865
}
 
3866
'
 
3867
DEFS=`sed -n "$ac_script" confdefs.h`
3431
3868
 
3432
3869
 
3433
3870
ac_libobjs=
3434
3871
ac_ltlibobjs=
3435
3872
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3436
3873
  # 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'
 
3874
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
3875
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
3876
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
3877
  #    will be set to the directory where LIBOBJS objects are built.
 
3878
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
3879
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
3442
3880
done
3443
3881
LIBOBJS=$ac_libobjs
3444
3882
 
3469
3907
## M4sh Initialization.  ##
3470
3908
## --------------------- ##
3471
3909
 
3472
 
# Be Bourne compatible
 
3910
# Be more Bourne compatible
 
3911
DUALCASE=1; export DUALCASE # for MKS sh
3473
3912
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3474
3913
  emulate sh
3475
3914
  NULLCMD=:
3476
3915
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3477
3916
  # is contrary to our usage.  Disable this feature.
3478
3917
  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
 
3918
  setopt NO_GLOB_SUBST
 
3919
else
 
3920
  case `(set -o) 2>/dev/null` in
 
3921
  *posix*) set -o posix ;;
 
3922
esac
 
3923
 
 
3924
fi
 
3925
 
 
3926
 
 
3927
 
 
3928
 
 
3929
# PATH needs CR
 
3930
# Avoid depending upon Character Ranges.
 
3931
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
3932
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
3933
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
3934
as_cr_digits='0123456789'
 
3935
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
3936
 
 
3937
# The user is always right.
 
3938
if test "${PATH_SEPARATOR+set}" != set; then
 
3939
  echo "#! /bin/sh" >conf$$.sh
 
3940
  echo  "exit 0"   >>conf$$.sh
 
3941
  chmod +x conf$$.sh
 
3942
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
3943
    PATH_SEPARATOR=';'
 
3944
  else
 
3945
    PATH_SEPARATOR=:
 
3946
  fi
 
3947
  rm -f conf$$.sh
 
3948
fi
3483
3949
 
3484
3950
# Support unset when possible.
3485
3951
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3489
3955
fi
3490
3956
 
3491
3957
 
 
3958
# IFS
 
3959
# We need space, tab and new line, in precisely that order.  Quoting is
 
3960
# there to prevent editors from complaining about space-tab.
 
3961
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
3962
# splitting by setting IFS to empty value.)
 
3963
as_nl='
 
3964
'
 
3965
IFS=" ""        $as_nl"
 
3966
 
 
3967
# Find who we are.  Look in the path if we contain no directory separator.
 
3968
case $0 in
 
3969
  *[\\/]* ) as_myself=$0 ;;
 
3970
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3971
for as_dir in $PATH
 
3972
do
 
3973
  IFS=$as_save_IFS
 
3974
  test -z "$as_dir" && as_dir=.
 
3975
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
3976
done
 
3977
IFS=$as_save_IFS
 
3978
 
 
3979
     ;;
 
3980
esac
 
3981
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
3982
# in which case we are not to be found in the path.
 
3983
if test "x$as_myself" = x; then
 
3984
  as_myself=$0
 
3985
fi
 
3986
if test ! -f "$as_myself"; then
 
3987
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
3988
  { (exit 1); exit 1; }
 
3989
fi
 
3990
 
3492
3991
# Work around bugs in pre-3.0 UWIN ksh.
3493
 
$as_unset ENV MAIL MAILPATH
 
3992
for as_var in ENV MAIL MAILPATH
 
3993
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
3994
done
3494
3995
PS1='$ '
3495
3996
PS2='> '
3496
3997
PS4='+ '
3504
4005
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3505
4006
    eval $as_var=C; export $as_var
3506
4007
  else
3507
 
    $as_unset $as_var
 
4008
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
3508
4009
  fi
3509
4010
done
3510
4011
 
3511
4012
# Required to use basename.
3512
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
4013
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
4014
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3513
4015
  as_expr=expr
3514
4016
else
3515
4017
  as_expr=false
3516
4018
fi
3517
4019
 
3518
 
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
 
4020
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
3519
4021
  as_basename=basename
3520
4022
else
3521
4023
  as_basename=false
3523
4025
 
3524
4026
 
3525
4027
# Name of the executable.
3526
 
as_me=`$as_basename "$0" ||
 
4028
as_me=`$as_basename -- "$0" ||
3527
4029
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3528
4030
         X"$0" : 'X\(//\)$' \| \
3529
 
         X"$0" : 'X\(/\)$' \| \
3530
 
         .     : '\(.\)' 2>/dev/null ||
 
4031
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
3531
4032
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
 
4033
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
4034
            s//\1/
 
4035
            q
 
4036
          }
 
4037
          /^X\/\(\/\/\)$/{
 
4038
            s//\1/
 
4039
            q
 
4040
          }
 
4041
          /^X\/\(\/\).*/{
 
4042
            s//\1/
 
4043
            q
 
4044
          }
 
4045
          s/.*/./; q'`
 
4046
 
 
4047
# CDPATH.
 
4048
$as_unset CDPATH
 
4049
 
 
4050
 
 
4051
 
 
4052
  as_lineno_1=$LINENO
 
4053
  as_lineno_2=$LINENO
 
4054
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
4055
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
3616
4056
 
3617
4057
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3618
4058
  # 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.
 
4059
  # line-number line after each line using $LINENO; the second 'sed'
 
4060
  # does the real work.  The second script uses 'N' to pair each
 
4061
  # line-number line with the line containing $LINENO, and appends
 
4062
  # trailing '-' during substitution so that $LINENO is not a special
 
4063
  # case at line end.
3623
4064
  # (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 |
 
4065
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
4066
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
4067
  sed -n '
 
4068
    p
 
4069
    /[$]LINENO/=
 
4070
  ' <$as_myself |
3626
4071
    sed '
 
4072
      s/[$]LINENO.*/&-/
 
4073
      t lineno
 
4074
      b
 
4075
      :lineno
3627
4076
      N
3628
 
      s,$,-,
3629
 
      : loop
3630
 
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
 
4077
      :loop
 
4078
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
3631
4079
      t loop
3632
 
      s,-$,,
3633
 
      s,^['$as_cr_digits']*\n,,
 
4080
      s/-\n.*//
3634
4081
    ' >$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;}
 
4082
  chmod +x "$as_me.lineno" ||
 
4083
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
3638
4084
   { (exit 1); exit 1; }; }
3639
4085
 
3640
4086
  # Don't try to exec as it changes $[0], causing all sort of problems
3641
4087
  # (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
 
4088
  # original and so on.  Autoconf is especially sensitive to this).
 
4089
  . "./$as_me.lineno"
3644
4090
  # Exit status is that of the last command.
3645
4091
  exit
3646
4092
}
3647
4093
 
3648
4094
 
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= ;;
 
4095
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
4096
  as_dirname=dirname
 
4097
else
 
4098
  as_dirname=false
 
4099
fi
 
4100
 
 
4101
ECHO_C= ECHO_N= ECHO_T=
 
4102
case `echo -n x` in
 
4103
-n*)
 
4104
  case `echo 'x\c'` in
 
4105
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
4106
  *)   ECHO_C='\c';;
 
4107
  esac;;
 
4108
*)
 
4109
  ECHO_N='-n';;
3654
4110
esac
3655
4111
 
3656
 
if expr a : '\(a\)' >/dev/null 2>&1; then
 
4112
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
4113
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
3657
4114
  as_expr=expr
3658
4115
else
3659
4116
  as_expr=false
3660
4117
fi
3661
4118
 
3662
4119
rm -f conf$$ conf$$.exe conf$$.file
 
4120
if test -d conf$$.dir; then
 
4121
  rm -f conf$$.dir/conf$$.file
 
4122
else
 
4123
  rm -f conf$$.dir
 
4124
  mkdir conf$$.dir
 
4125
fi
3663
4126
echo >conf$$.file
3664
4127
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
 
4128
  as_ln_s='ln -s'
 
4129
  # ... but there are two gotchas:
 
4130
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
4131
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
4132
  # In both cases, we have to default to `cp -p'.
 
4133
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
3669
4134
    as_ln_s='cp -p'
3670
 
  else
3671
 
    as_ln_s='ln -s'
3672
 
  fi
3673
4135
elif ln conf$$.file conf$$ 2>/dev/null; then
3674
4136
  as_ln_s=ln
3675
4137
else
3676
4138
  as_ln_s='cp -p'
3677
4139
fi
3678
 
rm -f conf$$ conf$$.exe conf$$.file
 
4140
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
4141
rmdir conf$$.dir 2>/dev/null
3679
4142
 
3680
4143
if mkdir -p . 2>/dev/null; then
3681
4144
  as_mkdir_p=:
3684
4147
  as_mkdir_p=false
3685
4148
fi
3686
4149
 
3687
 
as_executable_p="test -f"
 
4150
if test -x / >/dev/null 2>&1; then
 
4151
  as_test_x='test -x'
 
4152
else
 
4153
  if ls -dL / >/dev/null 2>&1; then
 
4154
    as_ls_L_option=L
 
4155
  else
 
4156
    as_ls_L_option=
 
4157
  fi
 
4158
  as_test_x='
 
4159
    eval sh -c '\''
 
4160
      if test -d "$1"; then
 
4161
        test -d "$1/.";
 
4162
      else
 
4163
        case $1 in
 
4164
        -*)set "./$1";;
 
4165
        esac;
 
4166
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
4167
        ???[sx]*):;;*)false;;esac;fi
 
4168
    '\'' sh
 
4169
  '
 
4170
fi
 
4171
as_executable_p=$as_test_x
3688
4172
 
3689
4173
# Sed expression to map a string onto a valid CPP name.
3690
4174
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3693
4177
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3694
4178
 
3695
4179
 
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
4180
exec 6>&1
3706
4181
 
3707
 
# Open the log real soon, to keep \$[0] and so on meaningful, and to
 
4182
# Save the log message, to keep $[0] and so on meaningful, and to
3708
4183
# 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
 
 
 
4184
# values after options handling.
 
4185
ac_log="
3719
4186
This file was extended by $as_me, which was
3720
 
generated by GNU Autoconf 2.59.  Invocation command line was
 
4187
generated by GNU Autoconf 2.61.  Invocation command line was
3721
4188
 
3722
4189
  CONFIG_FILES    = $CONFIG_FILES
3723
4190
  CONFIG_HEADERS  = $CONFIG_HEADERS
3725
4192
  CONFIG_COMMANDS = $CONFIG_COMMANDS
3726
4193
  $ $0 $@
3727
4194
 
3728
 
_CSEOF
3729
 
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3730
 
echo >&5
 
4195
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
4196
"
 
4197
 
3731
4198
_ACEOF
3732
4199
 
 
4200
cat >>$CONFIG_STATUS <<_ACEOF
3733
4201
# 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
 
4202
config_files="$ac_config_files"
 
4203
 
 
4204
_ACEOF
3749
4205
 
3750
4206
cat >>$CONFIG_STATUS <<\_ACEOF
3751
 
 
3752
4207
ac_cs_usage="\
3753
4208
\`$as_me' instantiates files from templates according to the
3754
4209
current configuration.
3756
4211
Usage: $0 [OPTIONS] [FILE]...
3757
4212
 
3758
4213
  -h, --help       print this help, then exit
3759
 
  -V, --version    print version number, then exit
 
4214
  -V, --version    print version number and configuration settings, then exit
3760
4215
  -q, --quiet      do not print progress messages
3761
4216
  -d, --debug      don't remove temporary files
3762
4217
      --recheck    update $as_me by reconfiguring in the same conditions
3767
4222
$config_files
3768
4223
 
3769
4224
Report bugs to <bug-autoconf@gnu.org>."
 
4225
 
3770
4226
_ACEOF
3771
 
 
3772
4227
cat >>$CONFIG_STATUS <<_ACEOF
3773
4228
ac_cs_version="\\
3774
4229
config.status
3775
 
configured by $0, generated by GNU Autoconf 2.59,
3776
 
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
 
4230
configured by $0, generated by GNU Autoconf 2.61,
 
4231
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
3777
4232
 
3778
 
Copyright (C) 2003 Free Software Foundation, Inc.
 
4233
Copyright (C) 2006 Free Software Foundation, Inc.
3779
4234
This config.status script is free software; the Free Software Foundation
3780
4235
gives unlimited permission to copy, distribute and modify it."
3781
 
srcdir=$srcdir
 
4236
 
 
4237
ac_pwd='$ac_pwd'
 
4238
srcdir='$srcdir'
3782
4239
_ACEOF
3783
4240
 
3784
4241
cat >>$CONFIG_STATUS <<\_ACEOF
3789
4246
do
3790
4247
  case $1 in
3791
4248
  --*=*)
3792
 
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3793
 
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
 
4249
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
4250
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
3794
4251
    ac_shift=:
3795
4252
    ;;
3796
 
  -*)
 
4253
  *)
3797
4254
    ac_option=$1
3798
4255
    ac_optarg=$2
3799
4256
    ac_shift=shift
3800
4257
    ;;
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
4258
  esac
3806
4259
 
3807
4260
  case $ac_option in
3808
4261
  # Handling of the options.
3809
 
_ACEOF
3810
 
cat >>$CONFIG_STATUS <<\_ACEOF
3811
4262
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3812
4263
    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 )
 
4264
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
4265
    echo "$ac_cs_version"; exit ;;
 
4266
  --debug | --debu | --deb | --de | --d | -d )
3825
4267
    debug=: ;;
3826
4268
  --file | --fil | --fi | --f )
3827
4269
    $ac_shift
3828
4270
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3829
4271
    ac_need_defaults=false;;
3830
 
  --header | --heade | --head | --hea )
3831
 
    $ac_shift
3832
 
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3833
 
    ac_need_defaults=false;;
 
4272
  --he | --h |  --help | --hel | -h )
 
4273
    echo "$ac_cs_usage"; exit ;;
3834
4274
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3835
4275
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3836
4276
    ac_cs_silent=: ;;
3837
4277
 
3838
4278
  # 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;}
 
4279
  -*) { echo "$as_me: error: unrecognized option: $1
 
4280
Try \`$0 --help' for more information." >&2
3843
4281
   { (exit 1); exit 1; }; } ;;
3844
4282
 
3845
 
  *) ac_config_targets="$ac_config_targets $1" ;;
 
4283
  *) ac_config_targets="$ac_config_targets $1"
 
4284
     ac_need_defaults=false ;;
3846
4285
 
3847
4286
  esac
3848
4287
  shift
3858
4297
_ACEOF
3859
4298
cat >>$CONFIG_STATUS <<_ACEOF
3860
4299
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
 
4300
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
4301
  CONFIG_SHELL=$SHELL
 
4302
  export CONFIG_SHELL
 
4303
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3863
4304
fi
3864
4305
 
3865
4306
_ACEOF
3866
 
 
3867
 
 
3868
 
 
3869
 
 
3870
 
 
3871
 
cat >>$CONFIG_STATUS <<\_ACEOF
 
4307
cat >>$CONFIG_STATUS <<\_ACEOF
 
4308
exec 5>>config.log
 
4309
{
 
4310
  echo
 
4311
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
4312
## Running $as_me. ##
 
4313
_ASBOX
 
4314
  echo "$ac_log"
 
4315
} >&5
 
4316
 
 
4317
_ACEOF
 
4318
cat >>$CONFIG_STATUS <<_ACEOF
 
4319
_ACEOF
 
4320
 
 
4321
cat >>$CONFIG_STATUS <<\_ACEOF
 
4322
 
 
4323
# Handling of arguments.
3872
4324
for ac_config_target in $ac_config_targets
3873
4325
do
3874
 
  case "$ac_config_target" in
3875
 
  # Handling of arguments.
3876
 
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
4326
  case $ac_config_target in
 
4327
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
4328
 
3877
4329
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3878
4330
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3879
4331
   { (exit 1); exit 1; }; };;
3880
4332
  esac
3881
4333
done
3882
4334
 
 
4335
 
3883
4336
# If the user did not use the arguments to specify the items to instantiate,
3884
4337
# then the envvar interface is used.  Set only those that are not.
3885
4338
# We use the long form for the default assignment because of an extremely
3889
4342
fi
3890
4343
 
3891
4344
# 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,
 
4345
# simply because there is no reason against having it here, and in addition,
3893
4346
# creating and moving files from /tmp can sometimes cause problems.
3894
 
# Create a temporary directory, and hook for its removal unless debugging.
 
4347
# Hook for its removal unless debugging.
 
4348
# Note that there is a small window in which the directory will not be cleaned:
 
4349
# after its creation but before its name has been assigned to `$tmp'.
3895
4350
$debug ||
3896
4351
{
3897
 
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 
4352
  tmp=
 
4353
  trap 'exit_status=$?
 
4354
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
4355
' 0
3898
4356
  trap '{ (exit 1); exit 1; }' 1 2 13 15
3899
4357
}
3900
 
 
3901
4358
# Create a (secure) tmp directory for tmp files.
3902
4359
 
3903
4360
{
3904
 
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
 
4361
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
3905
4362
  test -n "$tmp" && test -d "$tmp"
3906
4363
}  ||
3907
4364
{
3908
 
  tmp=./confstat$$-$RANDOM
3909
 
  (umask 077 && mkdir $tmp)
 
4365
  tmp=./conf$$-$RANDOM
 
4366
  (umask 077 && mkdir "$tmp")
3910
4367
} ||
3911
4368
{
3912
4369
   echo "$me: cannot create a temporary directory in ." >&2
3913
4370
   { (exit 1); exit 1; }
3914
4371
}
3915
4372
 
3916
 
_ACEOF
3917
 
 
3918
 
cat >>$CONFIG_STATUS <<_ACEOF
3919
 
 
3920
4373
#
3921
 
# CONFIG_FILES section.
 
4374
# Set up the sed scripts for CONFIG_FILES section.
3922
4375
#
3923
4376
 
3924
4377
# No need to generate the scripts if there are no CONFIG_FILES.
3925
4378
# 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,@LIBOBJS@,$LIBOBJS,;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
 
4379
if test -n "$CONFIG_FILES"; then
 
4380
 
 
4381
_ACEOF
 
4382
 
 
4383
 
 
4384
 
 
4385
ac_delim='%!_!# '
 
4386
for ac_last_try in false false false false false :; do
 
4387
  cat >conf$$subs.sed <<_ACEOF
 
4388
SHELL!$SHELL$ac_delim
 
4389
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
4390
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
4391
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
4392
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
4393
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
4394
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
4395
exec_prefix!$exec_prefix$ac_delim
 
4396
prefix!$prefix$ac_delim
 
4397
program_transform_name!$program_transform_name$ac_delim
 
4398
bindir!$bindir$ac_delim
 
4399
sbindir!$sbindir$ac_delim
 
4400
libexecdir!$libexecdir$ac_delim
 
4401
datarootdir!$datarootdir$ac_delim
 
4402
datadir!$datadir$ac_delim
 
4403
sysconfdir!$sysconfdir$ac_delim
 
4404
sharedstatedir!$sharedstatedir$ac_delim
 
4405
localstatedir!$localstatedir$ac_delim
 
4406
includedir!$includedir$ac_delim
 
4407
oldincludedir!$oldincludedir$ac_delim
 
4408
docdir!$docdir$ac_delim
 
4409
infodir!$infodir$ac_delim
 
4410
htmldir!$htmldir$ac_delim
 
4411
dvidir!$dvidir$ac_delim
 
4412
pdfdir!$pdfdir$ac_delim
 
4413
psdir!$psdir$ac_delim
 
4414
libdir!$libdir$ac_delim
 
4415
localedir!$localedir$ac_delim
 
4416
mandir!$mandir$ac_delim
 
4417
DEFS!$DEFS$ac_delim
 
4418
ECHO_C!$ECHO_C$ac_delim
 
4419
ECHO_N!$ECHO_N$ac_delim
 
4420
ECHO_T!$ECHO_T$ac_delim
 
4421
LIBS!$LIBS$ac_delim
 
4422
build_alias!$build_alias$ac_delim
 
4423
host_alias!$host_alias$ac_delim
 
4424
target_alias!$target_alias$ac_delim
 
4425
build!$build$ac_delim
 
4426
build_cpu!$build_cpu$ac_delim
 
4427
build_vendor!$build_vendor$ac_delim
 
4428
build_os!$build_os$ac_delim
 
4429
host!$host$ac_delim
 
4430
host_cpu!$host_cpu$ac_delim
 
4431
host_vendor!$host_vendor$ac_delim
 
4432
host_os!$host_os$ac_delim
 
4433
CC!$CC$ac_delim
 
4434
CFLAGS!$CFLAGS$ac_delim
 
4435
LDFLAGS!$LDFLAGS$ac_delim
 
4436
CPPFLAGS!$CPPFLAGS$ac_delim
 
4437
ac_ct_CC!$ac_ct_CC$ac_delim
 
4438
EXEEXT!$EXEEXT$ac_delim
 
4439
OBJEXT!$OBJEXT$ac_delim
 
4440
OSMESA_CONFIG!$OSMESA_CONFIG$ac_delim
 
4441
EXE!$EXE$ac_delim
 
4442
MATHLIB!$MATHLIB$ac_delim
 
4443
SDL_CONFIG!$SDL_CONFIG$ac_delim
 
4444
SDL_CFLAGS!$SDL_CFLAGS$ac_delim
 
4445
SDL_LIBS!$SDL_LIBS$ac_delim
 
4446
XMKMF!$XMKMF$ac_delim
 
4447
CPP!$CPP$ac_delim
 
4448
GLLIB!$GLLIB$ac_delim
 
4449
LIBOBJS!$LIBOBJS$ac_delim
 
4450
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
4451
_ACEOF
 
4452
 
 
4453
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
 
4454
    break
 
4455
  elif $ac_last_try; then
 
4456
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
4457
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
4458
   { (exit 1); exit 1; }; }
 
4459
  else
 
4460
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
4025
4461
  fi
 
4462
done
 
4463
 
 
4464
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
4465
if test -n "$ac_eof"; then
 
4466
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
4467
  ac_eof=`expr $ac_eof + 1`
 
4468
fi
 
4469
 
 
4470
cat >>$CONFIG_STATUS <<_ACEOF
 
4471
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
4472
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
4473
_ACEOF
 
4474
sed '
 
4475
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
4476
s/^/s,@/; s/!/@,|#_!!_#|/
 
4477
:n
 
4478
t n
 
4479
s/'"$ac_delim"'$/,g/; t
 
4480
s/$/\\/; p
 
4481
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
4482
' >>$CONFIG_STATUS <conf$$subs.sed
 
4483
rm -f conf$$subs.sed
 
4484
cat >>$CONFIG_STATUS <<_ACEOF
 
4485
:end
 
4486
s/|#_!!_#|//g
 
4487
CEOF$ac_eof
 
4488
_ACEOF
 
4489
 
 
4490
 
 
4491
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
4492
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
4493
# trailing colons and then remove the whole line if VPATH becomes empty
 
4494
# (actually we leave an empty line to preserve line numbers).
 
4495
if test "x$srcdir" = x.; then
 
4496
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
4497
s/:*\$(srcdir):*/:/
 
4498
s/:*\${srcdir}:*/:/
 
4499
s/:*@srcdir@:*/:/
 
4500
s/^\([^=]*=[     ]*\):*/\1/
 
4501
s/:*$//
 
4502
s/^[^=]*=[       ]*$//
 
4503
}'
 
4504
fi
 
4505
 
 
4506
cat >>$CONFIG_STATUS <<\_ACEOF
4026
4507
fi # test -n "$CONFIG_FILES"
4027
4508
 
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 ||
 
4509
 
 
4510
for ac_tag in  :F $CONFIG_FILES
 
4511
do
 
4512
  case $ac_tag in
 
4513
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
4514
  esac
 
4515
  case $ac_mode$ac_tag in
 
4516
  :[FHL]*:*);;
 
4517
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
4518
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
4519
   { (exit 1); exit 1; }; };;
 
4520
  :[FH]-) ac_tag=-:-;;
 
4521
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
4522
  esac
 
4523
  ac_save_IFS=$IFS
 
4524
  IFS=:
 
4525
  set x $ac_tag
 
4526
  IFS=$ac_save_IFS
 
4527
  shift
 
4528
  ac_file=$1
 
4529
  shift
 
4530
 
 
4531
  case $ac_mode in
 
4532
  :L) ac_source=$1;;
 
4533
  :[FH])
 
4534
    ac_file_inputs=
 
4535
    for ac_f
 
4536
    do
 
4537
      case $ac_f in
 
4538
      -) ac_f="$tmp/stdin";;
 
4539
      *) # Look for the file first in the build tree, then in the source tree
 
4540
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
4541
         # because $ac_f cannot contain `:'.
 
4542
         test -f "$ac_f" ||
 
4543
           case $ac_f in
 
4544
           [\\/$]*) false;;
 
4545
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
4546
           esac ||
 
4547
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
4548
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
4549
   { (exit 1); exit 1; }; };;
 
4550
      esac
 
4551
      ac_file_inputs="$ac_file_inputs $ac_f"
 
4552
    done
 
4553
 
 
4554
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
4555
    # use $as_me), people would be surprised to read:
 
4556
    #    /* config.h.  Generated by config.status.  */
 
4557
    configure_input="Generated from "`IFS=:
 
4558
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
4559
    if test x"$ac_file" != x-; then
 
4560
      configure_input="$ac_file.  $configure_input"
 
4561
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
4562
echo "$as_me: creating $ac_file" >&6;}
 
4563
    fi
 
4564
 
 
4565
    case $ac_tag in
 
4566
    *:-:* | *:-) cat >"$tmp/stdin";;
 
4567
    esac
 
4568
    ;;
 
4569
  esac
 
4570
 
 
4571
  ac_dir=`$as_dirname -- "$ac_file" ||
4044
4572
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4045
4573
         X"$ac_file" : 'X\(//\)[^/]' \| \
4046
4574
         X"$ac_file" : 'X\(//\)$' \| \
4047
 
         X"$ac_file" : 'X\(/\)' \| \
4048
 
         .     : '\(.\)' 2>/dev/null ||
 
4575
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
4049
4576
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"
 
4577
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
4578
            s//\1/
 
4579
            q
 
4580
          }
 
4581
          /^X\(\/\/\)[^/].*/{
 
4582
            s//\1/
 
4583
            q
 
4584
          }
 
4585
          /^X\(\/\/\)$/{
 
4586
            s//\1/
 
4587
            q
 
4588
          }
 
4589
          /^X\(\/\).*/{
 
4590
            s//\1/
 
4591
            q
 
4592
          }
 
4593
          s/.*/./; q'`
 
4594
  { as_dir="$ac_dir"
 
4595
  case $as_dir in #(
 
4596
  -*) as_dir=./$as_dir;;
 
4597
  esac
 
4598
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
4059
4599
    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 ||
 
4600
    while :; do
 
4601
      case $as_dir in #(
 
4602
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
4603
      *) as_qdir=$as_dir;;
 
4604
      esac
 
4605
      as_dirs="'$as_qdir' $as_dirs"
 
4606
      as_dir=`$as_dirname -- "$as_dir" ||
4063
4607
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4064
4608
         X"$as_dir" : 'X\(//\)[^/]' \| \
4065
4609
         X"$as_dir" : 'X\(//\)$' \| \
4066
 
         X"$as_dir" : 'X\(/\)' \| \
4067
 
         .     : '\(.\)' 2>/dev/null ||
 
4610
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4068
4611
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'`
 
4612
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
4613
            s//\1/
 
4614
            q
 
4615
          }
 
4616
          /^X\(\/\/\)[^/].*/{
 
4617
            s//\1/
 
4618
            q
 
4619
          }
 
4620
          /^X\(\/\/\)$/{
 
4621
            s//\1/
 
4622
            q
 
4623
          }
 
4624
          /^X\(\/\).*/{
 
4625
            s//\1/
 
4626
            q
 
4627
          }
 
4628
          s/.*/./; q'`
 
4629
      test -d "$as_dir" && break
4074
4630
    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;}
 
4631
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
4632
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
4633
echo "$as_me: error: cannot create directory $as_dir" >&2;}
4078
4634
   { (exit 1); exit 1; }; }; }
4079
 
 
4080
4635
  ac_builddir=.
4081
4636
 
4082
 
if test "$ac_dir" != .; then
 
4637
case "$ac_dir" in
 
4638
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
4639
*)
4083
4640
  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
 
4641
  # A ".." for each directory in $ac_dir_suffix.
 
4642
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
4643
  case $ac_top_builddir_sub in
 
4644
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
4645
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
4646
  esac ;;
 
4647
esac
 
4648
ac_abs_top_builddir=$ac_pwd
 
4649
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
4650
# for backward compatibility:
 
4651
ac_top_builddir=$ac_top_build_prefix
4089
4652
 
4090
4653
case $srcdir in
4091
 
  .)  # No --srcdir option.  We are building in place.
 
4654
  .)  # We are building in place.
4092
4655
    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.
 
4656
    ac_top_srcdir=$ac_top_builddir_sub
 
4657
    ac_abs_top_srcdir=$ac_pwd ;;
 
4658
  [\\/]* | ?:[\\/]* )  # Absolute name.
4099
4659
    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
 
4660
    ac_top_srcdir=$srcdir
 
4661
    ac_abs_top_srcdir=$srcdir ;;
 
4662
  *) # Relative name.
 
4663
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
4664
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
4665
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
4666
esac
 
4667
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
4668
 
 
4669
 
 
4670
  case $ac_mode in
 
4671
  :F)
 
4672
  #
 
4673
  # CONFIG_FILE
 
4674
  #
 
4675
 
 
4676
_ACEOF
 
4677
 
 
4678
cat >>$CONFIG_STATUS <<\_ACEOF
 
4679
# If the template does not know about datarootdir, expand it.
 
4680
# FIXME: This hack should be removed a few years after 2.60.
 
4681
ac_datarootdir_hack=; ac_datarootdir_seen=
 
4682
 
 
4683
case `sed -n '/datarootdir/ {
 
4684
  p
 
4685
  q
 
4686
}
 
4687
/@datadir@/p
 
4688
/@docdir@/p
 
4689
/@infodir@/p
 
4690
/@localedir@/p
 
4691
/@mandir@/p
 
4692
' $ac_file_inputs` in
 
4693
*datarootdir*) ac_datarootdir_seen=yes;;
 
4694
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
4695
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
4696
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
4697
_ACEOF
 
4698
cat >>$CONFIG_STATUS <<_ACEOF
 
4699
  ac_datarootdir_hack='
 
4700
  s&@datadir@&$datadir&g
 
4701
  s&@docdir@&$docdir&g
 
4702
  s&@infodir@&$infodir&g
 
4703
  s&@localedir@&$localedir&g
 
4704
  s&@mandir@&$mandir&g
 
4705
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
4706
esac
 
4707
_ACEOF
 
4708
 
 
4709
# Neutralize VPATH when `$srcdir' = `.'.
 
4710
# Shell code in configure.ac might set extrasub.
 
4711
# FIXME: do we really want to maintain this feature?
4191
4712
cat >>$CONFIG_STATUS <<_ACEOF
4192
4713
  sed "$ac_vpsub
4193
4714
$extrasub
4195
4716
cat >>$CONFIG_STATUS <<\_ACEOF
4196
4717
:t
4197
4718
/@[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
 
4719
s&@configure_input@&$configure_input&;t t
 
4720
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
4721
s&@srcdir@&$ac_srcdir&;t t
 
4722
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
4723
s&@top_srcdir@&$ac_top_srcdir&;t t
 
4724
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
4725
s&@builddir@&$ac_builddir&;t t
 
4726
s&@abs_builddir@&$ac_abs_builddir&;t t
 
4727
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
4728
$ac_datarootdir_hack
 
4729
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
 
4730
 
 
4731
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
4732
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
4733
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
4734
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
4735
which seems to be undefined.  Please make sure it is defined." >&5
 
4736
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
4737
which seems to be undefined.  Please make sure it is defined." >&2;}
 
4738
 
 
4739
  rm -f "$tmp/stdin"
 
4740
  case $ac_file in
 
4741
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
4742
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
4743
  esac
 
4744
 ;;
 
4745
 
 
4746
 
 
4747
 
 
4748
  esac
 
4749
 
 
4750
done # for ac_tag
 
4751
 
4220
4752
 
4221
4753
{ (exit 0); exit 0; }
4222
4754
_ACEOF