~clint-fewbar/+junk/ustat

11 by Clint Byrum
automake yay
1
#! /bin/sh
2
# Guess values for system-dependent variables and create Makefiles.
16 by Clint Byrum
adding test suite
3
# Generated by GNU Autoconf 2.65 for ustat 0.1.
11 by Clint Byrum
automake yay
4
#
16 by Clint Byrum
adding test suite
5
# Report bugs to <clint@ubuntu.com>.
11 by Clint Byrum
automake yay
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
16 by Clint Byrum
adding test suite
233
    $as_echo "$0: Please tell bug-autoconf@gnu.org and clint@ubuntu.com
11 by Clint Byrum
automake yay
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.
16 by Clint Byrum
adding test suite
553
PACKAGE_NAME='ustat'
554
PACKAGE_TARNAME='ustat'
555
PACKAGE_VERSION='0.1'
556
PACKAGE_STRING='ustat 0.1'
557
PACKAGE_BUGREPORT='clint@ubuntu.com'
11 by Clint Byrum
automake yay
558
PACKAGE_URL=''
559
560
ac_unique_file="src/usar.cc"
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_subst_vars='am__EXEEXT_FALSE
598
am__EXEEXT_TRUE
599
LTLIBOBJS
600
LIBOBJS
601
EGREP
602
GREP
603
CPP
604
am__fastdepCC_FALSE
605
am__fastdepCC_TRUE
606
CCDEPMODE
607
ac_ct_CC
608
CFLAGS
609
CC
610
am__fastdepCXX_FALSE
611
am__fastdepCXX_TRUE
612
CXXDEPMODE
613
AMDEPBACKSLASH
614
AMDEP_FALSE
615
AMDEP_TRUE
616
am__quote
617
am__include
618
DEPDIR
619
OBJEXT
620
EXEEXT
621
ac_ct_CXX
622
CPPFLAGS
623
LDFLAGS
624
CXXFLAGS
625
CXX
626
am__untar
627
am__tar
628
AMTAR
629
am__leading_dot
630
SET_MAKE
631
AWK
632
mkdir_p
633
MKDIR_P
634
INSTALL_STRIP_PROGRAM
635
STRIP
636
install_sh
637
MAKEINFO
638
AUTOHEADER
639
AUTOMAKE
640
AUTOCONF
641
ACLOCAL
642
VERSION
643
PACKAGE
644
CYGPATH_W
645
am__isrc
646
INSTALL_DATA
647
INSTALL_SCRIPT
648
INSTALL_PROGRAM
649
target_alias
650
host_alias
651
build_alias
652
LIBS
653
ECHO_T
654
ECHO_N
655
ECHO_C
656
DEFS
657
mandir
658
localedir
659
libdir
660
psdir
661
pdfdir
662
dvidir
663
htmldir
664
infodir
665
docdir
666
oldincludedir
667
includedir
668
localstatedir
669
sharedstatedir
670
sysconfdir
671
datadir
672
datarootdir
673
libexecdir
674
sbindir
675
bindir
676
program_transform_name
677
prefix
678
exec_prefix
679
PACKAGE_URL
680
PACKAGE_BUGREPORT
681
PACKAGE_STRING
682
PACKAGE_VERSION
683
PACKAGE_TARNAME
684
PACKAGE_NAME
685
PATH_SEPARATOR
686
SHELL'
687
ac_subst_files=''
688
ac_user_opts='
689
enable_option_checking
690
enable_dependency_tracking
691
'
692
      ac_precious_vars='build_alias
693
host_alias
694
target_alias
695
CXX
696
CXXFLAGS
697
LDFLAGS
698
LIBS
699
CPPFLAGS
700
CCC
701
CC
702
CFLAGS
703
CPP'
704
705
706
# Initialize some variables set by options.
707
ac_init_help=
708
ac_init_version=false
709
ac_unrecognized_opts=
710
ac_unrecognized_sep=
711
# The variables have the same names as the options, with
712
# dashes changed to underlines.
713
cache_file=/dev/null
714
exec_prefix=NONE
715
no_create=
716
no_recursion=
717
prefix=NONE
718
program_prefix=NONE
719
program_suffix=NONE
720
program_transform_name=s,x,x,
721
silent=
722
site=
723
srcdir=
724
verbose=
725
x_includes=NONE
726
x_libraries=NONE
727
728
# Installation directory options.
729
# These are left unexpanded so users can "make install exec_prefix=/foo"
730
# and all the variables that are supposed to be based on exec_prefix
731
# by default will actually change.
732
# Use braces instead of parens because sh, perl, etc. also accept them.
733
# (The list follows the same order as the GNU Coding Standards.)
734
bindir='${exec_prefix}/bin'
735
sbindir='${exec_prefix}/sbin'
736
libexecdir='${exec_prefix}/libexec'
737
datarootdir='${prefix}/share'
738
datadir='${datarootdir}'
739
sysconfdir='${prefix}/etc'
740
sharedstatedir='${prefix}/com'
741
localstatedir='${prefix}/var'
742
includedir='${prefix}/include'
743
oldincludedir='/usr/include'
744
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
745
infodir='${datarootdir}/info'
746
htmldir='${docdir}'
747
dvidir='${docdir}'
748
pdfdir='${docdir}'
749
psdir='${docdir}'
750
libdir='${exec_prefix}/lib'
751
localedir='${datarootdir}/locale'
752
mandir='${datarootdir}/man'
753
754
ac_prev=
755
ac_dashdash=
756
for ac_option
757
do
758
  # If the previous option needs an argument, assign it.
759
  if test -n "$ac_prev"; then
760
    eval $ac_prev=\$ac_option
761
    ac_prev=
762
    continue
763
  fi
764
765
  case $ac_option in
766
  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
767
  *)	ac_optarg=yes ;;
768
  esac
769
770
  # Accept the important Cygnus configure options, so we can diagnose typos.
771
772
  case $ac_dashdash$ac_option in
773
  --)
774
    ac_dashdash=yes ;;
775
776
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
777
    ac_prev=bindir ;;
778
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
779
    bindir=$ac_optarg ;;
780
781
  -build | --build | --buil | --bui | --bu)
782
    ac_prev=build_alias ;;
783
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
784
    build_alias=$ac_optarg ;;
785
786
  -cache-file | --cache-file | --cache-fil | --cache-fi \
787
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
788
    ac_prev=cache_file ;;
789
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
790
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
791
    cache_file=$ac_optarg ;;
792
793
  --config-cache | -C)
794
    cache_file=config.cache ;;
795
796
  -datadir | --datadir | --datadi | --datad)
797
    ac_prev=datadir ;;
798
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
799
    datadir=$ac_optarg ;;
800
801
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
802
  | --dataroo | --dataro | --datar)
803
    ac_prev=datarootdir ;;
804
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
805
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
806
    datarootdir=$ac_optarg ;;
807
808
  -disable-* | --disable-*)
809
    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
810
    # Reject names that are not valid shell variable names.
811
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
812
      as_fn_error "invalid feature name: $ac_useropt"
813
    ac_useropt_orig=$ac_useropt
814
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
815
    case $ac_user_opts in
816
      *"
817
"enable_$ac_useropt"
818
"*) ;;
819
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
820
	 ac_unrecognized_sep=', ';;
821
    esac
822
    eval enable_$ac_useropt=no ;;
823
824
  -docdir | --docdir | --docdi | --doc | --do)
825
    ac_prev=docdir ;;
826
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
827
    docdir=$ac_optarg ;;
828
829
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
830
    ac_prev=dvidir ;;
831
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
832
    dvidir=$ac_optarg ;;
833
834
  -enable-* | --enable-*)
835
    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
836
    # Reject names that are not valid shell variable names.
837
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
838
      as_fn_error "invalid feature name: $ac_useropt"
839
    ac_useropt_orig=$ac_useropt
840
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
841
    case $ac_user_opts in
842
      *"
843
"enable_$ac_useropt"
844
"*) ;;
845
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
846
	 ac_unrecognized_sep=', ';;
847
    esac
848
    eval enable_$ac_useropt=\$ac_optarg ;;
849
850
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
851
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
852
  | --exec | --exe | --ex)
853
    ac_prev=exec_prefix ;;
854
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
855
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
856
  | --exec=* | --exe=* | --ex=*)
857
    exec_prefix=$ac_optarg ;;
858
859
  -gas | --gas | --ga | --g)
860
    # Obsolete; use --with-gas.
861
    with_gas=yes ;;
862
863
  -help | --help | --hel | --he | -h)
864
    ac_init_help=long ;;
865
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
866
    ac_init_help=recursive ;;
867
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
868
    ac_init_help=short ;;
869
870
  -host | --host | --hos | --ho)
871
    ac_prev=host_alias ;;
872
  -host=* | --host=* | --hos=* | --ho=*)
873
    host_alias=$ac_optarg ;;
874
875
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
876
    ac_prev=htmldir ;;
877
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
878
  | --ht=*)
879
    htmldir=$ac_optarg ;;
880
881
  -includedir | --includedir | --includedi | --included | --include \
882
  | --includ | --inclu | --incl | --inc)
883
    ac_prev=includedir ;;
884
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
885
  | --includ=* | --inclu=* | --incl=* | --inc=*)
886
    includedir=$ac_optarg ;;
887
888
  -infodir | --infodir | --infodi | --infod | --info | --inf)
889
    ac_prev=infodir ;;
890
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
891
    infodir=$ac_optarg ;;
892
893
  -libdir | --libdir | --libdi | --libd)
894
    ac_prev=libdir ;;
895
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
896
    libdir=$ac_optarg ;;
897
898
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
899
  | --libexe | --libex | --libe)
900
    ac_prev=libexecdir ;;
901
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
902
  | --libexe=* | --libex=* | --libe=*)
903
    libexecdir=$ac_optarg ;;
904
905
  -localedir | --localedir | --localedi | --localed | --locale)
906
    ac_prev=localedir ;;
907
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
908
    localedir=$ac_optarg ;;
909
910
  -localstatedir | --localstatedir | --localstatedi | --localstated \
911
  | --localstate | --localstat | --localsta | --localst | --locals)
912
    ac_prev=localstatedir ;;
913
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
914
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
915
    localstatedir=$ac_optarg ;;
916
917
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
918
    ac_prev=mandir ;;
919
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
920
    mandir=$ac_optarg ;;
921
922
  -nfp | --nfp | --nf)
923
    # Obsolete; use --without-fp.
924
    with_fp=no ;;
925
926
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
927
  | --no-cr | --no-c | -n)
928
    no_create=yes ;;
929
930
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
931
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
932
    no_recursion=yes ;;
933
934
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
935
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
936
  | --oldin | --oldi | --old | --ol | --o)
937
    ac_prev=oldincludedir ;;
938
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
939
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
940
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
941
    oldincludedir=$ac_optarg ;;
942
943
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
944
    ac_prev=prefix ;;
945
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
946
    prefix=$ac_optarg ;;
947
948
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
949
  | --program-pre | --program-pr | --program-p)
950
    ac_prev=program_prefix ;;
951
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
952
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
953
    program_prefix=$ac_optarg ;;
954
955
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
956
  | --program-suf | --program-su | --program-s)
957
    ac_prev=program_suffix ;;
958
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
959
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
960
    program_suffix=$ac_optarg ;;
961
962
  -program-transform-name | --program-transform-name \
963
  | --program-transform-nam | --program-transform-na \
964
  | --program-transform-n | --program-transform- \
965
  | --program-transform | --program-transfor \
966
  | --program-transfo | --program-transf \
967
  | --program-trans | --program-tran \
968
  | --progr-tra | --program-tr | --program-t)
969
    ac_prev=program_transform_name ;;
970
  -program-transform-name=* | --program-transform-name=* \
971
  | --program-transform-nam=* | --program-transform-na=* \
972
  | --program-transform-n=* | --program-transform-=* \
973
  | --program-transform=* | --program-transfor=* \
974
  | --program-transfo=* | --program-transf=* \
975
  | --program-trans=* | --program-tran=* \
976
  | --progr-tra=* | --program-tr=* | --program-t=*)
977
    program_transform_name=$ac_optarg ;;
978
979
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
980
    ac_prev=pdfdir ;;
981
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
982
    pdfdir=$ac_optarg ;;
983
984
  -psdir | --psdir | --psdi | --psd | --ps)
985
    ac_prev=psdir ;;
986
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
987
    psdir=$ac_optarg ;;
988
989
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
990
  | -silent | --silent | --silen | --sile | --sil)
991
    silent=yes ;;
992
993
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
994
    ac_prev=sbindir ;;
995
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
996
  | --sbi=* | --sb=*)
997
    sbindir=$ac_optarg ;;
998
999
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1000
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1001
  | --sharedst | --shareds | --shared | --share | --shar \
1002
  | --sha | --sh)
1003
    ac_prev=sharedstatedir ;;
1004
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1005
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1006
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1007
  | --sha=* | --sh=*)
1008
    sharedstatedir=$ac_optarg ;;
1009
1010
  -site | --site | --sit)
1011
    ac_prev=site ;;
1012
  -site=* | --site=* | --sit=*)
1013
    site=$ac_optarg ;;
1014
1015
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1016
    ac_prev=srcdir ;;
1017
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1018
    srcdir=$ac_optarg ;;
1019
1020
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1021
  | --syscon | --sysco | --sysc | --sys | --sy)
1022
    ac_prev=sysconfdir ;;
1023
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1024
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1025
    sysconfdir=$ac_optarg ;;
1026
1027
  -target | --target | --targe | --targ | --tar | --ta | --t)
1028
    ac_prev=target_alias ;;
1029
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1030
    target_alias=$ac_optarg ;;
1031
1032
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1033
    verbose=yes ;;
1034
1035
  -version | --version | --versio | --versi | --vers | -V)
1036
    ac_init_version=: ;;
1037
1038
  -with-* | --with-*)
1039
    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1040
    # Reject names that are not valid shell variable names.
1041
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042
      as_fn_error "invalid package name: $ac_useropt"
1043
    ac_useropt_orig=$ac_useropt
1044
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045
    case $ac_user_opts in
1046
      *"
1047
"with_$ac_useropt"
1048
"*) ;;
1049
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1050
	 ac_unrecognized_sep=', ';;
1051
    esac
1052
    eval with_$ac_useropt=\$ac_optarg ;;
1053
1054
  -without-* | --without-*)
1055
    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1056
    # Reject names that are not valid shell variable names.
1057
    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1058
      as_fn_error "invalid package name: $ac_useropt"
1059
    ac_useropt_orig=$ac_useropt
1060
    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1061
    case $ac_user_opts in
1062
      *"
1063
"with_$ac_useropt"
1064
"*) ;;
1065
      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1066
	 ac_unrecognized_sep=', ';;
1067
    esac
1068
    eval with_$ac_useropt=no ;;
1069
1070
  --x)
1071
    # Obsolete; use --with-x.
1072
    with_x=yes ;;
1073
1074
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1075
  | --x-incl | --x-inc | --x-in | --x-i)
1076
    ac_prev=x_includes ;;
1077
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1078
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1079
    x_includes=$ac_optarg ;;
1080
1081
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1082
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1083
    ac_prev=x_libraries ;;
1084
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1085
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1086
    x_libraries=$ac_optarg ;;
1087
1088
  -*) as_fn_error "unrecognized option: \`$ac_option'
1089
Try \`$0 --help' for more information."
1090
    ;;
1091
1092
  *=*)
1093
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094
    # Reject names that are not valid shell variable names.
1095
    case $ac_envvar in #(
1096
      '' | [0-9]* | *[!_$as_cr_alnum]* )
1097
      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1098
    esac
1099
    eval $ac_envvar=\$ac_optarg
1100
    export $ac_envvar ;;
1101
1102
  *)
1103
    # FIXME: should be removed in autoconf 3.0.
1104
    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106
      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108
    ;;
1109
1110
  esac
1111
done
1112
1113
if test -n "$ac_prev"; then
1114
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1115
  as_fn_error "missing argument to $ac_option"
1116
fi
1117
1118
if test -n "$ac_unrecognized_opts"; then
1119
  case $enable_option_checking in
1120
    no) ;;
1121
    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1122
    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1123
  esac
1124
fi
1125
1126
# Check all directory arguments for consistency.
1127
for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128
		datadir sysconfdir sharedstatedir localstatedir includedir \
1129
		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130
		libdir localedir mandir
1131
do
1132
  eval ac_val=\$$ac_var
1133
  # Remove trailing slashes.
1134
  case $ac_val in
1135
    */ )
1136
      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1137
      eval $ac_var=\$ac_val;;
1138
  esac
1139
  # Be sure to have absolute directory names.
1140
  case $ac_val in
1141
    [\\/$]* | ?:[\\/]* )  continue;;
1142
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1143
  esac
1144
  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1145
done
1146
1147
# There might be people who depend on the old broken behavior: `$host'
1148
# used to hold the argument of --host etc.
1149
# FIXME: To remove some day.
1150
build=$build_alias
1151
host=$host_alias
1152
target=$target_alias
1153
1154
# FIXME: To remove some day.
1155
if test "x$host_alias" != x; then
1156
  if test "x$build_alias" = x; then
1157
    cross_compiling=maybe
1158
    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1159
    If a cross compiler is detected then cross compile mode will be used." >&2
1160
  elif test "x$build_alias" != "x$host_alias"; then
1161
    cross_compiling=yes
1162
  fi
1163
fi
1164
1165
ac_tool_prefix=
1166
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1167
1168
test "$silent" = yes && exec 6>/dev/null
1169
1170
1171
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172
ac_ls_di=`ls -di .` &&
1173
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174
  as_fn_error "working directory cannot be determined"
1175
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1176
  as_fn_error "pwd does not report name of working directory"
1177
1178
1179
# Find the source files, if location was not specified.
1180
if test -z "$srcdir"; then
1181
  ac_srcdir_defaulted=yes
1182
  # Try the directory containing this script, then the parent directory.
1183
  ac_confdir=`$as_dirname -- "$as_myself" ||
1184
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1185
	 X"$as_myself" : 'X\(//\)[^/]' \| \
1186
	 X"$as_myself" : 'X\(//\)$' \| \
1187
	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1188
$as_echo X"$as_myself" |
1189
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1190
	    s//\1/
1191
	    q
1192
	  }
1193
	  /^X\(\/\/\)[^/].*/{
1194
	    s//\1/
1195
	    q
1196
	  }
1197
	  /^X\(\/\/\)$/{
1198
	    s//\1/
1199
	    q
1200
	  }
1201
	  /^X\(\/\).*/{
1202
	    s//\1/
1203
	    q
1204
	  }
1205
	  s/.*/./; q'`
1206
  srcdir=$ac_confdir
1207
  if test ! -r "$srcdir/$ac_unique_file"; then
1208
    srcdir=..
1209
  fi
1210
else
1211
  ac_srcdir_defaulted=no
1212
fi
1213
if test ! -r "$srcdir/$ac_unique_file"; then
1214
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1215
  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1216
fi
1217
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1218
ac_abs_confdir=`(
1219
	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1220
	pwd)`
1221
# When building in place, set srcdir=.
1222
if test "$ac_abs_confdir" = "$ac_pwd"; then
1223
  srcdir=.
1224
fi
1225
# Remove unnecessary trailing slashes from srcdir.
1226
# Double slashes in file names in object file debugging info
1227
# mess up M-x gdb in Emacs.
1228
case $srcdir in
1229
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230
esac
1231
for ac_var in $ac_precious_vars; do
1232
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233
  eval ac_env_${ac_var}_value=\$${ac_var}
1234
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236
done
1237
1238
#
1239
# Report the --help message.
1240
#
1241
if test "$ac_init_help" = "long"; then
1242
  # Omit some internal or obsolete options to make the list less imposing.
1243
  # This message is too long to be a string in the A/UX 3.1 sh.
1244
  cat <<_ACEOF
