Subversion Repositories wimsdev

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3417 bpr 1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
3616 bpr 3
# Generated by GNU Autoconf 2.65 for WIMS 4.01d.
3417 bpr 4
#
5
# Report bugs to <wimsdev@cru.fr>.
6
#
7
#
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10
# Inc.
11
#
12
#
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
18
 
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
  emulate sh
23
  NULLCMD=:
24
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
  # is contrary to our usage.  Disable this feature.
26
  alias -g '${1+"$@"}'='"$@"'
27
  setopt NO_GLOB_SUBST
28
else
29
  case `(set -o) 2>/dev/null` in #(
30
  *posix*) :
31
    set -o posix ;; #(
32
  *) :
33
     ;;
34
esac
35
fi
36
 
37
 
38
as_nl='
39
'
40
export as_nl
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49
  as_echo='print -r --'
50
  as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52
  as_echo='printf %s\n'
53
  as_echo_n='printf %s'
54
else
55
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
    as_echo_n='/usr/ucb/echo -n'
58
  else
59
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
    as_echo_n_body='eval
61
      arg=$1;
62
      case $arg in #(
63
      *"$as_nl"*)
64
	expr "X$arg" : "X\\(.*\\)$as_nl";
65
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66
      esac;
67
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
    '
69
    export as_echo_n_body
70
    as_echo_n='sh -c $as_echo_n_body as_echo'
71
  fi
72
  export as_echo_body
73
  as_echo='sh -c $as_echo_body as_echo'
74
fi
75
 
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
78
  PATH_SEPARATOR=:
79
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81
      PATH_SEPARATOR=';'
82
  }
83
fi
84
 
85
 
86
# IFS
87
# We need space, tab and new line, in precisely that order.  Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
91
IFS=" ""	$as_nl"
92
 
93
# Find who we are.  Look in the path if we contain no directory separator.
94
case $0 in #((
95
  *[\\/]* ) as_myself=$0 ;;
96
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
for as_dir in $PATH
98
do
99
  IFS=$as_save_IFS
100
  test -z "$as_dir" && as_dir=.
101
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102
  done
103
IFS=$as_save_IFS
104
 
105
     ;;
106
esac
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
110
  as_myself=$0
111
fi
112
if test ! -f "$as_myself"; then
113
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
  exit 1
115
fi
116
 
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there.  '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124
done
125
PS1='$ '
126
PS2='> '
127
PS4='+ '
128
 
129
# NLS nuisances.
130
LC_ALL=C
131
export LC_ALL
132
LANGUAGE=C
133
export LANGUAGE
134
 
135
# CDPATH.
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
 
138
if test "x$CONFIG_SHELL" = x; then
139
  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
  emulate sh
141
  NULLCMD=:
142
  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
  # is contrary to our usage.  Disable this feature.
144
  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
  setopt NO_GLOB_SUBST
146
else
147
  case \`(set -o) 2>/dev/null\` in #(
148
  *posix*) :
149
    set -o posix ;; #(
150
  *) :
151
     ;;
152
esac
153
fi
154
"
155
  as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
160
 
161
exitcode=0
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
 
168
else
169
  exitcode=1; echo positional parameters were not saved.
170
fi
171
test x\$exitcode = x0 || exit 1"
172
  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
  if (eval "$as_required") 2>/dev/null; then :
178
  as_have_required=yes
179
else
180
  as_have_required=no
181
fi
182
  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
 
184
else
185
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186
as_found=false
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
do
189
  IFS=$as_save_IFS
190
  test -z "$as_dir" && as_dir=.
191
  as_found=:
192
  case $as_dir in #(
193
	 /*)
194
	   for as_base in sh bash ksh sh5; do
195
	     # Try only shells that exist, to save several forks.
196
	     as_shell=$as_dir/$as_base
197
	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
  CONFIG_SHELL=$as_shell as_have_required=yes
200
		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201
  break 2
202
fi
203
fi
204
	   done;;
205
       esac
206
  as_found=false
207
done
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
  CONFIG_SHELL=$SHELL as_have_required=yes
211
fi; }
212
IFS=$as_save_IFS
213
 
214
 
215
      if test "x$CONFIG_SHELL" != x; then :
216
  # We cannot yet assume a decent shell, so we have to provide a
217
	# neutralization value for shells without unset; and this also
218
	# works around shells that cannot unset nonexistent variables.
219
	BASH_ENV=/dev/null
220
	ENV=/dev/null
221
	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222
	export CONFIG_SHELL
223
	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
fi
225
 
226
    if test x$as_have_required = xno; then :
227
  $as_echo "$0: This script requires a shell more modern than all"
228
  $as_echo "$0: the shells that I found on your system."
229
  if test x${ZSH_VERSION+set} = xset ; then
230
    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232
  else
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and wimsdev@cru.fr
234
$0: about your system, including any error possibly output
235
$0: before this message. Then install a modern shell, or
236
$0: manually run the script under such a shell if you do
237
$0: have one."
238
  fi
239
  exit 1
240
fi
241
fi
242
fi
243
SHELL=${CONFIG_SHELL-/bin/sh}
244
export SHELL
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
248
 
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
252
# as_fn_unset VAR
253
# ---------------
254
# Portably unset VAR.
255
as_fn_unset ()
256
{
257
  { eval $1=; unset $1;}
258
}
259
as_unset=as_fn_unset
260
 
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
264
as_fn_set_status ()
265
{
266
  return $1
267
} # as_fn_set_status
268
 
269
# as_fn_exit STATUS
270
# -----------------
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272
as_fn_exit ()
273
{
274
  set +e
275
  as_fn_set_status $1
276
  exit $1
277
} # as_fn_exit
278
 
279
# as_fn_mkdir_p
280
# -------------
281
# Create "$as_dir" as a directory, including parents if necessary.
282
as_fn_mkdir_p ()
283
{
284
 
285
  case $as_dir in #(
286
  -*) as_dir=./$as_dir;;
287
  esac
288
  test -d "$as_dir" || eval $as_mkdir_p || {
289
    as_dirs=
290
    while :; do
291
      case $as_dir in #(
292
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293
      *) as_qdir=$as_dir;;
294
      esac
295
      as_dirs="'$as_qdir' $as_dirs"
296
      as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
	 X"$as_dir" : 'X\(//\)[^/]' \| \
299
	 X"$as_dir" : 'X\(//\)$' \| \
300
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303
	    s//\1/
304
	    q
305
	  }
306
	  /^X\(\/\/\)[^/].*/{
307
	    s//\1/
308
	    q
309
	  }
310
	  /^X\(\/\/\)$/{
311
	    s//\1/
312
	    q
313
	  }
314
	  /^X\(\/\).*/{
315
	    s//\1/
316
	    q
317
	  }
318
	  s/.*/./; q'`
319
      test -d "$as_dir" && break
320
    done
321
    test -z "$as_dirs" || eval "mkdir $as_dirs"
322
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
 
324
 
325
} # as_fn_mkdir_p
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
331
# implementations.
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
  eval 'as_fn_append ()
334
  {
335
    eval $1+=\$2
336
  }'
337
else
338
  as_fn_append ()
339
  {
340
    eval $1=\$$1\$2
341
  }
342
fi # as_fn_append
343
 
344
# as_fn_arith ARG...
345
# ------------------
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350
  eval 'as_fn_arith ()
351
  {
352
    as_val=$(( $* ))
353
  }'
354
else
355
  as_fn_arith ()
356
  {
357
    as_val=`expr "$@" || test $? -eq 1`
358
  }
359
fi # as_fn_arith
360
 
361
 
362
# as_fn_error ERROR [LINENO LOG_FD]
363
# ---------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with status $?, using 1 if that was 0.
367
as_fn_error ()
368
{
369
  as_status=$?; test $as_status -eq 0 && as_status=1
370
  if test "$3"; then
371
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373
  fi
374
  $as_echo "$as_me: error: $1" >&2
375
  as_fn_exit $as_status
376
} # as_fn_error
377
 
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380
  as_expr=expr
381
else
382
  as_expr=false
383
fi
384
 
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386
  as_basename=basename
387
else
388
  as_basename=false
389
fi
390
 
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392
  as_dirname=dirname
393
else
394
  as_dirname=false
395
fi
396
 
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
	 X"$0" : 'X\(//\)$' \| \
400
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401
$as_echo X/"$0" |
402
    sed '/^.*\/\([^/][^/]*\)\/*$/{
403
	    s//\1/
404
	    q
405
	  }
406
	  /^X\/\(\/\/\)$/{
407
	    s//\1/
408
	    q
409
	  }
410
	  /^X\/\(\/\).*/{
411
	    s//\1/
412
	    q
413
	  }
414
	  s/.*/./; q'`
415
 
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
422
 
423
 
424
  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429
  sed -n '
430
    p
431
    /[$]LINENO/=
432
  ' <$as_myself |
433
    sed '
434
      s/[$]LINENO.*/&-/
435
      t lineno
436
      b
437
      :lineno
438
      N
439
      :loop
440
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441
      t loop
442
      s/-\n.*//
443
    ' >$as_me.lineno &&
444
  chmod +x "$as_me.lineno" ||
445
    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
 
447
  # Don't try to exec as it changes $[0], causing all sort of problems
448
  # (the dirname of $[0] is not the place where we might find the
449
  # original and so on.  Autoconf is especially sensitive to this).
450
  . "./$as_me.lineno"
451
  # Exit status is that of the last command.
452
  exit
453
}
454
 
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
457
-n*)
458
  case `echo 'xy\c'` in
459
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460
  xy)  ECHO_C='\c';;
461
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462
       ECHO_T='	';;
463
  esac;;
464
*)
465
  ECHO_N='-n';;
466
esac
467
 
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
  rm -f conf$$.dir/conf$$.file
471
else
472
  rm -f conf$$.dir
473
  mkdir conf$$.dir 2>/dev/null
474
fi
475
if (echo >conf$$.file) 2>/dev/null; then
476
  if ln -s conf$$.file conf$$ 2>/dev/null; then
477
    as_ln_s='ln -s'
478
    # ... but there are two gotchas:
479
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
    # In both cases, we have to default to `cp -p'.
482
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483
      as_ln_s='cp -p'
484
  elif ln conf$$.file conf$$ 2>/dev/null; then
485
    as_ln_s=ln
486
  else
487
    as_ln_s='cp -p'
488
  fi
489
else
490
  as_ln_s='cp -p'
491
fi
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
494
 
495
if mkdir -p . 2>/dev/null; then
496
  as_mkdir_p='mkdir -p "$as_dir"'
497
else
498
  test -d ./-p && rmdir ./-p
499
  as_mkdir_p=false
500
fi
501
 
502
if test -x / >/dev/null 2>&1; then
503
  as_test_x='test -x'
504
else
505
  if ls -dL / >/dev/null 2>&1; then
506
    as_ls_L_option=L
507
  else
508
    as_ls_L_option=
509
  fi
510
  as_test_x='
511
    eval sh -c '\''
512
      if test -d "$1"; then
513
	test -d "$1/.";
514
      else
515
	case $1 in #(
516
	-*)set "./$1";;
517
	esac;
518
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
	???[sx]*):;;*)false;;esac;fi
520
    '\'' sh
521
  '
522
fi
523
as_executable_p=$as_test_x
524
 
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
 
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
 
531
 
532
test -n "$DJDIR" || exec 7<&0 </dev/null
533
exec 6>&1
534
 
535
# Name of the host.
536
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537
# so uname gets run too.
538
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
 
540
#
541
# Initializations.
542
#
543
ac_default_prefix=/usr/local
544
ac_clean_files=
545
ac_config_libobj_dir=.
546
LIBOBJS=
547
cross_compiling=no
548
subdirs=
549
MFLAGS=
550
MAKEFLAGS=
551
 
552
# Identity of this package.
553
PACKAGE_NAME='WIMS'
554
PACKAGE_TARNAME='wims'
3616 bpr 555
PACKAGE_VERSION='4.01d'
556
PACKAGE_STRING='WIMS 4.01d'
3417 bpr 557
PACKAGE_BUGREPORT='wimsdev@cru.fr'
558
PACKAGE_URL=''
559
 
560
ac_unique_file="wims.c"
561
# Factoring default headers for most tests.
562
ac_includes_default="\
563
#include <stdio.h>
564
#ifdef HAVE_SYS_TYPES_H
565
# include <sys/types.h>
566
#endif
567
#ifdef HAVE_SYS_STAT_H
568
# include <sys/stat.h>
569
#endif
570
#ifdef STDC_HEADERS
571
# include <stdlib.h>
572
# include <stddef.h>
573
#else
574
# ifdef HAVE_STDLIB_H
575
#  include <stdlib.h>
576
# endif
577
#endif
578
#ifdef HAVE_STRING_H
579
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
580
#  include <memory.h>
581
# endif
582
# include <string.h>
583
#endif
584
#ifdef HAVE_STRINGS_H
585
# include <strings.h>
586
#endif
587
#ifdef HAVE_INTTYPES_H
588
# include <inttypes.h>
589
#endif
590
#ifdef HAVE_STDINT_H
591
# include <stdint.h>
592
#endif
593
#ifdef HAVE_UNISTD_H
594
# include <unistd.h>
595
#endif"
596
 
597
ac_header_list=
598
ac_subst_vars='LTLIBOBJS
599
CRYPTLIB
600
FLEXLIB
601
NETLIBS
602
ALLSETENV_OBJS
603
SETENV_OBJS
604
BUILD_WIMSD
605
BUILD_CHEMEQ
606
BUILD_UNITS
607
RPATH
608
DEFINES
609
STATIC_LIB
610
D_CASE_INSENSITIVE_FS
611
POW_LIB
612
LIBOBJS
613
EGREP
614
GREP
615
ALLOCA
616
TEX
617
STRIP
618
RANLIB
619
SET_MAKE
620
LEXLIB
621
LEX_OUTPUT_ROOT
622
LEX
623
CPP
624
ac_ct_CXX
625
CXXFLAGS
626
CXX
627
OBJEXT
628
EXEEXT
629
ac_ct_CC
630
CPPFLAGS
631
LDFLAGS
632
CFLAGS
633
CC
634
YFLAGS
635
YACC
636
AWK
637
LN_S
638
target_alias
639
host_alias
640
build_alias
641
LIBS
642
ECHO_T
643
ECHO_N
644
ECHO_C
645
DEFS
646
mandir
647
localedir
648
libdir
649
psdir
650
pdfdir
651
dvidir
652
htmldir
653
infodir
654
docdir
655
oldincludedir
656
includedir
657
localstatedir
658
sharedstatedir
659
sysconfdir
660
datadir
661
datarootdir
662
libexecdir
663
sbindir
664
bindir
665
program_transform_name
666
prefix
667
exec_prefix
668
PACKAGE_URL
669
PACKAGE_BUGREPORT
670
PACKAGE_STRING
671
PACKAGE_VERSION
672
PACKAGE_TARNAME
673
PACKAGE_NAME
674
PATH_SEPARATOR
675
SHELL'
676
ac_subst_files=''
677
ac_user_opts='
678
enable_option_checking
679
with_units
680
with_chemeq
681
with_wimsd
682
'
683
      ac_precious_vars='build_alias
684
host_alias
685
target_alias
686
YACC
687
YFLAGS
688
CC
689
CFLAGS
690
LDFLAGS
691
LIBS
692
CPPFLAGS
693
CXX
694
CXXFLAGS
695
CCC
696
CPP'
697
 
698
 
699
# Initialize some variables set by options.
700
ac_init_help=
701
ac_init_version=false
702
ac_unrecognized_opts=
703
ac_unrecognized_sep=
704
# The variables have the same names as the options, with
705
# dashes changed to underlines.
706
cache_file=/dev/null
707
exec_prefix=NONE
708
no_create=
709
no_recursion=
710
prefix=NONE
711
program_prefix=NONE
712
program_suffix=NONE
713
program_transform_name=s,x,x,
714
silent=
715
site=
716
srcdir=
717
verbose=
718
x_includes=NONE
719
x_libraries=NONE
720
 
721
# Installation directory options.
722
# These are left unexpanded so users can "make install exec_prefix=/foo"
723
# and all the variables that are supposed to be based on exec_prefix
724
# by default will actually change.
725
# Use braces instead of parens because sh, perl, etc. also accept them.
726
# (The list follows the same order as the GNU Coding Standards.)
727
bindir='${exec_prefix}/bin'
728
sbindir='${exec_prefix}/sbin'
729
libexecdir='${exec_prefix}/libexec'
730
datarootdir='${prefix}/share'
731
datadir='${datarootdir}'
732
sysconfdir='${prefix}/etc'
733
sharedstatedir='${prefix}/com'
734
localstatedir='${prefix}/var'
735
includedir='${prefix}/include'
736
oldincludedir='/usr/include'
737
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
738
infodir='${datarootdir}/info'
739
htmldir='${docdir}'
740
dvidir='${docdir}'
741
pdfdir='${docdir}'
742
psdir='${docdir}'
743
libdir='${exec_prefix}/lib'
744
localedir='${datarootdir}/locale'
745
mandir='${datarootdir}/man'
746
 
747
ac_prev=
748
ac_dashdash=
749
for ac_option
750
do
751
  # If the previous option needs an argument, assign it.
752
  if test -n "$ac_prev"; then
753
    eval $ac_prev=\$ac_option
754
    ac_prev=
755
    continue
756
  fi
757
 
758
  case $ac_option in
759
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
760
  *)	ac_optarg=yes ;;
761
  esac
762
 
763
  # Accept the important Cygnus configure options, so we can diagnose typos.
764
 
765
  case $ac_dashdash$ac_option in
766
  --)
767
    ac_dashdash=yes ;;
768
 
769
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
770
    ac_prev=bindir ;;
771
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772
    bindir=$ac_optarg ;;
773
 
774
  -build | --build | --buil | --bui | --bu)
775
    ac_prev=build_alias ;;
776
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
777
    build_alias=$ac_optarg ;;
778
 
779
  -cache-file | --cache-file | --cache-fil | --cache-fi \
780
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
781
    ac_prev=cache_file ;;
782
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
783
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
784
    cache_file=$ac_optarg ;;
785
 
786
  --config-cache | -C)
787
    cache_file=config.cache ;;
788
 
789
  -datadir | --datadir | --datadi | --datad)
790
    ac_prev=datadir ;;
791
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
792
    datadir=$ac_optarg ;;
793
 
794
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
795
  | --dataroo | --dataro | --datar)
796
    ac_prev=datarootdir ;;
797
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
798
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
799
    datarootdir=$ac_optarg ;;
800
 
801
  -disable-* | --disable-*)
802
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
803
    # Reject names that are not valid shell variable names.
804
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
805
      as_fn_error "invalid feature name: $ac_useropt"
806
    ac_useropt_orig=$ac_useropt
807
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
808
    case $ac_user_opts in
809
      *"
810
"enable_$ac_useropt"
811
"*) ;;
812
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
813
	 ac_unrecognized_sep=', ';;
814
    esac
815
    eval enable_$ac_useropt=no ;;
816
 
817
  -docdir | --docdir | --docdi | --doc | --do)
818
    ac_prev=docdir ;;
819
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820
    docdir=$ac_optarg ;;
821
 
822
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
823
    ac_prev=dvidir ;;
824
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825
    dvidir=$ac_optarg ;;
826
 
827
  -enable-* | --enable-*)
828
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
829
    # Reject names that are not valid shell variable names.
830
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
831
      as_fn_error "invalid feature name: $ac_useropt"
832
    ac_useropt_orig=$ac_useropt
833
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
834
    case $ac_user_opts in
835
      *"
836
"enable_$ac_useropt"
837
"*) ;;
838
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
839
	 ac_unrecognized_sep=', ';;
840
    esac
841
    eval enable_$ac_useropt=\$ac_optarg ;;
842
 
843
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
844
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
845
  | --exec | --exe | --ex)
846
    ac_prev=exec_prefix ;;
847
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
848
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
849
  | --exec=* | --exe=* | --ex=*)
850
    exec_prefix=$ac_optarg ;;
851
 
852
  -gas | --gas | --ga | --g)
853
    # Obsolete; use --with-gas.
854
    with_gas=yes ;;
855
 
856
  -help | --help | --hel | --he | -h)
857
    ac_init_help=long ;;
858
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
859
    ac_init_help=recursive ;;
860
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
861
    ac_init_help=short ;;
862
 
863
  -host | --host | --hos | --ho)
864
    ac_prev=host_alias ;;
865
  -host=* | --host=* | --hos=* | --ho=*)
866
    host_alias=$ac_optarg ;;
867
 
868
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
869
    ac_prev=htmldir ;;
870
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
871
  | --ht=*)
872
    htmldir=$ac_optarg ;;
873
 
874
  -includedir | --includedir | --includedi | --included | --include \
875
  | --includ | --inclu | --incl | --inc)
876
    ac_prev=includedir ;;
877
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
878
  | --includ=* | --inclu=* | --incl=* | --inc=*)
879
    includedir=$ac_optarg ;;
880
 
881
  -infodir | --infodir | --infodi | --infod | --info | --inf)
882
    ac_prev=infodir ;;
883
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
884
    infodir=$ac_optarg ;;
885
 
886
  -libdir | --libdir | --libdi | --libd)
887
    ac_prev=libdir ;;
888
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
889
    libdir=$ac_optarg ;;
890
 
891
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
892
  | --libexe | --libex | --libe)
893
    ac_prev=libexecdir ;;
894
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
895
  | --libexe=* | --libex=* | --libe=*)
896
    libexecdir=$ac_optarg ;;
897
 
898
  -localedir | --localedir | --localedi | --localed | --locale)
899
    ac_prev=localedir ;;
900
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
901
    localedir=$ac_optarg ;;
902
 
903
  -localstatedir | --localstatedir | --localstatedi | --localstated \
904
  | --localstate | --localstat | --localsta | --localst | --locals)
905
    ac_prev=localstatedir ;;
906
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
907
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
908
    localstatedir=$ac_optarg ;;
909
 
910
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
911
    ac_prev=mandir ;;
912
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
913
    mandir=$ac_optarg ;;
914
 
915
  -nfp | --nfp | --nf)
916
    # Obsolete; use --without-fp.
917
    with_fp=no ;;
918
 
919
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
920
  | --no-cr | --no-c | -n)
921
    no_create=yes ;;
922
 
923
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
924
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925
    no_recursion=yes ;;
926
 
927
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
928
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
929
  | --oldin | --oldi | --old | --ol | --o)
930
    ac_prev=oldincludedir ;;
931
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
932
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
933
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
934
    oldincludedir=$ac_optarg ;;
935
 
936
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
937
    ac_prev=prefix ;;
938
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939
    prefix=$ac_optarg ;;
940
 
941
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
942
  | --program-pre | --program-pr | --program-p)
943
    ac_prev=program_prefix ;;
944
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
945
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
946
    program_prefix=$ac_optarg ;;
947
 
948
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
949
  | --program-suf | --program-su | --program-s)
950
    ac_prev=program_suffix ;;
951
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
952
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
953
    program_suffix=$ac_optarg ;;
954
 
955
  -program-transform-name | --program-transform-name \
956
  | --program-transform-nam | --program-transform-na \
957
  | --program-transform-n | --program-transform- \
958
  | --program-transform | --program-transfor \
959
  | --program-transfo | --program-transf \
960
  | --program-trans | --program-tran \
961
  | --progr-tra | --program-tr | --program-t)
962
    ac_prev=program_transform_name ;;
963
  -program-transform-name=* | --program-transform-name=* \
964
  | --program-transform-nam=* | --program-transform-na=* \
965
  | --program-transform-n=* | --program-transform-=* \
966
  | --program-transform=* | --program-transfor=* \
967
  | --program-transfo=* | --program-transf=* \
968
  | --program-trans=* | --program-tran=* \
969
  | --progr-tra=* | --program-tr=* | --program-t=*)
970
    program_transform_name=$ac_optarg ;;
971
 
972
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
973
    ac_prev=pdfdir ;;
974
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975
    pdfdir=$ac_optarg ;;
976
 
977
  -psdir | --psdir | --psdi | --psd | --ps)
978
    ac_prev=psdir ;;
979
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980
    psdir=$ac_optarg ;;
981
 
982
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
983
  | -silent | --silent | --silen | --sile | --sil)
984
    silent=yes ;;
985
 
986
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
987
    ac_prev=sbindir ;;
988
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
989
  | --sbi=* | --sb=*)
990
    sbindir=$ac_optarg ;;
991
 
992
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
993
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
994
  | --sharedst | --shareds | --shared | --share | --shar \
995
  | --sha | --sh)
996
    ac_prev=sharedstatedir ;;
997
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
998
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
999
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1000
  | --sha=* | --sh=*)
1001
    sharedstatedir=$ac_optarg ;;
1002
 
1003
  -site | --site | --sit)
1004
    ac_prev=site ;;
1005
  -site=* | --site=* | --sit=*)
1006
    site=$ac_optarg ;;
1007
 
1008
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1009
    ac_prev=srcdir ;;
1010
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1011
    srcdir=$ac_optarg ;;
1012
 
1013
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1014
  | --syscon | --sysco | --sysc | --sys | --sy)
1015
    ac_prev=sysconfdir ;;
1016
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1017
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1018
    sysconfdir=$ac_optarg ;;
1019
 
1020
  -target | --target | --targe | --targ | --tar | --ta | --t)
1021
    ac_prev=target_alias ;;
1022
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1023
    target_alias=$ac_optarg ;;
1024
 
1025
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026
    verbose=yes ;;
1027
 
1028
  -version | --version | --versio | --versi | --vers | -V)
1029
    ac_init_version=: ;;
1030
 
1031
  -with-* | --with-*)
1032
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1033
    # Reject names that are not valid shell variable names.
1034
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035
      as_fn_error "invalid package name: $ac_useropt"
1036
    ac_useropt_orig=$ac_useropt
1037
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038
    case $ac_user_opts in
1039
      *"
1040
"with_$ac_useropt"
1041
"*) ;;
1042
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1043
	 ac_unrecognized_sep=', ';;
1044
    esac
1045
    eval with_$ac_useropt=\$ac_optarg ;;
1046
 
1047
  -without-* | --without-*)
1048
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1049
    # Reject names that are not valid shell variable names.
1050
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1051
      as_fn_error "invalid package name: $ac_useropt"
1052
    ac_useropt_orig=$ac_useropt
1053
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1054
    case $ac_user_opts in
1055
      *"
1056
"with_$ac_useropt"
1057
"*) ;;
1058
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1059
	 ac_unrecognized_sep=', ';;
1060
    esac
1061
    eval with_$ac_useropt=no ;;
1062
 
1063
  --x)
1064
    # Obsolete; use --with-x.
1065
    with_x=yes ;;
1066
 
1067
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1068
  | --x-incl | --x-inc | --x-in | --x-i)
1069
    ac_prev=x_includes ;;
1070
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1071
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1072
    x_includes=$ac_optarg ;;
1073
 
1074
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1075
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1076
    ac_prev=x_libraries ;;
1077
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1078
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1079
    x_libraries=$ac_optarg ;;
1080
 
1081
  -*) as_fn_error "unrecognized option: \`$ac_option'
