~ubuntu-branches/ubuntu/oneiric/procserv/oneiric

« back to all changes in this revision

Viewing changes to configure

  • Committer: Bazaar Package Importer
  • Author(s): Ralph Lange
  • Date: 2010-01-04 16:19:35 UTC
  • Revision ID: james.westby@ubuntu.com-20100104161935-uaosvjyry3zc5l5l
Tags: upstream-2.5.0
ImportĀ upstreamĀ versionĀ 2.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#! /bin/sh
 
2
# Guess values for system-dependent variables and create Makefiles.
 
3
# Generated by GNU Autoconf 2.61 for procServ Process Server 2.5.0.
 
4
#
 
5
# Report bugs to <tech-talk@aps.anl.gov>.
 
6
#
 
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
9
# This configure script is free software; the Free Software Foundation
 
10
# gives unlimited permission to copy, distribute and modify it.
 
11
## --------------------- ##
 
12
## M4sh Initialization.  ##
 
13
## --------------------- ##
 
14
 
 
15
# Be more Bourne compatible
 
16
DUALCASE=1; export DUALCASE # for MKS sh
 
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
18
  emulate sh
 
19
  NULLCMD=:
 
20
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
21
  # is contrary to our usage.  Disable this feature.
 
22
  alias -g '${1+"$@"}'='"$@"'
 
23
  setopt NO_GLOB_SUBST
 
24
else
 
25
  case `(set -o) 2>/dev/null` in
 
26
  *posix*) set -o posix ;;
 
27
esac
 
28
 
 
29
fi
 
30
 
 
31
 
 
32
 
 
33
 
 
34
# PATH needs CR
 
35
# Avoid depending upon Character Ranges.
 
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
39
as_cr_digits='0123456789'
 
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
41
 
 
42
# The user is always right.
 
43
if test "${PATH_SEPARATOR+set}" != set; then
 
44
  echo "#! /bin/sh" >conf$$.sh
 
45
  echo  "exit 0"   >>conf$$.sh
 
46
  chmod +x conf$$.sh
 
47
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
48
    PATH_SEPARATOR=';'
 
49
  else
 
50
    PATH_SEPARATOR=:
 
51
  fi
 
52
  rm -f conf$$.sh
 
53
fi
 
54
 
 
55
# Support unset when possible.
 
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
57
  as_unset=unset
 
58
else
 
59
  as_unset=false
 
60
fi
 
61
 
 
62
 
 
63
# IFS
 
64
# We need space, tab and new line, in precisely that order.  Quoting is
 
65
# there to prevent editors from complaining about space-tab.
 
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
67
# splitting by setting IFS to empty value.)
 
68
as_nl='
 
69
'
 
70
IFS=" ""        $as_nl"
 
71
 
 
72
# Find who we are.  Look in the path if we contain no directory separator.
 
73
case $0 in
 
74
  *[\\/]* ) as_myself=$0 ;;
 
75
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
76
for as_dir in $PATH
 
77
do
 
78
  IFS=$as_save_IFS
 
79
  test -z "$as_dir" && as_dir=.
 
80
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
81
done
 
82
IFS=$as_save_IFS
 
83
 
 
84
     ;;
 
85
esac
 
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
87
# in which case we are not to be found in the path.
 
88
if test "x$as_myself" = x; then
 
89
  as_myself=$0
 
90
fi
 
91
if test ! -f "$as_myself"; then
 
92
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
93
  { (exit 1); exit 1; }
 
94
fi
 
95
 
 
96
# Work around bugs in pre-3.0 UWIN ksh.
 
97
for as_var in ENV MAIL MAILPATH
 
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
99
done
 
100
PS1='$ '
 
101
PS2='> '
 
102
PS4='+ '
 
103
 
 
104
# NLS nuisances.
 
105
for as_var in \
 
106
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
107
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
108
  LC_TELEPHONE LC_TIME
 
109
do
 
110
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
111
    eval $as_var=C; export $as_var
 
112
  else
 
113
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
114
  fi
 
115
done
 
116
 
 
117
# Required to use basename.
 
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
119
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
120
  as_expr=expr
 
121
else
 
122
  as_expr=false
 
123
fi
 
124
 
 
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
126
  as_basename=basename
 
127
else
 
128
  as_basename=false
 
129
fi
 
130
 
 
131
 
 
132
# Name of the executable.
 
133
as_me=`$as_basename -- "$0" ||
 
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
135
         X"$0" : 'X\(//\)$' \| \
 
136
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
137
echo X/"$0" |
 
138
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
139
            s//\1/
 
140
            q
 
141
          }
 
142
          /^X\/\(\/\/\)$/{
 
143
            s//\1/
 
144
            q
 
145
          }
 
146
          /^X\/\(\/\).*/{
 
147
            s//\1/
 
148
            q
 
149
          }
 
150
          s/.*/./; q'`
 
151
 
 
152
# CDPATH.
 
153
$as_unset CDPATH
 
154
 
 
155
 
 
156
if test "x$CONFIG_SHELL" = x; then
 
157
  if (eval ":") 2>/dev/null; then
 
158
  as_have_required=yes
 
159
else
 
160
  as_have_required=no
 
161
fi
 
162
 
 
163
  if test $as_have_required = yes &&     (eval ":
 
164
(as_func_return () {
 
165
  (exit \$1)
 
166
}
 
167
as_func_success () {
 
168
  as_func_return 0
 
169
}
 
170
as_func_failure () {
 
171
  as_func_return 1
 
172
}
 
173
as_func_ret_success () {
 
174
  return 0
 
175
}
 
176
as_func_ret_failure () {
 
177
  return 1
 
178
}
 
179
 
 
180
exitcode=0
 
181
if as_func_success; then
 
182
  :
 
183
else
 
184
  exitcode=1
 
185
  echo as_func_success failed.
 
186
fi
 
187
 
 
188
if as_func_failure; then
 
189
  exitcode=1
 
190
  echo as_func_failure succeeded.
 
191
fi
 
192
 
 
193
if as_func_ret_success; then
 
194
  :
 
195
else
 
196
  exitcode=1
 
197
  echo as_func_ret_success failed.
 
198
fi
 
199
 
 
200
if as_func_ret_failure; then
 
201
  exitcode=1
 
202
  echo as_func_ret_failure succeeded.
 
203
fi
 
204
 
 
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
206
  :
 
207
else
 
208
  exitcode=1
 
209
  echo positional parameters were not saved.
 
210
fi
 
211
 
 
212
test \$exitcode = 0) || { (exit 1); exit 1; }
 
213
 
 
214
(
 
215
  as_lineno_1=\$LINENO
 
216
  as_lineno_2=\$LINENO
 
217
  test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
 
218
  test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
 
219
") 2> /dev/null; then
 
220
  :
 
221
else
 
222
  as_candidate_shells=
 
223
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
 
225
do
 
226
  IFS=$as_save_IFS
 
227
  test -z "$as_dir" && as_dir=.
 
228
  case $as_dir in
 
229
         /*)
 
230
           for as_base in sh bash ksh sh5; do
 
231
             as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
 
232
           done;;
 
233
       esac
 
234
done
 
235
IFS=$as_save_IFS
 
236
 
 
237
 
 
238
      for as_shell in $as_candidate_shells $SHELL; do
 
239
         # Try only shells that exist, to save several forks.
 
240
         if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
 
241
                { ("$as_shell") 2> /dev/null <<\_ASEOF
 
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
243
  emulate sh
 
244
  NULLCMD=:
 
245
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
246
  # is contrary to our usage.  Disable this feature.
 
247
  alias -g '${1+"$@"}'='"$@"'
 
248
  setopt NO_GLOB_SUBST
 
249
else
 
250
  case `(set -o) 2>/dev/null` in
 
251
  *posix*) set -o posix ;;
 
252
esac
 
253
 
 
254
fi
 
255
 
 
256
 
 
257
:
 
258
_ASEOF
 
259
}; then
 
260
  CONFIG_SHELL=$as_shell
 
261
               as_have_required=yes
 
262
               if { "$as_shell" 2> /dev/null <<\_ASEOF
 
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
264
  emulate sh
 
265
  NULLCMD=:
 
266
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
267
  # is contrary to our usage.  Disable this feature.
 
268
  alias -g '${1+"$@"}'='"$@"'
 
269
  setopt NO_GLOB_SUBST
 
270
else
 
271
  case `(set -o) 2>/dev/null` in
 
272
  *posix*) set -o posix ;;
 
273
esac
 
274
 
 
275
fi
 
276
 
 
277
 
 
278
:
 
279
(as_func_return () {
 
280
  (exit $1)
 
281
}
 
282
as_func_success () {
 
283
  as_func_return 0
 
284
}
 
285
as_func_failure () {
 
286
  as_func_return 1
 
287
}
 
288
as_func_ret_success () {
 
289
  return 0
 
290
}
 
291
as_func_ret_failure () {
 
292
  return 1
 
293
}
 
294
 
 
295
exitcode=0
 
296
if as_func_success; then
 
297
  :
 
298
else
 
299
  exitcode=1
 
300
  echo as_func_success failed.
 
301
fi
 
302
 
 
303
if as_func_failure; then
 
304
  exitcode=1
 
305
  echo as_func_failure succeeded.
 
306
fi
 
307
 
 
308
if as_func_ret_success; then
 
309
  :
 
310
else
 
311
  exitcode=1
 
312
  echo as_func_ret_success failed.
 
313
fi
 
314
 
 
315
if as_func_ret_failure; then
 
316
  exitcode=1
 
317
  echo as_func_ret_failure succeeded.
 
318
fi
 
319
 
 
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
 
321
  :
 
322
else
 
323
  exitcode=1
 
324
  echo positional parameters were not saved.
 
325
fi
 
326
 
 
327
test $exitcode = 0) || { (exit 1); exit 1; }
 
328
 
 
329
(
 
330
  as_lineno_1=$LINENO
 
331
  as_lineno_2=$LINENO
 
332
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
333
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
 
334
 
 
335
_ASEOF
 
336
}; then
 
337
  break
 
338
fi
 
339
 
 
340
fi
 
341
 
 
342
      done
 
343
 
 
344
      if test "x$CONFIG_SHELL" != x; then
 
345
  for as_var in BASH_ENV ENV
 
346
        do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
347
        done
 
348
        export CONFIG_SHELL
 
349
        exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
 
350
fi
 
351
 
 
352
 
 
353
    if test $as_have_required = no; then
 
354
  echo This script requires a shell more modern than all the
 
355
      echo shells that I found on your system.  Please install a
 
356
      echo modern shell, or manually run the script under such a
 
357
      echo shell if you do have one.
 
358
      { (exit 1); exit 1; }
 
359
fi
 
360
 
 
361
 
 
362
fi
 
363
 
 
364
fi
 
365
 
 
366
 
 
367
 
 
368
(eval "as_func_return () {
 
369
  (exit \$1)
 
370
}
 
371
as_func_success () {
 
372
  as_func_return 0
 
373
}
 
374
as_func_failure () {
 
375
  as_func_return 1
 
376
}
 
377
as_func_ret_success () {
 
378
  return 0
 
379
}
 
380
as_func_ret_failure () {
 
381
  return 1
 
382
}
 
383
 
 
384
exitcode=0
 
385
if as_func_success; then
 
386
  :
 
387
else
 
388
  exitcode=1
 
389
  echo as_func_success failed.
 
390
fi
 
391
 
 
392
if as_func_failure; then
 
393
  exitcode=1
 
394
  echo as_func_failure succeeded.
 
395
fi
 
396
 
 
397
if as_func_ret_success; then
 
398
  :
 
399
else
 
400
  exitcode=1
 
401
  echo as_func_ret_success failed.
 
402
fi
 
403
 
 
404
if as_func_ret_failure; then
 
405
  exitcode=1
 
406
  echo as_func_ret_failure succeeded.
 
407
fi
 
408
 
 
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
 
410
  :
 
411
else
 
412
  exitcode=1
 
413
  echo positional parameters were not saved.
 
414
fi
 
415
 
 
416
test \$exitcode = 0") || {
 
417
  echo No shell found that supports shell functions.
 
418
  echo Please tell autoconf@gnu.org about your system,
 
419
  echo including any error possibly output before this
 
420
  echo message
 
421
}
 
422
 
 
423
 
 
424
 
 
425
  as_lineno_1=$LINENO
 
426
  as_lineno_2=$LINENO
 
427
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
428
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
429
 
 
430
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
431
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
432
  # line-number line after each line using $LINENO; the second 'sed'
 
433
  # does the real work.  The second script uses 'N' to pair each
 
434
  # line-number line with the line containing $LINENO, and appends
 
435
  # trailing '-' during substitution so that $LINENO is not a special
 
436
  # case at line end.
 
437
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
438
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
439
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
440
  sed -n '
 
441
    p
 
442
    /[$]LINENO/=
 
443
  ' <$as_myself |
 
444
    sed '
 
445
      s/[$]LINENO.*/&-/
 
446
      t lineno
 
447
      b
 
448
      :lineno
 
449
      N
 
450
      :loop
 
451
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
452
      t loop
 
453
      s/-\n.*//
 
454
    ' >$as_me.lineno &&
 
455
  chmod +x "$as_me.lineno" ||
 
456
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
457
   { (exit 1); exit 1; }; }
 
458
 
 
459
  # Don't try to exec as it changes $[0], causing all sort of problems
 
460
  # (the dirname of $[0] is not the place where we might find the
 
461
  # original and so on.  Autoconf is especially sensitive to this).
 
462
  . "./$as_me.lineno"
 
463
  # Exit status is that of the last command.
 
464
  exit
 
465
}
 
466
 
 
467
 
 
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
469
  as_dirname=dirname
 
470
else
 
471
  as_dirname=false
 
472
fi
 
473
 
 
474
ECHO_C= ECHO_N= ECHO_T=
 
475
case `echo -n x` in
 
476
-n*)
 
477
  case `echo 'x\c'` in
 
478
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
479
  *)   ECHO_C='\c';;
 
480
  esac;;
 
481
*)
 
482
  ECHO_N='-n';;
 
483
esac
 
484
 
 
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
486
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
487
  as_expr=expr
 
488
else
 
489
  as_expr=false
 
490
fi
 
491
 
 
492
rm -f conf$$ conf$$.exe conf$$.file
 
493
if test -d conf$$.dir; then
 
494
  rm -f conf$$.dir/conf$$.file
 
495
else
 
496
  rm -f conf$$.dir
 
497
  mkdir conf$$.dir
 
498
fi
 
499
echo >conf$$.file
 
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
501
  as_ln_s='ln -s'
 
502
  # ... but there are two gotchas:
 
503
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
504
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
505
  # In both cases, we have to default to `cp -p'.
 
506
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
507
    as_ln_s='cp -p'
 
508
elif ln conf$$.file conf$$ 2>/dev/null; then
 
509
  as_ln_s=ln
 
510
else
 
511
  as_ln_s='cp -p'
 
512
fi
 
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
514
rmdir conf$$.dir 2>/dev/null
 
515
 
 
516
if mkdir -p . 2>/dev/null; then
 
517
  as_mkdir_p=:
 
518
else
 
519
  test -d ./-p && rmdir ./-p
 
520
  as_mkdir_p=false
 
521
fi
 
522
 
 
523
if test -x / >/dev/null 2>&1; then
 
524
  as_test_x='test -x'
 
525
else
 
526
  if ls -dL / >/dev/null 2>&1; then
 
527
    as_ls_L_option=L
 
528
  else
 
529
    as_ls_L_option=
 
530
  fi
 
531
  as_test_x='
 
532
    eval sh -c '\''
 
533
      if test -d "$1"; then
 
534
        test -d "$1/.";
 
535
      else
 
536
        case $1 in
 
537
        -*)set "./$1";;
 
538
        esac;
 
539
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
540
        ???[sx]*):;;*)false;;esac;fi
 
541
    '\'' sh
 
542
  '
 
543
fi
 
544
as_executable_p=$as_test_x
 
545
 
 
546
# Sed expression to map a string onto a valid CPP name.
 
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
548
 
 
549
# Sed expression to map a string onto a valid variable name.
 
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
551
 
 
552
 
 
553
 
 
554
exec 7<&0 </dev/null 6>&1
 
555
 
 
556
# Name of the host.
 
557
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
 
558
# so uname gets run too.
 
559
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
 
560
 
 
561
#
 
562
# Initializations.
 
563
#
 
564
ac_default_prefix=/usr/local
 
565
ac_clean_files=
 
566
ac_config_libobj_dir=.
 
567
LIBOBJS=
 
568
cross_compiling=no
 
569
subdirs=
 
570
MFLAGS=
 
571
MAKEFLAGS=
 
572
SHELL=${CONFIG_SHELL-/bin/sh}
 
573
 
 
574
# Identity of this package.
 
575
PACKAGE_NAME='procServ Process Server'
 
576
PACKAGE_TARNAME='procServ'
 
577
PACKAGE_VERSION='2.5.0'
 
578
PACKAGE_STRING='procServ Process Server 2.5.0'
 
579
PACKAGE_BUGREPORT='tech-talk@aps.anl.gov'
 
580
 
 
581
ac_unique_file="connectionItem.cc"
 
582
# Factoring default headers for most tests.
 
583
ac_includes_default="\
 
584
#include <stdio.h>
 
585
#ifdef HAVE_SYS_TYPES_H
 
586
# include <sys/types.h>
 
587
#endif
 
588
#ifdef HAVE_SYS_STAT_H
 
589
# include <sys/stat.h>
 
590
#endif
 
591
#ifdef STDC_HEADERS
 
592
# include <stdlib.h>
 
593
# include <stddef.h>
 
594
#else
 
595
# ifdef HAVE_STDLIB_H
 
596
#  include <stdlib.h>
 
597
# endif
 
598
#endif
 
599
#ifdef HAVE_STRING_H
 
600
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
 
601
#  include <memory.h>
 
602
# endif
 
603
# include <string.h>
 
604
#endif
 
605
#ifdef HAVE_STRINGS_H
 
606
# include <strings.h>
 
607
#endif
 
608
#ifdef HAVE_INTTYPES_H
 
609
# include <inttypes.h>
 
610
#endif
 
611
#ifdef HAVE_STDINT_H
 
612
# include <stdint.h>
 
613
#endif
 
614
#ifdef HAVE_UNISTD_H
 
615
# include <unistd.h>
 
616
#endif"
 
617
 
 
618
ac_subst_vars='SHELL
 
619
PATH_SEPARATOR
 
620
PACKAGE_NAME
 
621
PACKAGE_TARNAME
 
622
PACKAGE_VERSION
 
623
PACKAGE_STRING
 
624
PACKAGE_BUGREPORT
 
625
exec_prefix
 
626
prefix
 
627
program_transform_name
 
628
bindir
 
629
sbindir
 
630
libexecdir
 
631
datarootdir
 
632
datadir
 
633
sysconfdir
 
634
sharedstatedir
 
635
localstatedir
 
636
includedir
 
637
oldincludedir
 
638
docdir
 
639
infodir
 
640
htmldir
 
641
dvidir
 
642
pdfdir
 
643
psdir
 
644
libdir
 
645
localedir
 
646
mandir
 
647
DEFS
 
648
ECHO_C
 
649
ECHO_N
 
650
ECHO_T
 
651
LIBS
 
652
build_alias
 
653
host_alias
 
654
target_alias
 
655
PACKAGE_DATE
 
656
INSTALL_PROGRAM
 
657
INSTALL_SCRIPT
 
658
INSTALL_DATA
 
659
am__isrc
 
660
CYGPATH_W
 
661
PACKAGE
 
662
VERSION
 
663
ACLOCAL
 
664
AUTOCONF
 
665
AUTOMAKE
 
666
AUTOHEADER
 
667
MAKEINFO
 
668
install_sh
 
669
STRIP
 
670
INSTALL_STRIP_PROGRAM
 
671
mkdir_p
 
672
AWK
 
673
SET_MAKE
 
674
am__leading_dot
 
675
AMTAR
 
676
am__tar
 
677
am__untar
 
678
CXX
 
679
CXXFLAGS
 
680
LDFLAGS
 
681
CPPFLAGS
 
682
ac_ct_CXX
 
683
EXEEXT
 
684
OBJEXT
 
685
DEPDIR
 
686
am__include
 
687
am__quote
 
688
AMDEP_TRUE
 
689
AMDEP_FALSE
 
690
AMDEPBACKSLASH
 
691
CXXDEPMODE
 
692
am__fastdepCXX_TRUE
 
693
am__fastdepCXX_FALSE
 
694
CC
 
695
CFLAGS
 
696
ac_ct_CC
 
697
CCDEPMODE
 
698
am__fastdepCC_TRUE
 
699
am__fastdepCC_FALSE
 
700
CPP
 
701
GREP
 
702
EGREP
 
703
LIBOBJS
 
704
EPICS_TOP
 
705
WITH_EPICS_TRUE
 
706
WITH_EPICS_FALSE
 
707
INSTALL_DOC_TRUE
 
708
INSTALL_DOC_FALSE
 
709
BUILD_DOC_TRUE
 
710
BUILD_DOC_FALSE
 
711
A2X
 
712
ASCIIDOC
 
713
XMLLINT
 
714
XSLTPROC
 
715
PDFGEN
 
716
LTLIBOBJS'
 
717
ac_subst_files=''
 
718
      ac_precious_vars='build_alias
 
719
host_alias
 
720
target_alias
 
721
CXX
 
722
CXXFLAGS
 
723
LDFLAGS
 
724
LIBS
 
725
CPPFLAGS
 
726
CCC
 
727
CC
 
728
CFLAGS
 
729
CPP'
 
730
 
 
731
 
 
732
# Initialize some variables set by options.
 
733
ac_init_help=
 
734
ac_init_version=false
 
735
# The variables have the same names as the options, with
 
736
# dashes changed to underlines.
 
737
cache_file=/dev/null
 
738
exec_prefix=NONE
 
739
no_create=
 
740
no_recursion=
 
741
prefix=NONE
 
742
program_prefix=NONE
 
743
program_suffix=NONE
 
744
program_transform_name=s,x,x,
 
745
silent=
 
746
site=
 
747
srcdir=
 
748
verbose=
 
749
x_includes=NONE
 
750
x_libraries=NONE
 
751
 
 
752
# Installation directory options.
 
753
# These are left unexpanded so users can "make install exec_prefix=/foo"
 
754
# and all the variables that are supposed to be based on exec_prefix
 
755
# by default will actually change.
 
756
# Use braces instead of parens because sh, perl, etc. also accept them.
 
757
# (The list follows the same order as the GNU Coding Standards.)
 
758
bindir='${exec_prefix}/bin'
 
759
sbindir='${exec_prefix}/sbin'
 
760
libexecdir='${exec_prefix}/libexec'
 
761
datarootdir='${prefix}/share'
 
762
datadir='${datarootdir}'
 
763
sysconfdir='${prefix}/etc'
 
764
sharedstatedir='${prefix}/com'
 
765
localstatedir='${prefix}/var'
 
766
includedir='${prefix}/include'
 
767
oldincludedir='/usr/include'
 
768
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
 
769
infodir='${datarootdir}/info'
 
770
htmldir='${docdir}'
 
771
dvidir='${docdir}'
 
772
pdfdir='${docdir}'
 
773
psdir='${docdir}'
 
774
libdir='${exec_prefix}/lib'
 
775
localedir='${datarootdir}/locale'
 
776
mandir='${datarootdir}/man'
 
777
 
 
778
ac_prev=
 
779
ac_dashdash=
 
780
for ac_option
 
781
do
 
782
  # If the previous option needs an argument, assign it.
 
783
  if test -n "$ac_prev"; then
 
784
    eval $ac_prev=\$ac_option
 
785
    ac_prev=
 
786
    continue
 
787
  fi
 
788
 
 
789
  case $ac_option in
 
790
  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
 
791
  *)    ac_optarg=yes ;;
 
792
  esac
 
793
 
 
794
  # Accept the important Cygnus configure options, so we can diagnose typos.
 
795
 
 
796
  case $ac_dashdash$ac_option in
 
797
  --)
 
798
    ac_dashdash=yes ;;
 
799
 
 
800
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
 
801
    ac_prev=bindir ;;
 
802
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
 
803
    bindir=$ac_optarg ;;
 
804
 
 
805
  -build | --build | --buil | --bui | --bu)
 
806
    ac_prev=build_alias ;;
 
807
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
 
808
    build_alias=$ac_optarg ;;
 
809
 
 
810
  -cache-file | --cache-file | --cache-fil | --cache-fi \
 
811
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
 
812
    ac_prev=cache_file ;;
 
813
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
 
814
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
 
815
    cache_file=$ac_optarg ;;
 
816
 
 
817
  --config-cache | -C)
 
818
    cache_file=config.cache ;;
 
819
 
 
820
  -datadir | --datadir | --datadi | --datad)
 
821
    ac_prev=datadir ;;
 
822
  -datadir=* | --datadir=* | --datadi=* | --datad=*)
 
823
    datadir=$ac_optarg ;;
 
824
 
 
825
  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
 
826
  | --dataroo | --dataro | --datar)
 
827
    ac_prev=datarootdir ;;
 
828
  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
 
829
  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
 
830
    datarootdir=$ac_optarg ;;
 
831
 
 
832
  -disable-* | --disable-*)
 
833
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
 
834
    # Reject names that are not valid shell variable names.
 
835
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
836
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
837
   { (exit 1); exit 1; }; }
 
838
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
839
    eval enable_$ac_feature=no ;;
 
840
 
 
841
  -docdir | --docdir | --docdi | --doc | --do)
 
842
    ac_prev=docdir ;;
 
843
  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
 
844
    docdir=$ac_optarg ;;
 
845
 
 
846
  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
 
847
    ac_prev=dvidir ;;
 
848
  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
 
849
    dvidir=$ac_optarg ;;
 
850
 
 
851
  -enable-* | --enable-*)
 
852
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
 
853
    # Reject names that are not valid shell variable names.
 
854
    expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
855
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
 
856
   { (exit 1); exit 1; }; }
 
857
    ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
 
858
    eval enable_$ac_feature=\$ac_optarg ;;
 
859
 
 
860
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
 
861
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
 
862
  | --exec | --exe | --ex)
 
863
    ac_prev=exec_prefix ;;
 
864
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
 
865
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
 
866
  | --exec=* | --exe=* | --ex=*)
 
867
    exec_prefix=$ac_optarg ;;
 
868
 
 
869
  -gas | --gas | --ga | --g)
 
870
    # Obsolete; use --with-gas.
 
871
    with_gas=yes ;;
 
872
 
 
873
  -help | --help | --hel | --he | -h)
 
874
    ac_init_help=long ;;
 
875
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
 
876
    ac_init_help=recursive ;;
 
877
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
 
878
    ac_init_help=short ;;
 
879
 
 
880
  -host | --host | --hos | --ho)
 
881
    ac_prev=host_alias ;;
 
882
  -host=* | --host=* | --hos=* | --ho=*)
 
883
    host_alias=$ac_optarg ;;
 
884
 
 
885
  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
 
886
    ac_prev=htmldir ;;
 
887
  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
 
888
  | --ht=*)
 
889
    htmldir=$ac_optarg ;;
 
890
 
 
891
  -includedir | --includedir | --includedi | --included | --include \
 
892
  | --includ | --inclu | --incl | --inc)
 
893
    ac_prev=includedir ;;
 
894
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
 
895
  | --includ=* | --inclu=* | --incl=* | --inc=*)
 
896
    includedir=$ac_optarg ;;
 
897
 
 
898
  -infodir | --infodir | --infodi | --infod | --info | --inf)
 
899
    ac_prev=infodir ;;
 
900
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
 
901
    infodir=$ac_optarg ;;
 
902
 
 
903
  -libdir | --libdir | --libdi | --libd)
 
904
    ac_prev=libdir ;;
 
905
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
 
906
    libdir=$ac_optarg ;;
 
907
 
 
908
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
 
909
  | --libexe | --libex | --libe)
 
910
    ac_prev=libexecdir ;;
 
911
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
 
912
  | --libexe=* | --libex=* | --libe=*)
 
913
    libexecdir=$ac_optarg ;;
 
914
 
 
915
  -localedir | --localedir | --localedi | --localed | --locale)
 
916
    ac_prev=localedir ;;
 
917
  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
 
918
    localedir=$ac_optarg ;;
 
919
 
 
920
  -localstatedir | --localstatedir | --localstatedi | --localstated \
 
921
  | --localstate | --localstat | --localsta | --localst | --locals)
 
922
    ac_prev=localstatedir ;;
 
923
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
 
924
  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
 
925
    localstatedir=$ac_optarg ;;
 
926
 
 
927
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
 
928
    ac_prev=mandir ;;
 
929
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
 
930
    mandir=$ac_optarg ;;
 
931
 
 
932
  -nfp | --nfp | --nf)
 
933
    # Obsolete; use --without-fp.
 
934
    with_fp=no ;;
 
935
 
 
936
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
 
937
  | --no-cr | --no-c | -n)
 
938
    no_create=yes ;;
 
939
 
 
940
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
 
941
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
 
942
    no_recursion=yes ;;
 
943
 
 
944
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
 
945
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
 
946
  | --oldin | --oldi | --old | --ol | --o)
 
947
    ac_prev=oldincludedir ;;
 
948
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
 
949
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
 
950
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
 
951
    oldincludedir=$ac_optarg ;;
 
952
 
 
953
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
 
954
    ac_prev=prefix ;;
 
955
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
 
956
    prefix=$ac_optarg ;;
 
957
 
 
958
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
 
959
  | --program-pre | --program-pr | --program-p)
 
960
    ac_prev=program_prefix ;;
 
961
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
 
962
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
 
963
    program_prefix=$ac_optarg ;;
 
964
 
 
965
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
 
966
  | --program-suf | --program-su | --program-s)
 
967
    ac_prev=program_suffix ;;
 
968
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
 
969
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
 
970
    program_suffix=$ac_optarg ;;
 
971
 
 
972
  -program-transform-name | --program-transform-name \
 
973
  | --program-transform-nam | --program-transform-na \
 
974
  | --program-transform-n | --program-transform- \
 
975
  | --program-transform | --program-transfor \
 
976
  | --program-transfo | --program-transf \
 
977
  | --program-trans | --program-tran \
 
978
  | --progr-tra | --program-tr | --program-t)
 
979
    ac_prev=program_transform_name ;;
 
980
  -program-transform-name=* | --program-transform-name=* \
 
981
  | --program-transform-nam=* | --program-transform-na=* \
 
982
  | --program-transform-n=* | --program-transform-=* \
 
983
  | --program-transform=* | --program-transfor=* \
 
984
  | --program-transfo=* | --program-transf=* \
 
985
  | --program-trans=* | --program-tran=* \
 
986
  | --progr-tra=* | --program-tr=* | --program-t=*)
 
987
    program_transform_name=$ac_optarg ;;
 
988
 
 
989
  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
 
990
    ac_prev=pdfdir ;;
 
991
  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
 
992
    pdfdir=$ac_optarg ;;
 
993
 
 
994
  -psdir | --psdir | --psdi | --psd | --ps)
 
995
    ac_prev=psdir ;;
 
996
  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
 
997
    psdir=$ac_optarg ;;
 
998
 
 
999
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1000
  | -silent | --silent | --silen | --sile | --sil)
 
1001
    silent=yes ;;
 
1002
 
 
1003
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
 
1004
    ac_prev=sbindir ;;
 
1005
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
 
1006
  | --sbi=* | --sb=*)
 
1007
    sbindir=$ac_optarg ;;
 
1008
 
 
1009
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
 
1010
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
 
1011
  | --sharedst | --shareds | --shared | --share | --shar \
 
1012
  | --sha | --sh)
 
1013
    ac_prev=sharedstatedir ;;
 
1014
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
 
1015
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
 
1016
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
 
1017
  | --sha=* | --sh=*)
 
1018
    sharedstatedir=$ac_optarg ;;
 
1019
 
 
1020
  -site | --site | --sit)
 
1021
    ac_prev=site ;;
 
1022
  -site=* | --site=* | --sit=*)
 
1023
    site=$ac_optarg ;;
 
1024
 
 
1025
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 
1026
    ac_prev=srcdir ;;
 
1027
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 
1028
    srcdir=$ac_optarg ;;
 
1029
 
 
1030
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 
1031
  | --syscon | --sysco | --sysc | --sys | --sy)
 
1032
    ac_prev=sysconfdir ;;
 
1033
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 
1034
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 
1035
    sysconfdir=$ac_optarg ;;
 
1036
 
 
1037
  -target | --target | --targe | --targ | --tar | --ta | --t)
 
1038
    ac_prev=target_alias ;;
 
1039
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 
1040
    target_alias=$ac_optarg ;;
 
1041
 
 
1042
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
 
1043
    verbose=yes ;;
 
1044
 
 
1045
  -version | --version | --versio | --versi | --vers | -V)
 
1046
    ac_init_version=: ;;
 
1047
 
 
1048
  -with-* | --with-*)
 
1049
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 
1050
    # Reject names that are not valid shell variable names.
 
1051
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1052
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1053
   { (exit 1); exit 1; }; }
 
1054
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1055
    eval with_$ac_package=\$ac_optarg ;;
 
1056
 
 
1057
  -without-* | --without-*)
 
1058
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 
1059
    # Reject names that are not valid shell variable names.
 
1060
    expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1061
      { echo "$as_me: error: invalid package name: $ac_package" >&2
 
1062
   { (exit 1); exit 1; }; }
 
1063
    ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
 
1064
    eval with_$ac_package=no ;;
 
1065
 
 
1066
  --x)
 
1067
    # Obsolete; use --with-x.
 
1068
    with_x=yes ;;
 
1069
 
 
1070
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 
1071
  | --x-incl | --x-inc | --x-in | --x-i)
 
1072
    ac_prev=x_includes ;;
 
1073
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 
1074
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 
1075
    x_includes=$ac_optarg ;;
 
1076
 
 
1077
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
 
1078
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 
1079
    ac_prev=x_libraries ;;
 
1080
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 
1081
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 
1082
    x_libraries=$ac_optarg ;;
 