16 by Clint Byrum
adding test suite
1245
\`configure' configures ustat 0.1 to adapt to many kinds of systems.
11 by Clint Byrum
automake yay
1246
1247
Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250
VAR=VALUE.  See below for descriptions of some of the useful variables.
1251
1252
Defaults for the options are specified in brackets.
1253
1254
Configuration:
1255
  -h, --help              display this help and exit
1256
      --help=short        display options specific to this package
1257
      --help=recursive    display the short help of all the included packages
1258
  -V, --version           display version information and exit
1259
  -q, --quiet, --silent   do not print \`checking...' messages
1260
      --cache-file=FILE   cache test results in FILE [disabled]
1261
  -C, --config-cache      alias for \`--cache-file=config.cache'
1262
  -n, --no-create         do not create output files
1263
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1264
1265
Installation directories:
1266
  --prefix=PREFIX         install architecture-independent files in PREFIX
1267
                          [$ac_default_prefix]
1268
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1269
                          [PREFIX]
1270
1271
By default, \`make install' will install all the files in
1272
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1273
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274
for instance \`--prefix=\$HOME'.
1275
1276
For better control, use the options below.
1277
1278
Fine tuning of the installation directories:
1279
  --bindir=DIR            user executables [EPREFIX/bin]
1280
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1281
  --libexecdir=DIR        program executables [EPREFIX/libexec]
1282
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1283
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1284
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1285
  --libdir=DIR            object code libraries [EPREFIX/lib]
1286
  --includedir=DIR        C header files [PREFIX/include]
1287
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1288
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1289
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1290
  --infodir=DIR           info documentation [DATAROOTDIR/info]
1291
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1292
  --mandir=DIR            man documentation [DATAROOTDIR/man]
16 by Clint Byrum
adding test suite
1293
  --docdir=DIR            documentation root [DATAROOTDIR/doc/ustat]
11 by Clint Byrum
automake yay
1294
  --htmldir=DIR           html documentation [DOCDIR]
1295
  --dvidir=DIR            dvi documentation [DOCDIR]
1296
  --pdfdir=DIR            pdf documentation [DOCDIR]
1297
  --psdir=DIR             ps documentation [DOCDIR]
1298
_ACEOF
1299
1300
  cat <<\_ACEOF
1301
1302
Program names:
1303
  --program-prefix=PREFIX            prepend PREFIX to installed program names
1304
  --program-suffix=SUFFIX            append SUFFIX to installed program names
1305
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1306
_ACEOF
1307
fi
1308
1309
if test -n "$ac_init_help"; then
1310
  case $ac_init_help in
16 by Clint Byrum
adding test suite
1311
     short | recursive ) echo "Configuration of ustat 0.1:";;
11 by Clint Byrum
automake yay
1312
   esac
1313
  cat <<\_ACEOF
1314
1315
Optional Features:
1316
  --disable-option-checking  ignore unrecognized --enable/--with options
1317
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1318
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1319
  --disable-dependency-tracking  speeds up one-time build
1320
  --enable-dependency-tracking   do not reject slow dependency extractors
1321
1322
Some influential environment variables:
1323
  CXX         C++ compiler command
1324
  CXXFLAGS    C++ compiler flags
1325
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1326
              nonstandard directory <lib dir>
1327
  LIBS        libraries to pass to the linker, e.g. -l<library>
1328
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1329
              you have headers in a nonstandard directory <include dir>
1330
  CC          C compiler command
1331
  CFLAGS      C compiler flags
1332
  CPP         C preprocessor
1333
1334
Use these variables to override the choices made by `configure' or to help
1335
it to find libraries and programs with nonstandard names/locations.
1336
16 by Clint Byrum
adding test suite
1337
Report bugs to <clint@ubuntu.com>.
11 by Clint Byrum
automake yay
1338
_ACEOF
1339
ac_status=$?
1340
fi
1341
1342
if test "$ac_init_help" = "recursive"; then
1343
  # If there are subdirs, report their specific --help.
1344
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1345
    test -d "$ac_dir" ||
1346
      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1347
      continue
1348
    ac_builddir=.
1349
1350
case "$ac_dir" in
1351
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1352
*)
1353
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1354
  # A ".." for each directory in $ac_dir_suffix.
1355
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1356
  case $ac_top_builddir_sub in
1357
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1359
  esac ;;
1360
esac
1361
ac_abs_top_builddir=$ac_pwd
1362
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1363
# for backward compatibility:
1364
ac_top_builddir=$ac_top_build_prefix
1365
1366
case $srcdir in
1367
  .)  # We are building in place.
1368
    ac_srcdir=.
1369
    ac_top_srcdir=$ac_top_builddir_sub
1370
    ac_abs_top_srcdir=$ac_pwd ;;
1371
  [\\/]* | ?:[\\/]* )  # Absolute name.
1372
    ac_srcdir=$srcdir$ac_dir_suffix;
1373
    ac_top_srcdir=$srcdir
1374
    ac_abs_top_srcdir=$srcdir ;;
1375
  *) # Relative name.
1376
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1377
    ac_top_srcdir=$ac_top_build_prefix$srcdir
1378
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1379
esac
1380
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1381
1382
    cd "$ac_dir" || { ac_status=$?; continue; }
1383
    # Check for guested configure.
1384
    if test -f "$ac_srcdir/configure.gnu"; then
1385
      echo &&
1386
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1387
    elif test -f "$ac_srcdir/configure"; then
1388
      echo &&
1389
      $SHELL "$ac_srcdir/configure" --help=recursive
1390
    else
1391
      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1392
    fi || ac_status=$?
1393
    cd "$ac_pwd" || { ac_status=$?; break; }
1394
  done
1395
fi
1396
1397
test -n "$ac_init_help" && exit $ac_status
1398
if $ac_init_version; then
1399
  cat <<\_ACEOF
16 by Clint Byrum
adding test suite
1400
ustat configure 0.1
11 by Clint Byrum
automake yay
1401
generated by GNU Autoconf 2.65
1402
1403
Copyright (C) 2009 Free Software Foundation, Inc.
1404
This configure script is free software; the Free Software Foundation
1405
gives unlimited permission to copy, distribute and modify it.
1406
_ACEOF
1407
  exit
1408
fi
1409
1410
## ------------------------ ##
1411
## Autoconf initialization. ##
1412
## ------------------------ ##
1413
1414
# ac_fn_cxx_try_compile LINENO
1415
# ----------------------------
1416
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1417
ac_fn_cxx_try_compile ()
1418
{
1419
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1420
  rm -f conftest.$ac_objext
1421
  if { { ac_try="$ac_compile"
1422
case "(($ac_try" in
1423
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1424
  *) ac_try_echo=$ac_try;;
1425
esac
1426
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1427
$as_echo "$ac_try_echo"; } >&5
1428
  (eval "$ac_compile") 2>conftest.err
1429
  ac_status=$?
1430
  if test -s conftest.err; then
1431
    grep -v '^ *+' conftest.err >conftest.er1
1432
    cat conftest.er1 >&5
1433
    mv -f conftest.er1 conftest.err
1434
  fi
1435
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1436
  test $ac_status = 0; } && {
1437
	 test -z "$ac_cxx_werror_flag" ||
1438
	 test ! -s conftest.err
1439
       } && test -s conftest.$ac_objext; then :
1440
  ac_retval=0
1441
else
1442
  $as_echo "$as_me: failed program was:" >&5
1443
sed 's/^/| /' conftest.$ac_ext >&5
1444
1445
	ac_retval=1
1446
fi
1447
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1448
  as_fn_set_status $ac_retval
1449
1450
} # ac_fn_cxx_try_compile
1451
1452
# ac_fn_c_try_compile LINENO
1453
# --------------------------
1454
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1455
ac_fn_c_try_compile ()
1456
{
1457
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1458
  rm -f conftest.$ac_objext
1459
  if { { ac_try="$ac_compile"
1460
case "(($ac_try" in
1461
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1462
  *) ac_try_echo=$ac_try;;
1463
esac
1464
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1465
$as_echo "$ac_try_echo"; } >&5
1466
  (eval "$ac_compile") 2>conftest.err
1467
  ac_status=$?
1468
  if test -s conftest.err; then
1469
    grep -v '^ *+' conftest.err >conftest.er1
1470
    cat conftest.er1 >&5
1471
    mv -f conftest.er1 conftest.err
1472
  fi
1473
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1474
  test $ac_status = 0; } && {
1475
	 test -z "$ac_c_werror_flag" ||
1476
	 test ! -s conftest.err
1477
       } && test -s conftest.$ac_objext; then :
1478
  ac_retval=0
1479
else
1480
  $as_echo "$as_me: failed program was:" >&5
1481
sed 's/^/| /' conftest.$ac_ext >&5
1482
1483
	ac_retval=1
1484
fi
1485
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1486
  as_fn_set_status $ac_retval
1487
1488
} # ac_fn_c_try_compile
1489
1490
# ac_fn_c_try_link LINENO
1491
# -----------------------
1492
# Try to link conftest.$ac_ext, and return whether this succeeded.
1493
ac_fn_c_try_link ()
1494
{
1495
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1496
  rm -f conftest.$ac_objext conftest$ac_exeext
1497
  if { { ac_try="$ac_link"
1498
case "(($ac_try" in
1499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500
  *) ac_try_echo=$ac_try;;
1501
esac
1502
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503
$as_echo "$ac_try_echo"; } >&5
1504
  (eval "$ac_link") 2>conftest.err
1505
  ac_status=$?
1506
  if test -s conftest.err; then
1507
    grep -v '^ *+' conftest.err >conftest.er1
1508
    cat conftest.er1 >&5
1509
    mv -f conftest.er1 conftest.err
1510
  fi
1511
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512
  test $ac_status = 0; } && {
1513
	 test -z "$ac_c_werror_flag" ||
1514
	 test ! -s conftest.err
1515
       } && test -s conftest$ac_exeext && {
1516
	 test "$cross_compiling" = yes ||
1517
	 $as_test_x conftest$ac_exeext
1518
       }; then :
1519
  ac_retval=0
1520
else
1521
  $as_echo "$as_me: failed program was:" >&5
1522
sed 's/^/| /' conftest.$ac_ext >&5
1523
1524
	ac_retval=1
1525
fi
1526
  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1527
  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1528
  # interfere with the next link command; also delete a directory that is
1529
  # left behind by Apple's compiler.  We do this before executing the actions.
1530
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1531
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1532
  as_fn_set_status $ac_retval
1533
1534
} # ac_fn_c_try_link
1535
1536
# ac_fn_c_try_cpp LINENO
1537
# ----------------------
1538
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1539
ac_fn_c_try_cpp ()
1540
{
1541
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542
  if { { ac_try="$ac_cpp conftest.$ac_ext"
1543
case "(($ac_try" in
1544
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1545
  *) ac_try_echo=$ac_try;;
1546
esac
1547
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1548
$as_echo "$ac_try_echo"; } >&5
1549
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1550
  ac_status=$?
1551
  if test -s conftest.err; then
1552
    grep -v '^ *+' conftest.err >conftest.er1
1553
    cat conftest.er1 >&5
1554
    mv -f conftest.er1 conftest.err
1555
  fi
1556
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1557
  test $ac_status = 0; } >/dev/null && {
1558
	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1559
	 test ! -s conftest.err
1560
       }; then :
1561
  ac_retval=0
1562
else
1563
  $as_echo "$as_me: failed program was:" >&5
1564
sed 's/^/| /' conftest.$ac_ext >&5
1565
1566
    ac_retval=1
1567
fi
1568
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1569
  as_fn_set_status $ac_retval
1570
1571
} # ac_fn_c_try_cpp
1572
1573
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1574
# -------------------------------------------------------
1575
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1576
# the include files in INCLUDES and setting the cache variable VAR
1577
# accordingly.
1578
ac_fn_c_check_header_mongrel ()
1579
{
1580
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1581
  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1582
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1583
$as_echo_n "checking for $2... " >&6; }
1584
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1585
  $as_echo_n "(cached) " >&6
1586
fi
1587
eval ac_res=\$$3
1588
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1589
$as_echo "$ac_res" >&6; }
1590
else
1591
  # Is the header compilable?
1592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1593
$as_echo_n "checking $2 usability... " >&6; }
1594
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1595
/* end confdefs.h.  */
1596
$4
1597
#include <$2>
1598
_ACEOF
1599
if ac_fn_c_try_compile "$LINENO"; then :
1600
  ac_header_compiler=yes
1601
else
1602
  ac_header_compiler=no
1603
fi
1604
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1606
$as_echo "$ac_header_compiler" >&6; }
1607
1608
# Is the header present?
1609
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1610
$as_echo_n "checking $2 presence... " >&6; }
1611
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1612
/* end confdefs.h.  */
1613
#include <$2>
1614
_ACEOF
1615
if ac_fn_c_try_cpp "$LINENO"; then :
1616
  ac_header_preproc=yes
1617
else
1618
  ac_header_preproc=no
1619
fi
1620
rm -f conftest.err conftest.$ac_ext
1621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1622
$as_echo "$ac_header_preproc" >&6; }
1623
1624
# So?  What about this header?
1625
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1626
  yes:no: )
1627
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1628
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1629
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1630
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1631
    ;;
1632
  no:yes:* )
1633
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1634
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1635
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1636
$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1637
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1638
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1639
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1640
$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1641
    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1642
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643
( cat <<\_ASBOX
16 by Clint Byrum
adding test suite
1644
## ------------------------------- ##
1645
## Report this to clint@ubuntu.com ##
1646
## ------------------------------- ##
11 by Clint Byrum
automake yay
1647
_ASBOX
1648
     ) | sed "s/^/$as_me: WARNING:     /" >&2
1649
    ;;
1650
esac
1651
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1652
$as_echo_n "checking for $2... " >&6; }
1653
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1654
  $as_echo_n "(cached) " >&6
1655
else
1656
  eval "$3=\$ac_header_compiler"
1657
fi
1658
eval ac_res=\$$3
1659
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1660
$as_echo "$ac_res" >&6; }
1661
fi
1662
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1663
1664
} # ac_fn_c_check_header_mongrel
1665
1666
# ac_fn_c_try_run LINENO
1667
# ----------------------
1668
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1669
# that executables *can* be run.
1670
ac_fn_c_try_run ()
1671
{
1672
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673
  if { { ac_try="$ac_link"
1674
case "(($ac_try" in
1675
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1676
  *) ac_try_echo=$ac_try;;
1677
esac
1678
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1679
$as_echo "$ac_try_echo"; } >&5
1680
  (eval "$ac_link") 2>&5
1681
  ac_status=$?
1682
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1683
  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1684
  { { case "(($ac_try" in
1685
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1686
  *) ac_try_echo=$ac_try;;
1687
esac
1688
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1689
$as_echo "$ac_try_echo"; } >&5
1690
  (eval "$ac_try") 2>&5
1691
  ac_status=$?
1692
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693
  test $ac_status = 0; }; }; then :
1694
  ac_retval=0
1695
else
1696
  $as_echo "$as_me: program exited with status $ac_status" >&5
1697
       $as_echo "$as_me: failed program was:" >&5
1698
sed 's/^/| /' conftest.$ac_ext >&5
1699
1700
       ac_retval=$ac_status
1701
fi
1702
  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1703
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1704
  as_fn_set_status $ac_retval
1705
1706
} # ac_fn_c_try_run
1707
1708
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1709
# -------------------------------------------------------
1710
# Tests whether HEADER exists and can be compiled using the include files in
1711
# INCLUDES, setting the cache variable VAR accordingly.
1712
ac_fn_c_check_header_compile ()
1713
{
1714
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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
else
1720
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1721
/* end confdefs.h.  */
1722
$4
1723
#include <$2>
1724
_ACEOF
1725
if ac_fn_c_try_compile "$LINENO"; then :
1726
  eval "$3=yes"
1727
else
1728
  eval "$3=no"
1729
fi
1730
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1731
fi
1732
eval ac_res=\$$3
1733
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1734
$as_echo "$ac_res" >&6; }
1735
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1736
1737
} # ac_fn_c_check_header_compile
1738
1739
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1740
# -------------------------------------------
1741
# Tests whether TYPE exists after having included INCLUDES, setting cache
1742
# variable VAR accordingly.
1743
ac_fn_c_check_type ()
1744
{
1745
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1747
$as_echo_n "checking for $2... " >&6; }
1748
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1749
  $as_echo_n "(cached) " >&6
1750
else
1751
  eval "$3=no"
1752
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1753
/* end confdefs.h.  */
1754
$4
1755
int
1756
main ()
1757
{
1758
if (sizeof ($2))
1759
	 return 0;
1760
  ;
1761
  return 0;
1762
}
1763
_ACEOF
1764
if ac_fn_c_try_compile "$LINENO"; then :
1765
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766
/* end confdefs.h.  */
1767
$4
1768
int
1769
main ()
1770
{
1771
if (sizeof (($2)))
1772
	    return 0;
1773
  ;
1774
  return 0;
1775
}
1776
_ACEOF
1777
if ac_fn_c_try_compile "$LINENO"; then :
1778
1779
else
1780
  eval "$3=yes"
1781
fi
1782
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1783
fi
1784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785
fi
1786
eval ac_res=\$$3
1787
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788
$as_echo "$ac_res" >&6; }
1789
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1790
1791
} # ac_fn_c_check_type
1792
1793
# ac_fn_c_find_uintX_t LINENO BITS VAR
1794
# ------------------------------------
1795
# Finds an unsigned integer type with width BITS, setting cache variable VAR
1796
# accordingly.
1797
ac_fn_c_find_uintX_t ()
1798
{
1799
  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1800
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1801
$as_echo_n "checking for uint$2_t... " >&6; }
1802
if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1803
  $as_echo_n "(cached) " >&6
1804
else
1805
  eval "$3=no"
1806
     # Order is important - never check a type that is potentially smaller
1807
     # than half of the expected target width.
1808
     for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1809
	 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1810
       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1811
/* end confdefs.h.  */
1812
$ac_includes_default
1813
int
1814
main ()
1815
{
1816
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1817
test_array [0] = 0
1818
1819
  ;
1820
  return 0;
1821
}
1822
_ACEOF
1823
if ac_fn_c_try_compile "$LINENO"; then :
1824
  case $ac_type in #(
1825
  uint$2_t) :
1826
    eval "$3=yes" ;; #(
1827
  *) :
1828
    eval "$3=\$ac_type" ;;
1829
esac
1830
fi
1831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832
       eval as_val=\$$3
1833
   if test "x$as_val" = x""no; then :
1834
1835
else
1836
  break
1837
fi
1838
     done
1839
fi
1840
eval ac_res=\$$3
1841
	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1842
$as_echo "$ac_res" >&6; }
1843
  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844
1845
} # ac_fn_c_find_uintX_t
1846
cat >config.log <<_ACEOF
1847
This file contains any messages produced by compilers while
1848
running configure, to aid debugging if configure makes a mistake.
1849
16 by Clint Byrum
adding test suite
1850
It was created by ustat $as_me 0.1, which was
11 by Clint Byrum
automake yay
1851
generated by GNU Autoconf 2.65.  Invocation command line was
1852
1853
  $ $0 $@
1854
1855
_ACEOF
1856
exec 5>>config.log
1857
{
1858
cat <<_ASUNAME
1859
## --------- ##
1860
## Platform. ##
1861
## --------- ##
1862
1863
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1864
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1865
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1866
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1867
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1868
1869
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1870
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1871
1872
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1873
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1874
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1875
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1876
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1877
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1878
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1879
1880
_ASUNAME
1881
1882
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1883
for as_dir in $PATH
1884
do
1885
  IFS=$as_save_IFS
1886
  test -z "$as_dir" && as_dir=.
1887
    $as_echo "PATH: $as_dir"
1888
  done
1889
IFS=$as_save_IFS
1890
1891
} >&5
1892
1893
cat >&5 <<_ACEOF
1894
1895
1896
## ----------- ##
1897
## Core tests. ##
1898
## ----------- ##
1899
1900
_ACEOF
1901
1902
1903
# Keep a trace of the command line.
1904
# Strip out --no-create and --no-recursion so they do not pile up.
1905
# Strip out --silent because we don't want to record it for future runs.
1906
# Also quote any args containing shell meta-characters.
1907
# Make two passes to allow for proper duplicate-argument suppression.
1908
ac_configure_args=
1909
ac_configure_args0=
1910
ac_configure_args1=
1911
ac_must_keep_next=false
1912
for ac_pass in 1 2
1913
do
1914
  for ac_arg
1915
  do
1916
    case $ac_arg in
1917
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1918
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1919
    | -silent | --silent | --silen | --sile | --sil)
1920
      continue ;;
1921
    *\'*)
1922
      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1923
    esac
1924
    case $ac_pass in
1925
    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1926
    2)
1927
      as_fn_append ac_configure_args1 " '$ac_arg'"
1928
      if test $ac_must_keep_next = true; then
1929
	ac_must_keep_next=false # Got value, back to normal.
1930
      else
1931
	case $ac_arg in
1932
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1933
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1934
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1935
	  | -with-* | --with-* | -without-* | --without-* | --x)
1936
	    case "$ac_configure_args0 " in
1937
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1938
	    esac
1939
	    ;;
1940
	  -* ) ac_must_keep_next=true ;;
1941
	esac
1942
      fi
1943
      as_fn_append ac_configure_args " '$ac_arg'"
1944
      ;;
1945
    esac
1946
  done
1947
done
1948
{ ac_configure_args0=; unset ac_configure_args0;}
1949
{ ac_configure_args1=; unset ac_configure_args1;}
1950
1951
# When interrupted or exit'd, cleanup temporary files, and complete
1952
# config.log.  We remove comments because anyway the quotes in there
1953
# would cause problems or look ugly.
1954
# WARNING: Use '\'' to represent an apostrophe within the trap.
1955
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1956
trap 'exit_status=$?
1957
  # Save into config.log some information that might help in debugging.
1958
  {
1959
    echo
1960
1961
    cat <<\_ASBOX
1962
## ---------------- ##
1963
## Cache variables. ##
1964
## ---------------- ##
1965
_ASBOX
1966
    echo
1967
    # The following way of writing the cache mishandles newlines in values,
1968
(
1969
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1970
    eval ac_val=\$$ac_var
1971
    case $ac_val in #(
1972
    *${as_nl}*)
1973
      case $ac_var in #(
1974
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1975
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1976
      esac
1977
      case $ac_var in #(
1978
      _ | IFS | as_nl) ;; #(
1979
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1980
      *) { eval $ac_var=; unset $ac_var;} ;;