1082
Try \`$0 --help' for more information."
1083
    ;;
1084
 
1085
  *=*)
1086
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1087
    # Reject names that are not valid shell variable names.
1088
    case $ac_envvar in #(
1089
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1090
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1091
    esac
1092
    eval $ac_envvar=\$ac_optarg
1093
    export $ac_envvar ;;
1094
 
1095
  *)
1096
    # FIXME: should be removed in autoconf 3.0.
1097
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1098
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1099
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1100
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1101
    ;;
1102
 
1103
  esac
1104
done
1105
 
1106
if test -n "$ac_prev"; then
1107
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1108
  as_fn_error "missing argument to $ac_option"
1109
fi
1110
 
1111
if test -n "$ac_unrecognized_opts"; then
1112
  case $enable_option_checking in
1113
    no) ;;
1114
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1115
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1116
  esac
1117
fi
1118
 
1119
# Check all directory arguments for consistency.
1120
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121
		datadir sysconfdir sharedstatedir localstatedir includedir \
1122
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123
		libdir localedir mandir
1124
do
1125
  eval ac_val=\$$ac_var
1126
  # Remove trailing slashes.
1127
  case $ac_val in
1128
    */ )
1129
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1130
      eval $ac_var=\$ac_val;;
1131
  esac
1132
  # Be sure to have absolute directory names.
1133
  case $ac_val in
1134
    [\\/$]* | ?:[\\/]* )  continue;;
1135
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136
  esac
1137
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1138
done
1139
 
1140
# There might be people who depend on the old broken behavior: `$host'
1141
# used to hold the argument of --host etc.
1142
# FIXME: To remove some day.
1143
build=$build_alias
1144
host=$host_alias
1145
target=$target_alias
1146
 
1147
# FIXME: To remove some day.
1148
if test "x$host_alias" != x; then
1149
  if test "x$build_alias" = x; then
1150
    cross_compiling=maybe
1151
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1152
    If a cross compiler is detected then cross compile mode will be used." >&2
1153
  elif test "x$build_alias" != "x$host_alias"; then
1154
    cross_compiling=yes
1155
  fi
1156
fi
1157
 
1158
ac_tool_prefix=
1159
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1160
 
1161
test "$silent" = yes && exec 6>/dev/null
1162
 
1163
 
1164
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1165
ac_ls_di=`ls -di .` &&
1166
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1167
  as_fn_error "working directory cannot be determined"
1168
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1169
  as_fn_error "pwd does not report name of working directory"
1170
 
1171
 
1172
# Find the source files, if location was not specified.
1173
if test -z "$srcdir"; then
1174
  ac_srcdir_defaulted=yes
1175
  # Try the directory containing this script, then the parent directory.
1176
  ac_confdir=`$as_dirname -- "$as_myself" ||
1177
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1179
	 X"$as_myself" : 'X\(//\)$' \| \
1180
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1181
$as_echo X"$as_myself" |
1182
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183
	    s//\1/
1184
	    q
1185
	  }
1186
	  /^X\(\/\/\)[^/].*/{
1187
	    s//\1/
1188
	    q
1189
	  }
1190
	  /^X\(\/\/\)$/{
1191
	    s//\1/
1192
	    q
1193
	  }
1194
	  /^X\(\/\).*/{
1195
	    s//\1/
1196
	    q
1197
	  }
1198
	  s/.*/./; q'`
1199
  srcdir=$ac_confdir
1200
  if test ! -r "$srcdir/$ac_unique_file"; then
1201
    srcdir=..
1202
  fi
1203
else
1204
  ac_srcdir_defaulted=no
1205
fi
1206
if test ! -r "$srcdir/$ac_unique_file"; then
1207
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1209
fi
1210
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1211
ac_abs_confdir=`(
1212
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1213
	pwd)`
1214
# When building in place, set srcdir=.
1215
if test "$ac_abs_confdir" = "$ac_pwd"; then
1216
  srcdir=.
1217
fi
1218
# Remove unnecessary trailing slashes from srcdir.
1219
# Double slashes in file names in object file debugging info
1220
# mess up M-x gdb in Emacs.
1221
case $srcdir in
1222
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223
esac
1224
for ac_var in $ac_precious_vars; do
1225
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226
  eval ac_env_${ac_var}_value=\$${ac_var}
1227
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229
done
1230
 
1231
#
1232
# Report the --help message.
1233
#
1234
if test "$ac_init_help" = "long"; then
1235
  # Omit some internal or obsolete options to make the list less imposing.
1236
  # This message is too long to be a string in the A/UX 3.1 sh.
1237
  cat <<_ACEOF
3616 bpr 1238
\`configure' configures WIMS 4.01d to adapt to many kinds of systems.
3417 bpr 1239
 
1240
Usage: $0 [OPTION]... [VAR=VALUE]...
1241
 
1242
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243
VAR=VALUE.  See below for descriptions of some of the useful variables.
1244
 
1245
Defaults for the options are specified in brackets.
1246
 
1247
Configuration:
1248
  -h, --help              display this help and exit
1249
      --help=short        display options specific to this package
1250
      --help=recursive    display the short help of all the included packages
1251
  -V, --version           display version information and exit
1252
  -q, --quiet, --silent   do not print \`checking...' messages
1253
      --cache-file=FILE   cache test results in FILE [disabled]
1254
  -C, --config-cache      alias for \`--cache-file=config.cache'
1255
  -n, --no-create         do not create output files
1256
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1257
 
1258
Installation directories:
1259
  --prefix=PREFIX         install architecture-independent files in PREFIX
1260
                          [$ac_default_prefix]
1261
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1262
                          [PREFIX]
1263
 
1264
By default, \`make install' will install all the files in
1265
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1266
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267
for instance \`--prefix=\$HOME'.
1268
 
1269
For better control, use the options below.
1270
 
1271
Fine tuning of the installation directories:
1272
  --bindir=DIR            user executables [EPREFIX/bin]
1273
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1274
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1275
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1276
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1277
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1278
  --libdir=DIR            object code libraries [EPREFIX/lib]
1279
  --includedir=DIR        C header files [PREFIX/include]
1280
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1281
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1282
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1283
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1284
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1285
  --mandir=DIR            man documentation [DATAROOTDIR/man]
1286
  --docdir=DIR            documentation root [DATAROOTDIR/doc/wims]
1287
  --htmldir=DIR           html documentation [DOCDIR]
1288
  --dvidir=DIR            dvi documentation [DOCDIR]
1289
  --pdfdir=DIR            pdf documentation [DOCDIR]
1290
  --psdir=DIR             ps documentation [DOCDIR]
1291
_ACEOF
1292
 
1293
  cat <<\_ACEOF
1294
_ACEOF
1295
fi
1296
 
1297
if test -n "$ac_init_help"; then
1298
  case $ac_init_help in
3616 bpr 1299
     short | recursive ) echo "Configuration of WIMS 4.01d:";;
3417 bpr 1300
   esac
1301
  cat <<\_ACEOF
1302
 
1303
Optional Packages:
1304
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1305
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1306
  --without-units	  Don't compile units-filter (units recognition)
1307
  --without-chemeq	  Don't compile chemeq (chemical equation analyzer)
1308
  --without-wimsd	  Don't compile wimsd (standalone http server)
1309
 
1310
Some influential environment variables:
1311
  YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1312
              the first program found out of: `bison -y', `byacc', `yacc'.
1313
  YFLAGS      The list of arguments that will be passed by default to $YACC.
1314
              This script will default YFLAGS to the empty string to avoid a
1315
              default value of `-d' given by some make applications.
1316
  CC          C compiler command
1317
  CFLAGS      C compiler flags
1318
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1319
              nonstandard directory <lib dir>
1320
  LIBS        libraries to pass to the linker, e.g. -l<library>
1321
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1322
              you have headers in a nonstandard directory <include dir>
1323
  CXX         C++ compiler command
1324
  CXXFLAGS    C++ compiler flags
1325
  CPP         C preprocessor
1326
 
1327
Use these variables to override the choices made by `configure' or to help
1328
it to find libraries and programs with nonstandard names/locations.
1329
 
1330
Report bugs to <wimsdev@cru.fr>.
1331
_ACEOF
1332
ac_status=$?
1333
fi
1334
 
1335
if test "$ac_init_help" = "recursive"; then
1336
  # If there are subdirs, report their specific --help.
1337
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1338
    test -d "$ac_dir" ||
1339
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1340
      continue
1341
    ac_builddir=.
1342
 
1343
case "$ac_dir" in
1344
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1345
*)
1346
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1347
  # A ".." for each directory in $ac_dir_suffix.
1348
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1349
  case $ac_top_builddir_sub in
1350
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1352
  esac ;;
1353
esac
1354
ac_abs_top_builddir=$ac_pwd
1355
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1356
# for backward compatibility:
1357
ac_top_builddir=$ac_top_build_prefix
1358
 
1359
case $srcdir in
1360
  .)  # We are building in place.
1361
    ac_srcdir=.
1362
    ac_top_srcdir=$ac_top_builddir_sub
1363
    ac_abs_top_srcdir=$ac_pwd ;;
1364
  [\\/]* | ?:[\\/]* )  # Absolute name.
1365
    ac_srcdir=$srcdir$ac_dir_suffix;
1366
    ac_top_srcdir=$srcdir
1367
    ac_abs_top_srcdir=$srcdir ;;
1368
  *) # Relative name.
1369
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1370
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1371
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1372
esac
1373
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1374
 
1375
    cd "$ac_dir" || { ac_status=$?; continue; }
1376
    # Check for guested configure.
1377
    if test -f "$ac_srcdir/configure.gnu"; then
1378
      echo &&
1379
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1380
    elif test -f "$ac_srcdir/configure"; then
1381
      echo &&
1382
      $SHELL "$ac_srcdir/configure" --help=recursive
1383
    else
1384
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1385
    fi || ac_status=$?
1386
    cd "$ac_pwd" || { ac_status=$?; break; }
1387
  done
1388
fi
1389
 
1390
test -n "$ac_init_help" && exit $ac_status
1391
if $ac_init_version; then
1392
  cat <<\_ACEOF
3616 bpr 1393
WIMS configure 4.01d
3417 bpr 1394
generated by GNU Autoconf 2.65
1395
 
1396
Copyright (C) 2009 Free Software Foundation, Inc.
1397
This configure script is free software; the Free Software Foundation
1398
gives unlimited permission to copy, distribute and modify it.
1399
_ACEOF
1400
  exit
1401
fi
1402
 
1403
## ------------------------ ##
1404
## Autoconf initialization. ##
1405
## ------------------------ ##
1406
 
1407
# ac_fn_c_try_compile LINENO
1408
# --------------------------
1409
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1410
ac_fn_c_try_compile ()
1411
{
1412
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1413
  rm -f conftest.$ac_objext
1414
  if { { ac_try="$ac_compile"
1415
case "(($ac_try" in
1416
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1417
  *) ac_try_echo=$ac_try;;
1418
esac
1419
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1420
$as_echo "$ac_try_echo"; } >&5
1421
  (eval "$ac_compile") 2>conftest.err
1422
  ac_status=$?
1423
  if test -s conftest.err; then
1424
    grep -v '^ *+' conftest.err >conftest.er1
1425
    cat conftest.er1 >&5
1426
    mv -f conftest.er1 conftest.err
1427
  fi
1428
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1429
  test $ac_status = 0; } && {
1430
	 test -z "$ac_c_werror_flag" ||
1431
	 test ! -s conftest.err
1432
       } && test -s conftest.$ac_objext; then :
1433
  ac_retval=0
1434
else
1435
  $as_echo "$as_me: failed program was:" >&5
1436
sed 's/^/| /' conftest.$ac_ext >&5
1437
 
1438
	ac_retval=1
1439
fi
1440
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1441
  as_fn_set_status $ac_retval
1442
 
1443
} # ac_fn_c_try_compile
1444
 
1445
# ac_fn_cxx_try_compile LINENO
1446
# ----------------------------
1447
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1448
ac_fn_cxx_try_compile ()
1449
{
1450
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451
  rm -f conftest.$ac_objext
1452
  if { { ac_try="$ac_compile"
1453
case "(($ac_try" in
1454
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455
  *) ac_try_echo=$ac_try;;
1456
esac
1457
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458
$as_echo "$ac_try_echo"; } >&5
1459
  (eval "$ac_compile") 2>conftest.err
1460
  ac_status=$?
1461
  if test -s conftest.err; then
1462
    grep -v '^ *+' conftest.err >conftest.er1
1463
    cat conftest.er1 >&5
1464
    mv -f conftest.er1 conftest.err
1465
  fi
1466
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467
  test $ac_status = 0; } && {
1468
	 test -z "$ac_cxx_werror_flag" ||
1469
	 test ! -s conftest.err
1470
       } && test -s conftest.$ac_objext; then :
1471
  ac_retval=0
1472
else
1473
  $as_echo "$as_me: failed program was:" >&5
1474
sed 's/^/| /' conftest.$ac_ext >&5
1475
 
1476
	ac_retval=1
1477
fi
1478
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1479
  as_fn_set_status $ac_retval
1480
 
1481
} # ac_fn_cxx_try_compile
1482
 
1483
# ac_fn_c_try_cpp LINENO
1484
# ----------------------
1485
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1486
ac_fn_c_try_cpp ()
1487
{
1488
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1490
case "(($ac_try" in
1491
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1492
  *) ac_try_echo=$ac_try;;
1493
esac
1494
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1495
$as_echo "$ac_try_echo"; } >&5
1496
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1497
  ac_status=$?
1498
  if test -s conftest.err; then
1499
    grep -v '^ *+' conftest.err >conftest.er1
1500
    cat conftest.er1 >&5
1501
    mv -f conftest.er1 conftest.err
1502
  fi
1503
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1504
  test $ac_status = 0; } >/dev/null && {
1505
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1506
	 test ! -s conftest.err
1507
       }; then :
1508
  ac_retval=0
1509
else
1510
  $as_echo "$as_me: failed program was:" >&5
1511
sed 's/^/| /' conftest.$ac_ext >&5
1512
 
1513
    ac_retval=1
1514
fi
1515
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1516
  as_fn_set_status $ac_retval
1517
 
1518
} # ac_fn_c_try_cpp
1519
 
1520
# ac_fn_c_try_link LINENO
1521
# -----------------------
1522
# Try to link conftest.$ac_ext, and return whether this succeeded.
1523
ac_fn_c_try_link ()
1524
{
1525
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1526
  rm -f conftest.$ac_objext conftest$ac_exeext
1527
  if { { ac_try="$ac_link"
1528
case "(($ac_try" in
1529
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530
  *) ac_try_echo=$ac_try;;
1531
esac
1532
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533
$as_echo "$ac_try_echo"; } >&5
1534
  (eval "$ac_link") 2>conftest.err
1535
  ac_status=$?
1536
  if test -s conftest.err; then
1537
    grep -v '^ *+' conftest.err >conftest.er1
1538
    cat conftest.er1 >&5
1539
    mv -f conftest.er1 conftest.err
1540
  fi
1541
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542
  test $ac_status = 0; } && {
1543
	 test -z "$ac_c_werror_flag" ||
1544
	 test ! -s conftest.err
1545
       } && test -s conftest$ac_exeext && {
1546
	 test "$cross_compiling" = yes ||
1547
	 $as_test_x conftest$ac_exeext
1548
       }; then :
1549
  ac_retval=0
1550
else
1551
  $as_echo "$as_me: failed program was:" >&5
1552
sed 's/^/| /' conftest.$ac_ext >&5
1553
 
1554
	ac_retval=1
1555
fi
1556
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1557
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1558
  # interfere with the next link command; also delete a directory that is
1559
  # left behind by Apple's compiler.  We do this before executing the actions.
1560
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1561
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562
  as_fn_set_status $ac_retval
1563
 
1564
} # ac_fn_c_try_link
1565
 
1566
# ac_fn_c_check_func LINENO FUNC VAR
1567
# ----------------------------------
1568
# Tests whether FUNC exists, setting the cache variable VAR accordingly
1569
ac_fn_c_check_func ()
1570
{
1571
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1573
$as_echo_n "checking for $2... " >&6; }
1574
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1575
  $as_echo_n "(cached) " >&6
1576
else
1577
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1578
/* end confdefs.h.  */
1579
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1580
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1581
#define $2 innocuous_$2
1582
 
1583
/* System header to define __stub macros and hopefully few prototypes,
1584
    which can conflict with char $2 (); below.
1585
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1586
    <limits.h> exists even on freestanding compilers.  */
1587
 
1588
#ifdef __STDC__
1589
# include <limits.h>
1590
#else
1591
# include <assert.h>
1592
#endif
1593
 
1594
#undef $2
1595
 
1596
/* Override any GCC internal prototype to avoid an error.
1597
   Use char because int might match the return type of a GCC
1598
   builtin and then its argument prototype would still apply.  */
1599
#ifdef __cplusplus
1600
extern "C"
1601
#endif
1602
char $2 ();
1603
/* The GNU C library defines this for functions which it implements
1604
    to always fail with ENOSYS.  Some functions are actually named
1605
    something starting with __ and the normal name is an alias.  */
1606
#if defined __stub_$2 || defined __stub___$2
1607
choke me
1608
#endif
1609
 
1610
int
1611
main ()
1612
{
1613
return $2 ();
1614
  ;
1615
  return 0;
1616
}
1617
_ACEOF
1618
if ac_fn_c_try_link "$LINENO"; then :
1619
  eval "$3=yes"
1620
else
1621
  eval "$3=no"
1622
fi
1623
rm -f core conftest.err conftest.$ac_objext \
1624
    conftest$ac_exeext conftest.$ac_ext
1625
fi
1626
eval ac_res=\$$3
1627
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1628
$as_echo "$ac_res" >&6; }
1629
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1630
 
1631
} # ac_fn_c_check_func
1632
 
1633
# ac_fn_c_try_run LINENO
1634
# ----------------------
1635
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1636
# that executables *can* be run.
1637
ac_fn_c_try_run ()
1638
{
1639
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640
  if { { ac_try="$ac_link"
1641
case "(($ac_try" in
1642
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643
  *) ac_try_echo=$ac_try;;
1644
esac
1645
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646
$as_echo "$ac_try_echo"; } >&5
1647
  (eval "$ac_link") 2>&5
1648
  ac_status=$?
1649
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1651
  { { case "(($ac_try" in
1652
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653
  *) ac_try_echo=$ac_try;;
1654
esac
1655
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656
$as_echo "$ac_try_echo"; } >&5
1657
  (eval "$ac_try") 2>&5
1658
  ac_status=$?
1659
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1660
  test $ac_status = 0; }; }; then :
1661
  ac_retval=0
1662
else
1663
  $as_echo "$as_me: program exited with status $ac_status" >&5
1664
       $as_echo "$as_me: failed program was:" >&5
1665
sed 's/^/| /' conftest.$ac_ext >&5
1666
 
1667
       ac_retval=$ac_status
1668
fi
1669
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671
  as_fn_set_status $ac_retval
1672
 
1673
} # ac_fn_c_try_run
1674
 
1675
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676
# -------------------------------------------------------
1677
# Tests whether HEADER exists and can be compiled using the include files in
1678
# INCLUDES, setting the cache variable VAR accordingly.
1679
ac_fn_c_check_header_compile ()
1680
{
1681
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683
$as_echo_n "checking for $2... " >&6; }
1684
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1685
  $as_echo_n "(cached) " >&6
1686
else
1687
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688
/* end confdefs.h.  */
1689
$4
1690
#include <$2>
1691
_ACEOF
1692
if ac_fn_c_try_compile "$LINENO"; then :
1693
  eval "$3=yes"
1694
else
1695
  eval "$3=no"
1696
fi
1697
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698
fi
1699
eval ac_res=\$$3
1700
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701
$as_echo "$ac_res" >&6; }
1702
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1703
 
1704
} # ac_fn_c_check_header_compile
1705
 
1706
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1707
# -------------------------------------------------------
1708
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1709
# the include files in INCLUDES and setting the cache variable VAR
1710
# accordingly.
1711
ac_fn_c_check_header_mongrel ()
1712
{
1713
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1714
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1715
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1716
$as_echo_n "checking for $2... " >&6; }
1717
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1718
  $as_echo_n "(cached) " >&6
1719
fi
1720
eval ac_res=\$$3
1721
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722
$as_echo "$ac_res" >&6; }
1723
else
1724
  # Is the header compilable?
1725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1726
$as_echo_n "checking $2 usability... " >&6; }
1727
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728
/* end confdefs.h.  */
1729
$4
1730
#include <$2>
1731
_ACEOF
1732
if ac_fn_c_try_compile "$LINENO"; then :
1733
  ac_header_compiler=yes
1734
else
1735
  ac_header_compiler=no
1736
fi
1737
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1739
$as_echo "$ac_header_compiler" >&6; }
1740
 
1741
# Is the header present?
1742
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1743
$as_echo_n "checking $2 presence... " >&6; }
1744
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745
/* end confdefs.h.  */
1746
#include <$2>
1747
_ACEOF
1748
if ac_fn_c_try_cpp "$LINENO"; then :
1749
  ac_header_preproc=yes
1750
else
1751
  ac_header_preproc=no
1752
fi
1753
rm -f conftest.err conftest.$ac_ext
1754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1755
$as_echo "$ac_header_preproc" >&6; }
1756
 
1757
# So?  What about this header?
1758
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1759
  yes:no: )
1760
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1761
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1762
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1763
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1764
    ;;
1765
  no:yes:* )
1766
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1767
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1768
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1769
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1770
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1771
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1772
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1773
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1774
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1775
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1776
( cat <<\_ASBOX
1777
## ----------------------------- ##
1778
## Report this to wimsdev@cru.fr ##
1779
## ----------------------------- ##
1780
_ASBOX
1781
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1782
    ;;
1783
esac
1784
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785
$as_echo_n "checking for $2... " >&6; }
1786
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1787
  $as_echo_n "(cached) " >&6
1788
else
1789
  eval "$3=\$ac_header_compiler"
1790
fi
1791
eval ac_res=\$$3
1792
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1793
$as_echo "$ac_res" >&6; }
1794
fi
1795
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1796
 
1797
} # ac_fn_c_check_header_mongrel
1798
 
1799
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1800
# -------------------------------------------
1801
# Tests whether TYPE exists after having included INCLUDES, setting cache
1802
# variable VAR accordingly.
1803
ac_fn_c_check_type ()
1804
{
1805
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807
$as_echo_n "checking for $2... " >&6; }
1808
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809
  $as_echo_n "(cached) " >&6
1810
else
1811
  eval "$3=no"
1812
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813
/* end confdefs.h.  */
1814
$4
1815
int
1816
main ()
1817
{
1818
if (sizeof ($2))
1819
	 return 0;
1820
  ;
1821
  return 0;
1822
}
1823
_ACEOF
1824
if ac_fn_c_try_compile "$LINENO"; then :
1825
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826
/* end confdefs.h.  */
1827
$4
1828
int
1829
main ()
1830
{
1831
if (sizeof (($2)))
1832
	    return 0;
1833
  ;
1834
  return 0;
1835
}
1836
_ACEOF
1837
if ac_fn_c_try_compile "$LINENO"; then :
1838
 
1839
else
1840
  eval "$3=yes"
1841
fi
1842
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1843
fi
1844
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845
fi
1846
eval ac_res=\$$3
1847
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848
$as_echo "$ac_res" >&6; }
1849
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1850
 
1851
} # ac_fn_c_check_type
1852
cat >config.log <<_ACEOF
1853
This file contains any messages produced by compilers while
1854
running configure, to aid debugging if configure makes a mistake.
1855
 
3616 bpr 1856
It was created by WIMS $as_me 4.01d, which was
3417 bpr 1857
generated by GNU Autoconf 2.65.  Invocation command line was
1858
 
1859
  $ $0 $@
1860
 
1861
_ACEOF
1862
exec 5>>config.log
1863
{
1864
cat <<_ASUNAME
1865
## --------- ##
1866
## Platform. ##
1867
## --------- ##
1868
 
1869
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1870
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1871
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1872
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1873
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1874
 
1875
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1876
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1877
 
1878
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1879
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1880
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1881
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1882
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1883
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1884
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1885
 
1886
_ASUNAME
1887
 
1888
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1889
for as_dir in $PATH
1890
do
1891
  IFS=$as_save_IFS
1892
  test -z "$as_dir" && as_dir=.
1893
    $as_echo "PATH: $as_dir"
1894
  done
1895
IFS=$as_save_IFS
1896
 
1897
} >&5
1898
 
1899
cat >&5 <<_ACEOF
1900
 
1901
 
1902
## ----------- ##
1903
## Core tests. ##
1904
## ----------- ##
1905
 
1906
_ACEOF
1907
 
1908
 
1909
# Keep a trace of the command line.
1910
# Strip out --no-create and --no-recursion so they do not pile up.
1911
# Strip out --silent because we don't want to record it for future runs.
1912
# Also quote any args containing shell meta-characters.
1913
# Make two passes to allow for proper duplicate-argument suppression.
1914
ac_configure_args=
1915
ac_configure_args0=
1916
ac_configure_args1=
1917
ac_must_keep_next=false
1918
for ac_pass in 1 2
1919
do
1920
  for ac_arg
1921
  do
1922
    case $ac_arg in
1923
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1924
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1925
    | -silent | --silent | --silen | --sile | --sil)
1926
      continue ;;
1927
    *\'*)
1928
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1929
    esac
1930
    case $ac_pass in
1931
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1932
    2)
1933
      as_fn_append ac_configure_args1 " '$ac_arg'"
1934
      if test $ac_must_keep_next = true; then
1935
	ac_must_keep_next=false # Got value, back to normal.
1936
      else
1937
	case $ac_arg in
1938
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1939
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1940
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1941
	  | -with-* | --with-* | -without-* | --without-* | --x)
1942
	    case "$ac_configure_args0 " in
1943
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1944
	    esac
1945
	    ;;
1946
	  -* ) ac_must_keep_next=true ;;
1947
	esac
1948
      fi
1949
      as_fn_append ac_configure_args " '$ac_arg'"
1950
      ;;
1951
    esac
1952
  done
1953
done
1954
{ ac_configure_args0=; unset ac_configure_args0;}
1955
{ ac_configure_args1=; unset ac_configure_args1;}
1956
 
1957
# When interrupted or exit'd, cleanup temporary files, and complete
1958
# config.log.  We remove comments because anyway the quotes in there
1959
# would cause problems or look ugly.
1960
# WARNING: Use '\'' to represent an apostrophe within the trap.
1961
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1962
trap 'exit_status=$?
1963
  # Save into config.log some information that might help in debugging.
1964
  {
1965
    echo
1966
 
1967
    cat <<\_ASBOX
1968
## ---------------- ##
1969
## Cache variables. ##
1970
## ---------------- ##
1971
_ASBOX
1972
    echo
1973
    # The following way of writing the cache mishandles newlines in values,
1974
(
1975
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1976
    eval ac_val=\$$ac_var
1977
    case $ac_val in #(
1978
    *${as_nl}*)
1979
      case $ac_var in #(
1980
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1981
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1982
      esac
1983
      case $ac_var in #(
1984
      _ | IFS | as_nl) ;; #(
1985
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1986
      *) { eval $ac_var=; unset $ac_var;} ;;
1987
      esac ;;
1988
    esac
1989
  done
1990
  (set) 2>&1 |
1991
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1992
    *${as_nl}ac_space=\ *)
1993
      sed -n \
1994
	"s/'\''/'\''\\\\'\'''\''/g;
1995
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1996
      ;; #(
1997
    *)
1998
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1999
      ;;
2000
    esac |
2001
    sort
2002
)
2003
    echo
2004
 
2005
    cat <<\_ASBOX
2006
## ----------------- ##
2007
## Output variables. ##
2008
## ----------------- ##
2009
_ASBOX
2010
    echo
2011
    for ac_var in $ac_subst_vars
2012
    do
2013
      eval ac_val=\$$ac_var
2014
      case $ac_val in
2015
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2016
      esac
2017
      $as_echo "$ac_var='\''$ac_val'\''"
2018
    done | sort
2019
    echo
2020
 
2021
    if test -n "$ac_subst_files"; then
2022
      cat <<\_ASBOX
2023
## ------------------- ##
2024
## File substitutions. ##
2025
## ------------------- ##
2026
_ASBOX
2027
      echo
2028
      for ac_var in $ac_subst_files
2029
      do
2030
	eval ac_val=\$$ac_var
2031
	case $ac_val in
2032
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033
	esac
2034
	$as_echo "$ac_var='\''$ac_val'\''"
2035
      done | sort
2036
      echo
2037
    fi
2038
 
2039
    if test -s confdefs.h; then
2040
      cat <<\_ASBOX
2041
## ----------- ##
2042
## confdefs.h. ##
2043
## ----------- ##
2044
_ASBOX
2045
      echo
2046
      cat confdefs.h
2047
      echo
2048
    fi
2049
    test "$ac_signal" != 0 &&
2050
      $as_echo "$as_me: caught signal $ac_signal"
2051
    $as_echo "$as_me: exit $exit_status"
2052
  } >&5
2053
  rm -f core *.core core.conftest.* &&
2054
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2055
    exit $exit_status
2056
' 0
2057
for ac_signal in 1 2 13 15; do
2058
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2059
done
2060
ac_signal=0
2061
 
2062
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2063
rm -f -r conftest* confdefs.h
2064
 
2065
$as_echo "/* confdefs.h */" > confdefs.h
2066
 
2067
# Predefined preprocessor variables.
2068
 
2069
cat >>confdefs.h <<_ACEOF
2070
#define PACKAGE_NAME "$PACKAGE_NAME"
2071
_ACEOF
2072
 
2073
cat >>confdefs.h <<_ACEOF
2074
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2075
_ACEOF
2076
 
2077
cat >>confdefs.h <<_ACEOF
2078
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2079
_ACEOF
2080
 
2081
cat >>confdefs.h <<_ACEOF
2082
#define PACKAGE_STRING "$PACKAGE_STRING"
2083
_ACEOF
2084
 
2085
cat >>confdefs.h <<_ACEOF
2086
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2087
_ACEOF
2088
 
2089
cat >>confdefs.h <<_ACEOF
2090
#define PACKAGE_URL "$PACKAGE_URL"
2091
_ACEOF
2092
 
2093
 
2094
# Let the site file select an alternate cache file if it wants to.
2095
# Prefer an explicitly selected file to automatically selected ones.
2096
ac_site_file1=NONE
2097
ac_site_file2=NONE
2098
if test -n "$CONFIG_SITE"; then
2099
  ac_site_file1=$CONFIG_SITE
2100
elif test "x$prefix" != xNONE; then
2101
  ac_site_file1=$prefix/share/config.site
2102
  ac_site_file2=$prefix/etc/config.site
2103
else
2104
  ac_site_file1=$ac_default_prefix/share/config.site
2105
  ac_site_file2=$ac_default_prefix/etc/config.site
2106
fi
2107
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2108
do
2109
  test "x$ac_site_file" = xNONE && continue
2110
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2111
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2112
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2113
    sed 's/^/| /' "$ac_site_file" >&5
2114
    . "$ac_site_file"
2115
  fi
2116
done
2117
 
2118
if test -r "$cache_file"; then
2119
  # Some versions of bash will fail to source /dev/null (special files
2120
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2121
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2122
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2123
$as_echo "$as_me: loading cache $cache_file" >&6;}
2124
    case $cache_file in
2125
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2126
      *)                      . "./$cache_file";;
2127
    esac
2128
  fi
2129
else
2130
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2131
$as_echo "$as_me: creating cache $cache_file" >&6;}
2132
  >$cache_file
2133
fi
2134
 
2135
as_fn_append ac_header_list " utime.h"
2136
# Check that the precious variables saved in the cache have kept the same
2137
# value.
2138
ac_cache_corrupted=false
2139
for ac_var in $ac_precious_vars; do
2140
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2141
  eval ac_new_set=\$ac_env_${ac_var}_set
2142
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2143
  eval ac_new_val=\$ac_env_${ac_var}_value
2144
  case $ac_old_set,$ac_new_set in
2145
    set,)
2146
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2147
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2148
      ac_cache_corrupted=: ;;
2149
    ,set)
2150
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2151
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2152
      ac_cache_corrupted=: ;;
2153
    ,);;
2154
    *)
2155
      if test "x$ac_old_val" != "x$ac_new_val"; then
2156
	# differences in whitespace do not lead to failure.
2157
	ac_old_val_w=`echo x $ac_old_val`
2158
	ac_new_val_w=`echo x $ac_new_val`
2159
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2160
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2161
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2162
	  ac_cache_corrupted=:
2163
	else
2164
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2165
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2166
	  eval $ac_var=\$ac_old_val
2167
	fi
2168
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2169
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2170
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2171
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2172
      fi;;
2173
  esac
2174
  # Pass precious variables to config.status.
2175
  if test "$ac_new_set" = set; then
2176
    case $ac_new_val in
2177
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2178
    *) ac_arg=$ac_var=$ac_new_val ;;
2179
    esac
2180
    case " $ac_configure_args " in
2181
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2182
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2183
    esac
2184
  fi
2185
done
2186
if $ac_cache_corrupted; then
2187
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2188
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2189
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2190
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2191
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2192
fi
2193
## -------------------- ##
2194
## Main body of script. ##
2195
## -------------------- ##
2196
 
2197
ac_ext=c
2198
ac_cpp='$CPP $CPPFLAGS'
2199
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202
 
2203
 
2204
 
2205
ac_config_headers="$ac_config_headers config.h:config.hin"
2206
 
2207
 
2208
 
2209
 
2210
 
2211
# Checks for programs.
2212
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2213
$as_echo_n "checking whether ln -s works... " >&6; }
2214
LN_S=$as_ln_s
2215
if test "$LN_S" = "ln -s"; then
2216
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2217
$as_echo "yes" >&6; }
2218
else
2219
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2220
$as_echo "no, using $LN_S" >&6; }
2221
fi
2222
 
2223
if test "$LN_S" != "ln -s"; then
2224
 
2225
  if test "no" = no; then
2226
    echo
2227
    echo ERROR! Your system does not have symbolic links
2228
    echo WIMS cannot be installed. Please report.
2229
    echo
2230
    exit 1
2231
  fi
2232
 
2233
fi
2234
for ac_prog in gawk mawk nawk awk
2235
do
2236
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2237
set dummy $ac_prog; ac_word=$2
2238
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2239
$as_echo_n "checking for $ac_word... " >&6; }
2240
if test "${ac_cv_prog_AWK+set}" = set; then :
2241
  $as_echo_n "(cached) " >&6
2242
else
2243
  if test -n "$AWK"; then
2244
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2245
else
2246
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247
for as_dir in $PATH
2248
do
2249
  IFS=$as_save_IFS
2250
  test -z "$as_dir" && as_dir=.
2251
    for ac_exec_ext in '' $ac_executable_extensions; do
2252
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2253
    ac_cv_prog_AWK="$ac_prog"
2254
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2255
    break 2
2256
  fi
2257
done
2258
  done
2259
IFS=$as_save_IFS
2260
 
2261
fi
2262
fi
2263
AWK=$ac_cv_prog_AWK
2264
if test -n "$AWK"; then
2265
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2266
$as_echo "$AWK" >&6; }
2267
else
2268
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2269
$as_echo "no" >&6; }
2270
fi
2271
 
2272
 
2273
  test -n "$AWK" && break
2274
done
2275
 
2276
for ac_prog in 'bison -y' byacc
2277
do
2278
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2279
set dummy $ac_prog; ac_word=$2
2280
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2281
$as_echo_n "checking for $ac_word... " >&6; }
2282
if test "${ac_cv_prog_YACC+set}" = set; then :
2283
  $as_echo_n "(cached) " >&6
2284
else
2285
  if test -n "$YACC"; then
2286
  ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog"
2296
    $as_echo "$as_me:${as_lineno-$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
YACC=$ac_cv_prog_YACC
2306
if test -n "$YACC"; then
2307
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
2308
$as_echo "$YACC" >&6; }
2309
else
2310
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2311
$as_echo "no" >&6; }
2312
fi
2313
 
2314
 
2315
  test -n "$YACC" && break
2316
done
2317
test -n "$YACC" || YACC="yacc"
2318
 
2319
ac_ext=c
2320
ac_cpp='$CPP $CPPFLAGS'
2321
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2322
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2323
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2324
if test -n "$ac_tool_prefix"; then
2325
  for ac_prog in gcc cc
2326
  do
2327
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2328
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2329
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2330
$as_echo_n "checking for $ac_word... " >&6; }
2331
if test "${ac_cv_prog_CC+set}" = set; then :
2332
  $as_echo_n "(cached) " >&6
2333
else
2334
  if test -n "$CC"; then
2335
  ac_cv_prog_CC="$CC" # Let the user override the test.
2336
else
2337
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338
for as_dir in $PATH
2339
do
2340
  IFS=$as_save_IFS
2341
  test -z "$as_dir" && as_dir=.
2342
    for ac_exec_ext in '' $ac_executable_extensions; do
2343
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2344
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2345
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2346
    break 2
2347
  fi
2348
done
2349
  done
2350
IFS=$as_save_IFS
2351
 
2352
fi
2353
fi
2354
CC=$ac_cv_prog_CC
2355
if test -n "$CC"; then
2356
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2357
$as_echo "$CC" >&6; }
2358
else
2359
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2360
$as_echo "no" >&6; }
2361
fi
2362
 
2363
 
2364
    test -n "$CC" && break
2365
  done
2366
fi
2367
if test -z "$CC"; then
2368
  ac_ct_CC=$CC
2369
  for ac_prog in gcc cc
2370
do
2371
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2372
set dummy $ac_prog; ac_word=$2
2373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2374
$as_echo_n "checking for $ac_word... " >&6; }
2375
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2376
  $as_echo_n "(cached) " >&6
2377
else
2378
  if test -n "$ac_ct_CC"; then
2379
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2380
else
2381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2382
for as_dir in $PATH
2383
do
2384
  IFS=$as_save_IFS
2385
  test -z "$as_dir" && as_dir=.
2386
    for ac_exec_ext in '' $ac_executable_extensions; do
2387
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388
    ac_cv_prog_ac_ct_CC="$ac_prog"
2389
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2390
    break 2
2391
  fi
2392
done
2393
  done
2394
IFS=$as_save_IFS
2395
 
2396
fi
2397
fi
2398
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2399
if test -n "$ac_ct_CC"; then
2400
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2401
$as_echo "$ac_ct_CC" >&6; }
2402
else
2403
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2404
$as_echo "no" >&6; }
2405
fi
2406
 
2407
 
2408
  test -n "$ac_ct_CC" && break
2409
done
2410
 
2411
  if test "x$ac_ct_CC" = x; then
2412
    CC=""
2413
  else
2414
    case $cross_compiling:$ac_tool_warned in
2415
yes:)
2416
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2417
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2418
ac_tool_warned=yes ;;
2419
esac
2420
    CC=$ac_ct_CC
2421
  fi
2422
fi
2423
 
2424
 
2425
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2426
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2427
as_fn_error "no acceptable C compiler found in \$PATH
2428
See \`config.log' for more details." "$LINENO" 5; }
2429
 
2430
# Provide some information about the compiler.
2431
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2432
set X $ac_compile
2433
ac_compiler=$2
2434
for ac_option in --version -v -V -qversion; do
2435
  { { ac_try="$ac_compiler $ac_option >&5"
2436
case "(($ac_try" in
2437
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2438
  *) ac_try_echo=$ac_try;;
2439
esac
2440
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2441
$as_echo "$ac_try_echo"; } >&5
2442
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2443
  ac_status=$?
2444
  if test -s conftest.err; then
2445
    sed '10a\
2446
... rest of stderr output deleted ...
2447
         10q' conftest.err >conftest.er1
2448
    cat conftest.er1 >&5
2449
  fi
2450
  rm -f conftest.er1 conftest.err
2451
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2452
  test $ac_status = 0; }
2453
done
2454
 
2455
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2456
/* end confdefs.h.  */
2457
 
2458
int
2459
main ()
2460
{
2461
 
2462
  ;
2463
  return 0;
2464
}
2465
_ACEOF
2466
ac_clean_files_save=$ac_clean_files
2467
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2468
# Try to create an executable without -o first, disregard a.out.
2469
# It will help us diagnose broken compilers, and finding out an intuition
2470
# of exeext.
2471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2472
$as_echo_n "checking whether the C compiler works... " >&6; }
2473
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2474
 
2475
# The possible output files:
2476
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2477
 
2478
ac_rmfiles=
2479
for ac_file in $ac_files
2480
do
2481
  case $ac_file in
2482
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2483
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2484
  esac
2485
done
2486
rm -f $ac_rmfiles
2487
 
2488
if { { ac_try="$ac_link_default"
2489
case "(($ac_try" in
2490
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491
  *) ac_try_echo=$ac_try;;
2492
esac
2493
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494
$as_echo "$ac_try_echo"; } >&5
2495
  (eval "$ac_link_default") 2>&5
2496
  ac_status=$?
2497
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498
  test $ac_status = 0; }; then :
2499
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2500
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2501
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2502
# so that the user can short-circuit this test for compilers unknown to
2503
# Autoconf.
2504
for ac_file in $ac_files ''
2505
do
2506
  test -f "$ac_file" || continue
2507
  case $ac_file in
2508
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2509
	;;
2510
    [ab].out )
2511
	# We found the default executable, but exeext='' is most
2512
	# certainly right.
2513
	break;;
2514
    *.* )
2515
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2516
	then :; else
2517
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2518
	fi
2519
	# We set ac_cv_exeext here because the later test for it is not
2520
	# safe: cross compilers may not add the suffix if given an `-o'