1083
 
 
1084
  -*) { echo "$as_me: error: unrecognized option: $ac_option
 
1085
Try \`$0 --help' for more information." >&2
 
1086
   { (exit 1); exit 1; }; }
 
1087
    ;;
 
1088
 
 
1089
  *=*)
 
1090
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 
1091
    # Reject names that are not valid shell variable names.
 
1092
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
 
1093
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
 
1094
   { (exit 1); exit 1; }; }
 
1095
    eval $ac_envvar=\$ac_optarg
 
1096
    export $ac_envvar ;;
 
1097
 
 
1098
  *)
 
1099
    # FIXME: should be removed in autoconf 3.0.
 
1100
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 
1101
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 
1102
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 
1103
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
 
1104
    ;;
 
1105
 
 
1106
  esac
 
1107
done
 
1108
 
 
1109
if test -n "$ac_prev"; then
 
1110
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 
1111
  { echo "$as_me: error: missing argument to $ac_option" >&2
 
1112
   { (exit 1); exit 1; }; }
 
1113
fi
 
1114
 
 
1115
# Be sure to have absolute directory names.
 
1116
for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 
1117
                datadir sysconfdir sharedstatedir localstatedir includedir \
 
1118
                oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 
1119
                libdir localedir mandir
 
1120
do
 
1121
  eval ac_val=\$$ac_var
 
1122
  case $ac_val in
 
1123
    [\\/$]* | ?:[\\/]* )  continue;;
 
1124
    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 
1125
  esac
 
1126
  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
 
1127
   { (exit 1); exit 1; }; }
 
1128
done
 
1129
 
 
1130
# There might be people who depend on the old broken behavior: `$host'
 
1131
# used to hold the argument of --host etc.
 
1132
# FIXME: To remove some day.
 
1133
build=$build_alias
 
1134
host=$host_alias
 
1135
target=$target_alias
 
1136
 
 
1137
# FIXME: To remove some day.
 
1138
if test "x$host_alias" != x; then
 
1139
  if test "x$build_alias" = x; then
 
1140
    cross_compiling=maybe
 
1141
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
 
1142
    If a cross compiler is detected then cross compile mode will be used." >&2
 
1143
  elif test "x$build_alias" != "x$host_alias"; then
 
1144
    cross_compiling=yes
 
1145
  fi
 
1146
fi
 
1147
 
 
1148
ac_tool_prefix=
 
1149
test -n "$host_alias" && ac_tool_prefix=$host_alias-
 
1150
 
 
1151
test "$silent" = yes && exec 6>/dev/null
 
1152
 
 
1153
 
 
1154
ac_pwd=`pwd` && test -n "$ac_pwd" &&
 
1155
ac_ls_di=`ls -di .` &&
 
1156
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 
1157
  { echo "$as_me: error: Working directory cannot be determined" >&2
 
1158
   { (exit 1); exit 1; }; }
 
1159
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 
1160
  { echo "$as_me: error: pwd does not report name of working directory" >&2
 
1161
   { (exit 1); exit 1; }; }
 
1162
 
 
1163
 
 
1164
# Find the source files, if location was not specified.
 
1165
if test -z "$srcdir"; then
 
1166
  ac_srcdir_defaulted=yes
 
1167
  # Try the directory containing this script, then the parent directory.
 
1168
  ac_confdir=`$as_dirname -- "$0" ||
 
1169
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
1170
         X"$0" : 'X\(//\)[^/]' \| \
 
1171
         X"$0" : 'X\(//\)$' \| \
 
1172
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
1173
echo X"$0" |
 
1174
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
1175
            s//\1/
 
1176
            q
 
1177
          }
 
1178
          /^X\(\/\/\)[^/].*/{
 
1179
            s//\1/
 
1180
            q
 
1181
          }
 
1182
          /^X\(\/\/\)$/{
 
1183
            s//\1/
 
1184
            q
 
1185
          }
 
1186
          /^X\(\/\).*/{
 
1187
            s//\1/
 
1188
            q
 
1189
          }
 
1190
          s/.*/./; q'`
 
1191
  srcdir=$ac_confdir
 
1192
  if test ! -r "$srcdir/$ac_unique_file"; then
 
1193
    srcdir=..
 
1194
  fi
 
1195
else
 
1196
  ac_srcdir_defaulted=no
 
1197
fi
 
1198
if test ! -r "$srcdir/$ac_unique_file"; then
 
1199
  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 
1200
  { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
 
1201
   { (exit 1); exit 1; }; }
 
1202
fi
 
1203
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 
1204
ac_abs_confdir=`(
 
1205
        cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
 
1206
   { (exit 1); exit 1; }; }
 
1207
        pwd)`
 
1208
# When building in place, set srcdir=.
 
1209
if test "$ac_abs_confdir" = "$ac_pwd"; then
 
1210
  srcdir=.
 
1211
fi
 
1212
# Remove unnecessary trailing slashes from srcdir.
 
1213
# Double slashes in file names in object file debugging info
 
1214
# mess up M-x gdb in Emacs.
 
1215
case $srcdir in
 
1216
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 
1217
esac
 
1218
for ac_var in $ac_precious_vars; do
 
1219
  eval ac_env_${ac_var}_set=\${${ac_var}+set}
 
1220
  eval ac_env_${ac_var}_value=\$${ac_var}
 
1221
  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 
1222
  eval ac_cv_env_${ac_var}_value=\$${ac_var}
 
1223
done
 
1224
 
 
1225
#
 
1226
# Report the --help message.
 
1227
#
 
1228
if test "$ac_init_help" = "long"; then
 
1229
  # Omit some internal or obsolete options to make the list less imposing.
 
1230
  # This message is too long to be a string in the A/UX 3.1 sh.
 
1231
  cat <<_ACEOF
 
1232
\`configure' configures procServ Process Server 2.5.0 to adapt to many kinds of systems.
 
1233
 
 
1234
Usage: $0 [OPTION]... [VAR=VALUE]...
 
1235
 
 
1236
To assign environment variables (e.g., CC, CFLAGS...), specify them as
 
1237
VAR=VALUE.  See below for descriptions of some of the useful variables.
 
1238
 
 
1239
Defaults for the options are specified in brackets.
 
1240
 
 
1241
Configuration:
 
1242
  -h, --help              display this help and exit
 
1243
      --help=short        display options specific to this package
 
1244
      --help=recursive    display the short help of all the included packages
 
1245
  -V, --version           display version information and exit
 
1246
  -q, --quiet, --silent   do not print \`checking...' messages
 
1247
      --cache-file=FILE   cache test results in FILE [disabled]
 
1248
  -C, --config-cache      alias for \`--cache-file=config.cache'
 
1249
  -n, --no-create         do not create output files
 
1250
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 
1251
 
 
1252
Installation directories:
 
1253
  --prefix=PREFIX         install architecture-independent files in PREFIX
 
1254
                          [$ac_default_prefix]
 
1255
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 
1256
                          [PREFIX]
 
1257
 
 
1258
By default, \`make install' will install all the files in
 
1259
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 
1260
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 
1261
for instance \`--prefix=\$HOME'.
 
1262
 
 
1263
For better control, use the options below.
 
1264
 
 
1265
Fine tuning of the installation directories:
 
1266
  --bindir=DIR           user executables [EPREFIX/bin]
 
1267
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
 
1268
  --libexecdir=DIR       program executables [EPREFIX/libexec]
 
1269
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
 
1270
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
 
1271
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
 
1272
  --libdir=DIR           object code libraries [EPREFIX/lib]
 
1273
  --includedir=DIR       C header files [PREFIX/include]
 
1274
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 
1275
  --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
 
1276
  --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
 
1277
  --infodir=DIR          info documentation [DATAROOTDIR/info]
 
1278
  --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
 
1279
  --mandir=DIR           man documentation [DATAROOTDIR/man]
 
1280
  --docdir=DIR           documentation root [DATAROOTDIR/doc/procServ]
 
1281
  --htmldir=DIR          html documentation [DOCDIR]
 
1282
  --dvidir=DIR           dvi documentation [DOCDIR]
 
1283
  --pdfdir=DIR           pdf documentation [DOCDIR]
 
1284
  --psdir=DIR            ps documentation [DOCDIR]
 
1285
_ACEOF
 
1286
 
 
1287
  cat <<\_ACEOF
 
1288
 
 
1289
Program names:
 
1290
  --program-prefix=PREFIX            prepend PREFIX to installed program names
 
1291
  --program-suffix=SUFFIX            append SUFFIX to installed program names
 
1292
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 
1293
_ACEOF
 
1294
fi
 
1295
 
 
1296
if test -n "$ac_init_help"; then
 
1297
  case $ac_init_help in
 
1298
     short | recursive ) echo "Configuration of procServ Process Server 2.5.0:";;
 
1299
   esac
 
1300
  cat <<\_ACEOF
 
1301
 
 
1302
Optional Features:
 
1303
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 
1304
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 
1305
  --disable-dependency-tracking  speeds up one-time build
 
1306
  --enable-dependency-tracking   do not reject slow dependency extractors
 
1307
  --enable-access-from-anywhere
 
1308
                          allow unauthenticated access from anywhere (CAVEAT:
 
1309
                          opens a security hole!!)
 
1310
  --enable-devel          Control build type: debug (enable), release
 
1311
                          (disable), default (none)
 
1312
  --disable-doc           Do not install documentation
 
1313
  --enable-doc            Build (and install) documentation
 
1314
 
 
1315
Optional Packages:
 
1316
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 
1317
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 
1318
  --with-epics-top=TOP    create Makefile for EPICS build system: relative
 
1319
                          path to TOP
 
1320
 
 
1321
Some influential environment variables:
 
1322
  CXX         C++ compiler command
 
1323
  CXXFLAGS    C++ compiler flags
 
1324
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
 
1325
              nonstandard directory <lib dir>
 
1326
  LIBS        libraries to pass to the linker, e.g. -l<library>
 
1327
  CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
 
1328
              you have headers in a nonstandard directory <include dir>
 
1329
  CC          C compiler command
 
1330
  CFLAGS      C compiler flags
 
1331
  CPP         C preprocessor
 
1332
 
 
1333
Use these variables to override the choices made by `configure' or to help
 
1334
it to find libraries and programs with nonstandard names/locations.
 
1335
 
 
1336
Report bugs to <tech-talk@aps.anl.gov>.
 
1337
_ACEOF
 
1338
ac_status=$?
 
1339
fi
 
1340
 
 
1341
if test "$ac_init_help" = "recursive"; then
 
1342
  # If there are subdirs, report their specific --help.
 
1343
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 
1344
    test -d "$ac_dir" || continue
 
1345
    ac_builddir=.
 
1346
 
 
1347
case "$ac_dir" in
 
1348
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1349
*)
 
1350
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
1351
  # A ".." for each directory in $ac_dir_suffix.
 
1352
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
1353
  case $ac_top_builddir_sub in
 
1354
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
1355
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
1356
  esac ;;
 
1357
esac
 
1358
ac_abs_top_builddir=$ac_pwd
 
1359
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
1360
# for backward compatibility:
 
1361
ac_top_builddir=$ac_top_build_prefix
 
1362
 
 
1363
case $srcdir in
 
1364
  .)  # We are building in place.
 
1365
    ac_srcdir=.
 
1366
    ac_top_srcdir=$ac_top_builddir_sub
 
1367
    ac_abs_top_srcdir=$ac_pwd ;;
 
1368
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
1369
    ac_srcdir=$srcdir$ac_dir_suffix;
 
1370
    ac_top_srcdir=$srcdir
 
1371
    ac_abs_top_srcdir=$srcdir ;;
 
1372
  *) # Relative name.
 
1373
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
1374
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
1375
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
1376
esac
 
1377
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
1378
 
 
1379
    cd "$ac_dir" || { ac_status=$?; continue; }
 
1380
    # Check for guested configure.
 
1381
    if test -f "$ac_srcdir/configure.gnu"; then
 
1382
      echo &&
 
1383
      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 
1384
    elif test -f "$ac_srcdir/configure"; then
 
1385
      echo &&
 
1386
      $SHELL "$ac_srcdir/configure" --help=recursive
 
1387
    else
 
1388
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 
1389
    fi || ac_status=$?
 
1390
    cd "$ac_pwd" || { ac_status=$?; break; }
 
1391
  done
 
1392
fi
 
1393
 
 
1394
test -n "$ac_init_help" && exit $ac_status
 
1395
if $ac_init_version; then
 
1396
  cat <<\_ACEOF
 
1397
procServ Process Server configure 2.5.0
 
1398
generated by GNU Autoconf 2.61
 
1399
 
 
1400
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
 
1401
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
1402
This configure script is free software; the Free Software Foundation
 
1403
gives unlimited permission to copy, distribute and modify it.
 
1404
_ACEOF
 
1405
  exit
 
1406
fi
 
1407
cat >config.log <<_ACEOF
 
1408
This file contains any messages produced by compilers while
 
1409
running configure, to aid debugging if configure makes a mistake.
 
1410
 
 
1411
It was created by procServ Process Server $as_me 2.5.0, which was
 
1412
generated by GNU Autoconf 2.61.  Invocation command line was
 
1413
 
 
1414
  $ $0 $@
 
1415
 
 
1416
_ACEOF
 
1417
exec 5>>config.log
 
1418
{
 
1419
cat <<_ASUNAME
 
1420
## --------- ##
 
1421
## Platform. ##
 
1422
## --------- ##
 
1423
 
 
1424
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 
1425
uname -m = `(uname -m) 2>/dev/null || echo unknown`
 
1426
uname -r = `(uname -r) 2>/dev/null || echo unknown`
 
1427
uname -s = `(uname -s) 2>/dev/null || echo unknown`
 
1428
uname -v = `(uname -v) 2>/dev/null || echo unknown`
 
1429
 
 
1430
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 
1431
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 
1432
 
 
1433
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 
1434
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 
1435
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 
1436
/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 
1437
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 
1438
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 
1439
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 
1440
 
 
1441
_ASUNAME
 
1442
 
 
1443
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1444
for as_dir in $PATH
 
1445
do
 
1446
  IFS=$as_save_IFS
 
1447
  test -z "$as_dir" && as_dir=.
 
1448
  echo "PATH: $as_dir"
 
1449
done
 
1450
IFS=$as_save_IFS
 
1451
 
 
1452
} >&5
 
1453
 
 
1454
cat >&5 <<_ACEOF
 
1455
 
 
1456
 
 
1457
## ----------- ##
 
1458
## Core tests. ##
 
1459
## ----------- ##
 
1460
 
 
1461
_ACEOF
 
1462
 
 
1463
 
 
1464
# Keep a trace of the command line.
 
1465
# Strip out --no-create and --no-recursion so they do not pile up.
 
1466
# Strip out --silent because we don't want to record it for future runs.
 
1467
# Also quote any args containing shell meta-characters.
 
1468
# Make two passes to allow for proper duplicate-argument suppression.
 
1469
ac_configure_args=
 
1470
ac_configure_args0=
 
1471
ac_configure_args1=
 
1472
ac_must_keep_next=false
 
1473
for ac_pass in 1 2
 
1474
do
 
1475
  for ac_arg
 
1476
  do
 
1477
    case $ac_arg in
 
1478
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 
1479
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
1480
    | -silent | --silent | --silen | --sile | --sil)
 
1481
      continue ;;
 
1482
    *\'*)
 
1483
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1484
    esac
 
1485
    case $ac_pass in
 
1486
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
 
1487
    2)
 
1488
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
 
1489
      if test $ac_must_keep_next = true; then
 
1490
        ac_must_keep_next=false # Got value, back to normal.
 
1491
      else
 
1492
        case $ac_arg in
 
1493
          *=* | --config-cache | -C | -disable-* | --disable-* \
 
1494
          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 
1495
          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 
1496
          | -with-* | --with-* | -without-* | --without-* | --x)
 
1497
            case "$ac_configure_args0 " in
 
1498
              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 
1499
            esac
 
1500
            ;;
 
1501
          -* ) ac_must_keep_next=true ;;
 
1502
        esac
 
1503
      fi
 
1504
      ac_configure_args="$ac_configure_args '$ac_arg'"
 
1505
      ;;
 
1506
    esac
 
1507
  done
 
1508
done
 
1509
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
 
1510
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
 
1511
 
 
1512
# When interrupted or exit'd, cleanup temporary files, and complete
 
1513
# config.log.  We remove comments because anyway the quotes in there
 
1514
# would cause problems or look ugly.
 
1515
# WARNING: Use '\'' to represent an apostrophe within the trap.
 
1516
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 
1517
trap 'exit_status=$?
 
1518
  # Save into config.log some information that might help in debugging.
 
1519
  {
 
1520
    echo
 
1521
 
 
1522
    cat <<\_ASBOX
 
1523
## ---------------- ##
 
1524
## Cache variables. ##
 
1525
## ---------------- ##
 
1526
_ASBOX
 
1527
    echo
 
1528
    # The following way of writing the cache mishandles newlines in values,
 
1529
(
 
1530
  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 
1531
    eval ac_val=\$$ac_var
 
1532
    case $ac_val in #(
 
1533
    *${as_nl}*)
 
1534
      case $ac_var in #(
 
1535
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
1536
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
1537
      esac
 
1538
      case $ac_var in #(
 
1539
      _ | IFS | as_nl) ;; #(
 
1540
      *) $as_unset $ac_var ;;
 
1541
      esac ;;
 
1542
    esac
 
1543
  done
 
1544
  (set) 2>&1 |
 
1545
    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 
1546
    *${as_nl}ac_space=\ *)
 
1547
      sed -n \
 
1548
        "s/'\''/'\''\\\\'\'''\''/g;
 
1549
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 
1550
      ;; #(
 
1551
    *)
 
1552
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
1553
      ;;
 
1554
    esac |
 
1555
    sort
 
1556
)
 
1557
    echo
 
1558
 
 
1559
    cat <<\_ASBOX
 
1560
## ----------------- ##
 
1561
## Output variables. ##
 
1562
## ----------------- ##
 
1563
_ASBOX
 
1564
    echo
 
1565
    for ac_var in $ac_subst_vars
 
1566
    do
 
1567
      eval ac_val=\$$ac_var
 
1568
      case $ac_val in
 
1569
      *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1570
      esac
 
1571
      echo "$ac_var='\''$ac_val'\''"
 
1572
    done | sort
 
1573
    echo
 
1574
 
 
1575
    if test -n "$ac_subst_files"; then
 
1576
      cat <<\_ASBOX
 
1577
## ------------------- ##
 
1578
## File substitutions. ##
 
1579
## ------------------- ##
 
1580
_ASBOX
 
1581
      echo
 
1582
      for ac_var in $ac_subst_files
 
1583
      do
 
1584
        eval ac_val=\$$ac_var
 
1585
        case $ac_val in
 
1586
        *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 
1587
        esac
 
1588
        echo "$ac_var='\''$ac_val'\''"
 
1589
      done | sort
 
1590
      echo
 
1591
    fi
 
1592
 
 
1593
    if test -s confdefs.h; then
 
1594
      cat <<\_ASBOX
 
1595
## ----------- ##
 
1596
## confdefs.h. ##
 
1597
## ----------- ##
 
1598
_ASBOX
 
1599
      echo
 
1600
      cat confdefs.h
 
1601
      echo
 
1602
    fi
 
1603
    test "$ac_signal" != 0 &&
 
1604
      echo "$as_me: caught signal $ac_signal"
 
1605
    echo "$as_me: exit $exit_status"
 
1606
  } >&5
 
1607
  rm -f core *.core core.conftest.* &&
 
1608
    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 
1609
    exit $exit_status
 
1610
' 0
 
1611
for ac_signal in 1 2 13 15; do
 
1612
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
 
1613
done
 
1614
ac_signal=0
 
1615
 
 
1616
# confdefs.h avoids OS command line length limits that DEFS can exceed.
 
1617
rm -f -r conftest* confdefs.h
 
1618
 
 
1619
# Predefined preprocessor variables.
 
1620
 
 
1621
cat >>confdefs.h <<_ACEOF
 
1622
#define PACKAGE_NAME "$PACKAGE_NAME"
 
1623
_ACEOF
 
1624
 
 
1625
 
 
1626
cat >>confdefs.h <<_ACEOF
 
1627
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 
1628
_ACEOF
 
1629
 
 
1630
 
 
1631
cat >>confdefs.h <<_ACEOF
 
1632
#define PACKAGE_VERSION "$PACKAGE_VERSION"
 
1633
_ACEOF
 
1634
 
 
1635
 
 
1636
cat >>confdefs.h <<_ACEOF
 
1637
#define PACKAGE_STRING "$PACKAGE_STRING"
 
1638
_ACEOF
 
1639
 
 
1640
 
 
1641
cat >>confdefs.h <<_ACEOF
 
1642
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 
1643
_ACEOF
 
1644
 
 
1645
 
 
1646
# Let the site file select an alternate cache file if it wants to.
 
1647
# Prefer explicitly selected file to automatically selected ones.
 
1648
if test -n "$CONFIG_SITE"; then
 
1649
  set x "$CONFIG_SITE"
 
1650
elif test "x$prefix" != xNONE; then
 
1651
  set x "$prefix/share/config.site" "$prefix/etc/config.site"
 
1652
else
 
1653
  set x "$ac_default_prefix/share/config.site" \
 
1654
        "$ac_default_prefix/etc/config.site"
 
1655
fi
 
1656
shift
 
1657
for ac_site_file
 
1658
do
 
1659
  if test -r "$ac_site_file"; then
 
1660
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
 
1661
echo "$as_me: loading site script $ac_site_file" >&6;}
 
1662
    sed 's/^/| /' "$ac_site_file" >&5
 
1663
    . "$ac_site_file"
 
1664
  fi
 
1665
done
 
1666
 
 
1667
if test -r "$cache_file"; then
 
1668
  # Some versions of bash will fail to source /dev/null (special
 
1669
  # files actually), so we avoid doing that.
 
1670
  if test -f "$cache_file"; then
 
1671
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
 
1672
echo "$as_me: loading cache $cache_file" >&6;}
 
1673
    case $cache_file in
 
1674
      [\\/]* | ?:[\\/]* ) . "$cache_file";;
 
1675
      *)                      . "./$cache_file";;
 
1676
    esac
 
1677
  fi
 
1678
else
 
1679
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
 
1680
echo "$as_me: creating cache $cache_file" >&6;}
 
1681
  >$cache_file
 
1682
fi
 
1683
 
 
1684
# Check that the precious variables saved in the cache have kept the same
 
1685
# value.
 
1686
ac_cache_corrupted=false
 
1687
for ac_var in $ac_precious_vars; do
 
1688
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
 
1689
  eval ac_new_set=\$ac_env_${ac_var}_set
 
1690
  eval ac_old_val=\$ac_cv_env_${ac_var}_value
 
1691
  eval ac_new_val=\$ac_env_${ac_var}_value
 
1692
  case $ac_old_set,$ac_new_set in
 
1693
    set,)
 
1694
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 
1695
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 
1696
      ac_cache_corrupted=: ;;
 
1697
    ,set)
 
1698
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
 
1699
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 
1700
      ac_cache_corrupted=: ;;
 
1701
    ,);;
 
1702
    *)
 
1703
      if test "x$ac_old_val" != "x$ac_new_val"; then
 
1704
        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
 
1705
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 
1706
        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
 
1707
echo "$as_me:   former value:  $ac_old_val" >&2;}
 
1708
        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
 
1709
echo "$as_me:   current value: $ac_new_val" >&2;}
 
1710
        ac_cache_corrupted=:
 
1711
      fi;;
 
1712
  esac
 
1713
  # Pass precious variables to config.status.
 
1714
  if test "$ac_new_set" = set; then
 
1715
    case $ac_new_val in
 
1716
    *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 
1717
    *) ac_arg=$ac_var=$ac_new_val ;;
 
1718
    esac
 
1719
    case " $ac_configure_args " in
 
1720
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 
1721
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
 
1722
    esac
 
1723
  fi
 
1724
done
 
1725
if $ac_cache_corrupted; then
 
1726
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
 
1727
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 
1728
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
 
1729
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
 
1730
   { (exit 1); exit 1; }; }
 
1731
fi
 
1732
 
 
1733
 
 
1734
 
 
1735
 
 
1736
 
 
1737
 
 
1738
 
 
1739
 
 
1740
 
 
1741
 
 
1742
 
 
1743
 
 
1744
 
 
1745
 
 
1746
 
 
1747
 
 
1748
 
 
1749
 
 
1750
 
 
1751
 
 
1752
 
 
1753
 
 
1754
 
 
1755
 
 
1756
 
 
1757
ac_ext=c
 
1758
ac_cpp='$CPP $CPPFLAGS'
 
1759
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
1760
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
1761
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
1762
 
 
1763
 
 
1764
PACKAGE_DATE=12/02/2009
 
1765
 
 
1766
 
 
1767
ac_aux_dir=
 
1768
for ac_dir in build-aux "$srcdir"/build-aux; do
 
1769
  if test -f "$ac_dir/install-sh"; then
 
1770
    ac_aux_dir=$ac_dir
 
1771
    ac_install_sh="$ac_aux_dir/install-sh -c"
 
1772
    break
 
1773
  elif test -f "$ac_dir/install.sh"; then
 
1774
    ac_aux_dir=$ac_dir
 
1775
    ac_install_sh="$ac_aux_dir/install.sh -c"
 
1776
    break
 
1777
  elif test -f "$ac_dir/shtool"; then
 
1778
    ac_aux_dir=$ac_dir
 
1779
    ac_install_sh="$ac_aux_dir/shtool install -c"
 
1780
    break
 
1781
  fi
 
1782
done
 
1783
if test -z "$ac_aux_dir"; then
 
1784
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
 
1785
echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
 
1786
   { (exit 1); exit 1; }; }
 
1787
fi
 
1788
 
 
1789
# These three variables are undocumented and unsupported,
 
1790
# and are intended to be withdrawn in a future Autoconf release.
 
1791
# They can cause serious problems if a builder's source tree is in a directory
 
1792
# whose full name contains unusual characters.
 
1793
ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 
1794
ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 
1795
ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 
1796
 
 
1797
 
 
1798
am__api_version='1.10'
 
1799
 
 
1800
# Find a good install program.  We prefer a C program (faster),
 
1801
# so one script is as good as another.  But avoid the broken or
 
1802
# incompatible versions:
 
1803
# SysV /etc/install, /usr/sbin/install
 
1804
# SunOS /usr/etc/install
 
1805
# IRIX /sbin/install
 
1806
# AIX /bin/install
 
1807
# AmigaOS /C/install, which installs bootblocks on floppy discs
 
1808
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 
1809
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
 
1810
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 
1811
# OS/2's system install, which has a completely different semantic
 
1812
# ./install, which can be erroneously created by make from ./install.sh.
 
1813
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 
1814
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
 
1815
if test -z "$INSTALL"; then
 
1816
if test "${ac_cv_path_install+set}" = set; then
 
1817
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1818
else
 
1819
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1820
for as_dir in $PATH
 
1821
do
 
1822
  IFS=$as_save_IFS
 
1823
  test -z "$as_dir" && as_dir=.
 
1824
  # Account for people who put trailing slashes in PATH elements.
 
1825
case $as_dir/ in
 
1826
  ./ | .// | /cC/* | \
 
1827
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 
1828
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 
1829
  /usr/ucb/* ) ;;
 
1830
  *)
 
1831
    # OSF1 and SCO ODT 3.0 have their own names for install.
 
1832
    # Don't use installbsd from OSF since it installs stuff as root
 
1833
    # by default.
 
1834
    for ac_prog in ginstall scoinst install; do
 
1835
      for ac_exec_ext in '' $ac_executable_extensions; do
 
1836
        if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
 
1837
          if test $ac_prog = install &&
 
1838
            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1839
            # AIX install.  It has an incompatible calling convention.
 
1840
            :
 
1841
          elif test $ac_prog = install &&
 
1842
            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 
1843
            # program-specific install script used by HP pwplus--don't use.
 
1844
            :
 
1845
          else
 
1846
            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 
1847
            break 3
 
1848
          fi
 
1849
        fi
 
1850
      done
 
1851
    done
 
1852
    ;;
 
1853
esac
 
1854
done
 
1855
IFS=$as_save_IFS
 
1856
 
 
1857
 
 
1858
fi
 
1859
  if test "${ac_cv_path_install+set}" = set; then
 
1860
    INSTALL=$ac_cv_path_install
 
1861
  else
 
1862
    # As a last resort, use the slow shell script.  Don't cache a
 
1863
    # value for INSTALL within a source directory, because that will
 
1864
    # break other packages using the cache if that directory is
 
1865
    # removed, or if the value is a relative name.
 
1866
    INSTALL=$ac_install_sh
 
1867
  fi
 
1868
fi
 
1869
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
 
1870
echo "${ECHO_T}$INSTALL" >&6; }
 
1871
 
 
1872
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 
1873
# It thinks the first close brace ends the variable substitution.
 
1874
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 
1875
 
 
1876
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 
1877
 
 
1878
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 
1879
 
 
1880
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 
1881
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
 
1882
# Just in case
 
1883
sleep 1
 
1884
echo timestamp > conftest.file
 
1885
# Do `set' in a subshell so we don't clobber the current shell's
 
1886
# arguments.  Must try -L first in case configure is actually a
 
1887
# symlink; some systems play weird games with the mod time of symlinks
 
1888
# (eg FreeBSD returns the mod time of the symlink's containing
 
1889
# directory).
 
1890
if (
 
1891
   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 
1892
   if test "$*" = "X"; then
 
1893
      # -L didn't work.
 
1894
      set X `ls -t $srcdir/configure conftest.file`
 
1895
   fi
 
1896
   rm -f conftest.file
 
1897
   if test "$*" != "X $srcdir/configure conftest.file" \
 
1898
      && test "$*" != "X conftest.file $srcdir/configure"; then
 
1899
 
 
1900
      # If neither matched, then we have a broken ls.  This can happen
 
1901
      # if, for instance, CONFIG_SHELL is bash and it inherits a
 
1902
      # broken ls alias from the environment.  This has actually
 
1903
      # happened.  Such a system could not be considered "sane".
 
1904
      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 
1905
alias in your environment" >&5
 
1906
echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 
1907
alias in your environment" >&2;}
 
1908
   { (exit 1); exit 1; }; }
 
1909
   fi
 
1910
 
 
1911
   test "$2" = conftest.file
 
1912
   )
 
1913
then
 
1914
   # Ok.
 
1915
   :
 
1916
else
 
1917
   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 
1918
Check your system clock" >&5
 
1919
echo "$as_me: error: newly created file is older than distributed files!
 
1920
Check your system clock" >&2;}
 
1921
   { (exit 1); exit 1; }; }
 
1922
fi
 
1923
{ echo "$as_me:$LINENO: result: yes" >&5
 
1924
echo "${ECHO_T}yes" >&6; }
 
1925
test "$program_prefix" != NONE &&
 
1926
  program_transform_name="s&^&$program_prefix&;$program_transform_name"
 
1927
# Use a double $ so make ignores it.
 
1928
test "$program_suffix" != NONE &&
 
1929
  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
 
1930
# Double any \ or $.  echo might interpret backslashes.
 
1931
# By default was `s,x,x', remove it if useless.
 
1932
cat <<\_ACEOF >conftest.sed
 
1933
s/[\\$]/&&/g;s/;s,x,x,$//
 
1934
_ACEOF
 
1935
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 
1936
rm -f conftest.sed
 
1937
 
 
1938
# expand $ac_aux_dir to an absolute path
 
1939
am_aux_dir=`cd $ac_aux_dir && pwd`
 
1940
 
 
1941
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 
1942
# Use eval to expand $SHELL
 
1943
if eval "$MISSING --run true"; then
 
1944
  am_missing_run="$MISSING --run "
 
1945
else
 
1946
  am_missing_run=
 
1947
  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 
1948
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 
1949
fi
 
1950
 
 
1951
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
 
1952
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
 
1953
if test -z "$MKDIR_P"; then
 
1954
  if test "${ac_cv_path_mkdir+set}" = set; then
 
1955
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
1956
else
 
1957
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
1958
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
 
1959
do
 
1960
  IFS=$as_save_IFS
 
1961
  test -z "$as_dir" && as_dir=.
 
1962
  for ac_prog in mkdir gmkdir; do
 
1963
         for ac_exec_ext in '' $ac_executable_extensions; do
 
1964
           { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
 
1965
           case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
 
1966
             'mkdir (GNU coreutils) '* | \
 
1967
             'mkdir (coreutils) '* | \
 
1968
             'mkdir (fileutils) '4.1*)
 
1969
               ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
 
1970
               break 3;;
 
1971
           esac
 
1972
         done
 
1973
       done
 
1974
done
 
1975
IFS=$as_save_IFS
 
1976
 
 
1977
fi
 
1978
 
 
1979
  if test "${ac_cv_path_mkdir+set}" = set; then
 
1980
    MKDIR_P="$ac_cv_path_mkdir -p"
 
1981
  else
 
1982
    # As a last resort, use the slow shell script.  Don't cache a
 
1983
    # value for MKDIR_P within a source directory, because that will
 
1984
    # break other packages using the cache if that directory is
 
1985
    # removed, or if the value is a relative name.
 
1986
    test -d ./--version && rmdir ./--version
 
1987
    MKDIR_P="$ac_install_sh -d"
 
1988
  fi
 
1989
fi
 
1990
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
 
1991
echo "${ECHO_T}$MKDIR_P" >&6; }
 
1992
 
 
1993
mkdir_p="$MKDIR_P"
 
1994
case $mkdir_p in
 
1995
  [\\/$]* | ?:[\\/]*) ;;
 
1996
  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
 
1997
esac
 
1998
 
 
1999
for ac_prog in gawk mawk nawk awk
 
2000
do
 
2001
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2002
set dummy $ac_prog; ac_word=$2
 
2003
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2004
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2005
if test "${ac_cv_prog_AWK+set}" = set; then
 
2006
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2007
else
 
2008
  if test -n "$AWK"; then
 
2009
  ac_cv_prog_AWK="$AWK" # Let the user override the test.
 
2010
else
 
2011
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2012
for as_dir in $PATH
 
2013
do
 
2014
  IFS=$as_save_IFS
 
2015
  test -z "$as_dir" && as_dir=.
 
2016
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2017
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2018
    ac_cv_prog_AWK="$ac_prog"
 
2019
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2020
    break 2
 
2021
  fi
 
2022
done
 
2023
done
 
2024
IFS=$as_save_IFS
 
2025
 
 
2026
fi
 
2027
fi
 
2028
AWK=$ac_cv_prog_AWK
 
2029
if test -n "$AWK"; then
 
2030
  { echo "$as_me:$LINENO: result: $AWK" >&5
 
2031
echo "${ECHO_T}$AWK" >&6; }
 
2032
else
 
2033
  { echo "$as_me:$LINENO: result: no" >&5
 
2034
echo "${ECHO_T}no" >&6; }
 
2035
fi
 
2036
 
 
2037
 
 
2038
  test -n "$AWK" && break
 
2039
done
 
2040
 
 
2041
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 
2042
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
 
2043
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 
2044
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
 
2045
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2046
else
 
2047
  cat >conftest.make <<\_ACEOF
 
2048
SHELL = /bin/sh
 
2049
all:
 
2050
        @echo '@@@%%%=$(MAKE)=@@@%%%'
 
2051
_ACEOF
 
2052
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 
2053
case `${MAKE-make} -f conftest.make 2>/dev/null` in
 
2054
  *@@@%%%=?*=@@@%%%*)
 
2055
    eval ac_cv_prog_make_${ac_make}_set=yes;;
 
2056
  *)
 
2057
    eval ac_cv_prog_make_${ac_make}_set=no;;
 
2058
esac
 
2059
rm -f conftest.make
 
2060
fi
 
2061
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 
2062
  { echo "$as_me:$LINENO: result: yes" >&5
 
2063
echo "${ECHO_T}yes" >&6; }
 
2064
  SET_MAKE=
 
2065
else
 
2066
  { echo "$as_me:$LINENO: result: no" >&5
 
2067
echo "${ECHO_T}no" >&6; }
 
2068
  SET_MAKE="MAKE=${MAKE-make}"
 
2069
fi
 
2070
 
 
2071
rm -rf .tst 2>/dev/null
 
2072
mkdir .tst 2>/dev/null
 
2073
if test -d .tst; then
 
2074
  am__leading_dot=.
 
2075
else
 
2076
  am__leading_dot=_
 
2077
fi
 
2078
rmdir .tst 2>/dev/null
 
2079
 
 
2080
if test "`cd $srcdir && pwd`" != "`pwd`"; then
 
2081
  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
 
2082
  # is not polluted with repeated "-I."
 
2083
  am__isrc=' -I$(srcdir)'
 
2084
  # test to see if srcdir already configured
 
2085
  if test -f $srcdir/config.status; then
 
2086
    { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 
2087
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 
2088
   { (exit 1); exit 1; }; }
 
2089
  fi
 
2090
fi
 
2091
 
 
2092
# test whether we have cygpath
 
2093
if test -z "$CYGPATH_W"; then
 
2094
  if (cygpath --version) >/dev/null 2>/dev/null; then
 
2095
    CYGPATH_W='cygpath -w'
 
2096
  else
 
2097
    CYGPATH_W=echo
 
2098
  fi
 
2099
fi
 
2100
 
 
2101
 
 
2102
# Define the identity of the package.
 
2103
 PACKAGE='procServ'
 
2104
 VERSION='2.5.0'
 
2105
 
 
2106
 
 
2107
cat >>confdefs.h <<_ACEOF
 
2108
#define PACKAGE "$PACKAGE"
 
2109
_ACEOF
 
2110
 
 
2111
 
 
2112
cat >>confdefs.h <<_ACEOF
 
2113
#define VERSION "$VERSION"
 
2114
_ACEOF
 
2115
 
 
2116
# Some tools Automake needs.
 
2117
 
 
2118
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 
2119
 
 
2120
 
 
2121
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 
2122
 
 
2123
 
 
2124
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 
2125
 
 
2126
 
 
2127
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 
2128
 
 
2129
 
 
2130
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 
2131
 
 
2132
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
 
2133
 
 
2134
# Installed binaries are usually stripped using `strip' when the user
 
2135
# run `make install-strip'.  However `strip' might not be the right
 
2136
# tool to use in cross-compilation environments, therefore Automake
 
2137
# will honor the `STRIP' environment variable to overrule this program.
 
2138
if test "$cross_compiling" != no; then
 
2139
  if test -n "$ac_tool_prefix"; then
 
2140
  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 
2141
set dummy ${ac_tool_prefix}strip; ac_word=$2
 
2142
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2143
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2144
if test "${ac_cv_prog_STRIP+set}" = set; then
 
2145
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2146
else
 
2147
  if test -n "$STRIP"; then
 
2148
  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 
2149
else
 
2150
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2151
for as_dir in $PATH
 
2152
do
 
2153
  IFS=$as_save_IFS
 
2154
  test -z "$as_dir" && as_dir=.
 
2155
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2156
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2157
    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 
2158
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2159
    break 2
 
2160
  fi
 
2161
done
 
2162
done
 
2163
IFS=$as_save_IFS
 
2164
 
 
2165
fi
 
2166
fi
 
2167
STRIP=$ac_cv_prog_STRIP
 
2168
if test -n "$STRIP"; then
 
2169
  { echo "$as_me:$LINENO: result: $STRIP" >&5
 
2170
echo "${ECHO_T}$STRIP" >&6; }
 
2171
else
 
2172
  { echo "$as_me:$LINENO: result: no" >&5
 
2173
echo "${ECHO_T}no" >&6; }
 
2174
fi
 
2175
 
 
2176
 
 
2177
fi
 
2178
if test -z "$ac_cv_prog_STRIP"; then
 
2179
  ac_ct_STRIP=$STRIP
 
2180
  # Extract the first word of "strip", so it can be a program name with args.
 
2181
set dummy strip; ac_word=$2
 
2182
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2184
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 
2185
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2186
else
 
2187
  if test -n "$ac_ct_STRIP"; then
 
2188
  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 
2189
else
 
2190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2191
for as_dir in $PATH
 
2192
do
 
2193
  IFS=$as_save_IFS
 
2194
  test -z "$as_dir" && as_dir=.
 
2195
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2197
    ac_cv_prog_ac_ct_STRIP="strip"
 
2198
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2199
    break 2
 
2200
  fi
 
2201
done
 
2202
done
 
2203
IFS=$as_save_IFS
 
2204
 
 
2205
fi
 
2206
fi
 
2207
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 
2208
if test -n "$ac_ct_STRIP"; then
 
2209
  { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 
2210
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
 
2211
else
 
2212
  { echo "$as_me:$LINENO: result: no" >&5
 
2213
echo "${ECHO_T}no" >&6; }
 
2214
fi
 
2215
 
 
2216
  if test "x$ac_ct_STRIP" = x; then
 
2217
    STRIP=":"
 
2218
  else
 
2219
    case $cross_compiling:$ac_tool_warned in
 
2220
yes:)
 
2221
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2222
whose name does not start with the host triplet.  If you think this
 
2223
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2224
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2225
whose name does not start with the host triplet.  If you think this
 
2226
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2227
ac_tool_warned=yes ;;
 
2228
esac
 
2229
    STRIP=$ac_ct_STRIP
 
2230
  fi
 
2231
else
 
2232
  STRIP="$ac_cv_prog_STRIP"
 
2233
fi
 
2234
 
 
2235
fi
 
2236
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
 
2237
 
 
2238
# We need awk for the "check" target.  The system "awk" is bad on
 
2239
# some platforms.
 
2240
# Always define AMTAR for backward compatibility.
 
2241
 
 
2242
AMTAR=${AMTAR-"${am_missing_run}tar"}
 
2243
 
 
2244
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 
2245
 
 
2246
 
 
2247
 
 
2248
 
 
2249
 
 
2250
 
 
2251
 
 
2252
# we don't need config.h for now
 
2253
#AC_CONFIG_HEADER([config.h])
 
2254
 
 
2255
CFLAGS="$CFLAGS -Wall"
 
2256
CXXFLAGS="$CXXFLAGS -Wall"
 
2257
 
 
2258
# Checks for programs.
 
2259
ac_ext=cpp
 
2260
ac_cpp='$CXXCPP $CPPFLAGS'
 
2261
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2262
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2263
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 
2264
if test -z "$CXX"; then
 
2265
  if test -n "$CCC"; then
 
2266
    CXX=$CCC
 
2267
  else
 
2268
    if test -n "$ac_tool_prefix"; then
 
2269
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2270
  do
 
2271
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
2272
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
2273
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2274
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2275
if test "${ac_cv_prog_CXX+set}" = set; then
 
2276
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2277
else
 
2278
  if test -n "$CXX"; then
 
2279
  ac_cv_prog_CXX="$CXX" # Let the user override the test.
 
2280
else
 
2281
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2282
for as_dir in $PATH
 
2283
do
 
2284
  IFS=$as_save_IFS
 
2285
  test -z "$as_dir" && as_dir=.
 
2286
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2287
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2288
    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 
2289
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2290
    break 2
 
2291
  fi
 
2292
done
 
2293
done
 
2294
IFS=$as_save_IFS
 
2295
 
 
2296
fi
 
2297
fi
 
2298
CXX=$ac_cv_prog_CXX
 
2299
if test -n "$CXX"; then
 
2300
  { echo "$as_me:$LINENO: result: $CXX" >&5
 
2301
echo "${ECHO_T}$CXX" >&6; }
 
2302
else
 
2303
  { echo "$as_me:$LINENO: result: no" >&5
 
2304
echo "${ECHO_T}no" >&6; }
 
2305
fi
 
2306
 
 
2307
 
 
2308
    test -n "$CXX" && break
 
2309
  done
 
2310
fi
 
2311
if test -z "$CXX"; then
 
2312
  ac_ct_CXX=$CXX
 
2313
  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
 
2314
do
 
2315
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
2316
set dummy $ac_prog; ac_word=$2
 
2317
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
2318
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
2319
if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 
2320
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2321
else
 
2322
  if test -n "$ac_ct_CXX"; then
 
2323
  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 
2324
else
 
2325
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
2326
for as_dir in $PATH
 
2327
do
 
2328
  IFS=$as_save_IFS
 
2329
  test -z "$as_dir" && as_dir=.
 
2330
  for ac_exec_ext in '' $ac_executable_extensions; do
 
2331
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
2332
    ac_cv_prog_ac_ct_CXX="$ac_prog"
 
2333
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
2334
    break 2
 
2335
  fi
 
2336
done
 
2337
done
 
2338
IFS=$as_save_IFS
 
2339
 
 
2340
fi
 
2341
fi
 
2342
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 
2343
if test -n "$ac_ct_CXX"; then
 
2344
  { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 
2345
echo "${ECHO_T}$ac_ct_CXX" >&6; }
 
2346
else
 
2347
  { echo "$as_me:$LINENO: result: no" >&5
 
2348
echo "${ECHO_T}no" >&6; }
 
2349
fi
 
2350
 
 
2351
 
 
2352
  test -n "$ac_ct_CXX" && break
 
2353
done
 
2354
 
 
2355
  if test "x$ac_ct_CXX" = x; then
 
2356
    CXX="g++"
 
2357
  else
 
2358
    case $cross_compiling:$ac_tool_warned in
 
2359
yes:)
 
2360
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
2361
whose name does not start with the host triplet.  If you think this
 
2362
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
2363
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
2364
whose name does not start with the host triplet.  If you think this
 
2365
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
2366
ac_tool_warned=yes ;;
 
2367
esac
 
2368
    CXX=$ac_ct_CXX
 
2369
  fi
 
2370
fi
 
2371
 
 
2372
  fi
 
2373
fi
 
2374
# Provide some information about the compiler.
 
2375
echo "$as_me:$LINENO: checking for C++ compiler version" >&5
 
2376
ac_compiler=`set X $ac_compile; echo $2`
 
2377
{ (ac_try="$ac_compiler --version >&5"
 
2378
case "(($ac_try" in
 
2379
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2380
  *) ac_try_echo=$ac_try;;
 
2381
esac
 
2382
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2383
  (eval "$ac_compiler --version >&5") 2>&5
 
2384
  ac_status=$?
 
2385
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2386
  (exit $ac_status); }
 
2387
{ (ac_try="$ac_compiler -v >&5"
 
2388
case "(($ac_try" in
 
2389
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2390
  *) ac_try_echo=$ac_try;;
 
2391
esac
 
2392
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2393
  (eval "$ac_compiler -v >&5") 2>&5
 
2394
  ac_status=$?
 
2395
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2396
  (exit $ac_status); }
 
2397
{ (ac_try="$ac_compiler -V >&5"
 
2398
case "(($ac_try" in
 
2399
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2400
  *) ac_try_echo=$ac_try;;
 
2401
esac
 
2402
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2403
  (eval "$ac_compiler -V >&5") 2>&5
 
2404
  ac_status=$?
 
2405
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2406
  (exit $ac_status); }
 
2407
 
 
2408
cat >conftest.$ac_ext <<_ACEOF
 
2409
/* confdefs.h.  */
 