1981
      esac ;;
1982
    esac
1983
  done
1984
  (set) 2>&1 |
1985
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1986
    *${as_nl}ac_space=\ *)
1987
      sed -n \
1988
	"s/'\''/'\''\\\\'\'''\''/g;
1989
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1990
      ;; #(
1991
    *)
1992
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1993
      ;;
1994
    esac |
1995
    sort
1996
)
1997
    echo
1998
1999
    cat <<\_ASBOX
2000
## ----------------- ##
2001
## Output variables. ##
2002
## ----------------- ##
2003
_ASBOX
2004
    echo
2005
    for ac_var in $ac_subst_vars
2006
    do
2007
      eval ac_val=\$$ac_var
2008
      case $ac_val in
2009
      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2010
      esac
2011
      $as_echo "$ac_var='\''$ac_val'\''"
2012
    done | sort
2013
    echo
2014
2015
    if test -n "$ac_subst_files"; then
2016
      cat <<\_ASBOX
2017
## ------------------- ##
2018
## File substitutions. ##
2019
## ------------------- ##
2020
_ASBOX
2021
      echo
2022
      for ac_var in $ac_subst_files
2023
      do
2024
	eval ac_val=\$$ac_var
2025
	case $ac_val in
2026
	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2027
	esac
2028
	$as_echo "$ac_var='\''$ac_val'\''"
2029
      done | sort
2030
      echo
2031
    fi
2032
2033
    if test -s confdefs.h; then
2034
      cat <<\_ASBOX
2035
## ----------- ##
2036
## confdefs.h. ##
2037
## ----------- ##
2038
_ASBOX
2039
      echo
2040
      cat confdefs.h
2041
      echo
2042
    fi
2043
    test "$ac_signal" != 0 &&
2044
      $as_echo "$as_me: caught signal $ac_signal"
2045
    $as_echo "$as_me: exit $exit_status"
2046
  } >&5
2047
  rm -f core *.core core.conftest.* &&
2048
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2049
    exit $exit_status
2050
' 0
2051
for ac_signal in 1 2 13 15; do
2052
  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2053
done
2054
ac_signal=0
2055
2056
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2057
rm -f -r conftest* confdefs.h
2058
2059
$as_echo "/* confdefs.h */" > confdefs.h
2060
2061
# Predefined preprocessor variables.
2062
2063
cat >>confdefs.h <<_ACEOF
2064
#define PACKAGE_NAME "$PACKAGE_NAME"
2065
_ACEOF
2066
2067
cat >>confdefs.h <<_ACEOF
2068
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2069
_ACEOF
2070
2071
cat >>confdefs.h <<_ACEOF
2072
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2073
_ACEOF
2074
2075
cat >>confdefs.h <<_ACEOF
2076
#define PACKAGE_STRING "$PACKAGE_STRING"
2077
_ACEOF
2078
2079
cat >>confdefs.h <<_ACEOF
2080
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2081
_ACEOF
2082
2083
cat >>confdefs.h <<_ACEOF
2084
#define PACKAGE_URL "$PACKAGE_URL"
2085
_ACEOF
2086
2087
2088
# Let the site file select an alternate cache file if it wants to.
2089
# Prefer an explicitly selected file to automatically selected ones.
2090
ac_site_file1=NONE
2091
ac_site_file2=NONE
2092
if test -n "$CONFIG_SITE"; then
2093
  ac_site_file1=$CONFIG_SITE
2094
elif test "x$prefix" != xNONE; then
2095
  ac_site_file1=$prefix/share/config.site
2096
  ac_site_file2=$prefix/etc/config.site
2097
else
2098
  ac_site_file1=$ac_default_prefix/share/config.site
2099
  ac_site_file2=$ac_default_prefix/etc/config.site
2100
fi
2101
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2102
do
2103
  test "x$ac_site_file" = xNONE && continue
2104
  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2105
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2106
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2107
    sed 's/^/| /' "$ac_site_file" >&5
2108
    . "$ac_site_file"
2109
  fi
2110
done
2111
2112
if test -r "$cache_file"; then
2113
  # Some versions of bash will fail to source /dev/null (special files
2114
  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2115
  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2116
    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2117
$as_echo "$as_me: loading cache $cache_file" >&6;}
2118
    case $cache_file in
2119
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2120
      *)                      . "./$cache_file";;
2121
    esac
2122
  fi
2123
else
2124
  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2125
$as_echo "$as_me: creating cache $cache_file" >&6;}
2126
  >$cache_file
2127
fi
2128
2129
# Check that the precious variables saved in the cache have kept the same
2130
# value.
2131
ac_cache_corrupted=false
2132
for ac_var in $ac_precious_vars; do
2133
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2134
  eval ac_new_set=\$ac_env_${ac_var}_set
2135
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2136
  eval ac_new_val=\$ac_env_${ac_var}_value
2137
  case $ac_old_set,$ac_new_set in
2138
    set,)
2139
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2140
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2141
      ac_cache_corrupted=: ;;
2142
    ,set)
2143
      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2144
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2145
      ac_cache_corrupted=: ;;
2146
    ,);;
2147
    *)
2148
      if test "x$ac_old_val" != "x$ac_new_val"; then
2149
	# differences in whitespace do not lead to failure.
2150
	ac_old_val_w=`echo x $ac_old_val`
2151
	ac_new_val_w=`echo x $ac_new_val`
2152
	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2153
	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2154
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2155
	  ac_cache_corrupted=:
2156
	else
2157
	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2158
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2159
	  eval $ac_var=\$ac_old_val
2160
	fi
2161
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2162
$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2163
	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2164
$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2165
      fi;;
2166
  esac
2167
  # Pass precious variables to config.status.
2168
  if test "$ac_new_set" = set; then
2169
    case $ac_new_val in
2170
    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2171
    *) ac_arg=$ac_var=$ac_new_val ;;
2172
    esac
2173
    case " $ac_configure_args " in
2174
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2175
      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2176
    esac
2177
  fi
2178
done
2179
if $ac_cache_corrupted; then
2180
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2181
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2182
  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2183
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2184
  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2185
fi
2186
## -------------------- ##
2187
## Main body of script. ##
2188
## -------------------- ##
2189
2190
ac_ext=c
2191
ac_cpp='$CPP $CPPFLAGS'
2192
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2193
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2194
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2195
2196
2197
am__api_version='1.11'
2198
2199
ac_aux_dir=
2200
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2201
  for ac_t in install-sh install.sh shtool; do
2202
    if test -f "$ac_dir/$ac_t"; then
2203
      ac_aux_dir=$ac_dir
2204
      ac_install_sh="$ac_aux_dir/$ac_t -c"
2205
      break 2
2206
    fi
2207
  done
2208
done
2209
if test -z "$ac_aux_dir"; then
2210
  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2211
fi
2212
2213
# These three variables are undocumented and unsupported,
2214
# and are intended to be withdrawn in a future Autoconf release.
2215
# They can cause serious problems if a builder's source tree is in a directory
2216
# whose full name contains unusual characters.
2217
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2218
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2219
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2220
2221
2222
# Find a good install program.  We prefer a C program (faster),
2223
# so one script is as good as another.  But avoid the broken or
2224
# incompatible versions:
2225
# SysV /etc/install, /usr/sbin/install
2226
# SunOS /usr/etc/install
2227
# IRIX /sbin/install
2228
# AIX /bin/install
2229
# AmigaOS /C/install, which installs bootblocks on floppy discs
2230
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2231
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2232
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2233
# OS/2's system install, which has a completely different semantic
2234
# ./install, which can be erroneously created by make from ./install.sh.
2235
# Reject install programs that cannot install multiple files.
2236
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2237
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2238
if test -z "$INSTALL"; then
2239
if test "${ac_cv_path_install+set}" = set; then :
2240
  $as_echo_n "(cached) " >&6
2241
else
2242
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243
for as_dir in $PATH
2244
do
2245
  IFS=$as_save_IFS
2246
  test -z "$as_dir" && as_dir=.
2247
    # Account for people who put trailing slashes in PATH elements.
2248
case $as_dir/ in #((
2249
  ./ | .// | /[cC]/* | \
2250
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2251
  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2252
  /usr/ucb/* ) ;;
2253
  *)
2254
    # OSF1 and SCO ODT 3.0 have their own names for install.
2255
    # Don't use installbsd from OSF since it installs stuff as root
2256
    # by default.
2257
    for ac_prog in ginstall scoinst install; do
2258
      for ac_exec_ext in '' $ac_executable_extensions; do
2259
	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2260
	  if test $ac_prog = install &&
2261
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2262
	    # AIX install.  It has an incompatible calling convention.
2263
	    :
2264
	  elif test $ac_prog = install &&
2265
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2266
	    # program-specific install script used by HP pwplus--don't use.
2267
	    :
2268
	  else
2269
	    rm -rf conftest.one conftest.two conftest.dir
2270
	    echo one > conftest.one
2271
	    echo two > conftest.two
2272
	    mkdir conftest.dir
2273
	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2274
	      test -s conftest.one && test -s conftest.two &&
2275
	      test -s conftest.dir/conftest.one &&
2276
	      test -s conftest.dir/conftest.two
2277
	    then
2278
	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2279
	      break 3
2280
	    fi
2281
	  fi
2282
	fi
2283
      done
2284
    done
2285
    ;;
2286
esac
2287
2288
  done
2289
IFS=$as_save_IFS
2290
2291
rm -rf conftest.one conftest.two conftest.dir
2292
2293
fi
2294
  if test "${ac_cv_path_install+set}" = set; then
2295
    INSTALL=$ac_cv_path_install
2296
  else
2297
    # As a last resort, use the slow shell script.  Don't cache a
2298
    # value for INSTALL within a source directory, because that will
2299
    # break other packages using the cache if that directory is
2300
    # removed, or if the value is a relative name.
2301
    INSTALL=$ac_install_sh
2302
  fi
2303
fi
2304
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2305
$as_echo "$INSTALL" >&6; }
2306
2307
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2308
# It thinks the first close brace ends the variable substitution.
2309
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2310
2311
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2312
2313
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2314
2315
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2316
$as_echo_n "checking whether build environment is sane... " >&6; }
2317
# Just in case
2318
sleep 1
2319
echo timestamp > conftest.file
2320
# Reject unsafe characters in $srcdir or the absolute working directory
2321
# name.  Accept space and tab only in the latter.
2322
am_lf='
2323
'
2324
case `pwd` in
2325
  *[\\\"\#\$\&\'\`$am_lf]*)
2326
    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2327
esac
2328
case $srcdir in
2329
  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2330
    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2331
esac
2332
2333
# Do `set' in a subshell so we don't clobber the current shell's
2334
# arguments.  Must try -L first in case configure is actually a
2335
# symlink; some systems play weird games with the mod time of symlinks
2336
# (eg FreeBSD returns the mod time of the symlink's containing
2337
# directory).
2338
if (
2339
   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2340
   if test "$*" = "X"; then
2341
      # -L didn't work.
2342
      set X `ls -t "$srcdir/configure" conftest.file`
2343
   fi
2344
   rm -f conftest.file
2345
   if test "$*" != "X $srcdir/configure conftest.file" \
2346
      && test "$*" != "X conftest.file $srcdir/configure"; then
2347
2348
      # If neither matched, then we have a broken ls.  This can happen
2349
      # if, for instance, CONFIG_SHELL is bash and it inherits a
2350
      # broken ls alias from the environment.  This has actually
2351
      # happened.  Such a system could not be considered "sane".
2352
      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2353
alias in your environment" "$LINENO" 5
2354
   fi
2355
2356
   test "$2" = conftest.file
2357
   )
2358
then
2359
   # Ok.
2360
   :
2361
else
2362
   as_fn_error "newly created file is older than distributed files!
2363
Check your system clock" "$LINENO" 5
2364
fi
2365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2366
$as_echo "yes" >&6; }
2367
test "$program_prefix" != NONE &&
2368
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2369
# Use a double $ so make ignores it.
2370
test "$program_suffix" != NONE &&
2371
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2372
# Double any \ or $.
2373
# By default was `s,x,x', remove it if useless.
2374
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2375
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2376
2377
# expand $ac_aux_dir to an absolute path
2378
am_aux_dir=`cd $ac_aux_dir && pwd`
2379
2380
if test x"${MISSING+set}" != xset; then
2381
  case $am_aux_dir in
2382
  *\ * | *\	*)
2383
    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2384
  *)
2385
    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2386
  esac
2387
fi
2388
# Use eval to expand $SHELL
2389
if eval "$MISSING --run true"; then
2390
  am_missing_run="$MISSING --run "
2391
else
2392
  am_missing_run=
2393
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2394
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2395
fi
2396
2397
if test x"${install_sh}" != xset; then
2398
  case $am_aux_dir in
2399
  *\ * | *\	*)
2400
    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2401
  *)
2402
    install_sh="\${SHELL} $am_aux_dir/install-sh"
2403
  esac
2404
fi
2405
2406
# Installed binaries are usually stripped using `strip' when the user
2407
# run `make install-strip'.  However `strip' might not be the right
2408
# tool to use in cross-compilation environments, therefore Automake
2409
# will honor the `STRIP' environment variable to overrule this program.
2410
if test "$cross_compiling" != no; then
2411
  if test -n "$ac_tool_prefix"; then
2412
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2413
set dummy ${ac_tool_prefix}strip; ac_word=$2
2414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415
$as_echo_n "checking for $ac_word... " >&6; }
2416
if test "${ac_cv_prog_STRIP+set}" = set; then :
2417
  $as_echo_n "(cached) " >&6
2418
else
2419
  if test -n "$STRIP"; then
2420
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2421
else
2422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423
for as_dir in $PATH
2424
do
2425
  IFS=$as_save_IFS
2426
  test -z "$as_dir" && as_dir=.
2427
    for ac_exec_ext in '' $ac_executable_extensions; do
2428
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2430
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431
    break 2
2432
  fi
2433
done
2434
  done
2435
IFS=$as_save_IFS
2436
2437
fi
2438
fi
2439
STRIP=$ac_cv_prog_STRIP
2440
if test -n "$STRIP"; then
2441
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2442
$as_echo "$STRIP" >&6; }
2443
else
2444
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445
$as_echo "no" >&6; }
2446
fi
2447
2448
2449
fi
2450
if test -z "$ac_cv_prog_STRIP"; then
2451
  ac_ct_STRIP=$STRIP
2452
  # Extract the first word of "strip", so it can be a program name with args.
2453
set dummy strip; ac_word=$2
2454
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455
$as_echo_n "checking for $ac_word... " >&6; }
2456
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2457
  $as_echo_n "(cached) " >&6
2458
else
2459
  if test -n "$ac_ct_STRIP"; then
2460
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2461
else
2462
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463
for as_dir in $PATH
2464
do
2465
  IFS=$as_save_IFS
2466
  test -z "$as_dir" && as_dir=.
2467
    for ac_exec_ext in '' $ac_executable_extensions; do
2468
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469
    ac_cv_prog_ac_ct_STRIP="strip"
2470
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471
    break 2
2472
  fi
2473
done
2474
  done
2475
IFS=$as_save_IFS
2476
2477
fi
2478
fi
2479
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2480
if test -n "$ac_ct_STRIP"; then
2481
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2482
$as_echo "$ac_ct_STRIP" >&6; }
2483
else
2484
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485
$as_echo "no" >&6; }
2486
fi
2487
2488
  if test "x$ac_ct_STRIP" = x; then
2489
    STRIP=":"
2490
  else
2491
    case $cross_compiling:$ac_tool_warned in
2492
yes:)
2493
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495
ac_tool_warned=yes ;;
2496
esac
2497
    STRIP=$ac_ct_STRIP
2498
  fi
2499
else
2500
  STRIP="$ac_cv_prog_STRIP"
2501
fi
2502
2503
fi
2504
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2505
2506
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2507
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2508
if test -z "$MKDIR_P"; then
2509
  if test "${ac_cv_path_mkdir+set}" = set; then :
2510
  $as_echo_n "(cached) " >&6
2511
else
2512
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2513
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2514
do
2515
  IFS=$as_save_IFS
2516
  test -z "$as_dir" && as_dir=.
2517
    for ac_prog in mkdir gmkdir; do
2518
	 for ac_exec_ext in '' $ac_executable_extensions; do
2519
	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2520
	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2521
	     'mkdir (GNU coreutils) '* | \
2522
	     'mkdir (coreutils) '* | \
2523
	     'mkdir (fileutils) '4.1*)
2524
	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2525
	       break 3;;
2526
	   esac
2527
	 done
2528
       done
2529
  done
2530
IFS=$as_save_IFS
2531
2532
fi
2533
2534
  test -d ./--version && rmdir ./--version
2535
  if test "${ac_cv_path_mkdir+set}" = set; then
2536
    MKDIR_P="$ac_cv_path_mkdir -p"
2537
  else
2538
    # As a last resort, use the slow shell script.  Don't cache a
2539
    # value for MKDIR_P within a source directory, because that will
2540
    # break other packages using the cache if that directory is
2541
    # removed, or if the value is a relative name.
2542
    MKDIR_P="$ac_install_sh -d"
2543
  fi
2544
fi
2545
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2546
$as_echo "$MKDIR_P" >&6; }
2547
2548
mkdir_p="$MKDIR_P"
2549
case $mkdir_p in
2550
  [\\/$]* | ?:[\\/]*) ;;
2551
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2552
esac
2553
2554
for ac_prog in gawk mawk nawk awk
2555
do
2556
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2557
set dummy $ac_prog; ac_word=$2
2558
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2559
$as_echo_n "checking for $ac_word... " >&6; }
2560
if test "${ac_cv_prog_AWK+set}" = set; then :
2561
  $as_echo_n "(cached) " >&6
2562
else
2563
  if test -n "$AWK"; then
2564
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2565
else
2566
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567
for as_dir in $PATH
2568
do
2569
  IFS=$as_save_IFS
2570
  test -z "$as_dir" && as_dir=.
2571
    for ac_exec_ext in '' $ac_executable_extensions; do
2572
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2573
    ac_cv_prog_AWK="$ac_prog"
2574
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575
    break 2
2576
  fi
2577
done
2578
  done
2579
IFS=$as_save_IFS
2580
2581
fi
2582
fi
2583
AWK=$ac_cv_prog_AWK
2584
if test -n "$AWK"; then
2585
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2586
$as_echo "$AWK" >&6; }
2587
else
2588
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2589
$as_echo "no" >&6; }
2590
fi
2591
2592
2593
  test -n "$AWK" && break
2594
done
2595
2596
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2597
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2598
set x ${MAKE-make}
2599
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2600
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2601
  $as_echo_n "(cached) " >&6
2602
else
2603
  cat >conftest.make <<\_ACEOF
2604
SHELL = /bin/sh
2605
all:
2606
	@echo '@@@%%%=$(MAKE)=@@@%%%'
2607
_ACEOF
2608
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2609
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2610
  *@@@%%%=?*=@@@%%%*)
2611
    eval ac_cv_prog_make_${ac_make}_set=yes;;
2612
  *)
2613
    eval ac_cv_prog_make_${ac_make}_set=no;;
2614
esac
2615
rm -f conftest.make
2616
fi
2617
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2618
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2619
$as_echo "yes" >&6; }
2620
  SET_MAKE=
2621
else
2622
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2623
$as_echo "no" >&6; }
2624
  SET_MAKE="MAKE=${MAKE-make}"
2625
fi
2626
2627
rm -rf .tst 2>/dev/null
2628
mkdir .tst 2>/dev/null
2629
if test -d .tst; then
2630
  am__leading_dot=.
2631
else
2632
  am__leading_dot=_
2633
fi
2634
rmdir .tst 2>/dev/null
2635
2636
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2637
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2638
  # is not polluted with repeated "-I."
2639
  am__isrc=' -I$(srcdir)'
2640
  # test to see if srcdir already configured
2641
  if test -f $srcdir/config.status; then
2642
    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2643
  fi
2644
fi
2645
2646
# test whether we have cygpath
2647
if test -z "$CYGPATH_W"; then
2648
  if (cygpath --version) >/dev/null 2>/dev/null; then
2649
    CYGPATH_W='cygpath -w'
2650
  else
2651
    CYGPATH_W=echo
2652
  fi
2653
fi
2654
2655
2656
# Define the identity of the package.
16 by Clint Byrum
adding test suite
2657
 PACKAGE='ustat'
2658
 VERSION='0.1'
11 by Clint Byrum
automake yay
2659
2660
2661
cat >>confdefs.h <<_ACEOF
2662
#define PACKAGE "$PACKAGE"
2663
_ACEOF
2664
2665
2666
cat >>confdefs.h <<_ACEOF
2667
#define VERSION "$VERSION"
2668
_ACEOF
2669
2670
# Some tools Automake needs.
2671
2672
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2673
2674
2675
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2676
2677
2678
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2679
2680
2681
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2682
2683
2684
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2685
2686
# We need awk for the "check" target.  The system "awk" is bad on
2687
# some platforms.
2688
# Always define AMTAR for backward compatibility.
2689
2690
AMTAR=${AMTAR-"${am_missing_run}tar"}
2691
2692
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2693
2694
2695
2696
2697
2698
2699
ac_config_headers="$ac_config_headers config.h"
2700
2701
2702
# Checks for programs.
2703
ac_ext=cpp
2704
ac_cpp='$CXXCPP $CPPFLAGS'
2705
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2708
if test -z "$CXX"; then
2709
  if test -n "$CCC"; then
2710
    CXX=$CCC
2711
  else
2712
    if test -n "$ac_tool_prefix"; then
2713
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2714
  do
2715
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2716
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2717
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2718
$as_echo_n "checking for $ac_word... " >&6; }
2719
if test "${ac_cv_prog_CXX+set}" = set; then :
2720
  $as_echo_n "(cached) " >&6
2721
else
2722
  if test -n "$CXX"; then
2723
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2724
else
2725
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726
for as_dir in $PATH
2727
do
2728
  IFS=$as_save_IFS
2729
  test -z "$as_dir" && as_dir=.
2730
    for ac_exec_ext in '' $ac_executable_extensions; do
2731
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2732
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2733
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2734
    break 2
2735
  fi
2736
done
2737
  done
2738
IFS=$as_save_IFS
2739
2740
fi
2741
fi
2742
CXX=$ac_cv_prog_CXX
2743
if test -n "$CXX"; then
2744
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2745
$as_echo "$CXX" >&6; }
2746
else
2747
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2748
$as_echo "no" >&6; }
2749
fi
2750
2751
2752
    test -n "$CXX" && break
2753
  done
2754
fi
2755
if test -z "$CXX"; then
2756
  ac_ct_CXX=$CXX
2757
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2758
do
2759
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2760
set dummy $ac_prog; ac_word=$2
2761
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762
$as_echo_n "checking for $ac_word... " >&6; }
2763
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2764
  $as_echo_n "(cached) " >&6
2765
else
2766
  if test -n "$ac_ct_CXX"; then
2767
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2768
else
2769
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770
for as_dir in $PATH
2771
do
2772
  IFS=$as_save_IFS
2773
  test -z "$as_dir" && as_dir=.
2774
    for ac_exec_ext in '' $ac_executable_extensions; do
2775
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2776
    ac_cv_prog_ac_ct_CXX="$ac_prog"
2777
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778
    break 2
2779
  fi
2780
done
2781
  done
2782
IFS=$as_save_IFS
2783
2784
fi
2785
fi
2786
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2787
if test -n "$ac_ct_CXX"; then
2788
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2789
$as_echo "$ac_ct_CXX" >&6; }
2790
else
2791
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792
$as_echo "no" >&6; }
2793
fi
2794
2795
2796
  test -n "$ac_ct_CXX" && break
2797
done
2798
2799
  if test "x$ac_ct_CXX" = x; then
2800
    CXX="g++"
2801
  else
2802
    case $cross_compiling:$ac_tool_warned in
2803
yes:)
2804
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2805
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2806
ac_tool_warned=yes ;;
2807
esac
2808
    CXX=$ac_ct_CXX
2809
  fi
2810
fi
2811
2812
  fi
2813
fi
2814
# Provide some information about the compiler.
2815
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2816
set X $ac_compile
2817
ac_compiler=$2
2818
for ac_option in --version -v -V -qversion; do
2819
  { { ac_try="$ac_compiler $ac_option >&5"
2820
case "(($ac_try" in
2821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822
  *) ac_try_echo=$ac_try;;
2823
esac
2824
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2825
$as_echo "$ac_try_echo"; } >&5
2826
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2827
  ac_status=$?
2828
  if test -s conftest.err; then
2829
    sed '10a\
2830
... rest of stderr output deleted ...
2831
         10q' conftest.err >conftest.er1
2832
    cat conftest.er1 >&5
2833
  fi
2834
  rm -f conftest.er1 conftest.err
2835
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2836
  test $ac_status = 0; }
2837
done
2838
2839
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2840
/* end confdefs.h.  */
2841
2842
int
2843
main ()
2844
{
2845
2846
  ;
2847
  return 0;
2848
}
2849
_ACEOF
2850
ac_clean_files_save=$ac_clean_files
2851
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2852
# Try to create an executable without -o first, disregard a.out.
2853
# It will help us diagnose broken compilers, and finding out an intuition
2854
# of exeext.
2855
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
2856
$as_echo_n "checking whether the C++ compiler works... " >&6; }
2857
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2858
2859
# The possible output files:
2860
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2861
2862
ac_rmfiles=
2863
for ac_file in $ac_files
2864
do
2865
  case $ac_file in