2521
	# argument, so we may need to know it at that point already.
2522
	# Even if this section looks crufty: it has the advantage of
2523
	# actually working.
2524
	break;;
2525
    * )
2526
	break;;
2527
  esac
2528
done
2529
test "$ac_cv_exeext" = no && ac_cv_exeext=
2530
 
2531
else
2532
  ac_file=''
2533
fi
2534
if test -z "$ac_file"; then :
2535
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2536
$as_echo "no" >&6; }
2537
$as_echo "$as_me: failed program was:" >&5
2538
sed 's/^/| /' conftest.$ac_ext >&5
2539
 
2540
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542
{ as_fn_set_status 77
2543
as_fn_error "C compiler cannot create executables
2544
See \`config.log' for more details." "$LINENO" 5; }; }
2545
else
2546
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2547
$as_echo "yes" >&6; }
2548
fi
2549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2550
$as_echo_n "checking for C compiler default output file name... " >&6; }
2551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2552
$as_echo "$ac_file" >&6; }
2553
ac_exeext=$ac_cv_exeext
2554
 
2555
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2556
ac_clean_files=$ac_clean_files_save
2557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2558
$as_echo_n "checking for suffix of executables... " >&6; }
2559
if { { ac_try="$ac_link"
2560
case "(($ac_try" in
2561
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2562
  *) ac_try_echo=$ac_try;;
2563
esac
2564
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2565
$as_echo "$ac_try_echo"; } >&5
2566
  (eval "$ac_link") 2>&5
2567
  ac_status=$?
2568
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2569
  test $ac_status = 0; }; then :
2570
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2571
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2572
# work properly (i.e., refer to `conftest.exe'), while it won't with
2573
# `rm'.
2574
for ac_file in conftest.exe conftest conftest.*; do
2575
  test -f "$ac_file" || continue
2576
  case $ac_file in
2577
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2578
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2579
	  break;;
2580
    * ) break;;
2581
  esac