2410
_ACEOF
 
2411
cat confdefs.h >>conftest.$ac_ext
 
2412
cat >>conftest.$ac_ext <<_ACEOF
 
2413
/* end confdefs.h.  */
 
2414
 
 
2415
int
 
2416
main ()
 
2417
{
 
2418
 
 
2419
  ;
 
2420
  return 0;
 
2421
}
 
2422
_ACEOF
 
2423
ac_clean_files_save=$ac_clean_files
 
2424
ac_clean_files="$ac_clean_files a.out a.exe b.out"
 
2425
# Try to create an executable without -o first, disregard a.out.
 
2426
# It will help us diagnose broken compilers, and finding out an intuition
 
2427
# of exeext.
 
2428
{ echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
 
2429
echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
 
2430
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 
2431
#
 
2432
# List of possible output files, starting from the most likely.
 
2433
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
 
2434
# only as a last resort.  b.out is created by i960 compilers.
 
2435
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
 
2436
#
 
2437
# The IRIX 6 linker writes into existing files which may not be
 
2438
# executable, retaining their permissions.  Remove them first so a
 
2439
# subsequent execution test works.
 
2440
ac_rmfiles=
 
2441
for ac_file in $ac_files
 
2442
do
 
2443
  case $ac_file in
 
2444
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2445
    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
 
2446
  esac
 
2447
done
 
2448
rm -f $ac_rmfiles
 
2449
 
 
2450
if { (ac_try="$ac_link_default"
 
2451
case "(($ac_try" in
 
2452
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2453
  *) ac_try_echo=$ac_try;;
 
2454
esac
 
2455
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2456
  (eval "$ac_link_default") 2>&5
 
2457
  ac_status=$?
 
2458
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2459
  (exit $ac_status); }; then
 
2460
  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
 
2461
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
 
2462
# in a Makefile.  We should not override ac_cv_exeext if it was cached,
 
2463
# so that the user can short-circuit this test for compilers unknown to
 
2464
# Autoconf.
 
2465
for ac_file in $ac_files ''
 
2466
do
 
2467
  test -f "$ac_file" || continue
 
2468
  case $ac_file in
 
2469
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
 
2470
        ;;
 
2471
    [ab].out )
 
2472
        # We found the default executable, but exeext='' is most
 
2473
        # certainly right.
 
2474
        break;;
 
2475
    *.* )
 
2476
        if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
 
2477
        then :; else
 
2478
           ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2479
        fi
 
2480
        # We set ac_cv_exeext here because the later test for it is not
 
2481
        # safe: cross compilers may not add the suffix if given an `-o'
 
2482
        # argument, so we may need to know it at that point already.
 
2483
        # Even if this section looks crufty: it has the advantage of
 
2484
        # actually working.
 
2485
        break;;
 
2486
    * )
 
2487
        break;;
 
2488
  esac
 
2489
done
 
2490
test "$ac_cv_exeext" = no && ac_cv_exeext=
 
2491
 
 
2492
else
 
2493
  ac_file=''
 
2494
fi
 
2495
 
 
2496
{ echo "$as_me:$LINENO: result: $ac_file" >&5
 
2497
echo "${ECHO_T}$ac_file" >&6; }
 
2498
if test -z "$ac_file"; then
 
2499
  echo "$as_me: failed program was:" >&5
 
2500
sed 's/^/| /' conftest.$ac_ext >&5
 
2501
 
 
2502
{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
 
2503
See \`config.log' for more details." >&5
 
2504
echo "$as_me: error: C++ compiler cannot create executables
 
2505
See \`config.log' for more details." >&2;}
 
2506
   { (exit 77); exit 77; }; }
 
2507
fi
 
2508
 
 
2509
ac_exeext=$ac_cv_exeext
 
2510
 
 
2511
# Check that the compiler produces executables we can run.  If not, either
 
2512
# the compiler is broken, or we cross compile.
 
2513
{ echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
 
2514
echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
 
2515
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 
2516
# If not cross compiling, check that we can run a simple program.
 
2517
if test "$cross_compiling" != yes; then
 
2518
  if { ac_try='./$ac_file'
 
2519
  { (case "(($ac_try" in
 
2520
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2521
  *) ac_try_echo=$ac_try;;
 
2522
esac
 
2523
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2524
  (eval "$ac_try") 2>&5
 
2525
  ac_status=$?
 
2526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2527
  (exit $ac_status); }; }; then
 
2528
    cross_compiling=no
 
2529
  else
 
2530
    if test "$cross_compiling" = maybe; then
 
2531
        cross_compiling=yes
 
2532
    else
 
2533
        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
 
2534
If you meant to cross compile, use \`--host'.
 
2535
See \`config.log' for more details." >&5
 
2536
echo "$as_me: error: cannot run C++ compiled programs.
 
2537
If you meant to cross compile, use \`--host'.
 
2538
See \`config.log' for more details." >&2;}
 
2539
   { (exit 1); exit 1; }; }
 
2540
    fi
 
2541
  fi
 
2542
fi
 
2543
{ echo "$as_me:$LINENO: result: yes" >&5
 
2544
echo "${ECHO_T}yes" >&6; }
 
2545
 
 
2546
rm -f a.out a.exe conftest$ac_cv_exeext b.out
 
2547
ac_clean_files=$ac_clean_files_save
 
2548
# Check that the compiler produces executables we can run.  If not, either
 
2549
# the compiler is broken, or we cross compile.
 
2550
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 
2551
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
 
2552
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
 
2553
echo "${ECHO_T}$cross_compiling" >&6; }
 
2554
 
 
2555
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
 
2556
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
 
2557
if { (ac_try="$ac_link"
 
2558
case "(($ac_try" in
 
2559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2560
  *) ac_try_echo=$ac_try;;
 
2561
esac
 
2562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2563
  (eval "$ac_link") 2>&5
 
2564
  ac_status=$?
 
2565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2566
  (exit $ac_status); }; then
 
2567
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
 
2568
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 
2569
# work properly (i.e., refer to `conftest.exe'), while it won't with
 
2570
# `rm'.
 
2571
for ac_file in conftest.exe conftest conftest.*; do
 
2572
  test -f "$ac_file" || continue
 
2573
  case $ac_file in
 
2574
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
 
2575
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 
2576
          break;;
 
2577
    * ) break;;
 
2578
  esac
 
2579
done
 
2580
else
 
2581
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 
2582
See \`config.log' for more details." >&5
 
2583
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 
2584
See \`config.log' for more details." >&2;}
 
2585
   { (exit 1); exit 1; }; }
 
2586
fi
 
2587
 
 
2588
rm -f conftest$ac_cv_exeext
 
2589
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 
2590
echo "${ECHO_T}$ac_cv_exeext" >&6; }
 
2591
 
 
2592
rm -f conftest.$ac_ext
 
2593
EXEEXT=$ac_cv_exeext
 
2594
ac_exeext=$EXEEXT
 
2595
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
 
2596
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
 
2597
if test "${ac_cv_objext+set}" = set; then
 
2598
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2599
else
 
2600
  cat >conftest.$ac_ext <<_ACEOF
 
2601
/* confdefs.h.  */
 
2602
_ACEOF
 
2603
cat confdefs.h >>conftest.$ac_ext
 
2604
cat >>conftest.$ac_ext <<_ACEOF
 
2605
/* end confdefs.h.  */
 
2606
 
 
2607
int
 
2608
main ()
 
2609
{
 
2610
 
 
2611
  ;
 
2612
  return 0;
 
2613
}
 
2614
_ACEOF
 
2615
rm -f conftest.o conftest.obj
 
2616
if { (ac_try="$ac_compile"
 
2617
case "(($ac_try" in
 
2618
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2619
  *) ac_try_echo=$ac_try;;
 
2620
esac
 
2621
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2622
  (eval "$ac_compile") 2>&5
 
2623
  ac_status=$?
 
2624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2625
  (exit $ac_status); }; then
 
2626
  for ac_file in conftest.o conftest.obj conftest.*; do
 
2627
  test -f "$ac_file" || continue;
 
2628
  case $ac_file in
 
2629
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
 
2630
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 
2631
       break;;
 
2632
  esac
 
2633
done
 
2634
else
 
2635
  echo "$as_me: failed program was:" >&5
 
2636
sed 's/^/| /' conftest.$ac_ext >&5
 
2637
 
 
2638
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 
2639
See \`config.log' for more details." >&5
 
2640
echo "$as_me: error: cannot compute suffix of object files: cannot compile
 
2641
See \`config.log' for more details." >&2;}
 
2642
   { (exit 1); exit 1; }; }
 
2643
fi
 
2644
 
 
2645
rm -f conftest.$ac_cv_objext conftest.$ac_ext
 
2646
fi
 
2647
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 
2648
echo "${ECHO_T}$ac_cv_objext" >&6; }
 
2649
OBJEXT=$ac_cv_objext
 
2650
ac_objext=$OBJEXT
 
2651
{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 
2652
echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
 
2653
if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 
2654
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2655
else
 
2656
  cat >conftest.$ac_ext <<_ACEOF
 
2657
/* confdefs.h.  */
 
2658
_ACEOF
 
2659
cat confdefs.h >>conftest.$ac_ext
 
2660
cat >>conftest.$ac_ext <<_ACEOF
 
2661
/* end confdefs.h.  */
 
2662
 
 
2663
int
 
2664
main ()
 
2665
{
 
2666
#ifndef __GNUC__
 
2667
       choke me
 
2668
#endif
 
2669
 
 
2670
  ;
 
2671
  return 0;
 
2672
}
 
2673
_ACEOF
 
2674
rm -f conftest.$ac_objext
 
2675
if { (ac_try="$ac_compile"
 
2676
case "(($ac_try" in
 
2677
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2678
  *) ac_try_echo=$ac_try;;
 
2679
esac
 
2680
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2681
  (eval "$ac_compile") 2>conftest.er1
 
2682
  ac_status=$?
 
2683
  grep -v '^ *+' conftest.er1 >conftest.err
 
2684
  rm -f conftest.er1
 
2685
  cat conftest.err >&5
 
2686
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2687
  (exit $ac_status); } && {
 
2688
         test -z "$ac_cxx_werror_flag" ||
 
2689
         test ! -s conftest.err
 
2690
       } && test -s conftest.$ac_objext; then
 
2691
  ac_compiler_gnu=yes
 
2692
else
 
2693
  echo "$as_me: failed program was:" >&5
 
2694
sed 's/^/| /' conftest.$ac_ext >&5
 
2695
 
 
2696
        ac_compiler_gnu=no
 
2697
fi
 
2698
 
 
2699
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2700
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 
2701
 
 
2702
fi
 
2703
{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 
2704
echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
 
2705
GXX=`test $ac_compiler_gnu = yes && echo yes`
 
2706
ac_test_CXXFLAGS=${CXXFLAGS+set}
 
2707
ac_save_CXXFLAGS=$CXXFLAGS
 
2708
{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 
2709
echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
 
2710
if test "${ac_cv_prog_cxx_g+set}" = set; then
 
2711
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2712
else
 
2713
  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
 
2714
   ac_cxx_werror_flag=yes
 
2715
   ac_cv_prog_cxx_g=no
 
2716
   CXXFLAGS="-g"
 
2717
   cat >conftest.$ac_ext <<_ACEOF
 
2718
/* confdefs.h.  */
 
2719
_ACEOF
 
2720
cat confdefs.h >>conftest.$ac_ext
 
2721
cat >>conftest.$ac_ext <<_ACEOF
 
2722
/* end confdefs.h.  */
 
2723
 
 
2724
int
 
2725
main ()
 
2726
{
 
2727
 
 
2728
  ;
 
2729
  return 0;
 
2730
}
 
2731
_ACEOF
 
2732
rm -f conftest.$ac_objext
 
2733
if { (ac_try="$ac_compile"
 
2734
case "(($ac_try" in
 
2735
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2736
  *) ac_try_echo=$ac_try;;
 
2737
esac
 
2738
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2739
  (eval "$ac_compile") 2>conftest.er1
 
2740
  ac_status=$?
 
2741
  grep -v '^ *+' conftest.er1 >conftest.err
 
2742
  rm -f conftest.er1
 
2743
  cat conftest.err >&5
 
2744
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2745
  (exit $ac_status); } && {
 
2746
         test -z "$ac_cxx_werror_flag" ||
 
2747
         test ! -s conftest.err
 
2748
       } && test -s conftest.$ac_objext; then
 
2749
  ac_cv_prog_cxx_g=yes
 
2750
else
 
2751
  echo "$as_me: failed program was:" >&5
 
2752
sed 's/^/| /' conftest.$ac_ext >&5
 
2753
 
 
2754
        CXXFLAGS=""
 
2755
      cat >conftest.$ac_ext <<_ACEOF
 
2756
/* confdefs.h.  */
 
2757
_ACEOF
 
2758
cat confdefs.h >>conftest.$ac_ext
 
2759
cat >>conftest.$ac_ext <<_ACEOF
 
2760
/* end confdefs.h.  */
 
2761
 
 
2762
int
 
2763
main ()
 
2764
{
 
2765
 
 
2766
  ;
 
2767
  return 0;
 
2768
}
 
2769
_ACEOF
 
2770
rm -f conftest.$ac_objext
 
2771
if { (ac_try="$ac_compile"
 
2772
case "(($ac_try" in
 
2773
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2774
  *) ac_try_echo=$ac_try;;
 
2775
esac
 
2776
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2777
  (eval "$ac_compile") 2>conftest.er1
 
2778
  ac_status=$?
 
2779
  grep -v '^ *+' conftest.er1 >conftest.err
 
2780
  rm -f conftest.er1
 
2781
  cat conftest.err >&5
 
2782
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2783
  (exit $ac_status); } && {
 
2784
         test -z "$ac_cxx_werror_flag" ||
 
2785
         test ! -s conftest.err
 
2786
       } && test -s conftest.$ac_objext; then
 
2787
  :
 
2788
else
 
2789
  echo "$as_me: failed program was:" >&5
 
2790
sed 's/^/| /' conftest.$ac_ext >&5
 
2791
 
 
2792
        ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
2793
         CXXFLAGS="-g"
 
2794
         cat >conftest.$ac_ext <<_ACEOF
 
2795
/* confdefs.h.  */
 
2796
_ACEOF
 
2797
cat confdefs.h >>conftest.$ac_ext
 
2798
cat >>conftest.$ac_ext <<_ACEOF
 
2799
/* end confdefs.h.  */
 
2800
 
 
2801
int
 
2802
main ()
 
2803
{
 
2804
 
 
2805
  ;
 
2806
  return 0;
 
2807
}
 
2808
_ACEOF
 
2809
rm -f conftest.$ac_objext
 
2810
if { (ac_try="$ac_compile"
 
2811
case "(($ac_try" in
 
2812
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
2813
  *) ac_try_echo=$ac_try;;
 
2814
esac
 
2815
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
2816
  (eval "$ac_compile") 2>conftest.er1
 
2817
  ac_status=$?
 
2818
  grep -v '^ *+' conftest.er1 >conftest.err
 
2819
  rm -f conftest.er1
 
2820
  cat conftest.err >&5
 
2821
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
2822
  (exit $ac_status); } && {
 
2823
         test -z "$ac_cxx_werror_flag" ||
 
2824
         test ! -s conftest.err
 
2825
       } && test -s conftest.$ac_objext; then
 
2826
  ac_cv_prog_cxx_g=yes
 
2827
else
 
2828
  echo "$as_me: failed program was:" >&5
 
2829
sed 's/^/| /' conftest.$ac_ext >&5
 
2830
 
 
2831
 
 
2832
fi
 
2833
 
 
2834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2835
fi
 
2836
 
 
2837
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2838
fi
 
2839
 
 
2840
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
2841
   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
 
2842
fi
 
2843
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 
2844
echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
 
2845
if test "$ac_test_CXXFLAGS" = set; then
 
2846
  CXXFLAGS=$ac_save_CXXFLAGS
 
2847
elif test $ac_cv_prog_cxx_g = yes; then
 
2848
  if test "$GXX" = yes; then
 
2849
    CXXFLAGS="-g -O2"
 
2850
  else
 
2851
    CXXFLAGS="-g"
 
2852
  fi
 
2853
else
 
2854
  if test "$GXX" = yes; then
 
2855
    CXXFLAGS="-O2"
 
2856
  else
 
2857
    CXXFLAGS=
 
2858
  fi
 
2859
fi
 
2860
ac_ext=c
 
2861
ac_cpp='$CPP $CPPFLAGS'
 
2862
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
2863
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
2864
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
2865
DEPDIR="${am__leading_dot}deps"
 
2866
 
 
2867
ac_config_commands="$ac_config_commands depfiles"
 
2868
 
 
2869
 
 
2870
am_make=${MAKE-make}
 
2871
cat > confinc << 'END'
 
2872
am__doit:
 
2873
        @echo done
 
2874
.PHONY: am__doit
 
2875
END
 
2876
# If we don't find an include directive, just comment out the code.
 
2877
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 
2878
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
 
2879
am__include="#"
 
2880
am__quote=
 
2881
_am_result=none
 
2882
# First try GNU make style include.
 
2883
echo "include confinc" > confmf
 
2884
# We grep out `Entering directory' and `Leaving directory'
 
2885
# messages which can occur if `w' ends up in MAKEFLAGS.
 
2886
# In particular we don't look at `^make:' because GNU make might
 
2887
# be invoked under some other name (usually "gmake"), in which
 
2888
# case it prints its new name instead of `make'.
 
2889
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 
2890
   am__include=include
 
2891
   am__quote=
 
2892
   _am_result=GNU
 
2893
fi
 
2894
# Now try BSD make style include.
 
2895
if test "$am__include" = "#"; then
 
2896
   echo '.include "confinc"' > confmf
 
2897
   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 
2898
      am__include=.include
 
2899
      am__quote="\""
 
2900
      _am_result=BSD
 
2901
   fi
 
2902
fi
 
2903
 
 
2904
 
 
2905
{ echo "$as_me:$LINENO: result: $_am_result" >&5
 
2906
echo "${ECHO_T}$_am_result" >&6; }
 
2907
rm -f confinc confmf
 
2908
 
 
2909
# Check whether --enable-dependency-tracking was given.
 
2910
if test "${enable_dependency_tracking+set}" = set; then
 
2911
  enableval=$enable_dependency_tracking;
 
2912
fi
 
2913
 
 
2914
if test "x$enable_dependency_tracking" != xno; then
 
2915
  am_depcomp="$ac_aux_dir/depcomp"
 
2916
  AMDEPBACKSLASH='\'
 
2917
fi
 
2918
 if test "x$enable_dependency_tracking" != xno; then
 
2919
  AMDEP_TRUE=
 
2920
  AMDEP_FALSE='#'
 
2921
else
 
2922
  AMDEP_TRUE='#'
 
2923
  AMDEP_FALSE=
 
2924
fi
 
2925
 
 
2926
 
 
2927
 
 
2928
depcc="$CXX"  am_compiler_list=
 
2929
 
 
2930
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
2931
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
2932
if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 
2933
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
2934
else
 
2935
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
2936
  # We make a subdir and do the tests there.  Otherwise we can end up
 
2937
  # making bogus files that we don't know about and never remove.  For
 
2938
  # instance it was reported that on HP-UX the gcc test will end up
 
2939
  # making a dummy file named `D' -- because `-MD' means `put the output
 
2940
  # in D'.
 
2941
  mkdir conftest.dir
 
2942
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
2943
  # using a relative directory.
 
2944
  cp "$am_depcomp" conftest.dir
 
2945
  cd conftest.dir
 
2946
  # We will build objects and dependencies in a subdirectory because
 
2947
  # it helps to detect inapplicable dependency modes.  For instance
 
2948
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
2949
  # side effect of compilation, but ICC will put the dependencies in
 
2950
  # the current directory while Tru64 will put them in the object
 
2951
  # directory.
 
2952
  mkdir sub
 
2953
 
 
2954
  am_cv_CXX_dependencies_compiler_type=none
 
2955
  if test "$am_compiler_list" = ""; then
 
2956
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
2957
  fi
 
2958
  for depmode in $am_compiler_list; do
 
2959
    # Setup a source with many dependencies, because some compilers
 
2960
    # like to wrap large dependency lists on column 80 (with \), and
 
2961
    # we should not choose a depcomp mode which is confused by this.
 
2962
    #
 
2963
    # We need to recreate these files for each test, as the compiler may
 
2964
    # overwrite some of them when testing with obscure command lines.
 
2965
    # This happens at least with the AIX C compiler.
 
2966
    : > sub/conftest.c
 
2967
    for i in 1 2 3 4 5 6; do
 
2968
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
2969
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
2970
      # Solaris 8's {/usr,}/bin/sh.
 
2971
      touch sub/conftst$i.h
 
2972
    done
 
2973
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
2974
 
 
2975
    case $depmode in
 
2976
    nosideeffect)
 
2977
      # after this tag, mechanisms are not by side-effect, so they'll
 
2978
      # only be used when explicitly requested
 
2979
      if test "x$enable_dependency_tracking" = xyes; then
 
2980
        continue
 
2981
      else
 
2982
        break
 
2983
      fi
 
2984
      ;;
 
2985
    none) break ;;
 
2986
    esac
 
2987
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
2988
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
2989
    # handle `-M -o', and we need to detect this.
 
2990
    if depmode=$depmode \
 
2991
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
2992
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
2993
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
2994
         >/dev/null 2>conftest.err &&
 
2995
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
2996
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
2997
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
2998
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
2999
      # icc doesn't choke on unknown options, it will just issue warnings
 
3000
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3001
      # that says an option was ignored or not supported.
 
3002
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3003
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3004
      # The diagnosis changed in icc 8.0:
 
3005
      #   icc: Command line remark: option '-MP' not supported
 
3006
      if (grep 'ignoring option' conftest.err ||
 
3007
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3008
        am_cv_CXX_dependencies_compiler_type=$depmode
 
3009
        break
 
3010
      fi
 
3011
    fi
 
3012
  done
 
3013
 
 
3014
  cd ..
 
3015
  rm -rf conftest.dir
 
3016
else
 
3017
  am_cv_CXX_dependencies_compiler_type=none
 
3018
fi
 
3019
 
 
3020
fi
 
3021
{ echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 
3022
echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
 
3023
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 
3024
 
 
3025
 if
 
3026
  test "x$enable_dependency_tracking" != xno \
 
3027
  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 
3028
  am__fastdepCXX_TRUE=
 
3029
  am__fastdepCXX_FALSE='#'
 
3030
else
 
3031
  am__fastdepCXX_TRUE='#'
 
3032
  am__fastdepCXX_FALSE=
 
3033
fi
 
3034
 
 
3035
 
 
3036
ac_ext=c
 
3037
ac_cpp='$CPP $CPPFLAGS'
 
3038
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3039
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3040
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3041
if test -n "$ac_tool_prefix"; then
 
3042
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 
3043
set dummy ${ac_tool_prefix}gcc; ac_word=$2
 
3044
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3045
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3046
if test "${ac_cv_prog_CC+set}" = set; then
 
3047
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3048
else
 
3049
  if test -n "$CC"; then
 
3050
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3051
else
 
3052
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3053
for as_dir in $PATH
 
3054
do
 
3055
  IFS=$as_save_IFS
 
3056
  test -z "$as_dir" && as_dir=.
 
3057
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3058
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3059
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
 
3060
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3061
    break 2
 
3062
  fi
 
3063
done
 
3064
done
 
3065
IFS=$as_save_IFS
 
3066
 
 
3067
fi
 
3068
fi
 
3069
CC=$ac_cv_prog_CC
 
3070
if test -n "$CC"; then
 
3071
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3072
echo "${ECHO_T}$CC" >&6; }
 
3073
else
 
3074
  { echo "$as_me:$LINENO: result: no" >&5
 
3075
echo "${ECHO_T}no" >&6; }
 
3076
fi
 
3077
 
 
3078
 
 
3079
fi
 
3080
if test -z "$ac_cv_prog_CC"; then
 
3081
  ac_ct_CC=$CC
 
3082
  # Extract the first word of "gcc", so it can be a program name with args.
 
3083
set dummy gcc; ac_word=$2
 
3084
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3085
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3086
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3087
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3088
else
 
3089
  if test -n "$ac_ct_CC"; then
 
3090
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3091
else
 
3092
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3093
for as_dir in $PATH
 
3094
do
 
3095
  IFS=$as_save_IFS
 
3096
  test -z "$as_dir" && as_dir=.
 
3097
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3098
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3099
    ac_cv_prog_ac_ct_CC="gcc"
 
3100
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3101
    break 2
 
3102
  fi
 
3103
done
 
3104
done
 
3105
IFS=$as_save_IFS
 
3106
 
 
3107
fi
 
3108
fi
 
3109
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3110
if test -n "$ac_ct_CC"; then
 
3111
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3112
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3113
else
 
3114
  { echo "$as_me:$LINENO: result: no" >&5
 
3115
echo "${ECHO_T}no" >&6; }
 
3116
fi
 
3117
 
 
3118
  if test "x$ac_ct_CC" = x; then
 
3119
    CC=""
 
3120
  else
 
3121
    case $cross_compiling:$ac_tool_warned in
 
3122
yes:)
 
3123
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3124
whose name does not start with the host triplet.  If you think this
 
3125
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3126
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3127
whose name does not start with the host triplet.  If you think this
 
3128
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3129
ac_tool_warned=yes ;;
 
3130
esac
 
3131
    CC=$ac_ct_CC
 
3132
  fi
 
3133
else
 
3134
  CC="$ac_cv_prog_CC"
 
3135
fi
 
3136
 
 
3137
if test -z "$CC"; then
 
3138
          if test -n "$ac_tool_prefix"; then
 
3139
    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 
3140
set dummy ${ac_tool_prefix}cc; ac_word=$2
 
3141
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3142
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3143
if test "${ac_cv_prog_CC+set}" = set; then
 
3144
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3145
else
 
3146
  if test -n "$CC"; then
 
3147
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3148
else
 
3149
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3150
for as_dir in $PATH
 
3151
do
 
3152
  IFS=$as_save_IFS
 
3153
  test -z "$as_dir" && as_dir=.
 
3154
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3155
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3156
    ac_cv_prog_CC="${ac_tool_prefix}cc"
 
3157
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3158
    break 2
 
3159
  fi
 
3160
done
 
3161
done
 
3162
IFS=$as_save_IFS
 
3163
 
 
3164
fi
 
3165
fi
 
3166
CC=$ac_cv_prog_CC
 
3167
if test -n "$CC"; then
 
3168
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3169
echo "${ECHO_T}$CC" >&6; }
 
3170
else
 
3171
  { echo "$as_me:$LINENO: result: no" >&5
 
3172
echo "${ECHO_T}no" >&6; }
 
3173
fi
 
3174
 
 
3175
 
 
3176
  fi
 
3177
fi
 
3178
if test -z "$CC"; then
 
3179
  # Extract the first word of "cc", so it can be a program name with args.
 
3180
set dummy cc; ac_word=$2
 
3181
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3182
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3183
if test "${ac_cv_prog_CC+set}" = set; then
 
3184
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3185
else
 
3186
  if test -n "$CC"; then
 
3187
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3188
else
 
3189
  ac_prog_rejected=no
 
3190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3191
for as_dir in $PATH
 
3192
do
 
3193
  IFS=$as_save_IFS
 
3194
  test -z "$as_dir" && as_dir=.
 
3195
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3196
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3197
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 
3198
       ac_prog_rejected=yes
 
3199
       continue
 
3200
     fi
 
3201
    ac_cv_prog_CC="cc"
 
3202
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3203
    break 2
 
3204
  fi
 
3205
done
 
3206
done
 
3207
IFS=$as_save_IFS
 
3208
 
 
3209
if test $ac_prog_rejected = yes; then
 
3210
  # We found a bogon in the path, so make sure we never use it.
 
3211
  set dummy $ac_cv_prog_CC
 
3212
  shift
 
3213
  if test $# != 0; then
 
3214
    # We chose a different compiler from the bogus one.
 
3215
    # However, it has the same basename, so the bogon will be chosen
 
3216
    # first if we set CC to just the basename; use the full file name.
 
3217
    shift
 
3218
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 
3219
  fi
 
3220
fi
 
3221
fi
 
3222
fi
 
3223
CC=$ac_cv_prog_CC
 
3224
if test -n "$CC"; then
 
3225
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3226
echo "${ECHO_T}$CC" >&6; }
 
3227
else
 
3228
  { echo "$as_me:$LINENO: result: no" >&5
 
3229
echo "${ECHO_T}no" >&6; }
 
3230
fi
 
3231
 
 
3232
 
 
3233
fi
 
3234
if test -z "$CC"; then
 
3235
  if test -n "$ac_tool_prefix"; then
 
3236
  for ac_prog in cl.exe
 
3237
  do
 
3238
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 
3239
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 
3240
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3241
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3242
if test "${ac_cv_prog_CC+set}" = set; then
 
3243
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3244
else
 
3245
  if test -n "$CC"; then
 
3246
  ac_cv_prog_CC="$CC" # Let the user override the test.
 
3247
else
 
3248
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3249
for as_dir in $PATH
 
3250
do
 
3251
  IFS=$as_save_IFS
 
3252
  test -z "$as_dir" && as_dir=.
 
3253
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3254
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3255
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 
3256
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3257
    break 2
 
3258
  fi
 
3259
done
 
3260
done
 
3261
IFS=$as_save_IFS
 
3262
 
 
3263
fi
 
3264
fi
 
3265
CC=$ac_cv_prog_CC
 
3266
if test -n "$CC"; then
 
3267
  { echo "$as_me:$LINENO: result: $CC" >&5
 
3268
echo "${ECHO_T}$CC" >&6; }
 
3269
else
 
3270
  { echo "$as_me:$LINENO: result: no" >&5
 
3271
echo "${ECHO_T}no" >&6; }
 
3272
fi
 
3273
 
 
3274
 
 
3275
    test -n "$CC" && break
 
3276
  done
 
3277
fi
 
3278
if test -z "$CC"; then
 
3279
  ac_ct_CC=$CC
 
3280
  for ac_prog in cl.exe
 
3281
do
 
3282
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
3283
set dummy $ac_prog; ac_word=$2
 
3284
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
3285
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
3286
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 
3287
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3288
else
 
3289
  if test -n "$ac_ct_CC"; then
 
3290
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 
3291
else
 
3292
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
3293
for as_dir in $PATH
 
3294
do
 
3295
  IFS=$as_save_IFS
 
3296
  test -z "$as_dir" && as_dir=.
 
3297
  for ac_exec_ext in '' $ac_executable_extensions; do
 
3298
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
3299
    ac_cv_prog_ac_ct_CC="$ac_prog"
 
3300
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
3301
    break 2
 
3302
  fi
 
3303
done
 
3304
done
 
3305
IFS=$as_save_IFS
 
3306
 
 
3307
fi
 
3308
fi
 
3309
ac_ct_CC=$ac_cv_prog_ac_ct_CC
 
3310
if test -n "$ac_ct_CC"; then
 
3311
  { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 
3312
echo "${ECHO_T}$ac_ct_CC" >&6; }
 
3313
else
 
3314
  { echo "$as_me:$LINENO: result: no" >&5
 
3315
echo "${ECHO_T}no" >&6; }
 
3316
fi
 
3317
 
 
3318
 
 
3319
  test -n "$ac_ct_CC" && break
 
3320
done
 
3321
 
 
3322
  if test "x$ac_ct_CC" = x; then
 
3323
    CC=""
 
3324
  else
 
3325
    case $cross_compiling:$ac_tool_warned in
 
3326
yes:)
 
3327
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
 
3328
whose name does not start with the host triplet.  If you think this
 
3329
configuration is useful to you, please write to autoconf@gnu.org." >&5
 
3330
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
 
3331
whose name does not start with the host triplet.  If you think this
 
3332
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
 
3333
ac_tool_warned=yes ;;
 
3334
esac
 
3335
    CC=$ac_ct_CC
 
3336
  fi
 
3337
fi
 
3338
 
 
3339
fi
 
