~ubuntu-branches/ubuntu/precise/mm3d/precise

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Gürkan Sengün
  • Date: 2008-01-14 06:22:24 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080114062224-q9fx6v2xmu4h9mps
Tags: 1.3.6-1
* New upstream version.
* debian/watch: Added.
* debian/control:
  + Updated standards version.
  + Moved homepage field.
* debian/menu: Updated.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
 
3
2
# Guess values for system-dependent variables and create Makefiles.
4
 
# Generated automatically using autoconf version 2.13 
5
 
# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6
 
#
 
3
# Generated by GNU Autoconf 2.61 for mm3d 1.3.6.
 
4
#
 
5
# Report bugs to <kevin@misfitcode.com>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7
9
# This configure script is free software; the Free Software Foundation
8
10
# gives unlimited permission to copy, distribute and modify it.
9
 
 
10
 
# Defaults:
11
 
ac_help=
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
exec 7<&0 </dev/null 6>&1
 
555
 
 
556
# Name of the host.
 
557
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
558
# so uname gets run too.
 
559
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
560
 
 
561
#
 
562
# Initializations.
 
563
#
12
564
ac_default_prefix=/usr/local
13
 
# Any additions from configure.in:
14
 
ac_help="$ac_help
15
 
  --with-enable-debug=yes/no       Specify "yes" to enable a debug build."
16
 
ac_help="$ac_help
17
 
  --with-lua-dir=DIR       DIR is equal to the install prefix of Lua.
18
 
                          Header files are in DIR/include, and Library 
19
 
                          files are in DIR/lib"
20
 
ac_help="$ac_help
21
 
  --with-lua-include-dir=DIR
22
 
                          Lua header files are in DIR"
23
 
ac_help="$ac_help
24
 
  --with-lua-lib-dir=DIR   Lua libraries are in DIR"
25
 
ac_help="$ac_help
26
 
  --with-lua-lib=LIB       Use -lLIB to link with the lua library"
27
 
ac_help="$ac_help
28
 
  --with-lualib-dir=DIR       DIR is equal to the install prefix of Lualib.
29
 
                          Header files are in DIR/include, and Library 
30
 
                          files are in DIR/lib"
31
 
ac_help="$ac_help
32
 
  --with-lualib-include-dir=DIR
33
 
                          Lua header files are in DIR"
34
 
ac_help="$ac_help
35
 
  --with-lualib-lib-dir=DIR   Lua libraries are in DIR"
36
 
ac_help="$ac_help
37
 
  --with-lualib-lib=LIB       Use -lLIB to link with the lualib library"
38
 
ac_help="$ac_help
39
 
  --with-x                use the X Window System"
40
 
ac_help="$ac_help
41
 
Prefer the Mesa library over a vendors native OpenGL library (default=yes)"
42
 
ac_help="$ac_help
43
 
$with_Mesa_help_string"
44
 
ac_help="$ac_help
45
 
  --with-Qt-dir=DIR       DIR is equal to \$QTDIR if you have followed the
46
 
                          installation instructions of Trolltech. Header
47
 
                          files are in DIR/include, binary utilities are
48
 
                          in DIR/bin and the library is in DIR/lib"
49
 
ac_help="$ac_help
50
 
  --with-Qt-include-dir=DIR
51
 
                          Qt header files are in DIR"
52
 
ac_help="$ac_help
53
 
  --with-Qt-bin-dir=DIR   Qt utilities such as moc and uic are in DIR"
54
 
ac_help="$ac_help
55
 
  --with-Qt-lib-dir=DIR   The Qt library is in DIR"
56
 
ac_help="$ac_help
57
 
  --with-Qt-lib=LIB       Use -lLIB to link with the Qt library"
 
565
ac_clean_files=
 
566
ac_config_libobj_dir=.
 
567
LIBOBJS=
 
568
cross_compiling=no
 
569
subdirs=
 
570
MFLAGS=
 
571
MAKEFLAGS=
 
572
SHELL=${CONFIG_SHELL-/bin/sh}
 
573
 
 
574
# Identity of this package.
 
575
PACKAGE_NAME='mm3d'
 
576
PACKAGE_TARNAME='mm3d'
 
577
PACKAGE_VERSION='1.3.6'
 
578
PACKAGE_STRING='mm3d 1.3.6'
 
579
PACKAGE_BUGREPORT='kevin@misfitcode.com'
 
580
 
 
581
ac_unique_file="config.h.in"
 
582
# Factoring default headers for most tests.
 
583
ac_includes_default="\
 
584
#include <stdio.h>
 
585
#ifdef HAVE_SYS_TYPES_H
 
586
# include <sys/types.h>
 
587
#endif
 
588
#ifdef HAVE_SYS_STAT_H
 
589
# include <sys/stat.h>
 
590
#endif
 
591
#ifdef STDC_HEADERS
 
592
# include <stdlib.h>
 
593
# include <stddef.h>
 
594
#else
 
595
# ifdef HAVE_STDLIB_H
 
596
#  include <stdlib.h>
 
597
# endif
 
598
#endif
 
599
#ifdef HAVE_STRING_H
 
600
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
601
#  include <memory.h>
 
602
# endif
 
603
# include <string.h>
 
604
#endif
 
605
#ifdef HAVE_STRINGS_H
 
606
# include <strings.h>
 
607
#endif
 
608
#ifdef HAVE_INTTYPES_H
 
609
# include <inttypes.h>
 
610
#endif
 
611
#ifdef HAVE_STDINT_H
 
612
# include <stdint.h>
 
613
#endif
 
614
#ifdef HAVE_UNISTD_H
 
615
# include <unistd.h>
 
616
#endif"
 
617
 
 
618
ac_subst_vars='SHELL
 
619
PATH_SEPARATOR
 
620
PACKAGE_NAME
 
621
PACKAGE_TARNAME
 
622
PACKAGE_VERSION
 
623
PACKAGE_STRING
 
624
PACKAGE_BUGREPORT
 
625
exec_prefix
 
626
prefix
 
627
program_transform_name
 
628
bindir
 
629
sbindir
 
630
libexecdir
 
631
datarootdir
 
632
datadir
 
633
sysconfdir
 
634
sharedstatedir
 
635
localstatedir
 
636
includedir
 
637
oldincludedir
 
638
docdir
 
639
infodir
 
640
htmldir
 
641
dvidir
 
642
pdfdir
 
643
psdir
 
644
libdir
 
645
localedir
 
646
mandir
 
647
DEFS
 
648
ECHO_C
 
649
ECHO_N
 
650
ECHO_T
 
651
LIBS
 
652
build_alias
 
653
host_alias
 
654
target_alias
 
655
INSTALL_PROGRAM
 
656
INSTALL_SCRIPT
 
657
INSTALL_DATA
 
658
CYGPATH_W
 
659
PACKAGE
 
660
VERSION
 
661
ACLOCAL
 
662
AUTOCONF
 
663
AUTOMAKE
 
664
AUTOHEADER
 
665
MAKEINFO
 
666
install_sh
 
667
STRIP
 
668
INSTALL_STRIP_PROGRAM
 
669
mkdir_p
 
670
AWK
 
671
SET_MAKE
 
672
am__leading_dot
 
673
AMTAR
 
674
am__tar
 
675
am__untar
 
676
CXX
 
677
CXXFLAGS
 
678
LDFLAGS
 
679
CPPFLAGS
 
680
ac_ct_CXX
 
681
EXEEXT
 
682
OBJEXT
 
683
DEPDIR
 
684
am__include
 
685
am__quote
 
686
AMDEP_TRUE
 
687
AMDEP_FALSE
 
688
AMDEPBACKSLASH
 
689
CXXDEPMODE
 
690
am__fastdepCXX_TRUE
 
691
am__fastdepCXX_FALSE
 
692
CC
 
693
CFLAGS
 
694
ac_ct_CC
 
695
CCDEPMODE
 
696
am__fastdepCC_TRUE
 
697
am__fastdepCC_FALSE
 
698
RANLIB
 
699
CPP
 
700
GREP
 
701
EGREP
 
702
LIBOBJS
 
703
LUA_CCFLAGS
 
704
LUA_DIR
 
705
LUA_LIBS
 
706
LUALIB_CCFLAGS
 
707
LUALIB_DIR
 
708
LUALIB_LIBS
 
709
DLOPEN_LIBS
 
710
XMKMF
 
711
X_CFLAGS
 
712
X_PRE_LIBS
 
713
X_LIBS
 
714
X_EXTRA_LIBS
 
715
GL_CFLAGS
 
716
GL_LIBS
 
717
HAVE_QT4
 
718
QT_CXXFLAGS
 
719
QT_DIR
 
720
QT_LIBS
 
721
QT_UIC
 
722
QT_MOC
 
723
QGL_LIBS
 
724
DLOPEN_LIBS
 
725
BYTEORDER
 
726
LTLIBOBJS'
 
727
ac_subst_files=''
 
728
      ac_precious_vars='build_alias
 
729
host_alias
 
730
target_alias
 
731
CXX
 
732
CXXFLAGS
 
733
LDFLAGS
 
734
LIBS
 
735
CPPFLAGS
 
736
CCC
 
737
CC
 
738
CFLAGS
 
739
CPP
 
740
XMKMF'
 
741
 
58
742
 
59
743
# Initialize some variables set by options.
 
744
ac_init_help=
 
745
ac_init_version=false
60
746
# The variables have the same names as the options, with
61
747
# dashes changed to underlines.
62
 
build=NONE
63
 
cache_file=./config.cache
 
748
cache_file=/dev/null
64
749
exec_prefix=NONE
65
 
host=NONE
66
750
no_create=
67
 
nonopt=NONE
68
751
no_recursion=
69
752
prefix=NONE
70
753
program_prefix=NONE
73
756
silent=
74
757
site=
75
758
srcdir=
76
 
target=NONE
77
759
verbose=
78
760
x_includes=NONE
79
761
x_libraries=NONE
 
762
 
 
763
# Installation directory options.
 
764
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
765
# and all the variables that are supposed to be based on exec_prefix
 
766
# by default will actually change.
 
767
# Use braces instead of parens because sh, perl, etc. also accept them.
 
768
# (The list follows the same order as the GNU Coding Standards.)
80
769
bindir='${exec_prefix}/bin'
81
770
sbindir='${exec_prefix}/sbin'
82
771
libexecdir='${exec_prefix}/libexec'
83
 
datadir='${prefix}/share'
 
772
datarootdir='${prefix}/share'
 
773
datadir='${datarootdir}'
84
774
sysconfdir='${prefix}/etc'
85
775
sharedstatedir='${prefix}/com'
86
776
localstatedir='${prefix}/var'
87
 
libdir='${exec_prefix}/lib'
88
777
includedir='${prefix}/include'
89
778
oldincludedir='/usr/include'
90
 
infodir='${prefix}/info'
91
 
mandir='${prefix}/man'
92
 
 
93
 
# Initialize some other variables.
94
 
subdirs=
95
 
MFLAGS= MAKEFLAGS=
96
 
SHELL=${CONFIG_SHELL-/bin/sh}
97
 
# Maximum number of lines to put in a shell here document.
98
 
ac_max_here_lines=12
 
779
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
780
infodir='${datarootdir}/info'
 
781
htmldir='${docdir}'
 
782
dvidir='${docdir}'
 
783
pdfdir='${docdir}'
 
784
psdir='${docdir}'
 
785
libdir='${exec_prefix}/lib'
 
786
localedir='${datarootdir}/locale'
 
787
mandir='${datarootdir}/man'
99
788
 
100
789
ac_prev=
 
790
ac_dashdash=
101
791
for ac_option
102
792
do
103
 
 
104
793
  # If the previous option needs an argument, assign it.
105
794
  if test -n "$ac_prev"; then
106
 
    eval "$ac_prev=\$ac_option"
 
795
    eval $ac_prev=\$ac_option
107
796
    ac_prev=
108
797
    continue
109
798
  fi
110
799
 
111
 
  case "$ac_option" in
112
 
  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113
 
  *) ac_optarg= ;;
 
800
  case $ac_option in
 
801
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
802
  *)    ac_optarg=yes ;;
114
803
  esac
115
804
 
116
805
  # Accept the important Cygnus configure options, so we can diagnose typos.
117
806
 
118
 
  case "$ac_option" in
 
807
  case $ac_dashdash$ac_option in
 
808
  --)
 
809
    ac_dashdash=yes ;;
119
810
 
120
811
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
121
812
    ac_prev=bindir ;;
122
813
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
123
 
    bindir="$ac_optarg" ;;
 
814
    bindir=$ac_optarg ;;
124
815
 
125
816
  -build | --build | --buil | --bui | --bu)
126
 
    ac_prev=build ;;
 
817
    ac_prev=build_alias ;;
127
818
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
128
 
    build="$ac_optarg" ;;
 
819
    build_alias=$ac_optarg ;;
129
820
 
130
821
  -cache-file | --cache-file | --cache-fil | --cache-fi \
131
822
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
132
823
    ac_prev=cache_file ;;
133
824
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
134
825
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
135
 
    cache_file="$ac_optarg" ;;
136
 
 
137
 
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
 
826
    cache_file=$ac_optarg ;;
 
827
 
 
828
  --config-cache | -C)
 
829
    cache_file=config.cache ;;
 
830
 
 
831
  -datadir | --datadir | --datadi | --datad)
138
832
    ac_prev=datadir ;;
139
 
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
140
 
  | --da=*)
141
 
    datadir="$ac_optarg" ;;
 
833
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
834
    datadir=$ac_optarg ;;
 
835
 
 
836
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
837
  | --dataroo | --dataro | --datar)
 
838
    ac_prev=datarootdir ;;
 
839
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
840
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
841
    datarootdir=$ac_optarg ;;
142
842
 
143
843
  -disable-* | --disable-*)
144
 
    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
 
844
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
145
845
    # Reject names that are not valid shell variable names.
146
 
    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
147
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
148
 
    fi
149
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
150
 
    eval "enable_${ac_feature}=no" ;;
 
846
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
847
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
848
   { (exit 1); exit 1; }; }
 
849
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
850
    eval enable_$ac_feature=no ;;
 
851
 
 
852
  -docdir | --docdir | --docdi | --doc | --do)
 
853
    ac_prev=docdir ;;
 
854
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
855
    docdir=$ac_optarg ;;
 
856
 
 
857
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
858
    ac_prev=dvidir ;;
 
859
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
860
    dvidir=$ac_optarg ;;
151
861
 
152
862
  -enable-* | --enable-*)
153
 
    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
 
863
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
154
864
    # Reject names that are not valid shell variable names.
155
 
    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
156
 
      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
157
 
    fi
158
 
    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159
 
    case "$ac_option" in
160
 
      *=*) ;;
161
 
      *) ac_optarg=yes ;;
162
 
    esac
163
 
    eval "enable_${ac_feature}='$ac_optarg'" ;;
 
865
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
866
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
867
   { (exit 1); exit 1; }; }
 
868
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
869
    eval enable_$ac_feature=\$ac_optarg ;;
164
870
 
165
871
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
166
872
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
169
875
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
170
876
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
171
877
  | --exec=* | --exe=* | --ex=*)
172
 
    exec_prefix="$ac_optarg" ;;
 
878
    exec_prefix=$ac_optarg ;;
173
879
 
174
880
  -gas | --gas | --ga | --g)
175
881
    # Obsolete; use --with-gas.
176
882
    with_gas=yes ;;
177
883
 
178
 
  -help | --help | --hel | --he)
179
 
    # Omit some internal or obsolete options to make the list less imposing.
180
 
    # This message is too long to be a string in the A/UX 3.1 sh.
181
 
    cat << EOF
182
 
Usage: configure [options] [host]
183
 
Options: [defaults in brackets after descriptions]
184
 
Configuration:
185
 
  --cache-file=FILE       cache test results in FILE
186
 
  --help                  print this message
187
 
  --no-create             do not create output files
188
 
  --quiet, --silent       do not print \`checking...' messages
189
 
  --version               print the version of autoconf that created configure
190
 
Directory and file names:
191
 
  --prefix=PREFIX         install architecture-independent files in PREFIX
192
 
                          [$ac_default_prefix]
193
 
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
194
 
                          [same as prefix]
195
 
  --bindir=DIR            user executables in DIR [EPREFIX/bin]
196
 
  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
197
 
  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
198
 
  --datadir=DIR           read-only architecture-independent data in DIR
199
 
                          [PREFIX/share]
200
 
  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
201
 
  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
202
 
                          [PREFIX/com]
203
 
  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
204
 
  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
205
 
  --includedir=DIR        C header files in DIR [PREFIX/include]
206
 
  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
207
 
  --infodir=DIR           info documentation in DIR [PREFIX/info]
208
 
  --mandir=DIR            man documentation in DIR [PREFIX/man]
209
 
  --srcdir=DIR            find the sources in DIR [configure dir or ..]
210
 
  --program-prefix=PREFIX prepend PREFIX to installed program names
211
 
  --program-suffix=SUFFIX append SUFFIX to installed program names
212
 
  --program-transform-name=PROGRAM
213
 
                          run sed PROGRAM on installed program names
214
 
EOF
215
 
    cat << EOF
216
 
Host type:
217
 
  --build=BUILD           configure for building on BUILD [BUILD=HOST]
218
 
  --host=HOST             configure for HOST [guessed]
219
 
  --target=TARGET         configure for TARGET [TARGET=HOST]
220
 
Features and packages:
221
 
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
222
 
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
223
 
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
224
 
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
225
 
  --x-includes=DIR        X include files are in DIR
226
 
  --x-libraries=DIR       X library files are in DIR
227
 
EOF
228
 
    if test -n "$ac_help"; then
229
 
      echo "--enable and --with options recognized:$ac_help"
230
 
    fi
231
 
    exit 0 ;;
 
884
  -help | --help | --hel | --he | -h)
 
885
    ac_init_help=long ;;
 
886
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
887
    ac_init_help=recursive ;;
 
888
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
889
    ac_init_help=short ;;
232
890
 
233
891
  -host | --host | --hos | --ho)
234
 
    ac_prev=host ;;
 
892
    ac_prev=host_alias ;;
235
893
  -host=* | --host=* | --hos=* | --ho=*)
236
 
    host="$ac_optarg" ;;
 
894
    host_alias=$ac_optarg ;;
 
895
 
 
896
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
897
    ac_prev=htmldir ;;
 
898
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
899
  | --ht=*)
 
900
    htmldir=$ac_optarg ;;
237
901
 
238
902
  -includedir | --includedir | --includedi | --included | --include \
239
903
  | --includ | --inclu | --incl | --inc)
240
904
    ac_prev=includedir ;;
241
905
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
242
906
  | --includ=* | --inclu=* | --incl=* | --inc=*)
243
 
    includedir="$ac_optarg" ;;
 
907
    includedir=$ac_optarg ;;
244
908
 
245
909
  -infodir | --infodir | --infodi | --infod | --info | --inf)
246
910
    ac_prev=infodir ;;
247
911
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
248
 
    infodir="$ac_optarg" ;;
 
912
    infodir=$ac_optarg ;;
249
913
 
250
914
  -libdir | --libdir | --libdi | --libd)
251
915
    ac_prev=libdir ;;
252
916
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
253
 
    libdir="$ac_optarg" ;;
 
917
    libdir=$ac_optarg ;;
254
918
 
255
919
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
256
920
  | --libexe | --libex | --libe)
257
921
    ac_prev=libexecdir ;;
258
922
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
259
923
  | --libexe=* | --libex=* | --libe=*)
260
 
    libexecdir="$ac_optarg" ;;
 
924
    libexecdir=$ac_optarg ;;
 
925
 
 
926
  -localedir | --localedir | --localedi | --localed | --locale)
 
927
    ac_prev=localedir ;;
 
928
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
929
    localedir=$ac_optarg ;;
261
930
 
262
931
  -localstatedir | --localstatedir | --localstatedi | --localstated \
263
 
  | --localstate | --localstat | --localsta | --localst \
264
 
  | --locals | --local | --loca | --loc | --lo)
 
932
  | --localstate | --localstat | --localsta | --localst | --locals)
265
933
    ac_prev=localstatedir ;;
266
934
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
267
 
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
268
 
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
269
 
    localstatedir="$ac_optarg" ;;
 
935
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
936
    localstatedir=$ac_optarg ;;
270
937
 
271
938
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
272
939
    ac_prev=mandir ;;
273
940
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
274
 
    mandir="$ac_optarg" ;;
 
941
    mandir=$ac_optarg ;;
275
942
 
276
943
  -nfp | --nfp | --nf)
277
944
    # Obsolete; use --without-fp.
278
945
    with_fp=no ;;
279
946
 
280
947
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
281
 
  | --no-cr | --no-c)
 
948
  | --no-cr | --no-c | -n)
282
949
    no_create=yes ;;
283
950
 
284
951
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
292
959
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
293
960
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
294
961
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
295
 
    oldincludedir="$ac_optarg" ;;
 
962
    oldincludedir=$ac_optarg ;;
296
963
 
297
964
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
298
965
    ac_prev=prefix ;;
299
966
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
300
 
    prefix="$ac_optarg" ;;
 
967
    prefix=$ac_optarg ;;
301
968
 
302
969
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
303
970
  | --program-pre | --program-pr | --program-p)
304
971
    ac_prev=program_prefix ;;
305
972
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
306
973
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
307
 
    program_prefix="$ac_optarg" ;;
 
974
    program_prefix=$ac_optarg ;;
308
975
 
309
976
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
310
977
  | --program-suf | --program-su | --program-s)
311
978
    ac_prev=program_suffix ;;
312
979
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
313
980
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
314
 
    program_suffix="$ac_optarg" ;;
 
981
    program_suffix=$ac_optarg ;;
315
982
 
316
983
  -program-transform-name | --program-transform-name \
317
984
  | --program-transform-nam | --program-transform-na \
328
995
  | --program-transfo=* | --program-transf=* \
329
996
  | --program-trans=* | --program-tran=* \
330
997
  | --progr-tra=* | --program-tr=* | --program-t=*)
331
 
    program_transform_name="$ac_optarg" ;;
 
998
    program_transform_name=$ac_optarg ;;
 
999
 
 
1000
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
1001
    ac_prev=pdfdir ;;
 
1002
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
1003
    pdfdir=$ac_optarg ;;
 
1004
 
 
1005
  -psdir | --psdir | --psdi | --psd | --ps)
 
1006
    ac_prev=psdir ;;
 
1007
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
1008
    psdir=$ac_optarg ;;
332
1009
 
333
1010
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
334
1011
  | -silent | --silent | --silen | --sile | --sil)
338
1015
    ac_prev=sbindir ;;
339
1016
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
340
1017
  | --sbi=* | --sb=*)
341
 
    sbindir="$ac_optarg" ;;
 
1018
    sbindir=$ac_optarg ;;
342
1019
 
343
1020
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
344
1021
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
349
1026
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
350
1027
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
351
1028
  | --sha=* | --sh=*)
352
 
    sharedstatedir="$ac_optarg" ;;
 
1029
    sharedstatedir=$ac_optarg ;;
353
1030
 
354
1031
  -site | --site | --sit)
355
1032
    ac_prev=site ;;
356
1033
  -site=* | --site=* | --sit=*)
357
 
    site="$ac_optarg" ;;
 
1034
    site=$ac_optarg ;;
358
1035
 
359
1036
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
360
1037
    ac_prev=srcdir ;;
361
1038
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
362
 
    srcdir="$ac_optarg" ;;
 
1039
    srcdir=$ac_optarg ;;
363
1040
 
364
1041
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
365
1042
  | --syscon | --sysco | --sysc | --sys | --sy)
366
1043
    ac_prev=sysconfdir ;;
367
1044
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
368
1045
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
369
 
    sysconfdir="$ac_optarg" ;;
 
1046
    sysconfdir=$ac_optarg ;;
370
1047
 
371
1048
  -target | --target | --targe | --targ | --tar | --ta | --t)
372
 
    ac_prev=target ;;
 
1049
    ac_prev=target_alias ;;
373
1050
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
374
 
    target="$ac_optarg" ;;
 
1051
    target_alias=$ac_optarg ;;
375
1052
 
376
1053
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
377
1054
    verbose=yes ;;
378
1055
 
379
 
  -version | --version | --versio | --versi | --vers)
380
 
    echo "configure generated by autoconf version 2.13"
381
 
    exit 0 ;;
 
1056
  -version | --version | --versio | --versi | --vers | -V)
 
1057
    ac_init_version=: ;;
382
1058
 
383
1059
  -with-* | --with-*)
384
 
    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
 
1060
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
385
1061
    # Reject names that are not valid shell variable names.
386
 
    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
387
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388
 
    fi
389
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
390
 
    case "$ac_option" in
391
 
      *=*) ;;
392
 
      *) ac_optarg=yes ;;
393
 
    esac
394
 
    eval "with_${ac_package}='$ac_optarg'" ;;
 
1062
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1063
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1064
   { (exit 1); exit 1; }; }
 
1065
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1066
    eval with_$ac_package=\$ac_optarg ;;
395
1067
 
396
1068
  -without-* | --without-*)
397
 
    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
 
1069
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
398
1070
    # Reject names that are not valid shell variable names.
399
 
    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
400
 
      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
401
 
    fi
402
 
    ac_package=`echo $ac_package| sed 's/-/_/g'`
403
 
    eval "with_${ac_package}=no" ;;
 
1071
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1072
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1073
   { (exit 1); exit 1; }; }
 
1074
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1075
    eval with_$ac_package=no ;;
404
1076
 
405
1077
  --x)
406
1078
    # Obsolete; use --with-x.
411
1083
    ac_prev=x_includes ;;
412
1084
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
413
1085
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
414
 
    x_includes="$ac_optarg" ;;
 
1086
    x_includes=$ac_optarg ;;
415
1087
 
416
1088
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
417
1089
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
418
1090
    ac_prev=x_libraries ;;
419
1091
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
420
1092
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
421
 
    x_libraries="$ac_optarg" ;;
 
1093
    x_libraries=$ac_optarg ;;
422
1094
 
423
 
  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
 
1095
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1096
Try \`$0 --help' for more information." >&2
 
1097
   { (exit 1); exit 1; }; }
424
1098
    ;;
425
1099
 
 
1100
  *=*)
 
1101
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1102
    # Reject names that are not valid shell variable names.
 
1103
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1104
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1105
   { (exit 1); exit 1; }; }
 
1106
    eval $ac_envvar=\$ac_optarg
 
1107
    export $ac_envvar ;;
 
1108
 
426
1109
  *)
427
 
    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
428
 
      echo "configure: warning: $ac_option: invalid host type" 1>&2
429
 
    fi
430
 
    if test "x$nonopt" != xNONE; then
431
 
      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
432
 
    fi
433
 
    nonopt="$ac_option"
 
1110
    # FIXME: should be removed in autoconf 3.0.
 
1111
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1112
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1113
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1114
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
434
1115
    ;;
435
1116
 
436
1117
  esac
437
1118
done
438
1119
 
439
1120
if test -n "$ac_prev"; then
440
 
  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
441
 
fi
442
 
 
443
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
444
 
 
445
 
# File descriptor usage:
446
 
# 0 standard input
447
 
# 1 file creation
448
 
# 2 errors and warnings
449
 
# 3 some systems may open it to /dev/tty
450
 
# 4 used on the Kubota Titan
451
 
# 6 checking for... messages and results
452
 
# 5 compiler messages saved in config.log
453
 
if test "$silent" = yes; then
454
 
  exec 6>/dev/null
455
 
else
456
 
  exec 6>&1
457
 
fi
458
 
exec 5>./config.log
459
 
 
460
 
echo "\
461
 
This file contains any messages produced by compilers while
462
 
running configure, to aid debugging if configure makes a mistake.
463
 
" 1>&5
464
 
 
465
 
# Strip out --no-create and --no-recursion so they do not pile up.
466
 
# Also quote any args containing shell metacharacters.
467
 
ac_configure_args=
468
 
for ac_arg
 
1121
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1122
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1123
   { (exit 1); exit 1; }; }
 
1124
fi
 
1125
 
 
1126
# Be sure to have absolute directory names.
 
1127
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1128
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1129
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1130
                libdir localedir mandir
469
1131
do
470
 
  case "$ac_arg" in
471
 
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
472
 
  | --no-cr | --no-c) ;;
473
 
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
474
 
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
475
 
  *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
476
 
  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
477
 
  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
 
1132
  eval ac_val=\$$ac_var
 
1133
  case $ac_val in
 
1134
    [\\/$]* | ?:[\\/]* )  continue;;
 
1135
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
478
1136
  esac
 
1137
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1138
   { (exit 1); exit 1; }; }
479
1139
done
480
1140
 
481
 
# NLS nuisances.
482
 
# Only set these to C if already set.  These must not be set unconditionally
483
 
# because not all systems understand e.g. LANG=C (notably SCO).
484
 
# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
485
 
# Non-C LC_CTYPE values break the ctype check.
486
 
if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
487
 
if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
488
 
if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
489
 
if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
490
 
 
491
 
# confdefs.h avoids OS command line length limits that DEFS can exceed.
492
 
rm -rf conftest* confdefs.h
493
 
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
494
 
echo > confdefs.h
495
 
 
496
 
# A filename unique to this package, relative to the directory that
497
 
# configure is in, which we can look for to find out if srcdir is correct.
498
 
ac_unique_file=src/mm3dcore/version.h 
 
1141
# There might be people who depend on the old broken behavior: `$host'
 
1142
# used to hold the argument of --host etc.
 
1143
# FIXME: To remove some day.
 
1144
build=$build_alias
 
1145
host=$host_alias
 
1146
target=$target_alias
 
1147
 
 
1148
# FIXME: To remove some day.
 
1149
if test "x$host_alias" != x; then
 
1150
  if test "x$build_alias" = x; then
 
1151
    cross_compiling=maybe
 
1152
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1153
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1154
  elif test "x$build_alias" != "x$host_alias"; then
 
1155
    cross_compiling=yes
 
1156
  fi
 
1157
fi
 
1158
 
 
1159
ac_tool_prefix=
 
1160
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1161
 
 
1162
test "$silent" = yes && exec 6>/dev/null
 
1163
 
 
1164
 
 
1165
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1166
ac_ls_di=`ls -di .` &&
 
1167
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1168
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1169
   { (exit 1); exit 1; }; }
 
1170
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1171
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1172
   { (exit 1); exit 1; }; }
 
1173
 
499
1174
 
500
1175
# Find the source files, if location was not specified.
501
1176
if test -z "$srcdir"; then
502
1177
  ac_srcdir_defaulted=yes
503
 
  # Try the directory containing this script, then its parent.
504
 
  ac_prog=$0
505
 
  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
506
 
  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
 
1178
  # Try the directory containing this script, then the parent directory.
 
1179
  ac_confdir=`$as_dirname -- "$0" ||
 
1180
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1181
         X"$0" : 'X\(//\)[^/]' \| \
 
1182
         X"$0" : 'X\(//\)$' \| \
 
1183
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1184
echo X"$0" |
 
1185
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1186
            s//\1/
 
1187
            q
 
1188
          }
 
1189
          /^X\(\/\/\)[^/].*/{
 
1190
            s//\1/
 
1191
            q
 
1192
          }
 
1193
          /^X\(\/\/\)$/{
 
1194
            s//\1/
 
1195
            q
 
1196
          }
 
1197
          /^X\(\/\).*/{
 
1198
            s//\1/
 
1199
            q
 
1200
          }
 
1201
          s/.*/./; q'`
507
1202
  srcdir=$ac_confdir
508
 
  if test ! -r $srcdir/$ac_unique_file; then
 
1203
  if test ! -r "$srcdir/$ac_unique_file"; then
509
1204
    srcdir=..
510
1205
  fi
511
1206
else
512
1207
  ac_srcdir_defaulted=no
513
1208
fi
514
 
if test ! -r $srcdir/$ac_unique_file; then
515
 
  if test "$ac_srcdir_defaulted" = yes; then
516
 
    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
517
 
  else
518
 
    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
519
 
  fi
520
 
fi
521
 
srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
522
 
 
 
1209
if test ! -r "$srcdir/$ac_unique_file"; then
 
1210
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1211
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1212
   { (exit 1); exit 1; }; }
 
1213
fi
 
1214
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1215
ac_abs_confdir=`(
 
1216
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1217
   { (exit 1); exit 1; }; }
 
1218
        pwd)`
 
1219
# When building in place, set srcdir=.
 
1220
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1221
  srcdir=.
 
1222
fi
 
1223
# Remove unnecessary trailing slashes from srcdir.
 
1224
# Double slashes in file names in object file debugging info
 
1225
# mess up M-x gdb in Emacs.
 
1226
case $srcdir in
 
1227
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1228
esac
 
1229
for ac_var in $ac_precious_vars; do
 
1230
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1231
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1232
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1233
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1234
done
 
1235
 
 
1236
#
 
1237
# Report the --help message.
 
1238
#
 
1239
if test "$ac_init_help" = "long"; then
 
1240
  # Omit some internal or obsolete options to make the list less imposing.
 
1241
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1242
  cat <<_ACEOF
 
1243
\`configure' configures mm3d 1.3.6 to adapt to many kinds of systems.
 
1244
 
 
1245
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1246
 
 
1247
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1248
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1249
 
 
1250
Defaults for the options are specified in brackets.
 
1251
 
 
1252
Configuration:
 
1253
  -h, --help              display this help and exit
 
1254
      --help=short        display options specific to this package
 
1255
      --help=recursive    display the short help of all the included packages
 
1256
  -V, --version           display version information and exit
 
1257
  -q, --quiet, --silent   do not print \`checking...' messages
 
1258
      --cache-file=FILE   cache test results in FILE [disabled]
 
1259
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1260
  -n, --no-create         do not create output files
 
1261
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1262
 
 
1263
Installation directories:
 
1264
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1265
                          [$ac_default_prefix]
 
1266
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1267
                          [PREFIX]
 
1268
 
 
1269
By default, \`make install' will install all the files in
 
1270
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1271
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1272
for instance \`--prefix=\$HOME'.
 
1273
 
 
1274
For better control, use the options below.
 
1275
 
 
1276
Fine tuning of the installation directories:
 
1277
  --bindir=DIR           user executables [EPREFIX/bin]
 
1278
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1279
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1280
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1281
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1282
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1283
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1284
  --includedir=DIR       C header files [PREFIX/include]
 
1285
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1286
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1287
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1288
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1289
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1290
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1291
  --docdir=DIR           documentation root [DATAROOTDIR/doc/mm3d]
 
1292
  --htmldir=DIR          html documentation [DOCDIR]
 
1293
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1294
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1295
  --psdir=DIR            ps documentation [DOCDIR]
 
1296
_ACEOF
 
1297
 
 
1298
  cat <<\_ACEOF
 
1299
 
 
1300
Program names:
 
1301
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1302
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1303
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1304
 
 
1305
X features:
 
1306
  --x-includes=DIR    X include files are in DIR
 
1307
  --x-libraries=DIR   X library files are in DIR
 
1308
_ACEOF
 
1309
fi
 
1310
 
 
1311
if test -n "$ac_init_help"; then
 
1312
  case $ac_init_help in
 
1313
     short | recursive ) echo "Configuration of mm3d 1.3.6:";;
 
1314
   esac
 
1315
  cat <<\_ACEOF
 
1316
 
 
1317
Optional Features:
 
1318
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1319
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1320
  --disable-dependency-tracking  speeds up one-time build
 
1321
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1322
  --enable-debug=yes/no       Specify "yes" to enable a debug build.
 
1323
$with_Mesa_help_string
 
1324
 
 
1325
Optional Packages:
 
1326
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1327
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1328
  --with-lua-dir=DIR       DIR is equal to the install prefix of Lua.
 
1329
                          Header files are in DIR/include, and Library
 
1330
                          files are in DIR/lib
 
1331
  --with-lua-include-dir=DIR
 
1332
                          Lua header files are in DIR
 
1333
  --with-lua-lib-dir=DIR   Lua libraries are in DIR
 
1334
  --with-lua-lib=LIB       Use -lLIB to link with the lua library
 
1335
  --with-lualib-dir=DIR       DIR is equal to the install prefix of Lualib.
 
1336
                          Header files are in DIR/include, and Library
 
1337
                          files are in DIR/lib
 
1338
  --with-lualib-include-dir=DIR
 
1339
                          Lua header files are in DIR
 
1340
  --with-lualib-lib-dir=DIR   Lua libraries are in DIR
 
1341
  --with-lualib-lib=LIB       Use -lLIB to link with the lualib library
 
1342
  --with-x                use the X Window System
 
1343
Prefer the Mesa library over a vendors native OpenGL library (default=yes)
 
1344
  --with-Qt-dir=DIR       DIR is equal to \$QTDIR if you have followed the
 
1345
                          installation instructions of Trolltech. Header
 
1346
                          files are in DIR/include, binary utilities are
 
1347
                          in DIR/bin and the library is in DIR/lib
 
1348
  --with-Qt-include-dir=DIR
 
1349
                          Qt header files are in DIR
 
1350
  --with-Qt-bin-dir=DIR   Qt utilities such as moc and uic are in DIR
 
1351
  --with-Qt-lib-dir=DIR   The Qt library is in DIR
 
1352
  --with-Qt-lib=LIB       Use -lLIB to link with the Qt library
 
1353
 
 
1354
Some influential environment variables:
 
1355
  CXX         C++ compiler command
 
1356
  CXXFLAGS    C++ compiler flags
 
1357
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1358
              nonstandard directory <lib dir>
 
1359
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1360
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1361
              you have headers in a nonstandard directory <include dir>
 
1362
  CC          C compiler command
 
1363
  CFLAGS      C compiler flags
 
1364
  CPP         C preprocessor
 
1365
  XMKMF       Path to xmkmf, Makefile generator for X Window System
 
1366
 
 
1367
Use these variables to override the choices made by `configure' or to help
 
1368
it to find libraries and programs with nonstandard names/locations.
 
1369
 
 
1370
Report bugs to <kevin@misfitcode.com>.
 
1371
_ACEOF
 
1372
ac_status=$?
 
1373
fi
 
1374
 
 
1375
if test "$ac_init_help" = "recursive"; then
 
1376
  # If there are subdirs, report their specific --help.
 
1377
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1378
    test -d "$ac_dir" || continue
 
1379
    ac_builddir=.
 
1380
 
 
1381
case "$ac_dir" in
 
1382
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1383
*)
 
1384
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1385
  # A ".." for each directory in $ac_dir_suffix.
 
1386
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1387
  case $ac_top_builddir_sub in
 
1388
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1389
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1390
  esac ;;
 
1391
esac
 
1392
ac_abs_top_builddir=$ac_pwd
 
1393
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1394
# for backward compatibility:
 
1395
ac_top_builddir=$ac_top_build_prefix
 
1396
 
 
1397
case $srcdir in
 
1398
  .)  # We are building in place.
 
1399
    ac_srcdir=.
 
1400
    ac_top_srcdir=$ac_top_builddir_sub
 
1401
    ac_abs_top_srcdir=$ac_pwd ;;
 
1402
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1403
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1404
    ac_top_srcdir=$srcdir
 
1405
    ac_abs_top_srcdir=$srcdir ;;
 
1406
  *) # Relative name.
 
1407
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1408
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1409
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1410
esac
 
1411
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1412
 
 
1413
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1414
    # Check for guested configure.
 
1415
    if test -f "$ac_srcdir/configure.gnu"; then
 
1416
      echo &&
 
1417
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1418
    elif test -f "$ac_srcdir/configure"; then
 
1419
      echo &&
 
1420
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1421
    else
 
1422
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1423
    fi || ac_status=$?
 
1424
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1425
  done
 
1426
fi
 
1427
 
 
1428
test -n "$ac_init_help" && exit $ac_status
 
1429
if $ac_init_version; then
 
1430
  cat <<\_ACEOF
 
1431
mm3d configure 1.3.6
 
1432
generated by GNU Autoconf 2.61
 
1433
 
 
1434
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1435
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1436
This configure script is free software; the Free Software Foundation
 
1437
gives unlimited permission to copy, distribute and modify it.
 
1438
_ACEOF
 
1439
  exit
 
1440
fi
 
1441
cat >config.log <<_ACEOF
 
1442
This file contains any messages produced by compilers while
 
1443
running configure, to aid debugging if configure makes a mistake.
 
1444
 
 
1445
It was created by mm3d $as_me 1.3.6, which was
 
1446
generated by GNU Autoconf 2.61.  Invocation command line was
 
1447
 
 
1448
  $ $0 $@
 
1449
 
 
1450
_ACEOF
 
1451
exec 5>>config.log
 
1452
{
 
1453
cat <<_ASUNAME
 
1454
## --------- ##
 
1455
## Platform. ##
 
1456
## --------- ##
 
1457
 
 
1458
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1459
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1460
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1461
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1462
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1463
 
 
1464
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1465
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1466
 
 
1467
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1468
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1469
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1470
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1471
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1472
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1473
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1474
 
 
1475
_ASUNAME
 
1476
 
 
1477
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1478
for as_dir in $PATH
 
1479
do
 
1480
  IFS=$as_save_IFS
 
1481
  test -z "$as_dir" && as_dir=.
 
1482
  echo "PATH: $as_dir"
 
1483
done
 
1484
IFS=$as_save_IFS
 
1485
 
 
1486
} >&5
 
1487
 
 
1488
cat >&5 <<_ACEOF
 
1489
 
 
1490
 
 
1491
## ----------- ##
 
1492
## Core tests. ##
 
1493
## ----------- ##
 
1494
 
 
1495
_ACEOF
 
1496
 
 
1497
 
 
1498
# Keep a trace of the command line.
 
1499
# Strip out --no-create and --no-recursion so they do not pile up.
 
1500
# Strip out --silent because we don't want to record it for future runs.
 
1501
# Also quote any args containing shell meta-characters.
 
1502
# Make two passes to allow for proper duplicate-argument suppression.
 
1503
ac_configure_args=
 
1504
ac_configure_args0=
 
1505
ac_configure_args1=
 
1506
ac_must_keep_next=false
 
1507
for ac_pass in 1 2
 
1508
do
 
1509
  for ac_arg
 
1510
  do
 
1511
    case $ac_arg in
 
1512
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1513
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1514
    | -silent | --silent | --silen | --sile | --sil)
 
1515
      continue ;;
 
1516
    *\'*)
 
1517
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1518
    esac
 
1519
    case $ac_pass in
 
1520
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1521
    2)
 
1522
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1523
      if test $ac_must_keep_next = true; then
 
1524
        ac_must_keep_next=false # Got value, back to normal.
 
1525
      else
 
1526
        case $ac_arg in
 
1527
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1528
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1529
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1530
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1531
            case "$ac_configure_args0 " in
 
1532
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1533
            esac
 
1534
            ;;
 
1535
          -* ) ac_must_keep_next=true ;;
 
1536
        esac
 
1537
      fi
 
1538
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1539
      ;;
 
1540
    esac
 
1541
  done
 
1542
done
 
1543
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1544
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1545
 
 
1546
# When interrupted or exit'd, cleanup temporary files, and complete
 
1547
# config.log.  We remove comments because anyway the quotes in there
 
1548
# would cause problems or look ugly.
 
1549
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1550
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1551
trap 'exit_status=$?
 
1552
  # Save into config.log some information that might help in debugging.
 
1553
  {
 
1554
    echo
 
1555
 
 
1556
    cat <<\_ASBOX
 
1557
## ---------------- ##
 
1558
## Cache variables. ##
 
1559
## ---------------- ##
 
1560
_ASBOX
 
1561
    echo
 
1562
    # The following way of writing the cache mishandles newlines in values,
 
1563
(
 
1564
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1565
    eval ac_val=\$$ac_var
 
1566
    case $ac_val in #(
 
1567
    *${as_nl}*)
 
1568
      case $ac_var in #(
 
1569
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1570
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1571
      esac
 
1572
      case $ac_var in #(
 
1573
      _ | IFS | as_nl) ;; #(
 
1574
      *) $as_unset $ac_var ;;
 
1575
      esac ;;
 
1576
    esac
 
1577
  done
 
1578
  (set) 2>&1 |
 
1579
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1580
    *${as_nl}ac_space=\ *)
 
1581
      sed -n \
 
1582
        "s/'\''/'\''\\\\'\'''\''/g;
 
1583
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1584
      ;; #(
 
1585
    *)
 
1586
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1587
      ;;
 
1588
    esac |
 
1589
    sort
 
1590
)
 
1591
    echo
 
1592
 
 
1593
    cat <<\_ASBOX
 
1594
## ----------------- ##
 
1595
## Output variables. ##
 
1596
## ----------------- ##
 
1597
_ASBOX
 
1598
    echo
 
1599
    for ac_var in $ac_subst_vars
 
1600
    do
 
1601
      eval ac_val=\$$ac_var
 
1602
      case $ac_val in
 
1603
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1604
      esac
 
1605
      echo "$ac_var='\''$ac_val'\''"
 
1606
    done | sort
 
1607
    echo
 
1608
 
 
1609
    if test -n "$ac_subst_files"; then
 
1610
      cat <<\_ASBOX
 
1611
## ------------------- ##
 
1612
## File substitutions. ##
 
1613
## ------------------- ##
 
1614
_ASBOX
 
1615
      echo
 
1616
      for ac_var in $ac_subst_files
 
1617
      do
 
1618
        eval ac_val=\$$ac_var
 
1619
        case $ac_val in
 
1620
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1621
        esac
 
1622
        echo "$ac_var='\''$ac_val'\''"
 
1623
      done | sort
 
1624
      echo
 
1625
    fi
 
1626
 
 
1627
    if test -s confdefs.h; then
 
1628
      cat <<\_ASBOX
 
1629
## ----------- ##
 
1630
## confdefs.h. ##
 
1631
## ----------- ##
 
1632
_ASBOX
 
1633
      echo
 
1634
      cat confdefs.h
 
1635
      echo
 
1636
    fi
 
1637
    test "$ac_signal" != 0 &&
 
1638
      echo "$as_me: caught signal $ac_signal"
 
1639
    echo "$as_me: exit $exit_status"
 
1640
  } >&5
 
1641
  rm -f core *.core core.conftest.* &&
 
1642
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1643
    exit $exit_status
 
1644
' 0
 
1645
for ac_signal in 1 2 13 15; do
 
1646
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1647
done
 
1648
ac_signal=0
 
1649
 
 
1650
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1651
rm -f -r conftest* confdefs.h
 
1652
 
 
1653
# Predefined preprocessor variables.
 
1654
 
 
1655
cat >>confdefs.h <<_ACEOF
 
1656
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1657
_ACEOF
 
1658
 
 
1659
 
 
1660
cat >>confdefs.h <<_ACEOF
 
1661
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1662
_ACEOF
 
1663
 
 
1664
 
 
1665
cat >>confdefs.h <<_ACEOF
 
1666
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1667
_ACEOF
 
1668
 
 
1669
 
 
1670
cat >>confdefs.h <<_ACEOF
 
1671
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1672
_ACEOF
 
1673
 
 
1674
 
 
1675
cat >>confdefs.h <<_ACEOF
 
1676
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1677
_ACEOF
 
1678
 
 
1679
 
 
1680
# Let the site file select an alternate cache file if it wants to.
523
1681
# Prefer explicitly selected file to automatically selected ones.
524
 
if test -z "$CONFIG_SITE"; then
525
 
  if test "x$prefix" != xNONE; then
526
 
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
527
 
  else
528
 
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
529
 
  fi
 
1682
if test -n "$CONFIG_SITE"; then
 
1683
  set x "$CONFIG_SITE"
 
1684
elif test "x$prefix" != xNONE; then
 
1685
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1686
else
 
1687
  set x "$ac_default_prefix/share/config.site" \
 
1688
        "$ac_default_prefix/etc/config.site"
530
1689
fi
531
 
for ac_site_file in $CONFIG_SITE; do
 
1690
shift
 
1691
for ac_site_file
 
1692
do
532
1693
  if test -r "$ac_site_file"; then
533
 
    echo "loading site script $ac_site_file"
 
1694
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1695
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1696
    sed 's/^/| /' "$ac_site_file" >&5
534
1697
    . "$ac_site_file"
535
1698
  fi
536
1699
done
537
1700
 
538
1701
if test -r "$cache_file"; then
539
 
  echo "loading cache $cache_file"
540
 
  . $cache_file
 
1702
  # Some versions of bash will fail to source /dev/null (special
 
1703
  # files actually), so we avoid doing that.
 
1704
  if test -f "$cache_file"; then
 
1705
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1706
echo "$as_me: loading cache $cache_file" >&6;}
 
1707
    case $cache_file in
 
1708
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1709
      *)                      . "./$cache_file";;
 
1710
    esac
 
1711
  fi
541
1712
else
542
 
  echo "creating cache $cache_file"
543
 
  > $cache_file
544
 
fi
 
1713
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1714
echo "$as_me: creating cache $cache_file" >&6;}
 
1715
  >$cache_file
 
1716
fi
 
1717
 
 
1718
# Check that the precious variables saved in the cache have kept the same
 
1719
# value.
 
1720
ac_cache_corrupted=false
 
1721
for ac_var in $ac_precious_vars; do
 
1722
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1723
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1724
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1725
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1726
  case $ac_old_set,$ac_new_set in
 
1727
    set,)
 
1728
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1729
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1730
      ac_cache_corrupted=: ;;
 
1731
    ,set)
 
1732
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1733
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1734
      ac_cache_corrupted=: ;;
 
1735
    ,);;
 
1736
    *)
 
1737
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1738
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1739
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1740
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1741
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1742
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1743
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1744
        ac_cache_corrupted=:
 
1745
      fi;;
 
1746
  esac
 
1747
  # Pass precious variables to config.status.
 
1748
  if test "$ac_new_set" = set; then
 
1749
    case $ac_new_val in
 
1750
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1751
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1752
    esac
 
1753
    case " $ac_configure_args " in
 
1754
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1755
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1756
    esac
 
1757
  fi
 
1758
done
 
1759
if $ac_cache_corrupted; then
 
1760
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1761
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1762
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1763
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1764
   { (exit 1); exit 1; }; }
 
1765
fi
 
1766
 
 
1767
 
 
1768
 
 
1769
 
 
1770
 
 
1771
 
 
1772
 
 
1773
 
 
1774
 
 
1775
 
 
1776
 
 
1777
 
 
1778
 
 
1779
 
 
1780
 
 
1781
 
 
1782
 
 
1783
 
 
1784
 
 
1785
 
 
1786
 
 
1787
 
 
1788
 
 
1789
 
545
1790
 
546
1791
ac_ext=c
547
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
548
1792
ac_cpp='$CPP $CPPFLAGS'
549
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
550
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
551
 
cross_compiling=$ac_cv_prog_cc_cross
552
 
 
553
 
ac_exeext=
554
 
ac_objext=o
555
 
if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
556
 
  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
557
 
  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
558
 
    ac_n= ac_c='
559
 
' ac_t='        '
560
 
  else
561
 
    ac_n=-n ac_c= ac_t=
562
 
  fi
563
 
else
564
 
  ac_n= ac_c='\c' ac_t=
565
 
fi
566
 
 
567
 
 
568
 
 
 
1793
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1794
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1795
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1796
 
 
1797
 
 
1798
am__api_version="1.9"
569
1799
ac_aux_dir=
570
 
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
571
 
  if test -f $ac_dir/install-sh; then
 
1800
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 
1801
  if test -f "$ac_dir/install-sh"; then
572
1802
    ac_aux_dir=$ac_dir
573
1803
    ac_install_sh="$ac_aux_dir/install-sh -c"
574
1804
    break
575
 
  elif test -f $ac_dir/install.sh; then
 
1805
  elif test -f "$ac_dir/install.sh"; then
576
1806
    ac_aux_dir=$ac_dir
577
1807
    ac_install_sh="$ac_aux_dir/install.sh -c"
578
1808
    break
 
1809
  elif test -f "$ac_dir/shtool"; then
 
1810
    ac_aux_dir=$ac_dir
 
1811
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1812
    break
579
1813
  fi
580
1814
done
581
1815
if test -z "$ac_aux_dir"; then
582
 
  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
 
1816
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
 
1817
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
 
1818
   { (exit 1); exit 1; }; }
583
1819
fi
584
 
ac_config_guess=$ac_aux_dir/config.guess
585
 
ac_config_sub=$ac_aux_dir/config.sub
586
 
ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
587
 
 
588
 
am__api_version="1.4"
 
1820
 
 
1821
# These three variables are undocumented and unsupported,
 
1822
# and are intended to be withdrawn in a future Autoconf release.
 
1823
# They can cause serious problems if a builder's source tree is in a directory
 
1824
# whose full name contains unusual characters.
 
1825
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1826
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1827
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1828
 
 
1829
 
589
1830
# Find a good install program.  We prefer a C program (faster),
590
1831
# so one script is as good as another.  But avoid the broken or
591
1832
# incompatible versions:
593
1834
# SunOS /usr/etc/install
594
1835
# IRIX /sbin/install
595
1836
# AIX /bin/install
 
1837
# AmigaOS /C/install, which installs bootblocks on floppy discs
596
1838
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
597
1839
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
598
1840
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1841
# OS/2's system install, which has a completely different semantic
599
1842
# ./install, which can be erroneously created by make from ./install.sh.
600
 
echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
601
 
echo "configure:602: checking for a BSD compatible install" >&5
 
1843
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1844
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
602
1845
if test -z "$INSTALL"; then
603
 
if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
604
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
1846
if test "${ac_cv_path_install+set}" = set; then
 
1847
  echo $ECHO_N "(cached) $ECHO_C" >&6
605
1848
else
606
 
    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
607
 
  for ac_dir in $PATH; do
608
 
    # Account for people who put trailing slashes in PATH elements.
609
 
    case "$ac_dir/" in
610
 
    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
611
 
    *)
612
 
      # OSF1 and SCO ODT 3.0 have their own names for install.
613
 
      # Don't use installbsd from OSF since it installs stuff as root
614
 
      # by default.
615
 
      for ac_prog in ginstall scoinst install; do
616
 
        if test -f $ac_dir/$ac_prog; then
 
1849
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1850
for as_dir in $PATH
 
1851
do
 
1852
  IFS=$as_save_IFS
 
1853
  test -z "$as_dir" && as_dir=.
 
1854
  # Account for people who put trailing slashes in PATH elements.
 
1855
case $as_dir/ in
 
1856
  ./ | .// | /cC/* | \
 
1857
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1858
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1859
  /usr/ucb/* ) ;;
 
1860
  *)
 
1861
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1862
    # Don't use installbsd from OSF since it installs stuff as root
 
1863
    # by default.
 
1864
    for ac_prog in ginstall scoinst install; do
 
1865
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1866
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
617
1867
          if test $ac_prog = install &&
618
 
            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
 
1868
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
619
1869
            # AIX install.  It has an incompatible calling convention.
620
1870
            :
 
1871
          elif test $ac_prog = install &&
 
1872
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1873
            # program-specific install script used by HP pwplus--don't use.
 
1874
            :
621
1875
          else
622
 
            ac_cv_path_install="$ac_dir/$ac_prog -c"
623
 
            break 2
 
1876
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1877
            break 3
624
1878
          fi
625
1879
        fi
626
1880
      done
627
 
      ;;
628
 
    esac
629
 
  done
630
 
  IFS="$ac_save_IFS"
 
1881
    done
 
1882
    ;;
 
1883
esac
 
1884
done
 
1885
IFS=$as_save_IFS
 
1886
 
631
1887
 
632
1888
fi
633
1889
  if test "${ac_cv_path_install+set}" = set; then
634
 
    INSTALL="$ac_cv_path_install"
 
1890
    INSTALL=$ac_cv_path_install
635
1891
  else
636
 
    # As a last resort, use the slow shell script.  We don't cache a
637
 
    # path for INSTALL within a source directory, because that will
 
1892
    # As a last resort, use the slow shell script.  Don't cache a
 
1893
    # value for INSTALL within a source directory, because that will
638
1894
    # break other packages using the cache if that directory is
639
 
    # removed, or if the path is relative.
640
 
    INSTALL="$ac_install_sh"
 
1895
    # removed, or if the value is a relative name.
 
1896
    INSTALL=$ac_install_sh
641
1897
  fi
642
1898
fi
643
 
echo "$ac_t""$INSTALL" 1>&6
 
1899
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1900
echo "${ECHO_T}$INSTALL" >&6; }
644
1901
 
645
1902
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
646
1903
# It thinks the first close brace ends the variable substitution.
647
1904
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
648
1905
 
649
 
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
 
1906
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
650
1907
 
651
1908
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
652
1909
 
653
 
echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
654
 
echo "configure:655: checking whether build environment is sane" >&5
 
1910
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1911
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
655
1912
# Just in case
656
1913
sleep 1
657
 
echo timestamp > conftestfile
 
1914
echo timestamp > conftest.file
658
1915
# Do `set' in a subshell so we don't clobber the current shell's
659
1916
# arguments.  Must try -L first in case configure is actually a
660
1917
# symlink; some systems play weird games with the mod time of symlinks
661
1918
# (eg FreeBSD returns the mod time of the symlink's containing
662
1919
# directory).
663
1920
if (
664
 
   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
 
1921
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
665
1922
   if test "$*" = "X"; then
666
1923
      # -L didn't work.
667
 
      set X `ls -t $srcdir/configure conftestfile`
 
1924
      set X `ls -t $srcdir/configure conftest.file`
668
1925
   fi
669
 
   if test "$*" != "X $srcdir/configure conftestfile" \
670
 
      && test "$*" != "X conftestfile $srcdir/configure"; then
 
1926
   rm -f conftest.file
 
1927
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1928
      && test "$*" != "X conftest.file $srcdir/configure"; then
671
1929
 
672
1930
      # If neither matched, then we have a broken ls.  This can happen
673
1931
      # if, for instance, CONFIG_SHELL is bash and it inherits a
674
1932
      # broken ls alias from the environment.  This has actually
675
1933
      # happened.  Such a system could not be considered "sane".
676
 
      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
677
 
alias in your environment" 1>&2; exit 1; }
 
1934
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1935
alias in your environment" >&5
 
1936
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1937
alias in your environment" >&2;}
 
1938
   { (exit 1); exit 1; }; }
678
1939
   fi
679
1940
 
680
 
   test "$2" = conftestfile
 
1941
   test "$2" = conftest.file
681
1942
   )
682
1943
then
683
1944
   # Ok.
684
1945
   :
685
1946
else
686
 
   { echo "configure: error: newly created file is older than distributed files!
687
 
Check your system clock" 1>&2; exit 1; }
688
 
fi
689
 
rm -f conftest*
690
 
echo "$ac_t""yes" 1>&6
691
 
if test "$program_transform_name" = s,x,x,; then
692
 
  program_transform_name=
693
 
else
694
 
  # Double any \ or $.  echo might interpret backslashes.
695
 
  cat <<\EOF_SED > conftestsed
696
 
s,\\,\\\\,g; s,\$,$$,g
697
 
EOF_SED
698
 
  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
699
 
  rm -f conftestsed
700
 
fi
 
1947
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1948
Check your system clock" >&5
 
1949
echo "$as_me: error: newly created file is older than distributed files!
 
1950
Check your system clock" >&2;}
 
1951
   { (exit 1); exit 1; }; }
 
1952
fi
 
1953
{ echo "$as_me:$LINENO: result: yes" >&5
 
1954
echo "${ECHO_T}yes" >&6; }
701
1955
test "$program_prefix" != NONE &&
702
 
  program_transform_name="s,^,${program_prefix},; $program_transform_name"
 
1956
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
703
1957
# Use a double $ so make ignores it.
704
1958
test "$program_suffix" != NONE &&
705
 
  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
706
 
 
707
 
# sed with no file args requires a program.
708
 
test "$program_transform_name" = "" && program_transform_name="s,x,x,"
709
 
 
710
 
echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
711
 
echo "configure:712: checking whether ${MAKE-make} sets \${MAKE}" >&5
712
 
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
713
 
if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
714
 
  echo $ac_n "(cached) $ac_c" 1>&6
715
 
else
716
 
  cat > conftestmake <<\EOF
 
1959
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
1960
# Double any \ or $.  echo might interpret backslashes.
 
1961
# By default was `s,x,x', remove it if useless.
 
1962
cat <<\_ACEOF >conftest.sed
 
1963
s/[\\$]/&&/g;s/;s,x,x,$//
 
1964
_ACEOF
 
1965
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1966
rm -f conftest.sed
 
1967
 
 
1968
# expand $ac_aux_dir to an absolute path
 
1969
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1970
 
 
1971
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1972
# Use eval to expand $SHELL
 
1973
if eval "$MISSING --run true"; then
 
1974
  am_missing_run="$MISSING --run "
 
1975
else
 
1976
  am_missing_run=
 
1977
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1978
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1979
fi
 
1980
 
 
1981
if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 
1982
  # We used to keeping the `.' as first argument, in order to
 
1983
  # allow $(mkdir_p) to be used without argument.  As in
 
1984
  #   $(mkdir_p) $(somedir)
 
1985
  # where $(somedir) is conditionally defined.  However this is wrong
 
1986
  # for two reasons:
 
1987
  #  1. if the package is installed by a user who cannot write `.'
 
1988
  #     make install will fail,
 
1989
  #  2. the above comment should most certainly read
 
1990
  #     $(mkdir_p) $(DESTDIR)$(somedir)
 
1991
  #     so it does not work when $(somedir) is undefined and
 
1992
  #     $(DESTDIR) is not.
 
1993
  #  To support the latter case, we have to write
 
1994
  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 
1995
  #  so the `.' trick is pointless.
 
1996
  mkdir_p='mkdir -p --'
 
1997
else
 
1998
  # On NextStep and OpenStep, the `mkdir' command does not
 
1999
  # recognize any option.  It will interpret all options as
 
2000
  # directories to create, and then abort because `.' already
 
2001
  # exists.
 
2002
  for d in ./-p ./--version;
 
2003
  do
 
2004
    test -d $d && rmdir $d
 
2005
  done
 
2006
  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 
2007
  if test -f "$ac_aux_dir/mkinstalldirs"; then
 
2008
    mkdir_p='$(mkinstalldirs)'
 
2009
  else
 
2010
    mkdir_p='$(install_sh) -d'
 
2011
  fi
 
2012
fi
 
2013
 
 
2014
for ac_prog in gawk mawk nawk awk
 
2015
do
 
2016
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2017
set dummy $ac_prog; ac_word=$2
 
2018
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2019
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2020
if test "${ac_cv_prog_AWK+set}" = set; then
 
2021
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2022
else
 
2023
  if test -n "$AWK"; then
 
2024
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2025
else
 
2026
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2027
for as_dir in $PATH
 
2028
do
 
2029
  IFS=$as_save_IFS
 
2030
  test -z "$as_dir" && as_dir=.
 
2031
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2032
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2033
    ac_cv_prog_AWK="$ac_prog"
 
2034
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2035
    break 2
 
2036
  fi
 
2037
done
 
2038
done
 
2039
IFS=$as_save_IFS
 
2040
 
 
2041
fi
 
2042
fi
 
2043
AWK=$ac_cv_prog_AWK
 
2044
if test -n "$AWK"; then
 
2045
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2046
echo "${ECHO_T}$AWK" >&6; }
 
2047
else
 
2048
  { echo "$as_me:$LINENO: result: no" >&5
 
2049
echo "${ECHO_T}no" >&6; }
 
2050
fi
 
2051
 
 
2052
 
 
2053
  test -n "$AWK" && break
 
2054
done
 
2055
 
 
2056
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2057
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2058
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2059
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2060
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2061
else
 
2062
  cat >conftest.make <<\_ACEOF
 
2063
SHELL = /bin/sh
717
2064
all:
718
 
        @echo 'ac_maketemp="${MAKE}"'
719
 
EOF
 
2065
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2066
_ACEOF
720
2067
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
721
 
eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
722
 
if test -n "$ac_maketemp"; then
723
 
  eval ac_cv_prog_make_${ac_make}_set=yes
724
 
else
725
 
  eval ac_cv_prog_make_${ac_make}_set=no
726
 
fi
727
 
rm -f conftestmake
728
 
fi
729
 
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
730
 
  echo "$ac_t""yes" 1>&6
 
2068
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2069
  *@@@%%%=?*=@@@%%%*)
 
2070
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2071
  *)
 
2072
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2073
esac
 
2074
rm -f conftest.make
 
2075
fi
 
2076
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2077
  { echo "$as_me:$LINENO: result: yes" >&5
 
2078
echo "${ECHO_T}yes" >&6; }
731
2079
  SET_MAKE=
732
2080
else
733
 
  echo "$ac_t""no" 1>&6
 
2081
  { echo "$as_me:$LINENO: result: no" >&5
 
2082
echo "${ECHO_T}no" >&6; }
734
2083
  SET_MAKE="MAKE=${MAKE-make}"
735
2084
fi
736
2085
 
737
 
 
738
 
PACKAGE=mm3d
739
 
 
740
 
VERSION=1.3.5 
741
 
 
742
 
if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
743
 
  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
744
 
fi
745
 
cat >> confdefs.h <<EOF
 
2086
rm -rf .tst 2>/dev/null
 
2087
mkdir .tst 2>/dev/null
 
2088
if test -d .tst; then
 
2089
  am__leading_dot=.
 
2090
else
 
2091
  am__leading_dot=_
 
2092
fi
 
2093
rmdir .tst 2>/dev/null
 
2094
 
 
2095
# test to see if srcdir already configured
 
2096
if test "`cd $srcdir && pwd`" != "`pwd`" &&
 
2097
   test -f $srcdir/config.status; then
 
2098
  { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2099
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2100
   { (exit 1); exit 1; }; }
 
2101
fi
 
2102
 
 
2103
# test whether we have cygpath
 
2104
if test -z "$CYGPATH_W"; then
 
2105
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2106
    CYGPATH_W='cygpath -w'
 
2107
  else
 
2108
    CYGPATH_W=echo
 
2109
  fi
 
2110
fi
 
2111
 
 
2112
 
 
2113
# Define the identity of the package.
 
2114
 PACKAGE=mm3d
 
2115
 VERSION=1.3.6
 
2116
 
 
2117
 
 
2118
cat >>confdefs.h <<_ACEOF
746
2119
#define PACKAGE "$PACKAGE"
747
 
EOF
748
 
 
749
 
cat >> confdefs.h <<EOF
 
2120
_ACEOF
 
2121
 
 
2122
 
 
2123
cat >>confdefs.h <<_ACEOF
750
2124
#define VERSION "$VERSION"
751
 
EOF
752
 
 
753
 
 
754
 
 
755
 
missing_dir=`cd $ac_aux_dir && pwd`
756
 
echo $ac_n "checking for working aclocal-${am__api_version}""... $ac_c" 1>&6
757
 
echo "configure:758: checking for working aclocal-${am__api_version}" >&5
758
 
# Run test in a subshell; some versions of sh will print an error if
759
 
# an executable is not found, even if stderr is redirected.
760
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
761
 
if (aclocal-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
762
 
   ACLOCAL=aclocal-${am__api_version}
763
 
   echo "$ac_t""found" 1>&6
764
 
else
765
 
   ACLOCAL="$missing_dir/missing aclocal-${am__api_version}"
766
 
   echo "$ac_t""missing" 1>&6
767
 
fi
768
 
 
769
 
echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
770
 
echo "configure:771: checking for working autoconf" >&5
771
 
# Run test in a subshell; some versions of sh will print an error if
772
 
# an executable is not found, even if stderr is redirected.
773
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
774
 
if (autoconf --version) < /dev/null > /dev/null 2>&1; then
775
 
   AUTOCONF=autoconf
776
 
   echo "$ac_t""found" 1>&6
777
 
else
778
 
   AUTOCONF="$missing_dir/missing autoconf"
779
 
   echo "$ac_t""missing" 1>&6
780
 
fi
781
 
 
782
 
echo $ac_n "checking for working automake-${am__api_version}""... $ac_c" 1>&6
783
 
echo "configure:784: checking for working automake-${am__api_version}" >&5
784
 
# Run test in a subshell; some versions of sh will print an error if
785
 
# an executable is not found, even if stderr is redirected.
786
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
787
 
if (automake-${am__api_version} --version) < /dev/null > /dev/null 2>&1; then
788
 
   AUTOMAKE=automake-${am__api_version}
789
 
   echo "$ac_t""found" 1>&6
790
 
else
791
 
   AUTOMAKE="$missing_dir/missing automake-${am__api_version}"
792
 
   echo "$ac_t""missing" 1>&6
793
 
fi
794
 
 
795
 
echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
796
 
echo "configure:797: checking for working autoheader" >&5
797
 
# Run test in a subshell; some versions of sh will print an error if
798
 
# an executable is not found, even if stderr is redirected.
799
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
800
 
if (autoheader --version) < /dev/null > /dev/null 2>&1; then
801
 
   AUTOHEADER=autoheader
802
 
   echo "$ac_t""found" 1>&6
803
 
else
804
 
   AUTOHEADER="$missing_dir/missing autoheader"
805
 
   echo "$ac_t""missing" 1>&6
806
 
fi
807
 
 
808
 
echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
809
 
echo "configure:810: checking for working makeinfo" >&5
810
 
# Run test in a subshell; some versions of sh will print an error if
811
 
# an executable is not found, even if stderr is redirected.
812
 
# Redirect stdin to placate older versions of autoconf.  Sigh.
813
 
if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
814
 
   MAKEINFO=makeinfo
815
 
   echo "$ac_t""found" 1>&6
816
 
else
817
 
   MAKEINFO="$missing_dir/missing makeinfo"
818
 
   echo "$ac_t""missing" 1>&6
819
 
fi
820
 
 
821
 
 
822
 
 
823
 
 
824
 
 
825
 
 
826
 
# Extract the first word of "gcc", so it can be a program name with args.
 
2125
_ACEOF
 
2126
 
 
2127
# Some tools Automake needs.
 
2128
 
 
2129
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2130
 
 
2131
 
 
2132
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2133
 
 
2134
 
 
2135
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2136
 
 
2137
 
 
2138
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2139
 
 
2140
 
 
2141
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2142
 
 
2143
install_sh=${install_sh-"$am_aux_dir/install-sh"}
 
2144
 
 
2145
# Installed binaries are usually stripped using `strip' when the user
 
2146
# run `make install-strip'.  However `strip' might not be the right
 
2147
# tool to use in cross-compilation environments, therefore Automake
 
2148
# will honor the `STRIP' environment variable to overrule this program.
 
2149
if test "$cross_compiling" != no; then
 
2150
  if test -n "$ac_tool_prefix"; then
 
2151
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2152
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2153
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2154
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2155
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2157
else
 
2158
  if test -n "$STRIP"; then
 
2159
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2160
else
 
2161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2162
for as_dir in $PATH
 
2163
do
 
2164
  IFS=$as_save_IFS
 
2165
  test -z "$as_dir" && as_dir=.
 
2166
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2167
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2168
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2169
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2170
    break 2
 
2171
  fi
 
2172
done
 
2173
done
 
2174
IFS=$as_save_IFS
 
2175
 
 
2176
fi
 
2177
fi
 
2178
STRIP=$ac_cv_prog_STRIP
 
2179
if test -n "$STRIP"; then
 
2180
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2181
echo "${ECHO_T}$STRIP" >&6; }
 
2182
else
 
2183
  { echo "$as_me:$LINENO: result: no" >&5
 
2184
echo "${ECHO_T}no" >&6; }
 
2185
fi
 
2186
 
 
2187
 
 
2188
fi
 
2189
if test -z "$ac_cv_prog_STRIP"; then
 
2190
  ac_ct_STRIP=$STRIP
 
2191
  # Extract the first word of "strip", so it can be a program name with args.
 
2192
set dummy strip; ac_word=$2
 
2193
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2194
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2195
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2196
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2197
else
 
2198
  if test -n "$ac_ct_STRIP"; then
 
2199
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2200
else
 
2201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2202
for as_dir in $PATH
 
2203
do
 
2204
  IFS=$as_save_IFS
 
2205
  test -z "$as_dir" && as_dir=.
 
2206
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2207
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2208
    ac_cv_prog_ac_ct_STRIP="strip"
 
2209
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2210
    break 2
 
2211
  fi
 
2212
done
 
2213
done
 
2214
IFS=$as_save_IFS
 
2215
 
 
2216
fi
 
2217
fi
 
2218
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2219
if test -n "$ac_ct_STRIP"; then
 
2220
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2221
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2222
else
 
2223
  { echo "$as_me:$LINENO: result: no" >&5
 
2224
echo "${ECHO_T}no" >&6; }
 
2225
fi
 
2226
 
 
2227
  if test "x$ac_ct_STRIP" = x; then
 
2228
    STRIP=":"
 
2229
  else
 
2230
    case $cross_compiling:$ac_tool_warned in
 
2231
yes:)
 
2232
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2233
whose name does not start with the host triplet.  If you think this
 
2234
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2235
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2236
whose name does not start with the host triplet.  If you think this
 
2237
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2238
ac_tool_warned=yes ;;
 
2239
esac
 
2240
    STRIP=$ac_ct_STRIP
 
2241
  fi
 
2242
else
 
2243
  STRIP="$ac_cv_prog_STRIP"
 
2244
fi
 
2245
 
 
2246
fi
 
2247
INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 
2248
 
 
2249
# We need awk for the "check" target.  The system "awk" is bad on
 
2250
# some platforms.
 
2251
# Always define AMTAR for backward compatibility.
 
2252
 
 
2253
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2254
 
 
2255
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2256
 
 
2257
 
 
2258
 
 
2259
 
 
2260
 
 
2261
 
 
2262
ac_config_headers="$ac_config_headers config.h"
 
2263
 
 
2264
 
 
2265
# Checks for programs.
 
2266
ac_ext=cpp
 
2267
ac_cpp='$CXXCPP $CPPFLAGS'
 
2268
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2269
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2270
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2271
if test -z "$CXX"; then
 
2272
  if test -n "$CCC"; then
 
2273
    CXX=$CCC
 
2274
  else
 
2275
    if test -n "$ac_tool_prefix"; then
 
2276
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2277
  do
 
2278
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2279
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2280
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2281
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2282
if test "${ac_cv_prog_CXX+set}" = set; then
 
2283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2284
else
 
2285
  if test -n "$CXX"; then
 
2286
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2287
else
 
2288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2289
for as_dir in $PATH
 
2290
do
 
2291
  IFS=$as_save_IFS
 
2292
  test -z "$as_dir" && as_dir=.
 
2293
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2294
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2295
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2296
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2297
    break 2
 
2298
  fi
 
2299
done
 
2300
done
 
2301
IFS=$as_save_IFS
 
2302
 
 
2303
fi
 
2304
fi
 
2305
CXX=$ac_cv_prog_CXX
 
2306
if test -n "$CXX"; then
 
2307
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
2308
echo "${ECHO_T}$CXX" >&6; }
 
2309
else
 
2310
  { echo "$as_me:$LINENO: result: no" >&5
 
2311
echo "${ECHO_T}no" >&6; }
 
2312
fi
 
2313
 
 
2314
 
 
2315
    test -n "$CXX" && break
 
2316
  done
 
2317
fi
 
2318
if test -z "$CXX"; then
 
2319
  ac_ct_CXX=$CXX
 
2320
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2321
do
 
2322
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2323
set dummy $ac_prog; ac_word=$2
 
2324
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2325
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2326
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2327
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2328
else
 
2329
  if test -n "$ac_ct_CXX"; then
 
2330
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2331
else
 
2332
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2333
for as_dir in $PATH
 
2334
do
 
2335
  IFS=$as_save_IFS
 
2336
  test -z "$as_dir" && as_dir=.
 
2337
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2338
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2339
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2340
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2341
    break 2
 
2342
  fi
 
2343
done
 
2344
done
 
2345
IFS=$as_save_IFS
 
2346
 
 
2347
fi
 
2348
fi
 
2349
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2350
if test -n "$ac_ct_CXX"; then
 
2351
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2352
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
2353
else
 
2354
  { echo "$as_me:$LINENO: result: no" >&5
 
2355
echo "${ECHO_T}no" >&6; }
 
2356
fi
 
2357
 
 
2358
 
 
2359
  test -n "$ac_ct_CXX" && break
 
2360
done
 
2361
 
 
2362
  if test "x$ac_ct_CXX" = x; then
 
2363
    CXX="g++"
 
2364
  else
 
2365
    case $cross_compiling:$ac_tool_warned in
 
2366
yes:)
 
2367
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2368
whose name does not start with the host triplet.  If you think this
 
2369
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2370
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2371
whose name does not start with the host triplet.  If you think this
 
2372
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2373
ac_tool_warned=yes ;;
 
2374
esac
 
2375
    CXX=$ac_ct_CXX
 
2376
  fi
 
2377
fi
 
2378
 
 
2379
  fi
 
2380
fi
 
2381
# Provide some information about the compiler.
 
2382
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
2383
ac_compiler=`set X $ac_compile; echo $2`
 
2384
{ (ac_try="$ac_compiler --version >&5"
 
2385
case "(($ac_try" in
 
2386
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2387
  *) ac_try_echo=$ac_try;;
 
2388
esac
 
2389
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2390
  (eval "$ac_compiler --version >&5") 2>&5
 
2391
  ac_status=$?
 
2392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2393
  (exit $ac_status); }
 
2394
{ (ac_try="$ac_compiler -v >&5"
 
2395
case "(($ac_try" in
 
2396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2397
  *) ac_try_echo=$ac_try;;
 
2398
esac
 
2399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2400
  (eval "$ac_compiler -v >&5") 2>&5
 
2401
  ac_status=$?
 
2402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2403
  (exit $ac_status); }
 
2404
{ (ac_try="$ac_compiler -V >&5"
 
2405
case "(($ac_try" in
 
2406
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2407
  *) ac_try_echo=$ac_try;;
 
2408
esac
 
2409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2410
  (eval "$ac_compiler -V >&5") 2>&5
 
2411
  ac_status=$?
 
2412
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2413
  (exit $ac_status); }
 
2414
 
 
2415
cat >conftest.$ac_ext <<_ACEOF
 
2416
/* confdefs.h.  */
 
2417
_ACEOF
 
2418
cat confdefs.h >>conftest.$ac_ext
 
2419
cat >>conftest.$ac_ext <<_ACEOF
 
2420
/* end confdefs.h.  */
 
2421
 
 
2422
int
 
2423
main ()
 
2424
{
 
2425
 
 
2426
  ;
 
2427
  return 0;
 
2428
}
 
2429
_ACEOF
 
2430
ac_clean_files_save=$ac_clean_files
 
2431
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2432
# Try to create an executable without -o first, disregard a.out.
 
2433
# It will help us diagnose broken compilers, and finding out an intuition
 
2434
# of exeext.
 
2435
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
 
2436
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
 
2437
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2438
#
 
2439
# List of possible output files, starting from the most likely.
 
2440
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2441
# only as a last resort.  b.out is created by i960 compilers.
 
2442
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2443
#
 
2444
# The IRIX 6 linker writes into existing files which may not be
 
2445
# executable, retaining their permissions.  Remove them first so a
 
2446
# subsequent execution test works.
 
2447
ac_rmfiles=
 
2448
for ac_file in $ac_files
 
2449
do
 
2450
  case $ac_file in
 
2451
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2452
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2453
  esac
 
2454
done
 
2455
rm -f $ac_rmfiles
 
2456
 
 
2457
if { (ac_try="$ac_link_default"
 
2458
case "(($ac_try" in
 
2459
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2460
  *) ac_try_echo=$ac_try;;
 
2461
esac
 
2462
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2463
  (eval "$ac_link_default") 2>&5
 
2464
  ac_status=$?
 
2465
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2466
  (exit $ac_status); }; then
 
2467
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2468
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2469
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2470
# so that the user can short-circuit this test for compilers unknown to
 
2471
# Autoconf.
 
2472
for ac_file in $ac_files ''
 
2473
do
 
2474
  test -f "$ac_file" || continue
 
2475
  case $ac_file in
 
2476
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2477
        ;;
 
2478
    [ab].out )
 
2479
        # We found the default executable, but exeext='' is most
 
2480
        # certainly right.
 
2481
        break;;
 
2482
    *.* )
 
2483
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2484
        then :; else
 
2485
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2486
        fi
 
2487
        # We set ac_cv_exeext here because the later test for it is not
 
2488
        # safe: cross compilers may not add the suffix if given an `-o'
 
2489
        # argument, so we may need to know it at that point already.
 
2490
        # Even if this section looks crufty: it has the advantage of
 
2491
        # actually working.
 
2492
        break;;
 
2493
    * )
 
2494
        break;;
 
2495
  esac
 
2496
done
 
2497
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2498
 
 
2499
else
 
2500
  ac_file=''
 
2501
fi
 
2502
 
 
2503
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2504
echo "${ECHO_T}$ac_file" >&6; }
 
2505
if test -z "$ac_file"; then
 
2506
  echo "$as_me: failed program was:" >&5
 
2507
sed 's/^/| /' conftest.$ac_ext >&5
 
2508
 
 
2509
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
 
2510
See \`config.log' for more details." >&5
 
2511
echo "$as_me: error: C++ compiler cannot create executables
 
2512
See \`config.log' for more details." >&2;}
 
2513
   { (exit 77); exit 77; }; }
 
2514
fi
 
2515
 
 
2516
ac_exeext=$ac_cv_exeext
 
2517
 
 
2518
# Check that the compiler produces executables we can run.  If not, either
 
2519
# the compiler is broken, or we cross compile.
 
2520
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
2521
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
 
2522
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2523
# If not cross compiling, check that we can run a simple program.
 
2524
if test "$cross_compiling" != yes; then
 
2525
  if { ac_try='./$ac_file'
 
2526
  { (case "(($ac_try" in
 
2527
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2528
  *) ac_try_echo=$ac_try;;
 
2529
esac
 
2530
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2531
  (eval "$ac_try") 2>&5
 
2532
  ac_status=$?
 
2533
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2534
  (exit $ac_status); }; }; then
 
2535
    cross_compiling=no
 
2536
  else
 
2537
    if test "$cross_compiling" = maybe; then
 
2538
        cross_compiling=yes
 
2539
    else
 
2540
        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
 
2541
If you meant to cross compile, use \`--host'.
 
2542
See \`config.log' for more details." >&5
 
2543
echo "$as_me: error: cannot run C++ compiled programs.
 
2544
If you meant to cross compile, use \`--host'.
 
2545
See \`config.log' for more details." >&2;}
 
2546
   { (exit 1); exit 1; }; }
 
2547
    fi
 
2548
  fi
 
2549
fi
 
2550
{ echo "$as_me:$LINENO: result: yes" >&5
 
2551
echo "${ECHO_T}yes" >&6; }
 
2552
 
 
2553
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2554
ac_clean_files=$ac_clean_files_save
 
2555
# Check that the compiler produces executables we can run.  If not, either
 
2556
# the compiler is broken, or we cross compile.
 
2557
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2558
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2559
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2560
echo "${ECHO_T}$cross_compiling" >&6; }
 
2561
 
 
2562
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2563
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2564
if { (ac_try="$ac_link"
 
2565
case "(($ac_try" in
 
2566
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2567
  *) ac_try_echo=$ac_try;;
 
2568
esac
 
2569
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2570
  (eval "$ac_link") 2>&5
 
2571
  ac_status=$?
 
2572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2573
  (exit $ac_status); }; then
 
2574
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2575
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2576
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2577
# `rm'.
 
2578
for ac_file in conftest.exe conftest conftest.*; do
 
2579
  test -f "$ac_file" || continue
 
2580
  case $ac_file in
 
2581
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2582
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2583
          break;;
 
2584
    * ) break;;
 
2585
  esac
 
2586
done
 
2587
else
 
2588
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2589
See \`config.log' for more details." >&5
 
2590
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2591
See \`config.log' for more details." >&2;}
 
2592
   { (exit 1); exit 1; }; }
 
2593
fi
 
2594
 
 
2595
rm -f conftest$ac_cv_exeext
 
2596
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2597
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2598
 
 
2599
rm -f conftest.$ac_ext
 
2600
EXEEXT=$ac_cv_exeext
 
2601
ac_exeext=$EXEEXT
 
2602
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2603
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2604
if test "${ac_cv_objext+set}" = set; then
 
2605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2606
else
 
2607
  cat >conftest.$ac_ext <<_ACEOF
 
2608
/* confdefs.h.  */
 
2609
_ACEOF
 
2610
cat confdefs.h >>conftest.$ac_ext
 
2611
cat >>conftest.$ac_ext <<_ACEOF
 
2612
/* end confdefs.h.  */
 
2613
 
 
2614
int
 
2615
main ()
 
2616
{
 
2617
 
 
2618
  ;
 
2619
  return 0;
 
2620
}
 
2621
_ACEOF
 
2622
rm -f conftest.o conftest.obj
 
2623
if { (ac_try="$ac_compile"
 
2624
case "(($ac_try" in
 
2625
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2626
  *) ac_try_echo=$ac_try;;
 
2627
esac
 
2628
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2629
  (eval "$ac_compile") 2>&5
 
2630
  ac_status=$?
 
2631
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2632
  (exit $ac_status); }; then
 
2633
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2634
  test -f "$ac_file" || continue;
 
2635
  case $ac_file in
 
2636
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2637
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2638
       break;;
 
2639
  esac
 
2640
done
 
2641
else
 
2642
  echo "$as_me: failed program was:" >&5
 
2643
sed 's/^/| /' conftest.$ac_ext >&5
 
2644
 
 
2645
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2646
See \`config.log' for more details." >&5
 
2647
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2648
See \`config.log' for more details." >&2;}
 
2649
   { (exit 1); exit 1; }; }
 
2650
fi
 
2651
 
 
2652
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2653
fi
 
2654
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2655
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2656
OBJEXT=$ac_cv_objext
 
2657
ac_objext=$OBJEXT
 
2658
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2659
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
2660
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2661
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2662
else
 
2663
  cat >conftest.$ac_ext <<_ACEOF
 
2664
/* confdefs.h.  */
 
2665
_ACEOF
 
2666
cat confdefs.h >>conftest.$ac_ext
 
2667
cat >>conftest.$ac_ext <<_ACEOF
 
2668
/* end confdefs.h.  */
 
2669
 
 
2670
int
 
2671
main ()
 
2672
{
 
2673
#ifndef __GNUC__
 
2674
       choke me
 
2675
#endif
 
2676
 
 
2677
  ;
 
2678
  return 0;
 
2679
}
 
2680
_ACEOF
 
2681
rm -f conftest.$ac_objext
 
2682
if { (ac_try="$ac_compile"
 
2683
case "(($ac_try" in
 
2684
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2685
  *) ac_try_echo=$ac_try;;
 
2686
esac
 
2687
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2688
  (eval "$ac_compile") 2>conftest.er1
 
2689
  ac_status=$?
 
2690
  grep -v '^ *+' conftest.er1 >conftest.err
 
2691
  rm -f conftest.er1
 
2692
  cat conftest.err >&5
 
2693
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2694
  (exit $ac_status); } && {
 
2695
         test -z "$ac_cxx_werror_flag" ||
 
2696
         test ! -s conftest.err
 
2697
       } && test -s conftest.$ac_objext; then
 
2698
  ac_compiler_gnu=yes
 
2699
else
 
2700
  echo "$as_me: failed program was:" >&5
 
2701
sed 's/^/| /' conftest.$ac_ext >&5
 
2702
 
 
2703
        ac_compiler_gnu=no
 
2704
fi
 
2705
 
 
2706
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2707
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2708
 
 
2709
fi
 
2710
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2711
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
2712
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
2713
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
2714
ac_save_CXXFLAGS=$CXXFLAGS
 
2715
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2716
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
2717
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
2718
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2719
else
 
2720
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
2721
   ac_cxx_werror_flag=yes
 
2722
   ac_cv_prog_cxx_g=no
 
2723
   CXXFLAGS="-g"
 
2724
   cat >conftest.$ac_ext <<_ACEOF
 
2725
/* confdefs.h.  */
 
2726
_ACEOF
 
2727
cat confdefs.h >>conftest.$ac_ext
 
2728
cat >>conftest.$ac_ext <<_ACEOF
 
2729
/* end confdefs.h.  */
 
2730
 
 
2731
int
 
2732
main ()
 
2733
{
 
2734
 
 
2735
  ;
 
2736
  return 0;
 
2737
}
 
2738
_ACEOF
 
2739
rm -f conftest.$ac_objext
 
2740
if { (ac_try="$ac_compile"
 
2741
case "(($ac_try" in
 
2742
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2743
  *) ac_try_echo=$ac_try;;
 
2744
esac
 
2745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2746
  (eval "$ac_compile") 2>conftest.er1
 
2747
  ac_status=$?
 
2748
  grep -v '^ *+' conftest.er1 >conftest.err
 
2749
  rm -f conftest.er1
 
2750
  cat conftest.err >&5
 
2751
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2752
  (exit $ac_status); } && {
 
2753
         test -z "$ac_cxx_werror_flag" ||
 
2754
         test ! -s conftest.err
 
2755
       } && test -s conftest.$ac_objext; then
 
2756
  ac_cv_prog_cxx_g=yes
 
2757
else
 
2758
  echo "$as_me: failed program was:" >&5
 
2759
sed 's/^/| /' conftest.$ac_ext >&5
 
2760
 
 
2761
        CXXFLAGS=""
 
2762
      cat >conftest.$ac_ext <<_ACEOF
 
2763
/* confdefs.h.  */
 
2764
_ACEOF
 
2765
cat confdefs.h >>conftest.$ac_ext
 
2766
cat >>conftest.$ac_ext <<_ACEOF
 
2767
/* end confdefs.h.  */
 
2768
 
 
2769
int
 
2770
main ()
 
2771
{
 
2772
 
 
2773
  ;
 
2774
  return 0;
 
2775
}
 
2776
_ACEOF
 
2777
rm -f conftest.$ac_objext
 
2778
if { (ac_try="$ac_compile"
 
2779
case "(($ac_try" in
 
2780
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2781
  *) ac_try_echo=$ac_try;;
 
2782
esac
 
2783
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2784
  (eval "$ac_compile") 2>conftest.er1
 
2785
  ac_status=$?
 
2786
  grep -v '^ *+' conftest.er1 >conftest.err
 
2787
  rm -f conftest.er1
 
2788
  cat conftest.err >&5
 
2789
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2790
  (exit $ac_status); } && {
 
2791
         test -z "$ac_cxx_werror_flag" ||
 
2792
         test ! -s conftest.err
 
2793
       } && test -s conftest.$ac_objext; then
 
2794
  :
 
2795
else
 
2796
  echo "$as_me: failed program was:" >&5
 
2797
sed 's/^/| /' conftest.$ac_ext >&5
 
2798
 
 
2799
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
2800
         CXXFLAGS="-g"
 
2801
         cat >conftest.$ac_ext <<_ACEOF
 
2802
/* confdefs.h.  */
 
2803
_ACEOF
 
2804
cat confdefs.h >>conftest.$ac_ext
 
2805
cat >>conftest.$ac_ext <<_ACEOF
 
2806
/* end confdefs.h.  */
 
2807
 
 
2808
int
 
2809
main ()
 
2810
{
 
2811
 
 
2812
  ;
 
2813
  return 0;
 
2814
}
 
2815
_ACEOF
 
2816
rm -f conftest.$ac_objext
 
2817
if { (ac_try="$ac_compile"
 
2818
case "(($ac_try" in
 
2819
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2820
  *) ac_try_echo=$ac_try;;
 
2821
esac
 
2822
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2823
  (eval "$ac_compile") 2>conftest.er1
 
2824
  ac_status=$?
 
2825
  grep -v '^ *+' conftest.er1 >conftest.err
 
2826
  rm -f conftest.er1
 
2827
  cat conftest.err >&5
 
2828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2829
  (exit $ac_status); } && {
 
2830
         test -z "$ac_cxx_werror_flag" ||
 
2831
         test ! -s conftest.err
 
2832
       } && test -s conftest.$ac_objext; then
 
2833
  ac_cv_prog_cxx_g=yes
 
2834
else
 
2835
  echo "$as_me: failed program was:" >&5
 
2836
sed 's/^/| /' conftest.$ac_ext >&5
 
2837
 
 
2838
 
 
2839
fi
 
2840
 
 
2841
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2842
fi
 
2843
 
 
2844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2845
fi
 
2846
 
 
2847
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2848
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
2849
fi
 
2850
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
2851
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
2852
if test "$ac_test_CXXFLAGS" = set; then
 
2853
  CXXFLAGS=$ac_save_CXXFLAGS
 
2854
elif test $ac_cv_prog_cxx_g = yes; then
 
2855
  if test "$GXX" = yes; then
 
2856
    CXXFLAGS="-g -O2"
 
2857
  else
 
2858
    CXXFLAGS="-g"
 
2859
  fi
 
2860
else
 
2861
  if test "$GXX" = yes; then
 
2862
    CXXFLAGS="-O2"
 
2863
  else
 
2864
    CXXFLAGS=
 
2865
  fi
 
2866
fi
 
2867
ac_ext=c
 
2868
ac_cpp='$CPP $CPPFLAGS'
 
2869
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2870
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2871
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2872
DEPDIR="${am__leading_dot}deps"
 
2873
 
 
2874
ac_config_commands="$ac_config_commands depfiles"
 
2875
 
 
2876
 
 
2877
am_make=${MAKE-make}
 
2878
cat > confinc << 'END'
 
2879
am__doit:
 
2880
        @echo done
 
2881
.PHONY: am__doit
 
2882
END
 
2883
# If we don't find an include directive, just comment out the code.
 
2884
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2885
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2886
am__include="#"
 
2887
am__quote=
 
2888
_am_result=none
 
2889
# First try GNU make style include.
 
2890
echo "include confinc" > confmf
 
2891
# We grep out `Entering directory' and `Leaving directory'
 
2892
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2893
# In particular we don't look at `^make:' because GNU make might
 
2894
# be invoked under some other name (usually "gmake"), in which
 
2895
# case it prints its new name instead of `make'.
 
2896
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2897
   am__include=include
 
2898
   am__quote=
 
2899
   _am_result=GNU
 
2900
fi
 
2901
# Now try BSD make style include.
 
2902
if test "$am__include" = "#"; then
 
2903
   echo '.include "confinc"' > confmf
 
2904
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2905
      am__include=.include
 
2906
      am__quote="\""
 
2907
      _am_result=BSD
 
2908
   fi
 
2909
fi
 
2910
 
 
2911
 
 
2912
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2913
echo "${ECHO_T}$_am_result" >&6; }
 
2914
rm -f confinc confmf
 
2915
 
 
2916
# Check whether --enable-dependency-tracking was given.
 
2917
if test "${enable_dependency_tracking+set}" = set; then
 
2918
  enableval=$enable_dependency_tracking;
 
2919
fi
 
2920
 
 
2921
if test "x$enable_dependency_tracking" != xno; then
 
2922
  am_depcomp="$ac_aux_dir/depcomp"
 
2923
  AMDEPBACKSLASH='\'
 
2924
fi
 
2925
 
 
2926
 
 
2927
if test "x$enable_dependency_tracking" != xno; then
 
2928
  AMDEP_TRUE=
 
2929
  AMDEP_FALSE='#'
 
2930
else
 
2931
  AMDEP_TRUE='#'
 
2932
  AMDEP_FALSE=
 
2933
fi
 
2934
 
 
2935
 
 
2936
 
 
2937
 
 
2938
depcc="$CXX"  am_compiler_list=
 
2939
 
 
2940
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2941
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
2942
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
2943
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2944
else
 
2945
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2946
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2947
  # making bogus files that we don't know about and never remove.  For
 
2948
  # instance it was reported that on HP-UX the gcc test will end up
 
2949
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2950
  # in D'.
 
2951
  mkdir conftest.dir
 
2952
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2953
  # using a relative directory.
 
2954
  cp "$am_depcomp" conftest.dir
 
2955
  cd conftest.dir
 
2956
  # We will build objects and dependencies in a subdirectory because
 
2957
  # it helps to detect inapplicable dependency modes.  For instance
 
2958
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2959
  # side effect of compilation, but ICC will put the dependencies in
 
2960
  # the current directory while Tru64 will put them in the object
 
2961
  # directory.
 
2962
  mkdir sub
 
2963
 
 
2964
  am_cv_CXX_dependencies_compiler_type=none
 
2965
  if test "$am_compiler_list" = ""; then
 
2966
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2967
  fi
 
2968
  for depmode in $am_compiler_list; do
 
2969
    # Setup a source with many dependencies, because some compilers
 
2970
    # like to wrap large dependency lists on column 80 (with \), and
 
2971
    # we should not choose a depcomp mode which is confused by this.
 
2972
    #
 
2973
    # We need to recreate these files for each test, as the compiler may
 
2974
    # overwrite some of them when testing with obscure command lines.
 
2975
    # This happens at least with the AIX C compiler.
 
2976
    : > sub/conftest.c
 
2977
    for i in 1 2 3 4 5 6; do
 
2978
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2979
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2980
      # Solaris 8's {/usr,}/bin/sh.
 
2981
      touch sub/conftst$i.h
 
2982
    done
 
2983
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2984
 
 
2985
    case $depmode in
 
2986
    nosideeffect)
 
2987
      # after this tag, mechanisms are not by side-effect, so they'll
 
2988
      # only be used when explicitly requested
 
2989
      if test "x$enable_dependency_tracking" = xyes; then
 
2990
        continue
 
2991
      else
 
2992
        break
 
2993
      fi
 
2994
      ;;
 
2995
    none) break ;;
 
2996
    esac
 
2997
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2998
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2999
    # handle `-M -o', and we need to detect this.
 
3000
    if depmode=$depmode \
 
3001
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3002
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3003
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3004
         >/dev/null 2>conftest.err &&
 
3005
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3006
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3007
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3008
      # icc doesn't choke on unknown options, it will just issue warnings
 
3009
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3010
      # that says an option was ignored or not supported.
 
3011
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3012
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3013
      # The diagnosis changed in icc 8.0:
 
3014
      #   icc: Command line remark: option '-MP' not supported
 
3015
      if (grep 'ignoring option' conftest.err ||
 
3016
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3017
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3018
        break
 
3019
      fi
 
3020
    fi
 
3021
  done
 
3022
 
 
3023
  cd ..
 
3024
  rm -rf conftest.dir
 
3025
else
 
3026
  am_cv_CXX_dependencies_compiler_type=none
 
3027
fi
 
3028
 
 
3029
fi
 
3030
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3031
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3032
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3033
 
 
3034
 
 
3035
 
 
3036
if
 
3037
  test "x$enable_dependency_tracking" != xno \
 
3038
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3039
  am__fastdepCXX_TRUE=
 
3040
  am__fastdepCXX_FALSE='#'
 
3041
else
 
3042
  am__fastdepCXX_TRUE='#'
 
3043
  am__fastdepCXX_FALSE=
 
3044
fi
 
3045
 
 
3046
 
 
3047
ac_ext=c
 
3048
ac_cpp='$CPP $CPPFLAGS'
 
3049
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3050
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3051
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3052
if test -n "$ac_tool_prefix"; then
 
3053
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3054
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3055
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3056
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3057
if test "${ac_cv_prog_CC+set}" = set; then
 
3058
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3059
else
 
3060
  if test -n "$CC"; then
 
3061
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3062
else
 
3063
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3064
for as_dir in $PATH
 
3065
do
 
3066
  IFS=$as_save_IFS
 
3067
  test -z "$as_dir" && as_dir=.
 
3068
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3069
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3070
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3071
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3072
    break 2
 
3073
  fi
 
3074
done
 
3075
done
 
3076
IFS=$as_save_IFS
 
3077
 
 
3078
fi
 
3079
fi
 
3080
CC=$ac_cv_prog_CC
 
3081
if test -n "$CC"; then
 
3082
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3083
echo "${ECHO_T}$CC" >&6; }
 
3084
else
 
3085
  { echo "$as_me:$LINENO: result: no" >&5
 
3086
echo "${ECHO_T}no" >&6; }
 
3087
fi
 
3088
 
 
3089
 
 
3090
fi
 
3091
if test -z "$ac_cv_prog_CC"; then
 
3092
  ac_ct_CC=$CC
 
3093
  # Extract the first word of "gcc", so it can be a program name with args.
827
3094
set dummy gcc; ac_word=$2
828
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
829
 
echo "configure:830: checking for $ac_word" >&5
830
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
831
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3095
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3096
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3097
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3099
else
 
3100
  if test -n "$ac_ct_CC"; then
 
3101
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3102
else
 
3103
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3104
for as_dir in $PATH
 
3105
do
 
3106
  IFS=$as_save_IFS
 
3107
  test -z "$as_dir" && as_dir=.
 
3108
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3109
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3110
    ac_cv_prog_ac_ct_CC="gcc"
 
3111
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3112
    break 2
 
3113
  fi
 
3114
done
 
3115
done
 
3116
IFS=$as_save_IFS
 
3117
 
 
3118
fi
 
3119
fi
 
3120
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3121
if test -n "$ac_ct_CC"; then
 
3122
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3123
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3124
else
 
3125
  { echo "$as_me:$LINENO: result: no" >&5
 
3126
echo "${ECHO_T}no" >&6; }
 
3127
fi
 
3128
 
 
3129
  if test "x$ac_ct_CC" = x; then
 
3130
    CC=""
 
3131
  else
 
3132
    case $cross_compiling:$ac_tool_warned in
 
3133
yes:)
 
3134
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3135
whose name does not start with the host triplet.  If you think this
 
3136
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3137
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3138
whose name does not start with the host triplet.  If you think this
 
3139
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3140
ac_tool_warned=yes ;;
 
3141
esac
 
3142
    CC=$ac_ct_CC
 
3143
  fi
 
3144
else
 
3145
  CC="$ac_cv_prog_CC"
 
3146
fi
 
3147
 
 
3148
if test -z "$CC"; then
 
3149
          if test -n "$ac_tool_prefix"; then
 
3150
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3151
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3152
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3153
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3154
if test "${ac_cv_prog_CC+set}" = set; then
 
3155
  echo $ECHO_N "(cached) $ECHO_C" >&6
832
3156
else
833
3157
  if test -n "$CC"; then
834
3158
  ac_cv_prog_CC="$CC" # Let the user override the test.
835
3159
else
836
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
837
 
  ac_dummy="$PATH"
838
 
  for ac_dir in $ac_dummy; do
839
 
    test -z "$ac_dir" && ac_dir=.
840
 
    if test -f $ac_dir/$ac_word; then
841
 
      ac_cv_prog_CC="gcc"
842
 
      break
843
 
    fi
844
 
  done
845
 
  IFS="$ac_save_ifs"
846
 
fi
847
 
fi
848
 
CC="$ac_cv_prog_CC"
 
3160
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3161
for as_dir in $PATH
 
3162
do
 
3163
  IFS=$as_save_IFS
 
3164
  test -z "$as_dir" && as_dir=.
 
3165
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3166
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3167
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3168
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3169
    break 2
 
3170
  fi
 
3171
done
 
3172
done
 
3173
IFS=$as_save_IFS
 
3174
 
 
3175
fi
 
3176
fi
 
3177
CC=$ac_cv_prog_CC
849
3178
if test -n "$CC"; then
850
 
  echo "$ac_t""$CC" 1>&6
 
3179
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3180
echo "${ECHO_T}$CC" >&6; }
851
3181
else
852
 
  echo "$ac_t""no" 1>&6
853
 
fi
854
 
 
 
3182
  { echo "$as_me:$LINENO: result: no" >&5
 
3183
echo "${ECHO_T}no" >&6; }
 
3184
fi
 
3185
 
 
3186
 
 
3187
  fi
 
3188
fi
855
3189
if test -z "$CC"; then
856
3190
  # Extract the first word of "cc", so it can be a program name with args.
857
3191
set dummy cc; ac_word=$2
858
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
859
 
echo "configure:860: checking for $ac_word" >&5
860
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
861
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3192
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3193
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3194
if test "${ac_cv_prog_CC+set}" = set; then
 
3195
  echo $ECHO_N "(cached) $ECHO_C" >&6
862
3196
else
863
3197
  if test -n "$CC"; then
864
3198
  ac_cv_prog_CC="$CC" # Let the user override the test.
865
3199
else
866
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
867
3200
  ac_prog_rejected=no
868
 
  ac_dummy="$PATH"
869
 
  for ac_dir in $ac_dummy; do
870
 
    test -z "$ac_dir" && ac_dir=.
871
 
    if test -f $ac_dir/$ac_word; then
872
 
      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
873
 
        ac_prog_rejected=yes
874
 
        continue
875
 
      fi
876
 
      ac_cv_prog_CC="cc"
877
 
      break
878
 
    fi
879
 
  done
880
 
  IFS="$ac_save_ifs"
 
3201
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3202
for as_dir in $PATH
 
3203
do
 
3204
  IFS=$as_save_IFS
 
3205
  test -z "$as_dir" && as_dir=.
 
3206
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3207
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3208
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3209
       ac_prog_rejected=yes
 
3210
       continue
 
3211
     fi
 
3212
    ac_cv_prog_CC="cc"
 
3213
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3214
    break 2
 
3215
  fi
 
3216
done
 
3217
done
 
3218
IFS=$as_save_IFS
 
3219
 
881
3220
if test $ac_prog_rejected = yes; then
882
3221
  # We found a bogon in the path, so make sure we never use it.
883
3222
  set dummy $ac_cv_prog_CC
884
3223
  shift
885
 
  if test $# -gt 0; then
 
3224
  if test $# != 0; then
886
3225
    # We chose a different compiler from the bogus one.
887
3226
    # However, it has the same basename, so the bogon will be chosen
888
3227
    # first if we set CC to just the basename; use the full file name.
889
3228
    shift
890
 
    set dummy "$ac_dir/$ac_word" "$@"
891
 
    shift
892
 
    ac_cv_prog_CC="$@"
 
3229
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
893
3230
  fi
894
3231
fi
895
3232
fi
896
3233
fi
897
 
CC="$ac_cv_prog_CC"
 
3234
CC=$ac_cv_prog_CC
898
3235
if test -n "$CC"; then
899
 
  echo "$ac_t""$CC" 1>&6
 
3236
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3237
echo "${ECHO_T}$CC" >&6; }
900
3238
else
901
 
  echo "$ac_t""no" 1>&6
902
 
fi
903
 
 
904
 
  if test -z "$CC"; then
905
 
    case "`uname -s`" in
906
 
    *win32* | *WIN32*)
907
 
      # Extract the first word of "cl", so it can be a program name with args.
908
 
set dummy cl; ac_word=$2
909
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
910
 
echo "configure:911: checking for $ac_word" >&5
911
 
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
912
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3239
  { echo "$as_me:$LINENO: result: no" >&5
 
3240
echo "${ECHO_T}no" >&6; }
 
3241
fi
 
3242
 
 
3243
 
 
3244
fi
 
3245
if test -z "$CC"; then
 
3246
  if test -n "$ac_tool_prefix"; then
 
3247
  for ac_prog in cl.exe
 
3248
  do
 
3249
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3250
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3251
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3252
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3253
if test "${ac_cv_prog_CC+set}" = set; then
 
3254
  echo $ECHO_N "(cached) $ECHO_C" >&6
913
3255
else
914
3256
  if test -n "$CC"; then
915
3257
  ac_cv_prog_CC="$CC" # Let the user override the test.
916
3258
else
917
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
918
 
  ac_dummy="$PATH"
919
 
  for ac_dir in $ac_dummy; do
920
 
    test -z "$ac_dir" && ac_dir=.
921
 
    if test -f $ac_dir/$ac_word; then
922
 
      ac_cv_prog_CC="cl"
923
 
      break
924
 
    fi
 
3259
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3260
for as_dir in $PATH
 
3261
do
 
3262
  IFS=$as_save_IFS
 
3263
  test -z "$as_dir" && as_dir=.
 
3264
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3265
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3266
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3267
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3268
    break 2
 
3269
  fi
 
3270
done
 
3271
done
 
3272
IFS=$as_save_IFS
 
3273
 
 
3274
fi
 
3275
fi
 
3276
CC=$ac_cv_prog_CC
 
3277
if test -n "$CC"; then
 
3278
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3279
echo "${ECHO_T}$CC" >&6; }
 
3280
else
 
3281
  { echo "$as_me:$LINENO: result: no" >&5
 
3282
echo "${ECHO_T}no" >&6; }
 
3283
fi
 
3284
 
 
3285
 
 
3286
    test -n "$CC" && break
925
3287
  done
926
 
  IFS="$ac_save_ifs"
927
 
fi
928
 
fi
929
 
CC="$ac_cv_prog_CC"
930
 
if test -n "$CC"; then
931
 
  echo "$ac_t""$CC" 1>&6
932
 
else
933
 
  echo "$ac_t""no" 1>&6
934
 
fi
935
 
 ;;
936
 
    esac
 
3288
fi
 
3289
if test -z "$CC"; then
 
3290
  ac_ct_CC=$CC
 
3291
  for ac_prog in cl.exe
 
3292
do
 
3293
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3294
set dummy $ac_prog; ac_word=$2
 
3295
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3296
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3297
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3298
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3299
else
 
3300
  if test -n "$ac_ct_CC"; then
 
3301
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3302
else
 
3303
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3304
for as_dir in $PATH
 
3305
do
 
3306
  IFS=$as_save_IFS
 
3307
  test -z "$as_dir" && as_dir=.
 
3308
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3309
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3310
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3311
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3312
    break 2
937
3313
  fi
938
 
  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
939
 
fi
940
 
 
941
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
942
 
echo "configure:943: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
943
 
 
944
 
ac_ext=c
945
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
946
 
ac_cpp='$CPP $CPPFLAGS'
947
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
948
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
949
 
cross_compiling=$ac_cv_prog_cc_cross
950
 
 
951
 
cat > conftest.$ac_ext << EOF
952
 
 
953
 
#line 954 "configure"
954
 
#include "confdefs.h"
955
 
 
956
 
main(){return(0);}
957
 
EOF
958
 
if { (eval echo configure:959: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
959
 
  ac_cv_prog_cc_works=yes
960
 
  # If we can't run a trivial program, we are probably using a cross compiler.
961
 
  if (./conftest; exit) 2>/dev/null; then
962
 
    ac_cv_prog_cc_cross=no
 
3314
done
 
3315
done
 
3316
IFS=$as_save_IFS
 
3317
 
 
3318
fi
 
3319
fi
 
3320
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3321
if test -n "$ac_ct_CC"; then
 
3322
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3323
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3324
else
 
3325
  { echo "$as_me:$LINENO: result: no" >&5
 
3326
echo "${ECHO_T}no" >&6; }
 
3327
fi
 
3328
 
 
3329
 
 
3330
  test -n "$ac_ct_CC" && break
 
3331
done
 
3332
 
 
3333
  if test "x$ac_ct_CC" = x; then
 
3334
    CC=""
963
3335
  else
964
 
    ac_cv_prog_cc_cross=yes
 
3336
    case $cross_compiling:$ac_tool_warned in
 
3337
yes:)
 
3338
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3339
whose name does not start with the host triplet.  If you think this
 
3340
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3341
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3342
whose name does not start with the host triplet.  If you think this
 
3343
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3344
ac_tool_warned=yes ;;
 
3345
esac
 
3346
    CC=$ac_ct_CC
965
3347
  fi
966
 
else
967
 
  echo "configure: failed program was:" >&5
968
 
  cat conftest.$ac_ext >&5
969
 
  ac_cv_prog_cc_works=no
970
 
fi
971
 
rm -fr conftest*
972
 
ac_ext=c
973
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
974
 
ac_cpp='$CPP $CPPFLAGS'
975
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
976
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
977
 
cross_compiling=$ac_cv_prog_cc_cross
978
 
 
979
 
echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
980
 
if test $ac_cv_prog_cc_works = no; then
981
 
  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
982
 
fi
983
 
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
984
 
echo "configure:985: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
985
 
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
986
 
cross_compiling=$ac_cv_prog_cc_cross
987
 
 
988
 
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
989
 
echo "configure:990: checking whether we are using GNU C" >&5
990
 
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
991
 
  echo $ac_n "(cached) $ac_c" 1>&6
992
 
else
993
 
  cat > conftest.c <<EOF
994
 
#ifdef __GNUC__
995
 
  yes;
 
3348
fi
 
3349
 
 
3350
fi
 
3351
 
 
3352
 
 
3353
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3354
See \`config.log' for more details." >&5
 
3355
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3356
See \`config.log' for more details." >&2;}
 
3357
   { (exit 1); exit 1; }; }
 
3358
 
 
3359
# Provide some information about the compiler.
 
3360
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3361
ac_compiler=`set X $ac_compile; echo $2`
 
3362
{ (ac_try="$ac_compiler --version >&5"
 
3363
case "(($ac_try" in
 
3364
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3365
  *) ac_try_echo=$ac_try;;
 
3366
esac
 
3367
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3368
  (eval "$ac_compiler --version >&5") 2>&5
 
3369
  ac_status=$?
 
3370
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3371
  (exit $ac_status); }
 
3372
{ (ac_try="$ac_compiler -v >&5"
 
3373
case "(($ac_try" in
 
3374
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3375
  *) ac_try_echo=$ac_try;;
 
3376
esac
 
3377
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3378
  (eval "$ac_compiler -v >&5") 2>&5
 
3379
  ac_status=$?
 
3380
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3381
  (exit $ac_status); }
 
3382
{ (ac_try="$ac_compiler -V >&5"
 
3383
case "(($ac_try" in
 
3384
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3385
  *) ac_try_echo=$ac_try;;
 
3386
esac
 
3387
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3388
  (eval "$ac_compiler -V >&5") 2>&5
 
3389
  ac_status=$?
 
3390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3391
  (exit $ac_status); }
 
3392
 
 
3393
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3394
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3395
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3396
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3397
else
 
3398
  cat >conftest.$ac_ext <<_ACEOF
 
3399
/* confdefs.h.  */
 
3400
_ACEOF
 
3401
cat confdefs.h >>conftest.$ac_ext
 
3402
cat >>conftest.$ac_ext <<_ACEOF
 
3403
/* end confdefs.h.  */
 
3404
 
 
3405
int
 
3406
main ()
 
3407
{
 
3408
#ifndef __GNUC__
 
3409
       choke me
996
3410
#endif
997
 
EOF
998
 
if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:999: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
999
 
  ac_cv_prog_gcc=yes
1000
 
else
1001
 
  ac_cv_prog_gcc=no
1002
 
fi
1003
 
fi
1004
 
 
1005
 
echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1006
 
 
1007
 
if test $ac_cv_prog_gcc = yes; then
1008
 
  GCC=yes
1009
 
else
1010
 
  GCC=
1011
 
fi
1012
 
 
1013
 
ac_test_CFLAGS="${CFLAGS+set}"
1014
 
ac_save_CFLAGS="$CFLAGS"
1015
 
CFLAGS=
1016
 
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1017
 
echo "configure:1018: checking whether ${CC-cc} accepts -g" >&5
1018
 
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1019
 
  echo $ac_n "(cached) $ac_c" 1>&6
1020
 
else
1021
 
  echo 'void f(){}' > conftest.c
1022
 
if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1023
 
  ac_cv_prog_cc_g=yes
1024
 
else
1025
 
  ac_cv_prog_cc_g=no
1026
 
fi
1027
 
rm -f conftest*
1028
 
 
1029
 
fi
1030
 
 
1031
 
echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 
3411
 
 
3412
  ;
 
3413
  return 0;
 
3414
}
 
3415
_ACEOF
 
3416
rm -f conftest.$ac_objext
 
3417
if { (ac_try="$ac_compile"
 
3418
case "(($ac_try" in
 
3419
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3420
  *) ac_try_echo=$ac_try;;
 
3421
esac
 
3422
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3423
  (eval "$ac_compile") 2>conftest.er1
 
3424
  ac_status=$?
 
3425
  grep -v '^ *+' conftest.er1 >conftest.err
 
3426
  rm -f conftest.er1
 
3427
  cat conftest.err >&5
 
3428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3429
  (exit $ac_status); } && {
 
3430
         test -z "$ac_c_werror_flag" ||
 
3431
         test ! -s conftest.err
 
3432
       } && test -s conftest.$ac_objext; then
 
3433
  ac_compiler_gnu=yes
 
3434
else
 
3435
  echo "$as_me: failed program was:" >&5
 
3436
sed 's/^/| /' conftest.$ac_ext >&5
 
3437
 
 
3438
        ac_compiler_gnu=no
 
3439
fi
 
3440
 
 
3441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3442
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3443
 
 
3444
fi
 
3445
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3446
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3447
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3448
ac_test_CFLAGS=${CFLAGS+set}
 
3449
ac_save_CFLAGS=$CFLAGS
 
3450
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3451
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3452
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3453
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3454
else
 
3455
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3456
   ac_c_werror_flag=yes
 
3457
   ac_cv_prog_cc_g=no
 
3458
   CFLAGS="-g"
 
3459
   cat >conftest.$ac_ext <<_ACEOF
 
3460
/* confdefs.h.  */
 
3461
_ACEOF
 
3462
cat confdefs.h >>conftest.$ac_ext
 
3463
cat >>conftest.$ac_ext <<_ACEOF
 
3464
/* end confdefs.h.  */
 
3465
 
 
3466
int
 
3467
main ()
 
3468
{
 
3469
 
 
3470
  ;
 
3471
  return 0;
 
3472
}
 
3473
_ACEOF
 
3474
rm -f conftest.$ac_objext
 
3475
if { (ac_try="$ac_compile"
 
3476
case "(($ac_try" in
 
3477
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3478
  *) ac_try_echo=$ac_try;;
 
3479
esac
 
3480
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3481
  (eval "$ac_compile") 2>conftest.er1
 
3482
  ac_status=$?
 
3483
  grep -v '^ *+' conftest.er1 >conftest.err
 
3484
  rm -f conftest.er1
 
3485
  cat conftest.err >&5
 
3486
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3487
  (exit $ac_status); } && {
 
3488
         test -z "$ac_c_werror_flag" ||
 
3489
         test ! -s conftest.err
 
3490
       } && test -s conftest.$ac_objext; then
 
3491
  ac_cv_prog_cc_g=yes
 
3492
else
 
3493
  echo "$as_me: failed program was:" >&5
 
3494
sed 's/^/| /' conftest.$ac_ext >&5
 
3495
 
 
3496
        CFLAGS=""
 
3497
      cat >conftest.$ac_ext <<_ACEOF
 
3498
/* confdefs.h.  */
 
3499
_ACEOF
 
3500
cat confdefs.h >>conftest.$ac_ext
 
3501
cat >>conftest.$ac_ext <<_ACEOF
 
3502
/* end confdefs.h.  */
 
3503
 
 
3504
int
 
3505
main ()
 
3506
{
 
3507
 
 
3508
  ;
 
3509
  return 0;
 
3510
}
 
3511
_ACEOF
 
3512
rm -f conftest.$ac_objext
 
3513
if { (ac_try="$ac_compile"
 
3514
case "(($ac_try" in
 
3515
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3516
  *) ac_try_echo=$ac_try;;
 
3517
esac
 
3518
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3519
  (eval "$ac_compile") 2>conftest.er1
 
3520
  ac_status=$?
 
3521
  grep -v '^ *+' conftest.er1 >conftest.err
 
3522
  rm -f conftest.er1
 
3523
  cat conftest.err >&5
 
3524
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3525
  (exit $ac_status); } && {
 
3526
         test -z "$ac_c_werror_flag" ||
 
3527
         test ! -s conftest.err
 
3528
       } && test -s conftest.$ac_objext; then
 
3529
  :
 
3530
else
 
3531
  echo "$as_me: failed program was:" >&5
 
3532
sed 's/^/| /' conftest.$ac_ext >&5
 
3533
 
 
3534
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3535
         CFLAGS="-g"
 
3536
         cat >conftest.$ac_ext <<_ACEOF
 
3537
/* confdefs.h.  */
 
3538
_ACEOF
 
3539
cat confdefs.h >>conftest.$ac_ext
 
3540
cat >>conftest.$ac_ext <<_ACEOF
 
3541
/* end confdefs.h.  */
 
3542
 
 
3543
int
 
3544
main ()
 
3545
{
 
3546
 
 
3547
  ;
 
3548
  return 0;
 
3549
}
 
3550
_ACEOF
 
3551
rm -f conftest.$ac_objext
 
3552
if { (ac_try="$ac_compile"
 
3553
case "(($ac_try" in
 
3554
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3555
  *) ac_try_echo=$ac_try;;
 
3556
esac
 
3557
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3558
  (eval "$ac_compile") 2>conftest.er1
 
3559
  ac_status=$?
 
3560
  grep -v '^ *+' conftest.er1 >conftest.err
 
3561
  rm -f conftest.er1
 
3562
  cat conftest.err >&5
 
3563
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3564
  (exit $ac_status); } && {
 
3565
         test -z "$ac_c_werror_flag" ||
 
3566
         test ! -s conftest.err
 
3567
       } && test -s conftest.$ac_objext; then
 
3568
  ac_cv_prog_cc_g=yes
 
3569
else
 
3570
  echo "$as_me: failed program was:" >&5
 
3571
sed 's/^/| /' conftest.$ac_ext >&5
 
3572
 
 
3573
 
 
3574
fi
 
3575
 
 
3576
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3577
fi
 
3578
 
 
3579
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3580
fi
 
3581
 
 
3582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3583
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3584
fi
 
3585
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3586
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
1032
3587
if test "$ac_test_CFLAGS" = set; then
1033
 
  CFLAGS="$ac_save_CFLAGS"
 
3588
  CFLAGS=$ac_save_CFLAGS
1034
3589
elif test $ac_cv_prog_cc_g = yes; then
1035
3590
  if test "$GCC" = yes; then
1036
3591
    CFLAGS="-g -O2"
1044
3599
    CFLAGS=
1045
3600
  fi
1046
3601
fi
1047
 
 
1048
 
for ac_prog in $CCC c++ g++ gcc CC cxx cc++ cl
 
3602
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3603
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3604
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3605
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3606
else
 
3607
  ac_cv_prog_cc_c89=no
 
3608
ac_save_CC=$CC
 
3609
cat >conftest.$ac_ext <<_ACEOF
 
3610
/* confdefs.h.  */
 
3611
_ACEOF
 
3612
cat confdefs.h >>conftest.$ac_ext
 
3613
cat >>conftest.$ac_ext <<_ACEOF
 
3614
/* end confdefs.h.  */
 
3615
#include <stdarg.h>
 
3616
#include <stdio.h>
 
3617
#include <sys/types.h>
 
3618
#include <sys/stat.h>
 
3619
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3620
struct buf { int x; };
 
3621
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3622
static char *e (p, i)
 
3623
     char **p;
 
3624
     int i;
 
3625
{
 
3626
  return p[i];
 
3627
}
 
3628
static char *f (char * (*g) (char **, int), char **p, ...)
 
3629
{
 
3630
  char *s;
 
3631
  va_list v;
 
3632
  va_start (v,p);
 
3633
  s = g (p, va_arg (v,int));
 
3634
  va_end (v);
 
3635
  return s;
 
3636
}
 
3637
 
 
3638
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3639
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3640
   These don't provoke an error unfortunately, instead are silently treated
 
3641
   as 'x'.  The following induces an error, until -std is added to get
 
3642
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3643
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3644
   that's true only with -std.  */
 
3645
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3646
 
 
3647
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3648
   inside strings and character constants.  */
 
3649
#define FOO(x) 'x'
 
3650
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3651
 
 
3652
int test (int i, double x);
 
3653
struct s1 {int (*f) (int a);};
 
3654
struct s2 {int (*f) (double a);};
 
3655
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3656
int argc;
 
3657
char **argv;
 
3658
int
 
3659
main ()
 
3660
{
 
3661
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3662
  ;
 
3663
  return 0;
 
3664
}
 
3665
_ACEOF
 
3666
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3667
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1049
3668
do
1050
 
# Extract the first word of "$ac_prog", so it can be a program name with args.
1051
 
set dummy $ac_prog; ac_word=$2
1052
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1053
 
echo "configure:1054: checking for $ac_word" >&5
1054
 
if eval "test \"`echo '$''{'ac_cv_prog_CXX'+set}'`\" = set"; then
1055
 
  echo $ac_n "(cached) $ac_c" 1>&6
1056
 
else
1057
 
  if test -n "$CXX"; then
1058
 
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1059
 
else
1060
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1061
 
  ac_dummy="$PATH"
1062
 
  for ac_dir in $ac_dummy; do
1063
 
    test -z "$ac_dir" && ac_dir=.
1064
 
    if test -f $ac_dir/$ac_word; then
1065
 
      ac_cv_prog_CXX="$ac_prog"
1066
 
      break
1067
 
    fi
1068
 
  done
1069
 
  IFS="$ac_save_ifs"
1070
 
fi
1071
 
fi
1072
 
CXX="$ac_cv_prog_CXX"
1073
 
if test -n "$CXX"; then
1074
 
  echo "$ac_t""$CXX" 1>&6
1075
 
else
1076
 
  echo "$ac_t""no" 1>&6
1077
 
fi
1078
 
 
1079
 
test -n "$CXX" && break
 
3669
  CC="$ac_save_CC $ac_arg"
 
3670
  rm -f conftest.$ac_objext
 
3671
if { (ac_try="$ac_compile"
 
3672
case "(($ac_try" in
 
3673
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3674
  *) ac_try_echo=$ac_try;;
 
3675
esac
 
3676
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3677
  (eval "$ac_compile") 2>conftest.er1
 
3678
  ac_status=$?
 
3679
  grep -v '^ *+' conftest.er1 >conftest.err
 
3680
  rm -f conftest.er1
 
3681
  cat conftest.err >&5
 
3682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3683
  (exit $ac_status); } && {
 
3684
         test -z "$ac_c_werror_flag" ||
 
3685
         test ! -s conftest.err
 
3686
       } && test -s conftest.$ac_objext; then
 
3687
  ac_cv_prog_cc_c89=$ac_arg
 
3688
else
 
3689
  echo "$as_me: failed program was:" >&5
 
3690
sed 's/^/| /' conftest.$ac_ext >&5
 
3691
 
 
3692
 
 
3693
fi
 
3694
 
 
3695
rm -f core conftest.err conftest.$ac_objext
 
3696
  test "x$ac_cv_prog_cc_c89" != "xno" && break
1080
3697
done
1081
 
test -n "$CXX" || CXX="gcc"
1082
 
 
1083
 
 
1084
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1085
 
echo "configure:1086: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) works" >&5
1086
 
 
1087
 
ac_ext=C
1088
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1089
 
ac_cpp='$CXXCPP $CPPFLAGS'
1090
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1091
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1092
 
cross_compiling=$ac_cv_prog_cxx_cross
1093
 
 
1094
 
cat > conftest.$ac_ext << EOF
1095
 
 
1096
 
#line 1097 "configure"
1097
 
#include "confdefs.h"
1098
 
 
1099
 
int main(){return(0);}
1100
 
EOF
1101
 
if { (eval echo configure:1102: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1102
 
  ac_cv_prog_cxx_works=yes
1103
 
  # If we can't run a trivial program, we are probably using a cross compiler.
1104
 
  if (./conftest; exit) 2>/dev/null; then
1105
 
    ac_cv_prog_cxx_cross=no
1106
 
  else
1107
 
    ac_cv_prog_cxx_cross=yes
1108
 
  fi
1109
 
else
1110
 
  echo "configure: failed program was:" >&5
1111
 
  cat conftest.$ac_ext >&5
1112
 
  ac_cv_prog_cxx_works=no
 
3698
rm -f conftest.$ac_ext
 
3699
CC=$ac_save_CC
 
3700
 
1113
3701
fi
1114
 
rm -fr conftest*
 
3702
# AC_CACHE_VAL
 
3703
case "x$ac_cv_prog_cc_c89" in
 
3704
  x)
 
3705
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3706
echo "${ECHO_T}none needed" >&6; } ;;
 
3707
  xno)
 
3708
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3709
echo "${ECHO_T}unsupported" >&6; } ;;
 
3710
  *)
 
3711
    CC="$CC $ac_cv_prog_cc_c89"
 
3712
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3713
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3714
esac
 
3715
 
 
3716
 
1115
3717
ac_ext=c
1116
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1117
3718
ac_cpp='$CPP $CPPFLAGS'
1118
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1119
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1120
 
cross_compiling=$ac_cv_prog_cc_cross
1121
 
 
1122
 
echo "$ac_t""$ac_cv_prog_cxx_works" 1>&6
1123
 
if test $ac_cv_prog_cxx_works = no; then
1124
 
  { echo "configure: error: installation or configuration problem: C++ compiler cannot create executables." 1>&2; exit 1; }
1125
 
fi
1126
 
echo $ac_n "checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1127
 
echo "configure:1128: checking whether the C++ compiler ($CXX $CXXFLAGS $LDFLAGS) is a cross-compiler" >&5
1128
 
echo "$ac_t""$ac_cv_prog_cxx_cross" 1>&6
1129
 
cross_compiling=$ac_cv_prog_cxx_cross
1130
 
 
1131
 
echo $ac_n "checking whether we are using GNU C++""... $ac_c" 1>&6
1132
 
echo "configure:1133: checking whether we are using GNU C++" >&5
1133
 
if eval "test \"`echo '$''{'ac_cv_prog_gxx'+set}'`\" = set"; then
1134
 
  echo $ac_n "(cached) $ac_c" 1>&6
1135
 
else
1136
 
  cat > conftest.C <<EOF
1137
 
#ifdef __GNUC__
1138
 
  yes;
1139
 
#endif
1140
 
EOF
1141
 
if { ac_try='${CXX-g++} -E conftest.C'; { (eval echo configure:1142: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1142
 
  ac_cv_prog_gxx=yes
1143
 
else
1144
 
  ac_cv_prog_gxx=no
1145
 
fi
1146
 
fi
1147
 
 
1148
 
echo "$ac_t""$ac_cv_prog_gxx" 1>&6
1149
 
 
1150
 
if test $ac_cv_prog_gxx = yes; then
1151
 
  GXX=yes
1152
 
else
1153
 
  GXX=
1154
 
fi
1155
 
 
1156
 
ac_test_CXXFLAGS="${CXXFLAGS+set}"
1157
 
ac_save_CXXFLAGS="$CXXFLAGS"
1158
 
CXXFLAGS=
1159
 
echo $ac_n "checking whether ${CXX-g++} accepts -g""... $ac_c" 1>&6
1160
 
echo "configure:1161: checking whether ${CXX-g++} accepts -g" >&5
1161
 
if eval "test \"`echo '$''{'ac_cv_prog_cxx_g'+set}'`\" = set"; then
1162
 
  echo $ac_n "(cached) $ac_c" 1>&6
1163
 
else
1164
 
  echo 'void f(){}' > conftest.cc
1165
 
if test -z "`${CXX-g++} -g -c conftest.cc 2>&1`"; then
1166
 
  ac_cv_prog_cxx_g=yes
1167
 
else
1168
 
  ac_cv_prog_cxx_g=no
1169
 
fi
1170
 
rm -f conftest*
1171
 
 
1172
 
fi
1173
 
 
1174
 
echo "$ac_t""$ac_cv_prog_cxx_g" 1>&6
1175
 
if test "$ac_test_CXXFLAGS" = set; then
1176
 
  CXXFLAGS="$ac_save_CXXFLAGS"
1177
 
elif test $ac_cv_prog_cxx_g = yes; then
1178
 
  if test "$GXX" = yes; then
1179
 
    CXXFLAGS="-g -O2"
1180
 
  else
1181
 
    CXXFLAGS="-g"
1182
 
  fi
1183
 
else
1184
 
  if test "$GXX" = yes; then
1185
 
    CXXFLAGS="-O2"
1186
 
  else
1187
 
    CXXFLAGS=
1188
 
  fi
1189
 
fi
1190
 
 
1191
 
# Extract the first word of "ranlib", so it can be a program name with args.
1192
 
set dummy ranlib; ac_word=$2
1193
 
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194
 
echo "configure:1195: checking for $ac_word" >&5
1195
 
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1196
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
3719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3722
 
 
3723
depcc="$CC"   am_compiler_list=
 
3724
 
 
3725
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3726
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3727
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3728
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3729
else
 
3730
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3731
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3732
  # making bogus files that we don't know about and never remove.  For
 
3733
  # instance it was reported that on HP-UX the gcc test will end up
 
3734
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3735
  # in D'.
 
3736
  mkdir conftest.dir
 
3737
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3738
  # using a relative directory.
 
3739
  cp "$am_depcomp" conftest.dir
 
3740
  cd conftest.dir
 
3741
  # We will build objects and dependencies in a subdirectory because
 
3742
  # it helps to detect inapplicable dependency modes.  For instance
 
3743
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3744
  # side effect of compilation, but ICC will put the dependencies in
 
3745
  # the current directory while Tru64 will put them in the object
 
3746
  # directory.
 
3747
  mkdir sub
 
3748
 
 
3749
  am_cv_CC_dependencies_compiler_type=none
 
3750
  if test "$am_compiler_list" = ""; then
 
3751
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3752
  fi
 
3753
  for depmode in $am_compiler_list; do
 
3754
    # Setup a source with many dependencies, because some compilers
 
3755
    # like to wrap large dependency lists on column 80 (with \), and
 
3756
    # we should not choose a depcomp mode which is confused by this.
 
3757
    #
 
3758
    # We need to recreate these files for each test, as the compiler may
 
3759
    # overwrite some of them when testing with obscure command lines.
 
3760
    # This happens at least with the AIX C compiler.
 
3761
    : > sub/conftest.c
 
3762
    for i in 1 2 3 4 5 6; do
 
3763
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3764
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3765
      # Solaris 8's {/usr,}/bin/sh.
 
3766
      touch sub/conftst$i.h
 
3767
    done
 
3768
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3769
 
 
3770
    case $depmode in
 
3771
    nosideeffect)
 
3772
      # after this tag, mechanisms are not by side-effect, so they'll
 
3773
      # only be used when explicitly requested
 
3774
      if test "x$enable_dependency_tracking" = xyes; then
 
3775
        continue
 
3776
      else
 
3777
        break
 
3778
      fi
 
3779
      ;;
 
3780
    none) break ;;
 
3781
    esac
 
3782
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3783
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3784
    # handle `-M -o', and we need to detect this.
 
3785
    if depmode=$depmode \
 
3786
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3787
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3788
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3789
         >/dev/null 2>conftest.err &&
 
3790
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3791
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3792
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3793
      # icc doesn't choke on unknown options, it will just issue warnings
 
3794
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3795
      # that says an option was ignored or not supported.
 
3796
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3797
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3798
      # The diagnosis changed in icc 8.0:
 
3799
      #   icc: Command line remark: option '-MP' not supported
 
3800
      if (grep 'ignoring option' conftest.err ||
 
3801
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3802
        am_cv_CC_dependencies_compiler_type=$depmode
 
3803
        break
 
3804
      fi
 
3805
    fi
 
3806
  done
 
3807
 
 
3808
  cd ..
 
3809
  rm -rf conftest.dir
 
3810
else
 
3811
  am_cv_CC_dependencies_compiler_type=none
 
3812
fi
 
3813
 
 
3814
fi
 
3815
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3816
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3817
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3818
 
 
3819
 
 
3820
 
 
3821
if
 
3822
  test "x$enable_dependency_tracking" != xno \
 
3823
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3824
  am__fastdepCC_TRUE=
 
3825
  am__fastdepCC_FALSE='#'
 
3826
else
 
3827
  am__fastdepCC_TRUE='#'
 
3828
  am__fastdepCC_FALSE=
 
3829
fi
 
3830
 
 
3831
 
 
3832
if test -n "$ac_tool_prefix"; then
 
3833
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 
3834
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 
3835
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3836
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3837
if test "${ac_cv_prog_RANLIB+set}" = set; then
 
3838
  echo $ECHO_N "(cached) $ECHO_C" >&6
1197
3839
else
1198
3840
  if test -n "$RANLIB"; then
1199
3841
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1200
3842
else
1201
 
  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1202
 
  ac_dummy="$PATH"
1203
 
  for ac_dir in $ac_dummy; do
1204
 
    test -z "$ac_dir" && ac_dir=.
1205
 
    if test -f $ac_dir/$ac_word; then
1206
 
      ac_cv_prog_RANLIB="ranlib"
1207
 
      break
1208
 
    fi
1209
 
  done
1210
 
  IFS="$ac_save_ifs"
1211
 
  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1212
 
fi
1213
 
fi
1214
 
RANLIB="$ac_cv_prog_RANLIB"
 
3843
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3844
for as_dir in $PATH
 
3845
do
 
3846
  IFS=$as_save_IFS
 
3847
  test -z "$as_dir" && as_dir=.
 
3848
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3849
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3850
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 
3851
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3852
    break 2
 
3853
  fi
 
3854
done
 
3855
done
 
3856
IFS=$as_save_IFS
 
3857
 
 
3858
fi
 
3859
fi
 
3860
RANLIB=$ac_cv_prog_RANLIB
1215
3861
if test -n "$RANLIB"; then
1216
 
  echo "$ac_t""$RANLIB" 1>&6
1217
 
else
1218
 
  echo "$ac_t""no" 1>&6
1219
 
fi
1220
 
 
1221
 
 
1222
 
  
1223
 
 
1224
 
  echo $ac_n "checking for debug""... $ac_c" 1>&6
1225
 
echo "configure:1226: checking for debug" >&5
1226
 
 
1227
 
  # Check whether --with-enable-debug or --without-enable-debug was given.
1228
 
if test "${with_enable_debug+set}" = set; then
1229
 
  withval="$with_enable_debug"
1230
 
  :
 
3862
  { echo "$as_me:$LINENO: result: $RANLIB" >&5
 
3863
echo "${ECHO_T}$RANLIB" >&6; }
 
3864
else
 
3865
  { echo "$as_me:$LINENO: result: no" >&5
 
3866
echo "${ECHO_T}no" >&6; }
 
3867
fi
 
3868
 
 
3869
 
 
3870
fi
 
3871
if test -z "$ac_cv_prog_RANLIB"; then
 
3872
  ac_ct_RANLIB=$RANLIB
 
3873
  # Extract the first word of "ranlib", so it can be a program name with args.
 
3874
set dummy ranlib; ac_word=$2
 
3875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3877
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 
3878
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3879
else
 
3880
  if test -n "$ac_ct_RANLIB"; then
 
3881
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 
3882
else
 
3883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3884
for as_dir in $PATH
 
3885
do
 
3886
  IFS=$as_save_IFS
 
3887
  test -z "$as_dir" && as_dir=.
 
3888
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3889
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3890
    ac_cv_prog_ac_ct_RANLIB="ranlib"
 
3891
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3892
    break 2
 
3893
  fi
 
3894
done
 
3895
done
 
3896
IFS=$as_save_IFS
 
3897
 
 
3898
fi
 
3899
fi
 
3900
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 
3901
if test -n "$ac_ct_RANLIB"; then
 
3902
  { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 
3903
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
 
3904
else
 
3905
  { echo "$as_me:$LINENO: result: no" >&5
 
3906
echo "${ECHO_T}no" >&6; }
 
3907
fi
 
3908
 
 
3909
  if test "x$ac_ct_RANLIB" = x; then
 
3910
    RANLIB=":"
 
3911
  else
 
3912
    case $cross_compiling:$ac_tool_warned in
 
3913
yes:)
 
3914
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3915
whose name does not start with the host triplet.  If you think this
 
3916
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3917
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3918
whose name does not start with the host triplet.  If you think this
 
3919
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3920
ac_tool_warned=yes ;;
 
3921
esac
 
3922
    RANLIB=$ac_ct_RANLIB
 
3923
  fi
 
3924
else
 
3925
  RANLIB="$ac_cv_prog_RANLIB"
 
3926
fi
 
3927
 
 
3928
 
 
3929
 
 
3930
 
 
3931
 
 
3932
  { echo "$as_me:$LINENO: checking for debug" >&5
 
3933
echo $ECHO_N "checking for debug... $ECHO_C" >&6; }
 
3934
 
 
3935
  # Check whether --enable-debug was given.
 
3936
if test "${enable_debug+set}" = set; then
 
3937
  enableval=$enable_debug;
1231
3938
fi
1232
3939
 
1233
3940
 
1236
3943
  enable_debug_save_CFLAGS="${CFLAGS}"
1237
3944
  enable_debug_save_CXXFLAGS="${CXXFLAGS}"
1238
3945
  enable_debug_save_LDFLAGS="${LDFLAGS}"
1239
 
  if test x"$with_enable_debug" = xyes; then
 
3946
  if test x"$enable_debug" = xyes; then
1240
3947
    CFLAGS="-g"
1241
3948
    CXXFLAGS="${CFLAGS}"
1242
3949
    LDFLAGS=""
1246
3953
    LDFLAGS="-fomit-frame-pointer -fno-math-errno"
1247
3954
  fi
1248
3955
 
1249
 
   cat > conftest.$ac_ext <<EOF
1250
 
#line 1251 "configure"
1251
 
#include "confdefs.h"
 
3956
   cat >conftest.$ac_ext <<_ACEOF
 
3957
/* confdefs.h.  */
 
3958
_ACEOF
 
3959
cat confdefs.h >>conftest.$ac_ext
 
3960
cat >>conftest.$ac_ext <<_ACEOF
 
3961
/* end confdefs.h.  */
1252
3962
#include <stdio.h>
1253
 
int main() {
1254
 
 
1255
 
; return 0; }
1256
 
EOF
1257
 
if { (eval echo configure:1258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1258
 
  rm -rf conftest*
1259
 
  
1260
 
    if test x"$with_enable_debug" = xyes; then
1261
 
      cat >> confdefs.h <<\EOF
1262
 
#define CODE_DEBUG  1
1263
 
EOF
1264
 
 
1265
 
      is_debug=yes
1266
 
    fi
1267
 
   
1268
 
else
1269
 
  echo "configure: failed program was:" >&5
1270
 
  cat conftest.$ac_ext >&5
1271
 
  rm -rf conftest*
1272
 
  
1273
 
    if test x"$with_enable_debug" = xyes; then
1274
 
      CFLAGS="${enable_debug_save_CFLAGS}"
1275
 
      CXXFLAGS="${enable_debug_save_CXXFLAGS}"
1276
 
      LDFLAGS="${enable_debug_save_LDFLAGS}"
1277
 
      cat >> confdefs.h <<\EOF
1278
 
#define CODE_DEBUG  1
1279
 
EOF
1280
 
 
1281
 
      is_debug=yes
1282
 
    else
1283
 
      CFLAGS="${enable_debug_save_CFLAGS}"
1284
 
      CXXFLAGS="${enable_debug_save_CXXFLAGS}"
1285
 
      LDFLAGS="${enable_debug_save_LDFLAGS}"
1286
 
    fi
1287
 
   
1288
 
fi
1289
 
rm -f conftest*
1290
 
  echo "$ac_t""$is_debug" 1>&6
1291
 
 
1292
 
 
1293
 
  ansi=
1294
 
  if test -z "$ansi"; then
1295
 
    msg="for C compiler warning flags"
1296
 
  else
1297
 
    msg="for C compiler warning and ANSI conformance flags"
1298
 
  fi
1299
 
  echo $ac_n "checking $msg""... $ac_c" 1>&6
1300
 
echo "configure:1301: checking $msg" >&5
1301
 
if eval "test \"`echo '$''{'vl_cv_prog_cc_warnings'+set}'`\" = set"; then
1302
 
  echo $ac_n "(cached) $ac_c" 1>&6
1303
 
else
1304
 
  
1305
 
    if test -n "$CC"; then
1306
 
      cat > conftest.c <<EOF
1307
 
int main(int argc, char **argv) { return 0; }
1308
 
EOF
1309
 
 
1310
 
            if test "$GCC" = "yes"; then
1311
 
        if test -z "$ansi"; then
1312
 
          vl_cv_prog_cc_warnings="-Wall"
1313
 
        else
1314
 
          vl_cv_prog_cc_warnings="-Wall -ansi -pedantic"
1315
 
        fi
1316
 
 
1317
 
                                                
1318
 
            elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
1319
 
           $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
1320
 
           test -f conftest.o; then
1321
 
        if test -z "$ansi"; then
1322
 
          vl_cv_prog_cc_warnings="-v"
1323
 
        else
1324
 
          vl_cv_prog_cc_warnings="-v -Xc"
1325
 
        fi
1326
 
 
1327
 
            elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
1328
 
           $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
1329
 
           test -f conftest.o; then
1330
 
        if test -z "$ansi"; then
1331
 
          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
1332
 
        else
1333
 
          vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
1334
 
        fi
1335
 
 
1336
 
            elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
1337
 
           $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
1338
 
           test -f conftest.o; then
1339
 
        if test -z "$ansi"; then
1340
 
          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
1341
 
        else
1342
 
          vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
1343
 
        fi
1344
 
 
1345
 
            elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
1346
 
           $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
1347
 
           test -f conftest.o; then
1348
 
        if test -z "$ansi"; then
1349
 
          vl_cv_prog_cc_warnings="-fullwarn"
1350
 
        else
1351
 
          vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
1352
 
        fi
1353
 
 
1354
 
            elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
1355
 
           $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
1356
 
           test -f conftest.o; then
1357
 
        if test -z "$ansi"; then
1358
 
          vl_cv_prog_cc_warnings="+w1"
1359
 
        else
1360
 
          vl_cv_prog_cc_warnings="+w1 -Aa"
1361
 
        fi
1362
 
 
1363
 
            elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
1364
 
           $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
1365
 
           test -f conftest.o; then
1366
 
        if test -z "$ansi"; then
1367
 
          vl_cv_prog_cc_warnings="-pvctl,fullmsg"
1368
 
        else
1369
 
          vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
1370
 
        fi
1371
 
 
1372
 
            elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
1373
 
           $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
1374
 
           test -f conftest.o; then
1375
 
        if test -z "$ansi"; then
1376
 
          vl_cv_prog_cc_warnings="-h msglevel 2"
1377
 
        else
1378
 
          vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
1379
 
        fi
1380
 
 
1381
 
      fi
1382
 
      rm -f conftest.*
1383
 
    fi
1384
 
    if test -n "$vl_cv_prog_cc_warnings"; then
1385
 
      CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
1386
 
      CXXFLAGS="$CXXFLAGS $vl_cv_prog_cc_warnings"
1387
 
    else
1388
 
      vl_cv_prog_cc_warnings="unknown"
1389
 
    fi
1390
 
  
1391
 
fi
1392
 
 
1393
 
echo "$ac_t""$vl_cv_prog_cc_warnings" 1>&6
1394
 
 
1395
 
 
1396
 
  
1397
 
 
1398
 
  echo $ac_n "checking for lua""... $ac_c" 1>&6
1399
 
echo "configure:1400: checking for lua" >&5
1400
 
 
1401
 
  # Check whether --with-lua-dir or --without-lua-dir was given.
 
3963
int
 
3964
main ()
 
3965
{
 
3966
 
 
3967
  ;
 
3968
  return 0;
 
3969
}
 
3970
_ACEOF
 
3971
rm -f conftest.$ac_objext conftest$ac_exeext
 
3972
if { (ac_try="$ac_link"
 
3973
case "(($ac_try" in
 
3974
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3975
  *) ac_try_echo=$ac_try;;
 
3976
esac
 
3977
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3978
  (eval "$ac_link") 2>conftest.er1
 
3979
  ac_status=$?
 
3980
  grep -v '^ *+' conftest.er1 >conftest.err
 
3981
  rm -f conftest.er1
 
3982
  cat conftest.err >&5
 
3983
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3984
  (exit $ac_status); } && {
 
3985
         test -z "$ac_c_werror_flag" ||
 
3986
         test ! -s conftest.err
 
3987
       } && test -s conftest$ac_exeext &&
 
3988
       $as_test_x conftest$ac_exeext; then
 
3989
 
 
3990
    if test x"$enable_debug" = xyes; then
 
3991
      cat >>confdefs.h <<\_ACEOF
 
3992
#define CODE_DEBUG  1
 
3993
_ACEOF
 
3994
 
 
3995
      is_debug=yes
 
3996
    fi
 
3997
 
 
3998
else
 
3999
  echo "$as_me: failed program was:" >&5
 
4000
sed 's/^/| /' conftest.$ac_ext >&5
 
4001
 
 
4002
 
 
4003
    if test x"$enable_debug" = xyes; then
 
4004
      CFLAGS="${enable_debug_save_CFLAGS}"
 
4005
      CXXFLAGS="${enable_debug_save_CXXFLAGS}"
 
4006
      LDFLAGS="${enable_debug_save_LDFLAGS}"
 
4007
      cat >>confdefs.h <<\_ACEOF
 
4008
#define CODE_DEBUG  1
 
4009
_ACEOF
 
4010
 
 
4011
      is_debug=yes
 
4012
    else
 
4013
      CFLAGS="${enable_debug_save_CFLAGS}"
 
4014
      CXXFLAGS="${enable_debug_save_CXXFLAGS}"
 
4015
      LDFLAGS="${enable_debug_save_LDFLAGS}"
 
4016
    fi
 
4017
 
 
4018
fi
 
4019
 
 
4020
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4021
      conftest$ac_exeext conftest.$ac_ext
 
4022
  { echo "$as_me:$LINENO: result: $is_debug" >&5
 
4023
echo "${ECHO_T}$is_debug" >&6; }
 
4024
 
 
4025
 
 
4026
# Checks for libraries.
 
4027
 
 
4028
# Checks for header files.
 
4029
 
 
4030
 
 
4031
 
 
4032
 
 
4033
 
 
4034
ac_header_dirent=no
 
4035
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
 
4036
  as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
 
4037
{ echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
 
4038
echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
 
4039
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4040
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4041
else
 
4042
  cat >conftest.$ac_ext <<_ACEOF
 
4043
/* confdefs.h.  */
 
4044
_ACEOF
 
4045
cat confdefs.h >>conftest.$ac_ext
 
4046
cat >>conftest.$ac_ext <<_ACEOF
 
4047
/* end confdefs.h.  */
 
4048
#include <sys/types.h>
 
4049
#include <$ac_hdr>
 
4050
 
 
4051
int
 
4052
main ()
 
4053
{
 
4054
if ((DIR *) 0)
 
4055
return 0;
 
4056
  ;
 
4057
  return 0;
 
4058
}
 
4059
_ACEOF
 
4060
rm -f conftest.$ac_objext
 
4061
if { (ac_try="$ac_compile"
 
4062
case "(($ac_try" in
 
4063
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4064
  *) ac_try_echo=$ac_try;;
 
4065
esac
 
4066
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4067
  (eval "$ac_compile") 2>conftest.er1
 
4068
  ac_status=$?
 
4069
  grep -v '^ *+' conftest.er1 >conftest.err
 
4070
  rm -f conftest.er1
 
4071
  cat conftest.err >&5
 
4072
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4073
  (exit $ac_status); } && {
 
4074
         test -z "$ac_c_werror_flag" ||
 
4075
         test ! -s conftest.err
 
4076
       } && test -s conftest.$ac_objext; then
 
4077
  eval "$as_ac_Header=yes"
 
4078
else
 
4079
  echo "$as_me: failed program was:" >&5
 
4080
sed 's/^/| /' conftest.$ac_ext >&5
 
4081
 
 
4082
        eval "$as_ac_Header=no"
 
4083
fi
 
4084
 
 
4085
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4086
fi
 
4087
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4088
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4089
echo "${ECHO_T}$ac_res" >&6; }
 
4090
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4091
  cat >>confdefs.h <<_ACEOF
 
4092
#define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
 
4093
_ACEOF
 
4094
 
 
4095
ac_header_dirent=$ac_hdr; break
 
4096
fi
 
4097
 
 
4098
done
 
4099
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
 
4100
if test $ac_header_dirent = dirent.h; then
 
4101
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
4102
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
4103
if test "${ac_cv_search_opendir+set}" = set; then
 
4104
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4105
else
 
4106
  ac_func_search_save_LIBS=$LIBS
 
4107
cat >conftest.$ac_ext <<_ACEOF
 
4108
/* confdefs.h.  */
 
4109
_ACEOF
 
4110
cat confdefs.h >>conftest.$ac_ext
 
4111
cat >>conftest.$ac_ext <<_ACEOF
 
4112
/* end confdefs.h.  */
 
4113
 
 
4114
/* Override any GCC internal prototype to avoid an error.
 
4115
   Use char because int might match the return type of a GCC
 
4116
   builtin and then its argument prototype would still apply.  */
 
4117
#ifdef __cplusplus
 
4118
extern "C"
 
4119
#endif
 
4120
char opendir ();
 
4121
int
 
4122
main ()
 
4123
{
 
4124
return opendir ();
 
4125
  ;
 
4126
  return 0;
 
4127
}
 
4128
_ACEOF
 
4129
for ac_lib in '' dir; do
 
4130
  if test -z "$ac_lib"; then
 
4131
    ac_res="none required"
 
4132
  else
 
4133
    ac_res=-l$ac_lib
 
4134
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4135
  fi
 
4136
  rm -f conftest.$ac_objext conftest$ac_exeext
 
4137
if { (ac_try="$ac_link"
 
4138
case "(($ac_try" in
 
4139
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4140
  *) ac_try_echo=$ac_try;;
 
4141
esac
 
4142
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4143
  (eval "$ac_link") 2>conftest.er1
 
4144
  ac_status=$?
 
4145
  grep -v '^ *+' conftest.er1 >conftest.err
 
4146
  rm -f conftest.er1
 
4147
  cat conftest.err >&5
 
4148
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4149
  (exit $ac_status); } && {
 
4150
         test -z "$ac_c_werror_flag" ||
 
4151
         test ! -s conftest.err
 
4152
       } && test -s conftest$ac_exeext &&
 
4153
       $as_test_x conftest$ac_exeext; then
 
4154
  ac_cv_search_opendir=$ac_res
 
4155
else
 
4156
  echo "$as_me: failed program was:" >&5
 
4157
sed 's/^/| /' conftest.$ac_ext >&5
 
4158
 
 
4159
 
 
4160
fi
 
4161
 
 
4162
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4163
      conftest$ac_exeext
 
4164
  if test "${ac_cv_search_opendir+set}" = set; then
 
4165
  break
 
4166
fi
 
4167
done
 
4168
if test "${ac_cv_search_opendir+set}" = set; then
 
4169
  :
 
4170
else
 
4171
  ac_cv_search_opendir=no
 
4172
fi
 
4173
rm conftest.$ac_ext
 
4174
LIBS=$ac_func_search_save_LIBS
 
4175
fi
 
4176
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
4177
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
4178
ac_res=$ac_cv_search_opendir
 
4179
if test "$ac_res" != no; then
 
4180
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4181
 
 
4182
fi
 
4183
 
 
4184
else
 
4185
  { echo "$as_me:$LINENO: checking for library containing opendir" >&5
 
4186
echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
 
4187
if test "${ac_cv_search_opendir+set}" = set; then
 
4188
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4189
else
 
4190
  ac_func_search_save_LIBS=$LIBS
 
4191
cat >conftest.$ac_ext <<_ACEOF
 
4192
/* confdefs.h.  */
 
4193
_ACEOF
 
4194
cat confdefs.h >>conftest.$ac_ext
 
4195
cat >>conftest.$ac_ext <<_ACEOF
 
4196
/* end confdefs.h.  */
 
4197
 
 
4198
/* Override any GCC internal prototype to avoid an error.
 
4199
   Use char because int might match the return type of a GCC
 
4200
   builtin and then its argument prototype would still apply.  */
 
4201
#ifdef __cplusplus
 
4202
extern "C"
 
4203
#endif
 
4204
char opendir ();
 
4205
int
 
4206
main ()
 
4207
{
 
4208
return opendir ();
 
4209
  ;
 
4210
  return 0;
 
4211
}
 
4212
_ACEOF
 
4213
for ac_lib in '' x; do
 
4214
  if test -z "$ac_lib"; then
 
4215
    ac_res="none required"
 
4216
  else
 
4217
    ac_res=-l$ac_lib
 
4218
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
4219
  fi
 
4220
  rm -f conftest.$ac_objext conftest$ac_exeext
 
4221
if { (ac_try="$ac_link"
 
4222
case "(($ac_try" in
 
4223
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4224
  *) ac_try_echo=$ac_try;;
 
4225
esac
 
4226
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4227
  (eval "$ac_link") 2>conftest.er1
 
4228
  ac_status=$?
 
4229
  grep -v '^ *+' conftest.er1 >conftest.err
 
4230
  rm -f conftest.er1
 
4231
  cat conftest.err >&5
 
4232
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4233
  (exit $ac_status); } && {
 
4234
         test -z "$ac_c_werror_flag" ||
 
4235
         test ! -s conftest.err
 
4236
       } && test -s conftest$ac_exeext &&
 
4237
       $as_test_x conftest$ac_exeext; then
 
4238
  ac_cv_search_opendir=$ac_res
 
4239
else
 
4240
  echo "$as_me: failed program was:" >&5
 
4241
sed 's/^/| /' conftest.$ac_ext >&5
 
4242
 
 
4243
 
 
4244
fi
 
4245
 
 
4246
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
4247
      conftest$ac_exeext
 
4248
  if test "${ac_cv_search_opendir+set}" = set; then
 
4249
  break
 
4250
fi
 
4251
done
 
4252
if test "${ac_cv_search_opendir+set}" = set; then
 
4253
  :
 
4254
else
 
4255
  ac_cv_search_opendir=no
 
4256
fi
 
4257
rm conftest.$ac_ext
 
4258
LIBS=$ac_func_search_save_LIBS
 
4259
fi
 
4260
{ echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
 
4261
echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
 
4262
ac_res=$ac_cv_search_opendir
 
4263
if test "$ac_res" != no; then
 
4264
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
 
4265
 
 
4266
fi
 
4267
 
 
4268
fi
 
4269
 
 
4270
ac_ext=c
 
4271
ac_cpp='$CPP $CPPFLAGS'
 
4272
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4273
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4274
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4275
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
4276
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
4277
# On Suns, sometimes $CPP names a directory.
 
4278
if test -n "$CPP" && test -d "$CPP"; then
 
4279
  CPP=
 
4280
fi
 
4281
if test -z "$CPP"; then
 
4282
  if test "${ac_cv_prog_CPP+set}" = set; then
 
4283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4284
else
 
4285
      # Double quotes because CPP needs to be expanded
 
4286
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
4287
    do
 
4288
      ac_preproc_ok=false
 
4289
for ac_c_preproc_warn_flag in '' yes
 
4290
do
 
4291
  # Use a header file that comes with gcc, so configuring glibc
 
4292
  # with a fresh cross-compiler works.
 
4293
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4294
  # <limits.h> exists even on freestanding compilers.
 
4295
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4296
  # not just through cpp. "Syntax error" is here to catch this case.
 
4297
  cat >conftest.$ac_ext <<_ACEOF
 
4298
/* confdefs.h.  */
 
4299
_ACEOF
 
4300
cat confdefs.h >>conftest.$ac_ext
 
4301
cat >>conftest.$ac_ext <<_ACEOF
 
4302
/* end confdefs.h.  */
 
4303
#ifdef __STDC__
 
4304
# include <limits.h>
 
4305
#else
 
4306
# include <assert.h>
 
4307
#endif
 
4308
                     Syntax error
 
4309
_ACEOF
 
4310
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4311
case "(($ac_try" in
 
4312
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4313
  *) ac_try_echo=$ac_try;;
 
4314
esac
 
4315
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4316
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4317
  ac_status=$?
 
4318
  grep -v '^ *+' conftest.er1 >conftest.err
 
4319
  rm -f conftest.er1
 
4320
  cat conftest.err >&5
 
4321
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4322
  (exit $ac_status); } >/dev/null && {
 
4323
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4324
         test ! -s conftest.err
 
4325
       }; then
 
4326
  :
 
4327
else
 
4328
  echo "$as_me: failed program was:" >&5
 
4329
sed 's/^/| /' conftest.$ac_ext >&5
 
4330
 
 
4331
  # Broken: fails on valid input.
 
4332
continue
 
4333
fi
 
4334
 
 
4335
rm -f conftest.err conftest.$ac_ext
 
4336
 
 
4337
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4338
  # can be detected and how.
 
4339
  cat >conftest.$ac_ext <<_ACEOF
 
4340
/* confdefs.h.  */
 
4341
_ACEOF
 
4342
cat confdefs.h >>conftest.$ac_ext
 
4343
cat >>conftest.$ac_ext <<_ACEOF
 
4344
/* end confdefs.h.  */
 
4345
#include <ac_nonexistent.h>
 
4346
_ACEOF
 
4347
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4348
case "(($ac_try" in
 
4349
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4350
  *) ac_try_echo=$ac_try;;
 
4351
esac
 
4352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4353
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4354
  ac_status=$?
 
4355
  grep -v '^ *+' conftest.er1 >conftest.err
 
4356
  rm -f conftest.er1
 
4357
  cat conftest.err >&5
 
4358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4359
  (exit $ac_status); } >/dev/null && {
 
4360
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4361
         test ! -s conftest.err
 
4362
       }; then
 
4363
  # Broken: success on invalid input.
 
4364
continue
 
4365
else
 
4366
  echo "$as_me: failed program was:" >&5
 
4367
sed 's/^/| /' conftest.$ac_ext >&5
 
4368
 
 
4369
  # Passes both tests.
 
4370
ac_preproc_ok=:
 
4371
break
 
4372
fi
 
4373
 
 
4374
rm -f conftest.err conftest.$ac_ext
 
4375
 
 
4376
done
 
4377
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4378
rm -f conftest.err conftest.$ac_ext
 
4379
if $ac_preproc_ok; then
 
4380
  break
 
4381
fi
 
4382
 
 
4383
    done
 
4384
    ac_cv_prog_CPP=$CPP
 
4385
 
 
4386
fi
 
4387
  CPP=$ac_cv_prog_CPP
 
4388
else
 
4389
  ac_cv_prog_CPP=$CPP
 
4390
fi
 
4391
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4392
echo "${ECHO_T}$CPP" >&6; }
 
4393
ac_preproc_ok=false
 
4394
for ac_c_preproc_warn_flag in '' yes
 
4395
do
 
4396
  # Use a header file that comes with gcc, so configuring glibc
 
4397
  # with a fresh cross-compiler works.
 
4398
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4399
  # <limits.h> exists even on freestanding compilers.
 
4400
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4401
  # not just through cpp. "Syntax error" is here to catch this case.
 
4402
  cat >conftest.$ac_ext <<_ACEOF
 
4403
/* confdefs.h.  */
 
4404
_ACEOF
 
4405
cat confdefs.h >>conftest.$ac_ext
 
4406
cat >>conftest.$ac_ext <<_ACEOF
 
4407
/* end confdefs.h.  */
 
4408
#ifdef __STDC__
 
4409
# include <limits.h>
 
4410
#else
 
4411
# include <assert.h>
 
4412
#endif
 
4413
                     Syntax error
 
4414
_ACEOF
 
4415
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4416
case "(($ac_try" in
 
4417
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4418
  *) ac_try_echo=$ac_try;;
 
4419
esac
 
4420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4421
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4422
  ac_status=$?
 
4423
  grep -v '^ *+' conftest.er1 >conftest.err
 
4424
  rm -f conftest.er1
 
4425
  cat conftest.err >&5
 
4426
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4427
  (exit $ac_status); } >/dev/null && {
 
4428
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4429
         test ! -s conftest.err
 
4430
       }; then
 
4431
  :
 
4432
else
 
4433
  echo "$as_me: failed program was:" >&5
 
4434
sed 's/^/| /' conftest.$ac_ext >&5
 
4435
 
 
4436
  # Broken: fails on valid input.
 
4437
continue
 
4438
fi
 
4439
 
 
4440
rm -f conftest.err conftest.$ac_ext
 
4441
 
 
4442
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4443
  # can be detected and how.
 
4444
  cat >conftest.$ac_ext <<_ACEOF
 
4445
/* confdefs.h.  */
 
4446
_ACEOF
 
4447
cat confdefs.h >>conftest.$ac_ext
 
4448
cat >>conftest.$ac_ext <<_ACEOF
 
4449
/* end confdefs.h.  */
 
4450
#include <ac_nonexistent.h>
 
4451
_ACEOF
 
4452
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4453
case "(($ac_try" in
 
4454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4455
  *) ac_try_echo=$ac_try;;
 
4456
esac
 
4457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4458
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4459
  ac_status=$?
 
4460
  grep -v '^ *+' conftest.er1 >conftest.err
 
4461
  rm -f conftest.er1
 
4462
  cat conftest.err >&5
 
4463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4464
  (exit $ac_status); } >/dev/null && {
 
4465
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4466
         test ! -s conftest.err
 
4467
       }; then
 
4468
  # Broken: success on invalid input.
 
4469
continue
 
4470
else
 
4471
  echo "$as_me: failed program was:" >&5
 
4472
sed 's/^/| /' conftest.$ac_ext >&5
 
4473
 
 
4474
  # Passes both tests.
 
4475
ac_preproc_ok=:
 
4476
break
 
4477
fi
 
4478
 
 
4479
rm -f conftest.err conftest.$ac_ext
 
4480
 
 
4481
done
 
4482
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4483
rm -f conftest.err conftest.$ac_ext
 
4484
if $ac_preproc_ok; then
 
4485
  :
 
4486
else
 
4487
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4488
See \`config.log' for more details." >&5
 
4489
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4490
See \`config.log' for more details." >&2;}
 
4491
   { (exit 1); exit 1; }; }
 
4492
fi
 
4493
 
 
4494
ac_ext=c
 
4495
ac_cpp='$CPP $CPPFLAGS'
 
4496
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4497
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4498
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4499
 
 
4500
 
 
4501
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4502
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4503
if test "${ac_cv_path_GREP+set}" = set; then
 
4504
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4505
else
 
4506
  # Extract the first word of "grep ggrep" to use in msg output
 
4507
if test -z "$GREP"; then
 
4508
set dummy grep ggrep; ac_prog_name=$2
 
4509
if test "${ac_cv_path_GREP+set}" = set; then
 
4510
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4511
else
 
4512
  ac_path_GREP_found=false
 
4513
# Loop through the user's path and test for each of PROGNAME-LIST
 
4514
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4515
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4516
do
 
4517
  IFS=$as_save_IFS
 
4518
  test -z "$as_dir" && as_dir=.
 
4519
  for ac_prog in grep ggrep; do
 
4520
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4521
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4522
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4523
    # Check for GNU ac_path_GREP and select it if it is found.
 
4524
  # Check for GNU $ac_path_GREP
 
4525
case `"$ac_path_GREP" --version 2>&1` in
 
4526
*GNU*)
 
4527
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4528
*)
 
4529
  ac_count=0
 
4530
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4531
  while :
 
4532
  do
 
4533
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4534
    mv "conftest.tmp" "conftest.in"
 
4535
    cp "conftest.in" "conftest.nl"
 
4536
    echo 'GREP' >> "conftest.nl"
 
4537
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4538
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4539
    ac_count=`expr $ac_count + 1`
 
4540
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4541
      # Best one so far, save it but keep looking for a better one
 
4542
      ac_cv_path_GREP="$ac_path_GREP"
 
4543
      ac_path_GREP_max=$ac_count
 
4544
    fi
 
4545
    # 10*(2^10) chars as input seems more than enough
 
4546
    test $ac_count -gt 10 && break
 
4547
  done
 
4548
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4549
esac
 
4550
 
 
4551
 
 
4552
    $ac_path_GREP_found && break 3
 
4553
  done
 
4554
done
 
4555
 
 
4556
done
 
4557
IFS=$as_save_IFS
 
4558
 
 
4559
 
 
4560
fi
 
4561
 
 
4562
GREP="$ac_cv_path_GREP"
 
4563
if test -z "$GREP"; then
 
4564
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4565
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4566
   { (exit 1); exit 1; }; }
 
4567
fi
 
4568
 
 
4569
else
 
4570
  ac_cv_path_GREP=$GREP
 
4571
fi
 
4572
 
 
4573
 
 
4574
fi
 
4575
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4576
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4577
 GREP="$ac_cv_path_GREP"
 
4578
 
 
4579
 
 
4580
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4581
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4582
if test "${ac_cv_path_EGREP+set}" = set; then
 
4583
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4584
else
 
4585
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4586
   then ac_cv_path_EGREP="$GREP -E"
 
4587
   else
 
4588
     # Extract the first word of "egrep" to use in msg output
 
4589
if test -z "$EGREP"; then
 
4590
set dummy egrep; ac_prog_name=$2
 
4591
if test "${ac_cv_path_EGREP+set}" = set; then
 
4592
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4593
else
 
4594
  ac_path_EGREP_found=false
 
4595
# Loop through the user's path and test for each of PROGNAME-LIST
 
4596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4597
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4598
do
 
4599
  IFS=$as_save_IFS
 
4600
  test -z "$as_dir" && as_dir=.
 
4601
  for ac_prog in egrep; do
 
4602
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4603
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4604
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4605
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4606
  # Check for GNU $ac_path_EGREP
 
4607
case `"$ac_path_EGREP" --version 2>&1` in
 
4608
*GNU*)
 
4609
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4610
*)
 
4611
  ac_count=0
 
4612
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4613
  while :
 
4614
  do
 
4615
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4616
    mv "conftest.tmp" "conftest.in"
 
4617
    cp "conftest.in" "conftest.nl"
 
4618
    echo 'EGREP' >> "conftest.nl"
 
4619
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4620
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4621
    ac_count=`expr $ac_count + 1`
 
4622
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4623
      # Best one so far, save it but keep looking for a better one
 
4624
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4625
      ac_path_EGREP_max=$ac_count
 
4626
    fi
 
4627
    # 10*(2^10) chars as input seems more than enough
 
4628
    test $ac_count -gt 10 && break
 
4629
  done
 
4630
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4631
esac
 
4632
 
 
4633
 
 
4634
    $ac_path_EGREP_found && break 3
 
4635
  done
 
4636
done
 
4637
 
 
4638
done
 
4639
IFS=$as_save_IFS
 
4640
 
 
4641
 
 
4642
fi
 
4643
 
 
4644
EGREP="$ac_cv_path_EGREP"
 
4645
if test -z "$EGREP"; then
 
4646
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4647
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4648
   { (exit 1); exit 1; }; }
 
4649
fi
 
4650
 
 
4651
else
 
4652
  ac_cv_path_EGREP=$EGREP
 
4653
fi
 
4654
 
 
4655
 
 
4656
   fi
 
4657
fi
 
4658
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4659
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4660
 EGREP="$ac_cv_path_EGREP"
 
4661
 
 
4662
 
 
4663
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4664
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4665
if test "${ac_cv_header_stdc+set}" = set; then
 
4666
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4667
else
 
4668
  cat >conftest.$ac_ext <<_ACEOF
 
4669
/* confdefs.h.  */
 
4670
_ACEOF
 
4671
cat confdefs.h >>conftest.$ac_ext
 
4672
cat >>conftest.$ac_ext <<_ACEOF
 
4673
/* end confdefs.h.  */
 
4674
#include <stdlib.h>
 
4675
#include <stdarg.h>
 
4676
#include <string.h>
 
4677
#include <float.h>
 
4678
 
 
4679
int
 
4680
main ()
 
4681
{
 
4682
 
 
4683
  ;
 
4684
  return 0;
 
4685
}
 
4686
_ACEOF
 
4687
rm -f conftest.$ac_objext
 
4688
if { (ac_try="$ac_compile"
 
4689
case "(($ac_try" in
 
4690
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4691
  *) ac_try_echo=$ac_try;;
 
4692
esac
 
4693
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4694
  (eval "$ac_compile") 2>conftest.er1
 
4695
  ac_status=$?
 
4696
  grep -v '^ *+' conftest.er1 >conftest.err
 
4697
  rm -f conftest.er1
 
4698
  cat conftest.err >&5
 
4699
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4700
  (exit $ac_status); } && {
 
4701
         test -z "$ac_c_werror_flag" ||
 
4702
         test ! -s conftest.err
 
4703
       } && test -s conftest.$ac_objext; then
 
4704
  ac_cv_header_stdc=yes
 
4705
else
 
4706
  echo "$as_me: failed program was:" >&5
 
4707
sed 's/^/| /' conftest.$ac_ext >&5
 
4708
 
 
4709
        ac_cv_header_stdc=no
 
4710
fi
 
4711
 
 
4712
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4713
 
 
4714
if test $ac_cv_header_stdc = yes; then
 
4715
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4716
  cat >conftest.$ac_ext <<_ACEOF
 
4717
/* confdefs.h.  */
 
4718
_ACEOF
 
4719
cat confdefs.h >>conftest.$ac_ext
 
4720
cat >>conftest.$ac_ext <<_ACEOF
 
4721
/* end confdefs.h.  */
 
4722
#include <string.h>
 
4723
 
 
4724
_ACEOF
 
4725
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4726
  $EGREP "memchr" >/dev/null 2>&1; then
 
4727
  :
 
4728
else
 
4729
  ac_cv_header_stdc=no
 
4730
fi
 
4731
rm -f conftest*
 
4732
 
 
4733
fi
 
4734
 
 
4735
if test $ac_cv_header_stdc = yes; then
 
4736
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4737
  cat >conftest.$ac_ext <<_ACEOF
 
4738
/* confdefs.h.  */
 
4739
_ACEOF
 
4740
cat confdefs.h >>conftest.$ac_ext
 
4741
cat >>conftest.$ac_ext <<_ACEOF
 
4742
/* end confdefs.h.  */
 
4743
#include <stdlib.h>
 
4744
 
 
4745
_ACEOF
 
4746
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4747
  $EGREP "free" >/dev/null 2>&1; then
 
4748
  :
 
4749
else
 
4750
  ac_cv_header_stdc=no
 
4751
fi
 
4752
rm -f conftest*
 
4753
 
 
4754
fi
 
4755
 
 
4756
if test $ac_cv_header_stdc = yes; then
 
4757
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4758
  if test "$cross_compiling" = yes; then
 
4759
  :
 
4760
else
 
4761
  cat >conftest.$ac_ext <<_ACEOF
 
4762
/* confdefs.h.  */
 
4763
_ACEOF
 
4764
cat confdefs.h >>conftest.$ac_ext
 
4765
cat >>conftest.$ac_ext <<_ACEOF
 
4766
/* end confdefs.h.  */
 
4767
#include <ctype.h>
 
4768
#include <stdlib.h>
 
4769
#if ((' ' & 0x0FF) == 0x020)
 
4770
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4771
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4772
#else
 
4773
# define ISLOWER(c) \
 
4774
                   (('a' <= (c) && (c) <= 'i') \
 
4775
                     || ('j' <= (c) && (c) <= 'r') \
 
4776
                     || ('s' <= (c) && (c) <= 'z'))
 
4777
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4778
#endif
 
4779
 
 
4780
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4781
int
 
4782
main ()
 
4783
{
 
4784
  int i;
 
4785
  for (i = 0; i < 256; i++)
 
4786
    if (XOR (islower (i), ISLOWER (i))
 
4787
        || toupper (i) != TOUPPER (i))
 
4788
      return 2;
 
4789
  return 0;
 
4790
}
 
4791
_ACEOF
 
4792
rm -f conftest$ac_exeext
 
4793
if { (ac_try="$ac_link"
 
4794
case "(($ac_try" in
 
4795
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4796
  *) ac_try_echo=$ac_try;;
 
4797
esac
 
4798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4799
  (eval "$ac_link") 2>&5
 
4800
  ac_status=$?
 
4801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4802
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4803
  { (case "(($ac_try" in
 
4804
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4805
  *) ac_try_echo=$ac_try;;
 
4806
esac
 
4807
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4808
  (eval "$ac_try") 2>&5
 
4809
  ac_status=$?
 
4810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4811
  (exit $ac_status); }; }; then
 
4812
  :
 
4813
else
 
4814
  echo "$as_me: program exited with status $ac_status" >&5
 
4815
echo "$as_me: failed program was:" >&5
 
4816
sed 's/^/| /' conftest.$ac_ext >&5
 
4817
 
 
4818
( exit $ac_status )
 
4819
ac_cv_header_stdc=no
 
4820
fi
 
4821
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4822
fi
 
4823
 
 
4824
 
 
4825
fi
 
4826
fi
 
4827
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4828
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4829
if test $ac_cv_header_stdc = yes; then
 
4830
 
 
4831
cat >>confdefs.h <<\_ACEOF
 
4832
#define STDC_HEADERS 1
 
4833
_ACEOF
 
4834
 
 
4835
fi
 
4836
 
 
4837
{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
 
4838
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
 
4839
if test "${ac_cv_header_sys_wait_h+set}" = set; then
 
4840
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4841
else
 
4842
  cat >conftest.$ac_ext <<_ACEOF
 
4843
/* confdefs.h.  */
 
4844
_ACEOF
 
4845
cat confdefs.h >>conftest.$ac_ext
 
4846
cat >>conftest.$ac_ext <<_ACEOF
 
4847
/* end confdefs.h.  */
 
4848
#include <sys/types.h>
 
4849
#include <sys/wait.h>
 
4850
#ifndef WEXITSTATUS
 
4851
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
 
4852
#endif
 
4853
#ifndef WIFEXITED
 
4854
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
 
4855
#endif
 
4856
 
 
4857
int
 
4858
main ()
 
4859
{
 
4860
  int s;
 
4861
  wait (&s);
 
4862
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
 
4863
  ;
 
4864
  return 0;
 
4865
}
 
4866
_ACEOF
 
4867
rm -f conftest.$ac_objext
 
4868
if { (ac_try="$ac_compile"
 
4869
case "(($ac_try" in
 
4870
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4871
  *) ac_try_echo=$ac_try;;
 
4872
esac
 
4873
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4874
  (eval "$ac_compile") 2>conftest.er1
 
4875
  ac_status=$?
 
4876
  grep -v '^ *+' conftest.er1 >conftest.err
 
4877
  rm -f conftest.er1
 
4878
  cat conftest.err >&5
 
4879
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4880
  (exit $ac_status); } && {
 
4881
         test -z "$ac_c_werror_flag" ||
 
4882
         test ! -s conftest.err
 
4883
       } && test -s conftest.$ac_objext; then
 
4884
  ac_cv_header_sys_wait_h=yes
 
4885
else
 
4886
  echo "$as_me: failed program was:" >&5
 
4887
sed 's/^/| /' conftest.$ac_ext >&5
 
4888
 
 
4889
        ac_cv_header_sys_wait_h=no
 
4890
fi
 
4891
 
 
4892
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4893
fi
 
4894
{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
 
4895
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
 
4896
if test $ac_cv_header_sys_wait_h = yes; then
 
4897
 
 
4898
cat >>confdefs.h <<\_ACEOF
 
4899
#define HAVE_SYS_WAIT_H 1
 
4900
_ACEOF
 
4901
 
 
4902
fi
 
4903
 
 
4904
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4905
 
 
4906
 
 
4907
 
 
4908
 
 
4909
 
 
4910
 
 
4911
 
 
4912
 
 
4913
 
 
4914
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4915
                  inttypes.h stdint.h unistd.h
 
4916
do
 
4917
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4918
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4919
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4920
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4921
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4922
else
 
4923
  cat >conftest.$ac_ext <<_ACEOF
 
4924
/* confdefs.h.  */
 
4925
_ACEOF
 
4926
cat confdefs.h >>conftest.$ac_ext
 
4927
cat >>conftest.$ac_ext <<_ACEOF
 
4928
/* end confdefs.h.  */
 
4929
$ac_includes_default
 
4930
 
 
4931
#include <$ac_header>
 
4932
_ACEOF
 
4933
rm -f conftest.$ac_objext
 
4934
if { (ac_try="$ac_compile"
 
4935
case "(($ac_try" in
 
4936
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4937
  *) ac_try_echo=$ac_try;;
 
4938
esac
 
4939
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4940
  (eval "$ac_compile") 2>conftest.er1
 
4941
  ac_status=$?
 
4942
  grep -v '^ *+' conftest.er1 >conftest.err
 
4943
  rm -f conftest.er1
 
4944
  cat conftest.err >&5
 
4945
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4946
  (exit $ac_status); } && {
 
4947
         test -z "$ac_c_werror_flag" ||
 
4948
         test ! -s conftest.err
 
4949
       } && test -s conftest.$ac_objext; then
 
4950
  eval "$as_ac_Header=yes"
 
4951
else
 
4952
  echo "$as_me: failed program was:" >&5
 
4953
sed 's/^/| /' conftest.$ac_ext >&5
 
4954
 
 
4955
        eval "$as_ac_Header=no"
 
4956
fi
 
4957
 
 
4958
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4959
fi
 
4960
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4961
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4962
echo "${ECHO_T}$ac_res" >&6; }
 
4963
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4964
  cat >>confdefs.h <<_ACEOF
 
4965
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4966
_ACEOF
 
4967
 
 
4968
fi
 
4969
 
 
4970
done
 
4971
 
 
4972
 
 
4973
 
 
4974
 
 
4975
 
 
4976
 
 
4977
 
 
4978
 
 
4979
 
 
4980
 
 
4981
 
 
4982
for ac_header in limits.h netinet/in.h stddef.h stdint.h stdlib.h string.h sys/time.h sys/timeb.h unistd.h
 
4983
do
 
4984
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4985
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4986
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4987
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4988
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4989
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4990
fi
 
4991
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4992
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4993
echo "${ECHO_T}$ac_res" >&6; }
 
4994
else
 
4995
  # Is the header compilable?
 
4996
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4997
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4998
cat >conftest.$ac_ext <<_ACEOF
 
4999
/* confdefs.h.  */
 
5000
_ACEOF
 
5001
cat confdefs.h >>conftest.$ac_ext
 
5002
cat >>conftest.$ac_ext <<_ACEOF
 
5003
/* end confdefs.h.  */
 
5004
$ac_includes_default
 
5005
#include <$ac_header>
 
5006
_ACEOF
 
5007
rm -f conftest.$ac_objext
 
5008
if { (ac_try="$ac_compile"
 
5009
case "(($ac_try" in
 
5010
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5011
  *) ac_try_echo=$ac_try;;
 
5012
esac
 
5013
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5014
  (eval "$ac_compile") 2>conftest.er1
 
5015
  ac_status=$?
 
5016
  grep -v '^ *+' conftest.er1 >conftest.err
 
5017
  rm -f conftest.er1
 
5018
  cat conftest.err >&5
 
5019
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5020
  (exit $ac_status); } && {
 
5021
         test -z "$ac_c_werror_flag" ||
 
5022
         test ! -s conftest.err
 
5023
       } && test -s conftest.$ac_objext; then
 
5024
  ac_header_compiler=yes
 
5025
else
 
5026
  echo "$as_me: failed program was:" >&5
 
5027
sed 's/^/| /' conftest.$ac_ext >&5
 
5028
 
 
5029
        ac_header_compiler=no
 
5030
fi
 
5031
 
 
5032
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5033
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5034
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5035
 
 
5036
# Is the header present?
 
5037
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5038
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5039
cat >conftest.$ac_ext <<_ACEOF
 
5040
/* confdefs.h.  */
 
5041
_ACEOF
 
5042
cat confdefs.h >>conftest.$ac_ext
 
5043
cat >>conftest.$ac_ext <<_ACEOF
 
5044
/* end confdefs.h.  */
 
5045
#include <$ac_header>
 
5046
_ACEOF
 
5047
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5048
case "(($ac_try" in
 
5049
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5050
  *) ac_try_echo=$ac_try;;
 
5051
esac
 
5052
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5053
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5054
  ac_status=$?
 
5055
  grep -v '^ *+' conftest.er1 >conftest.err
 
5056
  rm -f conftest.er1
 
5057
  cat conftest.err >&5
 
5058
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5059
  (exit $ac_status); } >/dev/null && {
 
5060
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5061
         test ! -s conftest.err
 
5062
       }; then
 
5063
  ac_header_preproc=yes
 
5064
else
 
5065
  echo "$as_me: failed program was:" >&5
 
5066
sed 's/^/| /' conftest.$ac_ext >&5
 
5067
 
 
5068
  ac_header_preproc=no
 
5069
fi
 
5070
 
 
5071
rm -f conftest.err conftest.$ac_ext
 
5072
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5073
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5074
 
 
5075
# So?  What about this header?
 
5076
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5077
  yes:no: )
 
5078
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5079
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5080
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5081
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5082
    ac_header_preproc=yes
 
5083
    ;;
 
5084
  no:yes:* )
 
5085
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5086
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5087
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5088
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5089
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5090
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5091
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5092
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5093
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5094
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5095
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5096
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5097
    ( cat <<\_ASBOX
 
5098
## ----------------------------------- ##
 
5099
## Report this to kevin@misfitcode.com ##
 
5100
## ----------------------------------- ##
 
5101
_ASBOX
 
5102
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5103
    ;;
 
5104
esac
 
5105
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5106
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5107
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5108
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5109
else
 
5110
  eval "$as_ac_Header=\$ac_header_preproc"
 
5111
fi
 
5112
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5113
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5114
echo "${ECHO_T}$ac_res" >&6; }
 
5115
 
 
5116
fi
 
5117
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5118
  cat >>confdefs.h <<_ACEOF
 
5119
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5120
_ACEOF
 
5121
 
 
5122
fi
 
5123
 
 
5124
done
 
5125
 
 
5126
 
 
5127
# Checks for typedefs, structures, and compiler characteristics.
 
5128
{ echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
 
5129
echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
 
5130
if test "${ac_cv_header_stat_broken+set}" = set; then
 
5131
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5132
else
 
5133
  cat >conftest.$ac_ext <<_ACEOF
 
5134
/* confdefs.h.  */
 
5135
_ACEOF
 
5136
cat confdefs.h >>conftest.$ac_ext
 
5137
cat >>conftest.$ac_ext <<_ACEOF
 
5138
/* end confdefs.h.  */
 
5139
#include <sys/types.h>
 
5140
#include <sys/stat.h>
 
5141
 
 
5142
#if defined S_ISBLK && defined S_IFDIR
 
5143
extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
 
5144
#endif
 
5145
 
 
5146
#if defined S_ISBLK && defined S_IFCHR
 
5147
extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
 
5148
#endif
 
5149
 
 
5150
#if defined S_ISLNK && defined S_IFREG
 
5151
extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
 
5152
#endif
 
5153
 
 
5154
#if defined S_ISSOCK && defined S_IFREG
 
5155
extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
 
5156
#endif
 
5157
 
 
5158
_ACEOF
 
5159
rm -f conftest.$ac_objext
 
5160
if { (ac_try="$ac_compile"
 
5161
case "(($ac_try" in
 
5162
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5163
  *) ac_try_echo=$ac_try;;
 
5164
esac
 
5165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5166
  (eval "$ac_compile") 2>conftest.er1
 
5167
  ac_status=$?
 
5168
  grep -v '^ *+' conftest.er1 >conftest.err
 
5169
  rm -f conftest.er1
 
5170
  cat conftest.err >&5
 
5171
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5172
  (exit $ac_status); } && {
 
5173
         test -z "$ac_c_werror_flag" ||
 
5174
         test ! -s conftest.err
 
5175
       } && test -s conftest.$ac_objext; then
 
5176
  ac_cv_header_stat_broken=no
 
5177
else
 
5178
  echo "$as_me: failed program was:" >&5
 
5179
sed 's/^/| /' conftest.$ac_ext >&5
 
5180
 
 
5181
        ac_cv_header_stat_broken=yes
 
5182
fi
 
5183
 
 
5184
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5185
fi
 
5186
{ echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
 
5187
echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
 
5188
if test $ac_cv_header_stat_broken = yes; then
 
5189
 
 
5190
cat >>confdefs.h <<\_ACEOF
 
5191
#define STAT_MACROS_BROKEN 1
 
5192
_ACEOF
 
5193
 
 
5194
fi
 
5195
 
 
5196
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
5197
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
 
5198
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
5199
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5200
else
 
5201
  cat >conftest.$ac_ext <<_ACEOF
 
5202
/* confdefs.h.  */
 
5203
_ACEOF
 
5204
cat confdefs.h >>conftest.$ac_ext
 
5205
cat >>conftest.$ac_ext <<_ACEOF
 
5206
/* end confdefs.h.  */
 
5207
 
 
5208
#include <stdbool.h>
 
5209
#ifndef bool
 
5210
 "error: bool is not defined"
 
5211
#endif
 
5212
#ifndef false
 
5213
 "error: false is not defined"
 
5214
#endif
 
5215
#if false
 
5216
 "error: false is not 0"
 
5217
#endif
 
5218
#ifndef true
 
5219
 "error: true is not defined"
 
5220
#endif
 
5221
#if true != 1
 
5222
 "error: true is not 1"
 
5223
#endif
 
5224
#ifndef __bool_true_false_are_defined
 
5225
 "error: __bool_true_false_are_defined is not defined"
 
5226
#endif
 
5227
 
 
5228
        struct s { _Bool s: 1; _Bool t; } s;
 
5229
 
 
5230
        char a[true == 1 ? 1 : -1];
 
5231
        char b[false == 0 ? 1 : -1];
 
5232
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
5233
        char d[(bool) 0.5 == true ? 1 : -1];
 
5234
        bool e = &s;
 
5235
        char f[(_Bool) 0.0 == false ? 1 : -1];
 
5236
        char g[true];
 
5237
        char h[sizeof (_Bool)];
 
5238
        char i[sizeof s.t];
 
5239
        enum { j = false, k = true, l = false * true, m = true * 256 };
 
5240
        _Bool n[m];
 
5241
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
5242
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
5243
#       if defined __xlc__ || defined __GNUC__
 
5244
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
5245
            reported by James Lemley on 2005-10-05; see
 
5246
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
5247
            This test is not quite right, since xlc is allowed to
 
5248
            reject this program, as the initializer for xlcbug is
 
5249
            not one of the forms that C requires support for.
 
5250
            However, doing the test right would require a runtime
 
5251
            test, and that would make cross-compilation harder.
 
5252
            Let us hope that IBM fixes the xlc bug, and also adds
 
5253
            support for this kind of constant expression.  In the
 
5254
            meantime, this test will reject xlc, which is OK, since
 
5255
            our stdbool.h substitute should suffice.  We also test
 
5256
            this with GCC, where it should work, to detect more
 
5257
            quickly whether someone messes up the test in the
 
5258
            future.  */
 
5259
         char digs[] = "0123456789";
 
5260
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
5261
#       endif
 
5262
        /* Catch a bug in an HP-UX C compiler.  See
 
5263
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
5264
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
5265
         */
 
5266
        _Bool q = true;
 
5267
        _Bool *pq = &q;
 
5268
 
 
5269
int
 
5270
main ()
 
5271
{
 
5272
 
 
5273
        *pq |= q;
 
5274
        *pq |= ! q;
 
5275
        /* Refer to every declared value, to avoid compiler optimizations.  */
 
5276
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
5277
                + !m + !n + !o + !p + !q + !pq);
 
5278
 
 
5279
  ;
 
5280
  return 0;
 
5281
}
 
5282
_ACEOF
 
5283
rm -f conftest.$ac_objext
 
5284
if { (ac_try="$ac_compile"
 
5285
case "(($ac_try" in
 
5286
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5287
  *) ac_try_echo=$ac_try;;
 
5288
esac
 
5289
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5290
  (eval "$ac_compile") 2>conftest.er1
 
5291
  ac_status=$?
 
5292
  grep -v '^ *+' conftest.er1 >conftest.err
 
5293
  rm -f conftest.er1
 
5294
  cat conftest.err >&5
 
5295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5296
  (exit $ac_status); } && {
 
5297
         test -z "$ac_c_werror_flag" ||
 
5298
         test ! -s conftest.err
 
5299
       } && test -s conftest.$ac_objext; then
 
5300
  ac_cv_header_stdbool_h=yes
 
5301
else
 
5302
  echo "$as_me: failed program was:" >&5
 
5303
sed 's/^/| /' conftest.$ac_ext >&5
 
5304
 
 
5305
        ac_cv_header_stdbool_h=no
 
5306
fi
 
5307
 
 
5308
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5309
fi
 
5310
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
5311
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
 
5312
{ echo "$as_me:$LINENO: checking for _Bool" >&5
 
5313
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
 
5314
if test "${ac_cv_type__Bool+set}" = set; then
 
5315
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5316
else
 
5317
  cat >conftest.$ac_ext <<_ACEOF
 
5318
/* confdefs.h.  */
 
5319
_ACEOF
 
5320
cat confdefs.h >>conftest.$ac_ext
 
5321
cat >>conftest.$ac_ext <<_ACEOF
 
5322
/* end confdefs.h.  */
 
5323
$ac_includes_default
 
5324
typedef _Bool ac__type_new_;
 
5325
int
 
5326
main ()
 
5327
{
 
5328
if ((ac__type_new_ *) 0)
 
5329
  return 0;
 
5330
if (sizeof (ac__type_new_))
 
5331
  return 0;
 
5332
  ;
 
5333
  return 0;
 
5334
}
 
5335
_ACEOF
 
5336
rm -f conftest.$ac_objext
 
5337
if { (ac_try="$ac_compile"
 
5338
case "(($ac_try" in
 
5339
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5340
  *) ac_try_echo=$ac_try;;
 
5341
esac
 
5342
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5343
  (eval "$ac_compile") 2>conftest.er1
 
5344
  ac_status=$?
 
5345
  grep -v '^ *+' conftest.er1 >conftest.err
 
5346
  rm -f conftest.er1
 
5347
  cat conftest.err >&5
 
5348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5349
  (exit $ac_status); } && {
 
5350
         test -z "$ac_c_werror_flag" ||
 
5351
         test ! -s conftest.err
 
5352
       } && test -s conftest.$ac_objext; then
 
5353
  ac_cv_type__Bool=yes
 
5354
else
 
5355
  echo "$as_me: failed program was:" >&5
 
5356
sed 's/^/| /' conftest.$ac_ext >&5
 
5357
 
 
5358
        ac_cv_type__Bool=no
 
5359
fi
 
5360
 
 
5361
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5362
fi
 
5363
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
5364
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
 
5365
if test $ac_cv_type__Bool = yes; then
 
5366
 
 
5367
cat >>confdefs.h <<_ACEOF
 
5368
#define HAVE__BOOL 1
 
5369
_ACEOF
 
5370
 
 
5371
 
 
5372
fi
 
5373
 
 
5374
if test $ac_cv_header_stdbool_h = yes; then
 
5375
 
 
5376
cat >>confdefs.h <<\_ACEOF
 
5377
#define HAVE_STDBOOL_H 1
 
5378
_ACEOF
 
5379
 
 
5380
fi
 
5381
 
 
5382
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
5383
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
5384
if test "${ac_cv_c_const+set}" = set; then
 
5385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5386
else
 
5387
  cat >conftest.$ac_ext <<_ACEOF
 
5388
/* confdefs.h.  */
 
5389
_ACEOF
 
5390
cat confdefs.h >>conftest.$ac_ext
 
5391
cat >>conftest.$ac_ext <<_ACEOF
 
5392
/* end confdefs.h.  */
 
5393
 
 
5394
int
 
5395
main ()
 
5396
{
 
5397
/* FIXME: Include the comments suggested by Paul. */
 
5398
#ifndef __cplusplus
 
5399
  /* Ultrix mips cc rejects this.  */
 
5400
  typedef int charset[2];
 
5401
  const charset cs;
 
5402
  /* SunOS 4.1.1 cc rejects this.  */
 
5403
  char const *const *pcpcc;
 
5404
  char **ppc;
 
5405
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
5406
  struct point {int x, y;};
 
5407
  static struct point const zero = {0,0};
 
5408
  /* AIX XL C 1.02.0.0 rejects this.
 
5409
     It does not let you subtract one const X* pointer from another in
 
5410
     an arm of an if-expression whose if-part is not a constant
 
5411
     expression */
 
5412
  const char *g = "string";
 
5413
  pcpcc = &g + (g ? g-g : 0);
 
5414
  /* HPUX 7.0 cc rejects these. */
 
5415
  ++pcpcc;
 
5416
  ppc = (char**) pcpcc;
 
5417
  pcpcc = (char const *const *) ppc;
 
5418
  { /* SCO 3.2v4 cc rejects this.  */
 
5419
    char *t;
 
5420
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
5421
 
 
5422
    *t++ = 0;
 
5423
    if (s) return 0;
 
5424
  }
 
5425
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
5426
    int x[] = {25, 17};
 
5427
    const int *foo = &x[0];
 
5428
    ++foo;
 
5429
  }
 
5430
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
5431
    typedef const int *iptr;
 
5432
    iptr p = 0;
 
5433
    ++p;
 
5434
  }
 
5435
  { /* AIX XL C 1.02.0.0 rejects this saying
 
5436
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
5437
    struct s { int j; const int *ap[3]; };
 
5438
    struct s *b; b->j = 5;
 
5439
  }
 
5440
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
5441
    const int foo = 10;
 
5442
    if (!foo) return 0;
 
5443
  }
 
5444
  return !cs[0] && !zero.x;
 
5445
#endif
 
5446
 
 
5447
  ;
 
5448
  return 0;
 
5449
}
 
5450
_ACEOF
 
5451
rm -f conftest.$ac_objext
 
5452
if { (ac_try="$ac_compile"
 
5453
case "(($ac_try" in
 
5454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5455
  *) ac_try_echo=$ac_try;;
 
5456
esac
 
5457
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5458
  (eval "$ac_compile") 2>conftest.er1
 
5459
  ac_status=$?
 
5460
  grep -v '^ *+' conftest.er1 >conftest.err
 
5461
  rm -f conftest.er1
 
5462
  cat conftest.err >&5
 
5463
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5464
  (exit $ac_status); } && {
 
5465
         test -z "$ac_c_werror_flag" ||
 
5466
         test ! -s conftest.err
 
5467
       } && test -s conftest.$ac_objext; then
 
5468
  ac_cv_c_const=yes
 
5469
else
 
5470
  echo "$as_me: failed program was:" >&5
 
5471
sed 's/^/| /' conftest.$ac_ext >&5
 
5472
 
 
5473
        ac_cv_c_const=no
 
5474
fi
 
5475
 
 
5476
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5477
fi
 
5478
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
5479
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
5480
if test $ac_cv_c_const = no; then
 
5481
 
 
5482
cat >>confdefs.h <<\_ACEOF
 
5483
#define const
 
5484
_ACEOF
 
5485
 
 
5486
fi
 
5487
 
 
5488
{ echo "$as_me:$LINENO: checking for inline" >&5
 
5489
echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
 
5490
if test "${ac_cv_c_inline+set}" = set; then
 
5491
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5492
else
 
5493
  ac_cv_c_inline=no
 
5494
for ac_kw in inline __inline__ __inline; do
 
5495
  cat >conftest.$ac_ext <<_ACEOF
 
5496
/* confdefs.h.  */
 
5497
_ACEOF
 
5498
cat confdefs.h >>conftest.$ac_ext
 
5499
cat >>conftest.$ac_ext <<_ACEOF
 
5500
/* end confdefs.h.  */
 
5501
#ifndef __cplusplus
 
5502
typedef int foo_t;
 
5503
static $ac_kw foo_t static_foo () {return 0; }
 
5504
$ac_kw foo_t foo () {return 0; }
 
5505
#endif
 
5506
 
 
5507
_ACEOF
 
5508
rm -f conftest.$ac_objext
 
5509
if { (ac_try="$ac_compile"
 
5510
case "(($ac_try" in
 
5511
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5512
  *) ac_try_echo=$ac_try;;
 
5513
esac
 
5514
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5515
  (eval "$ac_compile") 2>conftest.er1
 
5516
  ac_status=$?
 
5517
  grep -v '^ *+' conftest.er1 >conftest.err
 
5518
  rm -f conftest.er1
 
5519
  cat conftest.err >&5
 
5520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5521
  (exit $ac_status); } && {
 
5522
         test -z "$ac_c_werror_flag" ||
 
5523
         test ! -s conftest.err
 
5524
       } && test -s conftest.$ac_objext; then
 
5525
  ac_cv_c_inline=$ac_kw
 
5526
else
 
5527
  echo "$as_me: failed program was:" >&5
 
5528
sed 's/^/| /' conftest.$ac_ext >&5
 
5529
 
 
5530
 
 
5531
fi
 
5532
 
 
5533
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5534
  test "$ac_cv_c_inline" != no && break
 
5535
done
 
5536
 
 
5537
fi
 
5538
{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
 
5539
echo "${ECHO_T}$ac_cv_c_inline" >&6; }
 
5540
 
 
5541
 
 
5542
case $ac_cv_c_inline in
 
5543
  inline | yes) ;;
 
5544
  *)
 
5545
    case $ac_cv_c_inline in
 
5546
      no) ac_val=;;
 
5547
      *) ac_val=$ac_cv_c_inline;;
 
5548
    esac
 
5549
    cat >>confdefs.h <<_ACEOF
 
5550
#ifndef __cplusplus
 
5551
#define inline $ac_val
 
5552
#endif
 
5553
_ACEOF
 
5554
    ;;
 
5555
esac
 
5556
 
 
5557
 
 
5558
  { echo "$as_me:$LINENO: checking for int16_t" >&5
 
5559
echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
 
5560
if test "${ac_cv_c_int16_t+set}" = set; then
 
5561
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5562
else
 
5563
  ac_cv_c_int16_t=no
 
5564
     for ac_type in 'int16_t' 'int' 'long int' \
 
5565
         'long long int' 'short int' 'signed char'; do
 
5566
       cat >conftest.$ac_ext <<_ACEOF
 
5567
/* confdefs.h.  */
 
5568
_ACEOF
 
5569
cat confdefs.h >>conftest.$ac_ext
 
5570
cat >>conftest.$ac_ext <<_ACEOF
 
5571
/* end confdefs.h.  */
 
5572
$ac_includes_default
 
5573
int
 
5574
main ()
 
5575
{
 
5576
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1))];
 
5577
test_array [0] = 0
 
5578
 
 
5579
  ;
 
5580
  return 0;
 
5581
}
 
5582
_ACEOF
 
5583
rm -f conftest.$ac_objext
 
5584
if { (ac_try="$ac_compile"
 
5585
case "(($ac_try" in
 
5586
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5587
  *) ac_try_echo=$ac_try;;
 
5588
esac
 
5589
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5590
  (eval "$ac_compile") 2>conftest.er1
 
5591
  ac_status=$?
 
5592
  grep -v '^ *+' conftest.er1 >conftest.err
 
5593
  rm -f conftest.er1
 
5594
  cat conftest.err >&5
 
5595
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5596
  (exit $ac_status); } && {
 
5597
         test -z "$ac_c_werror_flag" ||
 
5598
         test ! -s conftest.err
 
5599
       } && test -s conftest.$ac_objext; then
 
5600
  cat >conftest.$ac_ext <<_ACEOF
 
5601
/* confdefs.h.  */
 
5602
_ACEOF
 
5603
cat confdefs.h >>conftest.$ac_ext
 
5604
cat >>conftest.$ac_ext <<_ACEOF
 
5605
/* end confdefs.h.  */
 
5606
$ac_includes_default
 
5607
int
 
5608
main ()
 
5609
{
 
5610
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 1)
 
5611
                 < ($ac_type) (((($ac_type) 1 << (16 - 2)) - 1) * 2 + 2))];
 
5612
test_array [0] = 0
 
5613
 
 
5614
  ;
 
5615
  return 0;
 
5616
}
 
5617
_ACEOF
 
5618
rm -f conftest.$ac_objext
 
5619
if { (ac_try="$ac_compile"
 
5620
case "(($ac_try" in
 
5621
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5622
  *) ac_try_echo=$ac_try;;
 
5623
esac
 
5624
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5625
  (eval "$ac_compile") 2>conftest.er1
 
5626
  ac_status=$?
 
5627
  grep -v '^ *+' conftest.er1 >conftest.err
 
5628
  rm -f conftest.er1
 
5629
  cat conftest.err >&5
 
5630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5631
  (exit $ac_status); } && {
 
5632
         test -z "$ac_c_werror_flag" ||
 
5633
         test ! -s conftest.err
 
5634
       } && test -s conftest.$ac_objext; then
 
5635
  :
 
5636
else
 
5637
  echo "$as_me: failed program was:" >&5
 
5638
sed 's/^/| /' conftest.$ac_ext >&5
 
5639
 
 
5640
        case $ac_type in
 
5641
  int16_t) ac_cv_c_int16_t=yes ;;
 
5642
  *) ac_cv_c_int16_t=$ac_type ;;
 
5643
esac
 
5644
 
 
5645
fi
 
5646
 
 
5647
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5648
else
 
5649
  echo "$as_me: failed program was:" >&5
 
5650
sed 's/^/| /' conftest.$ac_ext >&5
 
5651
 
 
5652
 
 
5653
fi
 
5654
 
 
5655
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5656
       test "$ac_cv_c_int16_t" != no && break
 
5657
     done
 
5658
fi
 
5659
{ echo "$as_me:$LINENO: result: $ac_cv_c_int16_t" >&5
 
5660
echo "${ECHO_T}$ac_cv_c_int16_t" >&6; }
 
5661
  case $ac_cv_c_int16_t in #(
 
5662
  no|yes) ;; #(
 
5663
  *)
 
5664
 
 
5665
cat >>confdefs.h <<_ACEOF
 
5666
#define int16_t $ac_cv_c_int16_t
 
5667
_ACEOF
 
5668
;;
 
5669
  esac
 
5670
 
 
5671
 
 
5672
  { echo "$as_me:$LINENO: checking for int32_t" >&5
 
5673
echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
 
5674
if test "${ac_cv_c_int32_t+set}" = set; then
 
5675
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5676
else
 
5677
  ac_cv_c_int32_t=no
 
5678
     for ac_type in 'int32_t' 'int' 'long int' \
 
5679
         'long long int' 'short int' 'signed char'; do
 
5680
       cat >conftest.$ac_ext <<_ACEOF
 
5681
/* confdefs.h.  */
 
5682
_ACEOF
 
5683
cat confdefs.h >>conftest.$ac_ext
 
5684
cat >>conftest.$ac_ext <<_ACEOF
 
5685
/* end confdefs.h.  */
 
5686
$ac_includes_default
 
5687
int
 
5688
main ()
 
5689
{
 
5690
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1))];
 
5691
test_array [0] = 0
 
5692
 
 
5693
  ;
 
5694
  return 0;
 
5695
}
 
5696
_ACEOF
 
5697
rm -f conftest.$ac_objext
 
5698
if { (ac_try="$ac_compile"
 
5699
case "(($ac_try" in
 
5700
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5701
  *) ac_try_echo=$ac_try;;
 
5702
esac
 
5703
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5704
  (eval "$ac_compile") 2>conftest.er1
 
5705
  ac_status=$?
 
5706
  grep -v '^ *+' conftest.er1 >conftest.err
 
5707
  rm -f conftest.er1
 
5708
  cat conftest.err >&5
 
5709
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5710
  (exit $ac_status); } && {
 
5711
         test -z "$ac_c_werror_flag" ||
 
5712
         test ! -s conftest.err
 
5713
       } && test -s conftest.$ac_objext; then
 
5714
  cat >conftest.$ac_ext <<_ACEOF
 
5715
/* confdefs.h.  */
 
5716
_ACEOF
 
5717
cat confdefs.h >>conftest.$ac_ext
 
5718
cat >>conftest.$ac_ext <<_ACEOF
 
5719
/* end confdefs.h.  */
 
5720
$ac_includes_default
 
5721
int
 
5722
main ()
 
5723
{
 
5724
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 1)
 
5725
                 < ($ac_type) (((($ac_type) 1 << (32 - 2)) - 1) * 2 + 2))];
 
5726
test_array [0] = 0
 
5727
 
 
5728
  ;
 
5729
  return 0;
 
5730
}
 
5731
_ACEOF
 
5732
rm -f conftest.$ac_objext
 
5733
if { (ac_try="$ac_compile"
 
5734
case "(($ac_try" in
 
5735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5736
  *) ac_try_echo=$ac_try;;
 
5737
esac
 
5738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5739
  (eval "$ac_compile") 2>conftest.er1
 
5740
  ac_status=$?
 
5741
  grep -v '^ *+' conftest.er1 >conftest.err
 
5742
  rm -f conftest.er1
 
5743
  cat conftest.err >&5
 
5744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5745
  (exit $ac_status); } && {
 
5746
         test -z "$ac_c_werror_flag" ||
 
5747
         test ! -s conftest.err
 
5748
       } && test -s conftest.$ac_objext; then
 
5749
  :
 
5750
else
 
5751
  echo "$as_me: failed program was:" >&5
 
5752
sed 's/^/| /' conftest.$ac_ext >&5
 
5753
 
 
5754
        case $ac_type in
 
5755
  int32_t) ac_cv_c_int32_t=yes ;;
 
5756
  *) ac_cv_c_int32_t=$ac_type ;;
 
5757
esac
 
5758
 
 
5759
fi
 
5760
 
 
5761
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5762
else
 
5763
  echo "$as_me: failed program was:" >&5
 
5764
sed 's/^/| /' conftest.$ac_ext >&5
 
5765
 
 
5766
 
 
5767
fi
 
5768
 
 
5769
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5770
       test "$ac_cv_c_int32_t" != no && break
 
5771
     done
 
5772
fi
 
5773
{ echo "$as_me:$LINENO: result: $ac_cv_c_int32_t" >&5
 
5774
echo "${ECHO_T}$ac_cv_c_int32_t" >&6; }
 
5775
  case $ac_cv_c_int32_t in #(
 
5776
  no|yes) ;; #(
 
5777
  *)
 
5778
 
 
5779
cat >>confdefs.h <<_ACEOF
 
5780
#define int32_t $ac_cv_c_int32_t
 
5781
_ACEOF
 
5782
;;
 
5783
  esac
 
5784
 
 
5785
 
 
5786
  { echo "$as_me:$LINENO: checking for int8_t" >&5
 
5787
echo $ECHO_N "checking for int8_t... $ECHO_C" >&6; }
 
5788
if test "${ac_cv_c_int8_t+set}" = set; then
 
5789
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5790
else
 
5791
  ac_cv_c_int8_t=no
 
5792
     for ac_type in 'int8_t' 'int' 'long int' \
 
5793
         'long long int' 'short int' 'signed char'; do
 
5794
       cat >conftest.$ac_ext <<_ACEOF
 
5795
/* confdefs.h.  */
 
5796
_ACEOF
 
5797
cat confdefs.h >>conftest.$ac_ext
 
5798
cat >>conftest.$ac_ext <<_ACEOF
 
5799
/* end confdefs.h.  */
 
5800
$ac_includes_default
 
5801
int
 
5802
main ()
 
5803
{
 
5804
static int test_array [1 - 2 * !(0 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1))];
 
5805
test_array [0] = 0
 
5806
 
 
5807
  ;
 
5808
  return 0;
 
5809
}
 
5810
_ACEOF
 
5811
rm -f conftest.$ac_objext
 
5812
if { (ac_try="$ac_compile"
 
5813
case "(($ac_try" in
 
5814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5815
  *) ac_try_echo=$ac_try;;
 
5816
esac
 
5817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5818
  (eval "$ac_compile") 2>conftest.er1
 
5819
  ac_status=$?
 
5820
  grep -v '^ *+' conftest.er1 >conftest.err
 
5821
  rm -f conftest.er1
 
5822
  cat conftest.err >&5
 
5823
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5824
  (exit $ac_status); } && {
 
5825
         test -z "$ac_c_werror_flag" ||
 
5826
         test ! -s conftest.err
 
5827
       } && test -s conftest.$ac_objext; then
 
5828
  cat >conftest.$ac_ext <<_ACEOF
 
5829
/* confdefs.h.  */
 
5830
_ACEOF
 
5831
cat confdefs.h >>conftest.$ac_ext
 
5832
cat >>conftest.$ac_ext <<_ACEOF
 
5833
/* end confdefs.h.  */
 
5834
$ac_includes_default
 
5835
int
 
5836
main ()
 
5837
{
 
5838
static int test_array [1 - 2 * !(($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 1)
 
5839
                 < ($ac_type) (((($ac_type) 1 << (8 - 2)) - 1) * 2 + 2))];
 
5840
test_array [0] = 0
 
5841
 
 
5842
  ;
 
5843
  return 0;
 
5844
}
 
5845
_ACEOF
 
5846
rm -f conftest.$ac_objext
 
5847
if { (ac_try="$ac_compile"
 
5848
case "(($ac_try" in
 
5849
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5850
  *) ac_try_echo=$ac_try;;
 
5851
esac
 
5852
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5853
  (eval "$ac_compile") 2>conftest.er1
 
5854
  ac_status=$?
 
5855
  grep -v '^ *+' conftest.er1 >conftest.err
 
5856
  rm -f conftest.er1
 
5857
  cat conftest.err >&5
 
5858
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5859
  (exit $ac_status); } && {
 
5860
         test -z "$ac_c_werror_flag" ||
 
5861
         test ! -s conftest.err
 
5862
       } && test -s conftest.$ac_objext; then
 
5863
  :
 
5864
else
 
5865
  echo "$as_me: failed program was:" >&5
 
5866
sed 's/^/| /' conftest.$ac_ext >&5
 
5867
 
 
5868
        case $ac_type in
 
5869
  int8_t) ac_cv_c_int8_t=yes ;;
 
5870
  *) ac_cv_c_int8_t=$ac_type ;;
 
5871
esac
 
5872
 
 
5873
fi
 
5874
 
 
5875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5876
else
 
5877
  echo "$as_me: failed program was:" >&5
 
5878
sed 's/^/| /' conftest.$ac_ext >&5
 
5879
 
 
5880
 
 
5881
fi
 
5882
 
 
5883
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5884
       test "$ac_cv_c_int8_t" != no && break
 
5885
     done
 
5886
fi
 
5887
{ echo "$as_me:$LINENO: result: $ac_cv_c_int8_t" >&5
 
5888
echo "${ECHO_T}$ac_cv_c_int8_t" >&6; }
 
5889
  case $ac_cv_c_int8_t in #(
 
5890
  no|yes) ;; #(
 
5891
  *)
 
5892
 
 
5893
cat >>confdefs.h <<_ACEOF
 
5894
#define int8_t $ac_cv_c_int8_t
 
5895
_ACEOF
 
5896
;;
 
5897
  esac
 
5898
 
 
5899
{ echo "$as_me:$LINENO: checking for mode_t" >&5
 
5900
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
 
5901
if test "${ac_cv_type_mode_t+set}" = set; then
 
5902
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5903
else
 
5904
  cat >conftest.$ac_ext <<_ACEOF
 
5905
/* confdefs.h.  */
 
5906
_ACEOF
 
5907
cat confdefs.h >>conftest.$ac_ext
 
5908
cat >>conftest.$ac_ext <<_ACEOF
 
5909
/* end confdefs.h.  */
 
5910
$ac_includes_default
 
5911
typedef mode_t ac__type_new_;
 
5912
int
 
5913
main ()
 
5914
{
 
5915
if ((ac__type_new_ *) 0)
 
5916
  return 0;
 
5917
if (sizeof (ac__type_new_))
 
5918
  return 0;
 
5919
  ;
 
5920
  return 0;
 
5921
}
 
5922
_ACEOF
 
5923
rm -f conftest.$ac_objext
 
5924
if { (ac_try="$ac_compile"
 
5925
case "(($ac_try" in
 
5926
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5927
  *) ac_try_echo=$ac_try;;
 
5928
esac
 
5929
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5930
  (eval "$ac_compile") 2>conftest.er1
 
5931
  ac_status=$?
 
5932
  grep -v '^ *+' conftest.er1 >conftest.err
 
5933
  rm -f conftest.er1
 
5934
  cat conftest.err >&5
 
5935
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5936
  (exit $ac_status); } && {
 
5937
         test -z "$ac_c_werror_flag" ||
 
5938
         test ! -s conftest.err
 
5939
       } && test -s conftest.$ac_objext; then
 
5940
  ac_cv_type_mode_t=yes
 
5941
else
 
5942
  echo "$as_me: failed program was:" >&5
 
5943
sed 's/^/| /' conftest.$ac_ext >&5
 
5944
 
 
5945
        ac_cv_type_mode_t=no
 
5946
fi
 
5947
 
 
5948
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5949
fi
 
5950
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 
5951
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
 
5952
if test $ac_cv_type_mode_t = yes; then
 
5953
  :
 
5954
else
 
5955
 
 
5956
cat >>confdefs.h <<_ACEOF
 
5957
#define mode_t int
 
5958
_ACEOF
 
5959
 
 
5960
fi
 
5961
 
 
5962
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
5963
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
5964
if test "${ac_cv_type_size_t+set}" = set; then
 
5965
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5966
else
 
5967
  cat >conftest.$ac_ext <<_ACEOF
 
5968
/* confdefs.h.  */
 
5969
_ACEOF
 
5970
cat confdefs.h >>conftest.$ac_ext
 
5971
cat >>conftest.$ac_ext <<_ACEOF
 
5972
/* end confdefs.h.  */
 
5973
$ac_includes_default
 
5974
typedef size_t ac__type_new_;
 
5975
int
 
5976
main ()
 
5977
{
 
5978
if ((ac__type_new_ *) 0)
 
5979
  return 0;
 
5980
if (sizeof (ac__type_new_))
 
5981
  return 0;
 
5982
  ;
 
5983
  return 0;
 
5984
}
 
5985
_ACEOF
 
5986
rm -f conftest.$ac_objext
 
5987
if { (ac_try="$ac_compile"
 
5988
case "(($ac_try" in
 
5989
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5990
  *) ac_try_echo=$ac_try;;
 
5991
esac
 
5992
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5993
  (eval "$ac_compile") 2>conftest.er1
 
5994
  ac_status=$?
 
5995
  grep -v '^ *+' conftest.er1 >conftest.err
 
5996
  rm -f conftest.er1
 
5997
  cat conftest.err >&5
 
5998
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5999
  (exit $ac_status); } && {
 
6000
         test -z "$ac_c_werror_flag" ||
 
6001
         test ! -s conftest.err
 
6002
       } && test -s conftest.$ac_objext; then
 
6003
  ac_cv_type_size_t=yes
 
6004
else
 
6005
  echo "$as_me: failed program was:" >&5
 
6006
sed 's/^/| /' conftest.$ac_ext >&5
 
6007
 
 
6008
        ac_cv_type_size_t=no
 
6009
fi
 
6010
 
 
6011
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6012
fi
 
6013
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
6014
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
6015
if test $ac_cv_type_size_t = yes; then
 
6016
  :
 
6017
else
 
6018
 
 
6019
cat >>confdefs.h <<_ACEOF
 
6020
#define size_t unsigned int
 
6021
_ACEOF
 
6022
 
 
6023
fi
 
6024
 
 
6025
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
 
6026
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
 
6027
if test "${ac_cv_header_time+set}" = set; then
 
6028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6029
else
 
6030
  cat >conftest.$ac_ext <<_ACEOF
 
6031
/* confdefs.h.  */
 
6032
_ACEOF
 
6033
cat confdefs.h >>conftest.$ac_ext
 
6034
cat >>conftest.$ac_ext <<_ACEOF
 
6035
/* end confdefs.h.  */
 
6036
#include <sys/types.h>
 
6037
#include <sys/time.h>
 
6038
#include <time.h>
 
6039
 
 
6040
int
 
6041
main ()
 
6042
{
 
6043
if ((struct tm *) 0)
 
6044
return 0;
 
6045
  ;
 
6046
  return 0;
 
6047
}
 
6048
_ACEOF
 
6049
rm -f conftest.$ac_objext
 
6050
if { (ac_try="$ac_compile"
 
6051
case "(($ac_try" in
 
6052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6053
  *) ac_try_echo=$ac_try;;
 
6054
esac
 
6055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6056
  (eval "$ac_compile") 2>conftest.er1
 
6057
  ac_status=$?
 
6058
  grep -v '^ *+' conftest.er1 >conftest.err
 
6059
  rm -f conftest.er1
 
6060
  cat conftest.err >&5
 
6061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6062
  (exit $ac_status); } && {
 
6063
         test -z "$ac_c_werror_flag" ||
 
6064
         test ! -s conftest.err
 
6065
       } && test -s conftest.$ac_objext; then
 
6066
  ac_cv_header_time=yes
 
6067
else
 
6068
  echo "$as_me: failed program was:" >&5
 
6069
sed 's/^/| /' conftest.$ac_ext >&5
 
6070
 
 
6071
        ac_cv_header_time=no
 
6072
fi
 
6073
 
 
6074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6075
fi
 
6076
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
 
6077
echo "${ECHO_T}$ac_cv_header_time" >&6; }
 
6078
if test $ac_cv_header_time = yes; then
 
6079
 
 
6080
cat >>confdefs.h <<\_ACEOF
 
6081
#define TIME_WITH_SYS_TIME 1
 
6082
_ACEOF
 
6083
 
 
6084
fi
 
6085
 
 
6086
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
6087
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
 
6088
if test "${ac_cv_struct_tm+set}" = set; then
 
6089
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6090
else
 
6091
  cat >conftest.$ac_ext <<_ACEOF
 
6092
/* confdefs.h.  */
 
6093
_ACEOF
 
6094
cat confdefs.h >>conftest.$ac_ext
 
6095
cat >>conftest.$ac_ext <<_ACEOF
 
6096
/* end confdefs.h.  */
 
6097
#include <sys/types.h>
 
6098
#include <time.h>
 
6099
 
 
6100
int
 
6101
main ()
 
6102
{
 
6103
struct tm tm;
 
6104
                                     int *p = &tm.tm_sec;
 
6105
                                     return !p;
 
6106
  ;
 
6107
  return 0;
 
6108
}
 
6109
_ACEOF
 
6110
rm -f conftest.$ac_objext
 
6111
if { (ac_try="$ac_compile"
 
6112
case "(($ac_try" in
 
6113
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6114
  *) ac_try_echo=$ac_try;;
 
6115
esac
 
6116
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6117
  (eval "$ac_compile") 2>conftest.er1
 
6118
  ac_status=$?
 
6119
  grep -v '^ *+' conftest.er1 >conftest.err
 
6120
  rm -f conftest.er1
 
6121
  cat conftest.err >&5
 
6122
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6123
  (exit $ac_status); } && {
 
6124
         test -z "$ac_c_werror_flag" ||
 
6125
         test ! -s conftest.err
 
6126
       } && test -s conftest.$ac_objext; then
 
6127
  ac_cv_struct_tm=time.h
 
6128
else
 
6129
  echo "$as_me: failed program was:" >&5
 
6130
sed 's/^/| /' conftest.$ac_ext >&5
 
6131
 
 
6132
        ac_cv_struct_tm=sys/time.h
 
6133
fi
 
6134
 
 
6135
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6136
fi
 
6137
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
6138
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
 
6139
if test $ac_cv_struct_tm = sys/time.h; then
 
6140
 
 
6141
cat >>confdefs.h <<\_ACEOF
 
6142
#define TM_IN_SYS_TIME 1
 
6143
_ACEOF
 
6144
 
 
6145
fi
 
6146
 
 
6147
 
 
6148
  { echo "$as_me:$LINENO: checking for uint16_t" >&5
 
6149
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
 
6150
if test "${ac_cv_c_uint16_t+set}" = set; then
 
6151
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6152
else
 
6153
  ac_cv_c_uint16_t=no
 
6154
     for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
 
6155
         'unsigned long long int' 'unsigned short int' 'unsigned char'; do
 
6156
       cat >conftest.$ac_ext <<_ACEOF
 
6157
/* confdefs.h.  */
 
6158
_ACEOF
 
6159
cat confdefs.h >>conftest.$ac_ext
 
6160
cat >>conftest.$ac_ext <<_ACEOF
 
6161
/* end confdefs.h.  */
 
6162
$ac_includes_default
 
6163
int
 
6164
main ()
 
6165
{
 
6166
static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
 
6167
test_array [0] = 0
 
6168
 
 
6169
  ;
 
6170
  return 0;
 
6171
}
 
6172
_ACEOF
 
6173
rm -f conftest.$ac_objext
 
6174
if { (ac_try="$ac_compile"
 
6175
case "(($ac_try" in
 
6176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6177
  *) ac_try_echo=$ac_try;;
 
6178
esac
 
6179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6180
  (eval "$ac_compile") 2>conftest.er1
 
6181
  ac_status=$?
 
6182
  grep -v '^ *+' conftest.er1 >conftest.err
 
6183
  rm -f conftest.er1
 
6184
  cat conftest.err >&5
 
6185
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6186
  (exit $ac_status); } && {
 
6187
         test -z "$ac_c_werror_flag" ||
 
6188
         test ! -s conftest.err
 
6189
       } && test -s conftest.$ac_objext; then
 
6190
  case $ac_type in
 
6191
  uint16_t) ac_cv_c_uint16_t=yes ;;
 
6192
  *) ac_cv_c_uint16_t=$ac_type ;;
 
6193
esac
 
6194
 
 
6195
else
 
6196
  echo "$as_me: failed program was:" >&5
 
6197
sed 's/^/| /' conftest.$ac_ext >&5
 
6198
 
 
6199
 
 
6200
fi
 
6201
 
 
6202
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6203
       test "$ac_cv_c_uint16_t" != no && break
 
6204
     done
 
6205
fi
 
6206
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
 
6207
echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
 
6208
  case $ac_cv_c_uint16_t in #(
 
6209
  no|yes) ;; #(
 
6210
  *)
 
6211
 
 
6212
 
 
6213
cat >>confdefs.h <<_ACEOF
 
6214
#define uint16_t $ac_cv_c_uint16_t
 
6215
_ACEOF
 
6216
;;
 
6217
  esac
 
6218
 
 
6219
 
 
6220
  { echo "$as_me:$LINENO: checking for uint32_t" >&5
 
6221
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
 
6222
if test "${ac_cv_c_uint32_t+set}" = set; then
 
6223
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6224
else
 
6225
  ac_cv_c_uint32_t=no
 
6226
     for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
 
6227
         'unsigned long long int' 'unsigned short int' 'unsigned char'; do
 
6228
       cat >conftest.$ac_ext <<_ACEOF
 
6229
/* confdefs.h.  */
 
6230
_ACEOF
 
6231
cat confdefs.h >>conftest.$ac_ext
 
6232
cat >>conftest.$ac_ext <<_ACEOF
 
6233
/* end confdefs.h.  */
 
6234
$ac_includes_default
 
6235
int
 
6236
main ()
 
6237
{
 
6238
static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
 
6239
test_array [0] = 0
 
6240
 
 
6241
  ;
 
6242
  return 0;
 
6243
}
 
6244
_ACEOF
 
6245
rm -f conftest.$ac_objext
 
6246
if { (ac_try="$ac_compile"
 
6247
case "(($ac_try" in
 
6248
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6249
  *) ac_try_echo=$ac_try;;
 
6250
esac
 
6251
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6252
  (eval "$ac_compile") 2>conftest.er1
 
6253
  ac_status=$?
 
6254
  grep -v '^ *+' conftest.er1 >conftest.err
 
6255
  rm -f conftest.er1
 
6256
  cat conftest.err >&5
 
6257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6258
  (exit $ac_status); } && {
 
6259
         test -z "$ac_c_werror_flag" ||
 
6260
         test ! -s conftest.err
 
6261
       } && test -s conftest.$ac_objext; then
 
6262
  case $ac_type in
 
6263
  uint32_t) ac_cv_c_uint32_t=yes ;;
 
6264
  *) ac_cv_c_uint32_t=$ac_type ;;
 
6265
esac
 
6266
 
 
6267
else
 
6268
  echo "$as_me: failed program was:" >&5
 
6269
sed 's/^/| /' conftest.$ac_ext >&5
 
6270
 
 
6271
 
 
6272
fi
 
6273
 
 
6274
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6275
       test "$ac_cv_c_uint32_t" != no && break
 
6276
     done
 
6277
fi
 
6278
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
 
6279
echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
 
6280
  case $ac_cv_c_uint32_t in #(
 
6281
  no|yes) ;; #(
 
6282
  *)
 
6283
 
 
6284
cat >>confdefs.h <<\_ACEOF
 
6285
#define _UINT32_T 1
 
6286
_ACEOF
 
6287
 
 
6288
 
 
6289
cat >>confdefs.h <<_ACEOF
 
6290
#define uint32_t $ac_cv_c_uint32_t
 
6291
_ACEOF
 
6292
;;
 
6293
  esac
 
6294
 
 
6295
 
 
6296
  { echo "$as_me:$LINENO: checking for uint8_t" >&5
 
6297
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
 
6298
if test "${ac_cv_c_uint8_t+set}" = set; then
 
6299
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6300
else
 
6301
  ac_cv_c_uint8_t=no
 
6302
     for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
 
6303
         'unsigned long long int' 'unsigned short int' 'unsigned char'; do
 
6304
       cat >conftest.$ac_ext <<_ACEOF
 
6305
/* confdefs.h.  */
 
6306
_ACEOF
 
6307
cat confdefs.h >>conftest.$ac_ext
 
6308
cat >>conftest.$ac_ext <<_ACEOF
 
6309
/* end confdefs.h.  */
 
6310
$ac_includes_default
 
6311
int
 
6312
main ()
 
6313
{
 
6314
static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
 
6315
test_array [0] = 0
 
6316
 
 
6317
  ;
 
6318
  return 0;
 
6319
}
 
6320
_ACEOF
 
6321
rm -f conftest.$ac_objext
 
6322
if { (ac_try="$ac_compile"
 
6323
case "(($ac_try" in
 
6324
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6325
  *) ac_try_echo=$ac_try;;
 
6326
esac
 
6327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6328
  (eval "$ac_compile") 2>conftest.er1
 
6329
  ac_status=$?
 
6330
  grep -v '^ *+' conftest.er1 >conftest.err
 
6331
  rm -f conftest.er1
 
6332
  cat conftest.err >&5
 
6333
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6334
  (exit $ac_status); } && {
 
6335
         test -z "$ac_c_werror_flag" ||
 
6336
         test ! -s conftest.err
 
6337
       } && test -s conftest.$ac_objext; then
 
6338
  case $ac_type in
 
6339
  uint8_t) ac_cv_c_uint8_t=yes ;;
 
6340
  *) ac_cv_c_uint8_t=$ac_type ;;
 
6341
esac
 
6342
 
 
6343
else
 
6344
  echo "$as_me: failed program was:" >&5
 
6345
sed 's/^/| /' conftest.$ac_ext >&5
 
6346
 
 
6347
 
 
6348
fi
 
6349
 
 
6350
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6351
       test "$ac_cv_c_uint8_t" != no && break
 
6352
     done
 
6353
fi
 
6354
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
 
6355
echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
 
6356
  case $ac_cv_c_uint8_t in #(
 
6357
  no|yes) ;; #(
 
6358
  *)
 
6359
 
 
6360
cat >>confdefs.h <<\_ACEOF
 
6361
#define _UINT8_T 1
 
6362
_ACEOF
 
6363
 
 
6364
 
 
6365
cat >>confdefs.h <<_ACEOF
 
6366
#define uint8_t $ac_cv_c_uint8_t
 
6367
_ACEOF
 
6368
;;
 
6369
  esac
 
6370
 
 
6371
 
 
6372
# Checks for library functions.
 
6373
{ echo "$as_me:$LINENO: checking whether closedir returns void" >&5
 
6374
echo $ECHO_N "checking whether closedir returns void... $ECHO_C" >&6; }
 
6375
if test "${ac_cv_func_closedir_void+set}" = set; then
 
6376
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6377
else
 
6378
  if test "$cross_compiling" = yes; then
 
6379
  ac_cv_func_closedir_void=yes
 
6380
else
 
6381
  cat >conftest.$ac_ext <<_ACEOF
 
6382
/* confdefs.h.  */
 
6383
_ACEOF
 
6384
cat confdefs.h >>conftest.$ac_ext
 
6385
cat >>conftest.$ac_ext <<_ACEOF
 
6386
/* end confdefs.h.  */
 
6387
$ac_includes_default
 
6388
#include <$ac_header_dirent>
 
6389
#ifndef __cplusplus
 
6390
int closedir ();
 
6391
#endif
 
6392
 
 
6393
int
 
6394
main ()
 
6395
{
 
6396
return closedir (opendir (".")) != 0;
 
6397
  ;
 
6398
  return 0;
 
6399
}
 
6400
_ACEOF
 
6401
rm -f conftest$ac_exeext
 
6402
if { (ac_try="$ac_link"
 
6403
case "(($ac_try" in
 
6404
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6405
  *) ac_try_echo=$ac_try;;
 
6406
esac
 
6407
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6408
  (eval "$ac_link") 2>&5
 
6409
  ac_status=$?
 
6410
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6411
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6412
  { (case "(($ac_try" in
 
6413
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6414
  *) ac_try_echo=$ac_try;;
 
6415
esac
 
6416
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6417
  (eval "$ac_try") 2>&5
 
6418
  ac_status=$?
 
6419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6420
  (exit $ac_status); }; }; then
 
6421
  ac_cv_func_closedir_void=no
 
6422
else
 
6423
  echo "$as_me: program exited with status $ac_status" >&5
 
6424
echo "$as_me: failed program was:" >&5
 
6425
sed 's/^/| /' conftest.$ac_ext >&5
 
6426
 
 
6427
( exit $ac_status )
 
6428
ac_cv_func_closedir_void=yes
 
6429
fi
 
6430
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6431
fi
 
6432
 
 
6433
 
 
6434
fi
 
6435
{ echo "$as_me:$LINENO: result: $ac_cv_func_closedir_void" >&5
 
6436
echo "${ECHO_T}$ac_cv_func_closedir_void" >&6; }
 
6437
if test $ac_cv_func_closedir_void = yes; then
 
6438
 
 
6439
cat >>confdefs.h <<\_ACEOF
 
6440
#define CLOSEDIR_VOID 1
 
6441
_ACEOF
 
6442
 
 
6443
fi
 
6444
 
 
6445
{ echo "$as_me:$LINENO: checking for error_at_line" >&5
 
6446
echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; }
 
6447
if test "${ac_cv_lib_error_at_line+set}" = set; then
 
6448
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6449
else
 
6450
  cat >conftest.$ac_ext <<_ACEOF
 
6451
/* confdefs.h.  */
 
6452
_ACEOF
 
6453
cat confdefs.h >>conftest.$ac_ext
 
6454
cat >>conftest.$ac_ext <<_ACEOF
 
6455
/* end confdefs.h.  */
 
6456
#include <error.h>
 
6457
int
 
6458
main ()
 
6459
{
 
6460
error_at_line (0, 0, "", 0, "an error occurred");
 
6461
  ;
 
6462
  return 0;
 
6463
}
 
6464
_ACEOF
 
6465
rm -f conftest.$ac_objext conftest$ac_exeext
 
6466
if { (ac_try="$ac_link"
 
6467
case "(($ac_try" in
 
6468
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6469
  *) ac_try_echo=$ac_try;;
 
6470
esac
 
6471
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6472
  (eval "$ac_link") 2>conftest.er1
 
6473
  ac_status=$?
 
6474
  grep -v '^ *+' conftest.er1 >conftest.err
 
6475
  rm -f conftest.er1
 
6476
  cat conftest.err >&5
 
6477
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6478
  (exit $ac_status); } && {
 
6479
         test -z "$ac_c_werror_flag" ||
 
6480
         test ! -s conftest.err
 
6481
       } && test -s conftest$ac_exeext &&
 
6482
       $as_test_x conftest$ac_exeext; then
 
6483
  ac_cv_lib_error_at_line=yes
 
6484
else
 
6485
  echo "$as_me: failed program was:" >&5
 
6486
sed 's/^/| /' conftest.$ac_ext >&5
 
6487
 
 
6488
        ac_cv_lib_error_at_line=no
 
6489
fi
 
6490
 
 
6491
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6492
      conftest$ac_exeext conftest.$ac_ext
 
6493
fi
 
6494
{ echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
 
6495
echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; }
 
6496
if test $ac_cv_lib_error_at_line = no; then
 
6497
  case " $LIBOBJS " in
 
6498
  *" error.$ac_objext "* ) ;;
 
6499
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
 
6500
 ;;
 
6501
esac
 
6502
 
 
6503
fi
 
6504
 
 
6505
{ echo "$as_me:$LINENO: checking for pid_t" >&5
 
6506
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
6507
if test "${ac_cv_type_pid_t+set}" = set; then
 
6508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6509
else
 
6510
  cat >conftest.$ac_ext <<_ACEOF
 
6511
/* confdefs.h.  */
 
6512
_ACEOF
 
6513
cat confdefs.h >>conftest.$ac_ext
 
6514
cat >>conftest.$ac_ext <<_ACEOF
 
6515
/* end confdefs.h.  */
 
6516
$ac_includes_default
 
6517
typedef pid_t ac__type_new_;
 
6518
int
 
6519
main ()
 
6520
{
 
6521
if ((ac__type_new_ *) 0)
 
6522
  return 0;
 
6523
if (sizeof (ac__type_new_))
 
6524
  return 0;
 
6525
  ;
 
6526
  return 0;
 
6527
}
 
6528
_ACEOF
 
6529
rm -f conftest.$ac_objext
 
6530
if { (ac_try="$ac_compile"
 
6531
case "(($ac_try" in
 
6532
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6533
  *) ac_try_echo=$ac_try;;
 
6534
esac
 
6535
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6536
  (eval "$ac_compile") 2>conftest.er1
 
6537
  ac_status=$?
 
6538
  grep -v '^ *+' conftest.er1 >conftest.err
 
6539
  rm -f conftest.er1
 
6540
  cat conftest.err >&5
 
6541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6542
  (exit $ac_status); } && {
 
6543
         test -z "$ac_c_werror_flag" ||
 
6544
         test ! -s conftest.err
 
6545
       } && test -s conftest.$ac_objext; then
 
6546
  ac_cv_type_pid_t=yes
 
6547
else
 
6548
  echo "$as_me: failed program was:" >&5
 
6549
sed 's/^/| /' conftest.$ac_ext >&5
 
6550
 
 
6551
        ac_cv_type_pid_t=no
 
6552
fi
 
6553
 
 
6554
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6555
fi
 
6556
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
6557
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 
6558
if test $ac_cv_type_pid_t = yes; then
 
6559
  :
 
6560
else
 
6561
 
 
6562
cat >>confdefs.h <<_ACEOF
 
6563
#define pid_t int
 
6564
_ACEOF
 
6565
 
 
6566
fi
 
6567
 
 
6568
 
 
6569
for ac_header in vfork.h
 
6570
do
 
6571
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6572
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6573
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6574
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6575
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6576
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6577
fi
 
6578
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6579
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6580
echo "${ECHO_T}$ac_res" >&6; }
 
6581
else
 
6582
  # Is the header compilable?
 
6583
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6584
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
6585
cat >conftest.$ac_ext <<_ACEOF
 
6586
/* confdefs.h.  */
 
6587
_ACEOF
 
6588
cat confdefs.h >>conftest.$ac_ext
 
6589
cat >>conftest.$ac_ext <<_ACEOF
 
6590
/* end confdefs.h.  */
 
6591
$ac_includes_default
 
6592
#include <$ac_header>
 
6593
_ACEOF
 
6594
rm -f conftest.$ac_objext
 
6595
if { (ac_try="$ac_compile"
 
6596
case "(($ac_try" in
 
6597
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6598
  *) ac_try_echo=$ac_try;;
 
6599
esac
 
6600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6601
  (eval "$ac_compile") 2>conftest.er1
 
6602
  ac_status=$?
 
6603
  grep -v '^ *+' conftest.er1 >conftest.err
 
6604
  rm -f conftest.er1
 
6605
  cat conftest.err >&5
 
6606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6607
  (exit $ac_status); } && {
 
6608
         test -z "$ac_c_werror_flag" ||
 
6609
         test ! -s conftest.err
 
6610
       } && test -s conftest.$ac_objext; then
 
6611
  ac_header_compiler=yes
 
6612
else
 
6613
  echo "$as_me: failed program was:" >&5
 
6614
sed 's/^/| /' conftest.$ac_ext >&5
 
6615
 
 
6616
        ac_header_compiler=no
 
6617
fi
 
6618
 
 
6619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6620
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6621
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
6622
 
 
6623
# Is the header present?
 
6624
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6625
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
6626
cat >conftest.$ac_ext <<_ACEOF
 
6627
/* confdefs.h.  */
 
6628
_ACEOF
 
6629
cat confdefs.h >>conftest.$ac_ext
 
6630
cat >>conftest.$ac_ext <<_ACEOF
 
6631
/* end confdefs.h.  */
 
6632
#include <$ac_header>
 
6633
_ACEOF
 
6634
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6635
case "(($ac_try" in
 
6636
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6637
  *) ac_try_echo=$ac_try;;
 
6638
esac
 
6639
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6640
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6641
  ac_status=$?
 
6642
  grep -v '^ *+' conftest.er1 >conftest.err
 
6643
  rm -f conftest.er1
 
6644
  cat conftest.err >&5
 
6645
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6646
  (exit $ac_status); } >/dev/null && {
 
6647
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6648
         test ! -s conftest.err
 
6649
       }; then
 
6650
  ac_header_preproc=yes
 
6651
else
 
6652
  echo "$as_me: failed program was:" >&5
 
6653
sed 's/^/| /' conftest.$ac_ext >&5
 
6654
 
 
6655
  ac_header_preproc=no
 
6656
fi
 
6657
 
 
6658
rm -f conftest.err conftest.$ac_ext
 
6659
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6660
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
6661
 
 
6662
# So?  What about this header?
 
6663
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6664
  yes:no: )
 
6665
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6666
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6667
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6668
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6669
    ac_header_preproc=yes
 
6670
    ;;
 
6671
  no:yes:* )
 
6672
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6673
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6674
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6675
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6676
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6677
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6678
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6679
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6680
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6681
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6682
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6683
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6684
    ( cat <<\_ASBOX
 
6685
## ----------------------------------- ##
 
6686
## Report this to kevin@misfitcode.com ##
 
6687
## ----------------------------------- ##
 
6688
_ASBOX
 
6689
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6690
    ;;
 
6691
esac
 
6692
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6693
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6694
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6695
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6696
else
 
6697
  eval "$as_ac_Header=\$ac_header_preproc"
 
6698
fi
 
6699
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6700
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6701
echo "${ECHO_T}$ac_res" >&6; }
 
6702
 
 
6703
fi
 
6704
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6705
  cat >>confdefs.h <<_ACEOF
 
6706
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6707
_ACEOF
 
6708
 
 
6709
fi
 
6710
 
 
6711
done
 
6712
 
 
6713
 
 
6714
 
 
6715
for ac_func in fork vfork
 
6716
do
 
6717
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6718
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6719
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6720
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6721
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6722
else
 
6723
  cat >conftest.$ac_ext <<_ACEOF
 
6724
/* confdefs.h.  */
 
6725
_ACEOF
 
6726
cat confdefs.h >>conftest.$ac_ext
 
6727
cat >>conftest.$ac_ext <<_ACEOF
 
6728
/* end confdefs.h.  */
 
6729
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6730
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6731
#define $ac_func innocuous_$ac_func
 
6732
 
 
6733
/* System header to define __stub macros and hopefully few prototypes,
 
6734
    which can conflict with char $ac_func (); below.
 
6735
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6736
    <limits.h> exists even on freestanding compilers.  */
 
6737
 
 
6738
#ifdef __STDC__
 
6739
# include <limits.h>
 
6740
#else
 
6741
# include <assert.h>
 
6742
#endif
 
6743
 
 
6744
#undef $ac_func
 
6745
 
 
6746
/* Override any GCC internal prototype to avoid an error.
 
6747
   Use char because int might match the return type of a GCC
 
6748
   builtin and then its argument prototype would still apply.  */
 
6749
#ifdef __cplusplus
 
6750
extern "C"
 
6751
#endif
 
6752
char $ac_func ();
 
6753
/* The GNU C library defines this for functions which it implements
 
6754
    to always fail with ENOSYS.  Some functions are actually named
 
6755
    something starting with __ and the normal name is an alias.  */
 
6756
#if defined __stub_$ac_func || defined __stub___$ac_func
 
6757
choke me
 
6758
#endif
 
6759
 
 
6760
int
 
6761
main ()
 
6762
{
 
6763
return $ac_func ();
 
6764
  ;
 
6765
  return 0;
 
6766
}
 
6767
_ACEOF
 
6768
rm -f conftest.$ac_objext conftest$ac_exeext
 
6769
if { (ac_try="$ac_link"
 
6770
case "(($ac_try" in
 
6771
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6772
  *) ac_try_echo=$ac_try;;
 
6773
esac
 
6774
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6775
  (eval "$ac_link") 2>conftest.er1
 
6776
  ac_status=$?
 
6777
  grep -v '^ *+' conftest.er1 >conftest.err
 
6778
  rm -f conftest.er1
 
6779
  cat conftest.err >&5
 
6780
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6781
  (exit $ac_status); } && {
 
6782
         test -z "$ac_c_werror_flag" ||
 
6783
         test ! -s conftest.err
 
6784
       } && test -s conftest$ac_exeext &&
 
6785
       $as_test_x conftest$ac_exeext; then
 
6786
  eval "$as_ac_var=yes"
 
6787
else
 
6788
  echo "$as_me: failed program was:" >&5
 
6789
sed 's/^/| /' conftest.$ac_ext >&5
 
6790
 
 
6791
        eval "$as_ac_var=no"
 
6792
fi
 
6793
 
 
6794
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6795
      conftest$ac_exeext conftest.$ac_ext
 
6796
fi
 
6797
ac_res=`eval echo '${'$as_ac_var'}'`
 
6798
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6799
echo "${ECHO_T}$ac_res" >&6; }
 
6800
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6801
  cat >>confdefs.h <<_ACEOF
 
6802
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6803
_ACEOF
 
6804
 
 
6805
fi
 
6806
done
 
6807
 
 
6808
if test "x$ac_cv_func_fork" = xyes; then
 
6809
  { echo "$as_me:$LINENO: checking for working fork" >&5
 
6810
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
 
6811
if test "${ac_cv_func_fork_works+set}" = set; then
 
6812
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6813
else
 
6814
  if test "$cross_compiling" = yes; then
 
6815
  ac_cv_func_fork_works=cross
 
6816
else
 
6817
  cat >conftest.$ac_ext <<_ACEOF
 
6818
/* confdefs.h.  */
 
6819
_ACEOF
 
6820
cat confdefs.h >>conftest.$ac_ext
 
6821
cat >>conftest.$ac_ext <<_ACEOF
 
6822
/* end confdefs.h.  */
 
6823
$ac_includes_default
 
6824
int
 
6825
main ()
 
6826
{
 
6827
 
 
6828
          /* By Ruediger Kuhlmann. */
 
6829
          return fork () < 0;
 
6830
 
 
6831
  ;
 
6832
  return 0;
 
6833
}
 
6834
_ACEOF
 
6835
rm -f conftest$ac_exeext
 
6836
if { (ac_try="$ac_link"
 
6837
case "(($ac_try" in
 
6838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6839
  *) ac_try_echo=$ac_try;;
 
6840
esac
 
6841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6842
  (eval "$ac_link") 2>&5
 
6843
  ac_status=$?
 
6844
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6845
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6846
  { (case "(($ac_try" in
 
6847
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6848
  *) ac_try_echo=$ac_try;;
 
6849
esac
 
6850
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6851
  (eval "$ac_try") 2>&5
 
6852
  ac_status=$?
 
6853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6854
  (exit $ac_status); }; }; then
 
6855
  ac_cv_func_fork_works=yes
 
6856
else
 
6857
  echo "$as_me: program exited with status $ac_status" >&5
 
6858
echo "$as_me: failed program was:" >&5
 
6859
sed 's/^/| /' conftest.$ac_ext >&5
 
6860
 
 
6861
( exit $ac_status )
 
6862
ac_cv_func_fork_works=no
 
6863
fi
 
6864
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6865
fi
 
6866
 
 
6867
 
 
6868
fi
 
6869
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
 
6870
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
 
6871
 
 
6872
else
 
6873
  ac_cv_func_fork_works=$ac_cv_func_fork
 
6874
fi
 
6875
if test "x$ac_cv_func_fork_works" = xcross; then
 
6876
  case $host in
 
6877
    *-*-amigaos* | *-*-msdosdjgpp*)
 
6878
      # Override, as these systems have only a dummy fork() stub
 
6879
      ac_cv_func_fork_works=no
 
6880
      ;;
 
6881
    *)
 
6882
      ac_cv_func_fork_works=yes
 
6883
      ;;
 
6884
  esac
 
6885
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
6886
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
6887
fi
 
6888
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
6889
if test "x$ac_cv_func_vfork" = xyes; then
 
6890
  { echo "$as_me:$LINENO: checking for working vfork" >&5
 
6891
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
 
6892
if test "${ac_cv_func_vfork_works+set}" = set; then
 
6893
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6894
else
 
6895
  if test "$cross_compiling" = yes; then
 
6896
  ac_cv_func_vfork_works=cross
 
6897
else
 
6898
  cat >conftest.$ac_ext <<_ACEOF
 
6899
/* confdefs.h.  */
 
6900
_ACEOF
 
6901
cat confdefs.h >>conftest.$ac_ext
 
6902
cat >>conftest.$ac_ext <<_ACEOF
 
6903
/* end confdefs.h.  */
 
6904
/* Thanks to Paul Eggert for this test.  */
 
6905
$ac_includes_default
 
6906
#include <sys/wait.h>
 
6907
#ifdef HAVE_VFORK_H
 
6908
# include <vfork.h>
 
6909
#endif
 
6910
/* On some sparc systems, changes by the child to local and incoming
 
6911
   argument registers are propagated back to the parent.  The compiler
 
6912
   is told about this with #include <vfork.h>, but some compilers
 
6913
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
6914
   static variable whose address is put into a register that is
 
6915
   clobbered by the vfork.  */
 
6916
static void
 
6917
#ifdef __cplusplus
 
6918
sparc_address_test (int arg)
 
6919
# else
 
6920
sparc_address_test (arg) int arg;
 
6921
#endif
 
6922
{
 
6923
  static pid_t child;
 
6924
  if (!child) {
 
6925
    child = vfork ();
 
6926
    if (child < 0) {
 
6927
      perror ("vfork");
 
6928
      _exit(2);
 
6929
    }
 
6930
    if (!child) {
 
6931
      arg = getpid();
 
6932
      write(-1, "", 0);
 
6933
      _exit (arg);
 
6934
    }
 
6935
  }
 
6936
}
 
6937
 
 
6938
int
 
6939
main ()
 
6940
{
 
6941
  pid_t parent = getpid ();
 
6942
  pid_t child;
 
6943
 
 
6944
  sparc_address_test (0);
 
6945
 
 
6946
  child = vfork ();
 
6947
 
 
6948
  if (child == 0) {
 
6949
    /* Here is another test for sparc vfork register problems.  This
 
6950
       test uses lots of local variables, at least as many local
 
6951
       variables as main has allocated so far including compiler
 
6952
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
6953
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
6954
       reuse the register of parent for one of the local variables,
 
6955
       since it will think that parent can't possibly be used any more
 
6956
       in this routine.  Assigning to the local variable will thus
 
6957
       munge parent in the parent process.  */
 
6958
    pid_t
 
6959
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
6960
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
6961
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
6962
       use the same hardware register for all 8 local variables.  */
 
6963
    if (p != p1 || p != p2 || p != p3 || p != p4
 
6964
        || p != p5 || p != p6 || p != p7)
 
6965
      _exit(1);
 
6966
 
 
6967
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
6968
       from child file descriptors.  If the child closes a descriptor
 
6969
       before it execs or exits, this munges the parent's descriptor
 
6970
       as well.  Test for this by closing stdout in the child.  */
 
6971
    _exit(close(fileno(stdout)) != 0);
 
6972
  } else {
 
6973
    int status;
 
6974
    struct stat st;
 
6975
 
 
6976
    while (wait(&status) != child)
 
6977
      ;
 
6978
    return (
 
6979
         /* Was there some problem with vforking?  */
 
6980
         child < 0
 
6981
 
 
6982
         /* Did the child fail?  (This shouldn't happen.)  */
 
6983
         || status
 
6984
 
 
6985
         /* Did the vfork/compiler bug occur?  */
 
6986
         || parent != getpid()
 
6987
 
 
6988
         /* Did the file descriptor bug occur?  */
 
6989
         || fstat(fileno(stdout), &st) != 0
 
6990
         );
 
6991
  }
 
6992
}
 
6993
_ACEOF
 
6994
rm -f conftest$ac_exeext
 
6995
if { (ac_try="$ac_link"
 
6996
case "(($ac_try" in
 
6997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6998
  *) ac_try_echo=$ac_try;;
 
6999
esac
 
7000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7001
  (eval "$ac_link") 2>&5
 
7002
  ac_status=$?
 
7003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7004
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7005
  { (case "(($ac_try" in
 
7006
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7007
  *) ac_try_echo=$ac_try;;
 
7008
esac
 
7009
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7010
  (eval "$ac_try") 2>&5
 
7011
  ac_status=$?
 
7012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7013
  (exit $ac_status); }; }; then
 
7014
  ac_cv_func_vfork_works=yes
 
7015
else
 
7016
  echo "$as_me: program exited with status $ac_status" >&5
 
7017
echo "$as_me: failed program was:" >&5
 
7018
sed 's/^/| /' conftest.$ac_ext >&5
 
7019
 
 
7020
( exit $ac_status )
 
7021
ac_cv_func_vfork_works=no
 
7022
fi
 
7023
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7024
fi
 
7025
 
 
7026
 
 
7027
fi
 
7028
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
 
7029
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
 
7030
 
 
7031
fi;
 
7032
if test "x$ac_cv_func_fork_works" = xcross; then
 
7033
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
7034
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
7035
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
7036
fi
 
7037
 
 
7038
if test "x$ac_cv_func_vfork_works" = xyes; then
 
7039
 
 
7040
cat >>confdefs.h <<\_ACEOF
 
7041
#define HAVE_WORKING_VFORK 1
 
7042
_ACEOF
 
7043
 
 
7044
else
 
7045
 
 
7046
cat >>confdefs.h <<\_ACEOF
 
7047
#define vfork fork
 
7048
_ACEOF
 
7049
 
 
7050
fi
 
7051
if test "x$ac_cv_func_fork_works" = xyes; then
 
7052
 
 
7053
cat >>confdefs.h <<\_ACEOF
 
7054
#define HAVE_WORKING_FORK 1
 
7055
_ACEOF
 
7056
 
 
7057
fi
 
7058
 
 
7059
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
7060
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
 
7061
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
 
7062
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7063
else
 
7064
  rm -f conftest.sym conftest.file
 
7065
echo >conftest.file
 
7066
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
7067
  if test "$cross_compiling" = yes; then
 
7068
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
7069
else
 
7070
  cat >conftest.$ac_ext <<_ACEOF
 
7071
/* confdefs.h.  */
 
7072
_ACEOF
 
7073
cat confdefs.h >>conftest.$ac_ext
 
7074
cat >>conftest.$ac_ext <<_ACEOF
 
7075
/* end confdefs.h.  */
 
7076
$ac_includes_default
 
7077
int
 
7078
main ()
 
7079
{
 
7080
struct stat sbuf;
 
7081
     /* Linux will dereference the symlink and fail.
 
7082
        That is better in the sense that it means we will not
 
7083
        have to compile and use the lstat wrapper.  */
 
7084
     return lstat ("conftest.sym/", &sbuf) == 0;
 
7085
  ;
 
7086
  return 0;
 
7087
}
 
7088
_ACEOF
 
7089
rm -f conftest$ac_exeext
 
7090
if { (ac_try="$ac_link"
 
7091
case "(($ac_try" in
 
7092
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7093
  *) ac_try_echo=$ac_try;;
 
7094
esac
 
7095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7096
  (eval "$ac_link") 2>&5
 
7097
  ac_status=$?
 
7098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7099
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7100
  { (case "(($ac_try" in
 
7101
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7102
  *) ac_try_echo=$ac_try;;
 
7103
esac
 
7104
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7105
  (eval "$ac_try") 2>&5
 
7106
  ac_status=$?
 
7107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7108
  (exit $ac_status); }; }; then
 
7109
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
7110
else
 
7111
  echo "$as_me: program exited with status $ac_status" >&5
 
7112
echo "$as_me: failed program was:" >&5
 
7113
sed 's/^/| /' conftest.$ac_ext >&5
 
7114
 
 
7115
( exit $ac_status )
 
7116
ac_cv_func_lstat_dereferences_slashed_symlink=no
 
7117
fi
 
7118
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7119
fi
 
7120
 
 
7121
 
 
7122
else
 
7123
  # If the `ln -s' command failed, then we probably don't even
 
7124
  # have an lstat function.
 
7125
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
7126
fi
 
7127
rm -f conftest.sym conftest.file
 
7128
 
 
7129
fi
 
7130
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
7131
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
 
7132
 
 
7133
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
7134
 
 
7135
cat >>confdefs.h <<_ACEOF
 
7136
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
7137
_ACEOF
 
7138
 
 
7139
 
 
7140
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
7141
  case " $LIBOBJS " in
 
7142
  *" lstat.$ac_objext "* ) ;;
 
7143
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
7144
 ;;
 
7145
esac
 
7146
 
 
7147
fi
 
7148
 
 
7149
{ echo "$as_me:$LINENO: checking whether lstat accepts an empty string" >&5
 
7150
echo $ECHO_N "checking whether lstat accepts an empty string... $ECHO_C" >&6; }
 
7151
if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then
 
7152
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7153
else
 
7154
  if test "$cross_compiling" = yes; then
 
7155
  ac_cv_func_lstat_empty_string_bug=yes
 
7156
else
 
7157
  cat >conftest.$ac_ext <<_ACEOF
 
7158
/* confdefs.h.  */
 
7159
_ACEOF
 
7160
cat confdefs.h >>conftest.$ac_ext
 
7161
cat >>conftest.$ac_ext <<_ACEOF
 
7162
/* end confdefs.h.  */
 
7163
$ac_includes_default
 
7164
int
 
7165
main ()
 
7166
{
 
7167
struct stat sbuf;
 
7168
  return lstat ("", &sbuf) == 0;
 
7169
  ;
 
7170
  return 0;
 
7171
}
 
7172
_ACEOF
 
7173
rm -f conftest$ac_exeext
 
7174
if { (ac_try="$ac_link"
 
7175
case "(($ac_try" in
 
7176
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7177
  *) ac_try_echo=$ac_try;;
 
7178
esac
 
7179
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7180
  (eval "$ac_link") 2>&5
 
7181
  ac_status=$?
 
7182
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7183
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7184
  { (case "(($ac_try" in
 
7185
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7186
  *) ac_try_echo=$ac_try;;
 
7187
esac
 
7188
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7189
  (eval "$ac_try") 2>&5
 
7190
  ac_status=$?
 
7191
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7192
  (exit $ac_status); }; }; then
 
7193
  ac_cv_func_lstat_empty_string_bug=no
 
7194
else
 
7195
  echo "$as_me: program exited with status $ac_status" >&5
 
7196
echo "$as_me: failed program was:" >&5
 
7197
sed 's/^/| /' conftest.$ac_ext >&5
 
7198
 
 
7199
( exit $ac_status )
 
7200
ac_cv_func_lstat_empty_string_bug=yes
 
7201
fi
 
7202
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7203
fi
 
7204
 
 
7205
 
 
7206
fi
 
7207
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_empty_string_bug" >&5
 
7208
echo "${ECHO_T}$ac_cv_func_lstat_empty_string_bug" >&6; }
 
7209
if test $ac_cv_func_lstat_empty_string_bug = yes; then
 
7210
  case " $LIBOBJS " in
 
7211
  *" lstat.$ac_objext "* ) ;;
 
7212
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
7213
 ;;
 
7214
esac
 
7215
 
 
7216
 
 
7217
cat >>confdefs.h <<_ACEOF
 
7218
#define HAVE_LSTAT_EMPTY_STRING_BUG 1
 
7219
_ACEOF
 
7220
 
 
7221
fi
 
7222
 
 
7223
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
7224
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
 
7225
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
 
7226
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7227
else
 
7228
  rm -f conftest.sym conftest.file
 
7229
echo >conftest.file
 
7230
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
7231
  if test "$cross_compiling" = yes; then
 
7232
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
7233
else
 
7234
  cat >conftest.$ac_ext <<_ACEOF
 
7235
/* confdefs.h.  */
 
7236
_ACEOF
 
7237
cat confdefs.h >>conftest.$ac_ext
 
7238
cat >>conftest.$ac_ext <<_ACEOF
 
7239
/* end confdefs.h.  */
 
7240
$ac_includes_default
 
7241
int
 
7242
main ()
 
7243
{
 
7244
struct stat sbuf;
 
7245
     /* Linux will dereference the symlink and fail.
 
7246
        That is better in the sense that it means we will not
 
7247
        have to compile and use the lstat wrapper.  */
 
7248
     return lstat ("conftest.sym/", &sbuf) == 0;
 
7249
  ;
 
7250
  return 0;
 
7251
}
 
7252
_ACEOF
 
7253
rm -f conftest$ac_exeext
 
7254
if { (ac_try="$ac_link"
 
7255
case "(($ac_try" in
 
7256
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7257
  *) ac_try_echo=$ac_try;;
 
7258
esac
 
7259
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7260
  (eval "$ac_link") 2>&5
 
7261
  ac_status=$?
 
7262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7263
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7264
  { (case "(($ac_try" in
 
7265
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7266
  *) ac_try_echo=$ac_try;;
 
7267
esac
 
7268
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7269
  (eval "$ac_try") 2>&5
 
7270
  ac_status=$?
 
7271
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7272
  (exit $ac_status); }; }; then
 
7273
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
7274
else
 
7275
  echo "$as_me: program exited with status $ac_status" >&5
 
7276
echo "$as_me: failed program was:" >&5
 
7277
sed 's/^/| /' conftest.$ac_ext >&5
 
7278
 
 
7279
( exit $ac_status )
 
7280
ac_cv_func_lstat_dereferences_slashed_symlink=no
 
7281
fi
 
7282
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7283
fi
 
7284
 
 
7285
 
 
7286
else
 
7287
  # If the `ln -s' command failed, then we probably don't even
 
7288
  # have an lstat function.
 
7289
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
7290
fi
 
7291
rm -f conftest.sym conftest.file
 
7292
 
 
7293
fi
 
7294
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
7295
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
 
7296
 
 
7297
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
7298
 
 
7299
cat >>confdefs.h <<_ACEOF
 
7300
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
7301
_ACEOF
 
7302
 
 
7303
 
 
7304
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
7305
  case " $LIBOBJS " in
 
7306
  *" lstat.$ac_objext "* ) ;;
 
7307
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
7308
 ;;
 
7309
esac
 
7310
 
 
7311
fi
 
7312
 
 
7313
 
 
7314
for ac_header in stdlib.h
 
7315
do
 
7316
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7317
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7318
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7319
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7320
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7321
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7322
fi
 
7323
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7324
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7325
echo "${ECHO_T}$ac_res" >&6; }
 
7326
else
 
7327
  # Is the header compilable?
 
7328
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7329
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
7330
cat >conftest.$ac_ext <<_ACEOF
 
7331
/* confdefs.h.  */
 
7332
_ACEOF
 
7333
cat confdefs.h >>conftest.$ac_ext
 
7334
cat >>conftest.$ac_ext <<_ACEOF
 
7335
/* end confdefs.h.  */
 
7336
$ac_includes_default
 
7337
#include <$ac_header>
 
7338
_ACEOF
 
7339
rm -f conftest.$ac_objext
 
7340
if { (ac_try="$ac_compile"
 
7341
case "(($ac_try" in
 
7342
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7343
  *) ac_try_echo=$ac_try;;
 
7344
esac
 
7345
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7346
  (eval "$ac_compile") 2>conftest.er1
 
7347
  ac_status=$?
 
7348
  grep -v '^ *+' conftest.er1 >conftest.err
 
7349
  rm -f conftest.er1
 
7350
  cat conftest.err >&5
 
7351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7352
  (exit $ac_status); } && {
 
7353
         test -z "$ac_c_werror_flag" ||
 
7354
         test ! -s conftest.err
 
7355
       } && test -s conftest.$ac_objext; then
 
7356
  ac_header_compiler=yes
 
7357
else
 
7358
  echo "$as_me: failed program was:" >&5
 
7359
sed 's/^/| /' conftest.$ac_ext >&5
 
7360
 
 
7361
        ac_header_compiler=no
 
7362
fi
 
7363
 
 
7364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7365
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7366
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
7367
 
 
7368
# Is the header present?
 
7369
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7370
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
7371
cat >conftest.$ac_ext <<_ACEOF
 
7372
/* confdefs.h.  */
 
7373
_ACEOF
 
7374
cat confdefs.h >>conftest.$ac_ext
 
7375
cat >>conftest.$ac_ext <<_ACEOF
 
7376
/* end confdefs.h.  */
 
7377
#include <$ac_header>
 
7378
_ACEOF
 
7379
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7380
case "(($ac_try" in
 
7381
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7382
  *) ac_try_echo=$ac_try;;
 
7383
esac
 
7384
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7385
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7386
  ac_status=$?
 
7387
  grep -v '^ *+' conftest.er1 >conftest.err
 
7388
  rm -f conftest.er1
 
7389
  cat conftest.err >&5
 
7390
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7391
  (exit $ac_status); } >/dev/null && {
 
7392
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7393
         test ! -s conftest.err
 
7394
       }; then
 
7395
  ac_header_preproc=yes
 
7396
else
 
7397
  echo "$as_me: failed program was:" >&5
 
7398
sed 's/^/| /' conftest.$ac_ext >&5
 
7399
 
 
7400
  ac_header_preproc=no
 
7401
fi
 
7402
 
 
7403
rm -f conftest.err conftest.$ac_ext
 
7404
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7405
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
7406
 
 
7407
# So?  What about this header?
 
7408
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7409
  yes:no: )
 
7410
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7411
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7412
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7413
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7414
    ac_header_preproc=yes
 
7415
    ;;
 
7416
  no:yes:* )
 
7417
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7418
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7419
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7420
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7421
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7422
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7423
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7424
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7425
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7426
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7427
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7428
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7429
    ( cat <<\_ASBOX
 
7430
## ----------------------------------- ##
 
7431
## Report this to kevin@misfitcode.com ##
 
7432
## ----------------------------------- ##
 
7433
_ASBOX
 
7434
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
7435
    ;;
 
7436
esac
 
7437
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7438
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7439
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7440
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7441
else
 
7442
  eval "$as_ac_Header=\$ac_header_preproc"
 
7443
fi
 
7444
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7445
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7446
echo "${ECHO_T}$ac_res" >&6; }
 
7447
 
 
7448
fi
 
7449
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7450
  cat >>confdefs.h <<_ACEOF
 
7451
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7452
_ACEOF
 
7453
 
 
7454
fi
 
7455
 
 
7456
done
 
7457
 
 
7458
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
7459
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
 
7460
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
7461
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7462
else
 
7463
  if test "$cross_compiling" = yes; then
 
7464
  ac_cv_func_malloc_0_nonnull=no
 
7465
else
 
7466
  cat >conftest.$ac_ext <<_ACEOF
 
7467
/* confdefs.h.  */
 
7468
_ACEOF
 
7469
cat confdefs.h >>conftest.$ac_ext
 
7470
cat >>conftest.$ac_ext <<_ACEOF
 
7471
/* end confdefs.h.  */
 
7472
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
7473
# include <stdlib.h>
 
7474
#else
 
7475
char *malloc ();
 
7476
#endif
 
7477
 
 
7478
int
 
7479
main ()
 
7480
{
 
7481
return ! malloc (0);
 
7482
  ;
 
7483
  return 0;
 
7484
}
 
7485
_ACEOF
 
7486
rm -f conftest$ac_exeext
 
7487
if { (ac_try="$ac_link"
 
7488
case "(($ac_try" in
 
7489
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7490
  *) ac_try_echo=$ac_try;;
 
7491
esac
 
7492
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7493
  (eval "$ac_link") 2>&5
 
7494
  ac_status=$?
 
7495
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7496
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7497
  { (case "(($ac_try" in
 
7498
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7499
  *) ac_try_echo=$ac_try;;
 
7500
esac
 
7501
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7502
  (eval "$ac_try") 2>&5
 
7503
  ac_status=$?
 
7504
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7505
  (exit $ac_status); }; }; then
 
7506
  ac_cv_func_malloc_0_nonnull=yes
 
7507
else
 
7508
  echo "$as_me: program exited with status $ac_status" >&5
 
7509
echo "$as_me: failed program was:" >&5
 
7510
sed 's/^/| /' conftest.$ac_ext >&5
 
7511
 
 
7512
( exit $ac_status )
 
7513
ac_cv_func_malloc_0_nonnull=no
 
7514
fi
 
7515
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7516
fi
 
7517
 
 
7518
 
 
7519
fi
 
7520
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
7521
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
 
7522
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
7523
 
 
7524
cat >>confdefs.h <<\_ACEOF
 
7525
#define HAVE_MALLOC 1
 
7526
_ACEOF
 
7527
 
 
7528
else
 
7529
  cat >>confdefs.h <<\_ACEOF
 
7530
#define HAVE_MALLOC 0
 
7531
_ACEOF
 
7532
 
 
7533
   case " $LIBOBJS " in
 
7534
  *" malloc.$ac_objext "* ) ;;
 
7535
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
7536
 ;;
 
7537
esac
 
7538
 
 
7539
 
 
7540
cat >>confdefs.h <<\_ACEOF
 
7541
#define malloc rpl_malloc
 
7542
_ACEOF
 
7543
 
 
7544
fi
 
7545
 
 
7546
 
 
7547
 
 
7548
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
 
7549
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
 
7550
if test "${ac_cv_func_memcmp_working+set}" = set; then
 
7551
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7552
else
 
7553
  if test "$cross_compiling" = yes; then
 
7554
  ac_cv_func_memcmp_working=no
 
7555
else
 
7556
  cat >conftest.$ac_ext <<_ACEOF
 
7557
/* confdefs.h.  */
 
7558
_ACEOF
 
7559
cat confdefs.h >>conftest.$ac_ext
 
7560
cat >>conftest.$ac_ext <<_ACEOF
 
7561
/* end confdefs.h.  */
 
7562
$ac_includes_default
 
7563
int
 
7564
main ()
 
7565
{
 
7566
 
 
7567
  /* Some versions of memcmp are not 8-bit clean.  */
 
7568
  char c0 = '\100', c1 = '\200', c2 = '\201';
 
7569
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
 
7570
    return 1;
 
7571
 
 
7572
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
 
7573
     or more and with at least one buffer not starting on a 4-byte boundary.
 
7574
     William Lewis provided this test program.   */
 
7575
  {
 
7576
    char foo[21];
 
7577
    char bar[21];
 
7578
    int i;
 
7579
    for (i = 0; i < 4; i++)
 
7580
      {
 
7581
        char *a = foo + i;
 
7582
        char *b = bar + i;
 
7583
        strcpy (a, "--------01111111");
 
7584
        strcpy (b, "--------10000000");
 
7585
        if (memcmp (a, b, 16) >= 0)
 
7586
          return 1;
 
7587
      }
 
7588
    return 0;
 
7589
  }
 
7590
 
 
7591
  ;
 
7592
  return 0;
 
7593
}
 
7594
_ACEOF
 
7595
rm -f conftest$ac_exeext
 
7596
if { (ac_try="$ac_link"
 
7597
case "(($ac_try" in
 
7598
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7599
  *) ac_try_echo=$ac_try;;
 
7600
esac
 
7601
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7602
  (eval "$ac_link") 2>&5
 
7603
  ac_status=$?
 
7604
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7605
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7606
  { (case "(($ac_try" in
 
7607
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7608
  *) ac_try_echo=$ac_try;;
 
7609
esac
 
7610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7611
  (eval "$ac_try") 2>&5
 
7612
  ac_status=$?
 
7613
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7614
  (exit $ac_status); }; }; then
 
7615
  ac_cv_func_memcmp_working=yes
 
7616
else
 
7617
  echo "$as_me: program exited with status $ac_status" >&5
 
7618
echo "$as_me: failed program was:" >&5
 
7619
sed 's/^/| /' conftest.$ac_ext >&5
 
7620
 
 
7621
( exit $ac_status )
 
7622
ac_cv_func_memcmp_working=no
 
7623
fi
 
7624
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7625
fi
 
7626
 
 
7627
 
 
7628
fi
 
7629
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
 
7630
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
 
7631
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
 
7632
  *" memcmp.$ac_objext "* ) ;;
 
7633
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
 
7634
 ;;
 
7635
esac
 
7636
 
 
7637
 
 
7638
 
 
7639
for ac_header in stdlib.h
 
7640
do
 
7641
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
7642
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7643
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7644
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7645
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7646
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7647
fi
 
7648
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7649
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7650
echo "${ECHO_T}$ac_res" >&6; }
 
7651
else
 
7652
  # Is the header compilable?
 
7653
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
7654
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
7655
cat >conftest.$ac_ext <<_ACEOF
 
7656
/* confdefs.h.  */
 
7657
_ACEOF
 
7658
cat confdefs.h >>conftest.$ac_ext
 
7659
cat >>conftest.$ac_ext <<_ACEOF
 
7660
/* end confdefs.h.  */
 
7661
$ac_includes_default
 
7662
#include <$ac_header>
 
7663
_ACEOF
 
7664
rm -f conftest.$ac_objext
 
7665
if { (ac_try="$ac_compile"
 
7666
case "(($ac_try" in
 
7667
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7668
  *) ac_try_echo=$ac_try;;
 
7669
esac
 
7670
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7671
  (eval "$ac_compile") 2>conftest.er1
 
7672
  ac_status=$?
 
7673
  grep -v '^ *+' conftest.er1 >conftest.err
 
7674
  rm -f conftest.er1
 
7675
  cat conftest.err >&5
 
7676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7677
  (exit $ac_status); } && {
 
7678
         test -z "$ac_c_werror_flag" ||
 
7679
         test ! -s conftest.err
 
7680
       } && test -s conftest.$ac_objext; then
 
7681
  ac_header_compiler=yes
 
7682
else
 
7683
  echo "$as_me: failed program was:" >&5
 
7684
sed 's/^/| /' conftest.$ac_ext >&5
 
7685
 
 
7686
        ac_header_compiler=no
 
7687
fi
 
7688
 
 
7689
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7690
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
7691
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
7692
 
 
7693
# Is the header present?
 
7694
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
7695
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
7696
cat >conftest.$ac_ext <<_ACEOF
 
7697
/* confdefs.h.  */
 
7698
_ACEOF
 
7699
cat confdefs.h >>conftest.$ac_ext
 
7700
cat >>conftest.$ac_ext <<_ACEOF
 
7701
/* end confdefs.h.  */
 
7702
#include <$ac_header>
 
7703
_ACEOF
 
7704
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
7705
case "(($ac_try" in
 
7706
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7707
  *) ac_try_echo=$ac_try;;
 
7708
esac
 
7709
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7710
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
7711
  ac_status=$?
 
7712
  grep -v '^ *+' conftest.er1 >conftest.err
 
7713
  rm -f conftest.er1
 
7714
  cat conftest.err >&5
 
7715
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7716
  (exit $ac_status); } >/dev/null && {
 
7717
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
7718
         test ! -s conftest.err
 
7719
       }; then
 
7720
  ac_header_preproc=yes
 
7721
else
 
7722
  echo "$as_me: failed program was:" >&5
 
7723
sed 's/^/| /' conftest.$ac_ext >&5
 
7724
 
 
7725
  ac_header_preproc=no
 
7726
fi
 
7727
 
 
7728
rm -f conftest.err conftest.$ac_ext
 
7729
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
7730
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
7731
 
 
7732
# So?  What about this header?
 
7733
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
7734
  yes:no: )
 
7735
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
7736
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
7737
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
7738
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
7739
    ac_header_preproc=yes
 
7740
    ;;
 
7741
  no:yes:* )
 
7742
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
7743
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
7744
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
7745
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
7746
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
7747
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
7748
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
7749
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
7750
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
7751
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
7752
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
7753
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
7754
    ( cat <<\_ASBOX
 
7755
## ----------------------------------- ##
 
7756
## Report this to kevin@misfitcode.com ##
 
7757
## ----------------------------------- ##
 
7758
_ASBOX
 
7759
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
7760
    ;;
 
7761
esac
 
7762
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
7763
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
7764
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
7765
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7766
else
 
7767
  eval "$as_ac_Header=\$ac_header_preproc"
 
7768
fi
 
7769
ac_res=`eval echo '${'$as_ac_Header'}'`
 
7770
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7771
echo "${ECHO_T}$ac_res" >&6; }
 
7772
 
 
7773
fi
 
7774
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
7775
  cat >>confdefs.h <<_ACEOF
 
7776
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
7777
_ACEOF
 
7778
 
 
7779
fi
 
7780
 
 
7781
done
 
7782
 
 
7783
{ echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
 
7784
echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6; }
 
7785
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
 
7786
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7787
else
 
7788
  if test "$cross_compiling" = yes; then
 
7789
  ac_cv_func_realloc_0_nonnull=no
 
7790
else
 
7791
  cat >conftest.$ac_ext <<_ACEOF
 
7792
/* confdefs.h.  */
 
7793
_ACEOF
 
7794
cat confdefs.h >>conftest.$ac_ext
 
7795
cat >>conftest.$ac_ext <<_ACEOF
 
7796
/* end confdefs.h.  */
 
7797
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
7798
# include <stdlib.h>
 
7799
#else
 
7800
char *realloc ();
 
7801
#endif
 
7802
 
 
7803
int
 
7804
main ()
 
7805
{
 
7806
return ! realloc (0, 0);
 
7807
  ;
 
7808
  return 0;
 
7809
}
 
7810
_ACEOF
 
7811
rm -f conftest$ac_exeext
 
7812
if { (ac_try="$ac_link"
 
7813
case "(($ac_try" in
 
7814
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7815
  *) ac_try_echo=$ac_try;;
 
7816
esac
 
7817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7818
  (eval "$ac_link") 2>&5
 
7819
  ac_status=$?
 
7820
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7821
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7822
  { (case "(($ac_try" in
 
7823
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7824
  *) ac_try_echo=$ac_try;;
 
7825
esac
 
7826
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7827
  (eval "$ac_try") 2>&5
 
7828
  ac_status=$?
 
7829
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7830
  (exit $ac_status); }; }; then
 
7831
  ac_cv_func_realloc_0_nonnull=yes
 
7832
else
 
7833
  echo "$as_me: program exited with status $ac_status" >&5
 
7834
echo "$as_me: failed program was:" >&5
 
7835
sed 's/^/| /' conftest.$ac_ext >&5
 
7836
 
 
7837
( exit $ac_status )
 
7838
ac_cv_func_realloc_0_nonnull=no
 
7839
fi
 
7840
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7841
fi
 
7842
 
 
7843
 
 
7844
fi
 
7845
{ echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
 
7846
echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6; }
 
7847
if test $ac_cv_func_realloc_0_nonnull = yes; then
 
7848
 
 
7849
cat >>confdefs.h <<\_ACEOF
 
7850
#define HAVE_REALLOC 1
 
7851
_ACEOF
 
7852
 
 
7853
else
 
7854
  cat >>confdefs.h <<\_ACEOF
 
7855
#define HAVE_REALLOC 0
 
7856
_ACEOF
 
7857
 
 
7858
   case " $LIBOBJS " in
 
7859
  *" realloc.$ac_objext "* ) ;;
 
7860
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
 
7861
 ;;
 
7862
esac
 
7863
 
 
7864
 
 
7865
cat >>confdefs.h <<\_ACEOF
 
7866
#define realloc rpl_realloc
 
7867
_ACEOF
 
7868
 
 
7869
fi
 
7870
 
 
7871
 
 
7872
 
 
7873
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
7874
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
 
7875
if test "${ac_cv_type_signal+set}" = set; then
 
7876
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7877
else
 
7878
  cat >conftest.$ac_ext <<_ACEOF
 
7879
/* confdefs.h.  */
 
7880
_ACEOF
 
7881
cat confdefs.h >>conftest.$ac_ext
 
7882
cat >>conftest.$ac_ext <<_ACEOF
 
7883
/* end confdefs.h.  */
 
7884
#include <sys/types.h>
 
7885
#include <signal.h>
 
7886
 
 
7887
int
 
7888
main ()
 
7889
{
 
7890
return *(signal (0, 0)) (0) == 1;
 
7891
  ;
 
7892
  return 0;
 
7893
}
 
7894
_ACEOF
 
7895
rm -f conftest.$ac_objext
 
7896
if { (ac_try="$ac_compile"
 
7897
case "(($ac_try" in
 
7898
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7899
  *) ac_try_echo=$ac_try;;
 
7900
esac
 
7901
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7902
  (eval "$ac_compile") 2>conftest.er1
 
7903
  ac_status=$?
 
7904
  grep -v '^ *+' conftest.er1 >conftest.err
 
7905
  rm -f conftest.er1
 
7906
  cat conftest.err >&5
 
7907
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7908
  (exit $ac_status); } && {
 
7909
         test -z "$ac_c_werror_flag" ||
 
7910
         test ! -s conftest.err
 
7911
       } && test -s conftest.$ac_objext; then
 
7912
  ac_cv_type_signal=int
 
7913
else
 
7914
  echo "$as_me: failed program was:" >&5
 
7915
sed 's/^/| /' conftest.$ac_ext >&5
 
7916
 
 
7917
        ac_cv_type_signal=void
 
7918
fi
 
7919
 
 
7920
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
7921
fi
 
7922
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
7923
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
 
7924
 
 
7925
cat >>confdefs.h <<_ACEOF
 
7926
#define RETSIGTYPE $ac_cv_type_signal
 
7927
_ACEOF
 
7928
 
 
7929
 
 
7930
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
7931
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
 
7932
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
 
7933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7934
else
 
7935
  if test "$cross_compiling" = yes; then
 
7936
  ac_cv_func_stat_empty_string_bug=yes
 
7937
else
 
7938
  cat >conftest.$ac_ext <<_ACEOF
 
7939
/* confdefs.h.  */
 
7940
_ACEOF
 
7941
cat confdefs.h >>conftest.$ac_ext
 
7942
cat >>conftest.$ac_ext <<_ACEOF
 
7943
/* end confdefs.h.  */
 
7944
$ac_includes_default
 
7945
int
 
7946
main ()
 
7947
{
 
7948
struct stat sbuf;
 
7949
  return stat ("", &sbuf) == 0;
 
7950
  ;
 
7951
  return 0;
 
7952
}
 
7953
_ACEOF
 
7954
rm -f conftest$ac_exeext
 
7955
if { (ac_try="$ac_link"
 
7956
case "(($ac_try" in
 
7957
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7958
  *) ac_try_echo=$ac_try;;
 
7959
esac
 
7960
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7961
  (eval "$ac_link") 2>&5
 
7962
  ac_status=$?
 
7963
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7964
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
7965
  { (case "(($ac_try" in
 
7966
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
7967
  *) ac_try_echo=$ac_try;;
 
7968
esac
 
7969
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
7970
  (eval "$ac_try") 2>&5
 
7971
  ac_status=$?
 
7972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
7973
  (exit $ac_status); }; }; then
 
7974
  ac_cv_func_stat_empty_string_bug=no
 
7975
else
 
7976
  echo "$as_me: program exited with status $ac_status" >&5
 
7977
echo "$as_me: failed program was:" >&5
 
7978
sed 's/^/| /' conftest.$ac_ext >&5
 
7979
 
 
7980
( exit $ac_status )
 
7981
ac_cv_func_stat_empty_string_bug=yes
 
7982
fi
 
7983
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
7984
fi
 
7985
 
 
7986
 
 
7987
fi
 
7988
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
7989
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
 
7990
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
7991
  case " $LIBOBJS " in
 
7992
  *" stat.$ac_objext "* ) ;;
 
7993
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
7994
 ;;
 
7995
esac
 
7996
 
 
7997
 
 
7998
cat >>confdefs.h <<_ACEOF
 
7999
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
8000
_ACEOF
 
8001
 
 
8002
fi
 
8003
 
 
8004
 
 
8005
for ac_func in vprintf
 
8006
do
 
8007
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8008
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8009
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
8010
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
8011
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8012
else
 
8013
  cat >conftest.$ac_ext <<_ACEOF
 
8014
/* confdefs.h.  */
 
8015
_ACEOF
 
8016
cat confdefs.h >>conftest.$ac_ext
 
8017
cat >>conftest.$ac_ext <<_ACEOF
 
8018
/* end confdefs.h.  */
 
8019
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8020
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8021
#define $ac_func innocuous_$ac_func
 
8022
 
 
8023
/* System header to define __stub macros and hopefully few prototypes,
 
8024
    which can conflict with char $ac_func (); below.
 
8025
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8026
    <limits.h> exists even on freestanding compilers.  */
 
8027
 
 
8028
#ifdef __STDC__
 
8029
# include <limits.h>
 
8030
#else
 
8031
# include <assert.h>
 
8032
#endif
 
8033
 
 
8034
#undef $ac_func
 
8035
 
 
8036
/* Override any GCC internal prototype to avoid an error.
 
8037
   Use char because int might match the return type of a GCC
 
8038
   builtin and then its argument prototype would still apply.  */
 
8039
#ifdef __cplusplus
 
8040
extern "C"
 
8041
#endif
 
8042
char $ac_func ();
 
8043
/* The GNU C library defines this for functions which it implements
 
8044
    to always fail with ENOSYS.  Some functions are actually named
 
8045
    something starting with __ and the normal name is an alias.  */
 
8046
#if defined __stub_$ac_func || defined __stub___$ac_func
 
8047
choke me
 
8048
#endif
 
8049
 
 
8050
int
 
8051
main ()
 
8052
{
 
8053
return $ac_func ();
 
8054
  ;
 
8055
  return 0;
 
8056
}
 
8057
_ACEOF
 
8058
rm -f conftest.$ac_objext conftest$ac_exeext
 
8059
if { (ac_try="$ac_link"
 
8060
case "(($ac_try" in
 
8061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8062
  *) ac_try_echo=$ac_try;;
 
8063
esac
 
8064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8065
  (eval "$ac_link") 2>conftest.er1
 
8066
  ac_status=$?
 
8067
  grep -v '^ *+' conftest.er1 >conftest.err
 
8068
  rm -f conftest.er1
 
8069
  cat conftest.err >&5
 
8070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8071
  (exit $ac_status); } && {
 
8072
         test -z "$ac_c_werror_flag" ||
 
8073
         test ! -s conftest.err
 
8074
       } && test -s conftest$ac_exeext &&
 
8075
       $as_test_x conftest$ac_exeext; then
 
8076
  eval "$as_ac_var=yes"
 
8077
else
 
8078
  echo "$as_me: failed program was:" >&5
 
8079
sed 's/^/| /' conftest.$ac_ext >&5
 
8080
 
 
8081
        eval "$as_ac_var=no"
 
8082
fi
 
8083
 
 
8084
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8085
      conftest$ac_exeext conftest.$ac_ext
 
8086
fi
 
8087
ac_res=`eval echo '${'$as_ac_var'}'`
 
8088
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8089
echo "${ECHO_T}$ac_res" >&6; }
 
8090
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8091
  cat >>confdefs.h <<_ACEOF
 
8092
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8093
_ACEOF
 
8094
 
 
8095
{ echo "$as_me:$LINENO: checking for _doprnt" >&5
 
8096
echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
 
8097
if test "${ac_cv_func__doprnt+set}" = set; then
 
8098
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8099
else
 
8100
  cat >conftest.$ac_ext <<_ACEOF
 
8101
/* confdefs.h.  */
 
8102
_ACEOF
 
8103
cat confdefs.h >>conftest.$ac_ext
 
8104
cat >>conftest.$ac_ext <<_ACEOF
 
8105
/* end confdefs.h.  */
 
8106
/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
 
8107
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8108
#define _doprnt innocuous__doprnt
 
8109
 
 
8110
/* System header to define __stub macros and hopefully few prototypes,
 
8111
    which can conflict with char _doprnt (); below.
 
8112
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8113
    <limits.h> exists even on freestanding compilers.  */
 
8114
 
 
8115
#ifdef __STDC__
 
8116
# include <limits.h>
 
8117
#else
 
8118
# include <assert.h>
 
8119
#endif
 
8120
 
 
8121
#undef _doprnt
 
8122
 
 
8123
/* Override any GCC internal prototype to avoid an error.
 
8124
   Use char because int might match the return type of a GCC
 
8125
   builtin and then its argument prototype would still apply.  */
 
8126
#ifdef __cplusplus
 
8127
extern "C"
 
8128
#endif
 
8129
char _doprnt ();
 
8130
/* The GNU C library defines this for functions which it implements
 
8131
    to always fail with ENOSYS.  Some functions are actually named
 
8132
    something starting with __ and the normal name is an alias.  */
 
8133
#if defined __stub__doprnt || defined __stub____doprnt
 
8134
choke me
 
8135
#endif
 
8136
 
 
8137
int
 
8138
main ()
 
8139
{
 
8140
return _doprnt ();
 
8141
  ;
 
8142
  return 0;
 
8143
}
 
8144
_ACEOF
 
8145
rm -f conftest.$ac_objext conftest$ac_exeext
 
8146
if { (ac_try="$ac_link"
 
8147
case "(($ac_try" in
 
8148
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8149
  *) ac_try_echo=$ac_try;;
 
8150
esac
 
8151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8152
  (eval "$ac_link") 2>conftest.er1
 
8153
  ac_status=$?
 
8154
  grep -v '^ *+' conftest.er1 >conftest.err
 
8155
  rm -f conftest.er1
 
8156
  cat conftest.err >&5
 
8157
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8158
  (exit $ac_status); } && {
 
8159
         test -z "$ac_c_werror_flag" ||
 
8160
         test ! -s conftest.err
 
8161
       } && test -s conftest$ac_exeext &&
 
8162
       $as_test_x conftest$ac_exeext; then
 
8163
  ac_cv_func__doprnt=yes
 
8164
else
 
8165
  echo "$as_me: failed program was:" >&5
 
8166
sed 's/^/| /' conftest.$ac_ext >&5
 
8167
 
 
8168
        ac_cv_func__doprnt=no
 
8169
fi
 
8170
 
 
8171
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8172
      conftest$ac_exeext conftest.$ac_ext
 
8173
fi
 
8174
{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
 
8175
echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
 
8176
if test $ac_cv_func__doprnt = yes; then
 
8177
 
 
8178
cat >>confdefs.h <<\_ACEOF
 
8179
#define HAVE_DOPRNT 1
 
8180
_ACEOF
 
8181
 
 
8182
fi
 
8183
 
 
8184
fi
 
8185
done
 
8186
 
 
8187
 
 
8188
 
 
8189
 
 
8190
 
 
8191
 
 
8192
 
 
8193
 
 
8194
 
 
8195
 
 
8196
 
 
8197
 
 
8198
 
 
8199
 
 
8200
 
 
8201
 
 
8202
 
 
8203
 
 
8204
 
 
8205
 
 
8206
 
 
8207
for ac_func in ftime getcwd gettimeofday localtime_r memmove memset mkdir pow realpath sqrt strcasecmp strchr strcspn strdup strerror strncasecmp strrchr strspn strstr
 
8208
do
 
8209
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
8210
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
8211
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
8212
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
8213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
8214
else
 
8215
  cat >conftest.$ac_ext <<_ACEOF
 
8216
/* confdefs.h.  */
 
8217
_ACEOF
 
8218
cat confdefs.h >>conftest.$ac_ext
 
8219
cat >>conftest.$ac_ext <<_ACEOF
 
8220
/* end confdefs.h.  */
 
8221
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
8222
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
8223
#define $ac_func innocuous_$ac_func
 
8224
 
 
8225
/* System header to define __stub macros and hopefully few prototypes,
 
8226
    which can conflict with char $ac_func (); below.
 
8227
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
8228
    <limits.h> exists even on freestanding compilers.  */
 
8229
 
 
8230
#ifdef __STDC__
 
8231
# include <limits.h>
 
8232
#else
 
8233
# include <assert.h>
 
8234
#endif
 
8235
 
 
8236
#undef $ac_func
 
8237
 
 
8238
/* Override any GCC internal prototype to avoid an error.
 
8239
   Use char because int might match the return type of a GCC
 
8240
   builtin and then its argument prototype would still apply.  */
 
8241
#ifdef __cplusplus
 
8242
extern "C"
 
8243
#endif
 
8244
char $ac_func ();
 
8245
/* The GNU C library defines this for functions which it implements
 
8246
    to always fail with ENOSYS.  Some functions are actually named
 
8247
    something starting with __ and the normal name is an alias.  */
 
8248
#if defined __stub_$ac_func || defined __stub___$ac_func
 
8249
choke me
 
8250
#endif
 
8251
 
 
8252
int
 
8253
main ()
 
8254
{
 
8255
return $ac_func ();
 
8256
  ;
 
8257
  return 0;
 
8258
}
 
8259
_ACEOF
 
8260
rm -f conftest.$ac_objext conftest$ac_exeext
 
8261
if { (ac_try="$ac_link"
 
8262
case "(($ac_try" in
 
8263
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8264
  *) ac_try_echo=$ac_try;;
 
8265
esac
 
8266
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8267
  (eval "$ac_link") 2>conftest.er1
 
8268
  ac_status=$?
 
8269
  grep -v '^ *+' conftest.er1 >conftest.err
 
8270
  rm -f conftest.er1
 
8271
  cat conftest.err >&5
 
8272
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8273
  (exit $ac_status); } && {
 
8274
         test -z "$ac_c_werror_flag" ||
 
8275
         test ! -s conftest.err
 
8276
       } && test -s conftest$ac_exeext &&
 
8277
       $as_test_x conftest$ac_exeext; then
 
8278
  eval "$as_ac_var=yes"
 
8279
else
 
8280
  echo "$as_me: failed program was:" >&5
 
8281
sed 's/^/| /' conftest.$ac_ext >&5
 
8282
 
 
8283
        eval "$as_ac_var=no"
 
8284
fi
 
8285
 
 
8286
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
8287
      conftest$ac_exeext conftest.$ac_ext
 
8288
fi
 
8289
ac_res=`eval echo '${'$as_ac_var'}'`
 
8290
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
8291
echo "${ECHO_T}$ac_res" >&6; }
 
8292
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
8293
  cat >>confdefs.h <<_ACEOF
 
8294
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
8295
_ACEOF
 
8296
 
 
8297
fi
 
8298
done
 
8299
 
 
8300
 
 
8301
 
 
8302
 
 
8303
 
 
8304
  { echo "$as_me:$LINENO: checking for lua" >&5
 
8305
echo $ECHO_N "checking for lua... $ECHO_C" >&6; }
 
8306
 
 
8307
 
 
8308
# Check whether --with-lua-dir was given.
1402
8309
if test "${with_lua_dir+set}" = set; then
1403
 
  withval="$with_lua_dir"
1404
 
  :
 
8310
  withval=$with_lua_dir;
1405
8311
fi
1406
8312
 
1407
 
  # Check whether --with-lua-include-dir or --without-lua-include-dir was given.
 
8313
 
 
8314
# Check whether --with-lua-include-dir was given.
1408
8315
if test "${with_lua_include_dir+set}" = set; then
1409
 
  withval="$with_lua_include_dir"
1410
 
  :
 
8316
  withval=$with_lua_include_dir;
1411
8317
fi
1412
8318
 
1413
 
  # Check whether --with-lua-lib-dir or --without-lua-lib-dir was given.
 
8319
 
 
8320
# Check whether --with-lua-lib-dir was given.
1414
8321
if test "${with_lua_lib_dir+set}" = set; then
1415
 
  withval="$with_lua_lib_dir"
1416
 
  :
 
8322
  withval=$with_lua_lib_dir;
1417
8323
fi
1418
8324
 
1419
 
  # Check whether --with-lua-lib or --without-lua-lib was given.
 
8325
 
 
8326
# Check whether --with-lua-lib was given.
1420
8327
if test "${with_lua_lib+set}" = set; then
1421
 
  withval="$with_lua_lib"
1422
 
  :
 
8328
  withval=$with_lua_lib;
1423
8329
fi
1424
8330
 
1425
8331
  if test x"$with_lua_dir" = x &&
1471
8377
    else
1472
8378
      # Use cached value or do search, starting with suggestions from
1473
8379
      # the command line
1474
 
      if eval "test \"`echo '$''{'ksw_cv_have_lua'+set}'`\" = set"; then
1475
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8380
      if test "${ksw_cv_have_lua+set}" = set; then
 
8381
  echo $ECHO_N "(cached) $ECHO_C" >&6
1476
8382
else
1477
 
  
 
8383
 
1478
8384
        # We are not given a solution and there is no cached value.
1479
8385
        ksw_lua_dir=
1480
8386
        if test x"$ksw_lua_include_dir" = x; then
1500
8406
               ksw_lua_include_dir=$ksw_lua_include_dir  \
1501
8407
                      ksw_lua_LIBS=\"$ksw_lua_LIBS\""
1502
8408
        fi
1503
 
      
 
8409
 
1504
8410
fi
1505
8411
      eval "$ksw_cv_have_lua"
1506
8412
    fi # all $ksw_lua_* are set
1510
8416
    LUA_DIR="$ksw_lua_dir"
1511
8417
    LUA_LIBS="$ksw_lua_LIBS"
1512
8418
    # All variables are defined, report the result
1513
 
    cat >> confdefs.h <<\EOF
 
8419
    cat >>confdefs.h <<\_ACEOF
1514
8420
#define HAVE_LUA  1
1515
 
EOF
 
8421
_ACEOF
1516
8422
 
1517
 
    echo "$ac_t""$have_lua:
1518
 
    LUA_CCFLAGS=$LUA_CCFLAGS
1519
 
    LUA_DIR=$LUA_DIR
1520
 
    LUA_LIBS=$LUA_LIBS " 1>&6
 
8423
    { echo "$as_me:$LINENO: result: $have_lua:
 
8424
    LUA_CCFLAGS=$LUA_CCFLAGS
 
8425
    LUA_DIR=$LUA_DIR
 
8426
    LUA_LIBS=$LUA_LIBS " >&5
 
8427
echo "${ECHO_T}$have_lua:
 
8428
    LUA_CCFLAGS=$LUA_CCFLAGS
 
8429
    LUA_DIR=$LUA_DIR
 
8430
    LUA_LIBS=$LUA_LIBS " >&6; }
1521
8431
  else
1522
8432
    # lua was not found
1523
8433
    LUA_CCFLAGS=
1524
8434
    LUA_DIR=
1525
8435
    LUA_LIBS=
1526
 
    echo "$ac_t""$have_lua" 1>&6
 
8436
    { echo "$as_me:$LINENO: result: $have_lua" >&5
 
8437
echo "${ECHO_T}$have_lua" >&6; }
1527
8438
  fi
1528
 
  
1529
 
  
1530
 
  
 
8439
 
 
8440
 
 
8441
 
1531
8442
 
1532
8443
  #### Being paranoid:
1533
8444
  if test x"$have_lua" = xyes; then
1534
 
    echo $ac_n "checking correct functioning of lua installation""... $ac_c" 1>&6
1535
 
echo "configure:1536: checking correct functioning of lua installation" >&5
1536
 
    if eval "test \"`echo '$''{'ksw_cv_lua_test_result'+set}'`\" = set"; then
1537
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8445
    { echo "$as_me:$LINENO: checking correct functioning of lua installation" >&5
 
8446
echo $ECHO_N "checking correct functioning of lua installation... $ECHO_C" >&6; }
 
8447
    if test "${ksw_cv_lua_test_result+set}" = set; then
 
8448
  echo $ECHO_N "(cached) $ECHO_C" >&6
1538
8449
else
1539
 
  
 
8450
 
1540
8451
      cat > ksw_lua_test.h << EOF
1541
8452
EOF
1542
8453
 
1557
8468
 
1558
8469
      ksw_cv_lua_test_result="failure"
1559
8470
        ksw_try_1="$CC $LUA_CCFLAGS $LUA_LIBS -o ksw_lua_test ksw_lua_test.c >/dev/null 2>ksw_lua_test_1.out"
1560
 
        { (eval echo configure:1561: \"$ksw_try_1\") 1>&5; (eval $ksw_try_1) 2>&5; }
 
8471
        { (eval echo "$as_me:$LINENO: \"$ksw_try_1\"") >&5
 
8472
  (eval $ksw_try_1) 2>&5
 
8473
  ac_status=$?
 
8474
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8475
  (exit $ac_status); }
1561
8476
        ksw_err_1=`grep -v '^ *+' ksw_lua_test_1.out | grep -v "^ksw_lua_test.{$ac_ext}\$"`
1562
8477
        if test x"$ksw_err_1" != x; then
1563
8478
          echo "$ksw_err_1" >&5
1567
8482
         ksw_cv_lua_test_result="success"
1568
8483
        fi
1569
8484
      fi
1570
 
    
 
8485
 
1571
8486
fi
1572
 
    echo "$ac_t""$ksw_cv_lua_test_result" 1>&6;
 
8487
    { echo "$as_me:$LINENO: result: $ksw_cv_lua_test_result" >&5
 
8488
echo "${ECHO_T}$ksw_cv_lua_test_result" >&6; };
1573
8489
    if test x"$ksw_cv_lua_test_result" = "xfailure"; then
1574
 
      { echo "configure: error: Failed to find matching components of a complete
1575
 
                  lua installation. Try using more options,
1576
 
                  see ./configure --help." 1>&2; exit 1; }
 
8490
      { { echo "$as_me:$LINENO: error: Failed to find matching components of a complete
 
8491
                  lua installation. Try using more options,
 
8492
                  see ./configure --help." >&5
 
8493
echo "$as_me: error: Failed to find matching components of a complete
 
8494
                  lua installation. Try using more options,
 
8495
                  see ./configure --help." >&2;}
 
8496
   { (exit 1); exit 1; }; }
1577
8497
    fi
1578
8498
 
1579
8499
    rm -f ksw_lua_test.h \
1582
8502
 
1583
8503
 
1584
8504
   if test x"${LUA_LIBS}" != x; then
1585
 
   
1586
 
  
1587
 
  
1588
 
 
1589
 
  echo $ac_n "checking for lualib""... $ac_c" 1>&6
1590
 
echo "configure:1591: checking for lualib" >&5
1591
 
 
1592
 
  # Check whether --with-lualib-dir or --without-lualib-dir was given.
 
8505
 
 
8506
 
 
8507
 
 
8508
 
 
8509
  { echo "$as_me:$LINENO: checking for lualib" >&5
 
8510
echo $ECHO_N "checking for lualib... $ECHO_C" >&6; }
 
8511
 
 
8512
 
 
8513
# Check whether --with-lualib-dir was given.
1593
8514
if test "${with_lualib_dir+set}" = set; then
1594
 
  withval="$with_lualib_dir"
1595
 
  :
 
8515
  withval=$with_lualib_dir;
1596
8516
fi
1597
8517
 
1598
 
  # Check whether --with-lualib-include-dir or --without-lualib-include-dir was given.
 
8518
 
 
8519
# Check whether --with-lualib-include-dir was given.
1599
8520
if test "${with_lualib_include_dir+set}" = set; then
1600
 
  withval="$with_lualib_include_dir"
1601
 
  :
 
8521
  withval=$with_lualib_include_dir;
1602
8522
fi
1603
8523
 
1604
 
  # Check whether --with-lualib-lib-dir or --without-lualib-lib-dir was given.
 
8524
 
 
8525
# Check whether --with-lualib-lib-dir was given.
1605
8526
if test "${with_lualib_lib_dir+set}" = set; then
1606
 
  withval="$with_lualib_lib_dir"
1607
 
  :
 
8527
  withval=$with_lualib_lib_dir;
1608
8528
fi
1609
8529
 
1610
 
  # Check whether --with-lualib-lib or --without-lualib-lib was given.
 
8530
 
 
8531
# Check whether --with-lualib-lib was given.
1611
8532
if test "${with_lualib_lib+set}" = set; then
1612
 
  withval="$with_lualib_lib"
1613
 
  :
 
8533
  withval=$with_lualib_lib;
1614
8534
fi
1615
8535
 
1616
8536
  if test x"$with_lualib_dir" = x"no" ||
1662
8582
    else
1663
8583
      # Use cached value or do search, starting with suggestions from
1664
8584
      # the command line
1665
 
      if eval "test \"`echo '$''{'ksw_cv_have_lualib'+set}'`\" = set"; then
1666
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8585
      if test "${ksw_cv_have_lualib+set}" = set; then
 
8586
  echo $ECHO_N "(cached) $ECHO_C" >&6
1667
8587
else
1668
 
  
 
8588
 
1669
8589
        # We are not given a solution and there is no cached value.
1670
8590
        ksw_lualib_dir=
1671
8591
        if test x"$ksw_lualib_include_dir" = x; then
1690
8610
               ksw_lualib_include_dir=$ksw_lualib_include_dir  \
1691
8611
                      ksw_lualib_LIBS=\"$ksw_lualib_LIBS\""
1692
8612
        fi
1693
 
      
 
8613
 
1694
8614
fi
1695
8615
      eval "$ksw_cv_have_lualib"
1696
8616
    fi # all $ksw_lualib_* are set
1700
8620
    LUALIB_DIR="$ksw_lualib_dir"
1701
8621
    LUALIB_LIBS="-lm -ldl $LUA_LIBS $ksw_lualib_LIBS"
1702
8622
    # All variables are defined, report the result
1703
 
    cat >> confdefs.h <<\EOF
 
8623
    cat >>confdefs.h <<\_ACEOF
1704
8624
#define HAVE_LUALIB  1
1705
 
EOF
 
8625
_ACEOF
1706
8626
 
1707
 
    echo "$ac_t""$have_lualib:
1708
 
    LUALIB_CCFLAGS=$LUALIB_CCFLAGS
1709
 
    LUALIB_DIR=$LUALIB_DIR
1710
 
    LUALIB_LIBS=$LUALIB_LIBS " 1>&6
 
8627
    { echo "$as_me:$LINENO: result: $have_lualib:
 
8628
    LUALIB_CCFLAGS=$LUALIB_CCFLAGS
 
8629
    LUALIB_DIR=$LUALIB_DIR
 
8630
    LUALIB_LIBS=$LUALIB_LIBS " >&5
 
8631
echo "${ECHO_T}$have_lualib:
 
8632
    LUALIB_CCFLAGS=$LUALIB_CCFLAGS
 
8633
    LUALIB_DIR=$LUALIB_DIR
 
8634
    LUALIB_LIBS=$LUALIB_LIBS " >&6; }
1711
8635
  else
1712
8636
    # lualib was not found
1713
8637
    LUALIB_CCFLAGS=
1714
8638
    LUALIB_DIR=
1715
8639
    LUALIB_LIBS=
1716
 
    echo "$ac_t""$have_lualib" 1>&6
 
8640
    { echo "$as_me:$LINENO: result: $have_lualib" >&5
 
8641
echo "${ECHO_T}$have_lualib" >&6; }
1717
8642
  fi
1718
 
  
1719
 
  
1720
 
  
 
8643
 
 
8644
 
 
8645
 
1721
8646
 
1722
8647
  #### Being paranoid:
1723
8648
  if test x"$have_lualib" = xyes; then
1724
 
    echo $ac_n "checking correct functioning of lualib installation""... $ac_c" 1>&6
1725
 
echo "configure:1726: checking correct functioning of lualib installation" >&5
1726
 
    if eval "test \"`echo '$''{'ksw_cv_lualib_test_result'+set}'`\" = set"; then
1727
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8649
    { echo "$as_me:$LINENO: checking correct functioning of lualib installation" >&5
 
8650
echo $ECHO_N "checking correct functioning of lualib installation... $ECHO_C" >&6; }
 
8651
    if test "${ksw_cv_lualib_test_result+set}" = set; then
 
8652
  echo $ECHO_N "(cached) $ECHO_C" >&6
1728
8653
else
1729
 
  
 
8654
 
1730
8655
      cat > ksw_lualib_test.h << EOF
1731
8656
EOF
1732
8657
 
1747
8672
 
1748
8673
      ksw_cv_lualib_test_result="failure"
1749
8674
        ksw_try_1="$CC $LUALIB_CCFLAGS $LUALIB_LIBS -o ksw_lualib_test ksw_lualib_test.c >/dev/null 2>ksw_lualib_test_1.out"
1750
 
        { (eval echo configure:1751: \"$ksw_try_1\") 1>&5; (eval $ksw_try_1) 2>&5; }
 
8675
        { (eval echo "$as_me:$LINENO: \"$ksw_try_1\"") >&5
 
8676
  (eval $ksw_try_1) 2>&5
 
8677
  ac_status=$?
 
8678
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8679
  (exit $ac_status); }
1751
8680
        ksw_err_1=`grep -v '^ *+' ksw_lualib_test_1.out | grep -v "^ksw_lualib_test.{$ac_ext}\$"`
1752
8681
        if test x"$ksw_err_1" != x; then
1753
8682
          echo "$ksw_err_1" >&5
1757
8686
         ksw_cv_lualib_test_result="success"
1758
8687
        fi
1759
8688
      fi
1760
 
    
 
8689
 
1761
8690
fi
1762
 
    echo "$ac_t""$ksw_cv_lualib_test_result" 1>&6;
 
8691
    { echo "$as_me:$LINENO: result: $ksw_cv_lualib_test_result" >&5
 
8692
echo "${ECHO_T}$ksw_cv_lualib_test_result" >&6; };
1763
8693
    if test x"$ksw_cv_lualib_test_result" = "xfailure"; then
1764
 
      { echo "configure: error: Failed to find matching components of a complete
1765
 
                  lualib installation. Try using more options,
1766
 
                  see ./configure --help." 1>&2; exit 1; }
 
8694
      { { echo "$as_me:$LINENO: error: Failed to find matching components of a complete
 
8695
                  lualib installation. Try using more options,
 
8696
                  see ./configure --help." >&5
 
8697
echo "$as_me: error: Failed to find matching components of a complete
 
8698
                  lualib installation. Try using more options,
 
8699
                  see ./configure --help." >&2;}
 
8700
   { (exit 1); exit 1; }; }
1767
8701
    fi
1768
8702
 
1769
8703
    rm -f ksw_lualib_test.h \
1772
8706
    fi
1773
8707
 
1774
8708
 
1775
 
  
1776
 
 
1777
 
  echo $ac_n "checking for OS X""... $ac_c" 1>&6
1778
 
echo "configure:1779: checking for OS X" >&5
1779
 
if eval "test \"`echo '$''{'ksw_cv_is_osx'+set}'`\" = set"; then
1780
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8709
 
 
8710
 
 
8711
  { echo "$as_me:$LINENO: checking for OS X" >&5
 
8712
echo $ECHO_N "checking for OS X... $ECHO_C" >&6; }
 
8713
if test "${ksw_cv_is_osx+set}" = set; then
 
8714
  echo $ECHO_N "(cached) $ECHO_C" >&6
1781
8715
else
1782
 
  
 
8716
 
1783
8717
    if test -e /System/Library/Frameworks/Carbon.framework; then
1784
8718
       is_osx=yes
1785
8719
    else
1789
8723
   rm -f ksw_is_osx*
1790
8724
 
1791
8725
    ksw_cv_is_osx="$is_osx"
1792
 
  
 
8726
 
1793
8727
fi
1794
 
 
1795
 
echo "$ac_t""$ksw_cv_is_osx" 1>&6
 
8728
{ echo "$as_me:$LINENO: result: $ksw_cv_is_osx" >&5
 
8729
echo "${ECHO_T}$ksw_cv_is_osx" >&6; }
1796
8730
  is_osx="$ksw_cv_is_osx"
1797
8731
  if test x"$is_osx" = "xyes"; then
1798
 
    cat >> confdefs.h <<\EOF
 
8732
    cat >>confdefs.h <<\_ACEOF
1799
8733
#define IS_OSX  1
1800
 
EOF
 
8734
_ACEOF
1801
8735
 
1802
8736
  fi
1803
8737
 
1804
8738
 
1805
 
  
1806
 
 
1807
 
  echo $ac_n "checking for dlopen""... $ac_c" 1>&6
1808
 
echo "configure:1809: checking for dlopen" >&5
1809
 
if eval "test \"`echo '$''{'ksw_cv_have_dlopen'+set}'`\" = set"; then
1810
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8739
 
 
8740
 
 
8741
  { echo "$as_me:$LINENO: checking for dlopen" >&5
 
8742
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
 
8743
if test "${ksw_cv_have_dlopen+set}" = set; then
 
8744
  echo $ECHO_N "(cached) $ECHO_C" >&6
1811
8745
else
1812
 
  
 
8746
 
1813
8747
    DLOPEN_save_LIBS="$LIBS"
1814
8748
 
1815
8749
    if test x"$is_osx" = xyes; then
1846
8780
 
1847
8781
    ksw_cv_DLOPEN_LIBS="$DLOPEN_LIBS"
1848
8782
    ksw_cv_have_dlopen="$have_dlopen"
1849
 
  
 
8783
 
1850
8784
fi
1851
 
 
1852
 
echo "$ac_t""$ksw_cv_have_dlopen" 1>&6
 
8785
{ echo "$as_me:$LINENO: result: $ksw_cv_have_dlopen" >&5
 
8786
echo "${ECHO_T}$ksw_cv_have_dlopen" >&6; }
1853
8787
  DLOPEN_LIBS="$ksw_cv_DLOPEN_LIBS"
1854
8788
  have_dlopen="$ksw_cv_have_dlopen"
1855
 
  
 
8789
 
1856
8790
  if test x"$have_dlopen" = "xyes"; then
1857
 
    cat >> confdefs.h <<\EOF
 
8791
    cat >>confdefs.h <<\_ACEOF
1858
8792
#define HAVE_DLOPEN  1
1859
 
EOF
 
8793
_ACEOF
1860
8794
 
1861
8795
  fi
1862
8796
 
1863
 
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1864
 
echo "configure:1865: checking how to run the C preprocessor" >&5
1865
 
# On Suns, sometimes $CPP names a directory.
1866
 
if test -n "$CPP" && test -d "$CPP"; then
1867
 
  CPP=
1868
 
fi
1869
 
if test -z "$CPP"; then
1870
 
if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1871
 
  echo $ac_n "(cached) $ac_c" 1>&6
1872
 
else
1873
 
    # This must be in double quotes, not single quotes, because CPP may get
1874
 
  # substituted into the Makefile and "${CC-cc}" will confuse make.
1875
 
  CPP="${CC-cc} -E"
1876
 
  # On the NeXT, cc -E runs the code through the compiler's parser,
1877
 
  # not just through cpp.
1878
 
  cat > conftest.$ac_ext <<EOF
1879
 
#line 1880 "configure"
1880
 
#include "confdefs.h"
1881
 
#include <assert.h>
1882
 
Syntax Error
1883
 
EOF
1884
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1885
 
{ (eval echo configure:1886: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1886
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1887
 
if test -z "$ac_err"; then
1888
 
  :
1889
 
else
1890
 
  echo "$ac_err" >&5
1891
 
  echo "configure: failed program was:" >&5
1892
 
  cat conftest.$ac_ext >&5
1893
 
  rm -rf conftest*
1894
 
  CPP="${CC-cc} -E -traditional-cpp"
1895
 
  cat > conftest.$ac_ext <<EOF
1896
 
#line 1897 "configure"
1897
 
#include "confdefs.h"
1898
 
#include <assert.h>
1899
 
Syntax Error
1900
 
EOF
1901
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1902
 
{ (eval echo configure:1903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1903
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1904
 
if test -z "$ac_err"; then
1905
 
  :
1906
 
else
1907
 
  echo "$ac_err" >&5
1908
 
  echo "configure: failed program was:" >&5
1909
 
  cat conftest.$ac_ext >&5
1910
 
  rm -rf conftest*
1911
 
  CPP="${CC-cc} -nologo -E"
1912
 
  cat > conftest.$ac_ext <<EOF
1913
 
#line 1914 "configure"
1914
 
#include "confdefs.h"
1915
 
#include <assert.h>
1916
 
Syntax Error
1917
 
EOF
1918
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1919
 
{ (eval echo configure:1920: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1920
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1921
 
if test -z "$ac_err"; then
1922
 
  :
1923
 
else
1924
 
  echo "$ac_err" >&5
1925
 
  echo "configure: failed program was:" >&5
1926
 
  cat conftest.$ac_ext >&5
1927
 
  rm -rf conftest*
1928
 
  CPP=/lib/cpp
1929
 
fi
1930
 
rm -f conftest*
1931
 
fi
1932
 
rm -f conftest*
1933
 
fi
1934
 
rm -f conftest*
1935
 
  ac_cv_prog_CPP="$CPP"
1936
 
fi
1937
 
  CPP="$ac_cv_prog_CPP"
1938
 
else
1939
 
  ac_cv_prog_CPP="$CPP"
1940
 
fi
1941
 
echo "$ac_t""$CPP" 1>&6
1942
 
 
1943
 
# If we find X, set shell vars x_includes and x_libraries to the
1944
 
# paths, otherwise set no_x=yes.
1945
 
# Uses ac_ vars as temps to allow command line to override cache and checks.
1946
 
# --without-x overrides everything else, but does not touch the cache.
1947
 
echo $ac_n "checking for X""... $ac_c" 1>&6
1948
 
echo "configure:1949: checking for X" >&5
1949
 
 
1950
 
# Check whether --with-x or --without-x was given.
 
8797
{ echo "$as_me:$LINENO: checking for X" >&5
 
8798
echo $ECHO_N "checking for X... $ECHO_C" >&6; }
 
8799
 
 
8800
 
 
8801
# Check whether --with-x was given.
1951
8802
if test "${with_x+set}" = set; then
1952
 
  withval="$with_x"
1953
 
  :
 
8803
  withval=$with_x;
1954
8804
fi
1955
8805
 
1956
8806
# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
1958
8808
  # The user explicitly disabled X.
1959
8809
  have_x=disabled
1960
8810
else
1961
 
  if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
1962
 
    # Both variables are already set.
1963
 
    have_x=yes
1964
 
  else
1965
 
if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
1966
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
8811
  case $x_includes,$x_libraries in #(
 
8812
    *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
 
8813
echo "$as_me: error: Cannot use X directory names containing '" >&2;}
 
8814
   { (exit 1); exit 1; }; };; #(
 
8815
    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
 
8816
  echo $ECHO_N "(cached) $ECHO_C" >&6
1967
8817
else
1968
8818
  # One or both of the vars are not set, and there is no cached value.
1969
 
ac_x_includes=NO ac_x_libraries=NO
1970
 
rm -fr conftestdir
1971
 
if mkdir conftestdir; then
1972
 
  cd conftestdir
1973
 
  # Make sure to not put "make" in the Imakefile rules, since we grep it out.
1974
 
  cat > Imakefile <<'EOF'
1975
 
acfindx:
1976
 
        @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
1977
 
EOF
1978
 
  if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
 
8819
ac_x_includes=no ac_x_libraries=no
 
8820
rm -f -r conftest.dir
 
8821
if mkdir conftest.dir; then
 
8822
  cd conftest.dir
 
8823
  cat >Imakefile <<'_ACEOF'
 
8824
incroot:
 
8825
        @echo incroot='${INCROOT}'
 
8826
usrlibdir:
 
8827
        @echo usrlibdir='${USRLIBDIR}'
 
8828
libdir:
 
8829
        @echo libdir='${LIBDIR}'
 
8830
_ACEOF
 
8831
  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
1979
8832
    # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1980
 
    eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
 
8833
    for ac_var in incroot usrlibdir libdir; do
 
8834
      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
 
8835
    done
1981
8836
    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
1982
8837
    for ac_extension in a so sl; do
1983
 
      if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
1984
 
        test -f $ac_im_libdir/libX11.$ac_extension; then
1985
 
        ac_im_usrlibdir=$ac_im_libdir; break
 
8838
      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
 
8839
         test -f "$ac_im_libdir/libX11.$ac_extension"; then
 
8840
        ac_im_usrlibdir=$ac_im_libdir; break
1986
8841
      fi
1987
8842
    done
1988
8843
    # Screen out bogus values from the imake configuration.  They are
1989
8844
    # bogus both because they are the default anyway, and because
1990
8845
    # using them would break gcc on systems where it needs fixed includes.
1991
 
    case "$ac_im_incroot" in
1992
 
        /usr/include) ;;
1993
 
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
 
8846
    case $ac_im_incroot in
 
8847
        /usr/include) ac_x_includes= ;;
 
8848
        *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
1994
8849
    esac
1995
 
    case "$ac_im_usrlibdir" in
 
8850
    case $ac_im_usrlibdir in
1996
8851
        /usr/lib | /lib) ;;
1997
 
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
 
8852
        *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
1998
8853
    esac
1999
8854
  fi
2000
8855
  cd ..
2001
 
  rm -fr conftestdir
 
8856
  rm -f -r conftest.dir
2002
8857
fi
2003
8858
 
2004
 
if test "$ac_x_includes" = NO; then
2005
 
  # Guess where to find include files, by looking for this one X11 .h file.
2006
 
  test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2007
 
 
 
8859
# Standard set of common directories for X headers.
 
8860
# Check X11 before X11Rn because it is often a symlink to the current release.
 
8861
ac_x_header_dirs='
 
8862
/usr/X11/include
 
8863
/usr/X11R6/include
 
8864
/usr/X11R5/include
 
8865
/usr/X11R4/include
 
8866
 
 
8867
/usr/include/X11
 
8868
/usr/include/X11R6
 
8869
/usr/include/X11R5
 
8870
/usr/include/X11R4
 
8871
 
 
8872
/usr/local/X11/include
 
8873
/usr/local/X11R6/include
 
8874
/usr/local/X11R5/include
 
8875
/usr/local/X11R4/include
 
8876
 
 
8877
/usr/local/include/X11
 
8878
/usr/local/include/X11R6
 
8879
/usr/local/include/X11R5
 
8880
/usr/local/include/X11R4
 
8881
 
 
8882
/usr/X386/include
 
8883
/usr/x386/include
 
8884
/usr/XFree86/include/X11
 
8885
 
 
8886
/usr/include
 
8887
/usr/local/include
 
8888
/usr/unsupported/include
 
8889
/usr/athena/include
 
8890
/usr/local/x11r5/include
 
8891
/usr/lpp/Xamples/include
 
8892
 
 
8893
/usr/openwin/include
 
8894
/usr/openwin/share/include'
 
8895
 
 
8896
if test "$ac_x_includes" = no; then
 
8897
  # Guess where to find include files, by looking for Xlib.h.
2008
8898
  # First, try using that file with no special directory specified.
2009
 
cat > conftest.$ac_ext <<EOF
2010
 
#line 2011 "configure"
2011
 
#include "confdefs.h"
2012
 
#include <$x_direct_test_include>
2013
 
EOF
2014
 
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2015
 
{ (eval echo configure:2016: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2016
 
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2017
 
if test -z "$ac_err"; then
2018
 
  rm -rf conftest*
 
8899
  cat >conftest.$ac_ext <<_ACEOF
 
8900
/* confdefs.h.  */
 
8901
_ACEOF
 
8902
cat confdefs.h >>conftest.$ac_ext
 
8903
cat >>conftest.$ac_ext <<_ACEOF
 
8904
/* end confdefs.h.  */
 
8905
#include <X11/Xlib.h>
 
8906
_ACEOF
 
8907
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
8908
case "(($ac_try" in
 
8909
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8910
  *) ac_try_echo=$ac_try;;
 
8911
esac
 
8912
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8913
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
8914
  ac_status=$?
 
8915
  grep -v '^ *+' conftest.er1 >conftest.err
 
8916
  rm -f conftest.er1
 
8917
  cat conftest.err >&5
 
8918
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8919
  (exit $ac_status); } >/dev/null && {
 
8920
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
8921
         test ! -s conftest.err
 
8922
       }; then
2019
8923
  # We can compile using X headers with no special include directory.
2020
8924
ac_x_includes=
2021
8925
else
2022
 
  echo "$ac_err" >&5
2023
 
  echo "configure: failed program was:" >&5
2024
 
  cat conftest.$ac_ext >&5
2025
 
  rm -rf conftest*
2026
 
  # Look for the header file in a standard set of common directories.
2027
 
# Check X11 before X11Rn because it is often a symlink to the current release.
2028
 
  for ac_dir in               \
2029
 
    /usr/X11/include          \
2030
 
    /usr/X11R6/include        \
2031
 
    /usr/X11R5/include        \
2032
 
    /usr/X11R4/include        \
2033
 
                              \
2034
 
    /usr/include/X11          \
2035
 
    /usr/include/X11R6        \
2036
 
    /usr/include/X11R5        \
2037
 
    /usr/include/X11R4        \
2038
 
                              \
2039
 
    /usr/local/X11/include    \
2040
 
    /usr/local/X11R6/include  \
2041
 
    /usr/local/X11R5/include  \
2042
 
    /usr/local/X11R4/include  \
2043
 
                              \
2044
 
    /usr/local/include/X11    \
2045
 
    /usr/local/include/X11R6  \
2046
 
    /usr/local/include/X11R5  \
2047
 
    /usr/local/include/X11R4  \
2048
 
                              \
2049
 
    /usr/X386/include         \
2050
 
    /usr/x386/include         \
2051
 
    /usr/XFree86/include/X11  \
2052
 
                              \
2053
 
    /usr/include              \
2054
 
    /usr/local/include        \
2055
 
    /usr/unsupported/include  \
2056
 
    /usr/athena/include       \
2057
 
    /usr/local/x11r5/include  \
2058
 
    /usr/lpp/Xamples/include  \
2059
 
                              \
2060
 
    /usr/openwin/include      \
2061
 
    /usr/openwin/share/include \
2062
 
    ; \
2063
 
  do
2064
 
    if test -r "$ac_dir/$x_direct_test_include"; then
2065
 
      ac_x_includes=$ac_dir
2066
 
      break
2067
 
    fi
2068
 
  done
 
8926
  echo "$as_me: failed program was:" >&5
 
8927
sed 's/^/| /' conftest.$ac_ext >&5
 
8928
 
 
8929
  for ac_dir in $ac_x_header_dirs; do
 
8930
  if test -r "$ac_dir/X11/Xlib.h"; then
 
8931
    ac_x_includes=$ac_dir
 
8932
    break
 
8933
  fi
 
8934
done
2069
8935
fi
2070
 
rm -f conftest*
2071
 
fi # $ac_x_includes = NO
2072
 
 
2073
 
if test "$ac_x_libraries" = NO; then
 
8936
 
 
8937
rm -f conftest.err conftest.$ac_ext
 
8938
fi # $ac_x_includes = no
 
8939
 
 
8940
if test "$ac_x_libraries" = no; then
2074
8941
  # Check for the libraries.
2075
 
 
2076
 
  test -z "$x_direct_test_library" && x_direct_test_library=Xt
2077
 
  test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2078
 
 
2079
8942
  # See if we find them without any special options.
2080
8943
  # Don't add to $LIBS permanently.
2081
 
  ac_save_LIBS="$LIBS"
2082
 
  LIBS="-l$x_direct_test_library $LIBS"
2083
 
cat > conftest.$ac_ext <<EOF
2084
 
#line 2085 "configure"
2085
 
#include "confdefs.h"
2086
 
 
2087
 
int main() {
2088
 
${x_direct_test_function}()
2089
 
; return 0; }
2090
 
EOF
2091
 
if { (eval echo configure:2092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2092
 
  rm -rf conftest*
2093
 
  LIBS="$ac_save_LIBS"
 
8944
  ac_save_LIBS=$LIBS
 
8945
  LIBS="-lX11 $LIBS"
 
8946
  cat >conftest.$ac_ext <<_ACEOF
 
8947
/* confdefs.h.  */
 
8948
_ACEOF
 
8949
cat confdefs.h >>conftest.$ac_ext
 
8950
cat >>conftest.$ac_ext <<_ACEOF
 
8951
/* end confdefs.h.  */
 
8952
#include <X11/Xlib.h>
 
8953
int
 
8954
main ()
 
8955
{
 
8956
XrmInitialize ()
 
8957
  ;
 
8958
  return 0;
 
8959
}
 
8960
_ACEOF
 
8961
rm -f conftest.$ac_objext conftest$ac_exeext
 
8962
if { (ac_try="$ac_link"
 
8963
case "(($ac_try" in
 
8964
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
8965
  *) ac_try_echo=$ac_try;;
 
8966
esac
 
8967
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
8968
  (eval "$ac_link") 2>conftest.er1
 
8969
  ac_status=$?
 
8970
  grep -v '^ *+' conftest.er1 >conftest.err
 
8971
  rm -f conftest.er1
 
8972
  cat conftest.err >&5
 
8973
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
8974
  (exit $ac_status); } && {
 
8975
         test -z "$ac_c_werror_flag" ||
 
8976
         test ! -s conftest.err
 
8977
       } && test -s conftest$ac_exeext &&
 
8978
       $as_test_x conftest$ac_exeext; then
 
8979
  LIBS=$ac_save_LIBS
2094
8980
# We can link X programs with no special library path.
2095
8981
ac_x_libraries=
2096
8982
else
2097
 
  echo "configure: failed program was:" >&5
2098
 
  cat conftest.$ac_ext >&5
2099
 
  rm -rf conftest*
2100
 
  LIBS="$ac_save_LIBS"
2101
 
# First see if replacing the include by lib works.
2102
 
# Check X11 before X11Rn because it is often a symlink to the current release.
2103
 
for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2104
 
    /usr/X11/lib          \
2105
 
    /usr/X11R6/lib        \
2106
 
    /usr/X11R5/lib        \
2107
 
    /usr/X11R4/lib        \
2108
 
                          \
2109
 
    /usr/lib/X11          \
2110
 
    /usr/lib/X11R6        \
2111
 
    /usr/lib/X11R5        \
2112
 
    /usr/lib/X11R4        \
2113
 
                          \
2114
 
    /usr/local/X11/lib    \
2115
 
    /usr/local/X11R6/lib  \
2116
 
    /usr/local/X11R5/lib  \
2117
 
    /usr/local/X11R4/lib  \
2118
 
                          \
2119
 
    /usr/local/lib/X11    \
2120
 
    /usr/local/lib/X11R6  \
2121
 
    /usr/local/lib/X11R5  \
2122
 
    /usr/local/lib/X11R4  \
2123
 
                          \
2124
 
    /usr/X386/lib         \
2125
 
    /usr/x386/lib         \
2126
 
    /usr/XFree86/lib/X11  \
2127
 
                          \
2128
 
    /usr/lib              \
2129
 
    /usr/local/lib        \
2130
 
    /usr/unsupported/lib  \
2131
 
    /usr/athena/lib       \
2132
 
    /usr/local/x11r5/lib  \
2133
 
    /usr/lpp/Xamples/lib  \
2134
 
    /lib/usr/lib/X11      \
2135
 
                          \
2136
 
    /usr/openwin/lib      \
2137
 
    /usr/openwin/share/lib \
2138
 
    ; \
 
8983
  echo "$as_me: failed program was:" >&5
 
8984
sed 's/^/| /' conftest.$ac_ext >&5
 
8985
 
 
8986
        LIBS=$ac_save_LIBS
 
8987
for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
2139
8988
do
 
8989
  # Don't even attempt the hair of trying to link an X program!
2140
8990
  for ac_extension in a so sl; do
2141
 
    if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
 
8991
    if test -r "$ac_dir/libX11.$ac_extension"; then
2142
8992
      ac_x_libraries=$ac_dir
2143
8993
      break 2
2144
8994
    fi
2145
8995
  done
2146
8996
done
2147
8997
fi
2148
 
rm -f conftest*
2149
 
fi # $ac_x_libraries = NO
2150
 
 
2151
 
if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2152
 
  # Didn't find X anywhere.  Cache the known absence of X.
2153
 
  ac_cv_have_x="have_x=no"
2154
 
else
2155
 
  # Record where we found X for the cache.
2156
 
  ac_cv_have_x="have_x=yes \
2157
 
                ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2158
 
fi
2159
 
fi
2160
 
  fi
 
8998
 
 
8999
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9000
      conftest$ac_exeext conftest.$ac_ext
 
9001
fi # $ac_x_libraries = no
 
9002
 
 
9003
case $ac_x_includes,$ac_x_libraries in #(
 
9004
  no,* | *,no | *\'*)
 
9005
    # Didn't find X, or a directory has "'" in its name.
 
9006
    ac_cv_have_x="have_x=no";; #(
 
9007
  *)
 
9008
    # Record where we found X for the cache.
 
9009
    ac_cv_have_x="have_x=yes\
 
9010
        ac_x_includes='$ac_x_includes'\
 
9011
        ac_x_libraries='$ac_x_libraries'"
 
9012
esac
 
9013
fi
 
9014
;; #(
 
9015
    *) have_x=yes;;
 
9016
  esac
2161
9017
  eval "$ac_cv_have_x"
2162
9018
fi # $with_x != no
2163
9019
 
2164
9020
if test "$have_x" != yes; then
2165
 
  echo "$ac_t""$have_x" 1>&6
 
9021
  { echo "$as_me:$LINENO: result: $have_x" >&5
 
9022
echo "${ECHO_T}$have_x" >&6; }
2166
9023
  no_x=yes
2167
9024
else
2168
9025
  # If each of the values was on the command line, it overrides each guess.
2169
9026
  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2170
9027
  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2171
9028
  # Update the cache value to reflect the command line values.
2172
 
  ac_cv_have_x="have_x=yes \
2173
 
                ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2174
 
  echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
 
9029
  ac_cv_have_x="have_x=yes\
 
9030
        ac_x_includes='$x_includes'\
 
9031
        ac_x_libraries='$x_libraries'"
 
9032
  { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
 
9033
echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
2175
9034
fi
2176
9035
 
2177
9036
if test "$no_x" = yes; then
2178
9037
  # Not all programs may use this symbol, but it does not hurt to define it.
2179
 
  cat >> confdefs.h <<\EOF
 
9038
 
 
9039
cat >>confdefs.h <<\_ACEOF
2180
9040
#define X_DISPLAY_MISSING 1
2181
 
EOF
 
9041
_ACEOF
2182
9042
 
2183
9043
  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2184
9044
else
2191
9051
    X_LIBS="$X_LIBS -L$x_libraries"
2192
9052
    # For Solaris; some versions of Sun CC require a space after -R and
2193
9053
    # others require no space.  Words are not sufficient . . . .
2194
 
    case "`(uname -sr) 2>/dev/null`" in
2195
 
    "SunOS 5"*)
2196
 
      echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2197
 
echo "configure:2198: checking whether -R must be followed by a space" >&5
2198
 
      ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2199
 
      cat > conftest.$ac_ext <<EOF
2200
 
#line 2201 "configure"
2201
 
#include "confdefs.h"
2202
 
 
2203
 
int main() {
2204
 
 
2205
 
; return 0; }
2206
 
EOF
2207
 
if { (eval echo configure:2208: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2208
 
  rm -rf conftest*
2209
 
  ac_R_nospace=yes
 
9054
    { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
 
9055
echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
 
9056
    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
 
9057
    ac_xsave_c_werror_flag=$ac_c_werror_flag
 
9058
    ac_c_werror_flag=yes
 
9059
    cat >conftest.$ac_ext <<_ACEOF
 
9060
/* confdefs.h.  */
 
9061
_ACEOF
 
9062
cat confdefs.h >>conftest.$ac_ext
 
9063
cat >>conftest.$ac_ext <<_ACEOF
 
9064
/* end confdefs.h.  */
 
9065
 
 
9066
int
 
9067
main ()
 
9068
{
 
9069
 
 
9070
  ;
 
9071
  return 0;
 
9072
}
 
9073
_ACEOF
 
9074
rm -f conftest.$ac_objext conftest$ac_exeext
 
9075
if { (ac_try="$ac_link"
 
9076
case "(($ac_try" in
 
9077
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9078
  *) ac_try_echo=$ac_try;;
 
9079
esac
 
9080
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9081
  (eval "$ac_link") 2>conftest.er1
 
9082
  ac_status=$?
 
9083
  grep -v '^ *+' conftest.er1 >conftest.err
 
9084
  rm -f conftest.er1
 
9085
  cat conftest.err >&5
 
9086
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9087
  (exit $ac_status); } && {
 
9088
         test -z "$ac_c_werror_flag" ||
 
9089
         test ! -s conftest.err
 
9090
       } && test -s conftest$ac_exeext &&
 
9091
       $as_test_x conftest$ac_exeext; then
 
9092
  { echo "$as_me:$LINENO: result: no" >&5
 
9093
echo "${ECHO_T}no" >&6; }
 
9094
       X_LIBS="$X_LIBS -R$x_libraries"
2210
9095
else
2211
 
  echo "configure: failed program was:" >&5
2212
 
  cat conftest.$ac_ext >&5
2213
 
  rm -rf conftest*
2214
 
  ac_R_nospace=no
2215
 
fi
2216
 
rm -f conftest*
2217
 
      if test $ac_R_nospace = yes; then
2218
 
        echo "$ac_t""no" 1>&6
2219
 
        X_LIBS="$X_LIBS -R$x_libraries"
2220
 
      else
 
9096
  echo "$as_me: failed program was:" >&5
 
9097
sed 's/^/| /' conftest.$ac_ext >&5
 
9098
 
2221
9099
        LIBS="$ac_xsave_LIBS -R $x_libraries"
2222
 
        cat > conftest.$ac_ext <<EOF
2223
 
#line 2224 "configure"
2224
 
#include "confdefs.h"
2225
 
 
2226
 
int main() {
2227
 
 
2228
 
; return 0; }
2229
 
EOF
2230
 
if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2231
 
  rm -rf conftest*
2232
 
  ac_R_space=yes
2233
 
else
2234
 
  echo "configure: failed program was:" >&5
2235
 
  cat conftest.$ac_ext >&5
2236
 
  rm -rf conftest*
2237
 
  ac_R_space=no
2238
 
fi
2239
 
rm -f conftest*
2240
 
        if test $ac_R_space = yes; then
2241
 
          echo "$ac_t""yes" 1>&6
 
9100
       cat >conftest.$ac_ext <<_ACEOF
 
9101
/* confdefs.h.  */
 
9102
_ACEOF
 
9103
cat confdefs.h >>conftest.$ac_ext
 
9104
cat >>conftest.$ac_ext <<_ACEOF
 
9105
/* end confdefs.h.  */
 
9106
 
 
9107
int
 
9108
main ()
 
9109
{
 
9110
 
 
9111
  ;
 
9112
  return 0;
 
9113
}
 
9114
_ACEOF
 
9115
rm -f conftest.$ac_objext conftest$ac_exeext
 
9116
if { (ac_try="$ac_link"
 
9117
case "(($ac_try" in
 
9118
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9119
  *) ac_try_echo=$ac_try;;
 
9120
esac
 
9121
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9122
  (eval "$ac_link") 2>conftest.er1
 
9123
  ac_status=$?
 
9124
  grep -v '^ *+' conftest.er1 >conftest.err
 
9125
  rm -f conftest.er1
 
9126
  cat conftest.err >&5
 
9127
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9128
  (exit $ac_status); } && {
 
9129
         test -z "$ac_c_werror_flag" ||
 
9130
         test ! -s conftest.err
 
9131
       } && test -s conftest$ac_exeext &&
 
9132
       $as_test_x conftest$ac_exeext; then
 
9133
  { echo "$as_me:$LINENO: result: yes" >&5
 
9134
echo "${ECHO_T}yes" >&6; }
2242
9135
          X_LIBS="$X_LIBS -R $x_libraries"
2243
 
        else
2244
 
          echo "$ac_t""neither works" 1>&6
2245
 
        fi
2246
 
      fi
2247
 
      LIBS="$ac_xsave_LIBS"
2248
 
    esac
 
9136
else
 
9137
  echo "$as_me: failed program was:" >&5
 
9138
sed 's/^/| /' conftest.$ac_ext >&5
 
9139
 
 
9140
        { echo "$as_me:$LINENO: result: neither works" >&5
 
9141
echo "${ECHO_T}neither works" >&6; }
 
9142
fi
 
9143
 
 
9144
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9145
      conftest$ac_exeext conftest.$ac_ext
 
9146
fi
 
9147
 
 
9148
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9149
      conftest$ac_exeext conftest.$ac_ext
 
9150
    ac_c_werror_flag=$ac_xsave_c_werror_flag
 
9151
    LIBS=$ac_xsave_LIBS
2249
9152
  fi
2250
9153
 
2251
9154
  # Check for system-dependent libraries X programs must link with.
2255
9158
  if test "$ISC" = yes; then
2256
9159
    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2257
9160
  else
2258
 
    # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2259
 
    # libraries were built with DECnet support.  And karl@cs.umb.edu says
 
9161
    # Martyn Johnson says this is needed for Ultrix, if the X
 
9162
    # libraries were built with DECnet support.  And Karl Berry says
2260
9163
    # the Alpha needs dnet_stub (dnet does not exist).
2261
 
    echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2262
 
echo "configure:2263: checking for dnet_ntoa in -ldnet" >&5
2263
 
ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2264
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2265
 
  echo $ac_n "(cached) $ac_c" 1>&6
2266
 
else
2267
 
  ac_save_LIBS="$LIBS"
 
9164
    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
 
9165
    cat >conftest.$ac_ext <<_ACEOF
 
9166
/* confdefs.h.  */
 
9167
_ACEOF
 
9168
cat confdefs.h >>conftest.$ac_ext
 
9169
cat >>conftest.$ac_ext <<_ACEOF
 
9170
/* end confdefs.h.  */
 
9171
 
 
9172
/* Override any GCC internal prototype to avoid an error.
 
9173
   Use char because int might match the return type of a GCC
 
9174
   builtin and then its argument prototype would still apply.  */
 
9175
#ifdef __cplusplus
 
9176
extern "C"
 
9177
#endif
 
9178
char XOpenDisplay ();
 
9179
int
 
9180
main ()
 
9181
{
 
9182
return XOpenDisplay ();
 
9183
  ;
 
9184
  return 0;
 
9185
}
 
9186
_ACEOF
 
9187
rm -f conftest.$ac_objext conftest$ac_exeext
 
9188
if { (ac_try="$ac_link"
 
9189
case "(($ac_try" in
 
9190
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9191
  *) ac_try_echo=$ac_try;;
 
9192
esac
 
9193
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9194
  (eval "$ac_link") 2>conftest.er1
 
9195
  ac_status=$?
 
9196
  grep -v '^ *+' conftest.er1 >conftest.err
 
9197
  rm -f conftest.er1
 
9198
  cat conftest.err >&5
 
9199
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9200
  (exit $ac_status); } && {
 
9201
         test -z "$ac_c_werror_flag" ||
 
9202
         test ! -s conftest.err
 
9203
       } && test -s conftest$ac_exeext &&
 
9204
       $as_test_x conftest$ac_exeext; then
 
9205
  :
 
9206
else
 
9207
  echo "$as_me: failed program was:" >&5
 
9208
sed 's/^/| /' conftest.$ac_ext >&5
 
9209
 
 
9210
        { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
 
9211
echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
 
9212
if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
 
9213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9214
else
 
9215
  ac_check_lib_save_LIBS=$LIBS
2268
9216
LIBS="-ldnet  $LIBS"
2269
 
cat > conftest.$ac_ext <<EOF
2270
 
#line 2271 "configure"
2271
 
#include "confdefs.h"
2272
 
/* Override any gcc2 internal prototype to avoid an error.  */
2273
 
/* We use char because int might match the return type of a gcc2
2274
 
    builtin and then its argument prototype would still apply.  */
2275
 
char dnet_ntoa();
 
9217
cat >conftest.$ac_ext <<_ACEOF
 
9218
/* confdefs.h.  */
 
9219
_ACEOF
 
9220
cat confdefs.h >>conftest.$ac_ext
 
9221
cat >>conftest.$ac_ext <<_ACEOF
 
9222
/* end confdefs.h.  */
2276
9223
 
2277
 
int main() {
2278
 
dnet_ntoa()
2279
 
; return 0; }
2280
 
EOF
2281
 
if { (eval echo configure:2282: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2282
 
  rm -rf conftest*
2283
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
9224
/* Override any GCC internal prototype to avoid an error.
 
9225
   Use char because int might match the return type of a GCC
 
9226
   builtin and then its argument prototype would still apply.  */
 
9227
#ifdef __cplusplus
 
9228
extern "C"
 
9229
#endif
 
9230
char dnet_ntoa ();
 
9231
int
 
9232
main ()
 
9233
{
 
9234
return dnet_ntoa ();
 
9235
  ;
 
9236
  return 0;
 
9237
}
 
9238
_ACEOF
 
9239
rm -f conftest.$ac_objext conftest$ac_exeext
 
9240
if { (ac_try="$ac_link"
 
9241
case "(($ac_try" in
 
9242
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9243
  *) ac_try_echo=$ac_try;;
 
9244
esac
 
9245
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9246
  (eval "$ac_link") 2>conftest.er1
 
9247
  ac_status=$?
 
9248
  grep -v '^ *+' conftest.er1 >conftest.err
 
9249
  rm -f conftest.er1
 
9250
  cat conftest.err >&5
 
9251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9252
  (exit $ac_status); } && {
 
9253
         test -z "$ac_c_werror_flag" ||
 
9254
         test ! -s conftest.err
 
9255
       } && test -s conftest$ac_exeext &&
 
9256
       $as_test_x conftest$ac_exeext; then
 
9257
  ac_cv_lib_dnet_dnet_ntoa=yes
2284
9258
else
2285
 
  echo "configure: failed program was:" >&5
2286
 
  cat conftest.$ac_ext >&5
2287
 
  rm -rf conftest*
2288
 
  eval "ac_cv_lib_$ac_lib_var=no"
2289
 
fi
2290
 
rm -f conftest*
2291
 
LIBS="$ac_save_LIBS"
2292
 
 
2293
 
fi
2294
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2295
 
  echo "$ac_t""yes" 1>&6
 
9259
  echo "$as_me: failed program was:" >&5
 
9260
sed 's/^/| /' conftest.$ac_ext >&5
 
9261
 
 
9262
        ac_cv_lib_dnet_dnet_ntoa=no
 
9263
fi
 
9264
 
 
9265
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9266
      conftest$ac_exeext conftest.$ac_ext
 
9267
LIBS=$ac_check_lib_save_LIBS
 
9268
fi
 
9269
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
 
9270
echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
 
9271
if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
2296
9272
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2297
 
else
2298
 
  echo "$ac_t""no" 1>&6
2299
9273
fi
2300
9274
 
2301
9275
    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2302
 
      echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2303
 
echo "configure:2304: checking for dnet_ntoa in -ldnet_stub" >&5
2304
 
ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2305
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2306
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9276
      { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
 
9277
echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
 
9278
if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
 
9279
  echo $ECHO_N "(cached) $ECHO_C" >&6
2307
9280
else
2308
 
  ac_save_LIBS="$LIBS"
 
9281
  ac_check_lib_save_LIBS=$LIBS
2309
9282
LIBS="-ldnet_stub  $LIBS"
2310
 
cat > conftest.$ac_ext <<EOF
2311
 
#line 2312 "configure"
2312
 
#include "confdefs.h"
2313
 
/* Override any gcc2 internal prototype to avoid an error.  */
2314
 
/* We use char because int might match the return type of a gcc2
2315
 
    builtin and then its argument prototype would still apply.  */
2316
 
char dnet_ntoa();
 
9283
cat >conftest.$ac_ext <<_ACEOF
 
9284
/* confdefs.h.  */
 
9285
_ACEOF
 
9286
cat confdefs.h >>conftest.$ac_ext
 
9287
cat >>conftest.$ac_ext <<_ACEOF
 
9288
/* end confdefs.h.  */
2317
9289
 
2318
 
int main() {
2319
 
dnet_ntoa()
2320
 
; return 0; }
2321
 
EOF
2322
 
if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2323
 
  rm -rf conftest*
2324
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
9290
/* Override any GCC internal prototype to avoid an error.
 
9291
   Use char because int might match the return type of a GCC
 
9292
   builtin and then its argument prototype would still apply.  */
 
9293
#ifdef __cplusplus
 
9294
extern "C"
 
9295
#endif
 
9296
char dnet_ntoa ();
 
9297
int
 
9298
main ()
 
9299
{
 
9300
return dnet_ntoa ();
 
9301
  ;
 
9302
  return 0;
 
9303
}
 
9304
_ACEOF
 
9305
rm -f conftest.$ac_objext conftest$ac_exeext
 
9306
if { (ac_try="$ac_link"
 
9307
case "(($ac_try" in
 
9308
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9309
  *) ac_try_echo=$ac_try;;
 
9310
esac
 
9311
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9312
  (eval "$ac_link") 2>conftest.er1
 
9313
  ac_status=$?
 
9314
  grep -v '^ *+' conftest.er1 >conftest.err
 
9315
  rm -f conftest.er1
 
9316
  cat conftest.err >&5
 
9317
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9318
  (exit $ac_status); } && {
 
9319
         test -z "$ac_c_werror_flag" ||
 
9320
         test ! -s conftest.err
 
9321
       } && test -s conftest$ac_exeext &&
 
9322
       $as_test_x conftest$ac_exeext; then
 
9323
  ac_cv_lib_dnet_stub_dnet_ntoa=yes
2325
9324
else
2326
 
  echo "configure: failed program was:" >&5
2327
 
  cat conftest.$ac_ext >&5
2328
 
  rm -rf conftest*
2329
 
  eval "ac_cv_lib_$ac_lib_var=no"
2330
 
fi
2331
 
rm -f conftest*
2332
 
LIBS="$ac_save_LIBS"
2333
 
 
2334
 
fi
2335
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2336
 
  echo "$ac_t""yes" 1>&6
 
9325
  echo "$as_me: failed program was:" >&5
 
9326
sed 's/^/| /' conftest.$ac_ext >&5
 
9327
 
 
9328
        ac_cv_lib_dnet_stub_dnet_ntoa=no
 
9329
fi
 
9330
 
 
9331
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9332
      conftest$ac_exeext conftest.$ac_ext
 
9333
LIBS=$ac_check_lib_save_LIBS
 
9334
fi
 
9335
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
 
9336
echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
 
9337
if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
2337
9338
  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2338
 
else
2339
 
  echo "$ac_t""no" 1>&6
2340
9339
fi
2341
9340
 
2342
9341
    fi
 
9342
fi
 
9343
 
 
9344
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9345
      conftest$ac_exeext conftest.$ac_ext
 
9346
    LIBS="$ac_xsave_LIBS"
2343
9347
 
2344
9348
    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2345
9349
    # to get the SysV transport functions.
2346
 
    # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
 
9350
    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
2347
9351
    # needs -lnsl.
2348
9352
    # The nsl library prevents programs from opening the X display
2349
 
    # on Irix 5.2, according to dickey@clark.net.
2350
 
    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2351
 
echo "configure:2352: checking for gethostbyname" >&5
2352
 
if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2353
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9353
    # on Irix 5.2, according to T.E. Dickey.
 
9354
    # The functions gethostbyname, getservbyname, and inet_addr are
 
9355
    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
 
9356
    { echo "$as_me:$LINENO: checking for gethostbyname" >&5
 
9357
echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
 
9358
if test "${ac_cv_func_gethostbyname+set}" = set; then
 
9359
  echo $ECHO_N "(cached) $ECHO_C" >&6
2354
9360
else
2355
 
  cat > conftest.$ac_ext <<EOF
2356
 
#line 2357 "configure"
2357
 
#include "confdefs.h"
 
9361
  cat >conftest.$ac_ext <<_ACEOF
 
9362
/* confdefs.h.  */
 
9363
_ACEOF
 
9364
cat confdefs.h >>conftest.$ac_ext
 
9365
cat >>conftest.$ac_ext <<_ACEOF
 
9366
/* end confdefs.h.  */
 
9367
/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
 
9368
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9369
#define gethostbyname innocuous_gethostbyname
 
9370
 
2358
9371
/* System header to define __stub macros and hopefully few prototypes,
2359
 
    which can conflict with char gethostbyname(); below.  */
2360
 
#include <assert.h>
2361
 
/* Override any gcc2 internal prototype to avoid an error.  */
2362
 
/* We use char because int might match the return type of a gcc2
2363
 
    builtin and then its argument prototype would still apply.  */
2364
 
char gethostbyname();
2365
 
 
2366
 
int main() {
2367
 
 
 
9372
    which can conflict with char gethostbyname (); below.
 
9373
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9374
    <limits.h> exists even on freestanding compilers.  */
 
9375
 
 
9376
#ifdef __STDC__
 
9377
# include <limits.h>
 
9378
#else
 
9379
# include <assert.h>
 
9380
#endif
 
9381
 
 
9382
#undef gethostbyname
 
9383
 
 
9384
/* Override any GCC internal prototype to avoid an error.
 
9385
   Use char because int might match the return type of a GCC
 
9386
   builtin and then its argument prototype would still apply.  */
 
9387
#ifdef __cplusplus
 
9388
extern "C"
 
9389
#endif
 
9390
char gethostbyname ();
2368
9391
/* The GNU C library defines this for functions which it implements
2369
9392
    to always fail with ENOSYS.  Some functions are actually named
2370
9393
    something starting with __ and the normal name is an alias.  */
2371
 
#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
 
9394
#if defined __stub_gethostbyname || defined __stub___gethostbyname
2372
9395
choke me
2373
 
#else
2374
 
gethostbyname();
2375
9396
#endif
2376
9397
 
2377
 
; return 0; }
2378
 
EOF
2379
 
if { (eval echo configure:2380: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2380
 
  rm -rf conftest*
2381
 
  eval "ac_cv_func_gethostbyname=yes"
2382
 
else
2383
 
  echo "configure: failed program was:" >&5
2384
 
  cat conftest.$ac_ext >&5
2385
 
  rm -rf conftest*
2386
 
  eval "ac_cv_func_gethostbyname=no"
2387
 
fi
2388
 
rm -f conftest*
2389
 
fi
2390
 
 
2391
 
if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2392
 
  echo "$ac_t""yes" 1>&6
2393
 
  :
2394
 
else
2395
 
  echo "$ac_t""no" 1>&6
2396
 
fi
 
9398
int
 
9399
main ()
 
9400
{
 
9401
return gethostbyname ();
 
9402
  ;
 
9403
  return 0;
 
9404
}
 
9405
_ACEOF
 
9406
rm -f conftest.$ac_objext conftest$ac_exeext
 
9407
if { (ac_try="$ac_link"
 
9408
case "(($ac_try" in
 
9409
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9410
  *) ac_try_echo=$ac_try;;
 
9411
esac
 
9412
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9413
  (eval "$ac_link") 2>conftest.er1
 
9414
  ac_status=$?
 
9415
  grep -v '^ *+' conftest.er1 >conftest.err
 
9416
  rm -f conftest.er1
 
9417
  cat conftest.err >&5
 
9418
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9419
  (exit $ac_status); } && {
 
9420
         test -z "$ac_c_werror_flag" ||
 
9421
         test ! -s conftest.err
 
9422
       } && test -s conftest$ac_exeext &&
 
9423
       $as_test_x conftest$ac_exeext; then
 
9424
  ac_cv_func_gethostbyname=yes
 
9425
else
 
9426
  echo "$as_me: failed program was:" >&5
 
9427
sed 's/^/| /' conftest.$ac_ext >&5
 
9428
 
 
9429
        ac_cv_func_gethostbyname=no
 
9430
fi
 
9431
 
 
9432
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9433
      conftest$ac_exeext conftest.$ac_ext
 
9434
fi
 
9435
{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
 
9436
echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
2397
9437
 
2398
9438
    if test $ac_cv_func_gethostbyname = no; then
2399
 
      echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2400
 
echo "configure:2401: checking for gethostbyname in -lnsl" >&5
2401
 
ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2402
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2403
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9439
      { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
 
9440
echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
 
9441
if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
 
9442
  echo $ECHO_N "(cached) $ECHO_C" >&6
2404
9443
else
2405
 
  ac_save_LIBS="$LIBS"
 
9444
  ac_check_lib_save_LIBS=$LIBS
2406
9445
LIBS="-lnsl  $LIBS"
2407
 
cat > conftest.$ac_ext <<EOF
2408
 
#line 2409 "configure"
2409
 
#include "confdefs.h"
2410
 
/* Override any gcc2 internal prototype to avoid an error.  */
2411
 
/* We use char because int might match the return type of a gcc2
2412
 
    builtin and then its argument prototype would still apply.  */
2413
 
char gethostbyname();
 
9446
cat >conftest.$ac_ext <<_ACEOF
 
9447
/* confdefs.h.  */
 
9448
_ACEOF
 
9449
cat confdefs.h >>conftest.$ac_ext
 
9450
cat >>conftest.$ac_ext <<_ACEOF
 
9451
/* end confdefs.h.  */
2414
9452
 
2415
 
int main() {
2416
 
gethostbyname()
2417
 
; return 0; }
2418
 
EOF
2419
 
if { (eval echo configure:2420: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2420
 
  rm -rf conftest*
2421
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
9453
/* Override any GCC internal prototype to avoid an error.
 
9454
   Use char because int might match the return type of a GCC
 
9455
   builtin and then its argument prototype would still apply.  */
 
9456
#ifdef __cplusplus
 
9457
extern "C"
 
9458
#endif
 
9459
char gethostbyname ();
 
9460
int
 
9461
main ()
 
9462
{
 
9463
return gethostbyname ();
 
9464
  ;
 
9465
  return 0;
 
9466
}
 
9467
_ACEOF
 
9468
rm -f conftest.$ac_objext conftest$ac_exeext
 
9469
if { (ac_try="$ac_link"
 
9470
case "(($ac_try" in
 
9471
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9472
  *) ac_try_echo=$ac_try;;
 
9473
esac
 
9474
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9475
  (eval "$ac_link") 2>conftest.er1
 
9476
  ac_status=$?
 
9477
  grep -v '^ *+' conftest.er1 >conftest.err
 
9478
  rm -f conftest.er1
 
9479
  cat conftest.err >&5
 
9480
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9481
  (exit $ac_status); } && {
 
9482
         test -z "$ac_c_werror_flag" ||
 
9483
         test ! -s conftest.err
 
9484
       } && test -s conftest$ac_exeext &&
 
9485
       $as_test_x conftest$ac_exeext; then
 
9486
  ac_cv_lib_nsl_gethostbyname=yes
2422
9487
else
2423
 
  echo "configure: failed program was:" >&5
2424
 
  cat conftest.$ac_ext >&5
2425
 
  rm -rf conftest*
2426
 
  eval "ac_cv_lib_$ac_lib_var=no"
2427
 
fi
2428
 
rm -f conftest*
2429
 
LIBS="$ac_save_LIBS"
2430
 
 
2431
 
fi
2432
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2433
 
  echo "$ac_t""yes" 1>&6
 
9488
  echo "$as_me: failed program was:" >&5
 
9489
sed 's/^/| /' conftest.$ac_ext >&5
 
9490
 
 
9491
        ac_cv_lib_nsl_gethostbyname=no
 
9492
fi
 
9493
 
 
9494
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9495
      conftest$ac_exeext conftest.$ac_ext
 
9496
LIBS=$ac_check_lib_save_LIBS
 
9497
fi
 
9498
{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
 
9499
echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
 
9500
if test $ac_cv_lib_nsl_gethostbyname = yes; then
2434
9501
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2435
 
else
2436
 
  echo "$ac_t""no" 1>&6
2437
 
fi
2438
 
 
 
9502
fi
 
9503
 
 
9504
      if test $ac_cv_lib_nsl_gethostbyname = no; then
 
9505
        { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
 
9506
echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
 
9507
if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
 
9508
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
9509
else
 
9510
  ac_check_lib_save_LIBS=$LIBS
 
9511
LIBS="-lbsd  $LIBS"
 
9512
cat >conftest.$ac_ext <<_ACEOF
 
9513
/* confdefs.h.  */
 
9514
_ACEOF
 
9515
cat confdefs.h >>conftest.$ac_ext
 
9516
cat >>conftest.$ac_ext <<_ACEOF
 
9517
/* end confdefs.h.  */
 
9518
 
 
9519
/* Override any GCC internal prototype to avoid an error.
 
9520
   Use char because int might match the return type of a GCC
 
9521
   builtin and then its argument prototype would still apply.  */
 
9522
#ifdef __cplusplus
 
9523
extern "C"
 
9524
#endif
 
9525
char gethostbyname ();
 
9526
int
 
9527
main ()
 
9528
{
 
9529
return gethostbyname ();
 
9530
  ;
 
9531
  return 0;
 
9532
}
 
9533
_ACEOF
 
9534
rm -f conftest.$ac_objext conftest$ac_exeext
 
9535
if { (ac_try="$ac_link"
 
9536
case "(($ac_try" in
 
9537
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9538
  *) ac_try_echo=$ac_try;;
 
9539
esac
 
9540
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9541
  (eval "$ac_link") 2>conftest.er1
 
9542
  ac_status=$?
 
9543
  grep -v '^ *+' conftest.er1 >conftest.err
 
9544
  rm -f conftest.er1
 
9545
  cat conftest.err >&5
 
9546
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9547
  (exit $ac_status); } && {
 
9548
         test -z "$ac_c_werror_flag" ||
 
9549
         test ! -s conftest.err
 
9550
       } && test -s conftest$ac_exeext &&
 
9551
       $as_test_x conftest$ac_exeext; then
 
9552
  ac_cv_lib_bsd_gethostbyname=yes
 
9553
else
 
9554
  echo "$as_me: failed program was:" >&5
 
9555
sed 's/^/| /' conftest.$ac_ext >&5
 
9556
 
 
9557
        ac_cv_lib_bsd_gethostbyname=no
 
9558
fi
 
9559
 
 
9560
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9561
      conftest$ac_exeext conftest.$ac_ext
 
9562
LIBS=$ac_check_lib_save_LIBS
 
9563
fi
 
9564
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
 
9565
echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
 
9566
if test $ac_cv_lib_bsd_gethostbyname = yes; then
 
9567
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
 
9568
fi
 
9569
 
 
9570
      fi
2439
9571
    fi
2440
9572
 
2441
9573
    # lieder@skyler.mavd.honeywell.com says without -lsocket,
2442
9574
    # socket/setsockopt and other routines are undefined under SCO ODT
2443
9575
    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
2444
 
    # on later versions), says simon@lia.di.epfl.ch: it contains
2445
 
    # gethostby* variants that don't use the nameserver (or something).
2446
 
    # -lsocket must be given before -lnsl if both are needed.
2447
 
    # We assume that if connect needs -lnsl, so does gethostbyname.
2448
 
    echo $ac_n "checking for connect""... $ac_c" 1>&6
2449
 
echo "configure:2450: checking for connect" >&5
2450
 
if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2451
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9576
    # on later versions), says Simon Leinen: it contains gethostby*
 
9577
    # variants that don't use the name server (or something).  -lsocket
 
9578
    # must be given before -lnsl if both are needed.  We assume that
 
9579
    # if connect needs -lnsl, so does gethostbyname.
 
9580
    { echo "$as_me:$LINENO: checking for connect" >&5
 
9581
echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
 
9582
if test "${ac_cv_func_connect+set}" = set; then
 
9583
  echo $ECHO_N "(cached) $ECHO_C" >&6
2452
9584
else
2453
 
  cat > conftest.$ac_ext <<EOF
2454
 
#line 2455 "configure"
2455
 
#include "confdefs.h"
 
9585
  cat >conftest.$ac_ext <<_ACEOF
 
9586
/* confdefs.h.  */
 
9587
_ACEOF
 
9588
cat confdefs.h >>conftest.$ac_ext
 
9589
cat >>conftest.$ac_ext <<_ACEOF
 
9590
/* end confdefs.h.  */
 
9591
/* Define connect to an innocuous variant, in case <limits.h> declares connect.
 
9592
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9593
#define connect innocuous_connect
 
9594
 
2456
9595
/* System header to define __stub macros and hopefully few prototypes,
2457
 
    which can conflict with char connect(); below.  */
2458
 
#include <assert.h>
2459
 
/* Override any gcc2 internal prototype to avoid an error.  */
2460
 
/* We use char because int might match the return type of a gcc2
2461
 
    builtin and then its argument prototype would still apply.  */
2462
 
char connect();
2463
 
 
2464
 
int main() {
2465
 
 
 
9596
    which can conflict with char connect (); below.
 
9597
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9598
    <limits.h> exists even on freestanding compilers.  */
 
9599
 
 
9600
#ifdef __STDC__
 
9601
# include <limits.h>
 
9602
#else
 
9603
# include <assert.h>
 
9604
#endif
 
9605
 
 
9606
#undef connect
 
9607
 
 
9608
/* Override any GCC internal prototype to avoid an error.
 
9609
   Use char because int might match the return type of a GCC
 
9610
   builtin and then its argument prototype would still apply.  */
 
9611
#ifdef __cplusplus
 
9612
extern "C"
 
9613
#endif
 
9614
char connect ();
2466
9615
/* The GNU C library defines this for functions which it implements
2467
9616
    to always fail with ENOSYS.  Some functions are actually named
2468
9617
    something starting with __ and the normal name is an alias.  */
2469
 
#if defined (__stub_connect) || defined (__stub___connect)
 
9618
#if defined __stub_connect || defined __stub___connect
2470
9619
choke me
2471
 
#else
2472
 
connect();
2473
9620
#endif
2474
9621
 
2475
 
; return 0; }
2476
 
EOF
2477
 
if { (eval echo configure:2478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2478
 
  rm -rf conftest*
2479
 
  eval "ac_cv_func_connect=yes"
2480
 
else
2481
 
  echo "configure: failed program was:" >&5
2482
 
  cat conftest.$ac_ext >&5
2483
 
  rm -rf conftest*
2484
 
  eval "ac_cv_func_connect=no"
2485
 
fi
2486
 
rm -f conftest*
2487
 
fi
2488
 
 
2489
 
if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2490
 
  echo "$ac_t""yes" 1>&6
2491
 
  :
2492
 
else
2493
 
  echo "$ac_t""no" 1>&6
2494
 
fi
 
9622
int
 
9623
main ()
 
9624
{
 
9625
return connect ();
 
9626
  ;
 
9627
  return 0;
 
9628
}
 
9629
_ACEOF
 
9630
rm -f conftest.$ac_objext conftest$ac_exeext
 
9631
if { (ac_try="$ac_link"
 
9632
case "(($ac_try" in
 
9633
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9634
  *) ac_try_echo=$ac_try;;
 
9635
esac
 
9636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9637
  (eval "$ac_link") 2>conftest.er1
 
9638
  ac_status=$?
 
9639
  grep -v '^ *+' conftest.er1 >conftest.err
 
9640
  rm -f conftest.er1
 
9641
  cat conftest.err >&5
 
9642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9643
  (exit $ac_status); } && {
 
9644
         test -z "$ac_c_werror_flag" ||
 
9645
         test ! -s conftest.err
 
9646
       } && test -s conftest$ac_exeext &&
 
9647
       $as_test_x conftest$ac_exeext; then
 
9648
  ac_cv_func_connect=yes
 
9649
else
 
9650
  echo "$as_me: failed program was:" >&5
 
9651
sed 's/^/| /' conftest.$ac_ext >&5
 
9652
 
 
9653
        ac_cv_func_connect=no
 
9654
fi
 
9655
 
 
9656
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9657
      conftest$ac_exeext conftest.$ac_ext
 
9658
fi
 
9659
{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
 
9660
echo "${ECHO_T}$ac_cv_func_connect" >&6; }
2495
9661
 
2496
9662
    if test $ac_cv_func_connect = no; then
2497
 
      echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2498
 
echo "configure:2499: checking for connect in -lsocket" >&5
2499
 
ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2500
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2501
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9663
      { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
 
9664
echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
 
9665
if test "${ac_cv_lib_socket_connect+set}" = set; then
 
9666
  echo $ECHO_N "(cached) $ECHO_C" >&6
2502
9667
else
2503
 
  ac_save_LIBS="$LIBS"
 
9668
  ac_check_lib_save_LIBS=$LIBS
2504
9669
LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2505
 
cat > conftest.$ac_ext <<EOF
2506
 
#line 2507 "configure"
2507
 
#include "confdefs.h"
2508
 
/* Override any gcc2 internal prototype to avoid an error.  */
2509
 
/* We use char because int might match the return type of a gcc2
2510
 
    builtin and then its argument prototype would still apply.  */
2511
 
char connect();
 
9670
cat >conftest.$ac_ext <<_ACEOF
 
9671
/* confdefs.h.  */
 
9672
_ACEOF
 
9673
cat confdefs.h >>conftest.$ac_ext
 
9674
cat >>conftest.$ac_ext <<_ACEOF
 
9675
/* end confdefs.h.  */
2512
9676
 
2513
 
int main() {
2514
 
connect()
2515
 
; return 0; }
2516
 
EOF
2517
 
if { (eval echo configure:2518: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2518
 
  rm -rf conftest*
2519
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
9677
/* Override any GCC internal prototype to avoid an error.
 
9678
   Use char because int might match the return type of a GCC
 
9679
   builtin and then its argument prototype would still apply.  */
 
9680
#ifdef __cplusplus
 
9681
extern "C"
 
9682
#endif
 
9683
char connect ();
 
9684
int
 
9685
main ()
 
9686
{
 
9687
return connect ();
 
9688
  ;
 
9689
  return 0;
 
9690
}
 
9691
_ACEOF
 
9692
rm -f conftest.$ac_objext conftest$ac_exeext
 
9693
if { (ac_try="$ac_link"
 
9694
case "(($ac_try" in
 
9695
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9696
  *) ac_try_echo=$ac_try;;
 
9697
esac
 
9698
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9699
  (eval "$ac_link") 2>conftest.er1
 
9700
  ac_status=$?
 
9701
  grep -v '^ *+' conftest.er1 >conftest.err
 
9702
  rm -f conftest.er1
 
9703
  cat conftest.err >&5
 
9704
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9705
  (exit $ac_status); } && {
 
9706
         test -z "$ac_c_werror_flag" ||
 
9707
         test ! -s conftest.err
 
9708
       } && test -s conftest$ac_exeext &&
 
9709
       $as_test_x conftest$ac_exeext; then
 
9710
  ac_cv_lib_socket_connect=yes
2520
9711
else
2521
 
  echo "configure: failed program was:" >&5
2522
 
  cat conftest.$ac_ext >&5
2523
 
  rm -rf conftest*
2524
 
  eval "ac_cv_lib_$ac_lib_var=no"
2525
 
fi
2526
 
rm -f conftest*
2527
 
LIBS="$ac_save_LIBS"
2528
 
 
2529
 
fi
2530
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2531
 
  echo "$ac_t""yes" 1>&6
 
9712
  echo "$as_me: failed program was:" >&5
 
9713
sed 's/^/| /' conftest.$ac_ext >&5
 
9714
 
 
9715
        ac_cv_lib_socket_connect=no
 
9716
fi
 
9717
 
 
9718
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9719
      conftest$ac_exeext conftest.$ac_ext
 
9720
LIBS=$ac_check_lib_save_LIBS
 
9721
fi
 
9722
{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
 
9723
echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
 
9724
if test $ac_cv_lib_socket_connect = yes; then
2532
9725
  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2533
 
else
2534
 
  echo "$ac_t""no" 1>&6
2535
9726
fi
2536
9727
 
2537
9728
    fi
2538
9729
 
2539
 
    # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2540
 
    echo $ac_n "checking for remove""... $ac_c" 1>&6
2541
 
echo "configure:2542: checking for remove" >&5
2542
 
if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2543
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9730
    # Guillermo Gomez says -lposix is necessary on A/UX.
 
9731
    { echo "$as_me:$LINENO: checking for remove" >&5
 
9732
echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
 
9733
if test "${ac_cv_func_remove+set}" = set; then
 
9734
  echo $ECHO_N "(cached) $ECHO_C" >&6
2544
9735
else
2545
 
  cat > conftest.$ac_ext <<EOF
2546
 
#line 2547 "configure"
2547
 
#include "confdefs.h"
 
9736
  cat >conftest.$ac_ext <<_ACEOF
 
9737
/* confdefs.h.  */
 
9738
_ACEOF
 
9739
cat confdefs.h >>conftest.$ac_ext
 
9740
cat >>conftest.$ac_ext <<_ACEOF
 
9741
/* end confdefs.h.  */
 
9742
/* Define remove to an innocuous variant, in case <limits.h> declares remove.
 
9743
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9744
#define remove innocuous_remove
 
9745
 
2548
9746
/* System header to define __stub macros and hopefully few prototypes,
2549
 
    which can conflict with char remove(); below.  */
2550
 
#include <assert.h>
2551
 
/* Override any gcc2 internal prototype to avoid an error.  */
2552
 
/* We use char because int might match the return type of a gcc2
2553
 
    builtin and then its argument prototype would still apply.  */
2554
 
char remove();
2555
 
 
2556
 
int main() {
2557
 
 
 
9747
    which can conflict with char remove (); below.
 
9748
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9749
    <limits.h> exists even on freestanding compilers.  */
 
9750
 
 
9751
#ifdef __STDC__
 
9752
# include <limits.h>
 
9753
#else
 
9754
# include <assert.h>
 
9755
#endif
 
9756
 
 
9757
#undef remove
 
9758
 
 
9759
/* Override any GCC internal prototype to avoid an error.
 
9760
   Use char because int might match the return type of a GCC
 
9761
   builtin and then its argument prototype would still apply.  */
 
9762
#ifdef __cplusplus
 
9763
extern "C"
 
9764
#endif
 
9765
char remove ();
2558
9766
/* The GNU C library defines this for functions which it implements
2559
9767
    to always fail with ENOSYS.  Some functions are actually named
2560
9768
    something starting with __ and the normal name is an alias.  */
2561
 
#if defined (__stub_remove) || defined (__stub___remove)
 
9769
#if defined __stub_remove || defined __stub___remove
2562
9770
choke me
2563
 
#else
2564
 
remove();
2565
9771
#endif
2566
9772
 
2567
 
; return 0; }
2568
 
EOF
2569
 
if { (eval echo configure:2570: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2570
 
  rm -rf conftest*
2571
 
  eval "ac_cv_func_remove=yes"
2572
 
else
2573
 
  echo "configure: failed program was:" >&5
2574
 
  cat conftest.$ac_ext >&5
2575
 
  rm -rf conftest*
2576
 
  eval "ac_cv_func_remove=no"
2577
 
fi
2578
 
rm -f conftest*
2579
 
fi
2580
 
 
2581
 
if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2582
 
  echo "$ac_t""yes" 1>&6
2583
 
  :
2584
 
else
2585
 
  echo "$ac_t""no" 1>&6
2586
 
fi
 
9773
int
 
9774
main ()
 
9775
{
 
9776
return remove ();
 
9777
  ;
 
9778
  return 0;
 
9779
}
 
9780
_ACEOF
 
9781
rm -f conftest.$ac_objext conftest$ac_exeext
 
9782
if { (ac_try="$ac_link"
 
9783
case "(($ac_try" in
 
9784
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9785
  *) ac_try_echo=$ac_try;;
 
9786
esac
 
9787
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9788
  (eval "$ac_link") 2>conftest.er1
 
9789
  ac_status=$?
 
9790
  grep -v '^ *+' conftest.er1 >conftest.err
 
9791
  rm -f conftest.er1
 
9792
  cat conftest.err >&5
 
9793
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9794
  (exit $ac_status); } && {
 
9795
         test -z "$ac_c_werror_flag" ||
 
9796
         test ! -s conftest.err
 
9797
       } && test -s conftest$ac_exeext &&
 
9798
       $as_test_x conftest$ac_exeext; then
 
9799
  ac_cv_func_remove=yes
 
9800
else
 
9801
  echo "$as_me: failed program was:" >&5
 
9802
sed 's/^/| /' conftest.$ac_ext >&5
 
9803
 
 
9804
        ac_cv_func_remove=no
 
9805
fi
 
9806
 
 
9807
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9808
      conftest$ac_exeext conftest.$ac_ext
 
9809
fi
 
9810
{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
 
9811
echo "${ECHO_T}$ac_cv_func_remove" >&6; }
2587
9812
 
2588
9813
    if test $ac_cv_func_remove = no; then
2589
 
      echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2590
 
echo "configure:2591: checking for remove in -lposix" >&5
2591
 
ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2592
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2593
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9814
      { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
 
9815
echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
 
9816
if test "${ac_cv_lib_posix_remove+set}" = set; then
 
9817
  echo $ECHO_N "(cached) $ECHO_C" >&6
2594
9818
else
2595
 
  ac_save_LIBS="$LIBS"
 
9819
  ac_check_lib_save_LIBS=$LIBS
2596
9820
LIBS="-lposix  $LIBS"
2597
 
cat > conftest.$ac_ext <<EOF
2598
 
#line 2599 "configure"
2599
 
#include "confdefs.h"
2600
 
/* Override any gcc2 internal prototype to avoid an error.  */
2601
 
/* We use char because int might match the return type of a gcc2
2602
 
    builtin and then its argument prototype would still apply.  */
2603
 
char remove();
 
9821
cat >conftest.$ac_ext <<_ACEOF
 
9822
/* confdefs.h.  */
 
9823
_ACEOF
 
9824
cat confdefs.h >>conftest.$ac_ext
 
9825
cat >>conftest.$ac_ext <<_ACEOF
 
9826
/* end confdefs.h.  */
2604
9827
 
2605
 
int main() {
2606
 
remove()
2607
 
; return 0; }
2608
 
EOF
2609
 
if { (eval echo configure:2610: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2610
 
  rm -rf conftest*
2611
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
9828
/* Override any GCC internal prototype to avoid an error.
 
9829
   Use char because int might match the return type of a GCC
 
9830
   builtin and then its argument prototype would still apply.  */
 
9831
#ifdef __cplusplus
 
9832
extern "C"
 
9833
#endif
 
9834
char remove ();
 
9835
int
 
9836
main ()
 
9837
{
 
9838
return remove ();
 
9839
  ;
 
9840
  return 0;
 
9841
}
 
9842
_ACEOF
 
9843
rm -f conftest.$ac_objext conftest$ac_exeext
 
9844
if { (ac_try="$ac_link"
 
9845
case "(($ac_try" in
 
9846
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9847
  *) ac_try_echo=$ac_try;;
 
9848
esac
 
9849
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9850
  (eval "$ac_link") 2>conftest.er1
 
9851
  ac_status=$?
 
9852
  grep -v '^ *+' conftest.er1 >conftest.err
 
9853
  rm -f conftest.er1
 
9854
  cat conftest.err >&5
 
9855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9856
  (exit $ac_status); } && {
 
9857
         test -z "$ac_c_werror_flag" ||
 
9858
         test ! -s conftest.err
 
9859
       } && test -s conftest$ac_exeext &&
 
9860
       $as_test_x conftest$ac_exeext; then
 
9861
  ac_cv_lib_posix_remove=yes
2612
9862
else
2613
 
  echo "configure: failed program was:" >&5
2614
 
  cat conftest.$ac_ext >&5
2615
 
  rm -rf conftest*
2616
 
  eval "ac_cv_lib_$ac_lib_var=no"
2617
 
fi
2618
 
rm -f conftest*
2619
 
LIBS="$ac_save_LIBS"
2620
 
 
2621
 
fi
2622
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2623
 
  echo "$ac_t""yes" 1>&6
 
9863
  echo "$as_me: failed program was:" >&5
 
9864
sed 's/^/| /' conftest.$ac_ext >&5
 
9865
 
 
9866
        ac_cv_lib_posix_remove=no
 
9867
fi
 
9868
 
 
9869
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9870
      conftest$ac_exeext conftest.$ac_ext
 
9871
LIBS=$ac_check_lib_save_LIBS
 
9872
fi
 
9873
{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
 
9874
echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
 
9875
if test $ac_cv_lib_posix_remove = yes; then
2624
9876
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2625
 
else
2626
 
  echo "$ac_t""no" 1>&6
2627
9877
fi
2628
9878
 
2629
9879
    fi
2630
9880
 
2631
9881
    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2632
 
    echo $ac_n "checking for shmat""... $ac_c" 1>&6
2633
 
echo "configure:2634: checking for shmat" >&5
2634
 
if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2635
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9882
    { echo "$as_me:$LINENO: checking for shmat" >&5
 
9883
echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
 
9884
if test "${ac_cv_func_shmat+set}" = set; then
 
9885
  echo $ECHO_N "(cached) $ECHO_C" >&6
2636
9886
else
2637
 
  cat > conftest.$ac_ext <<EOF
2638
 
#line 2639 "configure"
2639
 
#include "confdefs.h"
 
9887
  cat >conftest.$ac_ext <<_ACEOF
 
9888
/* confdefs.h.  */
 
9889
_ACEOF
 
9890
cat confdefs.h >>conftest.$ac_ext
 
9891
cat >>conftest.$ac_ext <<_ACEOF
 
9892
/* end confdefs.h.  */
 
9893
/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
 
9894
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
9895
#define shmat innocuous_shmat
 
9896
 
2640
9897
/* System header to define __stub macros and hopefully few prototypes,
2641
 
    which can conflict with char shmat(); below.  */
2642
 
#include <assert.h>
2643
 
/* Override any gcc2 internal prototype to avoid an error.  */
2644
 
/* We use char because int might match the return type of a gcc2
2645
 
    builtin and then its argument prototype would still apply.  */
2646
 
char shmat();
2647
 
 
2648
 
int main() {
2649
 
 
 
9898
    which can conflict with char shmat (); below.
 
9899
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
9900
    <limits.h> exists even on freestanding compilers.  */
 
9901
 
 
9902
#ifdef __STDC__
 
9903
# include <limits.h>
 
9904
#else
 
9905
# include <assert.h>
 
9906
#endif
 
9907
 
 
9908
#undef shmat
 
9909
 
 
9910
/* Override any GCC internal prototype to avoid an error.
 
9911
   Use char because int might match the return type of a GCC
 
9912
   builtin and then its argument prototype would still apply.  */
 
9913
#ifdef __cplusplus
 
9914
extern "C"
 
9915
#endif
 
9916
char shmat ();
2650
9917
/* The GNU C library defines this for functions which it implements
2651
9918
    to always fail with ENOSYS.  Some functions are actually named
2652
9919
    something starting with __ and the normal name is an alias.  */
2653
 
#if defined (__stub_shmat) || defined (__stub___shmat)
 
9920
#if defined __stub_shmat || defined __stub___shmat
2654
9921
choke me
2655
 
#else
2656
 
shmat();
2657
9922
#endif
2658
9923
 
2659
 
; return 0; }
2660
 
EOF
2661
 
if { (eval echo configure:2662: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2662
 
  rm -rf conftest*
2663
 
  eval "ac_cv_func_shmat=yes"
2664
 
else
2665
 
  echo "configure: failed program was:" >&5
2666
 
  cat conftest.$ac_ext >&5
2667
 
  rm -rf conftest*
2668
 
  eval "ac_cv_func_shmat=no"
2669
 
fi
2670
 
rm -f conftest*
2671
 
fi
2672
 
 
2673
 
if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2674
 
  echo "$ac_t""yes" 1>&6
2675
 
  :
2676
 
else
2677
 
  echo "$ac_t""no" 1>&6
2678
 
fi
 
9924
int
 
9925
main ()
 
9926
{
 
9927
return shmat ();
 
9928
  ;
 
9929
  return 0;
 
9930
}
 
9931
_ACEOF
 
9932
rm -f conftest.$ac_objext conftest$ac_exeext
 
9933
if { (ac_try="$ac_link"
 
9934
case "(($ac_try" in
 
9935
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9936
  *) ac_try_echo=$ac_try;;
 
9937
esac
 
9938
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
9939
  (eval "$ac_link") 2>conftest.er1
 
9940
  ac_status=$?
 
9941
  grep -v '^ *+' conftest.er1 >conftest.err
 
9942
  rm -f conftest.er1
 
9943
  cat conftest.err >&5
 
9944
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
9945
  (exit $ac_status); } && {
 
9946
         test -z "$ac_c_werror_flag" ||
 
9947
         test ! -s conftest.err
 
9948
       } && test -s conftest$ac_exeext &&
 
9949
       $as_test_x conftest$ac_exeext; then
 
9950
  ac_cv_func_shmat=yes
 
9951
else
 
9952
  echo "$as_me: failed program was:" >&5
 
9953
sed 's/^/| /' conftest.$ac_ext >&5
 
9954
 
 
9955
        ac_cv_func_shmat=no
 
9956
fi
 
9957
 
 
9958
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
9959
      conftest$ac_exeext conftest.$ac_ext
 
9960
fi
 
9961
{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
 
9962
echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
2679
9963
 
2680
9964
    if test $ac_cv_func_shmat = no; then
2681
 
      echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2682
 
echo "configure:2683: checking for shmat in -lipc" >&5
2683
 
ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2684
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2685
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
9965
      { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
 
9966
echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
 
9967
if test "${ac_cv_lib_ipc_shmat+set}" = set; then
 
9968
  echo $ECHO_N "(cached) $ECHO_C" >&6
2686
9969
else
2687
 
  ac_save_LIBS="$LIBS"
 
9970
  ac_check_lib_save_LIBS=$LIBS
2688
9971
LIBS="-lipc  $LIBS"
2689
 
cat > conftest.$ac_ext <<EOF
2690
 
#line 2691 "configure"
2691
 
#include "confdefs.h"
2692
 
/* Override any gcc2 internal prototype to avoid an error.  */
2693
 
/* We use char because int might match the return type of a gcc2
2694
 
    builtin and then its argument prototype would still apply.  */
2695
 
char shmat();
 
9972
cat >conftest.$ac_ext <<_ACEOF
 
9973
/* confdefs.h.  */
 
9974
_ACEOF
 
9975
cat confdefs.h >>conftest.$ac_ext
 
9976
cat >>conftest.$ac_ext <<_ACEOF
 
9977
/* end confdefs.h.  */
2696
9978
 
2697
 
int main() {
2698
 
shmat()
2699
 
; return 0; }
2700
 
EOF
2701
 
if { (eval echo configure:2702: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2702
 
  rm -rf conftest*
2703
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
9979
/* Override any GCC internal prototype to avoid an error.
 
9980
   Use char because int might match the return type of a GCC
 
9981
   builtin and then its argument prototype would still apply.  */
 
9982
#ifdef __cplusplus
 
9983
extern "C"
 
9984
#endif
 
9985
char shmat ();
 
9986
int
 
9987
main ()
 
9988
{
 
9989
return shmat ();
 
9990
  ;
 
9991
  return 0;
 
9992
}
 
9993
_ACEOF
 
9994
rm -f conftest.$ac_objext conftest$ac_exeext
 
9995
if { (ac_try="$ac_link"
 
9996
case "(($ac_try" in
 
9997
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
9998
  *) ac_try_echo=$ac_try;;
 
9999
esac
 
10000
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10001
  (eval "$ac_link") 2>conftest.er1
 
10002
  ac_status=$?
 
10003
  grep -v '^ *+' conftest.er1 >conftest.err
 
10004
  rm -f conftest.er1
 
10005
  cat conftest.err >&5
 
10006
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10007
  (exit $ac_status); } && {
 
10008
         test -z "$ac_c_werror_flag" ||
 
10009
         test ! -s conftest.err
 
10010
       } && test -s conftest$ac_exeext &&
 
10011
       $as_test_x conftest$ac_exeext; then
 
10012
  ac_cv_lib_ipc_shmat=yes
2704
10013
else
2705
 
  echo "configure: failed program was:" >&5
2706
 
  cat conftest.$ac_ext >&5
2707
 
  rm -rf conftest*
2708
 
  eval "ac_cv_lib_$ac_lib_var=no"
2709
 
fi
2710
 
rm -f conftest*
2711
 
LIBS="$ac_save_LIBS"
2712
 
 
2713
 
fi
2714
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2715
 
  echo "$ac_t""yes" 1>&6
 
10014
  echo "$as_me: failed program was:" >&5
 
10015
sed 's/^/| /' conftest.$ac_ext >&5
 
10016
 
 
10017
        ac_cv_lib_ipc_shmat=no
 
10018
fi
 
10019
 
 
10020
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10021
      conftest$ac_exeext conftest.$ac_ext
 
10022
LIBS=$ac_check_lib_save_LIBS
 
10023
fi
 
10024
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
 
10025
echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
 
10026
if test $ac_cv_lib_ipc_shmat = yes; then
2716
10027
  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2717
 
else
2718
 
  echo "$ac_t""no" 1>&6
2719
10028
fi
2720
10029
 
2721
10030
    fi
2722
10031
  fi
2723
10032
 
2724
10033
  # Check for libraries that X11R6 Xt/Xaw programs need.
2725
 
  ac_save_LDFLAGS="$LDFLAGS"
 
10034
  ac_save_LDFLAGS=$LDFLAGS
2726
10035
  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
2727
10036
  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
2728
10037
  # check for ICE first), but we must link in the order -lSM -lICE or
2729
10038
  # we get undefined symbols.  So assume we have SM if we have ICE.
2730
10039
  # These have to be linked with before -lX11, unlike the other
2731
10040
  # libraries we check for below, so use a different variable.
2732
 
  #  --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
2733
 
  echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
2734
 
echo "configure:2735: checking for IceConnectionNumber in -lICE" >&5
2735
 
ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
2736
 
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2737
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10041
  # John Interrante, Karl Berry
 
10042
  { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
 
10043
echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
 
10044
if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
 
10045
  echo $ECHO_N "(cached) $ECHO_C" >&6
2738
10046
else
2739
 
  ac_save_LIBS="$LIBS"
 
10047
  ac_check_lib_save_LIBS=$LIBS
2740
10048
LIBS="-lICE $X_EXTRA_LIBS $LIBS"
2741
 
cat > conftest.$ac_ext <<EOF
2742
 
#line 2743 "configure"
2743
 
#include "confdefs.h"
2744
 
/* Override any gcc2 internal prototype to avoid an error.  */
2745
 
/* We use char because int might match the return type of a gcc2
2746
 
    builtin and then its argument prototype would still apply.  */
2747
 
char IceConnectionNumber();
 
10049
cat >conftest.$ac_ext <<_ACEOF
 
10050
/* confdefs.h.  */
 
10051
_ACEOF
 
10052
cat confdefs.h >>conftest.$ac_ext
 
10053
cat >>conftest.$ac_ext <<_ACEOF
 
10054
/* end confdefs.h.  */
2748
10055
 
2749
 
int main() {
2750
 
IceConnectionNumber()
2751
 
; return 0; }
2752
 
EOF
2753
 
if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2754
 
  rm -rf conftest*
2755
 
  eval "ac_cv_lib_$ac_lib_var=yes"
 
10056
/* Override any GCC internal prototype to avoid an error.
 
10057
   Use char because int might match the return type of a GCC
 
10058
   builtin and then its argument prototype would still apply.  */
 
10059
#ifdef __cplusplus
 
10060
extern "C"
 
10061
#endif
 
10062
char IceConnectionNumber ();
 
10063
int
 
10064
main ()
 
10065
{
 
10066
return IceConnectionNumber ();
 
10067
  ;
 
10068
  return 0;
 
10069
}
 
10070
_ACEOF
 
10071
rm -f conftest.$ac_objext conftest$ac_exeext
 
10072
if { (ac_try="$ac_link"
 
10073
case "(($ac_try" in
 
10074
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10075
  *) ac_try_echo=$ac_try;;
 
10076
esac
 
10077
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10078
  (eval "$ac_link") 2>conftest.er1
 
10079
  ac_status=$?
 
10080
  grep -v '^ *+' conftest.er1 >conftest.err
 
10081
  rm -f conftest.er1
 
10082
  cat conftest.err >&5
 
10083
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10084
  (exit $ac_status); } && {
 
10085
         test -z "$ac_c_werror_flag" ||
 
10086
         test ! -s conftest.err
 
10087
       } && test -s conftest$ac_exeext &&
 
10088
       $as_test_x conftest$ac_exeext; then
 
10089
  ac_cv_lib_ICE_IceConnectionNumber=yes
2756
10090
else
2757
 
  echo "configure: failed program was:" >&5
2758
 
  cat conftest.$ac_ext >&5
2759
 
  rm -rf conftest*
2760
 
  eval "ac_cv_lib_$ac_lib_var=no"
2761
 
fi
2762
 
rm -f conftest*
2763
 
LIBS="$ac_save_LIBS"
2764
 
 
2765
 
fi
2766
 
if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2767
 
  echo "$ac_t""yes" 1>&6
 
10091
  echo "$as_me: failed program was:" >&5
 
10092
sed 's/^/| /' conftest.$ac_ext >&5
 
10093
 
 
10094
        ac_cv_lib_ICE_IceConnectionNumber=no
 
10095
fi
 
10096
 
 
10097
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10098
      conftest$ac_exeext conftest.$ac_ext
 
10099
LIBS=$ac_check_lib_save_LIBS
 
10100
fi
 
10101
{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
 
10102
echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
 
10103
if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
2768
10104
  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
2769
 
else
2770
 
  echo "$ac_t""no" 1>&6
2771
 
fi
2772
 
 
2773
 
  LDFLAGS="$ac_save_LDFLAGS"
2774
 
 
2775
 
fi
2776
 
 
2777
 
 
2778
 
  
2779
 
  
2780
 
  
2781
 
 
2782
 
  echo $ac_n "checking for OpenGL""... $ac_c" 1>&6
2783
 
echo "configure:2784: checking for OpenGL" >&5
2784
 
if eval "test \"`echo '$''{'mdl_cv_have_OpenGL'+set}'`\" = set"; then
2785
 
  echo $ac_n "(cached) $ac_c" 1>&6
2786
 
else
2787
 
  
2788
 
    # Check whether --with---with-Mesa or --without---with-Mesa was given.
 
10105
fi
 
10106
 
 
10107
  LDFLAGS=$ac_save_LDFLAGS
 
10108
 
 
10109
fi
 
10110
 
 
10111
 
 
10112
 
 
10113
 
 
10114
 
 
10115
 
 
10116
  { echo "$as_me:$LINENO: checking for OpenGL" >&5
 
10117
echo $ECHO_N "checking for OpenGL... $ECHO_C" >&6; }
 
10118
if test "${mdl_cv_have_OpenGL+set}" = set; then
 
10119
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10120
else
 
10121
 
 
10122
 
 
10123
# Check whether --with---with-Mesa was given.
2789
10124
if test "${with___with_Mesa+set}" = set; then
2790
 
  withval="$with___with_Mesa"
2791
 
  with_Mesa_help_string
 
10125
  withval=$with___with_Mesa; with_Mesa_help_string
2792
10126
fi
2793
10127
 
2794
 
    # Check whether --enable-Mesa or --disable-Mesa was given.
 
10128
    # Check whether --enable-Mesa was given.
2795
10129
if test "${enable_Mesa+set}" = set; then
2796
 
  enableval="$enable_Mesa"
2797
 
  use_Mesa=$enableval
 
10130
  enableval=$enable_Mesa; use_Mesa=$enableval
2798
10131
else
2799
10132
  use_Mesa=yes
2800
10133
fi
2810
10143
      GLX_search_list="GLX MesaGLX"
2811
10144
    fi
2812
10145
 
2813
 
    
 
10146
 
2814
10147
    ac_ext=c
2815
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
2816
10148
ac_cpp='$CPP $CPPFLAGS'
2817
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
2818
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
2819
 
cross_compiling=$ac_cv_prog_cc_cross
 
10149
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10150
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10151
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2820
10152
 
2821
10153
 
2822
10154
if test x"$is_osx" = xyes; then
2842
10174
    # messages.
2843
10175
    exec 6>/dev/null
2844
10176
 
2845
 
    
2846
 
echo $ac_n "checking for library containing glAccum""... $ac_c" 1>&6
2847
 
echo "configure:2848: checking for library containing glAccum" >&5
2848
 
if eval "test \"`echo '$''{'ac_cv_search_glAccum'+set}'`\" = set"; then
2849
 
  echo $ac_n "(cached) $ac_c" 1>&6
2850
 
else
2851
 
  ac_func_search_save_LIBS="$LIBS"
2852
 
ac_cv_search_glAccum="no"
2853
 
cat > conftest.$ac_ext <<EOF
2854
 
#line 2855 "configure"
2855
 
#include "confdefs.h"
2856
 
/* Override any gcc2 internal prototype to avoid an error.  */
2857
 
/* We use char because int might match the return type of a gcc2
2858
 
    builtin and then its argument prototype would still apply.  */
2859
 
char glAccum();
2860
 
 
2861
 
int main() {
2862
 
glAccum()
2863
 
; return 0; }
2864
 
EOF
2865
 
if { (eval echo configure:2866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2866
 
  rm -rf conftest*
2867
 
  ac_cv_search_glAccum="none required"
2868
 
else
2869
 
  echo "configure: failed program was:" >&5
2870
 
  cat conftest.$ac_ext >&5
2871
 
fi
2872
 
rm -f conftest*
2873
 
test "$ac_cv_search_glAccum" = "no" && for i in $GL_search_list; do
2874
 
LIBS="-l$i  $ac_func_search_save_LIBS"
2875
 
cat > conftest.$ac_ext <<EOF
2876
 
#line 2877 "configure"
2877
 
#include "confdefs.h"
2878
 
/* Override any gcc2 internal prototype to avoid an error.  */
2879
 
/* We use char because int might match the return type of a gcc2
2880
 
    builtin and then its argument prototype would still apply.  */
2881
 
char glAccum();
2882
 
 
2883
 
int main() {
2884
 
glAccum()
2885
 
; return 0; }
2886
 
EOF
2887
 
if { (eval echo configure:2888: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2888
 
  rm -rf conftest*
2889
 
  ac_cv_search_glAccum="-l$i"
2890
 
break
2891
 
else
2892
 
  echo "configure: failed program was:" >&5
2893
 
  cat conftest.$ac_ext >&5
2894
 
fi
2895
 
rm -f conftest*
 
10177
    { echo "$as_me:$LINENO: checking for library containing glAccum" >&5
 
10178
echo $ECHO_N "checking for library containing glAccum... $ECHO_C" >&6; }
 
10179
if test "${ac_cv_search_glAccum+set}" = set; then
 
10180
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10181
else
 
10182
  ac_func_search_save_LIBS=$LIBS
 
10183
cat >conftest.$ac_ext <<_ACEOF
 
10184
/* confdefs.h.  */
 
10185
_ACEOF
 
10186
cat confdefs.h >>conftest.$ac_ext
 
10187
cat >>conftest.$ac_ext <<_ACEOF
 
10188
/* end confdefs.h.  */
 
10189
 
 
10190
/* Override any GCC internal prototype to avoid an error.
 
10191
   Use char because int might match the return type of a GCC
 
10192
   builtin and then its argument prototype would still apply.  */
 
10193
#ifdef __cplusplus
 
10194
extern "C"
 
10195
#endif
 
10196
char glAccum ();
 
10197
int
 
10198
main ()
 
10199
{
 
10200
return glAccum ();
 
10201
  ;
 
10202
  return 0;
 
10203
}
 
10204
_ACEOF
 
10205
for ac_lib in '' $GL_search_list; do
 
10206
  if test -z "$ac_lib"; then
 
10207
    ac_res="none required"
 
10208
  else
 
10209
    ac_res=-l$ac_lib
 
10210
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10211
  fi
 
10212
  rm -f conftest.$ac_objext conftest$ac_exeext
 
10213
if { (ac_try="$ac_link"
 
10214
case "(($ac_try" in
 
10215
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10216
  *) ac_try_echo=$ac_try;;
 
10217
esac
 
10218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10219
  (eval "$ac_link") 2>conftest.er1
 
10220
  ac_status=$?
 
10221
  grep -v '^ *+' conftest.er1 >conftest.err
 
10222
  rm -f conftest.er1
 
10223
  cat conftest.err >&5
 
10224
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10225
  (exit $ac_status); } && {
 
10226
         test -z "$ac_c_werror_flag" ||
 
10227
         test ! -s conftest.err
 
10228
       } && test -s conftest$ac_exeext &&
 
10229
       $as_test_x conftest$ac_exeext; then
 
10230
  ac_cv_search_glAccum=$ac_res
 
10231
else
 
10232
  echo "$as_me: failed program was:" >&5
 
10233
sed 's/^/| /' conftest.$ac_ext >&5
 
10234
 
 
10235
 
 
10236
fi
 
10237
 
 
10238
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10239
      conftest$ac_exeext
 
10240
  if test "${ac_cv_search_glAccum+set}" = set; then
 
10241
  break
 
10242
fi
2896
10243
done
2897
 
LIBS="$ac_func_search_save_LIBS"
2898
 
fi
2899
 
 
2900
 
echo "$ac_t""$ac_cv_search_glAccum" 1>&6
2901
 
if test "$ac_cv_search_glAccum" != "no"; then
2902
 
  test "$ac_cv_search_glAccum" = "none required" || LIBS="$ac_cv_search_glAccum $LIBS"
 
10244
if test "${ac_cv_search_glAccum+set}" = set; then
 
10245
  :
 
10246
else
 
10247
  ac_cv_search_glAccum=no
 
10248
fi
 
10249
rm conftest.$ac_ext
 
10250
LIBS=$ac_func_search_save_LIBS
 
10251
fi
 
10252
{ echo "$as_me:$LINENO: result: $ac_cv_search_glAccum" >&5
 
10253
echo "${ECHO_T}$ac_cv_search_glAccum" >&6; }
 
10254
ac_res=$ac_cv_search_glAccum
 
10255
if test "$ac_res" != no; then
 
10256
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2903
10257
  have_GL=yes
2904
 
else :
 
10258
else
2905
10259
  have_GL=no
2906
10260
fi
2907
 
    
2908
 
echo $ac_n "checking for library containing gluBeginCurve""... $ac_c" 1>&6
2909
 
echo "configure:2910: checking for library containing gluBeginCurve" >&5
2910
 
if eval "test \"`echo '$''{'ac_cv_search_gluBeginCurve'+set}'`\" = set"; then
2911
 
  echo $ac_n "(cached) $ac_c" 1>&6
2912
 
else
2913
 
  ac_func_search_save_LIBS="$LIBS"
2914
 
ac_cv_search_gluBeginCurve="no"
2915
 
cat > conftest.$ac_ext <<EOF
2916
 
#line 2917 "configure"
2917
 
#include "confdefs.h"
2918
 
/* Override any gcc2 internal prototype to avoid an error.  */
2919
 
/* We use char because int might match the return type of a gcc2
2920
 
    builtin and then its argument prototype would still apply.  */
2921
 
char gluBeginCurve();
2922
 
 
2923
 
int main() {
2924
 
gluBeginCurve()
2925
 
; return 0; }
2926
 
EOF
2927
 
if { (eval echo configure:2928: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2928
 
  rm -rf conftest*
2929
 
  ac_cv_search_gluBeginCurve="none required"
2930
 
else
2931
 
  echo "configure: failed program was:" >&5
2932
 
  cat conftest.$ac_ext >&5
2933
 
fi
2934
 
rm -f conftest*
2935
 
test "$ac_cv_search_gluBeginCurve" = "no" && for i in $GLU_search_list; do
2936
 
LIBS="-l$i  $ac_func_search_save_LIBS"
2937
 
cat > conftest.$ac_ext <<EOF
2938
 
#line 2939 "configure"
2939
 
#include "confdefs.h"
2940
 
/* Override any gcc2 internal prototype to avoid an error.  */
2941
 
/* We use char because int might match the return type of a gcc2
2942
 
    builtin and then its argument prototype would still apply.  */
2943
 
char gluBeginCurve();
2944
 
 
2945
 
int main() {
2946
 
gluBeginCurve()
2947
 
; return 0; }
2948
 
EOF
2949
 
if { (eval echo configure:2950: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2950
 
  rm -rf conftest*
2951
 
  ac_cv_search_gluBeginCurve="-l$i"
2952
 
break
2953
 
else
2954
 
  echo "configure: failed program was:" >&5
2955
 
  cat conftest.$ac_ext >&5
2956
 
fi
2957
 
rm -f conftest*
 
10261
 
 
10262
    { echo "$as_me:$LINENO: checking for library containing gluBeginCurve" >&5
 
10263
echo $ECHO_N "checking for library containing gluBeginCurve... $ECHO_C" >&6; }
 
10264
if test "${ac_cv_search_gluBeginCurve+set}" = set; then
 
10265
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10266
else
 
10267
  ac_func_search_save_LIBS=$LIBS
 
10268
cat >conftest.$ac_ext <<_ACEOF
 
10269
/* confdefs.h.  */
 
10270
_ACEOF
 
10271
cat confdefs.h >>conftest.$ac_ext
 
10272
cat >>conftest.$ac_ext <<_ACEOF
 
10273
/* end confdefs.h.  */
 
10274
 
 
10275
/* Override any GCC internal prototype to avoid an error.
 
10276
   Use char because int might match the return type of a GCC
 
10277
   builtin and then its argument prototype would still apply.  */
 
10278
#ifdef __cplusplus
 
10279
extern "C"
 
10280
#endif
 
10281
char gluBeginCurve ();
 
10282
int
 
10283
main ()
 
10284
{
 
10285
return gluBeginCurve ();
 
10286
  ;
 
10287
  return 0;
 
10288
}
 
10289
_ACEOF
 
10290
for ac_lib in '' $GLU_search_list; do
 
10291
  if test -z "$ac_lib"; then
 
10292
    ac_res="none required"
 
10293
  else
 
10294
    ac_res=-l$ac_lib
 
10295
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10296
  fi
 
10297
  rm -f conftest.$ac_objext conftest$ac_exeext
 
10298
if { (ac_try="$ac_link"
 
10299
case "(($ac_try" in
 
10300
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10301
  *) ac_try_echo=$ac_try;;
 
10302
esac
 
10303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10304
  (eval "$ac_link") 2>conftest.er1
 
10305
  ac_status=$?
 
10306
  grep -v '^ *+' conftest.er1 >conftest.err
 
10307
  rm -f conftest.er1
 
10308
  cat conftest.err >&5
 
10309
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10310
  (exit $ac_status); } && {
 
10311
         test -z "$ac_c_werror_flag" ||
 
10312
         test ! -s conftest.err
 
10313
       } && test -s conftest$ac_exeext &&
 
10314
       $as_test_x conftest$ac_exeext; then
 
10315
  ac_cv_search_gluBeginCurve=$ac_res
 
10316
else
 
10317
  echo "$as_me: failed program was:" >&5
 
10318
sed 's/^/| /' conftest.$ac_ext >&5
 
10319
 
 
10320
 
 
10321
fi
 
10322
 
 
10323
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10324
      conftest$ac_exeext
 
10325
  if test "${ac_cv_search_gluBeginCurve+set}" = set; then
 
10326
  break
 
10327
fi
2958
10328
done
2959
 
LIBS="$ac_func_search_save_LIBS"
2960
 
fi
2961
 
 
2962
 
echo "$ac_t""$ac_cv_search_gluBeginCurve" 1>&6
2963
 
if test "$ac_cv_search_gluBeginCurve" != "no"; then
2964
 
  test "$ac_cv_search_gluBeginCurve" = "none required" || LIBS="$ac_cv_search_gluBeginCurve $LIBS"
 
10329
if test "${ac_cv_search_gluBeginCurve+set}" = set; then
 
10330
  :
 
10331
else
 
10332
  ac_cv_search_gluBeginCurve=no
 
10333
fi
 
10334
rm conftest.$ac_ext
 
10335
LIBS=$ac_func_search_save_LIBS
 
10336
fi
 
10337
{ echo "$as_me:$LINENO: result: $ac_cv_search_gluBeginCurve" >&5
 
10338
echo "${ECHO_T}$ac_cv_search_gluBeginCurve" >&6; }
 
10339
ac_res=$ac_cv_search_gluBeginCurve
 
10340
if test "$ac_res" != no; then
 
10341
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
2965
10342
  have_GLU=yes
2966
 
else :
 
10343
else
2967
10344
  have_GLU=no
2968
10345
fi
2969
 
    
2970
 
echo $ac_n "checking for library containing glXChooseVisual""... $ac_c" 1>&6
2971
 
echo "configure:2972: checking for library containing glXChooseVisual" >&5
2972
 
if eval "test \"`echo '$''{'ac_cv_search_glXChooseVisual'+set}'`\" = set"; then
2973
 
  echo $ac_n "(cached) $ac_c" 1>&6
2974
 
else
2975
 
  ac_func_search_save_LIBS="$LIBS"
2976
 
ac_cv_search_glXChooseVisual="no"
2977
 
cat > conftest.$ac_ext <<EOF
2978
 
#line 2979 "configure"
2979
 
#include "confdefs.h"
2980
 
/* Override any gcc2 internal prototype to avoid an error.  */
2981
 
/* We use char because int might match the return type of a gcc2
2982
 
    builtin and then its argument prototype would still apply.  */
2983
 
char glXChooseVisual();
2984
 
 
2985
 
int main() {
2986
 
glXChooseVisual()
2987
 
; return 0; }
2988
 
EOF
2989
 
if { (eval echo configure:2990: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2990
 
  rm -rf conftest*
2991
 
  ac_cv_search_glXChooseVisual="none required"
2992
 
else
2993
 
  echo "configure: failed program was:" >&5
2994
 
  cat conftest.$ac_ext >&5
2995
 
fi
2996
 
rm -f conftest*
2997
 
test "$ac_cv_search_glXChooseVisual" = "no" && for i in $GLX_search_list; do
2998
 
LIBS="-l$i  $ac_func_search_save_LIBS"
2999
 
cat > conftest.$ac_ext <<EOF
3000
 
#line 3001 "configure"
3001
 
#include "confdefs.h"
3002
 
/* Override any gcc2 internal prototype to avoid an error.  */
3003
 
/* We use char because int might match the return type of a gcc2
3004
 
    builtin and then its argument prototype would still apply.  */
3005
 
char glXChooseVisual();
3006
 
 
3007
 
int main() {
3008
 
glXChooseVisual()
3009
 
; return 0; }
3010
 
EOF
3011
 
if { (eval echo configure:3012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3012
 
  rm -rf conftest*
3013
 
  ac_cv_search_glXChooseVisual="-l$i"
3014
 
break
3015
 
else
3016
 
  echo "configure: failed program was:" >&5
3017
 
  cat conftest.$ac_ext >&5
3018
 
fi
3019
 
rm -f conftest*
 
10346
 
 
10347
    { echo "$as_me:$LINENO: checking for library containing glXChooseVisual" >&5
 
10348
echo $ECHO_N "checking for library containing glXChooseVisual... $ECHO_C" >&6; }
 
10349
if test "${ac_cv_search_glXChooseVisual+set}" = set; then
 
10350
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10351
else
 
10352
  ac_func_search_save_LIBS=$LIBS
 
10353
cat >conftest.$ac_ext <<_ACEOF
 
10354
/* confdefs.h.  */
 
10355
_ACEOF
 
10356
cat confdefs.h >>conftest.$ac_ext
 
10357
cat >>conftest.$ac_ext <<_ACEOF
 
10358
/* end confdefs.h.  */
 
10359
 
 
10360
/* Override any GCC internal prototype to avoid an error.
 
10361
   Use char because int might match the return type of a GCC
 
10362
   builtin and then its argument prototype would still apply.  */
 
10363
#ifdef __cplusplus
 
10364
extern "C"
 
10365
#endif
 
10366
char glXChooseVisual ();
 
10367
int
 
10368
main ()
 
10369
{
 
10370
return glXChooseVisual ();
 
10371
  ;
 
10372
  return 0;
 
10373
}
 
10374
_ACEOF
 
10375
for ac_lib in '' $GLX_search_list; do
 
10376
  if test -z "$ac_lib"; then
 
10377
    ac_res="none required"
 
10378
  else
 
10379
    ac_res=-l$ac_lib
 
10380
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10381
  fi
 
10382
  rm -f conftest.$ac_objext conftest$ac_exeext
 
10383
if { (ac_try="$ac_link"
 
10384
case "(($ac_try" in
 
10385
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10386
  *) ac_try_echo=$ac_try;;
 
10387
esac
 
10388
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10389
  (eval "$ac_link") 2>conftest.er1
 
10390
  ac_status=$?
 
10391
  grep -v '^ *+' conftest.er1 >conftest.err
 
10392
  rm -f conftest.er1
 
10393
  cat conftest.err >&5
 
10394
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10395
  (exit $ac_status); } && {
 
10396
         test -z "$ac_c_werror_flag" ||
 
10397
         test ! -s conftest.err
 
10398
       } && test -s conftest$ac_exeext &&
 
10399
       $as_test_x conftest$ac_exeext; then
 
10400
  ac_cv_search_glXChooseVisual=$ac_res
 
10401
else
 
10402
  echo "$as_me: failed program was:" >&5
 
10403
sed 's/^/| /' conftest.$ac_ext >&5
 
10404
 
 
10405
 
 
10406
fi
 
10407
 
 
10408
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10409
      conftest$ac_exeext
 
10410
  if test "${ac_cv_search_glXChooseVisual+set}" = set; then
 
10411
  break
 
10412
fi
3020
10413
done
3021
 
LIBS="$ac_func_search_save_LIBS"
3022
 
fi
3023
 
 
3024
 
echo "$ac_t""$ac_cv_search_glXChooseVisual" 1>&6
3025
 
if test "$ac_cv_search_glXChooseVisual" != "no"; then
3026
 
  test "$ac_cv_search_glXChooseVisual" = "none required" || LIBS="$ac_cv_search_glXChooseVisual $LIBS"
 
10414
if test "${ac_cv_search_glXChooseVisual+set}" = set; then
 
10415
  :
 
10416
else
 
10417
  ac_cv_search_glXChooseVisual=no
 
10418
fi
 
10419
rm conftest.$ac_ext
 
10420
LIBS=$ac_func_search_save_LIBS
 
10421
fi
 
10422
{ echo "$as_me:$LINENO: result: $ac_cv_search_glXChooseVisual" >&5
 
10423
echo "${ECHO_T}$ac_cv_search_glXChooseVisual" >&6; }
 
10424
ac_res=$ac_cv_search_glXChooseVisual
 
10425
if test "$ac_res" != no; then
 
10426
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3027
10427
  have_GLX=yes
3028
 
else :
 
10428
else
3029
10429
  have_GLX=no
3030
10430
fi
3031
 
    
3032
 
echo $ac_n "checking for library containing glutInit""... $ac_c" 1>&6
3033
 
echo "configure:3034: checking for library containing glutInit" >&5
3034
 
if eval "test \"`echo '$''{'ac_cv_search_glutInit'+set}'`\" = set"; then
3035
 
  echo $ac_n "(cached) $ac_c" 1>&6
3036
 
else
3037
 
  ac_func_search_save_LIBS="$LIBS"
3038
 
ac_cv_search_glutInit="no"
3039
 
cat > conftest.$ac_ext <<EOF
3040
 
#line 3041 "configure"
3041
 
#include "confdefs.h"
3042
 
/* Override any gcc2 internal prototype to avoid an error.  */
3043
 
/* We use char because int might match the return type of a gcc2
3044
 
    builtin and then its argument prototype would still apply.  */
3045
 
char glutInit();
3046
 
 
3047
 
int main() {
3048
 
glutInit()
3049
 
; return 0; }
3050
 
EOF
3051
 
if { (eval echo configure:3052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3052
 
  rm -rf conftest*
3053
 
  ac_cv_search_glutInit="none required"
3054
 
else
3055
 
  echo "configure: failed program was:" >&5
3056
 
  cat conftest.$ac_ext >&5
3057
 
fi
3058
 
rm -f conftest*
3059
 
test "$ac_cv_search_glutInit" = "no" && for i in glut; do
3060
 
LIBS="-l$i  $ac_func_search_save_LIBS"
3061
 
cat > conftest.$ac_ext <<EOF
3062
 
#line 3063 "configure"
3063
 
#include "confdefs.h"
3064
 
/* Override any gcc2 internal prototype to avoid an error.  */
3065
 
/* We use char because int might match the return type of a gcc2
3066
 
    builtin and then its argument prototype would still apply.  */
3067
 
char glutInit();
3068
 
 
3069
 
int main() {
3070
 
glutInit()
3071
 
; return 0; }
3072
 
EOF
3073
 
if { (eval echo configure:3074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3074
 
  rm -rf conftest*
3075
 
  ac_cv_search_glutInit="-l$i"
3076
 
break
3077
 
else
3078
 
  echo "configure: failed program was:" >&5
3079
 
  cat conftest.$ac_ext >&5
3080
 
fi
3081
 
rm -f conftest*
 
10431
 
 
10432
    { echo "$as_me:$LINENO: checking for library containing glutInit" >&5
 
10433
echo $ECHO_N "checking for library containing glutInit... $ECHO_C" >&6; }
 
10434
if test "${ac_cv_search_glutInit+set}" = set; then
 
10435
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
10436
else
 
10437
  ac_func_search_save_LIBS=$LIBS
 
10438
cat >conftest.$ac_ext <<_ACEOF
 
10439
/* confdefs.h.  */
 
10440
_ACEOF
 
10441
cat confdefs.h >>conftest.$ac_ext
 
10442
cat >>conftest.$ac_ext <<_ACEOF
 
10443
/* end confdefs.h.  */
 
10444
 
 
10445
/* Override any GCC internal prototype to avoid an error.
 
10446
   Use char because int might match the return type of a GCC
 
10447
   builtin and then its argument prototype would still apply.  */
 
10448
#ifdef __cplusplus
 
10449
extern "C"
 
10450
#endif
 
10451
char glutInit ();
 
10452
int
 
10453
main ()
 
10454
{
 
10455
return glutInit ();
 
10456
  ;
 
10457
  return 0;
 
10458
}
 
10459
_ACEOF
 
10460
for ac_lib in '' glut; do
 
10461
  if test -z "$ac_lib"; then
 
10462
    ac_res="none required"
 
10463
  else
 
10464
    ac_res=-l$ac_lib
 
10465
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
 
10466
  fi
 
10467
  rm -f conftest.$ac_objext conftest$ac_exeext
 
10468
if { (ac_try="$ac_link"
 
10469
case "(($ac_try" in
 
10470
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10471
  *) ac_try_echo=$ac_try;;
 
10472
esac
 
10473
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10474
  (eval "$ac_link") 2>conftest.er1
 
10475
  ac_status=$?
 
10476
  grep -v '^ *+' conftest.er1 >conftest.err
 
10477
  rm -f conftest.er1
 
10478
  cat conftest.err >&5
 
10479
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10480
  (exit $ac_status); } && {
 
10481
         test -z "$ac_c_werror_flag" ||
 
10482
         test ! -s conftest.err
 
10483
       } && test -s conftest$ac_exeext &&
 
10484
       $as_test_x conftest$ac_exeext; then
 
10485
  ac_cv_search_glutInit=$ac_res
 
10486
else
 
10487
  echo "$as_me: failed program was:" >&5
 
10488
sed 's/^/| /' conftest.$ac_ext >&5
 
10489
 
 
10490
 
 
10491
fi
 
10492
 
 
10493
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10494
      conftest$ac_exeext
 
10495
  if test "${ac_cv_search_glutInit+set}" = set; then
 
10496
  break
 
10497
fi
3082
10498
done
3083
 
LIBS="$ac_func_search_save_LIBS"
3084
 
fi
3085
 
 
3086
 
echo "$ac_t""$ac_cv_search_glutInit" 1>&6
3087
 
if test "$ac_cv_search_glutInit" != "no"; then
3088
 
  test "$ac_cv_search_glutInit" = "none required" || LIBS="$ac_cv_search_glutInit $LIBS"
 
10499
if test "${ac_cv_search_glutInit+set}" = set; then
 
10500
  :
 
10501
else
 
10502
  ac_cv_search_glutInit=no
 
10503
fi
 
10504
rm conftest.$ac_ext
 
10505
LIBS=$ac_func_search_save_LIBS
 
10506
fi
 
10507
{ echo "$as_me:$LINENO: result: $ac_cv_search_glutInit" >&5
 
10508
echo "${ECHO_T}$ac_cv_search_glutInit" >&6; }
 
10509
ac_res=$ac_cv_search_glutInit
 
10510
if test "$ac_res" != no; then
 
10511
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3089
10512
  have_glut=yes
3090
 
else :
 
10513
else
3091
10514
  have_glut=no
3092
10515
fi
3093
10516
 
3094
10517
 
3095
10518
 
 
10519
 
3096
10520
    # Restore pretty messages.
3097
10521
    exec 6>&8
3098
10522
 
3099
10523
    if test -n "$LIBS"; then
3100
10524
      mdl_cv_have_OpenGL=yes
3101
10525
      GL_LIBS="$LIBS"
3102
 
      
3103
 
      
 
10526
 
 
10527
 
3104
10528
    else
3105
10529
      mdl_cv_have_OpenGL=no
3106
10530
      GL_CFLAGS=
3112
10536
    CPPFLAGS="$GL_save_CPPFLAGS"
3113
10537
 
3114
10538
    ac_ext=c
3115
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3116
10539
ac_cpp='$CPP $CPPFLAGS'
3117
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3118
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3119
 
cross_compiling=$ac_cv_prog_cc_cross
3120
 
 
3121
 
    
 
10540
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10541
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10542
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
10543
 
 
10544
 
3122
10545
    mdl_cv_GL_CFLAGS="$GL_CFLAGS"
3123
10546
    mdl_cv_GL_LIBS="$GL_LIBS"
3124
10547
    mdl_cv_have_GL="$have_GL"
3125
10548
    mdl_cv_have_GLU="$have_GLU"
3126
10549
    mdl_cv_have_GLX="$have_GLX"
3127
10550
    mdl_cv_have_glut="$have_glut"
3128
 
  
 
10551
 
3129
10552
fi
3130
 
 
3131
 
echo "$ac_t""$mdl_cv_have_OpenGL" 1>&6
 
10553
{ echo "$as_me:$LINENO: result: $mdl_cv_have_OpenGL" >&5
 
10554
echo "${ECHO_T}$mdl_cv_have_OpenGL" >&6; }
3132
10555
  GL_CFLAGS="$mdl_cv_GL_CFLAGS"
3133
10556
  GL_LIBS="$mdl_cv_GL_LIBS"
3134
10557
  have_GL="$mdl_cv_have_GL"
3137
10560
  have_glut="$mdl_cv_have_glut"
3138
10561
 
3139
10562
 
3140
 
    
3141
 
  
3142
 
  
3143
 
  
3144
 
 
3145
 
    
3146
 
    ac_ext=C
3147
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
10563
 
 
10564
 
 
10565
 
 
10566
 
 
10567
 
 
10568
 
 
10569
 
 
10570
    ac_ext=cpp
3148
10571
ac_cpp='$CXXCPP $CPPFLAGS'
3149
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3150
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3151
 
cross_compiling=$ac_cv_prog_cxx_cross
3152
 
 
3153
 
 
3154
 
  echo $ac_n "checking for Qt""... $ac_c" 1>&6
3155
 
echo "configure:3156: checking for Qt" >&5
 
10572
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
10573
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
10574
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
10575
 
 
10576
 
 
10577
  { echo "$as_me:$LINENO: checking for Qt" >&5
 
10578
echo $ECHO_N "checking for Qt... $ECHO_C" >&6; }
3156
10579
 
3157
10580
  QT_XLIBS="$X_PRE_LIBS $X_LIBS -lX11 -lXext -lXmu -lXt -lXi $X_EXTRA_LIBS"
3158
10581
  if test x"$no_x" = xyes; then
3162
10585
     QT_XLIBS=""
3163
10586
  fi
3164
10587
 
3165
 
  # Check whether --with-Qt-dir or --without-Qt-dir was given.
 
10588
 
 
10589
# Check whether --with-Qt-dir was given.
3166
10590
if test "${with_Qt_dir+set}" = set; then
3167
 
  withval="$with_Qt_dir"
3168
 
  :
 
10591
  withval=$with_Qt_dir;
3169
10592
fi
3170
10593
 
3171
 
  # Check whether --with-Qt-include-dir or --without-Qt-include-dir was given.
 
10594
 
 
10595
# Check whether --with-Qt-include-dir was given.
3172
10596
if test "${with_Qt_include_dir+set}" = set; then
3173
 
  withval="$with_Qt_include_dir"
3174
 
  :
 
10597
  withval=$with_Qt_include_dir;
3175
10598
fi
3176
10599
 
3177
 
  # Check whether --with-Qt-bin-dir or --without-Qt-bin-dir was given.
 
10600
 
 
10601
# Check whether --with-Qt-bin-dir was given.
3178
10602
if test "${with_Qt_bin_dir+set}" = set; then
3179
 
  withval="$with_Qt_bin_dir"
3180
 
  :
 
10603
  withval=$with_Qt_bin_dir;
3181
10604
fi
3182
10605
 
3183
 
  # Check whether --with-Qt-lib-dir or --without-Qt-lib-dir was given.
 
10606
 
 
10607
# Check whether --with-Qt-lib-dir was given.
3184
10608
if test "${with_Qt_lib_dir+set}" = set; then
3185
 
  withval="$with_Qt_lib_dir"
3186
 
  :
 
10609
  withval=$with_Qt_lib_dir;
3187
10610
fi
3188
10611
 
3189
 
  # Check whether --with-Qt-lib or --without-Qt-lib was given.
 
10612
 
 
10613
# Check whether --with-Qt-lib was given.
3190
10614
if test "${with_Qt_lib+set}" = set; then
3191
 
  withval="$with_Qt_lib"
3192
 
  :
 
10615
  withval=$with_Qt_lib;
3193
10616
fi
3194
10617
 
3195
10618
  bnv_is_qt4=no
3254
10677
    else
3255
10678
      # Use cached value or do search, starting with suggestions from
3256
10679
      # the command line
3257
 
      if eval "test \"`echo '$''{'bnv_cv_have_qt'+set}'`\" = set"; then
3258
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
10680
      if test "${bnv_cv_have_qt+set}" = set; then
 
10681
  echo $ECHO_N "(cached) $ECHO_C" >&6
3259
10682
else
3260
 
  
 
10683
 
3261
10684
        # We are not given a solution and there is no cached value.
3262
10685
        bnv_qt_dir=NO
3263
10686
        bnv_qt_include_dir=NO
3265
10688
        if test x"$bnv_qt_lib" = x; then
3266
10689
          bnv_qt_lib=NO
3267
10690
        fi
3268
 
        
 
10691
 
3269
10692
  ## Binary utilities ##
3270
10693
  if test x"$with_Qt_bin_dir" != x; then
3271
10694
    bnv_qt_bin_dir=$with_Qt_bin_dir
3313
10736
         fi
3314
10737
      fi
3315
10738
    done
3316
 
  fi 
 
10739
  fi
3317
10740
  # Are these headers located in a traditional Trolltech installation?
3318
10741
  # That would be $bnv_qt_include_dir stripped from its last element:
3319
10742
  bnv_found_traditional=no
3400
10823
        LIBS="-l$bnv_qt_lib $QT_XLIBS"
3401
10824
      fi
3402
10825
      bnv_qt_LIBS="$LIBS"
3403
 
      cat > conftest.$ac_ext <<EOF
3404
 
#line 3405 "configure"
3405
 
#include "confdefs.h"
 
10826
      cat >conftest.$ac_ext <<_ACEOF
 
10827
/* confdefs.h.  */
 
10828
_ACEOF
 
10829
cat confdefs.h >>conftest.$ac_ext
 
10830
cat >>conftest.$ac_ext <<_ACEOF
 
10831
/* end confdefs.h.  */
3406
10832
#include <$qt_direct_test_header>
3407
 
int main() {
 
10833
int
 
10834
main ()
 
10835
{
3408
10836
$qt_direct_test_main
3409
 
; return 0; }
3410
 
EOF
3411
 
if { (eval echo configure:3412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3412
 
  rm -rf conftest*
3413
 
  
 
10837
  ;
 
10838
  return 0;
 
10839
}
 
10840
_ACEOF
 
10841
rm -f conftest.$ac_objext conftest$ac_exeext
 
10842
if { (ac_try="$ac_link"
 
10843
case "(($ac_try" in
 
10844
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10845
  *) ac_try_echo=$ac_try;;
 
10846
esac
 
10847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10848
  (eval "$ac_link") 2>conftest.er1
 
10849
  ac_status=$?
 
10850
  grep -v '^ *+' conftest.er1 >conftest.err
 
10851
  rm -f conftest.er1
 
10852
  cat conftest.err >&5
 
10853
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10854
  (exit $ac_status); } && {
 
10855
         test -z "$ac_cxx_werror_flag" ||
 
10856
         test ! -s conftest.err
 
10857
       } && test -s conftest$ac_exeext &&
 
10858
       $as_test_x conftest$ac_exeext; then
 
10859
 
3414
10860
        # Succes.
3415
10861
        # We can link with no special library directory.
3416
10862
        bnv_qt_lib_dir=
3417
 
      
 
10863
 
3418
10864
else
3419
 
  echo "configure: failed program was:" >&5
3420
 
  cat conftest.$ac_ext >&5
3421
 
  rm -rf conftest*
3422
 
  
 
10865
  echo "$as_me: failed program was:" >&5
 
10866
sed 's/^/| /' conftest.$ac_ext >&5
 
10867
 
 
10868
 
3423
10869
        # That did not work. Try the multi-threaded version
3424
10870
        echo "Non-critical error, please neglect the above." >&5
3425
10871
        bnv_qt_lib=qt-mt
3426
10872
        LIBS="-l$bnv_qt_lib $QT_XLIBS"
3427
 
        cat > conftest.$ac_ext <<EOF
3428
 
#line 3429 "configure"
3429
 
#include "confdefs.h"
 
10873
        cat >conftest.$ac_ext <<_ACEOF
 
10874
/* confdefs.h.  */
 
10875
_ACEOF
 
10876
cat confdefs.h >>conftest.$ac_ext
 
10877
cat >>conftest.$ac_ext <<_ACEOF
 
10878
/* end confdefs.h.  */
3430
10879
#include <$qt_direct_test_header>
3431
 
int main() {
 
10880
int
 
10881
main ()
 
10882
{
3432
10883
$qt_direct_test_main
3433
 
; return 0; }
3434
 
EOF
3435
 
if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3436
 
  rm -rf conftest*
3437
 
  
 
10884
  ;
 
10885
  return 0;
 
10886
}
 
10887
_ACEOF
 
10888
rm -f conftest.$ac_objext conftest$ac_exeext
 
10889
if { (ac_try="$ac_link"
 
10890
case "(($ac_try" in
 
10891
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10892
  *) ac_try_echo=$ac_try;;
 
10893
esac
 
10894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10895
  (eval "$ac_link") 2>conftest.er1
 
10896
  ac_status=$?
 
10897
  grep -v '^ *+' conftest.er1 >conftest.err
 
10898
  rm -f conftest.er1
 
10899
  cat conftest.err >&5
 
10900
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10901
  (exit $ac_status); } && {
 
10902
         test -z "$ac_cxx_werror_flag" ||
 
10903
         test ! -s conftest.err
 
10904
       } && test -s conftest$ac_exeext &&
 
10905
       $as_test_x conftest$ac_exeext; then
 
10906
 
3438
10907
          # Succes.
3439
10908
          # We can link with no special library directory.
3440
10909
          bnv_qt_lib_dir=
3441
 
        
 
10910
 
3442
10911
else
3443
 
  echo "configure: failed program was:" >&5
3444
 
  cat conftest.$ac_ext >&5
3445
 
  rm -rf conftest*
3446
 
  
 
10912
  echo "$as_me: failed program was:" >&5
 
10913
sed 's/^/| /' conftest.$ac_ext >&5
 
10914
 
 
10915
 
3447
10916
          # That did not work. Try the OpenGL version
3448
10917
          echo "Non-critical error, please neglect the above." >&5
3449
10918
          bnv_qt_lib=qt-gl
3450
10919
          LIBS="-l$bnv_qt_lib $QT_XLIBS"
3451
 
          cat > conftest.$ac_ext <<EOF
3452
 
#line 3453 "configure"
3453
 
#include "confdefs.h"
 
10920
          cat >conftest.$ac_ext <<_ACEOF
 
10921
/* confdefs.h.  */
 
10922
_ACEOF
 
10923
cat confdefs.h >>conftest.$ac_ext
 
10924
cat >>conftest.$ac_ext <<_ACEOF
 
10925
/* end confdefs.h.  */
3454
10926
#include <$qt_direct_test_header>
3455
 
int main() {
 
10927
int
 
10928
main ()
 
10929
{
3456
10930
$qt_direct_test_main
3457
 
; return 0; }
3458
 
EOF
3459
 
if { (eval echo configure:3460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3460
 
  rm -rf conftest*
3461
 
  
 
10931
  ;
 
10932
  return 0;
 
10933
}
 
10934
_ACEOF
 
10935
rm -f conftest.$ac_objext conftest$ac_exeext
 
10936
if { (ac_try="$ac_link"
 
10937
case "(($ac_try" in
 
10938
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
10939
  *) ac_try_echo=$ac_try;;
 
10940
esac
 
10941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
10942
  (eval "$ac_link") 2>conftest.er1
 
10943
  ac_status=$?
 
10944
  grep -v '^ *+' conftest.er1 >conftest.err
 
10945
  rm -f conftest.er1
 
10946
  cat conftest.err >&5
 
10947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
10948
  (exit $ac_status); } && {
 
10949
         test -z "$ac_cxx_werror_flag" ||
 
10950
         test ! -s conftest.err
 
10951
       } && test -s conftest$ac_exeext &&
 
10952
       $as_test_x conftest$ac_exeext; then
 
10953
 
3462
10954
            # Succes.
3463
10955
            # We can link with no special library directory.
3464
10956
            bnv_qt_lib_dir=
3465
 
          
 
10957
 
3466
10958
else
3467
 
  echo "configure: failed program was:" >&5
3468
 
  cat conftest.$ac_ext >&5
3469
 
  rm -rf conftest*
3470
 
  
 
10959
  echo "$as_me: failed program was:" >&5
 
10960
sed 's/^/| /' conftest.$ac_ext >&5
 
10961
 
 
10962
 
3471
10963
            # That did not work. Maybe a library version I don't know about?
3472
10964
            echo "Non-critical error, please neglect the above." >&5
3473
10965
            # Look for some Qt lib in a standard set of common directories.
3495
10987
            done
3496
10988
            # Try with that one
3497
10989
            LIBS="-l$bnv_qt_lib $QT_XLIBS"
3498
 
          
3499
 
fi
3500
 
rm -f conftest*
3501
 
        
3502
 
fi
3503
 
rm -f conftest*
3504
 
      
3505
 
fi
3506
 
rm -f conftest*
 
10990
 
 
10991
fi
 
10992
 
 
10993
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10994
      conftest$ac_exeext conftest.$ac_ext
 
10995
 
 
10996
fi
 
10997
 
 
10998
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
10999
      conftest$ac_exeext conftest.$ac_ext
 
11000
 
 
11001
fi
 
11002
 
 
11003
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
11004
      conftest$ac_exeext conftest.$ac_ext
3507
11005
      if test x"$bnv_qt_lib_dir" != x; then
3508
11006
        bnv_qt_LIBS="-L$bnv_qt_lib_dir $LIBS"
3509
11007
      else
3512
11010
      LIBS="$bnv_save_LIBS"
3513
11011
      CXXFLAGS="$bnv_save_CXXFLAGS"
3514
11012
 
3515
 
    fi 
3516
 
  fi 
 
11013
    fi
 
11014
  fi
3517
11015
 
3518
11016
        if test "$bnv_qt_dir" = NO ||
3519
11017
           test "$bnv_qt_include_dir" = NO ||
3530
11028
                   bnv_is_qt4=$bnv_is_qt4              \
3531
11029
                      bnv_qt_LIBS=\"$bnv_qt_LIBS\""
3532
11030
        fi
3533
 
      
 
11031
 
3534
11032
fi
3535
11033
      eval "$bnv_cv_have_qt"
3536
11034
    fi # all $bnv_qt_* are set
3573
11071
    if test x"$bnv_is_qt4" = xyes; then
3574
11072
      QT_UIC="$QT_UIC"3
3575
11073
    fi
3576
 
    echo "$ac_t""$have_qt:
3577
 
    QT_CXXFLAGS=$QT_CXXFLAGS
3578
 
    QT_DIR=$QT_DIR
3579
 
    QT_LIBS=$QT_LIBS
3580
 
    QT_UIC=$QT_UIC
3581
 
    QT_MOC=$QT_MOC" 1>&6
 
11074
    { echo "$as_me:$LINENO: result: $have_qt:
 
11075
    QT_CXXFLAGS=$QT_CXXFLAGS
 
11076
    QT_DIR=$QT_DIR
 
11077
    QT_LIBS=$QT_LIBS
 
11078
    QT_UIC=$QT_UIC
 
11079
    QT_MOC=$QT_MOC" >&5
 
11080
echo "${ECHO_T}$have_qt:
 
11081
    QT_CXXFLAGS=$QT_CXXFLAGS
 
11082
    QT_DIR=$QT_DIR
 
11083
    QT_LIBS=$QT_LIBS
 
11084
    QT_UIC=$QT_UIC
 
11085
    QT_MOC=$QT_MOC" >&6; }
3582
11086
  else
3583
11087
    # Qt was not found
3584
11088
    QT_CXXFLAGS=
3586
11090
    QT_LIBS=
3587
11091
    QT_UIC=
3588
11092
    QT_MOC=
3589
 
    echo "$ac_t""$have_qt" 1>&6
 
11093
    { echo "$as_me:$LINENO: result: $have_qt" >&5
 
11094
echo "${ECHO_T}$have_qt" >&6; }
3590
11095
  fi
3591
11096
  if test x"$bnv_is_qt4" = xyes; then
3592
11097
    HAVE_QT4=1
3593
 
    
3594
 
    cat >> confdefs.h <<\EOF
 
11098
 
 
11099
    cat >>confdefs.h <<\_ACEOF
3595
11100
#define HAVE_QT4  1
3596
 
EOF
 
11101
_ACEOF
3597
11102
 
3598
11103
  fi
3599
 
  
3600
 
  
3601
 
  
3602
 
  
3603
 
  
 
11104
 
 
11105
 
 
11106
 
 
11107
 
 
11108
 
3604
11109
 
3605
11110
 
3606
11111
  #### Being paranoid:
3607
11112
  if test x"$have_qt" = xyes; then
3608
 
    echo $ac_n "checking correct functioning of Qt installation""... $ac_c" 1>&6
3609
 
echo "configure:3610: checking correct functioning of Qt installation" >&5
3610
 
    if eval "test \"`echo '$''{'bnv_cv_qt_test_result'+set}'`\" = set"; then
3611
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11113
    { echo "$as_me:$LINENO: checking correct functioning of Qt installation" >&5
 
11114
echo $ECHO_N "checking correct functioning of Qt installation... $ECHO_C" >&6; }
 
11115
    if test "${bnv_cv_qt_test_result+set}" = set; then
 
11116
  echo $ECHO_N "(cached) $ECHO_C" >&6
3612
11117
else
3613
 
  
 
11118
 
3614
11119
      cat > bnv_qt_test.h << EOF
3615
11120
#include <qobject.h>
3616
11121
class Test : public QObject
3639
11144
 
3640
11145
      bnv_cv_qt_test_result="failure"
3641
11146
      bnv_try_1="$QT_MOC bnv_qt_test.h -o moc_bnv_qt_test.$ac_ext >/dev/null 2>bnv_qt_test_1.out"
3642
 
      { (eval echo configure:3643: \"$bnv_try_1\") 1>&5; (eval $bnv_try_1) 2>&5; }
 
11147
      { (eval echo "$as_me:$LINENO: \"$bnv_try_1\"") >&5
 
11148
  (eval $bnv_try_1) 2>&5
 
11149
  ac_status=$?
 
11150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11151
  (exit $ac_status); }
3643
11152
      bnv_err_1=`grep -v '^ *+' bnv_qt_test_1.out | grep -v "^bnv_qt_test.h\$"`
3644
11153
      if test x"$bnv_err_1" != x; then
3645
11154
        echo "$bnv_err_1" >&5
3647
11156
        cat bnv_qt_test.h >&5
3648
11157
      else
3649
11158
        bnv_try_2="$CXX $QT_CXXFLAGS -c $CXXFLAGS -Wno-non-virtual-dtor -o moc_bnv_qt_test.o moc_bnv_qt_test.$ac_ext >/dev/null 2>bnv_qt_test_2.out"
3650
 
        { (eval echo configure:3651: \"$bnv_try_2\") 1>&5; (eval $bnv_try_2) 2>&5; }
 
11159
        { (eval echo "$as_me:$LINENO: \"$bnv_try_2\"") >&5
 
11160
  (eval $bnv_try_2) 2>&5
 
11161
  ac_status=$?
 
11162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11163
  (exit $ac_status); }
3651
11164
        bnv_err_2=`grep -v '^ *+' bnv_qt_test_2.out | grep -v "^bnv_qt_test.{$ac_ext}\$"`
3652
11165
        if test x"$bnv_err_2" != x; then
3653
11166
          echo "$bnv_err_2" >&5
3655
11168
          cat bnv_qt_test.$ac_ext >&5
3656
11169
        else
3657
11170
          bnv_try_3="$CXX $QT_CXXFLAGS -c $CXXFLAGS -o bnv_qt_main.o bnv_qt_main.$ac_ext >/dev/null 2>bnv_qt_test_3.out"
3658
 
          { (eval echo configure:3659: \"$bnv_try_3\") 1>&5; (eval $bnv_try_3) 2>&5; }
 
11171
          { (eval echo "$as_me:$LINENO: \"$bnv_try_3\"") >&5
 
11172
  (eval $bnv_try_3) 2>&5
 
11173
  ac_status=$?
 
11174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11175
  (exit $ac_status); }
3659
11176
          bnv_err_3=`grep -v '^ *+' bnv_qt_test_3.out | grep -v "^bnv_qt_main.{$ac_ext}\$"`
3660
11177
          if test x"$bnv_err_3" != x; then
3661
11178
            echo "$bnv_err_3" >&5
3663
11180
            cat bnv_qt_main.$ac_ext >&5
3664
11181
          else
3665
11182
            bnv_try_4="$CXX $QT_LIBS $LIBS -o bnv_qt_main bnv_qt_main.o moc_bnv_qt_test.o >/dev/null 2>bnv_qt_test_4.out"
3666
 
            { (eval echo configure:3667: \"$bnv_try_4\") 1>&5; (eval $bnv_try_4) 2>&5; }
 
11183
            { (eval echo "$as_me:$LINENO: \"$bnv_try_4\"") >&5
 
11184
  (eval $bnv_try_4) 2>&5
 
11185
  ac_status=$?
 
11186
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11187
  (exit $ac_status); }
3667
11188
            bnv_err_4=`grep -v '^ *+' bnv_qt_test_4.out`
3668
11189
            if test x"$bnv_err_4" != x; then
3669
11190
              echo "$bnv_err_4" >&5
3673
11194
          fi
3674
11195
        fi
3675
11196
      fi
3676
 
    
 
11197
 
3677
11198
fi
3678
 
    echo "$ac_t""$bnv_cv_qt_test_result" 1>&6;
 
11199
    { echo "$as_me:$LINENO: result: $bnv_cv_qt_test_result" >&5
 
11200
echo "${ECHO_T}$bnv_cv_qt_test_result" >&6; };
3679
11201
    if test x"$bnv_cv_qt_test_result" = "xfailure"; then
3680
 
      { echo "configure: error: Failed to find matching components of a complete
3681
 
                  Qt installation. Try using more options,
3682
 
                  see ./configure --help." 1>&2; exit 1; }
 
11202
      { { echo "$as_me:$LINENO: error: Failed to find matching components of a complete
 
11203
                  Qt installation. Try using more options,
 
11204
                  see ./configure --help." >&5
 
11205
echo "$as_me: error: Failed to find matching components of a complete
 
11206
                  Qt installation. Try using more options,
 
11207
                  see ./configure --help." >&2;}
 
11208
   { (exit 1); exit 1; }; }
3683
11209
    fi
3684
11210
 
3685
11211
    rm -f bnv_qt_test.h moc_bnv_qt_test.$ac_ext moc_bnv_qt_test.o \
3688
11214
  fi
3689
11215
 
3690
11216
    ac_ext=c
3691
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3692
11217
ac_cpp='$CPP $CPPFLAGS'
3693
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3694
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3695
 
cross_compiling=$ac_cv_prog_cc_cross
3696
 
 
3697
 
 
3698
 
 
3699
 
  
3700
 
  
3701
 
 
3702
 
  
3703
 
  ac_ext=C
3704
 
# CXXFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 
11218
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11219
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11220
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11221
 
 
11222
 
 
11223
 
 
11224
 
 
11225
 
 
11226
 
 
11227
 
 
11228
  ac_ext=cpp
3705
11229
ac_cpp='$CXXCPP $CPPFLAGS'
3706
 
ac_compile='${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3707
 
ac_link='${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3708
 
cross_compiling=$ac_cv_prog_cxx_cross
3709
 
 
3710
 
 
3711
 
  echo $ac_n "checking Qt OpenGL""... $ac_c" 1>&6
3712
 
echo "configure:3713: checking Qt OpenGL" >&5
3713
 
 
3714
 
    if eval "test \"`echo '$''{'ksw_cv_qgl_test_result'+set}'`\" = set"; then
3715
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11230
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11231
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11232
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
11233
 
 
11234
 
 
11235
  { echo "$as_me:$LINENO: checking Qt OpenGL" >&5
 
11236
echo $ECHO_N "checking Qt OpenGL... $ECHO_C" >&6; }
 
11237
 
 
11238
    if test "${ksw_cv_qgl_test_result+set}" = set; then
 
11239
  echo $ECHO_N "(cached) $ECHO_C" >&6
3716
11240
else
3717
 
  
 
11241
 
3718
11242
      cat > ksw_qgl_test.${ac_ext} << EOF
3719
11243
#include <qapplication.h>
3720
11244
#include <qwidget.h>
3731
11255
 
3732
11256
      ksw_cv_qgl_test_result="failure"
3733
11257
        ksw_try_1="$CXX $GL_CFLAGS $GL_LIBS $QT_CXXFLAGS $QT_LIBS -o ksw_qgl_test ksw_qgl_test.${ac_ext} >/dev/null 2>ksw_qgl_test_1.out"
3734
 
        { (eval echo configure:3735: \"$ksw_try_1\") 1>&5; (eval $ksw_try_1) 2>&5; }
 
11258
        { (eval echo "$as_me:$LINENO: \"$ksw_try_1\"") >&5
 
11259
  (eval $ksw_try_1) 2>&5
 
11260
  ac_status=$?
 
11261
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11262
  (exit $ac_status); }
3735
11263
        ksw_err_1=`grep -v '^ *+' ksw_qgl_test_1.out | grep -v "^ksw_qgl_test.{$ac_ext}\$"`
3736
11264
        if test x"$ksw_err_1" != x; then
3737
11265
           ksw_try_2="$CXX $GL_CFLAGS $GL_LIBS $QT_CXXFLAGS $QT_LIBS -lqglviewer -o ksw_qgl_test ksw_qgl_test.${ac_ext} >/dev/null 2>ksw_qgl_test_2.out"
3738
 
           { (eval echo configure:3739: \"$ksw_try_2\") 1>&5; (eval $ksw_try_2) 2>&5; }
 
11266
           { (eval echo "$as_me:$LINENO: \"$ksw_try_2\"") >&5
 
11267
  (eval $ksw_try_2) 2>&5
 
11268
  ac_status=$?
 
11269
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
11270
  (exit $ac_status); }
3739
11271
           ksw_err_2=`grep -v '^ *+' ksw_qgl_test_2.out | grep -v "^ksw_qgl_test.{$ac_ext}\$"`
3740
11272
           if test x"$ksw_err_2" != x; then
3741
11273
             echo "$ksw_err_2" >&5
3749
11281
         ksw_cv_qgl_test_result="success"
3750
11282
         QGL_LIBS=
3751
11283
        fi
3752
 
    
 
11284
 
3753
11285
fi
3754
 
    echo "$ac_t""$ksw_cv_qgl_test_result" 1>&6;
 
11286
    { echo "$as_me:$LINENO: result: $ksw_cv_qgl_test_result" >&5
 
11287
echo "${ECHO_T}$ksw_cv_qgl_test_result" >&6; };
3755
11288
    if test x"$ksw_cv_qgl_test_result" = "xfailure"; then
3756
 
      { echo "configure: error: Failed to link Qt with OpenGL support." 1>&2; exit 1; }
 
11289
      { { echo "$as_me:$LINENO: error: Failed to link Qt with OpenGL support." >&5
 
11290
echo "$as_me: error: Failed to link Qt with OpenGL support." >&2;}
 
11291
   { (exit 1); exit 1; }; }
3757
11292
    fi
3758
11293
 
3759
11294
    rm -f ksw_qgl_test.h \
3760
11295
          ksw_qgl_test.${ac_ext} ksw_qgl_test.o ksw_qgl_test \
3761
11296
          ksw_qgl_test_1.out ksw_qgl_test_2.out
3762
11297
 
3763
 
    
 
11298
 
3764
11299
 
3765
11300
    ac_ext=c
3766
 
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
3767
11301
ac_cpp='$CPP $CPPFLAGS'
3768
 
ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
3769
 
ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
3770
 
cross_compiling=$ac_cv_prog_cc_cross
3771
 
 
3772
 
 
3773
 
 
3774
 
  
3775
 
 
3776
 
  echo $ac_n "checking for x11 fonts""... $ac_c" 1>&6
3777
 
echo "configure:3778: checking for x11 fonts" >&5
3778
 
if eval "test \"`echo '$''{'ksw_cv_have_x11font'+set}'`\" = set"; then
3779
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11302
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
11303
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
11304
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
11305
 
 
11306
 
 
11307
 
 
11308
 
 
11309
 
 
11310
  { echo "$as_me:$LINENO: checking for x11 fonts" >&5
 
11311
echo $ECHO_N "checking for x11 fonts... $ECHO_C" >&6; }
 
11312
if test "${ksw_cv_have_x11font+set}" = set; then
 
11313
  echo $ECHO_N "(cached) $ECHO_C" >&6
3780
11314
else
3781
 
  
 
11315
 
3782
11316
    cat > ksw_have_x11font_test.c << EOF
3783
11317
#include <stdio.h>
3784
11318
#include <GL/glx.h>
3798
11332
   rm -f ksw_have_x11font*
3799
11333
 
3800
11334
    ksw_cv_have_x11font="$have_x11font"
3801
 
  
 
11335
 
3802
11336
fi
3803
 
 
3804
 
echo "$ac_t""$ksw_cv_have_x11font" 1>&6
 
11337
{ echo "$as_me:$LINENO: result: $ksw_cv_have_x11font" >&5
 
11338
echo "${ECHO_T}$ksw_cv_have_x11font" >&6; }
3805
11339
  have_x11font="$ksw_cv_have_x11font"
3806
11340
  if test x"$have_x11font" = "xyes"; then
3807
 
    cat >> confdefs.h <<\EOF
 
11341
    cat >>confdefs.h <<\_ACEOF
3808
11342
#define HAVE_XFONT  1
3809
 
EOF
 
11343
_ACEOF
3810
11344
 
3811
11345
  fi
3812
11346
 
3813
11347
 
3814
 
  
3815
 
 
3816
 
  echo $ac_n "checking for gettimeofday""... $ac_c" 1>&6
3817
 
echo "configure:3818: checking for gettimeofday" >&5
3818
 
if eval "test \"`echo '$''{'ksw_cv_have_gettimeofday'+set}'`\" = set"; then
3819
 
  echo $ac_n "(cached) $ac_c" 1>&6
 
11348
 
 
11349
 
 
11350
  { echo "$as_me:$LINENO: checking for gettimeofday" >&5
 
11351
echo $ECHO_N "checking for gettimeofday... $ECHO_C" >&6; }
 
11352
if test "${ksw_cv_have_gettimeofday+set}" = set; then
 
11353
  echo $ECHO_N "(cached) $ECHO_C" >&6
3820
11354
else
3821
 
  
 
11355
 
3822
11356
    cat > ksw_have_gettimeofday_test.c << EOF
3823
11357
#include <stdio.h>
3824
11358
#include <sys/time.h>
3839
11373
   rm -f ksw_have_gettimeofday*
3840
11374
 
3841
11375
    ksw_cv_have_gettimeofday="$have_gettimeofday"
3842
 
  
 
11376
 
3843
11377
fi
3844
 
 
3845
 
echo "$ac_t""$ksw_cv_have_gettimeofday" 1>&6
 
11378
{ echo "$as_me:$LINENO: result: $ksw_cv_have_gettimeofday" >&5
 
11379
echo "${ECHO_T}$ksw_cv_have_gettimeofday" >&6; }
3846
11380
  have_gettimeofday="$ksw_cv_have_gettimeofday"
3847
11381
  if test x"$have_gettimeofday" = "xyes"; then
3848
 
    cat >> confdefs.h <<\EOF
 
11382
    cat >>confdefs.h <<\_ACEOF
3849
11383
#define HAVE_GETTIMEOFDAY  1
3850
 
EOF
3851
 
 
3852
 
  fi
3853
 
 
3854
 
echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6
3855
 
echo "configure:3856: checking whether byte ordering is bigendian" >&5
3856
 
if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then
3857
 
  echo $ac_n "(cached) $ac_c" 1>&6
3858
 
else
3859
 
  ac_cv_c_bigendian=unknown
3860
 
# See if sys/param.h defines the BYTE_ORDER macro.
3861
 
cat > conftest.$ac_ext <<EOF
3862
 
#line 3863 "configure"
3863
 
#include "confdefs.h"
3864
 
#include <sys/types.h>
3865
 
#include <sys/param.h>
3866
 
int main() {
3867
 
 
3868
 
#if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3869
 
 bogus endian macros
3870
 
#endif
3871
 
; return 0; }
3872
 
EOF
3873
 
if { (eval echo configure:3874: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3874
 
  rm -rf conftest*
3875
 
  # It does; now see whether it defined to BIG_ENDIAN or not.
3876
 
cat > conftest.$ac_ext <<EOF
3877
 
#line 3878 "configure"
3878
 
#include "confdefs.h"
3879
 
#include <sys/types.h>
3880
 
#include <sys/param.h>
3881
 
int main() {
3882
 
 
3883
 
#if BYTE_ORDER != BIG_ENDIAN
3884
 
 not big endian
3885
 
#endif
3886
 
; return 0; }
3887
 
EOF
3888
 
if { (eval echo configure:3889: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3889
 
  rm -rf conftest*
3890
 
  ac_cv_c_bigendian=yes
3891
 
else
3892
 
  echo "configure: failed program was:" >&5
3893
 
  cat conftest.$ac_ext >&5
3894
 
  rm -rf conftest*
3895
 
  ac_cv_c_bigendian=no
3896
 
fi
3897
 
rm -f conftest*
3898
 
else
3899
 
  echo "configure: failed program was:" >&5
3900
 
  cat conftest.$ac_ext >&5
3901
 
fi
3902
 
rm -f conftest*
3903
 
if test $ac_cv_c_bigendian = unknown; then
3904
 
if test "$cross_compiling" = yes; then
3905
 
   echo $ac_n "cross-compiling... " 2>&6 
3906
 
else
3907
 
  cat > conftest.$ac_ext <<EOF
3908
 
#line 3909 "configure"
3909
 
#include "confdefs.h"
3910
 
main () {
3911
 
  /* Are we little or big endian?  From Harbison&Steele.  */
3912
 
  union
3913
 
  {
3914
 
    long l;
3915
 
    char c[sizeof (long)];
3916
 
  } u;
3917
 
  u.l = 1;
3918
 
  exit (u.c[sizeof (long) - 1] == 1);
3919
 
}
3920
 
EOF
3921
 
if { (eval echo configure:3922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3922
 
then
3923
 
  ac_cv_c_bigendian=no
3924
 
else
3925
 
  echo "configure: failed program was:" >&5
3926
 
  cat conftest.$ac_ext >&5
3927
 
  rm -fr conftest*
3928
 
  ac_cv_c_bigendian=yes
3929
 
fi
3930
 
rm -fr conftest*
3931
 
fi
3932
 
 
3933
 
fi
3934
 
fi
3935
 
 
3936
 
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3937
 
if test $ac_cv_c_bigendian = unknown; then
3938
 
echo $ac_n "checking to probe for byte ordering""... $ac_c" 1>&6
3939
 
echo "configure:3940: checking to probe for byte ordering" >&5
3940
 
 
3941
 
cat >conftest.c <<EOF
3942
 
short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3943
 
short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3944
 
void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
3945
 
short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3946
 
short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3947
 
void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
3948
 
int main() { _ascii (); _ebcdic (); return 0; }
3949
 
EOF
3950
 
 if test -f conftest.c ; then
3951
 
     if ${CC-cc} -c conftest.c -o conftest.o && test -f conftest.o ; then
3952
 
        if test `grep -l BIGenDianSyS conftest.o` ; then
3953
 
           echo $ac_n ' big endian probe OK, ' 1>&6
3954
 
           ac_cv_c_bigendian=yes
3955
 
        fi
3956
 
        if test `grep -l LiTTleEnDian conftest.o` ; then
3957
 
           echo $ac_n ' little endian probe OK, ' 1>&6
3958
 
           if test $ac_cv_c_bigendian = yes ; then
3959
 
            ac_cv_c_bigendian=unknown;
3960
 
           else
3961
 
            ac_cv_c_bigendian=no
3962
 
           fi
3963
 
        fi
3964
 
        echo $ac_n 'guessing bigendian ...  ' >&6
3965
 
     fi
3966
 
  fi
3967
 
echo "$ac_t""$ac_cv_c_bigendian" 1>&6
3968
 
fi
3969
 
if test $ac_cv_c_bigendian = yes; then
3970
 
  cat >> confdefs.h <<\EOF
3971
 
#define WORDS_BIGENDIAN 1
3972
 
EOF
3973
 
 
3974
 
  BYTEORDER=4321
3975
 
else
3976
 
  BYTEORDER=1234
3977
 
fi
3978
 
cat >> confdefs.h <<EOF
3979
 
#define BYTEORDER $BYTEORDER
3980
 
EOF
3981
 
 
3982
 
if test $ac_cv_c_bigendian = unknown; then
3983
 
  { echo "configure: error: unknown endianess - sorry" 1>&2; exit 1; }
3984
 
fi
 
11384
_ACEOF
 
11385
 
 
11386
  fi
3985
11387
 
3986
11388
 
3987
11389
if test x"$prefix" != xNONE; then
3988
 
cat >> confdefs.h <<EOF
3989
 
#define PREFIX "$prefix" 
3990
 
EOF
 
11390
cat >>confdefs.h <<_ACEOF
 
11391
#define PREFIX "$prefix"
 
11392
_ACEOF
3991
11393
 
3992
11394
else
3993
 
cat >> confdefs.h <<EOF
3994
 
#define PREFIX "$ac_default_prefix" 
3995
 
EOF
 
11395
cat >>confdefs.h <<_ACEOF
 
11396
#define PREFIX "$ac_default_prefix"
 
11397
_ACEOF
3996
11398
 
3997
11399
fi
3998
11400
 
4005
11407
 
4006
11408
if test x"${QT_LIBS}" = x; then
4007
11409
   echo ""
4008
 
   { echo "configure: error: Qt is required.  If you have Qt installed see --help for more options" 1>&2; exit 1; }
 
11410
   { { echo "$as_me:$LINENO: error: Qt is required.  If you have Qt installed see --help for more options" >&5
 
11411
echo "$as_me: error: Qt is required.  If you have Qt installed see --help for more options" >&2;}
 
11412
   { (exit 1); exit 1; }; }
4009
11413
   echo ""
4010
11414
fi
4011
11415
 
4012
11416
if test x"$have_GLU" != xyes; then
4013
11417
   echo ""
4014
 
   { echo "configure: error: OpenGL (with GLU) is required." 1>&2; exit 1; }
 
11418
   { { echo "$as_me:$LINENO: error: OpenGL (with GLU) is required." >&5
 
11419
echo "$as_me: error: OpenGL (with GLU) is required." >&2;}
 
11420
   { (exit 1); exit 1; }; }
4015
11421
   echo ""
4016
11422
fi
4017
11423
 
4018
11424
if test x"${ksw_cv_qgl_test_result}" = xfailure; then
4019
11425
   echo ""
4020
 
   { echo "configure: error: Qt with OpenGL is required." 1>&2; exit 1; }
 
11426
   { { echo "$as_me:$LINENO: error: Qt with OpenGL is required." >&5
 
11427
echo "$as_me: error: Qt with OpenGL is required." >&2;}
 
11428
   { (exit 1); exit 1; }; }
4021
11429
   echo ""
4022
11430
fi
4023
11431
 
4024
 
trap '' 1 2 15
4025
 
cat > confcache <<\EOF
 
11432
ac_config_files="$ac_config_files Makefile src/Makefile src/libmm3d/Makefile src/mm3dcore/Makefile src/depui/Makefile src/qtui/Makefile src/implui/Makefile src/tools/Makefile src/commands/Makefile src/pixmap/Makefile plugins/Makefile man/Makefile i18n/Makefile desktop/Makefile doc/Makefile doc/html/Makefile doc/html/olh_images/Makefile doc/html/olh_images/tools/Makefile"
 
11433
 
 
11434
cat >confcache <<\_ACEOF
4026
11435
# This file is a shell script that caches the results of configure
4027
11436
# tests run on this system so they can be shared between configure
4028
 
# scripts and configure runs.  It is not useful on other systems.
4029
 
# If it contains results you don't want to keep, you may remove or edit it.
4030
 
#
4031
 
# By default, configure uses ./config.cache as the cache file,
4032
 
# creating it if it does not exist already.  You can give configure
4033
 
# the --cache-file=FILE option to use a different cache file; that is
4034
 
# what configure does when it calls configure scripts in
4035
 
# subdirectories, so they share the cache.
4036
 
# Giving --cache-file=/dev/null disables caching, for debugging configure.
4037
 
# config.status only pays attention to the cache file if you give it the
4038
 
# --recheck option to rerun configure.
4039
 
#
4040
 
EOF
 
11437
# scripts and configure runs, see configure's option --config-cache.
 
11438
# It is not useful on other systems.  If it contains results you don't
 
11439
# want to keep, you may remove or edit it.
 
11440
#
 
11441
# config.status only pays attention to the cache file if you give it
 
11442
# the --recheck option to rerun configure.
 
11443
#
 
11444
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
11445
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
11446
# following values.
 
11447
 
 
11448
_ACEOF
 
11449
 
4041
11450
# The following way of writing the cache mishandles newlines in values,
4042
11451
# but we know of no workaround that is simple, portable, and efficient.
4043
 
# So, don't put newlines in cache variables' values.
 
11452
# So, we kill variables containing newlines.
4044
11453
# Ultrix sh set writes to stderr and can't be redirected directly,
4045
11454
# and sets the high bit in the cache file unless we assign to the vars.
4046
 
(set) 2>&1 |
4047
 
  case `(ac_space=' '; set | grep ac_space) 2>&1` in
4048
 
  *ac_space=\ *)
4049
 
    # `set' does not quote correctly, so add quotes (double-quote substitution
4050
 
    # turns \\\\ into \\, and sed turns \\ into \).
4051
 
    sed -n \
4052
 
      -e "s/'/'\\\\''/g" \
4053
 
      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4054
 
    ;;
4055
 
  *)
4056
 
    # `set' quotes correctly as required by POSIX, so do not add quotes.
4057
 
    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4058
 
    ;;
4059
 
  esac >> confcache
4060
 
if cmp -s $cache_file confcache; then
4061
 
  :
4062
 
else
4063
 
  if test -w $cache_file; then
4064
 
    echo "updating cache $cache_file"
4065
 
    cat confcache > $cache_file
 
11455
(
 
11456
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
11457
    eval ac_val=\$$ac_var
 
11458
    case $ac_val in #(
 
11459
    *${as_nl}*)
 
11460
      case $ac_var in #(
 
11461
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
11462
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
11463
      esac
 
11464
      case $ac_var in #(
 
11465
      _ | IFS | as_nl) ;; #(
 
11466
      *) $as_unset $ac_var ;;
 
11467
      esac ;;
 
11468
    esac
 
11469
  done
 
11470
 
 
11471
  (set) 2>&1 |
 
11472
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
11473
    *${as_nl}ac_space=\ *)
 
11474
      # `set' does not quote correctly, so add quotes (double-quote
 
11475
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
11476
      sed -n \
 
11477
        "s/'/'\\\\''/g;
 
11478
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
11479
      ;; #(
 
11480
    *)
 
11481
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
11482
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
11483
      ;;
 
11484
    esac |
 
11485
    sort
 
11486
) |
 
11487
  sed '
 
11488
     /^ac_cv_env_/b end
 
11489
     t clear
 
11490
     :clear
 
11491
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
11492
     t end
 
11493
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
11494
     :end' >>confcache
 
11495
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
11496
  if test -w "$cache_file"; then
 
11497
    test "x$cache_file" != "x/dev/null" &&
 
11498
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
11499
echo "$as_me: updating cache $cache_file" >&6;}
 
11500
    cat confcache >$cache_file
4066
11501
  else
4067
 
    echo "not updating unwritable cache $cache_file"
 
11502
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
11503
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4068
11504
  fi
4069
11505
fi
4070
11506
rm -f confcache
4071
11507
 
4072
 
trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4073
 
 
4074
11508
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4075
11509
# Let make expand exec_prefix.
4076
11510
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4077
11511
 
4078
 
# Any assignment to VPATH causes Sun make to only execute
4079
 
# the first set of double-colon rules, so remove it if not needed.
4080
 
# If there is a colon in the path, we need to keep it.
4081
 
if test "x$srcdir" = x.; then
4082
 
  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
4083
 
fi
4084
 
 
4085
 
trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4086
 
 
4087
11512
DEFS=-DHAVE_CONFIG_H
4088
11513
 
4089
 
# Without the "./", some shells look in PATH for config.status.
 
11514
ac_libobjs=
 
11515
ac_ltlibobjs=
 
11516
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
11517
  # 1. Remove the extension, and $U if already installed.
 
11518
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
11519
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
11520
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
11521
  #    will be set to the directory where LIBOBJS objects are built.
 
11522
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
11523
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
11524
done
 
11525
LIBOBJS=$ac_libobjs
 
11526
 
 
11527
LTLIBOBJS=$ac_ltlibobjs
 
11528
 
 
11529
 
 
11530
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
11531
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
11532
Usually this means the macro was only invoked conditionally." >&5
 
11533
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
11534
Usually this means the macro was only invoked conditionally." >&2;}
 
11535
   { (exit 1); exit 1; }; }
 
11536
fi
 
11537
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
11538
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
11539
Usually this means the macro was only invoked conditionally." >&5
 
11540
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
11541
Usually this means the macro was only invoked conditionally." >&2;}
 
11542
   { (exit 1); exit 1; }; }
 
11543
fi
 
11544
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
11545
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
11546
Usually this means the macro was only invoked conditionally." >&5
 
11547
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
11548
Usually this means the macro was only invoked conditionally." >&2;}
 
11549
   { (exit 1); exit 1; }; }
 
11550
fi
 
11551
 
4090
11552
: ${CONFIG_STATUS=./config.status}
4091
 
 
4092
 
echo creating $CONFIG_STATUS
4093
 
rm -f $CONFIG_STATUS
4094
 
cat > $CONFIG_STATUS <<EOF
4095
 
#! /bin/sh
4096
 
# Generated automatically by configure.
 
11553
ac_clean_files_save=$ac_clean_files
 
11554
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
11555
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
11556
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
11557
cat >$CONFIG_STATUS <<_ACEOF
 
11558
#! $SHELL
 
11559
# Generated by $as_me.
4097
11560
# Run this file to recreate the current configuration.
4098
 
# This directory was configured as follows,
4099
 
# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4100
 
#
4101
 
# $0 $ac_configure_args
4102
 
#
4103
11561
# Compiler output produced by configure, useful for debugging
4104
 
# configure, is in ./config.log if it exists.
4105
 
 
4106
 
ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4107
 
for ac_option
4108
 
do
4109
 
  case "\$ac_option" in
 
11562
# configure, is in config.log if it exists.
 
11563
 
 
11564
debug=false
 
11565
ac_cs_recheck=false
 
11566
ac_cs_silent=false
 
11567
SHELL=\${CONFIG_SHELL-$SHELL}
 
11568
_ACEOF
 
11569
 
 
11570
cat >>$CONFIG_STATUS <<\_ACEOF
 
11571
## --------------------- ##
 
11572
## M4sh Initialization.  ##
 
11573
## --------------------- ##
 
11574
 
 
11575
# Be more Bourne compatible
 
11576
DUALCASE=1; export DUALCASE # for MKS sh
 
11577
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
11578
  emulate sh
 
11579
  NULLCMD=:
 
11580
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
11581
  # is contrary to our usage.  Disable this feature.
 
11582
  alias -g '${1+"$@"}'='"$@"'
 
11583
  setopt NO_GLOB_SUBST
 
11584
else
 
11585
  case `(set -o) 2>/dev/null` in
 
11586
  *posix*) set -o posix ;;
 
11587
esac
 
11588
 
 
11589
fi
 
11590
 
 
11591
 
 
11592
 
 
11593
 
 
11594
# PATH needs CR
 
11595
# Avoid depending upon Character Ranges.
 
11596
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
11597
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
11598
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
11599
as_cr_digits='0123456789'
 
11600
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
11601
 
 
11602
# The user is always right.
 
11603
if test "${PATH_SEPARATOR+set}" != set; then
 
11604
  echo "#! /bin/sh" >conf$$.sh
 
11605
  echo  "exit 0"   >>conf$$.sh
 
11606
  chmod +x conf$$.sh
 
11607
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
11608
    PATH_SEPARATOR=';'
 
11609
  else
 
11610
    PATH_SEPARATOR=:
 
11611
  fi
 
11612
  rm -f conf$$.sh
 
11613
fi
 
11614
 
 
11615
# Support unset when possible.
 
11616
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
11617
  as_unset=unset
 
11618
else
 
11619
  as_unset=false
 
11620
fi
 
11621
 
 
11622
 
 
11623
# IFS
 
11624
# We need space, tab and new line, in precisely that order.  Quoting is
 
11625
# there to prevent editors from complaining about space-tab.
 
11626
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
11627
# splitting by setting IFS to empty value.)
 
11628
as_nl='
 
11629
'
 
11630
IFS=" ""        $as_nl"
 
11631
 
 
11632
# Find who we are.  Look in the path if we contain no directory separator.
 
11633
case $0 in
 
11634
  *[\\/]* ) as_myself=$0 ;;
 
11635
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
11636
for as_dir in $PATH
 
11637
do
 
11638
  IFS=$as_save_IFS
 
11639
  test -z "$as_dir" && as_dir=.
 
11640
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
11641
done
 
11642
IFS=$as_save_IFS
 
11643
 
 
11644
     ;;
 
11645
esac
 
11646
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
11647
# in which case we are not to be found in the path.
 
11648
if test "x$as_myself" = x; then
 
11649
  as_myself=$0
 
11650
fi
 
11651
if test ! -f "$as_myself"; then
 
11652
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
11653
  { (exit 1); exit 1; }
 
11654
fi
 
11655
 
 
11656
# Work around bugs in pre-3.0 UWIN ksh.
 
11657
for as_var in ENV MAIL MAILPATH
 
11658
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
11659
done
 
11660
PS1='$ '
 
11661
PS2='> '
 
11662
PS4='+ '
 
11663
 
 
11664
# NLS nuisances.
 
11665
for as_var in \
 
11666
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
11667
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
11668
  LC_TELEPHONE LC_TIME
 
11669
do
 
11670
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
11671
    eval $as_var=C; export $as_var
 
11672
  else
 
11673
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
11674
  fi
 
11675
done
 
11676
 
 
11677
# Required to use basename.
 
11678
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
11679
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
11680
  as_expr=expr
 
11681
else
 
11682
  as_expr=false
 
11683
fi
 
11684
 
 
11685
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
11686
  as_basename=basename
 
11687
else
 
11688
  as_basename=false
 
11689
fi
 
11690
 
 
11691
 
 
11692
# Name of the executable.
 
11693
as_me=`$as_basename -- "$0" ||
 
11694
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
11695
         X"$0" : 'X\(//\)$' \| \
 
11696
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
11697
echo X/"$0" |
 
11698
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
11699
            s//\1/
 
11700
            q
 
11701
          }
 
11702
          /^X\/\(\/\/\)$/{
 
11703
            s//\1/
 
11704
            q
 
11705
          }
 
11706
          /^X\/\(\/\).*/{
 
11707
            s//\1/
 
11708
            q
 
11709
          }
 
11710
          s/.*/./; q'`
 
11711
 
 
11712
# CDPATH.
 
11713
$as_unset CDPATH
 
11714
 
 
11715
 
 
11716
 
 
11717
  as_lineno_1=$LINENO
 
11718
  as_lineno_2=$LINENO
 
11719
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
11720
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
11721
 
 
11722
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
11723
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
11724
  # line-number line after each line using $LINENO; the second 'sed'
 
11725
  # does the real work.  The second script uses 'N' to pair each
 
11726
  # line-number line with the line containing $LINENO, and appends
 
11727
  # trailing '-' during substitution so that $LINENO is not a special
 
11728
  # case at line end.
 
11729
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
11730
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
11731
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
11732
  sed -n '
 
11733
    p
 
11734
    /[$]LINENO/=
 
11735
  ' <$as_myself |
 
11736
    sed '
 
11737
      s/[$]LINENO.*/&-/
 
11738
      t lineno
 
11739
      b
 
11740
      :lineno
 
11741
      N
 
11742
      :loop
 
11743
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
11744
      t loop
 
11745
      s/-\n.*//
 
11746
    ' >$as_me.lineno &&
 
11747
  chmod +x "$as_me.lineno" ||
 
11748
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
11749
   { (exit 1); exit 1; }; }
 
11750
 
 
11751
  # Don't try to exec as it changes $[0], causing all sort of problems
 
11752
  # (the dirname of $[0] is not the place where we might find the
 
11753
  # original and so on.  Autoconf is especially sensitive to this).
 
11754
  . "./$as_me.lineno"
 
11755
  # Exit status is that of the last command.
 
11756
  exit
 
11757
}
 
11758
 
 
11759
 
 
11760
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
11761
  as_dirname=dirname
 
11762
else
 
11763
  as_dirname=false
 
11764
fi
 
11765
 
 
11766
ECHO_C= ECHO_N= ECHO_T=
 
11767
case `echo -n x` in
 
11768
-n*)
 
11769
  case `echo 'x\c'` in
 
11770
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
11771
  *)   ECHO_C='\c';;
 
11772
  esac;;
 
11773
*)
 
11774
  ECHO_N='-n';;
 
11775
esac
 
11776
 
 
11777
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
11778
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
11779
  as_expr=expr
 
11780
else
 
11781
  as_expr=false
 
11782
fi
 
11783
 
 
11784
rm -f conf$$ conf$$.exe conf$$.file
 
11785
if test -d conf$$.dir; then
 
11786
  rm -f conf$$.dir/conf$$.file
 
11787
else
 
11788
  rm -f conf$$.dir
 
11789
  mkdir conf$$.dir
 
11790
fi
 
11791
echo >conf$$.file
 
11792
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
11793
  as_ln_s='ln -s'
 
11794
  # ... but there are two gotchas:
 
11795
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
11796
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
11797
  # In both cases, we have to default to `cp -p'.
 
11798
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
11799
    as_ln_s='cp -p'
 
11800
elif ln conf$$.file conf$$ 2>/dev/null; then
 
11801
  as_ln_s=ln
 
11802
else
 
11803
  as_ln_s='cp -p'
 
11804
fi
 
11805
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
11806
rmdir conf$$.dir 2>/dev/null
 
11807
 
 
11808
if mkdir -p . 2>/dev/null; then
 
11809
  as_mkdir_p=:
 
11810
else
 
11811
  test -d ./-p && rmdir ./-p
 
11812
  as_mkdir_p=false
 
11813
fi
 
11814
 
 
11815
if test -x / >/dev/null 2>&1; then
 
11816
  as_test_x='test -x'
 
11817
else
 
11818
  if ls -dL / >/dev/null 2>&1; then
 
11819
    as_ls_L_option=L
 
11820
  else
 
11821
    as_ls_L_option=
 
11822
  fi
 
11823
  as_test_x='
 
11824
    eval sh -c '\''
 
11825
      if test -d "$1"; then
 
11826
        test -d "$1/.";
 
11827
      else
 
11828
        case $1 in
 
11829
        -*)set "./$1";;
 
11830
        esac;
 
11831
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
11832
        ???[sx]*):;;*)false;;esac;fi
 
11833
    '\'' sh
 
11834
  '
 
11835
fi
 
11836
as_executable_p=$as_test_x
 
11837
 
 
11838
# Sed expression to map a string onto a valid CPP name.
 
11839
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
11840
 
 
11841
# Sed expression to map a string onto a valid variable name.
 
11842
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
11843
 
 
11844
 
 
11845
exec 6>&1
 
11846
 
 
11847
# Save the log message, to keep $[0] and so on meaningful, and to
 
11848
# report actual input values of CONFIG_FILES etc. instead of their
 
11849
# values after options handling.
 
11850
ac_log="
 
11851
This file was extended by mm3d $as_me 1.3.6, which was
 
11852
generated by GNU Autoconf 2.61.  Invocation command line was
 
11853
 
 
11854
  CONFIG_FILES    = $CONFIG_FILES
 
11855
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
11856
  CONFIG_LINKS    = $CONFIG_LINKS
 
11857
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
11858
  $ $0 $@
 
11859
 
 
11860
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
11861
"
 
11862
 
 
11863
_ACEOF
 
11864
 
 
11865
cat >>$CONFIG_STATUS <<_ACEOF
 
11866
# Files that config.status was made for.
 
11867
config_files="$ac_config_files"
 
11868
config_headers="$ac_config_headers"
 
11869
config_commands="$ac_config_commands"
 
11870
 
 
11871
_ACEOF
 
11872
 
 
11873
cat >>$CONFIG_STATUS <<\_ACEOF
 
11874
ac_cs_usage="\
 
11875
\`$as_me' instantiates files from templates according to the
 
11876
current configuration.
 
11877
 
 
11878
Usage: $0 [OPTIONS] [FILE]...
 
11879
 
 
11880
  -h, --help       print this help, then exit
 
11881
  -V, --version    print version number and configuration settings, then exit
 
11882
  -q, --quiet      do not print progress messages
 
11883
  -d, --debug      don't remove temporary files
 
11884
      --recheck    update $as_me by reconfiguring in the same conditions
 
11885
  --file=FILE[:TEMPLATE]
 
11886
                   instantiate the configuration file FILE
 
11887
  --header=FILE[:TEMPLATE]
 
11888
                   instantiate the configuration header FILE
 
11889
 
 
11890
Configuration files:
 
11891
$config_files
 
11892
 
 
11893
Configuration headers:
 
11894
$config_headers
 
11895
 
 
11896
Configuration commands:
 
11897
$config_commands
 
11898
 
 
11899
Report bugs to <bug-autoconf@gnu.org>."
 
11900
 
 
11901
_ACEOF
 
11902
cat >>$CONFIG_STATUS <<_ACEOF
 
11903
ac_cs_version="\\
 
11904
mm3d config.status 1.3.6
 
11905
configured by $0, generated by GNU Autoconf 2.61,
 
11906
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
11907
 
 
11908
Copyright (C) 2006 Free Software Foundation, Inc.
 
11909
This config.status script is free software; the Free Software Foundation
 
11910
gives unlimited permission to copy, distribute and modify it."
 
11911
 
 
11912
ac_pwd='$ac_pwd'
 
11913
srcdir='$srcdir'
 
11914
INSTALL='$INSTALL'
 
11915
_ACEOF
 
11916
 
 
11917
cat >>$CONFIG_STATUS <<\_ACEOF
 
11918
# If no file are specified by the user, then we need to provide default
 
11919
# value.  By we need to know if files were specified by the user.
 
11920
ac_need_defaults=:
 
11921
while test $# != 0
 
11922
do
 
11923
  case $1 in
 
11924
  --*=*)
 
11925
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
11926
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
11927
    ac_shift=:
 
11928
    ;;
 
11929
  *)
 
11930
    ac_option=$1
 
11931
    ac_optarg=$2
 
11932
    ac_shift=shift
 
11933
    ;;
 
11934
  esac
 
11935
 
 
11936
  case $ac_option in
 
11937
  # Handling of the options.
4110
11938
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4111
 
    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4112
 
    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4113
 
  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4114
 
    echo "$CONFIG_STATUS generated by autoconf version 2.13"
4115
 
    exit 0 ;;
4116
 
  -help | --help | --hel | --he | --h)
4117
 
    echo "\$ac_cs_usage"; exit 0 ;;
4118
 
  *) echo "\$ac_cs_usage"; exit 1 ;;
4119
 
  esac
4120
 
done
4121
 
 
4122
 
ac_given_srcdir=$srcdir
4123
 
ac_given_INSTALL="$INSTALL"
4124
 
 
4125
 
trap 'rm -fr `echo " Makefile 
4126
 
          src/Makefile
4127
 
          src/libmm3d/Makefile
4128
 
          src/mm3dcore/Makefile
4129
 
          src/depui/Makefile
4130
 
          src/qtui/Makefile
4131
 
          src/implui/Makefile
4132
 
          src/tools/Makefile
4133
 
          src/commands/Makefile
4134
 
          src/pixmap/Makefile
4135
 
          plugins/Makefile
4136
 
          i18n/Makefile
4137
 
          doc/Makefile
4138
 
          doc/html/Makefile
4139
 
          doc/html/olh_images/Makefile
4140
 
          doc/html/olh_images/tools/Makefile
4141
 
           config.h:config.h.in" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4142
 
EOF
4143
 
cat >> $CONFIG_STATUS <<EOF
4144
 
 
4145
 
# Protect against being on the right side of a sed subst in config.status.
4146
 
sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4147
 
 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4148
 
$ac_vpsub
 
11939
    ac_cs_recheck=: ;;
 
11940
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
11941
    echo "$ac_cs_version"; exit ;;
 
11942
  --debug | --debu | --deb | --de | --d | -d )
 
11943
    debug=: ;;
 
11944
  --file | --fil | --fi | --f )
 
11945
    $ac_shift
 
11946
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
11947
    ac_need_defaults=false;;
 
11948
  --header | --heade | --head | --hea )
 
11949
    $ac_shift
 
11950
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
 
11951
    ac_need_defaults=false;;
 
11952
  --he | --h)
 
11953
    # Conflict between --help and --header
 
11954
    { echo "$as_me: error: ambiguous option: $1
 
11955
Try \`$0 --help' for more information." >&2
 
11956
   { (exit 1); exit 1; }; };;
 
11957
  --help | --hel | -h )
 
11958
    echo "$ac_cs_usage"; exit ;;
 
11959
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
11960
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
11961
    ac_cs_silent=: ;;
 
11962
 
 
11963
  # This is an error.
 
11964
  -*) { echo "$as_me: error: unrecognized option: $1
 
11965
Try \`$0 --help' for more information." >&2
 
11966
   { (exit 1); exit 1; }; } ;;
 
11967
 
 
11968
  *) ac_config_targets="$ac_config_targets $1"
 
11969
     ac_need_defaults=false ;;
 
11970
 
 
11971
  esac
 
11972
  shift
 
11973
done
 
11974
 
 
11975
ac_configure_extra_args=
 
11976
 
 
11977
if $ac_cs_silent; then
 
11978
  exec 6>/dev/null
 
11979
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
11980
fi
 
11981
 
 
11982
_ACEOF
 
11983
cat >>$CONFIG_STATUS <<_ACEOF
 
11984
if \$ac_cs_recheck; then
 
11985
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
11986
  CONFIG_SHELL=$SHELL
 
11987
  export CONFIG_SHELL
 
11988
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
11989
fi
 
11990
 
 
11991
_ACEOF
 
11992
cat >>$CONFIG_STATUS <<\_ACEOF
 
11993
exec 5>>config.log
 
11994
{
 
11995
  echo
 
11996
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
11997
## Running $as_me. ##
 
11998
_ASBOX
 
11999
  echo "$ac_log"
 
12000
} >&5
 
12001
 
 
12002
_ACEOF
 
12003
cat >>$CONFIG_STATUS <<_ACEOF
 
12004
#
 
12005
# INIT-COMMANDS
 
12006
#
 
12007
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
12008
 
 
12009
_ACEOF
 
12010
 
 
12011
cat >>$CONFIG_STATUS <<\_ACEOF
 
12012
 
 
12013
# Handling of arguments.
 
12014
for ac_config_target in $ac_config_targets
 
12015
do
 
12016
  case $ac_config_target in
 
12017
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
 
12018
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
12019
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
12020
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
 
12021
    "src/libmm3d/Makefile") CONFIG_FILES="$CONFIG_FILES src/libmm3d/Makefile" ;;
 
12022
    "src/mm3dcore/Makefile") CONFIG_FILES="$CONFIG_FILES src/mm3dcore/Makefile" ;;
 
12023
    "src/depui/Makefile") CONFIG_FILES="$CONFIG_FILES src/depui/Makefile" ;;
 
12024
    "src/qtui/Makefile") CONFIG_FILES="$CONFIG_FILES src/qtui/Makefile" ;;
 
12025
    "src/implui/Makefile") CONFIG_FILES="$CONFIG_FILES src/implui/Makefile" ;;
 
12026
    "src/tools/Makefile") CONFIG_FILES="$CONFIG_FILES src/tools/Makefile" ;;
 
12027
    "src/commands/Makefile") CONFIG_FILES="$CONFIG_FILES src/commands/Makefile" ;;
 
12028
    "src/pixmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/pixmap/Makefile" ;;
 
12029
    "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;;
 
12030
    "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
 
12031
    "i18n/Makefile") CONFIG_FILES="$CONFIG_FILES i18n/Makefile" ;;
 
12032
    "desktop/Makefile") CONFIG_FILES="$CONFIG_FILES desktop/Makefile" ;;
 
12033
    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 
12034
    "doc/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/Makefile" ;;
 
12035
    "doc/html/olh_images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/olh_images/Makefile" ;;
 
12036
    "doc/html/olh_images/tools/Makefile") CONFIG_FILES="$CONFIG_FILES doc/html/olh_images/tools/Makefile" ;;
 
12037
 
 
12038
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
12039
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
12040
   { (exit 1); exit 1; }; };;
 
12041
  esac
 
12042
done
 
12043
 
 
12044
 
 
12045
# If the user did not use the arguments to specify the items to instantiate,
 
12046
# then the envvar interface is used.  Set only those that are not.
 
12047
# We use the long form for the default assignment because of an extremely
 
12048
# bizarre bug on SunOS 4.1.3.
 
12049
if $ac_need_defaults; then
 
12050
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
12051
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
 
12052
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
12053
fi
 
12054
 
 
12055
# Have a temporary directory for convenience.  Make it in the build tree
 
12056
# simply because there is no reason against having it here, and in addition,
 
12057
# creating and moving files from /tmp can sometimes cause problems.
 
12058
# Hook for its removal unless debugging.
 
12059
# Note that there is a small window in which the directory will not be cleaned:
 
12060
# after its creation but before its name has been assigned to `$tmp'.
 
12061
$debug ||
 
12062
{
 
12063
  tmp=
 
12064
  trap 'exit_status=$?
 
12065
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
12066
' 0
 
12067
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
12068
}
 
12069
# Create a (secure) tmp directory for tmp files.
 
12070
 
 
12071
{
 
12072
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
12073
  test -n "$tmp" && test -d "$tmp"
 
12074
}  ||
 
12075
{
 
12076
  tmp=./conf$$-$RANDOM
 
12077
  (umask 077 && mkdir "$tmp")
 
12078
} ||
 
12079
{
 
12080
   echo "$me: cannot create a temporary directory in ." >&2
 
12081
   { (exit 1); exit 1; }
 
12082
}
 
12083
 
 
12084
#
 
12085
# Set up the sed scripts for CONFIG_FILES section.
 
12086
#
 
12087
 
 
12088
# No need to generate the scripts if there are no CONFIG_FILES.
 
12089
# This happens for instance when ./config.status config.h
 
12090
if test -n "$CONFIG_FILES"; then
 
12091
 
 
12092
_ACEOF
 
12093
 
 
12094
 
 
12095
 
 
12096
ac_delim='%!_!# '
 
12097
for ac_last_try in false false false false false :; do
 
12098
  cat >conf$$subs.sed <<_ACEOF
 
12099
SHELL!$SHELL$ac_delim
 
12100
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
12101
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
12102
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
12103
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
12104
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
12105
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
12106
exec_prefix!$exec_prefix$ac_delim
 
12107
prefix!$prefix$ac_delim
 
12108
program_transform_name!$program_transform_name$ac_delim
 
12109
bindir!$bindir$ac_delim
 
12110
sbindir!$sbindir$ac_delim
 
12111
libexecdir!$libexecdir$ac_delim
 
12112
datarootdir!$datarootdir$ac_delim
 
12113
datadir!$datadir$ac_delim
 
12114
sysconfdir!$sysconfdir$ac_delim
 
12115
sharedstatedir!$sharedstatedir$ac_delim
 
12116
localstatedir!$localstatedir$ac_delim
 
12117
includedir!$includedir$ac_delim
 
12118
oldincludedir!$oldincludedir$ac_delim
 
12119
docdir!$docdir$ac_delim
 
12120
infodir!$infodir$ac_delim
 
12121
htmldir!$htmldir$ac_delim
 
12122
dvidir!$dvidir$ac_delim
 
12123
pdfdir!$pdfdir$ac_delim
 
12124
psdir!$psdir$ac_delim
 
12125
libdir!$libdir$ac_delim
 
12126
localedir!$localedir$ac_delim
 
12127
mandir!$mandir$ac_delim
 
12128
DEFS!$DEFS$ac_delim
 
12129
ECHO_C!$ECHO_C$ac_delim
 
12130
ECHO_N!$ECHO_N$ac_delim
 
12131
ECHO_T!$ECHO_T$ac_delim
 
12132
LIBS!$LIBS$ac_delim
 
12133
build_alias!$build_alias$ac_delim
 
12134
host_alias!$host_alias$ac_delim
 
12135
target_alias!$target_alias$ac_delim
 
12136
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
12137
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
12138
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
12139
CYGPATH_W!$CYGPATH_W$ac_delim
 
12140
PACKAGE!$PACKAGE$ac_delim
 
12141
VERSION!$VERSION$ac_delim
 
12142
ACLOCAL!$ACLOCAL$ac_delim
 
12143
AUTOCONF!$AUTOCONF$ac_delim
 
12144
AUTOMAKE!$AUTOMAKE$ac_delim
 
12145
AUTOHEADER!$AUTOHEADER$ac_delim
 
12146
MAKEINFO!$MAKEINFO$ac_delim
 
12147
install_sh!$install_sh$ac_delim
 
12148
STRIP!$STRIP$ac_delim
 
12149
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
12150
mkdir_p!$mkdir_p$ac_delim
 
12151
AWK!$AWK$ac_delim
 
12152
SET_MAKE!$SET_MAKE$ac_delim
 
12153
am__leading_dot!$am__leading_dot$ac_delim
 
12154
AMTAR!$AMTAR$ac_delim
 
12155
am__tar!$am__tar$ac_delim
 
12156
am__untar!$am__untar$ac_delim
 
12157
CXX!$CXX$ac_delim
 
12158
CXXFLAGS!$CXXFLAGS$ac_delim
 
12159
LDFLAGS!$LDFLAGS$ac_delim
 
12160
CPPFLAGS!$CPPFLAGS$ac_delim
 
12161
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
12162
EXEEXT!$EXEEXT$ac_delim
 
12163
OBJEXT!$OBJEXT$ac_delim
 
12164
DEPDIR!$DEPDIR$ac_delim
 
12165
am__include!$am__include$ac_delim
 
12166
am__quote!$am__quote$ac_delim
 
12167
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
12168
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
12169
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
12170
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
12171
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
12172
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
12173
CC!$CC$ac_delim
 
12174
CFLAGS!$CFLAGS$ac_delim
 
12175
ac_ct_CC!$ac_ct_CC$ac_delim
 
12176
CCDEPMODE!$CCDEPMODE$ac_delim
 
12177
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
12178
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
12179
RANLIB!$RANLIB$ac_delim
 
12180
CPP!$CPP$ac_delim
 
12181
GREP!$GREP$ac_delim
 
12182
EGREP!$EGREP$ac_delim
 
12183
LIBOBJS!$LIBOBJS$ac_delim
 
12184
LUA_CCFLAGS!$LUA_CCFLAGS$ac_delim
 
12185
LUA_DIR!$LUA_DIR$ac_delim
 
12186
LUA_LIBS!$LUA_LIBS$ac_delim
 
12187
LUALIB_CCFLAGS!$LUALIB_CCFLAGS$ac_delim
 
12188
LUALIB_DIR!$LUALIB_DIR$ac_delim
 
12189
LUALIB_LIBS!$LUALIB_LIBS$ac_delim
 
12190
DLOPEN_LIBS!$DLOPEN_LIBS$ac_delim
 
12191
XMKMF!$XMKMF$ac_delim
 
12192
X_CFLAGS!$X_CFLAGS$ac_delim
 
12193
X_PRE_LIBS!$X_PRE_LIBS$ac_delim
 
12194
X_LIBS!$X_LIBS$ac_delim
 
12195
X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
 
12196
_ACEOF
 
12197
 
 
12198
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
12199
    break
 
12200
  elif $ac_last_try; then
 
12201
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
12202
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
12203
   { (exit 1); exit 1; }; }
 
12204
  else
 
12205
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
12206
  fi
 
12207
done
 
12208
 
 
12209
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
12210
if test -n "$ac_eof"; then
 
12211
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
12212
  ac_eof=`expr $ac_eof + 1`
 
12213
fi
 
12214
 
 
12215
cat >>$CONFIG_STATUS <<_ACEOF
 
12216
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
12217
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
12218
_ACEOF
 
12219
sed '
 
12220
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
12221
s/^/s,@/; s/!/@,|#_!!_#|/
 
12222
:n
 
12223
t n
 
12224
s/'"$ac_delim"'$/,g/; t
 
12225
s/$/\\/; p
 
12226
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
12227
' >>$CONFIG_STATUS <conf$$subs.sed
 
12228
rm -f conf$$subs.sed
 
12229
cat >>$CONFIG_STATUS <<_ACEOF
 
12230
CEOF$ac_eof
 
12231
_ACEOF
 
12232
 
 
12233
 
 
12234
ac_delim='%!_!# '
 
12235
for ac_last_try in false false false false false :; do
 
12236
  cat >conf$$subs.sed <<_ACEOF
 
12237
GL_CFLAGS!$GL_CFLAGS$ac_delim
 
12238
GL_LIBS!$GL_LIBS$ac_delim
 
12239
HAVE_QT4!$HAVE_QT4$ac_delim
 
12240
QT_CXXFLAGS!$QT_CXXFLAGS$ac_delim
 
12241
QT_DIR!$QT_DIR$ac_delim
 
12242
QT_LIBS!$QT_LIBS$ac_delim
 
12243
QT_UIC!$QT_UIC$ac_delim
 
12244
QT_MOC!$QT_MOC$ac_delim
 
12245
QGL_LIBS!$QGL_LIBS$ac_delim
 
12246
DLOPEN_LIBS!$DLOPEN_LIBS$ac_delim
 
12247
BYTEORDER!$BYTEORDER$ac_delim
 
12248
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
12249
_ACEOF
 
12250
 
 
12251
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 12; then
 
12252
    break
 
12253
  elif $ac_last_try; then
 
12254
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
12255
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
12256
   { (exit 1); exit 1; }; }
 
12257
  else
 
12258
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
12259
  fi
 
12260
done
 
12261
 
 
12262
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
12263
if test -n "$ac_eof"; then
 
12264
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
12265
  ac_eof=`expr $ac_eof + 1`
 
12266
fi
 
12267
 
 
12268
cat >>$CONFIG_STATUS <<_ACEOF
 
12269
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
12270
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
12271
_ACEOF
 
12272
sed '
 
12273
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
12274
s/^/s,@/; s/!/@,|#_!!_#|/
 
12275
:n
 
12276
t n
 
12277
s/'"$ac_delim"'$/,g/; t
 
12278
s/$/\\/; p
 
12279
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
12280
' >>$CONFIG_STATUS <conf$$subs.sed
 
12281
rm -f conf$$subs.sed
 
12282
cat >>$CONFIG_STATUS <<_ACEOF
 
12283
:end
 
12284
s/|#_!!_#|//g
 
12285
CEOF$ac_eof
 
12286
_ACEOF
 
12287
 
 
12288
 
 
12289
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
12290
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
12291
# trailing colons and then remove the whole line if VPATH becomes empty
 
12292
# (actually we leave an empty line to preserve line numbers).
 
12293
if test "x$srcdir" = x.; then
 
12294
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
12295
s/:*\$(srcdir):*/:/
 
12296
s/:*\${srcdir}:*/:/
 
12297
s/:*@srcdir@:*/:/
 
12298
s/^\([^=]*=[     ]*\):*/\1/
 
12299
s/:*$//
 
12300
s/^[^=]*=[       ]*$//
 
12301
}'
 
12302
fi
 
12303
 
 
12304
cat >>$CONFIG_STATUS <<\_ACEOF
 
12305
fi # test -n "$CONFIG_FILES"
 
12306
 
 
12307
 
 
12308
for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
 
12309
do
 
12310
  case $ac_tag in
 
12311
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
12312
  esac
 
12313
  case $ac_mode$ac_tag in
 
12314
  :[FHL]*:*);;
 
12315
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
12316
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
12317
   { (exit 1); exit 1; }; };;
 
12318
  :[FH]-) ac_tag=-:-;;
 
12319
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
12320
  esac
 
12321
  ac_save_IFS=$IFS
 
12322
  IFS=:
 
12323
  set x $ac_tag
 
12324
  IFS=$ac_save_IFS
 
12325
  shift
 
12326
  ac_file=$1
 
12327
  shift
 
12328
 
 
12329
  case $ac_mode in
 
12330
  :L) ac_source=$1;;
 
12331
  :[FH])
 
12332
    ac_file_inputs=
 
12333
    for ac_f
 
12334
    do
 
12335
      case $ac_f in
 
12336
      -) ac_f="$tmp/stdin";;
 
12337
      *) # Look for the file first in the build tree, then in the source tree
 
12338
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
12339
         # because $ac_f cannot contain `:'.
 
12340
         test -f "$ac_f" ||
 
12341
           case $ac_f in
 
12342
           [\\/$]*) false;;
 
12343
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
12344
           esac ||
 
12345
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
12346
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
12347
   { (exit 1); exit 1; }; };;
 
12348
      esac
 
12349
      ac_file_inputs="$ac_file_inputs $ac_f"
 
12350
    done
 
12351
 
 
12352
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
12353
    # use $as_me), people would be surprised to read:
 
12354
    #    /* config.h.  Generated by config.status.  */
 
12355
    configure_input="Generated from "`IFS=:
 
12356
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
12357
    if test x"$ac_file" != x-; then
 
12358
      configure_input="$ac_file.  $configure_input"
 
12359
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
12360
echo "$as_me: creating $ac_file" >&6;}
 
12361
    fi
 
12362
 
 
12363
    case $ac_tag in
 
12364
    *:-:* | *:-) cat >"$tmp/stdin";;
 
12365
    esac
 
12366
    ;;
 
12367
  esac
 
12368
 
 
12369
  ac_dir=`$as_dirname -- "$ac_file" ||
 
12370
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12371
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
12372
         X"$ac_file" : 'X\(//\)$' \| \
 
12373
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
12374
echo X"$ac_file" |
 
12375
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12376
            s//\1/
 
12377
            q
 
12378
          }
 
12379
          /^X\(\/\/\)[^/].*/{
 
12380
            s//\1/
 
12381
            q
 
12382
          }
 
12383
          /^X\(\/\/\)$/{
 
12384
            s//\1/
 
12385
            q
 
12386
          }
 
12387
          /^X\(\/\).*/{
 
12388
            s//\1/
 
12389
            q
 
12390
          }
 
12391
          s/.*/./; q'`
 
12392
  { as_dir="$ac_dir"
 
12393
  case $as_dir in #(
 
12394
  -*) as_dir=./$as_dir;;
 
12395
  esac
 
12396
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
12397
    as_dirs=
 
12398
    while :; do
 
12399
      case $as_dir in #(
 
12400
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
12401
      *) as_qdir=$as_dir;;
 
12402
      esac
 
12403
      as_dirs="'$as_qdir' $as_dirs"
 
12404
      as_dir=`$as_dirname -- "$as_dir" ||
 
12405
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12406
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
12407
         X"$as_dir" : 'X\(//\)$' \| \
 
12408
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
12409
echo X"$as_dir" |
 
12410
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12411
            s//\1/
 
12412
            q
 
12413
          }
 
12414
          /^X\(\/\/\)[^/].*/{
 
12415
            s//\1/
 
12416
            q
 
12417
          }
 
12418
          /^X\(\/\/\)$/{
 
12419
            s//\1/
 
12420
            q
 
12421
          }
 
12422
          /^X\(\/\).*/{
 
12423
            s//\1/
 
12424
            q
 
12425
          }
 
12426
          s/.*/./; q'`
 
12427
      test -d "$as_dir" && break
 
12428
    done
 
12429
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
12430
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
12431
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
12432
   { (exit 1); exit 1; }; }; }
 
12433
  ac_builddir=.
 
12434
 
 
12435
case "$ac_dir" in
 
12436
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
12437
*)
 
12438
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
12439
  # A ".." for each directory in $ac_dir_suffix.
 
12440
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
12441
  case $ac_top_builddir_sub in
 
12442
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
12443
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
12444
  esac ;;
 
12445
esac
 
12446
ac_abs_top_builddir=$ac_pwd
 
12447
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
12448
# for backward compatibility:
 
12449
ac_top_builddir=$ac_top_build_prefix
 
12450
 
 
12451
case $srcdir in
 
12452
  .)  # We are building in place.
 
12453
    ac_srcdir=.
 
12454
    ac_top_srcdir=$ac_top_builddir_sub
 
12455
    ac_abs_top_srcdir=$ac_pwd ;;
 
12456
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
12457
    ac_srcdir=$srcdir$ac_dir_suffix;
 
12458
    ac_top_srcdir=$srcdir
 
12459
    ac_abs_top_srcdir=$srcdir ;;
 
12460
  *) # Relative name.
 
12461
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
12462
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
12463
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
12464
esac
 
12465
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
12466
 
 
12467
 
 
12468
  case $ac_mode in
 
12469
  :F)
 
12470
  #
 
12471
  # CONFIG_FILE
 
12472
  #
 
12473
 
 
12474
  case $INSTALL in
 
12475
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
12476
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
12477
  esac
 
12478
_ACEOF
 
12479
 
 
12480
cat >>$CONFIG_STATUS <<\_ACEOF
 
12481
# If the template does not know about datarootdir, expand it.
 
12482
# FIXME: This hack should be removed a few years after 2.60.
 
12483
ac_datarootdir_hack=; ac_datarootdir_seen=
 
12484
 
 
12485
case `sed -n '/datarootdir/ {
 
12486
  p
 
12487
  q
 
12488
}
 
12489
/@datadir@/p
 
12490
/@docdir@/p
 
12491
/@infodir@/p
 
12492
/@localedir@/p
 
12493
/@mandir@/p
 
12494
' $ac_file_inputs` in
 
12495
*datarootdir*) ac_datarootdir_seen=yes;;
 
12496
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
12497
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
12498
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
12499
_ACEOF
 
12500
cat >>$CONFIG_STATUS <<_ACEOF
 
12501
  ac_datarootdir_hack='
 
12502
  s&@datadir@&$datadir&g
 
12503
  s&@docdir@&$docdir&g
 
12504
  s&@infodir@&$infodir&g
 
12505
  s&@localedir@&$localedir&g
 
12506
  s&@mandir@&$mandir&g
 
12507
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
12508
esac
 
12509
_ACEOF
 
12510
 
 
12511
# Neutralize VPATH when `$srcdir' = `.'.
 
12512
# Shell code in configure.ac might set extrasub.
 
12513
# FIXME: do we really want to maintain this feature?
 
12514
cat >>$CONFIG_STATUS <<_ACEOF
 
12515
  sed "$ac_vpsub
4149
12516
$extrasub
4150
 
s%@SHELL@%$SHELL%g
4151
 
s%@CFLAGS@%$CFLAGS%g
4152
 
s%@CPPFLAGS@%$CPPFLAGS%g
4153
 
s%@CXXFLAGS@%$CXXFLAGS%g
4154
 
s%@FFLAGS@%$FFLAGS%g
4155
 
s%@DEFS@%$DEFS%g
4156
 
s%@LDFLAGS@%$LDFLAGS%g
4157
 
s%@LIBS@%$LIBS%g
4158
 
s%@exec_prefix@%$exec_prefix%g
4159
 
s%@prefix@%$prefix%g
4160
 
s%@program_transform_name@%$program_transform_name%g
4161
 
s%@bindir@%$bindir%g
4162
 
s%@sbindir@%$sbindir%g
4163
 
s%@libexecdir@%$libexecdir%g
4164
 
s%@datadir@%$datadir%g
4165
 
s%@sysconfdir@%$sysconfdir%g
4166
 
s%@sharedstatedir@%$sharedstatedir%g
4167
 
s%@localstatedir@%$localstatedir%g
4168
 
s%@libdir@%$libdir%g
4169
 
s%@includedir@%$includedir%g
4170
 
s%@oldincludedir@%$oldincludedir%g
4171
 
s%@infodir@%$infodir%g
4172
 
s%@mandir@%$mandir%g
4173
 
s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4174
 
s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4175
 
s%@INSTALL_DATA@%$INSTALL_DATA%g
4176
 
s%@PACKAGE@%$PACKAGE%g
4177
 
s%@VERSION@%$VERSION%g
4178
 
s%@ACLOCAL@%$ACLOCAL%g
4179
 
s%@AUTOCONF@%$AUTOCONF%g
4180
 
s%@AUTOMAKE@%$AUTOMAKE%g
4181
 
s%@AUTOHEADER@%$AUTOHEADER%g
4182
 
s%@MAKEINFO@%$MAKEINFO%g
4183
 
s%@SET_MAKE@%$SET_MAKE%g
4184
 
s%@CC@%$CC%g
4185
 
s%@CXX@%$CXX%g
4186
 
s%@RANLIB@%$RANLIB%g
4187
 
s%@LUA_CCFLAGS@%$LUA_CCFLAGS%g
4188
 
s%@LUA_DIR@%$LUA_DIR%g
4189
 
s%@LUA_LIBS@%$LUA_LIBS%g
4190
 
s%@LUALIB_CCFLAGS@%$LUALIB_CCFLAGS%g
4191
 
s%@LUALIB_DIR@%$LUALIB_DIR%g
4192
 
s%@LUALIB_LIBS@%$LUALIB_LIBS%g
4193
 
s%@DLOPEN_LIBS @%$DLOPEN_LIBS %g
4194
 
s%@CPP@%$CPP%g
4195
 
s%@X_CFLAGS@%$X_CFLAGS%g
4196
 
s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4197
 
s%@X_LIBS@%$X_LIBS%g
4198
 
s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4199
 
s%@GL_CFLAGS@%$GL_CFLAGS%g
4200
 
s%@GL_LIBS@%$GL_LIBS%g
4201
 
s%@HAVE_QT4@%$HAVE_QT4%g
4202
 
s%@QT_CXXFLAGS@%$QT_CXXFLAGS%g
4203
 
s%@QT_DIR@%$QT_DIR%g
4204
 
s%@QT_LIBS@%$QT_LIBS%g
4205
 
s%@QT_UIC@%$QT_UIC%g
4206
 
s%@QT_MOC@%$QT_MOC%g
4207
 
s%@QGL_LIBS@%$QGL_LIBS%g
4208
 
s%@DLOPEN_LIBS@%$DLOPEN_LIBS%g
4209
 
s%@BYTEORDER@%$BYTEORDER%g
4210
 
 
4211
 
CEOF
4212
 
EOF
4213
 
 
4214
 
cat >> $CONFIG_STATUS <<\EOF
4215
 
 
4216
 
# Split the substitutions into bite-sized pieces for seds with
4217
 
# small command number limits, like on Digital OSF/1 and HP-UX.
4218
 
ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4219
 
ac_file=1 # Number of current file.
4220
 
ac_beg=1 # First line for current file.
4221
 
ac_end=$ac_max_sed_cmds # Line after last line for current file.
4222
 
ac_more_lines=:
4223
 
ac_sed_cmds=""
4224
 
while $ac_more_lines; do
4225
 
  if test $ac_beg -gt 1; then
4226
 
    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4227
 
  else
4228
 
    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4229
 
  fi
4230
 
  if test ! -s conftest.s$ac_file; then
4231
 
    ac_more_lines=false
4232
 
    rm -f conftest.s$ac_file
4233
 
  else
4234
 
    if test -z "$ac_sed_cmds"; then
4235
 
      ac_sed_cmds="sed -f conftest.s$ac_file"
4236
 
    else
4237
 
      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4238
 
    fi
4239
 
    ac_file=`expr $ac_file + 1`
4240
 
    ac_beg=$ac_end
4241
 
    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4242
 
  fi
4243
 
done
4244
 
if test -z "$ac_sed_cmds"; then
4245
 
  ac_sed_cmds=cat
4246
 
fi
4247
 
EOF
4248
 
 
4249
 
cat >> $CONFIG_STATUS <<EOF
4250
 
 
4251
 
CONFIG_FILES=\${CONFIG_FILES-"Makefile 
4252
 
          src/Makefile
4253
 
          src/libmm3d/Makefile
4254
 
          src/mm3dcore/Makefile
4255
 
          src/depui/Makefile
4256
 
          src/qtui/Makefile
4257
 
          src/implui/Makefile
4258
 
          src/tools/Makefile
4259
 
          src/commands/Makefile
4260
 
          src/pixmap/Makefile
4261
 
          plugins/Makefile
4262
 
          i18n/Makefile
4263
 
          doc/Makefile
4264
 
          doc/html/Makefile
4265
 
          doc/html/olh_images/Makefile
4266
 
          doc/html/olh_images/tools/Makefile
4267
 
          "}
4268
 
EOF
4269
 
cat >> $CONFIG_STATUS <<\EOF
4270
 
for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4271
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4272
 
  case "$ac_file" in
4273
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4274
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4275
 
  *) ac_file_in="${ac_file}.in" ;;
4276
 
  esac
4277
 
 
4278
 
  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4279
 
 
4280
 
  # Remove last slash and all that follows it.  Not all systems have dirname.
4281
 
  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4282
 
  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4283
 
    # The file is in a subdirectory.
4284
 
    test ! -d "$ac_dir" && mkdir "$ac_dir"
4285
 
    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4286
 
    # A "../" for each directory in $ac_dir_suffix.
4287
 
    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4288
 
  else
4289
 
    ac_dir_suffix= ac_dots=
4290
 
  fi
4291
 
 
4292
 
  case "$ac_given_srcdir" in
4293
 
  .)  srcdir=.
4294
 
      if test -z "$ac_dots"; then top_srcdir=.
4295
 
      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4296
 
  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4297
 
  *) # Relative path.
4298
 
    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4299
 
    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4300
 
  esac
4301
 
 
4302
 
  case "$ac_given_INSTALL" in
4303
 
  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4304
 
  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4305
 
  esac
4306
 
 
4307
 
  echo creating "$ac_file"
4308
 
  rm -f "$ac_file"
4309
 
  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4310
 
  case "$ac_file" in
4311
 
  *Makefile*) ac_comsub="1i\\
4312
 
# $configure_input" ;;
4313
 
  *) ac_comsub= ;;
4314
 
  esac
4315
 
 
4316
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4317
 
  sed -e "$ac_comsub
4318
 
s%@configure_input@%$configure_input%g
4319
 
s%@srcdir@%$srcdir%g
4320
 
s%@top_srcdir@%$top_srcdir%g
4321
 
s%@INSTALL@%$INSTALL%g
4322
 
" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4323
 
fi; done
4324
 
rm -f conftest.s*
4325
 
 
4326
 
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4327
 
# NAME is the cpp macro being defined and VALUE is the value it is being given.
4328
 
#
4329
 
# ac_d sets the value in "#define NAME VALUE" lines.
4330
 
ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
4331
 
ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
4332
 
ac_dC='\3'
4333
 
ac_dD='%g'
4334
 
# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4335
 
ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4336
 
ac_uB='\([      ]\)%\1#\2define\3'
4337
 
ac_uC=' '
4338
 
ac_uD='\4%g'
4339
 
# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4340
 
ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
4341
 
ac_eB='$%\1#\2define\3'
4342
 
ac_eC=' '
4343
 
ac_eD='%g'
4344
 
 
4345
 
if test "${CONFIG_HEADERS+set}" != set; then
4346
 
EOF
4347
 
cat >> $CONFIG_STATUS <<EOF
4348
 
  CONFIG_HEADERS="config.h:config.h.in"
4349
 
EOF
4350
 
cat >> $CONFIG_STATUS <<\EOF
4351
 
fi
4352
 
for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4353
 
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4354
 
  case "$ac_file" in
4355
 
  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4356
 
       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4357
 
  *) ac_file_in="${ac_file}.in" ;;
4358
 
  esac
4359
 
 
4360
 
  echo creating $ac_file
4361
 
 
4362
 
  rm -f conftest.frag conftest.in conftest.out
4363
 
  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4364
 
  cat $ac_file_inputs > conftest.in
4365
 
 
4366
 
EOF
4367
 
 
4368
 
# Transform confdefs.h into a sed script conftest.vals that substitutes
4369
 
# the proper values into config.h.in to produce config.h.  And first:
4370
 
# Protect against being on the right side of a sed subst in config.status.
4371
 
# Protect against being in an unquoted here document in config.status.
4372
 
rm -f conftest.vals
4373
 
cat > conftest.hdr <<\EOF
4374
 
s/[\\&%]/\\&/g
4375
 
s%[\\$`]%\\&%g
4376
 
s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4377
 
s%ac_d%ac_u%gp
4378
 
s%ac_u%ac_e%gp
4379
 
EOF
4380
 
sed -n -f conftest.hdr confdefs.h > conftest.vals
4381
 
rm -f conftest.hdr
4382
 
 
4383
 
# This sed command replaces #undef with comments.  This is necessary, for
 
12517
_ACEOF
 
12518
cat >>$CONFIG_STATUS <<\_ACEOF
 
12519
:t
 
12520
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
12521
s&@configure_input@&$configure_input&;t t
 
12522
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
12523
s&@srcdir@&$ac_srcdir&;t t
 
12524
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
12525
s&@top_srcdir@&$ac_top_srcdir&;t t
 
12526
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
12527
s&@builddir@&$ac_builddir&;t t
 
12528
s&@abs_builddir@&$ac_abs_builddir&;t t
 
12529
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
12530
s&@INSTALL@&$ac_INSTALL&;t t
 
12531
$ac_datarootdir_hack
 
12532
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
12533
 
 
12534
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
12535
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
12536
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
12537
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
12538
which seems to be undefined.  Please make sure it is defined." >&5
 
12539
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
12540
which seems to be undefined.  Please make sure it is defined." >&2;}
 
12541
 
 
12542
  rm -f "$tmp/stdin"
 
12543
  case $ac_file in
 
12544
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
12545
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
12546
  esac
 
12547
 ;;
 
12548
  :H)
 
12549
  #
 
12550
  # CONFIG_HEADER
 
12551
  #
 
12552
_ACEOF
 
12553
 
 
12554
# Transform confdefs.h into a sed script `conftest.defines', that
 
12555
# substitutes the proper values into config.h.in to produce config.h.
 
12556
rm -f conftest.defines conftest.tail
 
12557
# First, append a space to every undef/define line, to ease matching.
 
12558
echo 's/$/ /' >conftest.defines
 
12559
# Then, protect against being on the right side of a sed subst, or in
 
12560
# an unquoted here document, in config.status.  If some macros were
 
12561
# called several times there might be several #defines for the same
 
12562
# symbol, which is useless.  But do not sort them, since the last
 
12563
# AC_DEFINE must be honored.
 
12564
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
 
12565
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
 
12566
# NAME is the cpp macro being defined, VALUE is the value it is being given.
 
12567
# PARAMS is the parameter list in the macro definition--in most cases, it's
 
12568
# just an empty string.
 
12569
ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
 
12570
ac_dB='\\)[      (].*,\\1define\\2'
 
12571
ac_dC=' '
 
12572
ac_dD=' ,'
 
12573
 
 
12574
uniq confdefs.h |
 
12575
  sed -n '
 
12576
        t rset
 
12577
        :rset
 
12578
        s/^[     ]*#[    ]*define[       ][      ]*//
 
12579
        t ok
 
12580
        d
 
12581
        :ok
 
12582
        s/[\\&,]/\\&/g
 
12583
        s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
 
12584
        s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
 
12585
  ' >>conftest.defines
 
12586
 
 
12587
# Remove the space that was appended to ease matching.
 
12588
# Then replace #undef with comments.  This is necessary, for
4384
12589
# example, in the case of _POSIX_SOURCE, which is predefined and required
4385
12590
# on some systems where configure will not decide to define it.
4386
 
cat >> conftest.vals <<\EOF
4387
 
s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4388
 
EOF
4389
 
 
4390
 
# Break up conftest.vals because some shells have a limit on
4391
 
# the size of here documents, and old seds have small limits too.
4392
 
 
4393
 
rm -f conftest.tail
 
12591
# (The regexp can be short, since the line contains either #define or #undef.)
 
12592
echo 's/ $//
 
12593
s,^[     #]*u.*,/* & */,' >>conftest.defines
 
12594
 
 
12595
# Break up conftest.defines:
 
12596
ac_max_sed_lines=50
 
12597
 
 
12598
# First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
 
12599
# Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
 
12600
# Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
 
12601
# et cetera.
 
12602
ac_in='$ac_file_inputs'
 
12603
ac_out='"$tmp/out1"'
 
12604
ac_nxt='"$tmp/out2"'
 
12605
 
4394
12606
while :
4395
12607
do
4396
 
  ac_lines=`grep -c . conftest.vals`
4397
 
  # grep -c gives empty output for an empty file on some AIX systems.
4398
 
  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4399
 
  # Write a limited-size here document to conftest.frag.
4400
 
  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4401
 
  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
 
12608
  # Write a here document:
 
12609
    cat >>$CONFIG_STATUS <<_ACEOF
 
12610
    # First, check the format of the line:
 
12611
    cat >"\$tmp/defines.sed" <<\\CEOF
 
12612
/^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
 
12613
/^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
 
12614
b
 
12615
:def
 
12616
_ACEOF
 
12617
  sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
4402
12618
  echo 'CEOF
4403
 
  sed -f conftest.frag conftest.in > conftest.out
4404
 
  rm -f conftest.in
4405
 
  mv conftest.out conftest.in
4406
 
' >> $CONFIG_STATUS
4407
 
  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4408
 
  rm -f conftest.vals
4409
 
  mv conftest.tail conftest.vals
 
12619
    sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
 
12620
  ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
 
12621
  sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
 
12622
  grep . conftest.tail >/dev/null || break
 
12623
  rm -f conftest.defines
 
12624
  mv conftest.tail conftest.defines
4410
12625
done
4411
 
rm -f conftest.vals
 
12626
rm -f conftest.defines conftest.tail
4412
12627
 
4413
 
cat >> $CONFIG_STATUS <<\EOF
4414
 
  rm -f conftest.frag conftest.h
4415
 
  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
4416
 
  cat conftest.in >> conftest.h
4417
 
  rm -f conftest.in
4418
 
  if cmp -s $ac_file conftest.h 2>/dev/null; then
4419
 
    echo "$ac_file is unchanged"
4420
 
    rm -f conftest.h
4421
 
  else
4422
 
    # Remove last slash and all that follows it.  Not all systems have dirname.
4423
 
      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4424
 
      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4425
 
      # The file is in a subdirectory.
4426
 
      test ! -d "$ac_dir" && mkdir "$ac_dir"
 
12628
echo "ac_result=$ac_in" >>$CONFIG_STATUS
 
12629
cat >>$CONFIG_STATUS <<\_ACEOF
 
12630
  if test x"$ac_file" != x-; then
 
12631
    echo "/* $configure_input  */" >"$tmp/config.h"
 
12632
    cat "$ac_result" >>"$tmp/config.h"
 
12633
    if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
 
12634
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
 
12635
echo "$as_me: $ac_file is unchanged" >&6;}
 
12636
    else
 
12637
      rm -f $ac_file
 
12638
      mv "$tmp/config.h" $ac_file
4427
12639
    fi
4428
 
    rm -f $ac_file
4429
 
    mv conftest.h $ac_file
4430
 
  fi
4431
 
fi; done
4432
 
 
4433
 
EOF
4434
 
cat >> $CONFIG_STATUS <<EOF
4435
 
 
4436
 
 
4437
 
EOF
4438
 
cat >> $CONFIG_STATUS <<\EOF
4439
 
test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4440
 
 
4441
 
exit 0
4442
 
EOF
 
12640
  else
 
12641
    echo "/* $configure_input  */"
 
12642
    cat "$ac_result"
 
12643
  fi
 
12644
  rm -f "$tmp/out12"
 
12645
# Compute $ac_file's index in $config_headers.
 
12646
_am_stamp_count=1
 
12647
for _am_header in $config_headers :; do
 
12648
  case $_am_header in
 
12649
    $ac_file | $ac_file:* )
 
12650
      break ;;
 
12651
    * )
 
12652
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
 
12653
  esac
 
12654
done
 
12655
echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
 
12656
$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12657
         X$ac_file : 'X\(//\)[^/]' \| \
 
12658
         X$ac_file : 'X\(//\)$' \| \
 
12659
         X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
 
12660
echo X$ac_file |
 
12661
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12662
            s//\1/
 
12663
            q
 
12664
          }
 
12665
          /^X\(\/\/\)[^/].*/{
 
12666
            s//\1/
 
12667
            q
 
12668
          }
 
12669
          /^X\(\/\/\)$/{
 
12670
            s//\1/
 
12671
            q
 
12672
          }
 
12673
          /^X\(\/\).*/{
 
12674
            s//\1/
 
12675
            q
 
12676
          }
 
12677
          s/.*/./; q'`/stamp-h$_am_stamp_count
 
12678
 ;;
 
12679
 
 
12680
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
12681
echo "$as_me: executing $ac_file commands" >&6;}
 
12682
 ;;
 
12683
  esac
 
12684
 
 
12685
 
 
12686
  case $ac_file$ac_mode in
 
12687
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
12688
  # Strip MF so we end up with the name of the file.
 
12689
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
12690
  # Check whether this is an Automake generated Makefile or not.
 
12691
  # We used to match only the files named `Makefile.in', but
 
12692
  # some people rename them; so instead we look at the file content.
 
12693
  # Grep'ing the first line is not enough: some people post-process
 
12694
  # each Makefile.in and add a new line on top of each file to say so.
 
12695
  # So let's grep whole file.
 
12696
  if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
 
12697
    dirpart=`$as_dirname -- "$mf" ||
 
12698
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12699
         X"$mf" : 'X\(//\)[^/]' \| \
 
12700
         X"$mf" : 'X\(//\)$' \| \
 
12701
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
12702
echo X"$mf" |
 
12703
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12704
            s//\1/
 
12705
            q
 
12706
          }
 
12707
          /^X\(\/\/\)[^/].*/{
 
12708
            s//\1/
 
12709
            q
 
12710
          }
 
12711
          /^X\(\/\/\)$/{
 
12712
            s//\1/
 
12713
            q
 
12714
          }
 
12715
          /^X\(\/\).*/{
 
12716
            s//\1/
 
12717
            q
 
12718
          }
 
12719
          s/.*/./; q'`
 
12720
  else
 
12721
    continue
 
12722
  fi
 
12723
  # Extract the definition of DEPDIR, am__include, and am__quote
 
12724
  # from the Makefile without running `make'.
 
12725
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
12726
  test -z "$DEPDIR" && continue
 
12727
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
12728
  test -z "am__include" && continue
 
12729
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
12730
  # When using ansi2knr, U may be empty or an underscore; expand it
 
12731
  U=`sed -n 's/^U = //p' < "$mf"`
 
12732
  # Find all dependency output files, they are included files with
 
12733
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
12734
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
12735
  # expansion.
 
12736
  for file in `sed -n "
 
12737
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
12738
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
12739
    # Make sure the directory exists.
 
12740
    test -f "$dirpart/$file" && continue
 
12741
    fdir=`$as_dirname -- "$file" ||
 
12742
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12743
         X"$file" : 'X\(//\)[^/]' \| \
 
12744
         X"$file" : 'X\(//\)$' \| \
 
12745
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
12746
echo X"$file" |
 
12747
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12748
            s//\1/
 
12749
            q
 
12750
          }
 
12751
          /^X\(\/\/\)[^/].*/{
 
12752
            s//\1/
 
12753
            q
 
12754
          }
 
12755
          /^X\(\/\/\)$/{
 
12756
            s//\1/
 
12757
            q
 
12758
          }
 
12759
          /^X\(\/\).*/{
 
12760
            s//\1/
 
12761
            q
 
12762
          }
 
12763
          s/.*/./; q'`
 
12764
    { as_dir=$dirpart/$fdir
 
12765
  case $as_dir in #(
 
12766
  -*) as_dir=./$as_dir;;
 
12767
  esac
 
12768
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
12769
    as_dirs=
 
12770
    while :; do
 
12771
      case $as_dir in #(
 
12772
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
12773
      *) as_qdir=$as_dir;;
 
12774
      esac
 
12775
      as_dirs="'$as_qdir' $as_dirs"
 
12776
      as_dir=`$as_dirname -- "$as_dir" ||
 
12777
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
12778
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
12779
         X"$as_dir" : 'X\(//\)$' \| \
 
12780
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
12781
echo X"$as_dir" |
 
12782
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
12783
            s//\1/
 
12784
            q
 
12785
          }
 
12786
          /^X\(\/\/\)[^/].*/{
 
12787
            s//\1/
 
12788
            q
 
12789
          }
 
12790
          /^X\(\/\/\)$/{
 
12791
            s//\1/
 
12792
            q
 
12793
          }
 
12794
          /^X\(\/\).*/{
 
12795
            s//\1/
 
12796
            q
 
12797
          }
 
12798
          s/.*/./; q'`
 
12799
      test -d "$as_dir" && break
 
12800
    done
 
12801
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
12802
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
12803
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
12804
   { (exit 1); exit 1; }; }; }
 
12805
    # echo "creating $dirpart/$file"
 
12806
    echo '# dummy' > "$dirpart/$file"
 
12807
  done
 
12808
done
 
12809
 ;;
 
12810
 
 
12811
  esac
 
12812
done # for ac_tag
 
12813
 
 
12814
 
 
12815
{ (exit 0); exit 0; }
 
12816
_ACEOF
4443
12817
chmod +x $CONFIG_STATUS
4444
 
rm -fr confdefs* $ac_clean_files
4445
 
test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
 
12818
ac_clean_files=$ac_clean_files_save
 
12819
 
 
12820
 
 
12821
# configure is writing to config.log, and then calls config.status.
 
12822
# config.status does its own redirection, appending to config.log.
 
12823
# Unfortunately, on DOS this fails, as config.log is still kept open
 
12824
# by configure, so config.status won't be able to write to it; its
 
12825
# output is simply discarded.  So we exec the FD to /dev/null,
 
12826
# effectively closing config.log, so it can be properly (re)opened and
 
12827
# appended to by config.status.  When coming back to configure, we
 
12828
# need to make the FD available again.
 
12829
if test "$no_create" != yes; then
 
12830
  ac_cs_success=:
 
12831
  ac_config_status_args=
 
12832
  test "$silent" = yes &&
 
12833
    ac_config_status_args="$ac_config_status_args --quiet"
 
12834
  exec 5>/dev/null
 
12835
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
12836
  exec 5>>config.log
 
12837
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
12838
  # would make configure fail if this is the last instruction.
 
12839
  $ac_cs_success || { (exit 1); exit 1; }
 
12840
fi
4446
12841
 
4447
12842
 
4448
12843
if test x"${have_dlopen}" != xyes; then