2582
done
2583
else
2584
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586
as_fn_error "cannot compute suffix of executables: cannot compile and link
2587
See \`config.log' for more details." "$LINENO" 5; }
2588
fi
2589
rm -f conftest conftest$ac_cv_exeext
2590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2591
$as_echo "$ac_cv_exeext" >&6; }
2592
 
2593
rm -f conftest.$ac_ext
2594
EXEEXT=$ac_cv_exeext
2595
ac_exeext=$EXEEXT
2596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597
/* end confdefs.h.  */
2598
#include <stdio.h>
2599
int
2600
main ()
2601
{
2602
FILE *f = fopen ("conftest.out", "w");
2603
 return ferror (f) || fclose (f) != 0;
2604
 
2605
  ;
2606
  return 0;
2607
}
2608
_ACEOF
2609
ac_clean_files="$ac_clean_files conftest.out"
2610
# Check that the compiler produces executables we can run.  If not, either
2611
# the compiler is broken, or we cross compile.
2612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2613
$as_echo_n "checking whether we are cross compiling... " >&6; }
2614
if test "$cross_compiling" != yes; then
2615
  { { ac_try="$ac_link"
2616
case "(($ac_try" in
2617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618
  *) ac_try_echo=$ac_try;;
2619
esac
2620
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2621
$as_echo "$ac_try_echo"; } >&5
2622
  (eval "$ac_link") 2>&5
2623
  ac_status=$?
2624
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625
  test $ac_status = 0; }
2626
  if { ac_try='./conftest$ac_cv_exeext'
2627
  { { case "(($ac_try" in
2628
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629
  *) ac_try_echo=$ac_try;;
2630
esac
2631
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632
$as_echo "$ac_try_echo"; } >&5
2633
  (eval "$ac_try") 2>&5
2634
  ac_status=$?
2635
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2636
  test $ac_status = 0; }; }; then
2637
    cross_compiling=no
2638
  else
2639
    if test "$cross_compiling" = maybe; then
2640
	cross_compiling=yes
2641
    else
2642
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644
as_fn_error "cannot run C compiled programs.
2645
If you meant to cross compile, use \`--host'.
2646
See \`config.log' for more details." "$LINENO" 5; }
2647
    fi
2648
  fi
2649
fi
2650
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2651
$as_echo "$cross_compiling" >&6; }
2652
 
2653
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2654
ac_clean_files=$ac_clean_files_save
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2656
$as_echo_n "checking for suffix of object files... " >&6; }
2657
if test "${ac_cv_objext+set}" = set; then :
2658
  $as_echo_n "(cached) " >&6
2659
else
2660
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2661
/* end confdefs.h.  */
2662
 
2663
int
2664
main ()
2665
{
2666
 
2667
  ;
2668
  return 0;
2669
}
2670
_ACEOF
2671
rm -f conftest.o conftest.obj
2672
if { { ac_try="$ac_compile"
2673
case "(($ac_try" in
2674
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2675
  *) ac_try_echo=$ac_try;;
2676
esac
2677
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2678
$as_echo "$ac_try_echo"; } >&5
2679
  (eval "$ac_compile") 2>&5
2680
  ac_status=$?
2681
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2682
  test $ac_status = 0; }; then :
2683
  for ac_file in conftest.o conftest.obj conftest.*; do
2684
  test -f "$ac_file" || continue;
2685
  case $ac_file in
2686
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2687
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2688
       break;;
2689
  esac
2690
done
2691
else
2692
  $as_echo "$as_me: failed program was:" >&5
2693
sed 's/^/| /' conftest.$ac_ext >&5
2694
 
2695
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2696
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2697
as_fn_error "cannot compute suffix of object files: cannot compile
2698
See \`config.log' for more details." "$LINENO" 5; }
2699
fi
2700
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2701
fi
2702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2703
$as_echo "$ac_cv_objext" >&6; }
2704
OBJEXT=$ac_cv_objext
2705
ac_objext=$OBJEXT
2706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2707
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2708
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2709
  $as_echo_n "(cached) " >&6
2710
else
2711
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712
/* end confdefs.h.  */
2713
 
2714
int
2715
main ()
2716
{
2717
#ifndef __GNUC__
2718
       choke me
2719
#endif
2720
 
2721
  ;
2722
  return 0;
2723
}
2724
_ACEOF
2725
if ac_fn_c_try_compile "$LINENO"; then :
2726
  ac_compiler_gnu=yes
2727
else
2728
  ac_compiler_gnu=no
2729
fi
2730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2731
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2732
 
2733
fi
2734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2735
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2736
if test $ac_compiler_gnu = yes; then
2737
  GCC=yes
2738
else
2739
  GCC=
2740
fi
2741
ac_test_CFLAGS=${CFLAGS+set}
2742
ac_save_CFLAGS=$CFLAGS
2743
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2744
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2745
if test "${ac_cv_prog_cc_g+set}" = set; then :
2746
  $as_echo_n "(cached) " >&6
2747
else
2748
  ac_save_c_werror_flag=$ac_c_werror_flag
2749
   ac_c_werror_flag=yes
2750
   ac_cv_prog_cc_g=no
2751
   CFLAGS="-g"
2752
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2753
/* end confdefs.h.  */
2754
 
2755
int
2756
main ()
2757
{
2758
 
2759
  ;
2760
  return 0;
2761
}
2762
_ACEOF
2763
if ac_fn_c_try_compile "$LINENO"; then :
2764
  ac_cv_prog_cc_g=yes
2765
else
2766
  CFLAGS=""
2767
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2768
/* end confdefs.h.  */
2769
 
2770
int
2771
main ()
2772
{
2773
 
2774
  ;
2775
  return 0;
2776
}
2777
_ACEOF
2778
if ac_fn_c_try_compile "$LINENO"; then :
2779
 
2780
else
2781
  ac_c_werror_flag=$ac_save_c_werror_flag
2782
	 CFLAGS="-g"
2783
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2784
/* end confdefs.h.  */
2785
 
2786
int
2787
main ()
2788
{
2789
 
2790
  ;
2791
  return 0;
2792
}
2793
_ACEOF
2794
if ac_fn_c_try_compile "$LINENO"; then :
2795
  ac_cv_prog_cc_g=yes
2796
fi
2797
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2798
fi
2799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2800
fi
2801
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802
   ac_c_werror_flag=$ac_save_c_werror_flag
2803
fi
2804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2805
$as_echo "$ac_cv_prog_cc_g" >&6; }
2806
if test "$ac_test_CFLAGS" = set; then
2807
  CFLAGS=$ac_save_CFLAGS
2808
elif test $ac_cv_prog_cc_g = yes; then
2809
  if test "$GCC" = yes; then
2810
    CFLAGS="-g -O2"
2811
  else
2812
    CFLAGS="-g"
2813
  fi
2814
else
2815
  if test "$GCC" = yes; then
2816
    CFLAGS="-O2"
2817
  else
2818
    CFLAGS=
2819
  fi
2820
fi
2821
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2822
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2823
if test "${ac_cv_prog_cc_c89+set}" = set; then :
2824
  $as_echo_n "(cached) " >&6
2825
else
2826
  ac_cv_prog_cc_c89=no
2827
ac_save_CC=$CC
2828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2829
/* end confdefs.h.  */
2830
#include <stdarg.h>
2831
#include <stdio.h>
2832
#include <sys/types.h>
2833
#include <sys/stat.h>
2834
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2835
struct buf { int x; };
2836
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2837
static char *e (p, i)
2838
     char **p;
2839
     int i;
2840
{
2841
  return p[i];
2842
}
2843
static char *f (char * (*g) (char **, int), char **p, ...)
2844
{
2845
  char *s;
2846
  va_list v;
2847
  va_start (v,p);
2848
  s = g (p, va_arg (v,int));
2849
  va_end (v);
2850
  return s;
2851
}
2852
 
2853
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2854
   function prototypes and stuff, but not '\xHH' hex character constants.
2855
   These don't provoke an error unfortunately, instead are silently treated
2856
   as 'x'.  The following induces an error, until -std is added to get
2857
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2858
   array size at least.  It's necessary to write '\x00'==0 to get something
2859
   that's true only with -std.  */
2860
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2861
 
2862
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2863
   inside strings and character constants.  */
2864
#define FOO(x) 'x'
2865
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2866
 
2867
int test (int i, double x);
2868
struct s1 {int (*f) (int a);};
2869
struct s2 {int (*f) (double a);};
2870
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2871
int argc;
2872
char **argv;
2873
int
2874
main ()
2875
{
2876
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2877
  ;
2878
  return 0;
2879
}
2880
_ACEOF
2881
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2882
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2883
do
2884
  CC="$ac_save_CC $ac_arg"
2885
  if ac_fn_c_try_compile "$LINENO"; then :
2886
  ac_cv_prog_cc_c89=$ac_arg
2887
fi
2888
rm -f core conftest.err conftest.$ac_objext
2889
  test "x$ac_cv_prog_cc_c89" != "xno" && break
2890
done
2891
rm -f conftest.$ac_ext
2892
CC=$ac_save_CC
2893
 
2894
fi
2895
# AC_CACHE_VAL
2896
case "x$ac_cv_prog_cc_c89" in
2897
  x)
2898
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2899
$as_echo "none needed" >&6; } ;;
2900
  xno)
2901
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2902
$as_echo "unsupported" >&6; } ;;
2903
  *)
2904
    CC="$CC $ac_cv_prog_cc_c89"
2905
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2906
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2907
esac
2908
if test "x$ac_cv_prog_cc_c89" != xno; then :
2909
 
2910
fi
2911
 
2912
ac_ext=c
2913
ac_cpp='$CPP $CPPFLAGS'
2914
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2915
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2916
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2917
 
2918
ac_ext=cpp
2919
ac_cpp='$CXXCPP $CPPFLAGS'
2920
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2921
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2922
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2923
if test -z "$CXX"; then
2924
  if test -n "$CCC"; then
2925
    CXX=$CCC
2926
  else
2927
    if test -n "$ac_tool_prefix"; then
2928
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2929
  do
2930
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2931
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2932
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2933
$as_echo_n "checking for $ac_word... " >&6; }
2934
if test "${ac_cv_prog_CXX+set}" = set; then :
2935
  $as_echo_n "(cached) " >&6
2936
else
2937
  if test -n "$CXX"; then
2938
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2939
else
2940
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2941
for as_dir in $PATH
2942
do
2943
  IFS=$as_save_IFS
2944
  test -z "$as_dir" && as_dir=.
2945
    for ac_exec_ext in '' $ac_executable_extensions; do
2946
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2947
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2948
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2949
    break 2
2950
  fi
2951
done
2952
  done
2953
IFS=$as_save_IFS
2954
 
2955
fi
2956
fi
2957
CXX=$ac_cv_prog_CXX
2958
if test -n "$CXX"; then
2959
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2960
$as_echo "$CXX" >&6; }
2961
else
2962
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963
$as_echo "no" >&6; }
2964
fi
2965
 
2966
 
2967
    test -n "$CXX" && break
2968
  done
2969
fi
2970
if test -z "$CXX"; then
2971
  ac_ct_CXX=$CXX
2972
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2973
do
2974
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2975
set dummy $ac_prog; ac_word=$2
2976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2977
$as_echo_n "checking for $ac_word... " >&6; }
2978
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2979
  $as_echo_n "(cached) " >&6
2980
else
2981
  if test -n "$ac_ct_CXX"; then
2982
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2983
else
2984
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2985
for as_dir in $PATH
2986
do
2987
  IFS=$as_save_IFS
2988
  test -z "$as_dir" && as_dir=.
2989
    for ac_exec_ext in '' $ac_executable_extensions; do
2990
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2991
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2992
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2993
    break 2
2994
  fi
2995
done
2996
  done
2997
IFS=$as_save_IFS
2998
 
2999
fi
3000
fi
3001
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3002
if test -n "$ac_ct_CXX"; then
3003
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3004
$as_echo "$ac_ct_CXX" >&6; }
3005
else
3006
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3007
$as_echo "no" >&6; }
3008
fi
3009
 
3010
 
3011
  test -n "$ac_ct_CXX" && break
3012
done
3013
 
3014
  if test "x$ac_ct_CXX" = x; then
3015
    CXX="g++"
3016
  else
3017
    case $cross_compiling:$ac_tool_warned in
3018
yes:)
3019
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3020
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3021
ac_tool_warned=yes ;;
3022
esac
3023
    CXX=$ac_ct_CXX
3024
  fi
3025
fi
3026
 
3027
  fi
3028
fi
3029
# Provide some information about the compiler.
3030
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3031
set X $ac_compile
3032
ac_compiler=$2
3033
for ac_option in --version -v -V -qversion; do
3034
  { { ac_try="$ac_compiler $ac_option >&5"
3035
case "(($ac_try" in
3036
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3037
  *) ac_try_echo=$ac_try;;
3038
esac
3039
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3040
$as_echo "$ac_try_echo"; } >&5
3041
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3042
  ac_status=$?
3043
  if test -s conftest.err; then
3044
    sed '10a\
3045
... rest of stderr output deleted ...
3046
         10q' conftest.err >conftest.er1
3047
    cat conftest.er1 >&5
3048
  fi
3049
  rm -f conftest.er1 conftest.err
3050
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051
  test $ac_status = 0; }
3052
done
3053
 
3054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3055
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3056
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3057
  $as_echo_n "(cached) " >&6
3058
else
3059
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3060
/* end confdefs.h.  */
3061
 
3062
int
3063
main ()
3064
{
3065
#ifndef __GNUC__
3066
       choke me
3067
#endif
3068
 
3069
  ;
3070
  return 0;
3071
}
3072
_ACEOF
3073
if ac_fn_cxx_try_compile "$LINENO"; then :
3074
  ac_compiler_gnu=yes
3075
else
3076
  ac_compiler_gnu=no
3077
fi
3078
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3080
 
3081
fi
3082
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3083
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3084
if test $ac_compiler_gnu = yes; then
3085
  GXX=yes
3086
else
3087
  GXX=
3088
fi
3089
ac_test_CXXFLAGS=${CXXFLAGS+set}
3090
ac_save_CXXFLAGS=$CXXFLAGS
3091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3092
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3093
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3094
  $as_echo_n "(cached) " >&6
3095
else
3096
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3097
   ac_cxx_werror_flag=yes
3098
   ac_cv_prog_cxx_g=no
3099
   CXXFLAGS="-g"
3100
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101
/* end confdefs.h.  */
3102
 
3103
int
3104
main ()
3105
{
3106
 
3107
  ;
3108
  return 0;
3109
}
3110
_ACEOF
3111
if ac_fn_cxx_try_compile "$LINENO"; then :
3112
  ac_cv_prog_cxx_g=yes
3113
else
3114
  CXXFLAGS=""
3115
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3116
/* end confdefs.h.  */
3117
 
3118
int
3119
main ()
3120
{
3121
 
3122
  ;
3123
  return 0;
3124
}
3125
_ACEOF
3126
if ac_fn_cxx_try_compile "$LINENO"; then :
3127
 
3128
else
3129
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3130
	 CXXFLAGS="-g"
3131
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3132
/* end confdefs.h.  */
3133
 
3134
int
3135
main ()
3136
{
3137
 
3138
  ;
3139
  return 0;
3140
}
3141
_ACEOF
3142
if ac_fn_cxx_try_compile "$LINENO"; then :
3143
  ac_cv_prog_cxx_g=yes
3144
fi
3145
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3146
fi
3147
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3148
fi
3149
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3150
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3151
fi
3152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3153
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3154
if test "$ac_test_CXXFLAGS" = set; then
3155
  CXXFLAGS=$ac_save_CXXFLAGS
3156
elif test $ac_cv_prog_cxx_g = yes; then
3157
  if test "$GXX" = yes; then
3158
    CXXFLAGS="-g -O2"
3159
  else
3160
    CXXFLAGS="-g"
3161
  fi
3162
else
3163
  if test "$GXX" = yes; then
3164
    CXXFLAGS="-O2"
3165
  else
3166
    CXXFLAGS=
3167
  fi
3168
fi
3169
ac_ext=c
3170
ac_cpp='$CPP $CPPFLAGS'
3171
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3172
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3173
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3174
 
3175
ac_ext=c
3176
ac_cpp='$CPP $CPPFLAGS'
3177
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3178
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3179
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3180
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3181
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3182
# On Suns, sometimes $CPP names a directory.
3183
if test -n "$CPP" && test -d "$CPP"; then
3184
  CPP=
3185
fi
3186
if test -z "$CPP"; then
3187
  if test "${ac_cv_prog_CPP+set}" = set; then :
3188
  $as_echo_n "(cached) " >&6
3189
else
3190
      # Double quotes because CPP needs to be expanded
3191
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3192
    do
3193
      ac_preproc_ok=false
3194
for ac_c_preproc_warn_flag in '' yes
3195
do
3196
  # Use a header file that comes with gcc, so configuring glibc
3197
  # with a fresh cross-compiler works.
3198
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3199
  # <limits.h> exists even on freestanding compilers.
3200
  # On the NeXT, cc -E runs the code through the compiler's parser,
3201
  # not just through cpp. "Syntax error" is here to catch this case.
3202
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3203
/* end confdefs.h.  */
3204
#ifdef __STDC__
3205
# include <limits.h>
3206
#else
3207
# include <assert.h>
3208
#endif
3209
		     Syntax error
3210
_ACEOF
3211
if ac_fn_c_try_cpp "$LINENO"; then :
3212
 
3213
else
3214
  # Broken: fails on valid input.
3215
continue
3216
fi
3217
rm -f conftest.err conftest.$ac_ext
3218
 
3219
  # OK, works on sane cases.  Now check whether nonexistent headers
3220
  # can be detected and how.
3221
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3222
/* end confdefs.h.  */
3223
#include <ac_nonexistent.h>
3224
_ACEOF
3225
if ac_fn_c_try_cpp "$LINENO"; then :
3226
  # Broken: success on invalid input.
3227
continue
3228
else
3229
  # Passes both tests.
3230
ac_preproc_ok=:
3231
break
3232
fi
3233
rm -f conftest.err conftest.$ac_ext
3234
 
3235
done
3236
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3237
rm -f conftest.err conftest.$ac_ext
3238
if $ac_preproc_ok; then :
3239
  break
3240
fi
3241
 
3242
    done
3243
    ac_cv_prog_CPP=$CPP
3244
 
3245
fi
3246
  CPP=$ac_cv_prog_CPP
3247
else
3248
  ac_cv_prog_CPP=$CPP
3249
fi
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3251
$as_echo "$CPP" >&6; }
3252
ac_preproc_ok=false
3253
for ac_c_preproc_warn_flag in '' yes
3254
do
3255
  # Use a header file that comes with gcc, so configuring glibc
3256
  # with a fresh cross-compiler works.
3257
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3258
  # <limits.h> exists even on freestanding compilers.
3259
  # On the NeXT, cc -E runs the code through the compiler's parser,
3260
  # not just through cpp. "Syntax error" is here to catch this case.
3261
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262
/* end confdefs.h.  */
3263
#ifdef __STDC__
3264
# include <limits.h>
3265
#else
3266
# include <assert.h>
3267
#endif
3268
		     Syntax error
3269
_ACEOF
3270
if ac_fn_c_try_cpp "$LINENO"; then :
3271
 
3272
else
3273
  # Broken: fails on valid input.
3274
continue
3275
fi
3276
rm -f conftest.err conftest.$ac_ext
3277
 
3278
  # OK, works on sane cases.  Now check whether nonexistent headers
3279
  # can be detected and how.
3280
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3281
/* end confdefs.h.  */
3282
#include <ac_nonexistent.h>
3283
_ACEOF
3284
if ac_fn_c_try_cpp "$LINENO"; then :
3285
  # Broken: success on invalid input.
3286
continue
3287
else
3288
  # Passes both tests.
3289
ac_preproc_ok=:
3290
break
3291
fi
3292
rm -f conftest.err conftest.$ac_ext
3293
 
3294
done
3295
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3296
rm -f conftest.err conftest.$ac_ext
3297
if $ac_preproc_ok; then :
3298
 
3299
else
3300
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3301
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3302
as_fn_error "C preprocessor \"$CPP\" fails sanity check
3303
See \`config.log' for more details." "$LINENO" 5; }
3304
fi
3305
 
3306
ac_ext=c
3307
ac_cpp='$CPP $CPPFLAGS'
3308
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3309
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3310
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3311
 
3312
 
3313
for ac_prog in flex lex
3314
do
3315
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3316
set dummy $ac_prog; ac_word=$2
3317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318
$as_echo_n "checking for $ac_word... " >&6; }
3319
if test "${ac_cv_prog_LEX+set}" = set; then :
3320
  $as_echo_n "(cached) " >&6
3321
else
3322
  if test -n "$LEX"; then
3323
  ac_cv_prog_LEX="$LEX" # Let the user override the test.
3324
else
3325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326
for as_dir in $PATH
3327
do
3328
  IFS=$as_save_IFS
3329
  test -z "$as_dir" && as_dir=.
3330
    for ac_exec_ext in '' $ac_executable_extensions; do
3331
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332
    ac_cv_prog_LEX="$ac_prog"
3333
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334
    break 2
3335
  fi
3336
done
3337
  done
3338
IFS=$as_save_IFS
3339
 
3340
fi
3341
fi
3342
LEX=$ac_cv_prog_LEX
3343
if test -n "$LEX"; then
3344
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3345
$as_echo "$LEX" >&6; }
3346
else
3347
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348
$as_echo "no" >&6; }
3349
fi
3350
 
3351
 
3352
  test -n "$LEX" && break
3353
done
3354
test -n "$LEX" || LEX=":"
3355
 
3356
if test "x$LEX" != "x:"; then
3357
  cat >conftest.l <<_ACEOF
3358
%%
3359
a { ECHO; }
3360
b { REJECT; }
3361
c { yymore (); }
3362
d { yyless (1); }
3363
e { yyless (input () != 0); }
3364
f { unput (yytext[0]); }
3365
. { BEGIN INITIAL; }
3366
%%
3367
#ifdef YYTEXT_POINTER
3368
extern char *yytext;
3369
#endif
3370
int
3371
main (void)
3372
{
3373
  return ! yylex () + ! yywrap ();
3374
}
3375
_ACEOF
3376
{ { ac_try="$LEX conftest.l"
3377
case "(($ac_try" in
3378
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379
  *) ac_try_echo=$ac_try;;
3380
esac
3381
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382
$as_echo "$ac_try_echo"; } >&5
3383
  (eval "$LEX conftest.l") 2>&5
3384
  ac_status=$?
3385
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3386
  test $ac_status = 0; }
3387
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3388
$as_echo_n "checking lex output file root... " >&6; }
3389
if test "${ac_cv_prog_lex_root+set}" = set; then :
3390
  $as_echo_n "(cached) " >&6
3391
else
3392
 
3393
if test -f lex.yy.c; then
3394
  ac_cv_prog_lex_root=lex.yy
3395
elif test -f lexyy.c; then
3396
  ac_cv_prog_lex_root=lexyy
3397
else
3398
  as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
3399
fi
3400
fi
3401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3402
$as_echo "$ac_cv_prog_lex_root" >&6; }
3403
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3404
 
3405
if test -z "${LEXLIB+set}"; then
3406
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3407
$as_echo_n "checking lex library... " >&6; }
3408
if test "${ac_cv_lib_lex+set}" = set; then :
3409
  $as_echo_n "(cached) " >&6
3410
else
3411
 
3412
    ac_save_LIBS=$LIBS
3413
    ac_cv_lib_lex='none needed'
3414
    for ac_lib in '' -lfl -ll; do
3415
      LIBS="$ac_lib $ac_save_LIBS"
3416
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417
/* end confdefs.h.  */
3418
`cat $LEX_OUTPUT_ROOT.c`
3419
_ACEOF
3420
if ac_fn_c_try_link "$LINENO"; then :
3421
  ac_cv_lib_lex=$ac_lib
3422
fi
3423
rm -f core conftest.err conftest.$ac_objext \
3424
    conftest$ac_exeext conftest.$ac_ext
3425
      test "$ac_cv_lib_lex" != 'none needed' && break
3426
    done
3427
    LIBS=$ac_save_LIBS
3428
 
3429
fi
3430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3431
$as_echo "$ac_cv_lib_lex" >&6; }
3432
  test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3433
fi
3434
 
3435
 
3436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3437
$as_echo_n "checking whether yytext is a pointer... " >&6; }
3438
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3439
  $as_echo_n "(cached) " >&6
3440
else
3441
  # POSIX says lex can declare yytext either as a pointer or an array; the
3442
# default is implementation-dependent.  Figure out which it is, since
3443
# not all implementations provide the %pointer and %array declarations.
3444
ac_cv_prog_lex_yytext_pointer=no
3445
ac_save_LIBS=$LIBS
3446
LIBS="$LEXLIB $ac_save_LIBS"
3447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448
/* end confdefs.h.  */
3449
#define YYTEXT_POINTER 1
3450
`cat $LEX_OUTPUT_ROOT.c`
3451
_ACEOF
3452
if ac_fn_c_try_link "$LINENO"; then :
3453
  ac_cv_prog_lex_yytext_pointer=yes
3454
fi
3455
rm -f core conftest.err conftest.$ac_objext \
3456
    conftest$ac_exeext conftest.$ac_ext
3457
LIBS=$ac_save_LIBS
3458
 
3459
fi
3460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3461
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3462
if test $ac_cv_prog_lex_yytext_pointer = yes; then
3463
 
3464
$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
3465
 
3466
fi
3467
rm -f conftest.l $LEX_OUTPUT_ROOT.c
3468
 
3469
fi
3470
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3471
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3472
set x ${MAKE-make}
3473
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3474
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3475
  $as_echo_n "(cached) " >&6
3476
else
3477
  cat >conftest.make <<\_ACEOF
3478
SHELL = /bin/sh
3479
all:
3480
	@echo '@@@%%%=$(MAKE)=@@@%%%'
3481
_ACEOF
3482
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3483
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3484
  *@@@%%%=?*=@@@%%%*)
3485
    eval ac_cv_prog_make_${ac_make}_set=yes;;
3486
  *)
3487
    eval ac_cv_prog_make_${ac_make}_set=no;;
3488
esac
3489
rm -f conftest.make
3490
fi
3491
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3492
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3493
$as_echo "yes" >&6; }
3494
  SET_MAKE=
3495
else
3496
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497
$as_echo "no" >&6; }
3498
  SET_MAKE="MAKE=${MAKE-make}"
3499
fi
3500
 
3501
if test -n "$ac_tool_prefix"; then
3502
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3503
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3504
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3505
$as_echo_n "checking for $ac_word... " >&6; }
3506
if test "${ac_cv_prog_RANLIB+set}" = set; then :
3507
  $as_echo_n "(cached) " >&6
3508
else
3509
  if test -n "$RANLIB"; then
3510
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3511
else
3512
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513
for as_dir in $PATH
3514
do
3515
  IFS=$as_save_IFS
3516
  test -z "$as_dir" && as_dir=.
3517
    for ac_exec_ext in '' $ac_executable_extensions; do
3518
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3519
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3520
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3521
    break 2
3522
  fi
3523
done
3524
  done
3525
IFS=$as_save_IFS
3526
 
3527
fi
3528
fi
3529
RANLIB=$ac_cv_prog_RANLIB
3530
if test -n "$RANLIB"; then
3531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
3532
$as_echo "$RANLIB" >&6; }
3533
else
3534
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3535
$as_echo "no" >&6; }
3536
fi
3537
 
3538
 
3539
fi
3540
if test -z "$ac_cv_prog_RANLIB"; then
3541
  ac_ct_RANLIB=$RANLIB
3542
  # Extract the first word of "ranlib", so it can be a program name with args.
3543
set dummy ranlib; ac_word=$2
3544
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545
$as_echo_n "checking for $ac_word... " >&6; }
3546
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
3547
  $as_echo_n "(cached) " >&6
3548
else
3549
  if test -n "$ac_ct_RANLIB"; then
3550
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3551
else
3552
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553
for as_dir in $PATH
3554
do
3555
  IFS=$as_save_IFS
3556
  test -z "$as_dir" && as_dir=.
3557
    for ac_exec_ext in '' $ac_executable_extensions; do
3558
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3560
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561
    break 2
3562
  fi
3563
done
3564
  done
3565
IFS=$as_save_IFS
3566
 
3567
fi
3568
fi
3569
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3570
if test -n "$ac_ct_RANLIB"; then
3571
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
3572
$as_echo "$ac_ct_RANLIB" >&6; }
3573
else
3574
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575
$as_echo "no" >&6; }
3576
fi
3577
 
3578
  if test "x$ac_ct_RANLIB" = x; then
3579
    RANLIB=":"
3580
  else
3581
    case $cross_compiling:$ac_tool_warned in
3582
yes:)
3583
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3584
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3585
ac_tool_warned=yes ;;
3586
esac
3587
    RANLIB=$ac_ct_RANLIB
3588
  fi
3589
else
3590
  RANLIB="$ac_cv_prog_RANLIB"
3591
fi
3592
 
3593
# Extract the first word of "strip", so it can be a program name with args.
3594
set dummy strip; ac_word=$2
3595
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3596
$as_echo_n "checking for $ac_word... " >&6; }
3597
if test "${ac_cv_prog_STRIP+set}" = set; then :
3598
  $as_echo_n "(cached) " >&6
3599
else
3600
  if test -n "$STRIP"; then
3601
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3602
else
3603
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604
for as_dir in $PATH
3605
do
3606
  IFS=$as_save_IFS
3607
  test -z "$as_dir" && as_dir=.
3608
    for ac_exec_ext in '' $ac_executable_extensions; do
3609
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3610
    ac_cv_prog_STRIP="strip"
3611
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3612
    break 2
3613
  fi
3614
done
3615
  done
3616
IFS=$as_save_IFS
3617
 
3618
  test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
3619
fi
3620
fi
3621
STRIP=$ac_cv_prog_STRIP
3622
if test -n "$STRIP"; then
3623
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3624
$as_echo "$STRIP" >&6; }
3625
else
3626
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3627
$as_echo "no" >&6; }
3628
fi
3629
 
3630
 
3631
 
3632
 
3633
  # Extract the first word of "tex", so it can be a program name with args.
3634
set dummy tex; ac_word=$2
3635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636
$as_echo_n "checking for $ac_word... " >&6; }
3637
if test "${ac_cv_path_TEX+set}" = set; then :
3638
  $as_echo_n "(cached) " >&6
3639
else
3640
  case $TEX in
3641
  [\\/]* | ?:[\\/]*)
3642
  ac_cv_path_TEX="$TEX" # Let the user override the test with a path.
3643
  ;;
3644
  *)
3645
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646
for as_dir in $PATH
3647
do
3648
  IFS=$as_save_IFS
3649
  test -z "$as_dir" && as_dir=.
3650
    for ac_exec_ext in '' $ac_executable_extensions; do
3651
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652
    ac_cv_path_TEX="$as_dir/$ac_word$ac_exec_ext"
3653
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654
    break 2
3655
  fi
3656
done
3657
  done
3658
IFS=$as_save_IFS
3659
 
3660
  ;;
3661
esac
3662
fi
3663
TEX=$ac_cv_path_TEX
3664
if test -n "$TEX"; then
3665
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
3666
$as_echo "$TEX" >&6; }
3667
else
3668
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669
$as_echo "no" >&6; }
3670
fi
3671
 
3672
 
3673
  if test -z "`eval echo '$'TEX`"; then
3674
    echo ERROR: WIMS requires TeX
3675
    echo Please install this package then restart configure.
3676
    exit 1
3677
  fi
3678
 
3679
#WIMS_NEED([GP], [gp], [Pari/GP])
3680
#WIMS_NEED([CONVERT], [convert], [ImageMagick])
3681
 
3682
# Checks for libraries.
3683
SAVE=$LIBS
3684
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
3685
$as_echo_n "checking for cos in -lm... " >&6; }
3686
if test "${ac_cv_lib_m_cos+set}" = set; then :
3687
  $as_echo_n "(cached) " >&6
3688
else
3689
  ac_check_lib_save_LIBS=$LIBS
3690
LIBS="-lm  $LIBS"
3691
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692
/* end confdefs.h.  */
3693
 
3694
/* Override any GCC internal prototype to avoid an error.
3695
   Use char because int might match the return type of a GCC
3696
   builtin and then its argument prototype would still apply.  */
3697
#ifdef __cplusplus
3698
extern "C"
3699
#endif
3700
char cos ();
3701
int
3702
main ()
3703
{
3704
return cos ();
3705
  ;
3706
  return 0;
3707
}
3708
_ACEOF
3709
if ac_fn_c_try_link "$LINENO"; then :
3710
  ac_cv_lib_m_cos=yes
3711
else
3712
  ac_cv_lib_m_cos=no
3713
fi
3714
rm -f core conftest.err conftest.$ac_objext \
3715
    conftest$ac_exeext conftest.$ac_ext
3716
LIBS=$ac_check_lib_save_LIBS
3717
fi
3718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
3719
$as_echo "$ac_cv_lib_m_cos" >&6; }
3720
if test "x$ac_cv_lib_m_cos" = x""yes; then :
3721
  cat >>confdefs.h <<_ACEOF
3722
#define HAVE_LIBM 1
3723
_ACEOF
3724
 
3725
  LIBS="-lm $LIBS"
3726
 
3727
fi
3728
 
3729
for ac_func in floor pow rint sqrt
3730
do :
3731
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3732
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3733
eval as_val=\$$as_ac_var
3734
   if test "x$as_val" = x""yes; then :
3735
  cat >>confdefs.h <<_ACEOF
3736
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3737
_ACEOF
3738
 
3739
fi
3740
done
3741
 
3742
 
3743
LIBS=$SAVE
3744
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
3745
$as_echo_n "checking for crypt in -lcrypt... " >&6; }
3746
if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
3747
  $as_echo_n "(cached) " >&6
3748
else
3749
  ac_check_lib_save_LIBS=$LIBS
3750
LIBS="-lcrypt  $LIBS"
3751
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3752
/* end confdefs.h.  */
3753
 
3754
/* Override any GCC internal prototype to avoid an error.
3755
   Use char because int might match the return type of a GCC
3756
   builtin and then its argument prototype would still apply.  */
3757
#ifdef __cplusplus
3758
extern "C"
3759
#endif
3760
char crypt ();
3761
int
3762
main ()
3763
{
3764
return crypt ();
3765
  ;
3766
  return 0;
3767
}
3768
_ACEOF
3769
if ac_fn_c_try_link "$LINENO"; then :
3770
  ac_cv_lib_crypt_crypt=yes
3771
else
3772
  ac_cv_lib_crypt_crypt=no
3773
fi
3774
rm -f core conftest.err conftest.$ac_objext \
3775
    conftest$ac_exeext conftest.$ac_ext
3776
LIBS=$ac_check_lib_save_LIBS
3777
fi
3778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
3779
$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
3780
if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
3781
  cat >>confdefs.h <<_ACEOF
3782
#define HAVE_LIBCRYPT 1
3783
_ACEOF
3784
 
3785
  LIBS="-lcrypt $LIBS"
3786
 
3787
fi
3788
 
3789
for ac_func in crypt
3790
do :
3791
  ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
3792
if test "x$ac_cv_func_crypt" = x""yes; then :
3793
  cat >>confdefs.h <<_ACEOF
3794
#define HAVE_CRYPT 1
3795
_ACEOF
3796
 
3797
fi
3798
done
3799
 
3800
CRYPTLIB=$LIBS
3801
 
3802
LIBS=$SAVE
3803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lfl" >&5
3804
$as_echo_n "checking for main in -lfl... " >&6; }
3805
if test "${ac_cv_lib_fl_main+set}" = set; then :
3806
  $as_echo_n "(cached) " >&6
3807
else
3808
  ac_check_lib_save_LIBS=$LIBS
3809
LIBS="-lfl  $LIBS"
3810
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811
/* end confdefs.h.  */
3812
 
3813
 
3814
int
3815
main ()
3816
{
3817
return main ();
3818
  ;
3819
  return 0;
3820
}
3821
_ACEOF
3822
if ac_fn_c_try_link "$LINENO"; then :
3823
  ac_cv_lib_fl_main=yes
3824
else
3825
  ac_cv_lib_fl_main=no
3826
fi
3827
rm -f core conftest.err conftest.$ac_objext \
3828
    conftest$ac_exeext conftest.$ac_ext
3829
LIBS=$ac_check_lib_save_LIBS
3830
fi
3831
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fl_main" >&5
3832
$as_echo "$ac_cv_lib_fl_main" >&6; }
3833
if test "x$ac_cv_lib_fl_main" = x""yes; then :
3834
  cat >>confdefs.h <<_ACEOF
3835
#define HAVE_LIBFL 1
3836
_ACEOF
3837
 
3838
  LIBS="-lfl $LIBS"
3839
 
3840
fi
3841
 
3842
FLEXLIB=$LIBS
3843
 
3844
LIBS=$SAVE
3845
fun=gethostbyname
3846
for ac_func in $fun
3847
do :
3848
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3849
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3850
eval as_val=\$$as_ac_var
3851
   if test "x$as_val" = x""yes; then :
3852
  cat >>confdefs.h <<_ACEOF
3853
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3854
_ACEOF
3855
 
3856
fi
3857
done
3858
 
3859
if test "$ac_cv_func_gethostbyname" = no; then
3860
  as_ac_Lib=`$as_echo "ac_cv_lib_nsl_$fun" | $as_tr_sh`
3861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lnsl" >&5
3862
$as_echo_n "checking for $fun in -lnsl... " >&6; }
3863
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
3864
  $as_echo_n "(cached) " >&6
3865
else
3866
  ac_check_lib_save_LIBS=$LIBS
3867
LIBS="-lnsl  $LIBS"
3868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3869
/* end confdefs.h.  */
3870
 
3871
/* Override any GCC internal prototype to avoid an error.
3872
   Use char because int might match the return type of a GCC
3873
   builtin and then its argument prototype would still apply.  */
3874
#ifdef __cplusplus
3875
extern "C"
3876
#endif
3877
char $fun ();
3878
int
3879
main ()
3880
{
3881
return $fun ();
3882
  ;
3883
  return 0;
3884
}
3885
_ACEOF
3886
if ac_fn_c_try_link "$LINENO"; then :
3887
  eval "$as_ac_Lib=yes"
3888
else
3889
  eval "$as_ac_Lib=no"
3890
fi
3891
rm -f core conftest.err conftest.$ac_objext \
3892
    conftest$ac_exeext conftest.$ac_ext
3893
LIBS=$ac_check_lib_save_LIBS
3894
fi
3895
eval ac_res=\$$as_ac_Lib
3896
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3897
$as_echo "$ac_res" >&6; }
3898
eval as_val=\$$as_ac_Lib
3899
   if test "x$as_val" = x""yes; then :
3900
  cat >>confdefs.h <<_ACEOF
3901
#define HAVE_LIBNSL 1
3902
_ACEOF
3903
 
3904
  LIBS="-lnsl $LIBS"
3905
 
3906
fi
3907
 
3908
 
3909
  if test "$ac_cv_lib_gethostbyname" = no; then
3910
    echo
3911
    echo ERROR! Your system does not have $fun
3912
    echo WIMS cannot be installed. Please report.
3913
    echo
3914
    exit 1
3915
  fi
3916
 
3917
fi
3918
 
3919
fun=gethostname
3920
for ac_func in $fun
3921
do :
3922
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3923
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3924
eval as_val=\$$as_ac_var
3925
   if test "x$as_val" = x""yes; then :
3926
  cat >>confdefs.h <<_ACEOF
3927
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3928
_ACEOF
3929
 
3930
fi
3931
done
3932
 
3933
 
3934
  if test "$ac_cv_func_gethostname" = no; then
3935
    echo
3936
    echo ERROR! Your system does not have $fun
3937
    echo WIMS cannot be installed. Please report.
3938
    echo
3939
    exit 1
3940
  fi
3941
 
3942
 
3943
fun=socket
3944
for ac_func in $fun
3945
do :
3946
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
3947
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
3948
eval as_val=\$$as_ac_var
3949
   if test "x$as_val" = x""yes; then :
3950
  cat >>confdefs.h <<_ACEOF
3951
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
3952
_ACEOF
3953
 
3954
fi
3955
done
3956
 
3957
if test "$ac_cv_func_socket" = no; then
3958
  as_ac_Lib=`$as_echo "ac_cv_lib_socket_$fun" | $as_tr_sh`
3959
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lsocket" >&5
3960
$as_echo_n "checking for $fun in -lsocket... " >&6; }
3961
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
3962
  $as_echo_n "(cached) " >&6
3963
else
3964
  ac_check_lib_save_LIBS=$LIBS
3965
LIBS="-lsocket  $LIBS"
3966
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967
/* end confdefs.h.  */
3968
 
3969
/* Override any GCC internal prototype to avoid an error.
3970
   Use char because int might match the return type of a GCC
3971
   builtin and then its argument prototype would still apply.  */
3972
#ifdef __cplusplus
3973
extern "C"
3974
#endif
3975
char $fun ();
3976
int
3977
main ()
3978
{
3979
return $fun ();
3980
  ;
3981
  return 0;
3982
}
3983
_ACEOF
3984
if ac_fn_c_try_link "$LINENO"; then :
3985
  eval "$as_ac_Lib=yes"
3986
else
3987
  eval "$as_ac_Lib=no"
3988
fi
3989
rm -f core conftest.err conftest.$ac_objext \
3990
    conftest$ac_exeext conftest.$ac_ext
3991
LIBS=$ac_check_lib_save_LIBS
3992
fi
3993
eval ac_res=\$$as_ac_Lib
3994
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3995
$as_echo "$ac_res" >&6; }
3996
eval as_val=\$$as_ac_Lib
3997
   if test "x$as_val" = x""yes; then :
3998
  cat >>confdefs.h <<_ACEOF
3999
#define HAVE_LIBSOCKET 1
4000
_ACEOF
4001
 
4002
  LIBS="-lsocket $LIBS"
4003
 
4004
fi
4005
 
4006
  if test "$ac_cv_lib_socket" = no; then
4007
    as_ac_Lib=`$as_echo "ac_cv_lib_socket_$fun" | $as_tr_sh`
4008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lsocket" >&5
4009
$as_echo_n "checking for $fun in -lsocket... " >&6; }
4010
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4011
  $as_echo_n "(cached) " >&6
4012
else
4013
  ac_check_lib_save_LIBS=$LIBS
4014
LIBS="-lsocket -lnsl $LIBS"
4015
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4016
/* end confdefs.h.  */
4017
 
4018
/* Override any GCC internal prototype to avoid an error.
4019
   Use char because int might match the return type of a GCC
4020
   builtin and then its argument prototype would still apply.  */
4021
#ifdef __cplusplus
4022
extern "C"
4023
#endif
4024
char $fun ();
4025
int
4026
main ()
4027
{
4028
return $fun ();
4029
  ;
4030
  return 0;
4031
}
4032
_ACEOF
4033
if ac_fn_c_try_link "$LINENO"; then :
4034
  eval "$as_ac_Lib=yes"
4035
else
4036
  eval "$as_ac_Lib=no"
4037
fi
4038
rm -f core conftest.err conftest.$ac_objext \
4039
    conftest$ac_exeext conftest.$ac_ext
4040
LIBS=$ac_check_lib_save_LIBS
4041
fi
4042
eval ac_res=\$$as_ac_Lib
4043
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4044
$as_echo "$ac_res" >&6; }
4045
eval as_val=\$$as_ac_Lib
4046
   if test "x$as_val" = x""yes; then :
4047
  cat >>confdefs.h <<_ACEOF
4048
#define HAVE_LIBSOCKET 1
4049
_ACEOF
4050
 
4051
  LIBS="-lsocket $LIBS"
4052
 
4053
fi
4054
 
4055
 
4056
  if test "$ac_cv_lib_socket" = no; then
4057
    echo
4058
    echo ERROR! Your system does not have $fun
4059
    echo WIMS cannot be installed. Please report.
4060
    echo
4061
    exit 1
4062
  fi
4063
 
4064
  fi
4065
fi
4066
 
4067
fun=inet_ntoa
4068
for ac_func in $fun
4069
do :
4070
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4071
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4072
eval as_val=\$$as_ac_var
4073
   if test "x$as_val" = x""yes; then :
4074
  cat >>confdefs.h <<_ACEOF
4075
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4076
_ACEOF
4077
 
4078
fi
4079
done
4080
 
4081
if test "$ac_cv_func_inet_ntoa" = no; then
4082
  as_ac_Lib=`$as_echo "ac_cv_lib_socket_$fun" | $as_tr_sh`
4083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lsocket" >&5
4084
$as_echo_n "checking for $fun in -lsocket... " >&6; }
4085
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4086
  $as_echo_n "(cached) " >&6
4087
else
4088
  ac_check_lib_save_LIBS=$LIBS
4089
LIBS="-lsocket -lnsl $LIBS"
4090
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4091
/* end confdefs.h.  */
4092
 
4093
/* Override any GCC internal prototype to avoid an error.
4094
   Use char because int might match the return type of a GCC
4095
   builtin and then its argument prototype would still apply.  */
4096
#ifdef __cplusplus
4097
extern "C"
4098
#endif
4099
char $fun ();
4100
int
4101
main ()
4102
{
4103
return $fun ();
4104
  ;
4105
  return 0;
4106
}
4107
_ACEOF
4108
if ac_fn_c_try_link "$LINENO"; then :
4109
  eval "$as_ac_Lib=yes"
4110
else
4111
  eval "$as_ac_Lib=no"
4112
fi
4113
rm -f core conftest.err conftest.$ac_objext \
4114
    conftest$ac_exeext conftest.$ac_ext
4115
LIBS=$ac_check_lib_save_LIBS
4116
fi
4117
eval ac_res=\$$as_ac_Lib
4118
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4119
$as_echo "$ac_res" >&6; }
4120
eval as_val=\$$as_ac_Lib
4121
   if test "x$as_val" = x""yes; then :
4122
  cat >>confdefs.h <<_ACEOF
4123
#define HAVE_LIBSOCKET 1
4124
_ACEOF
4125
 
4126
  LIBS="-lsocket $LIBS"
4127
 
4128
fi
4129
 
4130
fi
4131
fun=inet_aton
4132
for ac_func in $fun
4133
do :
4134
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4135
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4136
eval as_val=\$$as_ac_var
4137
   if test "x$as_val" = x""yes; then :
4138
  cat >>confdefs.h <<_ACEOF
4139
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4140
_ACEOF
4141
 
4142
fi
4143
done
4144
 
4145
if test "$ac_cv_func_inet_aton" = no; then
4146
  as_ac_Lib=`$as_echo "ac_cv_lib_resolv_$fun" | $as_tr_sh`
4147
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $fun in -lresolv" >&5
4148
$as_echo_n "checking for $fun in -lresolv... " >&6; }
4149
if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then :
4150
  $as_echo_n "(cached) " >&6
4151
else
4152
  ac_check_lib_save_LIBS=$LIBS
4153
LIBS="-lresolv  $LIBS"
4154
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4155
/* end confdefs.h.  */
4156
 
4157
/* Override any GCC internal prototype to avoid an error.
4158
   Use char because int might match the return type of a GCC
4159
   builtin and then its argument prototype would still apply.  */
4160
#ifdef __cplusplus
4161
extern "C"
4162
#endif
4163
char $fun ();
4164
int
4165
main ()
4166
{
4167
return $fun ();
4168
  ;
4169
  return 0;
4170
}
4171
_ACEOF
4172
if ac_fn_c_try_link "$LINENO"; then :
4173
  eval "$as_ac_Lib=yes"
4174
else
4175
  eval "$as_ac_Lib=no"
4176
fi
4177
rm -f core conftest.err conftest.$ac_objext \
4178
    conftest$ac_exeext conftest.$ac_ext
4179
LIBS=$ac_check_lib_save_LIBS
4180
fi
4181
eval ac_res=\$$as_ac_Lib
4182
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4183
$as_echo "$ac_res" >&6; }
4184
eval as_val=\$$as_ac_Lib
4185
   if test "x$as_val" = x""yes; then :
4186
  cat >>confdefs.h <<_ACEOF
4187
#define HAVE_LIBRESOLV 1
4188
_ACEOF
4189
 
4190
  LIBS="-lresolv $LIBS"
4191
 
4192
fi
4193
 
4194
fi
4195
NETLIBS=$LIBS
4196
 
4197
LIBS=$SAVE
4198
 
4199
# Checks for header files.
4200
 
4201
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4202
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4203
if test "${ac_cv_path_GREP+set}" = set; then :
4204
  $as_echo_n "(cached) " >&6
4205
else
4206
  if test -z "$GREP"; then
4207
  ac_path_GREP_found=false
4208
  # Loop through the user's path and test for each of PROGNAME-LIST
4209
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4211
do
4212
  IFS=$as_save_IFS
4213
  test -z "$as_dir" && as_dir=.
4214
    for ac_prog in grep ggrep; do
4215
    for ac_exec_ext in '' $ac_executable_extensions; do
4216
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4217
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4218
# Check for GNU ac_path_GREP and select it if it is found.
4219
  # Check for GNU $ac_path_GREP
4220
case `"$ac_path_GREP" --version 2>&1` in
4221
*GNU*)
4222
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4223
*)
4224
  ac_count=0
4225
  $as_echo_n 0123456789 >"conftest.in"
4226
  while :
4227
  do
4228
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4229
    mv "conftest.tmp" "conftest.in"
4230
    cp "conftest.in" "conftest.nl"
4231
    $as_echo 'GREP' >> "conftest.nl"
4232
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4233
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4234
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4235
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4236
      # Best one so far, save it but keep looking for a better one
4237
      ac_cv_path_GREP="$ac_path_GREP"
4238
      ac_path_GREP_max=$ac_count
4239
    fi
4240
    # 10*(2^10) chars as input seems more than enough
4241
    test $ac_count -gt 10 && break
4242
  done
4243
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4244
esac
4245
 
4246
      $ac_path_GREP_found && break 3
4247
    done
4248
  done
4249
  done
4250
IFS=$as_save_IFS
4251
  if test -z "$ac_cv_path_GREP"; then
4252
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4253
  fi
4254
else
4255
  ac_cv_path_GREP=$GREP
4256
fi
4257
 
4258
fi
4259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4260
$as_echo "$ac_cv_path_GREP" >&6; }
4261
 GREP="$ac_cv_path_GREP"
4262
 
4263
 
4264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4265
$as_echo_n "checking for egrep... " >&6; }
4266
if test "${ac_cv_path_EGREP+set}" = set; then :
4267
  $as_echo_n "(cached) " >&6
4268
else
4269
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4270
   then ac_cv_path_EGREP="$GREP -E"
4271
   else
4272
     if test -z "$EGREP"; then
4273
  ac_path_EGREP_found=false
4274
  # Loop through the user's path and test for each of PROGNAME-LIST
4275
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4277
do
4278
  IFS=$as_save_IFS
4279
  test -z "$as_dir" && as_dir=.
4280
    for ac_prog in egrep; do
4281
    for ac_exec_ext in '' $ac_executable_extensions; do
4282
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4283
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4284
# Check for GNU ac_path_EGREP and select it if it is found.
4285
  # Check for GNU $ac_path_EGREP
4286
case `"$ac_path_EGREP" --version 2>&1` in
4287
*GNU*)
4288
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4289
*)
4290
  ac_count=0
4291
  $as_echo_n 0123456789 >"conftest.in"
4292
  while :
4293
  do
4294
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4295
    mv "conftest.tmp" "conftest.in"
4296
    cp "conftest.in" "conftest.nl"
4297
    $as_echo 'EGREP' >> "conftest.nl"
4298
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4299
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4300
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4301
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4302
      # Best one so far, save it but keep looking for a better one
4303
      ac_cv_path_EGREP="$ac_path_EGREP"
4304
      ac_path_EGREP_max=$ac_count
4305
    fi
4306
    # 10*(2^10) chars as input seems more than enough
4307
    test $ac_count -gt 10 && break
4308
  done
4309
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4310
esac
4311
 
4312
      $ac_path_EGREP_found && break 3
4313
    done
4314
  done
4315
  done
4316
IFS=$as_save_IFS
4317
  if test -z "$ac_cv_path_EGREP"; then
4318
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4319
  fi
4320
else
4321
  ac_cv_path_EGREP=$EGREP
4322
fi
4323
 
4324
   fi
4325
fi
4326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4327
$as_echo "$ac_cv_path_EGREP" >&6; }
4328
 EGREP="$ac_cv_path_EGREP"
4329
 
4330
 
4331
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4332
$as_echo_n "checking for ANSI C header files... " >&6; }
4333
if test "${ac_cv_header_stdc+set}" = set; then :
4334
  $as_echo_n "(cached) " >&6
4335
else
4336
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337
/* end confdefs.h.  */
4338
#include <stdlib.h>
4339
#include <stdarg.h>
4340
#include <string.h>
4341
#include <float.h>
4342
 
4343
int
4344
main ()
4345
{
4346
 
4347
  ;
4348
  return 0;
4349
}
4350
_ACEOF
4351
if ac_fn_c_try_compile "$LINENO"; then :
4352
  ac_cv_header_stdc=yes
4353
else
4354
  ac_cv_header_stdc=no
4355
fi
4356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4357
 
4358
if test $ac_cv_header_stdc = yes; then
4359
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4360
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361
/* end confdefs.h.  */
4362
#include <string.h>
4363
 
4364
_ACEOF
4365
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4366
  $EGREP "memchr" >/dev/null 2>&1; then :
4367
 
4368
else
4369
  ac_cv_header_stdc=no
4370
fi
4371
rm -f conftest*
4372
 
4373
fi
4374
 
4375
if test $ac_cv_header_stdc = yes; then
4376
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4377
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4378
/* end confdefs.h.  */
4379
#include <stdlib.h>
4380
 
4381
_ACEOF
4382
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4383
  $EGREP "free" >/dev/null 2>&1; then :
4384
 
4385
else
4386
  ac_cv_header_stdc=no
4387
fi
4388
rm -f conftest*
4389
 
4390
fi
4391
 
4392
if test $ac_cv_header_stdc = yes; then
4393
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4394
  if test "$cross_compiling" = yes; then :
4395
  :
4396
else
4397
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398
/* end confdefs.h.  */
4399
#include <ctype.h>
4400
#include <stdlib.h>
4401
#if ((' ' & 0x0FF) == 0x020)
4402
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4403
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4404
#else
4405
# define ISLOWER(c) \
4406
		   (('a' <= (c) && (c) <= 'i') \
4407
		     || ('j' <= (c) && (c) <= 'r') \
4408
		     || ('s' <= (c) && (c) <= 'z'))
4409
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4410
#endif
4411
 
4412
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4413
int
4414
main ()
4415
{
4416
  int i;
4417
  for (i = 0; i < 256; i++)
4418
    if (XOR (islower (i), ISLOWER (i))
4419
	|| toupper (i) != TOUPPER (i))
4420
      return 2;
4421
  return 0;
4422
}
4423
_ACEOF
4424
if ac_fn_c_try_run "$LINENO"; then :
4425
 
4426
else
4427
  ac_cv_header_stdc=no
4428
fi
4429
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4430
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4431
fi
4432
 
4433
fi
4434
fi
4435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4436
$as_echo "$ac_cv_header_stdc" >&6; }
4437
if test $ac_cv_header_stdc = yes; then
4438
 
4439
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4440
 
4441
fi
4442
 
4443
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4444
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4445
		  inttypes.h stdint.h unistd.h
4446
do :
4447
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4448
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4449
"
4450
eval as_val=\$$as_ac_Header
4451
   if test "x$as_val" = x""yes; then :
4452
  cat >>confdefs.h <<_ACEOF
4453
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4454
_ACEOF
4455
 
4456
fi
4457
 
4458
done
4459
 
4460
 
4461
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4462
# for constant arguments.  Useless!
4463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4464
$as_echo_n "checking for working alloca.h... " >&6; }
4465
if test "${ac_cv_working_alloca_h+set}" = set; then :
4466
  $as_echo_n "(cached) " >&6
4467
else
4468
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469
/* end confdefs.h.  */
4470
#include <alloca.h>
4471
int
4472
main ()
4473
{
4474
char *p = (char *) alloca (2 * sizeof (int));
4475
			  if (p) return 0;
4476
  ;
4477
  return 0;
4478
}
4479
_ACEOF
4480
if ac_fn_c_try_link "$LINENO"; then :
4481
  ac_cv_working_alloca_h=yes
4482
else
4483
  ac_cv_working_alloca_h=no
4484
fi
4485
rm -f core conftest.err conftest.$ac_objext \
4486
    conftest$ac_exeext conftest.$ac_ext
4487
fi
4488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4489
$as_echo "$ac_cv_working_alloca_h" >&6; }
4490
if test $ac_cv_working_alloca_h = yes; then
4491
 
4492
$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4493
 
4494
fi
4495
 
4496
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4497
$as_echo_n "checking for alloca... " >&6; }
4498
if test "${ac_cv_func_alloca_works+set}" = set; then :
4499
  $as_echo_n "(cached) " >&6
4500
else
4501
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502
/* end confdefs.h.  */
4503
#ifdef __GNUC__
4504
# define alloca __builtin_alloca
4505
#else
4506
# ifdef _MSC_VER
4507
#  include <malloc.h>
4508
#  define alloca _alloca
4509
# else
4510
#  ifdef HAVE_ALLOCA_H
4511
#   include <alloca.h>
4512
#  else
4513
#   ifdef _AIX
4514
 #pragma alloca
4515
#   else
4516
#    ifndef alloca /* predefined by HP cc +Olibcalls */
4517
char *alloca ();
4518
#    endif
4519
#   endif
4520
#  endif
4521
# endif
4522
#endif
4523
 
4524
int
4525
main ()
4526
{
4527
char *p = (char *) alloca (1);
4528
				    if (p) return 0;
4529
  ;
4530
  return 0;
4531
}
4532
_ACEOF
4533
if ac_fn_c_try_link "$LINENO"; then :
4534
  ac_cv_func_alloca_works=yes
4535
else
4536
  ac_cv_func_alloca_works=no
4537
fi
4538
rm -f core conftest.err conftest.$ac_objext \
4539
    conftest$ac_exeext conftest.$ac_ext
4540
fi
4541
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4542
$as_echo "$ac_cv_func_alloca_works" >&6; }
4543
 
4544
if test $ac_cv_func_alloca_works = yes; then
4545
 
4546
$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4547
 
4548
else
4549
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4550
# that cause trouble.  Some versions do not even contain alloca or
4551
# contain a buggy version.  If you still want to use their alloca,
4552
# use ar to extract alloca.o from them instead of compiling alloca.c.
4553
 
4554
ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4555
 
4556
$as_echo "#define C_ALLOCA 1" >>confdefs.h
4557
 
4558
 
4559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4560
$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4561
if test "${ac_cv_os_cray+set}" = set; then :
4562
  $as_echo_n "(cached) " >&6
4563
else
4564
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4565
/* end confdefs.h.  */
4566
#if defined CRAY && ! defined CRAY2
4567
webecray
4568
#else
4569
wenotbecray
4570
#endif
4571
 
4572
_ACEOF
4573
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4574
  $EGREP "webecray" >/dev/null 2>&1; then :
4575
  ac_cv_os_cray=yes
4576
else
4577
  ac_cv_os_cray=no
4578
fi
4579
rm -f conftest*
4580
 
4581
fi
4582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4583
$as_echo "$ac_cv_os_cray" >&6; }
4584
if test $ac_cv_os_cray = yes; then
4585
  for ac_func in _getb67 GETB67 getb67; do
4586
    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4587
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4588
eval as_val=\$$as_ac_var
4589
   if test "x$as_val" = x""yes; then :
4590
 
4591
cat >>confdefs.h <<_ACEOF
4592
#define CRAY_STACKSEG_END $ac_func
4593
_ACEOF
4594
 
4595
    break
4596
fi
4597
 
4598
  done
4599
fi
4600
 
4601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4602
$as_echo_n "checking stack direction for C alloca... " >&6; }
4603
if test "${ac_cv_c_stack_direction+set}" = set; then :
4604
  $as_echo_n "(cached) " >&6
4605
else
4606
  if test "$cross_compiling" = yes; then :
4607
  ac_cv_c_stack_direction=0
4608
else
4609
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610
/* end confdefs.h.  */
4611
$ac_includes_default
4612
int
4613
find_stack_direction ()
4614
{
4615
  static char *addr = 0;
4616
  auto char dummy;
4617
  if (addr == 0)
4618
    {
4619
      addr = &dummy;
4620
      return find_stack_direction ();
4621
    }
4622
  else
4623
    return (&dummy > addr) ? 1 : -1;
4624
}
4625
 
4626
int
4627
main ()
4628
{
4629
  return find_stack_direction () < 0;
4630
}
4631
_ACEOF
4632
if ac_fn_c_try_run "$LINENO"; then :
4633
  ac_cv_c_stack_direction=1
4634
else
4635
  ac_cv_c_stack_direction=-1
4636
fi
4637
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4638
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4639
fi
4640
 
4641
fi
4642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4643
$as_echo "$ac_cv_c_stack_direction" >&6; }
4644
cat >>confdefs.h <<_ACEOF
4645
#define STACK_DIRECTION $ac_cv_c_stack_direction
4646
_ACEOF
4647
 
4648
 
4649
fi
4650
 
4651
ac_header_dirent=no
4652
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4653
  as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4655
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4656
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
4657
  $as_echo_n "(cached) " >&6
4658
else
4659
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660
/* end confdefs.h.  */
4661
#include <sys/types.h>
4662
#include <$ac_hdr>
4663
 
4664
int
4665
main ()
4666
{
4667
if ((DIR *) 0)
4668
return 0;
4669
  ;
4670
  return 0;
4671
}
4672
_ACEOF
4673
if ac_fn_c_try_compile "$LINENO"; then :
4674
  eval "$as_ac_Header=yes"
4675
else
4676
  eval "$as_ac_Header=no"
4677
fi
4678
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4679
fi
4680
eval ac_res=\$$as_ac_Header
4681
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4682
$as_echo "$ac_res" >&6; }
4683
eval as_val=\$$as_ac_Header
4684
   if test "x$as_val" = x""yes; then :
4685
  cat >>confdefs.h <<_ACEOF
4686
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4687
_ACEOF
4688
 
4689
ac_header_dirent=$ac_hdr; break
4690
fi
4691
 
4692
done
4693
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4694
if test $ac_header_dirent = dirent.h; then
4695
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4696
$as_echo_n "checking for library containing opendir... " >&6; }
4697
if test "${ac_cv_search_opendir+set}" = set; then :
4698
  $as_echo_n "(cached) " >&6
4699
else
4700
  ac_func_search_save_LIBS=$LIBS
4701
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702
/* end confdefs.h.  */
4703
 
4704
/* Override any GCC internal prototype to avoid an error.
4705
   Use char because int might match the return type of a GCC
4706
   builtin and then its argument prototype would still apply.  */
4707
#ifdef __cplusplus
4708
extern "C"
4709
#endif
4710
char opendir ();
4711
int
4712
main ()
4713
{
4714
return opendir ();
4715
  ;
4716
  return 0;
4717
}
4718
_ACEOF
4719
for ac_lib in '' dir; do
4720
  if test -z "$ac_lib"; then
4721
    ac_res="none required"
4722
  else
4723
    ac_res=-l$ac_lib
4724
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4725
  fi
4726
  if ac_fn_c_try_link "$LINENO"; then :
4727
  ac_cv_search_opendir=$ac_res
4728
fi
4729
rm -f core conftest.err conftest.$ac_objext \
4730
    conftest$ac_exeext
4731
  if test "${ac_cv_search_opendir+set}" = set; then :
4732
  break
4733
fi
4734
done
4735
if test "${ac_cv_search_opendir+set}" = set; then :
4736
 
4737
else
4738
  ac_cv_search_opendir=no
4739
fi
4740
rm conftest.$ac_ext
4741
LIBS=$ac_func_search_save_LIBS
4742
fi
4743
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4744
$as_echo "$ac_cv_search_opendir" >&6; }
4745
ac_res=$ac_cv_search_opendir
4746
if test "$ac_res" != no; then :
4747
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4748
 
4749
fi
4750
 
4751
else
4752
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4753
$as_echo_n "checking for library containing opendir... " >&6; }
4754
if test "${ac_cv_search_opendir+set}" = set; then :
4755
  $as_echo_n "(cached) " >&6
4756
else
4757
  ac_func_search_save_LIBS=$LIBS
4758
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759
/* end confdefs.h.  */
4760
 
4761
/* Override any GCC internal prototype to avoid an error.
4762
   Use char because int might match the return type of a GCC
4763
   builtin and then its argument prototype would still apply.  */
4764
#ifdef __cplusplus
4765
extern "C"
4766
#endif
4767
char opendir ();
4768
int
4769
main ()
4770
{
4771
return opendir ();
4772
  ;
4773
  return 0;
4774
}
4775
_ACEOF
4776
for ac_lib in '' x; do
4777
  if test -z "$ac_lib"; then
4778
    ac_res="none required"
4779
  else
4780
    ac_res=-l$ac_lib
4781
    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4782
  fi
4783
  if ac_fn_c_try_link "$LINENO"; then :
4784
  ac_cv_search_opendir=$ac_res
4785
fi
4786
rm -f core conftest.err conftest.$ac_objext \
4787
    conftest$ac_exeext
4788
  if test "${ac_cv_search_opendir+set}" = set; then :
4789
  break
4790
fi
4791
done
4792
if test "${ac_cv_search_opendir+set}" = set; then :
4793
 
4794
else
4795
  ac_cv_search_opendir=no
4796
fi
4797
rm conftest.$ac_ext
4798
LIBS=$ac_func_search_save_LIBS
4799
fi
4800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4801
$as_echo "$ac_cv_search_opendir" >&6; }
4802
ac_res=$ac_cv_search_opendir
4803
if test "$ac_res" != no; then :
4804
  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4805
 
4806
fi
4807
 
4808
fi
4809
 
4810
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4811
$as_echo_n "checking for ANSI C header files... " >&6; }
4812
if test "${ac_cv_header_stdc+set}" = set; then :
4813
  $as_echo_n "(cached) " >&6
4814
else
4815
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816
/* end confdefs.h.  */
4817
#include <stdlib.h>
4818
#include <stdarg.h>
4819
#include <string.h>
4820
#include <float.h>
4821
 
4822
int
4823
main ()
4824
{
4825
 
4826
  ;
4827
  return 0;
4828
}
4829
_ACEOF
4830
if ac_fn_c_try_compile "$LINENO"; then :
4831
  ac_cv_header_stdc=yes
4832
else
4833
  ac_cv_header_stdc=no
4834
fi
4835
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4836
 
4837
if test $ac_cv_header_stdc = yes; then
4838
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4839
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840
/* end confdefs.h.  */
4841
#include <string.h>
4842
 
4843
_ACEOF
4844
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4845
  $EGREP "memchr" >/dev/null 2>&1; then :
4846
 
4847
else
4848
  ac_cv_header_stdc=no
4849
fi
4850
rm -f conftest*
4851
 
4852
fi
4853
 
4854
if test $ac_cv_header_stdc = yes; then
4855
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4856
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857
/* end confdefs.h.  */
4858
#include <stdlib.h>
4859
 
4860
_ACEOF
4861
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4862
  $EGREP "free" >/dev/null 2>&1; then :
4863
 
4864
else
4865
  ac_cv_header_stdc=no
4866
fi
4867
rm -f conftest*
4868
 
4869
fi
4870
 
4871
if test $ac_cv_header_stdc = yes; then
4872
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4873
  if test "$cross_compiling" = yes; then :
4874
  :
4875
else
4876
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4877
/* end confdefs.h.  */
4878
#include <ctype.h>
4879
#include <stdlib.h>
4880
#if ((' ' & 0x0FF) == 0x020)
4881
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4882
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4883
#else
4884
# define ISLOWER(c) \
4885
		   (('a' <= (c) && (c) <= 'i') \
4886
		     || ('j' <= (c) && (c) <= 'r') \
4887
		     || ('s' <= (c) && (c) <= 'z'))
4888
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4889
#endif
4890
 
4891
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4892
int
4893
main ()
4894
{
4895
  int i;
4896
  for (i = 0; i < 256; i++)
4897
    if (XOR (islower (i), ISLOWER (i))
4898
	|| toupper (i) != TOUPPER (i))
4899
      return 2;
4900
  return 0;
4901
}
4902
_ACEOF
4903
if ac_fn_c_try_run "$LINENO"; then :
4904
 
4905
else
4906
  ac_cv_header_stdc=no
4907
fi
4908
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4909
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4910
fi
4911
 
4912
fi
4913
fi
4914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4915
$as_echo "$ac_cv_header_stdc" >&6; }
4916
if test $ac_cv_header_stdc = yes; then
4917
 
4918
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4919
 
4920
fi
4921
 
4922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4923
$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4924
if test "${ac_cv_header_sys_wait_h+set}" = set; then :
4925
  $as_echo_n "(cached) " >&6
4926
else
4927
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4928
/* end confdefs.h.  */
4929
#include <sys/types.h>
4930
#include <sys/wait.h>
4931
#ifndef WEXITSTATUS
4932
# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4933
#endif
4934
#ifndef WIFEXITED
4935
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4936
#endif
4937
 
4938
int
4939
main ()
4940
{
4941
  int s;
4942
  wait (&s);
4943
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4944
  ;
4945
  return 0;
4946
}
4947
_ACEOF
4948
if ac_fn_c_try_compile "$LINENO"; then :
4949
  ac_cv_header_sys_wait_h=yes
4950
else
4951
  ac_cv_header_sys_wait_h=no
4952
fi
4953
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4954
fi
4955
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4956
$as_echo "$ac_cv_header_sys_wait_h" >&6; }
4957
if test $ac_cv_header_sys_wait_h = yes; then
4958
 
4959
$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4960
 
4961
fi
4962
 
4963
ac_fn_c_check_header_mongrel "$LINENO" "memory.h" "ac_cv_header_memory_h" "$ac_includes_default"
4964
if test "x$ac_cv_header_memory_h" = x""yes; then :
4965
 
4966
$as_echo "#define NEED_MEMORY_H 1" >>confdefs.h
4967
 
4968
fi
4969
 
4970
 
4971
for ac_header in string.h memory.h
4972
do :
4973
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4974
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4975
eval as_val=\$$as_ac_Header
4976
   if test "x$as_val" = x""yes; then :
4977
  cat >>confdefs.h <<_ACEOF
4978
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4979
_ACEOF
4980
 
4981
fi
4982
 
4983
done
4984
 
4985
for ac_header in crypt.h arpa/inet.h fcntl.h malloc.h netdb.h netinet/in.h \
4986
stdlib.h string.h sys/socket.h sys/time.h unistd.h utime.h
4987
do :
4988
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4989
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4990
eval as_val=\$$as_ac_Header
4991
   if test "x$as_val" = x""yes; then :
4992
  cat >>confdefs.h <<_ACEOF
4993
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4994
_ACEOF
4995
 
4996
fi
4997
 
4998
done
4999
 
5000
 
5001
# Checks for typedefs, structures, and compiler characteristics.
5002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5003
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5004
if test "${ac_cv_c_const+set}" = set; then :
5005
  $as_echo_n "(cached) " >&6
5006
else
5007
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5008
/* end confdefs.h.  */
5009
 
5010
int
5011
main ()
5012
{
5013
/* FIXME: Include the comments suggested by Paul. */
5014
#ifndef __cplusplus
5015
  /* Ultrix mips cc rejects this.  */
5016
  typedef int charset[2];
5017
  const charset cs;
5018
  /* SunOS 4.1.1 cc rejects this.  */
5019
  char const *const *pcpcc;
5020
  char **ppc;
5021
  /* NEC SVR4.0.2 mips cc rejects this.  */
5022
  struct point {int x, y;};
5023
  static struct point const zero = {0,0};
5024
  /* AIX XL C 1.02.0.0 rejects this.
5025
     It does not let you subtract one const X* pointer from another in
5026
     an arm of an if-expression whose if-part is not a constant
5027
     expression */
5028
  const char *g = "string";
5029
  pcpcc = &g + (g ? g-g : 0);
5030
  /* HPUX 7.0 cc rejects these. */
5031
  ++pcpcc;
5032
  ppc = (char**) pcpcc;
5033
  pcpcc = (char const *const *) ppc;
5034
  { /* SCO 3.2v4 cc rejects this.  */
5035
    char *t;
5036
    char const *s = 0 ? (char *) 0 : (char const *) 0;
5037
 
5038
    *t++ = 0;
5039
    if (s) return 0;
5040
  }
5041
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
5042
    int x[] = {25, 17};
5043
    const int *foo = &x[0];
5044
    ++foo;
5045
  }
5046
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5047
    typedef const int *iptr;
5048
    iptr p = 0;
5049
    ++p;
5050
  }
5051
  { /* AIX XL C 1.02.0.0 rejects this saying
5052
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5053
    struct s { int j; const int *ap[3]; };
5054
    struct s *b; b->j = 5;
5055
  }
5056
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5057
    const int foo = 10;
5058
    if (!foo) return 0;
5059
  }
5060
  return !cs[0] && !zero.x;
5061
#endif
5062
 
5063
  ;
5064
  return 0;
5065
}
5066
_ACEOF
5067
if ac_fn_c_try_compile "$LINENO"; then :
5068
  ac_cv_c_const=yes
5069
else
5070
  ac_cv_c_const=no
5071
fi
5072
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5073
fi
5074
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5075
$as_echo "$ac_cv_c_const" >&6; }
5076
if test $ac_cv_c_const = no; then
5077
 
5078
$as_echo "#define const /**/" >>confdefs.h
5079
 
5080
fi
5081
 
5082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5083
$as_echo_n "checking for inline... " >&6; }
5084
if test "${ac_cv_c_inline+set}" = set; then :
5085
  $as_echo_n "(cached) " >&6
5086
else
5087
  ac_cv_c_inline=no
5088
for ac_kw in inline __inline__ __inline; do
5089
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5090
/* end confdefs.h.  */
5091
#ifndef __cplusplus
5092
typedef int foo_t;
5093
static $ac_kw foo_t static_foo () {return 0; }
5094
$ac_kw foo_t foo () {return 0; }
5095
#endif
5096
 
5097
_ACEOF
5098
if ac_fn_c_try_compile "$LINENO"; then :
5099
  ac_cv_c_inline=$ac_kw
5100
fi
5101
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102
  test "$ac_cv_c_inline" != no && break
5103
done
5104
 
5105
fi
5106
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5107
$as_echo "$ac_cv_c_inline" >&6; }
5108
 
5109
case $ac_cv_c_inline in
5110
  inline | yes) ;;
5111
  *)
5112
    case $ac_cv_c_inline in
5113
      no) ac_val=;;
5114
      *) ac_val=$ac_cv_c_inline;;
5115
    esac
5116
    cat >>confdefs.h <<_ACEOF
5117
#ifndef __cplusplus
5118
#define inline $ac_val
5119
#endif
5120
_ACEOF
5121
    ;;
5122
esac
5123
 
5124
ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
5125
if test "x$ac_cv_type_pid_t" = x""yes; then :
5126
 
5127
else
5128
 
5129
cat >>confdefs.h <<_ACEOF
5130
#define pid_t int
5131
_ACEOF
5132
 
5133
fi
5134
 
5135
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5136
if test "x$ac_cv_type_size_t" = x""yes; then :
5137
 
5138
else
5139
 
5140
cat >>confdefs.h <<_ACEOF
5141
#define size_t unsigned int
5142
_ACEOF
5143
 
5144
fi
5145
 
5146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5147
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5148
if test "${ac_cv_header_time+set}" = set; then :
5149
  $as_echo_n "(cached) " >&6
5150
else
5151
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152
/* end confdefs.h.  */
5153
#include <sys/types.h>
5154
#include <sys/time.h>
5155
#include <time.h>
5156
 
5157
int
5158
main ()
5159
{
5160
if ((struct tm *) 0)
5161
return 0;
5162
  ;
5163
  return 0;
5164
}
5165
_ACEOF
5166
if ac_fn_c_try_compile "$LINENO"; then :
5167
  ac_cv_header_time=yes
5168
else
5169
  ac_cv_header_time=no
5170
fi
5171
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5172
fi
5173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5174
$as_echo "$ac_cv_header_time" >&6; }
5175
if test $ac_cv_header_time = yes; then
5176
 
5177
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5178
 
5179
fi
5180
 
5181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5182
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5183
if test "${ac_cv_struct_tm+set}" = set; then :
5184
  $as_echo_n "(cached) " >&6
5185
else
5186
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187
/* end confdefs.h.  */
5188
#include <sys/types.h>
5189
#include <time.h>
5190
 
5191
int
5192
main ()
5193
{
5194
struct tm tm;
5195
				     int *p = &tm.tm_sec;
5196
				     return !p;
5197
  ;
5198
  return 0;
5199
}
5200
_ACEOF
5201
if ac_fn_c_try_compile "$LINENO"; then :
5202
  ac_cv_struct_tm=time.h
5203
else
5204
  ac_cv_struct_tm=sys/time.h
5205
fi
5206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5207
fi
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5209
$as_echo "$ac_cv_struct_tm" >&6; }
5210
if test $ac_cv_struct_tm = sys/time.h; then
5211
 
5212
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5213
 
5214
fi
5215
 
5216
ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
5217
#include <sys/types.h>
5218
#include <sys/socket.h>
5219
"
5220
if test "x$ac_cv_type_socklen_t" = x""yes; then :
5221
 
5222
cat >>confdefs.h <<_ACEOF
5223
#define HAVE_SOCKLEN_T 1
5224
_ACEOF
5225
 
5226
 
5227
fi
5228
 
5229
 
5230
# Runpath
5231
RPATH=
5232
case "$CC+$with_dynamic" in
5233
  gcc+yes) RPATH="-Xlinker -rpath -Xlinker ../lib:../../lib:../../../lib";;
5234
esac
5235
 
5236
# Checks for library functions.
5237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
5238
$as_echo_n "checking for error_at_line... " >&6; }
5239
if test "${ac_cv_lib_error_at_line+set}" = set; then :
5240
  $as_echo_n "(cached) " >&6
5241
else
5242
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243
/* end confdefs.h.  */
5244
#include <error.h>
5245
int
5246
main ()
5247
{
5248
error_at_line (0, 0, "", 0, "an error occurred");
5249
  ;
5250
  return 0;
5251
}
5252
_ACEOF
5253
if ac_fn_c_try_link "$LINENO"; then :
5254
  ac_cv_lib_error_at_line=yes
5255
else
5256
  ac_cv_lib_error_at_line=no
5257
fi
5258
rm -f core conftest.err conftest.$ac_objext \
5259
    conftest$ac_exeext conftest.$ac_ext
5260
fi
5261
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
5262
$as_echo "$ac_cv_lib_error_at_line" >&6; }
5263
if test $ac_cv_lib_error_at_line = no; then
5264
  case " $LIBOBJS " in
5265
  *" error.$ac_objext "* ) ;;
5266
  *) LIBOBJS="$LIBOBJS error.$ac_objext"
5267
 ;;
5268
esac
5269
 
5270
fi
5271
 
5272
for ac_header in vfork.h
5273
do :
5274
  ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
5275
if test "x$ac_cv_header_vfork_h" = x""yes; then :
5276
  cat >>confdefs.h <<_ACEOF
5277
#define HAVE_VFORK_H 1
5278
_ACEOF
5279
 
5280
fi
5281
 
5282
done
5283
 
5284
for ac_func in fork vfork
5285
do :
5286
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5287
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5288
eval as_val=\$$as_ac_var
5289
   if test "x$as_val" = x""yes; then :
5290
  cat >>confdefs.h <<_ACEOF
5291
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5292
_ACEOF
5293
 
5294
fi
5295
done
5296
 
5297
if test "x$ac_cv_func_fork" = xyes; then
5298
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
5299
$as_echo_n "checking for working fork... " >&6; }
5300
if test "${ac_cv_func_fork_works+set}" = set; then :
5301
  $as_echo_n "(cached) " >&6
5302
else
5303
  if test "$cross_compiling" = yes; then :
5304
  ac_cv_func_fork_works=cross
5305
else
5306
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307
/* end confdefs.h.  */
5308
$ac_includes_default
5309
int
5310
main ()
5311
{
5312
 
5313
	  /* By Ruediger Kuhlmann. */
5314
	  return fork () < 0;
5315
 
5316
  ;
5317
  return 0;
5318
}
5319
_ACEOF
5320
if ac_fn_c_try_run "$LINENO"; then :
5321
  ac_cv_func_fork_works=yes
5322
else
5323
  ac_cv_func_fork_works=no
5324
fi
5325
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5326
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5327
fi
5328
 
5329
fi
5330
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
5331
$as_echo "$ac_cv_func_fork_works" >&6; }
5332
 
5333
else
5334
  ac_cv_func_fork_works=$ac_cv_func_fork
5335
fi
5336
if test "x$ac_cv_func_fork_works" = xcross; then
5337
  case $host in
5338
    *-*-amigaos* | *-*-msdosdjgpp*)
5339
      # Override, as these systems have only a dummy fork() stub
5340
      ac_cv_func_fork_works=no
5341
      ;;
5342
    *)
5343
      ac_cv_func_fork_works=yes
5344
      ;;
5345
  esac
5346
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
5347
$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
5348
fi
5349
ac_cv_func_vfork_works=$ac_cv_func_vfork
5350
if test "x$ac_cv_func_vfork" = xyes; then
5351
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
5352
$as_echo_n "checking for working vfork... " >&6; }
5353
if test "${ac_cv_func_vfork_works+set}" = set; then :
5354
  $as_echo_n "(cached) " >&6
5355
else
5356
  if test "$cross_compiling" = yes; then :
5357
  ac_cv_func_vfork_works=cross
5358
else
5359
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360
/* end confdefs.h.  */
5361
/* Thanks to Paul Eggert for this test.  */
5362
$ac_includes_default
5363
#include <sys/wait.h>
5364
#ifdef HAVE_VFORK_H
5365
# include <vfork.h>
5366
#endif
5367
/* On some sparc systems, changes by the child to local and incoming
5368
   argument registers are propagated back to the parent.  The compiler
5369
   is told about this with #include <vfork.h>, but some compilers
5370
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
5371
   static variable whose address is put into a register that is
5372
   clobbered by the vfork.  */
5373
static void
5374
#ifdef __cplusplus
5375
sparc_address_test (int arg)
5376
# else
5377
sparc_address_test (arg) int arg;
5378
#endif
5379
{
5380
  static pid_t child;
5381
  if (!child) {
5382
    child = vfork ();
5383
    if (child < 0) {
5384
      perror ("vfork");
5385
      _exit(2);
5386
    }
5387
    if (!child) {
5388
      arg = getpid();
5389
      write(-1, "", 0);
5390
      _exit (arg);
5391
    }
5392
  }
5393
}
5394
 
5395
int
5396
main ()
5397
{
5398
  pid_t parent = getpid ();
5399
  pid_t child;
5400
 
5401
  sparc_address_test (0);
5402
 
5403
  child = vfork ();
5404
 
5405
  if (child == 0) {
5406
    /* Here is another test for sparc vfork register problems.  This
5407
       test uses lots of local variables, at least as many local
5408
       variables as main has allocated so far including compiler
5409
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
5410
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
5411
       reuse the register of parent for one of the local variables,
5412
       since it will think that parent can't possibly be used any more
5413
       in this routine.  Assigning to the local variable will thus
5414
       munge parent in the parent process.  */
5415
    pid_t
5416
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
5417
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
5418
    /* Convince the compiler that p..p7 are live; otherwise, it might
5419
       use the same hardware register for all 8 local variables.  */
5420
    if (p != p1 || p != p2 || p != p3 || p != p4
5421
	|| p != p5 || p != p6 || p != p7)
5422
      _exit(1);
5423
 
5424
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
5425
       from child file descriptors.  If the child closes a descriptor
5426
       before it execs or exits, this munges the parent's descriptor
5427
       as well.  Test for this by closing stdout in the child.  */
5428
    _exit(close(fileno(stdout)) != 0);
5429
  } else {
5430
    int status;
5431
    struct stat st;
5432
 
5433
    while (wait(&status) != child)
5434
      ;
5435
    return (
5436
	 /* Was there some problem with vforking?  */
5437
	 child < 0
5438
 
5439
	 /* Did the child fail?  (This shouldn't happen.)  */
5440
	 || status
5441
 
5442
	 /* Did the vfork/compiler bug occur?  */
5443
	 || parent != getpid()
5444
 
5445
	 /* Did the file descriptor bug occur?  */
5446
	 || fstat(fileno(stdout), &st) != 0
5447
	 );
5448
  }
5449
}
5450
_ACEOF
5451
if ac_fn_c_try_run "$LINENO"; then :
5452
  ac_cv_func_vfork_works=yes
5453
else
5454
  ac_cv_func_vfork_works=no
5455
fi
5456
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5457
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5458
fi
5459
 
5460
fi
5461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
5462
$as_echo "$ac_cv_func_vfork_works" >&6; }
5463
 
5464
fi;
5465
if test "x$ac_cv_func_fork_works" = xcross; then
5466
  ac_cv_func_vfork_works=$ac_cv_func_vfork
5467
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
5468
$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
5469
fi
5470
 
5471
if test "x$ac_cv_func_vfork_works" = xyes; then
5472
 
5473
$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
5474
 
5475
else
5476
 
5477
$as_echo "#define vfork fork" >>confdefs.h
5478
 
5479
fi
5480
if test "x$ac_cv_func_fork_works" = xyes; then
5481
 
5482
$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
5483
 
5484
fi
5485
 
5486
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
5487
$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
5488
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then :
5489
  $as_echo_n "(cached) " >&6
5490
else
5491
  rm -f conftest.sym conftest.file
5492
echo >conftest.file
5493
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5494
  if test "$cross_compiling" = yes; then :
5495
  ac_cv_func_lstat_dereferences_slashed_symlink=no
5496
else
5497
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5498
/* end confdefs.h.  */
5499
$ac_includes_default
5500
int
5501
main ()
5502
{
5503
struct stat sbuf;
5504
     /* Linux will dereference the symlink and fail, as required by POSIX.
5505
	That is better in the sense that it means we will not
5506
	have to compile and use the lstat wrapper.  */
5507
     return lstat ("conftest.sym/", &sbuf) == 0;
5508
  ;
5509
  return 0;
5510
}
5511
_ACEOF
5512
if ac_fn_c_try_run "$LINENO"; then :
5513
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
5514
else
5515
  ac_cv_func_lstat_dereferences_slashed_symlink=no
5516
fi
5517
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5518
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5519
fi
5520
 
5521
else
5522
  # If the `ln -s' command failed, then we probably don't even