3340
 
 
3341
 
 
3342
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 
3343
See \`config.log' for more details." >&5
 
3344
echo "$as_me: error: no acceptable C compiler found in \$PATH
 
3345
See \`config.log' for more details." >&2;}
 
3346
   { (exit 1); exit 1; }; }
 
3347
 
 
3348
# Provide some information about the compiler.
 
3349
echo "$as_me:$LINENO: checking for C compiler version" >&5
 
3350
ac_compiler=`set X $ac_compile; echo $2`
 
3351
{ (ac_try="$ac_compiler --version >&5"
 
3352
case "(($ac_try" in
 
3353
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3354
  *) ac_try_echo=$ac_try;;
 
3355
esac
 
3356
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3357
  (eval "$ac_compiler --version >&5") 2>&5
 
3358
  ac_status=$?
 
3359
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3360
  (exit $ac_status); }
 
3361
{ (ac_try="$ac_compiler -v >&5"
 
3362
case "(($ac_try" in
 
3363
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3364
  *) ac_try_echo=$ac_try;;
 
3365
esac
 
3366
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3367
  (eval "$ac_compiler -v >&5") 2>&5
 
3368
  ac_status=$?
 
3369
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3370
  (exit $ac_status); }
 
3371
{ (ac_try="$ac_compiler -V >&5"
 
3372
case "(($ac_try" in
 
3373
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3374
  *) ac_try_echo=$ac_try;;
 
3375
esac
 
3376
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3377
  (eval "$ac_compiler -V >&5") 2>&5
 
3378
  ac_status=$?
 
3379
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3380
  (exit $ac_status); }
 
3381
 
 
3382
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 
3383
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
 
3384
if test "${ac_cv_c_compiler_gnu+set}" = set; then
 
3385
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3386
else
 
3387
  cat >conftest.$ac_ext <<_ACEOF
 
3388
/* confdefs.h.  */
 
3389
_ACEOF
 
3390
cat confdefs.h >>conftest.$ac_ext
 
3391
cat >>conftest.$ac_ext <<_ACEOF
 
3392
/* end confdefs.h.  */
 
3393
 
 
3394
int
 
3395
main ()
 
3396
{
 
3397
#ifndef __GNUC__
 
3398
       choke me
 
3399
#endif
 
3400
 
 
3401
  ;
 
3402
  return 0;
 
3403
}
 
3404
_ACEOF
 
3405
rm -f conftest.$ac_objext
 
3406
if { (ac_try="$ac_compile"
 
3407
case "(($ac_try" in
 
3408
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3409
  *) ac_try_echo=$ac_try;;
 
3410
esac
 
3411
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3412
  (eval "$ac_compile") 2>conftest.er1
 
3413
  ac_status=$?
 
3414
  grep -v '^ *+' conftest.er1 >conftest.err
 
3415
  rm -f conftest.er1
 
3416
  cat conftest.err >&5
 
3417
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3418
  (exit $ac_status); } && {
 
3419
         test -z "$ac_c_werror_flag" ||
 
3420
         test ! -s conftest.err
 
3421
       } && test -s conftest.$ac_objext; then
 
3422
  ac_compiler_gnu=yes
 
3423
else
 
3424
  echo "$as_me: failed program was:" >&5
 
3425
sed 's/^/| /' conftest.$ac_ext >&5
 
3426
 
 
3427
        ac_compiler_gnu=no
 
3428
fi
 
3429
 
 
3430
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3431
ac_cv_c_compiler_gnu=$ac_compiler_gnu
 
3432
 
 
3433
fi
 
3434
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 
3435
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
 
3436
GCC=`test $ac_compiler_gnu = yes && echo yes`
 
3437
ac_test_CFLAGS=${CFLAGS+set}
 
3438
ac_save_CFLAGS=$CFLAGS
 
3439
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 
3440
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
 
3441
if test "${ac_cv_prog_cc_g+set}" = set; then
 
3442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3443
else
 
3444
  ac_save_c_werror_flag=$ac_c_werror_flag
 
3445
   ac_c_werror_flag=yes
 
3446
   ac_cv_prog_cc_g=no
 
3447
   CFLAGS="-g"
 
3448
   cat >conftest.$ac_ext <<_ACEOF
 
3449
/* confdefs.h.  */
 
3450
_ACEOF
 
3451
cat confdefs.h >>conftest.$ac_ext
 
3452
cat >>conftest.$ac_ext <<_ACEOF
 
3453
/* end confdefs.h.  */
 
3454
 
 
3455
int
 
3456
main ()
 
3457
{
 
3458
 
 
3459
  ;
 
3460
  return 0;
 
3461
}
 
3462
_ACEOF
 
3463
rm -f conftest.$ac_objext
 
3464
if { (ac_try="$ac_compile"
 
3465
case "(($ac_try" in
 
3466
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3467
  *) ac_try_echo=$ac_try;;
 
3468
esac
 
3469
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3470
  (eval "$ac_compile") 2>conftest.er1
 
3471
  ac_status=$?
 
3472
  grep -v '^ *+' conftest.er1 >conftest.err
 
3473
  rm -f conftest.er1
 
3474
  cat conftest.err >&5
 
3475
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3476
  (exit $ac_status); } && {
 
3477
         test -z "$ac_c_werror_flag" ||
 
3478
         test ! -s conftest.err
 
3479
       } && test -s conftest.$ac_objext; then
 
3480
  ac_cv_prog_cc_g=yes
 
3481
else
 
3482
  echo "$as_me: failed program was:" >&5
 
3483
sed 's/^/| /' conftest.$ac_ext >&5
 
3484
 
 
3485
        CFLAGS=""
 
3486
      cat >conftest.$ac_ext <<_ACEOF
 
3487
/* confdefs.h.  */
 
3488
_ACEOF
 
3489
cat confdefs.h >>conftest.$ac_ext
 
3490
cat >>conftest.$ac_ext <<_ACEOF
 
3491
/* end confdefs.h.  */
 
3492
 
 
3493
int
 
3494
main ()
 
3495
{
 
3496
 
 
3497
  ;
 
3498
  return 0;
 
3499
}
 
3500
_ACEOF
 
3501
rm -f conftest.$ac_objext
 
3502
if { (ac_try="$ac_compile"
 
3503
case "(($ac_try" in
 
3504
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3505
  *) ac_try_echo=$ac_try;;
 
3506
esac
 
3507
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3508
  (eval "$ac_compile") 2>conftest.er1
 
3509
  ac_status=$?
 
3510
  grep -v '^ *+' conftest.er1 >conftest.err
 
3511
  rm -f conftest.er1
 
3512
  cat conftest.err >&5
 
3513
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3514
  (exit $ac_status); } && {
 
3515
         test -z "$ac_c_werror_flag" ||
 
3516
         test ! -s conftest.err
 
3517
       } && test -s conftest.$ac_objext; then
 
3518
  :
 
3519
else
 
3520
  echo "$as_me: failed program was:" >&5
 
3521
sed 's/^/| /' conftest.$ac_ext >&5
 
3522
 
 
3523
        ac_c_werror_flag=$ac_save_c_werror_flag
 
3524
         CFLAGS="-g"
 
3525
         cat >conftest.$ac_ext <<_ACEOF
 
3526
/* confdefs.h.  */
 
3527
_ACEOF
 
3528
cat confdefs.h >>conftest.$ac_ext
 
3529
cat >>conftest.$ac_ext <<_ACEOF
 
3530
/* end confdefs.h.  */
 
3531
 
 
3532
int
 
3533
main ()
 
3534
{
 
3535
 
 
3536
  ;
 
3537
  return 0;
 
3538
}
 
3539
_ACEOF
 
3540
rm -f conftest.$ac_objext
 
3541
if { (ac_try="$ac_compile"
 
3542
case "(($ac_try" in
 
3543
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3544
  *) ac_try_echo=$ac_try;;
 
3545
esac
 
3546
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3547
  (eval "$ac_compile") 2>conftest.er1
 
3548
  ac_status=$?
 
3549
  grep -v '^ *+' conftest.er1 >conftest.err
 
3550
  rm -f conftest.er1
 
3551
  cat conftest.err >&5
 
3552
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3553
  (exit $ac_status); } && {
 
3554
         test -z "$ac_c_werror_flag" ||
 
3555
         test ! -s conftest.err
 
3556
       } && test -s conftest.$ac_objext; then
 
3557
  ac_cv_prog_cc_g=yes
 
3558
else
 
3559
  echo "$as_me: failed program was:" >&5
 
3560
sed 's/^/| /' conftest.$ac_ext >&5
 
3561
 
 
3562
 
 
3563
fi
 
3564
 
 
3565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3566
fi
 
3567
 
 
3568
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3569
fi
 
3570
 
 
3571
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
3572
   ac_c_werror_flag=$ac_save_c_werror_flag
 
3573
fi
 
3574
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 
3575
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
 
3576
if test "$ac_test_CFLAGS" = set; then
 
3577
  CFLAGS=$ac_save_CFLAGS
 
3578
elif test $ac_cv_prog_cc_g = yes; then
 
3579
  if test "$GCC" = yes; then
 
3580
    CFLAGS="-g -O2"
 
3581
  else
 
3582
    CFLAGS="-g"
 
3583
  fi
 
3584
else
 
3585
  if test "$GCC" = yes; then
 
3586
    CFLAGS="-O2"
 
3587
  else
 
3588
    CFLAGS=
 
3589
  fi
 
3590
fi
 
3591
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
 
3592
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
 
3593
if test "${ac_cv_prog_cc_c89+set}" = set; then
 
3594
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3595
else
 
3596
  ac_cv_prog_cc_c89=no
 
3597
ac_save_CC=$CC
 
3598
cat >conftest.$ac_ext <<_ACEOF
 
3599
/* confdefs.h.  */
 
3600
_ACEOF
 
3601
cat confdefs.h >>conftest.$ac_ext
 
3602
cat >>conftest.$ac_ext <<_ACEOF
 
3603
/* end confdefs.h.  */
 
3604
#include <stdarg.h>
 
3605
#include <stdio.h>
 
3606
#include <sys/types.h>
 
3607
#include <sys/stat.h>
 
3608
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 
3609
struct buf { int x; };
 
3610
FILE * (*rcsopen) (struct buf *, struct stat *, int);
 
3611
static char *e (p, i)
 
3612
     char **p;
 
3613
     int i;
 
3614
{
 
3615
  return p[i];
 
3616
}
 
3617
static char *f (char * (*g) (char **, int), char **p, ...)
 
3618
{
 
3619
  char *s;
 
3620
  va_list v;
 
3621
  va_start (v,p);
 
3622
  s = g (p, va_arg (v,int));
 
3623
  va_end (v);
 
3624
  return s;
 
3625
}
 
3626
 
 
3627
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 
3628
   function prototypes and stuff, but not '\xHH' hex character constants.
 
3629
   These don't provoke an error unfortunately, instead are silently treated
 
3630
   as 'x'.  The following induces an error, until -std is added to get
 
3631
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 
3632
   array size at least.  It's necessary to write '\x00'==0 to get something
 
3633
   that's true only with -std.  */
 
3634
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 
3635
 
 
3636
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
 
3637
   inside strings and character constants.  */
 
3638
#define FOO(x) 'x'
 
3639
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
 
3640
 
 
3641
int test (int i, double x);
 
3642
struct s1 {int (*f) (int a);};
 
3643
struct s2 {int (*f) (double a);};
 
3644
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 
3645
int argc;
 
3646
char **argv;
 
3647
int
 
3648
main ()
 
3649
{
 
3650
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 
3651
  ;
 
3652
  return 0;
 
3653
}
 
3654
_ACEOF
 
3655
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
 
3656
        -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 
3657
do
 
3658
  CC="$ac_save_CC $ac_arg"
 
3659
  rm -f conftest.$ac_objext
 
3660
if { (ac_try="$ac_compile"
 
3661
case "(($ac_try" in
 
3662
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3663
  *) ac_try_echo=$ac_try;;
 
3664
esac
 
3665
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3666
  (eval "$ac_compile") 2>conftest.er1
 
3667
  ac_status=$?
 
3668
  grep -v '^ *+' conftest.er1 >conftest.err
 
3669
  rm -f conftest.er1
 
3670
  cat conftest.err >&5
 
3671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3672
  (exit $ac_status); } && {
 
3673
         test -z "$ac_c_werror_flag" ||
 
3674
         test ! -s conftest.err
 
3675
       } && test -s conftest.$ac_objext; then
 
3676
  ac_cv_prog_cc_c89=$ac_arg
 
3677
else
 
3678
  echo "$as_me: failed program was:" >&5
 
3679
sed 's/^/| /' conftest.$ac_ext >&5
 
3680
 
 
3681
 
 
3682
fi
 
3683
 
 
3684
rm -f core conftest.err conftest.$ac_objext
 
3685
  test "x$ac_cv_prog_cc_c89" != "xno" && break
 
3686
done
 
3687
rm -f conftest.$ac_ext
 
3688
CC=$ac_save_CC
 
3689
 
 
3690
fi
 
3691
# AC_CACHE_VAL
 
3692
case "x$ac_cv_prog_cc_c89" in
 
3693
  x)
 
3694
    { echo "$as_me:$LINENO: result: none needed" >&5
 
3695
echo "${ECHO_T}none needed" >&6; } ;;
 
3696
  xno)
 
3697
    { echo "$as_me:$LINENO: result: unsupported" >&5
 
3698
echo "${ECHO_T}unsupported" >&6; } ;;
 
3699
  *)
 
3700
    CC="$CC $ac_cv_prog_cc_c89"
 
3701
    { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
 
3702
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
 
3703
esac
 
3704
 
 
3705
 
 
3706
ac_ext=c
 
3707
ac_cpp='$CPP $CPPFLAGS'
 
3708
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3709
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3710
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3711
 
 
3712
depcc="$CC"   am_compiler_list=
 
3713
 
 
3714
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 
3715
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
 
3716
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 
3717
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3718
else
 
3719
  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 
3720
  # We make a subdir and do the tests there.  Otherwise we can end up
 
3721
  # making bogus files that we don't know about and never remove.  For
 
3722
  # instance it was reported that on HP-UX the gcc test will end up
 
3723
  # making a dummy file named `D' -- because `-MD' means `put the output
 
3724
  # in D'.
 
3725
  mkdir conftest.dir
 
3726
  # Copy depcomp to subdir because otherwise we won't find it if we're
 
3727
  # using a relative directory.
 
3728
  cp "$am_depcomp" conftest.dir
 
3729
  cd conftest.dir
 
3730
  # We will build objects and dependencies in a subdirectory because
 
3731
  # it helps to detect inapplicable dependency modes.  For instance
 
3732
  # both Tru64's cc and ICC support -MD to output dependencies as a
 
3733
  # side effect of compilation, but ICC will put the dependencies in
 
3734
  # the current directory while Tru64 will put them in the object
 
3735
  # directory.
 
3736
  mkdir sub
 
3737
 
 
3738
  am_cv_CC_dependencies_compiler_type=none
 
3739
  if test "$am_compiler_list" = ""; then
 
3740
     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 
3741
  fi
 
3742
  for depmode in $am_compiler_list; do
 
3743
    # Setup a source with many dependencies, because some compilers
 
3744
    # like to wrap large dependency lists on column 80 (with \), and
 
3745
    # we should not choose a depcomp mode which is confused by this.
 
3746
    #
 
3747
    # We need to recreate these files for each test, as the compiler may
 
3748
    # overwrite some of them when testing with obscure command lines.
 
3749
    # This happens at least with the AIX C compiler.
 
3750
    : > sub/conftest.c
 
3751
    for i in 1 2 3 4 5 6; do
 
3752
      echo '#include "conftst'$i'.h"' >> sub/conftest.c
 
3753
      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 
3754
      # Solaris 8's {/usr,}/bin/sh.
 
3755
      touch sub/conftst$i.h
 
3756
    done
 
3757
    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 
3758
 
 
3759
    case $depmode in
 
3760
    nosideeffect)
 
3761
      # after this tag, mechanisms are not by side-effect, so they'll
 
3762
      # only be used when explicitly requested
 
3763
      if test "x$enable_dependency_tracking" = xyes; then
 
3764
        continue
 
3765
      else
 
3766
        break
 
3767
      fi
 
3768
      ;;
 
3769
    none) break ;;
 
3770
    esac
 
3771
    # We check with `-c' and `-o' for the sake of the "dashmstdout"
 
3772
    # mode.  It turns out that the SunPro C++ compiler does not properly
 
3773
    # handle `-M -o', and we need to detect this.
 
3774
    if depmode=$depmode \
 
3775
       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 
3776
       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 
3777
       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 
3778
         >/dev/null 2>conftest.err &&
 
3779
       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
 
3780
       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 
3781
       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 
3782
       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 
3783
      # icc doesn't choke on unknown options, it will just issue warnings
 
3784
      # or remarks (even with -Werror).  So we grep stderr for any message
 
3785
      # that says an option was ignored or not supported.
 
3786
      # When given -MP, icc 7.0 and 7.1 complain thusly:
 
3787
      #   icc: Command line warning: ignoring option '-M'; no argument required
 
3788
      # The diagnosis changed in icc 8.0:
 
3789
      #   icc: Command line remark: option '-MP' not supported
 
3790
      if (grep 'ignoring option' conftest.err ||
 
3791
          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 
3792
        am_cv_CC_dependencies_compiler_type=$depmode
 
3793
        break
 
3794
      fi
 
3795
    fi
 
3796
  done
 
3797
 
 
3798
  cd ..
 
3799
  rm -rf conftest.dir
 
3800
else
 
3801
  am_cv_CC_dependencies_compiler_type=none
 
3802
fi
 
3803
 
 
3804
fi
 
3805
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 
3806
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
 
3807
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 
3808
 
 
3809
 if
 
3810
  test "x$enable_dependency_tracking" != xno \
 
3811
  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 
3812
  am__fastdepCC_TRUE=
 
3813
  am__fastdepCC_FALSE='#'
 
3814
else
 
3815
  am__fastdepCC_TRUE='#'
 
3816
  am__fastdepCC_FALSE=
 
3817
fi
 
3818
 
 
3819
 
 
3820
 
 
3821
# Checks for libraries.
 
3822
 
 
3823
 
 
3824
{ echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5
 
3825
echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; }
 
3826
if test "${ac_cv_lib_util_forkpty+set}" = set; then
 
3827
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3828
else
 
3829
  ac_check_lib_save_LIBS=$LIBS
 
3830
LIBS="-lutil  $LIBS"
 
3831
cat >conftest.$ac_ext <<_ACEOF
 
3832
/* confdefs.h.  */
 
3833
_ACEOF
 
3834
cat confdefs.h >>conftest.$ac_ext
 
3835
cat >>conftest.$ac_ext <<_ACEOF
 
3836
/* end confdefs.h.  */
 
3837
 
 
3838
/* Override any GCC internal prototype to avoid an error.
 
3839
   Use char because int might match the return type of a GCC
 
3840
   builtin and then its argument prototype would still apply.  */
 
3841
#ifdef __cplusplus
 
3842
extern "C"
 
3843
#endif
 
3844
char forkpty ();
 
3845
int
 
3846
main ()
 
3847
{
 
3848
return forkpty ();
 
3849
  ;
 
3850
  return 0;
 
3851
}
 
3852
_ACEOF
 
3853
rm -f conftest.$ac_objext conftest$ac_exeext
 
3854
if { (ac_try="$ac_link"
 
3855
case "(($ac_try" in
 
3856
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3857
  *) ac_try_echo=$ac_try;;
 
3858
esac
 
3859
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3860
  (eval "$ac_link") 2>conftest.er1
 
3861
  ac_status=$?
 
3862
  grep -v '^ *+' conftest.er1 >conftest.err
 
3863
  rm -f conftest.er1
 
3864
  cat conftest.err >&5
 
3865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3866
  (exit $ac_status); } && {
 
3867
         test -z "$ac_c_werror_flag" ||
 
3868
         test ! -s conftest.err
 
3869
       } && test -s conftest$ac_exeext &&
 
3870
       $as_test_x conftest$ac_exeext; then
 
3871
  ac_cv_lib_util_forkpty=yes
 
3872
else
 
3873
  echo "$as_me: failed program was:" >&5
 
3874
sed 's/^/| /' conftest.$ac_ext >&5
 
3875
 
 
3876
        ac_cv_lib_util_forkpty=no
 
3877
fi
 
3878
 
 
3879
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
3880
      conftest$ac_exeext conftest.$ac_ext
 
3881
LIBS=$ac_check_lib_save_LIBS
 
3882
fi
 
3883
{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5
 
3884
echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; }
 
3885
if test $ac_cv_lib_util_forkpty = yes; then
 
3886
  cat >>confdefs.h <<_ACEOF
 
3887
#define HAVE_LIBUTIL 1
 
3888
_ACEOF
 
3889
 
 
3890
  LIBS="-lutil $LIBS"
 
3891
 
 
3892
else
 
3893
  { { echo "$as_me:$LINENO: error: Missing required library" >&5
 
3894
echo "$as_me: error: Missing required library" >&2;}
 
3895
   { (exit 1); exit 1; }; }
 
3896
fi
 
3897
 
 
3898
 
 
3899
# Checks for header files.
 
3900
ac_ext=c
 
3901
ac_cpp='$CPP $CPPFLAGS'
 
3902
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
3903
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
3904
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
3905
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 
3906
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
 
3907
# On Suns, sometimes $CPP names a directory.
 
3908
if test -n "$CPP" && test -d "$CPP"; then
 
3909
  CPP=
 
3910
fi
 
3911
if test -z "$CPP"; then
 
3912
  if test "${ac_cv_prog_CPP+set}" = set; then
 
3913
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
3914
else
 
3915
      # Double quotes because CPP needs to be expanded
 
3916
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 
3917
    do
 
3918
      ac_preproc_ok=false
 
3919
for ac_c_preproc_warn_flag in '' yes
 
3920
do
 
3921
  # Use a header file that comes with gcc, so configuring glibc
 
3922
  # with a fresh cross-compiler works.
 
3923
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
3924
  # <limits.h> exists even on freestanding compilers.
 
3925
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
3926
  # not just through cpp. "Syntax error" is here to catch this case.
 
3927
  cat >conftest.$ac_ext <<_ACEOF
 
3928
/* confdefs.h.  */
 
3929
_ACEOF
 
3930
cat confdefs.h >>conftest.$ac_ext
 
3931
cat >>conftest.$ac_ext <<_ACEOF
 
3932
/* end confdefs.h.  */
 
3933
#ifdef __STDC__
 
3934
# include <limits.h>
 
3935
#else
 
3936
# include <assert.h>
 
3937
#endif
 
3938
                     Syntax error
 
3939
_ACEOF
 
3940
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3941
case "(($ac_try" in
 
3942
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3943
  *) ac_try_echo=$ac_try;;
 
3944
esac
 
3945
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3946
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3947
  ac_status=$?
 
3948
  grep -v '^ *+' conftest.er1 >conftest.err
 
3949
  rm -f conftest.er1
 
3950
  cat conftest.err >&5
 
3951
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3952
  (exit $ac_status); } >/dev/null && {
 
3953
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3954
         test ! -s conftest.err
 
3955
       }; then
 
3956
  :
 
3957
else
 
3958
  echo "$as_me: failed program was:" >&5
 
3959
sed 's/^/| /' conftest.$ac_ext >&5
 
3960
 
 
3961
  # Broken: fails on valid input.
 
3962
continue
 
3963
fi
 
3964
 
 
3965
rm -f conftest.err conftest.$ac_ext
 
3966
 
 
3967
  # OK, works on sane cases.  Now check whether nonexistent headers
 
3968
  # can be detected and how.
 
3969
  cat >conftest.$ac_ext <<_ACEOF
 
3970
/* confdefs.h.  */
 
3971
_ACEOF
 
3972
cat confdefs.h >>conftest.$ac_ext
 
3973
cat >>conftest.$ac_ext <<_ACEOF
 
3974
/* end confdefs.h.  */
 
3975
#include <ac_nonexistent.h>
 
3976
_ACEOF
 
3977
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
3978
case "(($ac_try" in
 
3979
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
3980
  *) ac_try_echo=$ac_try;;
 
3981
esac
 
3982
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
3983
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
3984
  ac_status=$?
 
3985
  grep -v '^ *+' conftest.er1 >conftest.err
 
3986
  rm -f conftest.er1
 
3987
  cat conftest.err >&5
 
3988
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
3989
  (exit $ac_status); } >/dev/null && {
 
3990
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
3991
         test ! -s conftest.err
 
3992
       }; then
 
3993
  # Broken: success on invalid input.
 
3994
continue
 
3995
else
 
3996
  echo "$as_me: failed program was:" >&5
 
3997
sed 's/^/| /' conftest.$ac_ext >&5
 
3998
 
 
3999
  # Passes both tests.
 
4000
ac_preproc_ok=:
 
4001
break
 
4002
fi
 
4003
 
 
4004
rm -f conftest.err conftest.$ac_ext
 
4005
 
 
4006
done
 
4007
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4008
rm -f conftest.err conftest.$ac_ext
 
4009
if $ac_preproc_ok; then
 
4010
  break
 
4011
fi
 
4012
 
 
4013
    done
 
4014
    ac_cv_prog_CPP=$CPP
 
4015
 
 
4016
fi
 
4017
  CPP=$ac_cv_prog_CPP
 
4018
else
 
4019
  ac_cv_prog_CPP=$CPP
 
4020
fi
 
4021
{ echo "$as_me:$LINENO: result: $CPP" >&5
 
4022
echo "${ECHO_T}$CPP" >&6; }
 
4023
ac_preproc_ok=false
 
4024
for ac_c_preproc_warn_flag in '' yes
 
4025
do
 
4026
  # Use a header file that comes with gcc, so configuring glibc
 
4027
  # with a fresh cross-compiler works.
 
4028
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
4029
  # <limits.h> exists even on freestanding compilers.
 
4030
  # On the NeXT, cc -E runs the code through the compiler's parser,
 
4031
  # not just through cpp. "Syntax error" is here to catch this case.
 
4032
  cat >conftest.$ac_ext <<_ACEOF
 
4033
/* confdefs.h.  */
 
4034
_ACEOF
 
4035
cat confdefs.h >>conftest.$ac_ext
 
4036
cat >>conftest.$ac_ext <<_ACEOF
 
4037
/* end confdefs.h.  */
 
4038
#ifdef __STDC__
 
4039
# include <limits.h>
 
4040
#else
 
4041
# include <assert.h>
 
4042
#endif
 
4043
                     Syntax error
 
4044
_ACEOF
 
4045
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4046
case "(($ac_try" in
 
4047
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4048
  *) ac_try_echo=$ac_try;;
 
4049
esac
 
4050
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4051
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4052
  ac_status=$?
 
4053
  grep -v '^ *+' conftest.er1 >conftest.err
 
4054
  rm -f conftest.er1
 
4055
  cat conftest.err >&5
 
4056
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4057
  (exit $ac_status); } >/dev/null && {
 
4058
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4059
         test ! -s conftest.err
 
4060
       }; then
 
4061
  :
 
4062
else
 
4063
  echo "$as_me: failed program was:" >&5
 
4064
sed 's/^/| /' conftest.$ac_ext >&5
 
4065
 
 
4066
  # Broken: fails on valid input.
 
4067
continue
 
4068
fi
 
4069
 
 
4070
rm -f conftest.err conftest.$ac_ext
 
4071
 
 
4072
  # OK, works on sane cases.  Now check whether nonexistent headers
 
4073
  # can be detected and how.
 
4074
  cat >conftest.$ac_ext <<_ACEOF
 
4075
/* confdefs.h.  */
 
4076
_ACEOF
 
4077
cat confdefs.h >>conftest.$ac_ext
 
4078
cat >>conftest.$ac_ext <<_ACEOF
 
4079
/* end confdefs.h.  */
 
4080
#include <ac_nonexistent.h>
 
4081
_ACEOF
 
4082
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4083
case "(($ac_try" in
 
4084
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4085
  *) ac_try_echo=$ac_try;;
 
4086
esac
 
4087
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4088
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4089
  ac_status=$?
 
4090
  grep -v '^ *+' conftest.er1 >conftest.err
 
4091
  rm -f conftest.er1
 
4092
  cat conftest.err >&5
 
4093
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4094
  (exit $ac_status); } >/dev/null && {
 
4095
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4096
         test ! -s conftest.err
 
4097
       }; then
 
4098
  # Broken: success on invalid input.
 
4099
continue
 
4100
else
 
4101
  echo "$as_me: failed program was:" >&5
 
4102
sed 's/^/| /' conftest.$ac_ext >&5
 
4103
 
 
4104
  # Passes both tests.
 
4105
ac_preproc_ok=:
 
4106
break
 
4107
fi
 
4108
 
 
4109
rm -f conftest.err conftest.$ac_ext
 
4110
 
 
4111
done
 
4112
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 
4113
rm -f conftest.err conftest.$ac_ext
 
4114
if $ac_preproc_ok; then
 
4115
  :
 
4116
else
 
