~ubuntu-branches/ubuntu/maverick/ncpfs/maverick

1 by Eloy A. Paris
Import upstream version 2.2.4
1
#! /bin/sh
1.1.1 by Anibal Monsalve Salazar
Import upstream version 2.2.6
2
# From configure.ac 2.2.6.
1 by Eloy A. Paris
Import upstream version 2.2.4
3
# Guess values for system-dependent variables and create Makefiles.
1.1.1 by Anibal Monsalve Salazar
Import upstream version 2.2.6
4
# Generated by GNU Autoconf 2.59 for ncpfs 2.2.6.
1 by Eloy A. Paris
Import upstream version 2.2.4
5
#
6
# Report bugs to <vandrove@vc.cvut.cz>.
7
#
8
# Copyright (C) 2003 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization.  ##
13
## --------------------- ##
14
15
# Be Bourne compatible
16
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17
  emulate sh
18
  NULLCMD=:
19
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20
  # is contrary to our usage.  Disable this feature.
21
  alias -g '${1+"$@"}'='"$@"'
22
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23
  set -o posix
24
fi
25
DUALCASE=1; export DUALCASE # for MKS sh
26
27
# Support unset when possible.
28
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
29
  as_unset=unset
30
else
31
  as_unset=false
32
fi
33
34
35
# Work around bugs in pre-3.0 UWIN ksh.
36
$as_unset ENV MAIL MAILPATH
37
PS1='$ '
38
PS2='> '
39
PS4='+ '
40
41
# NLS nuisances.
42
for as_var in \
43
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45
  LC_TELEPHONE LC_TIME
46
do
47
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48
    eval $as_var=C; export $as_var
49
  else
50
    $as_unset $as_var
51
  fi
52
done
53
54
# Required to use basename.
55
if expr a : '\(a\)' >/dev/null 2>&1; then
56
  as_expr=expr
57
else
58
  as_expr=false
59
fi
60
61
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
62
  as_basename=basename
63
else
64
  as_basename=false
65
fi
66
67
68
# Name of the executable.
69
as_me=`$as_basename "$0" ||
70
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71
	 X"$0" : 'X\(//\)$' \| \
72
	 X"$0" : 'X\(/\)$' \| \
73
	 .     : '\(.\)' 2>/dev/null ||
74
echo X/"$0" |
75
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
77
  	  /^X\/\(\/\).*/{ s//\1/; q; }
78
  	  s/.*/./; q'`
79
80
81
# PATH needs CR, and LINENO needs CR and PATH.
82
# Avoid depending upon Character Ranges.
83
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86
as_cr_digits='0123456789'
87
as_cr_alnum=$as_cr_Letters$as_cr_digits
88
89
# The user is always right.
90
if test "${PATH_SEPARATOR+set}" != set; then
91
  echo "#! /bin/sh" >conf$$.sh
92
  echo  "exit 0"   >>conf$$.sh
93
  chmod +x conf$$.sh
94
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
95
    PATH_SEPARATOR=';'
96
  else
97
    PATH_SEPARATOR=:
98
  fi
99
  rm -f conf$$.sh
100
fi
101
102
103
  as_lineno_1=$LINENO
104
  as_lineno_2=$LINENO
105
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106
  test "x$as_lineno_1" != "x$as_lineno_2" &&
107
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
108
  # Find who we are.  Look in the path if we contain no path at all
109
  # relative or not.
110
  case $0 in
111
    *[\\/]* ) as_myself=$0 ;;
112
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
113
for as_dir in $PATH
114
do
115
  IFS=$as_save_IFS
116
  test -z "$as_dir" && as_dir=.
117
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
118
done
119
120
       ;;
121
  esac
122
  # We did not find ourselves, most probably we were run as `sh COMMAND'
123
  # in which case we are not to be found in the path.
124
  if test "x$as_myself" = x; then
125
    as_myself=$0
126
  fi
127
  if test ! -f "$as_myself"; then
128
    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129
   { (exit 1); exit 1; }; }
130
  fi
131
  case $CONFIG_SHELL in
132
  '')
133
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135
do
136
  IFS=$as_save_IFS
137
  test -z "$as_dir" && as_dir=.
138
  for as_base in sh bash ksh sh5; do
139
	 case $as_dir in
140
	 /*)
141
	   if ("$as_dir/$as_base" -c '
142
  as_lineno_1=$LINENO
143
  as_lineno_2=$LINENO
144
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145
  test "x$as_lineno_1" != "x$as_lineno_2" &&
146
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
147
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149
	     CONFIG_SHELL=$as_dir/$as_base
150
	     export CONFIG_SHELL
151
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
152
	   fi;;
153
	 esac
154
       done
155
done
156
;;
157
  esac
158
159
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160
  # uniformly replaced by the line number.  The first 'sed' inserts a
161
  # line-number line before each line; the second 'sed' does the real
162
  # work.  The second script uses 'N' to pair each line-number line
163
  # with the numbered line, and appends trailing '-' during
164
  # substitution so that $LINENO is not a special case at line end.
165
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
167
  sed '=' <$as_myself |
168
    sed '
169
      N
170
      s,$,-,
171
      : loop
172
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173
      t loop
174
      s,-$,,
175
      s,^['$as_cr_digits']*\n,,
176
    ' >$as_me.lineno &&
177
  chmod +x $as_me.lineno ||
178
    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179
   { (exit 1); exit 1; }; }
180
181
  # Don't try to exec as it changes $[0], causing all sort of problems
182
  # (the dirname of $[0] is not the place where we might find the
183
  # original and so on.  Autoconf is especially sensible to this).
184
  . ./$as_me.lineno
185
  # Exit status is that of the last command.
186
  exit
187
}
188
189
190
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191
  *c*,-n*) ECHO_N= ECHO_C='
192
' ECHO_T='	' ;;
193
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
195
esac
196
197
if expr a : '\(a\)' >/dev/null 2>&1; then
198
  as_expr=expr
199
else
200
  as_expr=false
201
fi
202
203
rm -f conf$$ conf$$.exe conf$$.file
204
echo >conf$$.file
205
if ln -s conf$$.file conf$$ 2>/dev/null; then
206
  # We could just check for DJGPP; but this test a) works b) is more generic
207
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208
  if test -f conf$$.exe; then
209
    # Don't use ln at all; we don't have any links
210
    as_ln_s='cp -p'
211
  else
212
    as_ln_s='ln -s'
213
  fi
214
elif ln conf$$.file conf$$ 2>/dev/null; then
215
  as_ln_s=ln
216
else
217
  as_ln_s='cp -p'
218
fi
219
rm -f conf$$ conf$$.exe conf$$.file
220
221
if mkdir -p . 2>/dev/null; then
222
  as_mkdir_p=:
223
else
224
  test -d ./-p && rmdir ./-p
225
  as_mkdir_p=false
226
fi
227
228
as_executable_p="test -f"
229
230
# Sed expression to map a string onto a valid CPP name.
231
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232
233
# Sed expression to map a string onto a valid variable name.
234
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235
236
237
# IFS
238
# We need space, tab and new line, in precisely that order.
239
as_nl='
240
'
241
IFS=" 	$as_nl"
242
243
# CDPATH.
244
$as_unset CDPATH
245
246
247
# Name of the host.
248
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
249
# so uname gets run too.
250
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
251
252
exec 6>&1
253
254
#
255
# Initializations.
256
#
257
ac_default_prefix=/usr/local
258
ac_config_libobj_dir=.
259
cross_compiling=no
260
subdirs=
261
MFLAGS=
262
MAKEFLAGS=
263
SHELL=${CONFIG_SHELL-/bin/sh}
264
265
# Maximum number of lines to put in a shell here document.
266
# This variable seems obsolete.  It should probably be removed, and
267
# only ac_max_sed_lines should be used.
268
: ${ac_max_here_lines=38}
269
270
# Identity of this package.
271
PACKAGE_NAME='ncpfs'
272
PACKAGE_TARNAME='-ncpfs-'
1.1.1 by Anibal Monsalve Salazar
Import upstream version 2.2.6
273
PACKAGE_VERSION='2.2.6'
274
PACKAGE_STRING='ncpfs 2.2.6'
1 by Eloy A. Paris
Import upstream version 2.2.4
275
PACKAGE_BUGREPORT='vandrove@vc.cvut.cz'
276
277
ac_unique_file="lib/ncplib.c"
278
# Factoring default headers for most tests.
279
ac_includes_default="\
280
#include <stdio.h>
281
#if HAVE_SYS_TYPES_H
282
# include <sys/types.h>
283
#endif
284
#if HAVE_SYS_STAT_H
285
# include <sys/stat.h>
286
#endif
287
#if STDC_HEADERS
288
# include <stdlib.h>
289
# include <stddef.h>
290
#else
291
# if HAVE_STDLIB_H
292
#  include <stdlib.h>
293
# endif
294
#endif
295
#if HAVE_STRING_H
296
# if !STDC_HEADERS && HAVE_MEMORY_H
297
#  include <memory.h>
298
# endif
299
# include <string.h>
300
#endif
301
#if HAVE_STRINGS_H
302
# include <strings.h>
303
#endif
304
#if HAVE_INTTYPES_H
305
# include <inttypes.h>
306
#else
307
# if HAVE_STDINT_H
308
#  include <stdint.h>
309
# endif
310
#endif
311
#if HAVE_UNISTD_H
312
# include <unistd.h>
313
#endif"
314
315
ac_subdirs_all="$ac_subdirs_all contrib/php"
316
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 CC_WARNINGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S PACKAGE VERSION MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE RANLIB ac_ct_RANLIB CPP EGREP ALLOCA GLIBC21 LIBICONV LTLIBICONV INTLBISON USE_NLS BUILD_INCLUDED_LIBINTL USE_INCLUDED_LIBINTL CATOBJEXT INTLOBJS DATADIRNAME INSTOBJEXT GENCAT INTL_LIBTOOL_SUFFIX_PREFIX INTLLIBS LIBINTL LTLIBINTL POSUB localedir ncp_ipx_headers_1 ncp_ipx_headers_2 ncp_ipx_defsiocprotoprivate ncp_ipx_defsiocaipx ncp_sys_mount_h ncp_linux_fs_h ncp_net_if_h ncp_net_route_h ncp_if_ether_support ncp_sys_select_h stdint_types socklen_t wchar_h LIB_PAM_SECURITY php_found REENTRANT_CFLAGS ncphost ELF_TARGET VERSIONED_LINK ncp_in_support ncp_ipx_support NDS_SUPPORT SIGNATURES MOUNT2 MOUNT3 USE_KERNEL ADDON_SUBDIRS ADDON_DEV_SUBDIRS FFUNCTION_SECTIONS GC_SECTIONS subdirs LIBOBJS LTLIBOBJS'
317
ac_subst_files=''
318
319
# Initialize some variables set by options.
320
ac_init_help=
321
ac_init_version=false
322
# The variables have the same names as the options, with
323
# dashes changed to underlines.
324
cache_file=/dev/null
325
exec_prefix=NONE
326
no_create=
327
no_recursion=
328
prefix=NONE
329
program_prefix=NONE
330
program_suffix=NONE
331
program_transform_name=s,x,x,
332
silent=
333
site=
334
srcdir=
335
verbose=
336
x_includes=NONE
337
x_libraries=NONE
338
339
# Installation directory options.
340
# These are left unexpanded so users can "make install exec_prefix=/foo"
341
# and all the variables that are supposed to be based on exec_prefix
342
# by default will actually change.
343
# Use braces instead of parens because sh, perl, etc. also accept them.
344
bindir='${exec_prefix}/bin'
345
sbindir='${exec_prefix}/sbin'
346
libexecdir='${exec_prefix}/libexec'
347
datadir='${prefix}/share'
348
sysconfdir='${prefix}/etc'
349
sharedstatedir='${prefix}/com'
350
localstatedir='${prefix}/var'
351
libdir='${exec_prefix}/lib'
352
includedir='${prefix}/include'
353
oldincludedir='/usr/include'
354
infodir='${prefix}/info'
355
mandir='${prefix}/man'
356
357
ac_prev=
358
for ac_option
359
do
360
  # If the previous option needs an argument, assign it.
361
  if test -n "$ac_prev"; then
362
    eval "$ac_prev=\$ac_option"
363
    ac_prev=
364
    continue
365
  fi
366
367
  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
368
369
  # Accept the important Cygnus configure options, so we can diagnose typos.
370
371
  case $ac_option in
372
373
  -bindir | --bindir | --bindi | --bind | --bin | --bi)
374
    ac_prev=bindir ;;
375
  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
376
    bindir=$ac_optarg ;;
377
378
  -build | --build | --buil | --bui | --bu)
379
    ac_prev=build_alias ;;
380
  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
381
    build_alias=$ac_optarg ;;
382
383
  -cache-file | --cache-file | --cache-fil | --cache-fi \
384
  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
385
    ac_prev=cache_file ;;
386
  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
387
  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
388
    cache_file=$ac_optarg ;;
389
390
  --config-cache | -C)
391
    cache_file=config.cache ;;
392
393
  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
394
    ac_prev=datadir ;;
395
  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
396
  | --da=*)
397
    datadir=$ac_optarg ;;
398
399
  -disable-* | --disable-*)
400
    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
401
    # Reject names that are not valid shell variable names.
402
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
403
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
404
   { (exit 1); exit 1; }; }
405
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
406
    eval "enable_$ac_feature=no" ;;
407
408
  -enable-* | --enable-*)
409
    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
410
    # Reject names that are not valid shell variable names.
411
    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
412
      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
413
   { (exit 1); exit 1; }; }
414
    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
415
    case $ac_option in
416
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
417
      *) ac_optarg=yes ;;
418
    esac
419
    eval "enable_$ac_feature='$ac_optarg'" ;;
420
421
  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
422
  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
423
  | --exec | --exe | --ex)
424
    ac_prev=exec_prefix ;;
425
  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
426
  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
427
  | --exec=* | --exe=* | --ex=*)
428
    exec_prefix=$ac_optarg ;;
429
430
  -gas | --gas | --ga | --g)
431
    # Obsolete; use --with-gas.
432
    with_gas=yes ;;
433
434
  -help | --help | --hel | --he | -h)
435
    ac_init_help=long ;;
436
  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
437
    ac_init_help=recursive ;;
438
  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
439
    ac_init_help=short ;;
440
441
  -host | --host | --hos | --ho)
442
    ac_prev=host_alias ;;
443
  -host=* | --host=* | --hos=* | --ho=*)
444
    host_alias=$ac_optarg ;;
445
446
  -includedir | --includedir | --includedi | --included | --include \
447
  | --includ | --inclu | --incl | --inc)
448
    ac_prev=includedir ;;
449
  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
450
  | --includ=* | --inclu=* | --incl=* | --inc=*)
451
    includedir=$ac_optarg ;;
452
453
  -infodir | --infodir | --infodi | --infod | --info | --inf)
454
    ac_prev=infodir ;;
455
  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
456
    infodir=$ac_optarg ;;
457
458
  -libdir | --libdir | --libdi | --libd)
459
    ac_prev=libdir ;;
460
  -libdir=* | --libdir=* | --libdi=* | --libd=*)
461
    libdir=$ac_optarg ;;
462
463
  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
464
  | --libexe | --libex | --libe)
465
    ac_prev=libexecdir ;;
466
  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
467
  | --libexe=* | --libex=* | --libe=*)
468
    libexecdir=$ac_optarg ;;
469
470
  -localstatedir | --localstatedir | --localstatedi | --localstated \
471
  | --localstate | --localstat | --localsta | --localst \
472
  | --locals | --local | --loca | --loc | --lo)
473
    ac_prev=localstatedir ;;
474
  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
475
  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
476
  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
477
    localstatedir=$ac_optarg ;;
478
479
  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
480
    ac_prev=mandir ;;
481
  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
482
    mandir=$ac_optarg ;;
483
484
  -nfp | --nfp | --nf)
485
    # Obsolete; use --without-fp.
486
    with_fp=no ;;
487
488
  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
489
  | --no-cr | --no-c | -n)
490
    no_create=yes ;;
491
492
  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
493
  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
494
    no_recursion=yes ;;
495
496
  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
497
  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
498
  | --oldin | --oldi | --old | --ol | --o)
499
    ac_prev=oldincludedir ;;
500
  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
501
  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
502
  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
503
    oldincludedir=$ac_optarg ;;
504
505
  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
506
    ac_prev=prefix ;;
507
  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
508
    prefix=$ac_optarg ;;
509
510
  -program-prefix | --program-prefix | --program-prefi | --program-pref \
511
  | --program-pre | --program-pr | --program-p)
512
    ac_prev=program_prefix ;;
513
  -program-prefix=* | --program-prefix=* | --program-prefi=* \
514
  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
515
    program_prefix=$ac_optarg ;;
516
517
  -program-suffix | --program-suffix | --program-suffi | --program-suff \
518
  | --program-suf | --program-su | --program-s)
519
    ac_prev=program_suffix ;;
520
  -program-suffix=* | --program-suffix=* | --program-suffi=* \
521
  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
522
    program_suffix=$ac_optarg ;;
523
524
  -program-transform-name | --program-transform-name \
525
  | --program-transform-nam | --program-transform-na \
526
  | --program-transform-n | --program-transform- \
527
  | --program-transform | --program-transfor \
528
  | --program-transfo | --program-transf \
529
  | --program-trans | --program-tran \
530
  | --progr-tra | --program-tr | --program-t)
531
    ac_prev=program_transform_name ;;
532
  -program-transform-name=* | --program-transform-name=* \
533
  | --program-transform-nam=* | --program-transform-na=* \
534
  | --program-transform-n=* | --program-transform-=* \
535
  | --program-transform=* | --program-transfor=* \
536
  | --program-transfo=* | --program-transf=* \
537
  | --program-trans=* | --program-tran=* \
538
  | --progr-tra=* | --program-tr=* | --program-t=*)
539
    program_transform_name=$ac_optarg ;;
540
541
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
542
  | -silent | --silent | --silen | --sile | --sil)
543
    silent=yes ;;
544
545
  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
546
    ac_prev=sbindir ;;
547
  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
548
  | --sbi=* | --sb=*)
549
    sbindir=$ac_optarg ;;
550
551
  -sharedstatedir | --sharedstatedir | --sharedstatedi \
552
  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
553
  | --sharedst | --shareds | --shared | --share | --shar \
554
  | --sha | --sh)
555
    ac_prev=sharedstatedir ;;
556
  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
557
  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
558
  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
559
  | --sha=* | --sh=*)
560
    sharedstatedir=$ac_optarg ;;
561
562
  -site | --site | --sit)
563
    ac_prev=site ;;
564
  -site=* | --site=* | --sit=*)
565
    site=$ac_optarg ;;
566
567
  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
568
    ac_prev=srcdir ;;
569
  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
570
    srcdir=$ac_optarg ;;
571
572
  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
573
  | --syscon | --sysco | --sysc | --sys | --sy)
574
    ac_prev=sysconfdir ;;
575
  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
576
  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
577
    sysconfdir=$ac_optarg ;;
578
579
  -target | --target | --targe | --targ | --tar | --ta | --t)
580
    ac_prev=target_alias ;;
581
  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
582
    target_alias=$ac_optarg ;;
583
584
  -v | -verbose | --verbose | --verbos | --verbo | --verb)
585
    verbose=yes ;;
586
587
  -version | --version | --versio | --versi | --vers | -V)
588
    ac_init_version=: ;;
589
590
  -with-* | --with-*)
591
    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
592
    # Reject names that are not valid shell variable names.
593
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
594
      { echo "$as_me: error: invalid package name: $ac_package" >&2
595
   { (exit 1); exit 1; }; }
596
    ac_package=`echo $ac_package| sed 's/-/_/g'`
597
    case $ac_option in
598
      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
599
      *) ac_optarg=yes ;;
600
    esac
601
    eval "with_$ac_package='$ac_optarg'" ;;
602
603
  -without-* | --without-*)
604
    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
605
    # Reject names that are not valid shell variable names.
606
    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
607
      { echo "$as_me: error: invalid package name: $ac_package" >&2
608
   { (exit 1); exit 1; }; }
609
    ac_package=`echo $ac_package | sed 's/-/_/g'`
610
    eval "with_$ac_package=no" ;;
611
612
  --x)
613
    # Obsolete; use --with-x.
614
    with_x=yes ;;
615
616
  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
617
  | --x-incl | --x-inc | --x-in | --x-i)
618
    ac_prev=x_includes ;;
619
  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
620
  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
621
    x_includes=$ac_optarg ;;
622
623
  -x-libraries | --x-libraries | --x-librarie | --x-librari \
624
  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
625
    ac_prev=x_libraries ;;
626
  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
627
  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
628
    x_libraries=$ac_optarg ;;
629
630
  -*) { echo "$as_me: error: unrecognized option: $ac_option
631
Try \`$0 --help' for more information." >&2
632
   { (exit 1); exit 1; }; }
633
    ;;
634
635
  *=*)
636
    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
637
    # Reject names that are not valid shell variable names.
638
    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
639
      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
640
   { (exit 1); exit 1; }; }
641
    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
642
    eval "$ac_envvar='$ac_optarg'"
643
    export $ac_envvar ;;
644
645
  *)
646
    # FIXME: should be removed in autoconf 3.0.
647
    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
648
    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
649
      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
650
    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
651
    ;;
652
653
  esac
654
done
655
656
if test -n "$ac_prev"; then
657
  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
658
  { echo "$as_me: error: missing argument to $ac_option" >&2
659
   { (exit 1); exit 1; }; }
660
fi
661
662
# Be sure to have absolute paths.
663
for ac_var in exec_prefix prefix
664
do
665
  eval ac_val=$`echo $ac_var`
666
  case $ac_val in
667
    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
668
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
669
   { (exit 1); exit 1; }; };;
670
  esac
671
done
672
673
# Be sure to have absolute paths.
674
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
675
	      localstatedir libdir includedir oldincludedir infodir mandir
676
do
677
  eval ac_val=$`echo $ac_var`
678
  case $ac_val in
679
    [\\/$]* | ?:[\\/]* ) ;;
680
    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
681
   { (exit 1); exit 1; }; };;
682
  esac
683
done
684
685
# There might be people who depend on the old broken behavior: `$host'
686
# used to hold the argument of --host etc.
687
# FIXME: To remove some day.
688
build=$build_alias
689
host=$host_alias
690
target=$target_alias
691
692
# FIXME: To remove some day.
693
if test "x$host_alias" != x; then
694
  if test "x$build_alias" = x; then
695
    cross_compiling=maybe
696
    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
697
    If a cross compiler is detected then cross compile mode will be used." >&2
698
  elif test "x$build_alias" != "x$host_alias"; then
699
    cross_compiling=yes
700
  fi
701
fi
702
703
ac_tool_prefix=
704
test -n "$host_alias" && ac_tool_prefix=$host_alias-
705
706
test "$silent" = yes && exec 6>/dev/null
707
708
709
# Find the source files, if location was not specified.
710
if test -z "$srcdir"; then
711
  ac_srcdir_defaulted=yes
712
  # Try the directory containing this script, then its parent.
713
  ac_confdir=`(dirname "$0") 2>/dev/null ||
714
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
715
	 X"$0" : 'X\(//\)[^/]' \| \
716
	 X"$0" : 'X\(//\)$' \| \
717
	 X"$0" : 'X\(/\)' \| \
718
	 .     : '\(.\)' 2>/dev/null ||
719
echo X"$0" |
720
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
721
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
722
  	  /^X\(\/\/\)$/{ s//\1/; q; }
723
  	  /^X\(\/\).*/{ s//\1/; q; }
724
  	  s/.*/./; q'`
725
  srcdir=$ac_confdir
726
  if test ! -r $srcdir/$ac_unique_file; then
727
    srcdir=..
728
  fi
729
else
730
  ac_srcdir_defaulted=no
731
fi
732
if test ! -r $srcdir/$ac_unique_file; then
733
  if test "$ac_srcdir_defaulted" = yes; then
734
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
735
   { (exit 1); exit 1; }; }
736
  else
737
    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
738
   { (exit 1); exit 1; }; }
739
  fi
740
fi
741
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
742
  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
743
   { (exit 1); exit 1; }; }
744
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
745
ac_env_build_alias_set=${build_alias+set}
746
ac_env_build_alias_value=$build_alias
747
ac_cv_env_build_alias_set=${build_alias+set}
748
ac_cv_env_build_alias_value=$build_alias
749
ac_env_host_alias_set=${host_alias+set}
750
ac_env_host_alias_value=$host_alias
751
ac_cv_env_host_alias_set=${host_alias+set}
752
ac_cv_env_host_alias_value=$host_alias
753
ac_env_target_alias_set=${target_alias+set}
754
ac_env_target_alias_value=$target_alias
755
ac_cv_env_target_alias_set=${target_alias+set}
756
ac_cv_env_target_alias_value=$target_alias
757
ac_env_CC_set=${CC+set}
758
ac_env_CC_value=$CC
759
ac_cv_env_CC_set=${CC+set}
760
ac_cv_env_CC_value=$CC
761
ac_env_CFLAGS_set=${CFLAGS+set}
762
ac_env_CFLAGS_value=$CFLAGS
763
ac_cv_env_CFLAGS_set=${CFLAGS+set}
764
ac_cv_env_CFLAGS_value=$CFLAGS
765
ac_env_LDFLAGS_set=${LDFLAGS+set}
766
ac_env_LDFLAGS_value=$LDFLAGS
767
ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
768
ac_cv_env_LDFLAGS_value=$LDFLAGS
769
ac_env_CPPFLAGS_set=${CPPFLAGS+set}
770
ac_env_CPPFLAGS_value=$CPPFLAGS
771
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
772
ac_cv_env_CPPFLAGS_value=$CPPFLAGS
773
ac_env_CPP_set=${CPP+set}
774
ac_env_CPP_value=$CPP
775
ac_cv_env_CPP_set=${CPP+set}
776
ac_cv_env_CPP_value=$CPP
777
778
#
779
# Report the --help message.
780
#
781
if test "$ac_init_help" = "long"; then
782
  # Omit some internal or obsolete options to make the list less imposing.
783
  # This message is too long to be a string in the A/UX 3.1 sh.
784
  cat <<_ACEOF
1.1.1 by Anibal Monsalve Salazar
Import upstream version 2.2.6
785
\`configure' configures ncpfs 2.2.6 to adapt to many kinds of systems.
1 by Eloy A. Paris
Import upstream version 2.2.4
786
787
Usage: $0 [OPTION]... [VAR=VALUE]...
788
789
To assign environment variables (e.g., CC, CFLAGS...), specify them as
790
VAR=VALUE.  See below for descriptions of some of the useful variables.
791
792
Defaults for the options are specified in brackets.
793
794
Configuration:
795
  -h, --help              display this help and exit
796
      --help=short        display options specific to this package
797
      --help=recursive    display the short help of all the included packages
798
  -V, --version           display version information and exit
799
  -q, --quiet, --silent   do not print \`checking...' messages
800
      --cache-file=FILE   cache test results in FILE [disabled]
801
  -C, --config-cache      alias for \`--cache-file=config.cache'
802
  -n, --no-create         do not create output files
803
      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
804
805
_ACEOF
806
807
  cat <<_ACEOF
808
Installation directories:
809
  --prefix=PREFIX         install architecture-independent files in PREFIX
810
			  [$ac_default_prefix]
811
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
812
			  [PREFIX]
813
814
By default, \`make install' will install all the files in
815
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
816
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
817
for instance \`--prefix=\$HOME'.
818
819
For better control, use the options below.
820
821
Fine tuning of the installation directories:
822
  --bindir=DIR           user executables [EPREFIX/bin]
823
  --sbindir=DIR          system admin executables [EPREFIX/sbin]
824
  --libexecdir=DIR       program executables [EPREFIX/libexec]
825
  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
826
  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
827
  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
828
  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
829
  --libdir=DIR           object code libraries [EPREFIX/lib]
830
  --includedir=DIR       C header files [PREFIX/include]
831
  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
832
  --infodir=DIR          info documentation [PREFIX/info]
833
  --mandir=DIR           man documentation [PREFIX/man]
834
_ACEOF
835
836
  cat <<\_ACEOF
837
838
System types:
839
  --build=BUILD     configure for building on BUILD [guessed]
840
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
841
_ACEOF
842
fi
843
844
if test -n "$ac_init_help"; then
845
  case $ac_init_help in
1.1.1 by Anibal Monsalve Salazar
Import upstream version 2.2.6
846
     short | recursive ) echo "Configuration of ncpfs 2.2.6:";;
1 by Eloy A. Paris
Import upstream version 2.2.4
847
   esac
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
  --enable-warnings       enable verbose build warnings
854
  --enable-pam            build PAM NCP authentication module
855
  --enable-php            build PHP NCP authentication module
856
  --disable-ipx-tools     disables building of ipx tools
857
  --disable-udp           disable NCP/UDP
858
  --disable-ipx           disable NCP/IPX
859
  --disable-signatures    disable packet signing code
860
  --disable-nds           disable NDS support
861
  --disable-mount-v2      disable support for Linux 2.0
862
  --disable-mount-v3      disable support for Linux 2.2
863
  --disable-kernel        do not use kernel interface
864
  --disable-reentrant     do not compile threading support into library
865
  --disable-versions      do not use version symbols in library
866
  --disable-function-sections   do not use -ffunction-sections for static libraries
867
  --enable-trace          enable trace of ncp calls
868
  --enable-ncp-debug      enable builtin debugging support
869
  --disable-rpath         do not hardcode runtime library paths
870
  --disable-nls           do not use Native Language Support
871
872
Optional Packages:
873
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
874
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
875
  --with-php-config=PATH  build PHP NCP authentication module
876
  --with-gnu-ld           assume the C compiler uses GNU ld default=no
877
  --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
878
  --without-libiconv-prefix     don't search for libiconv in includedir and libdir
879
  --with-included-gettext use the GNU gettext library included here
880
  --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
881
  --without-libintl-prefix     don't search for libintl in includedir and libdir
882
883
Some influential environment variables:
884
  CC          C compiler command
885
  CFLAGS      C compiler flags
886
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
887
              nonstandard directory <lib dir>
888
  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
889
              headers in a nonstandard directory <include dir>
890
  CPP         C preprocessor
891
892
Use these variables to override the choices made by `configure' or to help
893
it to find libraries and programs with nonstandard names/locations.
894
895
Report bugs to <vandrove@vc.cvut.cz>.
896
_ACEOF
897
fi
898
899
if test "$ac_init_help" = "recursive"; then
900
  # If there are subdirs, report their specific --help.
901
  ac_popdir=`pwd`
902
  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
903
    test -d $ac_dir || continue
904
    ac_builddir=.
905
906
if test "$ac_dir" != .; then
907
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
908
  # A "../" for each directory in $ac_dir_suffix.
909
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
910
else
911
  ac_dir_suffix= ac_top_builddir=
912
fi
913
914
case $srcdir in
915
  .)  # No --srcdir option.  We are building in place.
916
    ac_srcdir=.
917
    if test -z "$ac_top_builddir"; then
918
       ac_top_srcdir=.
919
    else
920
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
921
    fi ;;
922
  [\\/]* | ?:[\\/]* )  # Absolute path.
923
    ac_srcdir=$srcdir$ac_dir_suffix;
924
    ac_top_srcdir=$srcdir ;;
925
  *) # Relative path.
926
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
927
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
928
esac
929
930
# Do not use `cd foo && pwd` to compute absolute paths, because
931
# the directories may not exist.
932
case `pwd` in
933
.) ac_abs_builddir="$ac_dir";;
934
*)
935
  case "$ac_dir" in
936
  .) ac_abs_builddir=`pwd`;;
937
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
938
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
939
  esac;;
940
esac
941
case $ac_abs_builddir in
942
.) ac_abs_top_builddir=${ac_top_builddir}.;;
943
*)
944
  case ${ac_top_builddir}. in
945
  .) ac_abs_top_builddir=$ac_abs_builddir;;
946
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
947
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
948
  esac;;
949
esac
950
case $ac_abs_builddir in
951
.) ac_abs_srcdir=$ac_srcdir;;
952
*)
953
  case $ac_srcdir in
954
  .) ac_abs_srcdir=$ac_abs_builddir;;
955
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
956
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
957
  esac;;
958
esac
959
case $ac_abs_builddir in
960
.) ac_abs_top_srcdir=$ac_top_srcdir;;
961
*)
962
  case $ac_top_srcdir in
963
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
964
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
965
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
966
  esac;;
967
esac
968
969
    cd $ac_dir
970
    # Check for guested configure; otherwise get Cygnus style configure.
971
    if test -f $ac_srcdir/configure.gnu; then
972
      echo
973
      $SHELL $ac_srcdir/configure.gnu  --help=recursive
974
    elif test -f $ac_srcdir/configure; then
975
      echo
976
      $SHELL $ac_srcdir/configure  --help=recursive
977
    elif test -f $ac_srcdir/configure.ac ||
978
	   test -f $ac_srcdir/configure.in; then
979
      echo
980
      $ac_configure --help
981
    else
982
      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
983
    fi
984
    cd "$ac_popdir"
985
  done
986
fi
987
988
test -n "$ac_init_help" && exit 0
989
if $ac_init_version; then
990
  cat <<\_ACEOF
1.1.1 by Anibal Monsalve Salazar
Import upstream version 2.2.6
991
ncpfs configure 2.2.6
1 by Eloy A. Paris
Import upstream version 2.2.4
992
generated by GNU Autoconf 2.59
993
994
Copyright (C) 2003 Free Software Foundation, Inc.
995
This configure script is free software; the Free Software Foundation
996
gives unlimited permission to copy, distribute and modify it.
997
_ACEOF
998
  exit 0
999
fi
1000
exec 5>config.log
1001
cat >&5 <<_ACEOF
1002
This file contains any messages produced by compilers while
1003
running configure, to aid debugging if configure makes a mistake.
1004
1.1.1 by Anibal Monsalve Salazar
Import upstream version 2.2.6
1005
It was created by ncpfs $as_me 2.2.6, which was
1 by Eloy A. Paris
Import upstream version 2.2.4
1006
generated by GNU Autoconf 2.59.  Invocation command line was
1007
1008
  $ $0 $@
1009
1010
_ACEOF
1011
{
1012
cat <<_ASUNAME
1013
## --------- ##
1014
## Platform. ##
1015
## --------- ##
1016
1017
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1018
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1019
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1020
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1021
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1022
1023
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1024
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1025
1026
/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1027
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1028
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1029
hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1030
/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1031
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1032
/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1033
1034
_ASUNAME
1035
1036
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1037
for as_dir in $PATH
1038
do
1039
  IFS=$as_save_IFS
1040
  test -z "$as_dir" && as_dir=.
1041
  echo "PATH: $as_dir"
1042
done
1043
1044
} >&5
1045
1046
cat >&5 <<_ACEOF
1047
1048
1049
## ----------- ##
1050
## Core tests. ##
1051
## ----------- ##
1052
1053
_ACEOF
1054
1055
1056
# Keep a trace of the command line.
1057
# Strip out --no-create and --no-recursion so they do not pile up.
1058
# Strip out --silent because we don't want to record it for future runs.
1059
# Also quote any args containing shell meta-characters.
1060
# Make two passes to allow for proper duplicate-argument suppression.
1061
ac_configure_args=
1062
ac_configure_args0=
1063
ac_configure_args1=
1064
ac_sep=
1065
ac_must_keep_next=false
1066
for ac_pass in 1 2
1067
do
1068
  for ac_arg
1069
  do
1070
    case $ac_arg in
1071
    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1072
    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1073
    | -silent | --silent | --silen | --sile | --sil)
1074
      continue ;;
1075
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1076
      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1077
    esac
1078
    case $ac_pass in
1079
    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1080
    2)
1081
      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1082
      if test $ac_must_keep_next = true; then
1083
	ac_must_keep_next=false # Got value, back to normal.
1084
      else
1085
	case $ac_arg in
1086
	  *=* | --config-cache | -C | -disable-* | --disable-* \
1087
	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1088
	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1089
	  | -with-* | --with-* | -without-* | --without-* | --x)
1090
	    case "$ac_configure_args0 " in
1091
	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1092
	    esac
1093
	    ;;
1094
	  -* ) ac_must_keep_next=true ;;
1095
	esac
1096
      fi
1097
      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1098
      # Get rid of the leading space.
1099
      ac_sep=" "
1100
      ;;
1101
    esac
1102
  done
1103
done
1104
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1105
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1106
1107
# When interrupted or exit'd, cleanup temporary files, and complete
1108
# config.log.  We remove comments because anyway the quotes in there
1109
# would cause problems or look ugly.
1110
# WARNING: Be sure not to use single quotes in there, as some shells,
1111
# such as our DU 5.0 friend, will then `close' the trap.
1112
trap 'exit_status=$?
1113
  # Save into config.log some information that might help in debugging.
1114
  {
1115
    echo
1116
1117
    cat <<\_ASBOX
1118
## ---------------- ##
1119
## Cache variables. ##
1120
## ---------------- ##
1121
_ASBOX
1122
    echo
1123
    # The following way of writing the cache mishandles newlines in values,
1124
{
1125
  (set) 2>&1 |
1126
    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1127
    *ac_space=\ *)
1128
      sed -n \
1129
	"s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1130
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1131
      ;;
1132
    *)
1133
      sed -n \
1134
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1135
      ;;
1136
    esac;
1137
}
1138
    echo
1139
1140
    cat <<\_ASBOX
1141
## ----------------- ##
1142
## Output variables. ##
1143
## ----------------- ##
1144
_ASBOX
1145
    echo
1146
    for ac_var in $ac_subst_vars
1147
    do
1148
      eval ac_val=$`echo $ac_var`
1149
      echo "$ac_var='"'"'$ac_val'"'"'"
1150
    done | sort
1151
    echo
1152
1153
    if test -n "$ac_subst_files"; then
1154
      cat <<\_ASBOX
1155
## ------------- ##
1156
## Output files. ##
1157
## ------------- ##
1158
_ASBOX
1159
      echo
1160
      for ac_var in $ac_subst_files
1161
      do
1162
	eval ac_val=$`echo $ac_var`
1163
	echo "$ac_var='"'"'$ac_val'"'"'"
1164
      done | sort
1165
      echo
1166
    fi
1167
1168
    if test -s confdefs.h; then
1169
      cat <<\_ASBOX
1170
## ----------- ##
1171
## confdefs.h. ##
1172
## ----------- ##
1173
_ASBOX
1174
      echo
1175
      sed "/^$/d" confdefs.h | sort
1176
      echo
1177
    fi
1178
    test "$ac_signal" != 0 &&
1179
      echo "$as_me: caught signal $ac_signal"
1180
    echo "$as_me: exit $exit_status"
1181
  } >&5
1182
  rm -f core *.core &&
1183
  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1184
    exit $exit_status
1185
     ' 0
1186
for ac_signal in 1 2 13 15; do
1187
  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1188
done
1189
ac_signal=0
1190
1191
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1192
rm -rf conftest* confdefs.h
1193
# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1194
echo >confdefs.h
1195
1196
# Predefined preprocessor variables.
1197
1198
cat >>confdefs.h <<_ACEOF
1199
#define PACKAGE_NAME "$PACKAGE_NAME"
1200
_ACEOF
1201
1202
1203
cat >>confdefs.h <<_ACEOF
1204
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1205
_ACEOF
1206
1207
1208
cat >>confdefs.h <<_ACEOF
1209
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1210
_ACEOF
1211
1212
1213
cat >>confdefs.h <<_ACEOF
1214
#define PACKAGE_STRING "$PACKAGE_STRING"
1215
_ACEOF
1216
1217
1218
cat >>confdefs.h <<_ACEOF
1219
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1220
_ACEOF
1221
1222
1223
# Let the site file select an alternate cache file if it wants to.
1224
# Prefer explicitly selected file to automatically selected ones.
1225
if test -z "$CONFIG_SITE"; then
1226
  if test "x$prefix" != xNONE; then
1227
    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1228
  else
1229
    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1230
  fi
1231
fi
1232
for ac_site_file in $CONFIG_SITE; do
1233
  if test -r "$ac_site_file"; then
1234
    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1235
echo "$as_me: loading site script $ac_site_file" >&6;}
1236
    sed 's/^/| /' "$ac_site_file" >&5
1237
    . "$ac_site_file"
1238
  fi
1239
done
1240
1241
if test -r "$cache_file"; then
1242
  # Some versions of bash will fail to source /dev/null (special
1243
  # files actually), so we avoid doing that.
1244
  if test -f "$cache_file"; then
1245
    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1246
echo "$as_me: loading cache $cache_file" >&6;}
1247
    case $cache_file in
1248
      [\\/]* | ?:[\\/]* ) . $cache_file;;
1249
      *)                      . ./$cache_file;;
1250
    esac
1251
  fi
1252
else
1253
  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1254
echo "$as_me: creating cache $cache_file" >&6;}
1255
  >$cache_file
1256
fi
1257
1258
# Check that the precious variables saved in the cache have kept the same
1259
# value.
1260
ac_cache_corrupted=false
1261
for ac_var in `(set) 2>&1 |
1262
	       sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1263
  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1264
  eval ac_new_set=\$ac_env_${ac_var}_set
1265
  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1266
  eval ac_new_val="\$ac_env_${ac_var}_value"
1267
  case $ac_old_set,$ac_new_set in
1268
    set,)
1269
      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1270
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1271
      ac_cache_corrupted=: ;;
1272
    ,set)
1273
      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1274
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1275
      ac_cache_corrupted=: ;;
1276
    ,);;
1277
    *)
1278
      if test "x$ac_old_val" != "x$ac_new_val"; then
1279
	{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1280
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1281
	{ echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1282
echo "$as_me:   former value:  $ac_old_val" >&2;}
1283
	{ echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1284
echo "$as_me:   current value: $ac_new_val" >&2;}
1285
	ac_cache_corrupted=:
1286
      fi;;
1287
  esac
1288
  # Pass precious variables to config.status.
1289
  if test "$ac_new_set" = set; then
1290
    case $ac_new_val in
1291
    *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1292
      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1293
    *) ac_arg=$ac_var=$ac_new_val ;;
1294
    esac
1295
    case " $ac_configure_args " in
1296
      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1297
      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1298
    esac
1299
  fi
1300
done
1301
if $ac_cache_corrupted; then
1302
  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1303
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1304
  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1305
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1306
   { (exit 1); exit 1; }; }
1307
fi
1308
1309
ac_ext=c
1310
ac_cpp='$CPP $CPPFLAGS'
1311
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1312
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1313
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
          ac_config_headers="$ac_config_headers include/config.h"
1344
1345
1346
1347
# Check whether --enable-warnings or --disable-warnings was given.
1348
if test "${enable_warnings+set}" = set; then
1349
  enableval="$enable_warnings"
1350
1351
fi;
1352
1353
# Check whether --enable-pam or --disable-pam was given.
1354
if test "${enable_pam+set}" = set; then
1355
  enableval="$enable_pam"
1356
1357
fi;
1358
1359
# Check whether --enable-php or --disable-php was given.
1360
if test "${enable_php+set}" = set; then
1361
  enableval="$enable_php"
1362
1363
fi;
1364
1365
1366
# Check whether --with-php-config or --without-php-config was given.
1367
if test "${with_php_config+set}" = set; then
1368
  withval="$with_php_config"
1369
1370
fi;
1371
1372
# Check whether --enable-ipx-tools or --disable-ipx-tools was given.
1373
if test "${enable_ipx_tools+set}" = set; then
1374
  enableval="$enable_ipx_tools"
1375
1376
fi;
1377
1378
# Check whether --enable-udp or --disable-udp was given.
1379
if test "${enable_udp+set}" = set; then
1380
  enableval="$enable_udp"
1381
1382
fi;
1383
1384
# Check whether --enable-ipx or --disable-ipx was given.
1385
if test "${enable_ipx+set}" = set; then
1386
  enableval="$enable_ipx"
1387
1388
fi;
1389
1390
# Check whether --enable-signatures or --disable-signatures was given.
1391
if test "${enable_signatures+set}" = set; then
1392
  enableval="$enable_signatures"
1393
1394
fi;
1395
1396
# Check whether --enable-nds or --disable-nds was given.
1397
if test "${enable_nds+set}" = set; then
1398
  enableval="$enable_nds"
1399
1400
fi;
1401
1402
# Check whether --enable-mount-v2 or --disable-mount-v2 was given.
1403
if test "${enable_mount_v2+set}" = set; then
1404
  enableval="$enable_mount_v2"
1405
1406
fi;
1407
1408
# Check whether --enable-mount-v3 or --disable-mount-v3 was given.
1409
if test "${enable_mount_v3+set}" = set; then
1410
  enableval="$enable_mount_v3"
1411
1412
fi;
1413
1414
# Check whether --enable-kernel or --disable-kernel was given.
1415
if test "${enable_kernel+set}" = set; then
1416
  enableval="$enable_kernel"
1417
1418
fi;
1419
1420
# Check whether --enable-reentrant or --disable-reentrant was given.
1421
if test "${enable_reentrant+set}" = set; then
1422
  enableval="$enable_reentrant"
1423
1424
fi;
1425
1426
# Check whether --enable-versions or --disable-versions was given.
1427
if test "${enable_versions+set}" = set; then
1428
  enableval="$enable_versions"
1429
1430
fi;
1431
1432
# Check whether --enable-function_sections or --disable-function_sections was given.
1433
if test "${enable_function_sections+set}" = set; then
1434
  enableval="$enable_function_sections"
1435
1436
fi;
1437
1438
# Check whether --enable-trace or --disable-trace was given.
1439
if test "${enable_trace+set}" = set; then
1440
  enableval="$enable_trace"
1441
1442
fi;
1443
1444
# Check whether --enable-ncp_debug or --disable-ncp_debug was given.
1445
if test "${enable_ncp_debug+set}" = set; then
1446
  enableval="$enable_ncp_debug"
1447
1448
fi;
1449
1450
if test "$enable_udp" = "no"
1451
then
1452
    PROTOCOL_IP=0
1453
else
1454
1455
cat >>confdefs.h <<\_ACEOF
1456
#define CONFIG_NATIVE_IP 1
1457
_ACEOF
1458
1459
    PROTOCOL_IP=1
1460
fi
1461
1462
if test "$enable_signatures" = "no"
1463
then : ; else
1464
1465
cat >>confdefs.h <<\_ACEOF
1466
#define SIGNATURES 1
1467
_ACEOF
1468
1469
    SIGNATURES=1
1470
fi
1471
1472
if test "$enable_nds" = "no"
1473
then : ; else
1474
1475
cat >>confdefs.h <<\_ACEOF
1476
#define NDS_SUPPORT 1
1477
_ACEOF
1478
1479
    NDS_SUPPORT=1
1480
fi
1481
1482
if test "$enable_kernel" = "no"
1483
then
1484
    USE_KERNEL=0
1485
    enable_mount_v2=no
1486
    enable_mount_v3=no
1487
else
1488
    USE_KERNEL=1
1489
fi
1490
1491
if test "$enable_mount_v2" = "no"
1492
then
1493
    MOUNT2=0
1494
else
1495
    MOUNT2=1
1496
fi
1497
1498
if test "$enable_mount_v3" = "no"
1499
then
1500
    MOUNT3=0
1501
else
1502
    MOUNT3=1
1503
fi
1504
1505
if test "$enable_warnings" = "yes"
1506
then
1507
    CC_WARNINGS=yes
1508
else
1509
    CC_WARNINGS=no
1510
fi
1511
1512
1513
if test "$enable_ncp_debug" = "yes"
1514
then
1515
    NCP_DEBUG_ENABLE=yes
1516
1517
cat >>confdefs.h <<\_ACEOF
1518
#define NCP_DEBUG 1
1519
_ACEOF
1520
1521
else
1522
    NCP_DEBUG_ENABLE=no
1523
fi
1524
1525
pam_forced=no
1526
pam_path_forced=
1527
if test "$enable_pam" = ""
1528
then
1529
    PAM=1
1530
else
1531
  pam_forced=yes
1532
  case "$enable_pam" in
1533
  no)	PAM=0; pam_path_forced="no";;
1534
  yes)	PAM=1;;
1535
  /*)	PAM=1; pam_path_forced="$enable_pam";;
1536
  *)	{ { echo "$as_me:$LINENO: error: Bad parameter for --enable-pam" >&5
1537
echo "$as_me: error: Bad parameter for --enable-pam" >&2;}
1538
   { (exit 1); exit 1; }; };;
1539
  esac
1540
fi
1541
1542
php_forced=no
1543
php_path_forced=
1544
PHP=yes
1545
if test "$enable_php" != ""
1546
then
1547
  case "$enable_php" in
1548
  no)	PHP=no; php_path_forced="no";;
1549
  yes)	PHP=yes; php_path_forced=;;
1550
  *)	{ { echo "$as_me:$LINENO: error: Bad parameter for --enable-php. Use --with-php-config for specifying PHP directory" >&5
1551
echo "$as_me: error: Bad parameter for --enable-php. Use --with-php-config for specifying PHP directory" >&2;}
1552
   { (exit 1); exit 1; }; };;
1553
  esac
1554
  php_forced=yes
1555
fi
1556
if test "$with_php_config" != ""
1557
then
1558
  case "$with_php_config" in
1559
  no)	PHP2=no; php_path_forced="no";;
1560
  yes)  PHP2=yes; php_path_forced=;;
1561
  *)	PHP2=yes; php_path_forced="$with_php_config";;
1562
  esac
1563
  if test "$php_forced" = "yes"
1564
  then
1565
    if test "$PHP" != "$PHP2"
1566
    then
1567
      p1="--enable-php"
1568
      if test "$PHP" = "no"
1569
      then
1570
        p1="--disable-php"
1571
      fi
1572
      case "$php_path_forced" in
1573
        no)  p2="--without-php-config";;
1574
	yes) p2="--with-php-config";;
1575
	*)   p2="--with-php-config=$php_path_forced";;
1576
      esac
1577
      { { echo "$as_me:$LINENO: error: $p1 conflicts with $p2" >&5
1578
echo "$as_me: error: $p1 conflicts with $p2" >&2;}
1579
   { (exit 1); exit 1; }; };
1580
    fi
1581
  fi
1582
  PHP="${PHP2}"
1583
  php_forced=yes
1584
fi
1585
1586
reentrant_forced=no
1587
REENTRANT=1
1588
if test "$enable_reentrant" != ""
1589
then
1590
    reentrant_forced=yes
1591
    if test "$enable_reentrant" = "no"
1592
    then
1593
        REENTRANT=0
1594
    fi
1595
fi
1596
1597
versions_forced=no
1598
VERSIONED_LINK=yes
1599
if test "$enable_versions" != ""
1600
then
1601
    versions_forced=yes
1602
    if test "$enable_versions" = "no"
1603
    then
1604
	VERSIONED_LINK=no
1605
    fi
1606
fi
1607
1608
function_sections_forced=no
1609
function_sections=yes
1610
if test "$enable_function_sections" != ""
1611
then
1612
    function_sections_forced=yes
1613
    if test "$enable_function_sections" = "no"
1614
    then
1615
        function_sections=no
1616
    fi
1617
fi
1618
1619
if test "$enable_trace" = "yes"
1620
then
1621
1622
cat >>confdefs.h <<\_ACEOF
1623
#define NCP_TRACE_ENABLE 1
1624
_ACEOF
1625
1626
    NCP_TRACE_ENABLE=1
1627
fi
1628
1629
PROTOCOL_IPX=0
1630
BUILD_IPX_TOOLS=0
1631
1632
ac_aux_dir=
1633
for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1634
  if test -f $ac_dir/install-sh; then
1635
    ac_aux_dir=$ac_dir
1636
    ac_install_sh="$ac_aux_dir/install-sh -c"
1637
    break
1638
  elif test -f $ac_dir/install.sh; then
1639
    ac_aux_dir=$ac_dir
1640
    ac_install_sh="$ac_aux_dir/install.sh -c"
1641
    break
1642
  elif test -f $ac_dir/shtool; then
1643
    ac_aux_dir=$ac_dir
1644
    ac_install_sh="$ac_aux_dir/shtool install -c"
1645
    break
1646
  fi
1647
done
1648
if test -z "$ac_aux_dir"; then
1649
  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1650
echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1651
   { (exit 1); exit 1; }; }
1652
fi
1653
ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1654
ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1655
ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1656
1657
# Make sure we can run config.sub.
1658
$ac_config_sub sun4 >/dev/null 2>&1 ||
1659
  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1660
echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1661
   { (exit 1); exit 1; }; }
1662
1663
echo "$as_me:$LINENO: checking build system type" >&5
1664
echo $ECHO_N "checking build system type... $ECHO_C" >&6
1665
if test "${ac_cv_build+set}" = set; then
1666
  echo $ECHO_N "(cached) $ECHO_C" >&6
1667
else
1668
  ac_cv_build_alias=$build_alias
1669
test -z "$ac_cv_build_alias" &&
1670
  ac_cv_build_alias=`$ac_config_guess`
1671
test -z "$ac_cv_build_alias" &&
1672
  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1673
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1674
   { (exit 1); exit 1; }; }
1675
ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1676
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1677
echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1678
   { (exit 1); exit 1; }; }
1679
1680
fi
1681
echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1682
echo "${ECHO_T}$ac_cv_build" >&6
1683
build=$ac_cv_build
1684
build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1685
build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1686
build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1687
1688
1689
echo "$as_me:$LINENO: checking host system type" >&5
1690
echo $ECHO_N "checking host system type... $ECHO_C" >&6
1691
if test "${ac_cv_host+set}" = set; then
1692
  echo $ECHO_N "(cached) $ECHO_C" >&6
1693
else
1694
  ac_cv_host_alias=$host_alias
1695
test -z "$ac_cv_host_alias" &&
1696
  ac_cv_host_alias=$ac_cv_build_alias
1697
ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1698
  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1699
echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1700
   { (exit 1); exit 1; }; }
1701
1702
fi
1703
echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1704
echo "${ECHO_T}$ac_cv_host" >&6
1705
host=$ac_cv_host
1706
host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1707
host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1708
host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1709
1710
1711
1712
echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1713
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1714
set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1715
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1716
  echo $ECHO_N "(cached) $ECHO_C" >&6
1717
else
1718
  cat >conftest.make <<\_ACEOF
1719
all:
1720
	@echo 'ac_maketemp="$(MAKE)"'
1721
_ACEOF
1722
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1723
eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1724
if test -n "$ac_maketemp"; then
1725
  eval ac_cv_prog_make_${ac_make}_set=yes
1726
else
1727
  eval ac_cv_prog_make_${ac_make}_set=no
1728
fi
1729
rm -f conftest.make
1730
fi
1731
if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1732
  echo "$as_me:$LINENO: result: yes" >&5
1733
echo "${ECHO_T}yes" >&6
1734
  SET_MAKE=
1735
else
1736
  echo "$as_me:$LINENO: result: no" >&5
1737
echo "${ECHO_T}no" >&6
1738
  SET_MAKE="MAKE=${MAKE-make}"
1739
fi
1740
1741
ac_ext=c
1742
ac_cpp='$CPP $CPPFLAGS'
1743
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1744
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1745
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1746
if test -n "$ac_tool_prefix"; then
1747
  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1748
set dummy ${ac_tool_prefix}gcc; ac_word=$2
1749
echo "$as_me:$LINENO: checking for $ac_word" >&5
1750
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1751
if test "${ac_cv_prog_CC+set}" = set; then
1752
  echo $ECHO_N "(cached) $ECHO_C" >&6
1753
else
1754
  if test -n "$CC"; then
1755
  ac_cv_prog_CC="$CC" # Let the user override the test.
1756
else
1757
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758
for as_dir in $PATH
1759
do
1760
  IFS=$as_save_IFS
1761
  test -z "$as_dir" && as_dir=.
1762
  for ac_exec_ext in '' $ac_executable_extensions; do
1763
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1764
    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1765
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1766
    break 2
1767
  fi
1768
done
1769
done
1770
1771
fi
1772
fi
1773
CC=$ac_cv_prog_CC
1774
if test -n "$CC"; then
1775
  echo "$as_me:$LINENO: result: $CC" >&5
1776
echo "${ECHO_T}$CC" >&6
1777
else
1778
  echo "$as_me:$LINENO: result: no" >&5
1779
echo "${ECHO_T}no" >&6
1780
fi
1781
1782
fi
1783
if test -z "$ac_cv_prog_CC"; then
1784
  ac_ct_CC=$CC
1785
  # Extract the first word of "gcc", so it can be a program name with args.
1786
set dummy gcc; ac_word=$2
1787
echo "$as_me:$LINENO: checking for $ac_word" >&5
1788
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1789
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1790
  echo $ECHO_N "(cached) $ECHO_C" >&6
1791
else
1792
  if test -n "$ac_ct_CC"; then
1793
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794
else
1795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1796
for as_dir in $PATH
1797
do
1798
  IFS=$as_save_IFS
1799
  test -z "$as_dir" && as_dir=.
1800
  for ac_exec_ext in '' $ac_executable_extensions; do
1801
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1802
    ac_cv_prog_ac_ct_CC="gcc"
1803
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1804
    break 2
1805
  fi
1806
done
1807
done
1808
1809
fi
1810
fi
1811
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1812
if test -n "$ac_ct_CC"; then
1813
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1814
echo "${ECHO_T}$ac_ct_CC" >&6
1815
else
1816
  echo "$as_me:$LINENO: result: no" >&5
1817
echo "${ECHO_T}no" >&6
1818
fi
1819
1820
  CC=$ac_ct_CC
1821
else
1822
  CC="$ac_cv_prog_CC"
1823
fi
1824
1825
if test -z "$CC"; then
1826
  if test -n "$ac_tool_prefix"; then
1827
  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1828
set dummy ${ac_tool_prefix}cc; ac_word=$2
1829
echo "$as_me:$LINENO: checking for $ac_word" >&5
1830
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1831
if test "${ac_cv_prog_CC+set}" = set; then
1832
  echo $ECHO_N "(cached) $ECHO_C" >&6
1833
else
1834
  if test -n "$CC"; then
1835
  ac_cv_prog_CC="$CC" # Let the user override the test.
1836
else
1837
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1838
for as_dir in $PATH
1839
do
1840
  IFS=$as_save_IFS
1841
  test -z "$as_dir" && as_dir=.
1842
  for ac_exec_ext in '' $ac_executable_extensions; do
1843
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1844
    ac_cv_prog_CC="${ac_tool_prefix}cc"
1845
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1846
    break 2
1847
  fi
1848
done
1849
done
1850
1851
fi
1852
fi
1853
CC=$ac_cv_prog_CC
1854
if test -n "$CC"; then
1855
  echo "$as_me:$LINENO: result: $CC" >&5
1856
echo "${ECHO_T}$CC" >&6
1857
else
1858
  echo "$as_me:$LINENO: result: no" >&5
1859
echo "${ECHO_T}no" >&6
1860
fi
1861
1862
fi
1863
if test -z "$ac_cv_prog_CC"; then
1864
  ac_ct_CC=$CC
1865
  # Extract the first word of "cc", so it can be a program name with args.
1866
set dummy cc; ac_word=$2
1867
echo "$as_me:$LINENO: checking for $ac_word" >&5
1868
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1869
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1870
  echo $ECHO_N "(cached) $ECHO_C" >&6
1871
else
1872
  if test -n "$ac_ct_CC"; then
1873
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1874
else
1875
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1876
for as_dir in $PATH
1877
do
1878
  IFS=$as_save_IFS
1879
  test -z "$as_dir" && as_dir=.
1880
  for ac_exec_ext in '' $ac_executable_extensions; do
1881
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1882
    ac_cv_prog_ac_ct_CC="cc"
1883
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1884
    break 2
1885
  fi
1886
done
1887
done
1888
1889
fi
1890
fi
1891
ac_ct_CC=$ac_cv_prog_ac_ct_CC
1892
if test -n "$ac_ct_CC"; then
1893
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1894
echo "${ECHO_T}$ac_ct_CC" >&6
1895
else
1896
  echo "$as_me:$LINENO: result: no" >&5
1897
echo "${ECHO_T}no" >&6
1898
fi
1899
1900
  CC=$ac_ct_CC
1901
else
1902
  CC="$ac_cv_prog_CC"
1903
fi
1904
1905
fi
1906
if test -z "$CC"; then
1907
  # Extract the first word of "cc", so it can be a program name with args.
1908
set dummy cc; ac_word=$2
1909
echo "$as_me:$LINENO: checking for $ac_word" >&5
1910
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1911
if test "${ac_cv_prog_CC+set}" = set; then
1912
  echo $ECHO_N "(cached) $ECHO_C" >&6
1913
else
1914
  if test -n "$CC"; then
1915
  ac_cv_prog_CC="$CC" # Let the user override the test.
1916
else
1917
  ac_prog_rejected=no
1918
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919
for as_dir in $PATH
1920
do
1921
  IFS=$as_save_IFS
1922
  test -z "$as_dir" && as_dir=.
1923
  for ac_exec_ext in '' $ac_executable_extensions; do
1924
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1925
    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1926
       ac_prog_rejected=yes
1927
       continue
1928
     fi
1929
    ac_cv_prog_CC="cc"
1930
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931
    break 2
1932
  fi
1933
done
1934
done
1935
1936
if test $ac_prog_rejected = yes; then
1937
  # We found a bogon in the path, so make sure we never use it.
1938
  set dummy $ac_cv_prog_CC
1939
  shift
1940
  if test $# != 0; then
1941
    # We chose a different compiler from the bogus one.
1942
    # However, it has the same basename, so the bogon will be chosen
1943
    # first if we set CC to just the basename; use the full file name.
1944
    shift
1945
    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1946
  fi
1947
fi
1948
fi
1949
fi
1950
CC=$ac_cv_prog_CC
1951
if test -n "$CC"; then
1952
  echo "$as_me:$LINENO: result: $CC" >&5
1953
echo "${ECHO_T}$CC" >&6
1954
else
1955
  echo "$as_me:$LINENO: result: no" >&5
1956
echo "${ECHO_T}no" >&6
1957
fi
1958
1959
fi
1960
if test -z "$CC"; then
1961
  if test -n "$ac_tool_prefix"; then
1962
  for ac_prog in cl
1963
  do
1964
    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1965
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1966
echo "$as_me:$LINENO: checking for $ac_word" >&5
1967
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1968
if test "${ac_cv_prog_CC+set}" = set; then
1969
  echo $ECHO_N "(cached) $ECHO_C" >&6
1970
else
1971
  if test -n "$CC"; then
1972
  ac_cv_prog_CC="$CC" # Let the user override the test.
1973
else
1974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975
for as_dir in $PATH
1976
do
1977
  IFS=$as_save_IFS
1978
  test -z "$as_dir" && as_dir=.
1979
  for ac_exec_ext in '' $ac_executable_extensions; do
1980
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1981
    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1982
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1983
    break 2
1984
  fi
1985
done
1986
done
1987
1988
fi
1989
fi
1990
CC=$ac_cv_prog_CC
1991
if test -n "$CC"; then
1992
  echo "$as_me:$LINENO: result: $CC" >&5
1993
echo "${ECHO_T}$CC" >&6
1994
else
1995
  echo "$as_me:$LINENO: result: no" >&5
1996
echo "${ECHO_T}no" >&6
1997
fi
1998
1999
    test -n "$CC" && break
2000
  done
2001
fi
2002
if test -z "$CC"; then
2003
  ac_ct_CC=$CC
2004
  for ac_prog in cl
2005
do
2006
  # Extract the first word of "$ac_prog", so it can be a program name with args.
2007
set dummy $ac_prog; ac_word=$2
2008
echo "$as_me:$LINENO: checking for $ac_word" >&5
2009
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2010
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2011
  echo $ECHO_N "(cached) $ECHO_C" >&6
2012
else
2013
  if test -n "$ac_ct_CC"; then
2014
  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2015
else
2016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2017
for as_dir in $PATH
2018
do
2019
  IFS=$as_save_IFS
2020
  test -z "$as_dir" && as_dir=.
2021
  for ac_exec_ext in '' $ac_executable_extensions; do
2022
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2023
    ac_cv_prog_ac_ct_CC="$ac_prog"
2024
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025
    break 2
2026
  fi
2027
done
2028
done
2029
2030
fi
2031
fi
2032
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2033
if test -n "$ac_ct_CC"; then
2034
  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2035
echo "${ECHO_T}$ac_ct_CC" >&6
2036
else
2037
  echo "$as_me:$LINENO: result: no" >&5
2038
echo "${ECHO_T}no" >&6
2039
fi
2040
2041
  test -n "$ac_ct_CC" && break
2042
done
2043
2044
  CC=$ac_ct_CC
2045
fi
2046
2047
fi
2048
2049
2050
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2051
See \`config.log' for more details." >&5
2052
echo "$as_me: error: no acceptable C compiler found in \$PATH
2053
See \`config.log' for more details." >&2;}
2054
   { (exit 1); exit 1; }; }
2055
2056
# Provide some information about the compiler.
2057
echo "$as_me:$LINENO:" \
2058
     "checking for C compiler version" >&5
2059
ac_compiler=`set X $ac_compile; echo $2`
2060
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2061
  (eval $ac_compiler --version </dev/null >&5) 2>&5
2062
  ac_status=$?
2063
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2064
  (exit $ac_status); }
2065
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2066
  (eval $ac_compiler -v </dev/null >&5) 2>&5
2067
  ac_status=$?
2068
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2069
  (exit $ac_status); }
2070
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2071
  (eval $ac_compiler -V </dev/null >&5) 2>&5
2072
  ac_status=$?
2073
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2074
  (exit $ac_status); }
2075
2076
cat >conftest.$ac_ext <<_ACEOF
2077
/* confdefs.h.  */
2078
_ACEOF
2079
cat confdefs.h >>conftest.$ac_ext
2080
cat >>conftest.$ac_ext <<_ACEOF
2081
/* end confdefs.h.  */
2082
2083
int
2084
main ()
2085
{
2086
2087
  ;
2088
  return 0;
2089
}
2090
_ACEOF
2091
ac_clean_files_save=$ac_clean_files
2092
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2093
# Try to create an executable without -o first, disregard a.out.
2094
# It will help us diagnose broken compilers, and finding out an intuition
2095
# of exeext.
2096
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2097
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2098
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2099
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2100
  (eval $ac_link_default) 2>&5
2101
  ac_status=$?
2102
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103
  (exit $ac_status); }; then
2104
  # Find the output, starting from the most likely.  This scheme is
2105
# not robust to junk in `.', hence go to wildcards (a.*) only as a last
2106
# resort.
2107
2108
# Be careful to initialize this variable, since it used to be cached.
2109
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2110
ac_cv_exeext=
2111
# b.out is created by i960 compilers.
2112
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2113
do
2114
  test -f "$ac_file" || continue
2115
  case $ac_file in
2116
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2117
	;;
2118
    conftest.$ac_ext )
2119
	# This is the source file.
2120
	;;
2121
    [ab].out )
2122
	# We found the default executable, but exeext='' is most
2123
	# certainly right.
2124
	break;;
2125
    *.* )
2126
	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2127
	# FIXME: I believe we export ac_cv_exeext for Libtool,
2128
	# but it would be cool to find out if it's true.  Does anybody
2129
	# maintain Libtool? --akim.
2130
	export ac_cv_exeext
2131
	break;;
2132
    * )
2133
	break;;
2134
  esac
2135
done
2136
else
2137
  echo "$as_me: failed program was:" >&5
2138
sed 's/^/| /' conftest.$ac_ext >&5
2139
2140
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2141
See \`config.log' for more details." >&5
2142
echo "$as_me: error: C compiler cannot create executables
2143
See \`config.log' for more details." >&2;}
2144
   { (exit 77); exit 77; }; }
2145
fi
2146
2147
ac_exeext=$ac_cv_exeext
2148
echo "$as_me:$LINENO: result: $ac_file" >&5
2149
echo "${ECHO_T}$ac_file" >&6
2150
2151
# Check the compiler produces executables we can run.  If not, either
2152
# the compiler is broken, or we cross compile.
2153
echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2154
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2155
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2156
# If not cross compiling, check that we can run a simple program.
2157
if test "$cross_compiling" != yes; then
2158
  if { ac_try='./$ac_file'
2159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160
  (eval $ac_try) 2>&5
2161
  ac_status=$?
2162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163
  (exit $ac_status); }; }; then
2164
    cross_compiling=no
2165
  else
2166
    if test "$cross_compiling" = maybe; then
2167
	cross_compiling=yes
2168
    else
2169
	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2170
If you meant to cross compile, use \`--host'.
2171
See \`config.log' for more details." >&5
2172
echo "$as_me: error: cannot run C compiled programs.
2173
If you meant to cross compile, use \`--host'.
2174
See \`config.log' for more details." >&2;}
2175
   { (exit 1); exit 1; }; }
2176
    fi
2177
  fi
2178
fi
2179
echo "$as_me:$LINENO: result: yes" >&5
2180
echo "${ECHO_T}yes" >&6
2181
2182
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2183
ac_clean_files=$ac_clean_files_save
2184
# Check the compiler produces executables we can run.  If not, either
2185
# the compiler is broken, or we cross compile.
2186
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2187
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2188
echo "$as_me:$LINENO: result: $cross_compiling" >&5
2189
echo "${ECHO_T}$cross_compiling" >&6
2190
2191
echo "$as_me:$LINENO: checking for suffix of executables" >&5
2192
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2193
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2194
  (eval $ac_link) 2>&5
2195
  ac_status=$?
2196
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2197
  (exit $ac_status); }; then
2198
  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2199
# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2200
# work properly (i.e., refer to `conftest.exe'), while it won't with
2201
# `rm'.
2202
for ac_file in conftest.exe conftest conftest.*; do
2203
  test -f "$ac_file" || continue
2204
  case $ac_file in
2205
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2206
    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2207
	  export ac_cv_exeext
2208
	  break;;
2209
    * ) break;;
2210
  esac
2211
done
2212
else
2213
  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2214
See \`config.log' for more details." >&5
2215
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2216
See \`config.log' for more details." >&2;}
2217
   { (exit 1); exit 1; }; }
2218
fi
2219
2220
rm -f conftest$ac_cv_exeext
2221
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2222
echo "${ECHO_T}$ac_cv_exeext" >&6
2223
2224
rm -f conftest.$ac_ext
2225
EXEEXT=$ac_cv_exeext
2226
ac_exeext=$EXEEXT
2227
echo "$as_me:$LINENO: checking for suffix of object files" >&5
2228
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2229
if test "${ac_cv_objext+set}" = set; then
2230
  echo $ECHO_N "(cached) $ECHO_C" >&6
2231
else
2232
  cat >conftest.$ac_ext <<_ACEOF
2233
/* confdefs.h.  */
2234
_ACEOF
2235
cat confdefs.h >>conftest.$ac_ext
2236
cat >>conftest.$ac_ext <<_ACEOF
2237
/* end confdefs.h.  */
2238
2239
int
2240
main ()
2241
{
2242
2243
  ;
2244
  return 0;
2245
}
2246
_ACEOF
2247
rm -f conftest.o conftest.obj
2248
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249
  (eval $ac_compile) 2>&5
2250
  ac_status=$?
2251
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2252
  (exit $ac_status); }; then
2253
  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2254
  case $ac_file in
2255
    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2256
    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2257
       break;;
2258
  esac
2259
done
2260
else
2261
  echo "$as_me: failed program was:" >&5
2262
sed 's/^/| /' conftest.$ac_ext >&5
2263
2264
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2265
See \`config.log' for more details." >&5
2266
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2267
See \`config.log' for more details." >&2;}
2268
   { (exit 1); exit 1; }; }
2269
fi
2270
2271
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2272
fi
2273
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2274
echo "${ECHO_T}$ac_cv_objext" >&6
2275
OBJEXT=$ac_cv_objext
2276
ac_objext=$OBJEXT
2277
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2278
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2279
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2280
  echo $ECHO_N "(cached) $ECHO_C" >&6
2281
else
2282
  cat >conftest.$ac_ext <<_ACEOF
2283
/* confdefs.h.  */
2284
_ACEOF
2285
cat confdefs.h >>conftest.$ac_ext
2286
cat >>conftest.$ac_ext <<_ACEOF
2287
/* end confdefs.h.  */
2288
2289
int
2290
main ()
2291
{
2292
#ifndef __GNUC__
2293
       choke me
2294
#endif
2295
2296
  ;
2297
  return 0;
2298
}
2299
_ACEOF
2300
rm -f conftest.$ac_objext
2301
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2302
  (eval $ac_compile) 2>conftest.er1
2303
  ac_status=$?
2304
  grep -v '^ *+' conftest.er1 >conftest.err
2305
  rm -f conftest.er1
2306
  cat conftest.err >&5
2307
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2308
  (exit $ac_status); } &&
2309
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2310
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2311
  (eval $ac_try) 2>&5
2312
  ac_status=$?
2313
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314
  (exit $ac_status); }; } &&
2315
	 { ac_try='test -s conftest.$ac_objext'
2316
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2317
  (eval $ac_try) 2>&5
2318
  ac_status=$?
2319
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320
  (exit $ac_status); }; }; then
2321
  ac_compiler_gnu=yes
2322
else
2323
  echo "$as_me: failed program was:" >&5
2324
sed 's/^/| /' conftest.$ac_ext >&5
2325
2326
ac_compiler_gnu=no
2327
fi
2328
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2329
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2330
2331
fi
2332
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2333
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2334
GCC=`test $ac_compiler_gnu = yes && echo yes`
2335
ac_test_CFLAGS=${CFLAGS+set}
2336
ac_save_CFLAGS=$CFLAGS
2337
CFLAGS="-g"
2338
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2339
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2340
if test "${ac_cv_prog_cc_g+set}" = set; then
2341
  echo $ECHO_N "(cached) $ECHO_C" >&6
2342
else
2343
  cat >conftest.$ac_ext <<_ACEOF
2344
/* confdefs.h.  */
2345
_ACEOF
2346
cat confdefs.h >>conftest.$ac_ext
2347
cat >>conftest.$ac_ext <<_ACEOF
2348
/* end confdefs.h.  */
2349
2350
int
2351
main ()
2352
{
2353
2354
  ;
2355
  return 0;
2356
}
2357
_ACEOF
2358
rm -f conftest.$ac_objext
2359
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2360
  (eval $ac_compile) 2>conftest.er1
2361
  ac_status=$?
2362
  grep -v '^ *+' conftest.er1 >conftest.err
2363
  rm -f conftest.er1
2364
  cat conftest.err >&5
2365
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2366
  (exit $ac_status); } &&
2367
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2368
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369
  (eval $ac_try) 2>&5
2370
  ac_status=$?
2371
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372
  (exit $ac_status); }; } &&
2373
	 { ac_try='test -s conftest.$ac_objext'
2374
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375
  (eval $ac_try) 2>&5
2376
  ac_status=$?
2377
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378
  (exit $ac_status); }; }; then
2379
  ac_cv_prog_cc_g=yes
2380
else
2381
  echo "$as_me: failed program was:" >&5
2382
sed 's/^/| /' conftest.$ac_ext >&5
2383
2384
ac_cv_prog_cc_g=no
2385
fi
2386
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387
fi
2388
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2389
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2390
if test "$ac_test_CFLAGS" = set; then
2391
  CFLAGS=$ac_save_CFLAGS
2392
elif test $ac_cv_prog_cc_g = yes; then
2393
  if test "$GCC" = yes; then
2394
    CFLAGS="-g -O2"
2395
  else
2396
    CFLAGS="-g"
2397
  fi
2398
else
2399
  if test "$GCC" = yes; then
2400
    CFLAGS="-O2"
2401
  else
2402
    CFLAGS=
2403
  fi
2404
fi
2405
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2406
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2407
if test "${ac_cv_prog_cc_stdc+set}" = set; then
2408
  echo $ECHO_N "(cached) $ECHO_C" >&6
2409
else
2410
  ac_cv_prog_cc_stdc=no
2411
ac_save_CC=$CC
2412
cat >conftest.$ac_ext <<_ACEOF
2413
/* confdefs.h.  */
2414
_ACEOF
2415
cat confdefs.h >>conftest.$ac_ext
2416
cat >>conftest.$ac_ext <<_ACEOF
2417
/* end confdefs.h.  */
2418
#include <stdarg.h>
2419
#include <stdio.h>
2420
#include <sys/types.h>
2421
#include <sys/stat.h>
2422
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2423
struct buf { int x; };
2424
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2425
static char *e (p, i)
2426
     char **p;
2427
     int i;
2428
{
2429
  return p[i];
2430
}
2431
static char *f (char * (*g) (char **, int), char **p, ...)
2432
{
2433
  char *s;
2434
  va_list v;
2435
  va_start (v,p);
2436
  s = g (p, va_arg (v,int));
2437
  va_end (v);
2438
  return s;
2439
}
2440
2441
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2442
   function prototypes and stuff, but not '\xHH' hex character constants.
2443
   These don't provoke an error unfortunately, instead are silently treated
2444
   as 'x'.  The following induces an error, until -std1 is added to get
2445
   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2446
   array size at least.  It's necessary to write '\x00'==0 to get something
2447
   that's true only with -std1.  */
2448
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2449
2450
int test (int i, double x);
2451
struct s1 {int (*f) (int a);};
2452
struct s2 {int (*f) (double a);};
2453
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2454
int argc;
2455
char **argv;
2456
int
2457
main ()
2458
{
2459
return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2460
  ;
2461
  return 0;
2462
}
2463
_ACEOF
2464
# Don't try gcc -ansi; that turns off useful extensions and
2465
# breaks some systems' header files.
2466
# AIX			-qlanglvl=ansi
2467
# Ultrix and OSF/1	-std1
2468
# HP-UX 10.20 and later	-Ae
2469
# HP-UX older versions	-Aa -D_HPUX_SOURCE
2470
# SVR4			-Xc -D__EXTENSIONS__
2471
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2472
do
2473
  CC="$ac_save_CC $ac_arg"
2474
  rm -f conftest.$ac_objext
2475
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2476
  (eval $ac_compile) 2>conftest.er1
2477
  ac_status=$?
2478
  grep -v '^ *+' conftest.er1 >conftest.err
2479
  rm -f conftest.er1
2480
  cat conftest.err >&5
2481
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482
  (exit $ac_status); } &&
2483
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2484
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485
  (eval $ac_try) 2>&5
2486
  ac_status=$?
2487
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488
  (exit $ac_status); }; } &&
2489
	 { ac_try='test -s conftest.$ac_objext'
2490
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2491
  (eval $ac_try) 2>&5
2492
  ac_status=$?
2493
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494
  (exit $ac_status); }; }; then
2495
  ac_cv_prog_cc_stdc=$ac_arg
2496
break
2497
else
2498
  echo "$as_me: failed program was:" >&5
2499
sed 's/^/| /' conftest.$ac_ext >&5
2500
2501
fi
2502
rm -f conftest.err conftest.$ac_objext
2503
done
2504
rm -f conftest.$ac_ext conftest.$ac_objext
2505
CC=$ac_save_CC
2506
2507
fi
2508
2509
case "x$ac_cv_prog_cc_stdc" in
2510
  x|xno)
2511
    echo "$as_me:$LINENO: result: none needed" >&5
2512
echo "${ECHO_T}none needed" >&6 ;;
2513
  *)
2514
    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2515
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2516
    CC="$CC $ac_cv_prog_cc_stdc" ;;
2517
esac
2518
2519
# Some people use a C++ compiler to compile C.  Since we use `exit',
2520
# in C++ we need to declare it.  In case someone uses the same compiler
2521
# for both compiling C and C++ we need to have the C++ compiler decide
2522
# the declaration of exit, since it's the most demanding environment.
2523
cat >conftest.$ac_ext <<_ACEOF
2524
#ifndef __cplusplus
2525
  choke me
2526
#endif
2527
_ACEOF
2528
rm -f conftest.$ac_objext
2529
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530
  (eval $ac_compile) 2>conftest.er1
2531
  ac_status=$?
2532
  grep -v '^ *+' conftest.er1 >conftest.err
2533
  rm -f conftest.er1
2534
  cat conftest.err >&5
2535
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536
  (exit $ac_status); } &&
2537
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2538
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2539
  (eval $ac_try) 2>&5
2540
  ac_status=$?
2541
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2542
  (exit $ac_status); }; } &&
2543
	 { ac_try='test -s conftest.$ac_objext'
2544
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545
  (eval $ac_try) 2>&5
2546
  ac_status=$?
2547
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548
  (exit $ac_status); }; }; then
2549
  for ac_declaration in \
2550
   '' \
2551
   'extern "C" void std::exit (int) throw (); using std::exit;' \
2552
   'extern "C" void std::exit (int); using std::exit;' \
2553
   'extern "C" void exit (int) throw ();' \
2554
   'extern "C" void exit (int);' \
2555
   'void exit (int);'
2556
do
2557
  cat >conftest.$ac_ext <<_ACEOF
2558
/* confdefs.h.  */
2559
_ACEOF
2560
cat confdefs.h >>conftest.$ac_ext
2561
cat >>conftest.$ac_ext <<_ACEOF
2562
/* end confdefs.h.  */
2563
$ac_declaration
2564
#include <stdlib.h>
2565
int
2566
main ()
2567
{
2568
exit (42);
2569
  ;
2570
  return 0;
2571
}
2572
_ACEOF
2573
rm -f conftest.$ac_objext
2574
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2575
  (eval $ac_compile) 2>conftest.er1
2576
  ac_status=$?
2577
  grep -v '^ *+' conftest.er1 >conftest.err
2578
  rm -f conftest.er1
2579
  cat conftest.err >&5
2580
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2581
  (exit $ac_status); } &&
2582
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
2583
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2584
  (eval $ac_try) 2>&5
2585
  ac_status=$?
2586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587
  (exit $ac_status); }; } &&
2588
	 { ac_try='test -s conftest.$ac_objext'
2589
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2590
  (eval $ac_try) 2>&5
2591
  ac_status=$?
2592
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593
  (exit $ac_status); }; }; then
2594
  :
2595
else
2596
  echo "$as_me: failed program was:" >&5
2597
sed 's/^/| /' conftest.$ac_ext >&5
2598
2599
continue
2600
fi
2601
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2602
  cat >conftest.$ac_ext <<_ACEOF
2603
/* confdefs.h.  */
2604
_ACEOF
2605
cat confdefs.h >>conftest.$ac_ext
2606
cat >>conftest.$ac_ext <<_ACEOF
2607
/* end confdefs.h.  */
2608
$ac_declaration
2609
int
2610
main ()
2611
{
2612
exit (42);
2613
  ;
2614
  return 0;
2615
}
2616
_ACEOF
2617
rm -f conftest.$ac_objext
2618
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2619
  (eval $ac_compile) 2>conftest.er1
2620
  ac_status=$?
2621
  grep -v '^ *+' conftest.er1 >conftest.err
2622
  rm -f conftest.er1
2623
  cat conftest.err >&5
2624
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2625
  (exit $ac_status); } &&
2626
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
2632
	 { ac_try='test -s conftest.$ac_objext'
2633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2634
  (eval $ac_try) 2>&5
2635
  ac_status=$?
2636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637
  (exit $ac_status); }; }; then
2638
  break
2639
else
2640
  echo "$as_me: failed program was:" >&5
2641
sed 's/^/| /' conftest.$ac_ext >&5
2642
2643
fi
2644
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2645
done
2646
rm -f conftest*
2647
if test -n "$ac_declaration"; then
2648
  echo '#ifdef __cplusplus' >>confdefs.h
2649
  echo $ac_declaration      >>confdefs.h
2650
  echo '#endif'             >>confdefs.h
2651
fi
2652
2653
else
2654
  echo "$as_me: failed program was:" >&5
2655
sed 's/^/| /' conftest.$ac_ext >&5
2656
2657
fi
2658
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2659
ac_ext=c
2660
ac_cpp='$CPP $CPPFLAGS'
2661
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2662
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2663
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2664
2665
# Find a good install program.  We prefer a C program (faster),
2666
# so one script is as good as another.  But avoid the broken or
2667
# incompatible versions:
2668
# SysV /etc/install, /usr/sbin/install
2669
# SunOS /usr/etc/install
2670
# IRIX /sbin/install
2671
# AIX /bin/install
2672
# AmigaOS /C/install, which installs bootblocks on floppy discs
2673
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2674
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2675
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2676
# OS/2's system install, which has a completely different semantic
2677
# ./install, which can be erroneously created by make from ./install.sh.
2678
echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2679
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2680
if test -z "$INSTALL"; then
2681
if test "${ac_cv_path_install+set}" = set; then
2682
  echo $ECHO_N "(cached) $ECHO_C" >&6
2683
else
2684
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2685
for as_dir in $PATH
2686
do
2687
  IFS=$as_save_IFS
2688
  test -z "$as_dir" && as_dir=.
2689
  # Account for people who put trailing slashes in PATH elements.
2690
case $as_dir/ in
2691
  ./ | .// | /cC/* | \
2692
  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2693
  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2694
  /usr/ucb/* ) ;;
2695
  *)
2696
    # OSF1 and SCO ODT 3.0 have their own names for install.
2697
    # Don't use installbsd from OSF since it installs stuff as root
2698
    # by default.
2699
    for ac_prog in ginstall scoinst install; do
2700
      for ac_exec_ext in '' $ac_executable_extensions; do
2701
	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2702
	  if test $ac_prog = install &&
2703
	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2704
	    # AIX install.  It has an incompatible calling convention.
2705
	    :
2706
	  elif test $ac_prog = install &&
2707
	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708
	    # program-specific install script used by HP pwplus--don't use.
2709
	    :
2710
	  else
2711
	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2712
	    break 3
2713
	  fi
2714
	fi
2715
      done
2716
    done
2717
    ;;
2718
esac
2719
done
2720
2721
2722
fi
2723
  if test "${ac_cv_path_install+set}" = set; then
2724
    INSTALL=$ac_cv_path_install
2725
  else
2726
    # As a last resort, use the slow shell script.  We don't cache a
2727
    # path for INSTALL within a source directory, because that will
2728
    # break other packages using the cache if that directory is
2729
    # removed, or if the path is relative.
2730
    INSTALL=$ac_install_sh
2731
  fi
2732
fi
2733
echo "$as_me:$LINENO: result: $INSTALL" >&5
2734
echo "${ECHO_T}$INSTALL" >&6
2735
2736
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2737
# It thinks the first close brace ends the variable substitution.
2738
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2739
2740
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2741
2742
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2743
2744
echo "$as_me:$LINENO: checking whether ln -s works" >&5
2745
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2746
LN_S=$as_ln_s
2747
if test "$LN_S" = "ln -s"; then
2748
  echo "$as_me:$LINENO: result: yes" >&5
2749
echo "${ECHO_T}yes" >&6
2750
else
2751
  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2752
echo "${ECHO_T}no, using $LN_S" >&6
2753
fi
2754
2755
2756
PACKAGE="$PACKAGE_NAME"
2757
2758
VERSION="$PACKAGE_VERSION"
2759
2760
2761
        MKINSTALLDIRS=
2762
  if test -n "$ac_aux_dir"; then
2763
    MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
2764
  fi
2765
  if test -z "$MKINSTALLDIRS"; then
2766
    MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
2767
  fi
2768
2769
2770
2771
2772
2773
2774
# Prepare PATH_SEPARATOR.
2775
# The user is always right.
2776
if test "${PATH_SEPARATOR+set}" != set; then
2777
  echo "#! /bin/sh" >conf$$.sh
2778
  echo  "exit 0"   >>conf$$.sh
2779
  chmod +x conf$$.sh
2780
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2781
    PATH_SEPARATOR=';'
2782
  else
2783
    PATH_SEPARATOR=:
2784
  fi
2785
  rm -f conf$$.sh
2786
fi
2787
2788
# Find out how to test for executable files. Don't use a zero-byte file,
2789
# as systems may use methods other than mode bits to determine executability.
2790
cat >conf$$.file <<_ASEOF
2791
#! /bin/sh
2792
exit 0
2793
_ASEOF
2794
chmod +x conf$$.file
2795
if test -x conf$$.file >/dev/null 2>&1; then
2796
  ac_executable_p="test -x"
2797
else
2798
  ac_executable_p="test -f"
2799
fi
2800
rm -f conf$$.file
2801
2802
# Extract the first word of "msgfmt", so it can be a program name with args.
2803
set dummy msgfmt; ac_word=$2
2804
echo "$as_me:$LINENO: checking for $ac_word" >&5
2805
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2806
if test "${ac_cv_path_MSGFMT+set}" = set; then
2807
  echo $ECHO_N "(cached) $ECHO_C" >&6
2808
else
2809
  case "$MSGFMT" in
2810
  [\\/]* | ?:[\\/]*)
2811
    ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
2812
    ;;
2813
  *)
2814
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2815
    for ac_dir in $PATH; do
2816
      IFS="$ac_save_IFS"
2817
      test -z "$ac_dir" && ac_dir=.
2818
      for ac_exec_ext in '' $ac_executable_extensions; do
2819
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2820
          if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
2821
     (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2822
            ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
2823
            break 2
2824
          fi
2825
        fi
2826
      done
2827
    done
2828
    IFS="$ac_save_IFS"
2829
  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
2830
    ;;
2831
esac
2832
fi
2833
MSGFMT="$ac_cv_path_MSGFMT"
2834
if test "$MSGFMT" != ":"; then
2835
  echo "$as_me:$LINENO: result: $MSGFMT" >&5
2836
echo "${ECHO_T}$MSGFMT" >&6
2837
else
2838
  echo "$as_me:$LINENO: result: no" >&5
2839
echo "${ECHO_T}no" >&6
2840
fi
2841
2842
  # Extract the first word of "gmsgfmt", so it can be a program name with args.
2843
set dummy gmsgfmt; ac_word=$2
2844
echo "$as_me:$LINENO: checking for $ac_word" >&5
2845
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2846
if test "${ac_cv_path_GMSGFMT+set}" = set; then
2847
  echo $ECHO_N "(cached) $ECHO_C" >&6
2848
else
2849
  case $GMSGFMT in
2850
  [\\/]* | ?:[\\/]*)
2851
  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
2852
  ;;
2853
  *)
2854
  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2855
for as_dir in $PATH
2856
do
2857
  IFS=$as_save_IFS
2858
  test -z "$as_dir" && as_dir=.
2859
  for ac_exec_ext in '' $ac_executable_extensions; do
2860
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2861
    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
2862
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863
    break 2
2864
  fi
2865
done
2866
done
2867
2868
  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
2869
  ;;
2870
esac
2871
fi
2872
GMSGFMT=$ac_cv_path_GMSGFMT
2873
2874
if test -n "$GMSGFMT"; then
2875
  echo "$as_me:$LINENO: result: $GMSGFMT" >&5
2876
echo "${ECHO_T}$GMSGFMT" >&6
2877
else
2878
  echo "$as_me:$LINENO: result: no" >&5
2879
echo "${ECHO_T}no" >&6
2880
fi
2881
2882
2883
2884
# Prepare PATH_SEPARATOR.
2885
# The user is always right.
2886
if test "${PATH_SEPARATOR+set}" != set; then
2887
  echo "#! /bin/sh" >conf$$.sh
2888
  echo  "exit 0"   >>conf$$.sh
2889
  chmod +x conf$$.sh
2890
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2891
    PATH_SEPARATOR=';'
2892
  else
2893
    PATH_SEPARATOR=:
2894
  fi
2895
  rm -f conf$$.sh
2896
fi
2897
2898
# Find out how to test for executable files. Don't use a zero-byte file,
2899
# as systems may use methods other than mode bits to determine executability.
2900
cat >conf$$.file <<_ASEOF
2901
#! /bin/sh
2902
exit 0
2903
_ASEOF
2904
chmod +x conf$$.file
2905
if test -x conf$$.file >/dev/null 2>&1; then
2906
  ac_executable_p="test -x"
2907
else
2908
  ac_executable_p="test -f"
2909
fi
2910
rm -f conf$$.file
2911
2912
# Extract the first word of "xgettext", so it can be a program name with args.
2913
set dummy xgettext; ac_word=$2
2914
echo "$as_me:$LINENO: checking for $ac_word" >&5
2915
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2916
if test "${ac_cv_path_XGETTEXT+set}" = set; then
2917
  echo $ECHO_N "(cached) $ECHO_C" >&6
2918
else
2919
  case "$XGETTEXT" in
2920
  [\\/]* | ?:[\\/]*)
2921
    ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
2922
    ;;
2923
  *)
2924
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2925
    for ac_dir in $PATH; do
2926
      IFS="$ac_save_IFS"
2927
      test -z "$ac_dir" && ac_dir=.
2928
      for ac_exec_ext in '' $ac_executable_extensions; do
2929
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
2930
          if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
2931
     (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
2932
            ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
2933
            break 2
2934
          fi
2935
        fi
2936
      done
2937
    done
2938
    IFS="$ac_save_IFS"
2939
  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
2940
    ;;
2941
esac
2942
fi
2943
XGETTEXT="$ac_cv_path_XGETTEXT"
2944
if test "$XGETTEXT" != ":"; then
2945
  echo "$as_me:$LINENO: result: $XGETTEXT" >&5
2946
echo "${ECHO_T}$XGETTEXT" >&6
2947
else
2948
  echo "$as_me:$LINENO: result: no" >&5
2949
echo "${ECHO_T}no" >&6
2950
fi
2951
2952
    rm -f messages.po
2953
2954
2955
# Prepare PATH_SEPARATOR.
2956
# The user is always right.
2957
if test "${PATH_SEPARATOR+set}" != set; then
2958
  echo "#! /bin/sh" >conf$$.sh
2959
  echo  "exit 0"   >>conf$$.sh
2960
  chmod +x conf$$.sh
2961
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
2962
    PATH_SEPARATOR=';'
2963
  else
2964
    PATH_SEPARATOR=:
2965
  fi
2966
  rm -f conf$$.sh
2967
fi
2968
2969
# Find out how to test for executable files. Don't use a zero-byte file,
2970
# as systems may use methods other than mode bits to determine executability.
2971
cat >conf$$.file <<_ASEOF
2972
#! /bin/sh
2973
exit 0
2974
_ASEOF
2975
chmod +x conf$$.file
2976
if test -x conf$$.file >/dev/null 2>&1; then
2977
  ac_executable_p="test -x"
2978
else
2979
  ac_executable_p="test -f"
2980
fi
2981
rm -f conf$$.file
2982
2983
# Extract the first word of "msgmerge", so it can be a program name with args.
2984
set dummy msgmerge; ac_word=$2
2985
echo "$as_me:$LINENO: checking for $ac_word" >&5
2986
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2987
if test "${ac_cv_path_MSGMERGE+set}" = set; then
2988
  echo $ECHO_N "(cached) $ECHO_C" >&6
2989
else
2990
  case "$MSGMERGE" in
2991
  [\\/]* | ?:[\\/]*)
2992
    ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
2993
    ;;
2994
  *)
2995
    ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
2996
    for ac_dir in $PATH; do
2997
      IFS="$ac_save_IFS"
2998
      test -z "$ac_dir" && ac_dir=.
2999
      for ac_exec_ext in '' $ac_executable_extensions; do
3000
        if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
3001
          if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
3002
            ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
3003
            break 2
3004
          fi
3005
        fi
3006
      done
3007
    done
3008
    IFS="$ac_save_IFS"
3009
  test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
3010
    ;;
3011
esac
3012
fi
3013
MSGMERGE="$ac_cv_path_MSGMERGE"
3014
if test "$MSGMERGE" != ":"; then
3015
  echo "$as_me:$LINENO: result: $MSGMERGE" >&5
3016
echo "${ECHO_T}$MSGMERGE" >&6
3017
else
3018
  echo "$as_me:$LINENO: result: no" >&5
3019
echo "${ECHO_T}no" >&6
3020
fi
3021
3022
3023
      if test "$GMSGFMT" != ":"; then
3024
            if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
3025
       (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3026
      : ;
3027
    else
3028
      GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
3029
      echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
3030
echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6
3031
      GMSGFMT=":"
3032
    fi
3033
  fi
3034
3035
      if test "$XGETTEXT" != ":"; then
3036
            if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 &&
3037
       (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
3038
      : ;
3039
    else
3040
      echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
3041
echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6
3042
      XGETTEXT=":"
3043
    fi
3044
        rm -f messages.po
3045
  fi
3046
3047
            ac_config_commands="$ac_config_commands gettext"
3048
3049
3050
if test -n "$ac_tool_prefix"; then
3051
  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3052
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3053
echo "$as_me:$LINENO: checking for $ac_word" >&5
3054
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055
if test "${ac_cv_prog_RANLIB+set}" = set; then
3056
  echo $ECHO_N "(cached) $ECHO_C" >&6
3057
else
3058
  if test -n "$RANLIB"; then
3059
  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3060
else
3061
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3062
for as_dir in $PATH
3063
do
3064
  IFS=$as_save_IFS
3065
  test -z "$as_dir" && as_dir=.
3066
  for ac_exec_ext in '' $ac_executable_extensions; do
3067
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3068
    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3069
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3070
    break 2
3071
  fi
3072
done
3073
done
3074
3075
fi
3076
fi
3077
RANLIB=$ac_cv_prog_RANLIB
3078
if test -n "$RANLIB"; then
3079
  echo "$as_me:$LINENO: result: $RANLIB" >&5
3080
echo "${ECHO_T}$RANLIB" >&6
3081
else
3082
  echo "$as_me:$LINENO: result: no" >&5
3083
echo "${ECHO_T}no" >&6
3084
fi
3085
3086
fi
3087
if test -z "$ac_cv_prog_RANLIB"; then
3088
  ac_ct_RANLIB=$RANLIB
3089
  # Extract the first word of "ranlib", so it can be a program name with args.
3090
set dummy ranlib; ac_word=$2
3091
echo "$as_me:$LINENO: checking for $ac_word" >&5
3092
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3093
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
3094
  echo $ECHO_N "(cached) $ECHO_C" >&6
3095
else
3096
  if test -n "$ac_ct_RANLIB"; then
3097
  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
3098
else
3099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3100
for as_dir in $PATH
3101
do
3102
  IFS=$as_save_IFS
3103
  test -z "$as_dir" && as_dir=.
3104
  for ac_exec_ext in '' $ac_executable_extensions; do
3105
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3106
    ac_cv_prog_ac_ct_RANLIB="ranlib"
3107
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3108
    break 2
3109
  fi
3110
done
3111
done
3112
3113
  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
3114
fi
3115
fi
3116
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
3117
if test -n "$ac_ct_RANLIB"; then
3118
  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
3119
echo "${ECHO_T}$ac_ct_RANLIB" >&6
3120
else
3121
  echo "$as_me:$LINENO: result: no" >&5
3122
echo "${ECHO_T}no" >&6
3123
fi
3124
3125
  RANLIB=$ac_ct_RANLIB
3126
else
3127
  RANLIB="$ac_cv_prog_RANLIB"
3128
fi
3129
3130
3131
3132
        echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
3133
echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6
3134
if test "${ac_cv_lib_cposix_strerror+set}" = set; then
3135
  echo $ECHO_N "(cached) $ECHO_C" >&6
3136
else
3137
  ac_check_lib_save_LIBS=$LIBS
3138
LIBS="-lcposix  $LIBS"
3139
cat >conftest.$ac_ext <<_ACEOF
3140
/* confdefs.h.  */
3141
_ACEOF
3142
cat confdefs.h >>conftest.$ac_ext
3143
cat >>conftest.$ac_ext <<_ACEOF
3144
/* end confdefs.h.  */
3145
3146
/* Override any gcc2 internal prototype to avoid an error.  */
3147
#ifdef __cplusplus
3148
extern "C"
3149
#endif
3150
/* We use char because int might match the return type of a gcc2
3151
   builtin and then its argument prototype would still apply.  */
3152
char strerror ();
3153
int
3154
main ()
3155
{
3156
strerror ();
3157
  ;
3158
  return 0;
3159
}
3160
_ACEOF
3161
rm -f conftest.$ac_objext conftest$ac_exeext
3162
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3163
  (eval $ac_link) 2>conftest.er1
3164
  ac_status=$?
3165
  grep -v '^ *+' conftest.er1 >conftest.err
3166
  rm -f conftest.er1
3167
  cat conftest.err >&5
3168
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3169
  (exit $ac_status); } &&
3170
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3171
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3172
  (eval $ac_try) 2>&5
3173
  ac_status=$?
3174
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3175
  (exit $ac_status); }; } &&
3176
	 { ac_try='test -s conftest$ac_exeext'
3177
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178
  (eval $ac_try) 2>&5
3179
  ac_status=$?
3180
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181
  (exit $ac_status); }; }; then
3182
  ac_cv_lib_cposix_strerror=yes
3183
else
3184
  echo "$as_me: failed program was:" >&5
3185
sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
ac_cv_lib_cposix_strerror=no
3188
fi
3189
rm -f conftest.err conftest.$ac_objext \
3190
      conftest$ac_exeext conftest.$ac_ext
3191
LIBS=$ac_check_lib_save_LIBS
3192
fi
3193
echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
3194
echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6
3195
if test $ac_cv_lib_cposix_strerror = yes; then
3196
  LIBS="$LIBS -lcposix"
3197
fi
3198
3199
3200
3201
ac_ext=c
3202
ac_cpp='$CPP $CPPFLAGS'
3203
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206
echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3207
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3208
# On Suns, sometimes $CPP names a directory.
3209
if test -n "$CPP" && test -d "$CPP"; then
3210
  CPP=
3211
fi
3212
if test -z "$CPP"; then
3213
  if test "${ac_cv_prog_CPP+set}" = set; then
3214
  echo $ECHO_N "(cached) $ECHO_C" >&6
3215
else
3216
      # Double quotes because CPP needs to be expanded
3217
    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3218
    do
3219
      ac_preproc_ok=false
3220
for ac_c_preproc_warn_flag in '' yes
3221
do
3222
  # Use a header file that comes with gcc, so configuring glibc
3223
  # with a fresh cross-compiler works.
3224
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3225
  # <limits.h> exists even on freestanding compilers.
3226
  # On the NeXT, cc -E runs the code through the compiler's parser,
3227
  # not just through cpp. "Syntax error" is here to catch this case.
3228
  cat >conftest.$ac_ext <<_ACEOF
3229
/* confdefs.h.  */
3230
_ACEOF
3231
cat confdefs.h >>conftest.$ac_ext
3232
cat >>conftest.$ac_ext <<_ACEOF
3233
/* end confdefs.h.  */
3234
#ifdef __STDC__
3235
# include <limits.h>
3236
#else
3237
# include <assert.h>
3238
#endif
3239
		     Syntax error
3240
_ACEOF
3241
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3242
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3243
  ac_status=$?
3244
  grep -v '^ *+' conftest.er1 >conftest.err
3245
  rm -f conftest.er1
3246
  cat conftest.err >&5
3247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248
  (exit $ac_status); } >/dev/null; then
3249
  if test -s conftest.err; then
3250
    ac_cpp_err=$ac_c_preproc_warn_flag
3251
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3252
  else
3253
    ac_cpp_err=
3254
  fi
3255
else
3256
  ac_cpp_err=yes
3257
fi
3258
if test -z "$ac_cpp_err"; then
3259
  :
3260
else
3261
  echo "$as_me: failed program was:" >&5
3262
sed 's/^/| /' conftest.$ac_ext >&5
3263
3264
  # Broken: fails on valid input.
3265
continue
3266
fi
3267
rm -f conftest.err conftest.$ac_ext
3268
3269
  # OK, works on sane cases.  Now check whether non-existent headers
3270
  # can be detected and how.
3271
  cat >conftest.$ac_ext <<_ACEOF
3272
/* confdefs.h.  */
3273
_ACEOF
3274
cat confdefs.h >>conftest.$ac_ext
3275
cat >>conftest.$ac_ext <<_ACEOF
3276
/* end confdefs.h.  */
3277
#include <ac_nonexistent.h>
3278
_ACEOF
3279
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3280
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3281
  ac_status=$?
3282
  grep -v '^ *+' conftest.er1 >conftest.err
3283
  rm -f conftest.er1
3284
  cat conftest.err >&5
3285
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286
  (exit $ac_status); } >/dev/null; then
3287
  if test -s conftest.err; then
3288
    ac_cpp_err=$ac_c_preproc_warn_flag
3289
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3290
  else
3291
    ac_cpp_err=
3292
  fi
3293
else
3294
  ac_cpp_err=yes
3295
fi
3296
if test -z "$ac_cpp_err"; then
3297
  # Broken: success on invalid input.
3298
continue
3299
else
3300
  echo "$as_me: failed program was:" >&5
3301
sed 's/^/| /' conftest.$ac_ext >&5
3302
3303
  # Passes both tests.
3304
ac_preproc_ok=:
3305
break
3306
fi
3307
rm -f conftest.err conftest.$ac_ext
3308
3309
done
3310
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3311
rm -f conftest.err conftest.$ac_ext
3312
if $ac_preproc_ok; then
3313
  break
3314
fi
3315
3316
    done
3317
    ac_cv_prog_CPP=$CPP
3318
3319
fi
3320
  CPP=$ac_cv_prog_CPP
3321
else
3322
  ac_cv_prog_CPP=$CPP
3323
fi
3324
echo "$as_me:$LINENO: result: $CPP" >&5
3325
echo "${ECHO_T}$CPP" >&6
3326
ac_preproc_ok=false
3327
for ac_c_preproc_warn_flag in '' yes
3328
do
3329
  # Use a header file that comes with gcc, so configuring glibc
3330
  # with a fresh cross-compiler works.
3331
  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3332
  # <limits.h> exists even on freestanding compilers.
3333
  # On the NeXT, cc -E runs the code through the compiler's parser,
3334
  # not just through cpp. "Syntax error" is here to catch this case.
3335
  cat >conftest.$ac_ext <<_ACEOF
3336
/* confdefs.h.  */
3337
_ACEOF
3338
cat confdefs.h >>conftest.$ac_ext
3339
cat >>conftest.$ac_ext <<_ACEOF
3340
/* end confdefs.h.  */
3341
#ifdef __STDC__
3342
# include <limits.h>
3343
#else
3344
# include <assert.h>
3345
#endif
3346
		     Syntax error
3347
_ACEOF
3348
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3349
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3350
  ac_status=$?
3351
  grep -v '^ *+' conftest.er1 >conftest.err
3352
  rm -f conftest.er1
3353
  cat conftest.err >&5
3354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355
  (exit $ac_status); } >/dev/null; then
3356
  if test -s conftest.err; then
3357
    ac_cpp_err=$ac_c_preproc_warn_flag
3358
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3359
  else
3360
    ac_cpp_err=
3361
  fi
3362
else
3363
  ac_cpp_err=yes
3364
fi
3365
if test -z "$ac_cpp_err"; then
3366
  :
3367
else
3368
  echo "$as_me: failed program was:" >&5
3369
sed 's/^/| /' conftest.$ac_ext >&5
3370
3371
  # Broken: fails on valid input.
3372
continue
3373
fi
3374
rm -f conftest.err conftest.$ac_ext
3375
3376
  # OK, works on sane cases.  Now check whether non-existent headers
3377
  # can be detected and how.
3378
  cat >conftest.$ac_ext <<_ACEOF
3379
/* confdefs.h.  */
3380
_ACEOF
3381
cat confdefs.h >>conftest.$ac_ext
3382
cat >>conftest.$ac_ext <<_ACEOF
3383
/* end confdefs.h.  */
3384
#include <ac_nonexistent.h>
3385
_ACEOF
3386
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3387
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3388
  ac_status=$?
3389
  grep -v '^ *+' conftest.er1 >conftest.err
3390
  rm -f conftest.er1
3391
  cat conftest.err >&5
3392
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3393
  (exit $ac_status); } >/dev/null; then
3394
  if test -s conftest.err; then
3395
    ac_cpp_err=$ac_c_preproc_warn_flag
3396
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3397
  else
3398
    ac_cpp_err=
3399
  fi
3400
else
3401
  ac_cpp_err=yes
3402
fi
3403
if test -z "$ac_cpp_err"; then
3404
  # Broken: success on invalid input.
3405
continue
3406
else
3407
  echo "$as_me: failed program was:" >&5
3408
sed 's/^/| /' conftest.$ac_ext >&5
3409
3410
  # Passes both tests.
3411
ac_preproc_ok=:
3412
break
3413
fi
3414
rm -f conftest.err conftest.$ac_ext
3415
3416
done
3417
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3418
rm -f conftest.err conftest.$ac_ext
3419
if $ac_preproc_ok; then
3420
  :
3421
else
3422
  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3423
See \`config.log' for more details." >&5
3424
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3425
See \`config.log' for more details." >&2;}
3426
   { (exit 1); exit 1; }; }
3427
fi
3428
3429
ac_ext=c
3430
ac_cpp='$CPP $CPPFLAGS'
3431
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3432
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3433
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3434
3435
3436
echo "$as_me:$LINENO: checking for egrep" >&5
3437
echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3438
if test "${ac_cv_prog_egrep+set}" = set; then
3439
  echo $ECHO_N "(cached) $ECHO_C" >&6
3440
else
3441
  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3442
    then ac_cv_prog_egrep='grep -E'
3443
    else ac_cv_prog_egrep='egrep'
3444
    fi
3445
fi
3446
echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3447
echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3448
 EGREP=$ac_cv_prog_egrep
3449
3450
3451
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3452
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3453
if test "${ac_cv_header_stdc+set}" = set; then
3454
  echo $ECHO_N "(cached) $ECHO_C" >&6
3455
else
3456
  cat >conftest.$ac_ext <<_ACEOF
3457
/* confdefs.h.  */
3458
_ACEOF
3459
cat confdefs.h >>conftest.$ac_ext
3460
cat >>conftest.$ac_ext <<_ACEOF
3461
/* end confdefs.h.  */
3462
#include <stdlib.h>
3463
#include <stdarg.h>
3464
#include <string.h>
3465
#include <float.h>
3466
3467
int
3468
main ()
3469
{
3470
3471
  ;
3472
  return 0;
3473
}
3474
_ACEOF
3475
rm -f conftest.$ac_objext
3476
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3477
  (eval $ac_compile) 2>conftest.er1
3478
  ac_status=$?
3479
  grep -v '^ *+' conftest.er1 >conftest.err
3480
  rm -f conftest.er1
3481
  cat conftest.err >&5
3482
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483
  (exit $ac_status); } &&
3484
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3485
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3486
  (eval $ac_try) 2>&5
3487
  ac_status=$?
3488
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3489
  (exit $ac_status); }; } &&
3490
	 { ac_try='test -s conftest.$ac_objext'
3491
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3492
  (eval $ac_try) 2>&5
3493
  ac_status=$?
3494
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495
  (exit $ac_status); }; }; then
3496
  ac_cv_header_stdc=yes
3497
else
3498
  echo "$as_me: failed program was:" >&5
3499
sed 's/^/| /' conftest.$ac_ext >&5
3500
3501
ac_cv_header_stdc=no
3502
fi
3503
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3504
3505
if test $ac_cv_header_stdc = yes; then
3506
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3507
  cat >conftest.$ac_ext <<_ACEOF
3508
/* confdefs.h.  */
3509
_ACEOF
3510
cat confdefs.h >>conftest.$ac_ext
3511
cat >>conftest.$ac_ext <<_ACEOF
3512
/* end confdefs.h.  */
3513
#include <string.h>
3514
3515
_ACEOF
3516
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3517
  $EGREP "memchr" >/dev/null 2>&1; then
3518
  :
3519
else
3520
  ac_cv_header_stdc=no
3521
fi
3522
rm -f conftest*
3523
3524
fi
3525
3526
if test $ac_cv_header_stdc = yes; then
3527
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3528
  cat >conftest.$ac_ext <<_ACEOF
3529
/* confdefs.h.  */
3530
_ACEOF
3531
cat confdefs.h >>conftest.$ac_ext
3532
cat >>conftest.$ac_ext <<_ACEOF
3533
/* end confdefs.h.  */
3534
#include <stdlib.h>
3535
3536
_ACEOF
3537
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3538
  $EGREP "free" >/dev/null 2>&1; then
3539
  :
3540
else
3541
  ac_cv_header_stdc=no
3542
fi
3543
rm -f conftest*
3544
3545
fi
3546
3547
if test $ac_cv_header_stdc = yes; then
3548
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3549
  if test "$cross_compiling" = yes; then
3550
  :
3551
else
3552
  cat >conftest.$ac_ext <<_ACEOF
3553
/* confdefs.h.  */
3554
_ACEOF
3555
cat confdefs.h >>conftest.$ac_ext
3556
cat >>conftest.$ac_ext <<_ACEOF
3557
/* end confdefs.h.  */
3558
#include <ctype.h>
3559
#if ((' ' & 0x0FF) == 0x020)
3560
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3561
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3562
#else
3563
# define ISLOWER(c) \
3564
		   (('a' <= (c) && (c) <= 'i') \
3565
		     || ('j' <= (c) && (c) <= 'r') \
3566
		     || ('s' <= (c) && (c) <= 'z'))
3567
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3568
#endif
3569
3570
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3571
int
3572
main ()
3573
{
3574
  int i;
3575
  for (i = 0; i < 256; i++)
3576
    if (XOR (islower (i), ISLOWER (i))
3577
	|| toupper (i) != TOUPPER (i))
3578
      exit(2);
3579
  exit (0);
3580
}
3581
_ACEOF
3582
rm -f conftest$ac_exeext
3583
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3584
  (eval $ac_link) 2>&5
3585
  ac_status=$?
3586
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3587
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3589
  (eval $ac_try) 2>&5
3590
  ac_status=$?
3591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3592
  (exit $ac_status); }; }; then
3593
  :
3594
else
3595
  echo "$as_me: program exited with status $ac_status" >&5
3596
echo "$as_me: failed program was:" >&5
3597
sed 's/^/| /' conftest.$ac_ext >&5
3598
3599
( exit $ac_status )
3600
ac_cv_header_stdc=no
3601
fi
3602
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3603
fi
3604
fi
3605
fi
3606
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3607
echo "${ECHO_T}$ac_cv_header_stdc" >&6
3608
if test $ac_cv_header_stdc = yes; then
3609
3610
cat >>confdefs.h <<\_ACEOF
3611
#define STDC_HEADERS 1
3612
_ACEOF
3613
3614
fi
3615
3616
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3617
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3618
if test "${ac_cv_c_const+set}" = set; then
3619
  echo $ECHO_N "(cached) $ECHO_C" >&6
3620
else
3621
  cat >conftest.$ac_ext <<_ACEOF
3622
/* confdefs.h.  */
3623
_ACEOF
3624
cat confdefs.h >>conftest.$ac_ext
3625
cat >>conftest.$ac_ext <<_ACEOF
3626
/* end confdefs.h.  */
3627
3628
int
3629
main ()
3630
{
3631
/* FIXME: Include the comments suggested by Paul. */
3632
#ifndef __cplusplus
3633
  /* Ultrix mips cc rejects this.  */
3634
  typedef int charset[2];
3635
  const charset x;
3636
  /* SunOS 4.1.1 cc rejects this.  */
3637
  char const *const *ccp;
3638
  char **p;
3639
  /* NEC SVR4.0.2 mips cc rejects this.  */
3640
  struct point {int x, y;};
3641
  static struct point const zero = {0,0};
3642
  /* AIX XL C 1.02.0.0 rejects this.
3643
     It does not let you subtract one const X* pointer from another in
3644
     an arm of an if-expression whose if-part is not a constant
3645
     expression */
3646
  const char *g = "string";
3647
  ccp = &g + (g ? g-g : 0);
3648
  /* HPUX 7.0 cc rejects these. */
3649
  ++ccp;
3650
  p = (char**) ccp;
3651
  ccp = (char const *const *) p;
3652
  { /* SCO 3.2v4 cc rejects this.  */
3653
    char *t;
3654
    char const *s = 0 ? (char *) 0 : (char const *) 0;
3655
3656
    *t++ = 0;
3657
  }
3658
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3659
    int x[] = {25, 17};
3660
    const int *foo = &x[0];
3661
    ++foo;
3662
  }
3663
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3664
    typedef const int *iptr;
3665
    iptr p = 0;
3666
    ++p;
3667
  }
3668
  { /* AIX XL C 1.02.0.0 rejects this saying
3669
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3670
    struct s { int j; const int *ap[3]; };
3671
    struct s *b; b->j = 5;
3672
  }
3673
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3674
    const int foo = 10;
3675
  }
3676
#endif
3677
3678
  ;
3679
  return 0;
3680
}
3681
_ACEOF
3682
rm -f conftest.$ac_objext
3683
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3684
  (eval $ac_compile) 2>conftest.er1
3685
  ac_status=$?
3686
  grep -v '^ *+' conftest.er1 >conftest.err
3687
  rm -f conftest.er1
3688
  cat conftest.err >&5
3689
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3690
  (exit $ac_status); } &&
3691
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3692
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3693
  (eval $ac_try) 2>&5
3694
  ac_status=$?
3695
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3696
  (exit $ac_status); }; } &&
3697
	 { ac_try='test -s conftest.$ac_objext'
3698
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3699
  (eval $ac_try) 2>&5
3700
  ac_status=$?
3701
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3702
  (exit $ac_status); }; }; then
3703
  ac_cv_c_const=yes
3704
else
3705
  echo "$as_me: failed program was:" >&5
3706
sed 's/^/| /' conftest.$ac_ext >&5
3707
3708
ac_cv_c_const=no
3709
fi
3710
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3711
fi
3712
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3713
echo "${ECHO_T}$ac_cv_c_const" >&6
3714
if test $ac_cv_c_const = no; then
3715
3716
cat >>confdefs.h <<\_ACEOF
3717
#define const
3718
_ACEOF
3719
3720
fi
3721
3722
echo "$as_me:$LINENO: checking for inline" >&5
3723
echo $ECHO_N "checking for inline... $ECHO_C" >&6
3724
if test "${ac_cv_c_inline+set}" = set; then
3725
  echo $ECHO_N "(cached) $ECHO_C" >&6
3726
else
3727
  ac_cv_c_inline=no
3728
for ac_kw in inline __inline__ __inline; do
3729
  cat >conftest.$ac_ext <<_ACEOF
3730
/* confdefs.h.  */
3731
_ACEOF
3732
cat confdefs.h >>conftest.$ac_ext
3733
cat >>conftest.$ac_ext <<_ACEOF
3734
/* end confdefs.h.  */
3735
#ifndef __cplusplus
3736
typedef int foo_t;
3737
static $ac_kw foo_t static_foo () {return 0; }
3738
$ac_kw foo_t foo () {return 0; }
3739
#endif
3740
3741
_ACEOF
3742
rm -f conftest.$ac_objext
3743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3744
  (eval $ac_compile) 2>conftest.er1
3745
  ac_status=$?
3746
  grep -v '^ *+' conftest.er1 >conftest.err
3747
  rm -f conftest.er1
3748
  cat conftest.err >&5
3749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750
  (exit $ac_status); } &&
3751
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753
  (eval $ac_try) 2>&5
3754
  ac_status=$?
3755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756
  (exit $ac_status); }; } &&
3757
	 { ac_try='test -s conftest.$ac_objext'
3758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3759
  (eval $ac_try) 2>&5
3760
  ac_status=$?
3761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3762
  (exit $ac_status); }; }; then
3763
  ac_cv_c_inline=$ac_kw; break
3764
else
3765
  echo "$as_me: failed program was:" >&5
3766
sed 's/^/| /' conftest.$ac_ext >&5
3767
3768
fi
3769
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3770
done
3771
3772
fi
3773
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
3774
echo "${ECHO_T}$ac_cv_c_inline" >&6
3775
3776
3777
case $ac_cv_c_inline in
3778
  inline | yes) ;;
3779
  *)
3780
    case $ac_cv_c_inline in
3781
      no) ac_val=;;
3782
      *) ac_val=$ac_cv_c_inline;;
3783
    esac
3784
    cat >>confdefs.h <<_ACEOF
3785
#ifndef __cplusplus
3786
#define inline $ac_val
3787
#endif
3788
_ACEOF
3789
    ;;
3790
esac
3791
3792
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3803
		  inttypes.h stdint.h unistd.h
3804
do
3805
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3806
echo "$as_me:$LINENO: checking for $ac_header" >&5
3807
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3808
if eval "test \"\${$as_ac_Header+set}\" = set"; then
3809
  echo $ECHO_N "(cached) $ECHO_C" >&6
3810
else
3811
  cat >conftest.$ac_ext <<_ACEOF
3812
/* confdefs.h.  */
3813
_ACEOF
3814
cat confdefs.h >>conftest.$ac_ext
3815
cat >>conftest.$ac_ext <<_ACEOF
3816
/* end confdefs.h.  */
3817
$ac_includes_default
3818
3819
#include <$ac_header>
3820
_ACEOF
3821
rm -f conftest.$ac_objext
3822
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3823
  (eval $ac_compile) 2>conftest.er1
3824
  ac_status=$?
3825
  grep -v '^ *+' conftest.er1 >conftest.err
3826
  rm -f conftest.er1
3827
  cat conftest.err >&5
3828
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829
  (exit $ac_status); } &&
3830
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
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); }; } &&
3836
	 { ac_try='test -s conftest.$ac_objext'
3837
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3838
  (eval $ac_try) 2>&5
3839
  ac_status=$?
3840
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3841
  (exit $ac_status); }; }; then
3842
  eval "$as_ac_Header=yes"
3843
else
3844
  echo "$as_me: failed program was:" >&5
3845
sed 's/^/| /' conftest.$ac_ext >&5
3846
3847
eval "$as_ac_Header=no"
3848
fi
3849
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3850
fi
3851
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3852
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3853
if test `eval echo '${'$as_ac_Header'}'` = yes; then
3854
  cat >>confdefs.h <<_ACEOF
3855
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3856
_ACEOF
3857
3858
fi
3859
3860
done
3861
3862
3863
echo "$as_me:$LINENO: checking for off_t" >&5
3864
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
3865
if test "${ac_cv_type_off_t+set}" = set; then
3866
  echo $ECHO_N "(cached) $ECHO_C" >&6
3867
else
3868
  cat >conftest.$ac_ext <<_ACEOF
3869
/* confdefs.h.  */
3870
_ACEOF
3871
cat confdefs.h >>conftest.$ac_ext
3872
cat >>conftest.$ac_ext <<_ACEOF
3873
/* end confdefs.h.  */
3874
$ac_includes_default
3875
int
3876
main ()
3877
{
3878
if ((off_t *) 0)
3879
  return 0;
3880
if (sizeof (off_t))
3881
  return 0;
3882
  ;
3883
  return 0;
3884
}
3885
_ACEOF
3886
rm -f conftest.$ac_objext
3887
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3888
  (eval $ac_compile) 2>conftest.er1
3889
  ac_status=$?
3890
  grep -v '^ *+' conftest.er1 >conftest.err
3891
  rm -f conftest.er1
3892
  cat conftest.err >&5
3893
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894
  (exit $ac_status); } &&
3895
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3896
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3897
  (eval $ac_try) 2>&5
3898
  ac_status=$?
3899
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3900
  (exit $ac_status); }; } &&
3901
	 { ac_try='test -s conftest.$ac_objext'
3902
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3903
  (eval $ac_try) 2>&5
3904
  ac_status=$?
3905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906
  (exit $ac_status); }; }; then
3907
  ac_cv_type_off_t=yes
3908
else
3909
  echo "$as_me: failed program was:" >&5
3910
sed 's/^/| /' conftest.$ac_ext >&5
3911
3912
ac_cv_type_off_t=no
3913
fi
3914
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3915
fi
3916
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
3917
echo "${ECHO_T}$ac_cv_type_off_t" >&6
3918
if test $ac_cv_type_off_t = yes; then
3919
  :
3920
else
3921
3922
cat >>confdefs.h <<_ACEOF
3923
#define off_t long
3924
_ACEOF
3925
3926
fi
3927
3928
echo "$as_me:$LINENO: checking for size_t" >&5
3929
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3930
if test "${ac_cv_type_size_t+set}" = set; then
3931
  echo $ECHO_N "(cached) $ECHO_C" >&6
3932
else
3933
  cat >conftest.$ac_ext <<_ACEOF
3934
/* confdefs.h.  */
3935
_ACEOF
3936
cat confdefs.h >>conftest.$ac_ext
3937
cat >>conftest.$ac_ext <<_ACEOF
3938
/* end confdefs.h.  */
3939
$ac_includes_default
3940
int
3941
main ()
3942
{
3943
if ((size_t *) 0)
3944
  return 0;
3945
if (sizeof (size_t))
3946
  return 0;
3947
  ;
3948
  return 0;
3949
}
3950
_ACEOF
3951
rm -f conftest.$ac_objext
3952
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3953
  (eval $ac_compile) 2>conftest.er1
3954
  ac_status=$?
3955
  grep -v '^ *+' conftest.er1 >conftest.err
3956
  rm -f conftest.er1
3957
  cat conftest.err >&5
3958
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959
  (exit $ac_status); } &&
3960
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
3961
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3962
  (eval $ac_try) 2>&5
3963
  ac_status=$?
3964
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965
  (exit $ac_status); }; } &&
3966
	 { ac_try='test -s conftest.$ac_objext'
3967
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968
  (eval $ac_try) 2>&5
3969
  ac_status=$?
3970
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3971
  (exit $ac_status); }; }; then
3972
  ac_cv_type_size_t=yes
3973
else
3974
  echo "$as_me: failed program was:" >&5
3975
sed 's/^/| /' conftest.$ac_ext >&5
3976
3977
ac_cv_type_size_t=no
3978
fi
3979
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3980
fi
3981
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3982
echo "${ECHO_T}$ac_cv_type_size_t" >&6
3983
if test $ac_cv_type_size_t = yes; then
3984
  :
3985
else
3986
3987
cat >>confdefs.h <<_ACEOF
3988
#define size_t unsigned
3989
_ACEOF
3990
3991
fi
3992
3993
# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
3994
# for constant arguments.  Useless!
3995
echo "$as_me:$LINENO: checking for working alloca.h" >&5
3996
echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
3997
if test "${ac_cv_working_alloca_h+set}" = set; then
3998
  echo $ECHO_N "(cached) $ECHO_C" >&6
3999
else
4000
  cat >conftest.$ac_ext <<_ACEOF
4001
/* confdefs.h.  */
4002
_ACEOF
4003
cat confdefs.h >>conftest.$ac_ext
4004
cat >>conftest.$ac_ext <<_ACEOF
4005
/* end confdefs.h.  */
4006
#include <alloca.h>
4007
int
4008
main ()
4009
{
4010
char *p = (char *) alloca (2 * sizeof (int));
4011
  ;
4012
  return 0;
4013
}
4014
_ACEOF
4015
rm -f conftest.$ac_objext conftest$ac_exeext
4016
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4017
  (eval $ac_link) 2>conftest.er1
4018
  ac_status=$?
4019
  grep -v '^ *+' conftest.er1 >conftest.err
4020
  rm -f conftest.er1
4021
  cat conftest.err >&5
4022
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4023
  (exit $ac_status); } &&
4024
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4025
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4026
  (eval $ac_try) 2>&5
4027
  ac_status=$?
4028
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029
  (exit $ac_status); }; } &&
4030
	 { ac_try='test -s conftest$ac_exeext'
4031
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4032
  (eval $ac_try) 2>&5
4033
  ac_status=$?
4034
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035
  (exit $ac_status); }; }; then
4036
  ac_cv_working_alloca_h=yes
4037
else
4038
  echo "$as_me: failed program was:" >&5
4039
sed 's/^/| /' conftest.$ac_ext >&5
4040
4041
ac_cv_working_alloca_h=no
4042
fi
4043
rm -f conftest.err conftest.$ac_objext \
4044
      conftest$ac_exeext conftest.$ac_ext
4045
fi
4046
echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
4047
echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
4048
if test $ac_cv_working_alloca_h = yes; then
4049
4050
cat >>confdefs.h <<\_ACEOF
4051
#define HAVE_ALLOCA_H 1
4052
_ACEOF
4053
4054
fi
4055
4056
echo "$as_me:$LINENO: checking for alloca" >&5
4057
echo $ECHO_N "checking for alloca... $ECHO_C" >&6
4058
if test "${ac_cv_func_alloca_works+set}" = set; then
4059
  echo $ECHO_N "(cached) $ECHO_C" >&6
4060
else
4061
  cat >conftest.$ac_ext <<_ACEOF
4062
/* confdefs.h.  */
4063
_ACEOF
4064
cat confdefs.h >>conftest.$ac_ext
4065
cat >>conftest.$ac_ext <<_ACEOF
4066
/* end confdefs.h.  */
4067
#ifdef __GNUC__
4068
# define alloca __builtin_alloca
4069
#else
4070
# ifdef _MSC_VER
4071
#  include <malloc.h>
4072
#  define alloca _alloca
4073
# else
4074
#  if HAVE_ALLOCA_H
4075
#   include <alloca.h>
4076
#  else
4077
#   ifdef _AIX
4078
 #pragma alloca
4079
#   else
4080
#    ifndef alloca /* predefined by HP cc +Olibcalls */
4081
char *alloca ();
4082
#    endif
4083
#   endif
4084
#  endif
4085
# endif
4086
#endif
4087
4088
int
4089
main ()
4090
{
4091
char *p = (char *) alloca (1);
4092
  ;
4093
  return 0;
4094
}
4095
_ACEOF
4096
rm -f conftest.$ac_objext conftest$ac_exeext
4097
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4098
  (eval $ac_link) 2>conftest.er1
4099
  ac_status=$?
4100
  grep -v '^ *+' conftest.er1 >conftest.err
4101
  rm -f conftest.er1
4102
  cat conftest.err >&5
4103
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104
  (exit $ac_status); } &&
4105
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4106
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107
  (eval $ac_try) 2>&5
4108
  ac_status=$?
4109
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110
  (exit $ac_status); }; } &&
4111
	 { ac_try='test -s conftest$ac_exeext'
4112
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113
  (eval $ac_try) 2>&5
4114
  ac_status=$?
4115
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116
  (exit $ac_status); }; }; then
4117
  ac_cv_func_alloca_works=yes
4118
else
4119
  echo "$as_me: failed program was:" >&5
4120
sed 's/^/| /' conftest.$ac_ext >&5
4121
4122
ac_cv_func_alloca_works=no
4123
fi
4124
rm -f conftest.err conftest.$ac_objext \
4125
      conftest$ac_exeext conftest.$ac_ext
4126
fi
4127
echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
4128
echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
4129
4130
if test $ac_cv_func_alloca_works = yes; then
4131
4132
cat >>confdefs.h <<\_ACEOF
4133
#define HAVE_ALLOCA 1
4134
_ACEOF
4135
4136
else
4137
  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4138
# that cause trouble.  Some versions do not even contain alloca or
4139
# contain a buggy version.  If you still want to use their alloca,
4140
# use ar to extract alloca.o from them instead of compiling alloca.c.
4141
4142
ALLOCA=alloca.$ac_objext
4143
4144
cat >>confdefs.h <<\_ACEOF
4145
#define C_ALLOCA 1
4146
_ACEOF
4147
4148
4149
echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
4150
echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
4151
if test "${ac_cv_os_cray+set}" = set; then
4152
  echo $ECHO_N "(cached) $ECHO_C" >&6
4153
else
4154
  cat >conftest.$ac_ext <<_ACEOF
4155
/* confdefs.h.  */
4156
_ACEOF
4157
cat confdefs.h >>conftest.$ac_ext
4158
cat >>conftest.$ac_ext <<_ACEOF
4159
/* end confdefs.h.  */
4160
#if defined(CRAY) && ! defined(CRAY2)
4161
webecray
4162
#else
4163
wenotbecray
4164
#endif
4165
4166
_ACEOF
4167
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4168
  $EGREP "webecray" >/dev/null 2>&1; then
4169
  ac_cv_os_cray=yes
4170
else
4171
  ac_cv_os_cray=no
4172
fi
4173
rm -f conftest*
4174
4175
fi
4176
echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
4177
echo "${ECHO_T}$ac_cv_os_cray" >&6
4178
if test $ac_cv_os_cray = yes; then
4179
  for ac_func in _getb67 GETB67 getb67; do
4180
    as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4181
echo "$as_me:$LINENO: checking for $ac_func" >&5
4182
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4183
if eval "test \"\${$as_ac_var+set}\" = set"; then
4184
  echo $ECHO_N "(cached) $ECHO_C" >&6
4185
else
4186
  cat >conftest.$ac_ext <<_ACEOF
4187
/* confdefs.h.  */
4188
_ACEOF
4189
cat confdefs.h >>conftest.$ac_ext
4190
cat >>conftest.$ac_ext <<_ACEOF
4191
/* end confdefs.h.  */
4192
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4193
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4194
#define $ac_func innocuous_$ac_func
4195
4196
/* System header to define __stub macros and hopefully few prototypes,
4197
    which can conflict with char $ac_func (); below.
4198
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4199
    <limits.h> exists even on freestanding compilers.  */
4200
4201
#ifdef __STDC__
4202
# include <limits.h>
4203
#else
4204
# include <assert.h>
4205
#endif
4206
4207
#undef $ac_func
4208
4209
/* Override any gcc2 internal prototype to avoid an error.  */
4210
#ifdef __cplusplus
4211
extern "C"
4212
{
4213
#endif
4214
/* We use char because int might match the return type of a gcc2
4215
   builtin and then its argument prototype would still apply.  */
4216
char $ac_func ();
4217
/* The GNU C library defines this for functions which it implements
4218
    to always fail with ENOSYS.  Some functions are actually named
4219
    something starting with __ and the normal name is an alias.  */
4220
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4221
choke me
4222
#else
4223
char (*f) () = $ac_func;
4224
#endif
4225
#ifdef __cplusplus
4226
}
4227
#endif
4228
4229
int
4230
main ()
4231
{
4232
return f != $ac_func;
4233
  ;
4234
  return 0;
4235
}
4236
_ACEOF
4237
rm -f conftest.$ac_objext conftest$ac_exeext
4238
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4239
  (eval $ac_link) 2>conftest.er1
4240
  ac_status=$?
4241
  grep -v '^ *+' conftest.er1 >conftest.err
4242
  rm -f conftest.er1
4243
  cat conftest.err >&5
4244
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245
  (exit $ac_status); } &&
4246
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4247
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248
  (eval $ac_try) 2>&5
4249
  ac_status=$?
4250
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251
  (exit $ac_status); }; } &&
4252
	 { ac_try='test -s conftest$ac_exeext'
4253
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4254
  (eval $ac_try) 2>&5
4255
  ac_status=$?
4256
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4257
  (exit $ac_status); }; }; then
4258
  eval "$as_ac_var=yes"
4259
else
4260
  echo "$as_me: failed program was:" >&5
4261
sed 's/^/| /' conftest.$ac_ext >&5
4262
4263
eval "$as_ac_var=no"
4264
fi
4265
rm -f conftest.err conftest.$ac_objext \
4266
      conftest$ac_exeext conftest.$ac_ext
4267
fi
4268
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4269
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4270
if test `eval echo '${'$as_ac_var'}'` = yes; then
4271
4272
cat >>confdefs.h <<_ACEOF
4273
#define CRAY_STACKSEG_END $ac_func
4274
_ACEOF
4275
4276
    break
4277
fi
4278
4279
  done
4280
fi
4281
4282
echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
4283
echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
4284
if test "${ac_cv_c_stack_direction+set}" = set; then
4285
  echo $ECHO_N "(cached) $ECHO_C" >&6
4286
else
4287
  if test "$cross_compiling" = yes; then
4288
  ac_cv_c_stack_direction=0
4289
else
4290
  cat >conftest.$ac_ext <<_ACEOF
4291
/* confdefs.h.  */
4292
_ACEOF
4293
cat confdefs.h >>conftest.$ac_ext
4294
cat >>conftest.$ac_ext <<_ACEOF
4295
/* end confdefs.h.  */
4296
int
4297
find_stack_direction ()
4298
{
4299
  static char *addr = 0;
4300
  auto char dummy;
4301
  if (addr == 0)
4302
    {
4303
      addr = &dummy;
4304
      return find_stack_direction ();
4305
    }
4306
  else
4307
    return (&dummy > addr) ? 1 : -1;
4308
}
4309
4310
int
4311
main ()
4312
{
4313
  exit (find_stack_direction () < 0);
4314
}
4315
_ACEOF
4316
rm -f conftest$ac_exeext
4317
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4318
  (eval $ac_link) 2>&5
4319
  ac_status=$?
4320
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4321
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4322
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4323
  (eval $ac_try) 2>&5
4324
  ac_status=$?
4325
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326
  (exit $ac_status); }; }; then
4327
  ac_cv_c_stack_direction=1
4328
else
4329
  echo "$as_me: program exited with status $ac_status" >&5
4330
echo "$as_me: failed program was:" >&5
4331
sed 's/^/| /' conftest.$ac_ext >&5
4332
4333
( exit $ac_status )
4334
ac_cv_c_stack_direction=-1
4335
fi
4336
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4337
fi
4338
fi
4339
echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
4340
echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
4341
4342
cat >>confdefs.h <<_ACEOF
4343
#define STACK_DIRECTION $ac_cv_c_stack_direction
4344
_ACEOF
4345
4346
4347
fi
4348
4349
4350
4351
for ac_header in stdlib.h unistd.h
4352
do
4353
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4354
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4355
  echo "$as_me:$LINENO: checking for $ac_header" >&5
4356
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4357
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4358
  echo $ECHO_N "(cached) $ECHO_C" >&6
4359
fi
4360
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4361
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4362
else
4363
  # Is the header compilable?
4364
echo "$as_me:$LINENO: checking $ac_header usability" >&5
4365
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4366
cat >conftest.$ac_ext <<_ACEOF
4367
/* confdefs.h.  */
4368
_ACEOF
4369
cat confdefs.h >>conftest.$ac_ext
4370
cat >>conftest.$ac_ext <<_ACEOF
4371
/* end confdefs.h.  */
4372
$ac_includes_default
4373
#include <$ac_header>
4374
_ACEOF
4375
rm -f conftest.$ac_objext
4376
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4377
  (eval $ac_compile) 2>conftest.er1
4378
  ac_status=$?
4379
  grep -v '^ *+' conftest.er1 >conftest.err
4380
  rm -f conftest.er1
4381
  cat conftest.err >&5
4382
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383
  (exit $ac_status); } &&
4384
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4385
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4386
  (eval $ac_try) 2>&5
4387
  ac_status=$?
4388
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389
  (exit $ac_status); }; } &&
4390
	 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
4396
  ac_header_compiler=yes
4397
else
4398
  echo "$as_me: failed program was:" >&5
4399
sed 's/^/| /' conftest.$ac_ext >&5
4400
4401
ac_header_compiler=no
4402
fi
4403
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4404
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4405
echo "${ECHO_T}$ac_header_compiler" >&6
4406
4407
# Is the header present?
4408
echo "$as_me:$LINENO: checking $ac_header presence" >&5
4409
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4410
cat >conftest.$ac_ext <<_ACEOF
4411
/* confdefs.h.  */
4412
_ACEOF
4413
cat confdefs.h >>conftest.$ac_ext
4414
cat >>conftest.$ac_ext <<_ACEOF
4415
/* end confdefs.h.  */
4416
#include <$ac_header>
4417
_ACEOF
4418
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4419
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4420
  ac_status=$?
4421
  grep -v '^ *+' conftest.er1 >conftest.err
4422
  rm -f conftest.er1
4423
  cat conftest.err >&5
4424
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425
  (exit $ac_status); } >/dev/null; then
4426
  if test -s conftest.err; then
4427
    ac_cpp_err=$ac_c_preproc_warn_flag
4428
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4429
  else
4430
    ac_cpp_err=
4431
  fi
4432
else
4433
  ac_cpp_err=yes
4434
fi
4435
if test -z "$ac_cpp_err"; then
4436
  ac_header_preproc=yes
4437
else
4438
  echo "$as_me: failed program was:" >&5
4439
sed 's/^/| /' conftest.$ac_ext >&5
4440
4441
  ac_header_preproc=no
4442
fi
4443
rm -f conftest.err conftest.$ac_ext
4444
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4445
echo "${ECHO_T}$ac_header_preproc" >&6
4446
4447
# So?  What about this header?
4448
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4449
  yes:no: )
4450
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4451
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4452
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4453
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4454
    ac_header_preproc=yes
4455
    ;;
4456
  no:yes:* )
4457
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4458
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4459
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4460
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4461
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4462
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4463
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4464
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4465
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4466
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4467
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4468
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4469
    (
4470
      cat <<\_ASBOX
4471
## ---------------------------------- ##
4472
## Report this to vandrove@vc.cvut.cz ##
4473
## ---------------------------------- ##
4474
_ASBOX
4475
    ) |
4476
      sed "s/^/$as_me: WARNING:     /" >&2
4477
    ;;
4478
esac
4479
echo "$as_me:$LINENO: checking for $ac_header" >&5
4480
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4481
if eval "test \"\${$as_ac_Header+set}\" = set"; then
4482
  echo $ECHO_N "(cached) $ECHO_C" >&6
4483
else
4484
  eval "$as_ac_Header=\$ac_header_preproc"
4485
fi
4486
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4487
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4488
4489
fi
4490
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4491
  cat >>confdefs.h <<_ACEOF
4492
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4493
_ACEOF
4494
4495
fi
4496
4497
done
4498
4499
4500
for ac_func in getpagesize
4501
do
4502
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4503
echo "$as_me:$LINENO: checking for $ac_func" >&5
4504
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4505
if eval "test \"\${$as_ac_var+set}\" = set"; then
4506
  echo $ECHO_N "(cached) $ECHO_C" >&6
4507
else
4508
  cat >conftest.$ac_ext <<_ACEOF
4509
/* confdefs.h.  */
4510
_ACEOF
4511
cat confdefs.h >>conftest.$ac_ext
4512
cat >>conftest.$ac_ext <<_ACEOF
4513
/* end confdefs.h.  */
4514
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4515
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4516
#define $ac_func innocuous_$ac_func
4517
4518
/* System header to define __stub macros and hopefully few prototypes,
4519
    which can conflict with char $ac_func (); below.
4520
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521
    <limits.h> exists even on freestanding compilers.  */
4522
4523
#ifdef __STDC__
4524
# include <limits.h>
4525
#else
4526
# include <assert.h>
4527
#endif
4528
4529
#undef $ac_func
4530
4531
/* Override any gcc2 internal prototype to avoid an error.  */
4532
#ifdef __cplusplus
4533
extern "C"
4534
{
4535
#endif
4536
/* We use char because int might match the return type of a gcc2
4537
   builtin and then its argument prototype would still apply.  */
4538
char $ac_func ();
4539
/* The GNU C library defines this for functions which it implements
4540
    to always fail with ENOSYS.  Some functions are actually named
4541
    something starting with __ and the normal name is an alias.  */
4542
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4543
choke me
4544
#else
4545
char (*f) () = $ac_func;
4546
#endif
4547
#ifdef __cplusplus
4548
}
4549
#endif
4550
4551
int
4552
main ()
4553
{
4554
return f != $ac_func;
4555
  ;
4556
  return 0;
4557
}
4558
_ACEOF
4559
rm -f conftest.$ac_objext conftest$ac_exeext
4560
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4561
  (eval $ac_link) 2>conftest.er1
4562
  ac_status=$?
4563
  grep -v '^ *+' conftest.er1 >conftest.err
4564
  rm -f conftest.er1
4565
  cat conftest.err >&5
4566
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567
  (exit $ac_status); } &&
4568
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4569
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4570
  (eval $ac_try) 2>&5
4571
  ac_status=$?
4572
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573
  (exit $ac_status); }; } &&
4574
	 { ac_try='test -s conftest$ac_exeext'
4575
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4576
  (eval $ac_try) 2>&5
4577
  ac_status=$?
4578
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579
  (exit $ac_status); }; }; then
4580
  eval "$as_ac_var=yes"
4581
else
4582
  echo "$as_me: failed program was:" >&5
4583
sed 's/^/| /' conftest.$ac_ext >&5
4584
4585
eval "$as_ac_var=no"
4586
fi
4587
rm -f conftest.err conftest.$ac_objext \
4588
      conftest$ac_exeext conftest.$ac_ext
4589
fi
4590
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4591
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4592
if test `eval echo '${'$as_ac_var'}'` = yes; then
4593
  cat >>confdefs.h <<_ACEOF
4594
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4595
_ACEOF
4596
4597
fi
4598
done
4599
4600
echo "$as_me:$LINENO: checking for working mmap" >&5
4601
echo $ECHO_N "checking for working mmap... $ECHO_C" >&6
4602
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
4603
  echo $ECHO_N "(cached) $ECHO_C" >&6
4604
else
4605
  if test "$cross_compiling" = yes; then
4606
  ac_cv_func_mmap_fixed_mapped=no
4607
else
4608
  cat >conftest.$ac_ext <<_ACEOF
4609
/* confdefs.h.  */
4610
_ACEOF
4611
cat confdefs.h >>conftest.$ac_ext
4612
cat >>conftest.$ac_ext <<_ACEOF
4613
/* end confdefs.h.  */
4614
$ac_includes_default
4615
/* malloc might have been renamed as rpl_malloc. */
4616
#undef malloc
4617
4618
/* Thanks to Mike Haertel and Jim Avera for this test.
4619
   Here is a matrix of mmap possibilities:
4620
	mmap private not fixed
4621
	mmap private fixed at somewhere currently unmapped
4622
	mmap private fixed at somewhere already mapped
4623
	mmap shared not fixed
4624
	mmap shared fixed at somewhere currently unmapped
4625
	mmap shared fixed at somewhere already mapped
4626
   For private mappings, we should verify that changes cannot be read()
4627
   back from the file, nor mmap's back from the file at a different
4628
   address.  (There have been systems where private was not correctly
4629
   implemented like the infamous i386 svr4.0, and systems where the
4630
   VM page cache was not coherent with the file system buffer cache
4631
   like early versions of FreeBSD and possibly contemporary NetBSD.)
4632
   For shared mappings, we should conversely verify that changes get
4633
   propagated back to all the places they're supposed to be.
4634
4635
   Grep wants private fixed already mapped.
4636
   The main things grep needs to know about mmap are:
4637
   * does it exist and is it safe to write into the mmap'd area
4638
   * how to use it (BSD variants)  */
4639
4640
#include <fcntl.h>
4641
#include <sys/mman.h>
4642
4643
#if !STDC_HEADERS && !HAVE_STDLIB_H
4644
char *malloc ();
4645
#endif
4646
4647
/* This mess was copied from the GNU getpagesize.h.  */
4648
#if !HAVE_GETPAGESIZE
4649
/* Assume that all systems that can run configure have sys/param.h.  */
4650
# if !HAVE_SYS_PARAM_H
4651
#  define HAVE_SYS_PARAM_H 1
4652
# endif
4653
4654
# ifdef _SC_PAGESIZE
4655
#  define getpagesize() sysconf(_SC_PAGESIZE)
4656
# else /* no _SC_PAGESIZE */
4657
#  if HAVE_SYS_PARAM_H
4658
#   include <sys/param.h>
4659
#   ifdef EXEC_PAGESIZE
4660
#    define getpagesize() EXEC_PAGESIZE
4661
#   else /* no EXEC_PAGESIZE */
4662
#    ifdef NBPG
4663
#     define getpagesize() NBPG * CLSIZE
4664
#     ifndef CLSIZE
4665
#      define CLSIZE 1
4666
#     endif /* no CLSIZE */
4667
#    else /* no NBPG */
4668
#     ifdef NBPC
4669
#      define getpagesize() NBPC
4670
#     else /* no NBPC */
4671
#      ifdef PAGESIZE
4672
#       define getpagesize() PAGESIZE
4673
#      endif /* PAGESIZE */
4674
#     endif /* no NBPC */
4675
#    endif /* no NBPG */
4676
#   endif /* no EXEC_PAGESIZE */
4677
#  else /* no HAVE_SYS_PARAM_H */
4678
#   define getpagesize() 8192	/* punt totally */
4679
#  endif /* no HAVE_SYS_PARAM_H */
4680
# endif /* no _SC_PAGESIZE */
4681
4682
#endif /* no HAVE_GETPAGESIZE */
4683
4684
int
4685
main ()
4686
{
4687
  char *data, *data2, *data3;
4688
  int i, pagesize;
4689
  int fd;
4690
4691
  pagesize = getpagesize ();
4692
4693
  /* First, make a file with some known garbage in it. */
4694
  data = (char *) malloc (pagesize);
4695
  if (!data)
4696
    exit (1);
4697
  for (i = 0; i < pagesize; ++i)
4698
    *(data + i) = rand ();
4699
  umask (0);
4700
  fd = creat ("conftest.mmap", 0600);
4701
  if (fd < 0)
4702
    exit (1);
4703
  if (write (fd, data, pagesize) != pagesize)
4704
    exit (1);
4705
  close (fd);
4706
4707
  /* Next, try to mmap the file at a fixed address which already has
4708
     something else allocated at it.  If we can, also make sure that
4709
     we see the same garbage.  */
4710
  fd = open ("conftest.mmap", O_RDWR);
4711
  if (fd < 0)
4712
    exit (1);
4713
  data2 = (char *) malloc (2 * pagesize);
4714
  if (!data2)
4715
    exit (1);
4716
  data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1);
4717
  if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4718
		     MAP_PRIVATE | MAP_FIXED, fd, 0L))
4719
    exit (1);
4720
  for (i = 0; i < pagesize; ++i)
4721
    if (*(data + i) != *(data2 + i))
4722
      exit (1);
4723
4724
  /* Finally, make sure that changes to the mapped area do not
4725
     percolate back to the file as seen by read().  (This is a bug on
4726
     some variants of i386 svr4.0.)  */
4727
  for (i = 0; i < pagesize; ++i)
4728
    *(data2 + i) = *(data2 + i) + 1;
4729
  data3 = (char *) malloc (pagesize);
4730
  if (!data3)
4731
    exit (1);
4732
  if (read (fd, data3, pagesize) != pagesize)
4733
    exit (1);
4734
  for (i = 0; i < pagesize; ++i)
4735
    if (*(data + i) != *(data3 + i))
4736
      exit (1);
4737
  close (fd);
4738
  exit (0);
4739
}
4740
_ACEOF
4741
rm -f conftest$ac_exeext
4742
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4743
  (eval $ac_link) 2>&5
4744
  ac_status=$?
4745
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4747
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4748
  (eval $ac_try) 2>&5
4749
  ac_status=$?
4750
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4751
  (exit $ac_status); }; }; then
4752
  ac_cv_func_mmap_fixed_mapped=yes
4753
else
4754
  echo "$as_me: program exited with status $ac_status" >&5
4755
echo "$as_me: failed program was:" >&5
4756
sed 's/^/| /' conftest.$ac_ext >&5
4757
4758
( exit $ac_status )
4759
ac_cv_func_mmap_fixed_mapped=no
4760
fi
4761
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4762
fi
4763
fi
4764
echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
4765
echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6
4766
if test $ac_cv_func_mmap_fixed_mapped = yes; then
4767
4768
cat >>confdefs.h <<\_ACEOF
4769
#define HAVE_MMAP 1
4770
_ACEOF
4771
4772
fi
4773
rm -f conftest.mmap
4774
4775
4776
    echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
4777
echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6
4778
if test "${ac_cv_gnu_library_2_1+set}" = set; then
4779
  echo $ECHO_N "(cached) $ECHO_C" >&6
4780
else
4781
  cat >conftest.$ac_ext <<_ACEOF
4782
/* confdefs.h.  */
4783
_ACEOF
4784
cat confdefs.h >>conftest.$ac_ext
4785
cat >>conftest.$ac_ext <<_ACEOF
4786
/* end confdefs.h.  */
4787
4788
#include <features.h>
4789
#ifdef __GNU_LIBRARY__
4790
 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
4791
  Lucky GNU user
4792
 #endif
4793
#endif
4794
4795
_ACEOF
4796
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4797
  $EGREP "Lucky GNU user" >/dev/null 2>&1; then
4798
  ac_cv_gnu_library_2_1=yes
4799
else
4800
  ac_cv_gnu_library_2_1=no
4801
fi
4802
rm -f conftest*
4803
4804
4805
4806
fi
4807
echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
4808
echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6
4809
4810
    GLIBC21="$ac_cv_gnu_library_2_1"
4811
4812
4813
4814
4815
  echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
4816
echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6
4817
if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
4818
  echo $ECHO_N "(cached) $ECHO_C" >&6
4819
else
4820
4821
      if test "$cross_compiling" = yes; then
4822
4823
          # Guess based on the CPU.
4824
          case "$host_cpu" in
4825
            alpha* | i3456786 | m68k | s390*)
4826
              gt_cv_int_divbyzero_sigfpe="guessing yes";;
4827
            *)
4828
              gt_cv_int_divbyzero_sigfpe="guessing no";;
4829
          esac
4830
4831
else
4832
  cat >conftest.$ac_ext <<_ACEOF
4833
/* confdefs.h.  */
4834
_ACEOF
4835
cat confdefs.h >>conftest.$ac_ext
4836
cat >>conftest.$ac_ext <<_ACEOF
4837
/* end confdefs.h.  */
4838
4839
#include <stdlib.h>
4840
#include <signal.h>
4841
4842
static void
4843
#ifdef __cplusplus
4844
sigfpe_handler (int sig)
4845
#else
4846
sigfpe_handler (sig) int sig;
4847
#endif
4848
{
4849
  /* Exit with code 0 if SIGFPE, with code 1 if any other signal.  */
4850
  exit (sig != SIGFPE);
4851
}
4852
4853
int x = 1;
4854
int y = 0;
4855
int z;
4856
int nan;
4857
4858
int main ()
4859
{
4860
  signal (SIGFPE, sigfpe_handler);
4861
/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP.  */
4862
#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
4863
  signal (SIGTRAP, sigfpe_handler);
4864
#endif
4865
/* Linux/SPARC yields signal SIGILL.  */
4866
#if defined (__sparc__) && defined (__linux__)
4867
  signal (SIGILL, sigfpe_handler);
4868
#endif
4869
4870
  z = x / y;
4871
  nan = y / y;
4872
  exit (1);
4873
}
4874
4875
_ACEOF
4876
rm -f conftest$ac_exeext
4877
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4878
  (eval $ac_link) 2>&5
4879
  ac_status=$?
4880
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4881
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4882
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4883
  (eval $ac_try) 2>&5
4884
  ac_status=$?
4885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886
  (exit $ac_status); }; }; then
4887
  gt_cv_int_divbyzero_sigfpe=yes
4888
else
4889
  echo "$as_me: program exited with status $ac_status" >&5
4890
echo "$as_me: failed program was:" >&5
4891
sed 's/^/| /' conftest.$ac_ext >&5
4892
4893
( exit $ac_status )
4894
gt_cv_int_divbyzero_sigfpe=no
4895
fi
4896
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4897
fi
4898
4899
fi
4900
echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
4901
echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6
4902
  case "$gt_cv_int_divbyzero_sigfpe" in
4903
    *yes) value=1;;
4904
    *) value=0;;
4905
  esac
4906
4907
cat >>confdefs.h <<_ACEOF
4908
#define INTDIV0_RAISES_SIGFPE $value
4909
_ACEOF
4910
4911
4912
4913
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
4914
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
4915
if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
4916
  echo $ECHO_N "(cached) $ECHO_C" >&6
4917
else
4918
  cat >conftest.$ac_ext <<_ACEOF
4919
/* confdefs.h.  */
4920
_ACEOF
4921
cat confdefs.h >>conftest.$ac_ext
4922
cat >>conftest.$ac_ext <<_ACEOF
4923
/* end confdefs.h.  */
4924
#include <sys/types.h>
4925
#include <inttypes.h>
4926
int
4927
main ()
4928
{
4929
uintmax_t i = (uintmax_t) -1;
4930
  ;
4931
  return 0;
4932
}
4933
_ACEOF
4934
rm -f conftest.$ac_objext
4935
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936
  (eval $ac_compile) 2>conftest.er1
4937
  ac_status=$?
4938
  grep -v '^ *+' conftest.er1 >conftest.err
4939
  rm -f conftest.er1
4940
  cat conftest.err >&5
4941
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942
  (exit $ac_status); } &&
4943
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
4944
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4945
  (eval $ac_try) 2>&5
4946
  ac_status=$?
4947
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4948
  (exit $ac_status); }; } &&
4949
	 { ac_try='test -s conftest.$ac_objext'
4950
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4951
  (eval $ac_try) 2>&5
4952
  ac_status=$?
4953
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4954
  (exit $ac_status); }; }; then
4955
  jm_ac_cv_header_inttypes_h=yes
4956
else
4957
  echo "$as_me: failed program was:" >&5
4958
sed 's/^/| /' conftest.$ac_ext >&5
4959
4960
jm_ac_cv_header_inttypes_h=no
4961
fi
4962
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4963
fi
4964
echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
4965
echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6
4966
  if test $jm_ac_cv_header_inttypes_h = yes; then
4967
4968
cat >>confdefs.h <<_ACEOF
4969
#define HAVE_INTTYPES_H_WITH_UINTMAX 1
4970
_ACEOF
4971
4972
  fi
4973
4974
4975
  echo "$as_me:$LINENO: checking for stdint.h" >&5
4976
echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6
4977
if test "${jm_ac_cv_header_stdint_h+set}" = set; then
4978
  echo $ECHO_N "(cached) $ECHO_C" >&6
4979
else
4980
  cat >conftest.$ac_ext <<_ACEOF
4981
/* confdefs.h.  */
4982
_ACEOF
4983
cat confdefs.h >>conftest.$ac_ext
4984
cat >>conftest.$ac_ext <<_ACEOF
4985
/* end confdefs.h.  */
4986
#include <sys/types.h>
4987
#include <stdint.h>
4988
int
4989
main ()
4990
{
4991
uintmax_t i = (uintmax_t) -1;
4992
  ;
4993
  return 0;
4994
}
4995
_ACEOF
4996
rm -f conftest.$ac_objext
4997
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4998
  (eval $ac_compile) 2>conftest.er1
4999
  ac_status=$?
5000
  grep -v '^ *+' conftest.er1 >conftest.err
5001
  rm -f conftest.er1
5002
  cat conftest.err >&5
5003
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004
  (exit $ac_status); } &&
5005
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5006
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007
  (eval $ac_try) 2>&5
5008
  ac_status=$?
5009
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5010
  (exit $ac_status); }; } &&
5011
	 { ac_try='test -s conftest.$ac_objext'
5012
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013
  (eval $ac_try) 2>&5
5014
  ac_status=$?
5015
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016
  (exit $ac_status); }; }; then
5017
  jm_ac_cv_header_stdint_h=yes
5018
else
5019
  echo "$as_me: failed program was:" >&5
5020
sed 's/^/| /' conftest.$ac_ext >&5
5021
5022
jm_ac_cv_header_stdint_h=no
5023
fi
5024
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5025
fi
5026
echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5027
echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6
5028
  if test $jm_ac_cv_header_stdint_h = yes; then
5029
5030
cat >>confdefs.h <<_ACEOF
5031
#define HAVE_STDINT_H_WITH_UINTMAX 1
5032
_ACEOF
5033
5034
  fi
5035
5036
5037
  echo "$as_me:$LINENO: checking for unsigned long long" >&5
5038
echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6
5039
if test "${ac_cv_type_unsigned_long_long+set}" = set; then
5040
  echo $ECHO_N "(cached) $ECHO_C" >&6
5041
else
5042
  cat >conftest.$ac_ext <<_ACEOF
5043
/* confdefs.h.  */
5044
_ACEOF
5045
cat confdefs.h >>conftest.$ac_ext
5046
cat >>conftest.$ac_ext <<_ACEOF
5047
/* end confdefs.h.  */
5048
unsigned long long ull = 1ULL; int i = 63;
5049
int
5050
main ()
5051
{
5052
unsigned long long ullmax = (unsigned long long) -1;
5053
     return ull << i | ull >> i | ullmax / ull | ullmax % ull;
5054
  ;
5055
  return 0;
5056
}
5057
_ACEOF
5058
rm -f conftest.$ac_objext conftest$ac_exeext
5059
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5060
  (eval $ac_link) 2>conftest.er1
5061
  ac_status=$?
5062
  grep -v '^ *+' conftest.er1 >conftest.err
5063
  rm -f conftest.er1
5064
  cat conftest.err >&5
5065
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066
  (exit $ac_status); } &&
5067
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5068
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5069
  (eval $ac_try) 2>&5
5070
  ac_status=$?
5071
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5072
  (exit $ac_status); }; } &&
5073
	 { ac_try='test -s conftest$ac_exeext'
5074
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5075
  (eval $ac_try) 2>&5
5076
  ac_status=$?
5077
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
  (exit $ac_status); }; }; then
5079
  ac_cv_type_unsigned_long_long=yes
5080
else
5081
  echo "$as_me: failed program was:" >&5
5082
sed 's/^/| /' conftest.$ac_ext >&5
5083
5084
ac_cv_type_unsigned_long_long=no
5085
fi
5086
rm -f conftest.err conftest.$ac_objext \
5087
      conftest$ac_exeext conftest.$ac_ext
5088
fi
5089
echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
5090
echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6
5091
  if test $ac_cv_type_unsigned_long_long = yes; then
5092
5093
cat >>confdefs.h <<\_ACEOF
5094
#define HAVE_UNSIGNED_LONG_LONG 1
5095
_ACEOF
5096
5097
  fi
5098
5099
5100
5101
5102
  if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
5103
5104
    test $ac_cv_type_unsigned_long_long = yes \
5105
      && ac_type='unsigned long long' \
5106
      || ac_type='unsigned long'
5107
5108
cat >>confdefs.h <<_ACEOF
5109
#define uintmax_t $ac_type
5110
_ACEOF
5111
5112
  else
5113
5114
cat >>confdefs.h <<\_ACEOF
5115
#define HAVE_UINTMAX_T 1
5116
_ACEOF
5117
5118
  fi
5119
5120
5121
  echo "$as_me:$LINENO: checking for inttypes.h" >&5
5122
echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6
5123
if test "${gt_cv_header_inttypes_h+set}" = set; then
5124
  echo $ECHO_N "(cached) $ECHO_C" >&6
5125
else
5126
5127
    cat >conftest.$ac_ext <<_ACEOF
5128
/* confdefs.h.  */
5129
_ACEOF
5130
cat confdefs.h >>conftest.$ac_ext
5131
cat >>conftest.$ac_ext <<_ACEOF
5132
/* end confdefs.h.  */
5133
#include <sys/types.h>
5134
#include <inttypes.h>
5135
int
5136
main ()
5137
{
5138
5139
  ;
5140
  return 0;
5141
}
5142
_ACEOF
5143
rm -f conftest.$ac_objext
5144
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145
  (eval $ac_compile) 2>conftest.er1
5146
  ac_status=$?
5147
  grep -v '^ *+' conftest.er1 >conftest.err
5148
  rm -f conftest.er1
5149
  cat conftest.err >&5
5150
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151
  (exit $ac_status); } &&
5152
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5153
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5154
  (eval $ac_try) 2>&5
5155
  ac_status=$?
5156
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157
  (exit $ac_status); }; } &&
5158
	 { ac_try='test -s conftest.$ac_objext'
5159
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5160
  (eval $ac_try) 2>&5
5161
  ac_status=$?
5162
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5163
  (exit $ac_status); }; }; then
5164
  gt_cv_header_inttypes_h=yes
5165
else
5166
  echo "$as_me: failed program was:" >&5
5167
sed 's/^/| /' conftest.$ac_ext >&5
5168
5169
gt_cv_header_inttypes_h=no
5170
fi
5171
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5172
5173
fi
5174
echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
5175
echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6
5176
  if test $gt_cv_header_inttypes_h = yes; then
5177
5178
cat >>confdefs.h <<_ACEOF
5179
#define HAVE_INTTYPES_H 1
5180
_ACEOF
5181
5182
  fi
5183
5184
5185
5186
  if test $gt_cv_header_inttypes_h = yes; then
5187
    echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
5188
echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6
5189
if test "${gt_cv_inttypes_pri_broken+set}" = set; then
5190
  echo $ECHO_N "(cached) $ECHO_C" >&6
5191
else
5192
5193
        cat >conftest.$ac_ext <<_ACEOF
5194
/* confdefs.h.  */
5195
_ACEOF
5196
cat confdefs.h >>conftest.$ac_ext
5197
cat >>conftest.$ac_ext <<_ACEOF
5198
/* end confdefs.h.  */
5199
#include <inttypes.h>
5200
#ifdef PRId32
5201
char *p = PRId32;
5202
#endif
5203
5204
int
5205
main ()
5206
{
5207
5208
  ;
5209
  return 0;
5210
}
5211
_ACEOF
5212
rm -f conftest.$ac_objext
5213
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5214
  (eval $ac_compile) 2>conftest.er1
5215
  ac_status=$?
5216
  grep -v '^ *+' conftest.er1 >conftest.err
5217
  rm -f conftest.er1
5218
  cat conftest.err >&5
5219
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5220
  (exit $ac_status); } &&
5221
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5222
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5223
  (eval $ac_try) 2>&5
5224
  ac_status=$?
5225
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5226
  (exit $ac_status); }; } &&
5227
	 { ac_try='test -s conftest.$ac_objext'
5228
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5229
  (eval $ac_try) 2>&5
5230
  ac_status=$?
5231
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5232
  (exit $ac_status); }; }; then
5233
  gt_cv_inttypes_pri_broken=no
5234
else
5235
  echo "$as_me: failed program was:" >&5
5236
sed 's/^/| /' conftest.$ac_ext >&5
5237
5238
gt_cv_inttypes_pri_broken=yes
5239
fi
5240
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5241
5242
fi
5243
echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
5244
echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6
5245
  fi
5246
  if test "$gt_cv_inttypes_pri_broken" = yes; then
5247
5248
cat >>confdefs.h <<_ACEOF
5249
#define PRI_MACROS_BROKEN 1
5250
_ACEOF
5251
5252
  fi
5253
5254
5255
      if test "X$prefix" = "XNONE"; then
5256
    acl_final_prefix="$ac_default_prefix"
5257
  else
5258
    acl_final_prefix="$prefix"
5259
  fi
5260
  if test "X$exec_prefix" = "XNONE"; then
5261
    acl_final_exec_prefix='${prefix}'
5262
  else
5263
    acl_final_exec_prefix="$exec_prefix"
5264
  fi
5265
  acl_save_prefix="$prefix"
5266
  prefix="$acl_final_prefix"
5267
  eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5268
  prefix="$acl_save_prefix"
5269
5270
5271
# Check whether --with-gnu-ld or --without-gnu-ld was given.
5272
if test "${with_gnu_ld+set}" = set; then
5273
  withval="$with_gnu_ld"
5274
  test "$withval" = no || with_gnu_ld=yes
5275
else
5276
  with_gnu_ld=no
5277
fi;
5278
# Prepare PATH_SEPARATOR.
5279
# The user is always right.
5280
if test "${PATH_SEPARATOR+set}" != set; then
5281
  echo "#! /bin/sh" >conf$$.sh
5282
  echo  "exit 0"   >>conf$$.sh
5283
  chmod +x conf$$.sh
5284
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5285
    PATH_SEPARATOR=';'
5286
  else
5287
    PATH_SEPARATOR=:
5288
  fi
5289
  rm -f conf$$.sh
5290
fi
5291
ac_prog=ld
5292
if test "$GCC" = yes; then
5293
  # Check if gcc -print-prog-name=ld gives a path.
5294
  echo "$as_me:$LINENO: checking for ld used by GCC" >&5
5295
echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6
5296
  case $host in
5297
  *-*-mingw*)
5298
    # gcc leaves a trailing carriage return which upsets mingw
5299
    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5300
  *)
5301
    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5302
  esac
5303
  case $ac_prog in
5304
    # Accept absolute paths.
5305
    [\\/]* | [A-Za-z]:[\\/]*)
5306
      re_direlt='/[^/][^/]*/\.\./'
5307
      # Canonicalize the path of ld
5308
      ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5309
      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5310
	ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5311
      done
5312
      test -z "$LD" && LD="$ac_prog"
5313
      ;;
5314
  "")
5315
    # If it fails, then pretend we aren't using GCC.
5316
    ac_prog=ld
5317
    ;;
5318
  *)
5319
    # If it is relative, then search for the first ld in PATH.
5320
    with_gnu_ld=unknown
5321
    ;;
5322
  esac
5323
elif test "$with_gnu_ld" = yes; then
5324
  echo "$as_me:$LINENO: checking for GNU ld" >&5
5325
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5326
else
5327
  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5328
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5329
fi
5330
if test "${acl_cv_path_LD+set}" = set; then
5331
  echo $ECHO_N "(cached) $ECHO_C" >&6
5332
else
5333
  if test -z "$LD"; then
5334
  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5335
  for ac_dir in $PATH; do
5336
    test -z "$ac_dir" && ac_dir=.
5337
    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5338
      acl_cv_path_LD="$ac_dir/$ac_prog"
5339
      # Check to see if the program is GNU ld.  I'd rather use --version,
5340
      # but apparently some GNU ld's only accept -v.
5341
      # Break only if it was the GNU/non-GNU ld that we prefer.
5342
      case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5343
      *GNU* | *'with BFD'*)
5344
	test "$with_gnu_ld" != no && break ;;
5345
      *)
5346
	test "$with_gnu_ld" != yes && break ;;
5347
      esac
5348
    fi
5349
  done
5350
  IFS="$ac_save_ifs"
5351
else
5352
  acl_cv_path_LD="$LD" # Let the user override the test with a path.
5353
fi
5354
fi
5355
5356
LD="$acl_cv_path_LD"
5357
if test -n "$LD"; then
5358
  echo "$as_me:$LINENO: result: $LD" >&5
5359
echo "${ECHO_T}$LD" >&6
5360
else
5361
  echo "$as_me:$LINENO: result: no" >&5
5362
echo "${ECHO_T}no" >&6
5363
fi
5364
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5365
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5366
   { (exit 1); exit 1; }; }
5367
echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5368
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5369
if test "${acl_cv_prog_gnu_ld+set}" = set; then
5370
  echo $ECHO_N "(cached) $ECHO_C" >&6
5371
else
5372
  # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5373
case `$LD -v 2>&1 </dev/null` in
5374
*GNU* | *'with BFD'*)
5375
  acl_cv_prog_gnu_ld=yes ;;
5376
*)
5377
  acl_cv_prog_gnu_ld=no ;;
5378
esac
5379
fi
5380
echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
5381
echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6
5382
with_gnu_ld=$acl_cv_prog_gnu_ld
5383
5384
5385
5386
                                                echo "$as_me:$LINENO: checking for shared library run path origin" >&5
5387
echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6
5388
if test "${acl_cv_rpath+set}" = set; then
5389
  echo $ECHO_N "(cached) $ECHO_C" >&6
5390
else
5391
5392
    CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5393
    ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5394
    . ./conftest.sh
5395
    rm -f ./conftest.sh
5396
    acl_cv_rpath=done
5397
5398
fi
5399
echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
5400
echo "${ECHO_T}$acl_cv_rpath" >&6
5401
  wl="$acl_cv_wl"
5402
  libext="$acl_cv_libext"
5403
  shlibext="$acl_cv_shlibext"
5404
  hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5405
  hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5406
  hardcode_direct="$acl_cv_hardcode_direct"
5407
  hardcode_minus_L="$acl_cv_hardcode_minus_L"
5408
    # Check whether --enable-rpath or --disable-rpath was given.
5409
if test "${enable_rpath+set}" = set; then
5410
  enableval="$enable_rpath"
5411
  :
5412
else
5413
  enable_rpath=yes
5414
fi;
5415
5416
5417
5418
5419
5420
5421
5422
    use_additional=yes
5423
5424
  acl_save_prefix="$prefix"
5425
  prefix="$acl_final_prefix"
5426
  acl_save_exec_prefix="$exec_prefix"
5427
  exec_prefix="$acl_final_exec_prefix"
5428
5429
    eval additional_includedir=\"$includedir\"
5430
    eval additional_libdir=\"$libdir\"
5431
5432
  exec_prefix="$acl_save_exec_prefix"
5433
  prefix="$acl_save_prefix"
5434
5435
5436
# Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
5437
if test "${with_libiconv_prefix+set}" = set; then
5438
  withval="$with_libiconv_prefix"
5439
5440
    if test "X$withval" = "Xno"; then
5441
      use_additional=no
5442
    else
5443
      if test "X$withval" = "X"; then
5444
5445
  acl_save_prefix="$prefix"
5446
  prefix="$acl_final_prefix"
5447
  acl_save_exec_prefix="$exec_prefix"
5448
  exec_prefix="$acl_final_exec_prefix"
5449
5450
          eval additional_includedir=\"$includedir\"
5451
          eval additional_libdir=\"$libdir\"
5452
5453
  exec_prefix="$acl_save_exec_prefix"
5454
  prefix="$acl_save_prefix"
5455
5456
      else
5457
        additional_includedir="$withval/include"
5458
        additional_libdir="$withval/lib"
5459
      fi
5460
    fi
5461
5462
fi;
5463
      LIBICONV=
5464
  LTLIBICONV=
5465
  INCICONV=
5466
  rpathdirs=
5467
  ltrpathdirs=
5468
  names_already_handled=
5469
  names_next_round='iconv '
5470
  while test -n "$names_next_round"; do
5471
    names_this_round="$names_next_round"
5472
    names_next_round=
5473
    for name in $names_this_round; do
5474
      already_handled=
5475
      for n in $names_already_handled; do
5476
        if test "$n" = "$name"; then
5477
          already_handled=yes
5478
          break
5479
        fi
5480
      done
5481
      if test -z "$already_handled"; then
5482
        names_already_handled="$names_already_handled $name"
5483
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5484
        eval value=\"\$HAVE_LIB$uppername\"
5485
        if test -n "$value"; then
5486
          if test "$value" = yes; then
5487
            eval value=\"\$LIB$uppername\"
5488
            test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5489
            eval value=\"\$LTLIB$uppername\"
5490
            test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5491
          else
5492
                                    :
5493
          fi
5494
        else
5495
                              found_dir=
5496
          found_la=
5497
          found_so=
5498
          found_a=
5499
          if test $use_additional = yes; then
5500
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
5501
              found_dir="$additional_libdir"
5502
              found_so="$additional_libdir/lib$name.$shlibext"
5503
              if test -f "$additional_libdir/lib$name.la"; then
5504
                found_la="$additional_libdir/lib$name.la"
5505
              fi
5506
            else
5507
              if test -f "$additional_libdir/lib$name.$libext"; then
5508
                found_dir="$additional_libdir"
5509
                found_a="$additional_libdir/lib$name.$libext"
5510
                if test -f "$additional_libdir/lib$name.la"; then
5511
                  found_la="$additional_libdir/lib$name.la"
5512
                fi
5513
              fi
5514
            fi
5515
          fi
5516
          if test "X$found_dir" = "X"; then
5517
            for x in $LDFLAGS $LTLIBICONV; do
5518
5519
  acl_save_prefix="$prefix"
5520
  prefix="$acl_final_prefix"
5521
  acl_save_exec_prefix="$exec_prefix"
5522
  exec_prefix="$acl_final_exec_prefix"
5523
  eval x=\"$x\"
5524
  exec_prefix="$acl_save_exec_prefix"
5525
  prefix="$acl_save_prefix"
5526
5527
              case "$x" in
5528
                -L*)
5529
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
5530
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
5531
                    found_dir="$dir"
5532
                    found_so="$dir/lib$name.$shlibext"
5533
                    if test -f "$dir/lib$name.la"; then
5534
                      found_la="$dir/lib$name.la"
5535
                    fi
5536
                  else
5537
                    if test -f "$dir/lib$name.$libext"; then
5538
                      found_dir="$dir"
5539
                      found_a="$dir/lib$name.$libext"
5540
                      if test -f "$dir/lib$name.la"; then
5541
                        found_la="$dir/lib$name.la"
5542
                      fi
5543
                    fi
5544
                  fi
5545
                  ;;
5546
              esac
5547
              if test "X$found_dir" != "X"; then
5548
                break
5549
              fi
5550
            done
5551
          fi
5552
          if test "X$found_dir" != "X"; then
5553
                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5554
            if test "X$found_so" != "X"; then
5555
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
5556
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5557
              else
5558
                                                                                haveit=
5559
                for x in $ltrpathdirs; do
5560
                  if test "X$x" = "X$found_dir"; then
5561
                    haveit=yes
5562
                    break
5563
                  fi
5564
                done
5565
                if test -z "$haveit"; then
5566
                  ltrpathdirs="$ltrpathdirs $found_dir"
5567
                fi
5568
                                if test "$hardcode_direct" = yes; then
5569
                                                      LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5570
                else
5571
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
5572
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5573
                                                            haveit=
5574
                    for x in $rpathdirs; do
5575
                      if test "X$x" = "X$found_dir"; then
5576
                        haveit=yes
5577
                        break
5578
                      fi
5579
                    done
5580
                    if test -z "$haveit"; then
5581
                      rpathdirs="$rpathdirs $found_dir"
5582
                    fi
5583
                  else
5584
                                                                                haveit=
5585
                    for x in $LDFLAGS $LIBICONV; do
5586
5587
  acl_save_prefix="$prefix"
5588
  prefix="$acl_final_prefix"
5589
  acl_save_exec_prefix="$exec_prefix"
5590
  exec_prefix="$acl_final_exec_prefix"
5591
  eval x=\"$x\"
5592
  exec_prefix="$acl_save_exec_prefix"
5593
  prefix="$acl_save_prefix"
5594
5595
                      if test "X$x" = "X-L$found_dir"; then
5596
                        haveit=yes
5597
                        break
5598
                      fi
5599
                    done
5600
                    if test -z "$haveit"; then
5601
                      LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5602
                    fi
5603
                    if test "$hardcode_minus_L" != no; then
5604
                                                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5605
                    else
5606
                                                                                                                                                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5607
                    fi
5608
                  fi
5609
                fi
5610
              fi
5611
            else
5612
              if test "X$found_a" != "X"; then
5613
                                LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5614
              else
5615
                                                LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5616
              fi
5617
            fi
5618
                        additional_includedir=
5619
            case "$found_dir" in
5620
              */lib | */lib/)
5621
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
5622
                additional_includedir="$basedir/include"
5623
                ;;
5624
            esac
5625
            if test "X$additional_includedir" != "X"; then
5626
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
5627
                haveit=
5628
                if test "X$additional_includedir" = "X/usr/local/include"; then
5629
                  if test -n "$GCC"; then
5630
                    case $host_os in
5631
                      linux*) haveit=yes;;
5632
                    esac
5633
                  fi
5634
                fi
5635
                if test -z "$haveit"; then
5636
                  for x in $CPPFLAGS $INCICONV; do
5637
5638
  acl_save_prefix="$prefix"
5639
  prefix="$acl_final_prefix"
5640
  acl_save_exec_prefix="$exec_prefix"
5641
  exec_prefix="$acl_final_exec_prefix"
5642
  eval x=\"$x\"
5643
  exec_prefix="$acl_save_exec_prefix"
5644
  prefix="$acl_save_prefix"
5645
5646
                    if test "X$x" = "X-I$additional_includedir"; then
5647
                      haveit=yes
5648
                      break
5649
                    fi
5650
                  done
5651
                  if test -z "$haveit"; then
5652
                    if test -d "$additional_includedir"; then
5653
                                            INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5654
                    fi
5655
                  fi
5656
                fi
5657
              fi
5658
            fi
5659
                        if test -n "$found_la"; then
5660
                                                        save_libdir="$libdir"
5661
              case "$found_la" in
5662
                */* | *\\*) . "$found_la" ;;
5663
                *) . "./$found_la" ;;
5664
              esac
5665
              libdir="$save_libdir"
5666
                            for dep in $dependency_libs; do
5667
                case "$dep" in
5668
                  -L*)
5669
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5670
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
5671
                      haveit=
5672
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
5673
                        if test -n "$GCC"; then
5674
                          case $host_os in
5675
                            linux*) haveit=yes;;
5676
                          esac
5677
                        fi
5678
                      fi
5679
                      if test -z "$haveit"; then
5680
                        haveit=
5681
                        for x in $LDFLAGS $LIBICONV; do
5682
5683
  acl_save_prefix="$prefix"
5684
  prefix="$acl_final_prefix"
5685
  acl_save_exec_prefix="$exec_prefix"
5686
  exec_prefix="$acl_final_exec_prefix"
5687
  eval x=\"$x\"
5688
  exec_prefix="$acl_save_exec_prefix"
5689
  prefix="$acl_save_prefix"
5690
5691
                          if test "X$x" = "X-L$additional_libdir"; then
5692
                            haveit=yes
5693
                            break
5694
                          fi
5695
                        done
5696
                        if test -z "$haveit"; then
5697
                          if test -d "$additional_libdir"; then
5698
                                                        LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5699
                          fi
5700
                        fi
5701
                        haveit=
5702
                        for x in $LDFLAGS $LTLIBICONV; do
5703
5704
  acl_save_prefix="$prefix"
5705
  prefix="$acl_final_prefix"
5706
  acl_save_exec_prefix="$exec_prefix"
5707
  exec_prefix="$acl_final_exec_prefix"
5708
  eval x=\"$x\"
5709
  exec_prefix="$acl_save_exec_prefix"
5710
  prefix="$acl_save_prefix"
5711
5712
                          if test "X$x" = "X-L$additional_libdir"; then
5713
                            haveit=yes
5714
                            break
5715
                          fi
5716
                        done
5717
                        if test -z "$haveit"; then
5718
                          if test -d "$additional_libdir"; then
5719
                                                        LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5720
                          fi
5721
                        fi
5722
                      fi
5723
                    fi
5724
                    ;;
5725
                  -R*)
5726
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
5727
                    if test "$enable_rpath" != no; then
5728
                                                                  haveit=
5729
                      for x in $rpathdirs; do
5730
                        if test "X$x" = "X$dir"; then
5731
                          haveit=yes
5732
                          break
5733
                        fi
5734
                      done
5735
                      if test -z "$haveit"; then
5736
                        rpathdirs="$rpathdirs $dir"
5737
                      fi
5738
                                                                  haveit=
5739
                      for x in $ltrpathdirs; do
5740
                        if test "X$x" = "X$dir"; then
5741
                          haveit=yes
5742
                          break
5743
                        fi
5744
                      done
5745
                      if test -z "$haveit"; then
5746
                        ltrpathdirs="$ltrpathdirs $dir"
5747
                      fi
5748
                    fi
5749
                    ;;
5750
                  -l*)
5751
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5752
                    ;;
5753
                  *.la)
5754
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5755
                    ;;
5756
                  *)
5757
                                        LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5758
                    LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5759
                    ;;
5760
                esac
5761
              done
5762
            fi
5763
          else
5764
                                                            LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5765
            LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5766
          fi
5767
        fi
5768
      fi
5769
    done
5770
  done
5771
  if test "X$rpathdirs" != "X"; then
5772
    if test -n "$hardcode_libdir_separator"; then
5773
                        alldirs=
5774
      for found_dir in $rpathdirs; do
5775
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
5776
      done
5777
            acl_save_libdir="$libdir"
5778
      libdir="$alldirs"
5779
      eval flag=\"$hardcode_libdir_flag_spec\"
5780
      libdir="$acl_save_libdir"
5781
      LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5782
    else
5783
            for found_dir in $rpathdirs; do
5784
        acl_save_libdir="$libdir"
5785
        libdir="$found_dir"
5786
        eval flag=\"$hardcode_libdir_flag_spec\"
5787
        libdir="$acl_save_libdir"
5788
        LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5789
      done
5790
    fi
5791
  fi
5792
  if test "X$ltrpathdirs" != "X"; then
5793
            for found_dir in $ltrpathdirs; do
5794
      LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
5795
    done
5796
  fi
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
5812
stdlib.h string.h unistd.h sys/param.h
5813
do
5814
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5815
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5816
  echo "$as_me:$LINENO: checking for $ac_header" >&5
5817
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5818
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5819
  echo $ECHO_N "(cached) $ECHO_C" >&6
5820
fi
5821
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5822
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5823
else
5824
  # Is the header compilable?
5825
echo "$as_me:$LINENO: checking $ac_header usability" >&5
5826
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5827
cat >conftest.$ac_ext <<_ACEOF
5828
/* confdefs.h.  */
5829
_ACEOF
5830
cat confdefs.h >>conftest.$ac_ext
5831
cat >>conftest.$ac_ext <<_ACEOF
5832
/* end confdefs.h.  */
5833
$ac_includes_default
5834
#include <$ac_header>
5835
_ACEOF
5836
rm -f conftest.$ac_objext
5837
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5838
  (eval $ac_compile) 2>conftest.er1
5839
  ac_status=$?
5840
  grep -v '^ *+' conftest.er1 >conftest.err
5841
  rm -f conftest.er1
5842
  cat conftest.err >&5
5843
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844
  (exit $ac_status); } &&
5845
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
5846
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5847
  (eval $ac_try) 2>&5
5848
  ac_status=$?
5849
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5850
  (exit $ac_status); }; } &&
5851
	 { ac_try='test -s conftest.$ac_objext'
5852
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5853
  (eval $ac_try) 2>&5
5854
  ac_status=$?
5855
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856
  (exit $ac_status); }; }; then
5857
  ac_header_compiler=yes
5858
else
5859
  echo "$as_me: failed program was:" >&5
5860
sed 's/^/| /' conftest.$ac_ext >&5
5861
5862
ac_header_compiler=no
5863
fi
5864
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5865
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5866
echo "${ECHO_T}$ac_header_compiler" >&6
5867
5868
# Is the header present?
5869
echo "$as_me:$LINENO: checking $ac_header presence" >&5
5870
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5871
cat >conftest.$ac_ext <<_ACEOF
5872
/* confdefs.h.  */
5873
_ACEOF
5874
cat confdefs.h >>conftest.$ac_ext
5875
cat >>conftest.$ac_ext <<_ACEOF
5876
/* end confdefs.h.  */
5877
#include <$ac_header>
5878
_ACEOF
5879
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5880
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5881
  ac_status=$?
5882
  grep -v '^ *+' conftest.er1 >conftest.err
5883
  rm -f conftest.er1
5884
  cat conftest.err >&5
5885
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5886
  (exit $ac_status); } >/dev/null; then
5887
  if test -s conftest.err; then
5888
    ac_cpp_err=$ac_c_preproc_warn_flag
5889
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5890
  else
5891
    ac_cpp_err=
5892
  fi
5893
else
5894
  ac_cpp_err=yes
5895
fi
5896
if test -z "$ac_cpp_err"; then
5897
  ac_header_preproc=yes
5898
else
5899
  echo "$as_me: failed program was:" >&5
5900
sed 's/^/| /' conftest.$ac_ext >&5
5901
5902
  ac_header_preproc=no
5903
fi
5904
rm -f conftest.err conftest.$ac_ext
5905
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5906
echo "${ECHO_T}$ac_header_preproc" >&6
5907
5908
# So?  What about this header?
5909
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5910
  yes:no: )
5911
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5912
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5913
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5914
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5915
    ac_header_preproc=yes
5916
    ;;
5917
  no:yes:* )
5918
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5919
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5920
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5921
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5922
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5923
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5924
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5925
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5926
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5927
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5928
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5929
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5930
    (
5931
      cat <<\_ASBOX
5932
## ---------------------------------- ##
5933
## Report this to vandrove@vc.cvut.cz ##
5934
## ---------------------------------- ##
5935
_ASBOX
5936
    ) |
5937
      sed "s/^/$as_me: WARNING:     /" >&2
5938
    ;;
5939
esac
5940
echo "$as_me:$LINENO: checking for $ac_header" >&5
5941
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5942
if eval "test \"\${$as_ac_Header+set}\" = set"; then
5943
  echo $ECHO_N "(cached) $ECHO_C" >&6
5944
else
5945
  eval "$as_ac_Header=\$ac_header_preproc"
5946
fi
5947
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5948
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5949
5950
fi
5951
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5952
  cat >>confdefs.h <<_ACEOF
5953
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5954
_ACEOF
5955
5956
fi
5957
5958
done
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \
5982
geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \
5983
strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next
5984
do
5985
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5986
echo "$as_me:$LINENO: checking for $ac_func" >&5
5987
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5988
if eval "test \"\${$as_ac_var+set}\" = set"; then
5989
  echo $ECHO_N "(cached) $ECHO_C" >&6
5990
else
5991
  cat >conftest.$ac_ext <<_ACEOF
5992
/* confdefs.h.  */
5993
_ACEOF
5994
cat confdefs.h >>conftest.$ac_ext
5995
cat >>conftest.$ac_ext <<_ACEOF
5996
/* end confdefs.h.  */
5997
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5998
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
5999
#define $ac_func innocuous_$ac_func
6000
6001
/* System header to define __stub macros and hopefully few prototypes,
6002
    which can conflict with char $ac_func (); below.
6003
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004
    <limits.h> exists even on freestanding compilers.  */
6005
6006
#ifdef __STDC__
6007
# include <limits.h>
6008
#else
6009
# include <assert.h>
6010
#endif
6011
6012
#undef $ac_func
6013
6014
/* Override any gcc2 internal prototype to avoid an error.  */
6015
#ifdef __cplusplus
6016
extern "C"
6017
{
6018
#endif
6019
/* We use char because int might match the return type of a gcc2
6020
   builtin and then its argument prototype would still apply.  */
6021
char $ac_func ();
6022
/* The GNU C library defines this for functions which it implements
6023
    to always fail with ENOSYS.  Some functions are actually named
6024
    something starting with __ and the normal name is an alias.  */
6025
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6026
choke me
6027
#else
6028
char (*f) () = $ac_func;
6029
#endif
6030
#ifdef __cplusplus
6031
}
6032
#endif
6033
6034
int
6035
main ()
6036
{
6037
return f != $ac_func;
6038
  ;
6039
  return 0;
6040
}
6041
_ACEOF
6042
rm -f conftest.$ac_objext conftest$ac_exeext
6043
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6044
  (eval $ac_link) 2>conftest.er1
6045
  ac_status=$?
6046
  grep -v '^ *+' conftest.er1 >conftest.err
6047
  rm -f conftest.er1
6048
  cat conftest.err >&5
6049
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6050
  (exit $ac_status); } &&
6051
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6052
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6053
  (eval $ac_try) 2>&5
6054
  ac_status=$?
6055
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6056
  (exit $ac_status); }; } &&
6057
	 { ac_try='test -s conftest$ac_exeext'
6058
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6059
  (eval $ac_try) 2>&5
6060
  ac_status=$?
6061
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6062
  (exit $ac_status); }; }; then
6063
  eval "$as_ac_var=yes"
6064
else
6065
  echo "$as_me: failed program was:" >&5
6066
sed 's/^/| /' conftest.$ac_ext >&5
6067
6068
eval "$as_ac_var=no"
6069
fi
6070
rm -f conftest.err conftest.$ac_objext \
6071
      conftest$ac_exeext conftest.$ac_ext
6072
fi
6073
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
6074
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6075
if test `eval echo '${'$as_ac_var'}'` = yes; then
6076
  cat >>confdefs.h <<_ACEOF
6077
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6078
_ACEOF
6079
6080
fi
6081
done
6082
6083
6084
6085
6086
6087
6088
6089
          am_save_CPPFLAGS="$CPPFLAGS"
6090
6091
  for element in $INCICONV; do
6092
    haveit=
6093
    for x in $CPPFLAGS; do
6094
6095
  acl_save_prefix="$prefix"
6096
  prefix="$acl_final_prefix"
6097
  acl_save_exec_prefix="$exec_prefix"
6098
  exec_prefix="$acl_final_exec_prefix"
6099
  eval x=\"$x\"
6100
  exec_prefix="$acl_save_exec_prefix"
6101
  prefix="$acl_save_prefix"
6102
6103
      if test "X$x" = "X$element"; then
6104
        haveit=yes
6105
        break
6106
      fi
6107
    done
6108
    if test -z "$haveit"; then
6109
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6110
    fi
6111
  done
6112
6113
6114
  echo "$as_me:$LINENO: checking for iconv" >&5
6115
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
6116
if test "${am_cv_func_iconv+set}" = set; then
6117
  echo $ECHO_N "(cached) $ECHO_C" >&6
6118
else
6119
6120
    am_cv_func_iconv="no, consider installing GNU libiconv"
6121
    am_cv_lib_iconv=no
6122
    cat >conftest.$ac_ext <<_ACEOF
6123
/* confdefs.h.  */
6124
_ACEOF
6125
cat confdefs.h >>conftest.$ac_ext
6126
cat >>conftest.$ac_ext <<_ACEOF
6127
/* end confdefs.h.  */
6128
#include <stdlib.h>
6129
#include <iconv.h>
6130
int
6131
main ()
6132
{
6133
iconv_t cd = iconv_open("","");
6134
       iconv(cd,NULL,NULL,NULL,NULL);
6135
       iconv_close(cd);
6136
  ;
6137
  return 0;
6138
}
6139
_ACEOF
6140
rm -f conftest.$ac_objext conftest$ac_exeext
6141
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6142
  (eval $ac_link) 2>conftest.er1
6143
  ac_status=$?
6144
  grep -v '^ *+' conftest.er1 >conftest.err
6145
  rm -f conftest.er1
6146
  cat conftest.err >&5
6147
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6148
  (exit $ac_status); } &&
6149
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6150
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6151
  (eval $ac_try) 2>&5
6152
  ac_status=$?
6153
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6154
  (exit $ac_status); }; } &&
6155
	 { ac_try='test -s conftest$ac_exeext'
6156
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6157
  (eval $ac_try) 2>&5
6158
  ac_status=$?
6159
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6160
  (exit $ac_status); }; }; then
6161
  am_cv_func_iconv=yes
6162
else
6163
  echo "$as_me: failed program was:" >&5
6164
sed 's/^/| /' conftest.$ac_ext >&5
6165
6166
fi
6167
rm -f conftest.err conftest.$ac_objext \
6168
      conftest$ac_exeext conftest.$ac_ext
6169
    if test "$am_cv_func_iconv" != yes; then
6170
      am_save_LIBS="$LIBS"
6171
      LIBS="$LIBS $LIBICONV"
6172
      cat >conftest.$ac_ext <<_ACEOF
6173
/* confdefs.h.  */
6174
_ACEOF
6175
cat confdefs.h >>conftest.$ac_ext
6176
cat >>conftest.$ac_ext <<_ACEOF
6177
/* end confdefs.h.  */
6178
#include <stdlib.h>
6179
#include <iconv.h>
6180
int
6181
main ()
6182
{
6183
iconv_t cd = iconv_open("","");
6184
         iconv(cd,NULL,NULL,NULL,NULL);
6185
         iconv_close(cd);
6186
  ;
6187
  return 0;
6188
}
6189
_ACEOF
6190
rm -f conftest.$ac_objext conftest$ac_exeext
6191
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6192
  (eval $ac_link) 2>conftest.er1
6193
  ac_status=$?
6194
  grep -v '^ *+' conftest.er1 >conftest.err
6195
  rm -f conftest.er1
6196
  cat conftest.err >&5
6197
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198
  (exit $ac_status); } &&
6199
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6200
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6201
  (eval $ac_try) 2>&5
6202
  ac_status=$?
6203
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6204
  (exit $ac_status); }; } &&
6205
	 { ac_try='test -s conftest$ac_exeext'
6206
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6207
  (eval $ac_try) 2>&5
6208
  ac_status=$?
6209
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210
  (exit $ac_status); }; }; then
6211
  am_cv_lib_iconv=yes
6212
        am_cv_func_iconv=yes
6213
else
6214
  echo "$as_me: failed program was:" >&5
6215
sed 's/^/| /' conftest.$ac_ext >&5
6216
6217
fi
6218
rm -f conftest.err conftest.$ac_objext \
6219
      conftest$ac_exeext conftest.$ac_ext
6220
      LIBS="$am_save_LIBS"
6221
    fi
6222
6223
fi
6224
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
6225
echo "${ECHO_T}$am_cv_func_iconv" >&6
6226
  if test "$am_cv_func_iconv" = yes; then
6227
6228
cat >>confdefs.h <<\_ACEOF
6229
#define HAVE_ICONV 1
6230
_ACEOF
6231
6232
  fi
6233
  if test "$am_cv_lib_iconv" = yes; then
6234
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
6235
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
6236
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
6237
echo "${ECHO_T}$LIBICONV" >&6
6238
  else
6239
            CPPFLAGS="$am_save_CPPFLAGS"
6240
    LIBICONV=
6241
    LTLIBICONV=
6242
  fi
6243
6244
6245
6246
  if test "$am_cv_func_iconv" = yes; then
6247
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
6248
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
6249
    if test "${am_cv_proto_iconv+set}" = set; then
6250
  echo $ECHO_N "(cached) $ECHO_C" >&6
6251
else
6252
6253
      cat >conftest.$ac_ext <<_ACEOF
6254
/* confdefs.h.  */
6255
_ACEOF
6256
cat confdefs.h >>conftest.$ac_ext
6257
cat >>conftest.$ac_ext <<_ACEOF
6258
/* end confdefs.h.  */
6259
6260
#include <stdlib.h>
6261
#include <iconv.h>
6262
extern
6263
#ifdef __cplusplus
6264
"C"
6265
#endif
6266
#if defined(__STDC__) || defined(__cplusplus)
6267
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
6268
#else
6269
size_t iconv();
6270
#endif
6271
6272
int
6273
main ()
6274
{
6275
6276
  ;
6277
  return 0;
6278
}
6279
_ACEOF
6280
rm -f conftest.$ac_objext
6281
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6282
  (eval $ac_compile) 2>conftest.er1
6283
  ac_status=$?
6284
  grep -v '^ *+' conftest.er1 >conftest.err
6285
  rm -f conftest.er1
6286
  cat conftest.err >&5
6287
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6288
  (exit $ac_status); } &&
6289
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6290
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6291
  (eval $ac_try) 2>&5
6292
  ac_status=$?
6293
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6294
  (exit $ac_status); }; } &&
6295
	 { ac_try='test -s conftest.$ac_objext'
6296
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6297
  (eval $ac_try) 2>&5
6298
  ac_status=$?
6299
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300
  (exit $ac_status); }; }; then
6301
  am_cv_proto_iconv_arg1=""
6302
else
6303
  echo "$as_me: failed program was:" >&5
6304
sed 's/^/| /' conftest.$ac_ext >&5
6305
6306
am_cv_proto_iconv_arg1="const"
6307
fi
6308
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6309
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
6310
fi
6311
6312
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
6313
    echo "$as_me:$LINENO: result: ${ac_t:-
6314
         }$am_cv_proto_iconv" >&5
6315
echo "${ECHO_T}${ac_t:-
6316
         }$am_cv_proto_iconv" >&6
6317
6318
cat >>confdefs.h <<_ACEOF
6319
#define ICONV_CONST $am_cv_proto_iconv_arg1
6320
_ACEOF
6321
6322
  fi
6323
6324
6325
  echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
6326
echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
6327
if test "${am_cv_langinfo_codeset+set}" = set; then
6328
  echo $ECHO_N "(cached) $ECHO_C" >&6
6329
else
6330
  cat >conftest.$ac_ext <<_ACEOF
6331
/* confdefs.h.  */
6332
_ACEOF
6333
cat confdefs.h >>conftest.$ac_ext
6334
cat >>conftest.$ac_ext <<_ACEOF
6335
/* end confdefs.h.  */
6336
#include <langinfo.h>
6337
int
6338
main ()
6339
{
6340
char* cs = nl_langinfo(CODESET);
6341
  ;
6342
  return 0;
6343
}
6344
_ACEOF
6345
rm -f conftest.$ac_objext conftest$ac_exeext
6346
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6347
  (eval $ac_link) 2>conftest.er1
6348
  ac_status=$?
6349
  grep -v '^ *+' conftest.er1 >conftest.err
6350
  rm -f conftest.er1
6351
  cat conftest.err >&5
6352
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353
  (exit $ac_status); } &&
6354
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6355
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6356
  (eval $ac_try) 2>&5
6357
  ac_status=$?
6358
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359
  (exit $ac_status); }; } &&
6360
	 { ac_try='test -s conftest$ac_exeext'
6361
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362
  (eval $ac_try) 2>&5
6363
  ac_status=$?
6364
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365
  (exit $ac_status); }; }; then
6366
  am_cv_langinfo_codeset=yes
6367
else
6368
  echo "$as_me: failed program was:" >&5
6369
sed 's/^/| /' conftest.$ac_ext >&5
6370
6371
am_cv_langinfo_codeset=no
6372
fi
6373
rm -f conftest.err conftest.$ac_objext \
6374
      conftest$ac_exeext conftest.$ac_ext
6375
6376
fi
6377
echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
6378
echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
6379
  if test $am_cv_langinfo_codeset = yes; then
6380
6381
cat >>confdefs.h <<\_ACEOF
6382
#define HAVE_LANGINFO_CODESET 1
6383
_ACEOF
6384
6385
  fi
6386
6387
  if test $ac_cv_header_locale_h = yes; then
6388
6389
  echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
6390
echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6
6391
if test "${am_cv_val_LC_MESSAGES+set}" = set; then
6392
  echo $ECHO_N "(cached) $ECHO_C" >&6
6393
else
6394
  cat >conftest.$ac_ext <<_ACEOF
6395
/* confdefs.h.  */
6396
_ACEOF
6397
cat confdefs.h >>conftest.$ac_ext
6398
cat >>conftest.$ac_ext <<_ACEOF
6399
/* end confdefs.h.  */
6400
#include <locale.h>
6401
int
6402
main ()
6403
{
6404
return LC_MESSAGES
6405
  ;
6406
  return 0;
6407
}
6408
_ACEOF
6409
rm -f conftest.$ac_objext conftest$ac_exeext
6410
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6411
  (eval $ac_link) 2>conftest.er1
6412
  ac_status=$?
6413
  grep -v '^ *+' conftest.er1 >conftest.err
6414
  rm -f conftest.er1
6415
  cat conftest.err >&5
6416
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417
  (exit $ac_status); } &&
6418
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6419
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6420
  (eval $ac_try) 2>&5
6421
  ac_status=$?
6422
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6423
  (exit $ac_status); }; } &&
6424
	 { ac_try='test -s conftest$ac_exeext'
6425
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6426
  (eval $ac_try) 2>&5
6427
  ac_status=$?
6428
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429
  (exit $ac_status); }; }; then
6430
  am_cv_val_LC_MESSAGES=yes
6431
else
6432
  echo "$as_me: failed program was:" >&5
6433
sed 's/^/| /' conftest.$ac_ext >&5
6434
6435
am_cv_val_LC_MESSAGES=no
6436
fi
6437
rm -f conftest.err conftest.$ac_objext \
6438
      conftest$ac_exeext conftest.$ac_ext
6439
fi
6440
echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
6441
echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6
6442
  if test $am_cv_val_LC_MESSAGES = yes; then
6443
6444
cat >>confdefs.h <<\_ACEOF
6445
#define HAVE_LC_MESSAGES 1
6446
_ACEOF
6447
6448
  fi
6449
6450
  fi
6451
6452
                      for ac_prog in bison
6453
do
6454
  # Extract the first word of "$ac_prog", so it can be a program name with args.
6455
set dummy $ac_prog; ac_word=$2
6456
echo "$as_me:$LINENO: checking for $ac_word" >&5
6457
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6458
if test "${ac_cv_prog_INTLBISON+set}" = set; then
6459
  echo $ECHO_N "(cached) $ECHO_C" >&6
6460
else
6461
  if test -n "$INTLBISON"; then
6462
  ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
6463
else
6464
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465
for as_dir in $PATH
6466
do
6467
  IFS=$as_save_IFS
6468
  test -z "$as_dir" && as_dir=.
6469
  for ac_exec_ext in '' $ac_executable_extensions; do
6470
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6471
    ac_cv_prog_INTLBISON="$ac_prog"
6472
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6473
    break 2
6474
  fi
6475
done
6476
done
6477
6478
fi
6479
fi
6480
INTLBISON=$ac_cv_prog_INTLBISON
6481
if test -n "$INTLBISON"; then
6482
  echo "$as_me:$LINENO: result: $INTLBISON" >&5
6483
echo "${ECHO_T}$INTLBISON" >&6
6484
else
6485
  echo "$as_me:$LINENO: result: no" >&5
6486
echo "${ECHO_T}no" >&6
6487
fi
6488
6489
  test -n "$INTLBISON" && break
6490
done
6491
6492
  if test -z "$INTLBISON"; then
6493
    ac_verc_fail=yes
6494
  else
6495
        echo "$as_me:$LINENO: checking version of bison" >&5
6496
echo $ECHO_N "checking version of bison... $ECHO_C" >&6
6497
    ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
6498
    case $ac_prog_version in
6499
      '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
6500
      1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
6501
         ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
6502
      *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
6503
    esac
6504
    echo "$as_me:$LINENO: result: $ac_prog_version" >&5
6505
echo "${ECHO_T}$ac_prog_version" >&6
6506
  fi
6507
  if test $ac_verc_fail = yes; then
6508
    INTLBISON=:
6509
  fi
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
  echo "$as_me:$LINENO: checking whether NLS is requested" >&5
6526
echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6
6527
    # Check whether --enable-nls or --disable-nls was given.
6528
if test "${enable_nls+set}" = set; then
6529
  enableval="$enable_nls"
6530
  USE_NLS=$enableval
6531
else
6532
  USE_NLS=yes
6533
fi;
6534
  echo "$as_me:$LINENO: result: $USE_NLS" >&5
6535
echo "${ECHO_T}$USE_NLS" >&6
6536
6537
6538
6539
    BUILD_INCLUDED_LIBINTL=no
6540
    USE_INCLUDED_LIBINTL=no
6541
6542
  LIBINTL=
6543
  LTLIBINTL=
6544
  POSUB=
6545
6546
    if test "$USE_NLS" = "yes"; then
6547
    gt_use_preinstalled_gnugettext=no
6548
6549
      echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
6550
echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6
6551
6552
# Check whether --with-included-gettext or --without-included-gettext was given.
6553
if test "${with_included_gettext+set}" = set; then
6554
  withval="$with_included_gettext"
6555
  nls_cv_force_use_gnu_gettext=$withval
6556
else
6557
  nls_cv_force_use_gnu_gettext=no
6558
fi;
6559
      echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
6560
echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6
6561
6562
      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
6563
      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
6564
6565
6566
6567
6568
6569
6570
        echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
6571
echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6
6572
if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
6573
  echo $ECHO_N "(cached) $ECHO_C" >&6
6574
else
6575
  cat >conftest.$ac_ext <<_ACEOF
6576
/* confdefs.h.  */
6577
_ACEOF
6578
cat confdefs.h >>conftest.$ac_ext
6579
cat >>conftest.$ac_ext <<_ACEOF
6580
/* end confdefs.h.  */
6581
#include <libintl.h>
6582
extern int _nl_msg_cat_cntr;
6583
extern int *_nl_domain_bindings;
6584
int
6585
main ()
6586
{
6587
bindtextdomain ("", "");
6588
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
6589
  ;
6590
  return 0;
6591
}
6592
_ACEOF
6593
rm -f conftest.$ac_objext conftest$ac_exeext
6594
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6595
  (eval $ac_link) 2>conftest.er1
6596
  ac_status=$?
6597
  grep -v '^ *+' conftest.er1 >conftest.err
6598
  rm -f conftest.er1
6599
  cat conftest.err >&5
6600
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601
  (exit $ac_status); } &&
6602
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
6603
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6604
  (eval $ac_try) 2>&5
6605
  ac_status=$?
6606
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607
  (exit $ac_status); }; } &&
6608
	 { ac_try='test -s conftest$ac_exeext'
6609
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6610
  (eval $ac_try) 2>&5
6611
  ac_status=$?
6612
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613
  (exit $ac_status); }; }; then
6614
  gt_cv_func_gnugettext1_libc=yes
6615
else
6616
  echo "$as_me: failed program was:" >&5
6617
sed 's/^/| /' conftest.$ac_ext >&5
6618
6619
gt_cv_func_gnugettext1_libc=no
6620
fi
6621
rm -f conftest.err conftest.$ac_objext \
6622
      conftest$ac_exeext conftest.$ac_ext
6623
fi
6624
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
6625
echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6
6626
6627
        if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
6628
6629
6630
6631
    use_additional=yes
6632
6633
  acl_save_prefix="$prefix"
6634
  prefix="$acl_final_prefix"
6635
  acl_save_exec_prefix="$exec_prefix"
6636
  exec_prefix="$acl_final_exec_prefix"
6637
6638
    eval additional_includedir=\"$includedir\"
6639
    eval additional_libdir=\"$libdir\"
6640
6641
  exec_prefix="$acl_save_exec_prefix"
6642
  prefix="$acl_save_prefix"
6643
6644
6645
# Check whether --with-libintl-prefix or --without-libintl-prefix was given.
6646
if test "${with_libintl_prefix+set}" = set; then
6647
  withval="$with_libintl_prefix"
6648
6649
    if test "X$withval" = "Xno"; then
6650
      use_additional=no
6651
    else
6652
      if test "X$withval" = "X"; then
6653
6654
  acl_save_prefix="$prefix"
6655
  prefix="$acl_final_prefix"
6656
  acl_save_exec_prefix="$exec_prefix"
6657
  exec_prefix="$acl_final_exec_prefix"
6658
6659
          eval additional_includedir=\"$includedir\"
6660
          eval additional_libdir=\"$libdir\"
6661
6662
  exec_prefix="$acl_save_exec_prefix"
6663
  prefix="$acl_save_prefix"
6664
6665
      else
6666
        additional_includedir="$withval/include"
6667
        additional_libdir="$withval/lib"
6668
      fi
6669
    fi
6670
6671
fi;
6672
      LIBINTL=
6673
  LTLIBINTL=
6674
  INCINTL=
6675
  rpathdirs=
6676
  ltrpathdirs=
6677
  names_already_handled=
6678
  names_next_round='intl '
6679
  while test -n "$names_next_round"; do
6680
    names_this_round="$names_next_round"
6681
    names_next_round=
6682
    for name in $names_this_round; do
6683
      already_handled=
6684
      for n in $names_already_handled; do
6685
        if test "$n" = "$name"; then
6686
          already_handled=yes
6687
          break
6688
        fi
6689
      done
6690
      if test -z "$already_handled"; then
6691
        names_already_handled="$names_already_handled $name"
6692
                        uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6693
        eval value=\"\$HAVE_LIB$uppername\"
6694
        if test -n "$value"; then
6695
          if test "$value" = yes; then
6696
            eval value=\"\$LIB$uppername\"
6697
            test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6698
            eval value=\"\$LTLIB$uppername\"
6699
            test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6700
          else
6701
                                    :
6702
          fi
6703
        else
6704
                              found_dir=
6705
          found_la=
6706
          found_so=
6707
          found_a=
6708
          if test $use_additional = yes; then
6709
            if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
6710
              found_dir="$additional_libdir"
6711
              found_so="$additional_libdir/lib$name.$shlibext"
6712
              if test -f "$additional_libdir/lib$name.la"; then
6713
                found_la="$additional_libdir/lib$name.la"
6714
              fi
6715
            else
6716
              if test -f "$additional_libdir/lib$name.$libext"; then
6717
                found_dir="$additional_libdir"
6718
                found_a="$additional_libdir/lib$name.$libext"
6719
                if test -f "$additional_libdir/lib$name.la"; then
6720
                  found_la="$additional_libdir/lib$name.la"
6721
                fi
6722
              fi
6723
            fi
6724
          fi
6725
          if test "X$found_dir" = "X"; then
6726
            for x in $LDFLAGS $LTLIBINTL; do
6727
6728
  acl_save_prefix="$prefix"
6729
  prefix="$acl_final_prefix"
6730
  acl_save_exec_prefix="$exec_prefix"
6731
  exec_prefix="$acl_final_exec_prefix"
6732
  eval x=\"$x\"
6733
  exec_prefix="$acl_save_exec_prefix"
6734
  prefix="$acl_save_prefix"
6735
6736
              case "$x" in
6737
                -L*)
6738
                  dir=`echo "X$x" | sed -e 's/^X-L//'`
6739
                  if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
6740
                    found_dir="$dir"
6741
                    found_so="$dir/lib$name.$shlibext"
6742
                    if test -f "$dir/lib$name.la"; then
6743
                      found_la="$dir/lib$name.la"
6744
                    fi
6745
                  else
6746
                    if test -f "$dir/lib$name.$libext"; then
6747
                      found_dir="$dir"
6748
                      found_a="$dir/lib$name.$libext"
6749
                      if test -f "$dir/lib$name.la"; then
6750
                        found_la="$dir/lib$name.la"
6751
                      fi
6752
                    fi
6753
                  fi
6754
                  ;;
6755
              esac
6756
              if test "X$found_dir" != "X"; then
6757
                break
6758
              fi
6759
            done
6760
          fi
6761
          if test "X$found_dir" != "X"; then
6762
                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6763
            if test "X$found_so" != "X"; then
6764
                                                        if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
6765
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6766
              else
6767
                                                                                haveit=
6768
                for x in $ltrpathdirs; do
6769
                  if test "X$x" = "X$found_dir"; then
6770
                    haveit=yes
6771
                    break
6772
                  fi
6773
                done
6774
                if test -z "$haveit"; then
6775
                  ltrpathdirs="$ltrpathdirs $found_dir"
6776
                fi
6777
                                if test "$hardcode_direct" = yes; then
6778
                                                      LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6779
                else
6780
                  if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
6781
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6782
                                                            haveit=
6783
                    for x in $rpathdirs; do
6784
                      if test "X$x" = "X$found_dir"; then
6785
                        haveit=yes
6786
                        break
6787
                      fi
6788
                    done
6789
                    if test -z "$haveit"; then
6790
                      rpathdirs="$rpathdirs $found_dir"
6791
                    fi
6792
                  else
6793
                                                                                haveit=
6794
                    for x in $LDFLAGS $LIBINTL; do
6795
6796
  acl_save_prefix="$prefix"
6797
  prefix="$acl_final_prefix"
6798
  acl_save_exec_prefix="$exec_prefix"
6799
  exec_prefix="$acl_final_exec_prefix"
6800
  eval x=\"$x\"
6801
  exec_prefix="$acl_save_exec_prefix"
6802
  prefix="$acl_save_prefix"
6803
6804
                      if test "X$x" = "X-L$found_dir"; then
6805
                        haveit=yes
6806
                        break
6807
                      fi
6808
                    done
6809
                    if test -z "$haveit"; then
6810
                      LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6811
                    fi
6812
                    if test "$hardcode_minus_L" != no; then
6813
                                                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6814
                    else
6815
                                                                                                                                                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6816
                    fi
6817
                  fi
6818
                fi
6819
              fi
6820
            else
6821
              if test "X$found_a" != "X"; then
6822
                                LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6823
              else
6824
                                                LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6825
              fi
6826
            fi
6827
                        additional_includedir=
6828
            case "$found_dir" in
6829
              */lib | */lib/)
6830
                basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
6831
                additional_includedir="$basedir/include"
6832
                ;;
6833
            esac
6834
            if test "X$additional_includedir" != "X"; then
6835
                                                                                                                if test "X$additional_includedir" != "X/usr/include"; then
6836
                haveit=
6837
                if test "X$additional_includedir" = "X/usr/local/include"; then
6838
                  if test -n "$GCC"; then
6839
                    case $host_os in
6840
                      linux*) haveit=yes;;
6841
                    esac
6842
                  fi
6843
                fi
6844
                if test -z "$haveit"; then
6845
                  for x in $CPPFLAGS $INCINTL; do
6846
6847
  acl_save_prefix="$prefix"
6848
  prefix="$acl_final_prefix"
6849
  acl_save_exec_prefix="$exec_prefix"
6850
  exec_prefix="$acl_final_exec_prefix"
6851
  eval x=\"$x\"
6852
  exec_prefix="$acl_save_exec_prefix"
6853
  prefix="$acl_save_prefix"
6854
6855
                    if test "X$x" = "X-I$additional_includedir"; then
6856
                      haveit=yes
6857
                      break
6858
                    fi
6859
                  done
6860
                  if test -z "$haveit"; then
6861
                    if test -d "$additional_includedir"; then
6862
                                            INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6863
                    fi
6864
                  fi
6865
                fi
6866
              fi
6867
            fi
6868
                        if test -n "$found_la"; then
6869
                                                        save_libdir="$libdir"
6870
              case "$found_la" in
6871
                */* | *\\*) . "$found_la" ;;
6872
                *) . "./$found_la" ;;
6873
              esac
6874
              libdir="$save_libdir"
6875
                            for dep in $dependency_libs; do
6876
                case "$dep" in
6877
                  -L*)
6878
                    additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6879
                                                                                                                                                                if test "X$additional_libdir" != "X/usr/lib"; then
6880
                      haveit=
6881
                      if test "X$additional_libdir" = "X/usr/local/lib"; then
6882
                        if test -n "$GCC"; then
6883
                          case $host_os in
6884
                            linux*) haveit=yes;;
6885
                          esac
6886
                        fi
6887
                      fi
6888
                      if test -z "$haveit"; then
6889
                        haveit=
6890
                        for x in $LDFLAGS $LIBINTL; do
6891
6892
  acl_save_prefix="$prefix"
6893
  prefix="$acl_final_prefix"
6894
  acl_save_exec_prefix="$exec_prefix"
6895
  exec_prefix="$acl_final_exec_prefix"
6896
  eval x=\"$x\"
6897
  exec_prefix="$acl_save_exec_prefix"
6898
  prefix="$acl_save_prefix"
6899
6900
                          if test "X$x" = "X-L$additional_libdir"; then
6901
                            haveit=yes
6902
                            break
6903
                          fi
6904
                        done
6905
                        if test -z "$haveit"; then
6906
                          if test -d "$additional_libdir"; then
6907
                                                        LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6908
                          fi
6909
                        fi
6910
                        haveit=
6911
                        for x in $LDFLAGS $LTLIBINTL; do
6912
6913
  acl_save_prefix="$prefix"
6914
  prefix="$acl_final_prefix"
6915
  acl_save_exec_prefix="$exec_prefix"
6916
  exec_prefix="$acl_final_exec_prefix"
6917
  eval x=\"$x\"
6918
  exec_prefix="$acl_save_exec_prefix"
6919
  prefix="$acl_save_prefix"
6920
6921
                          if test "X$x" = "X-L$additional_libdir"; then
6922
                            haveit=yes
6923
                            break
6924
                          fi
6925
                        done
6926
                        if test -z "$haveit"; then
6927
                          if test -d "$additional_libdir"; then
6928
                                                        LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6929
                          fi
6930
                        fi
6931
                      fi
6932
                    fi
6933
                    ;;
6934
                  -R*)
6935
                    dir=`echo "X$dep" | sed -e 's/^X-R//'`
6936
                    if test "$enable_rpath" != no; then
6937
                                                                  haveit=
6938
                      for x in $rpathdirs; do
6939
                        if test "X$x" = "X$dir"; then
6940
                          haveit=yes
6941
                          break
6942
                        fi
6943
                      done
6944
                      if test -z "$haveit"; then
6945
                        rpathdirs="$rpathdirs $dir"
6946
                      fi
6947
                                                                  haveit=
6948
                      for x in $ltrpathdirs; do
6949
                        if test "X$x" = "X$dir"; then
6950
                          haveit=yes
6951
                          break
6952
                        fi
6953
                      done
6954
                      if test -z "$haveit"; then
6955
                        ltrpathdirs="$ltrpathdirs $dir"
6956
                      fi
6957
                    fi
6958
                    ;;
6959
                  -l*)
6960
                                        names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6961
                    ;;
6962
                  *.la)
6963
                                                                                names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6964
                    ;;
6965
                  *)
6966
                                        LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6967
                    LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6968
                    ;;
6969
                esac
6970
              done
6971
            fi
6972
          else
6973
                                                            LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6974
            LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6975
          fi
6976
        fi
6977
      fi
6978
    done
6979
  done
6980
  if test "X$rpathdirs" != "X"; then
6981
    if test -n "$hardcode_libdir_separator"; then
6982
                        alldirs=
6983
      for found_dir in $rpathdirs; do
6984
        alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
6985
      done
6986
            acl_save_libdir="$libdir"
6987
      libdir="$alldirs"
6988
      eval flag=\"$hardcode_libdir_flag_spec\"
6989
      libdir="$acl_save_libdir"
6990
      LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6991
    else
6992
            for found_dir in $rpathdirs; do
6993
        acl_save_libdir="$libdir"
6994
        libdir="$found_dir"
6995
        eval flag=\"$hardcode_libdir_flag_spec\"
6996
        libdir="$acl_save_libdir"
6997
        LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6998
      done
6999
    fi
7000
  fi
7001
  if test "X$ltrpathdirs" != "X"; then
7002
            for found_dir in $ltrpathdirs; do
7003
      LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7004
    done
7005
  fi
7006
7007
          echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
7008
echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6
7009
if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
7010
  echo $ECHO_N "(cached) $ECHO_C" >&6
7011
else
7012
  gt_save_CPPFLAGS="$CPPFLAGS"
7013
            CPPFLAGS="$CPPFLAGS $INCINTL"
7014
            gt_save_LIBS="$LIBS"
7015
            LIBS="$LIBS $LIBINTL"
7016
                        cat >conftest.$ac_ext <<_ACEOF
7017
/* confdefs.h.  */
7018
_ACEOF
7019
cat confdefs.h >>conftest.$ac_ext
7020
cat >>conftest.$ac_ext <<_ACEOF
7021
/* end confdefs.h.  */
7022
#include <libintl.h>
7023
extern int _nl_msg_cat_cntr;
7024
extern
7025
#ifdef __cplusplus
7026
"C"
7027
#endif
7028
const char *_nl_expand_alias ();
7029
int
7030
main ()
7031
{
7032
bindtextdomain ("", "");
7033
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7034
  ;
7035
  return 0;
7036
}
7037
_ACEOF
7038
rm -f conftest.$ac_objext conftest$ac_exeext
7039
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7040
  (eval $ac_link) 2>conftest.er1
7041
  ac_status=$?
7042
  grep -v '^ *+' conftest.er1 >conftest.err
7043
  rm -f conftest.er1
7044
  cat conftest.err >&5
7045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7046
  (exit $ac_status); } &&
7047
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7048
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7049
  (eval $ac_try) 2>&5
7050
  ac_status=$?
7051
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052
  (exit $ac_status); }; } &&
7053
	 { ac_try='test -s conftest$ac_exeext'
7054
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7055
  (eval $ac_try) 2>&5
7056
  ac_status=$?
7057
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058
  (exit $ac_status); }; }; then
7059
  gt_cv_func_gnugettext1_libintl=yes
7060
else
7061
  echo "$as_me: failed program was:" >&5
7062
sed 's/^/| /' conftest.$ac_ext >&5
7063
7064
gt_cv_func_gnugettext1_libintl=no
7065
fi
7066
rm -f conftest.err conftest.$ac_objext \
7067
      conftest$ac_exeext conftest.$ac_ext
7068
                        if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
7069
              LIBS="$LIBS $LIBICONV"
7070
              cat >conftest.$ac_ext <<_ACEOF
7071
/* confdefs.h.  */
7072
_ACEOF
7073
cat confdefs.h >>conftest.$ac_ext
7074
cat >>conftest.$ac_ext <<_ACEOF
7075
/* end confdefs.h.  */
7076
#include <libintl.h>
7077
extern int _nl_msg_cat_cntr;
7078
extern
7079
#ifdef __cplusplus
7080
"C"
7081
#endif
7082
const char *_nl_expand_alias ();
7083
int
7084
main ()
7085
{
7086
bindtextdomain ("", "");
7087
return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
7088
  ;
7089
  return 0;
7090
}
7091
_ACEOF
7092
rm -f conftest.$ac_objext conftest$ac_exeext
7093
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7094
  (eval $ac_link) 2>conftest.er1
7095
  ac_status=$?
7096
  grep -v '^ *+' conftest.er1 >conftest.err
7097
  rm -f conftest.er1
7098
  cat conftest.err >&5
7099
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7100
  (exit $ac_status); } &&
7101
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7102
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7103
  (eval $ac_try) 2>&5
7104
  ac_status=$?
7105
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7106
  (exit $ac_status); }; } &&
7107
	 { ac_try='test -s conftest$ac_exeext'
7108
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7109
  (eval $ac_try) 2>&5
7110
  ac_status=$?
7111
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112
  (exit $ac_status); }; }; then
7113
  LIBINTL="$LIBINTL $LIBICONV"
7114
                LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7115
                gt_cv_func_gnugettext1_libintl=yes
7116
7117
else
7118
  echo "$as_me: failed program was:" >&5
7119
sed 's/^/| /' conftest.$ac_ext >&5
7120
7121
fi
7122
rm -f conftest.err conftest.$ac_objext \
7123
      conftest$ac_exeext conftest.$ac_ext
7124
            fi
7125
            CPPFLAGS="$gt_save_CPPFLAGS"
7126
            LIBS="$gt_save_LIBS"
7127
fi
7128
echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
7129
echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6
7130
        fi
7131
7132
                                        if test "$gt_cv_func_gnugettext1_libc" = "yes" \
7133
           || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
7134
                && test "$PACKAGE" != gettext; }; then
7135
          gt_use_preinstalled_gnugettext=yes
7136
        else
7137
                    LIBINTL=
7138
          LTLIBINTL=
7139
          INCINTL=
7140
        fi
7141
7142
7143
        if test "$gt_use_preinstalled_gnugettext" != "yes"; then
7144
                              nls_cv_use_gnu_gettext=yes
7145
        fi
7146
      fi
7147
7148
      if test "$nls_cv_use_gnu_gettext" = "yes"; then
7149
                INTLOBJS="\$(GETTOBJS)"
7150
        BUILD_INCLUDED_LIBINTL=yes
7151
        USE_INCLUDED_LIBINTL=yes
7152
        LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
7153
        LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
7154
        LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
7155
      fi
7156
7157
      if test "$gt_use_preinstalled_gnugettext" = "yes" \
7158
         || test "$nls_cv_use_gnu_gettext" = "yes"; then
7159
                CATOBJEXT=.gmo
7160
      fi
7161
7162
7163
    if test "$gt_use_preinstalled_gnugettext" = "yes" \
7164
       || test "$nls_cv_use_gnu_gettext" = "yes"; then
7165
7166
cat >>confdefs.h <<\_ACEOF
7167
#define ENABLE_NLS 1
7168
_ACEOF
7169
7170
    else
7171
      USE_NLS=no
7172
    fi
7173
  fi
7174
7175
  if test "$USE_NLS" = "yes"; then
7176
7177
    if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7178
      if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
7179
        echo "$as_me:$LINENO: checking how to link with libintl" >&5
7180
echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6
7181
        echo "$as_me:$LINENO: result: $LIBINTL" >&5
7182
echo "${ECHO_T}$LIBINTL" >&6
7183
7184
  for element in $INCINTL; do
7185
    haveit=
7186
    for x in $CPPFLAGS; do
7187
7188
  acl_save_prefix="$prefix"
7189
  prefix="$acl_final_prefix"
7190
  acl_save_exec_prefix="$exec_prefix"
7191
  exec_prefix="$acl_final_exec_prefix"
7192
  eval x=\"$x\"
7193
  exec_prefix="$acl_save_exec_prefix"
7194
  prefix="$acl_save_prefix"
7195
7196
      if test "X$x" = "X$element"; then
7197
        haveit=yes
7198
        break
7199
      fi
7200
    done
7201
    if test -z "$haveit"; then
7202
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7203
    fi
7204
  done
7205
7206
      fi
7207
7208
7209
cat >>confdefs.h <<\_ACEOF
7210
#define HAVE_GETTEXT 1
7211
_ACEOF
7212
7213
7214
cat >>confdefs.h <<\_ACEOF
7215
#define HAVE_DCGETTEXT 1
7216
_ACEOF
7217
7218
    fi
7219
7220
        POSUB=po
7221
  fi
7222
7223
7224
            if test "$PACKAGE" = gettext; then
7225
      BUILD_INCLUDED_LIBINTL=yes
7226
    fi
7227
7228
7229
7230
7231
7232
7233
        nls_cv_header_intl=
7234
    nls_cv_header_libgt=
7235
7236
        DATADIRNAME=share
7237
7238
7239
        INSTOBJEXT=.mo
7240
7241
7242
        GENCAT=gencat
7243
7244
7245
        INTL_LIBTOOL_SUFFIX_PREFIX=
7246
7247
7248
7249
    INTLLIBS="$LIBINTL"
7250
7251
7252
7253
7254
7255
7256
localedir="\${prefix}/$DATADIRNAME/locale"
7257
7258
7259
echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
7260
echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
7261
if test "${ncp_cv_c_ipx_netipx+set}" = set; then
7262
  echo $ECHO_N "(cached) $ECHO_C" >&6
7263
else
7264
  cat >conftest.$ac_ext <<_ACEOF
7265
/* confdefs.h.  */
7266
_ACEOF
7267
cat confdefs.h >>conftest.$ac_ext
7268
cat >>conftest.$ac_ext <<_ACEOF
7269
/* end confdefs.h.  */
7270
#include <sys/socket.h>
7271
#include <sys/ioctl.h>
7272
#include <netipx/ipx.h>
7273
int
7274
main ()
7275
{
7276
((struct sockaddr_ipx*)0)->sipx_family == AF_IPX
7277
  ;
7278
  return 0;
7279
}
7280
_ACEOF
7281
rm -f conftest.$ac_objext
7282
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7283
  (eval $ac_compile) 2>conftest.er1
7284
  ac_status=$?
7285
  grep -v '^ *+' conftest.er1 >conftest.err
7286
  rm -f conftest.er1
7287
  cat conftest.err >&5
7288
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7289
  (exit $ac_status); } &&
7290
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7291
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7292
  (eval $ac_try) 2>&5
7293
  ac_status=$?
7294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295
  (exit $ac_status); }; } &&
7296
	 { ac_try='test -s conftest.$ac_objext'
7297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7298
  (eval $ac_try) 2>&5
7299
  ac_status=$?
7300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301
  (exit $ac_status); }; }; then
7302
  ncp_cv_c_ipx_netipx="yes"
7303
else
7304
  echo "$as_me: failed program was:" >&5
7305
sed 's/^/| /' conftest.$ac_ext >&5
7306
7307
ncp_cv_c_ipx_netipx="no"
7308
7309
fi
7310
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311
7312
fi
7313
echo "$as_me:$LINENO: result: $ncp_cv_c_ipx_netipx" >&5
7314
echo "${ECHO_T}$ncp_cv_c_ipx_netipx" >&6
7315
ncp_ipx_headers_1="/* <asm/types> not required */"
7316
ncp_ipx_headers_2="/* <.../ipx.h> not found */"
7317
if test "$ncp_cv_c_ipx_netipx" = "no"
7318
then
7319
  echo "$as_me:$LINENO: checking for Linux style IPX support" >&5
7320
echo $ECHO_N "checking for Linux style IPX support... $ECHO_C" >&6
7321
if test "${ncp_cv_c_ipx_linux+set}" = set; then
7322
  echo $ECHO_N "(cached) $ECHO_C" >&6
7323
else
7324
  cat >conftest.$ac_ext <<_ACEOF
7325
/* confdefs.h.  */
7326
_ACEOF
7327
cat confdefs.h >>conftest.$ac_ext
7328
cat >>conftest.$ac_ext <<_ACEOF
7329
/* end confdefs.h.  */
7330
#include <sys/socket.h>
7331
#include <asm/types.h>
7332
#include <linux/ipx.h>
7333
int
7334
main ()
7335
{
7336
((struct sockaddr_ipx*)0)->sipx_family == AF_IPX
7337
  ;
7338
  return 0;
7339
}
7340
_ACEOF
7341
rm -f conftest.$ac_objext
7342
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7343
  (eval $ac_compile) 2>conftest.er1
7344
  ac_status=$?
7345
  grep -v '^ *+' conftest.er1 >conftest.err
7346
  rm -f conftest.er1
7347
  cat conftest.err >&5
7348
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349
  (exit $ac_status); } &&
7350
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7351
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352
  (eval $ac_try) 2>&5
7353
  ac_status=$?
7354
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7355
  (exit $ac_status); }; } &&
7356
	 { ac_try='test -s conftest.$ac_objext'
7357
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7358
  (eval $ac_try) 2>&5
7359
  ac_status=$?
7360
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361
  (exit $ac_status); }; }; then
7362
  ncp_cv_c_ipx_linux="yes"
7363
else
7364
  echo "$as_me: failed program was:" >&5
7365
sed 's/^/| /' conftest.$ac_ext >&5
7366
7367
ncp_cv_c_ipx_linux="no"
7368
7369
fi
7370
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7371
7372
fi
7373
echo "$as_me:$LINENO: result: $ncp_cv_c_ipx_linux" >&5
7374
echo "${ECHO_T}$ncp_cv_c_ipx_linux" >&6
7375
  if test "$ncp_cv_c_ipx_linux" = "no"
7376
  then
7377
    enable_ipx="no"
7378
  else
7379
7380
cat >>confdefs.h <<\_ACEOF
7381
#define HAVE_LINUX_IPX_H 1
7382
_ACEOF
7383
7384
    ncp_ipx_headers_1="#include <asm/types.h>"
7385
    ncp_ipx_headers_2="#include <linux/ipx.h>"
7386
  fi
7387
else
7388
7389
cat >>confdefs.h <<\_ACEOF
7390
#define HAVE_NETIPX_IPX_H 1
7391
_ACEOF
7392
7393
  ncp_ipx_headers_1="#include <sys/ioctl.h>"
7394
  ncp_ipx_headers_2="#include <netipx/ipx.h>"
7395
fi
7396
7397
7398
7399
ncp_ipx_defsiocprotoprivate="#if 0 /* #define SIOCPROTOPRIVATE not needed */"
7400
ncp_ipx_defsiocaipx="#if 0/* #define SIOCAIPX* not needed */"
7401
if test "$enable_ipx" = "no"
7402
then : ; else
7403
7404
cat >>confdefs.h <<\_ACEOF
7405
#define CONFIG_NATIVE_IPX 1
7406
_ACEOF
7407
7408
  PROTOCOL_IPX=1
7409
  if test "$enable_ipx_tools" != "no"
7410
  then
7411
    ADDON_DEV_SUBDIRS="$ADDON_DEV_SUBDIRS ipx-1.0"
7412
    BUILD_IPX_TOOLS=1
7413
  fi
7414
7415
    echo "$as_me:$LINENO: checking for working IPX ioctl values" >&5
7416
echo $ECHO_N "checking for working IPX ioctl values... $ECHO_C" >&6
7417
if test "${ncp_cv_c_ipx_ioctl+set}" = set; then
7418
  echo $ECHO_N "(cached) $ECHO_C" >&6
7419
else
7420
  cat >conftest.$ac_ext <<_ACEOF
7421
/* confdefs.h.  */
7422
_ACEOF
7423
cat confdefs.h >>conftest.$ac_ext
7424
cat >>conftest.$ac_ext <<_ACEOF
7425
/* end confdefs.h.  */
7426
$ncp_ipx_headers_1
7427
$ncp_ipx_headers_2
7428
int
7429
main ()
7430
{
7431
SIOCAIPXITFCRT, SIOCAIPXPRISLT, SIOCIPXCFGDATA
7432
  ;
7433
  return 0;
7434
}
7435
_ACEOF
7436
rm -f conftest.$ac_objext
7437
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7438
  (eval $ac_compile) 2>conftest.er1
7439
  ac_status=$?
7440
  grep -v '^ *+' conftest.er1 >conftest.err
7441
  rm -f conftest.er1
7442
  cat conftest.err >&5
7443
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7444
  (exit $ac_status); } &&
7445
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7446
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7447
  (eval $ac_try) 2>&5
7448
  ac_status=$?
7449
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450
  (exit $ac_status); }; } &&
7451
	 { ac_try='test -s conftest.$ac_objext'
7452
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7453
  (eval $ac_try) 2>&5
7454
  ac_status=$?
7455
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7456
  (exit $ac_status); }; }; then
7457
  ncp_cv_c_ipx_ioctl="yes"
7458
else
7459
  echo "$as_me: failed program was:" >&5
7460
sed 's/^/| /' conftest.$ac_ext >&5
7461
7462
ncp_cv_c_ipx_ioctl="no"
7463
7464
fi
7465
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7466
7467
fi
7468
echo "$as_me:$LINENO: result: $ncp_cv_c_ipx_ioctl" >&5
7469
echo "${ECHO_T}$ncp_cv_c_ipx_ioctl" >&6
7470
  if test "$ncp_cv_c_ipx_ioctl" = "no"
7471
  then
7472
    echo "$as_me:$LINENO: checking for defined SIOCPROTOPRIVATE" >&5
7473
echo $ECHO_N "checking for defined SIOCPROTOPRIVATE... $ECHO_C" >&6
7474
if test "${ncp_cv_c_siocprotoprivate+set}" = set; then
7475
  echo $ECHO_N "(cached) $ECHO_C" >&6
7476
else
7477
  cat >conftest.$ac_ext <<_ACEOF
7478
/* confdefs.h.  */
7479
_ACEOF
7480
cat confdefs.h >>conftest.$ac_ext
7481
cat >>conftest.$ac_ext <<_ACEOF
7482
/* end confdefs.h.  */
7483
$ncp_ipx_headers_1
7484
$ncp_ipx_headers_2
7485
int
7486
main ()
7487
{
7488
SIOCPROTOPRIVATE
7489
  ;
7490
  return 0;
7491
}
7492
_ACEOF
7493
rm -f conftest.$ac_objext
7494
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7495
  (eval $ac_compile) 2>conftest.er1
7496
  ac_status=$?
7497
  grep -v '^ *+' conftest.er1 >conftest.err
7498
  rm -f conftest.er1
7499
  cat conftest.err >&5
7500
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501
  (exit $ac_status); } &&
7502
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7503
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7504
  (eval $ac_try) 2>&5
7505
  ac_status=$?
7506
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7507
  (exit $ac_status); }; } &&
7508
	 { ac_try='test -s conftest.$ac_objext'
7509
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7510
  (eval $ac_try) 2>&5
7511
  ac_status=$?
7512
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7513
  (exit $ac_status); }; }; then
7514
  ncp_cv_c_siocprotoprivate="yes"
7515
else
7516
  echo "$as_me: failed program was:" >&5
7517
sed 's/^/| /' conftest.$ac_ext >&5
7518
7519
ncp_cv_c_siocprotoprivate="no"
7520
7521
fi
7522
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7523
7524
fi
7525
echo "$as_me:$LINENO: result: $ncp_cv_c_siocprotoprivate" >&5
7526
echo "${ECHO_T}$ncp_cv_c_siocprotoprivate" >&6
7527
    if test "$ncp_cv_c_siocprotoprivate" = "no"
7528
    then
7529
      ncp_ipx_defsiocprotoprivate="#if 1 /* SIOCPROTOPRIVATE was not found */"
7530
      echo "$as_me:$LINENO: checking for working IPX ioctl values after defining SIOCPROTOPRIVATE" >&5
7531
echo $ECHO_N "checking for working IPX ioctl values after defining SIOCPROTOPRIVATE... $ECHO_C" >&6
7532
if test "${ncp_cv_c_ipx_sioc+set}" = set; then
7533
  echo $ECHO_N "(cached) $ECHO_C" >&6
7534
else
7535
  cat >conftest.$ac_ext <<_ACEOF
7536
/* confdefs.h.  */
7537
_ACEOF
7538
cat confdefs.h >>conftest.$ac_ext
7539
cat >>conftest.$ac_ext <<_ACEOF
7540
/* end confdefs.h.  */
7541
$ncp_ipx_headers_1
7542
$ncp_ipx_headers_2
7543
#define SIOCPROTOPRIVATE 0x89E0
7544
int
7545
main ()
7546
{
7547
SIOCAIPXITFCRT, SIOCAIPXPRISLT, SIOCIPXCFGDATA
7548
  ;
7549
  return 0;
7550
}
7551
_ACEOF
7552
rm -f conftest.$ac_objext
7553
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7554
  (eval $ac_compile) 2>conftest.er1
7555
  ac_status=$?
7556
  grep -v '^ *+' conftest.er1 >conftest.err
7557
  rm -f conftest.er1
7558
  cat conftest.err >&5
7559
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7560
  (exit $ac_status); } &&
7561
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7562
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7563
  (eval $ac_try) 2>&5
7564
  ac_status=$?
7565
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566
  (exit $ac_status); }; } &&
7567
	 { ac_try='test -s conftest.$ac_objext'
7568
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7569
  (eval $ac_try) 2>&5
7570
  ac_status=$?
7571
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572
  (exit $ac_status); }; }; then
7573
  ncp_cv_c_ipx_sioc="yes"
7574
else
7575
  echo "$as_me: failed program was:" >&5
7576
sed 's/^/| /' conftest.$ac_ext >&5
7577
7578
ncp_cv_c_ipx_sioc="no"
7579
7580
fi
7581
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7582
7583
fi
7584
echo "$as_me:$LINENO: result: $ncp_cv_c_ipx_sioc" >&5
7585
echo "${ECHO_T}$ncp_cv_c_ipx_sioc" >&6
7586
    else
7587
      ncp_cv_c_ipx_sioc="no"
7588
    fi
7589
    if test "$ncp_cv_c_ipx_sioc" = "no"
7590
    then
7591
      ncp_ipx_defsiocaipx="#if 1 /* SIOCAIPX* values were not defined */"
7592
    fi
7593
  fi
7594
fi
7595
7596
7597
7598
7599
echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7600
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7601
if test "${ac_cv_header_stdc+set}" = set; then
7602
  echo $ECHO_N "(cached) $ECHO_C" >&6
7603
else
7604
  cat >conftest.$ac_ext <<_ACEOF
7605
/* confdefs.h.  */
7606
_ACEOF
7607
cat confdefs.h >>conftest.$ac_ext
7608
cat >>conftest.$ac_ext <<_ACEOF
7609
/* end confdefs.h.  */
7610
#include <stdlib.h>
7611
#include <stdarg.h>
7612
#include <string.h>
7613
#include <float.h>
7614
7615
int
7616
main ()
7617
{
7618
7619
  ;
7620
  return 0;
7621
}
7622
_ACEOF
7623
rm -f conftest.$ac_objext
7624
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7625
  (eval $ac_compile) 2>conftest.er1
7626
  ac_status=$?
7627
  grep -v '^ *+' conftest.er1 >conftest.err
7628
  rm -f conftest.er1
7629
  cat conftest.err >&5
7630
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7631
  (exit $ac_status); } &&
7632
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7633
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7634
  (eval $ac_try) 2>&5
7635
  ac_status=$?
7636
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637
  (exit $ac_status); }; } &&
7638
	 { ac_try='test -s conftest.$ac_objext'
7639
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7640
  (eval $ac_try) 2>&5
7641
  ac_status=$?
7642
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643
  (exit $ac_status); }; }; then
7644
  ac_cv_header_stdc=yes
7645
else
7646
  echo "$as_me: failed program was:" >&5
7647
sed 's/^/| /' conftest.$ac_ext >&5
7648
7649
ac_cv_header_stdc=no
7650
fi
7651
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7652
7653
if test $ac_cv_header_stdc = yes; then
7654
  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7655
  cat >conftest.$ac_ext <<_ACEOF
7656
/* confdefs.h.  */
7657
_ACEOF
7658
cat confdefs.h >>conftest.$ac_ext
7659
cat >>conftest.$ac_ext <<_ACEOF
7660
/* end confdefs.h.  */
7661
#include <string.h>
7662
7663
_ACEOF
7664
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7665
  $EGREP "memchr" >/dev/null 2>&1; then
7666
  :
7667
else
7668
  ac_cv_header_stdc=no
7669
fi
7670
rm -f conftest*
7671
7672
fi
7673
7674
if test $ac_cv_header_stdc = yes; then
7675
  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7676
  cat >conftest.$ac_ext <<_ACEOF
7677
/* confdefs.h.  */
7678
_ACEOF
7679
cat confdefs.h >>conftest.$ac_ext
7680
cat >>conftest.$ac_ext <<_ACEOF
7681
/* end confdefs.h.  */
7682
#include <stdlib.h>
7683
7684
_ACEOF
7685
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7686
  $EGREP "free" >/dev/null 2>&1; then
7687
  :
7688
else
7689
  ac_cv_header_stdc=no
7690
fi
7691
rm -f conftest*
7692
7693
fi
7694
7695
if test $ac_cv_header_stdc = yes; then
7696
  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7697
  if test "$cross_compiling" = yes; then
7698
  :
7699
else
7700
  cat >conftest.$ac_ext <<_ACEOF
7701
/* confdefs.h.  */
7702
_ACEOF
7703
cat confdefs.h >>conftest.$ac_ext
7704
cat >>conftest.$ac_ext <<_ACEOF
7705
/* end confdefs.h.  */
7706
#include <ctype.h>
7707
#if ((' ' & 0x0FF) == 0x020)
7708
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7709
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7710
#else
7711
# define ISLOWER(c) \
7712
		   (('a' <= (c) && (c) <= 'i') \
7713
		     || ('j' <= (c) && (c) <= 'r') \
7714
		     || ('s' <= (c) && (c) <= 'z'))
7715
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7716
#endif
7717
7718
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7719
int
7720
main ()
7721
{
7722
  int i;
7723
  for (i = 0; i < 256; i++)
7724
    if (XOR (islower (i), ISLOWER (i))
7725
	|| toupper (i) != TOUPPER (i))
7726
      exit(2);
7727
  exit (0);
7728
}
7729
_ACEOF
7730
rm -f conftest$ac_exeext
7731
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7732
  (eval $ac_link) 2>&5
7733
  ac_status=$?
7734
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735
  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7736
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7737
  (eval $ac_try) 2>&5
7738
  ac_status=$?
7739
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740
  (exit $ac_status); }; }; then
7741
  :
7742
else
7743
  echo "$as_me: program exited with status $ac_status" >&5
7744
echo "$as_me: failed program was:" >&5
7745
sed 's/^/| /' conftest.$ac_ext >&5
7746
7747
( exit $ac_status )
7748
ac_cv_header_stdc=no
7749
fi
7750
rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7751
fi
7752
fi
7753
fi
7754
echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7755
echo "${ECHO_T}$ac_cv_header_stdc" >&6
7756
if test $ac_cv_header_stdc = yes; then
7757
7758
cat >>confdefs.h <<\_ACEOF
7759
#define STDC_HEADERS 1
7760
_ACEOF
7761
7762
fi
7763
7764
echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7765
echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
7766
if test "${ac_cv_header_sys_wait_h+set}" = set; then
7767
  echo $ECHO_N "(cached) $ECHO_C" >&6
7768
else
7769
  cat >conftest.$ac_ext <<_ACEOF
7770
/* confdefs.h.  */
7771
_ACEOF
7772
cat confdefs.h >>conftest.$ac_ext
7773
cat >>conftest.$ac_ext <<_ACEOF
7774
/* end confdefs.h.  */
7775
#include <sys/types.h>
7776
#include <sys/wait.h>
7777
#ifndef WEXITSTATUS
7778
# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
7779
#endif
7780
#ifndef WIFEXITED
7781
# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7782
#endif
7783
7784
int
7785
main ()
7786
{
7787
  int s;
7788
  wait (&s);
7789
  s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7790
  ;
7791
  return 0;
7792
}
7793
_ACEOF
7794
rm -f conftest.$ac_objext
7795
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7796
  (eval $ac_compile) 2>conftest.er1
7797
  ac_status=$?
7798
  grep -v '^ *+' conftest.er1 >conftest.err
7799
  rm -f conftest.er1
7800
  cat conftest.err >&5
7801
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802
  (exit $ac_status); } &&
7803
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7804
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7805
  (eval $ac_try) 2>&5
7806
  ac_status=$?
7807
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7808
  (exit $ac_status); }; } &&
7809
	 { ac_try='test -s conftest.$ac_objext'
7810
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7811
  (eval $ac_try) 2>&5
7812
  ac_status=$?
7813
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814
  (exit $ac_status); }; }; then
7815
  ac_cv_header_sys_wait_h=yes
7816
else
7817
  echo "$as_me: failed program was:" >&5
7818
sed 's/^/| /' conftest.$ac_ext >&5
7819
7820
ac_cv_header_sys_wait_h=no
7821
fi
7822
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7823
fi
7824
echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7825
echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7826
if test $ac_cv_header_sys_wait_h = yes; then
7827
7828
cat >>confdefs.h <<\_ACEOF
7829
#define HAVE_SYS_WAIT_H 1
7830
_ACEOF
7831
7832
fi
7833
7834
7835
if test "${ac_cv_header_sys_mount_h+set}" = set; then
7836
  echo "$as_me:$LINENO: checking for sys/mount.h" >&5
7837
echo $ECHO_N "checking for sys/mount.h... $ECHO_C" >&6
7838
if test "${ac_cv_header_sys_mount_h+set}" = set; then
7839
  echo $ECHO_N "(cached) $ECHO_C" >&6
7840
fi
7841
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mount_h" >&5
7842
echo "${ECHO_T}$ac_cv_header_sys_mount_h" >&6
7843
else
7844
  # Is the header compilable?
7845
echo "$as_me:$LINENO: checking sys/mount.h usability" >&5
7846
echo $ECHO_N "checking sys/mount.h usability... $ECHO_C" >&6
7847
cat >conftest.$ac_ext <<_ACEOF
7848
/* confdefs.h.  */
7849
_ACEOF
7850
cat confdefs.h >>conftest.$ac_ext
7851
cat >>conftest.$ac_ext <<_ACEOF
7852
/* end confdefs.h.  */
7853
$ac_includes_default
7854
#include <sys/mount.h>
7855
_ACEOF
7856
rm -f conftest.$ac_objext
7857
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7858
  (eval $ac_compile) 2>conftest.er1
7859
  ac_status=$?
7860
  grep -v '^ *+' conftest.er1 >conftest.err
7861
  rm -f conftest.er1
7862
  cat conftest.err >&5
7863
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7864
  (exit $ac_status); } &&
7865
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
7866
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7867
  (eval $ac_try) 2>&5
7868
  ac_status=$?
7869
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7870
  (exit $ac_status); }; } &&
7871
	 { ac_try='test -s conftest.$ac_objext'
7872
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7873
  (eval $ac_try) 2>&5
7874
  ac_status=$?
7875
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876
  (exit $ac_status); }; }; then
7877
  ac_header_compiler=yes
7878
else
7879
  echo "$as_me: failed program was:" >&5
7880
sed 's/^/| /' conftest.$ac_ext >&5
7881
7882
ac_header_compiler=no
7883
fi
7884
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7885
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7886
echo "${ECHO_T}$ac_header_compiler" >&6
7887
7888
# Is the header present?
7889
echo "$as_me:$LINENO: checking sys/mount.h presence" >&5
7890
echo $ECHO_N "checking sys/mount.h presence... $ECHO_C" >&6
7891
cat >conftest.$ac_ext <<_ACEOF
7892
/* confdefs.h.  */
7893
_ACEOF
7894
cat confdefs.h >>conftest.$ac_ext
7895
cat >>conftest.$ac_ext <<_ACEOF
7896
/* end confdefs.h.  */
7897
#include <sys/mount.h>
7898
_ACEOF
7899
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7900
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7901
  ac_status=$?
7902
  grep -v '^ *+' conftest.er1 >conftest.err
7903
  rm -f conftest.er1
7904
  cat conftest.err >&5
7905
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906
  (exit $ac_status); } >/dev/null; then
7907
  if test -s conftest.err; then
7908
    ac_cpp_err=$ac_c_preproc_warn_flag
7909
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7910
  else
7911
    ac_cpp_err=
7912
  fi
7913
else
7914
  ac_cpp_err=yes
7915
fi
7916
if test -z "$ac_cpp_err"; then
7917
  ac_header_preproc=yes
7918
else
7919
  echo "$as_me: failed program was:" >&5
7920
sed 's/^/| /' conftest.$ac_ext >&5
7921
7922
  ac_header_preproc=no
7923
fi
7924
rm -f conftest.err conftest.$ac_ext
7925
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7926
echo "${ECHO_T}$ac_header_preproc" >&6
7927
7928
# So?  What about this header?
7929
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7930
  yes:no: )
7931
    { echo "$as_me:$LINENO: WARNING: sys/mount.h: accepted by the compiler, rejected by the preprocessor!" >&5
7932
echo "$as_me: WARNING: sys/mount.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7933
    { echo "$as_me:$LINENO: WARNING: sys/mount.h: proceeding with the compiler's result" >&5
7934
echo "$as_me: WARNING: sys/mount.h: proceeding with the compiler's result" >&2;}
7935
    ac_header_preproc=yes
7936
    ;;
7937
  no:yes:* )
7938
    { echo "$as_me:$LINENO: WARNING: sys/mount.h: present but cannot be compiled" >&5
7939
echo "$as_me: WARNING: sys/mount.h: present but cannot be compiled" >&2;}
7940
    { echo "$as_me:$LINENO: WARNING: sys/mount.h:     check for missing prerequisite headers?" >&5
7941
echo "$as_me: WARNING: sys/mount.h:     check for missing prerequisite headers?" >&2;}
7942
    { echo "$as_me:$LINENO: WARNING: sys/mount.h: see the Autoconf documentation" >&5
7943
echo "$as_me: WARNING: sys/mount.h: see the Autoconf documentation" >&2;}
7944
    { echo "$as_me:$LINENO: WARNING: sys/mount.h:     section \"Present But Cannot Be Compiled\"" >&5
7945
echo "$as_me: WARNING: sys/mount.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7946
    { echo "$as_me:$LINENO: WARNING: sys/mount.h: proceeding with the preprocessor's result" >&5
7947
echo "$as_me: WARNING: sys/mount.h: proceeding with the preprocessor's result" >&2;}
7948
    { echo "$as_me:$LINENO: WARNING: sys/mount.h: in the future, the compiler will take precedence" >&5
7949
echo "$as_me: WARNING: sys/mount.h: in the future, the compiler will take precedence" >&2;}
7950
    (
7951
      cat <<\_ASBOX
7952
## ---------------------------------- ##
7953
## Report this to vandrove@vc.cvut.cz ##
7954
## ---------------------------------- ##
7955
_ASBOX
7956
    ) |
7957
      sed "s/^/$as_me: WARNING:     /" >&2
7958
    ;;
7959
esac
7960
echo "$as_me:$LINENO: checking for sys/mount.h" >&5
7961
echo $ECHO_N "checking for sys/mount.h... $ECHO_C" >&6
7962
if test "${ac_cv_header_sys_mount_h+set}" = set; then
7963
  echo $ECHO_N "(cached) $ECHO_C" >&6
7964
else
7965
  ac_cv_header_sys_mount_h=$ac_header_preproc
7966
fi
7967
echo "$as_me:$LINENO: result: $ac_cv_header_sys_mount_h" >&5
7968
echo "${ECHO_T}$ac_cv_header_sys_mount_h" >&6
7969
7970
fi
7971
7972
7973
if test "$ac_cv_header_sys_mount_h" = "no"
7974
then
7975
  if test "$USE_KERNEL" = "1"
7976
  then
7977
    { echo "$as_me:$LINENO: WARNING: Cannot build kernel support because of no sys/mount.h file" >&5
7978
echo "$as_me: WARNING: Cannot build kernel support because of no sys/mount.h file" >&2;}
7979
    USE_KERNEL=0
7980
  fi
7981
  ncp_sys_mount_h="/* sys/mount.h does not exist */"
7982
  ncp_linux_fs_h="/* linux/fs.h is not needed */"
7983
else
7984
  ncp_sys_mount_h="#include <sys/mount.h>"
7985
  echo "$as_me:$LINENO: checking for mount constants in sys/mount.h" >&5
7986
echo $ECHO_N "checking for mount constants in sys/mount.h... $ECHO_C" >&6
7987
if test "${ncp_cv_linux_fs_needed+set}" = set; then
7988
  echo $ECHO_N "(cached) $ECHO_C" >&6
7989
else
7990
  cat >conftest.$ac_ext <<_ACEOF
7991
/* confdefs.h.  */
7992
_ACEOF
7993
cat confdefs.h >>conftest.$ac_ext
7994
cat >>conftest.$ac_ext <<_ACEOF
7995
/* end confdefs.h.  */
7996
#include <sys/mount.h>
7997
int
7998
main ()
7999
{
8000
mount(0,0,0,MS_RDONLY,0); umount(0)
8001
  ;
8002
  return 0;
8003
}
8004
_ACEOF
8005
rm -f conftest.$ac_objext
8006
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8007
  (eval $ac_compile) 2>conftest.er1
8008
  ac_status=$?
8009
  grep -v '^ *+' conftest.er1 >conftest.err
8010
  rm -f conftest.er1
8011
  cat conftest.err >&5
8012
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013
  (exit $ac_status); } &&
8014
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8015
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8016
  (eval $ac_try) 2>&5
8017
  ac_status=$?
8018
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019
  (exit $ac_status); }; } &&
8020
	 { ac_try='test -s conftest.$ac_objext'
8021
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022
  (eval $ac_try) 2>&5
8023
  ac_status=$?
8024
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025
  (exit $ac_status); }; }; then
8026
  ncp_cv_linux_fs_needed="yes"
8027
else
8028
  echo "$as_me: failed program was:" >&5
8029
sed 's/^/| /' conftest.$ac_ext >&5
8030
8031
ncp_cv_linux_fs_needed="no"
8032
8033
fi
8034
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8035
8036
fi
8037
echo "$as_me:$LINENO: result: $ncp_cv_linux_fs_needed" >&5
8038
echo "${ECHO_T}$ncp_cv_linux_fs_needed" >&6
8039
  if test "$ncp_cv_linux_fs_needed" = "yes"; then
8040
    ncp_linux_fs_h="/* linux/fs.h not needed */"
8041
  else
8042
    ncp_linux_fs_h="#include <linux/fs.h>"
8043
  fi
8044
fi
8045
8046
8047
8048
if test "${ac_cv_header_net_if_h+set}" = set; then
8049
  echo "$as_me:$LINENO: checking for net/if.h" >&5
8050
echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
8051
if test "${ac_cv_header_net_if_h+set}" = set; then
8052
  echo $ECHO_N "(cached) $ECHO_C" >&6
8053
fi
8054
echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
8055
echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
8056
else
8057
  # Is the header compilable?
8058
echo "$as_me:$LINENO: checking net/if.h usability" >&5
8059
echo $ECHO_N "checking net/if.h usability... $ECHO_C" >&6
8060
cat >conftest.$ac_ext <<_ACEOF
8061
/* confdefs.h.  */
8062
_ACEOF
8063
cat confdefs.h >>conftest.$ac_ext
8064
cat >>conftest.$ac_ext <<_ACEOF
8065
/* end confdefs.h.  */
8066
$ac_includes_default
8067
#include <net/if.h>
8068
_ACEOF
8069
rm -f conftest.$ac_objext
8070
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8071
  (eval $ac_compile) 2>conftest.er1
8072
  ac_status=$?
8073
  grep -v '^ *+' conftest.er1 >conftest.err
8074
  rm -f conftest.er1
8075
  cat conftest.err >&5
8076
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077
  (exit $ac_status); } &&
8078
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8079
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8080
  (eval $ac_try) 2>&5
8081
  ac_status=$?
8082
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8083
  (exit $ac_status); }; } &&
8084
	 { ac_try='test -s conftest.$ac_objext'
8085
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8086
  (eval $ac_try) 2>&5
8087
  ac_status=$?
8088
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8089
  (exit $ac_status); }; }; then
8090
  ac_header_compiler=yes
8091
else
8092
  echo "$as_me: failed program was:" >&5
8093
sed 's/^/| /' conftest.$ac_ext >&5
8094
8095
ac_header_compiler=no
8096
fi
8097
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8098
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8099
echo "${ECHO_T}$ac_header_compiler" >&6
8100
8101
# Is the header present?
8102
echo "$as_me:$LINENO: checking net/if.h presence" >&5
8103
echo $ECHO_N "checking net/if.h presence... $ECHO_C" >&6
8104
cat >conftest.$ac_ext <<_ACEOF
8105
/* confdefs.h.  */
8106
_ACEOF
8107
cat confdefs.h >>conftest.$ac_ext
8108
cat >>conftest.$ac_ext <<_ACEOF
8109
/* end confdefs.h.  */
8110
#include <net/if.h>
8111
_ACEOF
8112
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8113
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8114
  ac_status=$?
8115
  grep -v '^ *+' conftest.er1 >conftest.err
8116
  rm -f conftest.er1
8117
  cat conftest.err >&5
8118
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119
  (exit $ac_status); } >/dev/null; then
8120
  if test -s conftest.err; then
8121
    ac_cpp_err=$ac_c_preproc_warn_flag
8122
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8123
  else
8124
    ac_cpp_err=
8125
  fi
8126
else
8127
  ac_cpp_err=yes
8128
fi
8129
if test -z "$ac_cpp_err"; then
8130
  ac_header_preproc=yes
8131
else
8132
  echo "$as_me: failed program was:" >&5
8133
sed 's/^/| /' conftest.$ac_ext >&5
8134
8135
  ac_header_preproc=no
8136
fi
8137
rm -f conftest.err conftest.$ac_ext
8138
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8139
echo "${ECHO_T}$ac_header_preproc" >&6
8140
8141
# So?  What about this header?
8142
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8143
  yes:no: )
8144
    { echo "$as_me:$LINENO: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&5
8145
echo "$as_me: WARNING: net/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8146
    { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the compiler's result" >&5
8147
echo "$as_me: WARNING: net/if.h: proceeding with the compiler's result" >&2;}
8148
    ac_header_preproc=yes
8149
    ;;
8150
  no:yes:* )
8151
    { echo "$as_me:$LINENO: WARNING: net/if.h: present but cannot be compiled" >&5
8152
echo "$as_me: WARNING: net/if.h: present but cannot be compiled" >&2;}
8153
    { echo "$as_me:$LINENO: WARNING: net/if.h:     check for missing prerequisite headers?" >&5
8154
echo "$as_me: WARNING: net/if.h:     check for missing prerequisite headers?" >&2;}
8155
    { echo "$as_me:$LINENO: WARNING: net/if.h: see the Autoconf documentation" >&5
8156
echo "$as_me: WARNING: net/if.h: see the Autoconf documentation" >&2;}
8157
    { echo "$as_me:$LINENO: WARNING: net/if.h:     section \"Present But Cannot Be Compiled\"" >&5
8158
echo "$as_me: WARNING: net/if.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8159
    { echo "$as_me:$LINENO: WARNING: net/if.h: proceeding with the preprocessor's result" >&5
8160
echo "$as_me: WARNING: net/if.h: proceeding with the preprocessor's result" >&2;}
8161
    { echo "$as_me:$LINENO: WARNING: net/if.h: in the future, the compiler will take precedence" >&5
8162
echo "$as_me: WARNING: net/if.h: in the future, the compiler will take precedence" >&2;}
8163
    (
8164
      cat <<\_ASBOX
8165
## ---------------------------------- ##
8166
## Report this to vandrove@vc.cvut.cz ##
8167
## ---------------------------------- ##
8168
_ASBOX
8169
    ) |
8170
      sed "s/^/$as_me: WARNING:     /" >&2
8171
    ;;
8172
esac
8173
echo "$as_me:$LINENO: checking for net/if.h" >&5
8174
echo $ECHO_N "checking for net/if.h... $ECHO_C" >&6
8175
if test "${ac_cv_header_net_if_h+set}" = set; then
8176
  echo $ECHO_N "(cached) $ECHO_C" >&6
8177
else
8178
  ac_cv_header_net_if_h=$ac_header_preproc
8179
fi
8180
echo "$as_me:$LINENO: result: $ac_cv_header_net_if_h" >&5
8181
echo "${ECHO_T}$ac_cv_header_net_if_h" >&6
8182
8183
fi
8184
if test $ac_cv_header_net_if_h = yes; then
8185
  ncp_net_if_h="#include <net/if.h>"
8186
else
8187
  if test "${ac_cv_header_linux_if_h+set}" = set; then
8188
  echo "$as_me:$LINENO: checking for linux/if.h" >&5
8189
echo $ECHO_N "checking for linux/if.h... $ECHO_C" >&6
8190
if test "${ac_cv_header_linux_if_h+set}" = set; then
8191
  echo $ECHO_N "(cached) $ECHO_C" >&6
8192
fi
8193
echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_h" >&5
8194
echo "${ECHO_T}$ac_cv_header_linux_if_h" >&6
8195
else
8196
  # Is the header compilable?
8197
echo "$as_me:$LINENO: checking linux/if.h usability" >&5
8198
echo $ECHO_N "checking linux/if.h usability... $ECHO_C" >&6
8199
cat >conftest.$ac_ext <<_ACEOF
8200
/* confdefs.h.  */
8201
_ACEOF
8202
cat confdefs.h >>conftest.$ac_ext
8203
cat >>conftest.$ac_ext <<_ACEOF
8204
/* end confdefs.h.  */
8205
$ac_includes_default
8206
#include <linux/if.h>
8207
_ACEOF
8208
rm -f conftest.$ac_objext
8209
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8210
  (eval $ac_compile) 2>conftest.er1
8211
  ac_status=$?
8212
  grep -v '^ *+' conftest.er1 >conftest.err
8213
  rm -f conftest.er1
8214
  cat conftest.err >&5
8215
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8216
  (exit $ac_status); } &&
8217
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8218
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8219
  (eval $ac_try) 2>&5
8220
  ac_status=$?
8221
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222
  (exit $ac_status); }; } &&
8223
	 { ac_try='test -s conftest.$ac_objext'
8224
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8225
  (eval $ac_try) 2>&5
8226
  ac_status=$?
8227
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8228
  (exit $ac_status); }; }; then
8229
  ac_header_compiler=yes
8230
else
8231
  echo "$as_me: failed program was:" >&5
8232
sed 's/^/| /' conftest.$ac_ext >&5
8233
8234
ac_header_compiler=no
8235
fi
8236
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8237
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8238
echo "${ECHO_T}$ac_header_compiler" >&6
8239
8240
# Is the header present?
8241
echo "$as_me:$LINENO: checking linux/if.h presence" >&5
8242
echo $ECHO_N "checking linux/if.h presence... $ECHO_C" >&6
8243
cat >conftest.$ac_ext <<_ACEOF
8244
/* confdefs.h.  */
8245
_ACEOF
8246
cat confdefs.h >>conftest.$ac_ext
8247
cat >>conftest.$ac_ext <<_ACEOF
8248
/* end confdefs.h.  */
8249
#include <linux/if.h>
8250
_ACEOF
8251
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8252
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8253
  ac_status=$?
8254
  grep -v '^ *+' conftest.er1 >conftest.err
8255
  rm -f conftest.er1
8256
  cat conftest.err >&5
8257
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258
  (exit $ac_status); } >/dev/null; then
8259
  if test -s conftest.err; then
8260
    ac_cpp_err=$ac_c_preproc_warn_flag
8261
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8262
  else
8263
    ac_cpp_err=
8264
  fi
8265
else
8266
  ac_cpp_err=yes
8267
fi
8268
if test -z "$ac_cpp_err"; then
8269
  ac_header_preproc=yes
8270
else
8271
  echo "$as_me: failed program was:" >&5
8272
sed 's/^/| /' conftest.$ac_ext >&5
8273
8274
  ac_header_preproc=no
8275
fi
8276
rm -f conftest.err conftest.$ac_ext
8277
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8278
echo "${ECHO_T}$ac_header_preproc" >&6
8279
8280
# So?  What about this header?
8281
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8282
  yes:no: )
8283
    { echo "$as_me:$LINENO: WARNING: linux/if.h: accepted by the compiler, rejected by the preprocessor!" >&5
8284
echo "$as_me: WARNING: linux/if.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8285
    { echo "$as_me:$LINENO: WARNING: linux/if.h: proceeding with the compiler's result" >&5
8286
echo "$as_me: WARNING: linux/if.h: proceeding with the compiler's result" >&2;}
8287
    ac_header_preproc=yes
8288
    ;;
8289
  no:yes:* )
8290
    { echo "$as_me:$LINENO: WARNING: linux/if.h: present but cannot be compiled" >&5
8291
echo "$as_me: WARNING: linux/if.h: present but cannot be compiled" >&2;}
8292
    { echo "$as_me:$LINENO: WARNING: linux/if.h:     check for missing prerequisite headers?" >&5
8293
echo "$as_me: WARNING: linux/if.h:     check for missing prerequisite headers?" >&2;}
8294
    { echo "$as_me:$LINENO: WARNING: linux/if.h: see the Autoconf documentation" >&5
8295
echo "$as_me: WARNING: linux/if.h: see the Autoconf documentation" >&2;}
8296
    { echo "$as_me:$LINENO: WARNING: linux/if.h:     section \"Present But Cannot Be Compiled\"" >&5
8297
echo "$as_me: WARNING: linux/if.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8298
    { echo "$as_me:$LINENO: WARNING: linux/if.h: proceeding with the preprocessor's result" >&5
8299
echo "$as_me: WARNING: linux/if.h: proceeding with the preprocessor's result" >&2;}
8300
    { echo "$as_me:$LINENO: WARNING: linux/if.h: in the future, the compiler will take precedence" >&5
8301
echo "$as_me: WARNING: linux/if.h: in the future, the compiler will take precedence" >&2;}
8302
    (
8303
      cat <<\_ASBOX
8304
## ---------------------------------- ##
8305
## Report this to vandrove@vc.cvut.cz ##
8306
## ---------------------------------- ##
8307
_ASBOX
8308
    ) |
8309
      sed "s/^/$as_me: WARNING:     /" >&2
8310
    ;;
8311
esac
8312
echo "$as_me:$LINENO: checking for linux/if.h" >&5
8313
echo $ECHO_N "checking for linux/if.h... $ECHO_C" >&6
8314
if test "${ac_cv_header_linux_if_h+set}" = set; then
8315
  echo $ECHO_N "(cached) $ECHO_C" >&6
8316
else
8317
  ac_cv_header_linux_if_h=$ac_header_preproc
8318
fi
8319
echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_h" >&5
8320
echo "${ECHO_T}$ac_cv_header_linux_if_h" >&6
8321
8322
fi
8323
if test $ac_cv_header_linux_if_h = yes; then
8324
  ncp_net_if_h="#include <linux/if.h>"
8325
else
8326
  ncp_net_if_h="/* No interfaces support... */"
8327
8328
cat >>confdefs.h <<\_ACEOF
8329
#define NO_NET_IF_SUPPORT 1
8330
_ACEOF
8331
8332
     { echo "$as_me:$LINENO: WARNING: Neither <net/if.h> nor <linux/if.h> does exist" >&5
8333
echo "$as_me: WARNING: Neither <net/if.h> nor <linux/if.h> does exist" >&2;}
8334
8335
fi
8336
8337
8338
8339
fi
8340
8341
8342
8343
8344
if test "${ac_cv_header_net_route_h+set}" = set; then
8345
  echo "$as_me:$LINENO: checking for net/route.h" >&5
8346
echo $ECHO_N "checking for net/route.h... $ECHO_C" >&6
8347
if test "${ac_cv_header_net_route_h+set}" = set; then
8348
  echo $ECHO_N "(cached) $ECHO_C" >&6
8349
fi
8350
echo "$as_me:$LINENO: result: $ac_cv_header_net_route_h" >&5
8351
echo "${ECHO_T}$ac_cv_header_net_route_h" >&6
8352
else
8353
  # Is the header compilable?
8354
echo "$as_me:$LINENO: checking net/route.h usability" >&5
8355
echo $ECHO_N "checking net/route.h usability... $ECHO_C" >&6
8356
cat >conftest.$ac_ext <<_ACEOF
8357
/* confdefs.h.  */
8358
_ACEOF
8359
cat confdefs.h >>conftest.$ac_ext
8360
cat >>conftest.$ac_ext <<_ACEOF
8361
/* end confdefs.h.  */
8362
$ac_includes_default
8363
#include <net/route.h>
8364
_ACEOF
8365
rm -f conftest.$ac_objext
8366
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8367
  (eval $ac_compile) 2>conftest.er1
8368
  ac_status=$?
8369
  grep -v '^ *+' conftest.er1 >conftest.err
8370
  rm -f conftest.er1
8371
  cat conftest.err >&5
8372
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373
  (exit $ac_status); } &&
8374
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8375
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376
  (eval $ac_try) 2>&5
8377
  ac_status=$?
8378
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379
  (exit $ac_status); }; } &&
8380
	 { ac_try='test -s conftest.$ac_objext'
8381
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8382
  (eval $ac_try) 2>&5
8383
  ac_status=$?
8384
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385
  (exit $ac_status); }; }; then
8386
  ac_header_compiler=yes
8387
else
8388
  echo "$as_me: failed program was:" >&5
8389
sed 's/^/| /' conftest.$ac_ext >&5
8390
8391
ac_header_compiler=no
8392
fi
8393
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8394
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8395
echo "${ECHO_T}$ac_header_compiler" >&6
8396
8397
# Is the header present?
8398
echo "$as_me:$LINENO: checking net/route.h presence" >&5
8399
echo $ECHO_N "checking net/route.h presence... $ECHO_C" >&6
8400
cat >conftest.$ac_ext <<_ACEOF
8401
/* confdefs.h.  */
8402
_ACEOF
8403
cat confdefs.h >>conftest.$ac_ext
8404
cat >>conftest.$ac_ext <<_ACEOF
8405
/* end confdefs.h.  */
8406
#include <net/route.h>
8407
_ACEOF
8408
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8409
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8410
  ac_status=$?
8411
  grep -v '^ *+' conftest.er1 >conftest.err
8412
  rm -f conftest.er1
8413
  cat conftest.err >&5
8414
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8415
  (exit $ac_status); } >/dev/null; then
8416
  if test -s conftest.err; then
8417
    ac_cpp_err=$ac_c_preproc_warn_flag
8418
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8419
  else
8420
    ac_cpp_err=
8421
  fi
8422
else
8423
  ac_cpp_err=yes
8424
fi
8425
if test -z "$ac_cpp_err"; then
8426
  ac_header_preproc=yes
8427
else
8428
  echo "$as_me: failed program was:" >&5
8429
sed 's/^/| /' conftest.$ac_ext >&5
8430
8431
  ac_header_preproc=no
8432
fi
8433
rm -f conftest.err conftest.$ac_ext
8434
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8435
echo "${ECHO_T}$ac_header_preproc" >&6
8436
8437
# So?  What about this header?
8438
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8439
  yes:no: )
8440
    { echo "$as_me:$LINENO: WARNING: net/route.h: accepted by the compiler, rejected by the preprocessor!" >&5
8441
echo "$as_me: WARNING: net/route.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8442
    { echo "$as_me:$LINENO: WARNING: net/route.h: proceeding with the compiler's result" >&5
8443
echo "$as_me: WARNING: net/route.h: proceeding with the compiler's result" >&2;}
8444
    ac_header_preproc=yes
8445
    ;;
8446
  no:yes:* )
8447
    { echo "$as_me:$LINENO: WARNING: net/route.h: present but cannot be compiled" >&5
8448
echo "$as_me: WARNING: net/route.h: present but cannot be compiled" >&2;}
8449
    { echo "$as_me:$LINENO: WARNING: net/route.h:     check for missing prerequisite headers?" >&5
8450
echo "$as_me: WARNING: net/route.h:     check for missing prerequisite headers?" >&2;}
8451
    { echo "$as_me:$LINENO: WARNING: net/route.h: see the Autoconf documentation" >&5
8452
echo "$as_me: WARNING: net/route.h: see the Autoconf documentation" >&2;}
8453
    { echo "$as_me:$LINENO: WARNING: net/route.h:     section \"Present But Cannot Be Compiled\"" >&5
8454
echo "$as_me: WARNING: net/route.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8455
    { echo "$as_me:$LINENO: WARNING: net/route.h: proceeding with the preprocessor's result" >&5
8456
echo "$as_me: WARNING: net/route.h: proceeding with the preprocessor's result" >&2;}
8457
    { echo "$as_me:$LINENO: WARNING: net/route.h: in the future, the compiler will take precedence" >&5
8458
echo "$as_me: WARNING: net/route.h: in the future, the compiler will take precedence" >&2;}
8459
    (
8460
      cat <<\_ASBOX
8461
## ---------------------------------- ##
8462
## Report this to vandrove@vc.cvut.cz ##
8463
## ---------------------------------- ##
8464
_ASBOX
8465
    ) |
8466
      sed "s/^/$as_me: WARNING:     /" >&2
8467
    ;;
8468
esac
8469
echo "$as_me:$LINENO: checking for net/route.h" >&5
8470
echo $ECHO_N "checking for net/route.h... $ECHO_C" >&6
8471
if test "${ac_cv_header_net_route_h+set}" = set; then
8472
  echo $ECHO_N "(cached) $ECHO_C" >&6
8473
else
8474
  ac_cv_header_net_route_h=$ac_header_preproc
8475
fi
8476
echo "$as_me:$LINENO: result: $ac_cv_header_net_route_h" >&5
8477
echo "${ECHO_T}$ac_cv_header_net_route_h" >&6
8478
8479
fi
8480
if test $ac_cv_header_net_route_h = yes; then
8481
  ncp_net_route_h="#include <net/route.h>"
8482
else
8483
  if test "${ac_cv_header_linux_route_h+set}" = set; then
8484
  echo "$as_me:$LINENO: checking for linux/route.h" >&5
8485
echo $ECHO_N "checking for linux/route.h... $ECHO_C" >&6
8486
if test "${ac_cv_header_linux_route_h+set}" = set; then
8487
  echo $ECHO_N "(cached) $ECHO_C" >&6
8488
fi
8489
echo "$as_me:$LINENO: result: $ac_cv_header_linux_route_h" >&5
8490
echo "${ECHO_T}$ac_cv_header_linux_route_h" >&6
8491
else
8492
  # Is the header compilable?
8493
echo "$as_me:$LINENO: checking linux/route.h usability" >&5
8494
echo $ECHO_N "checking linux/route.h usability... $ECHO_C" >&6
8495
cat >conftest.$ac_ext <<_ACEOF
8496
/* confdefs.h.  */
8497
_ACEOF
8498
cat confdefs.h >>conftest.$ac_ext
8499
cat >>conftest.$ac_ext <<_ACEOF
8500
/* end confdefs.h.  */
8501
$ac_includes_default
8502
#include <linux/route.h>
8503
_ACEOF
8504
rm -f conftest.$ac_objext
8505
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8506
  (eval $ac_compile) 2>conftest.er1
8507
  ac_status=$?
8508
  grep -v '^ *+' conftest.er1 >conftest.err
8509
  rm -f conftest.er1
8510
  cat conftest.err >&5
8511
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512
  (exit $ac_status); } &&
8513
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8514
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8515
  (eval $ac_try) 2>&5
8516
  ac_status=$?
8517
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8518
  (exit $ac_status); }; } &&
8519
	 { ac_try='test -s conftest.$ac_objext'
8520
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521
  (eval $ac_try) 2>&5
8522
  ac_status=$?
8523
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524
  (exit $ac_status); }; }; then
8525
  ac_header_compiler=yes
8526
else
8527
  echo "$as_me: failed program was:" >&5
8528
sed 's/^/| /' conftest.$ac_ext >&5
8529
8530
ac_header_compiler=no
8531
fi
8532
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8533
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8534
echo "${ECHO_T}$ac_header_compiler" >&6
8535
8536
# Is the header present?
8537
echo "$as_me:$LINENO: checking linux/route.h presence" >&5
8538
echo $ECHO_N "checking linux/route.h presence... $ECHO_C" >&6
8539
cat >conftest.$ac_ext <<_ACEOF
8540
/* confdefs.h.  */
8541
_ACEOF
8542
cat confdefs.h >>conftest.$ac_ext
8543
cat >>conftest.$ac_ext <<_ACEOF
8544
/* end confdefs.h.  */
8545
#include <linux/route.h>
8546
_ACEOF
8547
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8548
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8549
  ac_status=$?
8550
  grep -v '^ *+' conftest.er1 >conftest.err
8551
  rm -f conftest.er1
8552
  cat conftest.err >&5
8553
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554
  (exit $ac_status); } >/dev/null; then
8555
  if test -s conftest.err; then
8556
    ac_cpp_err=$ac_c_preproc_warn_flag
8557
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8558
  else
8559
    ac_cpp_err=
8560
  fi
8561
else
8562
  ac_cpp_err=yes
8563
fi
8564
if test -z "$ac_cpp_err"; then
8565
  ac_header_preproc=yes
8566
else
8567
  echo "$as_me: failed program was:" >&5
8568
sed 's/^/| /' conftest.$ac_ext >&5
8569
8570
  ac_header_preproc=no
8571
fi
8572
rm -f conftest.err conftest.$ac_ext
8573
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8574
echo "${ECHO_T}$ac_header_preproc" >&6
8575
8576
# So?  What about this header?
8577
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8578
  yes:no: )
8579
    { echo "$as_me:$LINENO: WARNING: linux/route.h: accepted by the compiler, rejected by the preprocessor!" >&5
8580
echo "$as_me: WARNING: linux/route.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8581
    { echo "$as_me:$LINENO: WARNING: linux/route.h: proceeding with the compiler's result" >&5
8582
echo "$as_me: WARNING: linux/route.h: proceeding with the compiler's result" >&2;}
8583
    ac_header_preproc=yes
8584
    ;;
8585
  no:yes:* )
8586
    { echo "$as_me:$LINENO: WARNING: linux/route.h: present but cannot be compiled" >&5
8587
echo "$as_me: WARNING: linux/route.h: present but cannot be compiled" >&2;}
8588
    { echo "$as_me:$LINENO: WARNING: linux/route.h:     check for missing prerequisite headers?" >&5
8589
echo "$as_me: WARNING: linux/route.h:     check for missing prerequisite headers?" >&2;}
8590
    { echo "$as_me:$LINENO: WARNING: linux/route.h: see the Autoconf documentation" >&5
8591
echo "$as_me: WARNING: linux/route.h: see the Autoconf documentation" >&2;}
8592
    { echo "$as_me:$LINENO: WARNING: linux/route.h:     section \"Present But Cannot Be Compiled\"" >&5
8593
echo "$as_me: WARNING: linux/route.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8594
    { echo "$as_me:$LINENO: WARNING: linux/route.h: proceeding with the preprocessor's result" >&5
8595
echo "$as_me: WARNING: linux/route.h: proceeding with the preprocessor's result" >&2;}
8596
    { echo "$as_me:$LINENO: WARNING: linux/route.h: in the future, the compiler will take precedence" >&5
8597
echo "$as_me: WARNING: linux/route.h: in the future, the compiler will take precedence" >&2;}
8598
    (
8599
      cat <<\_ASBOX
8600
## ---------------------------------- ##
8601
## Report this to vandrove@vc.cvut.cz ##
8602
## ---------------------------------- ##
8603
_ASBOX
8604
    ) |
8605
      sed "s/^/$as_me: WARNING:     /" >&2
8606
    ;;
8607
esac
8608
echo "$as_me:$LINENO: checking for linux/route.h" >&5
8609
echo $ECHO_N "checking for linux/route.h... $ECHO_C" >&6
8610
if test "${ac_cv_header_linux_route_h+set}" = set; then
8611
  echo $ECHO_N "(cached) $ECHO_C" >&6
8612
else
8613
  ac_cv_header_linux_route_h=$ac_header_preproc
8614
fi
8615
echo "$as_me:$LINENO: result: $ac_cv_header_linux_route_h" >&5
8616
echo "${ECHO_T}$ac_cv_header_linux_route_h" >&6
8617
8618
fi
8619
if test $ac_cv_header_linux_route_h = yes; then
8620
  ncp_net_route_h="#include <linux/route.h>"
8621
else
8622
  ncp_net_route_h="/* No route support... */"
8623
8624
cat >>confdefs.h <<\_ACEOF
8625
#define NO_NET_ROUTE_SUPPORT 1
8626
_ACEOF
8627
8628
          { { echo "$as_me:$LINENO: error: Neither <net/route.h> nor <linux/route.h> does exist" >&5
8629
echo "$as_me: error: Neither <net/route.h> nor <linux/route.h> does exist" >&2;}
8630
   { (exit 1); exit 1; }; }
8631
8632
fi
8633
8634
8635
8636
fi
8637
8638
8639
8640
8641
ncp_if_ether_support="yes"
8642
if test "${ac_cv_header_netinet_if_ether_h+set}" = set; then
8643
  echo "$as_me:$LINENO: checking for netinet/if_ether.h" >&5
8644
echo $ECHO_N "checking for netinet/if_ether.h... $ECHO_C" >&6
8645
if test "${ac_cv_header_netinet_if_ether_h+set}" = set; then
8646
  echo $ECHO_N "(cached) $ECHO_C" >&6
8647
fi
8648
echo "$as_me:$LINENO: result: $ac_cv_header_netinet_if_ether_h" >&5
8649
echo "${ECHO_T}$ac_cv_header_netinet_if_ether_h" >&6
8650
else
8651
  # Is the header compilable?
8652
echo "$as_me:$LINENO: checking netinet/if_ether.h usability" >&5
8653
echo $ECHO_N "checking netinet/if_ether.h usability... $ECHO_C" >&6
8654
cat >conftest.$ac_ext <<_ACEOF
8655
/* confdefs.h.  */
8656
_ACEOF
8657
cat confdefs.h >>conftest.$ac_ext
8658
cat >>conftest.$ac_ext <<_ACEOF
8659
/* end confdefs.h.  */
8660
$ac_includes_default
8661
#include <netinet/if_ether.h>
8662
_ACEOF
8663
rm -f conftest.$ac_objext
8664
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8665
  (eval $ac_compile) 2>conftest.er1
8666
  ac_status=$?
8667
  grep -v '^ *+' conftest.er1 >conftest.err
8668
  rm -f conftest.er1
8669
  cat conftest.err >&5
8670
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8671
  (exit $ac_status); } &&
8672
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8673
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8674
  (eval $ac_try) 2>&5
8675
  ac_status=$?
8676
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8677
  (exit $ac_status); }; } &&
8678
	 { ac_try='test -s conftest.$ac_objext'
8679
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8680
  (eval $ac_try) 2>&5
8681
  ac_status=$?
8682
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683
  (exit $ac_status); }; }; then
8684
  ac_header_compiler=yes
8685
else
8686
  echo "$as_me: failed program was:" >&5
8687
sed 's/^/| /' conftest.$ac_ext >&5
8688
8689
ac_header_compiler=no
8690
fi
8691
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8692
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8693
echo "${ECHO_T}$ac_header_compiler" >&6
8694
8695
# Is the header present?
8696
echo "$as_me:$LINENO: checking netinet/if_ether.h presence" >&5
8697
echo $ECHO_N "checking netinet/if_ether.h presence... $ECHO_C" >&6
8698
cat >conftest.$ac_ext <<_ACEOF
8699
/* confdefs.h.  */
8700
_ACEOF
8701
cat confdefs.h >>conftest.$ac_ext
8702
cat >>conftest.$ac_ext <<_ACEOF
8703
/* end confdefs.h.  */
8704
#include <netinet/if_ether.h>
8705
_ACEOF
8706
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8707
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8708
  ac_status=$?
8709
  grep -v '^ *+' conftest.er1 >conftest.err
8710
  rm -f conftest.er1
8711
  cat conftest.err >&5
8712
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713
  (exit $ac_status); } >/dev/null; then
8714
  if test -s conftest.err; then
8715
    ac_cpp_err=$ac_c_preproc_warn_flag
8716
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8717
  else
8718
    ac_cpp_err=
8719
  fi
8720
else
8721
  ac_cpp_err=yes
8722
fi
8723
if test -z "$ac_cpp_err"; then
8724
  ac_header_preproc=yes
8725
else
8726
  echo "$as_me: failed program was:" >&5
8727
sed 's/^/| /' conftest.$ac_ext >&5
8728
8729
  ac_header_preproc=no
8730
fi
8731
rm -f conftest.err conftest.$ac_ext
8732
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8733
echo "${ECHO_T}$ac_header_preproc" >&6
8734
8735
# So?  What about this header?
8736
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8737
  yes:no: )
8738
    { echo "$as_me:$LINENO: WARNING: netinet/if_ether.h: accepted by the compiler, rejected by the preprocessor!" >&5
8739
echo "$as_me: WARNING: netinet/if_ether.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8740
    { echo "$as_me:$LINENO: WARNING: netinet/if_ether.h: proceeding with the compiler's result" >&5
8741
echo "$as_me: WARNING: netinet/if_ether.h: proceeding with the compiler's result" >&2;}
8742
    ac_header_preproc=yes
8743
    ;;
8744
  no:yes:* )
8745
    { echo "$as_me:$LINENO: WARNING: netinet/if_ether.h: present but cannot be compiled" >&5
8746
echo "$as_me: WARNING: netinet/if_ether.h: present but cannot be compiled" >&2;}
8747
    { echo "$as_me:$LINENO: WARNING: netinet/if_ether.h:     check for missing prerequisite headers?" >&5
8748
echo "$as_me: WARNING: netinet/if_ether.h:     check for missing prerequisite headers?" >&2;}
8749
    { echo "$as_me:$LINENO: WARNING: netinet/if_ether.h: see the Autoconf documentation" >&5
8750
echo "$as_me: WARNING: netinet/if_ether.h: see the Autoconf documentation" >&2;}
8751
    { echo "$as_me:$LINENO: WARNING: netinet/if_ether.h:     section \"Present But Cannot Be Compiled\"" >&5
8752
echo "$as_me: WARNING: netinet/if_ether.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8753
    { echo "$as_me:$LINENO: WARNING: netinet/if_ether.h: proceeding with the preprocessor's result" >&5
8754
echo "$as_me: WARNING: netinet/if_ether.h: proceeding with the preprocessor's result" >&2;}
8755
    { echo "$as_me:$LINENO: WARNING: netinet/if_ether.h: in the future, the compiler will take precedence" >&5
8756
echo "$as_me: WARNING: netinet/if_ether.h: in the future, the compiler will take precedence" >&2;}
8757
    (
8758
      cat <<\_ASBOX
8759
## ---------------------------------- ##
8760
## Report this to vandrove@vc.cvut.cz ##
8761
## ---------------------------------- ##
8762
_ASBOX
8763
    ) |
8764
      sed "s/^/$as_me: WARNING:     /" >&2
8765
    ;;
8766
esac
8767
echo "$as_me:$LINENO: checking for netinet/if_ether.h" >&5
8768
echo $ECHO_N "checking for netinet/if_ether.h... $ECHO_C" >&6
8769
if test "${ac_cv_header_netinet_if_ether_h+set}" = set; then
8770
  echo $ECHO_N "(cached) $ECHO_C" >&6
8771
else
8772
  ac_cv_header_netinet_if_ether_h=$ac_header_preproc
8773
fi
8774
echo "$as_me:$LINENO: result: $ac_cv_header_netinet_if_ether_h" >&5
8775
echo "${ECHO_T}$ac_cv_header_netinet_if_ether_h" >&6
8776
8777
fi
8778
8779
8780
if test "$ac_cv_header_netinet_if_ether_h" = "no"
8781
then
8782
  if test "${ac_cv_header_linux_if_ether_h+set}" = set; then
8783
  echo "$as_me:$LINENO: checking for linux/if_ether.h" >&5
8784
echo $ECHO_N "checking for linux/if_ether.h... $ECHO_C" >&6
8785
if test "${ac_cv_header_linux_if_ether_h+set}" = set; then
8786
  echo $ECHO_N "(cached) $ECHO_C" >&6
8787
fi
8788
echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_ether_h" >&5
8789
echo "${ECHO_T}$ac_cv_header_linux_if_ether_h" >&6
8790
else
8791
  # Is the header compilable?
8792
echo "$as_me:$LINENO: checking linux/if_ether.h usability" >&5
8793
echo $ECHO_N "checking linux/if_ether.h usability... $ECHO_C" >&6
8794
cat >conftest.$ac_ext <<_ACEOF
8795
/* confdefs.h.  */
8796
_ACEOF
8797
cat confdefs.h >>conftest.$ac_ext
8798
cat >>conftest.$ac_ext <<_ACEOF
8799
/* end confdefs.h.  */
8800
$ac_includes_default
8801
#include <linux/if_ether.h>
8802
_ACEOF
8803
rm -f conftest.$ac_objext
8804
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8805
  (eval $ac_compile) 2>conftest.er1
8806
  ac_status=$?
8807
  grep -v '^ *+' conftest.er1 >conftest.err
8808
  rm -f conftest.er1
8809
  cat conftest.err >&5
8810
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811
  (exit $ac_status); } &&
8812
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8813
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8814
  (eval $ac_try) 2>&5
8815
  ac_status=$?
8816
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8817
  (exit $ac_status); }; } &&
8818
	 { ac_try='test -s conftest.$ac_objext'
8819
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8820
  (eval $ac_try) 2>&5
8821
  ac_status=$?
8822
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823
  (exit $ac_status); }; }; then
8824
  ac_header_compiler=yes
8825
else
8826
  echo "$as_me: failed program was:" >&5
8827
sed 's/^/| /' conftest.$ac_ext >&5
8828
8829
ac_header_compiler=no
8830
fi
8831
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8832
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8833
echo "${ECHO_T}$ac_header_compiler" >&6
8834
8835
# Is the header present?
8836
echo "$as_me:$LINENO: checking linux/if_ether.h presence" >&5
8837
echo $ECHO_N "checking linux/if_ether.h presence... $ECHO_C" >&6
8838
cat >conftest.$ac_ext <<_ACEOF
8839
/* confdefs.h.  */
8840
_ACEOF
8841
cat confdefs.h >>conftest.$ac_ext
8842
cat >>conftest.$ac_ext <<_ACEOF
8843
/* end confdefs.h.  */
8844
#include <linux/if_ether.h>
8845
_ACEOF
8846
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8847
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8848
  ac_status=$?
8849
  grep -v '^ *+' conftest.er1 >conftest.err
8850
  rm -f conftest.er1
8851
  cat conftest.err >&5
8852
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853
  (exit $ac_status); } >/dev/null; then
8854
  if test -s conftest.err; then
8855
    ac_cpp_err=$ac_c_preproc_warn_flag
8856
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8857
  else
8858
    ac_cpp_err=
8859
  fi
8860
else
8861
  ac_cpp_err=yes
8862
fi
8863
if test -z "$ac_cpp_err"; then
8864
  ac_header_preproc=yes
8865
else
8866
  echo "$as_me: failed program was:" >&5
8867
sed 's/^/| /' conftest.$ac_ext >&5
8868
8869
  ac_header_preproc=no
8870
fi
8871
rm -f conftest.err conftest.$ac_ext
8872
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8873
echo "${ECHO_T}$ac_header_preproc" >&6
8874
8875
# So?  What about this header?
8876
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8877
  yes:no: )
8878
    { echo "$as_me:$LINENO: WARNING: linux/if_ether.h: accepted by the compiler, rejected by the preprocessor!" >&5
8879
echo "$as_me: WARNING: linux/if_ether.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8880
    { echo "$as_me:$LINENO: WARNING: linux/if_ether.h: proceeding with the compiler's result" >&5
8881
echo "$as_me: WARNING: linux/if_ether.h: proceeding with the compiler's result" >&2;}
8882
    ac_header_preproc=yes
8883
    ;;
8884
  no:yes:* )
8885
    { echo "$as_me:$LINENO: WARNING: linux/if_ether.h: present but cannot be compiled" >&5
8886
echo "$as_me: WARNING: linux/if_ether.h: present but cannot be compiled" >&2;}
8887
    { echo "$as_me:$LINENO: WARNING: linux/if_ether.h:     check for missing prerequisite headers?" >&5
8888
echo "$as_me: WARNING: linux/if_ether.h:     check for missing prerequisite headers?" >&2;}
8889
    { echo "$as_me:$LINENO: WARNING: linux/if_ether.h: see the Autoconf documentation" >&5
8890
echo "$as_me: WARNING: linux/if_ether.h: see the Autoconf documentation" >&2;}
8891
    { echo "$as_me:$LINENO: WARNING: linux/if_ether.h:     section \"Present But Cannot Be Compiled\"" >&5
8892
echo "$as_me: WARNING: linux/if_ether.h:     section \"Present But Cannot Be Compiled\"" >&2;}
8893
    { echo "$as_me:$LINENO: WARNING: linux/if_ether.h: proceeding with the preprocessor's result" >&5
8894
echo "$as_me: WARNING: linux/if_ether.h: proceeding with the preprocessor's result" >&2;}
8895
    { echo "$as_me:$LINENO: WARNING: linux/if_ether.h: in the future, the compiler will take precedence" >&5
8896
echo "$as_me: WARNING: linux/if_ether.h: in the future, the compiler will take precedence" >&2;}
8897
    (
8898
      cat <<\_ASBOX
8899
## ---------------------------------- ##
8900
## Report this to vandrove@vc.cvut.cz ##
8901
## ---------------------------------- ##
8902
_ASBOX
8903
    ) |
8904
      sed "s/^/$as_me: WARNING:     /" >&2
8905
    ;;
8906
esac
8907
echo "$as_me:$LINENO: checking for linux/if_ether.h" >&5
8908
echo $ECHO_N "checking for linux/if_ether.h... $ECHO_C" >&6
8909
if test "${ac_cv_header_linux_if_ether_h+set}" = set; then
8910
  echo $ECHO_N "(cached) $ECHO_C" >&6
8911
else
8912
  ac_cv_header_linux_if_ether_h=$ac_header_preproc
8913
fi
8914
echo "$as_me:$LINENO: result: $ac_cv_header_linux_if_ether_h" >&5
8915
echo "${ECHO_T}$ac_cv_header_linux_if_ether_h" >&6
8916
8917
fi
8918
8919
8920
  if test "$ac_cv_header_linux_if_ether_h" = "no"
8921
  then
8922
    ncp_if_ether_support="no"
8923
  fi
8924
fi
8925
8926
8927
if test "${ac_cv_header_sys_select_h+set}" = set; then
8928
  echo "$as_me:$LINENO: checking for sys/select.h" >&5
8929
echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
8930
if test "${ac_cv_header_sys_select_h+set}" = set; then
8931
  echo $ECHO_N "(cached) $ECHO_C" >&6
8932
fi
8933
echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
8934
echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
8935
else
8936
  # Is the header compilable?
8937
echo "$as_me:$LINENO: checking sys/select.h usability" >&5
8938
echo $ECHO_N "checking sys/select.h usability... $ECHO_C" >&6
8939
cat >conftest.$ac_ext <<_ACEOF
8940
/* confdefs.h.  */
8941
_ACEOF
8942
cat confdefs.h >>conftest.$ac_ext
8943
cat >>conftest.$ac_ext <<_ACEOF
8944
/* end confdefs.h.  */
8945
$ac_includes_default
8946
#include <sys/select.h>
8947
_ACEOF
8948
rm -f conftest.$ac_objext
8949
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8950
  (eval $ac_compile) 2>conftest.er1
8951
  ac_status=$?
8952
  grep -v '^ *+' conftest.er1 >conftest.err
8953
  rm -f conftest.er1
8954
  cat conftest.err >&5
8955
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8956
  (exit $ac_status); } &&
8957
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
8958
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8959
  (eval $ac_try) 2>&5
8960
  ac_status=$?
8961
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962
  (exit $ac_status); }; } &&
8963
	 { ac_try='test -s conftest.$ac_objext'
8964
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8965
  (eval $ac_try) 2>&5
8966
  ac_status=$?
8967
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968
  (exit $ac_status); }; }; then
8969
  ac_header_compiler=yes
8970
else
8971
  echo "$as_me: failed program was:" >&5
8972
sed 's/^/| /' conftest.$ac_ext >&5
8973
8974
ac_header_compiler=no
8975
fi
8976
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8977
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8978
echo "${ECHO_T}$ac_header_compiler" >&6
8979
8980
# Is the header present?
8981
echo "$as_me:$LINENO: checking sys/select.h presence" >&5
8982
echo $ECHO_N "checking sys/select.h presence... $ECHO_C" >&6
8983
cat >conftest.$ac_ext <<_ACEOF
8984
/* confdefs.h.  */
8985
_ACEOF
8986
cat confdefs.h >>conftest.$ac_ext
8987
cat >>conftest.$ac_ext <<_ACEOF
8988
/* end confdefs.h.  */
8989
#include <sys/select.h>
8990
_ACEOF
8991
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8992
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8993
  ac_status=$?
8994
  grep -v '^ *+' conftest.er1 >conftest.err
8995
  rm -f conftest.er1
8996
  cat conftest.err >&5
8997
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998
  (exit $ac_status); } >/dev/null; then
8999
  if test -s conftest.err; then
9000
    ac_cpp_err=$ac_c_preproc_warn_flag
9001
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9002
  else
9003
    ac_cpp_err=
9004
  fi
9005
else
9006
  ac_cpp_err=yes
9007
fi
9008
if test -z "$ac_cpp_err"; then
9009
  ac_header_preproc=yes
9010
else
9011
  echo "$as_me: failed program was:" >&5
9012
sed 's/^/| /' conftest.$ac_ext >&5
9013
9014
  ac_header_preproc=no
9015
fi
9016
rm -f conftest.err conftest.$ac_ext
9017
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9018
echo "${ECHO_T}$ac_header_preproc" >&6
9019
9020
# So?  What about this header?
9021
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9022
  yes:no: )
9023
    { echo "$as_me:$LINENO: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&5
9024
echo "$as_me: WARNING: sys/select.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9025
    { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the compiler's result" >&5
9026
echo "$as_me: WARNING: sys/select.h: proceeding with the compiler's result" >&2;}
9027
    ac_header_preproc=yes
9028
    ;;
9029
  no:yes:* )
9030
    { echo "$as_me:$LINENO: WARNING: sys/select.h: present but cannot be compiled" >&5
9031
echo "$as_me: WARNING: sys/select.h: present but cannot be compiled" >&2;}
9032
    { echo "$as_me:$LINENO: WARNING: sys/select.h:     check for missing prerequisite headers?" >&5
9033
echo "$as_me: WARNING: sys/select.h:     check for missing prerequisite headers?" >&2;}
9034
    { echo "$as_me:$LINENO: WARNING: sys/select.h: see the Autoconf documentation" >&5
9035
echo "$as_me: WARNING: sys/select.h: see the Autoconf documentation" >&2;}
9036
    { echo "$as_me:$LINENO: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&5
9037
echo "$as_me: WARNING: sys/select.h:     section \"Present But Cannot Be Compiled\"" >&2;}
9038
    { echo "$as_me:$LINENO: WARNING: sys/select.h: proceeding with the preprocessor's result" >&5
9039
echo "$as_me: WARNING: sys/select.h: proceeding with the preprocessor's result" >&2;}
9040
    { echo "$as_me:$LINENO: WARNING: sys/select.h: in the future, the compiler will take precedence" >&5
9041
echo "$as_me: WARNING: sys/select.h: in the future, the compiler will take precedence" >&2;}
9042
    (
9043
      cat <<\_ASBOX
9044
## ---------------------------------- ##
9045
## Report this to vandrove@vc.cvut.cz ##
9046
## ---------------------------------- ##
9047
_ASBOX
9048
    ) |
9049
      sed "s/^/$as_me: WARNING:     /" >&2
9050
    ;;
9051
esac
9052
echo "$as_me:$LINENO: checking for sys/select.h" >&5
9053
echo $ECHO_N "checking for sys/select.h... $ECHO_C" >&6
9054
if test "${ac_cv_header_sys_select_h+set}" = set; then
9055
  echo $ECHO_N "(cached) $ECHO_C" >&6
9056
else
9057
  ac_cv_header_sys_select_h=$ac_header_preproc
9058
fi
9059
echo "$as_me:$LINENO: result: $ac_cv_header_sys_select_h" >&5
9060
echo "${ECHO_T}$ac_cv_header_sys_select_h" >&6
9061
9062
fi
9063
if test $ac_cv_header_sys_select_h = yes; then
9064
  ncp_sys_select_h="#include <sys/select.h>"
9065
else
9066
  ncp_sys_select_h="#include <sys/time.h>"
9067
9068
fi
9069
9070
9071
9072
9073
echo "$as_me:$LINENO: checking for C9X integer types" >&5
9074
echo $ECHO_N "checking for C9X integer types... $ECHO_C" >&6
9075
if test "${ncp_cv_c9x_stdint+set}" = set; then
9076
  echo $ECHO_N "(cached) $ECHO_C" >&6
9077
else
9078
  cat >conftest.$ac_ext <<_ACEOF
9079
/* confdefs.h.  */
9080
_ACEOF
9081
cat confdefs.h >>conftest.$ac_ext
9082
cat >>conftest.$ac_ext <<_ACEOF
9083
/* end confdefs.h.  */
9084
#include <stdint.h>
9085
int
9086
main ()
9087
{
9088
int_least16_t sl16;
9089
int_least32_t sl32;
9090
uint_least16_t ul16;
9091
uint_least32_t ul32;
9092
int_fast16_t sf16;
9093
int_fast32_t sf32;
9094
uint_fast16_t uf16;
9095
uint_fast32_t uf32
9096
  ;
9097
  return 0;
9098
}
9099
_ACEOF
9100
rm -f conftest.$ac_objext
9101
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9102
  (eval $ac_compile) 2>conftest.er1
9103
  ac_status=$?
9104
  grep -v '^ *+' conftest.er1 >conftest.err
9105
  rm -f conftest.er1
9106
  cat conftest.err >&5
9107
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9108
  (exit $ac_status); } &&
9109
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9110
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111
  (eval $ac_try) 2>&5
9112
  ac_status=$?
9113
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114
  (exit $ac_status); }; } &&
9115
	 { ac_try='test -s conftest.$ac_objext'
9116
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117
  (eval $ac_try) 2>&5
9118
  ac_status=$?
9119
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120
  (exit $ac_status); }; }; then
9121
  ncp_cv_c9x_stdint="yes"
9122
else
9123
  echo "$as_me: failed program was:" >&5
9124
sed 's/^/| /' conftest.$ac_ext >&5
9125
9126
ncp_cv_c9x_stdint="no"
9127
9128
fi
9129
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9130
9131
fi
9132
echo "$as_me:$LINENO: result: $ncp_cv_c9x_stdint" >&5
9133
echo "${ECHO_T}$ncp_cv_c9x_stdint" >&6
9134
if test "$ncp_cv_c9x_stdint" = "yes"
9135
then
9136
  stdint_types="1"
9137
else
9138
  stdint_types="0"
9139
fi
9140
9141
9142
if test "$USE_KERNEL" = "1"
9143
then
9144
  if test "$ncp_sys_select_h" = "#include <sys/select.h>"
9145
  then
9146
    echo "$as_me:$LINENO: checking whether sys/select.h and linux/posix_types.h may both be included" >&5
9147
echo $ECHO_N "checking whether sys/select.h and linux/posix_types.h may both be included... $ECHO_C" >&6
9148
if test "${ncp_cv_posix_and_select+set}" = set; then
9149
  echo $ECHO_N "(cached) $ECHO_C" >&6
9150
else
9151
  cat >conftest.$ac_ext <<_ACEOF
9152
/* confdefs.h.  */
9153
_ACEOF
9154
cat confdefs.h >>conftest.$ac_ext
9155
cat >>conftest.$ac_ext <<_ACEOF
9156
/* end confdefs.h.  */
9157
#include <sys/select.h>
9158
#include <linux/posix_types.h>
9159
int
9160
main ()
9161
{
9162
fd_set a;
9163
select(0, &a, &a, &a, 0)
9164
  ;
9165
  return 0;
9166
}
9167
_ACEOF
9168
rm -f conftest.$ac_objext
9169
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9170
  (eval $ac_compile) 2>conftest.er1
9171
  ac_status=$?
9172
  grep -v '^ *+' conftest.er1 >conftest.err
9173
  rm -f conftest.er1
9174
  cat conftest.err >&5
9175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9176
  (exit $ac_status); } &&
9177
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9178
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9179
  (eval $ac_try) 2>&5
9180
  ac_status=$?
9181
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182
  (exit $ac_status); }; } &&
9183
	 { ac_try='test -s conftest.$ac_objext'
9184
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9185
  (eval $ac_try) 2>&5
9186
  ac_status=$?
9187
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188
  (exit $ac_status); }; }; then
9189
  ncp_cv_posix_and_select="yes"
9190
else
9191
  echo "$as_me: failed program was:" >&5
9192
sed 's/^/| /' conftest.$ac_ext >&5
9193
9194
ncp_cv_posix_and_select="no"
9195
9196
fi
9197
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9198
9199
fi
9200
echo "$as_me:$LINENO: result: $ncp_cv_posix_and_select" >&5
9201
echo "${ECHO_T}$ncp_cv_posix_and_select" >&6
9202
  else
9203
    ncp_cv_posix_and_select="yes"
9204
  fi
9205
  if test "$ncp_cv_posix_and_select" = "no"
9206
  then
9207
    { echo "$as_me:$LINENO: WARNING: sys/select.h and linux/posix_types.h cannot be included together, will not build kernel support" >&5
9208
echo "$as_me: WARNING: sys/select.h and linux/posix_types.h cannot be included together, will not build kernel support" >&2;}
9209
    USE_KERNEL=0
9210
  fi
9211
fi
9212
9213
echo "$as_me:$LINENO: checking for third parameter to accept" >&5
9214
echo $ECHO_N "checking for third parameter to accept... $ECHO_C" >&6
9215
if test "${ncp_cv_socklen_t+set}" = set; then
9216
  echo $ECHO_N "(cached) $ECHO_C" >&6
9217
else
9218
  cat >conftest.$ac_ext <<_ACEOF
9219
/* confdefs.h.  */
9220
_ACEOF
9221
cat confdefs.h >>conftest.$ac_ext
9222
cat >>conftest.$ac_ext <<_ACEOF
9223
/* end confdefs.h.  */
9224
#include <sys/socket.h>
9225
int
9226
main ()
9227
{
9228
socklen_t a;
9229
     accept(0, NULL, &a)
9230
  ;
9231
  return 0;
9232
}
9233
_ACEOF
9234
rm -f conftest.$ac_objext
9235
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9236
  (eval $ac_compile) 2>conftest.er1
9237
  ac_status=$?
9238
  grep -v '^ *+' conftest.er1 >conftest.err
9239
  rm -f conftest.er1
9240
  cat conftest.err >&5
9241
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9242
  (exit $ac_status); } &&
9243
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9244
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9245
  (eval $ac_try) 2>&5
9246
  ac_status=$?
9247
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9248
  (exit $ac_status); }; } &&
9249
	 { ac_try='test -s conftest.$ac_objext'
9250
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9251
  (eval $ac_try) 2>&5
9252
  ac_status=$?
9253
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9254
  (exit $ac_status); }; }; then
9255
  ncp_cv_socklen_t="socklen_t"
9256
else
9257
  echo "$as_me: failed program was:" >&5
9258
sed 's/^/| /' conftest.$ac_ext >&5
9259
9260
cat >conftest.$ac_ext <<_ACEOF
9261
/* confdefs.h.  */
9262
_ACEOF
9263
cat confdefs.h >>conftest.$ac_ext
9264
cat >>conftest.$ac_ext <<_ACEOF
9265
/* end confdefs.h.  */
9266
#include <sys/socket.h>
9267
int
9268
main ()
9269
{
9270
int a;
9271
       accept(0, NULL, &a)
9272
  ;
9273
  return 0;
9274
}
9275
_ACEOF
9276
rm -f conftest.$ac_objext
9277
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9278
  (eval $ac_compile) 2>conftest.er1
9279
  ac_status=$?
9280
  grep -v '^ *+' conftest.er1 >conftest.err
9281
  rm -f conftest.er1
9282
  cat conftest.err >&5
9283
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284
  (exit $ac_status); } &&
9285
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9286
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287
  (eval $ac_try) 2>&5
9288
  ac_status=$?
9289
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290
  (exit $ac_status); }; } &&
9291
	 { ac_try='test -s conftest.$ac_objext'
9292
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9293
  (eval $ac_try) 2>&5
9294
  ac_status=$?
9295
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9296
  (exit $ac_status); }; }; then
9297
  ncp_cv_socklen_t="int"
9298
else
9299
  echo "$as_me: failed program was:" >&5
9300
sed 's/^/| /' conftest.$ac_ext >&5
9301
9302
      ncp_cv_socklen_t="unsigned int"
9303
9304
fi
9305
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9306
9307
fi
9308
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9309
9310
fi
9311
echo "$as_me:$LINENO: result: $ncp_cv_socklen_t" >&5
9312
echo "${ECHO_T}$ncp_cv_socklen_t" >&6
9313
if test "$ncp_cv_socklen_t" = "socklen_t"
9314
then
9315
  socklen_t="/* socklen_t is defined by libc */"
9316
else
9317
  socklen_t="typedef $ncp_cv_socklen_t socklen_t;"
9318
fi
9319
9320
9321
echo "$as_me:$LINENO: checking for wchar_t" >&5
9322
echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6
9323
if test "${ac_cv_type_wchar_t+set}" = set; then
9324
  echo $ECHO_N "(cached) $ECHO_C" >&6
9325
else
9326
  cat >conftest.$ac_ext <<_ACEOF
9327
/* confdefs.h.  */
9328
_ACEOF
9329
cat confdefs.h >>conftest.$ac_ext
9330
cat >>conftest.$ac_ext <<_ACEOF
9331
/* end confdefs.h.  */
9332
$ac_includes_default
9333
int
9334
main ()
9335
{
9336
if ((wchar_t *) 0)
9337
  return 0;
9338
if (sizeof (wchar_t))
9339
  return 0;
9340
  ;
9341
  return 0;
9342
}
9343
_ACEOF
9344
rm -f conftest.$ac_objext
9345
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9346
  (eval $ac_compile) 2>conftest.er1
9347
  ac_status=$?
9348
  grep -v '^ *+' conftest.er1 >conftest.err
9349
  rm -f conftest.er1
9350
  cat conftest.err >&5
9351
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352
  (exit $ac_status); } &&
9353
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9354
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9355
  (eval $ac_try) 2>&5
9356
  ac_status=$?
9357
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358
  (exit $ac_status); }; } &&
9359
	 { ac_try='test -s conftest.$ac_objext'
9360
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9361
  (eval $ac_try) 2>&5
9362
  ac_status=$?
9363
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364
  (exit $ac_status); }; }; then
9365
  ac_cv_type_wchar_t=yes
9366
else
9367
  echo "$as_me: failed program was:" >&5
9368
sed 's/^/| /' conftest.$ac_ext >&5
9369
9370
ac_cv_type_wchar_t=no
9371
fi
9372
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9373
fi
9374
echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
9375
echo "${ECHO_T}$ac_cv_type_wchar_t" >&6
9376
if test $ac_cv_type_wchar_t = yes; then
9377
  :
9378
else
9379
9380
cat >>confdefs.h <<\_ACEOF
9381
#define wchar_t unsigned int
9382
_ACEOF
9383
9384
fi
9385
9386
9387
9388
for ac_header in wchar.h iconv.h
9389
do
9390
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9391
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9392
  echo "$as_me:$LINENO: checking for $ac_header" >&5
9393
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9394
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9395
  echo $ECHO_N "(cached) $ECHO_C" >&6
9396
fi
9397
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9398
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9399
else
9400
  # Is the header compilable?
9401
echo "$as_me:$LINENO: checking $ac_header usability" >&5
9402
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9403
cat >conftest.$ac_ext <<_ACEOF
9404
/* confdefs.h.  */
9405
_ACEOF
9406
cat confdefs.h >>conftest.$ac_ext
9407
cat >>conftest.$ac_ext <<_ACEOF
9408
/* end confdefs.h.  */
9409
$ac_includes_default
9410
#include <$ac_header>
9411
_ACEOF
9412
rm -f conftest.$ac_objext
9413
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9414
  (eval $ac_compile) 2>conftest.er1
9415
  ac_status=$?
9416
  grep -v '^ *+' conftest.er1 >conftest.err
9417
  rm -f conftest.er1
9418
  cat conftest.err >&5
9419
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9420
  (exit $ac_status); } &&
9421
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9422
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9423
  (eval $ac_try) 2>&5
9424
  ac_status=$?
9425
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426
  (exit $ac_status); }; } &&
9427
	 { ac_try='test -s conftest.$ac_objext'
9428
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9429
  (eval $ac_try) 2>&5
9430
  ac_status=$?
9431
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432
  (exit $ac_status); }; }; then
9433
  ac_header_compiler=yes
9434
else
9435
  echo "$as_me: failed program was:" >&5
9436
sed 's/^/| /' conftest.$ac_ext >&5
9437
9438
ac_header_compiler=no
9439
fi
9440
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9441
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9442
echo "${ECHO_T}$ac_header_compiler" >&6
9443
9444
# Is the header present?
9445
echo "$as_me:$LINENO: checking $ac_header presence" >&5
9446
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9447
cat >conftest.$ac_ext <<_ACEOF
9448
/* confdefs.h.  */
9449
_ACEOF
9450
cat confdefs.h >>conftest.$ac_ext
9451
cat >>conftest.$ac_ext <<_ACEOF
9452
/* end confdefs.h.  */
9453
#include <$ac_header>
9454
_ACEOF
9455
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9456
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9457
  ac_status=$?
9458
  grep -v '^ *+' conftest.er1 >conftest.err
9459
  rm -f conftest.er1
9460
  cat conftest.err >&5
9461
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462
  (exit $ac_status); } >/dev/null; then
9463
  if test -s conftest.err; then
9464
    ac_cpp_err=$ac_c_preproc_warn_flag
9465
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9466
  else
9467
    ac_cpp_err=
9468
  fi
9469
else
9470
  ac_cpp_err=yes
9471
fi
9472
if test -z "$ac_cpp_err"; then
9473
  ac_header_preproc=yes
9474
else
9475
  echo "$as_me: failed program was:" >&5
9476
sed 's/^/| /' conftest.$ac_ext >&5
9477
9478
  ac_header_preproc=no
9479
fi
9480
rm -f conftest.err conftest.$ac_ext
9481
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9482
echo "${ECHO_T}$ac_header_preproc" >&6
9483
9484
# So?  What about this header?
9485
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9486
  yes:no: )
9487
    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9488
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9489
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9490
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9491
    ac_header_preproc=yes
9492
    ;;
9493
  no:yes:* )
9494
    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9495
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9496
    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9497
echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9498
    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9499
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9500
    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9501
echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9502
    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9503
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9504
    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9505
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9506
    (
9507
      cat <<\_ASBOX
9508
## ---------------------------------- ##
9509
## Report this to vandrove@vc.cvut.cz ##
9510
## ---------------------------------- ##
9511
_ASBOX
9512
    ) |
9513
      sed "s/^/$as_me: WARNING:     /" >&2
9514
    ;;
9515
esac
9516
echo "$as_me:$LINENO: checking for $ac_header" >&5
9517
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9518
if eval "test \"\${$as_ac_Header+set}\" = set"; then
9519
  echo $ECHO_N "(cached) $ECHO_C" >&6
9520
else
9521
  eval "$as_ac_Header=\$ac_header_preproc"
9522
fi
9523
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9524
echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9525
9526
fi
9527
if test `eval echo '${'$as_ac_Header'}'` = yes; then
9528
  cat >>confdefs.h <<_ACEOF
9529
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9530
_ACEOF
9531
9532
fi
9533
9534
done
9535
9536
if test "$ac_cv_header_wchar_h" = "yes"
9537
then
9538
  wchar_h="#include <wchar.h>"
9539
else
9540
  wchar_h="/* no wchar_h header... */"
9541
fi
9542
9543
9544
if test "$ac_cv_header_iconv_h" = "yes"
9545
then
9546
9547
9548
9549
9550
9551
          am_save_CPPFLAGS="$CPPFLAGS"
9552
9553
  for element in $INCICONV; do
9554
    haveit=
9555
    for x in $CPPFLAGS; do
9556
9557
  acl_save_prefix="$prefix"
9558
  prefix="$acl_final_prefix"
9559
  acl_save_exec_prefix="$exec_prefix"
9560
  exec_prefix="$acl_final_exec_prefix"
9561
  eval x=\"$x\"
9562
  exec_prefix="$acl_save_exec_prefix"
9563
  prefix="$acl_save_prefix"
9564
9565
      if test "X$x" = "X$element"; then
9566
        haveit=yes
9567
        break
9568
      fi
9569
    done
9570
    if test -z "$haveit"; then
9571
      CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9572
    fi
9573
  done
9574
9575
9576
  echo "$as_me:$LINENO: checking for iconv" >&5
9577
echo $ECHO_N "checking for iconv... $ECHO_C" >&6
9578
if test "${am_cv_func_iconv+set}" = set; then
9579
  echo $ECHO_N "(cached) $ECHO_C" >&6
9580
else
9581
9582
    am_cv_func_iconv="no, consider installing GNU libiconv"
9583
    am_cv_lib_iconv=no
9584
    cat >conftest.$ac_ext <<_ACEOF
9585
/* confdefs.h.  */
9586
_ACEOF
9587
cat confdefs.h >>conftest.$ac_ext
9588
cat >>conftest.$ac_ext <<_ACEOF
9589
/* end confdefs.h.  */
9590
#include <stdlib.h>
9591
#include <iconv.h>
9592
int
9593
main ()
9594
{
9595
iconv_t cd = iconv_open("","");
9596
       iconv(cd,NULL,NULL,NULL,NULL);
9597
       iconv_close(cd);
9598
  ;
9599
  return 0;
9600
}
9601
_ACEOF
9602
rm -f conftest.$ac_objext conftest$ac_exeext
9603
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9604
  (eval $ac_link) 2>conftest.er1
9605
  ac_status=$?
9606
  grep -v '^ *+' conftest.er1 >conftest.err
9607
  rm -f conftest.er1
9608
  cat conftest.err >&5
9609
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9610
  (exit $ac_status); } &&
9611
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9612
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613
  (eval $ac_try) 2>&5
9614
  ac_status=$?
9615
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616
  (exit $ac_status); }; } &&
9617
	 { ac_try='test -s conftest$ac_exeext'
9618
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619
  (eval $ac_try) 2>&5
9620
  ac_status=$?
9621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9622
  (exit $ac_status); }; }; then
9623
  am_cv_func_iconv=yes
9624
else
9625
  echo "$as_me: failed program was:" >&5
9626
sed 's/^/| /' conftest.$ac_ext >&5
9627
9628
fi
9629
rm -f conftest.err conftest.$ac_objext \
9630
      conftest$ac_exeext conftest.$ac_ext
9631
    if test "$am_cv_func_iconv" != yes; then
9632
      am_save_LIBS="$LIBS"
9633
      LIBS="$LIBS $LIBICONV"
9634
      cat >conftest.$ac_ext <<_ACEOF
9635
/* confdefs.h.  */
9636
_ACEOF
9637
cat confdefs.h >>conftest.$ac_ext
9638
cat >>conftest.$ac_ext <<_ACEOF
9639
/* end confdefs.h.  */
9640
#include <stdlib.h>
9641
#include <iconv.h>
9642
int
9643
main ()
9644
{
9645
iconv_t cd = iconv_open("","");
9646
         iconv(cd,NULL,NULL,NULL,NULL);
9647
         iconv_close(cd);
9648
  ;
9649
  return 0;
9650
}
9651
_ACEOF
9652
rm -f conftest.$ac_objext conftest$ac_exeext
9653
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9654
  (eval $ac_link) 2>conftest.er1
9655
  ac_status=$?
9656
  grep -v '^ *+' conftest.er1 >conftest.err
9657
  rm -f conftest.er1
9658
  cat conftest.err >&5
9659
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660
  (exit $ac_status); } &&
9661
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9662
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9663
  (eval $ac_try) 2>&5
9664
  ac_status=$?
9665
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666
  (exit $ac_status); }; } &&
9667
	 { ac_try='test -s conftest$ac_exeext'
9668
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9669
  (eval $ac_try) 2>&5
9670
  ac_status=$?
9671
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9672
  (exit $ac_status); }; }; then
9673
  am_cv_lib_iconv=yes
9674
        am_cv_func_iconv=yes
9675
else
9676
  echo "$as_me: failed program was:" >&5
9677
sed 's/^/| /' conftest.$ac_ext >&5
9678
9679
fi
9680
rm -f conftest.err conftest.$ac_objext \
9681
      conftest$ac_exeext conftest.$ac_ext
9682
      LIBS="$am_save_LIBS"
9683
    fi
9684
9685
fi
9686
echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9687
echo "${ECHO_T}$am_cv_func_iconv" >&6
9688
  if test "$am_cv_func_iconv" = yes; then
9689
9690
cat >>confdefs.h <<\_ACEOF
9691
#define HAVE_ICONV 1
9692
_ACEOF
9693
9694
  fi
9695
  if test "$am_cv_lib_iconv" = yes; then
9696
    echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9697
echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6
9698
    echo "$as_me:$LINENO: result: $LIBICONV" >&5
9699
echo "${ECHO_T}$LIBICONV" >&6
9700
  else
9701
            CPPFLAGS="$am_save_CPPFLAGS"
9702
    LIBICONV=
9703
    LTLIBICONV=
9704
  fi
9705
9706
9707
9708
  if test "$am_cv_func_iconv" = yes; then
9709
    echo "$as_me:$LINENO: checking for iconv declaration" >&5
9710
echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6
9711
    if test "${am_cv_proto_iconv+set}" = set; then
9712
  echo $ECHO_N "(cached) $ECHO_C" >&6
9713
else
9714
9715
      cat >conftest.$ac_ext <<_ACEOF
9716
/* confdefs.h.  */
9717
_ACEOF
9718
cat confdefs.h >>conftest.$ac_ext
9719
cat >>conftest.$ac_ext <<_ACEOF
9720
/* end confdefs.h.  */
9721
9722
#include <stdlib.h>
9723
#include <iconv.h>
9724
extern
9725
#ifdef __cplusplus
9726
"C"
9727
#endif
9728
#if defined(__STDC__) || defined(__cplusplus)
9729
size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9730
#else
9731
size_t iconv();
9732
#endif
9733
9734
int
9735
main ()
9736
{
9737
9738
  ;
9739
  return 0;
9740
}
9741
_ACEOF
9742
rm -f conftest.$ac_objext
9743
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9744
  (eval $ac_compile) 2>conftest.er1
9745
  ac_status=$?
9746
  grep -v '^ *+' conftest.er1 >conftest.err
9747
  rm -f conftest.er1
9748
  cat conftest.err >&5
9749
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750
  (exit $ac_status); } &&
9751
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9752
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9753
  (eval $ac_try) 2>&5
9754
  ac_status=$?
9755
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9756
  (exit $ac_status); }; } &&
9757
	 { ac_try='test -s conftest.$ac_objext'
9758
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9759
  (eval $ac_try) 2>&5
9760
  ac_status=$?
9761
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9762
  (exit $ac_status); }; }; then
9763
  am_cv_proto_iconv_arg1=""
9764
else
9765
  echo "$as_me: failed program was:" >&5
9766
sed 's/^/| /' conftest.$ac_ext >&5
9767
9768
am_cv_proto_iconv_arg1="const"
9769
fi
9770
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9771
      am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9772
fi
9773
9774
    am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9775
    echo "$as_me:$LINENO: result: ${ac_t:-
9776
         }$am_cv_proto_iconv" >&5
9777
echo "${ECHO_T}${ac_t:-
9778
         }$am_cv_proto_iconv" >&6
9779
9780
cat >>confdefs.h <<_ACEOF
9781
#define ICONV_CONST $am_cv_proto_iconv_arg1
9782
_ACEOF
9783
9784
  fi
9785
9786
fi
9787
9788
9789
echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9790
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
9791
if test "${ac_cv_c_const+set}" = set; then
9792
  echo $ECHO_N "(cached) $ECHO_C" >&6
9793
else
9794
  cat >conftest.$ac_ext <<_ACEOF
9795
/* confdefs.h.  */
9796
_ACEOF
9797
cat confdefs.h >>conftest.$ac_ext
9798
cat >>conftest.$ac_ext <<_ACEOF
9799
/* end confdefs.h.  */
9800
9801
int
9802
main ()
9803
{
9804
/* FIXME: Include the comments suggested by Paul. */
9805
#ifndef __cplusplus
9806
  /* Ultrix mips cc rejects this.  */
9807
  typedef int charset[2];
9808
  const charset x;
9809
  /* SunOS 4.1.1 cc rejects this.  */
9810
  char const *const *ccp;
9811
  char **p;
9812
  /* NEC SVR4.0.2 mips cc rejects this.  */
9813
  struct point {int x, y;};
9814
  static struct point const zero = {0,0};
9815
  /* AIX XL C 1.02.0.0 rejects this.
9816
     It does not let you subtract one const X* pointer from another in
9817
     an arm of an if-expression whose if-part is not a constant
9818
     expression */
9819
  const char *g = "string";
9820
  ccp = &g + (g ? g-g : 0);
9821
  /* HPUX 7.0 cc rejects these. */
9822
  ++ccp;
9823
  p = (char**) ccp;
9824
  ccp = (char const *const *) p;
9825
  { /* SCO 3.2v4 cc rejects this.  */
9826
    char *t;
9827
    char const *s = 0 ? (char *) 0 : (char const *) 0;
9828
9829
    *t++ = 0;
9830
  }
9831
  { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9832
    int x[] = {25, 17};
9833
    const int *foo = &x[0];
9834
    ++foo;
9835
  }
9836
  { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9837
    typedef const int *iptr;
9838
    iptr p = 0;
9839
    ++p;
9840
  }
9841
  { /* AIX XL C 1.02.0.0 rejects this saying
9842
       "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9843
    struct s { int j; const int *ap[3]; };
9844
    struct s *b; b->j = 5;
9845
  }
9846
  { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9847
    const int foo = 10;
9848
  }
9849
#endif
9850
9851
  ;
9852
  return 0;
9853
}
9854
_ACEOF
9855
rm -f conftest.$ac_objext
9856
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9857
  (eval $ac_compile) 2>conftest.er1
9858
  ac_status=$?
9859
  grep -v '^ *+' conftest.er1 >conftest.err
9860
  rm -f conftest.er1
9861
  cat conftest.err >&5
9862
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9863
  (exit $ac_status); } &&
9864
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9865
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9866
  (eval $ac_try) 2>&5
9867
  ac_status=$?
9868
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869
  (exit $ac_status); }; } &&
9870
	 { ac_try='test -s conftest.$ac_objext'
9871
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9872
  (eval $ac_try) 2>&5
9873
  ac_status=$?
9874
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9875
  (exit $ac_status); }; }; then
9876
  ac_cv_c_const=yes
9877
else
9878
  echo "$as_me: failed program was:" >&5
9879
sed 's/^/| /' conftest.$ac_ext >&5
9880
9881
ac_cv_c_const=no
9882
fi
9883
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9884
fi
9885
echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9886
echo "${ECHO_T}$ac_cv_c_const" >&6
9887
if test $ac_cv_c_const = no; then
9888
9889
cat >>confdefs.h <<\_ACEOF
9890
#define const
9891
_ACEOF
9892
9893
fi
9894
9895
echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
9896
echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
9897
if test "${ac_cv_type_uid_t+set}" = set; then
9898
  echo $ECHO_N "(cached) $ECHO_C" >&6
9899
else
9900
  cat >conftest.$ac_ext <<_ACEOF
9901
/* confdefs.h.  */
9902
_ACEOF
9903
cat confdefs.h >>conftest.$ac_ext
9904
cat >>conftest.$ac_ext <<_ACEOF
9905
/* end confdefs.h.  */
9906
#include <sys/types.h>
9907
9908
_ACEOF
9909
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9910
  $EGREP "uid_t" >/dev/null 2>&1; then
9911
  ac_cv_type_uid_t=yes
9912
else
9913
  ac_cv_type_uid_t=no
9914
fi
9915
rm -f conftest*
9916
9917
fi
9918
echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
9919
echo "${ECHO_T}$ac_cv_type_uid_t" >&6
9920
if test $ac_cv_type_uid_t = no; then
9921
9922
cat >>confdefs.h <<\_ACEOF
9923
#define uid_t int
9924
_ACEOF
9925
9926
9927
cat >>confdefs.h <<\_ACEOF
9928
#define gid_t int
9929
_ACEOF
9930
9931
fi
9932
9933
echo "$as_me:$LINENO: checking for inline" >&5
9934
echo $ECHO_N "checking for inline... $ECHO_C" >&6
9935
if test "${ac_cv_c_inline+set}" = set; then
9936
  echo $ECHO_N "(cached) $ECHO_C" >&6
9937
else
9938
  ac_cv_c_inline=no
9939
for ac_kw in inline __inline__ __inline; do
9940
  cat >conftest.$ac_ext <<_ACEOF
9941
/* confdefs.h.  */
9942
_ACEOF
9943
cat confdefs.h >>conftest.$ac_ext
9944
cat >>conftest.$ac_ext <<_ACEOF
9945
/* end confdefs.h.  */
9946
#ifndef __cplusplus
9947
typedef int foo_t;
9948
static $ac_kw foo_t static_foo () {return 0; }
9949
$ac_kw foo_t foo () {return 0; }
9950
#endif
9951
9952
_ACEOF
9953
rm -f conftest.$ac_objext
9954
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9955
  (eval $ac_compile) 2>conftest.er1
9956
  ac_status=$?
9957
  grep -v '^ *+' conftest.er1 >conftest.err
9958
  rm -f conftest.er1
9959
  cat conftest.err >&5
9960
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9961
  (exit $ac_status); } &&
9962
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
9963
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964
  (eval $ac_try) 2>&5
9965
  ac_status=$?
9966
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967
  (exit $ac_status); }; } &&
9968
	 { ac_try='test -s conftest.$ac_objext'
9969
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970
  (eval $ac_try) 2>&5
9971
  ac_status=$?
9972
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9973
  (exit $ac_status); }; }; then
9974
  ac_cv_c_inline=$ac_kw; break
9975
else
9976
  echo "$as_me: failed program was:" >&5
9977
sed 's/^/| /' conftest.$ac_ext >&5
9978
9979
fi
9980
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9981
done
9982
9983
fi
9984
echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
9985
echo "${ECHO_T}$ac_cv_c_inline" >&6
9986
9987
9988
case $ac_cv_c_inline in
9989
  inline | yes) ;;
9990
  *)
9991
    case $ac_cv_c_inline in
9992
      no) ac_val=;;
9993
      *) ac_val=$ac_cv_c_inline;;
9994
    esac
9995
    cat >>confdefs.h <<_ACEOF
9996
#ifndef __cplusplus
9997
#define inline $ac_val
9998
#endif
9999
_ACEOF
10000
    ;;
10001
esac
10002
10003
echo "$as_me:$LINENO: checking for mode_t" >&5
10004
echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
10005
if test "${ac_cv_type_mode_t+set}" = set; then
10006
  echo $ECHO_N "(cached) $ECHO_C" >&6
10007
else
10008
  cat >conftest.$ac_ext <<_ACEOF
10009
/* confdefs.h.  */
10010
_ACEOF
10011
cat confdefs.h >>conftest.$ac_ext
10012
cat >>conftest.$ac_ext <<_ACEOF
10013
/* end confdefs.h.  */
10014
$ac_includes_default
10015
int
10016
main ()
10017
{
10018
if ((mode_t *) 0)
10019
  return 0;
10020
if (sizeof (mode_t))
10021
  return 0;
10022
  ;
10023
  return 0;
10024
}
10025
_ACEOF
10026
rm -f conftest.$ac_objext
10027
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10028
  (eval $ac_compile) 2>conftest.er1
10029
  ac_status=$?
10030
  grep -v '^ *+' conftest.er1 >conftest.err
10031
  rm -f conftest.er1
10032
  cat conftest.err >&5
10033
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10034
  (exit $ac_status); } &&
10035
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10036
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10037
  (eval $ac_try) 2>&5
10038
  ac_status=$?
10039
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10040
  (exit $ac_status); }; } &&
10041
	 { ac_try='test -s conftest.$ac_objext'
10042
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10043
  (eval $ac_try) 2>&5
10044
  ac_status=$?
10045
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10046
  (exit $ac_status); }; }; then
10047
  ac_cv_type_mode_t=yes
10048
else
10049
  echo "$as_me: failed program was:" >&5
10050
sed 's/^/| /' conftest.$ac_ext >&5
10051
10052
ac_cv_type_mode_t=no
10053
fi
10054
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10055
fi
10056
echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
10057
echo "${ECHO_T}$ac_cv_type_mode_t" >&6
10058
if test $ac_cv_type_mode_t = yes; then
10059
  :
10060
else
10061
10062
cat >>confdefs.h <<_ACEOF
10063
#define mode_t int
10064
_ACEOF
10065
10066
fi
10067
10068
echo "$as_me:$LINENO: checking for off_t" >&5
10069
echo $ECHO_N "checking for off_t... $ECHO_C" >&6
10070
if test "${ac_cv_type_off_t+set}" = set; then
10071
  echo $ECHO_N "(cached) $ECHO_C" >&6
10072
else
10073
  cat >conftest.$ac_ext <<_ACEOF
10074
/* confdefs.h.  */
10075
_ACEOF
10076
cat confdefs.h >>conftest.$ac_ext
10077
cat >>conftest.$ac_ext <<_ACEOF
10078
/* end confdefs.h.  */
10079
$ac_includes_default
10080
int
10081
main ()
10082
{
10083
if ((off_t *) 0)
10084
  return 0;
10085
if (sizeof (off_t))
10086
  return 0;
10087
  ;
10088
  return 0;
10089
}
10090
_ACEOF
10091
rm -f conftest.$ac_objext
10092
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10093
  (eval $ac_compile) 2>conftest.er1
10094
  ac_status=$?
10095
  grep -v '^ *+' conftest.er1 >conftest.err
10096
  rm -f conftest.er1
10097
  cat conftest.err >&5
10098
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10099
  (exit $ac_status); } &&
10100
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10101
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10102
  (eval $ac_try) 2>&5
10103
  ac_status=$?
10104
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10105
  (exit $ac_status); }; } &&
10106
	 { ac_try='test -s conftest.$ac_objext'
10107
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10108
  (eval $ac_try) 2>&5
10109
  ac_status=$?
10110
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111
  (exit $ac_status); }; }; then
10112
  ac_cv_type_off_t=yes
10113
else
10114
  echo "$as_me: failed program was:" >&5
10115
sed 's/^/| /' conftest.$ac_ext >&5
10116
10117
ac_cv_type_off_t=no
10118
fi
10119
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10120
fi
10121
echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
10122
echo "${ECHO_T}$ac_cv_type_off_t" >&6
10123
if test $ac_cv_type_off_t = yes; then
10124
  :
10125
else
10126
10127
cat >>confdefs.h <<_ACEOF
10128
#define off_t long
10129
_ACEOF
10130
10131
fi
10132
10133
echo "$as_me:$LINENO: checking for pid_t" >&5
10134
echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
10135
if test "${ac_cv_type_pid_t+set}" = set; then
10136
  echo $ECHO_N "(cached) $ECHO_C" >&6
10137
else
10138
  cat >conftest.$ac_ext <<_ACEOF
10139
/* confdefs.h.  */
10140
_ACEOF
10141
cat confdefs.h >>conftest.$ac_ext
10142
cat >>conftest.$ac_ext <<_ACEOF
10143
/* end confdefs.h.  */
10144
$ac_includes_default
10145
int
10146
main ()
10147
{
10148
if ((pid_t *) 0)
10149
  return 0;
10150
if (sizeof (pid_t))
10151
  return 0;
10152
  ;
10153
  return 0;
10154
}
10155
_ACEOF
10156
rm -f conftest.$ac_objext
10157
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10158
  (eval $ac_compile) 2>conftest.er1
10159
  ac_status=$?
10160
  grep -v '^ *+' conftest.er1 >conftest.err
10161
  rm -f conftest.er1
10162
  cat conftest.err >&5
10163
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10164
  (exit $ac_status); } &&
10165
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10166
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10167
  (eval $ac_try) 2>&5
10168
  ac_status=$?
10169
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170
  (exit $ac_status); }; } &&
10171
	 { ac_try='test -s conftest.$ac_objext'
10172
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10173
  (eval $ac_try) 2>&5
10174
  ac_status=$?
10175
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10176
  (exit $ac_status); }; }; then
10177
  ac_cv_type_pid_t=yes
10178
else
10179
  echo "$as_me: failed program was:" >&5
10180
sed 's/^/| /' conftest.$ac_ext >&5
10181
10182
ac_cv_type_pid_t=no
10183
fi
10184
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10185
fi
10186
echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
10187
echo "${ECHO_T}$ac_cv_type_pid_t" >&6
10188
if test $ac_cv_type_pid_t = yes; then
10189
  :
10190
else
10191
10192
cat >>confdefs.h <<_ACEOF
10193
#define pid_t int
10194
_ACEOF
10195
10196
fi
10197
10198
echo "$as_me:$LINENO: checking for size_t" >&5
10199
echo $ECHO_N "checking for size_t... $ECHO_C" >&6
10200
if test "${ac_cv_type_size_t+set}" = set; then
10201
  echo $ECHO_N "(cached) $ECHO_C" >&6
10202
else
10203
  cat >conftest.$ac_ext <<_ACEOF
10204
/* confdefs.h.  */
10205
_ACEOF
10206
cat confdefs.h >>conftest.$ac_ext
10207
cat >>conftest.$ac_ext <<_ACEOF
10208
/* end confdefs.h.  */
10209
$ac_includes_default
10210
int
10211
main ()
10212
{
10213
if ((size_t *) 0)
10214
  return 0;
10215
if (sizeof (size_t))
10216
  return 0;
10217
  ;
10218
  return 0;
10219
}
10220
_ACEOF
10221
rm -f conftest.$ac_objext
10222
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10223
  (eval $ac_compile) 2>conftest.er1
10224
  ac_status=$?
10225
  grep -v '^ *+' conftest.er1 >conftest.err
10226
  rm -f conftest.er1
10227
  cat conftest.err >&5
10228
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229
  (exit $ac_status); } &&
10230
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10231
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232
  (eval $ac_try) 2>&5
10233
  ac_status=$?
10234
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235
  (exit $ac_status); }; } &&
10236
	 { ac_try='test -s conftest.$ac_objext'
10237
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238
  (eval $ac_try) 2>&5
10239
  ac_status=$?
10240
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241
  (exit $ac_status); }; }; then
10242
  ac_cv_type_size_t=yes
10243
else
10244
  echo "$as_me: failed program was:" >&5
10245
sed 's/^/| /' conftest.$ac_ext >&5
10246
10247
ac_cv_type_size_t=no
10248
fi
10249
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10250
fi
10251
echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
10252
echo "${ECHO_T}$ac_cv_type_size_t" >&6
10253
if test $ac_cv_type_size_t = yes; then
10254
  :
10255
else
10256
10257
cat >>confdefs.h <<_ACEOF
10258
#define size_t unsigned
10259
_ACEOF
10260
10261
fi
10262
10263
echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
10264
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
10265
if test "${ac_cv_header_time+set}" = set; then
10266
  echo $ECHO_N "(cached) $ECHO_C" >&6
10267
else
10268
  cat >conftest.$ac_ext <<_ACEOF
10269
/* confdefs.h.  */
10270
_ACEOF
10271
cat confdefs.h >>conftest.$ac_ext
10272
cat >>conftest.$ac_ext <<_ACEOF
10273
/* end confdefs.h.  */
10274
#include <sys/types.h>
10275
#include <sys/time.h>
10276
#include <time.h>
10277
10278
int
10279
main ()
10280
{
10281
if ((struct tm *) 0)
10282
return 0;
10283
  ;
10284
  return 0;
10285
}
10286
_ACEOF
10287
rm -f conftest.$ac_objext
10288
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10289
  (eval $ac_compile) 2>conftest.er1
10290
  ac_status=$?
10291
  grep -v '^ *+' conftest.er1 >conftest.err
10292
  rm -f conftest.er1
10293
  cat conftest.err >&5
10294
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295
  (exit $ac_status); } &&
10296
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10297
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10298
  (eval $ac_try) 2>&5
10299
  ac_status=$?
10300
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301
  (exit $ac_status); }; } &&
10302
	 { ac_try='test -s conftest.$ac_objext'
10303
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10304
  (eval $ac_try) 2>&5
10305
  ac_status=$?
10306
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10307
  (exit $ac_status); }; }; then
10308
  ac_cv_header_time=yes
10309
else
10310
  echo "$as_me: failed program was:" >&5
10311
sed 's/^/| /' conftest.$ac_ext >&5
10312
10313
ac_cv_header_time=no
10314
fi
10315
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10316
fi
10317
echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
10318
echo "${ECHO_T}$ac_cv_header_time" >&6
10319
if test $ac_cv_header_time = yes; then
10320
10321
cat >>confdefs.h <<\_ACEOF
10322
#define TIME_WITH_SYS_TIME 1
10323
_ACEOF
10324
10325
fi
10326
10327
echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
10328
echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
10329
if test "${ac_cv_struct_tm+set}" = set; then
10330
  echo $ECHO_N "(cached) $ECHO_C" >&6
10331
else
10332
  cat >conftest.$ac_ext <<_ACEOF
10333
/* confdefs.h.  */
10334
_ACEOF
10335
cat confdefs.h >>conftest.$ac_ext
10336
cat >>conftest.$ac_ext <<_ACEOF
10337
/* end confdefs.h.  */
10338
#include <sys/types.h>
10339
#include <time.h>
10340
10341
int
10342
main ()
10343
{
10344
struct tm *tp; tp->tm_sec;
10345
  ;
10346
  return 0;
10347
}
10348
_ACEOF
10349
rm -f conftest.$ac_objext
10350
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10351
  (eval $ac_compile) 2>conftest.er1
10352
  ac_status=$?
10353
  grep -v '^ *+' conftest.er1 >conftest.err
10354
  rm -f conftest.er1
10355
  cat conftest.err >&5
10356
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357
  (exit $ac_status); } &&
10358
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10359
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10360
  (eval $ac_try) 2>&5
10361
  ac_status=$?
10362
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363
  (exit $ac_status); }; } &&
10364
	 { ac_try='test -s conftest.$ac_objext'
10365
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10366
  (eval $ac_try) 2>&5
10367
  ac_status=$?
10368
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369
  (exit $ac_status); }; }; then
10370
  ac_cv_struct_tm=time.h
10371
else
10372
  echo "$as_me: failed program was:" >&5
10373
sed 's/^/| /' conftest.$ac_ext >&5
10374
10375
ac_cv_struct_tm=sys/time.h
10376
fi
10377
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10378
fi
10379
echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
10380
echo "${ECHO_T}$ac_cv_struct_tm" >&6
10381
if test $ac_cv_struct_tm = sys/time.h; then
10382
10383
cat >>confdefs.h <<\_ACEOF
10384
#define TM_IN_SYS_TIME 1
10385
_ACEOF
10386
10387
fi
10388
10389
10390
if test $ac_cv_c_compiler_gnu = yes; then
10391
    echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
10392
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
10393
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
10394
  echo $ECHO_N "(cached) $ECHO_C" >&6
10395
else
10396
    ac_pattern="Autoconf.*'x'"
10397
  cat >conftest.$ac_ext <<_ACEOF
10398
/* confdefs.h.  */
10399
_ACEOF
10400
cat confdefs.h >>conftest.$ac_ext
10401
cat >>conftest.$ac_ext <<_ACEOF
10402
/* end confdefs.h.  */
10403
#include <sgtty.h>
10404
Autoconf TIOCGETP
10405
_ACEOF
10406
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10407
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10408
  ac_cv_prog_gcc_traditional=yes
10409
else
10410
  ac_cv_prog_gcc_traditional=no
10411
fi
10412
rm -f conftest*
10413
10414
10415
  if test $ac_cv_prog_gcc_traditional = no; then
10416
    cat >conftest.$ac_ext <<_ACEOF
10417
/* confdefs.h.  */
10418
_ACEOF
10419
cat confdefs.h >>conftest.$ac_ext
10420
cat >>conftest.$ac_ext <<_ACEOF
10421
/* end confdefs.h.  */
10422
#include <termio.h>
10423
Autoconf TCGETA
10424
_ACEOF
10425
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10426
  $EGREP "$ac_pattern" >/dev/null 2>&1; then
10427
  ac_cv_prog_gcc_traditional=yes
10428
fi
10429
rm -f conftest*
10430
10431
  fi
10432
fi
10433
echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
10434
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
10435
  if test $ac_cv_prog_gcc_traditional = yes; then
10436
    CC="$CC -traditional"
10437
  fi
10438
fi
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
for ac_func in wcslen wcscpy wcsdup wcscmp wcsncmp wcscasecmp wcsncasecmp wcsrev
10449
do
10450
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10451
echo "$as_me:$LINENO: checking for $ac_func" >&5
10452
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10453
if eval "test \"\${$as_ac_var+set}\" = set"; then
10454
  echo $ECHO_N "(cached) $ECHO_C" >&6
10455
else
10456
  cat >conftest.$ac_ext <<_ACEOF
10457
/* confdefs.h.  */
10458
_ACEOF
10459
cat confdefs.h >>conftest.$ac_ext
10460
cat >>conftest.$ac_ext <<_ACEOF
10461
/* end confdefs.h.  */
10462
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10463
   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10464
#define $ac_func innocuous_$ac_func
10465
10466
/* System header to define __stub macros and hopefully few prototypes,
10467
    which can conflict with char $ac_func (); below.
10468
    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10469
    <limits.h> exists even on freestanding compilers.  */
10470
10471
#ifdef __STDC__
10472
# include <limits.h>
10473
#else
10474
# include <assert.h>
10475
#endif
10476
10477
#undef $ac_func
10478
10479
/* Override any gcc2 internal prototype to avoid an error.  */
10480
#ifdef __cplusplus
10481
extern "C"
10482
{
10483
#endif
10484
/* We use char because int might match the return type of a gcc2
10485
   builtin and then its argument prototype would still apply.  */
10486
char $ac_func ();
10487
/* The GNU C library defines this for functions which it implements
10488
    to always fail with ENOSYS.  Some functions are actually named
10489
    something starting with __ and the normal name is an alias.  */
10490
#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10491
choke me
10492
#else
10493
char (*f) () = $ac_func;
10494
#endif
10495
#ifdef __cplusplus
10496
}
10497
#endif
10498
10499
int
10500
main ()
10501
{
10502
return f != $ac_func;
10503
  ;
10504
  return 0;
10505
}
10506
_ACEOF
10507
rm -f conftest.$ac_objext conftest$ac_exeext
10508
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10509
  (eval $ac_link) 2>conftest.er1
10510
  ac_status=$?
10511
  grep -v '^ *+' conftest.er1 >conftest.err
10512
  rm -f conftest.er1
10513
  cat conftest.err >&5
10514
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10515
  (exit $ac_status); } &&
10516
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10517
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10518
  (eval $ac_try) 2>&5
10519
  ac_status=$?
10520
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521
  (exit $ac_status); }; } &&
10522
	 { ac_try='test -s conftest$ac_exeext'
10523
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10524
  (eval $ac_try) 2>&5
10525
  ac_status=$?
10526
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10527
  (exit $ac_status); }; }; then
10528
  eval "$as_ac_var=yes"
10529
else
10530
  echo "$as_me: failed program was:" >&5
10531
sed 's/^/| /' conftest.$ac_ext >&5
10532
10533
eval "$as_ac_var=no"
10534
fi
10535
rm -f conftest.err conftest.$ac_objext \
10536
      conftest$ac_exeext conftest.$ac_ext
10537
fi
10538
echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10539
echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10540
if test `eval echo '${'$as_ac_var'}'` = yes; then
10541
  cat >>confdefs.h <<_ACEOF
10542
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10543
_ACEOF
10544
10545
fi
10546
done
10547
10548
10549
if test "$PAM" = "1"
10550
then
10551
  if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
10552
  echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
10553
echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
10554
if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
10555
  echo $ECHO_N "(cached) $ECHO_C" >&6
10556
fi
10557
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
10558
echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
10559
else
10560
  # Is the header compilable?
10561
echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
10562
echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
10563
cat >conftest.$ac_ext <<_ACEOF
10564
/* confdefs.h.  */
10565
_ACEOF
10566
cat confdefs.h >>conftest.$ac_ext
10567
cat >>conftest.$ac_ext <<_ACEOF
10568
/* end confdefs.h.  */
10569
$ac_includes_default
10570
#include <security/pam_appl.h>
10571
_ACEOF
10572
rm -f conftest.$ac_objext
10573
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10574
  (eval $ac_compile) 2>conftest.er1
10575
  ac_status=$?
10576
  grep -v '^ *+' conftest.er1 >conftest.err
10577
  rm -f conftest.er1
10578
  cat conftest.err >&5
10579
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10580
  (exit $ac_status); } &&
10581
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10582
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583
  (eval $ac_try) 2>&5
10584
  ac_status=$?
10585
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586
  (exit $ac_status); }; } &&
10587
	 { ac_try='test -s conftest.$ac_objext'
10588
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589
  (eval $ac_try) 2>&5
10590
  ac_status=$?
10591
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592
  (exit $ac_status); }; }; then
10593
  ac_header_compiler=yes
10594
else
10595
  echo "$as_me: failed program was:" >&5
10596
sed 's/^/| /' conftest.$ac_ext >&5
10597
10598
ac_header_compiler=no
10599
fi
10600
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10601
echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10602
echo "${ECHO_T}$ac_header_compiler" >&6
10603
10604
# Is the header present?
10605
echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
10606
echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
10607
cat >conftest.$ac_ext <<_ACEOF
10608
/* confdefs.h.  */
10609
_ACEOF
10610
cat confdefs.h >>conftest.$ac_ext
10611
cat >>conftest.$ac_ext <<_ACEOF
10612
/* end confdefs.h.  */
10613
#include <security/pam_appl.h>
10614
_ACEOF
10615
if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10616
  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10617
  ac_status=$?
10618
  grep -v '^ *+' conftest.er1 >conftest.err
10619
  rm -f conftest.er1
10620
  cat conftest.err >&5
10621
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622
  (exit $ac_status); } >/dev/null; then
10623
  if test -s conftest.err; then
10624
    ac_cpp_err=$ac_c_preproc_warn_flag
10625
    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10626
  else
10627
    ac_cpp_err=
10628
  fi
10629
else
10630
  ac_cpp_err=yes
10631
fi
10632
if test -z "$ac_cpp_err"; then
10633
  ac_header_preproc=yes
10634
else
10635
  echo "$as_me: failed program was:" >&5
10636
sed 's/^/| /' conftest.$ac_ext >&5
10637
10638
  ac_header_preproc=no
10639
fi
10640
rm -f conftest.err conftest.$ac_ext
10641
echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10642
echo "${ECHO_T}$ac_header_preproc" >&6
10643
10644
# So?  What about this header?
10645
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10646
  yes:no: )
10647
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
10648
echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10649
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
10650
echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
10651
    ac_header_preproc=yes
10652
    ;;
10653
  no:yes:* )
10654
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
10655
echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
10656
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&5
10657
echo "$as_me: WARNING: security/pam_appl.h:     check for missing prerequisite headers?" >&2;}
10658
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
10659
echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
10660
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&5
10661
echo "$as_me: WARNING: security/pam_appl.h:     section \"Present But Cannot Be Compiled\"" >&2;}
10662
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
10663
echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
10664
    { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
10665
echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
10666
    (
10667
      cat <<\_ASBOX
10668
## ---------------------------------- ##
10669
## Report this to vandrove@vc.cvut.cz ##
10670
## ---------------------------------- ##
10671
_ASBOX
10672
    ) |
10673
      sed "s/^/$as_me: WARNING:     /" >&2
10674
    ;;
10675
esac
10676
echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
10677
echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
10678
if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
10679
  echo $ECHO_N "(cached) $ECHO_C" >&6
10680
else
10681
  ac_cv_header_security_pam_appl_h=$ac_header_preproc
10682
fi
10683
echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
10684
echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
10685
10686
fi
10687
10688
10689
  if test "$ac_cv_header_security_pam_appl_h" = "yes" ; then
10690
    if test "$pam_path_forced" = ""; then
10691
      echo "$as_me:$LINENO: checking for pam modules directory" >&5
10692
echo $ECHO_N "checking for pam modules directory... $ECHO_C" >&6
10693
if test "${ncp_cv_pam_directory+set}" = set; then
10694
  echo $ECHO_N "(cached) $ECHO_C" >&6
10695
else
10696
  if test -d /lib/security ; then
10697
          ncp_cv_pam_directory=/lib/security
10698
        else if test -d /usr/lib/security ; then
10699
          ncp_cv_pam_directory=/usr/lib/security
10700
        else if test -d /usr/local/lib/security ; then
10701
          ncp_cv_pam_directory=/usr/local/lib/security
10702
        else
10703
                    ncp_cv_pam_directory=/lib/security
10704
        fi; fi; fi
10705
10706
fi
10707
echo "$as_me:$LINENO: result: $ncp_cv_pam_directory" >&5
10708
echo "${ECHO_T}$ncp_cv_pam_directory" >&6
10709
    else
10710
      ncp_cv_pam_directory="$pam_path_forced"
10711
    fi
10712
    LIB_PAM_SECURITY=$ncp_cv_pam_directory
10713
10714
10715
    ADDON_DEV_SUBDIRS="$ADDON_DEV_SUBDIRS contrib/pam"
10716
  else
10717
    if test "$pam_forced" = "yes"
10718
    then
10719
      { { echo "$as_me:$LINENO: error: Cannot build PAM module because of PAM headers are not installed" >&5
10720
echo "$as_me: error: Cannot build PAM module because of PAM headers are not installed" >&2;}
10721
   { (exit 1); exit 1; }; }
10722
    fi
10723
    PAM=0
10724
  fi
10725
fi
10726
10727
if test "$PHP" = "yes"
10728
then
10729
  php_path_config="$php_path_forced"
10730
  if test "$php_path_config" = ""
10731
  then
10732
    php_path_config=php-config
10733
  fi
10734
  case "$php_path_config" in
10735
    /*) echo "$as_me:$LINENO: checking for $php_path_config" >&5
10736
echo $ECHO_N "checking for $php_path_config... $ECHO_C" >&6
10737
        if test -r "$php_path_config"
10738
        then
10739
	  php_found=yes
10740
	else
10741
	  php_found=no
10742
	fi
10743
	echo "$as_me:$LINENO: result: $php_found" >&5
10744
echo "${ECHO_T}$php_found" >&6
10745
	;;
10746
    *)  # Extract the first word of "$php_path_config", so it can be a program name with args.
10747
set dummy $php_path_config; ac_word=$2
10748
echo "$as_me:$LINENO: checking for $ac_word" >&5
10749
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10750
if test "${ac_cv_prog_php_found+set}" = set; then
10751
  echo $ECHO_N "(cached) $ECHO_C" >&6
10752
else
10753
  if test -n "$php_found"; then
10754
  ac_cv_prog_php_found="$php_found" # Let the user override the test.
10755
else
10756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10757
for as_dir in $PATH
10758
do
10759
  IFS=$as_save_IFS
10760
  test -z "$as_dir" && as_dir=.
10761
  for ac_exec_ext in '' $ac_executable_extensions; do
10762
  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10763
    ac_cv_prog_php_found="yes"
10764
    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10765
    break 2
10766
  fi
10767
done
10768
done
10769
10770
  test -z "$ac_cv_prog_php_found" && ac_cv_prog_php_found="no"
10771
fi
10772
fi
10773
php_found=$ac_cv_prog_php_found
10774
if test -n "$php_found"; then
10775
  echo "$as_me:$LINENO: result: $php_found" >&5
10776
echo "${ECHO_T}$php_found" >&6
10777
else
10778
  echo "$as_me:$LINENO: result: no" >&5
10779
echo "${ECHO_T}no" >&6
10780
fi
10781
 ;;
10782
  esac
10783
  if test "$php_found" = "yes"
10784
  then
10785
    ADDON_SUBDIRS="$ADDON_SUBDIRS contrib/php"
10786
  else
10787
    if test "$php_forced" = "yes"
10788
    then
10789
      { { echo "$as_me:$LINENO: error: Cannot build PHP module because of $php_path_config is not available" >&5
10790
echo "$as_me: error: Cannot build PHP module because of $php_path_config is not available" >&2;}
10791
   { (exit 1); exit 1; }; }
10792
    fi
10793
    php_path_config=""
10794
  fi
10795
fi
10796
10797
if test "$NDS_SUPPORT" = "1"
10798
then
10799
  echo "$as_me:$LINENO: checking for mpilib word size" >&5
10800
echo $ECHO_N "checking for mpilib word size... $ECHO_C" >&6
10801
if test "${ncp_cv_mpilib_unit+set}" = set; then
10802
  echo $ECHO_N "(cached) $ECHO_C" >&6
10803
else
10804
  case "$host_cpu" in
10805
      i?86|ia32) ncp_cv_mpilib_unit="32";;
10806
      *) ncp_cv_mpilib_unit="8";
10807
     esac
10808
10809
fi
10810
echo "$as_me:$LINENO: result: $ncp_cv_mpilib_unit" >&5
10811
echo "${ECHO_T}$ncp_cv_mpilib_unit" >&6
10812
10813
cat >>confdefs.h <<_ACEOF
10814
#define UNITSIZE $ncp_cv_mpilib_unit
10815
_ACEOF
10816
10817
10818
cat >>confdefs.h <<_ACEOF
10819
#define MULTUNITSIZE $ncp_cv_mpilib_unit
10820
_ACEOF
10821
10822
fi
10823
10824
if test "$REENTRANT" != "0"
10825
then
10826
  echo "$as_me:$LINENO: checking for working pthread support" >&5
10827
echo $ECHO_N "checking for working pthread support... $ECHO_C" >&6
10828
if test "${ncp_cv_pthread+set}" = set; then
10829
  echo $ECHO_N "(cached) $ECHO_C" >&6
10830
else
10831
  cat >conftest.$ac_ext <<_ACEOF
10832
/* confdefs.h.  */
10833
_ACEOF
10834
cat confdefs.h >>conftest.$ac_ext
10835
cat >>conftest.$ac_ext <<_ACEOF
10836
/* end confdefs.h.  */
10837
#include <stdlib.h>
10838
#include <pthread.h>
10839
int
10840
main ()
10841
{
10842
pthread_mutex_t a;
10843
       pthread_once_t b;
10844
       pthread_mutex_init(&a, NULL);
10845
       pthread_mutex_lock(&a);
10846
       pthread_mutex_unlock(&a);
10847
       pthread_mutex_destroy(&a)
10848
  ;
10849
  return 0;
10850
}
10851
_ACEOF
10852
rm -f conftest.$ac_objext
10853
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10854
  (eval $ac_compile) 2>conftest.er1
10855
  ac_status=$?
10856
  grep -v '^ *+' conftest.er1 >conftest.err
10857
  rm -f conftest.er1
10858
  cat conftest.err >&5
10859
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10860
  (exit $ac_status); } &&
10861
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10862
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10863
  (eval $ac_try) 2>&5
10864
  ac_status=$?
10865
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866
  (exit $ac_status); }; } &&
10867
	 { ac_try='test -s conftest.$ac_objext'
10868
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10869
  (eval $ac_try) 2>&5
10870
  ac_status=$?
10871
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872
  (exit $ac_status); }; }; then
10873
  ncp_cv_pthread="yes"
10874
else
10875
  echo "$as_me: failed program was:" >&5
10876
sed 's/^/| /' conftest.$ac_ext >&5
10877
10878
ncp_cv_pthread="no"
10879
10880
fi
10881
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10882
    if test "$ncp_cv_pthread" = "no"
10883
    then
10884
      cat >conftest.$ac_ext <<_ACEOF
10885
/* confdefs.h.  */
10886
_ACEOF
10887
cat confdefs.h >>conftest.$ac_ext
10888
cat >>conftest.$ac_ext <<_ACEOF
10889
/* end confdefs.h.  */
10890
#define _MIT_POSIX_THREADS 1
10891
#include <stdlib.h>
10892
#include <pthread.h>
10893
int
10894
main ()
10895
{
10896
pthread_mutex_t a;
10897
         pthread_once_t b;
10898
         pthread_mutex_init(&a, NULL);
10899
         pthread_mutex_lock(&a);
10900
         pthread_mutex_unlock(&a);
10901
         pthread_mutex_destroy(&a)
10902
  ;
10903
  return 0;
10904
}
10905
_ACEOF
10906
rm -f conftest.$ac_objext
10907
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10908
  (eval $ac_compile) 2>conftest.er1
10909
  ac_status=$?
10910
  grep -v '^ *+' conftest.er1 >conftest.err
10911
  rm -f conftest.er1
10912
  cat conftest.err >&5
10913
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914
  (exit $ac_status); } &&
10915
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10916
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10917
  (eval $ac_try) 2>&5
10918
  ac_status=$?
10919
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10920
  (exit $ac_status); }; } &&
10921
	 { ac_try='test -s conftest.$ac_objext'
10922
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10923
  (eval $ac_try) 2>&5
10924
  ac_status=$?
10925
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926
  (exit $ac_status); }; }; then
10927
  ncp_cv_pthread="MIT Posix threads needed"
10928
else
10929
  echo "$as_me: failed program was:" >&5
10930
sed 's/^/| /' conftest.$ac_ext >&5
10931
10932
ncp_cv_pthread="no"
10933
10934
fi
10935
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10936
    fi
10937
10938
fi
10939
echo "$as_me:$LINENO: result: $ncp_cv_pthread" >&5
10940
echo "${ECHO_T}$ncp_cv_pthread" >&6
10941
  case "$ncp_cv_pthread" in
10942
no) if test "$reentrant_forced" = "yes"
10943
      then
10944
        { { echo "$as_me:$LINENO: error: Cannot build threading libraries without working pthread support" >&5
10945
echo "$as_me: error: Cannot build threading libraries without working pthread support" >&2;}
10946
   { (exit 1); exit 1; }; }
10947
      fi
10948
      REENTRANT=0
10949
      ;;
10950
MIT*)
10951
cat >>confdefs.h <<\_ACEOF
10952
#define _MIT_POSIX_THREADS 1
10953
_ACEOF
10954
10955
      ;;
10956
  esac
10957
fi
10958
if test "$REENTRANT" != "0"
10959
then
10960
  echo "$as_me:$LINENO: checking for working weak symbols" >&5
10961
echo $ECHO_N "checking for working weak symbols... $ECHO_C" >&6
10962
if test "${ncp_cv_weak_symbols+set}" = set; then
10963
  echo $ECHO_N "(cached) $ECHO_C" >&6
10964
else
10965
  cat >conftest.$ac_ext <<_ACEOF
10966
/* confdefs.h.  */
10967
_ACEOF
10968
cat confdefs.h >>conftest.$ac_ext
10969
cat >>conftest.$ac_ext <<_ACEOF
10970
/* end confdefs.h.  */
10971
#include <pthread.h>
10972
#pragma weak pthread_mutex_lock
10973
int
10974
main ()
10975
{
10976
pthread_mutex_t a;
10977
       pthread_mutex_lock(&a)
10978
  ;
10979
  return 0;
10980
}
10981
_ACEOF
10982
rm -f conftest.$ac_objext conftest$ac_exeext
10983
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10984
  (eval $ac_link) 2>conftest.er1
10985
  ac_status=$?
10986
  grep -v '^ *+' conftest.er1 >conftest.err
10987
  rm -f conftest.er1
10988
  cat conftest.err >&5
10989
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10990
  (exit $ac_status); } &&
10991
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
10992
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10993
  (eval $ac_try) 2>&5
10994
  ac_status=$?
10995
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10996
  (exit $ac_status); }; } &&
10997
	 { ac_try='test -s conftest$ac_exeext'
10998
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10999
  (eval $ac_try) 2>&5
11000
  ac_status=$?
11001
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002
  (exit $ac_status); }; }; then
11003
  ncp_cv_weak_symbols="yes"
11004
else
11005
  echo "$as_me: failed program was:" >&5
11006
sed 's/^/| /' conftest.$ac_ext >&5
11007
11008
ncp_cv_weak_symbols="no"
11009
11010
fi
11011
rm -f conftest.err conftest.$ac_objext \
11012
      conftest$ac_exeext conftest.$ac_ext
11013
11014
fi
11015
echo "$as_me:$LINENO: result: $ncp_cv_weak_symbols" >&5
11016
echo "${ECHO_T}$ncp_cv_weak_symbols" >&6
11017
  if test "$ncp_cv_weak_symbols" = "no"
11018
  then
11019
    if test "$reentrant_forced" = "yes"
11020
    then
11021
      { { echo "$as_me:$LINENO: error: Cannot build threading libraries without working weak imports" >&5
11022
echo "$as_me: error: Cannot build threading libraries without working weak imports" >&2;}
11023
   { (exit 1); exit 1; }; }
11024
    fi
11025
    REENTRANT=0
11026
  fi
11027
fi
11028
if test "$REENTRANT" = "0"
11029
then
11030
  REENTRANT_CFLAGS=""
11031
11032
  ncphost=none
11033
  ncphosttested=yes
11034
else
11035
  REENTRANT_CFLAGS="-D_REENTRANT"
11036
11037
  ncphost=generic
11038
  ncphosttested=yes
11039
  case "$host" in
11040
1750a-*)		;;
11041
580-*)			;;
11042
cjt90-*)		;;
11043
a29k-*)			;;
11044
alpha-*)		ncphost=alpha; ncphosttested=no ;;
11045
alphaev56-*)		ncphost=alpha; ncphosttested=no ;;
11046
alphaev678-*)		ncphost=alpha; ncphosttested=no ;;
11047
alphaev4-8-*)		ncphost=alpha; ncphosttested=no ;;
11048
alphapca567-*)	ncphost=alpha; ncphosttested=no ;;
11049
arc-*)			;;
11050
arm-*)			;;
11051
armbe-*)		;;
11052
armle-*)		;;
11053
armv*-*)		;;
11054
avr-*)			;;
11055
bs2000-*)		;;
11056
c30-*)			;;
11057
c4x-*)			;;
11058
c54x-*)			;;
11059
c123*)		;;
11060
clipper-*)		;;
11061
cray2-*)		;;
11062
cris-*)			;;
11063
cydra-*)		;;
11064
d10v-*)			;;
11065
d30v-*)			;;
11066
dsp16xx-*)		;;
11067
elxsi-*)		;;
11068
f3001-*)		;;
11069
f700-*)			;;
11070
fr30-*)			;;
11071
fx80-*)			;;
11072
h8300-*)		;;
11073
h8500-*)		;;
11074
hppa-*)			;;
11075
hppa1.0-*)		;;
11076
hppa1.1-*)		;;
11077
hppa2.0-*)		;;
11078
hppa2.0n-*)		;;
11079
hppa2.0w-*)		;;
11080
hppa64-*)		;;
11081
i*86-*)			ncphost=i386; ncphosttested=yes ;;
11082
i370-*)			;;
11083
i860-*)			;;
11084
i960-*)			;;
11085
ia64-*)			;;
11086
m32r-*)			;;
11087
m5200-*)		;;
11088
m6800123460-*)	ncphost=m68k; ncphosttested=no ;;
11089
m68112-*)		;;
11090
m68360-*)		;;
11091
m683?2-*)		;;
11092
m68hc112-*)		;;
11093
m68k-*)			ncphost=m68k; ncphosttested=no ;;
11094
m88110-*)		;;
11095
m88k-*)			;;
11096
mcore-*)		;;
11097
mips-*)			ncphost=mips; ncphosttested=no ;;
11098
mips16-*)		;;
11099
mips64*-*)		ncphost=mips64; ncphosttested=no ;;
11100
mipsbe-*)		ncphost=mips; ncphosttested=no ;;
11101
mipsel-*)		ncphost=mips; ncphosttested=no ;;
11102
mipsle-*)		ncphost=mips; ncphosttested=no ;;
11103
mipstx39-*)		;;
11104
mipstx39el-*)		;;
11105
mmix-*)			;;
11106
mn102300-*)		;;
11107
none-*)			;;
11108
np1-*)			;;
11109
ns16k-*)		;;
11110
ns32k-*)		;;
11111
nsr-*)			;;
11112
openrisc-*)		;;
11113
orion-*)		;;
11114
pdp10-*)		;;
11115
pdp11-*)		;;
11116
pj-*)			;;
11117
pjl-*)			;;
11118
pn-*)			;;
11119
power-*)		;;
11120
powerpc-*)		ncphost=ppc; ncphosttested=no ;;
11121
powerpcle-*)		ncphost=ppc; ncphosttested=no ;;
11122
ppcbe-*)		;;
11123
pyramid-*)		;;
11124
romp-*)			;;
11125
rs6000-*)		;;
11126
s390-*)			;;
11127
s390x-*)		;;
11128
sh-*)			;;
11129
sh34-*)		;;
11130
sh34eb-*)		;;
11131
shbe-*)			;;
11132
shle-*)			;;
11133
sparc-*)		;;
11134
sparc64-*)		;;
11135
sparc86x-*)		;;
11136
sparclet-*)		;;
11137
sparclite-*)		;;
11138
sparcv9-*)		;;
11139
sparcv9b-*)		;;
11140
spur-*)			;;
11141
strongarm-*)		;;
11142
sv1-*)			;;
11143
t3e-*)			;;
11144
tahoe-*)		;;
11145
thumb-*)		;;
11146
tic30-*)		;;
11147
tic54x-*)		;;
11148
tic80-*)		;;
11149
tron-*)			;;
11150
v70-*)			;;
11151
v810-*)			;;
11152
v850-*)			;;
11153
vax-*)			;;
11154
w65-*)			;;
11155
we32k-*)		;;
11156
x86-*)			ncphost=i386; ncphosttested=yes ;;
11157
x86_64-*)		;;
11158
xmp-*)			;;
11159
xps100-*)		;;
11160
xscale-*)		;;
11161
ymp-*)			;;
11162
z8k-*)			;;
11163
esac
11164
  echo "$as_me:$LINENO: checking for working atomic operations" >&5
11165
echo $ECHO_N "checking for working atomic operations... $ECHO_C" >&6
11166
if test "${ncp_cv_asm_atomic_h+set}" = set; then
11167
  echo $ECHO_N "(cached) $ECHO_C" >&6
11168
else
11169
  if test "$ncp_cv_asm_atomic_h" = "generic"
11170
    then
11171
      ncp_cv_asm_atomic_h="pthread based"
11172
    else
11173
      cat >conftest.$ac_ext <<_ACEOF
11174
/* confdefs.h.  */
11175
_ACEOF
11176
cat confdefs.h >>conftest.$ac_ext
11177
cat >>conftest.$ac_ext <<_ACEOF
11178
/* end confdefs.h.  */
11179
#include "include/private/asm-$ncphost/atomic.h"
11180
int
11181
main ()
11182
{
11183
ncpt_atomic_t a;
11184
         ncpt_atomic_set(&a,2);
11185
         ncpt_atomic_dec(&a);
11186
         if (ncpt_atomic_read(&a)) {
11187
           if (!ncpt_atomic_dec_and_test(&a)) {
11188
  	     ncpt_atomic_inc(&a);
11189
	   }
11190
         }
11191
  ;
11192
  return 0;
11193
}
11194
_ACEOF
11195
rm -f conftest.$ac_objext conftest$ac_exeext
11196
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11197
  (eval $ac_link) 2>conftest.er1
11198
  ac_status=$?
11199
  grep -v '^ *+' conftest.er1 >conftest.err
11200
  rm -f conftest.er1
11201
  cat conftest.err >&5
11202
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203
  (exit $ac_status); } &&
11204
	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
11205
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11206
  (eval $ac_try) 2>&5
11207
  ac_status=$?
11208
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209
  (exit $ac_status); }; } &&
11210
	 { ac_try='test -s conftest$ac_exeext'
11211
  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11212
  (eval $ac_try) 2>&5
11213
  ac_status=$?
11214
  echo "$as_me:$LINENO: \$? = $ac_status" >&5
11215
  (exit $ac_status); }; }; then
11216
  ncp_cv_asm_atomic_h="optimized"
11217
else
11218
  echo "$as_me: failed program was:" >&5
11219
sed 's/^/| /' conftest.$ac_ext >&5
11220
11221
ncp_cv_asm_atomic_h="falling back to pthread based"
11222
	 ncphost=generic
11223
	 ncphosttested=yes
11224
11225
11226
fi
11227
rm -f conftest.err conftest.$ac_objext \
11228
      conftest$ac_exeext conftest.$ac_ext
11229
    fi
11230
11231
fi
11232
echo "$as_me:$LINENO: result: $ncp_cv_asm_atomic_h" >&5
11233
echo "${ECHO_T}$ncp_cv_asm_atomic_h" >&6
11234
  if test "$ncp_cv_asm_atomic_h" = "falling back to pthread based"
11235
  then
11236
    ncphost=generic
11237
    ncphosttested=yes
11238
  fi
11239
fi
11240
11241
11242
11243
echo "$as_me:$LINENO: checking for ELF target" >&5
11244
echo $ECHO_N "checking for ELF target... $ECHO_C" >&6
11245
if test "${ncp_cv_elf_target+set}" = set; then
11246
  echo $ECHO_N "(cached) $ECHO_C" >&6
11247
else
11248
      ncp_cv_elf_target=no
11249
     cat >conftest.c <<EOF
11250
int main(void) { return 0;};
11251
EOF
11252
     if ${CC} ${CFLAGS} -o conftest conftest.c >/dev/null 2>&1
11253
     then
11254
       (file conftest | grep ELF >/dev/null 2>&1) && ncp_cv_elf_target=yes
11255
     fi
11256
     rm -f conftest*
11257
11258
11259
fi
11260
echo "$as_me:$LINENO: result: $ncp_cv_elf_target" >&5
11261
echo "${ECHO_T}$ncp_cv_elf_target" >&6
11262
ELF_TARGET="$ncp_cv_elf_target"
11263
11264
11265
FFUNCTION_SECTIONS=""
11266
GC_SECTIONS=""
11267
if test "$function_sections" = "yes"
11268
then
11269
  echo "$as_me:$LINENO: checking for function sections" >&5
11270
echo $ECHO_N "checking for function sections... $ECHO_C" >&6
11271
if test "${ncp_cv_function_sections+set}" = set; then
11272
  echo $ECHO_N "(cached) $ECHO_C" >&6
11273
else
11274
      ncp_cv_function_sections=no
11275
    cat >conftest.c <<EOF
11276
int main(void) { return 0;};
11277
EOF
11278
    if ${CC} ${CFLAGS} -ffunction-sections -fdata-sections -Wl,--gc-sections -o conftest conftest.c >/dev/null 2>&1
11279
    then
11280
      ncp_cv_function_sections=yes
11281
    fi
11282
    rm -f conftest*
11283
11284
11285
fi
11286
echo "$as_me:$LINENO: result: $ncp_cv_function_sections" >&5
11287
echo "${ECHO_T}$ncp_cv_function_sections" >&6
11288
  if test "$ncp_cv_function_sections" = "no"
11289
  then
11290
    if test "$function_sections_forced" = "yes"
11291
    then
11292
      { { echo "$as_me:$LINENO: error: Your compiler does not support -ffunction-sections or -fdata-sections or your linker does not support --gc-sections. Please reconfigure without --enable-function-sections." >&5
11293
echo "$as_me: error: Your compiler does not support -ffunction-sections or -fdata-sections or your linker does not support --gc-sections. Please reconfigure without --enable-function-sections." >&2;}
11294
   { (exit 1); exit 1; }; }
11295
    fi
11296
  fi
11297
  function_sections="$ncp_cv_function_sections"
11298
fi
11299
if test "$function_sections" = "yes"
11300
then
11301
    FFUNCTION_SECTIONS="-ffunction-sections -fdata-sections "
11302
    GC_SECTIONS="-Wl,--gc-sections "
11303
fi
11304
11305
if test "$VERSIONED_LINK" = "yes"
11306
then
11307
  echo "$as_me:$LINENO: checking for working versioned link" >&5
11308
echo $ECHO_N "checking for working versioned link... $ECHO_C" >&6
11309
if test "${ncp_cv_versioned_link+set}" = set; then
11310
  echo $ECHO_N "(cached) $ECHO_C" >&6
11311
else
11312
      ncp_cv_versioned_link=no
11313
    cat >conftest.vers <<EOF
11314
VERS_1.0 {
11315
    global: gsym;
11316
            gundef;
11317
    local: lsym;
11318
           lundef;
11319
};
11320
EOF
11321
    cat >conftest.c <<EOF
11322
void lsym(void) { };
11323
void gsym(void) { };
11324
EOF
11325
    if ${CC} -shared -Wl,-version-script=conftest.vers -o conftest.so conftest.c -lc >/dev/null 2>&1
11326
    then
11327
      ncp_cv_versioned_link=yes
11328
    fi
11329
11330
fi
11331
echo "$as_me:$LINENO: result: $ncp_cv_versioned_link" >&5
11332
echo "${ECHO_T}$ncp_cv_versioned_link" >&6
11333
  rm -f conftest.c conftest.vers conftest.so
11334
  if test "$ncp_cv_versioned_link" = "no"
11335
  then
11336
    if test "$versions_forced" = "yes"
11337
    then
11338
      { { echo "$as_me:$LINENO: error: Cannot use versioned symbols in your environment" >&5
11339
echo "$as_me: error: Cannot use versioned symbols in your environment" >&2;}
11340
   { (exit 1); exit 1; }; }
11341
    fi
11342
    VERSIONED_LINK=no
11343
  fi
11344
fi
11345
11346
11347
if test "$USE_KERNEL" = "0"
11348
then
11349
    MOUNT2=0
11350
    MOUNT3=0
11351
else
11352
11353
cat >>confdefs.h <<\_ACEOF
11354
#define USE_KERNEL 1
11355
_ACEOF
11356
11357
fi
11358
if test "$MOUNT2" = "1"
11359
then
11360
11361
cat >>confdefs.h <<\_ACEOF
11362
#define MOUNT2 1
11363
_ACEOF
11364
11365
fi
11366
if test "$MOUNT3" = "1"
11367
then
11368
11369
cat >>confdefs.h <<\_ACEOF
11370
#define MOUNT3 1
11371
_ACEOF
11372
11373
fi
11374
if test "$PROTOCOL_IP" = "0"
11375
then
11376
    ncp_in_support="#undef NCP_IN_SUPPORT"
11377
else
11378
    ncp_in_support="#define NCP_IN_SUPPORT"
11379
fi
11380
if test "$PROTOCOL_IPX" = "0"
11381
then
11382
    ncp_ipx_support="#undef NCP_IPX_SUPPORT"
11383
else
11384
    ncp_ipx_support="#define NCP_IPX_SUPPORT"
11385
fi
11386
11387
11388
11389
ADDON_SUBDIRS="$ADDON_SUBDIRS $ADDON_DEV_SUBDIRS"
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
                                                                                                                                                                                    ac_config_files="$ac_config_files Make.rules Makefile lib/Makefile man/Makefile util/Makefile sutil/Makefile ipx-1.0/Makefile ipx-1.0/Samples/Makefile ipxdump/Makefile contrib/tknwmsg/Makefile contrib/testing/Makefile contrib/testing/pp/Makefile contrib/tcl-utils/Makefile contrib/tests/Makefile intl/Makefile po/Makefile.in contrib/pam/Makefile contrib/php/Makefile.in"
11402
11403
                                                                                          ac_config_files="$ac_config_files include/private/libncp-atomic.h.tmp:include/private/libncp-atomic.h.in include/ncp/nwnet.h.tmp:include/ncp/nwnet.h.in include/ncp/ext/stdint.h.tmp:include/ncp/ext/stdint.h.in include/ncp/ext/socket.h.tmp:include/ncp/ext/socket.h.in include/ncp/kernel/fs.h.tmp:include/ncp/kernel/fs.h.in include/ncp/kernel/if.h.tmp:include/ncp/kernel/if.h.in include/ncp/kernel/ipx.h.tmp:include/ncp/kernel/ipx.h.in include/ncp/kernel/route.h.tmp:include/ncp/kernel/route.h.in include/ncp/kernel/types.h.tmp:include/ncp/kernel/types.h.in"
11404
11405
if test "$php_path_config" != ""
11406
then
11407
  if test "$with_php_config" = "yes"
11408
  then
11409
    { { echo "$as_me:$LINENO: error: Current PHP configure does not handle --with-php-config correctly. Use --with-php-config=php-config instead." >&5
11410
echo "$as_me: error: Current PHP configure does not handle --with-php-config correctly. Use --with-php-config=php-config instead." >&2;}
11411
   { (exit 1); exit 1; }; }
11412
  fi
11413
11414
11415
subdirs="$subdirs contrib/php"
11416
11417
fi
11418
cat >confcache <<\_ACEOF
11419
# This file is a shell script that caches the results of configure
11420
# tests run on this system so they can be shared between configure
11421
# scripts and configure runs, see configure's option --config-cache.
11422
# It is not useful on other systems.  If it contains results you don't
11423
# want to keep, you may remove or edit it.
11424
#
11425
# config.status only pays attention to the cache file if you give it
11426
# the --recheck option to rerun configure.
11427
#
11428
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11429
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11430
# following values.
11431
11432
_ACEOF
11433
11434
# The following way of writing the cache mishandles newlines in values,
11435
# but we know of no workaround that is simple, portable, and efficient.
11436
# So, don't put newlines in cache variables' values.
11437
# Ultrix sh set writes to stderr and can't be redirected directly,
11438
# and sets the high bit in the cache file unless we assign to the vars.
11439
{
11440
  (set) 2>&1 |
11441
    case `(ac_space=' '; set | grep ac_space) 2>&1` in
11442
    *ac_space=\ *)
11443
      # `set' does not quote correctly, so add quotes (double-quote
11444
      # substitution turns \\\\ into \\, and sed turns \\ into \).
11445
      sed -n \
11446
	"s/'/'\\\\''/g;
11447
	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11448
      ;;
11449
    *)
11450
      # `set' quotes correctly as required by POSIX, so do not add quotes.
11451
      sed -n \
11452
	"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
11453
      ;;
11454
    esac;
11455
} |
11456
  sed '
11457
     t clear
11458
     : clear
11459
     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11460
     t end
11461
     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11462
     : end' >>confcache
11463
if diff $cache_file confcache >/dev/null 2>&1; then :; else
11464
  if test -w $cache_file; then
11465
    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
11466
    cat confcache >$cache_file
11467
  else
11468
    echo "not updating unwritable cache $cache_file"
11469
  fi
11470
fi
11471
rm -f confcache
11472
11473
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11474
# Let make expand exec_prefix.
11475
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11476
11477
# VPATH may cause trouble with some makes, so we remove $(srcdir),
11478
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
11479
# trailing colons and then remove the whole line if VPATH becomes empty
11480
# (actually we leave an empty line to preserve line numbers).
11481
if test "x$srcdir" = x.; then
11482
  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
11483
s/:*\$(srcdir):*/:/;
11484
s/:*\${srcdir}:*/:/;
11485
s/:*@srcdir@:*/:/;
11486
s/^\([^=]*=[	 ]*\):*/\1/;
11487
s/:*$//;
11488
s/^[^=]*=[	 ]*$//;
11489
}'
11490
fi
11491
11492
DEFS=-DHAVE_CONFIG_H
11493
11494
ac_libobjs=
11495
ac_ltlibobjs=
11496
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11497
  # 1. Remove the extension, and $U if already installed.
11498
  ac_i=`echo "$ac_i" |
11499
	 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
11500
  # 2. Add them.
11501
  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
11502
  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
11503
done
11504
LIBOBJS=$ac_libobjs
11505
11506
LTLIBOBJS=$ac_ltlibobjs
11507
11508
11509
11510
: ${CONFIG_STATUS=./config.status}
11511
ac_clean_files_save=$ac_clean_files
11512
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11513
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
11514
echo "$as_me: creating $CONFIG_STATUS" >&6;}
11515
cat >$CONFIG_STATUS <<_ACEOF
11516
#! $SHELL
11517
# Generated by $as_me.
11518
# Run this file to recreate the current configuration.
11519
# Compiler output produced by configure, useful for debugging
11520
# configure, is in config.log if it exists.
11521
11522
debug=false
11523
ac_cs_recheck=false
11524
ac_cs_silent=false
11525
SHELL=\${CONFIG_SHELL-$SHELL}
11526
_ACEOF
11527
11528
cat >>$CONFIG_STATUS <<\_ACEOF
11529
## --------------------- ##
11530
## M4sh Initialization.  ##
11531
## --------------------- ##
11532
11533
# Be Bourne compatible
11534
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
11535
  emulate sh
11536
  NULLCMD=:
11537
  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
11538
  # is contrary to our usage.  Disable this feature.
11539
  alias -g '${1+"$@"}'='"$@"'
11540
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
11541
  set -o posix
11542
fi
11543
DUALCASE=1; export DUALCASE # for MKS sh
11544
11545
# Support unset when possible.
11546
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
11547
  as_unset=unset
11548
else
11549
  as_unset=false
11550
fi
11551
11552
11553
# Work around bugs in pre-3.0 UWIN ksh.
11554
$as_unset ENV MAIL MAILPATH
11555
PS1='$ '
11556
PS2='> '
11557
PS4='+ '
11558
11559
# NLS nuisances.
11560
for as_var in \
11561
  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
11562
  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
11563
  LC_TELEPHONE LC_TIME
11564
do
11565
  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
11566
    eval $as_var=C; export $as_var
11567
  else
11568
    $as_unset $as_var
11569
  fi
11570
done
11571
11572
# Required to use basename.
11573
if expr a : '\(a\)' >/dev/null 2>&1; then
11574
  as_expr=expr
11575
else
11576
  as_expr=false
11577
fi
11578
11579
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
11580
  as_basename=basename
11581
else
11582
  as_basename=false
11583
fi
11584
11585
11586
# Name of the executable.
11587
as_me=`$as_basename "$0" ||
11588
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11589
	 X"$0" : 'X\(//\)$' \| \
11590
	 X"$0" : 'X\(/\)$' \| \
11591
	 .     : '\(.\)' 2>/dev/null ||
11592
echo X/"$0" |
11593
    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
11594
  	  /^X\/\(\/\/\)$/{ s//\1/; q; }
11595
  	  /^X\/\(\/\).*/{ s//\1/; q; }
11596
  	  s/.*/./; q'`
11597
11598
11599
# PATH needs CR, and LINENO needs CR and PATH.
11600
# Avoid depending upon Character Ranges.
11601
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11602
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11603
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11604
as_cr_digits='0123456789'
11605
as_cr_alnum=$as_cr_Letters$as_cr_digits
11606
11607
# The user is always right.
11608
if test "${PATH_SEPARATOR+set}" != set; then
11609
  echo "#! /bin/sh" >conf$$.sh
11610
  echo  "exit 0"   >>conf$$.sh
11611
  chmod +x conf$$.sh
11612
  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
11613
    PATH_SEPARATOR=';'
11614
  else
11615
    PATH_SEPARATOR=:
11616
  fi
11617
  rm -f conf$$.sh
11618
fi
11619
11620
11621
  as_lineno_1=$LINENO
11622
  as_lineno_2=$LINENO
11623
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11624
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11625
  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
11626
  # Find who we are.  Look in the path if we contain no path at all
11627
  # relative or not.
11628
  case $0 in
11629
    *[\\/]* ) as_myself=$0 ;;
11630
    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631
for as_dir in $PATH
11632
do
11633
  IFS=$as_save_IFS
11634
  test -z "$as_dir" && as_dir=.
11635
  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11636
done
11637
11638
       ;;
11639
  esac
11640
  # We did not find ourselves, most probably we were run as `sh COMMAND'
11641
  # in which case we are not to be found in the path.
11642
  if test "x$as_myself" = x; then
11643
    as_myself=$0
11644
  fi
11645
  if test ! -f "$as_myself"; then
11646
    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
11647
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
11648
   { (exit 1); exit 1; }; }
11649
  fi
11650
  case $CONFIG_SHELL in
11651
  '')
11652
    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11653
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
11654
do
11655
  IFS=$as_save_IFS
11656
  test -z "$as_dir" && as_dir=.
11657
  for as_base in sh bash ksh sh5; do
11658
	 case $as_dir in
11659
	 /*)
11660
	   if ("$as_dir/$as_base" -c '
11661
  as_lineno_1=$LINENO
11662
  as_lineno_2=$LINENO
11663
  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
11664
  test "x$as_lineno_1" != "x$as_lineno_2" &&
11665
  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
11666
	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
11667
	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
11668
	     CONFIG_SHELL=$as_dir/$as_base
11669
	     export CONFIG_SHELL
11670
	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
11671
	   fi;;
11672
	 esac
11673
       done
11674
done
11675
;;
11676
  esac
11677
11678
  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
11679
  # uniformly replaced by the line number.  The first 'sed' inserts a
11680
  # line-number line before each line; the second 'sed' does the real
11681
  # work.  The second script uses 'N' to pair each line-number line
11682
  # with the numbered line, and appends trailing '-' during
11683
  # substitution so that $LINENO is not a special case at line end.
11684
  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
11685
  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
11686
  sed '=' <$as_myself |
11687
    sed '
11688
      N
11689
      s,$,-,
11690
      : loop
11691
      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
11692
      t loop
11693
      s,-$,,
11694
      s,^['$as_cr_digits']*\n,,
11695
    ' >$as_me.lineno &&
11696
  chmod +x $as_me.lineno ||
11697
    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
11698
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
11699
   { (exit 1); exit 1; }; }
11700
11701
  # Don't try to exec as it changes $[0], causing all sort of problems
11702
  # (the dirname of $[0] is not the place where we might find the
11703
  # original and so on.  Autoconf is especially sensible to this).
11704
  . ./$as_me.lineno
11705
  # Exit status is that of the last command.
11706
  exit
11707
}
11708
11709
11710
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
11711
  *c*,-n*) ECHO_N= ECHO_C='
11712
' ECHO_T='	' ;;
11713
  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
11714
  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
11715
esac
11716
11717
if expr a : '\(a\)' >/dev/null 2>&1; then
11718
  as_expr=expr
11719
else
11720
  as_expr=false
11721
fi
11722
11723
rm -f conf$$ conf$$.exe conf$$.file
11724
echo >conf$$.file
11725
if ln -s conf$$.file conf$$ 2>/dev/null; then
11726
  # We could just check for DJGPP; but this test a) works b) is more generic
11727
  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
11728
  if test -f conf$$.exe; then
11729
    # Don't use ln at all; we don't have any links
11730
    as_ln_s='cp -p'
11731
  else
11732
    as_ln_s='ln -s'
11733
  fi
11734
elif ln conf$$.file conf$$ 2>/dev/null; then
11735
  as_ln_s=ln
11736
else
11737
  as_ln_s='cp -p'
11738
fi
11739
rm -f conf$$ conf$$.exe conf$$.file
11740
11741
if mkdir -p . 2>/dev/null; then
11742
  as_mkdir_p=:
11743
else
11744
  test -d ./-p && rmdir ./-p
11745
  as_mkdir_p=false
11746
fi
11747
11748
as_executable_p="test -f"
11749
11750
# Sed expression to map a string onto a valid CPP name.
11751
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11752
11753
# Sed expression to map a string onto a valid variable name.
11754
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11755
11756
11757
# IFS
11758
# We need space, tab and new line, in precisely that order.
11759
as_nl='
11760
'
11761
IFS=" 	$as_nl"
11762
11763
# CDPATH.
11764
$as_unset CDPATH
11765
11766
exec 6>&1
11767
11768
# Open the log real soon, to keep \$[0] and so on meaningful, and to
11769
# report actual input values of CONFIG_FILES etc. instead of their
11770
# values after options handling.  Logging --version etc. is OK.
11771
exec 5>>config.log
11772
{
11773
  echo
11774
  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11775
## Running $as_me. ##
11776
_ASBOX
11777
} >&5
11778
cat >&5 <<_CSEOF
11779
1.1.1 by Anibal Monsalve Salazar
Import upstream version 2.2.6
11780
This file was extended by ncpfs $as_me 2.2.6, which was
1 by Eloy A. Paris
Import upstream version 2.2.4
11781
generated by GNU Autoconf 2.59.  Invocation command line was
11782
11783
  CONFIG_FILES    = $CONFIG_FILES
11784
  CONFIG_HEADERS  = $CONFIG_HEADERS
11785
  CONFIG_LINKS    = $CONFIG_LINKS
11786
  CONFIG_COMMANDS = $CONFIG_COMMANDS
11787
  $ $0 $@
11788
11789
_CSEOF
11790
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
11791
echo >&5
11792
_ACEOF
11793
11794
# Files that config.status was made for.
11795
if test -n "$ac_config_files"; then
11796
  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
11797
fi
11798
11799
if test -n "$ac_config_headers"; then
11800
  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
11801
fi
11802
11803
if test -n "$ac_config_links"; then
11804
  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
11805
fi
11806
11807
if test -n "$ac_config_commands"; then
11808
  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
11809
fi
11810
11811
cat >>$CONFIG_STATUS <<\_ACEOF
11812
11813
ac_cs_usage="\
11814
\`$as_me' instantiates files from templates according to the
11815
current configuration.
11816
11817
Usage: $0 [OPTIONS] [FILE]...
11818
11819
  -h, --help       print this help, then exit
11820
  -V, --version    print version number, then exit
11821
  -q, --quiet      do not print progress messages
11822
  -d, --debug      don't remove temporary files
11823
      --recheck    update $as_me by reconfiguring in the same conditions
11824
  --file=FILE[:TEMPLATE]
11825
		   instantiate the configuration file FILE
11826
  --header=FILE[:TEMPLATE]
11827
		   instantiate the configuration header FILE
11828
11829
Configuration files:
11830
$config_files
11831
11832
Configuration headers:
11833
$config_headers
11834
11835
Configuration commands:
11836
$config_commands
11837
11838
Report bugs to <bug-autoconf@gnu.org>."
11839
_ACEOF
11840
11841
cat >>$CONFIG_STATUS <<_ACEOF
11842
ac_cs_version="\\
1.1.1 by Anibal Monsalve Salazar
Import upstream version 2.2.6
11843
ncpfs config.status 2.2.6
1 by Eloy A. Paris
Import upstream version 2.2.4
11844
configured by $0, generated by GNU Autoconf 2.59,
11845
  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
11846
11847
Copyright (C) 2003 Free Software Foundation, Inc.
11848
This config.status script is free software; the Free Software Foundation
11849
gives unlimited permission to copy, distribute and modify it."
11850
srcdir=$srcdir
11851
INSTALL="$INSTALL"
11852
_ACEOF
11853
11854
cat >>$CONFIG_STATUS <<\_ACEOF
11855
# If no file are specified by the user, then we need to provide default
11856
# value.  By we need to know if files were specified by the user.
11857
ac_need_defaults=:
11858
while test $# != 0
11859
do
11860
  case $1 in
11861
  --*=*)
11862
    ac_option=`expr "x$1" : 'x\([^=]*\)='`
11863
    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
11864
    ac_shift=:
11865
    ;;
11866
  -*)
11867
    ac_option=$1
11868
    ac_optarg=$2
11869
    ac_shift=shift
11870
    ;;
11871
  *) # This is not an option, so the user has probably given explicit
11872
     # arguments.
11873
     ac_option=$1
11874
     ac_need_defaults=false;;
11875
  esac
11876
11877
  case $ac_option in
11878
  # Handling of the options.
11879
_ACEOF
11880
cat >>$CONFIG_STATUS <<\_ACEOF
11881
  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11882
    ac_cs_recheck=: ;;
11883
  --version | --vers* | -V )
11884
    echo "$ac_cs_version"; exit 0 ;;
11885
  --he | --h)
11886
    # Conflict between --help and --header
11887
    { { echo "$as_me:$LINENO: error: ambiguous option: $1
11888
Try \`$0 --help' for more information." >&5
11889
echo "$as_me: error: ambiguous option: $1
11890
Try \`$0 --help' for more information." >&2;}
11891
   { (exit 1); exit 1; }; };;
11892
  --help | --hel | -h )
11893
    echo "$ac_cs_usage"; exit 0 ;;
11894
  --debug | --d* | -d )
11895
    debug=: ;;
11896
  --file | --fil | --fi | --f )
11897
    $ac_shift
11898
    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
11899
    ac_need_defaults=false;;
11900
  --header | --heade | --head | --hea )
11901
    $ac_shift
11902
    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
11903
    ac_need_defaults=false;;
11904
  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11905
  | -silent | --silent | --silen | --sile | --sil | --si | --s)
11906
    ac_cs_silent=: ;;
11907
11908
  # This is an error.
11909
  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
11910
Try \`$0 --help' for more information." >&5
11911
echo "$as_me: error: unrecognized option: $1
11912
Try \`$0 --help' for more information." >&2;}
11913
   { (exit 1); exit 1; }; } ;;
11914
11915
  *) ac_config_targets="$ac_config_targets $1" ;;
11916
11917
  esac
11918
  shift
11919
done
11920
11921
ac_configure_extra_args=
11922
11923
if $ac_cs_silent; then
11924
  exec 6>/dev/null
11925
  ac_configure_extra_args="$ac_configure_extra_args --silent"
11926
fi
11927
11928
_ACEOF
11929
cat >>$CONFIG_STATUS <<_ACEOF
11930
if \$ac_cs_recheck; then
11931
  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
11932
  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11933
fi
11934
11935
_ACEOF
11936
11937
cat >>$CONFIG_STATUS <<_ACEOF
11938
#
11939
# INIT-COMMANDS section.
11940
#
11941
11942
# Capture the value of obsolete ALL_LINGUAS because we need it to compute
11943
    # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it
11944
    # from automake.
11945
    eval 'ALL_LINGUAS''="$ALL_LINGUAS"'
11946
    # Capture the value of LINGUAS because we need it to compute CATALOGS.
11947
    LINGUAS="${LINGUAS-%UNSET%}"
11948
11949
11950
_ACEOF
11951
11952
11953
11954
cat >>$CONFIG_STATUS <<\_ACEOF
11955
for ac_config_target in $ac_config_targets
11956
do
11957
  case "$ac_config_target" in
11958
  # Handling of arguments.
11959
  "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
11960
  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
11961
  "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
11962
  "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
11963
  "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
11964
  "sutil/Makefile" ) CONFIG_FILES="$CONFIG_FILES sutil/Makefile" ;;
11965
  "ipx-1.0/Makefile" ) CONFIG_FILES="$CONFIG_FILES ipx-1.0/Makefile" ;;
11966
  "ipx-1.0/Samples/Makefile" ) CONFIG_FILES="$CONFIG_FILES ipx-1.0/Samples/Makefile" ;;
11967
  "ipxdump/Makefile" ) CONFIG_FILES="$CONFIG_FILES ipxdump/Makefile" ;;
11968
  "contrib/tknwmsg/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/tknwmsg/Makefile" ;;
11969
  "contrib/testing/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/testing/Makefile" ;;
11970
  "contrib/testing/pp/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/testing/pp/Makefile" ;;
11971
  "contrib/tcl-utils/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/tcl-utils/Makefile" ;;
11972
  "contrib/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/tests/Makefile" ;;
11973
  "intl/Makefile" ) CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;;
11974
  "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
11975
  "contrib/pam/Makefile" ) CONFIG_FILES="$CONFIG_FILES contrib/pam/Makefile" ;;
11976
  "contrib/php/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES contrib/php/Makefile.in" ;;
11977
  "include/private/libncp-atomic.h.tmp" ) CONFIG_FILES="$CONFIG_FILES include/private/libncp-atomic.h.tmp:include/private/libncp-atomic.h.in" ;;
11978
  "include/ncp/nwnet.h.tmp" ) CONFIG_FILES="$CONFIG_FILES include/ncp/nwnet.h.tmp:include/ncp/nwnet.h.in" ;;
11979
  "include/ncp/ext/stdint.h.tmp" ) CONFIG_FILES="$CONFIG_FILES include/ncp/ext/stdint.h.tmp:include/ncp/ext/stdint.h.in" ;;
11980
  "include/ncp/ext/socket.h.tmp" ) CONFIG_FILES="$CONFIG_FILES include/ncp/ext/socket.h.tmp:include/ncp/ext/socket.h.in" ;;
11981
  "include/ncp/kernel/fs.h.tmp" ) CONFIG_FILES="$CONFIG_FILES include/ncp/kernel/fs.h.tmp:include/ncp/kernel/fs.h.in" ;;
11982
  "include/ncp/kernel/if.h.tmp" ) CONFIG_FILES="$CONFIG_FILES include/ncp/kernel/if.h.tmp:include/ncp/kernel/if.h.in" ;;
11983
  "include/ncp/kernel/ipx.h.tmp" ) CONFIG_FILES="$CONFIG_FILES include/ncp/kernel/ipx.h.tmp:include/ncp/kernel/ipx.h.in" ;;
11984
  "include/ncp/kernel/route.h.tmp" ) CONFIG_FILES="$CONFIG_FILES include/ncp/kernel/route.h.tmp:include/ncp/kernel/route.h.in" ;;
11985
  "include/ncp/kernel/types.h.tmp" ) CONFIG_FILES="$CONFIG_FILES include/ncp/kernel/types.h.tmp:include/ncp/kernel/types.h.in" ;;
11986
  "gettext" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gettext" ;;
11987
  "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
11988
  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
11989
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
11990
   { (exit 1); exit 1; }; };;
11991
  esac
11992
done
11993
11994
# If the user did not use the arguments to specify the items to instantiate,
11995
# then the envvar interface is used.  Set only those that are not.
11996
# We use the long form for the default assignment because of an extremely
11997
# bizarre bug on SunOS 4.1.3.
11998
if $ac_need_defaults; then
11999
  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12000
  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12001
  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12002
fi
12003
12004
# Have a temporary directory for convenience.  Make it in the build tree
12005
# simply because there is no reason to put it here, and in addition,
12006
# creating and moving files from /tmp can sometimes cause problems.
12007
# Create a temporary directory, and hook for its removal unless debugging.
12008
$debug ||
12009
{
12010
  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
12011
  trap '{ (exit 1); exit 1; }' 1 2 13 15
12012
}
12013
12014
# Create a (secure) tmp directory for tmp files.
12015
12016
{
12017
  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
12018
  test -n "$tmp" && test -d "$tmp"
12019
}  ||
12020
{
12021
  tmp=./confstat$$-$RANDOM
12022
  (umask 077 && mkdir $tmp)
12023
} ||
12024
{
12025
   echo "$me: cannot create a temporary directory in ." >&2
12026
   { (exit 1); exit 1; }
12027
}
12028
12029
_ACEOF
12030
12031
cat >>$CONFIG_STATUS <<_ACEOF
12032
12033
#
12034
# CONFIG_FILES section.
12035
#
12036
12037
# No need to generate the scripts if there are no CONFIG_FILES.
12038
# This happens for instance when ./config.status config.h
12039
if test -n "\$CONFIG_FILES"; then
12040
  # Protect against being on the right side of a sed subst in config.status.
12041
  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
12042
   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
12043
s,@SHELL@,$SHELL,;t t
12044
s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
12045
s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
12046
s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
12047
s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
12048
s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
12049
s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
12050
s,@exec_prefix@,$exec_prefix,;t t
12051
s,@prefix@,$prefix,;t t
12052
s,@program_transform_name@,$program_transform_name,;t t
12053
s,@bindir@,$bindir,;t t
12054
s,@sbindir@,$sbindir,;t t
12055
s,@libexecdir@,$libexecdir,;t t
12056
s,@datadir@,$datadir,;t t
12057
s,@sysconfdir@,$sysconfdir,;t t
12058
s,@sharedstatedir@,$sharedstatedir,;t t
12059
s,@localstatedir@,$localstatedir,;t t
12060
s,@libdir@,$libdir,;t t
12061
s,@includedir@,$includedir,;t t
12062
s,@oldincludedir@,$oldincludedir,;t t
12063
s,@infodir@,$infodir,;t t
12064
s,@mandir@,$mandir,;t t
12065
s,@build_alias@,$build_alias,;t t
12066
s,@host_alias@,$host_alias,;t t
12067
s,@target_alias@,$target_alias,;t t
12068
s,@DEFS@,$DEFS,;t t
12069
s,@ECHO_C@,$ECHO_C,;t t
12070
s,@ECHO_N@,$ECHO_N,;t t
12071
s,@ECHO_T@,$ECHO_T,;t t
12072
s,@LIBS@,$LIBS,;t t
12073
s,@CC_WARNINGS@,$CC_WARNINGS,;t t
12074
s,@build@,$build,;t t
12075
s,@build_cpu@,$build_cpu,;t t
12076
s,@build_vendor@,$build_vendor,;t t
12077
s,@build_os@,$build_os,;t t
12078
s,@host@,$host,;t t
12079
s,@host_cpu@,$host_cpu,;t t
12080
s,@host_vendor@,$host_vendor,;t t
12081
s,@host_os@,$host_os,;t t
12082
s,@SET_MAKE@,$SET_MAKE,;t t
12083
s,@CC@,$CC,;t t
12084
s,@CFLAGS@,$CFLAGS,;t t
12085
s,@LDFLAGS@,$LDFLAGS,;t t
12086
s,@CPPFLAGS@,$CPPFLAGS,;t t
12087
s,@ac_ct_CC@,$ac_ct_CC,;t t
12088
s,@EXEEXT@,$EXEEXT,;t t
12089
s,@OBJEXT@,$OBJEXT,;t t
12090
s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
12091
s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
12092
s,@INSTALL_DATA@,$INSTALL_DATA,;t t
12093
s,@LN_S@,$LN_S,;t t
12094
s,@PACKAGE@,$PACKAGE,;t t
12095
s,@VERSION@,$VERSION,;t t
12096
s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t
12097
s,@MSGFMT@,$MSGFMT,;t t
12098
s,@GMSGFMT@,$GMSGFMT,;t t
12099
s,@XGETTEXT@,$XGETTEXT,;t t
12100
s,@MSGMERGE@,$MSGMERGE,;t t
12101
s,@RANLIB@,$RANLIB,;t t
12102
s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
12103
s,@CPP@,$CPP,;t t
12104
s,@EGREP@,$EGREP,;t t
12105
s,@ALLOCA@,$ALLOCA,;t t
12106
s,@GLIBC21@,$GLIBC21,;t t
12107
s,@LIBICONV@,$LIBICONV,;t t
12108
s,@LTLIBICONV@,$LTLIBICONV,;t t
12109
s,@INTLBISON@,$INTLBISON,;t t
12110
s,@USE_NLS@,$USE_NLS,;t t
12111
s,@BUILD_INCLUDED_LIBINTL@,$BUILD_INCLUDED_LIBINTL,;t t
12112
s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t
12113
s,@CATOBJEXT@,$CATOBJEXT,;t t
12114
s,@INTLOBJS@,$INTLOBJS,;t t
12115
s,@DATADIRNAME@,$DATADIRNAME,;t t
12116
s,@INSTOBJEXT@,$INSTOBJEXT,;t t
12117
s,@GENCAT@,$GENCAT,;t t
12118
s,@INTL_LIBTOOL_SUFFIX_PREFIX@,$INTL_LIBTOOL_SUFFIX_PREFIX,;t t
12119
s,@INTLLIBS@,$INTLLIBS,;t t
12120
s,@LIBINTL@,$LIBINTL,;t t
12121
s,@LTLIBINTL@,$LTLIBINTL,;t t
12122
s,@POSUB@,$POSUB,;t t
12123
s,@localedir@,$localedir,;t t
12124
s,@ncp_ipx_headers_1@,$ncp_ipx_headers_1,;t t
12125
s,@ncp_ipx_headers_2@,$ncp_ipx_headers_2,;t t
12126
s,@ncp_ipx_defsiocprotoprivate@,$ncp_ipx_defsiocprotoprivate,;t t
12127
s,@ncp_ipx_defsiocaipx@,$ncp_ipx_defsiocaipx,;t t
12128
s,@ncp_sys_mount_h@,$ncp_sys_mount_h,;t t
12129
s,@ncp_linux_fs_h@,$ncp_linux_fs_h,;t t
12130
s,@ncp_net_if_h@,$ncp_net_if_h,;t t
12131
s,@ncp_net_route_h@,$ncp_net_route_h,;t t
12132
s,@ncp_if_ether_support@,$ncp_if_ether_support,;t t
12133
s,@ncp_sys_select_h@,$ncp_sys_select_h,;t t
12134
s,@stdint_types@,$stdint_types,;t t
12135
s,@socklen_t@,$socklen_t,;t t
12136
s,@wchar_h@,$wchar_h,;t t
12137
s,@LIB_PAM_SECURITY@,$LIB_PAM_SECURITY,;t t
12138
s,@php_found@,$php_found,;t t
12139
s,@REENTRANT_CFLAGS@,$REENTRANT_CFLAGS,;t t
12140
s,@ncphost@,$ncphost,;t t
12141
s,@ELF_TARGET@,$ELF_TARGET,;t t
12142
s,@VERSIONED_LINK@,$VERSIONED_LINK,;t t
12143
s,@ncp_in_support@,$ncp_in_support,;t t
12144
s,@ncp_ipx_support@,$ncp_ipx_support,;t t
12145
s,@NDS_SUPPORT@,$NDS_SUPPORT,;t t
12146
s,@SIGNATURES@,$SIGNATURES,;t t
12147
s,@MOUNT2@,$MOUNT2,;t t
12148
s,@MOUNT3@,$MOUNT3,;t t
12149
s,@USE_KERNEL@,$USE_KERNEL,;t t
12150
s,@ADDON_SUBDIRS@,$ADDON_SUBDIRS,;t t
12151
s,@ADDON_DEV_SUBDIRS@,$ADDON_DEV_SUBDIRS,;t t
12152
s,@FFUNCTION_SECTIONS@,$FFUNCTION_SECTIONS,;t t
12153
s,@GC_SECTIONS@,$GC_SECTIONS,;t t
12154
s,@subdirs@,$subdirs,;t t
12155
s,@LIBOBJS@,$LIBOBJS,;t t
12156
s,@LTLIBOBJS@,$LTLIBOBJS,;t t
12157
CEOF
12158
12159
_ACEOF
12160
12161
  cat >>$CONFIG_STATUS <<\_ACEOF
12162
  # Split the substitutions into bite-sized pieces for seds with
12163
  # small command number limits, like on Digital OSF/1 and HP-UX.
12164
  ac_max_sed_lines=48
12165
  ac_sed_frag=1 # Number of current file.
12166
  ac_beg=1 # First line for current file.
12167
  ac_end=$ac_max_sed_lines # Line after last line for current file.
12168
  ac_more_lines=:
12169
  ac_sed_cmds=
12170
  while $ac_more_lines; do
12171
    if test $ac_beg -gt 1; then
12172
      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12173
    else
12174
      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
12175
    fi
12176
    if test ! -s $tmp/subs.frag; then
12177
      ac_more_lines=false
12178
    else
12179
      # The purpose of the label and of the branching condition is to
12180
      # speed up the sed processing (if there are no `@' at all, there
12181
      # is no need to browse any of the substitutions).
12182
      # These are the two extra sed commands mentioned above.
12183
      (echo ':t
12184
  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
12185
      if test -z "$ac_sed_cmds"; then
12186
	ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
12187
      else
12188
	ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
12189
      fi
12190
      ac_sed_frag=`expr $ac_sed_frag + 1`
12191
      ac_beg=$ac_end
12192
      ac_end=`expr $ac_end + $ac_max_sed_lines`
12193
    fi
12194
  done
12195
  if test -z "$ac_sed_cmds"; then
12196
    ac_sed_cmds=cat
12197
  fi
12198
fi # test -n "$CONFIG_FILES"
12199
12200
_ACEOF
12201
cat >>$CONFIG_STATUS <<\_ACEOF
12202
for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
12203
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12204
  case $ac_file in
12205
  - | *:- | *:-:* ) # input from stdin
12206
	cat >$tmp/stdin
12207
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12208
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12209
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12210
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12211
  * )   ac_file_in=$ac_file.in ;;
12212
  esac
12213
12214
  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
12215
  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12216
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12217
	 X"$ac_file" : 'X\(//\)[^/]' \| \
12218
	 X"$ac_file" : 'X\(//\)$' \| \
12219
	 X"$ac_file" : 'X\(/\)' \| \
12220
	 .     : '\(.\)' 2>/dev/null ||
12221
echo X"$ac_file" |
12222
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12223
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12224
  	  /^X\(\/\/\)$/{ s//\1/; q; }
12225
  	  /^X\(\/\).*/{ s//\1/; q; }
12226
  	  s/.*/./; q'`
12227
  { if $as_mkdir_p; then
12228
    mkdir -p "$ac_dir"
12229
  else
12230
    as_dir="$ac_dir"
12231
    as_dirs=
12232
    while test ! -d "$as_dir"; do
12233
      as_dirs="$as_dir $as_dirs"
12234
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12235
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12236
	 X"$as_dir" : 'X\(//\)[^/]' \| \
12237
	 X"$as_dir" : 'X\(//\)$' \| \
12238
	 X"$as_dir" : 'X\(/\)' \| \
12239
	 .     : '\(.\)' 2>/dev/null ||
12240
echo X"$as_dir" |
12241
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12242
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12243
  	  /^X\(\/\/\)$/{ s//\1/; q; }
12244
  	  /^X\(\/\).*/{ s//\1/; q; }
12245
  	  s/.*/./; q'`
12246
    done
12247
    test ! -n "$as_dirs" || mkdir $as_dirs
12248
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12249
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12250
   { (exit 1); exit 1; }; }; }
12251
12252
  ac_builddir=.
12253
12254
if test "$ac_dir" != .; then
12255
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12256
  # A "../" for each directory in $ac_dir_suffix.
12257
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12258
else
12259
  ac_dir_suffix= ac_top_builddir=
12260
fi
12261
12262
case $srcdir in
12263
  .)  # No --srcdir option.  We are building in place.
12264
    ac_srcdir=.
12265
    if test -z "$ac_top_builddir"; then
12266
       ac_top_srcdir=.
12267
    else
12268
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12269
    fi ;;
12270
  [\\/]* | ?:[\\/]* )  # Absolute path.
12271
    ac_srcdir=$srcdir$ac_dir_suffix;
12272
    ac_top_srcdir=$srcdir ;;
12273
  *) # Relative path.
12274
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12275
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12276
esac
12277
12278
# Do not use `cd foo && pwd` to compute absolute paths, because
12279
# the directories may not exist.
12280
case `pwd` in
12281
.) ac_abs_builddir="$ac_dir";;
12282
*)
12283
  case "$ac_dir" in
12284
  .) ac_abs_builddir=`pwd`;;
12285
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12286
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12287
  esac;;
12288
esac
12289
case $ac_abs_builddir in
12290
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12291
*)
12292
  case ${ac_top_builddir}. in
12293
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12294
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12295
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12296
  esac;;
12297
esac
12298
case $ac_abs_builddir in
12299
.) ac_abs_srcdir=$ac_srcdir;;
12300
*)
12301
  case $ac_srcdir in
12302
  .) ac_abs_srcdir=$ac_abs_builddir;;
12303
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12304
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12305
  esac;;
12306
esac
12307
case $ac_abs_builddir in
12308
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12309
*)
12310
  case $ac_top_srcdir in
12311
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12312
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12313
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12314
  esac;;
12315
esac
12316
12317
12318
  case $INSTALL in
12319
  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12320
  *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
12321
  esac
12322
12323
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12324
  # use $as_me), people would be surprised to read:
12325
  #    /* config.h.  Generated by config.status.  */
12326
  if test x"$ac_file" = x-; then
12327
    configure_input=
12328
  else
12329
    configure_input="$ac_file.  "
12330
  fi
12331
  configure_input=$configure_input"Generated from `echo $ac_file_in |
12332
				     sed 's,.*/,,'` by configure."
12333
12334
  # First look for the input files in the build tree, otherwise in the
12335
  # src tree.
12336
  ac_file_inputs=`IFS=:
12337
    for f in $ac_file_in; do
12338
      case $f in
12339
      -) echo $tmp/stdin ;;
12340
      [\\/$]*)
12341
	 # Absolute (can't be DOS-style, as IFS=:)
12342
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12343
echo "$as_me: error: cannot find input file: $f" >&2;}
12344
   { (exit 1); exit 1; }; }
12345
	 echo "$f";;
12346
      *) # Relative
12347
	 if test -f "$f"; then
12348
	   # Build tree
12349
	   echo "$f"
12350
	 elif test -f "$srcdir/$f"; then
12351
	   # Source tree
12352
	   echo "$srcdir/$f"
12353
	 else
12354
	   # /dev/null tree
12355
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12356
echo "$as_me: error: cannot find input file: $f" >&2;}
12357
   { (exit 1); exit 1; }; }
12358
	 fi;;
12359
      esac
12360
    done` || { (exit 1); exit 1; }
12361
12362
  if test x"$ac_file" != x-; then
12363
    { echo "$as_me:$LINENO: creating $ac_file" >&5
12364
echo "$as_me: creating $ac_file" >&6;}
12365
    rm -f "$ac_file"
12366
  fi
12367
_ACEOF
12368
cat >>$CONFIG_STATUS <<_ACEOF
12369
  sed "$ac_vpsub
12370
$extrasub
12371
_ACEOF
12372
cat >>$CONFIG_STATUS <<\_ACEOF
12373
:t
12374
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12375
s,@configure_input@,$configure_input,;t t
12376
s,@srcdir@,$ac_srcdir,;t t
12377
s,@abs_srcdir@,$ac_abs_srcdir,;t t
12378
s,@top_srcdir@,$ac_top_srcdir,;t t
12379
s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
12380
s,@builddir@,$ac_builddir,;t t
12381
s,@abs_builddir@,$ac_abs_builddir,;t t
12382
s,@top_builddir@,$ac_top_builddir,;t t
12383
s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
12384
s,@INSTALL@,$ac_INSTALL,;t t
12385
" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
12386
  rm -f $tmp/stdin
12387
  if test x"$ac_file" != x-; then
12388
    mv $tmp/out $ac_file
12389
  else
12390
    cat $tmp/out
12391
    rm -f $tmp/out
12392
  fi
12393
12394
  # Run the commands associated with the file.
12395
  case $ac_file in
12396
    include/private/libncp-atomic.h.tmp )
12397
my_file=`echo "$ac_file" | sed 's,\.tmp$,,'`
12398
if cmp -s "$my_file" "$ac_file"
12399
then
12400
echo "$as_me: $my_file is unchanged"
12401
rm -f "$ac_file"
12402
else
12403
mv "$ac_file" "$my_file"
12404
fi
12405
 ;;
12406
    include/ncp/nwnet.h.tmp )
12407
my_file=`echo "$ac_file" | sed 's,\.tmp$,,'`
12408
if cmp -s "$my_file" "$ac_file"
12409
then
12410
echo "$as_me: $my_file is unchanged"
12411
rm -f "$ac_file"
12412
else
12413
mv "$ac_file" "$my_file"
12414
fi
12415
 ;;
12416
    include/ncp/ext/stdint.h.tmp )
12417
my_file=`echo "$ac_file" | sed 's,\.tmp$,,'`
12418
if cmp -s "$my_file" "$ac_file"
12419
then
12420
echo "$as_me: $my_file is unchanged"
12421
rm -f "$ac_file"
12422
else
12423
mv "$ac_file" "$my_file"
12424
fi
12425
 ;;
12426
    include/ncp/ext/socket.h.tmp )
12427
my_file=`echo "$ac_file" | sed 's,\.tmp$,,'`
12428
if cmp -s "$my_file" "$ac_file"
12429
then
12430
echo "$as_me: $my_file is unchanged"
12431
rm -f "$ac_file"
12432
else
12433
mv "$ac_file" "$my_file"
12434
fi
12435
 ;;
12436
    include/ncp/kernel/fs.h.tmp )
12437
my_file=`echo "$ac_file" | sed 's,\.tmp$,,'`
12438
if cmp -s "$my_file" "$ac_file"
12439
then
12440
echo "$as_me: $my_file is unchanged"
12441
rm -f "$ac_file"
12442
else
12443
mv "$ac_file" "$my_file"
12444
fi
12445
 ;;
12446
    include/ncp/kernel/if.h.tmp )
12447
my_file=`echo "$ac_file" | sed 's,\.tmp$,,'`
12448
if cmp -s "$my_file" "$ac_file"
12449
then
12450
echo "$as_me: $my_file is unchanged"
12451
rm -f "$ac_file"
12452
else
12453
mv "$ac_file" "$my_file"
12454
fi
12455
 ;;
12456
    include/ncp/kernel/ipx.h.tmp )
12457
my_file=`echo "$ac_file" | sed 's,\.tmp$,,'`
12458
if cmp -s "$my_file" "$ac_file"
12459
then
12460
echo "$as_me: $my_file is unchanged"
12461
rm -f "$ac_file"
12462
else
12463
mv "$ac_file" "$my_file"
12464
fi
12465
 ;;
12466
    include/ncp/kernel/route.h.tmp )
12467
my_file=`echo "$ac_file" | sed 's,\.tmp$,,'`
12468
if cmp -s "$my_file" "$ac_file"
12469
then
12470
echo "$as_me: $my_file is unchanged"
12471
rm -f "$ac_file"
12472
else
12473
mv "$ac_file" "$my_file"
12474
fi
12475
 ;;
12476
    include/ncp/kernel/types.h.tmp )
12477
my_file=`echo "$ac_file" | sed 's,\.tmp$,,'`
12478
if cmp -s "$my_file" "$ac_file"
12479
then
12480
echo "$as_me: $my_file is unchanged"
12481
rm -f "$ac_file"
12482
else
12483
mv "$ac_file" "$my_file"
12484
fi
12485
 ;;
12486
  esac
12487
done
12488
_ACEOF
12489
cat >>$CONFIG_STATUS <<\_ACEOF
12490
12491
#
12492
# CONFIG_HEADER section.
12493
#
12494
12495
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
12496
# NAME is the cpp macro being defined and VALUE is the value it is being given.
12497
#
12498
# ac_d sets the value in "#define NAME VALUE" lines.
12499
ac_dA='s,^\([	 ]*\)#\([	 ]*define[	 ][	 ]*\)'
12500
ac_dB='[	 ].*$,\1#\2'
12501
ac_dC=' '
12502
ac_dD=',;t'
12503
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
12504
ac_uA='s,^\([	 ]*\)#\([	 ]*\)undef\([	 ][	 ]*\)'
12505
ac_uB='$,\1#\2define\3'
12506
ac_uC=' '
12507
ac_uD=',;t'
12508
12509
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
12510
  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
12511
  case $ac_file in
12512
  - | *:- | *:-:* ) # input from stdin
12513
	cat >$tmp/stdin
12514
	ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12515
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12516
  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
12517
	ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
12518
  * )   ac_file_in=$ac_file.in ;;
12519
  esac
12520
12521
  test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
12522
echo "$as_me: creating $ac_file" >&6;}
12523
12524
  # First look for the input files in the build tree, otherwise in the
12525
  # src tree.
12526
  ac_file_inputs=`IFS=:
12527
    for f in $ac_file_in; do
12528
      case $f in
12529
      -) echo $tmp/stdin ;;
12530
      [\\/$]*)
12531
	 # Absolute (can't be DOS-style, as IFS=:)
12532
	 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12533
echo "$as_me: error: cannot find input file: $f" >&2;}
12534
   { (exit 1); exit 1; }; }
12535
	 # Do quote $f, to prevent DOS paths from being IFS'd.
12536
	 echo "$f";;
12537
      *) # Relative
12538
	 if test -f "$f"; then
12539
	   # Build tree
12540
	   echo "$f"
12541
	 elif test -f "$srcdir/$f"; then
12542
	   # Source tree
12543
	   echo "$srcdir/$f"
12544
	 else
12545
	   # /dev/null tree
12546
	   { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
12547
echo "$as_me: error: cannot find input file: $f" >&2;}
12548
   { (exit 1); exit 1; }; }
12549
	 fi;;
12550
      esac
12551
    done` || { (exit 1); exit 1; }
12552
  # Remove the trailing spaces.
12553
  sed 's/[	 ]*$//' $ac_file_inputs >$tmp/in
12554
12555
_ACEOF
12556
12557
# Transform confdefs.h into two sed scripts, `conftest.defines' and
12558
# `conftest.undefs', that substitutes the proper values into
12559
# config.h.in to produce config.h.  The first handles `#define'
12560
# templates, and the second `#undef' templates.
12561
# And first: Protect against being on the right side of a sed subst in
12562
# config.status.  Protect against being in an unquoted here document
12563
# in config.status.
12564
rm -f conftest.defines conftest.undefs
12565
# Using a here document instead of a string reduces the quoting nightmare.
12566
# Putting comments in sed scripts is not portable.
12567
#
12568
# `end' is used to avoid that the second main sed command (meant for
12569
# 0-ary CPP macros) applies to n-ary macro definitions.
12570
# See the Autoconf documentation for `clear'.
12571
cat >confdef2sed.sed <<\_ACEOF
12572
s/[\\&,]/\\&/g
12573
s,[\\$`],\\&,g
12574
t clear
12575
: clear
12576
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 (][^	 (]*\)\(([^)]*)\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
12577
t end
12578
s,^[	 ]*#[	 ]*define[	 ][	 ]*\([^	 ][^	 ]*\)[	 ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
12579
: end
12580
_ACEOF
12581
# If some macros were called several times there might be several times
12582
# the same #defines, which is useless.  Nevertheless, we may not want to
12583
# sort them, since we want the *last* AC-DEFINE to be honored.
12584
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
12585
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
12586
rm -f confdef2sed.sed
12587
12588
# This sed command replaces #undef with comments.  This is necessary, for
12589
# example, in the case of _POSIX_SOURCE, which is predefined and required
12590
# on some systems where configure will not decide to define it.
12591
cat >>conftest.undefs <<\_ACEOF
12592
s,^[	 ]*#[	 ]*undef[	 ][	 ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
12593
_ACEOF
12594
12595
# Break up conftest.defines because some shells have a limit on the size
12596
# of here documents, and old seds have small limits too (100 cmds).
12597
echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
12598
echo '  if grep "^[	 ]*#[	 ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
12599
echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
12600
echo '  :' >>$CONFIG_STATUS
12601
rm -f conftest.tail
12602
while grep . conftest.defines >/dev/null
12603
do
12604
  # Write a limited-size here document to $tmp/defines.sed.
12605
  echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
12606
  # Speed up: don't consider the non `#define' lines.
12607
  echo '/^[	 ]*#[	 ]*define/!b' >>$CONFIG_STATUS
12608
  # Work around the forget-to-reset-the-flag bug.
12609
  echo 't clr' >>$CONFIG_STATUS
12610
  echo ': clr' >>$CONFIG_STATUS
12611
  sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
12612
  echo 'CEOF
12613
  sed -f $tmp/defines.sed $tmp/in >$tmp/out
12614
  rm -f $tmp/in
12615
  mv $tmp/out $tmp/in
12616
' >>$CONFIG_STATUS
12617
  sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
12618
  rm -f conftest.defines
12619
  mv conftest.tail conftest.defines
12620
done
12621
rm -f conftest.defines
12622
echo '  fi # grep' >>$CONFIG_STATUS
12623
echo >>$CONFIG_STATUS
12624
12625
# Break up conftest.undefs because some shells have a limit on the size
12626
# of here documents, and old seds have small limits too (100 cmds).
12627
echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
12628
rm -f conftest.tail
12629
while grep . conftest.undefs >/dev/null
12630
do
12631
  # Write a limited-size here document to $tmp/undefs.sed.
12632
  echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
12633
  # Speed up: don't consider the non `#undef'
12634
  echo '/^[	 ]*#[	 ]*undef/!b' >>$CONFIG_STATUS
12635
  # Work around the forget-to-reset-the-flag bug.
12636
  echo 't clr' >>$CONFIG_STATUS
12637
  echo ': clr' >>$CONFIG_STATUS
12638
  sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
12639
  echo 'CEOF
12640
  sed -f $tmp/undefs.sed $tmp/in >$tmp/out
12641
  rm -f $tmp/in
12642
  mv $tmp/out $tmp/in
12643
' >>$CONFIG_STATUS
12644
  sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
12645
  rm -f conftest.undefs
12646
  mv conftest.tail conftest.undefs
12647
done
12648
rm -f conftest.undefs
12649
12650
cat >>$CONFIG_STATUS <<\_ACEOF
12651
  # Let's still pretend it is `configure' which instantiates (i.e., don't
12652
  # use $as_me), people would be surprised to read:
12653
  #    /* config.h.  Generated by config.status.  */
12654
  if test x"$ac_file" = x-; then
12655
    echo "/* Generated by configure.  */" >$tmp/config.h
12656
  else
12657
    echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
12658
  fi
12659
  cat $tmp/in >>$tmp/config.h
12660
  rm -f $tmp/in
12661
  if test x"$ac_file" != x-; then
12662
    if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
12663
      { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
12664
echo "$as_me: $ac_file is unchanged" >&6;}
12665
    else
12666
      ac_dir=`(dirname "$ac_file") 2>/dev/null ||
12667
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12668
	 X"$ac_file" : 'X\(//\)[^/]' \| \
12669
	 X"$ac_file" : 'X\(//\)$' \| \
12670
	 X"$ac_file" : 'X\(/\)' \| \
12671
	 .     : '\(.\)' 2>/dev/null ||
12672
echo X"$ac_file" |
12673
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12674
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12675
  	  /^X\(\/\/\)$/{ s//\1/; q; }
12676
  	  /^X\(\/\).*/{ s//\1/; q; }
12677
  	  s/.*/./; q'`
12678
      { if $as_mkdir_p; then
12679
    mkdir -p "$ac_dir"
12680
  else
12681
    as_dir="$ac_dir"
12682
    as_dirs=
12683
    while test ! -d "$as_dir"; do
12684
      as_dirs="$as_dir $as_dirs"
12685
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12686
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12687
	 X"$as_dir" : 'X\(//\)[^/]' \| \
12688
	 X"$as_dir" : 'X\(//\)$' \| \
12689
	 X"$as_dir" : 'X\(/\)' \| \
12690
	 .     : '\(.\)' 2>/dev/null ||
12691
echo X"$as_dir" |
12692
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12693
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12694
  	  /^X\(\/\/\)$/{ s//\1/; q; }
12695
  	  /^X\(\/\).*/{ s//\1/; q; }
12696
  	  s/.*/./; q'`
12697
    done
12698
    test ! -n "$as_dirs" || mkdir $as_dirs
12699
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12700
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12701
   { (exit 1); exit 1; }; }; }
12702
12703
      rm -f $ac_file
12704
      mv $tmp/config.h $ac_file
12705
    fi
12706
  else
12707
    cat $tmp/config.h
12708
    rm -f $tmp/config.h
12709
  fi
12710
done
12711
_ACEOF
12712
cat >>$CONFIG_STATUS <<\_ACEOF
12713
12714
#
12715
# CONFIG_COMMANDS section.
12716
#
12717
for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
12718
  ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
12719
  ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
12720
  ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
12721
$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12722
	 X"$ac_dest" : 'X\(//\)[^/]' \| \
12723
	 X"$ac_dest" : 'X\(//\)$' \| \
12724
	 X"$ac_dest" : 'X\(/\)' \| \
12725
	 .     : '\(.\)' 2>/dev/null ||
12726
echo X"$ac_dest" |
12727
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12728
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12729
  	  /^X\(\/\/\)$/{ s//\1/; q; }
12730
  	  /^X\(\/\).*/{ s//\1/; q; }
12731
  	  s/.*/./; q'`
12732
  { if $as_mkdir_p; then
12733
    mkdir -p "$ac_dir"
12734
  else
12735
    as_dir="$ac_dir"
12736
    as_dirs=
12737
    while test ! -d "$as_dir"; do
12738
      as_dirs="$as_dir $as_dirs"
12739
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
12740
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12741
	 X"$as_dir" : 'X\(//\)[^/]' \| \
12742
	 X"$as_dir" : 'X\(//\)$' \| \
12743
	 X"$as_dir" : 'X\(/\)' \| \
12744
	 .     : '\(.\)' 2>/dev/null ||
12745
echo X"$as_dir" |
12746
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
12747
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
12748
  	  /^X\(\/\/\)$/{ s//\1/; q; }
12749
  	  /^X\(\/\).*/{ s//\1/; q; }
12750
  	  s/.*/./; q'`
12751
    done
12752
    test ! -n "$as_dirs" || mkdir $as_dirs
12753
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
12754
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
12755
   { (exit 1); exit 1; }; }; }
12756
12757
  ac_builddir=.
12758
12759
if test "$ac_dir" != .; then
12760
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
12761
  # A "../" for each directory in $ac_dir_suffix.
12762
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
12763
else
12764
  ac_dir_suffix= ac_top_builddir=
12765
fi
12766
12767
case $srcdir in
12768
  .)  # No --srcdir option.  We are building in place.
12769
    ac_srcdir=.
12770
    if test -z "$ac_top_builddir"; then
12771
       ac_top_srcdir=.
12772
    else
12773
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
12774
    fi ;;
12775
  [\\/]* | ?:[\\/]* )  # Absolute path.
12776
    ac_srcdir=$srcdir$ac_dir_suffix;
12777
    ac_top_srcdir=$srcdir ;;
12778
  *) # Relative path.
12779
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
12780
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
12781
esac
12782
12783
# Do not use `cd foo && pwd` to compute absolute paths, because
12784
# the directories may not exist.
12785
case `pwd` in
12786
.) ac_abs_builddir="$ac_dir";;
12787
*)
12788
  case "$ac_dir" in
12789
  .) ac_abs_builddir=`pwd`;;
12790
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
12791
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
12792
  esac;;
12793
esac
12794
case $ac_abs_builddir in
12795
.) ac_abs_top_builddir=${ac_top_builddir}.;;
12796
*)
12797
  case ${ac_top_builddir}. in
12798
  .) ac_abs_top_builddir=$ac_abs_builddir;;
12799
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
12800
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
12801
  esac;;
12802
esac
12803
case $ac_abs_builddir in
12804
.) ac_abs_srcdir=$ac_srcdir;;
12805
*)
12806
  case $ac_srcdir in
12807
  .) ac_abs_srcdir=$ac_abs_builddir;;
12808
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
12809
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
12810
  esac;;
12811
esac
12812
case $ac_abs_builddir in
12813
.) ac_abs_top_srcdir=$ac_top_srcdir;;
12814
*)
12815
  case $ac_top_srcdir in
12816
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
12817
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
12818
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
12819
  esac;;
12820
esac
12821
12822
12823
  { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
12824
echo "$as_me: executing $ac_dest commands" >&6;}
12825
  case $ac_dest in
12826
    gettext )
12827
    for ac_file in $CONFIG_FILES; do
12828
      # Support "outfile[:infile[:infile...]]"
12829
      case "$ac_file" in
12830
        *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
12831
      esac
12832
      # PO directories have a Makefile.in generated from Makefile.in.in.
12833
      case "$ac_file" in */Makefile.in)
12834
        # Adjust a relative srcdir.
12835
        ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
12836
        ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
12837
        ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
12838
        # In autoconf-2.13 it is called $ac_given_srcdir.
12839
        # In autoconf-2.50 it is called $srcdir.
12840
        test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
12841
        case "$ac_given_srcdir" in
12842
          .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
12843
          /*) top_srcdir="$ac_given_srcdir" ;;
12844
          *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
12845
        esac
12846
        if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
12847
          rm -f "$ac_dir/POTFILES"
12848
          test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
12849
          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ 	]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
12850
          # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
12851
          # on $ac_dir but don't depend on user-specified configuration
12852
          # parameters.
12853
          if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
12854
            # The LINGUAS file contains the set of available languages.
12855
            if test -n "$ALL_LINGUAS"; then
12856
              test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
12857
            fi
12858
            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
12859
            # Hide the ALL_LINGUAS assigment from automake.
12860
            eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
12861
          fi
12862
          case "$ac_given_srcdir" in
12863
            .) srcdirpre= ;;
12864
            *) srcdirpre='$(srcdir)/' ;;
12865
          esac
12866
          POFILES=
12867
          GMOFILES=
12868
          UPDATEPOFILES=
12869
          DUMMYPOFILES=
12870
          for lang in $ALL_LINGUAS; do
12871
            POFILES="$POFILES $srcdirpre$lang.po"
12872
            GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
12873
            UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
12874
            DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
12875
          done
12876
          # CATALOGS depends on both $ac_dir and the user's LINGUAS
12877
          # environment variable.
12878
          INST_LINGUAS=
12879
          if test -n "$ALL_LINGUAS"; then
12880
            for presentlang in $ALL_LINGUAS; do
12881
              useit=no
12882
              if test "%UNSET%" != "$LINGUAS"; then
12883
                desiredlanguages="$LINGUAS"
12884
              else
12885
                desiredlanguages="$ALL_LINGUAS"
12886
              fi
12887
              for desiredlang in $desiredlanguages; do
12888
                # Use the presentlang catalog if desiredlang is
12889
                #   a. equal to presentlang, or
12890
                #   b. a variant of presentlang (because in this case,
12891
                #      presentlang can be used as a fallback for messages
12892
                #      which are not translated in the desiredlang catalog).
12893
                case "$desiredlang" in
12894
                  "$presentlang"*) useit=yes;;
12895
                esac
12896
              done
12897
              if test $useit = yes; then
12898
                INST_LINGUAS="$INST_LINGUAS $presentlang"
12899
              fi
12900
            done
12901
          fi
12902
          CATALOGS=
12903
          if test -n "$INST_LINGUAS"; then
12904
            for lang in $INST_LINGUAS; do
12905
              CATALOGS="$CATALOGS $lang.gmo"
12906
            done
12907
          fi
12908
          test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
12909
          sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
12910
          for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
12911
            if test -f "$f"; then
12912
              case "$f" in
12913
                *.orig | *.bak | *~) ;;
12914
                *) cat "$f" >> "$ac_dir/Makefile" ;;
12915
              esac
12916
            fi
12917
          done
12918
        fi
12919
        ;;
12920
      esac
12921
    done ;;
12922
  esac
12923
done
12924
_ACEOF
12925
12926
cat >>$CONFIG_STATUS <<\_ACEOF
12927
12928
{ (exit 0); exit 0; }
12929
_ACEOF
12930
chmod +x $CONFIG_STATUS
12931
ac_clean_files=$ac_clean_files_save
12932
12933
12934
# configure is writing to config.log, and then calls config.status.
12935
# config.status does its own redirection, appending to config.log.
12936
# Unfortunately, on DOS this fails, as config.log is still kept open
12937
# by configure, so config.status won't be able to write to it; its
12938
# output is simply discarded.  So we exec the FD to /dev/null,
12939
# effectively closing config.log, so it can be properly (re)opened and
12940
# appended to by config.status.  When coming back to configure, we
12941
# need to make the FD available again.
12942
if test "$no_create" != yes; then
12943
  ac_cs_success=:
12944
  ac_config_status_args=
12945
  test "$silent" = yes &&
12946
    ac_config_status_args="$ac_config_status_args --quiet"
12947
  exec 5>/dev/null
12948
  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
12949
  exec 5>>config.log
12950
  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
12951
  # would make configure fail if this is the last instruction.
12952
  $ac_cs_success || { (exit 1); exit 1; }
12953
fi
12954
12955
#
12956
# CONFIG_SUBDIRS section.
12957
#
12958
if test "$no_recursion" != yes; then
12959
12960
  # Remove --cache-file and --srcdir arguments so they do not pile up.
12961
  ac_sub_configure_args=
12962
  ac_prev=
12963
  for ac_arg in $ac_configure_args; do
12964
    if test -n "$ac_prev"; then
12965
      ac_prev=
12966
      continue
12967
    fi
12968
    case $ac_arg in
12969
    -cache-file | --cache-file | --cache-fil | --cache-fi \
12970
    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
12971
      ac_prev=cache_file ;;
12972
    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
12973
    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
12974
    | --c=*)
12975
      ;;
12976
    --config-cache | -C)
12977
      ;;
12978
    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
12979
      ac_prev=srcdir ;;
12980
    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
12981
      ;;
12982
    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
12983
      ac_prev=prefix ;;
12984
    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
12985
      ;;
12986
    *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
12987
    esac
12988
  done
12989
12990
  # Always prepend --prefix to ensure using the same prefix
12991
  # in subdir configurations.
12992
  ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
12993
12994
  ac_popdir=`pwd`
12995
  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
12996
12997
    # Do not complain, so a configure script can configure whichever
12998
    # parts of a large source tree are present.
12999
    test -d $srcdir/$ac_dir || continue
13000
13001
    { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
13002
echo "$as_me: configuring in $ac_dir" >&6;}
13003
    { if $as_mkdir_p; then
13004
    mkdir -p "$ac_dir"
13005
  else
13006
    as_dir="$ac_dir"
13007
    as_dirs=
13008
    while test ! -d "$as_dir"; do
13009
      as_dirs="$as_dir $as_dirs"
13010
      as_dir=`(dirname "$as_dir") 2>/dev/null ||
13011
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13012
	 X"$as_dir" : 'X\(//\)[^/]' \| \
13013
	 X"$as_dir" : 'X\(//\)$' \| \
13014
	 X"$as_dir" : 'X\(/\)' \| \
13015
	 .     : '\(.\)' 2>/dev/null ||
13016
echo X"$as_dir" |
13017
    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13018
  	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13019
  	  /^X\(\/\/\)$/{ s//\1/; q; }
13020
  	  /^X\(\/\).*/{ s//\1/; q; }
13021
  	  s/.*/./; q'`
13022
    done
13023
    test ! -n "$as_dirs" || mkdir $as_dirs
13024
  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13025
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13026
   { (exit 1); exit 1; }; }; }
13027
13028
    ac_builddir=.
13029
13030
if test "$ac_dir" != .; then
13031
  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
13032
  # A "../" for each directory in $ac_dir_suffix.
13033
  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
13034
else
13035
  ac_dir_suffix= ac_top_builddir=
13036
fi
13037
13038
case $srcdir in
13039
  .)  # No --srcdir option.  We are building in place.
13040
    ac_srcdir=.
13041
    if test -z "$ac_top_builddir"; then
13042
       ac_top_srcdir=.
13043
    else
13044
       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13045
    fi ;;
13046
  [\\/]* | ?:[\\/]* )  # Absolute path.
13047
    ac_srcdir=$srcdir$ac_dir_suffix;
13048
    ac_top_srcdir=$srcdir ;;
13049
  *) # Relative path.
13050
    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
13051
    ac_top_srcdir=$ac_top_builddir$srcdir ;;
13052
esac
13053
13054
# Do not use `cd foo && pwd` to compute absolute paths, because
13055
# the directories may not exist.
13056
case `pwd` in
13057
.) ac_abs_builddir="$ac_dir";;
13058
*)
13059
  case "$ac_dir" in
13060
  .) ac_abs_builddir=`pwd`;;
13061
  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
13062
  *) ac_abs_builddir=`pwd`/"$ac_dir";;
13063
  esac;;
13064
esac
13065
case $ac_abs_builddir in
13066
.) ac_abs_top_builddir=${ac_top_builddir}.;;
13067
*)
13068
  case ${ac_top_builddir}. in
13069
  .) ac_abs_top_builddir=$ac_abs_builddir;;
13070
  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13071
  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13072
  esac;;
13073
esac
13074
case $ac_abs_builddir in
13075
.) ac_abs_srcdir=$ac_srcdir;;
13076
*)
13077
  case $ac_srcdir in
13078
  .) ac_abs_srcdir=$ac_abs_builddir;;
13079
  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13080
  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13081
  esac;;
13082
esac
13083
case $ac_abs_builddir in
13084
.) ac_abs_top_srcdir=$ac_top_srcdir;;
13085
*)
13086
  case $ac_top_srcdir in
13087
  .) ac_abs_top_srcdir=$ac_abs_builddir;;
13088
  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13089
  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13090
  esac;;
13091
esac
13092
13093
13094
    cd $ac_dir
13095
13096
    # Check for guested configure; otherwise get Cygnus style configure.
13097
    if test -f $ac_srcdir/configure.gnu; then
13098
      ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
13099
    elif test -f $ac_srcdir/configure; then
13100
      ac_sub_configure="$SHELL '$ac_srcdir/configure'"
13101
    elif test -f $ac_srcdir/configure.in; then
13102
      ac_sub_configure=$ac_configure
13103
    else
13104
      { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
13105
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
13106
      ac_sub_configure=
13107
    fi
13108
13109
    # The recursion is here.
13110
    if test -n "$ac_sub_configure"; then
13111
      # Make the cache file name correct relative to the subdirectory.
13112
      case $cache_file in
13113
      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
13114
      *) # Relative path.
13115
	ac_sub_cache_file=$ac_top_builddir$cache_file ;;
13116
      esac
13117
13118
      { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
13119
echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
13120
      # The eval makes quoting arguments work.
13121
      eval $ac_sub_configure $ac_sub_configure_args \
13122
	   --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
13123
	{ { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
13124
echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
13125
   { (exit 1); exit 1; }; }
13126
    fi
13127
13128
    cd "$ac_popdir"
13129
  done
13130
fi
13131
13132
13133
echo
13134
tmp=""
13135
if test "$BUILD_IPX_TOOLS" = "1"
13136
then
13137
  tmp=" and ipx-1.0"
13138
fi
13139
echo "Building ${PACKAGE_NAME}-${PACKAGE_VERSION}${tmp} with following configuration options:"
13140
if test "$USE_KERNEL" = "1"
13141
then
13142
  tmp="yes"
13143
else
13144
  tmp="no"
13145
fi
13146
echo "kernel support:        ${tmp}"
13147
if test "$tmp" = "yes"
13148
then
13149
  case "${MOUNT3}${MOUNT2}" in
13150
  "00") tmp="none";;
13151
  "01") tmp="linux-2.0";;
13152
  "10") tmp="linux-2.2, linux-2.4";;
13153
  *)    tmp="linux-2.0, linux-2.2, linux-2.4";;
13154
  esac
13155
  echo "ncpmount support:      ${tmp}"
13156
fi
13157
case "${PROTOCOL_IPX}${PROTOCOL_IP}" in
13158
"00") tmp="none";;
13159
"01") tmp="UDP, TCP";;
13160
"10") tmp="IPX";;
13161
*)    tmp="IPX, UDP, TCP";;
13162
esac
13163
echo "NCP supported:         ${tmp}"
13164
if test "$NDS_SUPPORT" = "1"
13165
then
13166
  tmp="yes"
13167
else
13168
  tmp="no"
13169
fi
13170
echo "NDS support:           ${tmp}"
13171
13172
if test "$LIB_PAM_SECURITY" = ""
13173
then
13174
  tmp="no"
13175
else
13176
  tmp="$LIB_PAM_SECURITY"
13177
fi
13178
if test "$pam_forced" = "yes"
13179
then
13180
  if test "$pam_path_forced" = ""
13181
  then
13182
    tmp="${tmp} (forced, path autodetected)"
13183
  else
13184
    tmp="${tmp} (forced)"
13185
  fi
13186
else
13187
  tmp="${tmp} (autodetected)"
13188
fi
13189
echo "PAM support:           ${tmp}"
13190
13191
if test "$php_path_config" = ""
13192
then
13193
  tmp="no"
13194
else
13195
  tmp="$php_path_config"
13196
fi
13197
if test "$php_forced" = "yes"
13198
then
13199
  if test "$php_path_forced" = ""
13200
  then
13201
    tmp="${tmp} (forced, path autodetected)"
13202
  else
13203
    tmp="${tmp} (forced)"
13204
  fi
13205
else
13206
  tmp="${tmp} (autodetected)"
13207
fi
13208
echo "PHP support:           ${tmp}"
13209
13210
if test "$REENTRANT" = "0"
13211
then
13212
  tmp="disabled"
13213
else
13214
  tmp="enabled"
13215
fi
13216
if test "$reentrant_forced" = "yes"
13217
then
13218
  tmp="${tmp} (forced)"
13219
else
13220
  tmp="${tmp} (autodetected)"
13221
fi
13222
echo "Threading support:     ${tmp}"
13223
13224
case "$ncphost" in
13225
none)    tmp="not needed" ;;
13226
generic) tmp="available (pthread based)" ;;
13227
*)       if test "$ncphosttested" = "yes"
13228
         then
13229
	   tmp=""
13230
	 else
13231
	   tmp=", untested"
13232
	 fi
13233
	 tmp="available (optimized ${ncphost}${tmp})"
13234
	 ;;
13235
esac
13236
echo "Atomic operations:     ${tmp}"
13237
13238
tmp="$VERSIONED_LINK"
13239
if test "$versions_forced" = "yes"
13240
then
13241
  tmp="${tmp} (forced)"
13242
else
13243
  tmp="${tmp} (autodetected)"
13244
fi
13245
echo "Versioned symbols:     ${tmp}"
13246
13247
tmp="$function_sections"
13248
if test "$function_sections_forced" = "yes"
13249
then
13250
  tmp="${tmp} (forced)"
13251
else
13252
  tmp="${tmp} (autodetected)"
13253
fi
13254
echo "Function sections:     ${tmp}"
13255
13256
echo "Compile-time warnings: ${CC_WARNINGS}"
13257
if test "$NCP_TRACE_ENABLE" = "1"
13258
then
13259
  tmp="yes"
13260
else
13261
  tmp="no"
13262
fi
13263
echo "NCP trace:             ${tmp}"
13264
echo "NCP debug:             ${NCP_DEBUG_ENABLE}"
13265
echo