5523
  # have an lstat function.
5524
  ac_cv_func_lstat_dereferences_slashed_symlink=no
5525
fi
5526
rm -f conftest.sym conftest.file
5527
 
5528
fi
5529
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5530
$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5531
 
5532
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5533
 
5534
cat >>confdefs.h <<_ACEOF
5535
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5536
_ACEOF
5537
 
5538
 
5539
if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
5540
  case " $LIBOBJS " in
5541
  *" lstat.$ac_objext "* ) ;;
5542
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5543
 ;;
5544
esac
5545
 
5546
fi
5547
 
5548
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
5549
$as_echo_n "checking whether lstat accepts an empty string... " >&6; }
5550
if test "${ac_cv_func_lstat_empty_string_bug+set}" = set; then :
5551
  $as_echo_n "(cached) " >&6
5552
else
5553
  if test "$cross_compiling" = yes; then :
5554
  ac_cv_func_lstat_empty_string_bug=yes
5555
else
5556
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557
/* end confdefs.h.  */
5558
$ac_includes_default
5559
int
5560
main ()
5561
{
5562
struct stat sbuf;
5563
  return lstat ("", &sbuf) == 0;
5564
  ;
5565
  return 0;
5566
}
5567
_ACEOF
5568
if ac_fn_c_try_run "$LINENO"; then :
5569
  ac_cv_func_lstat_empty_string_bug=no