4117
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 
4118
See \`config.log' for more details." >&5
 
4119
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 
4120
See \`config.log' for more details." >&2;}
 
4121
   { (exit 1); exit 1; }; }
 
4122
fi
 
4123
 
 
4124
ac_ext=c
 
4125
ac_cpp='$CPP $CPPFLAGS'
 
4126
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 
4127
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 
4128
ac_compiler_gnu=$ac_cv_c_compiler_gnu
 
4129
 
 
4130
 
 
4131
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
 
4132
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
 
4133
if test "${ac_cv_path_GREP+set}" = set; then
 
4134
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4135
else
 
4136
  # Extract the first word of "grep ggrep" to use in msg output
 
4137
if test -z "$GREP"; then
 
4138
set dummy grep ggrep; ac_prog_name=$2
 
4139
if test "${ac_cv_path_GREP+set}" = set; then
 
4140
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4141
else
 
4142
  ac_path_GREP_found=false
 
4143
# Loop through the user's path and test for each of PROGNAME-LIST
 
4144
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4145
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4146
do
 
4147
  IFS=$as_save_IFS
 
4148
  test -z "$as_dir" && as_dir=.
 
4149
  for ac_prog in grep ggrep; do
 
4150
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4151
    ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
 
4152
    { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
 
4153
    # Check for GNU ac_path_GREP and select it if it is found.
 
4154
  # Check for GNU $ac_path_GREP
 
4155
case `"$ac_path_GREP" --version 2>&1` in
 
4156
*GNU*)
 
4157
  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
 
4158
*)
 
4159
  ac_count=0
 
4160
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4161
  while :
 
4162
  do
 
4163
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4164
    mv "conftest.tmp" "conftest.in"
 
4165
    cp "conftest.in" "conftest.nl"
 
4166
    echo 'GREP' >> "conftest.nl"
 
4167
    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4168
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4169
    ac_count=`expr $ac_count + 1`
 
4170
    if test $ac_count -gt ${ac_path_GREP_max-0}; then
 
4171
      # Best one so far, save it but keep looking for a better one
 
4172
      ac_cv_path_GREP="$ac_path_GREP"
 
4173
      ac_path_GREP_max=$ac_count
 
4174
    fi
 
4175
    # 10*(2^10) chars as input seems more than enough
 
4176
    test $ac_count -gt 10 && break
 
4177
  done
 
4178
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4179
esac
 
4180
 
 
4181
 
 
4182
    $ac_path_GREP_found && break 3
 
4183
  done
 
4184
done
 
4185
 
 
4186
done
 
4187
IFS=$as_save_IFS
 
4188
 
 
4189
 
 
4190
fi
 
4191
 
 
4192
GREP="$ac_cv_path_GREP"
 
4193
if test -z "$GREP"; then
 
4194
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4195
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4196
   { (exit 1); exit 1; }; }
 
4197
fi
 
4198
 
 
4199
else
 
4200
  ac_cv_path_GREP=$GREP
 
4201
fi
 
4202
 
 
4203
 
 
4204
fi
 
4205
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
 
4206
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
 
4207
 GREP="$ac_cv_path_GREP"
 
4208
 
 
4209
 
 
4210
{ echo "$as_me:$LINENO: checking for egrep" >&5
 
4211
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
 
4212
if test "${ac_cv_path_EGREP+set}" = set; then
 
4213
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4214
else
 
4215
  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
 
4216
   then ac_cv_path_EGREP="$GREP -E"
 
4217
   else
 
4218
     # Extract the first word of "egrep" to use in msg output
 
4219
if test -z "$EGREP"; then
 
4220
set dummy egrep; ac_prog_name=$2
 
4221
if test "${ac_cv_path_EGREP+set}" = set; then
 
4222
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4223
else
 
4224
  ac_path_EGREP_found=false
 
4225
# Loop through the user's path and test for each of PROGNAME-LIST
 
4226
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
4227
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
 
4228
do
 
4229
  IFS=$as_save_IFS
 
4230
  test -z "$as_dir" && as_dir=.
 
4231
  for ac_prog in egrep; do
 
4232
  for ac_exec_ext in '' $ac_executable_extensions; do
 
4233
    ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
 
4234
    { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
 
4235
    # Check for GNU ac_path_EGREP and select it if it is found.
 
4236
  # Check for GNU $ac_path_EGREP
 
4237
case `"$ac_path_EGREP" --version 2>&1` in
 
4238
*GNU*)
 
4239
  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
 
4240
*)
 
4241
  ac_count=0
 
4242
  echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
 
4243
  while :
 
4244
  do
 
4245
    cat "conftest.in" "conftest.in" >"conftest.tmp"
 
4246
    mv "conftest.tmp" "conftest.in"
 
4247
    cp "conftest.in" "conftest.nl"
 
4248
    echo 'EGREP' >> "conftest.nl"
 
4249
    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
 
4250
    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
 
4251
    ac_count=`expr $ac_count + 1`
 
4252
    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
 
4253
      # Best one so far, save it but keep looking for a better one
 
4254
      ac_cv_path_EGREP="$ac_path_EGREP"
 
4255
      ac_path_EGREP_max=$ac_count
 
4256
    fi
 
4257
    # 10*(2^10) chars as input seems more than enough
 
4258
    test $ac_count -gt 10 && break
 
4259
  done
 
4260
  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
 
4261
esac
 
4262
 
 
4263
 
 
4264
    $ac_path_EGREP_found && break 3
 
4265
  done
 
4266
done
 
4267
 
 
4268
done
 
4269
IFS=$as_save_IFS
 
4270
 
 
4271
 
 
4272
fi
 
4273
 
 
4274
EGREP="$ac_cv_path_EGREP"
 
4275
if test -z "$EGREP"; then
 
4276
  { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
 
4277
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
 
4278
   { (exit 1); exit 1; }; }
 
4279
fi
 
4280
 
 
4281
else
 
4282
  ac_cv_path_EGREP=$EGREP
 
4283
fi
 
4284
 
 
4285
 
 
4286
   fi
 
4287
fi
 
4288
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
 
4289
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
 
4290
 EGREP="$ac_cv_path_EGREP"
 
4291
 
 
4292
 
 
4293
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 
4294
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
 
4295
if test "${ac_cv_header_stdc+set}" = set; then
 
4296
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4297
else
 
4298
  cat >conftest.$ac_ext <<_ACEOF
 
4299
/* confdefs.h.  */
 
4300
_ACEOF
 
4301
cat confdefs.h >>conftest.$ac_ext
 
4302
cat >>conftest.$ac_ext <<_ACEOF
 
4303
/* end confdefs.h.  */
 
4304
#include <stdlib.h>
 
4305
#include <stdarg.h>
 
4306
#include <string.h>
 
4307
#include <float.h>
 
4308
 
 
4309
int
 
4310
main ()
 
4311
{
 
4312
 
 
4313
  ;
 
4314
  return 0;
 
4315
}
 
4316
_ACEOF
 
4317
rm -f conftest.$ac_objext
 
4318
if { (ac_try="$ac_compile"
 
4319
case "(($ac_try" in
 
4320
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4321
  *) ac_try_echo=$ac_try;;
 
4322
esac
 
4323
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4324
  (eval "$ac_compile") 2>conftest.er1
 
4325
  ac_status=$?
 
4326
  grep -v '^ *+' conftest.er1 >conftest.err
 
4327
  rm -f conftest.er1
 
4328
  cat conftest.err >&5
 
4329
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4330
  (exit $ac_status); } && {
 
4331
         test -z "$ac_c_werror_flag" ||
 
4332
         test ! -s conftest.err
 
4333
       } && test -s conftest.$ac_objext; then
 
4334
  ac_cv_header_stdc=yes
 
4335
else
 
4336
  echo "$as_me: failed program was:" >&5
 
4337
sed 's/^/| /' conftest.$ac_ext >&5
 
4338
 
 
4339
        ac_cv_header_stdc=no
 
4340
fi
 
4341
 
 
4342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4343
 
 
4344
if test $ac_cv_header_stdc = yes; then
 
4345
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 
4346
  cat >conftest.$ac_ext <<_ACEOF
 
4347
/* confdefs.h.  */
 
4348
_ACEOF
 
4349
cat confdefs.h >>conftest.$ac_ext
 
4350
cat >>conftest.$ac_ext <<_ACEOF
 
4351
/* end confdefs.h.  */
 
4352
#include <string.h>
 
4353
 
 
4354
_ACEOF
 
4355
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4356
  $EGREP "memchr" >/dev/null 2>&1; then
 
4357
  :
 
4358
else
 
4359
  ac_cv_header_stdc=no
 
4360
fi
 
4361
rm -f conftest*
 
4362
 
 
4363
fi
 
4364
 
 
4365
if test $ac_cv_header_stdc = yes; then
 
4366
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 
4367
  cat >conftest.$ac_ext <<_ACEOF
 
4368
/* confdefs.h.  */
 
4369
_ACEOF
 
4370
cat confdefs.h >>conftest.$ac_ext
 
4371
cat >>conftest.$ac_ext <<_ACEOF
 
4372
/* end confdefs.h.  */
 
4373
#include <stdlib.h>
 
4374
 
 
4375
_ACEOF
 
4376
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
4377
  $EGREP "free" >/dev/null 2>&1; then
 
4378
  :
 
4379
else
 
4380
  ac_cv_header_stdc=no
 
4381
fi
 
4382
rm -f conftest*
 
4383
 
 
4384
fi
 
4385
 
 
4386
if test $ac_cv_header_stdc = yes; then
 
4387
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 
4388
  if test "$cross_compiling" = yes; then
 
4389
  :
 
4390
else
 
4391
  cat >conftest.$ac_ext <<_ACEOF
 
4392
/* confdefs.h.  */
 
4393
_ACEOF
 
4394
cat confdefs.h >>conftest.$ac_ext
 
4395
cat >>conftest.$ac_ext <<_ACEOF
 
4396
/* end confdefs.h.  */
 
4397
#include <ctype.h>
 
4398
#include <stdlib.h>
 
4399
#if ((' ' & 0x0FF) == 0x020)
 
4400
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 
4401
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 
4402
#else
 
4403
# define ISLOWER(c) \
 
4404
                   (('a' <= (c) && (c) <= 'i') \
 
4405
                     || ('j' <= (c) && (c) <= 'r') \
 
4406
                     || ('s' <= (c) && (c) <= 'z'))
 
4407
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 
4408
#endif
 
4409
 
 
4410
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 
4411
int
 
4412
main ()
 
4413
{
 
4414
  int i;
 
4415
  for (i = 0; i < 256; i++)
 
4416
    if (XOR (islower (i), ISLOWER (i))
 
4417
        || toupper (i) != TOUPPER (i))
 
4418
      return 2;
 
4419
  return 0;
 
4420
}
 
4421
_ACEOF
 
4422
rm -f conftest$ac_exeext
 
4423
if { (ac_try="$ac_link"
 
4424
case "(($ac_try" in
 
4425
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4426
  *) ac_try_echo=$ac_try;;
 
4427
esac
 
4428
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4429
  (eval "$ac_link") 2>&5
 
4430
  ac_status=$?
 
4431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4432
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
4433
  { (case "(($ac_try" in
 
4434
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4435
  *) ac_try_echo=$ac_try;;
 
4436
esac
 
4437
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4438
  (eval "$ac_try") 2>&5
 
4439
  ac_status=$?
 
4440
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4441
  (exit $ac_status); }; }; then
 
4442
  :
 
4443
else
 
4444
  echo "$as_me: program exited with status $ac_status" >&5
 
4445
echo "$as_me: failed program was:" >&5
 
4446
sed 's/^/| /' conftest.$ac_ext >&5
 
4447
 
 
4448
( exit $ac_status )
 
4449
ac_cv_header_stdc=no
 
4450
fi
 
4451
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
4452
fi
 
4453
 
 
4454
 
 
4455
fi
 
4456
fi
 
4457
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 
4458
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
 
4459
if test $ac_cv_header_stdc = yes; then
 
4460
 
 
4461
cat >>confdefs.h <<\_ACEOF
 
4462
#define STDC_HEADERS 1
 
4463
_ACEOF
 
4464
 
 
4465
fi
 
4466
 
 
4467
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
 
4468
 
 
4469
 
 
4470
 
 
4471
 
 
4472
 
 
4473
 
 
4474
 
 
4475
 
 
4476
 
 
4477
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 
4478
                  inttypes.h stdint.h unistd.h
 
4479
do
 
4480
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4481
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4482
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4483
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4484
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4485
else
 
4486
  cat >conftest.$ac_ext <<_ACEOF
 
4487
/* confdefs.h.  */
 
4488
_ACEOF
 
4489
cat confdefs.h >>conftest.$ac_ext
 
4490
cat >>conftest.$ac_ext <<_ACEOF
 
4491
/* end confdefs.h.  */
 
4492
$ac_includes_default
 
4493
 
 
4494
#include <$ac_header>
 
4495
_ACEOF
 
4496
rm -f conftest.$ac_objext
 
4497
if { (ac_try="$ac_compile"
 
4498
case "(($ac_try" in
 
4499
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4500
  *) ac_try_echo=$ac_try;;
 
4501
esac
 
4502
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4503
  (eval "$ac_compile") 2>conftest.er1
 
4504
  ac_status=$?
 
4505
  grep -v '^ *+' conftest.er1 >conftest.err
 
4506
  rm -f conftest.er1
 
4507
  cat conftest.err >&5
 
4508
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4509
  (exit $ac_status); } && {
 
4510
         test -z "$ac_c_werror_flag" ||
 
4511
         test ! -s conftest.err
 
4512
       } && test -s conftest.$ac_objext; then
 
4513
  eval "$as_ac_Header=yes"
 
4514
else
 
4515
  echo "$as_me: failed program was:" >&5
 
4516
sed 's/^/| /' conftest.$ac_ext >&5
 
4517
 
 
4518
        eval "$as_ac_Header=no"
 
4519
fi
 
4520
 
 
4521
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4522
fi
 
4523
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4524
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4525
echo "${ECHO_T}$ac_res" >&6; }
 
4526
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4527
  cat >>confdefs.h <<_ACEOF
 
4528
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4529
_ACEOF
 
4530
 
 
4531
fi
 
4532
 
 
4533
done
 
4534
 
 
4535
 
 
4536
 
 
4537
 
 
4538
 
 
4539
 
 
4540
 
 
4541
 
 
4542
 
 
4543
 
 
4544
 
 
4545
for ac_header in arpa/inet.h fcntl.h netinet/in.h sys/ioctl.h sys/socket.h sys/time.h termios.h utmp.h pty.h
 
4546
do
 
4547
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
4548
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4549
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4550
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4551
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4552
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4553
fi
 
4554
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4555
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4556
echo "${ECHO_T}$ac_res" >&6; }
 
4557
else
 
4558
  # Is the header compilable?
 
4559
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
4560
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
4561
cat >conftest.$ac_ext <<_ACEOF
 
4562
/* confdefs.h.  */
 
4563
_ACEOF
 
4564
cat confdefs.h >>conftest.$ac_ext
 
4565
cat >>conftest.$ac_ext <<_ACEOF
 
4566
/* end confdefs.h.  */
 
4567
$ac_includes_default
 
4568
#include <$ac_header>
 
4569
_ACEOF
 
4570
rm -f conftest.$ac_objext
 
4571
if { (ac_try="$ac_compile"
 
4572
case "(($ac_try" in
 
4573
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4574
  *) ac_try_echo=$ac_try;;
 
4575
esac
 
4576
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4577
  (eval "$ac_compile") 2>conftest.er1
 
4578
  ac_status=$?
 
4579
  grep -v '^ *+' conftest.er1 >conftest.err
 
4580
  rm -f conftest.er1
 
4581
  cat conftest.err >&5
 
4582
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4583
  (exit $ac_status); } && {
 
4584
         test -z "$ac_c_werror_flag" ||
 
4585
         test ! -s conftest.err
 
4586
       } && test -s conftest.$ac_objext; then
 
4587
  ac_header_compiler=yes
 
4588
else
 
4589
  echo "$as_me: failed program was:" >&5
 
4590
sed 's/^/| /' conftest.$ac_ext >&5
 
4591
 
 
4592
        ac_header_compiler=no
 
4593
fi
 
4594
 
 
4595
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4596
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
4597
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
4598
 
 
4599
# Is the header present?
 
4600
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
4601
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
4602
cat >conftest.$ac_ext <<_ACEOF
 
4603
/* confdefs.h.  */
 
4604
_ACEOF
 
4605
cat confdefs.h >>conftest.$ac_ext
 
4606
cat >>conftest.$ac_ext <<_ACEOF
 
4607
/* end confdefs.h.  */
 
4608
#include <$ac_header>
 
4609
_ACEOF
 
4610
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
4611
case "(($ac_try" in
 
4612
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4613
  *) ac_try_echo=$ac_try;;
 
4614
esac
 
4615
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4616
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
4617
  ac_status=$?
 
4618
  grep -v '^ *+' conftest.er1 >conftest.err
 
4619
  rm -f conftest.er1
 
4620
  cat conftest.err >&5
 
4621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4622
  (exit $ac_status); } >/dev/null && {
 
4623
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
4624
         test ! -s conftest.err
 
4625
       }; then
 
4626
  ac_header_preproc=yes
 
4627
else
 
4628
  echo "$as_me: failed program was:" >&5
 
4629
sed 's/^/| /' conftest.$ac_ext >&5
 
4630
 
 
4631
  ac_header_preproc=no
 
4632
fi
 
4633
 
 
4634
rm -f conftest.err conftest.$ac_ext
 
4635
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
4636
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
4637
 
 
4638
# So?  What about this header?
 
4639
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
4640
  yes:no: )
 
4641
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
4642
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
4643
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
4644
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
4645
    ac_header_preproc=yes
 
4646
    ;;
 
4647
  no:yes:* )
 
4648
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
4649
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
4650
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
4651
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
4652
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
4653
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
4654
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
4655
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
4656
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
4657
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
4658
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
4659
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
4660
    ( cat <<\_ASBOX
 
4661
## ------------------------------------ ##
 
4662
## Report this to tech-talk@aps.anl.gov ##
 
4663
## ------------------------------------ ##
 
4664
_ASBOX
 
4665
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
4666
    ;;
 
4667
esac
 
4668
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
4669
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
4670
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
4671
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4672
else
 
4673
  eval "$as_ac_Header=\$ac_header_preproc"
 
4674
fi
 
4675
ac_res=`eval echo '${'$as_ac_Header'}'`
 
4676
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
4677
echo "${ECHO_T}$ac_res" >&6; }
 
4678
 
 
4679
fi
 
4680
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
4681
  cat >>confdefs.h <<_ACEOF
 
4682
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
4683
_ACEOF
 
4684
 
 
4685
else
 
4686
  { { echo "$as_me:$LINENO: error: Missing required header(s)" >&5
 
4687
echo "$as_me: error: Missing required header(s)" >&2;}
 
4688
   { (exit 1); exit 1; }; }
 
4689
fi
 
4690
 
 
4691
done
 
4692
 
 
4693
 
 
4694
# Checks for typedefs, structures, and compiler characteristics.
 
4695
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
 
4696
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
 
4697
if test "${ac_cv_header_stdbool_h+set}" = set; then
 
4698
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4699
else
 
4700
  cat >conftest.$ac_ext <<_ACEOF
 
4701
/* confdefs.h.  */
 
4702
_ACEOF
 
4703
cat confdefs.h >>conftest.$ac_ext
 
4704
cat >>conftest.$ac_ext <<_ACEOF
 
4705
/* end confdefs.h.  */
 
4706
 
 
4707
#include <stdbool.h>
 
4708
#ifndef bool
 
4709
 "error: bool is not defined"
 
4710
#endif
 
4711
#ifndef false
 
4712
 "error: false is not defined"
 
4713
#endif
 
4714
#if false
 
4715
 "error: false is not 0"
 
4716
#endif
 
4717
#ifndef true
 
4718
 "error: true is not defined"
 
4719
#endif
 
4720
#if true != 1
 
4721
 "error: true is not 1"
 
4722
#endif
 
4723
#ifndef __bool_true_false_are_defined
 
4724
 "error: __bool_true_false_are_defined is not defined"
 
4725
#endif
 
4726
 
 
4727
        struct s { _Bool s: 1; _Bool t; } s;
 
4728
 
 
4729
        char a[true == 1 ? 1 : -1];
 
4730
        char b[false == 0 ? 1 : -1];
 
4731
        char c[__bool_true_false_are_defined == 1 ? 1 : -1];
 
4732
        char d[(bool) 0.5 == true ? 1 : -1];
 
4733
        bool e = &s;
 
4734
        char f[(_Bool) 0.0 == false ? 1 : -1];
 
4735
        char g[true];
 
4736
        char h[sizeof (_Bool)];
 
4737
        char i[sizeof s.t];
 
4738
        enum { j = false, k = true, l = false * true, m = true * 256 };
 
4739
        _Bool n[m];
 
4740
        char o[sizeof n == m * sizeof n[0] ? 1 : -1];
 
4741
        char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
 
4742
#       if defined __xlc__ || defined __GNUC__
 
4743
         /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
 
4744
            reported by James Lemley on 2005-10-05; see
 
4745
            http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
 
4746
            This test is not quite right, since xlc is allowed to
 
4747
            reject this program, as the initializer for xlcbug is
 
4748
            not one of the forms that C requires support for.
 
4749
            However, doing the test right would require a runtime
 
4750
            test, and that would make cross-compilation harder.
 
4751
            Let us hope that IBM fixes the xlc bug, and also adds
 
4752
            support for this kind of constant expression.  In the
 
4753
            meantime, this test will reject xlc, which is OK, since
 
4754
            our stdbool.h substitute should suffice.  We also test
 
4755
            this with GCC, where it should work, to detect more
 
4756
            quickly whether someone messes up the test in the
 
4757
            future.  */
 
4758
         char digs[] = "0123456789";
 
4759
         int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
 
4760
#       endif
 
4761
        /* Catch a bug in an HP-UX C compiler.  See
 
4762
           http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
 
4763
           http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
 
4764
         */
 
4765
        _Bool q = true;
 
4766
        _Bool *pq = &q;
 
4767
 
 
4768
int
 
4769
main ()
 
4770
{
 
4771
 
 
4772
        *pq |= q;
 
4773
        *pq |= ! q;
 
4774
        /* Refer to every declared value, to avoid compiler optimizations.  */
 
4775
        return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
 
4776
                + !m + !n + !o + !p + !q + !pq);
 
4777
 
 
4778
  ;
 
4779
  return 0;
 
4780
}
 
4781
_ACEOF
 
4782
rm -f conftest.$ac_objext
 
4783
if { (ac_try="$ac_compile"
 
4784
case "(($ac_try" in
 
4785
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4786
  *) ac_try_echo=$ac_try;;
 
4787
esac
 
4788
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4789
  (eval "$ac_compile") 2>conftest.er1
 
4790
  ac_status=$?
 
4791
  grep -v '^ *+' conftest.er1 >conftest.err
 
4792
  rm -f conftest.er1
 
4793
  cat conftest.err >&5
 
4794
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4795
  (exit $ac_status); } && {
 
4796
         test -z "$ac_c_werror_flag" ||
 
4797
         test ! -s conftest.err
 
4798
       } && test -s conftest.$ac_objext; then
 
4799
  ac_cv_header_stdbool_h=yes
 
4800
else
 
4801
  echo "$as_me: failed program was:" >&5
 
4802
sed 's/^/| /' conftest.$ac_ext >&5
 
4803
 
 
4804
        ac_cv_header_stdbool_h=no
 
4805
fi
 
4806
 
 
4807
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4808
fi
 
4809
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
 
4810
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
 
4811
{ echo "$as_me:$LINENO: checking for _Bool" >&5
 
4812
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
 
4813
if test "${ac_cv_type__Bool+set}" = set; then
 
4814
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4815
else
 
4816
  cat >conftest.$ac_ext <<_ACEOF
 
4817
/* confdefs.h.  */
 
4818
_ACEOF
 
4819
cat confdefs.h >>conftest.$ac_ext
 
4820
cat >>conftest.$ac_ext <<_ACEOF
 
4821
/* end confdefs.h.  */
 
4822
$ac_includes_default
 
4823
typedef _Bool ac__type_new_;
 
4824
int
 
4825
main ()
 
4826
{
 
4827
if ((ac__type_new_ *) 0)
 
4828
  return 0;
 
4829
if (sizeof (ac__type_new_))
 
4830
  return 0;
 
4831
  ;
 
4832
  return 0;
 
4833
}
 
4834
_ACEOF
 
4835
rm -f conftest.$ac_objext
 
4836
if { (ac_try="$ac_compile"
 
4837
case "(($ac_try" in
 
4838
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4839
  *) ac_try_echo=$ac_try;;
 
4840
esac
 
4841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4842
  (eval "$ac_compile") 2>conftest.er1
 
4843
  ac_status=$?
 
4844
  grep -v '^ *+' conftest.er1 >conftest.err
 
4845
  rm -f conftest.er1
 
4846
  cat conftest.err >&5
 
4847
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4848
  (exit $ac_status); } && {
 
4849
         test -z "$ac_c_werror_flag" ||
 
4850
         test ! -s conftest.err
 
4851
       } && test -s conftest.$ac_objext; then
 
4852
  ac_cv_type__Bool=yes
 
4853
else
 
4854
  echo "$as_me: failed program was:" >&5
 
4855
sed 's/^/| /' conftest.$ac_ext >&5
 
4856
 
 
4857
        ac_cv_type__Bool=no
 
4858
fi
 
4859
 
 
4860
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4861
fi
 
4862
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
 
4863
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
 
4864
if test $ac_cv_type__Bool = yes; then
 
4865
 
 
4866
cat >>confdefs.h <<_ACEOF
 
4867
#define HAVE__BOOL 1
 
4868
_ACEOF
 
4869
 
 
4870
 
 
4871
fi
 
4872
 
 
4873
if test $ac_cv_header_stdbool_h = yes; then
 
4874
 
 
4875
cat >>confdefs.h <<\_ACEOF
 
4876
#define HAVE_STDBOOL_H 1
 
4877
_ACEOF
 
4878
 
 
4879
fi
 
4880
 
 
4881
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
 
4882
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
 
4883
if test "${ac_cv_c_const+set}" = set; then
 
4884
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4885
else
 
4886
  cat >conftest.$ac_ext <<_ACEOF
 
4887
/* confdefs.h.  */
 
4888
_ACEOF
 
4889
cat confdefs.h >>conftest.$ac_ext
 
4890
cat >>conftest.$ac_ext <<_ACEOF
 
4891
/* end confdefs.h.  */
 
4892
 
 
4893
int
 
4894
main ()
 
4895
{
 
4896
/* FIXME: Include the comments suggested by Paul. */
 
4897
#ifndef __cplusplus
 
4898
  /* Ultrix mips cc rejects this.  */
 
4899
  typedef int charset[2];
 
4900
  const charset cs;
 
4901
  /* SunOS 4.1.1 cc rejects this.  */
 
4902
  char const *const *pcpcc;
 
4903
  char **ppc;
 
4904
  /* NEC SVR4.0.2 mips cc rejects this.  */
 
4905
  struct point {int x, y;};
 
4906
  static struct point const zero = {0,0};
 
4907
  /* AIX XL C 1.02.0.0 rejects this.
 
4908
     It does not let you subtract one const X* pointer from another in
 
4909
     an arm of an if-expression whose if-part is not a constant
 
4910
     expression */
 
4911
  const char *g = "string";
 
4912
  pcpcc = &g + (g ? g-g : 0);
 
4913
  /* HPUX 7.0 cc rejects these. */
 
4914
  ++pcpcc;
 
4915
  ppc = (char**) pcpcc;
 
4916
  pcpcc = (char const *const *) ppc;
 
4917
  { /* SCO 3.2v4 cc rejects this.  */
 
4918
    char *t;
 
4919
    char const *s = 0 ? (char *) 0 : (char const *) 0;
 
4920
 
 
4921
    *t++ = 0;
 
4922
    if (s) return 0;
 
4923
  }
 
4924
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 
4925
    int x[] = {25, 17};
 
4926
    const int *foo = &x[0];
 
4927
    ++foo;
 
4928
  }
 
4929
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 
4930
    typedef const int *iptr;
 
4931
    iptr p = 0;
 
4932
    ++p;
 
4933
  }
 
4934
  { /* AIX XL C 1.02.0.0 rejects this saying
 
4935
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 
4936
    struct s { int j; const int *ap[3]; };
 
4937
    struct s *b; b->j = 5;
 
4938
  }
 
4939
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 
4940
    const int foo = 10;
 
4941
    if (!foo) return 0;
 
4942
  }
 
4943
  return !cs[0] && !zero.x;
 
4944
#endif
 
4945
 
 
4946
  ;
 
4947
  return 0;
 
4948
}
 
4949
_ACEOF
 
4950
rm -f conftest.$ac_objext
 
4951
if { (ac_try="$ac_compile"
 
4952
case "(($ac_try" in
 
4953
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
4954
  *) ac_try_echo=$ac_try;;
 
4955
esac
 
4956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
4957
  (eval "$ac_compile") 2>conftest.er1
 
4958
  ac_status=$?
 
4959
  grep -v '^ *+' conftest.er1 >conftest.err
 
4960
  rm -f conftest.er1
 
4961
  cat conftest.err >&5
 
4962
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
4963
  (exit $ac_status); } && {
 
4964
         test -z "$ac_c_werror_flag" ||
 
4965
         test ! -s conftest.err
 
4966
       } && test -s conftest.$ac_objext; then
 
4967
  ac_cv_c_const=yes
 
4968
else
 
4969
  echo "$as_me: failed program was:" >&5
 
4970
sed 's/^/| /' conftest.$ac_ext >&5
 
4971
 
 
4972
        ac_cv_c_const=no
 
4973
fi
 
4974
 
 
4975
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
4976
fi
 
4977
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
 
4978
echo "${ECHO_T}$ac_cv_c_const" >&6; }
 
4979
if test $ac_cv_c_const = no; then
 
4980
 
 
4981
cat >>confdefs.h <<\_ACEOF
 
4982
#define const
 
4983
_ACEOF
 
4984
 
 
4985
fi
 
4986
 
 
4987
{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
 
4988
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
 
4989
if test "${ac_cv_type_uid_t+set}" = set; then
 
4990
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
4991
else
 
4992
  cat >conftest.$ac_ext <<_ACEOF
 
4993
/* confdefs.h.  */
 
4994
_ACEOF
 
4995
cat confdefs.h >>conftest.$ac_ext
 
4996
cat >>conftest.$ac_ext <<_ACEOF
 
4997
/* end confdefs.h.  */
 
4998
#include <sys/types.h>
 
4999
 
 
5000
_ACEOF
 
5001
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5002
  $EGREP "uid_t" >/dev/null 2>&1; then
 
5003
  ac_cv_type_uid_t=yes
 
5004
else
 
5005
  ac_cv_type_uid_t=no
 
5006
fi
 
5007
rm -f conftest*
 
5008
 
 
5009
fi
 
5010
{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
 
5011
echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
 
5012
if test $ac_cv_type_uid_t = no; then
 
5013
 
 
5014
cat >>confdefs.h <<\_ACEOF
 
5015
#define uid_t int
 
5016
_ACEOF
 
5017
 
 
5018
 
 
5019
cat >>confdefs.h <<\_ACEOF
 
5020
#define gid_t int
 
5021
_ACEOF
 
5022
 
 
5023
fi
 
5024
 
 
5025
{ echo "$as_me:$LINENO: checking for mode_t" >&5
 
5026
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
 
5027
if test "${ac_cv_type_mode_t+set}" = set; then
 
5028
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5029
else
 
5030
  cat >conftest.$ac_ext <<_ACEOF
 
5031
/* confdefs.h.  */
 
5032
_ACEOF
 
5033
cat confdefs.h >>conftest.$ac_ext
 
5034
cat >>conftest.$ac_ext <<_ACEOF
 
5035
/* end confdefs.h.  */
 
5036
$ac_includes_default
 
5037
typedef mode_t ac__type_new_;
 
5038
int
 
5039
main ()
 
5040
{
 
5041
if ((ac__type_new_ *) 0)
 
5042
  return 0;
 
5043
if (sizeof (ac__type_new_))
 
5044
  return 0;
 
5045
  ;
 
5046
  return 0;
 
5047
}
 
5048
_ACEOF
 
5049
rm -f conftest.$ac_objext
 
5050
if { (ac_try="$ac_compile"
 
5051
case "(($ac_try" in
 
5052
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5053
  *) ac_try_echo=$ac_try;;
 
5054
esac
 
5055
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5056
  (eval "$ac_compile") 2>conftest.er1
 
5057
  ac_status=$?
 
5058
  grep -v '^ *+' conftest.er1 >conftest.err
 
5059
  rm -f conftest.er1
 
5060
  cat conftest.err >&5
 
5061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5062
  (exit $ac_status); } && {
 
5063
         test -z "$ac_c_werror_flag" ||
 
5064
         test ! -s conftest.err
 
5065
       } && test -s conftest.$ac_objext; then
 
5066
  ac_cv_type_mode_t=yes
 
5067
else
 
5068
  echo "$as_me: failed program was:" >&5
 
5069
sed 's/^/| /' conftest.$ac_ext >&5
 
5070
 
 
5071
        ac_cv_type_mode_t=no
 
5072
fi
 
5073
 
 
5074
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5075
fi
 
5076
{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
 
5077
echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
 
5078
if test $ac_cv_type_mode_t = yes; then
 
5079
  :
 
5080
else
 
5081
 
 
5082
cat >>confdefs.h <<_ACEOF
 
5083
#define mode_t int
 
5084
_ACEOF
 
5085
 
 
5086
fi
 
5087
 
 
5088
{ echo "$as_me:$LINENO: checking for pid_t" >&5
 
5089
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
 
5090
if test "${ac_cv_type_pid_t+set}" = set; then
 
5091
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5092
else
 
5093
  cat >conftest.$ac_ext <<_ACEOF
 
5094
/* confdefs.h.  */
 
5095
_ACEOF
 
5096
cat confdefs.h >>conftest.$ac_ext
 
5097
cat >>conftest.$ac_ext <<_ACEOF
 
5098
/* end confdefs.h.  */
 
5099
$ac_includes_default
 
5100
typedef pid_t ac__type_new_;
 
5101
int
 
5102
main ()
 
5103
{
 
5104
if ((ac__type_new_ *) 0)
 
5105
  return 0;
 
5106
if (sizeof (ac__type_new_))
 
5107
  return 0;
 
5108
  ;
 
5109
  return 0;
 
5110
}
 
5111
_ACEOF
 
5112
rm -f conftest.$ac_objext
 
5113
if { (ac_try="$ac_compile"
 
5114
case "(($ac_try" in
 
5115
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5116
  *) ac_try_echo=$ac_try;;
 
5117
esac
 
5118
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5119
  (eval "$ac_compile") 2>conftest.er1
 
5120
  ac_status=$?
 
5121
  grep -v '^ *+' conftest.er1 >conftest.err
 
5122
  rm -f conftest.er1
 
5123
  cat conftest.err >&5
 
5124
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5125
  (exit $ac_status); } && {
 
5126
         test -z "$ac_c_werror_flag" ||
 
5127
         test ! -s conftest.err
 
5128
       } && test -s conftest.$ac_objext; then
 
5129
  ac_cv_type_pid_t=yes
 
5130
else
 
5131
  echo "$as_me: failed program was:" >&5
 
5132
sed 's/^/| /' conftest.$ac_ext >&5
 
5133
 
 
5134
        ac_cv_type_pid_t=no
 
5135
fi
 
5136
 
 
5137
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5138
fi
 
5139
{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
 
5140
echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
 
5141
if test $ac_cv_type_pid_t = yes; then
 
5142
  :
 
5143
else
 
5144
 
 
5145
cat >>confdefs.h <<_ACEOF
 
5146
#define pid_t int
 
5147
_ACEOF
 
5148
 
 
5149
fi
 
5150
 
 
5151
{ echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
 
5152
echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6; }
 
5153
if test "${ac_cv_c_restrict+set}" = set; then
 
5154
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5155
else
 
5156
  ac_cv_c_restrict=no
 
5157
   # Try the official restrict keyword, then gcc's __restrict, and
 
5158
   # the less common variants.
 
5159
   for ac_kw in restrict __restrict __restrict__ _Restrict; do
 
5160
     cat >conftest.$ac_ext <<_ACEOF
 
5161
/* confdefs.h.  */
 
5162
_ACEOF
 
5163
cat confdefs.h >>conftest.$ac_ext
 
5164
cat >>conftest.$ac_ext <<_ACEOF
 
5165
/* end confdefs.h.  */
 
5166
typedef int * int_ptr;
 
5167
        int foo (int_ptr $ac_kw ip) {
 
5168
        return ip[0];
 
5169
       }
 
5170
int
 
5171
main ()
 
5172
{
 
5173
int s[1];
 
5174
        int * $ac_kw t = s;
 
5175
        t[0] = 0;
 
5176
        return foo(t)
 
5177
  ;
 
5178
  return 0;
 
5179
}
 
5180
_ACEOF
 
5181
rm -f conftest.$ac_objext
 
5182
if { (ac_try="$ac_compile"
 
5183
case "(($ac_try" in
 
5184
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5185
  *) ac_try_echo=$ac_try;;
 
5186
esac
 
5187
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5188
  (eval "$ac_compile") 2>conftest.er1
 
5189
  ac_status=$?
 
5190
  grep -v '^ *+' conftest.er1 >conftest.err
 
5191
  rm -f conftest.er1
 
5192
  cat conftest.err >&5
 
5193
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5194
  (exit $ac_status); } && {
 
5195
         test -z "$ac_c_werror_flag" ||
 
5196
         test ! -s conftest.err
 
5197
       } && test -s conftest.$ac_objext; then
 
5198
  ac_cv_c_restrict=$ac_kw
 
5199
else
 
5200
  echo "$as_me: failed program was:" >&5
 
5201
sed 's/^/| /' conftest.$ac_ext >&5
 
5202
 
 
5203
 
 
5204
fi
 
5205
 
 
5206
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5207
     test "$ac_cv_c_restrict" != no && break
 
5208
   done
 
5209
 
 
5210
fi
 
5211
{ echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
 
5212
echo "${ECHO_T}$ac_cv_c_restrict" >&6; }
 
5213
 case $ac_cv_c_restrict in
 
5214
   restrict) ;;
 
5215
   no)
 
5216
cat >>confdefs.h <<\_ACEOF
 
5217
#define restrict
 
5218
_ACEOF
 
5219
 ;;
 
5220
   *)  cat >>confdefs.h <<_ACEOF
 
5221
#define restrict $ac_cv_c_restrict
 
5222
_ACEOF
 
5223
 ;;
 
5224
 esac
 
5225
 
 
5226
{ echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
 
5227
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
 
5228
if test "${ac_cv_struct_tm+set}" = set; then
 
5229
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5230
else
 
5231
  cat >conftest.$ac_ext <<_ACEOF
 
5232
/* confdefs.h.  */
 
5233
_ACEOF
 
5234
cat confdefs.h >>conftest.$ac_ext
 
5235
cat >>conftest.$ac_ext <<_ACEOF
 
5236
/* end confdefs.h.  */
 
5237
#include <sys/types.h>
 
5238
#include <time.h>
 
5239
 
 
5240
int
 
5241
main ()
 
5242
{
 
5243
struct tm tm;
 
5244
                                     int *p = &tm.tm_sec;
 
5245
                                     return !p;
 
5246
  ;
 
5247
  return 0;
 
5248
}
 
5249
_ACEOF
 
5250
rm -f conftest.$ac_objext
 
5251
if { (ac_try="$ac_compile"
 
5252
case "(($ac_try" in
 
5253
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5254
  *) ac_try_echo=$ac_try;;
 
5255
esac
 
5256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5257
  (eval "$ac_compile") 2>conftest.er1
 
5258
  ac_status=$?
 
5259
  grep -v '^ *+' conftest.er1 >conftest.err
 
5260
  rm -f conftest.er1
 
5261
  cat conftest.err >&5
 
5262
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5263
  (exit $ac_status); } && {
 
5264
         test -z "$ac_c_werror_flag" ||
 
5265
         test ! -s conftest.err
 
5266
       } && test -s conftest.$ac_objext; then
 
5267
  ac_cv_struct_tm=time.h
 
5268
else
 
5269
  echo "$as_me: failed program was:" >&5
 
5270
sed 's/^/| /' conftest.$ac_ext >&5
 
5271
 
 
5272
        ac_cv_struct_tm=sys/time.h
 
5273
fi
 
5274
 
 
5275
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5276
fi
 
5277
{ echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
 
5278
echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
 
5279
if test $ac_cv_struct_tm = sys/time.h; then
 
5280
 
 
5281
cat >>confdefs.h <<\_ACEOF
 
5282
#define TM_IN_SYS_TIME 1
 
5283
_ACEOF
 
5284
 
 
5285
fi
 
5286
 
 
5287
 
 
5288
# Checks for library functions.
 
5289
 
 
5290
for ac_header in vfork.h
 
5291
do
 
5292
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
5293
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5294
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5295
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5296
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5297
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5298
fi
 
5299
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5300
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5301
echo "${ECHO_T}$ac_res" >&6; }
 
5302
else
 
5303
  # Is the header compilable?
 
5304
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
5305
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
5306
cat >conftest.$ac_ext <<_ACEOF
 
5307
/* confdefs.h.  */
 
5308
_ACEOF
 
5309
cat confdefs.h >>conftest.$ac_ext
 
5310
cat >>conftest.$ac_ext <<_ACEOF
 
5311
/* end confdefs.h.  */
 
5312
$ac_includes_default
 
5313
#include <$ac_header>
 
5314
_ACEOF
 
5315
rm -f conftest.$ac_objext
 
5316
if { (ac_try="$ac_compile"
 
5317
case "(($ac_try" in
 
5318
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5319
  *) ac_try_echo=$ac_try;;
 
5320
esac
 
5321
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5322
  (eval "$ac_compile") 2>conftest.er1
 
5323
  ac_status=$?
 
5324
  grep -v '^ *+' conftest.er1 >conftest.err
 
5325
  rm -f conftest.er1
 
5326
  cat conftest.err >&5
 
5327
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5328
  (exit $ac_status); } && {
 
5329
         test -z "$ac_c_werror_flag" ||
 
5330
         test ! -s conftest.err
 
5331
       } && test -s conftest.$ac_objext; then
 
5332
  ac_header_compiler=yes
 
5333
else
 
5334
  echo "$as_me: failed program was:" >&5
 
5335
sed 's/^/| /' conftest.$ac_ext >&5
 
5336
 
 
5337
        ac_header_compiler=no
 
5338
fi
 
5339
 
 
5340
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5341
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
5342
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
5343
 
 
5344
# Is the header present?
 
5345
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
5346
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
5347
cat >conftest.$ac_ext <<_ACEOF
 
5348
/* confdefs.h.  */
 
5349
_ACEOF
 
5350
cat confdefs.h >>conftest.$ac_ext
 
5351
cat >>conftest.$ac_ext <<_ACEOF
 
5352
/* end confdefs.h.  */
 
5353
#include <$ac_header>
 
5354
_ACEOF
 
5355
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
5356
case "(($ac_try" in
 
5357
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5358
  *) ac_try_echo=$ac_try;;
 
5359
esac
 
5360
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5361
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
5362
  ac_status=$?
 
5363
  grep -v '^ *+' conftest.er1 >conftest.err
 
5364
  rm -f conftest.er1
 
5365
  cat conftest.err >&5
 
5366
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5367
  (exit $ac_status); } >/dev/null && {
 
5368
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
5369
         test ! -s conftest.err
 
5370
       }; then
 
5371
  ac_header_preproc=yes
 
5372
else
 
5373
  echo "$as_me: failed program was:" >&5
 
5374
sed 's/^/| /' conftest.$ac_ext >&5
 
5375
 
 
5376
  ac_header_preproc=no
 
5377
fi
 
5378
 
 
5379
rm -f conftest.err conftest.$ac_ext
 
5380
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
5381
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
5382
 
 
5383
# So?  What about this header?
 
5384
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
5385
  yes:no: )
 
5386
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
5387
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
5388
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
5389
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
5390
    ac_header_preproc=yes
 
5391
    ;;
 
5392
  no:yes:* )
 
5393
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
5394
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
5395
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
5396
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
5397
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
5398
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
5399
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
5400
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
5401
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
5402
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
5403
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
5404
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
5405
    ( cat <<\_ASBOX
 
5406
## ------------------------------------ ##
 
5407
## Report this to tech-talk@aps.anl.gov ##
 
5408
## ------------------------------------ ##
 
5409
_ASBOX
 
5410
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
5411
    ;;
 
5412
esac
 
5413
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
5414
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
5415
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
5416
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5417
else
 
5418
  eval "$as_ac_Header=\$ac_header_preproc"
 
5419
fi
 
5420
ac_res=`eval echo '${'$as_ac_Header'}'`
 
5421
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5422
echo "${ECHO_T}$ac_res" >&6; }
 
5423
 
 
5424
fi
 
5425
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
5426
  cat >>confdefs.h <<_ACEOF
 
5427
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
5428
_ACEOF
 
5429
 
 
5430
fi
 
5431
 
 
5432
done
 
5433
 
 
5434
 
 
5435
 
 
5436
for ac_func in fork vfork
 
5437
do
 
5438
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
5439
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
5440
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
5441
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
5442
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5443
else
 
5444
  cat >conftest.$ac_ext <<_ACEOF
 
5445
/* confdefs.h.  */
 
5446
_ACEOF
 
5447
cat confdefs.h >>conftest.$ac_ext
 
5448
cat >>conftest.$ac_ext <<_ACEOF
 
5449
/* end confdefs.h.  */
 
5450
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
5451
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5452
#define $ac_func innocuous_$ac_func
 
5453
 
 
5454
/* System header to define __stub macros and hopefully few prototypes,
 
5455
    which can conflict with char $ac_func (); below.
 
5456
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5457
    <limits.h> exists even on freestanding compilers.  */
 
5458
 
 
5459
#ifdef __STDC__
 
5460
# include <limits.h>
 
5461
#else
 
5462
# include <assert.h>
 
5463
#endif
 
5464
 
 
5465
#undef $ac_func
 
5466
 
 
5467
/* Override any GCC internal prototype to avoid an error.
 
5468
   Use char because int might match the return type of a GCC
 
5469
   builtin and then its argument prototype would still apply.  */
 
5470
#ifdef __cplusplus
 
5471
extern "C"
 
5472
#endif
 
5473
char $ac_func ();
 
5474
/* The GNU C library defines this for functions which it implements
 
5475
    to always fail with ENOSYS.  Some functions are actually named
 
5476
    something starting with __ and the normal name is an alias.  */
 
5477
#if defined __stub_$ac_func || defined __stub___$ac_func
 
5478
choke me
 
5479
#endif
 
5480
 
 
5481
int
 
5482
main ()
 
5483
{
 
5484
return $ac_func ();
 
5485
  ;
 
5486
  return 0;
 
5487
}
 
5488
_ACEOF
 
5489
rm -f conftest.$ac_objext conftest$ac_exeext
 
5490
if { (ac_try="$ac_link"
 
5491
case "(($ac_try" in
 
5492
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5493
  *) ac_try_echo=$ac_try;;
 
5494
esac
 
5495
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5496
  (eval "$ac_link") 2>conftest.er1
 
5497
  ac_status=$?
 
5498
  grep -v '^ *+' conftest.er1 >conftest.err
 
5499
  rm -f conftest.er1
 
5500
  cat conftest.err >&5
 
5501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5502
  (exit $ac_status); } && {
 
5503
         test -z "$ac_c_werror_flag" ||
 
5504
         test ! -s conftest.err
 
5505
       } && test -s conftest$ac_exeext &&
 
5506
       $as_test_x conftest$ac_exeext; then
 
5507
  eval "$as_ac_var=yes"
 
5508
else
 
5509
  echo "$as_me: failed program was:" >&5
 
5510
sed 's/^/| /' conftest.$ac_ext >&5
 
5511
 
 
5512
        eval "$as_ac_var=no"
 
5513
fi
 
5514
 
 
5515
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
5516
      conftest$ac_exeext conftest.$ac_ext
 
5517
fi
 
5518
ac_res=`eval echo '${'$as_ac_var'}'`
 
5519
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
5520
echo "${ECHO_T}$ac_res" >&6; }
 
5521
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
5522
  cat >>confdefs.h <<_ACEOF
 
5523
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
5524
_ACEOF
 
5525
 
 
5526
fi
 
5527
done
 
5528
 
 
5529
if test "x$ac_cv_func_fork" = xyes; then
 
5530
  { echo "$as_me:$LINENO: checking for working fork" >&5
 
5531
echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
 
5532
if test "${ac_cv_func_fork_works+set}" = set; then
 
5533
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5534
else
 
5535
  if test "$cross_compiling" = yes; then
 
5536
  ac_cv_func_fork_works=cross
 
5537
else
 
5538
  cat >conftest.$ac_ext <<_ACEOF
 
5539
/* confdefs.h.  */
 
5540
_ACEOF
 
5541
cat confdefs.h >>conftest.$ac_ext
 
5542
cat >>conftest.$ac_ext <<_ACEOF
 
5543
/* end confdefs.h.  */
 
5544
$ac_includes_default
 
5545
int
 
5546
main ()
 
5547
{
 
5548
 
 
5549
          /* By Ruediger Kuhlmann. */
 
5550
          return fork () < 0;
 
5551
 
 
5552
  ;
 
5553
  return 0;
 
5554
}
 
5555
_ACEOF
 
5556
rm -f conftest$ac_exeext
 
5557
if { (ac_try="$ac_link"
 
5558
case "(($ac_try" in
 
5559
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5560
  *) ac_try_echo=$ac_try;;
 
5561
esac
 
5562
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5563
  (eval "$ac_link") 2>&5
 
5564
  ac_status=$?
 
5565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5566
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5567
  { (case "(($ac_try" in
 
5568
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5569
  *) ac_try_echo=$ac_try;;
 
5570
esac
 
5571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5572
  (eval "$ac_try") 2>&5
 
5573
  ac_status=$?
 
5574
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5575
  (exit $ac_status); }; }; then
 
5576
  ac_cv_func_fork_works=yes
 
5577
else
 
5578
  echo "$as_me: program exited with status $ac_status" >&5
 
5579
echo "$as_me: failed program was:" >&5
 
5580
sed 's/^/| /' conftest.$ac_ext >&5
 
5581
 
 
5582
( exit $ac_status )
 
5583
ac_cv_func_fork_works=no
 
5584
fi
 
5585
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5586
fi
 
5587
 
 
5588
 
 
5589
fi
 
5590
{ echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
 
5591
echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
 
5592
 
 
5593
else
 
5594
  ac_cv_func_fork_works=$ac_cv_func_fork
 
5595
fi
 
5596
if test "x$ac_cv_func_fork_works" = xcross; then
 
5597
  case $host in
 
5598
    *-*-amigaos* | *-*-msdosdjgpp*)
 
5599
      # Override, as these systems have only a dummy fork() stub
 
5600
      ac_cv_func_fork_works=no
 
5601
      ;;
 
5602
    *)
 
5603
      ac_cv_func_fork_works=yes
 
5604
      ;;
 
5605
  esac
 
5606
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
 
5607
echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
 
5608
fi
 
5609
ac_cv_func_vfork_works=$ac_cv_func_vfork
 
5610
if test "x$ac_cv_func_vfork" = xyes; then
 
5611
  { echo "$as_me:$LINENO: checking for working vfork" >&5
 
5612
echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
 
5613
if test "${ac_cv_func_vfork_works+set}" = set; then
 
5614
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5615
else
 
5616
  if test "$cross_compiling" = yes; then
 
5617
  ac_cv_func_vfork_works=cross
 
5618
else
 
5619
  cat >conftest.$ac_ext <<_ACEOF
 
5620
/* confdefs.h.  */
 
5621
_ACEOF
 
5622
cat confdefs.h >>conftest.$ac_ext
 
5623
cat >>conftest.$ac_ext <<_ACEOF
 
5624
/* end confdefs.h.  */
 
5625
/* Thanks to Paul Eggert for this test.  */
 
5626
$ac_includes_default
 
5627
#include <sys/wait.h>
 
5628
#ifdef HAVE_VFORK_H
 
5629
# include <vfork.h>
 
5630
#endif
 
5631
/* On some sparc systems, changes by the child to local and incoming
 
5632
   argument registers are propagated back to the parent.  The compiler
 
5633
   is told about this with #include <vfork.h>, but some compilers
 
5634
   (e.g. gcc -O) don't grok <vfork.h>.  Test for this by using a
 
5635
   static variable whose address is put into a register that is
 
5636
   clobbered by the vfork.  */
 
5637
static void
 
5638
#ifdef __cplusplus
 
5639
sparc_address_test (int arg)
 
5640
# else
 
5641
sparc_address_test (arg) int arg;
 
5642
#endif
 
5643
{
 
5644
  static pid_t child;
 
5645
  if (!child) {
 
5646
    child = vfork ();
 
5647
    if (child < 0) {
 
5648
      perror ("vfork");
 
5649
      _exit(2);
 
5650
    }
 
5651
    if (!child) {
 
5652
      arg = getpid();
 
5653
      write(-1, "", 0);
 
5654
      _exit (arg);
 
5655
    }
 
5656
  }
 
5657
}
 
5658
 
 
5659
int
 
5660
main ()
 
5661
{
 
5662
  pid_t parent = getpid ();
 
5663
  pid_t child;
 
5664
 
 
5665
  sparc_address_test (0);
 
5666
 
 
5667
  child = vfork ();
 
5668
 
 
5669
  if (child == 0) {
 
5670
    /* Here is another test for sparc vfork register problems.  This
 
5671
       test uses lots of local variables, at least as many local
 
5672
       variables as main has allocated so far including compiler
 
5673
       temporaries.  4 locals are enough for gcc 1.40.3 on a Solaris
 
5674
       4.1.3 sparc, but we use 8 to be safe.  A buggy compiler should
 
5675
       reuse the register of parent for one of the local variables,
 
5676
       since it will think that parent can't possibly be used any more
 
5677
       in this routine.  Assigning to the local variable will thus
 
5678
       munge parent in the parent process.  */
 
5679
    pid_t
 
5680
      p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
 
5681
      p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
 
5682
    /* Convince the compiler that p..p7 are live; otherwise, it might
 
5683
       use the same hardware register for all 8 local variables.  */
 
5684
    if (p != p1 || p != p2 || p != p3 || p != p4
 
5685
        || p != p5 || p != p6 || p != p7)
 
5686
      _exit(1);
 
5687
 
 
5688
    /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
 
5689
       from child file descriptors.  If the child closes a descriptor
 
5690
       before it execs or exits, this munges the parent's descriptor
 
5691
       as well.  Test for this by closing stdout in the child.  */
 
5692
    _exit(close(fileno(stdout)) != 0);
 
5693
  } else {
 
5694
    int status;
 
5695
    struct stat st;
 
5696
 
 
5697
    while (wait(&status) != child)
 
5698
      ;
 
5699
    return (
 
5700
         /* Was there some problem with vforking?  */
 
5701
         child < 0
 
5702
 
 
5703
         /* Did the child fail?  (This shouldn't happen.)  */
 
5704
         || status
 
5705
 
 
5706
         /* Did the vfork/compiler bug occur?  */
 
5707
         || parent != getpid()
 
5708
 
 
5709
         /* Did the file descriptor bug occur?  */
 
5710
         || fstat(fileno(stdout), &st) != 0
 
5711
         );
 
5712
  }
 
5713
}
 
5714
_ACEOF
 
5715
rm -f conftest$ac_exeext
 
5716
if { (ac_try="$ac_link"
 
5717
case "(($ac_try" in
 
5718
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5719
  *) ac_try_echo=$ac_try;;
 
5720
esac
 
5721
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5722
  (eval "$ac_link") 2>&5
 
5723
  ac_status=$?
 
5724
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5725
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5726
  { (case "(($ac_try" in
 
5727
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5728
  *) ac_try_echo=$ac_try;;
 
5729
esac
 
5730
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5731
  (eval "$ac_try") 2>&5
 
5732
  ac_status=$?
 
5733
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5734
  (exit $ac_status); }; }; then
 
5735
  ac_cv_func_vfork_works=yes
 
5736
else
 
5737
  echo "$as_me: program exited with status $ac_status" >&5
 
5738
echo "$as_me: failed program was:" >&5
 
5739
sed 's/^/| /' conftest.$ac_ext >&5
 
5740
 
 
5741
( exit $ac_status )
 
5742
ac_cv_func_vfork_works=no
 
5743
fi
 
5744
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5745
fi
 
5746
 
 
5747
 
 
5748
fi
 
5749
{ echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
 
5750
echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
 
5751
 
 
5752
fi;
 
5753
if test "x$ac_cv_func_fork_works" = xcross; then
 
5754
  ac_cv_func_vfork_works=$ac_cv_func_vfork
 
5755
  { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
 
5756
echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
 
5757
fi
 
5758
 
 
5759
if test "x$ac_cv_func_vfork_works" = xyes; then
 
5760
 
 
5761
cat >>confdefs.h <<\_ACEOF
 
5762
#define HAVE_WORKING_VFORK 1
 
5763
_ACEOF
 
5764
 
 
5765
else
 
5766
 
 
5767
cat >>confdefs.h <<\_ACEOF
 
5768
#define vfork fork
 
5769
_ACEOF
 
5770
 
 
5771
fi
 
5772
if test "x$ac_cv_func_fork_works" = xyes; then
 
5773
 
 
5774
cat >>confdefs.h <<\_ACEOF
 
5775
#define HAVE_WORKING_FORK 1
 
5776
_ACEOF
 
5777
 
 
5778
fi
 
5779
 
 
5780
{ echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
 
5781
echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
 
5782
if test "${ac_cv_type_getgroups+set}" = set; then
 
5783
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5784
else
 
5785
  if test "$cross_compiling" = yes; then
 
5786
  ac_cv_type_getgroups=cross
 
5787
else
 
5788
  cat >conftest.$ac_ext <<_ACEOF
 
5789
/* confdefs.h.  */
 
5790
_ACEOF
 
5791
cat confdefs.h >>conftest.$ac_ext
 
5792
cat >>conftest.$ac_ext <<_ACEOF
 
5793
/* end confdefs.h.  */
 
5794
/* Thanks to Mike Rendell for this test.  */
 
5795
$ac_includes_default
 
5796
#define NGID 256
 
5797
#undef MAX
 
5798
#define MAX(x, y) ((x) > (y) ? (x) : (y))
 
5799
 
 
5800
int
 
5801
main ()
 
5802
{
 
5803
  gid_t gidset[NGID];
 
5804
  int i, n;
 
5805
  union { gid_t gval; long int lval; }  val;
 
5806
 
 
5807
  val.lval = -1;
 
5808
  for (i = 0; i < NGID; i++)
 
5809
    gidset[i] = val.gval;
 
5810
  n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
 
5811
                 gidset);
 
5812
  /* Exit non-zero if getgroups seems to require an array of ints.  This
 
5813
     happens when gid_t is short int but getgroups modifies an array
 
5814
     of ints.  */
 
5815
  return n > 0 && gidset[n] != val.gval;
 
5816
}
 
5817
_ACEOF
 
5818
rm -f conftest$ac_exeext
 
5819
if { (ac_try="$ac_link"
 
5820
case "(($ac_try" in
 
5821
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5822
  *) ac_try_echo=$ac_try;;
 
5823
esac
 
5824
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5825
  (eval "$ac_link") 2>&5
 
5826
  ac_status=$?
 
5827
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5828
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
5829
  { (case "(($ac_try" in
 
5830
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5831
  *) ac_try_echo=$ac_try;;
 
5832
esac
 
5833
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5834
  (eval "$ac_try") 2>&5
 
5835
  ac_status=$?
 
5836
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5837
  (exit $ac_status); }; }; then
 
5838
  ac_cv_type_getgroups=gid_t
 
5839
else
 
5840
  echo "$as_me: program exited with status $ac_status" >&5
 
5841
echo "$as_me: failed program was:" >&5
 
5842
sed 's/^/| /' conftest.$ac_ext >&5
 
5843
 
 
5844
( exit $ac_status )
 
5845
ac_cv_type_getgroups=int
 
5846
fi
 
5847
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
5848
fi
 
5849
 
 
5850
 
 
5851
if test $ac_cv_type_getgroups = cross; then
 
5852
        cat >conftest.$ac_ext <<_ACEOF
 
5853
/* confdefs.h.  */
 
5854
_ACEOF
 
5855
cat confdefs.h >>conftest.$ac_ext
 
5856
cat >>conftest.$ac_ext <<_ACEOF
 
5857
/* end confdefs.h.  */
 
5858
#include <unistd.h>
 
5859
 
 
5860
_ACEOF
 
5861
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
5862
  $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
 
5863
  ac_cv_type_getgroups=gid_t
 
5864
else
 
5865
  ac_cv_type_getgroups=int
 
5866
fi
 
5867
rm -f conftest*
 
5868
 
 
5869
fi
 
5870
fi
 
5871
{ echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
 
5872
echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
 
5873
 
 
5874
cat >>confdefs.h <<_ACEOF
 
5875
#define GETGROUPS_T $ac_cv_type_getgroups
 
5876
_ACEOF
 
5877
 
 
5878
 
 
5879
{ echo "$as_me:$LINENO: checking for size_t" >&5
 
5880
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
 
5881
if test "${ac_cv_type_size_t+set}" = set; then
 
5882
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5883
else
 
5884
  cat >conftest.$ac_ext <<_ACEOF
 
5885
/* confdefs.h.  */
 
5886
_ACEOF
 
5887
cat confdefs.h >>conftest.$ac_ext
 
5888
cat >>conftest.$ac_ext <<_ACEOF
 
5889
/* end confdefs.h.  */
 
5890
$ac_includes_default
 
5891
typedef size_t ac__type_new_;
 
5892
int
 
5893
main ()
 
5894
{
 
5895
if ((ac__type_new_ *) 0)
 
5896
  return 0;
 
5897
if (sizeof (ac__type_new_))
 
5898
  return 0;
 
5899
  ;
 
5900
  return 0;
 
5901
}
 
5902
_ACEOF
 
5903
rm -f conftest.$ac_objext
 
5904
if { (ac_try="$ac_compile"
 
5905
case "(($ac_try" in
 
5906
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5907
  *) ac_try_echo=$ac_try;;
 
5908
esac
 
5909
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5910
  (eval "$ac_compile") 2>conftest.er1
 
5911
  ac_status=$?
 
5912
  grep -v '^ *+' conftest.er1 >conftest.err
 
5913
  rm -f conftest.er1
 
5914
  cat conftest.err >&5
 
5915
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
5916
  (exit $ac_status); } && {
 
5917
         test -z "$ac_c_werror_flag" ||
 
5918
         test ! -s conftest.err
 
5919
       } && test -s conftest.$ac_objext; then
 
5920
  ac_cv_type_size_t=yes
 
5921
else
 
5922
  echo "$as_me: failed program was:" >&5
 
5923
sed 's/^/| /' conftest.$ac_ext >&5
 
5924
 
 
5925
        ac_cv_type_size_t=no
 
5926
fi
 
5927
 
 
5928
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
5929
fi
 
5930
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
 
5931
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
 
5932
if test $ac_cv_type_size_t = yes; then
 
5933
  :
 
5934
else
 
5935
 
 
5936
cat >>confdefs.h <<_ACEOF
 
5937
#define size_t unsigned int
 
5938
_ACEOF
 
5939
 
 
5940
fi
 
5941
 
 
5942
{ echo "$as_me:$LINENO: checking for getgroups" >&5
 
5943
echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
 
5944
if test "${ac_cv_func_getgroups+set}" = set; then
 
5945
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
5946
else
 
5947
  cat >conftest.$ac_ext <<_ACEOF
 
5948
/* confdefs.h.  */
 
5949
_ACEOF
 
5950
cat confdefs.h >>conftest.$ac_ext
 
5951
cat >>conftest.$ac_ext <<_ACEOF
 
5952
/* end confdefs.h.  */
 
5953
/* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
 
5954
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
5955
#define getgroups innocuous_getgroups
 
5956
 
 
5957
/* System header to define __stub macros and hopefully few prototypes,
 
5958
    which can conflict with char getgroups (); below.
 
5959
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
5960
    <limits.h> exists even on freestanding compilers.  */
 
5961
 
 
5962
#ifdef __STDC__
 
5963
# include <limits.h>
 
5964
#else
 
5965
# include <assert.h>
 
5966
#endif
 
5967
 
 
5968
#undef getgroups
 
5969
 
 
5970
/* Override any GCC internal prototype to avoid an error.
 
5971
   Use char because int might match the return type of a GCC
 
5972
   builtin and then its argument prototype would still apply.  */
 
5973
#ifdef __cplusplus
 
5974
extern "C"
 
5975
#endif
 
5976
char getgroups ();
 
5977
/* The GNU C library defines this for functions which it implements
 
5978
    to always fail with ENOSYS.  Some functions are actually named
 
5979
    something starting with __ and the normal name is an alias.  */
 
5980
#if defined __stub_getgroups || defined __stub___getgroups
 
5981
choke me
 
5982
#endif
 
5983
 
 
5984
int
 
5985
main ()
 
5986
{
 
5987
return getgroups ();
 
5988
  ;
 
5989
  return 0;
 
5990
}
 
5991
_ACEOF
 
5992
rm -f conftest.$ac_objext conftest$ac_exeext
 
5993
if { (ac_try="$ac_link"
 
5994
case "(($ac_try" in
 
5995
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
5996
  *) ac_try_echo=$ac_try;;
 
5997
esac
 
5998
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
5999
  (eval "$ac_link") 2>conftest.er1
 
6000
  ac_status=$?
 
6001
  grep -v '^ *+' conftest.er1 >conftest.err
 
6002
  rm -f conftest.er1
 
6003
  cat conftest.err >&5
 
6004
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6005
  (exit $ac_status); } && {
 
6006
         test -z "$ac_c_werror_flag" ||
 
6007
         test ! -s conftest.err
 
6008
       } && test -s conftest$ac_exeext &&
 
6009
       $as_test_x conftest$ac_exeext; then
 
6010
  ac_cv_func_getgroups=yes
 
6011
else
 
6012
  echo "$as_me: failed program was:" >&5
 
6013
sed 's/^/| /' conftest.$ac_ext >&5
 
6014
 
 
6015
        ac_cv_func_getgroups=no
 
6016
fi
 
6017
 
 
6018
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6019
      conftest$ac_exeext conftest.$ac_ext
 
6020
fi
 
6021
{ echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
 
6022
echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
 
6023
 
 
6024
 
 
6025
# If we don't yet have getgroups, see if it's in -lbsd.
 
6026
# This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
 
6027
ac_save_LIBS=$LIBS
 
6028
if test $ac_cv_func_getgroups = no; then
 
6029
  { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
 
6030
echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
 
6031
if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
 
6032
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6033
else
 
6034
  ac_check_lib_save_LIBS=$LIBS
 
6035
LIBS="-lbsd  $LIBS"
 
6036
cat >conftest.$ac_ext <<_ACEOF
 
6037
/* confdefs.h.  */
 
6038
_ACEOF
 
6039
cat confdefs.h >>conftest.$ac_ext
 
6040
cat >>conftest.$ac_ext <<_ACEOF
 
6041
/* end confdefs.h.  */
 
6042
 
 
6043
/* Override any GCC internal prototype to avoid an error.
 
6044
   Use char because int might match the return type of a GCC
 
6045
   builtin and then its argument prototype would still apply.  */
 
6046
#ifdef __cplusplus
 
6047
extern "C"
 
6048
#endif
 
6049
char getgroups ();
 
6050
int
 
6051
main ()
 
6052
{
 
6053
return getgroups ();
 
6054
  ;
 
6055
  return 0;
 
6056
}
 
6057
_ACEOF
 
6058
rm -f conftest.$ac_objext conftest$ac_exeext
 
6059
if { (ac_try="$ac_link"
 
6060
case "(($ac_try" in
 
6061
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6062
  *) ac_try_echo=$ac_try;;
 
6063
esac
 
6064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6065
  (eval "$ac_link") 2>conftest.er1
 
6066
  ac_status=$?
 
6067
  grep -v '^ *+' conftest.er1 >conftest.err
 
6068
  rm -f conftest.er1
 
6069
  cat conftest.err >&5
 
6070
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6071
  (exit $ac_status); } && {
 
6072
         test -z "$ac_c_werror_flag" ||
 
6073
         test ! -s conftest.err
 
6074
       } && test -s conftest$ac_exeext &&
 
6075
       $as_test_x conftest$ac_exeext; then
 
6076
  ac_cv_lib_bsd_getgroups=yes
 
6077
else
 
6078
  echo "$as_me: failed program was:" >&5
 
6079
sed 's/^/| /' conftest.$ac_ext >&5
 
6080
 
 
6081
        ac_cv_lib_bsd_getgroups=no
 
6082
fi
 
6083
 
 
6084
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6085
      conftest$ac_exeext conftest.$ac_ext
 
6086
LIBS=$ac_check_lib_save_LIBS
 
6087
fi
 
6088
{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
 
6089
echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
 
6090
if test $ac_cv_lib_bsd_getgroups = yes; then
 
6091
  GETGROUPS_LIB=-lbsd
 
6092
fi
 
6093
 
 
6094
fi
 
6095
 
 
6096
# Run the program to test the functionality of the system-supplied
 
6097
# getgroups function only if there is such a function.
 
6098
if test $ac_cv_func_getgroups = yes; then
 
6099
  { echo "$as_me:$LINENO: checking for working getgroups" >&5
 
6100
echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
 
6101
if test "${ac_cv_func_getgroups_works+set}" = set; then
 
6102
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6103
else
 
6104
  if test "$cross_compiling" = yes; then
 
6105
  ac_cv_func_getgroups_works=no
 
6106
else
 
6107
  cat >conftest.$ac_ext <<_ACEOF
 
6108
/* confdefs.h.  */
 
6109
_ACEOF
 
6110
cat confdefs.h >>conftest.$ac_ext
 
6111
cat >>conftest.$ac_ext <<_ACEOF
 
6112
/* end confdefs.h.  */
 
6113
$ac_includes_default
 
6114
int
 
6115
main ()
 
6116
{
 
6117
/* On Ultrix 4.3, getgroups (0, 0) always fails.  */
 
6118
       return getgroups (0, 0) == -1;
 
6119
  ;
 
6120
  return 0;
 
6121
}
 
6122
_ACEOF
 
6123
rm -f conftest$ac_exeext
 
6124
if { (ac_try="$ac_link"
 
6125
case "(($ac_try" in
 
6126
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6127
  *) ac_try_echo=$ac_try;;
 
6128
esac
 
6129
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6130
  (eval "$ac_link") 2>&5
 
6131
  ac_status=$?
 
6132
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6133
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6134
  { (case "(($ac_try" in
 
6135
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6136
  *) ac_try_echo=$ac_try;;
 
6137
esac
 
6138
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6139
  (eval "$ac_try") 2>&5
 
6140
  ac_status=$?
 
6141
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6142
  (exit $ac_status); }; }; then
 
6143
  ac_cv_func_getgroups_works=yes
 
6144
else
 
6145
  echo "$as_me: program exited with status $ac_status" >&5
 
6146
echo "$as_me: failed program was:" >&5
 
6147
sed 's/^/| /' conftest.$ac_ext >&5
 
6148
 
 
6149
( exit $ac_status )
 
6150
ac_cv_func_getgroups_works=no
 
6151
fi
 
6152
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6153
fi
 
6154
 
 
6155
 
 
6156
 
 
6157
fi
 
6158
{ echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
 
6159
echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
 
6160
  if test $ac_cv_func_getgroups_works = yes; then
 
6161
 
 
6162
cat >>confdefs.h <<\_ACEOF
 
6163
#define HAVE_GETGROUPS 1
 
6164
_ACEOF
 
6165
 
 
6166
  fi
 
6167
fi
 
6168
LIBS=$ac_save_LIBS
 
6169
 
 
6170
if test $ac_cv_c_compiler_gnu = yes; then
 
6171
    { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
 
6172
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
 
6173
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
 
6174
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6175
else
 
6176
    ac_pattern="Autoconf.*'x'"
 
6177
  cat >conftest.$ac_ext <<_ACEOF
 
6178
/* confdefs.h.  */
 
6179
_ACEOF
 
6180
cat confdefs.h >>conftest.$ac_ext
 
6181
cat >>conftest.$ac_ext <<_ACEOF
 
6182
/* end confdefs.h.  */
 
6183
#include <sgtty.h>
 
6184
Autoconf TIOCGETP
 
6185
_ACEOF
 
6186
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6187
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
6188
  ac_cv_prog_gcc_traditional=yes
 
6189
else
 
6190
  ac_cv_prog_gcc_traditional=no
 
6191
fi
 
6192
rm -f conftest*
 
6193
 
 
6194
 
 
6195
  if test $ac_cv_prog_gcc_traditional = no; then
 
6196
    cat >conftest.$ac_ext <<_ACEOF
 
6197
/* confdefs.h.  */
 
6198
_ACEOF
 
6199
cat confdefs.h >>conftest.$ac_ext
 
6200
cat >>conftest.$ac_ext <<_ACEOF
 
6201
/* end confdefs.h.  */
 
6202
#include <termio.h>
 
6203
Autoconf TCGETA
 
6204
_ACEOF
 
6205
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 
6206
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
 
6207
  ac_cv_prog_gcc_traditional=yes
 
6208
fi
 
6209
rm -f conftest*
 
6210
 
 
6211
  fi
 
6212
fi
 
6213
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
 
6214
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
 
6215
  if test $ac_cv_prog_gcc_traditional = yes; then
 
6216
    CC="$CC -traditional"
 
6217
  fi
 
6218
fi
 
6219
 
 
6220
 
 
6221
for ac_header in stdlib.h
 
6222
do
 
6223
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 
6224
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6225
  { echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6226
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6227
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6228
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6229
fi
 
6230
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6231
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6232
echo "${ECHO_T}$ac_res" >&6; }
 
6233
else
 
6234
  # Is the header compilable?
 
6235
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
 
6236
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
 
6237
cat >conftest.$ac_ext <<_ACEOF
 
6238
/* confdefs.h.  */
 
6239
_ACEOF
 
6240
cat confdefs.h >>conftest.$ac_ext
 
6241
cat >>conftest.$ac_ext <<_ACEOF
 
6242
/* end confdefs.h.  */
 
6243
$ac_includes_default
 
6244
#include <$ac_header>
 
6245
_ACEOF
 
6246
rm -f conftest.$ac_objext
 
6247
if { (ac_try="$ac_compile"
 
6248
case "(($ac_try" in
 
6249
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6250
  *) ac_try_echo=$ac_try;;
 
6251
esac
 
6252
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6253
  (eval "$ac_compile") 2>conftest.er1
 
6254
  ac_status=$?
 
6255
  grep -v '^ *+' conftest.er1 >conftest.err
 
6256
  rm -f conftest.er1
 
6257
  cat conftest.err >&5
 
6258
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6259
  (exit $ac_status); } && {
 
6260
         test -z "$ac_c_werror_flag" ||
 
6261
         test ! -s conftest.err
 
6262
       } && test -s conftest.$ac_objext; then
 
6263
  ac_header_compiler=yes
 
6264
else
 
6265
  echo "$as_me: failed program was:" >&5
 
6266
sed 's/^/| /' conftest.$ac_ext >&5
 
6267
 
 
6268
        ac_header_compiler=no
 
6269
fi
 
6270
 
 
6271
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6272
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 
6273
echo "${ECHO_T}$ac_header_compiler" >&6; }
 
6274
 
 
6275
# Is the header present?
 
6276
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
 
6277
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
 
6278
cat >conftest.$ac_ext <<_ACEOF
 
6279
/* confdefs.h.  */
 
6280
_ACEOF
 
6281
cat confdefs.h >>conftest.$ac_ext
 
6282
cat >>conftest.$ac_ext <<_ACEOF
 
6283
/* end confdefs.h.  */
 
6284
#include <$ac_header>
 
6285
_ACEOF
 
6286
if { (ac_try="$ac_cpp conftest.$ac_ext"
 
6287
case "(($ac_try" in
 
6288
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6289
  *) ac_try_echo=$ac_try;;
 
6290
esac
 
6291
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6292
  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
 
6293
  ac_status=$?
 
6294
  grep -v '^ *+' conftest.er1 >conftest.err
 
6295
  rm -f conftest.er1
 
6296
  cat conftest.err >&5
 
6297
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6298
  (exit $ac_status); } >/dev/null && {
 
6299
         test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
 
6300
         test ! -s conftest.err
 
6301
       }; then
 
6302
  ac_header_preproc=yes
 
6303
else
 
6304
  echo "$as_me: failed program was:" >&5
 
6305
sed 's/^/| /' conftest.$ac_ext >&5
 
6306
 
 
6307
  ac_header_preproc=no
 
6308
fi
 
6309
 
 
6310
rm -f conftest.err conftest.$ac_ext
 
6311
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 
6312
echo "${ECHO_T}$ac_header_preproc" >&6; }
 
6313
 
 
6314
# So?  What about this header?
 
6315
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 
6316
  yes:no: )
 
6317
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 
6318
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 
6319
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 
6320
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 
6321
    ac_header_preproc=yes
 
6322
    ;;
 
6323
  no:yes:* )
 
6324
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 
6325
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 
6326
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 
6327
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 
6328
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 
6329
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 
6330
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 
6331
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 
6332
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 
6333
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 
6334
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 
6335
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 
6336
    ( cat <<\_ASBOX
 
6337
## ------------------------------------ ##
 
6338
## Report this to tech-talk@aps.anl.gov ##
 
6339
## ------------------------------------ ##
 
6340
_ASBOX
 
6341
     ) | sed "s/^/$as_me: WARNING:     /" >&2
 
6342
    ;;
 
6343
esac
 
6344
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
 
6345
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
 
6346
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
 
6347
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6348
else
 
6349
  eval "$as_ac_Header=\$ac_header_preproc"
 
6350
fi
 
6351
ac_res=`eval echo '${'$as_ac_Header'}'`
 
6352
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6353
echo "${ECHO_T}$ac_res" >&6; }
 
6354
 
 
6355
fi
 
6356
if test `eval echo '${'$as_ac_Header'}'` = yes; then
 
6357
  cat >>confdefs.h <<_ACEOF
 
6358
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 
6359
_ACEOF
 
6360
 
 
6361
fi
 
6362
 
 
6363
done
 
6364
 
 
6365
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
 
6366
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
 
6367
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
 
6368
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6369
else
 
6370
  if test "$cross_compiling" = yes; then
 
6371
  ac_cv_func_malloc_0_nonnull=no
 
6372
else
 
6373
  cat >conftest.$ac_ext <<_ACEOF
 
6374
/* confdefs.h.  */
 
6375
_ACEOF
 
6376
cat confdefs.h >>conftest.$ac_ext
 
6377
cat >>conftest.$ac_ext <<_ACEOF
 
6378
/* end confdefs.h.  */
 
6379
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
 
6380
# include <stdlib.h>
 
6381
#else
 
6382
char *malloc ();
 
6383
#endif
 
6384
 
 
6385
int
 
6386
main ()
 
6387
{
 
6388
return ! malloc (0);
 
6389
  ;
 
6390
  return 0;
 
6391
}
 
6392
_ACEOF
 
6393
rm -f conftest$ac_exeext
 
6394
if { (ac_try="$ac_link"
 
6395
case "(($ac_try" in
 
6396
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6397
  *) ac_try_echo=$ac_try;;
 
6398
esac
 
6399
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6400
  (eval "$ac_link") 2>&5
 
6401
  ac_status=$?
 
6402
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6403
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6404
  { (case "(($ac_try" in
 
6405
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6406
  *) ac_try_echo=$ac_try;;
 
6407
esac
 
6408
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6409
  (eval "$ac_try") 2>&5
 
6410
  ac_status=$?
 
6411
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6412
  (exit $ac_status); }; }; then
 
6413
  ac_cv_func_malloc_0_nonnull=yes
 
6414
else
 
6415
  echo "$as_me: program exited with status $ac_status" >&5
 
6416
echo "$as_me: failed program was:" >&5
 
6417
sed 's/^/| /' conftest.$ac_ext >&5
 
6418
 
 
6419
( exit $ac_status )
 
6420
ac_cv_func_malloc_0_nonnull=no
 
6421
fi
 
6422
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6423
fi
 
6424
 
 
6425
 
 
6426
fi
 
6427
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
 
6428
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
 
6429
if test $ac_cv_func_malloc_0_nonnull = yes; then
 
6430
 
 
6431
cat >>confdefs.h <<\_ACEOF
 
6432
#define HAVE_MALLOC 1
 
6433
_ACEOF
 
6434
 
 
6435
else
 
6436
  cat >>confdefs.h <<\_ACEOF
 
6437
#define HAVE_MALLOC 0
 
6438
_ACEOF
 
6439
 
 
6440
   case " $LIBOBJS " in
 
6441
  *" malloc.$ac_objext "* ) ;;
 
6442
  *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
 
6443
 ;;
 
6444
esac
 
6445
 
 
6446
 
 
6447
cat >>confdefs.h <<\_ACEOF
 
6448
#define malloc rpl_malloc
 
6449
_ACEOF
 
6450
 
 
6451
fi
 
6452
 
 
6453
 
 
6454
 
 
6455
{ echo "$as_me:$LINENO: checking whether setpgrp takes no argument" >&5
 
6456
echo $ECHO_N "checking whether setpgrp takes no argument... $ECHO_C" >&6; }
 
6457
if test "${ac_cv_func_setpgrp_void+set}" = set; then
 
6458
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6459
else
 
6460
  if test "$cross_compiling" = yes; then
 
6461
  { { echo "$as_me:$LINENO: error: cannot check setpgrp when cross compiling" >&5
 
6462
echo "$as_me: error: cannot check setpgrp when cross compiling" >&2;}
 
6463
   { (exit 1); exit 1; }; }
 
6464
else
 
6465
  cat >conftest.$ac_ext <<_ACEOF
 
6466
/* confdefs.h.  */
 
6467
_ACEOF
 
6468
cat confdefs.h >>conftest.$ac_ext
 
6469
cat >>conftest.$ac_ext <<_ACEOF
 
6470
/* end confdefs.h.  */
 
6471
$ac_includes_default
 
6472
int
 
6473
main ()
 
6474
{
 
6475
/* If this system has a BSD-style setpgrp which takes arguments,
 
6476
  setpgrp(1, 1) will fail with ESRCH and return -1, in that case
 
6477
  exit successfully. */
 
6478
  return setpgrp (1,1) != -1;
 
6479
  ;
 
6480
  return 0;
 
6481
}
 
6482
_ACEOF
 
6483
rm -f conftest$ac_exeext
 
6484
if { (ac_try="$ac_link"
 
6485
case "(($ac_try" in
 
6486
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6487
  *) ac_try_echo=$ac_try;;
 
6488
esac
 
6489
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6490
  (eval "$ac_link") 2>&5
 
6491
  ac_status=$?
 
6492
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6493
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6494
  { (case "(($ac_try" in
 
6495
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6496
  *) ac_try_echo=$ac_try;;
 
6497
esac
 
6498
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6499
  (eval "$ac_try") 2>&5
 
6500
  ac_status=$?
 
6501
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6502
  (exit $ac_status); }; }; then
 
6503
  ac_cv_func_setpgrp_void=no
 
6504
else
 
6505
  echo "$as_me: program exited with status $ac_status" >&5
 
6506
echo "$as_me: failed program was:" >&5
 
6507
sed 's/^/| /' conftest.$ac_ext >&5
 
6508
 
 
6509
( exit $ac_status )
 
6510
ac_cv_func_setpgrp_void=yes
 
6511
fi
 
6512
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6513
fi
 
6514
 
 
6515
 
 
6516
fi
 
6517
{ echo "$as_me:$LINENO: result: $ac_cv_func_setpgrp_void" >&5
 
6518
echo "${ECHO_T}$ac_cv_func_setpgrp_void" >&6; }
 
6519
if test $ac_cv_func_setpgrp_void = yes; then
 
6520
 
 
6521
cat >>confdefs.h <<\_ACEOF
 
6522
#define SETPGRP_VOID 1
 
6523
_ACEOF
 
6524
 
 
6525
fi
 
6526
 
 
6527
{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
 
6528
echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
 
6529
if test "${ac_cv_type_signal+set}" = set; then
 
6530
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6531
else
 
6532
  cat >conftest.$ac_ext <<_ACEOF
 
6533
/* confdefs.h.  */
 
6534
_ACEOF
 
6535
cat confdefs.h >>conftest.$ac_ext
 
6536
cat >>conftest.$ac_ext <<_ACEOF
 
6537
/* end confdefs.h.  */
 
6538
#include <sys/types.h>
 
6539
#include <signal.h>
 
6540
 
 
6541
int
 
6542
main ()
 
6543
{
 
6544
return *(signal (0, 0)) (0) == 1;
 
6545
  ;
 
6546
  return 0;
 
6547
}
 
6548
_ACEOF
 
6549
rm -f conftest.$ac_objext
 
6550
if { (ac_try="$ac_compile"
 
6551
case "(($ac_try" in
 
6552
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6553
  *) ac_try_echo=$ac_try;;
 
6554
esac
 
6555
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6556
  (eval "$ac_compile") 2>conftest.er1
 
6557
  ac_status=$?
 
6558
  grep -v '^ *+' conftest.er1 >conftest.err
 
6559
  rm -f conftest.er1
 
6560
  cat conftest.err >&5
 
6561
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6562
  (exit $ac_status); } && {
 
6563
         test -z "$ac_c_werror_flag" ||
 
6564
         test ! -s conftest.err
 
6565
       } && test -s conftest.$ac_objext; then
 
6566
  ac_cv_type_signal=int
 
6567
else
 
6568
  echo "$as_me: failed program was:" >&5
 
6569
sed 's/^/| /' conftest.$ac_ext >&5
 
6570
 
 
6571
        ac_cv_type_signal=void
 
6572
fi
 
6573
 
 
6574
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
 
6575
fi
 
6576
{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
 
6577
echo "${ECHO_T}$ac_cv_type_signal" >&6; }
 
6578
 
 
6579
cat >>confdefs.h <<_ACEOF
 
6580
#define RETSIGTYPE $ac_cv_type_signal
 
6581
_ACEOF
 
6582
 
 
6583
 
 
6584
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
 
6585
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
 
6586
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
 
6587
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6588
else
 
6589
  rm -f conftest.sym conftest.file
 
6590
echo >conftest.file
 
6591
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
 
6592
  if test "$cross_compiling" = yes; then
 
6593
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
6594
else
 
6595
  cat >conftest.$ac_ext <<_ACEOF
 
6596
/* confdefs.h.  */
 
6597
_ACEOF
 
6598
cat confdefs.h >>conftest.$ac_ext
 
6599
cat >>conftest.$ac_ext <<_ACEOF
 
6600
/* end confdefs.h.  */
 
6601
$ac_includes_default
 
6602
int
 
6603
main ()
 
6604
{
 
6605
struct stat sbuf;
 
6606
     /* Linux will dereference the symlink and fail.
 
6607
        That is better in the sense that it means we will not
 
6608
        have to compile and use the lstat wrapper.  */
 
6609
     return lstat ("conftest.sym/", &sbuf) == 0;
 
6610
  ;
 
6611
  return 0;
 
6612
}
 
6613
_ACEOF
 
6614
rm -f conftest$ac_exeext
 
6615
if { (ac_try="$ac_link"
 
6616
case "(($ac_try" in
 
6617
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6618
  *) ac_try_echo=$ac_try;;
 
6619
esac
 
6620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6621
  (eval "$ac_link") 2>&5
 
6622
  ac_status=$?
 
6623
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6624
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6625
  { (case "(($ac_try" in
 
6626
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6627
  *) ac_try_echo=$ac_try;;
 
6628
esac
 
6629
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6630
  (eval "$ac_try") 2>&5
 
6631
  ac_status=$?
 
6632
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6633
  (exit $ac_status); }; }; then
 
6634
  ac_cv_func_lstat_dereferences_slashed_symlink=yes
 
6635
else
 
6636
  echo "$as_me: program exited with status $ac_status" >&5
 
6637
echo "$as_me: failed program was:" >&5
 
6638
sed 's/^/| /' conftest.$ac_ext >&5
 
6639
 
 
6640
( exit $ac_status )
 
6641
ac_cv_func_lstat_dereferences_slashed_symlink=no
 
6642
fi
 
6643
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6644
fi
 
6645
 
 
6646
 
 
6647
else
 
6648
  # If the `ln -s' command failed, then we probably don't even
 