2866
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2867
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2868
  esac
2869
done
2870
rm -f $ac_rmfiles
2871
2872
if { { ac_try="$ac_link_default"
2873
case "(($ac_try" in
2874
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2875
  *) ac_try_echo=$ac_try;;
2876
esac
2877
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2878
$as_echo "$ac_try_echo"; } >&5
2879
  (eval "$ac_link_default") 2>&5
2880
  ac_status=$?
2881
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2882
  test $ac_status = 0; }; then :
2883
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2884
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2885
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2886
# so that the user can short-circuit this test for compilers unknown to
2887
# Autoconf.
2888
for ac_file in $ac_files ''
2889
do
2890
  test -f "$ac_file" || continue
2891
  case $ac_file in
2892
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2893
	;;
2894
    [ab].out )
2895
	# We found the default executable, but exeext='' is most
2896
	# certainly right.
2897
	break;;
2898
    *.* )
2899
	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2900
	then :; else
2901
	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902
	fi
2903
	# We set ac_cv_exeext here because the later test for it is not
2904
	# safe: cross compilers may not add the suffix if given an `-o'
2905
	# argument, so we may need to know it at that point already.
2906
	# Even if this section looks crufty: it has the advantage of
2907
	# actually working.
2908
	break;;
2909
    * )
2910
	break;;
2911
  esac
2912
done
2913
test "$ac_cv_exeext" = no && ac_cv_exeext=
2914
2915
else
2916
  ac_file=''
2917
fi
2918
if test -z "$ac_file"; then :
2919
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2920
$as_echo "no" >&6; }
2921
$as_echo "$as_me: failed program was:" >&5
2922
sed 's/^/| /' conftest.$ac_ext >&5
2923
2924
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2925
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2926
{ as_fn_set_status 77
2927
as_fn_error "C++ compiler cannot create executables
2928
See \`config.log' for more details." "$LINENO" 5; }; }
2929
else
2930
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2931
$as_echo "yes" >&6; }
2932
fi
2933
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
2934
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
2935
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2936
$as_echo "$ac_file" >&6; }
2937
ac_exeext=$ac_cv_exeext
2938
2939
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2940
ac_clean_files=$ac_clean_files_save
2941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2942
$as_echo_n "checking for suffix of executables... " >&6; }
2943
if { { ac_try="$ac_link"
2944
case "(($ac_try" in
2945
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946
  *) ac_try_echo=$ac_try;;
2947
esac
2948
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2949
$as_echo "$ac_try_echo"; } >&5
2950
  (eval "$ac_link") 2>&5
2951
  ac_status=$?
2952
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2953
  test $ac_status = 0; }; then :
2954
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2955
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2956
# work properly (i.e., refer to `conftest.exe'), while it won't with
2957
# `rm'.
2958
for ac_file in conftest.exe conftest conftest.*; do
2959
  test -f "$ac_file" || continue
2960
  case $ac_file in
2961
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2962
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2963
	  break;;
2964
    * ) break;;
2965
  esac
2966
done
2967
else
2968
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2969
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2970
as_fn_error "cannot compute suffix of executables: cannot compile and link
2971
See \`config.log' for more details." "$LINENO" 5; }
2972
fi
2973
rm -f conftest conftest$ac_cv_exeext
2974
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2975
$as_echo "$ac_cv_exeext" >&6; }
2976
2977
rm -f conftest.$ac_ext
2978
EXEEXT=$ac_cv_exeext
2979
ac_exeext=$EXEEXT
2980
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2981
/* end confdefs.h.  */
2982
#include <stdio.h>
2983
int
2984
main ()
2985
{
2986
FILE *f = fopen ("conftest.out", "w");
2987
 return ferror (f) || fclose (f) != 0;
2988
2989
  ;
2990
  return 0;
2991
}
2992
_ACEOF
2993
ac_clean_files="$ac_clean_files conftest.out"
2994
# Check that the compiler produces executables we can run.  If not, either
2995
# the compiler is broken, or we cross compile.
2996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2997
$as_echo_n "checking whether we are cross compiling... " >&6; }
2998
if test "$cross_compiling" != yes; then
2999
  { { ac_try="$ac_link"
3000
case "(($ac_try" in
3001
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3002
  *) ac_try_echo=$ac_try;;
3003
esac
3004
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3005
$as_echo "$ac_try_echo"; } >&5
3006
  (eval "$ac_link") 2>&5
3007
  ac_status=$?
3008
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3009
  test $ac_status = 0; }
3010
  if { ac_try='./conftest$ac_cv_exeext'
3011
  { { case "(($ac_try" in
3012
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3013
  *) ac_try_echo=$ac_try;;
3014
esac
3015
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3016
$as_echo "$ac_try_echo"; } >&5
3017
  (eval "$ac_try") 2>&5
3018
  ac_status=$?
3019
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3020
  test $ac_status = 0; }; }; then
3021
    cross_compiling=no
3022
  else
3023
    if test "$cross_compiling" = maybe; then
3024
	cross_compiling=yes
3025
    else
3026
	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3027
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3028
as_fn_error "cannot run C++ compiled programs.
3029
If you meant to cross compile, use \`--host'.
3030
See \`config.log' for more details." "$LINENO" 5; }
3031
    fi
3032
  fi
3033
fi
3034
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3035
$as_echo "$cross_compiling" >&6; }
3036
3037
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3038
ac_clean_files=$ac_clean_files_save
3039
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3040
$as_echo_n "checking for suffix of object files... " >&6; }
3041
if test "${ac_cv_objext+set}" = set; then :
3042
  $as_echo_n "(cached) " >&6
3043
else
3044
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045
/* end confdefs.h.  */
3046
3047
int
3048
main ()
3049
{
3050
3051
  ;
3052
  return 0;
3053
}
3054
_ACEOF
3055
rm -f conftest.o conftest.obj
3056
if { { ac_try="$ac_compile"
3057
case "(($ac_try" in
3058
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059
  *) ac_try_echo=$ac_try;;
3060
esac
3061
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3062
$as_echo "$ac_try_echo"; } >&5
3063
  (eval "$ac_compile") 2>&5
3064
  ac_status=$?
3065
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3066
  test $ac_status = 0; }; then :
3067
  for ac_file in conftest.o conftest.obj conftest.*; do
3068
  test -f "$ac_file" || continue;
3069
  case $ac_file in
3070
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3071
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3072
       break;;
3073
  esac
3074
done
3075
else
3076
  $as_echo "$as_me: failed program was:" >&5
3077
sed 's/^/| /' conftest.$ac_ext >&5
3078
3079
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3080
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3081
as_fn_error "cannot compute suffix of object files: cannot compile
3082
See \`config.log' for more details." "$LINENO" 5; }
3083
fi
3084
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3085
fi
3086
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3087
$as_echo "$ac_cv_objext" >&6; }
3088
OBJEXT=$ac_cv_objext
3089
ac_objext=$OBJEXT
3090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3091
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3092
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3093
  $as_echo_n "(cached) " >&6
3094
else
3095
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3096
/* end confdefs.h.  */
3097
3098
int
3099
main ()
3100
{
3101
#ifndef __GNUC__
3102
       choke me
3103
#endif
3104
3105
  ;
3106
  return 0;
3107
}
3108
_ACEOF
3109
if ac_fn_cxx_try_compile "$LINENO"; then :
3110
  ac_compiler_gnu=yes
3111
else
3112
  ac_compiler_gnu=no
3113
fi
3114
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3115
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3116
3117
fi
3118
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3119
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3120
if test $ac_compiler_gnu = yes; then
3121
  GXX=yes
3122
else
3123
  GXX=
3124
fi
3125
ac_test_CXXFLAGS=${CXXFLAGS+set}
3126
ac_save_CXXFLAGS=$CXXFLAGS
3127
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3128
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3129
if test "${ac_cv_prog_cxx_g+set}" = set; then :
3130
  $as_echo_n "(cached) " >&6
3131
else
3132
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3133
   ac_cxx_werror_flag=yes
3134
   ac_cv_prog_cxx_g=no
3135
   CXXFLAGS="-g"
3136
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3137
/* end confdefs.h.  */
3138
3139
int
3140
main ()
3141
{
3142
3143
  ;
3144
  return 0;
3145
}
3146
_ACEOF
3147
if ac_fn_cxx_try_compile "$LINENO"; then :
3148
  ac_cv_prog_cxx_g=yes
3149
else
3150
  CXXFLAGS=""
3151
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3152
/* end confdefs.h.  */
3153
3154
int
3155
main ()
3156
{
3157
3158
  ;
3159
  return 0;
3160
}
3161
_ACEOF
3162
if ac_fn_cxx_try_compile "$LINENO"; then :
3163
3164
else
3165
  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3166
	 CXXFLAGS="-g"
3167
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3168
/* end confdefs.h.  */
3169
3170
int
3171
main ()
3172
{
3173
3174
  ;
3175
  return 0;
3176
}
3177
_ACEOF
3178
if ac_fn_cxx_try_compile "$LINENO"; then :
3179
  ac_cv_prog_cxx_g=yes
3180
fi
3181
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3182
fi
3183
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3184
fi
3185
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3186
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3187
fi
3188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3189
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3190
if test "$ac_test_CXXFLAGS" = set; then
3191
  CXXFLAGS=$ac_save_CXXFLAGS
3192
elif test $ac_cv_prog_cxx_g = yes; then
3193
  if test "$GXX" = yes; then
3194
    CXXFLAGS="-g -O2"
3195
  else
3196
    CXXFLAGS="-g"
3197
  fi
3198
else
3199
  if test "$GXX" = yes; then
3200
    CXXFLAGS="-O2"
3201
  else
3202
    CXXFLAGS=
3203
  fi
3204
fi
3205
ac_ext=c
3206
ac_cpp='$CPP $CPPFLAGS'
3207
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3208
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3209
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3210
DEPDIR="${am__leading_dot}deps"
3211
3212
ac_config_commands="$ac_config_commands depfiles"
3213
3214
3215
am_make=${MAKE-make}
3216
cat > confinc << 'END'
3217
am__doit:
3218
	@echo this is the am__doit target
3219
.PHONY: am__doit
3220
END
3221
# If we don't find an include directive, just comment out the code.
3222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3223
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3224
am__include="#"
3225
am__quote=
3226
_am_result=none
3227
# First try GNU make style include.
3228
echo "include confinc" > confmf
3229
# Ignore all kinds of additional output from `make'.
3230
case `$am_make -s -f confmf 2> /dev/null` in #(
3231
*the\ am__doit\ target*)
3232
  am__include=include
3233
  am__quote=
3234
  _am_result=GNU
3235
  ;;
3236
esac
3237
# Now try BSD make style include.
3238
if test "$am__include" = "#"; then
3239
   echo '.include "confinc"' > confmf
3240
   case `$am_make -s -f confmf 2> /dev/null` in #(
3241
   *the\ am__doit\ target*)
3242
     am__include=.include
3243
     am__quote="\""
3244
     _am_result=BSD
3245
     ;;
3246
   esac
3247
fi
3248
3249
3250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3251
$as_echo "$_am_result" >&6; }
3252
rm -f confinc confmf
3253
3254
# Check whether --enable-dependency-tracking was given.
3255
if test "${enable_dependency_tracking+set}" = set; then :
3256
  enableval=$enable_dependency_tracking;
3257
fi
3258
3259
if test "x$enable_dependency_tracking" != xno; then
3260
  am_depcomp="$ac_aux_dir/depcomp"
3261
  AMDEPBACKSLASH='\'
3262
fi
3263
 if test "x$enable_dependency_tracking" != xno; then
3264
  AMDEP_TRUE=
3265
  AMDEP_FALSE='#'
3266
else
3267
  AMDEP_TRUE='#'
3268
  AMDEP_FALSE=
3269
fi
3270
3271
3272
3273
depcc="$CXX"  am_compiler_list=
3274
3275
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3276
$as_echo_n "checking dependency style of $depcc... " >&6; }
3277
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3278
  $as_echo_n "(cached) " >&6
3279
else
3280
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3281
  # We make a subdir and do the tests there.  Otherwise we can end up
3282
  # making bogus files that we don't know about and never remove.  For
3283
  # instance it was reported that on HP-UX the gcc test will end up
3284
  # making a dummy file named `D' -- because `-MD' means `put the output
3285
  # in D'.
3286
  mkdir conftest.dir
3287
  # Copy depcomp to subdir because otherwise we won't find it if we're
3288
  # using a relative directory.
3289
  cp "$am_depcomp" conftest.dir
3290
  cd conftest.dir
3291
  # We will build objects and dependencies in a subdirectory because
3292
  # it helps to detect inapplicable dependency modes.  For instance
3293
  # both Tru64's cc and ICC support -MD to output dependencies as a
3294
  # side effect of compilation, but ICC will put the dependencies in
3295
  # the current directory while Tru64 will put them in the object
3296
  # directory.
3297
  mkdir sub
3298
3299
  am_cv_CXX_dependencies_compiler_type=none
3300
  if test "$am_compiler_list" = ""; then
3301
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3302
  fi
3303
  am__universal=false
3304
  case " $depcc " in #(
3305
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3306
     esac
3307
3308
  for depmode in $am_compiler_list; do
3309
    # Setup a source with many dependencies, because some compilers
3310
    # like to wrap large dependency lists on column 80 (with \), and
3311
    # we should not choose a depcomp mode which is confused by this.
3312
    #
3313
    # We need to recreate these files for each test, as the compiler may
3314
    # overwrite some of them when testing with obscure command lines.
3315
    # This happens at least with the AIX C compiler.
3316
    : > sub/conftest.c
3317
    for i in 1 2 3 4 5 6; do
3318
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3319
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3320
      # Solaris 8's {/usr,}/bin/sh.
3321
      touch sub/conftst$i.h
3322
    done
3323
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3324
3325
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3326
    # mode.  It turns out that the SunPro C++ compiler does not properly
3327
    # handle `-M -o', and we need to detect this.  Also, some Intel
3328
    # versions had trouble with output in subdirs
3329
    am__obj=sub/conftest.${OBJEXT-o}
3330
    am__minus_obj="-o $am__obj"
3331
    case $depmode in
3332
    gcc)
3333
      # This depmode causes a compiler race in universal mode.
3334
      test "$am__universal" = false || continue
3335
      ;;
3336
    nosideeffect)
3337
      # after this tag, mechanisms are not by side-effect, so they'll
3338
      # only be used when explicitly requested
3339
      if test "x$enable_dependency_tracking" = xyes; then
3340
	continue
3341
      else
3342
	break
3343
      fi
3344
      ;;
3345
    msvisualcpp | msvcmsys)
3346
      # This compiler won't grok `-c -o', but also, the minuso test has
3347
      # not run yet.  These depmodes are late enough in the game, and
3348
      # so weak that their functioning should not be impacted.
3349
      am__obj=conftest.${OBJEXT-o}
3350
      am__minus_obj=
3351
      ;;
3352
    none) break ;;
3353
    esac
3354
    if depmode=$depmode \
3355
       source=sub/conftest.c object=$am__obj \
3356
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3357
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3358
         >/dev/null 2>conftest.err &&
3359
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3360
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3361
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3362
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3363
      # icc doesn't choke on unknown options, it will just issue warnings
3364
      # or remarks (even with -Werror).  So we grep stderr for any message
3365
      # that says an option was ignored or not supported.
3366
      # When given -MP, icc 7.0 and 7.1 complain thusly:
3367
      #   icc: Command line warning: ignoring option '-M'; no argument required
3368
      # The diagnosis changed in icc 8.0:
3369
      #   icc: Command line remark: option '-MP' not supported
3370
      if (grep 'ignoring option' conftest.err ||
3371
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3372
        am_cv_CXX_dependencies_compiler_type=$depmode
3373
        break
3374
      fi
3375
    fi
3376
  done
3377
3378
  cd ..
3379
  rm -rf conftest.dir
3380
else
3381
  am_cv_CXX_dependencies_compiler_type=none
3382
fi
3383
3384
fi
3385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3386
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3387
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3388
3389
 if
3390
  test "x$enable_dependency_tracking" != xno \
3391
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3392
  am__fastdepCXX_TRUE=
3393
  am__fastdepCXX_FALSE='#'
3394
else
3395
  am__fastdepCXX_TRUE='#'
3396
  am__fastdepCXX_FALSE=
3397
fi
3398
3399
3400
ac_ext=c
3401
ac_cpp='$CPP $CPPFLAGS'
3402
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3403
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3404
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3405
if test -n "$ac_tool_prefix"; then
3406
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3407
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3408
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3409
$as_echo_n "checking for $ac_word... " >&6; }
3410
if test "${ac_cv_prog_CC+set}" = set; then :
3411
  $as_echo_n "(cached) " >&6
3412
else
3413
  if test -n "$CC"; then
3414
  ac_cv_prog_CC="$CC" # Let the user override the test.