5570
else
5571
  ac_cv_func_lstat_empty_string_bug=yes
5572
fi
5573
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5574
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5575
fi
5576
 
5577
fi
5578
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
5579
$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; }
5580
if test $ac_cv_func_lstat_empty_string_bug = yes; then
5581
  case " $LIBOBJS " in
5582
  *" lstat.$ac_objext "* ) ;;
5583
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5584
 ;;
5585
esac
5586
 
5587
 
5588
cat >>confdefs.h <<_ACEOF
5589
#define HAVE_LSTAT_EMPTY_STRING_BUG 1
5590
_ACEOF
5591
 
5592
fi
5593
 
5594
for ac_header in stdlib.h
5595
do :
5596
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5597
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5598
  cat >>confdefs.h <<_ACEOF
5599
#define HAVE_STDLIB_H 1
5600
_ACEOF
5601
 
5602
fi
5603
 
5604
done
5605
 
5606
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
5607
$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
5608
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
5609
  $as_echo_n "(cached) " >&6
5610
else
5611
  if test "$cross_compiling" = yes; then :
5612
  ac_cv_func_malloc_0_nonnull=no
5613
else
5614
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615
/* end confdefs.h.  */
5616
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5617
# include <stdlib.h>
5618
#else
5619
char *malloc ();
5620
#endif
5621
 
5622
int
5623
main ()
5624
{
5625
return ! malloc (0);
5626
  ;
5627
  return 0;
5628
}
5629
_ACEOF
5630
if ac_fn_c_try_run "$LINENO"; then :
5631
  ac_cv_func_malloc_0_nonnull=yes
5632
else
5633
  ac_cv_func_malloc_0_nonnull=no
5634
fi
5635
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5636
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5637
fi
5638
 
5639
fi
5640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
5641
$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
5642
if test $ac_cv_func_malloc_0_nonnull = yes; then :
5643
 
5644
$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
5645
 
5646
else
5647
  $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
5648
 
5649
   case " $LIBOBJS " in
5650
  *" malloc.$ac_objext "* ) ;;
5651
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5652
 ;;
5653
esac
5654
 
5655
 
5656
$as_echo "#define malloc rpl_malloc" >>confdefs.h
5657
 
5658
fi
5659
 
5660
 
5661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
5662
$as_echo_n "checking for working memcmp... " >&6; }
5663
if test "${ac_cv_func_memcmp_working+set}" = set; then :
5664
  $as_echo_n "(cached) " >&6
5665
else
5666
  if test "$cross_compiling" = yes; then :
5667
  ac_cv_func_memcmp_working=no
5668
else
5669
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5670
/* end confdefs.h.  */
5671
$ac_includes_default
5672
int
5673
main ()
5674
{
5675
 
5676
  /* Some versions of memcmp are not 8-bit clean.  */
5677
  char c0 = '\100', c1 = '\200', c2 = '\201';
5678
  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5679
    return 1;
5680
 
5681
  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5682
     or more and with at least one buffer not starting on a 4-byte boundary.
5683
     William Lewis provided this test program.   */
5684
  {
5685
    char foo[21];
5686
    char bar[21];
5687
    int i;
5688
    for (i = 0; i < 4; i++)
5689
      {
5690
	char *a = foo + i;
5691
	char *b = bar + i;
5692
	strcpy (a, "--------01111111");
5693
	strcpy (b, "--------10000000");
5694
	if (memcmp (a, b, 16) >= 0)
5695
	  return 1;
5696
      }
5697
    return 0;
5698
  }
5699
 
5700
  ;
5701
  return 0;
5702
}
5703
_ACEOF
5704
if ac_fn_c_try_run "$LINENO"; then :
5705
  ac_cv_func_memcmp_working=yes
5706
else
5707
  ac_cv_func_memcmp_working=no
5708
fi
5709
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5710
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5711
fi
5712
 
5713
fi
5714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
5715
$as_echo "$ac_cv_func_memcmp_working" >&6; }
5716
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5717
  *" memcmp.$ac_objext "* ) ;;
5718
  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5719
 ;;
5720
esac
5721
 
5722
 
5723
for ac_header in stdlib.h
5724
do :
5725
  ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
5726
if test "x$ac_cv_header_stdlib_h" = x""yes; then :
5727
  cat >>confdefs.h <<_ACEOF
5728
#define HAVE_STDLIB_H 1
5729
_ACEOF
5730
 
5731
fi
5732
 
5733
done
5734
 
5735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
5736
$as_echo_n "checking for GNU libc compatible realloc... " >&6; }
5737
if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then :
5738
  $as_echo_n "(cached) " >&6
5739
else
5740
  if test "$cross_compiling" = yes; then :
5741
  ac_cv_func_realloc_0_nonnull=no
5742
else
5743
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744
/* end confdefs.h.  */
5745
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5746
# include <stdlib.h>
5747
#else
5748
char *realloc ();
5749
#endif
5750
 
5751
int
5752
main ()
5753
{
5754
return ! realloc (0, 0);
5755
  ;
5756
  return 0;
5757
}
5758
_ACEOF
5759
if ac_fn_c_try_run "$LINENO"; then :
5760
  ac_cv_func_realloc_0_nonnull=yes
5761
else
5762
  ac_cv_func_realloc_0_nonnull=no
5763
fi
5764
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5765
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5766
fi
5767
 
5768
fi
5769
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
5770
$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; }
5771
if test $ac_cv_func_realloc_0_nonnull = yes; then :
5772
 
5773
$as_echo "#define HAVE_REALLOC 1" >>confdefs.h
5774
 
5775
else
5776
  $as_echo "#define HAVE_REALLOC 0" >>confdefs.h
5777
 
5778
   case " $LIBOBJS " in
5779
  *" realloc.$ac_objext "* ) ;;
5780
  *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
5781
 ;;
5782
esac
5783
 
5784
 
5785
$as_echo "#define realloc rpl_realloc" >>confdefs.h
5786
 
5787
fi
5788
 
5789
 
5790
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5791
$as_echo_n "checking return type of signal handlers... " >&6; }
5792
if test "${ac_cv_type_signal+set}" = set; then :
5793
  $as_echo_n "(cached) " >&6