6649
  # have an lstat function.
 
6650
  ac_cv_func_lstat_dereferences_slashed_symlink=no
 
6651
fi
 
6652
rm -f conftest.sym conftest.file
 
6653
 
 
6654
fi
 
6655
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
 
6656
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
 
6657
 
 
6658
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
 
6659
 
 
6660
cat >>confdefs.h <<_ACEOF
 
6661
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
 
6662
_ACEOF
 
6663
 
 
6664
 
 
6665
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
 
6666
  case " $LIBOBJS " in
 
6667
  *" lstat.$ac_objext "* ) ;;
 
6668
  *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
 
6669
 ;;
 
6670
esac
 
6671
 
 
6672
fi
 
6673
 
 
6674
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
 
6675
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
 
6676
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
 
6677
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6678
else
 
6679
  if test "$cross_compiling" = yes; then
 
6680
  ac_cv_func_stat_empty_string_bug=yes
 
6681
else
 
6682
  cat >conftest.$ac_ext <<_ACEOF
 
6683
/* confdefs.h.  */
 
6684
_ACEOF
 
6685
cat confdefs.h >>conftest.$ac_ext
 
6686
cat >>conftest.$ac_ext <<_ACEOF
 
6687
/* end confdefs.h.  */
 
6688
$ac_includes_default
 
6689
int
 
6690
main ()
 
6691
{
 
6692
struct stat sbuf;
 
6693
  return stat ("", &sbuf) == 0;
 
6694
  ;
 
6695
  return 0;
 
6696
}
 
6697
_ACEOF
 
6698
rm -f conftest$ac_exeext
 
6699
if { (ac_try="$ac_link"
 
6700
case "(($ac_try" in
 
6701
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6702
  *) ac_try_echo=$ac_try;;
 
6703
esac
 
6704
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6705
  (eval "$ac_link") 2>&5
 
6706
  ac_status=$?
 
6707
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6708
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 
6709
  { (case "(($ac_try" in
 
6710
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6711
  *) ac_try_echo=$ac_try;;
 
6712
esac
 
6713
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6714
  (eval "$ac_try") 2>&5
 
6715
  ac_status=$?
 
6716
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6717
  (exit $ac_status); }; }; then
 
6718
  ac_cv_func_stat_empty_string_bug=no
 
6719
else
 
6720
  echo "$as_me: program exited with status $ac_status" >&5
 
6721
echo "$as_me: failed program was:" >&5
 
6722
sed 's/^/| /' conftest.$ac_ext >&5
 
6723
 
 
6724
( exit $ac_status )
 
6725
ac_cv_func_stat_empty_string_bug=yes
 
6726
fi
 
6727
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 
6728
fi
 
6729
 
 
6730
 
 
6731
fi
 
6732
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
 
6733
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
 
6734
if test $ac_cv_func_stat_empty_string_bug = yes; then
 
6735
  case " $LIBOBJS " in
 
6736
  *" stat.$ac_objext "* ) ;;
 
6737
  *) LIBOBJS="$LIBOBJS stat.$ac_objext"
 
6738
 ;;
 
6739
esac
 
6740
 
 
6741
 
 
6742
cat >>confdefs.h <<_ACEOF
 
6743
#define HAVE_STAT_EMPTY_STRING_BUG 1
 
6744
_ACEOF
 
6745
 
 
6746
fi
 
6747
 
 
6748
 
 
6749
for ac_func in strftime
 
6750
do
 
6751
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6752
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6753
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6754
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6755
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6756
else
 
6757
  cat >conftest.$ac_ext <<_ACEOF
 
6758
/* confdefs.h.  */
 
6759
_ACEOF
 
6760
cat confdefs.h >>conftest.$ac_ext
 