3415
else
3416
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3417
for as_dir in $PATH
3418
do
3419
  IFS=$as_save_IFS
3420
  test -z "$as_dir" && as_dir=.
3421
    for ac_exec_ext in '' $ac_executable_extensions; do
3422
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3423
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3424
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3425
    break 2
3426
  fi
3427
done
3428
  done
3429
IFS=$as_save_IFS
3430
3431
fi
3432
fi
3433
CC=$ac_cv_prog_CC
3434
if test -n "$CC"; then
3435
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3436
$as_echo "$CC" >&6; }
3437
else
3438
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439
$as_echo "no" >&6; }
3440
fi
3441
3442
3443
fi
3444
if test -z "$ac_cv_prog_CC"; then
3445
  ac_ct_CC=$CC
3446
  # Extract the first word of "gcc", so it can be a program name with args.
3447
set dummy gcc; ac_word=$2
3448
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449
$as_echo_n "checking for $ac_word... " >&6; }
3450
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3451
  $as_echo_n "(cached) " >&6
3452
else
3453
  if test -n "$ac_ct_CC"; then
3454
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3455
else
3456
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457
for as_dir in $PATH
3458
do
3459
  IFS=$as_save_IFS
3460
  test -z "$as_dir" && as_dir=.
3461
    for ac_exec_ext in '' $ac_executable_extensions; do
3462
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463
    ac_cv_prog_ac_ct_CC="gcc"
3464
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3465
    break 2
3466
  fi
3467
done
3468
  done
3469
IFS=$as_save_IFS
3470
3471
fi
3472
fi
3473
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3474
if test -n "$ac_ct_CC"; then
3475
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3476
$as_echo "$ac_ct_CC" >&6; }
3477
else
3478
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479
$as_echo "no" >&6; }
3480
fi
3481
3482
  if test "x$ac_ct_CC" = x; then
3483
    CC=""
3484
  else
3485
    case $cross_compiling:$ac_tool_warned in
3486
yes:)
3487
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489
ac_tool_warned=yes ;;
3490
esac
3491
    CC=$ac_ct_CC
3492
  fi
3493
else
3494
  CC="$ac_cv_prog_CC"
3495
fi
3496
3497
if test -z "$CC"; then
3498
          if test -n "$ac_tool_prefix"; then
3499
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3500
set dummy ${ac_tool_prefix}cc; ac_word=$2
3501
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3502
$as_echo_n "checking for $ac_word... " >&6; }
3503
if test "${ac_cv_prog_CC+set}" = set; then :
3504
  $as_echo_n "(cached) " >&6
3505
else
3506
  if test -n "$CC"; then
3507
  ac_cv_prog_CC="$CC" # Let the user override the test.
3508
else
3509
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510
for as_dir in $PATH
3511
do
3512
  IFS=$as_save_IFS
3513
  test -z "$as_dir" && as_dir=.
3514
    for ac_exec_ext in '' $ac_executable_extensions; do
3515
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3516
    ac_cv_prog_CC="${ac_tool_prefix}cc"
3517
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3518
    break 2
3519
  fi
3520
done
3521
  done
3522
IFS=$as_save_IFS
3523
3524
fi
3525
fi
3526
CC=$ac_cv_prog_CC
3527
if test -n "$CC"; then
3528
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3529
$as_echo "$CC" >&6; }
3530
else
3531
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3532
$as_echo "no" >&6; }
3533
fi
3534
3535
3536
  fi
3537
fi
3538
if test -z "$CC"; then
3539
  # Extract the first word of "cc", so it can be a program name with args.
3540
set dummy cc; ac_word=$2
3541
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3542
$as_echo_n "checking for $ac_word... " >&6; }
3543
if test "${ac_cv_prog_CC+set}" = set; then :
3544
  $as_echo_n "(cached) " >&6
3545
else
3546
  if test -n "$CC"; then
3547
  ac_cv_prog_CC="$CC" # Let the user override the test.
3548
else
3549
  ac_prog_rejected=no
3550
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551
for as_dir in $PATH
3552
do
3553
  IFS=$as_save_IFS
3554
  test -z "$as_dir" && as_dir=.
3555
    for ac_exec_ext in '' $ac_executable_extensions; do
3556
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3557
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3558
       ac_prog_rejected=yes
3559
       continue
3560
     fi
3561
    ac_cv_prog_CC="cc"
3562
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563
    break 2
3564
  fi
3565
done
3566
  done
3567
IFS=$as_save_IFS
3568
3569
if test $ac_prog_rejected = yes; then
3570
  # We found a bogon in the path, so make sure we never use it.
3571
  set dummy $ac_cv_prog_CC
3572
  shift
3573
  if test $# != 0; then
3574
    # We chose a different compiler from the bogus one.
3575
    # However, it has the same basename, so the bogon will be chosen
3576
    # first if we set CC to just the basename; use the full file name.
3577
    shift
3578
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3579
  fi
3580
fi
3581
fi
3582
fi
3583
CC=$ac_cv_prog_CC
3584
if test -n "$CC"; then
3585
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3586
$as_echo "$CC" >&6; }
3587
else
3588
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3589
$as_echo "no" >&6; }
3590
fi
3591
3592
3593
fi
3594
if test -z "$CC"; then
3595
  if test -n "$ac_tool_prefix"; then
3596
  for ac_prog in cl.exe
3597
  do
3598
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3599
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3600
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3601
$as_echo_n "checking for $ac_word... " >&6; }
3602
if test "${ac_cv_prog_CC+set}" = set; then :
3603
  $as_echo_n "(cached) " >&6
3604
else
3605
  if test -n "$CC"; then
3606
  ac_cv_prog_CC="$CC" # Let the user override the test.
3607
else
3608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3609
for as_dir in $PATH
3610
do
3611
  IFS=$as_save_IFS
3612
  test -z "$as_dir" && as_dir=.
3613
    for ac_exec_ext in '' $ac_executable_extensions; do
3614
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3615
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3616
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3617
    break 2
3618
  fi
3619
done
3620
  done
3621
IFS=$as_save_IFS
3622
3623
fi
3624
fi
3625
CC=$ac_cv_prog_CC
3626
if test -n "$CC"; then
3627
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3628
$as_echo "$CC" >&6; }
3629
else
3630
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631
$as_echo "no" >&6; }
3632
fi
3633
3634
3635
    test -n "$CC" && break
3636
  done
3637
fi
3638
if test -z "$CC"; then
3639
  ac_ct_CC=$CC
3640
  for ac_prog in cl.exe
3641
do
3642
  # Extract the first word of "$ac_prog", so it can be a program name with args.
3643
set dummy $ac_prog; ac_word=$2
3644
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645
$as_echo_n "checking for $ac_word... " >&6; }
3646
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3647
  $as_echo_n "(cached) " >&6
3648
else
3649
  if test -n "$ac_ct_CC"; then
3650
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3651
else
3652
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3653
for as_dir in $PATH
3654
do
3655
  IFS=$as_save_IFS
3656
  test -z "$as_dir" && as_dir=.
3657
    for ac_exec_ext in '' $ac_executable_extensions; do
3658
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3659
    ac_cv_prog_ac_ct_CC="$ac_prog"
3660
    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3661
    break 2
3662
  fi
3663
done
3664
  done
3665
IFS=$as_save_IFS
3666
3667
fi
3668
fi
3669
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3670
if test -n "$ac_ct_CC"; then
3671
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3672
$as_echo "$ac_ct_CC" >&6; }
3673
else
3674
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3675
$as_echo "no" >&6; }
3676
fi
3677
3678
3679
  test -n "$ac_ct_CC" && break
3680
done
3681
3682
  if test "x$ac_ct_CC" = x; then
3683
    CC=""
3684
  else
3685
    case $cross_compiling:$ac_tool_warned in
3686
yes:)
3687
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3688
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3689
ac_tool_warned=yes ;;
3690
esac
3691
    CC=$ac_ct_CC
3692
  fi
3693
fi
3694
3695
fi
3696
3697
3698
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3699
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3700
as_fn_error "no acceptable C compiler found in \$PATH
3701
See \`config.log' for more details." "$LINENO" 5; }
3702
3703
# Provide some information about the compiler.
3704
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3705
set X $ac_compile
3706
ac_compiler=$2
3707
for ac_option in --version -v -V -qversion; do
3708
  { { ac_try="$ac_compiler $ac_option >&5"
3709
case "(($ac_try" in
3710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711
  *) ac_try_echo=$ac_try;;
3712
esac
3713
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714
$as_echo "$ac_try_echo"; } >&5
3715
  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3716
  ac_status=$?
3717
  if test -s conftest.err; then
3718
    sed '10a\
3719
... rest of stderr output deleted ...
3720
         10q' conftest.err >conftest.er1
3721
    cat conftest.er1 >&5
3722
  fi
3723
  rm -f conftest.er1 conftest.err
3724
  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3725
  test $ac_status = 0; }
3726
done
3727
3728
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3729
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3730
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3731
  $as_echo_n "(cached) " >&6
3732
else
3733
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3734
/* end confdefs.h.  */
3735
3736
int
3737
main ()
3738
{
3739
#ifndef __GNUC__
3740
       choke me
3741
#endif
3742
3743
  ;
3744
  return 0;
3745
}
3746
_ACEOF
3747
if ac_fn_c_try_compile "$LINENO"; then :
3748
  ac_compiler_gnu=yes
3749
else
3750
  ac_compiler_gnu=no
3751
fi
3752
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3753
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3754
3755
fi
3756
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3757
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3758
if test $ac_compiler_gnu = yes; then
3759
  GCC=yes
3760
else
3761
  GCC=
3762
fi
3763
ac_test_CFLAGS=${CFLAGS+set}
3764
ac_save_CFLAGS=$CFLAGS
3765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3766
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3767
if test "${ac_cv_prog_cc_g+set}" = set; then :
3768
  $as_echo_n "(cached) " >&6
3769
else
3770
  ac_save_c_werror_flag=$ac_c_werror_flag
3771
   ac_c_werror_flag=yes
3772
   ac_cv_prog_cc_g=no
3773
   CFLAGS="-g"
3774
   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3775
/* end confdefs.h.  */
3776
3777
int
3778
main ()
3779
{
3780
3781
  ;
3782
  return 0;
3783
}
3784
_ACEOF
3785
if ac_fn_c_try_compile "$LINENO"; then :
3786
  ac_cv_prog_cc_g=yes
3787
else
3788
  CFLAGS=""
3789
      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3790
/* end confdefs.h.  */
3791
3792
int
3793
main ()
3794
{
3795
3796
  ;
3797
  return 0;
3798
}
3799
_ACEOF
3800
if ac_fn_c_try_compile "$LINENO"; then :
3801
3802
else
3803
  ac_c_werror_flag=$ac_save_c_werror_flag
3804
	 CFLAGS="-g"
3805
	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3806
/* end confdefs.h.  */
3807
3808
int
3809
main ()
3810
{
3811
3812
  ;
3813
  return 0;
3814
}
3815
_ACEOF
3816
if ac_fn_c_try_compile "$LINENO"; then :
3817
  ac_cv_prog_cc_g=yes
3818
fi
3819
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3820
fi
3821
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3822
fi
3823
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3824
   ac_c_werror_flag=$ac_save_c_werror_flag
3825
fi
3826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3827
$as_echo "$ac_cv_prog_cc_g" >&6; }
3828
if test "$ac_test_CFLAGS" = set; then
3829
  CFLAGS=$ac_save_CFLAGS
3830
elif test $ac_cv_prog_cc_g = yes; then
3831
  if test "$GCC" = yes; then
3832
    CFLAGS="-g -O2"
3833
  else
3834
    CFLAGS="-g"
3835
  fi
3836
else
3837
  if test "$GCC" = yes; then
3838
    CFLAGS="-O2"
3839
  else
3840
    CFLAGS=
3841
  fi
3842
fi
3843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3844
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3845
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3846
  $as_echo_n "(cached) " >&6
3847
else
3848
  ac_cv_prog_cc_c89=no
3849
ac_save_CC=$CC
3850
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3851
/* end confdefs.h.  */
3852
#include <stdarg.h>
3853
#include <stdio.h>
3854
#include <sys/types.h>
3855
#include <sys/stat.h>
3856
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3857
struct buf { int x; };
3858
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3859
static char *e (p, i)
3860
     char **p;
3861
     int i;
3862
{
3863
  return p[i];
3864
}
3865
static char *f (char * (*g) (char **, int), char **p, ...)
3866
{
3867
  char *s;
3868
  va_list v;
3869
  va_start (v,p);
3870
  s = g (p, va_arg (v,int));
3871
  va_end (v);
3872
  return s;
3873
}
3874
3875
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3876
   function prototypes and stuff, but not '\xHH' hex character constants.
3877
   These don't provoke an error unfortunately, instead are silently treated
3878
   as 'x'.  The following induces an error, until -std is added to get
3879
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3880
   array size at least.  It's necessary to write '\x00'==0 to get something
3881
   that's true only with -std.  */
3882
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3883
3884
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3885
   inside strings and character constants.  */
3886
#define FOO(x) 'x'
3887
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3888
3889
int test (int i, double x);
3890
struct s1 {int (*f) (int a);};
3891
struct s2 {int (*f) (double a);};
3892
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3893
int argc;
3894
char **argv;
3895
int
3896
main ()
3897
{
3898
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3899
  ;
3900
  return 0;
3901
}
3902
_ACEOF
3903
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3904
	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3905
do
3906
  CC="$ac_save_CC $ac_arg"
3907
  if ac_fn_c_try_compile "$LINENO"; then :
3908
  ac_cv_prog_cc_c89=$ac_arg
3909
fi
3910
rm -f core conftest.err conftest.$ac_objext
3911
  test "x$ac_cv_prog_cc_c89" != "xno" && break
3912
done
3913
rm -f conftest.$ac_ext
3914
CC=$ac_save_CC
3915
3916
fi
3917
# AC_CACHE_VAL
3918
case "x$ac_cv_prog_cc_c89" in
3919
  x)
3920
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3921
$as_echo "none needed" >&6; } ;;
3922
  xno)
3923
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3924
$as_echo "unsupported" >&6; } ;;
3925
  *)
3926
    CC="$CC $ac_cv_prog_cc_c89"
3927
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3928
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3929
esac
3930
if test "x$ac_cv_prog_cc_c89" != xno; then :
3931
3932
fi
3933
3934
ac_ext=c
3935
ac_cpp='$CPP $CPPFLAGS'
3936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3939
3940
depcc="$CC"   am_compiler_list=
3941
3942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3943
$as_echo_n "checking dependency style of $depcc... " >&6; }
3944
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3945
  $as_echo_n "(cached) " >&6
3946
else
3947
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3948
  # We make a subdir and do the tests there.  Otherwise we can end up
3949
  # making bogus files that we don't know about and never remove.  For
3950
  # instance it was reported that on HP-UX the gcc test will end up
3951
  # making a dummy file named `D' -- because `-MD' means `put the output
3952
  # in D'.
3953
  mkdir conftest.dir
3954
  # Copy depcomp to subdir because otherwise we won't find it if we're
3955
  # using a relative directory.
3956
  cp "$am_depcomp" conftest.dir
3957
  cd conftest.dir
3958
  # We will build objects and dependencies in a subdirectory because
3959
  # it helps to detect inapplicable dependency modes.  For instance
3960
  # both Tru64's cc and ICC support -MD to output dependencies as a
3961
  # side effect of compilation, but ICC will put the dependencies in
3962
  # the current directory while Tru64 will put them in the object
3963
  # directory.
3964
  mkdir sub
3965
3966
  am_cv_CC_dependencies_compiler_type=none
3967
  if test "$am_compiler_list" = ""; then
3968
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3969
  fi
3970
  am__universal=false
3971
  case " $depcc " in #(
3972
     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3973
     esac
3974
3975
  for depmode in $am_compiler_list; do
3976
    # Setup a source with many dependencies, because some compilers
3977
    # like to wrap large dependency lists on column 80 (with \), and
3978
    # we should not choose a depcomp mode which is confused by this.
3979
    #
3980
    # We need to recreate these files for each test, as the compiler may
3981
    # overwrite some of them when testing with obscure command lines.
3982
    # This happens at least with the AIX C compiler.
3983
    : > sub/conftest.c
3984
    for i in 1 2 3 4 5 6; do
3985
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3986
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3987
      # Solaris 8's {/usr,}/bin/sh.
3988
      touch sub/conftst$i.h
3989
    done
3990
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3991
3992
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3993
    # mode.  It turns out that the SunPro C++ compiler does not properly
3994
    # handle `-M -o', and we need to detect this.  Also, some Intel
3995
    # versions had trouble with output in subdirs
3996
    am__obj=sub/conftest.${OBJEXT-o}
3997
    am__minus_obj="-o $am__obj"
3998
    case $depmode in
3999
    gcc)
4000
      # This depmode causes a compiler race in universal mode.
4001
      test "$am__universal" = false || continue
4002
      ;;
4003
    nosideeffect)
4004
      # after this tag, mechanisms are not by side-effect, so they'll
4005
      # only be used when explicitly requested
4006
      if test "x$enable_dependency_tracking" = xyes; then
4007
	continue
4008
      else
4009
	break
4010
      fi
4011
      ;;
4012
    msvisualcpp | msvcmsys)
4013
      # This compiler won't grok `-c -o', but also, the minuso test has
4014
      # not run yet.  These depmodes are late enough in the game, and
4015
      # so weak that their functioning should not be impacted.
4016
      am__obj=conftest.${OBJEXT-o}
4017
      am__minus_obj=
4018
      ;;
4019
    none) break ;;
4020
    esac
4021
    if depmode=$depmode \
4022
       source=sub/conftest.c object=$am__obj \
4023
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4024
       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4025
         >/dev/null 2>conftest.err &&
4026
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4027
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4028
       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4029
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4030
      # icc doesn't choke on unknown options, it will just issue warnings
4031
      # or remarks (even with -Werror).  So we grep stderr for any message
4032
      # that says an option was ignored or not supported.
4033
      # When given -MP, icc 7.0 and 7.1 complain thusly:
4034
      #   icc: Command line warning: ignoring option '-M'; no argument required
4035
      # The diagnosis changed in icc 8.0:
4036
      #   icc: Command line remark: option '-MP' not supported
4037
      if (grep 'ignoring option' conftest.err ||
4038
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4039
        am_cv_CC_dependencies_compiler_type=$depmode
4040
        break
4041
      fi
4042
    fi
4043
  done
4044
4045
  cd ..
4046
  rm -rf conftest.dir
4047
else
4048
  am_cv_CC_dependencies_compiler_type=none
4049
fi
4050
4051
fi
4052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4053
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4054
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4055
4056
 if
4057
  test "x$enable_dependency_tracking" != xno \
4058
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4059
  am__fastdepCC_TRUE=
4060
  am__fastdepCC_FALSE='#'
4061
else
4062
  am__fastdepCC_TRUE='#'
4063
  am__fastdepCC_FALSE=
4064
fi
4065
4066
4067
4068
# Checks for libraries.
4069
# FIXME: Replace `main' with a function in `-lboost_program_options':
4070
4071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_program_options" >&5
4072
$as_echo_n "checking for main in -lboost_program_options... " >&6; }
4073
if test "${ac_cv_lib_boost_program_options_main+set}" = set; then :
4074
  $as_echo_n "(cached) " >&6
4075
else
4076
  ac_check_lib_save_LIBS=$LIBS
4077
LIBS="-lboost_program_options  $LIBS"
4078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079
/* end confdefs.h.  */
4080
4081
4082
int
4083
main ()
4084
{
4085
return main ();
4086
  ;
4087
  return 0;
4088
}
4089
_ACEOF
4090
if ac_fn_c_try_link "$LINENO"; then :
4091
  ac_cv_lib_boost_program_options_main=yes
4092
else
4093
  ac_cv_lib_boost_program_options_main=no
4094
fi
4095
rm -f core conftest.err conftest.$ac_objext \
4096
    conftest$ac_exeext conftest.$ac_ext
4097
LIBS=$ac_check_lib_save_LIBS
4098
fi
4099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_program_options_main" >&5
4100
$as_echo "$ac_cv_lib_boost_program_options_main" >&6; }
4101
if test "x$ac_cv_lib_boost_program_options_main" = x""yes; then :
4102
  cat >>confdefs.h <<_ACEOF
4103
#define HAVE_LIBBOOST_PROGRAM_OPTIONS 1
4104
_ACEOF
4105
4106
  LIBS="-lboost_program_options $LIBS"
4107
4108
fi
4109
4110
# FIXME: Replace `main' with a function in `-lboost_regex':
4111
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lboost_regex" >&5
4112
$as_echo_n "checking for main in -lboost_regex... " >&6; }
4113
if test "${ac_cv_lib_boost_regex_main+set}" = set; then :
4114
  $as_echo_n "(cached) " >&6
4115
else
4116
  ac_check_lib_save_LIBS=$LIBS
4117
LIBS="-lboost_regex  $LIBS"
4118
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4119
/* end confdefs.h.  */
4120
4121
4122
int
4123
main ()
4124
{
4125
return main ();
4126
  ;
4127
  return 0;
4128
}
4129
_ACEOF
4130
if ac_fn_c_try_link "$LINENO"; then :
4131
  ac_cv_lib_boost_regex_main=yes