5794
else
5795
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796
/* end confdefs.h.  */
5797
#include <sys/types.h>
5798
#include <signal.h>
5799
 
5800
int
5801
main ()
5802
{
5803
return *(signal (0, 0)) (0) == 1;
5804
  ;
5805
  return 0;
5806
}
5807
_ACEOF
5808
if ac_fn_c_try_compile "$LINENO"; then :
5809
  ac_cv_type_signal=int
5810
else
5811
  ac_cv_type_signal=void
5812
fi
5813
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814
fi
5815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5816
$as_echo "$ac_cv_type_signal" >&6; }
5817
 
5818
cat >>confdefs.h <<_ACEOF
5819
#define RETSIGTYPE $ac_cv_type_signal
5820
_ACEOF
5821
 
5822
 
5823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
5824
$as_echo_n "checking whether stat accepts an empty string... " >&6; }
5825
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then :
5826
  $as_echo_n "(cached) " >&6
5827
else
5828
  if test "$cross_compiling" = yes; then :
5829
  ac_cv_func_stat_empty_string_bug=yes
5830
else
5831
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832
/* end confdefs.h.  */
5833
$ac_includes_default
5834
int
5835
main ()
5836
{
5837
struct stat sbuf;
5838
  return stat ("", &sbuf) == 0;
5839
  ;
5840
  return 0;
5841
}
5842
_ACEOF
5843
if ac_fn_c_try_run "$LINENO"; then :
5844
  ac_cv_func_stat_empty_string_bug=no
5845
else
5846
  ac_cv_func_stat_empty_string_bug=yes
5847
fi
5848
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5849
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5850
fi
5851
 
5852
fi
5853
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
5854
$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
5855
if test $ac_cv_func_stat_empty_string_bug = yes; then
5856
  case " $LIBOBJS " in
5857
  *" stat.$ac_objext "* ) ;;
5858
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
5859
 ;;
5860
esac
5861
 
5862
 
5863
cat >>confdefs.h <<_ACEOF
5864
#define HAVE_STAT_EMPTY_STRING_BUG 1
5865
_ACEOF
5866
 
5867
fi
5868
 
5869
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
5870
$as_echo_n "checking for working strtod... " >&6; }
5871
if test "${ac_cv_func_strtod+set}" = set; then :
5872
  $as_echo_n "(cached) " >&6
5873
else
5874
  if test "$cross_compiling" = yes; then :
5875
  ac_cv_func_strtod=no
5876
else
5877
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5878
/* end confdefs.h.  */
5879
 
5880
$ac_includes_default
5881
#ifndef strtod
5882
double strtod ();
5883
#endif
5884
int
5885
main()
5886
{
5887
  {
5888
    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
5889
    char *string = " +69";
5890
    char *term;
5891
    double value;
5892
    value = strtod (string, &term);
5893
    if (value != 69 || term != (string + 4))
5894
      return 1;
5895
  }
5896
 
5897
  {
5898
    /* Under Solaris 2.4, strtod returns the wrong value for the
5899
       terminating character under some conditions.  */
5900
    char *string = "NaN";
5901
    char *term;
5902
    strtod (string, &term);
5903
    if (term != string && *(term - 1) == 0)
5904
      return 1;
5905
  }
5906
  return 0;
5907
}
5908
 
5909
_ACEOF
5910
if ac_fn_c_try_run "$LINENO"; then :
5911
  ac_cv_func_strtod=yes
5912
else
5913
  ac_cv_func_strtod=no
5914
fi
5915
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5916
  conftest.$ac_objext conftest.beam conftest.$ac_ext
5917
fi
5918
 
5919
fi
5920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
5921
$as_echo "$ac_cv_func_strtod" >&6; }
5922
if test $ac_cv_func_strtod = no; then
5923
  case " $LIBOBJS " in
5924
  *" strtod.$ac_objext "* ) ;;
5925
  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
5926
 ;;
5927
esac
5928
 
5929
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
5930
if test "x$ac_cv_func_pow" = x""yes; then :
5931
 
5932
fi
5933
 
5934
if test $ac_cv_func_pow = no; then
5935
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
5936
$as_echo_n "checking for pow in -lm... " >&6; }
5937
if test "${ac_cv_lib_m_pow+set}" = set; then :
5938
  $as_echo_n "(cached) " >&6
5939
else
5940
  ac_check_lib_save_LIBS=$LIBS
5941
LIBS="-lm  $LIBS"
5942
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5943
/* end confdefs.h.  */
5944
 
5945
/* Override any GCC internal prototype to avoid an error.
5946
   Use char because int might match the return type of a GCC
5947
   builtin and then its argument prototype would still apply.  */
5948
#ifdef __cplusplus
5949
extern "C"
5950
#endif
5951
char pow ();
5952
int
5953
main ()
5954
{
5955
return pow ();
5956
  ;
5957
  return 0;
5958
}
5959
_ACEOF
5960
if ac_fn_c_try_link "$LINENO"; then :
5961
  ac_cv_lib_m_pow=yes
5962
else
5963
  ac_cv_lib_m_pow=no
5964
fi
5965
rm -f core conftest.err conftest.$ac_objext \
5966
    conftest$ac_exeext conftest.$ac_ext
5967
LIBS=$ac_check_lib_save_LIBS
5968
fi
5969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
5970
$as_echo "$ac_cv_lib_m_pow" >&6; }
5971
if test "x$ac_cv_lib_m_pow" = x""yes; then :
5972
  POW_LIB=-lm
5973
else
5974
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
5975
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
5976
fi
5977
 
5978
fi
5979
 
5980
fi
5981
 
5982
 
5983
 
5984
 
5985
  for ac_header in $ac_header_list
5986
do :
5987
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5989
"
5990
eval as_val=\$$as_ac_Header
5991
   if test "x$as_val" = x""yes; then :
5992
  cat >>confdefs.h <<_ACEOF
5993
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5994
_ACEOF
5995
 
5996
fi
5997
 
5998
done
5999
 
6000
 
6001
 
6002
 
6003
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5
6004
$as_echo_n "checking whether utime accepts a null argument... " >&6; }
6005
if test "${ac_cv_func_utime_null+set}" = set; then :
6006
  $as_echo_n "(cached) " >&6
6007
else
6008
  rm -f conftest.data; >conftest.data
6009
# Sequent interprets utime(file, 0) to mean use start of epoch.  Wrong.
6010
if test "$cross_compiling" = yes; then :
6011
  ac_cv_func_utime_null='guessing yes'
6012
else
6013
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014
/* end confdefs.h.  */
6015
$ac_includes_default
6016
	       #ifdef HAVE_UTIME_H
6017
	       # include <utime.h>
6018
	       #endif
6019
int
6020
main ()
6021
{
6022
struct stat s, t;
6023
  return ! (stat ("conftest.data", &s) == 0
6024
	    && utime ("conftest.data", 0) == 0
6025
	    && stat ("conftest.data", &t) == 0
6026
	    && t.st_mtime >= s.st_mtime
6027
	    && t.st_mtime - s.st_mtime < 120);
6028
  ;
6029
  return 0;
6030
}
6031
_ACEOF
6032
if ac_fn_c_try_run "$LINENO"; then :
6033
  ac_cv_func_utime_null=yes
6034
else
6035
  ac_cv_func_utime_null=no
6036
fi
6037
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6038
  conftest.$ac_objext conftest.beam conftest.$ac_ext
6039
fi
6040
 
6041
fi
6042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5
6043
$as_echo "$ac_cv_func_utime_null" >&6; }
6044
if test "x$ac_cv_func_utime_null" != xno; then
6045
  ac_cv_func_utime_null=yes
6046
 
6047
$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h
6048
 
6049
fi
6050
rm -f conftest.data
6051
 
6052
for ac_func in dup2 alarm getcwd gethostbyname gethostname gettimeofday \
6053
inet_ntoa memmove memset mkdir regcomp rmdir putenv select socket \
6054
strcasecmp strchr strdup strerror strncasecmp strpbrk strrchr strstr utime
6055
do :
6056
  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6057
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6058
eval as_val=\$$as_ac_var
6059
   if test "x$as_val" = x""yes; then :
6060
  cat >>confdefs.h <<_ACEOF
6061
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6062
_ACEOF
6063
 
6064
fi
6065
done
6066
 
6067
 
6068
# setenv ?
6069
for ac_func in setenv
6070
do :
6071
  ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv"
6072
if test "x$ac_cv_func_setenv" = x""yes; then :
6073
  cat >>confdefs.h <<_ACEOF
6074
#define HAVE_SETENV 1
6075
_ACEOF
6076
 
6077
fi
6078
done
6079
 
6080
if test "$ac_cv_func_setenv" = no; then
6081
  common=../Common
6082
  SETENV_OBJS=$common/setenv.o
6083
# FIXME: there should not be various xmallocs with different semantics. Only
6084
# SETENV_OBJS should be necessary.
6085
  ALLSETENV_OBJS="$SETENV_OBJS $common/xmalloc.o"
6086
else
6087
  SETENV_OBJS=
6088
  ALLSETENV_OBJS=
6089
fi
6090
 
6091
# Case insensitive file system?
6092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for WIMS.C" >&5
6093
$as_echo_n "checking for WIMS.C... " >&6; }
6094
if test "${ac_cv_file_WIMS_C+set}" = set; then :
6095
  $as_echo_n "(cached) " >&6
6096
else
6097
  test "$cross_compiling" = yes &&
6098
  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
6099
if test -r "WIMS.C"; then
6100
  ac_cv_file_WIMS_C=yes
6101
else
6102
  ac_cv_file_WIMS_C=no
6103
fi
6104
fi
6105
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file_WIMS_C" >&5
6106
$as_echo "$ac_cv_file_WIMS_C" >&6; }
6107
if test "x$ac_cv_file_WIMS_C" = x""yes; then :
6108
  D_CASE_INSENSITIVE_FS="-DCASE_INSENSITIVE_FS=1"
6109
else
6110
  D_CASE_INSENSITIVE_FS=
6111
fi
6112
 
6113
# Static libm?
6114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/lib/libm.a" >&5
6115
$as_echo_n "checking for /usr/lib/libm.a... " >&6; }
6116
if test "${ac_cv_file__usr_lib_libm_a+set}" = set; then :
6117
  $as_echo_n "(cached) " >&6
6118
else
6119
  test "$cross_compiling" = yes &&
6120
  as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
6121
if test -r "/usr/lib/libm.a"; then
6122
  ac_cv_file__usr_lib_libm_a=yes
6123
else
6124
  ac_cv_file__usr_lib_libm_a=no
6125
fi
6126
fi
6127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_lib_libm_a" >&5
6128
$as_echo "$ac_cv_file__usr_lib_libm_a" >&6; }
6129
if test "x$ac_cv_file__usr_lib_libm_a" = x""yes; then :
6130
  STATIC_LIB=-static
6131
else
6132
  STATIC_LIB=
6133
fi
6134
 
6135
 
6136
# Configure options
6137
 
6138
# Check whether --with-units was given.
6139
if test "${with_units+set}" = set; then :
6140
  withval=$with_units; echo Compile units-filter: $with_units
6141
else
6142
  with_units=yes; echo Compile units-filter: yes
6143
fi
6144
 
6145
BUILD_UNITS=
6146
if test "$with_units" = "yes"; then
6147
  case "$LEXLIB" in
6148
  -lfl) BUILD_UNITS=units-filter;;
6149
  *) with_units=no; echo "Wait ... flex is not available, Compile units : no";;
6150
  esac
6151
fi
6152
 
6153
 
6154
# Check whether --with-chemeq was given.
6155
if test "${with_chemeq+set}" = set; then :
6156
  withval=$with_chemeq; echo Compile chemeq: $with_chemeq
6157
else
6158
  with_chemeq=yes; echo Compile chemeq: yes
6159
fi
6160
 
6161
BUILD_CHEMEQ=
6162
if test "$with_chemeq" = "yes"; then
6163
  case "$LEXLIB" in
6164
  -lfl) if test "$CXX" = "g++"; then
6165
          case `"$CXX" --version` in
6166
           1*|2.[1-8]*|2.9[1-4]*|2.95.[1-2])
6167
              with_chemeq=no
6168
              echo "Wait ... I need at least g++-2.95.3, Compile chemeq: no" ;;
6169
            *) BUILD_CHEMEQ=chemeq;;
6170
          esac
6171
        else
6172
          with_chemeq=no
6173
          echo "Wait ... g++ is not available, Compile chemeq: no"
6174
        fi;;
6175
  *) with_chemeq=no
6176
     echo "Wait ... flex is not available, Compile chemeq: no";;
6177
  esac
6178
fi
6179
 
6180
 
6181
# Check whether --with-wimsd was given.
6182
if test "${with_wimsd+set}" = set; then :
6183
  withval=$with_wimsd; echo Compile wimsd: $with_wimsd
6184
else
6185
  with_wimsd=yes; echo Compile wimsd: yes
6186
fi
6187
 
6188
if test "$with_wimsd" = "yes"; then
6189
  BUILD_WIMSD=wimsd
6190
fi
6191
 
6192
date=`date +%Y-%m-%d`
6193
DEFINES="-DGNU_SOURCE -DVERSION_DATE=\\\"$date\\\""
6194
 
6195
 
6196
 
6197
 
6198
 
6199
 
6200
 
6201
 
6202
 
6203
 
6204
 
6205
 
6206
 
6207
 
3689 schaersvoo 6208
ac_config_files="$ac_config_files Flydraw/gd/Makefile Flydraw/Makefile Interfaces/Makefile Lib/Makefile Makefile Misc/Makefile Misc/symtext/Makefile Misc/mathexp/Makefile Misc/chemeq/Makefile Misc/chemeq/src/Makefile Misc/units-filter/src/Makefile Misc/voronoiW/Makefile Misc/bioinfo/Makefile Misc/checkmol/Makefile Misc/crossword/Makefile Misc/lceb/Makefile Misc/moneyprint/Makefile Misc/toascii/Makefile Misc/whirlgif/Makefile Module/Makefile Module/drawode/Makefile Msg2wims/Makefile Oef2wims/Makefile Wimsd/Makefile Wimslogd/Makefile Texgif/Makefile"
3417 bpr 6209
 
6210
cat >confcache <<\_ACEOF
6211
# This file is a shell script that caches the results of configure
6212
# tests run on this system so they can be shared between configure
6213
# scripts and configure runs, see configure's option --config-cache.
6214
# It is not useful on other systems.  If it contains results you don't
6215
# want to keep, you may remove or edit it.
6216
#
6217
# config.status only pays attention to the cache file if you give it
6218
# the --recheck option to rerun configure.
6219
#
6220
# `ac_cv_env_foo' variables (set or unset) will be overridden when
6221
# loading this file, other *unset* `ac_cv_foo' will be assigned the
6222
# following values.
6223
 
6224
_ACEOF
6225
 
6226
# The following way of writing the cache mishandles newlines in values,
6227
# but we know of no workaround that is simple, portable, and efficient.
6228
# So, we kill variables containing newlines.
6229
# Ultrix sh set writes to stderr and can't be redirected directly,
6230
# and sets the high bit in the cache file unless we assign to the vars.
6231
(
6232
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6233
    eval ac_val=\$$ac_var
6234
    case $ac_val in #(
6235
    *${as_nl}*)
6236
      case $ac_var in #(
6237
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6238
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6239
      esac
6240
      case $ac_var in #(
6241
      _ | IFS | as_nl) ;; #(
6242
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
6243
      *) { eval $ac_var=; unset $ac_var;} ;;
6244
      esac ;;
6245
    esac
6246
  done
6247
 
6248
  (set) 2>&1 |
6249
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
6250
    *${as_nl}ac_space=\ *)
6251
      # `set' does not quote correctly, so add quotes: double-quote
6252
      # substitution turns \\\\ into \\, and sed turns \\ into \.
6253
      sed -n \
6254
	"s/'/'\\\\''/g;
6255
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6256
      ;; #(
6257
    *)
6258
      # `set' quotes correctly as required by POSIX, so do not add quotes.
6259
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6260
      ;;
6261
    esac |
6262
    sort
6263
) |
6264
  sed '
6265
     /^ac_cv_env_/b end
6266
     t clear
6267
     :clear
6268
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6269
     t end
6270
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6271
     :end' >>confcache
6272
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
6273
  if test -w "$cache_file"; then
6274
    test "x$cache_file" != "x/dev/null" &&
6275
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6276
$as_echo "$as_me: updating cache $cache_file" >&6;}
6277
    cat confcache >$cache_file
6278
  else
6279
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6280
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6281
  fi
6282
fi
6283
rm -f confcache
6284
 
6285
test "x$prefix" = xNONE && prefix=$ac_default_prefix
6286
# Let make expand exec_prefix.
6287
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
6288
 
6289
DEFS=-DHAVE_CONFIG_H
6290
 
6291
ac_libobjs=
6292
ac_ltlibobjs=
6293
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6294
  # 1. Remove the extension, and $U if already installed.
6295
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6296
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
6297
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6298
  #    will be set to the directory where LIBOBJS objects are built.
6299
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6300
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6301
done
6302
LIBOBJS=$ac_libobjs
6303
 
6304
LTLIBOBJS=$ac_ltlibobjs
6305
 
6306
 
6307
 
6308
: ${CONFIG_STATUS=./config.status}
6309
ac_write_fail=0
6310
ac_clean_files_save=$ac_clean_files
6311
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6312
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6313
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6314
as_write_fail=0
6315
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6316
#! $SHELL
6317
# Generated by $as_me.
6318
# Run this file to recreate the current configuration.
6319
# Compiler output produced by configure, useful for debugging
6320
# configure, is in config.log if it exists.
6321
 
6322
debug=false
6323
ac_cs_recheck=false
6324
ac_cs_silent=false
6325
 
6326
SHELL=\${CONFIG_SHELL-$SHELL}
6327
export SHELL
6328
_ASEOF
6329
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6330
## -------------------- ##
6331
## M4sh Initialization. ##
6332
## -------------------- ##
6333
 
6334
# Be more Bourne compatible
6335
DUALCASE=1; export DUALCASE # for MKS sh
6336
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
6337
  emulate sh
6338
  NULLCMD=:
6339
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6340
  # is contrary to our usage.  Disable this feature.
6341
  alias -g '${1+"$@"}'='"$@"'
6342
  setopt NO_GLOB_SUBST
6343
else
6344
  case `(set -o) 2>/dev/null` in #(
6345
  *posix*) :
6346
    set -o posix ;; #(
6347
  *) :
6348
     ;;
6349
esac
6350
fi
6351
 
6352
 
6353
as_nl='
6354
'
6355
export as_nl
6356
# Printing a long string crashes Solaris 7 /usr/bin/printf.
6357
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6358
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6359
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6360
# Prefer a ksh shell builtin over an external printf program on Solaris,
6361
# but without wasting forks for bash or zsh.
6362
if test -z "$BASH_VERSION$ZSH_VERSION" \
6363
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6364
  as_echo='print -r --'
6365
  as_echo_n='print -rn --'
6366
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6367
  as_echo='printf %s\n'
6368
  as_echo_n='printf %s'
6369
else
6370
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6371
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
6372
    as_echo_n='/usr/ucb/echo -n'
6373
  else
6374
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6375
    as_echo_n_body='eval
6376
      arg=$1;
6377
      case $arg in #(
6378
      *"$as_nl"*)
6379
	expr "X$arg" : "X\\(.*\\)$as_nl";
6380
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6381
      esac;
6382
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
6383
    '
6384
    export as_echo_n_body
6385
    as_echo_n='sh -c $as_echo_n_body as_echo'
6386
  fi
6387
  export as_echo_body
6388
  as_echo='sh -c $as_echo_body as_echo'
6389
fi
6390
 
6391
# The user is always right.
6392
if test "${PATH_SEPARATOR+set}" != set; then
6393
  PATH_SEPARATOR=:
6394
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6395
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6396
      PATH_SEPARATOR=';'
6397
  }
6398
fi
6399
 
6400
 
6401
# IFS
6402
# We need space, tab and new line, in precisely that order.  Quoting is
6403
# there to prevent editors from complaining about space-tab.
6404
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
6405
# splitting by setting IFS to empty value.)
6406
IFS=" ""	$as_nl"
6407
 
6408
# Find who we are.  Look in the path if we contain no directory separator.
6409
case $0 in #((
6410
  *[\\/]* ) as_myself=$0 ;;
6411
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412
for as_dir in $PATH
6413
do
6414
  IFS=$as_save_IFS
6415
  test -z "$as_dir" && as_dir=.
6416
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6417
  done
6418
IFS=$as_save_IFS
6419
 
6420
     ;;
6421
esac
6422
# We did not find ourselves, most probably we were run as `sh COMMAND'
6423
# in which case we are not to be found in the path.
6424
if test "x$as_myself" = x; then
6425
  as_myself=$0
6426
fi
6427
if test ! -f "$as_myself"; then
6428
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6429
  exit 1
6430
fi
6431
 
6432
# Unset variables that we do not need and which cause bugs (e.g. in
6433
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
6434
# suppresses any "Segmentation fault" message there.  '((' could
6435
# trigger a bug in pdksh 5.2.14.
6436
for as_var in BASH_ENV ENV MAIL MAILPATH
6437
do eval test x\${$as_var+set} = xset \
6438
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6439
done
6440
PS1='$ '
6441
PS2='> '
6442
PS4='+ '
6443
 
6444
# NLS nuisances.
6445
LC_ALL=C
6446
export LC_ALL
6447
LANGUAGE=C
6448
export LANGUAGE
6449
 
6450
# CDPATH.
6451
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
6452
 
6453
 
6454
# as_fn_error ERROR [LINENO LOG_FD]
6455
# ---------------------------------
6456
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6457
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6458
# script with status $?, using 1 if that was 0.
6459
as_fn_error ()
6460
{
6461
  as_status=$?; test $as_status -eq 0 && as_status=1
6462
  if test "$3"; then
6463
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6464
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6465
  fi
6466
  $as_echo "$as_me: error: $1" >&2
6467
  as_fn_exit $as_status
6468
} # as_fn_error
6469
 
6470
 
6471
# as_fn_set_status STATUS
6472
# -----------------------
6473
# Set $? to STATUS, without forking.
6474
as_fn_set_status ()
6475
{
6476
  return $1
6477
} # as_fn_set_status
6478
 
6479
# as_fn_exit STATUS
6480
# -----------------
6481
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6482
as_fn_exit ()
6483
{
6484
  set +e
6485
  as_fn_set_status $1
6486
  exit $1
6487
} # as_fn_exit
6488
 
6489
# as_fn_unset VAR
6490
# ---------------
6491
# Portably unset VAR.
6492
as_fn_unset ()
6493
{
6494
  { eval $1=; unset $1;}
6495
}
6496
as_unset=as_fn_unset
6497
# as_fn_append VAR VALUE
6498
# ----------------------
6499
# Append the text in VALUE to the end of the definition contained in VAR. Take
6500
# advantage of any shell optimizations that allow amortized linear growth over
6501
# repeated appends, instead of the typical quadratic growth present in naive
6502
# implementations.
6503
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
6504
  eval 'as_fn_append ()
6505
  {
6506
    eval $1+=\$2
6507
  }'
6508
else
6509
  as_fn_append ()
6510
  {
6511
    eval $1=\$$1\$2
6512
  }
6513
fi # as_fn_append
6514
 
6515
# as_fn_arith ARG...
6516
# ------------------
6517
# Perform arithmetic evaluation on the ARGs, and store the result in the
6518
# global $as_val. Take advantage of shells that can avoid forks. The arguments
6519
# must be portable across $(()) and expr.
6520
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6521
  eval 'as_fn_arith ()
6522
  {
6523
    as_val=$(( $* ))
6524
  }'
6525
else
6526
  as_fn_arith ()
6527
  {
6528
    as_val=`expr "$@" || test $? -eq 1`
6529
  }
6530
fi # as_fn_arith
6531
 
6532
 
6533
if expr a : '\(a\)' >/dev/null 2>&1 &&
6534
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
6535
  as_expr=expr
6536
else
6537
  as_expr=false
6538
fi
6539
 
6540
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6541
  as_basename=basename
6542
else
6543
  as_basename=false
6544
fi
6545
 
6546
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6547
  as_dirname=dirname
6548
else
6549
  as_dirname=false
6550
fi
6551
 
6552
as_me=`$as_basename -- "$0" ||
6553
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6554
	 X"$0" : 'X\(//\)$' \| \
6555
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6556
$as_echo X/"$0" |
6557
    sed '/^.*\/\([^/][^/]*\)\/*$/{
6558
	    s//\1/
6559
	    q
6560
	  }
6561
	  /^X\/\(\/\/\)$/{
6562
	    s//\1/
6563
	    q
6564
	  }
6565
	  /^X\/\(\/\).*/{
6566
	    s//\1/
6567
	    q
6568
	  }
6569
	  s/.*/./; q'`
6570
 
6571
# Avoid depending upon Character Ranges.
6572
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6573
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6574
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6575
as_cr_digits='0123456789'
6576
as_cr_alnum=$as_cr_Letters$as_cr_digits
6577
 
6578
ECHO_C= ECHO_N= ECHO_T=
6579
case `echo -n x` in #(((((
6580
-n*)
6581
  case `echo 'xy\c'` in
6582
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
6583
  xy)  ECHO_C='\c';;
6584
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6585
       ECHO_T='	';;
6586
  esac;;
6587
*)
6588
  ECHO_N='-n';;
6589
esac
6590
 
6591
rm -f conf$$ conf$$.exe conf$$.file
6592
if test -d conf$$.dir; then
6593
  rm -f conf$$.dir/conf$$.file
6594
else
6595
  rm -f conf$$.dir
6596
  mkdir conf$$.dir 2>/dev/null
6597
fi
6598
if (echo >conf$$.file) 2>/dev/null; then
6599
  if ln -s conf$$.file conf$$ 2>/dev/null; then
6600
    as_ln_s='ln -s'
6601
    # ... but there are two gotchas:
6602
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6603
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6604
    # In both cases, we have to default to `cp -p'.
6605
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6606
      as_ln_s='cp -p'
6607
  elif ln conf$$.file conf$$ 2>/dev/null; then
6608
    as_ln_s=ln
6609
  else
6610
    as_ln_s='cp -p'
6611
  fi
6612
else
6613
  as_ln_s='cp -p'
6614
fi
6615
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6616
rmdir conf$$.dir 2>/dev/null
6617
 
6618
 
6619
# as_fn_mkdir_p
6620
# -------------
6621
# Create "$as_dir" as a directory, including parents if necessary.
6622
as_fn_mkdir_p ()
6623
{
6624
 
6625
  case $as_dir in #(
6626
  -*) as_dir=./$as_dir;;
6627
  esac
6628
  test -d "$as_dir" || eval $as_mkdir_p || {
6629
    as_dirs=
6630
    while :; do
6631
      case $as_dir in #(
6632
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6633
      *) as_qdir=$as_dir;;
6634
      esac
6635
      as_dirs="'$as_qdir' $as_dirs"
6636
      as_dir=`$as_dirname -- "$as_dir" ||
6637
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6638
	 X"$as_dir" : 'X\(//\)[^/]' \| \
6639
	 X"$as_dir" : 'X\(//\)$' \| \
6640
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6641
$as_echo X"$as_dir" |
6642
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6643
	    s//\1/
6644
	    q
6645
	  }
6646
	  /^X\(\/\/\)[^/].*/{
6647
	    s//\1/
6648
	    q
6649
	  }
6650
	  /^X\(\/\/\)$/{
6651
	    s//\1/
6652
	    q
6653
	  }
6654
	  /^X\(\/\).*/{
6655
	    s//\1/
6656
	    q
6657
	  }
6658
	  s/.*/./; q'`