6761
cat >>conftest.$ac_ext <<_ACEOF
 
6762
/* end confdefs.h.  */
 
6763
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6764
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6765
#define $ac_func innocuous_$ac_func
 
6766
 
 
6767
/* System header to define __stub macros and hopefully few prototypes,
 
6768
    which can conflict with char $ac_func (); below.
 
6769
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6770
    <limits.h> exists even on freestanding compilers.  */
 
6771
 
 
6772
#ifdef __STDC__
 
6773
# include <limits.h>
 
6774
#else
 
6775
# include <assert.h>
 
6776
#endif
 
6777
 
 
6778
#undef $ac_func
 
6779
 
 
6780
/* Override any GCC internal prototype to avoid an error.
 
6781
   Use char because int might match the return type of a GCC
 
6782
   builtin and then its argument prototype would still apply.  */
 
6783
#ifdef __cplusplus
 
6784
extern "C"
 
6785
#endif
 
6786
char $ac_func ();
 
6787
/* The GNU C library defines this for functions which it implements
 
6788
    to always fail with ENOSYS.  Some functions are actually named
 
6789
    something starting with __ and the normal name is an alias.  */
 
6790
#if defined __stub_$ac_func || defined __stub___$ac_func
 
6791
choke me
 
6792
#endif
 
6793
 
 
6794
int
 
6795
main ()
 
6796
{
 
6797
return $ac_func ();
 
6798
  ;
 
6799
  return 0;
 
6800
}
 
6801
_ACEOF
 
6802
rm -f conftest.$ac_objext conftest$ac_exeext
 
6803
if { (ac_try="$ac_link"
 
6804
case "(($ac_try" in
 
6805
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6806
  *) ac_try_echo=$ac_try;;
 
6807
esac
 
6808
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6809
  (eval "$ac_link") 2>conftest.er1
 
6810
  ac_status=$?
 
6811
  grep -v '^ *+' conftest.er1 >conftest.err
 
6812
  rm -f conftest.er1
 
6813
  cat conftest.err >&5
 
6814
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6815
  (exit $ac_status); } && {
 
6816
         test -z "$ac_c_werror_flag" ||
 
6817
         test ! -s conftest.err
 
6818
       } && test -s conftest$ac_exeext &&
 
6819
       $as_test_x conftest$ac_exeext; then
 
6820
  eval "$as_ac_var=yes"
 
6821
else
 
6822
  echo "$as_me: failed program was:" >&5
 
6823
sed 's/^/| /' conftest.$ac_ext >&5
 
6824
 
 
6825
        eval "$as_ac_var=no"
 
6826
fi
 
6827
 
 
6828
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6829
      conftest$ac_exeext conftest.$ac_ext
 
6830
fi
 
6831
ac_res=`eval echo '${'$as_ac_var'}'`
 
6832
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
6833
echo "${ECHO_T}$ac_res" >&6; }
 
6834
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
6835
  cat >>confdefs.h <<_ACEOF
 
6836
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
6837
_ACEOF
 
6838
 
 
6839
else
 
6840
  # strftime is in -lintl on SCO UNIX.
 
6841
{ echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
 
6842
echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
 
6843
if test "${ac_cv_lib_intl_strftime+set}" = set; then
 
6844
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6845
else
 
6846
  ac_check_lib_save_LIBS=$LIBS
 
6847
LIBS="-lintl  $LIBS"
 
6848
cat >conftest.$ac_ext <<_ACEOF
 
6849
/* confdefs.h.  */
 
6850
_ACEOF
 
6851
cat confdefs.h >>conftest.$ac_ext
 
6852
cat >>conftest.$ac_ext <<_ACEOF
 
6853
/* end confdefs.h.  */
 
6854
 
 
6855
/* Override any GCC internal prototype to avoid an error.
 
6856
   Use char because int might match the return type of a GCC
 
6857
   builtin and then its argument prototype would still apply.  */
 
6858
#ifdef __cplusplus
 
6859
extern "C"
 
6860
#endif
 
6861
char strftime ();
 
6862
int
 
6863
main ()
 
6864
{
 
6865
return strftime ();
 
6866
  ;
 
6867
  return 0;
 
6868
}
 
6869
_ACEOF
 
6870
rm -f conftest.$ac_objext conftest$ac_exeext
 
6871
if { (ac_try="$ac_link"
 
6872
case "(($ac_try" in
 
6873
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6874
  *) ac_try_echo=$ac_try;;
 
6875
esac
 
6876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6877
  (eval "$ac_link") 2>conftest.er1
 
6878
  ac_status=$?
 
6879
  grep -v '^ *+' conftest.er1 >conftest.err
 
6880
  rm -f conftest.er1
 
6881
  cat conftest.err >&5
 
6882
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6883
  (exit $ac_status); } && {
 
6884
         test -z "$ac_c_werror_flag" ||
 
6885
         test ! -s conftest.err
 
6886
       } && test -s conftest$ac_exeext &&
 
6887
       $as_test_x conftest$ac_exeext; then
 
6888
  ac_cv_lib_intl_strftime=yes
 
6889
else
 
6890
  echo "$as_me: failed program was:" >&5
 
6891
sed 's/^/| /' conftest.$ac_ext >&5
 
6892
 
 
6893
        ac_cv_lib_intl_strftime=no
 
6894
fi
 
6895
 
 
6896
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6897
      conftest$ac_exeext conftest.$ac_ext
 
6898
LIBS=$ac_check_lib_save_LIBS
 
6899
fi
 
6900
{ echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
 
6901
echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
 
6902
if test $ac_cv_lib_intl_strftime = yes; then
 
6903
  cat >>confdefs.h <<\_ACEOF
 
6904
#define HAVE_STRFTIME 1
 
6905
_ACEOF
 
6906
 
 
6907
LIBS="-lintl $LIBS"
 
6908
fi
 
6909
 
 
6910
fi
 
6911
done
 
6912
 
 
6913
 
 
6914
 
 
6915
 
 
6916
 
 
6917
for ac_func in localtime_r socket strdup strerror
 
6918
do
 
6919
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
 
6920
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
 
6921
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
 
6922
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
 
6923
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
6924
else
 
6925
  cat >conftest.$ac_ext <<_ACEOF
 
6926
/* confdefs.h.  */
 
6927
_ACEOF
 
6928
cat confdefs.h >>conftest.$ac_ext
 
6929
cat >>conftest.$ac_ext <<_ACEOF
 
6930
/* end confdefs.h.  */
 
6931
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
 
6932
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 
6933
#define $ac_func innocuous_$ac_func
 
6934
 
 
6935
/* System header to define __stub macros and hopefully few prototypes,
 
6936
    which can conflict with char $ac_func (); below.
 
6937
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 
6938
    <limits.h> exists even on freestanding compilers.  */
 
6939
 
 
6940
#ifdef __STDC__
 
6941
# include <limits.h>
 
6942
#else
 
6943
# include <assert.h>
 
6944
#endif
 
6945
 
 
6946
#undef $ac_func
 
6947
 
 
6948
/* Override any GCC internal prototype to avoid an error.
 
6949
   Use char because int might match the return type of a GCC
 
6950
   builtin and then its argument prototype would still apply.  */
 
6951
#ifdef __cplusplus
 
6952
extern "C"
 
6953
#endif
 
6954
char $ac_func ();
 
6955
/* The GNU C library defines this for functions which it implements
 
6956
    to always fail with ENOSYS.  Some functions are actually named
 
6957
    something starting with __ and the normal name is an alias.  */
 
6958
#if defined __stub_$ac_func || defined __stub___$ac_func
 
6959
choke me
 
6960
#endif
 
6961
 
 
6962
int
 
6963
main ()
 
6964
{
 
6965
return $ac_func ();
 
6966
  ;
 
6967
  return 0;
 
6968
}
 
6969
_ACEOF
 
6970
rm -f conftest.$ac_objext conftest$ac_exeext
 
6971
if { (ac_try="$ac_link"
 
6972
case "(($ac_try" in
 
6973
  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
 
6974
  *) ac_try_echo=$ac_try;;
 
6975
esac
 
6976
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
 
6977
  (eval "$ac_link") 2>conftest.er1
 
6978
  ac_status=$?
 
6979
  grep -v '^ *+' conftest.er1 >conftest.err
 
6980
  rm -f conftest.er1
 
6981
  cat conftest.err >&5
 
6982
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
 
6983
  (exit $ac_status); } && {
 
6984
         test -z "$ac_c_werror_flag" ||
 
6985
         test ! -s conftest.err
 
6986
       } && test -s conftest$ac_exeext &&
 
6987
       $as_test_x conftest$ac_exeext; then
 
6988
  eval "$as_ac_var=yes"
 
6989
else
 
6990
  echo "$as_me: failed program was:" >&5
 
6991
sed 's/^/| /' conftest.$ac_ext >&5
 
6992
 
 
6993
        eval "$as_ac_var=no"
 
6994
fi
 
6995
 
 
6996
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
 
6997
      conftest$ac_exeext conftest.$ac_ext
 
6998
fi
 
6999
ac_res=`eval echo '${'$as_ac_var'}'`
 
7000
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7001
echo "${ECHO_T}$ac_res" >&6; }
 
7002
if test `eval echo '${'$as_ac_var'}'` = yes; then
 
7003
  cat >>confdefs.h <<_ACEOF
 
7004
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
 
7005
_ACEOF
 
7006
 
 
7007
else
 
7008
  { { echo "$as_me:$LINENO: error: Missing required function(s)" >&5
 
7009
echo "$as_me: error: Missing required function(s)" >&2;}
 
7010
   { (exit 1); exit 1; }; }
 
7011
fi
 
7012
done
 
7013
 
 
7014
 
 
7015
# Add configure option for access from anywhere
 
7016
# Check whether --enable-access-from-anywhere was given.
 
7017
if test "${enable_access_from_anywhere+set}" = set; then
 
7018
  enableval=$enable_access_from_anywhere;
 
7019
else
 
7020
  enable_access_from_anywhere=no
 
7021
fi
 
7022
 
 
7023
if test "x$enable_access_from_anywhere" != xno; then
 
7024
 
 
7025
cat >>confdefs.h <<\_ACEOF
 
7026
#define ALLOW_FROM_ANYWHERE 1
 
7027
_ACEOF
 
7028
 
 
7029
fi
 
7030
 
 
7031
 
 
7032
# Add configure option for creating EPICS build system Makefile
 
7033
 
 
7034
# Check whether --with-epics-top was given.
 
7035
if test "${with_epics_top+set}" = set; then
 
7036
  withval=$with_epics_top;
 
7037
else
 
7038
  with_epics_top=no
 
7039
fi
 
7040
 
 
7041
if test "x$with_epics_top" != xno; then
 
7042
  if test "x$with_epics_top" = xyes; then
 
7043
          with_epics_top=../..
 
7044
       fi
 
7045
       use_epics_makefile=yes
 
7046
       EPICS_TOP=$with_epics_top
 
7047
 
 
7048
 
 
7049
fi
 
7050
 
 
7051
 if test x$with_epics_top != xno; then
 
7052
  WITH_EPICS_TRUE=
 
7053
  WITH_EPICS_FALSE='#'
 
7054
else
 
7055
  WITH_EPICS_TRUE='#'
 
7056
  WITH_EPICS_FALSE=
 
7057
fi
 
7058
 
 
7059
 
 
7060
# Check whether --enable-devel was given.
 
7061
if test "${enable_devel+set}" = set; then
 
7062
  enableval=$enable_devel;
 
7063
fi
 
7064
 
 
7065
if test x$enable_devel = xyes; then
 
7066
 
 
7067
  CFLAGS="$CFLAGS -Werror"
 
7068
  CXXFLAGS="$CXXFLAGS -Werror"
 
7069
  CPPFLAGS="$CPPFLAGS -DDEBUG"
 
7070
 
 
7071
fi
 
7072
 
 
7073
 
 
7074
 
 
7075
# Skip building documentation
 
7076
 
 
7077
# Check whether --enable-doc was given.
 
7078
if test "${enable_doc+set}" = set; then
 
7079
  enableval=$enable_doc;
 
7080
fi
 
7081
 
 
7082
# If $enable_doc is:
 
7083
#  no              - Don't build or install generated documentation.
 
7084
#  empty (default) - Install generated docs, but don't build.
 
7085
#                    Assumes they are already exist (ie dist. tarball)
 
7086
#  yes             - build and install generated documentation.
 
7087
 
 
7088
 if test x$enable_doc != xno; then
 
7089
  INSTALL_DOC_TRUE=
 
7090
  INSTALL_DOC_FALSE='#'
 
7091
else
 
7092
  INSTALL_DOC_TRUE='#'
 
7093
  INSTALL_DOC_FALSE=
 
7094
fi
 
7095
 
 
7096
 if test x$enable_doc = xyes; then
 
7097
  BUILD_DOC_TRUE=
 
7098
  BUILD_DOC_FALSE='#'
 
7099
else
 
7100
  BUILD_DOC_TRUE='#'
 
7101
  BUILD_DOC_FALSE=
 
7102
fi
 
7103
 
 
7104
 
 
7105
for ac_prog in a2x
 
7106
do
 
7107
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7108
set dummy $ac_prog; ac_word=$2
 
7109
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7110
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7111
if test "${ac_cv_prog_A2X+set}" = set; then
 
7112
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7113
else
 
7114
  if test -n "$A2X"; then
 
7115
  ac_cv_prog_A2X="$A2X" # Let the user override the test.
 
7116
else
 
7117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7118
for as_dir in $PATH
 
7119
do
 
7120
  IFS=$as_save_IFS
 
7121
  test -z "$as_dir" && as_dir=.
 
7122
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7123
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7124
    ac_cv_prog_A2X="$ac_prog"
 
7125
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7126
    break 2
 
7127
  fi
 
7128
done
 
7129
done
 
7130
IFS=$as_save_IFS
 
7131
 
 
7132
fi
 
7133
fi
 
7134
A2X=$ac_cv_prog_A2X
 
7135
if test -n "$A2X"; then
 
7136
  { echo "$as_me:$LINENO: result: $A2X" >&5
 
7137
echo "${ECHO_T}$A2X" >&6; }
 
7138
else
 
7139
  { echo "$as_me:$LINENO: result: no" >&5
 
7140
echo "${ECHO_T}no" >&6; }
 
7141
fi
 
7142
 
 
7143
 
 
7144
  test -n "$A2X" && break
 
7145
done
 
7146
 
 
7147
 
 
7148
# These are used by a2x and must be present for it to function
 
7149
for ac_prog in asciidoc
 
7150
do
 
7151
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7152
set dummy $ac_prog; ac_word=$2
 
7153
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7154
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7155
if test "${ac_cv_prog_ASCIIDOC+set}" = set; then
 
7156
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7157
else
 
7158
  if test -n "$ASCIIDOC"; then
 
7159
  ac_cv_prog_ASCIIDOC="$ASCIIDOC" # Let the user override the test.
 
7160
else
 
7161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7162
for as_dir in $PATH
 
7163
do
 
7164
  IFS=$as_save_IFS
 
7165
  test -z "$as_dir" && as_dir=.
 
7166
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7167
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7168
    ac_cv_prog_ASCIIDOC="$ac_prog"
 
7169
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7170
    break 2
 
7171
  fi
 
7172
done
 
7173
done
 
7174
IFS=$as_save_IFS
 
7175
 
 
7176
fi
 
7177
fi
 
7178
ASCIIDOC=$ac_cv_prog_ASCIIDOC
 
7179
if test -n "$ASCIIDOC"; then
 
7180
  { echo "$as_me:$LINENO: result: $ASCIIDOC" >&5
 
7181
echo "${ECHO_T}$ASCIIDOC" >&6; }
 
7182
else
 
7183
  { echo "$as_me:$LINENO: result: no" >&5
 
7184
echo "${ECHO_T}no" >&6; }
 
7185
fi
 
7186
 
 
7187
 
 
7188
  test -n "$ASCIIDOC" && break
 
7189
done
 
7190
 
 
7191
for ac_prog in xmllint
 
7192
do
 
7193
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7194
set dummy $ac_prog; ac_word=$2
 
7195
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7196
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7197
if test "${ac_cv_prog_XMLLINT+set}" = set; then
 
7198
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7199
else
 
7200
  if test -n "$XMLLINT"; then
 
7201
  ac_cv_prog_XMLLINT="$XMLLINT" # Let the user override the test.
 
7202
else
 
7203
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7204
for as_dir in $PATH
 
7205
do
 
7206
  IFS=$as_save_IFS
 
7207
  test -z "$as_dir" && as_dir=.
 
7208
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7209
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7210
    ac_cv_prog_XMLLINT="$ac_prog"
 
7211
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7212
    break 2
 
7213
  fi
 
7214
done
 
7215
done
 
7216
IFS=$as_save_IFS
 
7217
 
 
7218
fi
 
7219
fi
 
7220
XMLLINT=$ac_cv_prog_XMLLINT
 
7221
if test -n "$XMLLINT"; then
 
7222
  { echo "$as_me:$LINENO: result: $XMLLINT" >&5
 
7223
echo "${ECHO_T}$XMLLINT" >&6; }
 
7224
else
 
7225
  { echo "$as_me:$LINENO: result: no" >&5
 
7226
echo "${ECHO_T}no" >&6; }
 
7227
fi
 
7228
 
 
7229
 
 
7230
  test -n "$XMLLINT" && break
 
7231
done
 
7232
 
 
7233
for ac_prog in xsltproc
 
7234
do
 
7235
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7236
set dummy $ac_prog; ac_word=$2
 
7237
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7238
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7239
if test "${ac_cv_prog_XSLTPROC+set}" = set; then
 
7240
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7241
else
 
7242
  if test -n "$XSLTPROC"; then
 
7243
  ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test.
 
7244
else
 
7245
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7246
for as_dir in $PATH
 
7247
do
 
7248
  IFS=$as_save_IFS
 
7249
  test -z "$as_dir" && as_dir=.
 
7250
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7251
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7252
    ac_cv_prog_XSLTPROC="$ac_prog"
 
7253
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7254
    break 2
 
7255
  fi
 
7256
done
 
7257
done
 
7258
IFS=$as_save_IFS
 
7259
 
 
7260
fi
 
7261
fi
 
7262
XSLTPROC=$ac_cv_prog_XSLTPROC
 
7263
if test -n "$XSLTPROC"; then
 
7264
  { echo "$as_me:$LINENO: result: $XSLTPROC" >&5
 
7265
echo "${ECHO_T}$XSLTPROC" >&6; }
 
7266
else
 
7267
  { echo "$as_me:$LINENO: result: no" >&5
 
7268
echo "${ECHO_T}no" >&6; }
 
7269
fi
 
7270
 
 
7271
 
 
7272
  test -n "$XSLTPROC" && break
 
7273
done
 
7274
 
 
7275
# a2x will use one of these
 
7276
for ac_prog in fop dblatex
 
7277
do
 
7278
  # Extract the first word of "$ac_prog", so it can be a program name with args.
 
7279
set dummy $ac_prog; ac_word=$2
 
7280
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
 
7281
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
 
7282
if test "${ac_cv_prog_PDFGEN+set}" = set; then
 
7283
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7284
else
 
7285
  if test -n "$PDFGEN"; then
 
7286
  ac_cv_prog_PDFGEN="$PDFGEN" # Let the user override the test.
 
7287
else
 
7288
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7289
for as_dir in $PATH
 
7290
do
 
7291
  IFS=$as_save_IFS
 
7292
  test -z "$as_dir" && as_dir=.
 
7293
  for ac_exec_ext in '' $ac_executable_extensions; do
 
7294
  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
 
7295
    ac_cv_prog_PDFGEN="$ac_prog"
 
7296
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 
7297
    break 2
 
7298
  fi
 
7299
done
 
7300
done
 
7301
IFS=$as_save_IFS
 
7302
 
 
7303
fi
 
7304
fi
 
7305
PDFGEN=$ac_cv_prog_PDFGEN
 
7306
if test -n "$PDFGEN"; then
 
7307
  { echo "$as_me:$LINENO: result: $PDFGEN" >&5
 
7308
echo "${ECHO_T}$PDFGEN" >&6; }
 
7309
else
 
7310
  { echo "$as_me:$LINENO: result: no" >&5
 
7311
echo "${ECHO_T}no" >&6; }
 
7312
fi
 
7313
 
 
7314
 
 
7315
  test -n "$PDFGEN" && break
 
7316
done
 
7317
 
 
7318
 
 
7319
if test x$enable_doc = xyes; then
 
7320
 
 
7321
  if test x$A2X = x; then
 
7322
  { { echo "$as_me:$LINENO: error: Missing a2x (from asciidoc)" >&5
 
7323
echo "$as_me: error: Missing a2x (from asciidoc)" >&2;}
 
7324
   { (exit 1); exit 1; }; }
 
7325
elif test x$ASCIIDOC = x; then
 
7326
  { { echo "$as_me:$LINENO: error: Missing asciidoc" >&5
 
7327
echo "$as_me: error: Missing asciidoc" >&2;}
 
7328
   { (exit 1); exit 1; }; }
 
7329
elif test x$XMLLINT = x; then
 
7330
  { { echo "$as_me:$LINENO: error: Missing xmllint" >&5
 
7331
echo "$as_me: error: Missing xmllint" >&2;}
 
7332
   { (exit 1); exit 1; }; }
 
7333
elif test x$XSLTPROC = x; then
 
7334
  { { echo "$as_me:$LINENO: error: Missing xsltproc" >&5
 
7335
echo "$as_me: error: Missing xsltproc" >&2;}
 
7336
   { (exit 1); exit 1; }; }
 
7337
elif test x$PDFGEN = x; then
 
7338
  { { echo "$as_me:$LINENO: error: Missing a docbook to pdf converter (fop or dblatex)" >&5
 
7339
echo "$as_me: error: Missing a docbook to pdf converter (fop or dblatex)" >&2;}
 
7340
   { (exit 1); exit 1; }; }
 
7341
 
 
7342
fi
 
7343
 
 
7344
 
 
7345
elif test x$enable_doc != xno; then
 
7346
 
 
7347
  as_ac_File=`echo "ac_cv_file_${srcdir}/procServ.1" | $as_tr_sh`
 
7348
{ echo "$as_me:$LINENO: checking for ${srcdir}/procServ.1" >&5
 
7349
echo $ECHO_N "checking for ${srcdir}/procServ.1... $ECHO_C" >&6; }
 
7350
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
7351
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7352
else
 
7353
  test "$cross_compiling" = yes &&
 
7354
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
7355
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
7356
   { (exit 1); exit 1; }; }
 
7357
if test -r "${srcdir}/procServ.1"; then
 
7358
  eval "$as_ac_File=yes"
 
7359
else
 
7360
  eval "$as_ac_File=no"
 
7361
fi
 
7362
fi
 
7363
ac_res=`eval echo '${'$as_ac_File'}'`
 
7364
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7365
echo "${ECHO_T}$ac_res" >&6; }
 
7366
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
7367
 
 
7368
cat >>confdefs.h <<_ACEOF
 
7369
#define `echo "HAVE_${srcdir}/procServ.1" | $as_tr_cpp` 1
 
7370
_ACEOF
 
7371
 
 
7372
 
 
7373
else
 
7374
  { { echo "$as_me:$LINENO: error: Documentation not found.  Use --disable-doc to skip installing it, or --enable-doc to generate it" >&5
 
7375
echo "$as_me: error: Documentation not found.  Use --disable-doc to skip installing it, or --enable-doc to generate it" >&2;}
 
7376
   { (exit 1); exit 1; }; }
 
7377
fi
 
7378
as_ac_File=`echo "ac_cv_file_${srcdir}/procServ.pdf" | $as_tr_sh`
 
7379
{ echo "$as_me:$LINENO: checking for ${srcdir}/procServ.pdf" >&5
 
7380
echo $ECHO_N "checking for ${srcdir}/procServ.pdf... $ECHO_C" >&6; }
 
7381
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
7382
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7383
else
 
7384
  test "$cross_compiling" = yes &&
 
7385
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
7386
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
7387
   { (exit 1); exit 1; }; }
 
7388
if test -r "${srcdir}/procServ.pdf"; then
 
7389
  eval "$as_ac_File=yes"
 
7390
else
 
7391
  eval "$as_ac_File=no"
 
7392
fi
 
7393
fi
 
7394
ac_res=`eval echo '${'$as_ac_File'}'`
 
7395
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7396
echo "${ECHO_T}$ac_res" >&6; }
 
7397
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
7398
 
 
7399
cat >>confdefs.h <<_ACEOF
 
7400
#define `echo "HAVE_${srcdir}/procServ.pdf" | $as_tr_cpp` 1
 
7401
_ACEOF
 
7402
 
 
7403
 
 
7404
else
 
7405
  { { echo "$as_me:$LINENO: error: Documentation not found.  Use --disable-doc to skip installing it, or --enable-doc to generate it" >&5
 
7406
echo "$as_me: error: Documentation not found.  Use --disable-doc to skip installing it, or --enable-doc to generate it" >&2;}
 
7407
   { (exit 1); exit 1; }; }
 
7408
fi
 
7409
as_ac_File=`echo "ac_cv_file_${srcdir}/procServ.html" | $as_tr_sh`
 
7410
{ echo "$as_me:$LINENO: checking for ${srcdir}/procServ.html" >&5
 
7411
echo $ECHO_N "checking for ${srcdir}/procServ.html... $ECHO_C" >&6; }
 
7412
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
 
7413
  echo $ECHO_N "(cached) $ECHO_C" >&6
 
7414
else
 
7415
  test "$cross_compiling" = yes &&
 
7416
  { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
 
7417
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
 
7418
   { (exit 1); exit 1; }; }
 
7419
if test -r "${srcdir}/procServ.html"; then
 
7420
  eval "$as_ac_File=yes"
 
7421
else
 
7422
  eval "$as_ac_File=no"
 
7423
fi
 
7424
fi
 
7425
ac_res=`eval echo '${'$as_ac_File'}'`
 
7426
               { echo "$as_me:$LINENO: result: $ac_res" >&5
 
7427
echo "${ECHO_T}$ac_res" >&6; }
 
7428
if test `eval echo '${'$as_ac_File'}'` = yes; then
 
7429
 
 
7430
cat >>confdefs.h <<_ACEOF
 
7431
#define `echo "HAVE_${srcdir}/procServ.html" | $as_tr_cpp` 1
 
7432
_ACEOF
 
7433
 
 
7434
 
 
7435
else
 
7436
  { { echo "$as_me:$LINENO: error: Documentation not found.  Use --disable-doc to skip installing it, or --enable-doc to generate it" >&5
 
7437
echo "$as_me: error: Documentation not found.  Use --disable-doc to skip installing it, or --enable-doc to generate it" >&2;}
 
7438
   { (exit 1); exit 1; }; }
 
7439
fi
 
7440
 
 
7441
 
 
7442
fi
 
7443
 
 
7444
 
 
7445
# Clumsy workaround (waiting for AM_COND_IF in Automake 1.10.3) to use EPICS Makefile.in
 
7446
# Careful: while in "EPICS mode" you must remove Makefile.Automake.in before manually running autoreconf.
 
7447
# Better:  Run "make maintainer-clean" then "make" which will clean up then autoreconf.
 
7448
ac_config_files="$ac_config_files Makefile"
 
7449
 
 
7450
cat >confcache <<\_ACEOF
 
7451
# This file is a shell script that caches the results of configure
 
7452
# tests run on this system so they can be shared between configure
 
7453
# scripts and configure runs, see configure's option --config-cache.
 
7454
# It is not useful on other systems.  If it contains results you don't
 
7455
# want to keep, you may remove or edit it.
 
7456
#
 
7457
# config.status only pays attention to the cache file if you give it
 
7458
# the --recheck option to rerun configure.
 
7459
#
 
7460
# `ac_cv_env_foo' variables (set or unset) will be overridden when
 
7461
# loading this file, other *unset* `ac_cv_foo' will be assigned the
 
7462
# following values.
 
7463
 
 
7464
_ACEOF
 
7465
 
 
7466
# The following way of writing the cache mishandles newlines in values,
 
7467
# but we know of no workaround that is simple, portable, and efficient.
 
7468
# So, we kill variables containing newlines.
 
7469
# Ultrix sh set writes to stderr and can't be redirected directly,
 
7470
# and sets the high bit in the cache file unless we assign to the vars.
 
7471
(
 
7472
  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 
7473
    eval ac_val=\$$ac_var
 
7474
    case $ac_val in #(
 
7475
    *${as_nl}*)
 
7476
      case $ac_var in #(
 
7477
      *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
 
7478
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
 
7479
      esac
 
7480
      case $ac_var in #(
 
7481
      _ | IFS | as_nl) ;; #(
 
7482
      *) $as_unset $ac_var ;;
 
7483
      esac ;;
 
7484
    esac
 
7485
  done
 
7486
 
 
7487
  (set) 2>&1 |
 
7488
    case $as_nl`(ac_space=' '; set) 2>&1` in #(
 
7489
    *${as_nl}ac_space=\ *)
 
7490
      # `set' does not quote correctly, so add quotes (double-quote
 
7491
      # substitution turns \\\\ into \\, and sed turns \\ into \).
 
7492
      sed -n \
 
7493
        "s/'/'\\\\''/g;
 
7494
          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 
7495
      ;; #(
 
7496
    *)
 
7497
      # `set' quotes correctly as required by POSIX, so do not add quotes.
 
7498
      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 
7499
      ;;
 
7500
    esac |
 
7501
    sort
 
7502
) |
 
7503
  sed '
 
7504
     /^ac_cv_env_/b end
 
7505
     t clear
 
7506
     :clear
 
7507
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 
7508
     t end
 
7509
     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 
7510
     :end' >>confcache
 
7511
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 
7512
  if test -w "$cache_file"; then
 
7513
    test "x$cache_file" != "x/dev/null" &&
 
7514
      { echo "$as_me:$LINENO: updating cache $cache_file" >&5
 
7515
echo "$as_me: updating cache $cache_file" >&6;}
 
7516
    cat confcache >$cache_file
 
7517
  else
 
7518
    { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
 
7519
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 
7520
  fi
 
7521
fi
 
7522
rm -f confcache
 
7523
 
 
7524
test "x$prefix" = xNONE && prefix=$ac_default_prefix
 
7525
# Let make expand exec_prefix.
 
7526
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 
7527
 
 
7528
# Transform confdefs.h into DEFS.
 
7529
# Protect against shell expansion while executing Makefile rules.
 
7530
# Protect against Makefile macro expansion.
 
7531
#
 
7532
# If the first sed substitution is executed (which looks for macros that
 
7533
# take arguments), then branch to the quote section.  Otherwise,
 
7534
# look for a macro that doesn't take arguments.
 
7535
ac_script='
 
7536
t clear
 
7537
:clear
 
7538
s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 
7539
t quote
 
7540
s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 
7541
t quote
 
7542
b any
 
7543
:quote
 
7544
s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 
7545
s/\[/\\&/g
 
7546
s/\]/\\&/g
 
7547
s/\$/$$/g
 
7548
H
 
7549
:any
 
7550
${
 
7551
        g
 
7552
        s/^\n//
 
7553
        s/\n/ /g
 
7554
        p
 
7555
}
 
7556
'
 
7557
DEFS=`sed -n "$ac_script" confdefs.h`
 
7558
 
 
7559
 
 
7560
ac_libobjs=
 
7561
ac_ltlibobjs=
 
7562
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 
7563
  # 1. Remove the extension, and $U if already installed.
 
7564
  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 
7565
  ac_i=`echo "$ac_i" | sed "$ac_script"`
 
7566
  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 
7567
  #    will be set to the directory where LIBOBJS objects are built.
 
7568
  ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 
7569
  ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
 
7570
done
 
7571
LIBOBJS=$ac_libobjs
 
7572
 
 
7573
LTLIBOBJS=$ac_ltlibobjs
 
7574
 
 
7575
 
 
7576
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
 
7577
  { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
 
7578
Usually this means the macro was only invoked conditionally." >&5
 
7579
echo "$as_me: error: conditional \"AMDEP\" was never defined.
 
7580
Usually this means the macro was only invoked conditionally." >&2;}
 
7581
   { (exit 1); exit 1; }; }
 
7582
fi
 
7583
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
 
7584
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
 
7585
Usually this means the macro was only invoked conditionally." >&5
 
7586
echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
 
7587
Usually this means the macro was only invoked conditionally." >&2;}
 
7588
   { (exit 1); exit 1; }; }
 
7589
fi
 
7590
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
 
7591
  { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
 
7592
Usually this means the macro was only invoked conditionally." >&5
 
7593
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
 
7594
Usually this means the macro was only invoked conditionally." >&2;}
 
7595
   { (exit 1); exit 1; }; }
 
7596
fi
 
7597
if test -z "${WITH_EPICS_TRUE}" && test -z "${WITH_EPICS_FALSE}"; then
 
7598
  { { echo "$as_me:$LINENO: error: conditional \"WITH_EPICS\" was never defined.
 
7599
Usually this means the macro was only invoked conditionally." >&5
 
7600
echo "$as_me: error: conditional \"WITH_EPICS\" was never defined.
 
7601
Usually this means the macro was only invoked conditionally." >&2;}
 
7602
   { (exit 1); exit 1; }; }
 
7603
fi
 
7604
if test -z "${INSTALL_DOC_TRUE}" && test -z "${INSTALL_DOC_FALSE}"; then
 
7605
  { { echo "$as_me:$LINENO: error: conditional \"INSTALL_DOC\" was never defined.
 
7606
Usually this means the macro was only invoked conditionally." >&5
 
7607
echo "$as_me: error: conditional \"INSTALL_DOC\" was never defined.
 
7608
Usually this means the macro was only invoked conditionally." >&2;}
 
7609
   { (exit 1); exit 1; }; }
 
7610
fi
 
7611
if test -z "${BUILD_DOC_TRUE}" && test -z "${BUILD_DOC_FALSE}"; then
 
7612
  { { echo "$as_me:$LINENO: error: conditional \"BUILD_DOC\" was never defined.
 
7613
Usually this means the macro was only invoked conditionally." >&5
 
7614
echo "$as_me: error: conditional \"BUILD_DOC\" was never defined.
 
7615
Usually this means the macro was only invoked conditionally." >&2;}
 
7616
   { (exit 1); exit 1; }; }
 
7617
fi
 
7618
 
 
7619
: ${CONFIG_STATUS=./config.status}
 
7620
ac_clean_files_save=$ac_clean_files
 
7621
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 
7622
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
 
7623
echo "$as_me: creating $CONFIG_STATUS" >&6;}
 
7624
cat >$CONFIG_STATUS <<_ACEOF
 
7625
#! $SHELL
 
7626
# Generated by $as_me.
 
7627
# Run this file to recreate the current configuration.
 
7628
# Compiler output produced by configure, useful for debugging
 
7629
# configure, is in config.log if it exists.
 
7630
 
 
7631
debug=false
 
7632
ac_cs_recheck=false
 
7633
ac_cs_silent=false
 
7634
SHELL=\${CONFIG_SHELL-$SHELL}
 
7635
_ACEOF
 
7636
 
 
7637
cat >>$CONFIG_STATUS <<\_ACEOF
 
7638
## --------------------- ##
 
7639
## M4sh Initialization.  ##
 
7640
## --------------------- ##
 
7641
 
 
7642
# Be more Bourne compatible
 
7643
DUALCASE=1; export DUALCASE # for MKS sh
 
7644
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
 
7645
  emulate sh
 
7646
  NULLCMD=:
 
7647
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
 
7648
  # is contrary to our usage.  Disable this feature.
 
7649
  alias -g '${1+"$@"}'='"$@"'
 
7650
  setopt NO_GLOB_SUBST
 
7651
else
 
7652
  case `(set -o) 2>/dev/null` in
 
7653
  *posix*) set -o posix ;;
 
7654
esac
 
7655
 
 
7656
fi
 
7657
 
 
7658
 
 
7659
 
 
7660
 
 
7661
# PATH needs CR
 
7662
# Avoid depending upon Character Ranges.
 
7663
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 
7664
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 
7665
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 
7666
as_cr_digits='0123456789'
 
7667
as_cr_alnum=$as_cr_Letters$as_cr_digits
 
7668
 
 
7669
# The user is always right.
 
7670
if test "${PATH_SEPARATOR+set}" != set; then
 
7671
  echo "#! /bin/sh" >conf$$.sh
 
7672
  echo  "exit 0"   >>conf$$.sh
 
7673
  chmod +x conf$$.sh
 
7674
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
 
7675
    PATH_SEPARATOR=';'
 
7676
  else
 
7677
    PATH_SEPARATOR=:
 
7678
  fi
 
7679
  rm -f conf$$.sh
 
7680
fi
 
7681
 
 
7682
# Support unset when possible.
 
7683
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
 
7684
  as_unset=unset
 
7685
else
 
7686
  as_unset=false
 
7687
fi
 
7688
 
 
7689
 
 
7690
# IFS
 
7691
# We need space, tab and new line, in precisely that order.  Quoting is
 
7692
# there to prevent editors from complaining about space-tab.
 
7693
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
 
7694
# splitting by setting IFS to empty value.)
 
7695
as_nl='
 
7696
'
 
7697
IFS=" ""        $as_nl"
 
7698
 
 
7699
# Find who we are.  Look in the path if we contain no directory separator.
 
7700
case $0 in
 
7701
  *[\\/]* ) as_myself=$0 ;;
 
7702
  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 
7703
for as_dir in $PATH
 
7704
do
 
7705
  IFS=$as_save_IFS
 
7706
  test -z "$as_dir" && as_dir=.
 
7707
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 
7708
done
 
7709
IFS=$as_save_IFS
 
7710
 
 
7711
     ;;
 
7712
esac
 
7713
# We did not find ourselves, most probably we were run as `sh COMMAND'
 
7714
# in which case we are not to be found in the path.
 
7715
if test "x$as_myself" = x; then
 
7716
  as_myself=$0
 
7717
fi
 
7718
if test ! -f "$as_myself"; then
 
7719
  echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 
7720
  { (exit 1); exit 1; }
 
7721
fi
 
7722
 
 
7723
# Work around bugs in pre-3.0 UWIN ksh.
 
7724
for as_var in ENV MAIL MAILPATH
 
7725
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
7726
done
 
7727
PS1='$ '
 
7728
PS2='> '
 
7729
PS4='+ '
 
7730
 
 
7731
# NLS nuisances.
 
7732
for as_var in \
 
7733
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
 
7734
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
 
7735
  LC_TELEPHONE LC_TIME
 
7736
do
 
7737
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
 
7738
    eval $as_var=C; export $as_var
 
7739
  else
 
7740
    ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
 
7741
  fi
 
7742
done
 
7743
 
 
7744
# Required to use basename.
 
7745
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
7746
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
7747
  as_expr=expr
 
7748
else
 
7749
  as_expr=false
 
7750
fi
 
7751
 
 
7752
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 
7753
  as_basename=basename
 
7754
else
 
7755
  as_basename=false
 
7756
fi
 
7757
 
 
7758
 
 
7759
# Name of the executable.
 