4132
else
4133
  ac_cv_lib_boost_regex_main=no
4134
fi
4135
rm -f core conftest.err conftest.$ac_objext \
4136
    conftest$ac_exeext conftest.$ac_ext
4137
LIBS=$ac_check_lib_save_LIBS
4138
fi
4139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_boost_regex_main" >&5
4140
$as_echo "$ac_cv_lib_boost_regex_main" >&6; }
4141
if test "x$ac_cv_lib_boost_regex_main" = x""yes; then :
4142
  cat >>confdefs.h <<_ACEOF
4143
#define HAVE_LIBBOOST_REGEX 1
4144
_ACEOF
4145
4146
  LIBS="-lboost_regex $LIBS"
4147
4148
fi
4149
4150
# FIXME: Replace `main' with a function in `-ldbi':
4151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldbi" >&5
4152
$as_echo_n "checking for main in -ldbi... " >&6; }
4153
if test "${ac_cv_lib_dbi_main+set}" = set; then :
4154
  $as_echo_n "(cached) " >&6
4155
else
4156
  ac_check_lib_save_LIBS=$LIBS
4157
LIBS="-ldbi  $LIBS"
4158
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159
/* end confdefs.h.  */
4160
4161
4162
int
4163
main ()
4164
{
4165
return main ();
4166
  ;
4167
  return 0;
4168
}
4169
_ACEOF
4170
if ac_fn_c_try_link "$LINENO"; then :
4171
  ac_cv_lib_dbi_main=yes
4172
else
4173
  ac_cv_lib_dbi_main=no
4174
fi
4175
rm -f core conftest.err conftest.$ac_objext \
4176
    conftest$ac_exeext conftest.$ac_ext
4177
LIBS=$ac_check_lib_save_LIBS
4178
fi
4179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_main" >&5
4180
$as_echo "$ac_cv_lib_dbi_main" >&6; }
4181
if test "x$ac_cv_lib_dbi_main" = x""yes; then :
4182
  cat >>confdefs.h <<_ACEOF
4183
#define HAVE_LIBDBI 1
4184
_ACEOF
4185
4186
  LIBS="-ldbi $LIBS"
4187
4188
fi
4189
4190
4191
# Checks for header files.
4192
ac_ext=c
4193
ac_cpp='$CPP $CPPFLAGS'
4194
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4195
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4196
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4197
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4198
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4199
# On Suns, sometimes $CPP names a directory.
4200
if test -n "$CPP" && test -d "$CPP"; then
4201
  CPP=
4202
fi
4203
if test -z "$CPP"; then
4204
  if test "${ac_cv_prog_CPP+set}" = set; then :
4205
  $as_echo_n "(cached) " >&6
4206
else
4207
      # Double quotes because CPP needs to be expanded
4208
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4209
    do
4210
      ac_preproc_ok=false
4211
for ac_c_preproc_warn_flag in '' yes
4212
do
4213
  # Use a header file that comes with gcc, so configuring glibc
4214
  # with a fresh cross-compiler works.
4215
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4216
  # <limits.h> exists even on freestanding compilers.
4217
  # On the NeXT, cc -E runs the code through the compiler's parser,
4218
  # not just through cpp. "Syntax error" is here to catch this case.
4219
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4220
/* end confdefs.h.  */
4221
#ifdef __STDC__
4222
# include <limits.h>
4223
#else
4224
# include <assert.h>
4225
#endif
4226
		     Syntax error
4227
_ACEOF
4228
if ac_fn_c_try_cpp "$LINENO"; then :
4229
4230
else
4231
  # Broken: fails on valid input.
4232
continue
4233
fi
4234
rm -f conftest.err conftest.$ac_ext
4235
4236
  # OK, works on sane cases.  Now check whether nonexistent headers
4237
  # can be detected and how.
4238
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239
/* end confdefs.h.  */
4240
#include <ac_nonexistent.h>
4241
_ACEOF
4242
if ac_fn_c_try_cpp "$LINENO"; then :
4243
  # Broken: success on invalid input.
4244
continue
4245
else
4246
  # Passes both tests.
4247
ac_preproc_ok=:
4248
break
4249
fi
4250
rm -f conftest.err conftest.$ac_ext
4251
4252
done
4253
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4254
rm -f conftest.err conftest.$ac_ext
4255
if $ac_preproc_ok; then :
4256
  break
4257
fi
4258
4259
    done
4260
    ac_cv_prog_CPP=$CPP
4261
4262
fi
4263
  CPP=$ac_cv_prog_CPP
4264
else
4265
  ac_cv_prog_CPP=$CPP
4266
fi
4267
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4268
$as_echo "$CPP" >&6; }
4269
ac_preproc_ok=false
4270
for ac_c_preproc_warn_flag in '' yes
4271
do
4272
  # Use a header file that comes with gcc, so configuring glibc
4273
  # with a fresh cross-compiler works.
4274
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4275
  # <limits.h> exists even on freestanding compilers.
4276
  # On the NeXT, cc -E runs the code through the compiler's parser,
4277
  # not just through cpp. "Syntax error" is here to catch this case.
4278
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279
/* end confdefs.h.  */
4280
#ifdef __STDC__
4281
# include <limits.h>
4282
#else
4283
# include <assert.h>
4284
#endif
4285
		     Syntax error
4286
_ACEOF
4287
if ac_fn_c_try_cpp "$LINENO"; then :
4288
4289
else
4290
  # Broken: fails on valid input.
4291
continue
4292
fi
4293
rm -f conftest.err conftest.$ac_ext
4294
4295
  # OK, works on sane cases.  Now check whether nonexistent headers
4296
  # can be detected and how.
4297
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298
/* end confdefs.h.  */
4299
#include <ac_nonexistent.h>
4300
_ACEOF
4301
if ac_fn_c_try_cpp "$LINENO"; then :
4302
  # Broken: success on invalid input.
4303
continue
4304
else
4305
  # Passes both tests.
4306
ac_preproc_ok=:
4307
break
4308
fi
4309
rm -f conftest.err conftest.$ac_ext
4310
4311
done
4312
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4313
rm -f conftest.err conftest.$ac_ext
4314
if $ac_preproc_ok; then :
4315
4316
else
4317
  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4318
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4319
as_fn_error "C preprocessor \"$CPP\" fails sanity check
4320
See \`config.log' for more details." "$LINENO" 5; }
4321
fi
4322
4323
ac_ext=c
4324
ac_cpp='$CPP $CPPFLAGS'
4325
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328
4329
4330
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4331
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4332
if test "${ac_cv_path_GREP+set}" = set; then :
4333
  $as_echo_n "(cached) " >&6
4334
else
4335
  if test -z "$GREP"; then
4336
  ac_path_GREP_found=false
4337
  # Loop through the user's path and test for each of PROGNAME-LIST
4338
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4339
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4340
do
4341
  IFS=$as_save_IFS
4342
  test -z "$as_dir" && as_dir=.
4343
    for ac_prog in grep ggrep; do
4344
    for ac_exec_ext in '' $ac_executable_extensions; do
4345
      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4346
      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4347
# Check for GNU ac_path_GREP and select it if it is found.
4348
  # Check for GNU $ac_path_GREP
4349
case `"$ac_path_GREP" --version 2>&1` in
4350
*GNU*)
4351
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4352
*)
4353
  ac_count=0
4354
  $as_echo_n 0123456789 >"conftest.in"
4355
  while :
4356
  do
4357
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4358
    mv "conftest.tmp" "conftest.in"
4359
    cp "conftest.in" "conftest.nl"
4360
    $as_echo 'GREP' >> "conftest.nl"
4361
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4362
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4363
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4364
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4365
      # Best one so far, save it but keep looking for a better one
4366
      ac_cv_path_GREP="$ac_path_GREP"
4367
      ac_path_GREP_max=$ac_count
4368
    fi
4369
    # 10*(2^10) chars as input seems more than enough
4370
    test $ac_count -gt 10 && break
4371
  done
4372
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4373
esac
4374
4375
      $ac_path_GREP_found && break 3
4376
    done
4377
  done
4378
  done
4379
IFS=$as_save_IFS
4380
  if test -z "$ac_cv_path_GREP"; then
4381
    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4382
  fi
4383
else
4384
  ac_cv_path_GREP=$GREP
4385
fi
4386
4387
fi
4388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4389
$as_echo "$ac_cv_path_GREP" >&6; }
4390
 GREP="$ac_cv_path_GREP"
4391
4392
4393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4394
$as_echo_n "checking for egrep... " >&6; }
4395
if test "${ac_cv_path_EGREP+set}" = set; then :
4396
  $as_echo_n "(cached) " >&6
4397
else
4398
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4399
   then ac_cv_path_EGREP="$GREP -E"
4400
   else
4401
     if test -z "$EGREP"; then
4402
  ac_path_EGREP_found=false
4403
  # Loop through the user's path and test for each of PROGNAME-LIST
4404
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4405
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4406
do
4407
  IFS=$as_save_IFS
4408
  test -z "$as_dir" && as_dir=.
4409
    for ac_prog in egrep; do
4410
    for ac_exec_ext in '' $ac_executable_extensions; do
4411
      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4412
      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4413
# Check for GNU ac_path_EGREP and select it if it is found.
4414
  # Check for GNU $ac_path_EGREP
4415
case `"$ac_path_EGREP" --version 2>&1` in
4416
*GNU*)
4417
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4418
*)
4419
  ac_count=0
4420
  $as_echo_n 0123456789 >"conftest.in"
4421
  while :
4422
  do
4423
    cat "conftest.in" "conftest.in" >"conftest.tmp"
4424
    mv "conftest.tmp" "conftest.in"
4425
    cp "conftest.in" "conftest.nl"
4426
    $as_echo 'EGREP' >> "conftest.nl"
4427
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4428
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4429
    as_fn_arith $ac_count + 1 && ac_count=$as_val
4430
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4431
      # Best one so far, save it but keep looking for a better one
4432
      ac_cv_path_EGREP="$ac_path_EGREP"
4433
      ac_path_EGREP_max=$ac_count
4434
    fi
4435
    # 10*(2^10) chars as input seems more than enough
4436
    test $ac_count -gt 10 && break
4437
  done
4438
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4439
esac
4440
4441
      $ac_path_EGREP_found && break 3
4442
    done
4443
  done
4444
  done
4445
IFS=$as_save_IFS
4446
  if test -z "$ac_cv_path_EGREP"; then
4447
    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4448
  fi
4449
else
4450
  ac_cv_path_EGREP=$EGREP
4451
fi
4452
4453
   fi
4454
fi
4455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4456
$as_echo "$ac_cv_path_EGREP" >&6; }
4457
 EGREP="$ac_cv_path_EGREP"
4458
4459
4460
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4461
$as_echo_n "checking for ANSI C header files... " >&6; }
4462
if test "${ac_cv_header_stdc+set}" = set; then :
4463
  $as_echo_n "(cached) " >&6
4464
else
4465
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466
/* end confdefs.h.  */
4467
#include <stdlib.h>
4468
#include <stdarg.h>
4469
#include <string.h>
4470
#include <float.h>
4471
4472
int
4473
main ()
4474
{
4475
4476
  ;
4477
  return 0;
4478
}
4479
_ACEOF
4480
if ac_fn_c_try_compile "$LINENO"; then :
4481
  ac_cv_header_stdc=yes
4482
else
4483
  ac_cv_header_stdc=no
4484
fi
4485
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4486
4487
if test $ac_cv_header_stdc = yes; then
4488
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4489
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490
/* end confdefs.h.  */
4491
#include <string.h>
4492
4493
_ACEOF
4494
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4495
  $EGREP "memchr" >/dev/null 2>&1; then :
4496
4497
else
4498
  ac_cv_header_stdc=no
4499
fi
4500
rm -f conftest*
4501
4502
fi
4503
4504
if test $ac_cv_header_stdc = yes; then
4505
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4506
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507
/* end confdefs.h.  */
4508
#include <stdlib.h>
4509
4510
_ACEOF
4511
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4512
  $EGREP "free" >/dev/null 2>&1; then :
4513
4514
else
4515
  ac_cv_header_stdc=no
4516
fi
4517
rm -f conftest*
4518
4519
fi
4520
4521
if test $ac_cv_header_stdc = yes; then
4522
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4523
  if test "$cross_compiling" = yes; then :
4524
  :
4525
else
4526
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527
/* end confdefs.h.  */
4528
#include <ctype.h>
4529
#include <stdlib.h>
4530
#if ((' ' & 0x0FF) == 0x020)
4531
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4532
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4533
#else
4534
# define ISLOWER(c) \
4535
		   (('a' <= (c) && (c) <= 'i') \
4536
		     || ('j' <= (c) && (c) <= 'r') \
4537
		     || ('s' <= (c) && (c) <= 'z'))
4538
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4539
#endif
4540
4541
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4542
int
4543
main ()
4544
{
4545
  int i;
4546
  for (i = 0; i < 256; i++)
4547
    if (XOR (islower (i), ISLOWER (i))
4548
	|| toupper (i) != TOUPPER (i))
4549
      return 2;
4550
  return 0;
4551
}
4552
_ACEOF
4553
if ac_fn_c_try_run "$LINENO"; then :
4554
4555
else
4556
  ac_cv_header_stdc=no
4557
fi
4558
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4559
  conftest.$ac_objext conftest.beam conftest.$ac_ext
4560
fi
4561
4562
fi
4563
fi
4564
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4565
$as_echo "$ac_cv_header_stdc" >&6; }
4566
if test $ac_cv_header_stdc = yes; then
4567
4568
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4569
4570
fi
4571
4572
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4573
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4574
		  inttypes.h stdint.h unistd.h
4575
do :
4576
  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4577
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4578
"
4579
eval as_val=\$$as_ac_Header
4580
   if test "x$as_val" = x""yes; then :
4581
  cat >>confdefs.h <<_ACEOF
4582
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4583
_ACEOF
4584
4585
fi
4586
4587
done
4588
4589
4590
for ac_header in sys/time.h
4591
do :
4592
  ac_fn_c_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4593
if test "x$ac_cv_header_sys_time_h" = x""yes; then :
4594
  cat >>confdefs.h <<_ACEOF
4595
#define HAVE_SYS_TIME_H 1
4596
_ACEOF
4597
4598
fi
4599
4600
done
4601
4602
4603
# Checks for typedefs, structures, and compiler characteristics.
4604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
4605
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
4606
if test "${ac_cv_header_stdbool_h+set}" = set; then :
4607
  $as_echo_n "(cached) " >&6
4608
else
4609
  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610
/* end confdefs.h.  */
4611
4612
#include <stdbool.h>
4613
#ifndef bool
4614
 "error: bool is not defined"
4615
#endif
4616
#ifndef false
4617
 "error: false is not defined"
4618
#endif
4619
#if false
4620
 "error: false is not 0"
4621
#endif
4622
#ifndef true
4623
 "error: true is not defined"
4624
#endif
4625
#if true != 1
4626
 "error: true is not 1"
4627
#endif
4628
#ifndef __bool_true_false_are_defined
4629
 "error: __bool_true_false_are_defined is not defined"
4630
#endif
4631
4632
	struct s { _Bool s: 1; _Bool t; } s;
4633
4634
	char a[true == 1 ? 1 : -1];
4635
	char b[false == 0 ? 1 : -1];
4636
	char c[__bool_true_false_are_defined == 1 ? 1 : -1];
4637
	char d[(bool) 0.5 == true ? 1 : -1];
4638
	bool e = &s;
4639
	char f[(_Bool) 0.0 == false ? 1 : -1];
4640
	char g[true];
4641
	char h[sizeof (_Bool)];
4642
	char i[sizeof s.t];
4643
	enum { j = false, k = true, l = false * true, m = true * 256 };
4644
	/* The following fails for
4645
	   HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
4646
	_Bool n[m];
4647
	char o[sizeof n == m * sizeof n[0] ? 1 : -1];
4648
	char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
4649
#	if defined __xlc__ || defined __GNUC__
4650
	 /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
4651
	    reported by James Lemley on 2005-10-05; see
4652
	    http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
4653
	    This test is not quite right, since xlc is allowed to
4654
	    reject this program, as the initializer for xlcbug is
4655
	    not one of the forms that C requires support for.
4656
	    However, doing the test right would require a runtime
4657
	    test, and that would make cross-compilation harder.
4658
	    Let us hope that IBM fixes the xlc bug, and also adds
4659
	    support for this kind of constant expression.  In the
4660
	    meantime, this test will reject xlc, which is OK, since
4661
	    our stdbool.h substitute should suffice.  We also test
4662
	    this with GCC, where it should work, to detect more
4663
	    quickly whether someone messes up the test in the
4664
	    future.  */
4665
	 char digs[] = "0123456789";
4666
	 int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
4667
#	endif
4668
	/* Catch a bug in an HP-UX C compiler.  See
4669
	   http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
4670
	   http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
4671
	 */
4672
	_Bool q = true;
4673
	_Bool *pq = &q;
4674
4675
int
4676
main ()
4677
{
4678
4679
	*pq |= q;
4680
	*pq |= ! q;
4681
	/* Refer to every declared value, to avoid compiler optimizations.  */
4682
	return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
4683
		+ !m + !n + !o + !p + !q + !pq);
4684
4685
  ;
4686
  return 0;
4687
}
4688
_ACEOF
4689
if ac_fn_c_try_compile "$LINENO"; then :
4690
  ac_cv_header_stdbool_h=yes
4691
else
4692
  ac_cv_header_stdbool_h=no
4693
fi
4694
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4695
fi
4696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
4697
$as_echo "$ac_cv_header_stdbool_h" >&6; }
4698
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
4699
if test "x$ac_cv_type__Bool" = x""yes; then :
4700
4701
cat >>confdefs.h <<_ACEOF
4702
#define HAVE__BOOL 1
4703
_ACEOF
4704
4705
4706
fi
4707
4708
if test $ac_cv_header_stdbool_h = yes; then
4709
4710
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
4711
4712
fi
4713
4714
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
4715
case $ac_cv_c_uint64_t in #(
4716
  no|yes) ;; #(
4717
  *)
4718
4719
$as_echo "#define _UINT64_T 1" >>confdefs.h
4720
4721
4722
cat >>confdefs.h <<_ACEOF
4723
#define uint64_t $ac_cv_c_uint64_t
4724
_ACEOF
4725
;;
4726
  esac
4727
4728
4729
# Checks for library functions.
4730
4731
#AC_CONFIG_FILES([src/Makefile])
4732
ac_config_files="$ac_config_files Makefile src/Makefile"
4733
4734
cat >confcache <<\_ACEOF
4735
# This file is a shell script that caches the results of configure
4736
# tests run on this system so they can be shared between configure
4737
# scripts and configure runs, see configure's option --config-cache.
4738
# It is not useful on other systems.  If it contains results you don't
4739
# want to keep, you may remove or edit it.
4740
#
4741
# config.status only pays attention to the cache file if you give it
4742
# the --recheck option to rerun configure.
4743
#
4744
# `ac_cv_env_foo' variables (set or unset) will be overridden when
4745
# loading this file, other *unset* `ac_cv_foo' will be assigned the
4746
# following values.
4747
4748
_ACEOF
4749
4750
# The following way of writing the cache mishandles newlines in values,
4751
# but we know of no workaround that is simple, portable, and efficient.
4752
# So, we kill variables containing newlines.
4753
# Ultrix sh set writes to stderr and can't be redirected directly,
4754
# and sets the high bit in the cache file unless we assign to the vars.
4755
(
4756
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4757
    eval ac_val=\$$ac_var
4758
    case $ac_val in #(
4759
    *${as_nl}*)
4760
      case $ac_var in #(
4761
      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4762
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4763
      esac
4764
      case $ac_var in #(
4765
      _ | IFS | as_nl) ;; #(
4766
      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4767
      *) { eval $ac_var=; unset $ac_var;} ;;
4768
      esac ;;
4769
    esac
4770
  done
4771
4772
  (set) 2>&1 |
4773
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
4774
    *${as_nl}ac_space=\ *)
4775
      # `set' does not quote correctly, so add quotes: double-quote
4776
      # substitution turns \\\\ into \\, and sed turns \\ into \.
4777
      sed -n \
4778
	"s/'/'\\\\''/g;
4779
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4780
      ;; #(
4781
    *)
4782
      # `set' quotes correctly as required by POSIX, so do not add quotes.
4783
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4784
      ;;
4785
    esac |
4786
    sort
4787
) |
4788
  sed '
4789
     /^ac_cv_env_/b end
4790
     t clear
4791
     :clear
4792
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4793
     t end
4794
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4795
     :end' >>confcache
4796
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4797
  if test -w "$cache_file"; then
4798
    test "x$cache_file" != "x/dev/null" &&
4799
      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4800
$as_echo "$as_me: updating cache $cache_file" >&6;}
4801
    cat confcache >$cache_file
4802
  else
4803
    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4804
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4805
  fi