6659
      test -d "$as_dir" && break
6660
    done
6661
    test -z "$as_dirs" || eval "mkdir $as_dirs"
6662
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
6663
 
6664
 
6665
} # as_fn_mkdir_p
6666
if mkdir -p . 2>/dev/null; then
6667
  as_mkdir_p='mkdir -p "$as_dir"'
6668
else
6669
  test -d ./-p && rmdir ./-p
6670
  as_mkdir_p=false
6671
fi
6672
 
6673
if test -x / >/dev/null 2>&1; then
6674
  as_test_x='test -x'
6675
else
6676
  if ls -dL / >/dev/null 2>&1; then
6677
    as_ls_L_option=L
6678
  else
6679
    as_ls_L_option=
6680
  fi
6681
  as_test_x='
6682
    eval sh -c '\''
6683
      if test -d "$1"; then
6684
	test -d "$1/.";
6685
      else
6686
	case $1 in #(
6687
	-*)set "./$1";;
6688
	esac;
6689
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6690
	???[sx]*):;;*)false;;esac;fi
6691
    '\'' sh
6692
  '
6693
fi
6694
as_executable_p=$as_test_x
6695
 
6696
# Sed expression to map a string onto a valid CPP name.
6697
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6698
 
6699
# Sed expression to map a string onto a valid variable name.
6700
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6701
 
6702
 
6703
exec 6>&1
6704
## ----------------------------------- ##
6705
## Main body of $CONFIG_STATUS script. ##
6706
## ----------------------------------- ##
6707
_ASEOF
6708
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6709
 
6710
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6711
# Save the log message, to keep $0 and so on meaningful, and to
6712
# report actual input values of CONFIG_FILES etc. instead of their
6713
# values after options handling.
6714
ac_log="
3616 bpr 6715
This file was extended by WIMS $as_me 4.01d, which was
3417 bpr 6716
generated by GNU Autoconf 2.65.  Invocation command line was
6717
 
6718
  CONFIG_FILES    = $CONFIG_FILES
6719
  CONFIG_HEADERS  = $CONFIG_HEADERS
6720
  CONFIG_LINKS    = $CONFIG_LINKS
6721
  CONFIG_COMMANDS = $CONFIG_COMMANDS
6722
  $ $0 $@
6723
 
6724
on `(hostname || uname -n) 2>/dev/null | sed 1q`
6725
"
6726
 
6727
_ACEOF
6728
 
6729
case $ac_config_files in *"
6730
"*) set x $ac_config_files; shift; ac_config_files=$*;;
6731
esac
6732
 
6733
case $ac_config_headers in *"
6734
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6735
esac
6736
 
6737
 
6738
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6739
# Files that config.status was made for.
6740
config_files="$ac_config_files"
6741
config_headers="$ac_config_headers"
6742
 
6743
_ACEOF
6744
 
6745
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6746
ac_cs_usage="\
6747
\`$as_me' instantiates files and other configuration actions
6748
from templates according to the current configuration.  Unless the files
6749
and actions are specified as TAGs, all are instantiated by default.
6750
 
6751
Usage: $0 [OPTION]... [TAG]...
6752
 
6753
  -h, --help       print this help, then exit
6754
  -V, --version    print version number and configuration settings, then exit
6755
      --config     print configuration, then exit
6756
  -q, --quiet, --silent
6757
                   do not print progress messages
6758
  -d, --debug      don't remove temporary files
6759
      --recheck    update $as_me by reconfiguring in the same conditions
6760
      --file=FILE[:TEMPLATE]
6761
                   instantiate the configuration file FILE
6762
      --header=FILE[:TEMPLATE]
6763
                   instantiate the configuration header FILE
6764
 
6765
Configuration files:
6766
$config_files
6767
 
6768
Configuration headers:
6769
$config_headers
6770
 
6771
Report bugs to <wimsdev@cru.fr>."
6772
 
6773
_ACEOF
6774
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6775
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6776
ac_cs_version="\\
3616 bpr 6777
WIMS config.status 4.01d
3417 bpr 6778
configured by $0, generated by GNU Autoconf 2.65,
6779
  with options \\"\$ac_cs_config\\"
6780
 
6781
Copyright (C) 2009 Free Software Foundation, Inc.
6782
This config.status script is free software; the Free Software Foundation
6783
gives unlimited permission to copy, distribute and modify it."
6784
 
6785
ac_pwd='$ac_pwd'
6786
srcdir='$srcdir'
6787
AWK='$AWK'
6788
test -n "\$AWK" || AWK=awk
6789
_ACEOF
6790
 
6791
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6792
# The default lists apply if the user does not specify any file.
6793
ac_need_defaults=:
6794
while test $# != 0
6795
do
6796
  case $1 in
6797
  --*=*)
6798
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
6799
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6800
    ac_shift=:
6801
    ;;
6802
  *)
6803
    ac_option=$1
6804
    ac_optarg=$2
6805
    ac_shift=shift
6806
    ;;
6807
  esac
6808
 
6809
  case $ac_option in
6810
  # Handling of the options.
6811
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6812
    ac_cs_recheck=: ;;
6813
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6814
    $as_echo "$ac_cs_version"; exit ;;
6815
  --config | --confi | --conf | --con | --co | --c )
6816
    $as_echo "$ac_cs_config"; exit ;;
6817
  --debug | --debu | --deb | --de | --d | -d )
6818
    debug=: ;;
6819
  --file | --fil | --fi | --f )
6820
    $ac_shift
6821
    case $ac_optarg in
6822
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6823
    esac
6824
    as_fn_append CONFIG_FILES " '$ac_optarg'"
6825
    ac_need_defaults=false;;
6826
  --header | --heade | --head | --hea )
6827
    $ac_shift
6828
    case $ac_optarg in
6829
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6830
    esac
6831
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6832
    ac_need_defaults=false;;
6833
  --he | --h)
6834
    # Conflict between --help and --header
6835
    as_fn_error "ambiguous option: \`$1'
6836
Try \`$0 --help' for more information.";;
6837
  --help | --hel | -h )
6838
    $as_echo "$ac_cs_usage"; exit ;;
6839
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6840
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
6841
    ac_cs_silent=: ;;
6842
 
6843
  # This is an error.
6844
  -*) as_fn_error "unrecognized option: \`$1'
6845
Try \`$0 --help' for more information." ;;
6846
 
6847
  *) as_fn_append ac_config_targets " $1"
6848
     ac_need_defaults=false ;;
6849
 
6850
  esac
6851
  shift
6852
done
6853
 
6854
ac_configure_extra_args=
6855
 
6856
if $ac_cs_silent; then
6857
  exec 6>/dev/null
6858
  ac_configure_extra_args="$ac_configure_extra_args --silent"
6859
fi
6860
 
6861
_ACEOF
6862
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6863
if \$ac_cs_recheck; then
6864
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6865
  shift
6866
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6867
  CONFIG_SHELL='$SHELL'
6868
  export CONFIG_SHELL
6869
  exec "\$@"
6870
fi
6871
 
6872
_ACEOF
6873
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6874
exec 5>>config.log
6875
{
6876
  echo
6877
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6878
## Running $as_me. ##
6879
_ASBOX
6880
  $as_echo "$ac_log"
6881
} >&5
6882
 
6883
_ACEOF
6884
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6885
_ACEOF
6886
 
6887
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6888
 
6889
# Handling of arguments.
6890
for ac_config_target in $ac_config_targets
6891
do
6892
  case $ac_config_target in
6893
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.hin" ;;
6894
    "Flydraw/gd/Makefile") CONFIG_FILES="$CONFIG_FILES Flydraw/gd/Makefile" ;;
6895
    "Flydraw/Makefile") CONFIG_FILES="$CONFIG_FILES Flydraw/Makefile" ;;
6896
    "Interfaces/Makefile") CONFIG_FILES="$CONFIG_FILES Interfaces/Makefile" ;;
6897
    "Lib/Makefile") CONFIG_FILES="$CONFIG_FILES Lib/Makefile" ;;
6898
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6899
    "Misc/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/Makefile" ;;
6900
    "Misc/symtext/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/symtext/Makefile" ;;
6901
    "Misc/mathexp/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/mathexp/Makefile" ;;
6902
    "Misc/chemeq/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/chemeq/Makefile" ;;
6903
    "Misc/chemeq/src/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/chemeq/src/Makefile" ;;
6904
    "Misc/units-filter/src/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/units-filter/src/Makefile" ;;
6905
    "Misc/voronoiW/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/voronoiW/Makefile" ;;
6906
    "Misc/bioinfo/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/bioinfo/Makefile" ;;
6907
    "Misc/checkmol/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/checkmol/Makefile" ;;
6908
    "Misc/crossword/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/crossword/Makefile" ;;
6909
    "Misc/lceb/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/lceb/Makefile" ;;
3519 schaersvoo 6910
    "Misc/moneyprint/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/moneyprint/Makefile" ;;
3689 schaersvoo 6911
    "Misc/toascii/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/toascii/Makefile" ;;
3417 bpr 6912
    "Misc/whirlgif/Makefile") CONFIG_FILES="$CONFIG_FILES Misc/whirlgif/Makefile" ;;
6913
    "Module/Makefile") CONFIG_FILES="$CONFIG_FILES Module/Makefile" ;;
6914
    "Module/drawode/Makefile") CONFIG_FILES="$CONFIG_FILES Module/drawode/Makefile" ;;
6915
    "Msg2wims/Makefile") CONFIG_FILES="$CONFIG_FILES Msg2wims/Makefile" ;;
6916
    "Oef2wims/Makefile") CONFIG_FILES="$CONFIG_FILES Oef2wims/Makefile" ;;
6917
    "Wimsd/Makefile") CONFIG_FILES="$CONFIG_FILES Wimsd/Makefile" ;;
6918
    "Wimslogd/Makefile") CONFIG_FILES="$CONFIG_FILES Wimslogd/Makefile" ;;
6919
    "Texgif/Makefile") CONFIG_FILES="$CONFIG_FILES Texgif/Makefile" ;;
6920
 
6921
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6922
  esac
6923
done
6924
 
6925
 
6926
# If the user did not use the arguments to specify the items to instantiate,
6927
# then the envvar interface is used.  Set only those that are not.
6928
# We use the long form for the default assignment because of an extremely
6929
# bizarre bug on SunOS 4.1.3.
6930
if $ac_need_defaults; then
6931
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6932
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6933
fi
6934
 
6935
# Have a temporary directory for convenience.  Make it in the build tree
6936
# simply because there is no reason against having it here, and in addition,
6937
# creating and moving files from /tmp can sometimes cause problems.
6938
# Hook for its removal unless debugging.
6939
# Note that there is a small window in which the directory will not be cleaned:
6940
# after its creation but before its name has been assigned to `$tmp'.
6941
$debug ||
6942
{
6943
  tmp=
6944
  trap 'exit_status=$?
6945
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6946
' 0
6947
  trap 'as_fn_exit 1' 1 2 13 15
6948
}
6949
# Create a (secure) tmp directory for tmp files.
6950
 
6951
{
6952
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6953
  test -n "$tmp" && test -d "$tmp"
6954
}  ||
6955
{
6956
  tmp=./conf$$-$RANDOM
6957
  (umask 077 && mkdir "$tmp")
6958
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
6959
 
6960
# Set up the scripts for CONFIG_FILES section.
6961
# No need to generate them if there are no CONFIG_FILES.
6962
# This happens for instance with `./config.status config.h'.
6963
if test -n "$CONFIG_FILES"; then
6964
 
6965
 
6966
ac_cr=`echo X | tr X '\015'`
6967
# On cygwin, bash can eat \r inside `` if the user requested igncr.
6968
# But we know of no other shell where ac_cr would be empty at this
6969
# point, so we can use a bashism as a fallback.
6970
if test "x$ac_cr" = x; then
6971
  eval ac_cr=\$\'\\r\'
6972
fi
6973
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6974
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6975
  ac_cs_awk_cr='\r'
6976
else
6977
  ac_cs_awk_cr=$ac_cr
6978
fi
6979
 
6980
echo 'BEGIN {' >"$tmp/subs1.awk" &&
6981
_ACEOF
6982
 
6983
 
6984
{
6985
  echo "cat >conf$$subs.awk <<_ACEOF" &&
6986
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6987
  echo "_ACEOF"
6988
} >conf$$subs.sh ||
6989
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6990
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6991
ac_delim='%!_!# '
6992
for ac_last_try in false false false false false :; do
6993
  . ./conf$$subs.sh ||
6994
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
6995
 
6996
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6997
  if test $ac_delim_n = $ac_delim_num; then
6998
    break
6999
  elif $ac_last_try; then
7000
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
7001
  else
7002
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7003
  fi
7004
done
7005
rm -f conf$$subs.sh
7006
 
7007
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7008
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
7009
_ACEOF
7010
sed -n '
7011
h
7012
s/^/S["/; s/!.*/"]=/
7013
p
7014
g
7015
s/^[^!]*!//
7016
:repl
7017
t repl
7018
s/'"$ac_delim"'$//
7019
t delim
7020
:nl
7021
h
7022
s/\(.\{148\}\)..*/\1/
7023
t more1
7024
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7025
p
7026
n
7027
b repl
7028
:more1
7029
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7030
p
7031
g
7032
s/.\{148\}//
7033
t nl
7034
:delim
7035
h
7036
s/\(.\{148\}\)..*/\1/
7037
t more2
7038
s/["\\]/\\&/g; s/^/"/; s/$/"/
7039
p
7040
b
7041
:more2
7042
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7043
p
7044
g
7045
s/.\{148\}//
7046
t delim
7047
' <conf$$subs.awk | sed '
7048
/^[^""]/{
7049
  N
7050
  s/\n//
7051
}
7052
' >>$CONFIG_STATUS || ac_write_fail=1
7053
rm -f conf$$subs.awk
7054
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7055
_ACAWK
7056
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
7057
  for (key in S) S_is_set[key] = 1
7058
  FS = ""
7059
 
7060
}
7061
{
7062
  line = $ 0
7063
  nfields = split(line, field, "@")
7064
  substed = 0
7065
  len = length(field[1])
7066
  for (i = 2; i < nfields; i++) {
7067
    key = field[i]
7068
    keylen = length(key)
7069
    if (S_is_set[key]) {
7070
      value = S[key]
7071
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
7072
      len += length(value) + length(field[++i])
7073
      substed = 1
7074
    } else
7075
      len += 1 + keylen
7076
  }
7077
 
7078
  print line
7079
}
7080
 
7081
_ACAWK
7082
_ACEOF
7083
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7084
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
7085
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
7086
else
7087
  cat
7088
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
7089
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
7090
_ACEOF
7091
 
7092
# VPATH may cause trouble with some makes, so we remove $(srcdir),
7093
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
7094
# trailing colons and then remove the whole line if VPATH becomes empty
7095
# (actually we leave an empty line to preserve line numbers).
7096
if test "x$srcdir" = x.; then
7097
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
7098
s/:*\$(srcdir):*/:/
7099
s/:*\${srcdir}:*/:/
7100
s/:*@srcdir@:*/:/
7101
s/^\([^=]*=[	 ]*\):*/\1/
7102
s/:*$//
7103
s/^[^=]*=[	 ]*$//
7104
}'
7105
fi
7106
 
7107
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7108
fi # test -n "$CONFIG_FILES"
7109
 
7110
# Set up the scripts for CONFIG_HEADERS section.
7111
# No need to generate them if there are no CONFIG_HEADERS.
7112
# This happens for instance with `./config.status Makefile'.
7113
if test -n "$CONFIG_HEADERS"; then
7114
cat >"$tmp/defines.awk" <<\_ACAWK ||
7115
BEGIN {
7116
_ACEOF
7117
 
7118
# Transform confdefs.h into an awk script `defines.awk', embedded as
7119
# here-document in config.status, that substitutes the proper values into
7120
# config.h.in to produce config.h.
7121
 
7122
# Create a delimiter string that does not exist in confdefs.h, to ease
7123
# handling of long lines.
7124
ac_delim='%!_!# '
7125
for ac_last_try in false false :; do
7126
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
7127
  if test -z "$ac_t"; then
7128
    break
7129
  elif $ac_last_try; then
7130
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
7131
  else
7132
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7133
  fi
7134
done
7135
 
7136
# For the awk script, D is an array of macro values keyed by name,
7137
# likewise P contains macro parameters if any.  Preserve backslash
7138
# newline sequences.
7139
 
7140
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
7141
sed -n '
7142
s/.\{148\}/&'"$ac_delim"'/g
7143
t rset
7144
:rset
7145
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
7146
t def
7147
d
7148
:def
7149
s/\\$//
7150
t bsnl
7151
s/["\\]/\\&/g
7152
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7153
D["\1"]=" \3"/p
7154
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
7155
d
7156
:bsnl
7157
s/["\\]/\\&/g
7158
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
7159
D["\1"]=" \3\\\\\\n"\\/p
7160
t cont
7161
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
7162
t cont
7163
d
7164
:cont
7165
n
7166
s/.\{148\}/&'"$ac_delim"'/g
7167
t clear
7168
:clear
7169
s/\\$//
7170
t bsnlc
7171
s/["\\]/\\&/g; s/^/"/; s/$/"/p
7172
d
7173
:bsnlc
7174
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
7175
b cont
7176
' <confdefs.h | sed '
7177
s/'"$ac_delim"'/"\\\
7178
"/g' >>$CONFIG_STATUS || ac_write_fail=1
7179
 
7180
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7181
  for (key in D) D_is_set[key] = 1
7182
  FS = ""
7183
}
7184
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7185
  line = \$ 0
7186
  split(line, arg, " ")
7187
  if (arg[1] == "#") {
7188
    defundef = arg[2]
7189
    mac1 = arg[3]
7190
  } else {
7191
    defundef = substr(arg[1], 2)
7192
    mac1 = arg[2]
7193
  }
7194
  split(mac1, mac2, "(") #)
7195
  macro = mac2[1]
7196
  prefix = substr(line, 1, index(line, defundef) - 1)
7197
  if (D_is_set[macro]) {
7198
    # Preserve the white space surrounding the "#".
7199
    print prefix "define", macro P[macro] D[macro]
7200
    next
7201
  } else {
7202
    # Replace #undef with comments.  This is necessary, for example,
7203
    # in the case of _POSIX_SOURCE, which is predefined and required
7204
    # on some systems where configure will not decide to define it.
7205
    if (defundef == "undef") {
7206
      print "/*", prefix defundef, macro, "*/"
7207
      next
7208
    }
7209
  }
7210
}
7211
{ print }
7212
_ACAWK
7213
_ACEOF
7214
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7215
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
7216
fi # test -n "$CONFIG_HEADERS"
7217
 
7218
 
7219
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
7220
shift
7221
for ac_tag
7222
do
7223
  case $ac_tag in
7224
  :[FHLC]) ac_mode=$ac_tag; continue;;
7225
  esac
7226
  case $ac_mode$ac_tag in
7227
  :[FHL]*:*);;
7228
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
7229
  :[FH]-) ac_tag=-:-;;
7230
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
7231
  esac
7232
  ac_save_IFS=$IFS
7233
  IFS=:
7234
  set x $ac_tag
7235
  IFS=$ac_save_IFS
7236
  shift
7237
  ac_file=$1
7238
  shift
7239
 
7240
  case $ac_mode in
7241
  :L) ac_source=$1;;
7242
  :[FH])
7243
    ac_file_inputs=
7244
    for ac_f
7245
    do
7246
      case $ac_f in
7247
      -) ac_f="$tmp/stdin";;
7248
      *) # Look for the file first in the build tree, then in the source tree
7249
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
7250
	 # because $ac_f cannot contain `:'.
7251
	 test -f "$ac_f" ||
7252
	   case $ac_f in
7253
	   [\\/$]*) false;;
7254
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
7255
	   esac ||
7256
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
7257
      esac
7258
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7259
      as_fn_append ac_file_inputs " '$ac_f'"
7260
    done
7261
 
7262
    # Let's still pretend it is `configure' which instantiates (i.e., don't
7263
    # use $as_me), people would be surprised to read:
7264
    #    /* config.h.  Generated by config.status.  */
7265
    configure_input='Generated from '`
7266
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7267
	`' by configure.'
7268
    if test x"$ac_file" != x-; then
7269
      configure_input="$ac_file.  $configure_input"
7270
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7271
$as_echo "$as_me: creating $ac_file" >&6;}
7272
    fi
7273
    # Neutralize special characters interpreted by sed in replacement strings.
7274
    case $configure_input in #(
7275
    *\&* | *\|* | *\\* )
7276
       ac_sed_conf_input=`$as_echo "$configure_input" |
7277
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
7278
    *) ac_sed_conf_input=$configure_input;;
7279
    esac
7280
 
7281
    case $ac_tag in
7282
    *:-:* | *:-) cat >"$tmp/stdin" \
7283
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
7284
    esac
7285
    ;;
7286
  esac
7287
 
7288
  ac_dir=`$as_dirname -- "$ac_file" ||
7289
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7290
	 X"$ac_file" : 'X\(//\)[^/]' \| \
7291
	 X"$ac_file" : 'X\(//\)$' \| \
7292
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7293
$as_echo X"$ac_file" |
7294
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7295
	    s//\1/
7296
	    q
7297
	  }
7298
	  /^X\(\/\/\)[^/].*/{
7299
	    s//\1/
7300
	    q
7301
	  }
7302
	  /^X\(\/\/\)$/{
7303
	    s//\1/
7304
	    q
7305
	  }
7306
	  /^X\(\/\).*/{
7307
	    s//\1/
7308
	    q
7309
	  }
7310
	  s/.*/./; q'`
7311
  as_dir="$ac_dir"; as_fn_mkdir_p
7312
  ac_builddir=.
7313
 
7314
case "$ac_dir" in
7315
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
7316
*)
7317
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7318
  # A ".." for each directory in $ac_dir_suffix.
7319
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7320
  case $ac_top_builddir_sub in
7321
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
7322
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
7323
  esac ;;
7324
esac
7325
ac_abs_top_builddir=$ac_pwd
7326
ac_abs_builddir=$ac_pwd$ac_dir_suffix
7327
# for backward compatibility:
7328
ac_top_builddir=$ac_top_build_prefix
7329
 
7330
case $srcdir in
7331
  .)  # We are building in place.
7332
    ac_srcdir=.
7333
    ac_top_srcdir=$ac_top_builddir_sub
7334
    ac_abs_top_srcdir=$ac_pwd ;;
7335
  [\\/]* | ?:[\\/]* )  # Absolute name.
7336
    ac_srcdir=$srcdir$ac_dir_suffix;
7337
    ac_top_srcdir=$srcdir
7338
    ac_abs_top_srcdir=$srcdir ;;
7339
  *) # Relative name.
7340
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
7341
    ac_top_srcdir=$ac_top_build_prefix$srcdir
7342
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
7343
esac
7344
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
7345
 
7346
 
7347
  case $ac_mode in
7348
  :F)
7349
  #
7350
  # CONFIG_FILE
7351
  #
7352
 
7353
_ACEOF
7354
 
7355
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7356
# If the template does not know about datarootdir, expand it.
7357
# FIXME: This hack should be removed a few years after 2.60.
7358
ac_datarootdir_hack=; ac_datarootdir_seen=
7359
ac_sed_dataroot='
7360
/datarootdir/ {
7361
  p
7362
  q
7363
}
7364
/@datadir@/p
7365
/@docdir@/p
7366
/@infodir@/p
7367
/@localedir@/p
7368
/@mandir@/p'
7369
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7370
*datarootdir*) ac_datarootdir_seen=yes;;
7371
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
7372
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7373
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7374
_ACEOF
7375
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7376
  ac_datarootdir_hack='
7377
  s&@datadir@&$datadir&g
7378
  s&@docdir@&$docdir&g
7379
  s&@infodir@&$infodir&g
7380
  s&@localedir@&$localedir&g
7381
  s&@mandir@&$mandir&g
7382
  s&\\\${datarootdir}&$datarootdir&g' ;;
7383
esac
7384
_ACEOF
7385
 
7386
# Neutralize VPATH when `$srcdir' = `.'.
7387
# Shell code in configure.ac might set extrasub.
7388
# FIXME: do we really want to maintain this feature?
7389
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7390
ac_sed_extra="$ac_vpsub
7391
$extrasub
7392
_ACEOF
7393
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7394
:t
7395
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7396
s|@configure_input@|$ac_sed_conf_input|;t t
7397
s&@top_builddir@&$ac_top_builddir_sub&;t t
7398
s&@top_build_prefix@&$ac_top_build_prefix&;t t
7399
s&@srcdir@&$ac_srcdir&;t t
7400
s&@abs_srcdir@&$ac_abs_srcdir&;t t
7401
s&@top_srcdir@&$ac_top_srcdir&;t t
7402
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7403
s&@builddir@&$ac_builddir&;t t
7404
s&@abs_builddir@&$ac_abs_builddir&;t t
7405
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7406
$ac_datarootdir_hack
7407
"
7408
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
7409
  || as_fn_error "could not create $ac_file" "$LINENO" 5
7410
 
7411
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7412
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
7413
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
7414
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7415
which seems to be undefined.  Please make sure it is defined." >&5
7416
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7417
which seems to be undefined.  Please make sure it is defined." >&2;}
7418
 
7419
  rm -f "$tmp/stdin"
7420
  case $ac_file in
7421
  -) cat "$tmp/out" && rm -f "$tmp/out";;
7422
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7423
  esac \
7424
  || as_fn_error "could not create $ac_file" "$LINENO" 5
7425
 ;;
7426
  :H)
7427
  #
7428
  # CONFIG_HEADER
7429
  #
7430
  if test x"$ac_file" != x-; then
7431
    {
7432
      $as_echo "/* $configure_input  */" \
7433
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7434
    } >"$tmp/config.h" \
7435
      || as_fn_error "could not create $ac_file" "$LINENO" 5
7436
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7437
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7438
$as_echo "$as_me: $ac_file is unchanged" >&6;}
7439
    else
7440
      rm -f "$ac_file"
7441
      mv "$tmp/config.h" "$ac_file" \
7442
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
7443
    fi
7444
  else
7445
    $as_echo "/* $configure_input  */" \
7446
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7447
      || as_fn_error "could not create -" "$LINENO" 5
7448
  fi
7449
 ;;
7450
 
7451
 
7452
  esac
7453
 
7454
done # for ac_tag
7455
 
7456
 
7457
as_fn_exit 0
7458
_ACEOF
7459
ac_clean_files=$ac_clean_files_save
7460
 
7461
test $ac_write_fail = 0 ||
7462
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
7463
 
7464
 
7465
# configure is writing to config.log, and then calls config.status.
7466
# config.status does its own redirection, appending to config.log.
7467
# Unfortunately, on DOS this fails, as config.log is still kept open
7468
# by configure, so config.status won't be able to write to it; its
7469
# output is simply discarded.  So we exec the FD to /dev/null,
7470
# effectively closing config.log, so it can be properly (re)opened and
7471
# appended to by config.status.  When coming back to configure, we
7472
# need to make the FD available again.
7473
if test "$no_create" != yes; then
7474
  ac_cs_success=:
7475
  ac_config_status_args=
7476
  test "$silent" = yes &&
7477
    ac_config_status_args="$ac_config_status_args --quiet"
7478
  exec 5>/dev/null
7479
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7480
  exec 5>>config.log
7481
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7482
  # would make configure fail if this is the last instruction.
7483
  $ac_cs_success || as_fn_exit $?
7484
fi
7485
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7486
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7487
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7488
fi
7489