~ubuntu-branches/ubuntu/oneiric/nis/oneiric-proposed

« back to all changes in this revision

Viewing changes to ypbind-mt-1.19.1/configure

  • Committer: Bazaar Package Importer
  • Author(s): Scott James Remnant
  • Date: 2005-11-16 23:42:06 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20051116234206-p00omaw5ji5q0qhr
Tags: 3.15-3ubuntu1
Resynchronise with Debian.  (me)

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