4806
fi
4807
rm -f confcache
4808
4809
test "x$prefix" = xNONE && prefix=$ac_default_prefix
4810
# Let make expand exec_prefix.
4811
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4812
4813
DEFS=-DHAVE_CONFIG_H
4814
4815
ac_libobjs=
4816
ac_ltlibobjs=
4817
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4818
  # 1. Remove the extension, and $U if already installed.
4819
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4820
  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4821
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
4822
  #    will be set to the directory where LIBOBJS objects are built.
4823
  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4824
  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4825
done
4826
LIBOBJS=$ac_libobjs
4827
4828
LTLIBOBJS=$ac_ltlibobjs
4829
4830
4831
 if test -n "$EXEEXT"; then
4832
  am__EXEEXT_TRUE=
4833
  am__EXEEXT_FALSE='#'
4834
else
4835
  am__EXEEXT_TRUE='#'
4836
  am__EXEEXT_FALSE=
4837
fi
4838
4839
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4840
  as_fn_error "conditional \"AMDEP\" was never defined.
4841
Usually this means the macro was only invoked conditionally." "$LINENO" 5
4842
fi
4843
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
4844
  as_fn_error "conditional \"am__fastdepCXX\" was never defined.
4845
Usually this means the macro was only invoked conditionally." "$LINENO" 5
4846
fi
4847
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4848
  as_fn_error "conditional \"am__fastdepCC\" was never defined.
4849
Usually this means the macro was only invoked conditionally." "$LINENO" 5
4850
fi
4851
4852
: ${CONFIG_STATUS=./config.status}
4853
ac_write_fail=0
4854
ac_clean_files_save=$ac_clean_files
4855
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4856
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4857
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4858
as_write_fail=0
4859
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4860
#! $SHELL
4861
# Generated by $as_me.
4862
# Run this file to recreate the current configuration.
4863
# Compiler output produced by configure, useful for debugging
4864
# configure, is in config.log if it exists.
4865
4866
debug=false
4867
ac_cs_recheck=false
4868
ac_cs_silent=false
4869
4870
SHELL=\${CONFIG_SHELL-$SHELL}
4871
export SHELL
4872
_ASEOF
4873
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4874
## -------------------- ##
4875
## M4sh Initialization. ##
4876
## -------------------- ##
4877
4878
# Be more Bourne compatible
4879
DUALCASE=1; export DUALCASE # for MKS sh
4880
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4881
  emulate sh
4882
  NULLCMD=:
4883
  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4884
  # is contrary to our usage.  Disable this feature.
4885
  alias -g '${1+"$@"}'='"$@"'
4886
  setopt NO_GLOB_SUBST
4887
else
4888
  case `(set -o) 2>/dev/null` in #(
4889
  *posix*) :
4890
    set -o posix ;; #(
4891
  *) :
4892
     ;;
4893
esac
4894
fi
4895
4896
4897
as_nl='
4898
'
4899
export as_nl
4900
# Printing a long string crashes Solaris 7 /usr/bin/printf.
4901
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4902
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4903
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4904
# Prefer a ksh shell builtin over an external printf program on Solaris,
4905
# but without wasting forks for bash or zsh.
4906
if test -z "$BASH_VERSION$ZSH_VERSION" \
4907
    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4908
  as_echo='print -r --'
4909
  as_echo_n='print -rn --'
4910
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4911
  as_echo='printf %s\n'
4912
  as_echo_n='printf %s'
4913
else
4914
  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4915
    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4916
    as_echo_n='/usr/ucb/echo -n'
4917
  else
4918
    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4919
    as_echo_n_body='eval
4920
      arg=$1;
4921
      case $arg in #(
4922
      *"$as_nl"*)
4923
	expr "X$arg" : "X\\(.*\\)$as_nl";
4924
	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4925
      esac;
4926
      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4927
    '
4928
    export as_echo_n_body
4929
    as_echo_n='sh -c $as_echo_n_body as_echo'
4930
  fi
4931
  export as_echo_body
4932
  as_echo='sh -c $as_echo_body as_echo'
4933
fi
4934
4935
# The user is always right.
4936
if test "${PATH_SEPARATOR+set}" != set; then
4937
  PATH_SEPARATOR=:
4938
  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4939
    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4940
      PATH_SEPARATOR=';'
4941
  }
4942
fi
4943
4944
4945
# IFS
4946
# We need space, tab and new line, in precisely that order.  Quoting is
4947
# there to prevent editors from complaining about space-tab.
4948
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
4949
# splitting by setting IFS to empty value.)
4950
IFS=" ""	$as_nl"
4951
4952
# Find who we are.  Look in the path if we contain no directory separator.
4953
case $0 in #((
4954
  *[\\/]* ) as_myself=$0 ;;
4955
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956
for as_dir in $PATH
4957
do
4958
  IFS=$as_save_IFS
4959
  test -z "$as_dir" && as_dir=.
4960
    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4961
  done
4962
IFS=$as_save_IFS
4963
4964
     ;;
4965
esac
4966
# We did not find ourselves, most probably we were run as `sh COMMAND'
4967
# in which case we are not to be found in the path.
4968
if test "x$as_myself" = x; then
4969
  as_myself=$0
4970
fi
4971
if test ! -f "$as_myself"; then
4972
  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4973
  exit 1
4974
fi
4975
4976
# Unset variables that we do not need and which cause bugs (e.g. in
4977
# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
4978
# suppresses any "Segmentation fault" message there.  '((' could
4979
# trigger a bug in pdksh 5.2.14.
4980
for as_var in BASH_ENV ENV MAIL MAILPATH
4981
do eval test x\${$as_var+set} = xset \
4982
  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4983
done
4984
PS1='$ '
4985
PS2='> '
4986
PS4='+ '
4987
4988
# NLS nuisances.
4989
LC_ALL=C
4990
export LC_ALL
4991
LANGUAGE=C
4992
export LANGUAGE
4993
4994
# CDPATH.
4995
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4996
4997
4998
# as_fn_error ERROR [LINENO LOG_FD]
4999
# ---------------------------------
5000
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5001
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5002
# script with status $?, using 1 if that was 0.
5003
as_fn_error ()
5004
{
5005
  as_status=$?; test $as_status -eq 0 && as_status=1
5006
  if test "$3"; then
5007
    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5008
    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
5009
  fi
5010
  $as_echo "$as_me: error: $1" >&2
5011
  as_fn_exit $as_status
5012
} # as_fn_error
5013
5014
5015
# as_fn_set_status STATUS
5016
# -----------------------
5017
# Set $? to STATUS, without forking.
5018
as_fn_set_status ()
5019
{
5020
  return $1
5021
} # as_fn_set_status
5022
5023
# as_fn_exit STATUS
5024
# -----------------
5025
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5026
as_fn_exit ()
5027
{
5028
  set +e
5029
  as_fn_set_status $1
5030
  exit $1
5031
} # as_fn_exit
5032
5033
# as_fn_unset VAR
5034
# ---------------
5035
# Portably unset VAR.
5036
as_fn_unset ()
5037
{
5038
  { eval $1=; unset $1;}
5039
}
5040
as_unset=as_fn_unset
5041
# as_fn_append VAR VALUE
5042
# ----------------------
5043
# Append the text in VALUE to the end of the definition contained in VAR. Take
5044
# advantage of any shell optimizations that allow amortized linear growth over
5045
# repeated appends, instead of the typical quadratic growth present in naive
5046
# implementations.
5047
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5048
  eval 'as_fn_append ()
5049
  {
5050
    eval $1+=\$2
5051
  }'
5052
else
5053
  as_fn_append ()
5054
  {
5055
    eval $1=\$$1\$2
5056
  }
5057
fi # as_fn_append
5058
5059
# as_fn_arith ARG...
5060
# ------------------
5061
# Perform arithmetic evaluation on the ARGs, and store the result in the
5062
# global $as_val. Take advantage of shells that can avoid forks. The arguments
5063
# must be portable across $(()) and expr.
5064
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5065
  eval 'as_fn_arith ()
5066
  {
5067
    as_val=$(( $* ))
5068
  }'
5069
else
5070
  as_fn_arith ()
5071
  {
5072
    as_val=`expr "$@" || test $? -eq 1`
5073
  }
5074
fi # as_fn_arith
5075
5076
5077
if expr a : '\(a\)' >/dev/null 2>&1 &&
5078
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
5079
  as_expr=expr
5080
else
5081
  as_expr=false
5082
fi
5083
5084
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5085
  as_basename=basename
5086
else
5087
  as_basename=false
5088
fi
5089
5090
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5091
  as_dirname=dirname
5092
else
5093
  as_dirname=false
5094
fi
5095
5096
as_me=`$as_basename -- "$0" ||
5097
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5098
	 X"$0" : 'X\(//\)$' \| \
5099
	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5100
$as_echo X/"$0" |
5101
    sed '/^.*\/\([^/][^/]*\)\/*$/{
5102
	    s//\1/
5103
	    q
5104
	  }
5105
	  /^X\/\(\/\/\)$/{
5106
	    s//\1/
5107
	    q
5108
	  }
5109
	  /^X\/\(\/\).*/{
5110
	    s//\1/
5111
	    q
5112
	  }
5113
	  s/.*/./; q'`
5114
5115
# Avoid depending upon Character Ranges.
5116
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5117
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5118
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5119
as_cr_digits='0123456789'
5120
as_cr_alnum=$as_cr_Letters$as_cr_digits
5121
5122
ECHO_C= ECHO_N= ECHO_T=
5123
case `echo -n x` in #(((((
5124
-n*)
5125
  case `echo 'xy\c'` in
5126
  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
5127
  xy)  ECHO_C='\c';;
5128
  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
5129
       ECHO_T='	';;
5130
  esac;;
5131
*)
5132
  ECHO_N='-n';;
5133
esac
5134
5135
rm -f conf$$ conf$$.exe conf$$.file
5136
if test -d conf$$.dir; then
5137
  rm -f conf$$.dir/conf$$.file
5138
else
5139
  rm -f conf$$.dir
5140
  mkdir conf$$.dir 2>/dev/null
5141
fi
5142
if (echo >conf$$.file) 2>/dev/null; then
5143
  if ln -s conf$$.file conf$$ 2>/dev/null; then
5144
    as_ln_s='ln -s'
5145
    # ... but there are two gotchas:
5146
    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5147
    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5148
    # In both cases, we have to default to `cp -p'.
5149
    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5150
      as_ln_s='cp -p'
5151
  elif ln conf$$.file conf$$ 2>/dev/null; then
5152
    as_ln_s=ln
5153
  else
5154
    as_ln_s='cp -p'
5155
  fi
5156
else
5157
  as_ln_s='cp -p'
5158
fi
5159
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5160
rmdir conf$$.dir 2>/dev/null
5161
5162
5163
# as_fn_mkdir_p
5164
# -------------
5165
# Create "$as_dir" as a directory, including parents if necessary.
5166
as_fn_mkdir_p ()
5167
{
5168
5169
  case $as_dir in #(
5170
  -*) as_dir=./$as_dir;;
5171
  esac
5172
  test -d "$as_dir" || eval $as_mkdir_p || {
5173
    as_dirs=
5174
    while :; do
5175
      case $as_dir in #(
5176
      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5177
      *) as_qdir=$as_dir;;
5178
      esac
5179
      as_dirs="'$as_qdir' $as_dirs"
5180
      as_dir=`$as_dirname -- "$as_dir" ||
5181
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5182
	 X"$as_dir" : 'X\(//\)[^/]' \| \
5183
	 X"$as_dir" : 'X\(//\)$' \| \
5184
	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5185
$as_echo X"$as_dir" |
5186
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5187
	    s//\1/
5188
	    q
5189
	  }
5190
	  /^X\(\/\/\)[^/].*/{
5191
	    s//\1/
5192
	    q
5193
	  }
5194
	  /^X\(\/\/\)$/{
5195
	    s//\1/
5196
	    q
5197
	  }
5198
	  /^X\(\/\).*/{
5199
	    s//\1/
5200
	    q
5201
	  }
5202
	  s/.*/./; q'`
5203
      test -d "$as_dir" && break
5204
    done
5205
    test -z "$as_dirs" || eval "mkdir $as_dirs"
5206
  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
5207
5208
5209
} # as_fn_mkdir_p
5210
if mkdir -p . 2>/dev/null; then
5211
  as_mkdir_p='mkdir -p "$as_dir"'
5212
else
5213
  test -d ./-p && rmdir ./-p
5214
  as_mkdir_p=false
5215
fi
5216
5217
if test -x / >/dev/null 2>&1; then
5218
  as_test_x='test -x'
5219
else
5220
  if ls -dL / >/dev/null 2>&1; then
5221
    as_ls_L_option=L
5222
  else
5223
    as_ls_L_option=
5224
  fi
5225
  as_test_x='
5226
    eval sh -c '\''
5227
      if test -d "$1"; then
5228
	test -d "$1/.";
5229
      else
5230
	case $1 in #(
5231
	-*)set "./$1";;
5232
	esac;
5233
	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5234
	???[sx]*):;;*)false;;esac;fi
5235
    '\'' sh
5236
  '
5237
fi
5238
as_executable_p=$as_test_x
5239
5240
# Sed expression to map a string onto a valid CPP name.
5241
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5242
5243
# Sed expression to map a string onto a valid variable name.
5244
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5245
5246
5247
exec 6>&1
5248
## ----------------------------------- ##
5249
## Main body of $CONFIG_STATUS script. ##
5250
## ----------------------------------- ##
5251
_ASEOF
5252
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5253
5254
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5255
# Save the log message, to keep $0 and so on meaningful, and to
5256
# report actual input values of CONFIG_FILES etc. instead of their
5257
# values after options handling.
5258
ac_log="
16 by Clint Byrum
adding test suite
5259
This file was extended by ustat $as_me 0.1, which was
11 by Clint Byrum
automake yay
5260
generated by GNU Autoconf 2.65.  Invocation command line was
5261
5262
  CONFIG_FILES    = $CONFIG_FILES
5263
  CONFIG_HEADERS  = $CONFIG_HEADERS
5264
  CONFIG_LINKS    = $CONFIG_LINKS
5265
  CONFIG_COMMANDS = $CONFIG_COMMANDS
5266
  $ $0 $@
5267
5268
on `(hostname || uname -n) 2>/dev/null | sed 1q`
5269
"
5270
5271
_ACEOF
5272
5273
case $ac_config_files in *"
5274
"*) set x $ac_config_files; shift; ac_config_files=$*;;
5275
esac
5276
5277
case $ac_config_headers in *"
5278
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
5279
esac
5280
5281
5282
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5283
# Files that config.status was made for.
5284
config_files="$ac_config_files"
5285
config_headers="$ac_config_headers"
5286
config_commands="$ac_config_commands"
5287
5288
_ACEOF
5289
5290
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5291
ac_cs_usage="\
5292
\`$as_me' instantiates files and other configuration actions
5293
from templates according to the current configuration.  Unless the files
5294
and actions are specified as TAGs, all are instantiated by default.
5295
5296
Usage: $0 [OPTION]... [TAG]...
5297
5298
  -h, --help       print this help, then exit
5299
  -V, --version    print version number and configuration settings, then exit
5300
      --config     print configuration, then exit
5301
  -q, --quiet, --silent
5302
                   do not print progress messages
5303
  -d, --debug      don't remove temporary files
5304
      --recheck    update $as_me by reconfiguring in the same conditions
5305
      --file=FILE[:TEMPLATE]
5306
                   instantiate the configuration file FILE
5307
      --header=FILE[:TEMPLATE]
5308
                   instantiate the configuration header FILE
5309
5310
Configuration files:
5311
$config_files
5312
5313
Configuration headers:
5314
$config_headers
5315
5316
Configuration commands:
5317
$config_commands
5318
16 by Clint Byrum
adding test suite
5319
Report bugs to <clint@ubuntu.com>."
11 by Clint Byrum
automake yay
5320
5321
_ACEOF
5322
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5323
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5324
ac_cs_version="\\
16 by Clint Byrum
adding test suite
5325
ustat config.status 0.1
11 by Clint Byrum
automake yay
5326
configured by $0, generated by GNU Autoconf 2.65,
5327
  with options \\"\$ac_cs_config\\"
5328
5329
Copyright (C) 2009 Free Software Foundation, Inc.
5330
This config.status script is free software; the Free Software Foundation
5331
gives unlimited permission to copy, distribute and modify it."
5332
5333
ac_pwd='$ac_pwd'
5334
srcdir='$srcdir'
5335
INSTALL='$INSTALL'
5336
MKDIR_P='$MKDIR_P'
5337
AWK='$AWK'
5338
test -n "\$AWK" || AWK=awk
5339
_ACEOF
5340
5341
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5342
# The default lists apply if the user does not specify any file.
5343
ac_need_defaults=:
5344
while test $# != 0
5345
do
5346
  case $1 in
5347
  --*=*)
5348
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
5349
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5350
    ac_shift=:
5351
    ;;
5352
  *)
5353
    ac_option=$1
5354
    ac_optarg=$2
5355
    ac_shift=shift
5356
    ;;
5357
  esac
5358
5359
  case $ac_option in
5360
  # Handling of the options.
5361
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5362
    ac_cs_recheck=: ;;
5363
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5364
    $as_echo "$ac_cs_version"; exit ;;
5365
  --config | --confi | --conf | --con | --co | --c )
5366
    $as_echo "$ac_cs_config"; exit ;;
5367
  --debug | --debu | --deb | --de | --d | -d )
5368
    debug=: ;;
5369
  --file | --fil | --fi | --f )
5370
    $ac_shift
5371
    case $ac_optarg in
5372
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5373
    esac
5374
    as_fn_append CONFIG_FILES " '$ac_optarg'"
5375
    ac_need_defaults=false;;
5376
  --header | --heade | --head | --hea )
5377
    $ac_shift
5378
    case $ac_optarg in
5379
    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5380
    esac
5381
    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
5382
    ac_need_defaults=false;;
5383
  --he | --h)
5384
    # Conflict between --help and --header
5385
    as_fn_error "ambiguous option: \`$1'
5386
Try \`$0 --help' for more information.";;
5387
  --help | --hel | -h )
5388
    $as_echo "$ac_cs_usage"; exit ;;
5389
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5390
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
5391
    ac_cs_silent=: ;;
5392
5393
  # This is an error.
5394
  -*) as_fn_error "unrecognized option: \`$1'
5395
Try \`$0 --help' for more information." ;;
5396
5397
  *) as_fn_append ac_config_targets " $1"
5398
     ac_need_defaults=false ;;
5399
5400
  esac
5401
  shift
5402
done
5403
5404
ac_configure_extra_args=
5405
5406
if $ac_cs_silent; then
5407
  exec 6>/dev/null
5408
  ac_configure_extra_args="$ac_configure_extra_args --silent"
5409
fi
5410
5411
_ACEOF
5412
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5413
if \$ac_cs_recheck; then
5414
  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5415
  shift
5416
  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5417
  CONFIG_SHELL='$SHELL'
5418
  export CONFIG_SHELL
5419
  exec "\$@"
5420
fi
5421
5422
_ACEOF
5423
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5424
exec 5>>config.log
5425
{
5426
  echo
5427
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5428
## Running $as_me. ##
5429
_ASBOX
5430
  $as_echo "$ac_log"
5431
} >&5
5432
5433
_ACEOF
5434
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5435
#
5436
# INIT-COMMANDS
5437
#
5438
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5439
5440
_ACEOF
5441
5442
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5443
5444
# Handling of arguments.
5445
for ac_config_target in $ac_config_targets
5446
do
5447
  case $ac_config_target in
5448
    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
5449
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5450
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5451
    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5452
5453
  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5454
  esac
5455
done
5456
5457
5458
# If the user did not use the arguments to specify the items to instantiate,
5459
# then the envvar interface is used.  Set only those that are not.
5460
# We use the long form for the default assignment because of an extremely
5461
# bizarre bug on SunOS 4.1.3.
5462
if $ac_need_defaults; then
5463
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5464
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
5465
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5466
fi
5467
5468
# Have a temporary directory for convenience.  Make it in the build tree
5469
# simply because there is no reason against having it here, and in addition,
5470
# creating and moving files from /tmp can sometimes cause problems.
5471
# Hook for its removal unless debugging.
5472
# Note that there is a small window in which the directory will not be cleaned:
5473
# after its creation but before its name has been assigned to `$tmp'.
5474
$debug ||
5475
{
5476
  tmp=
5477
  trap 'exit_status=$?
5478
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5479
' 0
5480
  trap 'as_fn_exit 1' 1 2 13 15
5481
}
5482
# Create a (secure) tmp directory for tmp files.
5483
5484
{
5485
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5486
  test -n "$tmp" && test -d "$tmp"
5487
}  ||
5488
{
5489
  tmp=./conf$$-$RANDOM
5490
  (umask 077 && mkdir "$tmp")
5491
} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5492
5493
# Set up the scripts for CONFIG_FILES section.
5494
# No need to generate them if there are no CONFIG_FILES.
5495
# This happens for instance with `./config.status config.h'.
5496
if test -n "$CONFIG_FILES"; then
5497
5498
5499
ac_cr=`echo X | tr X '\015'`
5500
# On cygwin, bash can eat \r inside `` if the user requested igncr.
5501
# But we know of no other shell where ac_cr would be empty at this
5502
# point, so we can use a bashism as a fallback.
5503
if test "x$ac_cr" = x; then
5504
  eval ac_cr=\$\'\\r\'