7760
as_me=`$as_basename -- "$0" ||
 
7761
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 
7762
         X"$0" : 'X\(//\)$' \| \
 
7763
         X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 
7764
echo X/"$0" |
 
7765
    sed '/^.*\/\([^/][^/]*\)\/*$/{
 
7766
            s//\1/
 
7767
            q
 
7768
          }
 
7769
          /^X\/\(\/\/\)$/{
 
7770
            s//\1/
 
7771
            q
 
7772
          }
 
7773
          /^X\/\(\/\).*/{
 
7774
            s//\1/
 
7775
            q
 
7776
          }
 
7777
          s/.*/./; q'`
 
7778
 
 
7779
# CDPATH.
 
7780
$as_unset CDPATH
 
7781
 
 
7782
 
 
7783
 
 
7784
  as_lineno_1=$LINENO
 
7785
  as_lineno_2=$LINENO
 
7786
  test "x$as_lineno_1" != "x$as_lineno_2" &&
 
7787
  test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
 
7788
 
 
7789
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
 
7790
  # uniformly replaced by the line number.  The first 'sed' inserts a
 
7791
  # line-number line after each line using $LINENO; the second 'sed'
 
7792
  # does the real work.  The second script uses 'N' to pair each
 
7793
  # line-number line with the line containing $LINENO, and appends
 
7794
  # trailing '-' during substitution so that $LINENO is not a special
 
7795
  # case at line end.
 
7796
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
 
7797
  # scripts with optimization help from Paolo Bonzini.  Blame Lee
 
7798
  # E. McMahon (1931-1989) for sed's syntax.  :-)
 
7799
  sed -n '
 
7800
    p
 
7801
    /[$]LINENO/=
 
7802
  ' <$as_myself |
 
7803
    sed '
 
7804
      s/[$]LINENO.*/&-/
 
7805
      t lineno
 
7806
      b
 
7807
      :lineno
 
7808
      N
 
7809
      :loop
 
7810
      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
 
7811
      t loop
 
7812
      s/-\n.*//
 
7813
    ' >$as_me.lineno &&
 
7814
  chmod +x "$as_me.lineno" ||
 
7815
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
 
7816
   { (exit 1); exit 1; }; }
 
7817
 
 
7818
  # Don't try to exec as it changes $[0], causing all sort of problems
 
7819
  # (the dirname of $[0] is not the place where we might find the
 
7820
  # original and so on.  Autoconf is especially sensitive to this).
 
7821
  . "./$as_me.lineno"
 
7822
  # Exit status is that of the last command.
 
7823
  exit
 
7824
}
 
7825
 
 
7826
 
 
7827
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 
7828
  as_dirname=dirname
 
7829
else
 
7830
  as_dirname=false
 
7831
fi
 
7832
 
 
7833
ECHO_C= ECHO_N= ECHO_T=
 
7834
case `echo -n x` in
 
7835
-n*)
 
7836
  case `echo 'x\c'` in
 
7837
  *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
 
7838
  *)   ECHO_C='\c';;
 
7839
  esac;;
 
7840
*)
 
7841
  ECHO_N='-n';;
 
7842
esac
 
7843
 
 
7844
if expr a : '\(a\)' >/dev/null 2>&1 &&
 
7845
   test "X`expr 00001 : '.*\(...\)'`" = X001; then
 
7846
  as_expr=expr
 
7847
else
 
7848
  as_expr=false
 
7849
fi
 
7850
 
 
7851
rm -f conf$$ conf$$.exe conf$$.file
 
7852
if test -d conf$$.dir; then
 
7853
  rm -f conf$$.dir/conf$$.file
 
7854
else
 
7855
  rm -f conf$$.dir
 
7856
  mkdir conf$$.dir
 
7857
fi
 
7858
echo >conf$$.file
 
7859
if ln -s conf$$.file conf$$ 2>/dev/null; then
 
7860
  as_ln_s='ln -s'
 
7861
  # ... but there are two gotchas:
 
7862
  # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 
7863
  # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 
7864
  # In both cases, we have to default to `cp -p'.
 
7865
  ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 
7866
    as_ln_s='cp -p'
 
7867
elif ln conf$$.file conf$$ 2>/dev/null; then
 
7868
  as_ln_s=ln
 
7869
else
 
7870
  as_ln_s='cp -p'
 
7871
fi
 
7872
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 
7873
rmdir conf$$.dir 2>/dev/null
 
7874
 
 
7875
if mkdir -p . 2>/dev/null; then
 
7876
  as_mkdir_p=:
 
7877
else
 
7878
  test -d ./-p && rmdir ./-p
 
7879
  as_mkdir_p=false
 
7880
fi
 
7881
 
 
7882
if test -x / >/dev/null 2>&1; then
 
7883
  as_test_x='test -x'
 
7884
else
 
7885
  if ls -dL / >/dev/null 2>&1; then
 
7886
    as_ls_L_option=L
 
7887
  else
 
7888
    as_ls_L_option=
 
7889
  fi
 
7890
  as_test_x='
 
7891
    eval sh -c '\''
 
7892
      if test -d "$1"; then
 
7893
        test -d "$1/.";
 
7894
      else
 
7895
        case $1 in
 
7896
        -*)set "./$1";;
 
7897
        esac;
 
7898
        case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
 
7899
        ???[sx]*):;;*)false;;esac;fi
 
7900
    '\'' sh
 
7901
  '
 
7902
fi
 
7903
as_executable_p=$as_test_x
 
7904
 
 
7905
# Sed expression to map a string onto a valid CPP name.
 
7906
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 
7907
 
 
7908
# Sed expression to map a string onto a valid variable name.
 
7909
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 
7910
 
 
7911
 
 
7912
exec 6>&1
 
7913
 
 
7914
# Save the log message, to keep $[0] and so on meaningful, and to
 
7915
# report actual input values of CONFIG_FILES etc. instead of their
 
7916
# values after options handling.
 
7917
ac_log="
 
7918
This file was extended by procServ Process Server $as_me 2.5.0, which was
 
7919
generated by GNU Autoconf 2.61.  Invocation command line was
 
7920
 
 
7921
  CONFIG_FILES    = $CONFIG_FILES
 
7922
  CONFIG_HEADERS  = $CONFIG_HEADERS
 
7923
  CONFIG_LINKS    = $CONFIG_LINKS
 
7924
  CONFIG_COMMANDS = $CONFIG_COMMANDS
 
7925
  $ $0 $@
 
7926
 
 
7927
on `(hostname || uname -n) 2>/dev/null | sed 1q`
 
7928
"
 
7929
 
 
7930
_ACEOF
 
7931
 
 
7932
cat >>$CONFIG_STATUS <<_ACEOF
 
7933
# Files that config.status was made for.
 
7934
config_files="$ac_config_files"
 
7935
config_commands="$ac_config_commands"
 
7936
 
 
7937
_ACEOF
 
7938
 
 
7939
cat >>$CONFIG_STATUS <<\_ACEOF
 
7940
ac_cs_usage="\
 
7941
\`$as_me' instantiates files from templates according to the
 
7942
current configuration.
 
7943
 
 
7944
Usage: $0 [OPTIONS] [FILE]...
 
7945
 
 
7946
  -h, --help       print this help, then exit
 
7947
  -V, --version    print version number and configuration settings, then exit
 
7948
  -q, --quiet      do not print progress messages
 
7949
  -d, --debug      don't remove temporary files
 
7950
      --recheck    update $as_me by reconfiguring in the same conditions
 
7951
  --file=FILE[:TEMPLATE]
 
7952
                   instantiate the configuration file FILE
 
7953
 
 
7954
Configuration files:
 
7955
$config_files
 
7956
 
 
7957
Configuration commands:
 
7958
$config_commands
 
7959
 
 
7960
Report bugs to <bug-autoconf@gnu.org>."
 
7961
 
 
7962
_ACEOF
 
7963
cat >>$CONFIG_STATUS <<_ACEOF
 
7964
ac_cs_version="\\
 
7965
procServ Process Server config.status 2.5.0
 
7966
configured by $0, generated by GNU Autoconf 2.61,
 
7967
  with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
 
7968
 
 
7969
Copyright (C) 2006 Free Software Foundation, Inc.
 
7970
This config.status script is free software; the Free Software Foundation
 
7971
gives unlimited permission to copy, distribute and modify it."
 
7972
 
 
7973
ac_pwd='$ac_pwd'
 
7974
srcdir='$srcdir'
 
7975
INSTALL='$INSTALL'
 
7976
MKDIR_P='$MKDIR_P'
 
7977
_ACEOF
 
7978
 
 
7979
cat >>$CONFIG_STATUS <<\_ACEOF
 
7980
# If no file are specified by the user, then we need to provide default
 
7981
# value.  By we need to know if files were specified by the user.
 
7982
ac_need_defaults=:
 
7983
while test $# != 0
 
7984
do
 
7985
  case $1 in
 
7986
  --*=*)
 
7987
    ac_option=`expr "X$1" : 'X\([^=]*\)='`
 
7988
    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 
7989
    ac_shift=:
 
7990
    ;;
 
7991
  *)
 
7992
    ac_option=$1
 
7993
    ac_optarg=$2
 
7994
    ac_shift=shift
 
7995
    ;;
 
7996
  esac
 
7997
 
 
7998
  case $ac_option in
 
7999
  # Handling of the options.
 
8000
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 
8001
    ac_cs_recheck=: ;;
 
8002
  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 
8003
    echo "$ac_cs_version"; exit ;;
 
8004
  --debug | --debu | --deb | --de | --d | -d )
 
8005
    debug=: ;;
 
8006
  --file | --fil | --fi | --f )
 
8007
    $ac_shift
 
8008
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
 
8009
    ac_need_defaults=false;;
 
8010
  --he | --h |  --help | --hel | -h )
 
8011
    echo "$ac_cs_usage"; exit ;;
 
8012
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 
8013
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
 
8014
    ac_cs_silent=: ;;
 
8015
 
 
8016
  # This is an error.
 
8017
  -*) { echo "$as_me: error: unrecognized option: $1
 
8018
Try \`$0 --help' for more information." >&2
 
8019
   { (exit 1); exit 1; }; } ;;
 
8020
 
 
8021
  *) ac_config_targets="$ac_config_targets $1"
 
8022
     ac_need_defaults=false ;;
 
8023
 
 
8024
  esac
 
8025
  shift
 
8026
done
 
8027
 
 
8028
ac_configure_extra_args=
 
8029
 
 
8030
if $ac_cs_silent; then
 
8031
  exec 6>/dev/null
 
8032
  ac_configure_extra_args="$ac_configure_extra_args --silent"
 
8033
fi
 
8034
 
 
8035
_ACEOF
 
8036
cat >>$CONFIG_STATUS <<_ACEOF
 
8037
if \$ac_cs_recheck; then
 
8038
  echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
 
8039
  CONFIG_SHELL=$SHELL
 
8040
  export CONFIG_SHELL
 
8041
  exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 
8042
fi
 
8043
 
 
8044
_ACEOF
 
8045
cat >>$CONFIG_STATUS <<\_ACEOF
 
8046
exec 5>>config.log
 
8047
{
 
8048
  echo
 
8049
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 
8050
## Running $as_me. ##
 
8051
_ASBOX
 
8052
  echo "$ac_log"
 
8053
} >&5
 
8054
 
 
8055
_ACEOF
 
8056
cat >>$CONFIG_STATUS <<_ACEOF
 
8057
#
 
8058
# INIT-COMMANDS
 
8059
#
 
8060
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
 
8061
if test ! -e Makefile.Automake.in; then
 
8062
                   mv Makefile.in Makefile.Automake.in
 
8063
                 fi
 
8064
                 if test x$use_epics_makefile = xyes; then
 
8065
                   cp Makefile.Epics.in Makefile.in
 
8066
                 else
 
8067
                   mv Makefile.Automake.in Makefile.in
 
8068
                 fi
 
8069
 
 
8070
 
 
8071
_ACEOF
 
8072
 
 
8073
cat >>$CONFIG_STATUS <<\_ACEOF
 
8074
 
 
8075
# Handling of arguments.
 
8076
for ac_config_target in $ac_config_targets
 
8077
do
 
8078
  case $ac_config_target in
 
8079
    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
 
8080
    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 
8081
 
 
8082
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
 
8083
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
 
8084
   { (exit 1); exit 1; }; };;
 
8085
  esac
 
8086
done
 
8087
 
 
8088
 
 
8089
# If the user did not use the arguments to specify the items to instantiate,
 
8090
# then the envvar interface is used.  Set only those that are not.
 
8091
# We use the long form for the default assignment because of an extremely
 
8092
# bizarre bug on SunOS 4.1.3.
 
8093
if $ac_need_defaults; then
 
8094
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 
8095
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
 
8096
fi
 
8097
 
 
8098
# Have a temporary directory for convenience.  Make it in the build tree
 
8099
# simply because there is no reason against having it here, and in addition,
 
8100
# creating and moving files from /tmp can sometimes cause problems.
 
8101
# Hook for its removal unless debugging.
 
8102
# Note that there is a small window in which the directory will not be cleaned:
 
8103
# after its creation but before its name has been assigned to `$tmp'.
 
8104
$debug ||
 
8105
{
 
8106
  tmp=
 
8107
  trap 'exit_status=$?
 
8108
  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
 
8109
' 0
 
8110
  trap '{ (exit 1); exit 1; }' 1 2 13 15
 
8111
}
 
8112
# Create a (secure) tmp directory for tmp files.
 
8113
 
 
8114
{
 
8115
  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 
8116
  test -n "$tmp" && test -d "$tmp"
 
8117
}  ||
 
8118
{
 
8119
  tmp=./conf$$-$RANDOM
 
8120
  (umask 077 && mkdir "$tmp")
 
8121
} ||
 
8122
{
 
8123
   echo "$me: cannot create a temporary directory in ." >&2
 
8124
   { (exit 1); exit 1; }
 
8125
}
 
8126
 
 
8127
#
 
8128
# Set up the sed scripts for CONFIG_FILES section.
 
8129
#
 
8130
 
 
8131
# No need to generate the scripts if there are no CONFIG_FILES.
 
8132
# This happens for instance when ./config.status config.h
 
8133
if test -n "$CONFIG_FILES"; then
 
8134
 
 
8135
_ACEOF
 
8136
 
 
8137
 
 
8138
 
 
8139
ac_delim='%!_!# '
 
8140
for ac_last_try in false false false false false :; do
 
8141
  cat >conf$$subs.sed <<_ACEOF
 
8142
SHELL!$SHELL$ac_delim
 
8143
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
 
8144
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
 
8145
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
 
8146
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
 
8147
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
 
8148
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
 
8149
exec_prefix!$exec_prefix$ac_delim
 
8150
prefix!$prefix$ac_delim
 
8151
program_transform_name!$program_transform_name$ac_delim
 
8152
bindir!$bindir$ac_delim
 
8153
sbindir!$sbindir$ac_delim
 
8154
libexecdir!$libexecdir$ac_delim
 
8155
datarootdir!$datarootdir$ac_delim
 
8156
datadir!$datadir$ac_delim
 
8157
sysconfdir!$sysconfdir$ac_delim
 
8158
sharedstatedir!$sharedstatedir$ac_delim
 
8159
localstatedir!$localstatedir$ac_delim
 
8160
includedir!$includedir$ac_delim
 
8161
oldincludedir!$oldincludedir$ac_delim
 
8162
docdir!$docdir$ac_delim
 
8163
infodir!$infodir$ac_delim
 
8164
htmldir!$htmldir$ac_delim
 
8165
dvidir!$dvidir$ac_delim
 
8166
pdfdir!$pdfdir$ac_delim
 
8167
psdir!$psdir$ac_delim
 
8168
libdir!$libdir$ac_delim
 
8169
localedir!$localedir$ac_delim
 
8170
mandir!$mandir$ac_delim
 
8171
DEFS!$DEFS$ac_delim
 
8172
ECHO_C!$ECHO_C$ac_delim
 
8173
ECHO_N!$ECHO_N$ac_delim
 
8174
ECHO_T!$ECHO_T$ac_delim
 
8175
LIBS!$LIBS$ac_delim
 
8176
build_alias!$build_alias$ac_delim
 
8177
host_alias!$host_alias$ac_delim
 
8178
target_alias!$target_alias$ac_delim
 
8179
PACKAGE_DATE!$PACKAGE_DATE$ac_delim
 
8180
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
 
8181
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
 
8182
INSTALL_DATA!$INSTALL_DATA$ac_delim
 
8183
am__isrc!$am__isrc$ac_delim
 
8184
CYGPATH_W!$CYGPATH_W$ac_delim
 
8185
PACKAGE!$PACKAGE$ac_delim
 
8186
VERSION!$VERSION$ac_delim
 
8187
ACLOCAL!$ACLOCAL$ac_delim
 
8188
AUTOCONF!$AUTOCONF$ac_delim
 
8189
AUTOMAKE!$AUTOMAKE$ac_delim
 
8190
AUTOHEADER!$AUTOHEADER$ac_delim
 
8191
MAKEINFO!$MAKEINFO$ac_delim
 
8192
install_sh!$install_sh$ac_delim
 
8193
STRIP!$STRIP$ac_delim
 
8194
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
 
8195
mkdir_p!$mkdir_p$ac_delim
 
8196
AWK!$AWK$ac_delim
 
8197
SET_MAKE!$SET_MAKE$ac_delim
 
8198
am__leading_dot!$am__leading_dot$ac_delim
 
8199
AMTAR!$AMTAR$ac_delim
 
8200
am__tar!$am__tar$ac_delim
 
8201
am__untar!$am__untar$ac_delim
 
8202
CXX!$CXX$ac_delim
 
8203
CXXFLAGS!$CXXFLAGS$ac_delim
 
8204
LDFLAGS!$LDFLAGS$ac_delim
 
8205
CPPFLAGS!$CPPFLAGS$ac_delim
 
8206
ac_ct_CXX!$ac_ct_CXX$ac_delim
 
8207
EXEEXT!$EXEEXT$ac_delim
 
8208
OBJEXT!$OBJEXT$ac_delim
 
8209
DEPDIR!$DEPDIR$ac_delim
 
8210
am__include!$am__include$ac_delim
 
8211
am__quote!$am__quote$ac_delim
 
8212
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
 
8213
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
 
8214
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
 
8215
CXXDEPMODE!$CXXDEPMODE$ac_delim
 
8216
am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
 
8217
am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
 
8218
CC!$CC$ac_delim
 
8219
CFLAGS!$CFLAGS$ac_delim
 
8220
ac_ct_CC!$ac_ct_CC$ac_delim
 
8221
CCDEPMODE!$CCDEPMODE$ac_delim
 
8222
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
 
8223
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
 
8224
CPP!$CPP$ac_delim
 
8225
GREP!$GREP$ac_delim
 
8226
EGREP!$EGREP$ac_delim
 
8227
LIBOBJS!$LIBOBJS$ac_delim
 
8228
EPICS_TOP!$EPICS_TOP$ac_delim
 
8229
WITH_EPICS_TRUE!$WITH_EPICS_TRUE$ac_delim
 
8230
WITH_EPICS_FALSE!$WITH_EPICS_FALSE$ac_delim
 
8231
INSTALL_DOC_TRUE!$INSTALL_DOC_TRUE$ac_delim
 
8232
INSTALL_DOC_FALSE!$INSTALL_DOC_FALSE$ac_delim
 
8233
BUILD_DOC_TRUE!$BUILD_DOC_TRUE$ac_delim
 
8234
BUILD_DOC_FALSE!$BUILD_DOC_FALSE$ac_delim
 
8235
A2X!$A2X$ac_delim
 
8236
ASCIIDOC!$ASCIIDOC$ac_delim
 
8237
XMLLINT!$XMLLINT$ac_delim
 
8238
XSLTPROC!$XSLTPROC$ac_delim
 
8239
_ACEOF
 
8240
 
 
8241
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
 
8242
    break
 
8243
  elif $ac_last_try; then
 
8244
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
8245
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
8246
   { (exit 1); exit 1; }; }
 
8247
  else
 
8248
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
8249
  fi
 
8250
done
 
8251
 
 
8252
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
8253
if test -n "$ac_eof"; then
 
8254
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
8255
  ac_eof=`expr $ac_eof + 1`
 
8256
fi
 
8257
 
 
8258
cat >>$CONFIG_STATUS <<_ACEOF
 
8259
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
 
8260
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
8261
_ACEOF
 
8262
sed '
 
8263
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
8264
s/^/s,@/; s/!/@,|#_!!_#|/
 
8265
:n
 
8266
t n
 
8267
s/'"$ac_delim"'$/,g/; t
 
8268
s/$/\\/; p
 
8269
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
8270
' >>$CONFIG_STATUS <conf$$subs.sed
 
8271
rm -f conf$$subs.sed
 
8272
cat >>$CONFIG_STATUS <<_ACEOF
 
8273
CEOF$ac_eof
 
8274
_ACEOF
 
8275
 
 
8276
 
 
8277
ac_delim='%!_!# '
 
8278
for ac_last_try in false false false false false :; do
 
8279
  cat >conf$$subs.sed <<_ACEOF
 
8280
PDFGEN!$PDFGEN$ac_delim
 
8281
LTLIBOBJS!$LTLIBOBJS$ac_delim
 
8282
_ACEOF
 
8283
 
 
8284
  if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 2; then
 
8285
    break
 
8286
  elif $ac_last_try; then
 
8287
    { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
 
8288
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
 
8289
   { (exit 1); exit 1; }; }
 
8290
  else
 
8291
    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 
8292
  fi
 
8293
done
 
8294
 
 
8295
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
 
8296
if test -n "$ac_eof"; then
 
8297
  ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
 
8298
  ac_eof=`expr $ac_eof + 1`
 
8299
fi
 
8300
 
 
8301
cat >>$CONFIG_STATUS <<_ACEOF
 
8302
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
 
8303
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
 
8304
_ACEOF
 
8305
sed '
 
8306
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
 
8307
s/^/s,@/; s/!/@,|#_!!_#|/
 
8308
:n
 
8309
t n
 
8310
s/'"$ac_delim"'$/,g/; t
 
8311
s/$/\\/; p
 
8312
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
 
8313
' >>$CONFIG_STATUS <conf$$subs.sed
 
8314
rm -f conf$$subs.sed
 
8315
cat >>$CONFIG_STATUS <<_ACEOF
 
8316
:end
 
8317
s/|#_!!_#|//g
 
8318
CEOF$ac_eof
 
8319
_ACEOF
 
8320
 
 
8321
 
 
8322
# VPATH may cause trouble with some makes, so we remove $(srcdir),
 
8323
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
 
8324
# trailing colons and then remove the whole line if VPATH becomes empty
 
8325
# (actually we leave an empty line to preserve line numbers).
 
8326
if test "x$srcdir" = x.; then
 
8327
  ac_vpsub='/^[  ]*VPATH[        ]*=/{
 
8328
s/:*\$(srcdir):*/:/
 
8329
s/:*\${srcdir}:*/:/
 
8330
s/:*@srcdir@:*/:/
 
8331
s/^\([^=]*=[     ]*\):*/\1/
 
8332
s/:*$//
 
8333
s/^[^=]*=[       ]*$//
 
8334
}'
 
8335
fi
 
8336
 
 
8337
cat >>$CONFIG_STATUS <<\_ACEOF
 
8338
fi # test -n "$CONFIG_FILES"
 
8339
 
 
8340
 
 
8341
for ac_tag in  :F $CONFIG_FILES      :C $CONFIG_COMMANDS
 
8342
do
 
8343
  case $ac_tag in
 
8344
  :[FHLC]) ac_mode=$ac_tag; continue;;
 
8345
  esac
 
8346
  case $ac_mode$ac_tag in
 
8347
  :[FHL]*:*);;
 
8348
  :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
 
8349
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
 
8350
   { (exit 1); exit 1; }; };;
 
8351
  :[FH]-) ac_tag=-:-;;
 
8352
  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 
8353
  esac
 
8354
  ac_save_IFS=$IFS
 
8355
  IFS=:
 
8356
  set x $ac_tag
 
8357
  IFS=$ac_save_IFS
 
8358
  shift
 
8359
  ac_file=$1
 
8360
  shift
 
8361
 
 
8362
  case $ac_mode in
 
8363
  :L) ac_source=$1;;
 
8364
  :[FH])
 
8365
    ac_file_inputs=
 
8366
    for ac_f
 
8367
    do
 
8368
      case $ac_f in
 
8369
      -) ac_f="$tmp/stdin";;
 
8370
      *) # Look for the file first in the build tree, then in the source tree
 
8371
         # (if the path is not absolute).  The absolute path cannot be DOS-style,
 
8372
         # because $ac_f cannot contain `:'.
 
8373
         test -f "$ac_f" ||
 
8374
           case $ac_f in
 
8375
           [\\/$]*) false;;
 
8376
           *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
 
8377
           esac ||
 
8378
           { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
 
8379
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
 
8380
   { (exit 1); exit 1; }; };;
 
8381
      esac
 
8382
      ac_file_inputs="$ac_file_inputs $ac_f"
 
8383
    done
 
8384
 
 
8385
    # Let's still pretend it is `configure' which instantiates (i.e., don't
 
8386
    # use $as_me), people would be surprised to read:
 
8387
    #    /* config.h.  Generated by config.status.  */
 
8388
    configure_input="Generated from "`IFS=:
 
8389
          echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
 
8390
    if test x"$ac_file" != x-; then
 
8391
      configure_input="$ac_file.  $configure_input"
 
8392
      { echo "$as_me:$LINENO: creating $ac_file" >&5
 
8393
echo "$as_me: creating $ac_file" >&6;}
 
8394
    fi
 
8395
 
 
8396
    case $ac_tag in
 
8397
    *:-:* | *:-) cat >"$tmp/stdin";;
 
8398
    esac
 
8399
    ;;
 
8400
  esac
 
8401
 
 
8402
  ac_dir=`$as_dirname -- "$ac_file" ||
 
8403
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8404
         X"$ac_file" : 'X\(//\)[^/]' \| \
 
8405
         X"$ac_file" : 'X\(//\)$' \| \
 
8406
         X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
 
8407
echo X"$ac_file" |
 
8408
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8409
            s//\1/
 
8410
            q
 
8411
          }
 
8412
          /^X\(\/\/\)[^/].*/{
 
8413
            s//\1/
 
8414
            q
 
8415
          }
 
8416
          /^X\(\/\/\)$/{
 
8417
            s//\1/
 
8418
            q
 
8419
          }
 
8420
          /^X\(\/\).*/{
 
8421
            s//\1/
 
8422
            q
 
8423
          }
 
8424
          s/.*/./; q'`
 
8425
  { as_dir="$ac_dir"
 
8426
  case $as_dir in #(
 
8427
  -*) as_dir=./$as_dir;;
 
8428
  esac
 
8429
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
8430
    as_dirs=
 
8431
    while :; do
 
8432
      case $as_dir in #(
 
8433
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
8434
      *) as_qdir=$as_dir;;
 
8435
      esac
 
8436
      as_dirs="'$as_qdir' $as_dirs"
 
8437
      as_dir=`$as_dirname -- "$as_dir" ||
 
8438
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8439
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
8440
         X"$as_dir" : 'X\(//\)$' \| \
 
8441
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
8442
echo X"$as_dir" |
 
8443
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8444
            s//\1/
 
8445
            q
 
8446
          }
 
8447
          /^X\(\/\/\)[^/].*/{
 
8448
            s//\1/
 
8449
            q
 
8450
          }
 
8451
          /^X\(\/\/\)$/{
 
8452
            s//\1/
 
8453
            q
 
8454
          }
 
8455
          /^X\(\/\).*/{
 
8456
            s//\1/
 
8457
            q
 
8458
          }
 
8459
          s/.*/./; q'`
 
8460
      test -d "$as_dir" && break
 
8461
    done
 
8462
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
8463
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
8464
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
8465
   { (exit 1); exit 1; }; }; }
 
8466
  ac_builddir=.
 
8467
 
 
8468
case "$ac_dir" in
 
8469
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
8470
*)
 
8471
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
 
8472
  # A ".." for each directory in $ac_dir_suffix.
 
8473
  ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
 
8474
  case $ac_top_builddir_sub in
 
8475
  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 
8476
  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 
8477
  esac ;;
 
8478
esac
 
8479
ac_abs_top_builddir=$ac_pwd
 
8480
ac_abs_builddir=$ac_pwd$ac_dir_suffix
 
8481
# for backward compatibility:
 
8482
ac_top_builddir=$ac_top_build_prefix
 
8483
 
 
8484
case $srcdir in
 
8485
  .)  # We are building in place.
 
8486
    ac_srcdir=.
 
8487
    ac_top_srcdir=$ac_top_builddir_sub
 
8488
    ac_abs_top_srcdir=$ac_pwd ;;
 
8489
  [\\/]* | ?:[\\/]* )  # Absolute name.
 
8490
    ac_srcdir=$srcdir$ac_dir_suffix;
 
8491
    ac_top_srcdir=$srcdir
 
8492
    ac_abs_top_srcdir=$srcdir ;;
 
8493
  *) # Relative name.
 
8494
    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 
8495
    ac_top_srcdir=$ac_top_build_prefix$srcdir
 
8496
    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 
8497
esac
 
8498
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 
8499
 
 
8500
 
 
8501
  case $ac_mode in
 
8502
  :F)
 
8503
  #
 
8504
  # CONFIG_FILE
 
8505
  #
 
8506
 
 
8507
  case $INSTALL in
 
8508
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
 
8509
  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
 
8510
  esac
 
8511
  ac_MKDIR_P=$MKDIR_P
 
8512
  case $MKDIR_P in
 
8513
  [\\/$]* | ?:[\\/]* ) ;;
 
8514
  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
 
8515
  esac
 
8516
_ACEOF
 
8517
 
 
8518
cat >>$CONFIG_STATUS <<\_ACEOF
 
8519
# If the template does not know about datarootdir, expand it.
 
8520
# FIXME: This hack should be removed a few years after 2.60.
 
8521
ac_datarootdir_hack=; ac_datarootdir_seen=
 
8522
 
 
8523
case `sed -n '/datarootdir/ {
 
8524
  p
 
8525
  q
 
8526
}
 
8527
/@datadir@/p
 
8528
/@docdir@/p
 
8529
/@infodir@/p
 
8530
/@localedir@/p
 
8531
/@mandir@/p
 
8532
' $ac_file_inputs` in
 
8533
*datarootdir*) ac_datarootdir_seen=yes;;
 
8534
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
 
8535
  { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
 
8536
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
 
8537
_ACEOF
 
8538
cat >>$CONFIG_STATUS <<_ACEOF
 
8539
  ac_datarootdir_hack='
 
8540
  s&@datadir@&$datadir&g
 
8541
  s&@docdir@&$docdir&g
 
8542
  s&@infodir@&$infodir&g
 
8543
  s&@localedir@&$localedir&g
 
8544
  s&@mandir@&$mandir&g
 
8545
    s&\\\${datarootdir}&$datarootdir&g' ;;
 
8546
esac
 
8547
_ACEOF
 
8548
 
 
8549
# Neutralize VPATH when `$srcdir' = `.'.
 
8550
# Shell code in configure.ac might set extrasub.
 
8551
# FIXME: do we really want to maintain this feature?
 
8552
cat >>$CONFIG_STATUS <<_ACEOF
 
8553
  sed "$ac_vpsub
 
8554
$extrasub
 
8555
_ACEOF
 
8556
cat >>$CONFIG_STATUS <<\_ACEOF
 
8557
:t
 
8558
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
 
8559
s&@configure_input@&$configure_input&;t t
 
8560
s&@top_builddir@&$ac_top_builddir_sub&;t t
 
8561
s&@srcdir@&$ac_srcdir&;t t
 
8562
s&@abs_srcdir@&$ac_abs_srcdir&;t t
 
8563
s&@top_srcdir@&$ac_top_srcdir&;t t
 
8564
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
 
8565
s&@builddir@&$ac_builddir&;t t
 
8566
s&@abs_builddir@&$ac_abs_builddir&;t t
 
8567
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
 
8568
s&@INSTALL@&$ac_INSTALL&;t t
 
8569
s&@MKDIR_P@&$ac_MKDIR_P&;t t
 
8570
$ac_datarootdir_hack
 
8571
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
 
8572
 
 
8573
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
 
8574
  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
 
8575
  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
 
8576
  { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8577
which seems to be undefined.  Please make sure it is defined." >&5
 
8578
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
 
8579
which seems to be undefined.  Please make sure it is defined." >&2;}
 
8580
 
 
8581
  rm -f "$tmp/stdin"
 
8582
  case $ac_file in
 
8583
  -) cat "$tmp/out"; rm -f "$tmp/out";;
 
8584
  *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
 
8585
  esac
 
8586
 ;;
 
8587
 
 
8588
 
 
8589
  :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
 
8590
echo "$as_me: executing $ac_file commands" >&6;}
 
8591
 ;;
 
8592
  esac
 
8593
 
 
8594
 
 
8595
  case $ac_file$ac_mode in
 
8596
    "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
 
8597
  # Strip MF so we end up with the name of the file.
 
8598
  mf=`echo "$mf" | sed -e 's/:.*$//'`
 
8599
  # Check whether this is an Automake generated Makefile or not.
 
8600
  # We used to match only the files named `Makefile.in', but
 
8601
  # some people rename them; so instead we look at the file content.
 
8602
  # Grep'ing the first line is not enough: some people post-process
 
8603
  # each Makefile.in and add a new line on top of each file to say so.
 
8604
  # Grep'ing the whole file is not good either: AIX grep has a line
 
8605
  # limit of 2048, but all sed's we know have understand at least 4000.
 
8606
  if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
 
8607
    dirpart=`$as_dirname -- "$mf" ||
 
8608
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8609
         X"$mf" : 'X\(//\)[^/]' \| \
 
8610
         X"$mf" : 'X\(//\)$' \| \
 
8611
         X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
 
8612
echo X"$mf" |
 
8613
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8614
            s//\1/
 
8615
            q
 
8616
          }
 
8617
          /^X\(\/\/\)[^/].*/{
 
8618
            s//\1/
 
8619
            q
 
8620
          }
 
8621
          /^X\(\/\/\)$/{
 
8622
            s//\1/
 
8623
            q
 
8624
          }
 
8625
          /^X\(\/\).*/{
 
8626
            s//\1/
 
8627
            q
 
8628
          }
 
8629
          s/.*/./; q'`
 
8630
  else
 
8631
    continue
 
8632
  fi
 
8633
  # Extract the definition of DEPDIR, am__include, and am__quote
 
8634
  # from the Makefile without running `make'.
 
8635
  DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
 
8636
  test -z "$DEPDIR" && continue
 
8637
  am__include=`sed -n 's/^am__include = //p' < "$mf"`
 
8638
  test -z "am__include" && continue
 
8639
  am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
 
8640
  # When using ansi2knr, U may be empty or an underscore; expand it
 
8641
  U=`sed -n 's/^U = //p' < "$mf"`
 
8642
  # Find all dependency output files, they are included files with
 
8643
  # $(DEPDIR) in their names.  We invoke sed twice because it is the
 
8644
  # simplest approach to changing $(DEPDIR) to its actual value in the
 
8645
  # expansion.
 
8646
  for file in `sed -n "
 
8647
    s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
 
8648
       sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
 
8649
    # Make sure the directory exists.
 
8650
    test -f "$dirpart/$file" && continue
 
8651
    fdir=`$as_dirname -- "$file" ||
 
8652
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8653
         X"$file" : 'X\(//\)[^/]' \| \
 
8654
         X"$file" : 'X\(//\)$' \| \
 
8655
         X"$file" : 'X\(/\)' \| . 2>/dev/null ||
 
8656
echo X"$file" |
 
8657
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8658
            s//\1/
 
8659
            q
 
8660
          }
 
8661
          /^X\(\/\/\)[^/].*/{
 
8662
            s//\1/
 
8663
            q
 
8664
          }
 
8665
          /^X\(\/\/\)$/{
 
8666
            s//\1/
 
8667
            q
 
8668
          }
 
8669
          /^X\(\/\).*/{
 
8670
            s//\1/
 
8671
            q
 
8672
          }
 
8673
          s/.*/./; q'`
 
8674
    { as_dir=$dirpart/$fdir
 
8675
  case $as_dir in #(
 
8676
  -*) as_dir=./$as_dir;;
 
8677
  esac
 
8678
  test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
 
8679
    as_dirs=
 
8680
    while :; do
 
8681
      case $as_dir in #(
 
8682
      *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
 
8683
      *) as_qdir=$as_dir;;
 
8684
      esac
 
8685
      as_dirs="'$as_qdir' $as_dirs"
 
8686
      as_dir=`$as_dirname -- "$as_dir" ||
 
8687
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 
8688
         X"$as_dir" : 'X\(//\)[^/]' \| \
 
8689
         X"$as_dir" : 'X\(//\)$' \| \
 
8690
         X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 
8691
echo X"$as_dir" |
 
8692
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 
8693
            s//\1/
 
8694
            q
 
8695
          }
 
8696
          /^X\(\/\/\)[^/].*/{
 
8697
            s//\1/
 
8698
            q
 
8699
          }
 
8700
          /^X\(\/\/\)$/{
 
8701
            s//\1/
 
8702
            q
 
8703
          }
 
8704
          /^X\(\/\).*/{
 
8705
            s//\1/
 
8706
            q
 
8707
          }
 
8708
          s/.*/./; q'`
 
8709
      test -d "$as_dir" && break
 
8710
    done
 
8711
    test -z "$as_dirs" || eval "mkdir $as_dirs"
 
8712
  } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
 
8713
echo "$as_me: error: cannot create directory $as_dir" >&2;}
 
8714
   { (exit 1); exit 1; }; }; }
 
8715
    # echo "creating $dirpart/$file"
 
8716
    echo '# dummy' > "$dirpart/$file"
 
8717
  done
 
8718
done
 
8719
 ;;
 
8720
 
 
8721
  esac
 
8722
done # for ac_tag
 
8723
 
 
8724
 
 
8725
{ (exit 0); exit 0; }
 
8726
_ACEOF
 
8727
chmod +x $CONFIG_STATUS
 
8728
ac_clean_files=$ac_clean_files_save
 
8729
 
 
8730
 
 
8731
# configure is writing to config.log, and then calls config.status.
 
8732
# config.status does its own redirection, appending to config.log.
 
8733
# Unfortunately, on DOS this fails, as config.log is still kept open
 
8734
# by configure, so config.status won't be able to write to it; its
 
8735
# output is simply discarded.  So we exec the FD to /dev/null,
 
8736
# effectively closing config.log, so it can be properly (re)opened and
 
8737
# appended to by config.status.  When coming back to configure, we
 
8738
# need to make the FD available again.
 
8739
if test "$no_create" != yes; then
 
8740
  ac_cs_success=:
 
8741
  ac_config_status_args=
 
8742
  test "$silent" = yes &&
 
8743
    ac_config_status_args="$ac_config_status_args --quiet"
 
8744
  exec 5>/dev/null
 
8745
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
 
8746
  exec 5>>config.log
 
8747
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
 
8748
  # would make configure fail if this is the last instruction.
 
8749
  $ac_cs_success || { (exit 1); exit 1; }
 
8750
fi
 
8751