5505
fi
5506
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5507
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5508
  ac_cs_awk_cr='\r'
5509
else
5510
  ac_cs_awk_cr=$ac_cr
5511
fi
5512
5513
echo 'BEGIN {' >"$tmp/subs1.awk" &&
5514
_ACEOF
5515
5516
5517
{
5518
  echo "cat >conf$$subs.awk <<_ACEOF" &&
5519
  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5520
  echo "_ACEOF"
5521
} >conf$$subs.sh ||
5522
  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5523
ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5524
ac_delim='%!_!# '
5525
for ac_last_try in false false false false false :; do
5526
  . ./conf$$subs.sh ||
5527
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5528
5529
  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5530
  if test $ac_delim_n = $ac_delim_num; then
5531
    break
5532
  elif $ac_last_try; then
5533
    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5534
  else
5535
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5536
  fi
5537
done
5538
rm -f conf$$subs.sh
5539
5540
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5541
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5542
_ACEOF
5543
sed -n '
5544
h
5545
s/^/S["/; s/!.*/"]=/
5546
p
5547
g
5548
s/^[^!]*!//
5549
:repl
5550
t repl
5551
s/'"$ac_delim"'$//
5552
t delim
5553
:nl
5554
h
5555
s/\(.\{148\}\)..*/\1/
5556
t more1
5557
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5558
p
5559
n
5560
b repl
5561
:more1
5562
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5563
p
5564
g
5565
s/.\{148\}//
5566
t nl
5567
:delim
5568
h
5569
s/\(.\{148\}\)..*/\1/
5570
t more2
5571
s/["\\]/\\&/g; s/^/"/; s/$/"/
5572
p
5573
b
5574
:more2
5575
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5576
p
5577
g
5578
s/.\{148\}//
5579
t delim
5580
' <conf$$subs.awk | sed '
5581
/^[^""]/{
5582
  N
5583
  s/\n//
5584
}
5585
' >>$CONFIG_STATUS || ac_write_fail=1
5586
rm -f conf$$subs.awk
5587
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5588
_ACAWK
5589
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5590
  for (key in S) S_is_set[key] = 1
5591
  FS = ""
5592
5593
}
5594
{
5595
  line = $ 0
5596
  nfields = split(line, field, "@")
5597
  substed = 0
5598
  len = length(field[1])
5599
  for (i = 2; i < nfields; i++) {
5600
    key = field[i]
5601
    keylen = length(key)
5602
    if (S_is_set[key]) {
5603
      value = S[key]
5604
      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5605
      len += length(value) + length(field[++i])
5606
      substed = 1
5607
    } else
5608
      len += 1 + keylen
5609
  }
5610
5611
  print line
5612
}
5613
5614
_ACAWK
5615
_ACEOF
5616
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5617
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5618
  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5619
else
5620
  cat
5621
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5622
  || as_fn_error "could not setup config files machinery" "$LINENO" 5
5623
_ACEOF
5624
5625
# VPATH may cause trouble with some makes, so we remove $(srcdir),
5626
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5627
# trailing colons and then remove the whole line if VPATH becomes empty
5628
# (actually we leave an empty line to preserve line numbers).
5629
if test "x$srcdir" = x.; then
5630
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
5631
s/:*\$(srcdir):*/:/
5632
s/:*\${srcdir}:*/:/
5633
s/:*@srcdir@:*/:/
5634
s/^\([^=]*=[	 ]*\):*/\1/
5635
s/:*$//
5636
s/^[^=]*=[	 ]*$//
5637
}'
5638
fi
5639
5640
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5641
fi # test -n "$CONFIG_FILES"
5642
5643
# Set up the scripts for CONFIG_HEADERS section.
5644
# No need to generate them if there are no CONFIG_HEADERS.
5645
# This happens for instance with `./config.status Makefile'.
5646
if test -n "$CONFIG_HEADERS"; then
5647
cat >"$tmp/defines.awk" <<\_ACAWK ||
5648
BEGIN {
5649
_ACEOF
5650
5651
# Transform confdefs.h into an awk script `defines.awk', embedded as
5652
# here-document in config.status, that substitutes the proper values into
5653
# config.h.in to produce config.h.
5654
5655
# Create a delimiter string that does not exist in confdefs.h, to ease
5656
# handling of long lines.
5657
ac_delim='%!_!# '
5658
for ac_last_try in false false :; do
5659
  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
5660
  if test -z "$ac_t"; then
5661
    break
5662
  elif $ac_last_try; then
5663
    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
5664
  else
5665
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5666
  fi
5667
done
5668
5669
# For the awk script, D is an array of macro values keyed by name,
5670
# likewise P contains macro parameters if any.  Preserve backslash
5671
# newline sequences.
5672
5673
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
5674
sed -n '
5675
s/.\{148\}/&'"$ac_delim"'/g
5676
t rset
5677
:rset
5678
s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
5679
t def
5680
d
5681
:def
5682
s/\\$//
5683
t bsnl
5684
s/["\\]/\\&/g
5685
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5686
D["\1"]=" \3"/p
5687
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
5688
d
5689
:bsnl
5690
s/["\\]/\\&/g
5691
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
5692
D["\1"]=" \3\\\\\\n"\\/p
5693
t cont
5694
s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
5695
t cont
5696
d
5697
:cont
5698
n
5699
s/.\{148\}/&'"$ac_delim"'/g
5700
t clear
5701
:clear
5702
s/\\$//
5703
t bsnlc
5704
s/["\\]/\\&/g; s/^/"/; s/$/"/p
5705
d
5706
:bsnlc
5707
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
5708
b cont
5709
' <confdefs.h | sed '
5710
s/'"$ac_delim"'/"\\\
5711
"/g' >>$CONFIG_STATUS || ac_write_fail=1
5712
5713
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5714
  for (key in D) D_is_set[key] = 1
5715
  FS = ""
5716
}
5717
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
5718
  line = \$ 0
5719
  split(line, arg, " ")
5720
  if (arg[1] == "#") {
5721
    defundef = arg[2]
5722
    mac1 = arg[3]
5723
  } else {
5724
    defundef = substr(arg[1], 2)
5725
    mac1 = arg[2]
5726
  }
5727
  split(mac1, mac2, "(") #)
5728
  macro = mac2[1]
5729
  prefix = substr(line, 1, index(line, defundef) - 1)
5730
  if (D_is_set[macro]) {
5731
    # Preserve the white space surrounding the "#".
5732
    print prefix "define", macro P[macro] D[macro]
5733
    next
5734
  } else {
5735
    # Replace #undef with comments.  This is necessary, for example,
5736
    # in the case of _POSIX_SOURCE, which is predefined and required
5737
    # on some systems where configure will not decide to define it.
5738
    if (defundef == "undef") {
5739
      print "/*", prefix defundef, macro, "*/"
5740
      next
5741
    }
5742
  }
5743
}
5744
{ print }
5745
_ACAWK
5746
_ACEOF
5747
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5748
  as_fn_error "could not setup config headers machinery" "$LINENO" 5
5749
fi # test -n "$CONFIG_HEADERS"
5750
5751
5752
eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
5753
shift
5754
for ac_tag
5755
do
5756
  case $ac_tag in
5757
  :[FHLC]) ac_mode=$ac_tag; continue;;
5758
  esac
5759
  case $ac_mode$ac_tag in
5760
  :[FHL]*:*);;
5761
  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5762
  :[FH]-) ac_tag=-:-;;
5763
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5764
  esac
5765
  ac_save_IFS=$IFS
5766
  IFS=:
5767
  set x $ac_tag
5768
  IFS=$ac_save_IFS
5769
  shift
5770
  ac_file=$1
5771
  shift
5772
5773
  case $ac_mode in
5774
  :L) ac_source=$1;;
5775
  :[FH])
5776
    ac_file_inputs=
5777
    for ac_f
5778
    do
5779
      case $ac_f in
5780
      -) ac_f="$tmp/stdin";;
5781
      *) # Look for the file first in the build tree, then in the source tree
5782
	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
5783
	 # because $ac_f cannot contain `:'.
5784
	 test -f "$ac_f" ||
5785
	   case $ac_f in
5786
	   [\\/$]*) false;;
5787
	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5788
	   esac ||
5789
	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5790
      esac
5791
      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5792
      as_fn_append ac_file_inputs " '$ac_f'"
5793
    done
5794
5795
    # Let's still pretend it is `configure' which instantiates (i.e., don't
5796
    # use $as_me), people would be surprised to read:
5797
    #    /* config.h.  Generated by config.status.  */
5798
    configure_input='Generated from '`
5799
	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5800
	`' by configure.'
5801
    if test x"$ac_file" != x-; then
5802
      configure_input="$ac_file.  $configure_input"
5803
      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5804
$as_echo "$as_me: creating $ac_file" >&6;}
5805
    fi
5806
    # Neutralize special characters interpreted by sed in replacement strings.
5807
    case $configure_input in #(
5808
    *\&* | *\|* | *\\* )
5809
       ac_sed_conf_input=`$as_echo "$configure_input" |
5810
       sed 's/[\\\\&|]/\\\\&/g'`;; #(
5811
    *) ac_sed_conf_input=$configure_input;;
5812
    esac
5813
5814
    case $ac_tag in
5815
    *:-:* | *:-) cat >"$tmp/stdin" \
5816
      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5817
    esac
5818
    ;;
5819
  esac
5820
5821
  ac_dir=`$as_dirname -- "$ac_file" ||
5822
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5823
	 X"$ac_file" : 'X\(//\)[^/]' \| \
5824
	 X"$ac_file" : 'X\(//\)$' \| \
5825
	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5826
$as_echo X"$ac_file" |
5827
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5828
	    s//\1/
5829
	    q
5830
	  }
5831
	  /^X\(\/\/\)[^/].*/{
5832
	    s//\1/
5833
	    q
5834
	  }
5835
	  /^X\(\/\/\)$/{
5836
	    s//\1/
5837
	    q
5838
	  }
5839
	  /^X\(\/\).*/{
5840
	    s//\1/
5841
	    q
5842
	  }
5843
	  s/.*/./; q'`
5844
  as_dir="$ac_dir"; as_fn_mkdir_p
5845
  ac_builddir=.
5846
5847
case "$ac_dir" in
5848
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5849
*)
5850
  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5851
  # A ".." for each directory in $ac_dir_suffix.
5852
  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5853
  case $ac_top_builddir_sub in
5854
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5855
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5856
  esac ;;
5857
esac
5858
ac_abs_top_builddir=$ac_pwd
5859
ac_abs_builddir=$ac_pwd$ac_dir_suffix
5860
# for backward compatibility:
5861
ac_top_builddir=$ac_top_build_prefix
5862
5863
case $srcdir in
5864
  .)  # We are building in place.
5865
    ac_srcdir=.
5866
    ac_top_srcdir=$ac_top_builddir_sub
5867
    ac_abs_top_srcdir=$ac_pwd ;;
5868
  [\\/]* | ?:[\\/]* )  # Absolute name.
5869
    ac_srcdir=$srcdir$ac_dir_suffix;
5870
    ac_top_srcdir=$srcdir
5871
    ac_abs_top_srcdir=$srcdir ;;
5872
  *) # Relative name.
5873
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5874
    ac_top_srcdir=$ac_top_build_prefix$srcdir
5875
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5876
esac
5877
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5878
5879
5880
  case $ac_mode in
5881
  :F)
5882
  #
5883
  # CONFIG_FILE
5884
  #
5885
5886
  case $INSTALL in
5887
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5888
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5889
  esac
5890
  ac_MKDIR_P=$MKDIR_P
5891
  case $MKDIR_P in
5892
  [\\/$]* | ?:[\\/]* ) ;;
5893
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5894
  esac
5895
_ACEOF
5896
5897
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5898
# If the template does not know about datarootdir, expand it.
5899
# FIXME: This hack should be removed a few years after 2.60.
5900
ac_datarootdir_hack=; ac_datarootdir_seen=
5901
ac_sed_dataroot='
5902
/datarootdir/ {
5903
  p
5904
  q
5905
}
5906
/@datadir@/p
5907
/@docdir@/p
5908
/@infodir@/p
5909
/@localedir@/p
5910
/@mandir@/p'
5911
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5912
*datarootdir*) ac_datarootdir_seen=yes;;
5913
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5914
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5915
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5916
_ACEOF
5917
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5918
  ac_datarootdir_hack='
5919
  s&@datadir@&$datadir&g
5920
  s&@docdir@&$docdir&g
5921
  s&@infodir@&$infodir&g
5922
  s&@localedir@&$localedir&g
5923
  s&@mandir@&$mandir&g
5924
  s&\\\${datarootdir}&$datarootdir&g' ;;
5925
esac
5926
_ACEOF
5927
5928
# Neutralize VPATH when `$srcdir' = `.'.
5929
# Shell code in configure.ac might set extrasub.
5930
# FIXME: do we really want to maintain this feature?
5931
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5932
ac_sed_extra="$ac_vpsub
5933
$extrasub
5934
_ACEOF
5935
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5936
:t
5937
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5938
s|@configure_input@|$ac_sed_conf_input|;t t
5939
s&@top_builddir@&$ac_top_builddir_sub&;t t
5940
s&@top_build_prefix@&$ac_top_build_prefix&;t t
5941
s&@srcdir@&$ac_srcdir&;t t
5942
s&@abs_srcdir@&$ac_abs_srcdir&;t t
5943
s&@top_srcdir@&$ac_top_srcdir&;t t
5944
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5945
s&@builddir@&$ac_builddir&;t t
5946
s&@abs_builddir@&$ac_abs_builddir&;t t
5947
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5948
s&@INSTALL@&$ac_INSTALL&;t t
5949
s&@MKDIR_P@&$ac_MKDIR_P&;t t
5950
$ac_datarootdir_hack
5951
"
5952
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5953
  || as_fn_error "could not create $ac_file" "$LINENO" 5
5954
5955
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5956
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5957
  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5958
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5959
which seems to be undefined.  Please make sure it is defined." >&5
5960
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5961
which seems to be undefined.  Please make sure it is defined." >&2;}
5962
5963
  rm -f "$tmp/stdin"
5964
  case $ac_file in
5965
  -) cat "$tmp/out" && rm -f "$tmp/out";;
5966
  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5967
  esac \
5968
  || as_fn_error "could not create $ac_file" "$LINENO" 5
5969
 ;;
5970
  :H)
5971
  #
5972
  # CONFIG_HEADER
5973
  #
5974
  if test x"$ac_file" != x-; then
5975
    {
5976
      $as_echo "/* $configure_input  */" \
5977
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
5978
    } >"$tmp/config.h" \
5979
      || as_fn_error "could not create $ac_file" "$LINENO" 5
5980
    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
5981
      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
5982
$as_echo "$as_me: $ac_file is unchanged" >&6;}
5983
    else
5984
      rm -f "$ac_file"
5985
      mv "$tmp/config.h" "$ac_file" \
5986
	|| as_fn_error "could not create $ac_file" "$LINENO" 5
5987
    fi
5988
  else
5989
    $as_echo "/* $configure_input  */" \
5990
      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
5991
      || as_fn_error "could not create -" "$LINENO" 5
5992
  fi
5993
# Compute "$ac_file"'s index in $config_headers.
5994
_am_arg="$ac_file"
5995
_am_stamp_count=1
5996
for _am_header in $config_headers :; do
5997
  case $_am_header in
5998
    $_am_arg | $_am_arg:* )
5999
      break ;;
6000
    * )
6001
      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
6002
  esac
6003
done
6004
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6005
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6006
	 X"$_am_arg" : 'X\(//\)[^/]' \| \
6007
	 X"$_am_arg" : 'X\(//\)$' \| \
6008
	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6009
$as_echo X"$_am_arg" |
6010
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6011
	    s//\1/
6012
	    q
6013
	  }
6014
	  /^X\(\/\/\)[^/].*/{
6015
	    s//\1/
6016
	    q
6017
	  }
6018
	  /^X\(\/\/\)$/{
6019
	    s//\1/
6020
	    q
6021
	  }
6022
	  /^X\(\/\).*/{
6023
	    s//\1/
6024
	    q
6025
	  }
6026
	  s/.*/./; q'`/stamp-h$_am_stamp_count
6027
 ;;
6028
6029
  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
6030
$as_echo "$as_me: executing $ac_file commands" >&6;}
6031
 ;;
6032
  esac
6033
6034
6035
  case $ac_file$ac_mode in
6036
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
6037
  # Autoconf 2.62 quotes --file arguments for eval, but not when files
6038
  # are listed without --file.  Let's play safe and only enable the eval
6039
  # if we detect the quoting.
6040
  case $CONFIG_FILES in
6041
  *\'*) eval set x "$CONFIG_FILES" ;;
6042
  *)   set x $CONFIG_FILES ;;
6043
  esac
6044
  shift
6045
  for mf
6046
  do
6047
    # Strip MF so we end up with the name of the file.
6048
    mf=`echo "$mf" | sed -e 's/:.*$//'`
6049
    # Check whether this is an Automake generated Makefile or not.
6050
    # We used to match only the files named `Makefile.in', but
6051
    # some people rename them; so instead we look at the file content.
6052
    # Grep'ing the first line is not enough: some people post-process
6053
    # each Makefile.in and add a new line on top of each file to say so.
6054
    # Grep'ing the whole file is not good either: AIX grep has a line
6055
    # limit of 2048, but all sed's we know have understand at least 4000.
6056
    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6057
      dirpart=`$as_dirname -- "$mf" ||
6058
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6059
	 X"$mf" : 'X\(//\)[^/]' \| \
6060
	 X"$mf" : 'X\(//\)$' \| \
6061
	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6062
$as_echo X"$mf" |
6063
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6064
	    s//\1/
6065
	    q
6066
	  }
6067
	  /^X\(\/\/\)[^/].*/{
6068
	    s//\1/
6069
	    q
6070
	  }
6071
	  /^X\(\/\/\)$/{
6072
	    s//\1/
6073
	    q
6074
	  }
6075
	  /^X\(\/\).*/{
6076
	    s//\1/
6077
	    q
6078
	  }
6079
	  s/.*/./; q'`
6080
    else
6081
      continue
6082
    fi
6083
    # Extract the definition of DEPDIR, am__include, and am__quote
6084
    # from the Makefile without running `make'.
6085
    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6086
    test -z "$DEPDIR" && continue
6087
    am__include=`sed -n 's/^am__include = //p' < "$mf"`
6088
    test -z "am__include" && continue
6089
    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6090
    # When using ansi2knr, U may be empty or an underscore; expand it
6091
    U=`sed -n 's/^U = //p' < "$mf"`
6092
    # Find all dependency output files, they are included files with
6093
    # $(DEPDIR) in their names.  We invoke sed twice because it is the
6094
    # simplest approach to changing $(DEPDIR) to its actual value in the
6095
    # expansion.
6096
    for file in `sed -n "
6097
      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6098
	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6099
      # Make sure the directory exists.
6100
      test -f "$dirpart/$file" && continue
6101
      fdir=`$as_dirname -- "$file" ||
6102
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6103
	 X"$file" : 'X\(//\)[^/]' \| \
6104
	 X"$file" : 'X\(//\)$' \| \
6105
	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6106
$as_echo X"$file" |
6107
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6108
	    s//\1/
6109
	    q
6110
	  }
6111
	  /^X\(\/\/\)[^/].*/{
6112
	    s//\1/
6113
	    q
6114
	  }
6115
	  /^X\(\/\/\)$/{
6116
	    s//\1/
6117
	    q
6118
	  }
6119
	  /^X\(\/\).*/{
6120
	    s//\1/
6121
	    q
6122
	  }
6123
	  s/.*/./; q'`
6124
      as_dir=$dirpart/$fdir; as_fn_mkdir_p
6125
      # echo "creating $dirpart/$file"
6126
      echo '# dummy' > "$dirpart/$file"
6127
    done
6128
  done
6129
}
6130
 ;;
6131
6132
  esac
6133
done # for ac_tag
6134
6135
6136
as_fn_exit 0
6137
_ACEOF
6138
ac_clean_files=$ac_clean_files_save
6139
6140
test $ac_write_fail = 0 ||
6141
  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
6142
6143
6144
# configure is writing to config.log, and then calls config.status.
6145
# config.status does its own redirection, appending to config.log.
6146
# Unfortunately, on DOS this fails, as config.log is still kept open
6147
# by configure, so config.status won't be able to write to it; its
6148
# output is simply discarded.  So we exec the FD to /dev/null,
6149
# effectively closing config.log, so it can be properly (re)opened and
6150
# appended to by config.status.  When coming back to configure, we
6151
# need to make the FD available again.
6152
if test "$no_create" != yes; then
6153
  ac_cs_success=:
6154
  ac_config_status_args=
6155
  test "$silent" = yes &&
6156
    ac_config_status_args="$ac_config_status_args --quiet"
6157
  exec 5>/dev/null
6158
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6159
  exec 5>>config.log
6160
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6161
  # would make configure fail if this is the last instruction.
6162
  $ac_cs_success || as_fn_exit $?
6163
fi
6164
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6165
  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6166
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6167
fi
6168