1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.12
5# Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6#
7# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
9
10# Defaults:
11ac_help=
12ac_default_prefix=/usr/local
13# Any additions from configure.in:
14ac_help="$ac_help
15--disable-timesync   exclude support for timesync protocol"
16ac_help="$ac_help
17--enable-pubdir=/path   include support for a public writeable directory"
18ac_help="$ac_help
19--disable-mkdir   disable support for creating directories (lrz)"
20ac_help="$ac_help
21--enable-syslog=FACILITY,{force,default,optional} include syslogsupport"
22ac_help="$ac_help
23  --disable-nls           do not use Native Language Support"
24ac_help="$ac_help
25  --with-included-gettext use the GNU gettext library included here"
26ac_help="$ac_help
27  --with-catgets          use catgets functions if available"
28
29# Initialize some variables set by options.
30# The variables have the same names as the options, with
31# dashes changed to underlines.
32build=NONE
33cache_file=./config.cache
34exec_prefix=NONE
35host=NONE
36no_create=
37nonopt=NONE
38no_recursion=
39prefix=NONE
40program_prefix=NONE
41program_suffix=NONE
42program_transform_name=s,x,x,
43silent=
44site=
45srcdir=
46target=NONE
47verbose=
48x_includes=NONE
49x_libraries=NONE
50bindir='${exec_prefix}/bin'
51sbindir='${exec_prefix}/sbin'
52libexecdir='${exec_prefix}/libexec'
53datadir='${prefix}/share'
54sysconfdir='${prefix}/etc'
55sharedstatedir='${prefix}/com'
56localstatedir='${prefix}/var'
57libdir='${exec_prefix}/lib'
58includedir='${prefix}/include'
59oldincludedir='/usr/include'
60infodir='${prefix}/info'
61mandir='${prefix}/man'
62
63# Initialize some other variables.
64subdirs=
65MFLAGS= MAKEFLAGS=
66# Maximum number of lines to put in a shell here document.
67ac_max_here_lines=12
68
69ac_prev=
70for ac_option
71do
72
73  # If the previous option needs an argument, assign it.
74  if test -n "$ac_prev"; then
75    eval "$ac_prev=\$ac_option"
76    ac_prev=
77    continue
78  fi
79
80  case "$ac_option" in
81  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
82  *) ac_optarg= ;;
83  esac
84
85  # Accept the important Cygnus configure options, so we can diagnose typos.
86
87  case "$ac_option" in
88
89  -bindir | --bindir | --bindi | --bind | --bin | --bi)
90    ac_prev=bindir ;;
91  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
92    bindir="$ac_optarg" ;;
93
94  -build | --build | --buil | --bui | --bu)
95    ac_prev=build ;;
96  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
97    build="$ac_optarg" ;;
98
99  -cache-file | --cache-file | --cache-fil | --cache-fi \
100  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
101    ac_prev=cache_file ;;
102  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
103  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
104    cache_file="$ac_optarg" ;;
105
106  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
107    ac_prev=datadir ;;
108  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
109  | --da=*)
110    datadir="$ac_optarg" ;;
111
112  -disable-* | --disable-*)
113    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
114    # Reject names that are not valid shell variable names.
115    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
116      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
117    fi
118    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
119    eval "enable_${ac_feature}=no" ;;
120
121  -enable-* | --enable-*)
122    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
123    # Reject names that are not valid shell variable names.
124    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
125      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
126    fi
127    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
128    case "$ac_option" in
129      *=*) ;;
130      *) ac_optarg=yes ;;
131    esac
132    eval "enable_${ac_feature}='$ac_optarg'" ;;
133
134  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
135  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
136  | --exec | --exe | --ex)
137    ac_prev=exec_prefix ;;
138  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
139  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
140  | --exec=* | --exe=* | --ex=*)
141    exec_prefix="$ac_optarg" ;;
142
143  -gas | --gas | --ga | --g)
144    # Obsolete; use --with-gas.
145    with_gas=yes ;;
146
147  -help | --help | --hel | --he)
148    # Omit some internal or obsolete options to make the list less imposing.
149    # This message is too long to be a string in the A/UX 3.1 sh.
150    cat << EOF
151Usage: configure [options] [host]
152Options: [defaults in brackets after descriptions]
153Configuration:
154  --cache-file=FILE       cache test results in FILE
155  --help                  print this message
156  --no-create             do not create output files
157  --quiet, --silent       do not print \`checking...' messages
158  --version               print the version of autoconf that created configure
159Directory and file names:
160  --prefix=PREFIX         install architecture-independent files in PREFIX
161                          [$ac_default_prefix]
162  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
163                          [same as prefix]
164  --bindir=DIR            user executables in DIR [EPREFIX/bin]
165  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
166  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
167  --datadir=DIR           read-only architecture-independent data in DIR
168                          [PREFIX/share]
169  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
170  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
171                          [PREFIX/com]
172  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
173  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
174  --includedir=DIR        C header files in DIR [PREFIX/include]
175  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
176  --infodir=DIR           info documentation in DIR [PREFIX/info]
177  --mandir=DIR            man documentation in DIR [PREFIX/man]
178  --srcdir=DIR            find the sources in DIR [configure dir or ..]
179  --program-prefix=PREFIX prepend PREFIX to installed program names
180  --program-suffix=SUFFIX append SUFFIX to installed program names
181  --program-transform-name=PROGRAM
182                          run sed PROGRAM on installed program names
183EOF
184    cat << EOF
185Host type:
186  --build=BUILD           configure for building on BUILD [BUILD=HOST]
187  --host=HOST             configure for HOST [guessed]
188  --target=TARGET         configure for TARGET [TARGET=HOST]
189Features and packages:
190  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
191  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
192  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
193  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
194  --x-includes=DIR        X include files are in DIR
195  --x-libraries=DIR       X library files are in DIR
196EOF
197    if test -n "$ac_help"; then
198      echo "--enable and --with options recognized:$ac_help"
199    fi
200    exit 0 ;;
201
202  -host | --host | --hos | --ho)
203    ac_prev=host ;;
204  -host=* | --host=* | --hos=* | --ho=*)
205    host="$ac_optarg" ;;
206
207  -includedir | --includedir | --includedi | --included | --include \
208  | --includ | --inclu | --incl | --inc)
209    ac_prev=includedir ;;
210  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
211  | --includ=* | --inclu=* | --incl=* | --inc=*)
212    includedir="$ac_optarg" ;;
213
214  -infodir | --infodir | --infodi | --infod | --info | --inf)
215    ac_prev=infodir ;;
216  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
217    infodir="$ac_optarg" ;;
218
219  -libdir | --libdir | --libdi | --libd)
220    ac_prev=libdir ;;
221  -libdir=* | --libdir=* | --libdi=* | --libd=*)
222    libdir="$ac_optarg" ;;
223
224  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
225  | --libexe | --libex | --libe)
226    ac_prev=libexecdir ;;
227  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
228  | --libexe=* | --libex=* | --libe=*)
229    libexecdir="$ac_optarg" ;;
230
231  -localstatedir | --localstatedir | --localstatedi | --localstated \
232  | --localstate | --localstat | --localsta | --localst \
233  | --locals | --local | --loca | --loc | --lo)
234    ac_prev=localstatedir ;;
235  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
236  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
237  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
238    localstatedir="$ac_optarg" ;;
239
240  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
241    ac_prev=mandir ;;
242  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
243    mandir="$ac_optarg" ;;
244
245  -nfp | --nfp | --nf)
246    # Obsolete; use --without-fp.
247    with_fp=no ;;
248
249  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
250  | --no-cr | --no-c)
251    no_create=yes ;;
252
253  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
254  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
255    no_recursion=yes ;;
256
257  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
258  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
259  | --oldin | --oldi | --old | --ol | --o)
260    ac_prev=oldincludedir ;;
261  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
262  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
263  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
264    oldincludedir="$ac_optarg" ;;
265
266  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
267    ac_prev=prefix ;;
268  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
269    prefix="$ac_optarg" ;;
270
271  -program-prefix | --program-prefix | --program-prefi | --program-pref \
272  | --program-pre | --program-pr | --program-p)
273    ac_prev=program_prefix ;;
274  -program-prefix=* | --program-prefix=* | --program-prefi=* \
275  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
276    program_prefix="$ac_optarg" ;;
277
278  -program-suffix | --program-suffix | --program-suffi | --program-suff \
279  | --program-suf | --program-su | --program-s)
280    ac_prev=program_suffix ;;
281  -program-suffix=* | --program-suffix=* | --program-suffi=* \
282  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
283    program_suffix="$ac_optarg" ;;
284
285  -program-transform-name | --program-transform-name \
286  | --program-transform-nam | --program-transform-na \
287  | --program-transform-n | --program-transform- \
288  | --program-transform | --program-transfor \
289  | --program-transfo | --program-transf \
290  | --program-trans | --program-tran \
291  | --progr-tra | --program-tr | --program-t)
292    ac_prev=program_transform_name ;;
293  -program-transform-name=* | --program-transform-name=* \
294  | --program-transform-nam=* | --program-transform-na=* \
295  | --program-transform-n=* | --program-transform-=* \
296  | --program-transform=* | --program-transfor=* \
297  | --program-transfo=* | --program-transf=* \
298  | --program-trans=* | --program-tran=* \
299  | --progr-tra=* | --program-tr=* | --program-t=*)
300    program_transform_name="$ac_optarg" ;;
301
302  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
303  | -silent | --silent | --silen | --sile | --sil)
304    silent=yes ;;
305
306  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
307    ac_prev=sbindir ;;
308  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
309  | --sbi=* | --sb=*)
310    sbindir="$ac_optarg" ;;
311
312  -sharedstatedir | --sharedstatedir | --sharedstatedi \
313  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
314  | --sharedst | --shareds | --shared | --share | --shar \
315  | --sha | --sh)
316    ac_prev=sharedstatedir ;;
317  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
318  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
319  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
320  | --sha=* | --sh=*)
321    sharedstatedir="$ac_optarg" ;;
322
323  -site | --site | --sit)
324    ac_prev=site ;;
325  -site=* | --site=* | --sit=*)
326    site="$ac_optarg" ;;
327
328  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
329    ac_prev=srcdir ;;
330  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
331    srcdir="$ac_optarg" ;;
332
333  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
334  | --syscon | --sysco | --sysc | --sys | --sy)
335    ac_prev=sysconfdir ;;
336  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
337  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
338    sysconfdir="$ac_optarg" ;;
339
340  -target | --target | --targe | --targ | --tar | --ta | --t)
341    ac_prev=target ;;
342  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
343    target="$ac_optarg" ;;
344
345  -v | -verbose | --verbose | --verbos | --verbo | --verb)
346    verbose=yes ;;
347
348  -version | --version | --versio | --versi | --vers)
349    echo "configure generated by autoconf version 2.12"
350    exit 0 ;;
351
352  -with-* | --with-*)
353    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
354    # Reject names that are not valid shell variable names.
355    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
356      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
357    fi
358    ac_package=`echo $ac_package| sed 's/-/_/g'`
359    case "$ac_option" in
360      *=*) ;;
361      *) ac_optarg=yes ;;
362    esac
363    eval "with_${ac_package}='$ac_optarg'" ;;
364
365  -without-* | --without-*)
366    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
367    # Reject names that are not valid shell variable names.
368    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
369      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
370    fi
371    ac_package=`echo $ac_package| sed 's/-/_/g'`
372    eval "with_${ac_package}=no" ;;
373
374  --x)
375    # Obsolete; use --with-x.
376    with_x=yes ;;
377
378  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
379  | --x-incl | --x-inc | --x-in | --x-i)
380    ac_prev=x_includes ;;
381  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
382  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
383    x_includes="$ac_optarg" ;;
384
385  -x-libraries | --x-libraries | --x-librarie | --x-librari \
386  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
387    ac_prev=x_libraries ;;
388  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
389  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
390    x_libraries="$ac_optarg" ;;
391
392  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
393    ;;
394
395  *)
396    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
397      echo "configure: warning: $ac_option: invalid host type" 1>&2
398    fi
399    if test "x$nonopt" != xNONE; then
400      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401    fi
402    nonopt="$ac_option"
403    ;;
404
405  esac
406done
407
408if test -n "$ac_prev"; then
409  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
410fi
411
412trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
413
414# File descriptor usage:
415# 0 standard input
416# 1 file creation
417# 2 errors and warnings
418# 3 some systems may open it to /dev/tty
419# 4 used on the Kubota Titan
420# 6 checking for... messages and results
421# 5 compiler messages saved in config.log
422if test "$silent" = yes; then
423  exec 6>/dev/null
424else
425  exec 6>&1
426fi
427exec 5>./config.log
428
429echo "\
430This file contains any messages produced by compilers while
431running configure, to aid debugging if configure makes a mistake.
432" 1>&5
433
434# Strip out --no-create and --no-recursion so they do not pile up.
435# Also quote any args containing shell metacharacters.
436ac_configure_args=
437for ac_arg
438do
439  case "$ac_arg" in
440  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
441  | --no-cr | --no-c) ;;
442  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
443  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
444  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
445  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
446  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
447  esac
448done
449
450# NLS nuisances.
451# Only set these to C if already set.  These must not be set unconditionally
452# because not all systems understand e.g. LANG=C (notably SCO).
453# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
454# Non-C LC_CTYPE values break the ctype check.
455if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
456if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
457if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
458if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
459
460# confdefs.h avoids OS command line length limits that DEFS can exceed.
461rm -rf conftest* confdefs.h
462# AIX cpp loses on an empty file, so make sure it contains at least a newline.
463echo > confdefs.h
464
465# A filename unique to this package, relative to the directory that
466# configure is in, which we can look for to find out if srcdir is correct.
467ac_unique_file=src/crctab.c
468
469# Find the source files, if location was not specified.
470if test -z "$srcdir"; then
471  ac_srcdir_defaulted=yes
472  # Try the directory containing this script, then its parent.
473  ac_prog=$0
474  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
475  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
476  srcdir=$ac_confdir
477  if test ! -r $srcdir/$ac_unique_file; then
478    srcdir=..
479  fi
480else
481  ac_srcdir_defaulted=no
482fi
483if test ! -r $srcdir/$ac_unique_file; then
484  if test "$ac_srcdir_defaulted" = yes; then
485    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
486  else
487    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
488  fi
489fi
490srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
491
492# Prefer explicitly selected file to automatically selected ones.
493if test -z "$CONFIG_SITE"; then
494  if test "x$prefix" != xNONE; then
495    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
496  else
497    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
498  fi
499fi
500for ac_site_file in $CONFIG_SITE; do
501  if test -r "$ac_site_file"; then
502    echo "loading site script $ac_site_file"
503    . "$ac_site_file"
504  fi
505done
506
507if test -r "$cache_file"; then
508  echo "loading cache $cache_file"
509  . $cache_file
510else
511  echo "creating cache $cache_file"
512  > $cache_file
513fi
514
515ac_ext=c
516# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
517ac_cpp='$CPP $CPPFLAGS'
518ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
519ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
520cross_compiling=$ac_cv_prog_cc_cross
521
522if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
523  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
524  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
525    ac_n= ac_c='
526' ac_t='	'
527  else
528    ac_n=-n ac_c= ac_t=
529  fi
530else
531  ac_n= ac_c='\c' ac_t=
532fi
533
534
535ac_aux_dir=
536for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
537  if test -f $ac_dir/install-sh; then
538    ac_aux_dir=$ac_dir
539    ac_install_sh="$ac_aux_dir/install-sh -c"
540    break
541  elif test -f $ac_dir/install.sh; then
542    ac_aux_dir=$ac_dir
543    ac_install_sh="$ac_aux_dir/install.sh -c"
544    break
545  fi
546done
547if test -z "$ac_aux_dir"; then
548  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
549fi
550ac_config_guess=$ac_aux_dir/config.guess
551ac_config_sub=$ac_aux_dir/config.sub
552ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
553
554# Find a good install program.  We prefer a C program (faster),
555# so one script is as good as another.  But avoid the broken or
556# incompatible versions:
557# SysV /etc/install, /usr/sbin/install
558# SunOS /usr/etc/install
559# IRIX /sbin/install
560# AIX /bin/install
561# AFS /usr/afsws/bin/install, which mishandles nonexistent args
562# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
563# ./install, which can be erroneously created by make from ./install.sh.
564echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
565echo "configure:566: checking for a BSD compatible install" >&5
566if test -z "$INSTALL"; then
567if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
568  echo $ac_n "(cached) $ac_c" 1>&6
569else
570    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS="${IFS}:"
571  for ac_dir in $PATH; do
572    # Account for people who put trailing slashes in PATH elements.
573    case "$ac_dir/" in
574    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
575    *)
576      # OSF1 and SCO ODT 3.0 have their own names for install.
577      for ac_prog in ginstall installbsd scoinst install; do
578        if test -f $ac_dir/$ac_prog; then
579	  if test $ac_prog = install &&
580            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
581	    # AIX install.  It has an incompatible calling convention.
582	    # OSF/1 installbsd also uses dspmsg, but is usable.
583	    :
584	  else
585	    ac_cv_path_install="$ac_dir/$ac_prog -c"
586	    break 2
587	  fi
588	fi
589      done
590      ;;
591    esac
592  done
593  IFS="$ac_save_IFS"
594
595fi
596  if test "${ac_cv_path_install+set}" = set; then
597    INSTALL="$ac_cv_path_install"
598  else
599    # As a last resort, use the slow shell script.  We don't cache a
600    # path for INSTALL within a source directory, because that will
601    # break other packages using the cache if that directory is
602    # removed, or if the path is relative.
603    INSTALL="$ac_install_sh"
604  fi
605fi
606echo "$ac_t""$INSTALL" 1>&6
607
608# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
609# It thinks the first close brace ends the variable substitution.
610test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
611
612test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
613
614
615test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
616
617echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
618echo "configure:619: checking whether build environment is sane" >&5
619# Just in case
620sleep 1
621echo timestamp > conftestfile
622# Do `set' in a subshell so we don't clobber the current shell's
623# arguments.  Must try -L first in case configure is actually a
624# symlink; some systems play weird games with the mod time of symlinks
625# (eg FreeBSD returns the mod time of the symlink's containing
626# directory).
627if (
628   set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
629   if test "$*" = "X"; then
630      # -L didn't work.
631      set X `ls -t $srcdir/configure conftestfile`
632   fi
633   if test "$*" != "X $srcdir/configure conftestfile" \
634      && test "$*" != "X conftestfile $srcdir/configure"; then
635
636      # If neither matched, then we have a broken ls.  This can happen
637      # if, for instance, CONFIG_SHELL is bash and it inherits a
638      # broken ls alias from the environment.  This has actually
639      # happened.  Such a system could not be considered "sane".
640      { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
641alias in your environment" 1>&2; exit 1; }
642   fi
643
644   test "$2" = conftestfile
645   )
646then
647   # Ok.
648   :
649else
650   { echo "configure: error: newly created file is older than distributed files!
651Check your system clock" 1>&2; exit 1; }
652fi
653rm -f conftest*
654echo "$ac_t""yes" 1>&6
655if test "$program_transform_name" = s,x,x,; then
656  program_transform_name=
657else
658  # Double any \ or $.  echo might interpret backslashes.
659  cat <<\EOF_SED > conftestsed
660s,\\,\\\\,g; s,\$,$$,g
661EOF_SED
662  program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
663  rm -f conftestsed
664fi
665test "$program_prefix" != NONE &&
666  program_transform_name="s,^,${program_prefix},; $program_transform_name"
667# Use a double $ so make ignores it.
668test "$program_suffix" != NONE &&
669  program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
670
671# sed with no file args requires a program.
672test "$program_transform_name" = "" && program_transform_name="s,x,x,"
673
674echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
675echo "configure:676: checking whether ${MAKE-make} sets \${MAKE}" >&5
676set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
677if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
678  echo $ac_n "(cached) $ac_c" 1>&6
679else
680  cat > conftestmake <<\EOF
681all:
682	@echo 'ac_maketemp="${MAKE}"'
683EOF
684# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
685eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
686if test -n "$ac_maketemp"; then
687  eval ac_cv_prog_make_${ac_make}_set=yes
688else
689  eval ac_cv_prog_make_${ac_make}_set=no
690fi
691rm -f conftestmake
692fi
693if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
694  echo "$ac_t""yes" 1>&6
695  SET_MAKE=
696else
697  echo "$ac_t""no" 1>&6
698  SET_MAKE="MAKE=${MAKE-make}"
699fi
700
701
702PACKAGE=lrzsz
703
704VERSION=0.12.20
705
706if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
707  { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
708fi
709cat >> confdefs.h <<EOF
710#define PACKAGE "$PACKAGE"
711EOF
712
713cat >> confdefs.h <<EOF
714#define VERSION "$VERSION"
715EOF
716
717
718
719missing_dir=`cd $ac_aux_dir && pwd`
720echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
721echo "configure:722: checking for working aclocal" >&5
722# Run test in a subshell; some versions of sh will print an error if
723# an executable is not found, even if stderr is redirected.
724# Redirect stdin to placate older versions of autoconf.  Sigh.
725if (aclocal --version) < /dev/null > /dev/null 2>&1; then
726   ACLOCAL=aclocal
727   echo "$ac_t""found" 1>&6
728else
729   ACLOCAL="$missing_dir/missing aclocal"
730   echo "$ac_t""missing" 1>&6
731fi
732
733echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
734echo "configure:735: checking for working autoconf" >&5
735# Run test in a subshell; some versions of sh will print an error if
736# an executable is not found, even if stderr is redirected.
737# Redirect stdin to placate older versions of autoconf.  Sigh.
738if (autoconf --version) < /dev/null > /dev/null 2>&1; then
739   AUTOCONF=autoconf
740   echo "$ac_t""found" 1>&6
741else
742   AUTOCONF="$missing_dir/missing autoconf"
743   echo "$ac_t""missing" 1>&6
744fi
745
746echo $ac_n "checking for working automake""... $ac_c" 1>&6
747echo "configure:748: checking for working automake" >&5
748# Run test in a subshell; some versions of sh will print an error if
749# an executable is not found, even if stderr is redirected.
750# Redirect stdin to placate older versions of autoconf.  Sigh.
751if (automake --version) < /dev/null > /dev/null 2>&1; then
752   AUTOMAKE=automake
753   echo "$ac_t""found" 1>&6
754else
755   AUTOMAKE="$missing_dir/missing automake"
756   echo "$ac_t""missing" 1>&6
757fi
758
759echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
760echo "configure:761: checking for working autoheader" >&5
761# Run test in a subshell; some versions of sh will print an error if
762# an executable is not found, even if stderr is redirected.
763# Redirect stdin to placate older versions of autoconf.  Sigh.
764if (autoheader --version) < /dev/null > /dev/null 2>&1; then
765   AUTOHEADER=autoheader
766   echo "$ac_t""found" 1>&6
767else
768   AUTOHEADER="$missing_dir/missing autoheader"
769   echo "$ac_t""missing" 1>&6
770fi
771
772echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
773echo "configure:774: checking for working makeinfo" >&5
774# Run test in a subshell; some versions of sh will print an error if
775# an executable is not found, even if stderr is redirected.
776# Redirect stdin to placate older versions of autoconf.  Sigh.
777if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
778   MAKEINFO=makeinfo
779   echo "$ac_t""found" 1>&6
780else
781   MAKEINFO="$missing_dir/missing makeinfo"
782   echo "$ac_t""missing" 1>&6
783fi
784
785
786
787
788
789
790
791
792
793PACKAGE_VERSION="$PACKAGE-$VERSION"
794cat >> confdefs.h <<EOF
795#define PACKAGE "$PACKAGE"
796EOF
797
798cat >> confdefs.h <<EOF
799#define VERSION "$VERSION"
800EOF
801
802cat >> confdefs.h <<EOF
803#define PACKAGE_VERSION "$PACKAGE_VERSION"
804EOF
805
806
807
808
809
810ALL_LINGUAS="de"
811
812
813
814
815case $VERSION in
816	[0-9]*.[0-9]*.[0-9]*) README_ALPHA="README-alpha";;
817	*) README_ALPHA=;;
818esac
819
820
821# Check whether --enable-timesync or --disable-timesync was given.
822if test "${enable_timesync+set}" = set; then
823  enableval="$enable_timesync"
824  if test "$enableval" = "no" ; then
825		:
826	  else
827		cat >> confdefs.h <<\EOF
828#define ENABLE_TIMESYNC 1
829EOF
830
831	  fi
832else
833  cat >> confdefs.h <<\EOF
834#define ENABLE_TIMESYNC 1
835EOF
836
837fi
838
839
840# Check whether --enable-pubdir or --disable-pubdir was given.
841if test "${enable_pubdir+set}" = set; then
842  enableval="$enable_pubdir"
843  if test "$enableval" = "no" ; then
844		:
845	  else
846	    cat >> confdefs.h <<EOF
847#define PUBDIR "$enableval"
848EOF
849
850	  fi
851fi
852
853# Check whether --enable-mkdir or --disable-mkdir was given.
854if test "${enable_mkdir+set}" = set; then
855  enableval="$enable_mkdir"
856  if test "$enableval" = "no" ; then
857		:
858	  else
859	  	cat >> confdefs.h <<\EOF
860#define ENABLE_MKDIR 1
861EOF
862
863	  fi
864else
865  cat >> confdefs.h <<\EOF
866#define ENABLE_MKDIR 1
867EOF
868
869fi
870
871# Check whether --enable-syslog or --disable-syslog was given.
872if test "${enable_syslog+set}" = set; then
873  enableval="$enable_syslog"
874
875	  if test "$enableval" = "no" ; then
876		:
877	  else
878	    case "$enableval" in
879	    *,*)
880			level=`echo $enableval|sed -e 's/^.*,//'`
881			fac=`echo $enableval|sed -e 's/,.*$//'`
882			cat >> confdefs.h <<EOF
883#define ENABLE_SYSLOG $fac
884EOF
885
886			;;
887		*)
888			lookup_facility=LOG_UUCP
889			level="$enableval"
890			;;
891		esac
892	  	if test "$level" = "force" ; then
893		  cat >> confdefs.h <<\EOF
894#define ENABLE_SYSLOG_FORCE 1
895EOF
896
897	  	else
898	  	  if test "$level" = "optional" ; then
899	  	    :
900	  	  else
901		    cat >> confdefs.h <<\EOF
902#define ENABLE_SYSLOG_DEFAULT 1
903EOF
904
905		  fi
906	  	fi
907	  fi
908else
909
910		cat >> confdefs.h <<\EOF
911#define ENABLE_SYSLOG_DEFAULT 1
912EOF
913
914		lookup_facility=LOG_UUCP
915
916fi
917
918
919# Extract the first word of "gcc", so it can be a program name with args.
920set dummy gcc; ac_word=$2
921echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
922echo "configure:923: checking for $ac_word" >&5
923if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
924  echo $ac_n "(cached) $ac_c" 1>&6
925else
926  if test -n "$CC"; then
927  ac_cv_prog_CC="$CC" # Let the user override the test.
928else
929  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
930  for ac_dir in $PATH; do
931    test -z "$ac_dir" && ac_dir=.
932    if test -f $ac_dir/$ac_word; then
933      ac_cv_prog_CC="gcc"
934      break
935    fi
936  done
937  IFS="$ac_save_ifs"
938fi
939fi
940CC="$ac_cv_prog_CC"
941if test -n "$CC"; then
942  echo "$ac_t""$CC" 1>&6
943else
944  echo "$ac_t""no" 1>&6
945fi
946
947if test -z "$CC"; then
948  # Extract the first word of "cc", so it can be a program name with args.
949set dummy cc; ac_word=$2
950echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
951echo "configure:952: checking for $ac_word" >&5
952if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
953  echo $ac_n "(cached) $ac_c" 1>&6
954else
955  if test -n "$CC"; then
956  ac_cv_prog_CC="$CC" # Let the user override the test.
957else
958  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
959  ac_prog_rejected=no
960  for ac_dir in $PATH; do
961    test -z "$ac_dir" && ac_dir=.
962    if test -f $ac_dir/$ac_word; then
963      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
964        ac_prog_rejected=yes
965	continue
966      fi
967      ac_cv_prog_CC="cc"
968      break
969    fi
970  done
971  IFS="$ac_save_ifs"
972if test $ac_prog_rejected = yes; then
973  # We found a bogon in the path, so make sure we never use it.
974  set dummy $ac_cv_prog_CC
975  shift
976  if test $# -gt 0; then
977    # We chose a different compiler from the bogus one.
978    # However, it has the same basename, so the bogon will be chosen
979    # first if we set CC to just the basename; use the full file name.
980    shift
981    set dummy "$ac_dir/$ac_word" "$@"
982    shift
983    ac_cv_prog_CC="$@"
984  fi
985fi
986fi
987fi
988CC="$ac_cv_prog_CC"
989if test -n "$CC"; then
990  echo "$ac_t""$CC" 1>&6
991else
992  echo "$ac_t""no" 1>&6
993fi
994
995  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
996fi
997
998echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
999echo "configure:1000: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1000
1001ac_ext=c
1002# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1003ac_cpp='$CPP $CPPFLAGS'
1004ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1005ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1006cross_compiling=$ac_cv_prog_cc_cross
1007
1008cat > conftest.$ac_ext <<EOF
1009#line 1010 "configure"
1010#include "confdefs.h"
1011main(){return(0);}
1012EOF
1013if { (eval echo configure:1014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1014  ac_cv_prog_cc_works=yes
1015  # If we can't run a trivial program, we are probably using a cross compiler.
1016  if (./conftest; exit) 2>/dev/null; then
1017    ac_cv_prog_cc_cross=no
1018  else
1019    ac_cv_prog_cc_cross=yes
1020  fi
1021else
1022  echo "configure: failed program was:" >&5
1023  cat conftest.$ac_ext >&5
1024  ac_cv_prog_cc_works=no
1025fi
1026rm -fr conftest*
1027
1028echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1029if test $ac_cv_prog_cc_works = no; then
1030  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1031fi
1032echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1033echo "configure:1034: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1034echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1035cross_compiling=$ac_cv_prog_cc_cross
1036
1037echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1038echo "configure:1039: checking whether we are using GNU C" >&5
1039if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1040  echo $ac_n "(cached) $ac_c" 1>&6
1041else
1042  cat > conftest.c <<EOF
1043#ifdef __GNUC__
1044  yes;
1045#endif
1046EOF
1047if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1048: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1048  ac_cv_prog_gcc=yes
1049else
1050  ac_cv_prog_gcc=no
1051fi
1052fi
1053
1054echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1055
1056if test $ac_cv_prog_gcc = yes; then
1057  GCC=yes
1058  ac_test_CFLAGS="${CFLAGS+set}"
1059  ac_save_CFLAGS="$CFLAGS"
1060  CFLAGS=
1061  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1062echo "configure:1063: checking whether ${CC-cc} accepts -g" >&5
1063if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1064  echo $ac_n "(cached) $ac_c" 1>&6
1065else
1066  echo 'void f(){}' > conftest.c
1067if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1068  ac_cv_prog_cc_g=yes
1069else
1070  ac_cv_prog_cc_g=no
1071fi
1072rm -f conftest*
1073
1074fi
1075
1076echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1077  if test "$ac_test_CFLAGS" = set; then
1078    CFLAGS="$ac_save_CFLAGS"
1079  elif test $ac_cv_prog_cc_g = yes; then
1080    CFLAGS="-g -O2"
1081  else
1082    CFLAGS="-O2"
1083  fi
1084else
1085  GCC=
1086  test "${CFLAGS+set}" = set || CFLAGS="-g"
1087fi
1088
1089echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1090echo "configure:1091: checking how to run the C preprocessor" >&5
1091# On Suns, sometimes $CPP names a directory.
1092if test -n "$CPP" && test -d "$CPP"; then
1093  CPP=
1094fi
1095if test -z "$CPP"; then
1096if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1097  echo $ac_n "(cached) $ac_c" 1>&6
1098else
1099    # This must be in double quotes, not single quotes, because CPP may get
1100  # substituted into the Makefile and "${CC-cc}" will confuse make.
1101  CPP="${CC-cc} -E"
1102  # On the NeXT, cc -E runs the code through the compiler's parser,
1103  # not just through cpp.
1104  cat > conftest.$ac_ext <<EOF
1105#line 1106 "configure"
1106#include "confdefs.h"
1107#include <assert.h>
1108Syntax Error
1109EOF
1110ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1111{ (eval echo configure:1112: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1112ac_err=`grep -v '^ *+' conftest.out`
1113if test -z "$ac_err"; then
1114  :
1115else
1116  echo "$ac_err" >&5
1117  echo "configure: failed program was:" >&5
1118  cat conftest.$ac_ext >&5
1119  rm -rf conftest*
1120  CPP="${CC-cc} -E -traditional-cpp"
1121  cat > conftest.$ac_ext <<EOF
1122#line 1123 "configure"
1123#include "confdefs.h"
1124#include <assert.h>
1125Syntax Error
1126EOF
1127ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1128{ (eval echo configure:1129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1129ac_err=`grep -v '^ *+' conftest.out`
1130if test -z "$ac_err"; then
1131  :
1132else
1133  echo "$ac_err" >&5
1134  echo "configure: failed program was:" >&5
1135  cat conftest.$ac_ext >&5
1136  rm -rf conftest*
1137  CPP=/lib/cpp
1138fi
1139rm -f conftest*
1140fi
1141rm -f conftest*
1142  ac_cv_prog_CPP="$CPP"
1143fi
1144  CPP="$ac_cv_prog_CPP"
1145else
1146  ac_cv_prog_CPP="$CPP"
1147fi
1148echo "$ac_t""$CPP" 1>&6
1149
1150if test $ac_cv_prog_gcc = yes; then
1151    echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1152echo "configure:1153: checking whether ${CC-cc} needs -traditional" >&5
1153if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1154  echo $ac_n "(cached) $ac_c" 1>&6
1155else
1156    ac_pattern="Autoconf.*'x'"
1157  cat > conftest.$ac_ext <<EOF
1158#line 1159 "configure"
1159#include "confdefs.h"
1160#include <sgtty.h>
1161Autoconf TIOCGETP
1162EOF
1163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1164  egrep "$ac_pattern" >/dev/null 2>&1; then
1165  rm -rf conftest*
1166  ac_cv_prog_gcc_traditional=yes
1167else
1168  rm -rf conftest*
1169  ac_cv_prog_gcc_traditional=no
1170fi
1171rm -f conftest*
1172
1173
1174  if test $ac_cv_prog_gcc_traditional = no; then
1175    cat > conftest.$ac_ext <<EOF
1176#line 1177 "configure"
1177#include "confdefs.h"
1178#include <termio.h>
1179Autoconf TCGETA
1180EOF
1181if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1182  egrep "$ac_pattern" >/dev/null 2>&1; then
1183  rm -rf conftest*
1184  ac_cv_prog_gcc_traditional=yes
1185fi
1186rm -f conftest*
1187
1188  fi
1189fi
1190
1191echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1192  if test $ac_cv_prog_gcc_traditional = yes; then
1193    CC="$CC -traditional"
1194  fi
1195fi
1196
1197# Extract the first word of "ranlib", so it can be a program name with args.
1198set dummy ranlib; ac_word=$2
1199echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1200echo "configure:1201: checking for $ac_word" >&5
1201if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1202  echo $ac_n "(cached) $ac_c" 1>&6
1203else
1204  if test -n "$RANLIB"; then
1205  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1206else
1207  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1208  for ac_dir in $PATH; do
1209    test -z "$ac_dir" && ac_dir=.
1210    if test -f $ac_dir/$ac_word; then
1211      ac_cv_prog_RANLIB="ranlib"
1212      break
1213    fi
1214  done
1215  IFS="$ac_save_ifs"
1216  test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1217fi
1218fi
1219RANLIB="$ac_cv_prog_RANLIB"
1220if test -n "$RANLIB"; then
1221  echo "$ac_t""$RANLIB" 1>&6
1222else
1223  echo "$ac_t""no" 1>&6
1224fi
1225
1226echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1227echo "configure:1228: checking for POSIXized ISC" >&5
1228if test -d /etc/conf/kconfig.d &&
1229  grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1230then
1231  echo "$ac_t""yes" 1>&6
1232  ISC=yes # If later tests want to check for ISC.
1233  cat >> confdefs.h <<\EOF
1234#define _POSIX_SOURCE 1
1235EOF
1236
1237  if test "$GCC" = yes; then
1238    CC="$CC -posix"
1239  else
1240    CC="$CC -Xp"
1241  fi
1242else
1243  echo "$ac_t""no" 1>&6
1244  ISC=
1245fi
1246
1247echo $ac_n "checking for AIX""... $ac_c" 1>&6
1248echo "configure:1249: checking for AIX" >&5
1249cat > conftest.$ac_ext <<EOF
1250#line 1251 "configure"
1251#include "confdefs.h"
1252#ifdef _AIX
1253  yes
1254#endif
1255
1256EOF
1257if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1258  egrep "yes" >/dev/null 2>&1; then
1259  rm -rf conftest*
1260  echo "$ac_t""yes" 1>&6; cat >> confdefs.h <<\EOF
1261#define _ALL_SOURCE 1
1262EOF
1263
1264else
1265  rm -rf conftest*
1266  echo "$ac_t""no" 1>&6
1267fi
1268rm -f conftest*
1269
1270
1271ac_safe=`echo "minix/config.h" | sed 'y%./+-%__p_%'`
1272echo $ac_n "checking for minix/config.h""... $ac_c" 1>&6
1273echo "configure:1274: checking for minix/config.h" >&5
1274if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1275  echo $ac_n "(cached) $ac_c" 1>&6
1276else
1277  cat > conftest.$ac_ext <<EOF
1278#line 1279 "configure"
1279#include "confdefs.h"
1280#include <minix/config.h>
1281EOF
1282ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1283{ (eval echo configure:1284: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1284ac_err=`grep -v '^ *+' conftest.out`
1285if test -z "$ac_err"; then
1286  rm -rf conftest*
1287  eval "ac_cv_header_$ac_safe=yes"
1288else
1289  echo "$ac_err" >&5
1290  echo "configure: failed program was:" >&5
1291  cat conftest.$ac_ext >&5
1292  rm -rf conftest*
1293  eval "ac_cv_header_$ac_safe=no"
1294fi
1295rm -f conftest*
1296fi
1297if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1298  echo "$ac_t""yes" 1>&6
1299  MINIX=yes
1300else
1301  echo "$ac_t""no" 1>&6
1302MINIX=
1303fi
1304
1305if test "$MINIX" = yes; then
1306  cat >> confdefs.h <<\EOF
1307#define _POSIX_SOURCE 1
1308EOF
1309
1310  cat >> confdefs.h <<\EOF
1311#define _POSIX_1_SOURCE 2
1312EOF
1313
1314  cat >> confdefs.h <<\EOF
1315#define _MINIX 1
1316EOF
1317
1318fi
1319
1320
1321
1322
1323echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1324echo "configure:1325: checking for ${CC-cc} option to accept ANSI C" >&5
1325if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1326  echo $ac_n "(cached) $ac_c" 1>&6
1327else
1328  am_cv_prog_cc_stdc=no
1329ac_save_CC="$CC"
1330# Don't try gcc -ansi; that turns off useful extensions and
1331# breaks some systems' header files.
1332# AIX			-qlanglvl=ansi
1333# Ultrix and OSF/1	-std1
1334# HP-UX			-Aa -D_HPUX_SOURCE
1335# SVR4			-Xc -D__EXTENSIONS__
1336for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1337do
1338  CC="$ac_save_CC $ac_arg"
1339  cat > conftest.$ac_ext <<EOF
1340#line 1341 "configure"
1341#include "confdefs.h"
1342#include <stdarg.h>
1343#include <stdio.h>
1344#include <sys/types.h>
1345#include <sys/stat.h>
1346/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1347struct buf { int x; };
1348FILE * (*rcsopen) (struct buf *, struct stat *, int);
1349static char *e (p, i)
1350     char **p;
1351     int i;
1352{
1353  return p[i];
1354}
1355static char *f (char * (*g) (char **, int), char **p, ...)
1356{
1357  char *s;
1358  va_list v;
1359  va_start (v,p);
1360  s = g (p, va_arg (v,int));
1361  va_end (v);
1362  return s;
1363}
1364int test (int i, double x);
1365struct s1 {int (*f) (int a);};
1366struct s2 {int (*f) (double a);};
1367int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1368int argc;
1369char **argv;
1370
1371int main() {
1372
1373return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
1374
1375; return 0; }
1376EOF
1377if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378  rm -rf conftest*
1379  am_cv_prog_cc_stdc="$ac_arg"; break
1380else
1381  echo "configure: failed program was:" >&5
1382  cat conftest.$ac_ext >&5
1383fi
1384rm -f conftest*
1385done
1386CC="$ac_save_CC"
1387
1388fi
1389
1390if test -z "$am_cv_prog_cc_stdc"; then
1391  echo "$ac_t""none needed" 1>&6
1392else
1393  echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1394fi
1395case "x$am_cv_prog_cc_stdc" in
1396  x|xno) ;;
1397  *) CC="$CC $am_cv_prog_cc_stdc" ;;
1398esac
1399
1400
1401
1402echo $ac_n "checking for function prototypes""... $ac_c" 1>&6
1403echo "configure:1404: checking for function prototypes" >&5
1404if test "$am_cv_prog_cc_stdc" != no; then
1405  echo "$ac_t""yes" 1>&6
1406  cat >> confdefs.h <<\EOF
1407#define PROTOTYPES 1
1408EOF
1409
1410  U= ANSI2KNR=
1411else
1412  echo "$ac_t""no" 1>&6
1413  U=_ ANSI2KNR=./ansi2knr
1414  # Ensure some checks needed by ansi2knr itself.
1415  echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1416echo "configure:1417: checking for ANSI C header files" >&5
1417if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1418  echo $ac_n "(cached) $ac_c" 1>&6
1419else
1420  cat > conftest.$ac_ext <<EOF
1421#line 1422 "configure"
1422#include "confdefs.h"
1423#include <stdlib.h>
1424#include <stdarg.h>
1425#include <string.h>
1426#include <float.h>
1427EOF
1428ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1429{ (eval echo configure:1430: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1430ac_err=`grep -v '^ *+' conftest.out`
1431if test -z "$ac_err"; then
1432  rm -rf conftest*
1433  ac_cv_header_stdc=yes
1434else
1435  echo "$ac_err" >&5
1436  echo "configure: failed program was:" >&5
1437  cat conftest.$ac_ext >&5
1438  rm -rf conftest*
1439  ac_cv_header_stdc=no
1440fi
1441rm -f conftest*
1442
1443if test $ac_cv_header_stdc = yes; then
1444  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1445cat > conftest.$ac_ext <<EOF
1446#line 1447 "configure"
1447#include "confdefs.h"
1448#include <string.h>
1449EOF
1450if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1451  egrep "memchr" >/dev/null 2>&1; then
1452  :
1453else
1454  rm -rf conftest*
1455  ac_cv_header_stdc=no
1456fi
1457rm -f conftest*
1458
1459fi
1460
1461if test $ac_cv_header_stdc = yes; then
1462  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1463cat > conftest.$ac_ext <<EOF
1464#line 1465 "configure"
1465#include "confdefs.h"
1466#include <stdlib.h>
1467EOF
1468if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1469  egrep "free" >/dev/null 2>&1; then
1470  :
1471else
1472  rm -rf conftest*
1473  ac_cv_header_stdc=no
1474fi
1475rm -f conftest*
1476
1477fi
1478
1479if test $ac_cv_header_stdc = yes; then
1480  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1481if test "$cross_compiling" = yes; then
1482  :
1483else
1484  cat > conftest.$ac_ext <<EOF
1485#line 1486 "configure"
1486#include "confdefs.h"
1487#include <ctype.h>
1488#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1489#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1490#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1491int main () { int i; for (i = 0; i < 256; i++)
1492if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1493exit (0); }
1494
1495EOF
1496if { (eval echo configure:1497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1497then
1498  :
1499else
1500  echo "configure: failed program was:" >&5
1501  cat conftest.$ac_ext >&5
1502  rm -fr conftest*
1503  ac_cv_header_stdc=no
1504fi
1505rm -fr conftest*
1506fi
1507
1508fi
1509fi
1510
1511echo "$ac_t""$ac_cv_header_stdc" 1>&6
1512if test $ac_cv_header_stdc = yes; then
1513  cat >> confdefs.h <<\EOF
1514#define STDC_HEADERS 1
1515EOF
1516
1517fi
1518
1519  for ac_hdr in string.h
1520do
1521ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1522echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1523echo "configure:1524: checking for $ac_hdr" >&5
1524if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1525  echo $ac_n "(cached) $ac_c" 1>&6
1526else
1527  cat > conftest.$ac_ext <<EOF
1528#line 1529 "configure"
1529#include "confdefs.h"
1530#include <$ac_hdr>
1531EOF
1532ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1533{ (eval echo configure:1534: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1534ac_err=`grep -v '^ *+' conftest.out`
1535if test -z "$ac_err"; then
1536  rm -rf conftest*
1537  eval "ac_cv_header_$ac_safe=yes"
1538else
1539  echo "$ac_err" >&5
1540  echo "configure: failed program was:" >&5
1541  cat conftest.$ac_ext >&5
1542  rm -rf conftest*
1543  eval "ac_cv_header_$ac_safe=no"
1544fi
1545rm -f conftest*
1546fi
1547if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1548  echo "$ac_t""yes" 1>&6
1549    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1550  cat >> confdefs.h <<EOF
1551#define $ac_tr_hdr 1
1552EOF
1553
1554else
1555  echo "$ac_t""no" 1>&6
1556fi
1557done
1558
1559fi
1560
1561echo $ac_n "checking for working const""... $ac_c" 1>&6
1562echo "configure:1563: checking for working const" >&5
1563if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1564  echo $ac_n "(cached) $ac_c" 1>&6
1565else
1566  cat > conftest.$ac_ext <<EOF
1567#line 1568 "configure"
1568#include "confdefs.h"
1569
1570int main() {
1571
1572/* Ultrix mips cc rejects this.  */
1573typedef int charset[2]; const charset x;
1574/* SunOS 4.1.1 cc rejects this.  */
1575char const *const *ccp;
1576char **p;
1577/* NEC SVR4.0.2 mips cc rejects this.  */
1578struct point {int x, y;};
1579static struct point const zero = {0,0};
1580/* AIX XL C 1.02.0.0 rejects this.
1581   It does not let you subtract one const X* pointer from another in an arm
1582   of an if-expression whose if-part is not a constant expression */
1583const char *g = "string";
1584ccp = &g + (g ? g-g : 0);
1585/* HPUX 7.0 cc rejects these. */
1586++ccp;
1587p = (char**) ccp;
1588ccp = (char const *const *) p;
1589{ /* SCO 3.2v4 cc rejects this.  */
1590  char *t;
1591  char const *s = 0 ? (char *) 0 : (char const *) 0;
1592
1593  *t++ = 0;
1594}
1595{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1596  int x[] = {25, 17};
1597  const int *foo = &x[0];
1598  ++foo;
1599}
1600{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1601  typedef const int *iptr;
1602  iptr p = 0;
1603  ++p;
1604}
1605{ /* AIX XL C 1.02.0.0 rejects this saying
1606     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1607  struct s { int j; const int *ap[3]; };
1608  struct s *b; b->j = 5;
1609}
1610{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1611  const int foo = 10;
1612}
1613
1614; return 0; }
1615EOF
1616if { (eval echo configure:1617: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1617  rm -rf conftest*
1618  ac_cv_c_const=yes
1619else
1620  echo "configure: failed program was:" >&5
1621  cat conftest.$ac_ext >&5
1622  rm -rf conftest*
1623  ac_cv_c_const=no
1624fi
1625rm -f conftest*
1626fi
1627
1628echo "$ac_t""$ac_cv_c_const" 1>&6
1629if test $ac_cv_c_const = no; then
1630  cat >> confdefs.h <<\EOF
1631#define const
1632EOF
1633
1634fi
1635
1636echo $ac_n "checking for inline""... $ac_c" 1>&6
1637echo "configure:1638: checking for inline" >&5
1638if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
1639  echo $ac_n "(cached) $ac_c" 1>&6
1640else
1641  ac_cv_c_inline=no
1642for ac_kw in inline __inline__ __inline; do
1643  cat > conftest.$ac_ext <<EOF
1644#line 1645 "configure"
1645#include "confdefs.h"
1646
1647int main() {
1648} $ac_kw foo() {
1649; return 0; }
1650EOF
1651if { (eval echo configure:1652: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1652  rm -rf conftest*
1653  ac_cv_c_inline=$ac_kw; break
1654else
1655  echo "configure: failed program was:" >&5
1656  cat conftest.$ac_ext >&5
1657fi
1658rm -f conftest*
1659done
1660
1661fi
1662
1663echo "$ac_t""$ac_cv_c_inline" 1>&6
1664case "$ac_cv_c_inline" in
1665  inline | yes) ;;
1666  no) cat >> confdefs.h <<\EOF
1667#define inline
1668EOF
1669 ;;
1670  *)  cat >> confdefs.h <<EOF
1671#define inline $ac_cv_c_inline
1672EOF
1673 ;;
1674esac
1675
1676
1677if test `hostname` = tirka.ohse.de -a "$cross_compiling" = no ; then
1678    test $prefix = NONE && prefix=/usr
1679	if test -z "$CFLAGS" ; then
1680	    case "$CC" in
1681		*gcc*)
1682			CFLAGS="-Wall -Wstrict-prototypes -Wmissing-prototypes"
1683			# -Wnested_externs entfernt wegen dcgettext()
1684			CFLAGS="$CFLAGS -Wpointer-arith -Wcast-qual -Wcast-align"
1685			CFLAGS="$CFLAGS -Winline -Wwrite-strings -Wshadow -Wmissing-braces"
1686			CFLAGS="$CFLAGS -Wcomments -fforce-mem -fforce-addr -O2 -m486 -pipe"
1687			CFLAGS="$CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2 -g3"
1688			;;
1689		esac
1690	fi
1691fi
1692case "$CFLAGS" in
1693*-Wstrict-prototypes*)
1694	cat >> confdefs.h <<\EOF
1695#define STRICT_PROTOTYPES 1
1696EOF
1697
1698	;;
1699esac
1700
1701echo $ac_n "checking for syslog in -lsocket""... $ac_c" 1>&6
1702echo "configure:1703: checking for syslog in -lsocket" >&5
1703ac_lib_var=`echo socket'_'syslog | sed 'y%./+-%__p_%'`
1704if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1705  echo $ac_n "(cached) $ac_c" 1>&6
1706else
1707  ac_save_LIBS="$LIBS"
1708LIBS="-lsocket  $LIBS"
1709cat > conftest.$ac_ext <<EOF
1710#line 1711 "configure"
1711#include "confdefs.h"
1712/* Override any gcc2 internal prototype to avoid an error.  */
1713/* We use char because int might match the return type of a gcc2
1714    builtin and then its argument prototype would still apply.  */
1715char syslog();
1716
1717int main() {
1718syslog()
1719; return 0; }
1720EOF
1721if { (eval echo configure:1722: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1722  rm -rf conftest*
1723  eval "ac_cv_lib_$ac_lib_var=yes"
1724else
1725  echo "configure: failed program was:" >&5
1726  cat conftest.$ac_ext >&5
1727  rm -rf conftest*
1728  eval "ac_cv_lib_$ac_lib_var=no"
1729fi
1730rm -f conftest*
1731LIBS="$ac_save_LIBS"
1732
1733fi
1734if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1735  echo "$ac_t""yes" 1>&6
1736    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1737    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1738  cat >> confdefs.h <<EOF
1739#define $ac_tr_lib 1
1740EOF
1741
1742  LIBS="-lsocket $LIBS"
1743
1744else
1745  echo "$ac_t""no" 1>&6
1746fi
1747
1748echo $ac_n "checking for syslog in -lbe""... $ac_c" 1>&6
1749echo "configure:1750: checking for syslog in -lbe" >&5
1750ac_lib_var=`echo be'_'syslog | sed 'y%./+-%__p_%'`
1751if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1752  echo $ac_n "(cached) $ac_c" 1>&6
1753else
1754  ac_save_LIBS="$LIBS"
1755LIBS="-lbe  $LIBS"
1756cat > conftest.$ac_ext <<EOF
1757#line 1758 "configure"
1758#include "confdefs.h"
1759/* Override any gcc2 internal prototype to avoid an error.  */
1760/* We use char because int might match the return type of a gcc2
1761    builtin and then its argument prototype would still apply.  */
1762char syslog();
1763
1764int main() {
1765syslog()
1766; return 0; }
1767EOF
1768if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1769  rm -rf conftest*
1770  eval "ac_cv_lib_$ac_lib_var=yes"
1771else
1772  echo "configure: failed program was:" >&5
1773  cat conftest.$ac_ext >&5
1774  rm -rf conftest*
1775  eval "ac_cv_lib_$ac_lib_var=no"
1776fi
1777rm -f conftest*
1778LIBS="$ac_save_LIBS"
1779
1780fi
1781if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1782  echo "$ac_t""yes" 1>&6
1783    ac_tr_lib=HAVE_LIB`echo be | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1784    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1785  cat >> confdefs.h <<EOF
1786#define $ac_tr_lib 1
1787EOF
1788
1789  LIBS="-lbe $LIBS"
1790
1791else
1792  echo "$ac_t""no" 1>&6
1793fi
1794
1795echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1796echo "configure:1797: checking for gethostbyname in -lnsl" >&5
1797ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1798if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1799  echo $ac_n "(cached) $ac_c" 1>&6
1800else
1801  ac_save_LIBS="$LIBS"
1802LIBS="-lnsl  $LIBS"
1803cat > conftest.$ac_ext <<EOF
1804#line 1805 "configure"
1805#include "confdefs.h"
1806/* Override any gcc2 internal prototype to avoid an error.  */
1807/* We use char because int might match the return type of a gcc2
1808    builtin and then its argument prototype would still apply.  */
1809char gethostbyname();
1810
1811int main() {
1812gethostbyname()
1813; return 0; }
1814EOF
1815if { (eval echo configure:1816: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1816  rm -rf conftest*
1817  eval "ac_cv_lib_$ac_lib_var=yes"
1818else
1819  echo "configure: failed program was:" >&5
1820  cat conftest.$ac_ext >&5
1821  rm -rf conftest*
1822  eval "ac_cv_lib_$ac_lib_var=no"
1823fi
1824rm -f conftest*
1825LIBS="$ac_save_LIBS"
1826
1827fi
1828if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1829  echo "$ac_t""yes" 1>&6
1830    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1831    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1832  cat >> confdefs.h <<EOF
1833#define $ac_tr_lib 1
1834EOF
1835
1836  LIBS="-lnsl $LIBS"
1837
1838else
1839  echo "$ac_t""no" 1>&6
1840fi
1841
1842
1843echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1844echo "configure:1845: checking for ANSI C header files" >&5
1845if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1846  echo $ac_n "(cached) $ac_c" 1>&6
1847else
1848  cat > conftest.$ac_ext <<EOF
1849#line 1850 "configure"
1850#include "confdefs.h"
1851#include <stdlib.h>
1852#include <stdarg.h>
1853#include <string.h>
1854#include <float.h>
1855EOF
1856ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1857{ (eval echo configure:1858: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1858ac_err=`grep -v '^ *+' conftest.out`
1859if test -z "$ac_err"; then
1860  rm -rf conftest*
1861  ac_cv_header_stdc=yes
1862else
1863  echo "$ac_err" >&5
1864  echo "configure: failed program was:" >&5
1865  cat conftest.$ac_ext >&5
1866  rm -rf conftest*
1867  ac_cv_header_stdc=no
1868fi
1869rm -f conftest*
1870
1871if test $ac_cv_header_stdc = yes; then
1872  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1873cat > conftest.$ac_ext <<EOF
1874#line 1875 "configure"
1875#include "confdefs.h"
1876#include <string.h>
1877EOF
1878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1879  egrep "memchr" >/dev/null 2>&1; then
1880  :
1881else
1882  rm -rf conftest*
1883  ac_cv_header_stdc=no
1884fi
1885rm -f conftest*
1886
1887fi
1888
1889if test $ac_cv_header_stdc = yes; then
1890  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1891cat > conftest.$ac_ext <<EOF
1892#line 1893 "configure"
1893#include "confdefs.h"
1894#include <stdlib.h>
1895EOF
1896if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1897  egrep "free" >/dev/null 2>&1; then
1898  :
1899else
1900  rm -rf conftest*
1901  ac_cv_header_stdc=no
1902fi
1903rm -f conftest*
1904
1905fi
1906
1907if test $ac_cv_header_stdc = yes; then
1908  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1909if test "$cross_compiling" = yes; then
1910  :
1911else
1912  cat > conftest.$ac_ext <<EOF
1913#line 1914 "configure"
1914#include "confdefs.h"
1915#include <ctype.h>
1916#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1917#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1918#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1919int main () { int i; for (i = 0; i < 256; i++)
1920if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1921exit (0); }
1922
1923EOF
1924if { (eval echo configure:1925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1925then
1926  :
1927else
1928  echo "configure: failed program was:" >&5
1929  cat conftest.$ac_ext >&5
1930  rm -fr conftest*
1931  ac_cv_header_stdc=no
1932fi
1933rm -fr conftest*
1934fi
1935
1936fi
1937fi
1938
1939echo "$ac_t""$ac_cv_header_stdc" 1>&6
1940if test $ac_cv_header_stdc = yes; then
1941  cat >> confdefs.h <<\EOF
1942#define STDC_HEADERS 1
1943EOF
1944
1945fi
1946
1947for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h unistd.h sys/times.h
1948do
1949ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1950echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1951echo "configure:1952: checking for $ac_hdr" >&5
1952if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1953  echo $ac_n "(cached) $ac_c" 1>&6
1954else
1955  cat > conftest.$ac_ext <<EOF
1956#line 1957 "configure"
1957#include "confdefs.h"
1958#include <$ac_hdr>
1959EOF
1960ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1961{ (eval echo configure:1962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1962ac_err=`grep -v '^ *+' conftest.out`
1963if test -z "$ac_err"; then
1964  rm -rf conftest*
1965  eval "ac_cv_header_$ac_safe=yes"
1966else
1967  echo "$ac_err" >&5
1968  echo "configure: failed program was:" >&5
1969  cat conftest.$ac_ext >&5
1970  rm -rf conftest*
1971  eval "ac_cv_header_$ac_safe=no"
1972fi
1973rm -f conftest*
1974fi
1975if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1976  echo "$ac_t""yes" 1>&6
1977    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1978  cat >> confdefs.h <<EOF
1979#define $ac_tr_hdr 1
1980EOF
1981
1982else
1983  echo "$ac_t""no" 1>&6
1984fi
1985done
1986
1987
1988for ac_hdr in termios.h sys/termios.h termio.h sys/termio.h sgtty.h
1989do
1990ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1991echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1992echo "configure:1993: checking for $ac_hdr" >&5
1993if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1994  echo $ac_n "(cached) $ac_c" 1>&6
1995else
1996  cat > conftest.$ac_ext <<EOF
1997#line 1998 "configure"
1998#include "confdefs.h"
1999#include <$ac_hdr>
2000EOF
2001ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2002{ (eval echo configure:2003: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2003ac_err=`grep -v '^ *+' conftest.out`
2004if test -z "$ac_err"; then
2005  rm -rf conftest*
2006  eval "ac_cv_header_$ac_safe=yes"
2007else
2008  echo "$ac_err" >&5
2009  echo "configure: failed program was:" >&5
2010  cat conftest.$ac_ext >&5
2011  rm -rf conftest*
2012  eval "ac_cv_header_$ac_safe=no"
2013fi
2014rm -f conftest*
2015fi
2016if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2017  echo "$ac_t""yes" 1>&6
2018    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2019  cat >> confdefs.h <<EOF
2020#define $ac_tr_hdr 1
2021EOF
2022
2023else
2024  echo "$ac_t""no" 1>&6
2025fi
2026done
2027
2028for ac_hdr in termios.h sys/termios.h termio.h sys/termio.h sgtty.h
2029do
2030ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2031echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2032echo "configure:2033: checking for $ac_hdr" >&5
2033if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2034  echo $ac_n "(cached) $ac_c" 1>&6
2035else
2036  cat > conftest.$ac_ext <<EOF
2037#line 2038 "configure"
2038#include "confdefs.h"
2039#include <$ac_hdr>
2040EOF
2041ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2042{ (eval echo configure:2043: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2043ac_err=`grep -v '^ *+' conftest.out`
2044if test -z "$ac_err"; then
2045  rm -rf conftest*
2046  eval "ac_cv_header_$ac_safe=yes"
2047else
2048  echo "$ac_err" >&5
2049  echo "configure: failed program was:" >&5
2050  cat conftest.$ac_ext >&5
2051  rm -rf conftest*
2052  eval "ac_cv_header_$ac_safe=no"
2053fi
2054rm -f conftest*
2055fi
2056if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2057  echo "$ac_t""yes" 1>&6
2058    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2059  cat >> confdefs.h <<EOF
2060#define $ac_tr_hdr 1
2061EOF
2062
2063else
2064  echo "$ac_t""no" 1>&6
2065fi
2066done
2067
2068for ac_hdr in sys/mman.h utime.h syslog.h sys/syslog.h sys/param.h
2069do
2070ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2071echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2072echo "configure:2073: checking for $ac_hdr" >&5
2073if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2074  echo $ac_n "(cached) $ac_c" 1>&6
2075else
2076  cat > conftest.$ac_ext <<EOF
2077#line 2078 "configure"
2078#include "confdefs.h"
2079#include <$ac_hdr>
2080EOF
2081ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2082{ (eval echo configure:2083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2083ac_err=`grep -v '^ *+' conftest.out`
2084if test -z "$ac_err"; then
2085  rm -rf conftest*
2086  eval "ac_cv_header_$ac_safe=yes"
2087else
2088  echo "$ac_err" >&5
2089  echo "configure: failed program was:" >&5
2090  cat conftest.$ac_ext >&5
2091  rm -rf conftest*
2092  eval "ac_cv_header_$ac_safe=no"
2093fi
2094rm -f conftest*
2095fi
2096if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2097  echo "$ac_t""yes" 1>&6
2098    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2099  cat >> confdefs.h <<EOF
2100#define $ac_tr_hdr 1
2101EOF
2102
2103else
2104  echo "$ac_t""no" 1>&6
2105fi
2106done
2107
2108for ac_hdr in sys/select.h strings.h arpa/inet.h
2109do
2110ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2111echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2112echo "configure:2113: checking for $ac_hdr" >&5
2113if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2114  echo $ac_n "(cached) $ac_c" 1>&6
2115else
2116  cat > conftest.$ac_ext <<EOF
2117#line 2118 "configure"
2118#include "confdefs.h"
2119#include <$ac_hdr>
2120EOF
2121ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2122{ (eval echo configure:2123: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2123ac_err=`grep -v '^ *+' conftest.out`
2124if test -z "$ac_err"; then
2125  rm -rf conftest*
2126  eval "ac_cv_header_$ac_safe=yes"
2127else
2128  echo "$ac_err" >&5
2129  echo "configure: failed program was:" >&5
2130  cat conftest.$ac_ext >&5
2131  rm -rf conftest*
2132  eval "ac_cv_header_$ac_safe=no"
2133fi
2134rm -f conftest*
2135fi
2136if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2137  echo "$ac_t""yes" 1>&6
2138    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2139  cat >> confdefs.h <<EOF
2140#define $ac_tr_hdr 1
2141EOF
2142
2143else
2144  echo "$ac_t""no" 1>&6
2145fi
2146done
2147
2148
2149echo $ac_n "checking for size_t""... $ac_c" 1>&6
2150echo "configure:2151: checking for size_t" >&5
2151if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2152  echo $ac_n "(cached) $ac_c" 1>&6
2153else
2154  cat > conftest.$ac_ext <<EOF
2155#line 2156 "configure"
2156#include "confdefs.h"
2157#include <sys/types.h>
2158#if STDC_HEADERS
2159#include <stdlib.h>
2160#include <stddef.h>
2161#endif
2162EOF
2163if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2164  egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2165  rm -rf conftest*
2166  ac_cv_type_size_t=yes
2167else
2168  rm -rf conftest*
2169  ac_cv_type_size_t=no
2170fi
2171rm -f conftest*
2172
2173fi
2174echo "$ac_t""$ac_cv_type_size_t" 1>&6
2175if test $ac_cv_type_size_t = no; then
2176  cat >> confdefs.h <<\EOF
2177#define size_t unsigned
2178EOF
2179
2180fi
2181
2182echo $ac_n "checking for mode_t""... $ac_c" 1>&6
2183echo "configure:2184: checking for mode_t" >&5
2184if eval "test \"`echo '$''{'ac_cv_type_mode_t'+set}'`\" = set"; then
2185  echo $ac_n "(cached) $ac_c" 1>&6
2186else
2187  cat > conftest.$ac_ext <<EOF
2188#line 2189 "configure"
2189#include "confdefs.h"
2190#include <sys/types.h>
2191#if STDC_HEADERS
2192#include <stdlib.h>
2193#include <stddef.h>
2194#endif
2195EOF
2196if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2197  egrep "mode_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2198  rm -rf conftest*
2199  ac_cv_type_mode_t=yes
2200else
2201  rm -rf conftest*
2202  ac_cv_type_mode_t=no
2203fi
2204rm -f conftest*
2205
2206fi
2207echo "$ac_t""$ac_cv_type_mode_t" 1>&6
2208if test $ac_cv_type_mode_t = no; then
2209  cat >> confdefs.h <<\EOF
2210#define mode_t int
2211EOF
2212
2213fi
2214
2215echo $ac_n "checking for off_t""... $ac_c" 1>&6
2216echo "configure:2217: checking for off_t" >&5
2217if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2218  echo $ac_n "(cached) $ac_c" 1>&6
2219else
2220  cat > conftest.$ac_ext <<EOF
2221#line 2222 "configure"
2222#include "confdefs.h"
2223#include <sys/types.h>
2224#if STDC_HEADERS
2225#include <stdlib.h>
2226#include <stddef.h>
2227#endif
2228EOF
2229if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2230  egrep "off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2231  rm -rf conftest*
2232  ac_cv_type_off_t=yes
2233else
2234  rm -rf conftest*
2235  ac_cv_type_off_t=no
2236fi
2237rm -f conftest*
2238
2239fi
2240echo "$ac_t""$ac_cv_type_off_t" 1>&6
2241if test $ac_cv_type_off_t = no; then
2242  cat >> confdefs.h <<\EOF
2243#define off_t long
2244EOF
2245
2246fi
2247
2248
2249echo $ac_n "checking for speed_t""... $ac_c" 1>&6
2250echo "configure:2251: checking for speed_t" >&5
2251if eval "test \"`echo '$''{'ac_cv_type_speed_t'+set}'`\" = set"; then
2252  echo $ac_n "(cached) $ac_c" 1>&6
2253else
2254  cat > conftest.$ac_ext <<EOF
2255#line 2256 "configure"
2256#include "confdefs.h"
2257#include <sys/types.h>
2258#if STDC_HEADERS
2259#include <stdlib.h>
2260#include <stddef.h>
2261#endif
2262#ifdef HAVE_TERMIOS_H
2263#include <termios.h>
2264#else
2265#if defined(HAVE_SYS_TERMIOS_H)
2266#include <sys/termios.h>
2267#else
2268#if defined(HAVE_TERMIO_H)
2269#include <termio.h>
2270#else
2271#if defined(HAVE_SYS_TERMIO_H)
2272#include <sys/termio.h>
2273#else
2274#if defined(HAVE_SGTTY_H)
2275#include <sgtty.h>
2276#else
2277#error neither termio.h nor sgtty.h found. Cannot continue. */
2278#endif
2279#endif
2280#endif
2281#endif
2282#endif
2283
2284EOF
2285if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2286  egrep "speed_t" >/dev/null 2>&1; then
2287  rm -rf conftest*
2288  ac_cv_type_speed_t=yes
2289else
2290  rm -rf conftest*
2291  ac_cv_type_speed_t=no
2292fi
2293rm -f conftest*
2294
2295fi
2296echo "$ac_t""$ac_cv_type_speed_t" 1>&6
2297if test $ac_cv_type_speed_t = no; then
2298  cat >> confdefs.h <<\EOF
2299#define speed_t long
2300EOF
2301
2302fi
2303
2304echo $ac_n "checking for st_rdev in struct stat""... $ac_c" 1>&6
2305echo "configure:2306: checking for st_rdev in struct stat" >&5
2306if eval "test \"`echo '$''{'ac_cv_struct_st_rdev'+set}'`\" = set"; then
2307  echo $ac_n "(cached) $ac_c" 1>&6
2308else
2309  cat > conftest.$ac_ext <<EOF
2310#line 2311 "configure"
2311#include "confdefs.h"
2312#include <sys/types.h>
2313#include <sys/stat.h>
2314int main() {
2315struct stat s; s.st_rdev;
2316; return 0; }
2317EOF
2318if { (eval echo configure:2319: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2319  rm -rf conftest*
2320  ac_cv_struct_st_rdev=yes
2321else
2322  echo "configure: failed program was:" >&5
2323  cat conftest.$ac_ext >&5
2324  rm -rf conftest*
2325  ac_cv_struct_st_rdev=no
2326fi
2327rm -f conftest*
2328fi
2329
2330echo "$ac_t""$ac_cv_struct_st_rdev" 1>&6
2331if test $ac_cv_struct_st_rdev = yes; then
2332  cat >> confdefs.h <<\EOF
2333#define HAVE_ST_RDEV 1
2334EOF
2335
2336fi
2337
2338echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2339echo "configure:2340: checking whether time.h and sys/time.h may both be included" >&5
2340if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2341  echo $ac_n "(cached) $ac_c" 1>&6
2342else
2343  cat > conftest.$ac_ext <<EOF
2344#line 2345 "configure"
2345#include "confdefs.h"
2346#include <sys/types.h>
2347#include <sys/time.h>
2348#include <time.h>
2349int main() {
2350struct tm *tp;
2351; return 0; }
2352EOF
2353if { (eval echo configure:2354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2354  rm -rf conftest*
2355  ac_cv_header_time=yes
2356else
2357  echo "configure: failed program was:" >&5
2358  cat conftest.$ac_ext >&5
2359  rm -rf conftest*
2360  ac_cv_header_time=no
2361fi
2362rm -f conftest*
2363fi
2364
2365echo "$ac_t""$ac_cv_header_time" 1>&6
2366if test $ac_cv_header_time = yes; then
2367  cat >> confdefs.h <<\EOF
2368#define TIME_WITH_SYS_TIME 1
2369EOF
2370
2371fi
2372
2373echo $ac_n "checking whether sys/time.h and sys/select.h may both be included""... $ac_c" 1>&6
2374echo "configure:2375: checking whether sys/time.h and sys/select.h may both be included" >&5
2375if eval "test \"`echo '$''{'lrzsz_cv_header_sys_select'+set}'`\" = set"; then
2376  echo $ac_n "(cached) $ac_c" 1>&6
2377else
2378  cat > conftest.$ac_ext <<EOF
2379#line 2380 "configure"
2380#include "confdefs.h"
2381#include <sys/types.h>
2382#include <sys/time.h>
2383#include <sys/select.h>
2384int main() {
2385struct tm *tp;
2386; return 0; }
2387EOF
2388if { (eval echo configure:2389: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2389  rm -rf conftest*
2390  lrzsz_cv_header_sys_select=yes
2391else
2392  echo "configure: failed program was:" >&5
2393  cat conftest.$ac_ext >&5
2394  rm -rf conftest*
2395  lrzsz_cv_header_sys_select=no
2396fi
2397rm -f conftest*
2398fi
2399
2400echo "$ac_t""$lrzsz_cv_header_sys_select" 1>&6
2401if test $lrzsz_cv_header_sys_select = no; then
2402  cat >> confdefs.h <<\EOF
2403#define SYS_TIME_WITHOUT_SYS_SELECT 1
2404EOF
2405
2406fi
2407
2408echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
2409echo "configure:2410: checking whether struct tm is in sys/time.h or time.h" >&5
2410if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
2411  echo $ac_n "(cached) $ac_c" 1>&6
2412else
2413  cat > conftest.$ac_ext <<EOF
2414#line 2415 "configure"
2415#include "confdefs.h"
2416#include <sys/types.h>
2417#include <time.h>
2418int main() {
2419struct tm *tp; tp->tm_sec;
2420; return 0; }
2421EOF
2422if { (eval echo configure:2423: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2423  rm -rf conftest*
2424  ac_cv_struct_tm=time.h
2425else
2426  echo "configure: failed program was:" >&5
2427  cat conftest.$ac_ext >&5
2428  rm -rf conftest*
2429  ac_cv_struct_tm=sys/time.h
2430fi
2431rm -f conftest*
2432fi
2433
2434echo "$ac_t""$ac_cv_struct_tm" 1>&6
2435if test $ac_cv_struct_tm = sys/time.h; then
2436  cat >> confdefs.h <<\EOF
2437#define TM_IN_SYS_TIME 1
2438EOF
2439
2440fi
2441
2442
2443echo $ac_n "checking for errno declaration""... $ac_c" 1>&6
2444echo "configure:2445: checking for errno declaration" >&5
2445if eval "test \"`echo '$''{'lrzsz_cv_decl_errno'+set}'`\" = set"; then
2446  echo $ac_n "(cached) $ac_c" 1>&6
2447else
2448  cat > conftest.$ac_ext <<EOF
2449#line 2450 "configure"
2450#include "confdefs.h"
2451#include <errno.h>
2452int main() {
2453int i = errno; errno = 1;
2454; return 0; }
2455EOF
2456if { (eval echo configure:2457: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2457  rm -rf conftest*
2458  lrzsz_cv_decl_errno=yes
2459else
2460  echo "configure: failed program was:" >&5
2461  cat conftest.$ac_ext >&5
2462  rm -rf conftest*
2463  lrzsz_cv_decl_errno=no
2464fi
2465rm -f conftest*
2466fi
2467
2468echo "$ac_t""$lrzsz_cv_decl_errno" 1>&6
2469if test $lrzsz_cv_decl_errno = yes; then
2470  cat >> confdefs.h <<\EOF
2471#define HAVE_ERRNO_DECLARATION 1
2472EOF
2473
2474fi
2475
2476
2477if test $cross_compiling = no ; then
2478	echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
2479echo "configure:2480: checking whether setvbuf arguments are reversed" >&5
2480if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
2481  echo $ac_n "(cached) $ac_c" 1>&6
2482else
2483  if test "$cross_compiling" = yes; then
2484    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
2485else
2486  cat > conftest.$ac_ext <<EOF
2487#line 2488 "configure"
2488#include "confdefs.h"
2489#include <stdio.h>
2490/* If setvbuf has the reversed format, exit 0. */
2491main () {
2492  /* This call has the arguments reversed.
2493     A reversed system may check and see that the address of main
2494     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
2495  if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
2496    exit(1);
2497  putc('\r', stdout);
2498  exit(0);			/* Non-reversed systems segv here.  */
2499}
2500EOF
2501if { (eval echo configure:2502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2502then
2503  ac_cv_func_setvbuf_reversed=yes
2504else
2505  echo "configure: failed program was:" >&5
2506  cat conftest.$ac_ext >&5
2507  rm -fr conftest*
2508  ac_cv_func_setvbuf_reversed=no
2509fi
2510rm -fr conftest*
2511fi
2512
2513rm -f core core.* *.core
2514fi
2515
2516echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
2517if test $ac_cv_func_setvbuf_reversed = yes; then
2518  cat >> confdefs.h <<\EOF
2519#define SETVBUF_REVERSED 1
2520EOF
2521
2522fi
2523
2524fi
2525echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2526echo "configure:2527: checking return type of signal handlers" >&5
2527if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2528  echo $ac_n "(cached) $ac_c" 1>&6
2529else
2530  cat > conftest.$ac_ext <<EOF
2531#line 2532 "configure"
2532#include "confdefs.h"
2533#include <sys/types.h>
2534#include <signal.h>
2535#ifdef signal
2536#undef signal
2537#endif
2538#ifdef __cplusplus
2539extern "C" void (*signal (int, void (*)(int)))(int);
2540#else
2541void (*signal ()) ();
2542#endif
2543
2544int main() {
2545int i;
2546; return 0; }
2547EOF
2548if { (eval echo configure:2549: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2549  rm -rf conftest*
2550  ac_cv_type_signal=void
2551else
2552  echo "configure: failed program was:" >&5
2553  cat conftest.$ac_ext >&5
2554  rm -rf conftest*
2555  ac_cv_type_signal=int
2556fi
2557rm -f conftest*
2558fi
2559
2560echo "$ac_t""$ac_cv_type_signal" 1>&6
2561cat >> confdefs.h <<EOF
2562#define RETSIGTYPE $ac_cv_type_signal
2563EOF
2564
2565
2566for ac_hdr in unistd.h
2567do
2568ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2569echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2570echo "configure:2571: checking for $ac_hdr" >&5
2571if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2572  echo $ac_n "(cached) $ac_c" 1>&6
2573else
2574  cat > conftest.$ac_ext <<EOF
2575#line 2576 "configure"
2576#include "confdefs.h"
2577#include <$ac_hdr>
2578EOF
2579ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2580{ (eval echo configure:2581: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2581ac_err=`grep -v '^ *+' conftest.out`
2582if test -z "$ac_err"; then
2583  rm -rf conftest*
2584  eval "ac_cv_header_$ac_safe=yes"
2585else
2586  echo "$ac_err" >&5
2587  echo "configure: failed program was:" >&5
2588  cat conftest.$ac_ext >&5
2589  rm -rf conftest*
2590  eval "ac_cv_header_$ac_safe=no"
2591fi
2592rm -f conftest*
2593fi
2594if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2595  echo "$ac_t""yes" 1>&6
2596    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2597  cat >> confdefs.h <<EOF
2598#define $ac_tr_hdr 1
2599EOF
2600
2601else
2602  echo "$ac_t""no" 1>&6
2603fi
2604done
2605
2606for ac_func in getpagesize
2607do
2608echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2609echo "configure:2610: checking for $ac_func" >&5
2610if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2611  echo $ac_n "(cached) $ac_c" 1>&6
2612else
2613  cat > conftest.$ac_ext <<EOF
2614#line 2615 "configure"
2615#include "confdefs.h"
2616/* System header to define __stub macros and hopefully few prototypes,
2617    which can conflict with char $ac_func(); below.  */
2618#include <assert.h>
2619/* Override any gcc2 internal prototype to avoid an error.  */
2620/* We use char because int might match the return type of a gcc2
2621    builtin and then its argument prototype would still apply.  */
2622char $ac_func();
2623
2624int main() {
2625
2626/* The GNU C library defines this for functions which it implements
2627    to always fail with ENOSYS.  Some functions are actually named
2628    something starting with __ and the normal name is an alias.  */
2629#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2630choke me
2631#else
2632$ac_func();
2633#endif
2634
2635; return 0; }
2636EOF
2637if { (eval echo configure:2638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2638  rm -rf conftest*
2639  eval "ac_cv_func_$ac_func=yes"
2640else
2641  echo "configure: failed program was:" >&5
2642  cat conftest.$ac_ext >&5
2643  rm -rf conftest*
2644  eval "ac_cv_func_$ac_func=no"
2645fi
2646rm -f conftest*
2647fi
2648
2649if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2650  echo "$ac_t""yes" 1>&6
2651    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2652  cat >> confdefs.h <<EOF
2653#define $ac_tr_func 1
2654EOF
2655
2656else
2657  echo "$ac_t""no" 1>&6
2658fi
2659done
2660
2661echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2662echo "configure:2663: checking for working mmap" >&5
2663if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2664  echo $ac_n "(cached) $ac_c" 1>&6
2665else
2666  if test "$cross_compiling" = yes; then
2667  ac_cv_func_mmap_fixed_mapped=no
2668else
2669  cat > conftest.$ac_ext <<EOF
2670#line 2671 "configure"
2671#include "confdefs.h"
2672
2673/* Thanks to Mike Haertel and Jim Avera for this test.
2674   Here is a matrix of mmap possibilities:
2675	mmap private not fixed
2676	mmap private fixed at somewhere currently unmapped
2677	mmap private fixed at somewhere already mapped
2678	mmap shared not fixed
2679	mmap shared fixed at somewhere currently unmapped
2680	mmap shared fixed at somewhere already mapped
2681   For private mappings, we should verify that changes cannot be read()
2682   back from the file, nor mmap's back from the file at a different
2683   address.  (There have been systems where private was not correctly
2684   implemented like the infamous i386 svr4.0, and systems where the
2685   VM page cache was not coherent with the filesystem buffer cache
2686   like early versions of FreeBSD and possibly contemporary NetBSD.)
2687   For shared mappings, we should conversely verify that changes get
2688   propogated back to all the places they're supposed to be.
2689
2690   Grep wants private fixed already mapped.
2691   The main things grep needs to know about mmap are:
2692   * does it exist and is it safe to write into the mmap'd area
2693   * how to use it (BSD variants)  */
2694#include <sys/types.h>
2695#include <fcntl.h>
2696#include <sys/mman.h>
2697
2698/* This mess was copied from the GNU getpagesize.h.  */
2699#ifndef HAVE_GETPAGESIZE
2700# ifdef HAVE_UNISTD_H
2701#  include <unistd.h>
2702# endif
2703
2704/* Assume that all systems that can run configure have sys/param.h.  */
2705# ifndef HAVE_SYS_PARAM_H
2706#  define HAVE_SYS_PARAM_H 1
2707# endif
2708
2709# ifdef _SC_PAGESIZE
2710#  define getpagesize() sysconf(_SC_PAGESIZE)
2711# else /* no _SC_PAGESIZE */
2712#  ifdef HAVE_SYS_PARAM_H
2713#   include <sys/param.h>
2714#   ifdef EXEC_PAGESIZE
2715#    define getpagesize() EXEC_PAGESIZE
2716#   else /* no EXEC_PAGESIZE */
2717#    ifdef NBPG
2718#     define getpagesize() NBPG * CLSIZE
2719#     ifndef CLSIZE
2720#      define CLSIZE 1
2721#     endif /* no CLSIZE */
2722#    else /* no NBPG */
2723#     ifdef NBPC
2724#      define getpagesize() NBPC
2725#     else /* no NBPC */
2726#      ifdef PAGESIZE
2727#       define getpagesize() PAGESIZE
2728#      endif /* PAGESIZE */
2729#     endif /* no NBPC */
2730#    endif /* no NBPG */
2731#   endif /* no EXEC_PAGESIZE */
2732#  else /* no HAVE_SYS_PARAM_H */
2733#   define getpagesize() 8192	/* punt totally */
2734#  endif /* no HAVE_SYS_PARAM_H */
2735# endif /* no _SC_PAGESIZE */
2736
2737#endif /* no HAVE_GETPAGESIZE */
2738
2739#ifdef __cplusplus
2740extern "C" { void *malloc(unsigned); }
2741#else
2742char *malloc();
2743#endif
2744
2745int
2746main()
2747{
2748	char *data, *data2, *data3;
2749	int i, pagesize;
2750	int fd;
2751
2752	pagesize = getpagesize();
2753
2754	/*
2755	 * First, make a file with some known garbage in it.
2756	 */
2757	data = malloc(pagesize);
2758	if (!data)
2759		exit(1);
2760	for (i = 0; i < pagesize; ++i)
2761		*(data + i) = rand();
2762	umask(0);
2763	fd = creat("conftestmmap", 0600);
2764	if (fd < 0)
2765		exit(1);
2766	if (write(fd, data, pagesize) != pagesize)
2767		exit(1);
2768	close(fd);
2769
2770	/*
2771	 * Next, try to mmap the file at a fixed address which
2772	 * already has something else allocated at it.  If we can,
2773	 * also make sure that we see the same garbage.
2774	 */
2775	fd = open("conftestmmap", O_RDWR);
2776	if (fd < 0)
2777		exit(1);
2778	data2 = malloc(2 * pagesize);
2779	if (!data2)
2780		exit(1);
2781	data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
2782	if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
2783	    MAP_PRIVATE | MAP_FIXED, fd, 0L))
2784		exit(1);
2785	for (i = 0; i < pagesize; ++i)
2786		if (*(data + i) != *(data2 + i))
2787			exit(1);
2788
2789	/*
2790	 * Finally, make sure that changes to the mapped area
2791	 * do not percolate back to the file as seen by read().
2792	 * (This is a bug on some variants of i386 svr4.0.)
2793	 */
2794	for (i = 0; i < pagesize; ++i)
2795		*(data2 + i) = *(data2 + i) + 1;
2796	data3 = malloc(pagesize);
2797	if (!data3)
2798		exit(1);
2799	if (read(fd, data3, pagesize) != pagesize)
2800		exit(1);
2801	for (i = 0; i < pagesize; ++i)
2802		if (*(data + i) != *(data3 + i))
2803			exit(1);
2804	close(fd);
2805	unlink("conftestmmap");
2806	exit(0);
2807}
2808
2809EOF
2810if { (eval echo configure:2811: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2811then
2812  ac_cv_func_mmap_fixed_mapped=yes
2813else
2814  echo "configure: failed program was:" >&5
2815  cat conftest.$ac_ext >&5
2816  rm -fr conftest*
2817  ac_cv_func_mmap_fixed_mapped=no
2818fi
2819rm -fr conftest*
2820fi
2821
2822fi
2823
2824echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
2825if test $ac_cv_func_mmap_fixed_mapped = yes; then
2826  cat >> confdefs.h <<\EOF
2827#define HAVE_MMAP 1
2828EOF
2829
2830fi
2831
2832# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2833# for constant arguments.  Useless!
2834echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2835echo "configure:2836: checking for working alloca.h" >&5
2836if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2837  echo $ac_n "(cached) $ac_c" 1>&6
2838else
2839  cat > conftest.$ac_ext <<EOF
2840#line 2841 "configure"
2841#include "confdefs.h"
2842#include <alloca.h>
2843int main() {
2844char *p = alloca(2 * sizeof(int));
2845; return 0; }
2846EOF
2847if { (eval echo configure:2848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2848  rm -rf conftest*
2849  ac_cv_header_alloca_h=yes
2850else
2851  echo "configure: failed program was:" >&5
2852  cat conftest.$ac_ext >&5
2853  rm -rf conftest*
2854  ac_cv_header_alloca_h=no
2855fi
2856rm -f conftest*
2857fi
2858
2859echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2860if test $ac_cv_header_alloca_h = yes; then
2861  cat >> confdefs.h <<\EOF
2862#define HAVE_ALLOCA_H 1
2863EOF
2864
2865fi
2866
2867echo $ac_n "checking for alloca""... $ac_c" 1>&6
2868echo "configure:2869: checking for alloca" >&5
2869if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2870  echo $ac_n "(cached) $ac_c" 1>&6
2871else
2872  cat > conftest.$ac_ext <<EOF
2873#line 2874 "configure"
2874#include "confdefs.h"
2875
2876#ifdef __GNUC__
2877# define alloca __builtin_alloca
2878#else
2879# if HAVE_ALLOCA_H
2880#  include <alloca.h>
2881# else
2882#  ifdef _AIX
2883 #pragma alloca
2884#  else
2885#   ifndef alloca /* predefined by HP cc +Olibcalls */
2886char *alloca ();
2887#   endif
2888#  endif
2889# endif
2890#endif
2891
2892int main() {
2893char *p = (char *) alloca(1);
2894; return 0; }
2895EOF
2896if { (eval echo configure:2897: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2897  rm -rf conftest*
2898  ac_cv_func_alloca_works=yes
2899else
2900  echo "configure: failed program was:" >&5
2901  cat conftest.$ac_ext >&5
2902  rm -rf conftest*
2903  ac_cv_func_alloca_works=no
2904fi
2905rm -f conftest*
2906fi
2907
2908echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2909if test $ac_cv_func_alloca_works = yes; then
2910  cat >> confdefs.h <<\EOF
2911#define HAVE_ALLOCA 1
2912EOF
2913
2914fi
2915
2916if test $ac_cv_func_alloca_works = no; then
2917  # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2918  # that cause trouble.  Some versions do not even contain alloca or
2919  # contain a buggy version.  If you still want to use their alloca,
2920  # use ar to extract alloca.o from them instead of compiling alloca.c.
2921  ALLOCA=alloca.o
2922  cat >> confdefs.h <<\EOF
2923#define C_ALLOCA 1
2924EOF
2925
2926
2927echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2928echo "configure:2929: checking whether alloca needs Cray hooks" >&5
2929if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2930  echo $ac_n "(cached) $ac_c" 1>&6
2931else
2932  cat > conftest.$ac_ext <<EOF
2933#line 2934 "configure"
2934#include "confdefs.h"
2935#if defined(CRAY) && ! defined(CRAY2)
2936webecray
2937#else
2938wenotbecray
2939#endif
2940
2941EOF
2942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2943  egrep "webecray" >/dev/null 2>&1; then
2944  rm -rf conftest*
2945  ac_cv_os_cray=yes
2946else
2947  rm -rf conftest*
2948  ac_cv_os_cray=no
2949fi
2950rm -f conftest*
2951
2952fi
2953
2954echo "$ac_t""$ac_cv_os_cray" 1>&6
2955if test $ac_cv_os_cray = yes; then
2956for ac_func in _getb67 GETB67 getb67; do
2957  echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2958echo "configure:2959: checking for $ac_func" >&5
2959if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2960  echo $ac_n "(cached) $ac_c" 1>&6
2961else
2962  cat > conftest.$ac_ext <<EOF
2963#line 2964 "configure"
2964#include "confdefs.h"
2965/* System header to define __stub macros and hopefully few prototypes,
2966    which can conflict with char $ac_func(); below.  */
2967#include <assert.h>
2968/* Override any gcc2 internal prototype to avoid an error.  */
2969/* We use char because int might match the return type of a gcc2
2970    builtin and then its argument prototype would still apply.  */
2971char $ac_func();
2972
2973int main() {
2974
2975/* The GNU C library defines this for functions which it implements
2976    to always fail with ENOSYS.  Some functions are actually named
2977    something starting with __ and the normal name is an alias.  */
2978#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2979choke me
2980#else
2981$ac_func();
2982#endif
2983
2984; return 0; }
2985EOF
2986if { (eval echo configure:2987: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2987  rm -rf conftest*
2988  eval "ac_cv_func_$ac_func=yes"
2989else
2990  echo "configure: failed program was:" >&5
2991  cat conftest.$ac_ext >&5
2992  rm -rf conftest*
2993  eval "ac_cv_func_$ac_func=no"
2994fi
2995rm -f conftest*
2996fi
2997
2998if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2999  echo "$ac_t""yes" 1>&6
3000  cat >> confdefs.h <<EOF
3001#define CRAY_STACKSEG_END $ac_func
3002EOF
3003
3004  break
3005else
3006  echo "$ac_t""no" 1>&6
3007fi
3008
3009done
3010fi
3011
3012echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
3013echo "configure:3014: checking stack direction for C alloca" >&5
3014if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
3015  echo $ac_n "(cached) $ac_c" 1>&6
3016else
3017  if test "$cross_compiling" = yes; then
3018  ac_cv_c_stack_direction=0
3019else
3020  cat > conftest.$ac_ext <<EOF
3021#line 3022 "configure"
3022#include "confdefs.h"
3023find_stack_direction ()
3024{
3025  static char *addr = 0;
3026  auto char dummy;
3027  if (addr == 0)
3028    {
3029      addr = &dummy;
3030      return find_stack_direction ();
3031    }
3032  else
3033    return (&dummy > addr) ? 1 : -1;
3034}
3035main ()
3036{
3037  exit (find_stack_direction() < 0);
3038}
3039EOF
3040if { (eval echo configure:3041: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3041then
3042  ac_cv_c_stack_direction=1
3043else
3044  echo "configure: failed program was:" >&5
3045  cat conftest.$ac_ext >&5
3046  rm -fr conftest*
3047  ac_cv_c_stack_direction=-1
3048fi
3049rm -fr conftest*
3050fi
3051
3052fi
3053
3054echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
3055cat >> confdefs.h <<EOF
3056#define STACK_DIRECTION $ac_cv_c_stack_direction
3057EOF
3058
3059fi
3060
3061cat > conftest.$ac_ext <<EOF
3062#line 3063 "configure"
3063#include "confdefs.h"
3064#include <utime.h>
3065EOF
3066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3067  egrep "struct.*utimbuf" >/dev/null 2>&1; then
3068  rm -rf conftest*
3069  cat >> confdefs.h <<\EOF
3070#define HAVE_STRUCT_UTIMBUF 1
3071EOF
3072
3073fi
3074rm -f conftest*
3075
3076
3077for ac_func in gettimeofday settimeofday
3078do
3079echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3080echo "configure:3081: checking for $ac_func" >&5
3081if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3082  echo $ac_n "(cached) $ac_c" 1>&6
3083else
3084  cat > conftest.$ac_ext <<EOF
3085#line 3086 "configure"
3086#include "confdefs.h"
3087/* System header to define __stub macros and hopefully few prototypes,
3088    which can conflict with char $ac_func(); below.  */
3089#include <assert.h>
3090/* Override any gcc2 internal prototype to avoid an error.  */
3091/* We use char because int might match the return type of a gcc2
3092    builtin and then its argument prototype would still apply.  */
3093char $ac_func();
3094
3095int main() {
3096
3097/* The GNU C library defines this for functions which it implements
3098    to always fail with ENOSYS.  Some functions are actually named
3099    something starting with __ and the normal name is an alias.  */
3100#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3101choke me
3102#else
3103$ac_func();
3104#endif
3105
3106; return 0; }
3107EOF
3108if { (eval echo configure:3109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3109  rm -rf conftest*
3110  eval "ac_cv_func_$ac_func=yes"
3111else
3112  echo "configure: failed program was:" >&5
3113  cat conftest.$ac_ext >&5
3114  rm -rf conftest*
3115  eval "ac_cv_func_$ac_func=no"
3116fi
3117rm -f conftest*
3118fi
3119
3120if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3121  echo "$ac_t""yes" 1>&6
3122    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3123  cat >> confdefs.h <<EOF
3124#define $ac_tr_func 1
3125EOF
3126
3127else
3128  echo "$ac_t""no" 1>&6
3129fi
3130done
3131
3132for ac_func in strchr memcpy select vprintf
3133do
3134echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3135echo "configure:3136: checking for $ac_func" >&5
3136if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3137  echo $ac_n "(cached) $ac_c" 1>&6
3138else
3139  cat > conftest.$ac_ext <<EOF
3140#line 3141 "configure"
3141#include "confdefs.h"
3142/* System header to define __stub macros and hopefully few prototypes,
3143    which can conflict with char $ac_func(); below.  */
3144#include <assert.h>
3145/* Override any gcc2 internal prototype to avoid an error.  */
3146/* We use char because int might match the return type of a gcc2
3147    builtin and then its argument prototype would still apply.  */
3148char $ac_func();
3149
3150int main() {
3151
3152/* The GNU C library defines this for functions which it implements
3153    to always fail with ENOSYS.  Some functions are actually named
3154    something starting with __ and the normal name is an alias.  */
3155#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3156choke me
3157#else
3158$ac_func();
3159#endif
3160
3161; return 0; }
3162EOF
3163if { (eval echo configure:3164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3164  rm -rf conftest*
3165  eval "ac_cv_func_$ac_func=yes"
3166else
3167  echo "configure: failed program was:" >&5
3168  cat conftest.$ac_ext >&5
3169  rm -rf conftest*
3170  eval "ac_cv_func_$ac_func=no"
3171fi
3172rm -f conftest*
3173fi
3174
3175if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3176  echo "$ac_t""yes" 1>&6
3177    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3178  cat >> confdefs.h <<EOF
3179#define $ac_tr_func 1
3180EOF
3181
3182else
3183  echo "$ac_t""no" 1>&6
3184fi
3185done
3186
3187for ac_func in times rdchk utime syslog siginterrupt
3188do
3189echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3190echo "configure:3191: checking for $ac_func" >&5
3191if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3192  echo $ac_n "(cached) $ac_c" 1>&6
3193else
3194  cat > conftest.$ac_ext <<EOF
3195#line 3196 "configure"
3196#include "confdefs.h"
3197/* System header to define __stub macros and hopefully few prototypes,
3198    which can conflict with char $ac_func(); below.  */
3199#include <assert.h>
3200/* Override any gcc2 internal prototype to avoid an error.  */
3201/* We use char because int might match the return type of a gcc2
3202    builtin and then its argument prototype would still apply.  */
3203char $ac_func();
3204
3205int main() {
3206
3207/* The GNU C library defines this for functions which it implements
3208    to always fail with ENOSYS.  Some functions are actually named
3209    something starting with __ and the normal name is an alias.  */
3210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3211choke me
3212#else
3213$ac_func();
3214#endif
3215
3216; return 0; }
3217EOF
3218if { (eval echo configure:3219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3219  rm -rf conftest*
3220  eval "ac_cv_func_$ac_func=yes"
3221else
3222  echo "configure: failed program was:" >&5
3223  cat conftest.$ac_ext >&5
3224  rm -rf conftest*
3225  eval "ac_cv_func_$ac_func=no"
3226fi
3227rm -f conftest*
3228fi
3229
3230if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3231  echo "$ac_t""yes" 1>&6
3232    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3233  cat >> confdefs.h <<EOF
3234#define $ac_tr_func 1
3235EOF
3236
3237else
3238  echo "$ac_t""no" 1>&6
3239fi
3240done
3241
3242for ac_func in mkdir mktime strerror strstr strdup strtoul strtol strpbrk
3243do
3244echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3245echo "configure:3246: checking for $ac_func" >&5
3246if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3247  echo $ac_n "(cached) $ac_c" 1>&6
3248else
3249  cat > conftest.$ac_ext <<EOF
3250#line 3251 "configure"
3251#include "confdefs.h"
3252/* System header to define __stub macros and hopefully few prototypes,
3253    which can conflict with char $ac_func(); below.  */
3254#include <assert.h>
3255/* Override any gcc2 internal prototype to avoid an error.  */
3256/* We use char because int might match the return type of a gcc2
3257    builtin and then its argument prototype would still apply.  */
3258char $ac_func();
3259
3260int main() {
3261
3262/* The GNU C library defines this for functions which it implements
3263    to always fail with ENOSYS.  Some functions are actually named
3264    something starting with __ and the normal name is an alias.  */
3265#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3266choke me
3267#else
3268$ac_func();
3269#endif
3270
3271; return 0; }
3272EOF
3273if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3274  rm -rf conftest*
3275  eval "ac_cv_func_$ac_func=yes"
3276else
3277  echo "configure: failed program was:" >&5
3278  cat conftest.$ac_ext >&5
3279  rm -rf conftest*
3280  eval "ac_cv_func_$ac_func=no"
3281fi
3282rm -f conftest*
3283fi
3284
3285if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3286  echo "$ac_t""yes" 1>&6
3287    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3288  cat >> confdefs.h <<EOF
3289#define $ac_tr_func 1
3290EOF
3291
3292else
3293  echo "$ac_t""no" 1>&6
3294LIBOBJS="$LIBOBJS ${ac_func}.o"
3295fi
3296done
3297
3298
3299for ac_func in stpcpy strftime vasprintf
3300do
3301echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3302echo "configure:3303: checking for $ac_func" >&5
3303if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3304  echo $ac_n "(cached) $ac_c" 1>&6
3305else
3306  cat > conftest.$ac_ext <<EOF
3307#line 3308 "configure"
3308#include "confdefs.h"
3309/* System header to define __stub macros and hopefully few prototypes,
3310    which can conflict with char $ac_func(); below.  */
3311#include <assert.h>
3312/* Override any gcc2 internal prototype to avoid an error.  */
3313/* We use char because int might match the return type of a gcc2
3314    builtin and then its argument prototype would still apply.  */
3315char $ac_func();
3316
3317int main() {
3318
3319/* The GNU C library defines this for functions which it implements
3320    to always fail with ENOSYS.  Some functions are actually named
3321    something starting with __ and the normal name is an alias.  */
3322#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3323choke me
3324#else
3325$ac_func();
3326#endif
3327
3328; return 0; }
3329EOF
3330if { (eval echo configure:3331: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3331  rm -rf conftest*
3332  eval "ac_cv_func_$ac_func=yes"
3333else
3334  echo "configure: failed program was:" >&5
3335  cat conftest.$ac_ext >&5
3336  rm -rf conftest*
3337  eval "ac_cv_func_$ac_func=no"
3338fi
3339rm -f conftest*
3340fi
3341
3342if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3343  echo "$ac_t""yes" 1>&6
3344    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3345  cat >> confdefs.h <<EOF
3346#define $ac_tr_func 1
3347EOF
3348
3349else
3350  echo "$ac_t""no" 1>&6
3351LIBOBJS="$LIBOBJS ${ac_func}.o"
3352fi
3353done
3354
3355
3356
3357echo $ac_n "checking for getopt_long""... $ac_c" 1>&6
3358echo "configure:3359: checking for getopt_long" >&5
3359if eval "test \"`echo '$''{'ac_cv_func_getopt_long'+set}'`\" = set"; then
3360  echo $ac_n "(cached) $ac_c" 1>&6
3361else
3362  cat > conftest.$ac_ext <<EOF
3363#line 3364 "configure"
3364#include "confdefs.h"
3365/* System header to define __stub macros and hopefully few prototypes,
3366    which can conflict with char getopt_long(); below.  */
3367#include <assert.h>
3368/* Override any gcc2 internal prototype to avoid an error.  */
3369/* We use char because int might match the return type of a gcc2
3370    builtin and then its argument prototype would still apply.  */
3371char getopt_long();
3372
3373int main() {
3374
3375/* The GNU C library defines this for functions which it implements
3376    to always fail with ENOSYS.  Some functions are actually named
3377    something starting with __ and the normal name is an alias.  */
3378#if defined (__stub_getopt_long) || defined (__stub___getopt_long)
3379choke me
3380#else
3381getopt_long();
3382#endif
3383
3384; return 0; }
3385EOF
3386if { (eval echo configure:3387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3387  rm -rf conftest*
3388  eval "ac_cv_func_getopt_long=yes"
3389else
3390  echo "configure: failed program was:" >&5
3391  cat conftest.$ac_ext >&5
3392  rm -rf conftest*
3393  eval "ac_cv_func_getopt_long=no"
3394fi
3395rm -f conftest*
3396fi
3397
3398if eval "test \"`echo '$ac_cv_func_'getopt_long`\" = yes"; then
3399  echo "$ac_t""yes" 1>&6
3400  :
3401else
3402  echo "$ac_t""no" 1>&6
3403LIBOBJS="$LIBOBJS getopt1.o getopt.o"
3404fi
3405
3406
3407
3408cat >> confdefs.h <<\EOF
3409#define HAVE_STRERROR 1
3410EOF
3411
3412
3413
3414
3415echo $ac_n "checking for ftime""... $ac_c" 1>&6
3416echo "configure:3417: checking for ftime" >&5
3417if eval "test \"`echo '$''{'ac_cv_func_ftime'+set}'`\" = set"; then
3418  echo $ac_n "(cached) $ac_c" 1>&6
3419else
3420  cat > conftest.$ac_ext <<EOF
3421#line 3422 "configure"
3422#include "confdefs.h"
3423/* System header to define __stub macros and hopefully few prototypes,
3424    which can conflict with char ftime(); below.  */
3425#include <assert.h>
3426/* Override any gcc2 internal prototype to avoid an error.  */
3427/* We use char because int might match the return type of a gcc2
3428    builtin and then its argument prototype would still apply.  */
3429char ftime();
3430
3431int main() {
3432
3433/* The GNU C library defines this for functions which it implements
3434    to always fail with ENOSYS.  Some functions are actually named
3435    something starting with __ and the normal name is an alias.  */
3436#if defined (__stub_ftime) || defined (__stub___ftime)
3437choke me
3438#else
3439ftime();
3440#endif
3441
3442; return 0; }
3443EOF
3444if { (eval echo configure:3445: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3445  rm -rf conftest*
3446  eval "ac_cv_func_ftime=yes"
3447else
3448  echo "configure: failed program was:" >&5
3449  cat conftest.$ac_ext >&5
3450  rm -rf conftest*
3451  eval "ac_cv_func_ftime=no"
3452fi
3453rm -f conftest*
3454fi
3455
3456if eval "test \"`echo '$ac_cv_func_'ftime`\" = yes"; then
3457  echo "$ac_t""yes" 1>&6
3458  echo $ac_n "checking that ftime works correctly""... $ac_c" 1>&6
3459echo "configure:3460: checking that ftime works correctly" >&5
3460if eval "test \"`echo '$''{'lrzsz_cv_sys_ftime_ok'+set}'`\" = set"; then
3461  echo $ac_n "(cached) $ac_c" 1>&6
3462else
3463  if test "$cross_compiling" = yes; then
3464  lrzsz_cv_sys_ftime_ok=runtime
3465else
3466  cat > conftest.$ac_ext <<EOF
3467#line 3468 "configure"
3468#include "confdefs.h"
3469
3470#include <sys/types.h>
3471#include <sys/timeb.h>
3472#include <stdio.h>
3473main ()
3474{
3475  struct timeb s, slast;
3476  int c = 0;
3477  ftime (&slast);
3478  while (c < 10)
3479    {
3480      ftime (&s);
3481      if (s.time < slast.time
3482      || (s.time == slast.time && s.millitm < slast.millitm)) {
3483      fprintf(stderr,"s: %ld, %ld, slast: %ld, %ld\n",
3484      	s.time,s.millitm, slast.time,slast.millitm);
3485    exit (1);
3486	}
3487      if (s.time != slast.time)
3488    ++c;
3489      slast.time = s.time;
3490      slast.millitm = s.millitm;
3491    }
3492  exit (0);
3493}
3494
3495EOF
3496if { (eval echo configure:3497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
3497then
3498  lrzsz_cv_sys_ftime_ok=yes
3499else
3500  echo "configure: failed program was:" >&5
3501  cat conftest.$ac_ext >&5
3502  rm -fr conftest*
3503  lrzsz_cv_sys_ftime_ok=no
3504fi
3505rm -fr conftest*
3506fi
3507
3508fi
3509
3510case $lrzsz_cv_sys_ftime_ok in
3511yes) cat >> confdefs.h <<\EOF
3512#define HAVE_FTIME 1
3513EOF
3514 echo "$ac_t""yes" 1>&6 ;;
3515no)  echo "$ac_t""no" 1>&6
3516	echo "configure: warning: ftime seems to be buggy" 1>&2 ;;
3517runtime) cat >> confdefs.h <<\EOF
3518#define HAVE_FTIME 1
3519EOF
3520
3521	echo "$ac_t""will check at run time" 1>&6 ;;
3522esac
3523
3524else
3525  echo "$ac_t""no" 1>&6
3526fi
3527
3528
3529echo $ac_n "checking for timezone variable""... $ac_c" 1>&6
3530echo "configure:3531: checking for timezone variable" >&5
3531if eval "test \"`echo '$''{'libquark_cv_var_timezone'+set}'`\" = set"; then
3532  echo $ac_n "(cached) $ac_c" 1>&6
3533else
3534
3535cat > conftest.$ac_ext <<EOF
3536#line 3537 "configure"
3537#include "confdefs.h"
3538#include <time.h>
3539int main() {
3540return(int)(timezone/2);
3541; return 0; }
3542EOF
3543if { (eval echo configure:3544: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3544  rm -rf conftest*
3545  libquark_cv_var_timezone=yes
3546else
3547  echo "configure: failed program was:" >&5
3548  cat conftest.$ac_ext >&5
3549  rm -rf conftest*
3550  libquark_cv_var_timezone=no
3551fi
3552rm -f conftest*
3553
3554fi
3555
3556if test $libquark_cv_var_timezone = yes ; then
3557	echo "$ac_t""yes" 1>&6
3558	cat >> confdefs.h <<\EOF
3559#define HAVE_TIMEZONE_VAR 1
3560EOF
3561
3562else
3563	echo "$ac_t""no" 1>&6
3564fi
3565if test "x$lookup_facility" = x ; then
3566	:
3567else
3568	echo $ac_n "checking for $lookup_facility""... $ac_c" 1>&6
3569echo "configure:3570: checking for $lookup_facility" >&5
3570	if eval "test \"`echo '$''{'lrzsz_cv_lookup_facility'+set}'`\" = set"; then
3571  echo $ac_n "(cached) $ac_c" 1>&6
3572else
3573
3574		cat > conftest.$ac_ext <<EOF
3575#line 3576 "configure"
3576#include "confdefs.h"
3577
3578#ifdef HAVE_SYSLOG_H
3579#include <syslog.h>
3580#else
3581#include <sys/syslog.h>
3582#endif
3583#ifdef $lookup_facility
3584ihave$lookup_facility
3585#endif
3586		
3587EOF
3588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3589  egrep "ihave$lookup_facility" >/dev/null 2>&1; then
3590  rm -rf conftest*
3591  lrzsz_cv_lookup_facility=yes
3592else
3593  rm -rf conftest*
3594  lrzsz_cv_lookup_facility=no
3595fi
3596rm -f conftest*
3597
3598
3599fi
3600
3601	if test $lrzsz_cv_lookup_facility = yes ; then
3602		echo "$ac_t""yes" 1>&6
3603		cat >> confdefs.h <<EOF
3604#define ENABLE_SYSLOG $lookup_facility
3605EOF
3606
3607	else
3608		cat >> confdefs.h <<\EOF
3609#define ENABLE_SYSLOG LOG_USER
3610EOF
3611
3612		echo "$ac_t""no" 1>&6
3613	fi
3614fi
3615
3616
3617
3618
3619
3620
3621
3622   for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h string.h \
3623unistd.h values.h sys/param.h
3624do
3625ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3626echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3627echo "configure:3628: checking for $ac_hdr" >&5
3628if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3629  echo $ac_n "(cached) $ac_c" 1>&6
3630else
3631  cat > conftest.$ac_ext <<EOF
3632#line 3633 "configure"
3633#include "confdefs.h"
3634#include <$ac_hdr>
3635EOF
3636ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3637{ (eval echo configure:3638: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3638ac_err=`grep -v '^ *+' conftest.out`
3639if test -z "$ac_err"; then
3640  rm -rf conftest*
3641  eval "ac_cv_header_$ac_safe=yes"
3642else
3643  echo "$ac_err" >&5
3644  echo "configure: failed program was:" >&5
3645  cat conftest.$ac_ext >&5
3646  rm -rf conftest*
3647  eval "ac_cv_header_$ac_safe=no"
3648fi
3649rm -f conftest*
3650fi
3651if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3652  echo "$ac_t""yes" 1>&6
3653    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3654  cat >> confdefs.h <<EOF
3655#define $ac_tr_hdr 1
3656EOF
3657
3658else
3659  echo "$ac_t""no" 1>&6
3660fi
3661done
3662
3663   for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \
3664__argz_count __argz_stringify __argz_next
3665do
3666echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3667echo "configure:3668: checking for $ac_func" >&5
3668if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3669  echo $ac_n "(cached) $ac_c" 1>&6
3670else
3671  cat > conftest.$ac_ext <<EOF
3672#line 3673 "configure"
3673#include "confdefs.h"
3674/* System header to define __stub macros and hopefully few prototypes,
3675    which can conflict with char $ac_func(); below.  */
3676#include <assert.h>
3677/* Override any gcc2 internal prototype to avoid an error.  */
3678/* We use char because int might match the return type of a gcc2
3679    builtin and then its argument prototype would still apply.  */
3680char $ac_func();
3681
3682int main() {
3683
3684/* The GNU C library defines this for functions which it implements
3685    to always fail with ENOSYS.  Some functions are actually named
3686    something starting with __ and the normal name is an alias.  */
3687#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3688choke me
3689#else
3690$ac_func();
3691#endif
3692
3693; return 0; }
3694EOF
3695if { (eval echo configure:3696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3696  rm -rf conftest*
3697  eval "ac_cv_func_$ac_func=yes"
3698else
3699  echo "configure: failed program was:" >&5
3700  cat conftest.$ac_ext >&5
3701  rm -rf conftest*
3702  eval "ac_cv_func_$ac_func=no"
3703fi
3704rm -f conftest*
3705fi
3706
3707if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3708  echo "$ac_t""yes" 1>&6
3709    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3710  cat >> confdefs.h <<EOF
3711#define $ac_tr_func 1
3712EOF
3713
3714else
3715  echo "$ac_t""no" 1>&6
3716fi
3717done
3718
3719
3720   if test "${ac_cv_func_stpcpy+set}" != "set"; then
3721     for ac_func in stpcpy
3722do
3723echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3724echo "configure:3725: checking for $ac_func" >&5
3725if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3726  echo $ac_n "(cached) $ac_c" 1>&6
3727else
3728  cat > conftest.$ac_ext <<EOF
3729#line 3730 "configure"
3730#include "confdefs.h"
3731/* System header to define __stub macros and hopefully few prototypes,
3732    which can conflict with char $ac_func(); below.  */
3733#include <assert.h>
3734/* Override any gcc2 internal prototype to avoid an error.  */
3735/* We use char because int might match the return type of a gcc2
3736    builtin and then its argument prototype would still apply.  */
3737char $ac_func();
3738
3739int main() {
3740
3741/* The GNU C library defines this for functions which it implements
3742    to always fail with ENOSYS.  Some functions are actually named
3743    something starting with __ and the normal name is an alias.  */
3744#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3745choke me
3746#else
3747$ac_func();
3748#endif
3749
3750; return 0; }
3751EOF
3752if { (eval echo configure:3753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3753  rm -rf conftest*
3754  eval "ac_cv_func_$ac_func=yes"
3755else
3756  echo "configure: failed program was:" >&5
3757  cat conftest.$ac_ext >&5
3758  rm -rf conftest*
3759  eval "ac_cv_func_$ac_func=no"
3760fi
3761rm -f conftest*
3762fi
3763
3764if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3765  echo "$ac_t""yes" 1>&6
3766    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3767  cat >> confdefs.h <<EOF
3768#define $ac_tr_func 1
3769EOF
3770
3771else
3772  echo "$ac_t""no" 1>&6
3773fi
3774done
3775
3776   fi
3777   if test "${ac_cv_func_stpcpy}" = "yes"; then
3778     cat >> confdefs.h <<\EOF
3779#define HAVE_STPCPY 1
3780EOF
3781
3782   fi
3783
3784   if test $ac_cv_header_locale_h = yes; then
3785    echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3786echo "configure:3787: checking for LC_MESSAGES" >&5
3787if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3788  echo $ac_n "(cached) $ac_c" 1>&6
3789else
3790  cat > conftest.$ac_ext <<EOF
3791#line 3792 "configure"
3792#include "confdefs.h"
3793#include <locale.h>
3794int main() {
3795return LC_MESSAGES
3796; return 0; }
3797EOF
3798if { (eval echo configure:3799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3799  rm -rf conftest*
3800  am_cv_val_LC_MESSAGES=yes
3801else
3802  echo "configure: failed program was:" >&5
3803  cat conftest.$ac_ext >&5
3804  rm -rf conftest*
3805  am_cv_val_LC_MESSAGES=no
3806fi
3807rm -f conftest*
3808fi
3809
3810echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3811    if test $am_cv_val_LC_MESSAGES = yes; then
3812      cat >> confdefs.h <<\EOF
3813#define HAVE_LC_MESSAGES 1
3814EOF
3815
3816    fi
3817  fi
3818   echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3819echo "configure:3820: checking whether NLS is requested" >&5
3820        # Check whether --enable-nls or --disable-nls was given.
3821if test "${enable_nls+set}" = set; then
3822  enableval="$enable_nls"
3823  USE_NLS=$enableval
3824else
3825  USE_NLS=yes
3826fi
3827
3828    echo "$ac_t""$USE_NLS" 1>&6
3829
3830
3831    USE_INCLUDED_LIBINTL=no
3832
3833        if test "$USE_NLS" = "yes"; then
3834      cat >> confdefs.h <<\EOF
3835#define ENABLE_NLS 1
3836EOF
3837
3838      echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3839echo "configure:3840: checking whether included gettext is requested" >&5
3840      # Check whether --with-included-gettext or --without-included-gettext was given.
3841if test "${with_included_gettext+set}" = set; then
3842  withval="$with_included_gettext"
3843  nls_cv_force_use_gnu_gettext=$withval
3844else
3845  nls_cv_force_use_gnu_gettext=no
3846fi
3847
3848      echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3849
3850      nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3851      if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3852                        		nls_cv_header_intl=
3853	nls_cv_header_libgt=
3854	CATOBJEXT=NONE
3855
3856	ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3857echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3858echo "configure:3859: checking for libintl.h" >&5
3859if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3860  echo $ac_n "(cached) $ac_c" 1>&6
3861else
3862  cat > conftest.$ac_ext <<EOF
3863#line 3864 "configure"
3864#include "confdefs.h"
3865#include <libintl.h>
3866EOF
3867ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3868{ (eval echo configure:3869: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3869ac_err=`grep -v '^ *+' conftest.out`
3870if test -z "$ac_err"; then
3871  rm -rf conftest*
3872  eval "ac_cv_header_$ac_safe=yes"
3873else
3874  echo "$ac_err" >&5
3875  echo "configure: failed program was:" >&5
3876  cat conftest.$ac_ext >&5
3877  rm -rf conftest*
3878  eval "ac_cv_header_$ac_safe=no"
3879fi
3880rm -f conftest*
3881fi
3882if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3883  echo "$ac_t""yes" 1>&6
3884  echo $ac_n "checking for gettext in libc""... $ac_c" 1>&6
3885echo "configure:3886: checking for gettext in libc" >&5
3886if eval "test \"`echo '$''{'gt_cv_func_gettext_libc'+set}'`\" = set"; then
3887  echo $ac_n "(cached) $ac_c" 1>&6
3888else
3889  cat > conftest.$ac_ext <<EOF
3890#line 3891 "configure"
3891#include "confdefs.h"
3892#include <libintl.h>
3893int main() {
3894return (int) gettext ("")
3895; return 0; }
3896EOF
3897if { (eval echo configure:3898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3898  rm -rf conftest*
3899  gt_cv_func_gettext_libc=yes
3900else
3901  echo "configure: failed program was:" >&5
3902  cat conftest.$ac_ext >&5
3903  rm -rf conftest*
3904  gt_cv_func_gettext_libc=no
3905fi
3906rm -f conftest*
3907fi
3908
3909echo "$ac_t""$gt_cv_func_gettext_libc" 1>&6
3910
3911	   if test "$gt_cv_func_gettext_libc" != "yes"; then
3912	     echo $ac_n "checking for bindtextdomain in -lintl""... $ac_c" 1>&6
3913echo "configure:3914: checking for bindtextdomain in -lintl" >&5
3914ac_lib_var=`echo intl'_'bindtextdomain | sed 'y%./+-%__p_%'`
3915if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3916  echo $ac_n "(cached) $ac_c" 1>&6
3917else
3918  ac_save_LIBS="$LIBS"
3919LIBS="-lintl  $LIBS"
3920cat > conftest.$ac_ext <<EOF
3921#line 3922 "configure"
3922#include "confdefs.h"
3923/* Override any gcc2 internal prototype to avoid an error.  */
3924/* We use char because int might match the return type of a gcc2
3925    builtin and then its argument prototype would still apply.  */
3926char bindtextdomain();
3927
3928int main() {
3929bindtextdomain()
3930; return 0; }
3931EOF
3932if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3933  rm -rf conftest*
3934  eval "ac_cv_lib_$ac_lib_var=yes"
3935else
3936  echo "configure: failed program was:" >&5
3937  cat conftest.$ac_ext >&5
3938  rm -rf conftest*
3939  eval "ac_cv_lib_$ac_lib_var=no"
3940fi
3941rm -f conftest*
3942LIBS="$ac_save_LIBS"
3943
3944fi
3945if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3946  echo "$ac_t""yes" 1>&6
3947  echo $ac_n "checking for gettext in libintl""... $ac_c" 1>&6
3948echo "configure:3949: checking for gettext in libintl" >&5
3949if eval "test \"`echo '$''{'gt_cv_func_gettext_libintl'+set}'`\" = set"; then
3950  echo $ac_n "(cached) $ac_c" 1>&6
3951else
3952  cat > conftest.$ac_ext <<EOF
3953#line 3954 "configure"
3954#include "confdefs.h"
3955
3956int main() {
3957return (int) gettext ("")
3958; return 0; }
3959EOF
3960if { (eval echo configure:3961: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3961  rm -rf conftest*
3962  gt_cv_func_gettext_libintl=yes
3963else
3964  echo "configure: failed program was:" >&5
3965  cat conftest.$ac_ext >&5
3966  rm -rf conftest*
3967  gt_cv_func_gettext_libintl=no
3968fi
3969rm -f conftest*
3970fi
3971
3972echo "$ac_t""$gt_cv_func_gettext_libintl" 1>&6
3973else
3974  echo "$ac_t""no" 1>&6
3975fi
3976
3977	   fi
3978
3979	   if test "$gt_cv_func_gettext_libc" = "yes" \
3980	      || test "$gt_cv_func_gettext_libintl" = "yes"; then
3981	      cat >> confdefs.h <<\EOF
3982#define HAVE_GETTEXT 1
3983EOF
3984
3985	      # Extract the first word of "msgfmt", so it can be a program name with args.
3986set dummy msgfmt; ac_word=$2
3987echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3988echo "configure:3989: checking for $ac_word" >&5
3989if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3990  echo $ac_n "(cached) $ac_c" 1>&6
3991else
3992  case "$MSGFMT" in
3993  /*)
3994  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3995  ;;
3996  *)
3997  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3998  for ac_dir in $PATH; do
3999    test -z "$ac_dir" && ac_dir=.
4000    if test -f $ac_dir/$ac_word; then
4001      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4002	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4003	break
4004      fi
4005    fi
4006  done
4007  IFS="$ac_save_ifs"
4008  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
4009  ;;
4010esac
4011fi
4012MSGFMT="$ac_cv_path_MSGFMT"
4013if test -n "$MSGFMT"; then
4014  echo "$ac_t""$MSGFMT" 1>&6
4015else
4016  echo "$ac_t""no" 1>&6
4017fi
4018	      if test "$MSGFMT" != "no"; then
4019		for ac_func in dcgettext
4020do
4021echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
4022echo "configure:4023: checking for $ac_func" >&5
4023if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
4024  echo $ac_n "(cached) $ac_c" 1>&6
4025else
4026  cat > conftest.$ac_ext <<EOF
4027#line 4028 "configure"
4028#include "confdefs.h"
4029/* System header to define __stub macros and hopefully few prototypes,
4030    which can conflict with char $ac_func(); below.  */
4031#include <assert.h>
4032/* Override any gcc2 internal prototype to avoid an error.  */
4033/* We use char because int might match the return type of a gcc2
4034    builtin and then its argument prototype would still apply.  */
4035char $ac_func();
4036
4037int main() {
4038
4039/* The GNU C library defines this for functions which it implements
4040    to always fail with ENOSYS.  Some functions are actually named
4041    something starting with __ and the normal name is an alias.  */
4042#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4043choke me
4044#else
4045$ac_func();
4046#endif
4047
4048; return 0; }
4049EOF
4050if { (eval echo configure:4051: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4051  rm -rf conftest*
4052  eval "ac_cv_func_$ac_func=yes"
4053else
4054  echo "configure: failed program was:" >&5
4055  cat conftest.$ac_ext >&5
4056  rm -rf conftest*
4057  eval "ac_cv_func_$ac_func=no"
4058fi
4059rm -f conftest*
4060fi
4061
4062if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
4063  echo "$ac_t""yes" 1>&6
4064    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
4065  cat >> confdefs.h <<EOF
4066#define $ac_tr_func 1
4067EOF
4068
4069else
4070  echo "$ac_t""no" 1>&6
4071fi
4072done
4073
4074		# Extract the first word of "gmsgfmt", so it can be a program name with args.
4075set dummy gmsgfmt; ac_word=$2
4076echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4077echo "configure:4078: checking for $ac_word" >&5
4078if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4079  echo $ac_n "(cached) $ac_c" 1>&6
4080else
4081  case "$GMSGFMT" in
4082  /*)
4083  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4084  ;;
4085  *)
4086  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4087  for ac_dir in $PATH; do
4088    test -z "$ac_dir" && ac_dir=.
4089    if test -f $ac_dir/$ac_word; then
4090      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4091      break
4092    fi
4093  done
4094  IFS="$ac_save_ifs"
4095  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4096  ;;
4097esac
4098fi
4099GMSGFMT="$ac_cv_path_GMSGFMT"
4100if test -n "$GMSGFMT"; then
4101  echo "$ac_t""$GMSGFMT" 1>&6
4102else
4103  echo "$ac_t""no" 1>&6
4104fi
4105
4106		# Extract the first word of "xgettext", so it can be a program name with args.
4107set dummy xgettext; ac_word=$2
4108echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4109echo "configure:4110: checking for $ac_word" >&5
4110if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4111  echo $ac_n "(cached) $ac_c" 1>&6
4112else
4113  case "$XGETTEXT" in
4114  /*)
4115  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4116  ;;
4117  *)
4118  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4119  for ac_dir in $PATH; do
4120    test -z "$ac_dir" && ac_dir=.
4121    if test -f $ac_dir/$ac_word; then
4122      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4123	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4124	break
4125      fi
4126    fi
4127  done
4128  IFS="$ac_save_ifs"
4129  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4130  ;;
4131esac
4132fi
4133XGETTEXT="$ac_cv_path_XGETTEXT"
4134if test -n "$XGETTEXT"; then
4135  echo "$ac_t""$XGETTEXT" 1>&6
4136else
4137  echo "$ac_t""no" 1>&6
4138fi
4139
4140		cat > conftest.$ac_ext <<EOF
4141#line 4142 "configure"
4142#include "confdefs.h"
4143
4144int main() {
4145extern int _nl_msg_cat_cntr;
4146			       return _nl_msg_cat_cntr
4147; return 0; }
4148EOF
4149if { (eval echo configure:4150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4150  rm -rf conftest*
4151  CATOBJEXT=.gmo
4152		   DATADIRNAME=share
4153else
4154  echo "configure: failed program was:" >&5
4155  cat conftest.$ac_ext >&5
4156  rm -rf conftest*
4157  CATOBJEXT=.mo
4158		   DATADIRNAME=lib
4159fi
4160rm -f conftest*
4161		INSTOBJEXT=.mo
4162	      fi
4163	    fi
4164
4165else
4166  echo "$ac_t""no" 1>&6
4167fi
4168
4169
4170        if test "$CATOBJEXT" = "NONE"; then
4171	  echo $ac_n "checking whether catgets can be used""... $ac_c" 1>&6
4172echo "configure:4173: checking whether catgets can be used" >&5
4173	  # Check whether --with-catgets or --without-catgets was given.
4174if test "${with_catgets+set}" = set; then
4175  withval="$with_catgets"
4176  nls_cv_use_catgets=$withval
4177else
4178  nls_cv_use_catgets=no
4179fi
4180
4181	  echo "$ac_t""$nls_cv_use_catgets" 1>&6
4182
4183	  if test "$nls_cv_use_catgets" = "yes"; then
4184	    	    echo $ac_n "checking for main in -li""... $ac_c" 1>&6
4185echo "configure:4186: checking for main in -li" >&5
4186ac_lib_var=`echo i'_'main | sed 'y%./+-%__p_%'`
4187if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4188  echo $ac_n "(cached) $ac_c" 1>&6
4189else
4190  ac_save_LIBS="$LIBS"
4191LIBS="-li  $LIBS"
4192cat > conftest.$ac_ext <<EOF
4193#line 4194 "configure"
4194#include "confdefs.h"
4195
4196int main() {
4197main()
4198; return 0; }
4199EOF
4200if { (eval echo configure:4201: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4201  rm -rf conftest*
4202  eval "ac_cv_lib_$ac_lib_var=yes"
4203else
4204  echo "configure: failed program was:" >&5
4205  cat conftest.$ac_ext >&5
4206  rm -rf conftest*
4207  eval "ac_cv_lib_$ac_lib_var=no"
4208fi
4209rm -f conftest*
4210LIBS="$ac_save_LIBS"
4211
4212fi
4213if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4214  echo "$ac_t""yes" 1>&6
4215    ac_tr_lib=HAVE_LIB`echo i | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4216    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4217  cat >> confdefs.h <<EOF
4218#define $ac_tr_lib 1
4219EOF
4220
4221  LIBS="-li $LIBS"
4222
4223else
4224  echo "$ac_t""no" 1>&6
4225fi
4226
4227	    echo $ac_n "checking for catgets""... $ac_c" 1>&6
4228echo "configure:4229: checking for catgets" >&5
4229if eval "test \"`echo '$''{'ac_cv_func_catgets'+set}'`\" = set"; then
4230  echo $ac_n "(cached) $ac_c" 1>&6
4231else
4232  cat > conftest.$ac_ext <<EOF
4233#line 4234 "configure"
4234#include "confdefs.h"
4235/* System header to define __stub macros and hopefully few prototypes,
4236    which can conflict with char catgets(); below.  */
4237#include <assert.h>
4238/* Override any gcc2 internal prototype to avoid an error.  */
4239/* We use char because int might match the return type of a gcc2
4240    builtin and then its argument prototype would still apply.  */
4241char catgets();
4242
4243int main() {
4244
4245/* The GNU C library defines this for functions which it implements
4246    to always fail with ENOSYS.  Some functions are actually named
4247    something starting with __ and the normal name is an alias.  */
4248#if defined (__stub_catgets) || defined (__stub___catgets)
4249choke me
4250#else
4251catgets();
4252#endif
4253
4254; return 0; }
4255EOF
4256if { (eval echo configure:4257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4257  rm -rf conftest*
4258  eval "ac_cv_func_catgets=yes"
4259else
4260  echo "configure: failed program was:" >&5
4261  cat conftest.$ac_ext >&5
4262  rm -rf conftest*
4263  eval "ac_cv_func_catgets=no"
4264fi
4265rm -f conftest*
4266fi
4267
4268if eval "test \"`echo '$ac_cv_func_'catgets`\" = yes"; then
4269  echo "$ac_t""yes" 1>&6
4270  cat >> confdefs.h <<\EOF
4271#define HAVE_CATGETS 1
4272EOF
4273
4274	       INTLOBJS="\$(CATOBJS)"
4275	       # Extract the first word of "gencat", so it can be a program name with args.
4276set dummy gencat; ac_word=$2
4277echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4278echo "configure:4279: checking for $ac_word" >&5
4279if eval "test \"`echo '$''{'ac_cv_path_GENCAT'+set}'`\" = set"; then
4280  echo $ac_n "(cached) $ac_c" 1>&6
4281else
4282  case "$GENCAT" in
4283  /*)
4284  ac_cv_path_GENCAT="$GENCAT" # Let the user override the test with a path.
4285  ;;
4286  *)
4287  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4288  for ac_dir in $PATH; do
4289    test -z "$ac_dir" && ac_dir=.
4290    if test -f $ac_dir/$ac_word; then
4291      ac_cv_path_GENCAT="$ac_dir/$ac_word"
4292      break
4293    fi
4294  done
4295  IFS="$ac_save_ifs"
4296  test -z "$ac_cv_path_GENCAT" && ac_cv_path_GENCAT="no"
4297  ;;
4298esac
4299fi
4300GENCAT="$ac_cv_path_GENCAT"
4301if test -n "$GENCAT"; then
4302  echo "$ac_t""$GENCAT" 1>&6
4303else
4304  echo "$ac_t""no" 1>&6
4305fi
4306	       if test "$GENCAT" != "no"; then
4307		 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4308set dummy gmsgfmt; ac_word=$2
4309echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4310echo "configure:4311: checking for $ac_word" >&5
4311if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4312  echo $ac_n "(cached) $ac_c" 1>&6
4313else
4314  case "$GMSGFMT" in
4315  /*)
4316  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4317  ;;
4318  *)
4319  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4320  for ac_dir in $PATH; do
4321    test -z "$ac_dir" && ac_dir=.
4322    if test -f $ac_dir/$ac_word; then
4323      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4324      break
4325    fi
4326  done
4327  IFS="$ac_save_ifs"
4328  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
4329  ;;
4330esac
4331fi
4332GMSGFMT="$ac_cv_path_GMSGFMT"
4333if test -n "$GMSGFMT"; then
4334  echo "$ac_t""$GMSGFMT" 1>&6
4335else
4336  echo "$ac_t""no" 1>&6
4337fi
4338
4339		 if test "$GMSGFMT" = "no"; then
4340		   # Extract the first word of "msgfmt", so it can be a program name with args.
4341set dummy msgfmt; ac_word=$2
4342echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4343echo "configure:4344: checking for $ac_word" >&5
4344if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4345  echo $ac_n "(cached) $ac_c" 1>&6
4346else
4347  case "$GMSGFMT" in
4348  /*)
4349  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4350  ;;
4351  *)
4352  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4353  for ac_dir in $PATH; do
4354    test -z "$ac_dir" && ac_dir=.
4355    if test -f $ac_dir/$ac_word; then
4356      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4357	ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4358	break
4359      fi
4360    fi
4361  done
4362  IFS="$ac_save_ifs"
4363  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="no"
4364  ;;
4365esac
4366fi
4367GMSGFMT="$ac_cv_path_GMSGFMT"
4368if test -n "$GMSGFMT"; then
4369  echo "$ac_t""$GMSGFMT" 1>&6
4370else
4371  echo "$ac_t""no" 1>&6
4372fi
4373
4374		 fi
4375		 # Extract the first word of "xgettext", so it can be a program name with args.
4376set dummy xgettext; ac_word=$2
4377echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4378echo "configure:4379: checking for $ac_word" >&5
4379if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4380  echo $ac_n "(cached) $ac_c" 1>&6
4381else
4382  case "$XGETTEXT" in
4383  /*)
4384  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4385  ;;
4386  *)
4387  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4388  for ac_dir in $PATH; do
4389    test -z "$ac_dir" && ac_dir=.
4390    if test -f $ac_dir/$ac_word; then
4391      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4392	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4393	break
4394      fi
4395    fi
4396  done
4397  IFS="$ac_save_ifs"
4398  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4399  ;;
4400esac
4401fi
4402XGETTEXT="$ac_cv_path_XGETTEXT"
4403if test -n "$XGETTEXT"; then
4404  echo "$ac_t""$XGETTEXT" 1>&6
4405else
4406  echo "$ac_t""no" 1>&6
4407fi
4408
4409		 USE_INCLUDED_LIBINTL=yes
4410		 CATOBJEXT=.cat
4411		 INSTOBJEXT=.cat
4412		 DATADIRNAME=lib
4413		 INTLDEPS='$(top_builddir)/intl/libintl.a'
4414		 INTLLIBS=$INTLDEPS
4415		 LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4416		 nls_cv_header_intl=intl/libintl.h
4417		 nls_cv_header_libgt=intl/libgettext.h
4418	       fi
4419else
4420  echo "$ac_t""no" 1>&6
4421fi
4422
4423	  fi
4424        fi
4425
4426        if test "$CATOBJEXT" = "NONE"; then
4427	  	  	  nls_cv_use_gnu_gettext=yes
4428        fi
4429      fi
4430
4431      if test "$nls_cv_use_gnu_gettext" = "yes"; then
4432                INTLOBJS="\$(GETTOBJS)"
4433        # Extract the first word of "msgfmt", so it can be a program name with args.
4434set dummy msgfmt; ac_word=$2
4435echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4436echo "configure:4437: checking for $ac_word" >&5
4437if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
4438  echo $ac_n "(cached) $ac_c" 1>&6
4439else
4440  case "$MSGFMT" in
4441  /*)
4442  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4443  ;;
4444  *)
4445  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4446  for ac_dir in $PATH; do
4447    test -z "$ac_dir" && ac_dir=.
4448    if test -f $ac_dir/$ac_word; then
4449      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
4450	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
4451	break
4452      fi
4453    fi
4454  done
4455  IFS="$ac_save_ifs"
4456  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt"
4457  ;;
4458esac
4459fi
4460MSGFMT="$ac_cv_path_MSGFMT"
4461if test -n "$MSGFMT"; then
4462  echo "$ac_t""$MSGFMT" 1>&6
4463else
4464  echo "$ac_t""no" 1>&6
4465fi
4466
4467        # Extract the first word of "gmsgfmt", so it can be a program name with args.
4468set dummy gmsgfmt; ac_word=$2
4469echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4470echo "configure:4471: checking for $ac_word" >&5
4471if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
4472  echo $ac_n "(cached) $ac_c" 1>&6
4473else
4474  case "$GMSGFMT" in
4475  /*)
4476  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4477  ;;
4478  *)
4479  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4480  for ac_dir in $PATH; do
4481    test -z "$ac_dir" && ac_dir=.
4482    if test -f $ac_dir/$ac_word; then
4483      ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
4484      break
4485    fi
4486  done
4487  IFS="$ac_save_ifs"
4488  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4489  ;;
4490esac
4491fi
4492GMSGFMT="$ac_cv_path_GMSGFMT"
4493if test -n "$GMSGFMT"; then
4494  echo "$ac_t""$GMSGFMT" 1>&6
4495else
4496  echo "$ac_t""no" 1>&6
4497fi
4498
4499        # Extract the first word of "xgettext", so it can be a program name with args.
4500set dummy xgettext; ac_word=$2
4501echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
4502echo "configure:4503: checking for $ac_word" >&5
4503if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
4504  echo $ac_n "(cached) $ac_c" 1>&6
4505else
4506  case "$XGETTEXT" in
4507  /*)
4508  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4509  ;;
4510  *)
4511  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
4512  for ac_dir in $PATH; do
4513    test -z "$ac_dir" && ac_dir=.
4514    if test -f $ac_dir/$ac_word; then
4515      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
4516	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
4517	break
4518      fi
4519    fi
4520  done
4521  IFS="$ac_save_ifs"
4522  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4523  ;;
4524esac
4525fi
4526XGETTEXT="$ac_cv_path_XGETTEXT"
4527if test -n "$XGETTEXT"; then
4528  echo "$ac_t""$XGETTEXT" 1>&6
4529else
4530  echo "$ac_t""no" 1>&6
4531fi
4532
4533
4534	USE_INCLUDED_LIBINTL=yes
4535        CATOBJEXT=.gmo
4536        INSTOBJEXT=.mo
4537        DATADIRNAME=share
4538	INTLDEPS='$(top_builddir)/intl/libintl.a'
4539	INTLLIBS=$INTLDEPS
4540	LIBS=`echo $LIBS | sed -e 's/-lintl//'`
4541        nls_cv_header_intl=intl/libintl.h
4542        nls_cv_header_libgt=intl/libgettext.h
4543      fi
4544
4545            if test "$XGETTEXT" != ":"; then
4546			if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
4547	  : ;
4548	else
4549	  echo "$ac_t""found xgettext programs is not GNU xgettext; ignore it" 1>&6
4550	  XGETTEXT=":"
4551	fi
4552      fi
4553
4554      # We need to process the po/ directory.
4555      POSUB=po
4556    else
4557      DATADIRNAME=share
4558      nls_cv_header_intl=intl/libintl.h
4559      nls_cv_header_libgt=intl/libgettext.h
4560    fi
4561
4562    # If this is used in GNU gettext we have to set USE_NLS to `yes'
4563    # because some of the sources are only built for this goal.
4564    if test "$PACKAGE" = gettext; then
4565      USE_NLS=yes
4566      USE_INCLUDED_LIBINTL=yes
4567    fi
4568
4569                for lang in $ALL_LINGUAS; do
4570      GMOFILES="$GMOFILES $lang.gmo"
4571      POFILES="$POFILES $lang.po"
4572    done
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587   if test "x$CATOBJEXT" != "x"; then
4588     if test "x$ALL_LINGUAS" = "x"; then
4589       LINGUAS=
4590     else
4591       echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
4592echo "configure:4593: checking for catalogs to be installed" >&5
4593       NEW_LINGUAS=
4594       for lang in ${LINGUAS=$ALL_LINGUAS}; do
4595         case "$ALL_LINGUAS" in
4596          *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;;
4597         esac
4598       done
4599       LINGUAS=$NEW_LINGUAS
4600       echo "$ac_t""$LINGUAS" 1>&6
4601     fi
4602
4603          if test -n "$LINGUAS"; then
4604       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
4605     fi
4606   fi
4607
4608            if test $ac_cv_header_locale_h = yes; then
4609     INCLUDE_LOCALE_H="#include <locale.h>"
4610   else
4611     INCLUDE_LOCALE_H="\
4612/* The system does not provide the header <locale.h>.  Take care yourself.  */"
4613   fi
4614
4615
4616            test -d intl || mkdir intl
4617   if test "$CATOBJEXT" = ".cat"; then
4618     ac_safe=`echo "linux/version.h" | sed 'y%./+-%__p_%'`
4619echo $ac_n "checking for linux/version.h""... $ac_c" 1>&6
4620echo "configure:4621: checking for linux/version.h" >&5
4621if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4622  echo $ac_n "(cached) $ac_c" 1>&6
4623else
4624  cat > conftest.$ac_ext <<EOF
4625#line 4626 "configure"
4626#include "confdefs.h"
4627#include <linux/version.h>
4628EOF
4629ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4630{ (eval echo configure:4631: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4631ac_err=`grep -v '^ *+' conftest.out`
4632if test -z "$ac_err"; then
4633  rm -rf conftest*
4634  eval "ac_cv_header_$ac_safe=yes"
4635else
4636  echo "$ac_err" >&5
4637  echo "configure: failed program was:" >&5
4638  cat conftest.$ac_ext >&5
4639  rm -rf conftest*
4640  eval "ac_cv_header_$ac_safe=no"
4641fi
4642rm -f conftest*
4643fi
4644if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4645  echo "$ac_t""yes" 1>&6
4646  msgformat=linux
4647else
4648  echo "$ac_t""no" 1>&6
4649msgformat=xopen
4650fi
4651
4652
4653               sed -e '/^#/d' $srcdir/intl/$msgformat-msg.sed > intl/po2msg.sed
4654   fi
4655      sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \
4656     $srcdir/intl/po2tbl.sed.in > intl/po2tbl.sed
4657
4658            if test "$PACKAGE" = "gettext"; then
4659     GT_NO="#NO#"
4660     GT_YES=
4661   else
4662     GT_NO=
4663     GT_YES="#YES#"
4664   fi
4665
4666
4667
4668            MKINSTALLDIRS=
4669   if test -n "$ac_aux_dir"; then
4670     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
4671   fi
4672   if test -z "$MKINSTALLDIRS"; then
4673     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4674   fi
4675
4676
4677      l=
4678
4679
4680         test -d po || mkdir po
4681   if test "x$srcdir" != "x."; then
4682     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
4683       posrcprefix="$srcdir/"
4684     else
4685       posrcprefix="../$srcdir/"
4686     fi
4687   else
4688     posrcprefix="../"
4689   fi
4690   rm -f po/POTFILES
4691   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
4692	< $srcdir/po/POTFILES.in > po/POTFILES
4693
4694
4695cat >> confdefs.h <<EOF
4696#define LOCALEDIR "$prefix/$DATADIRNAME"
4697EOF
4698
4699
4700
4701trap '' 1 2 15
4702cat > confcache <<\EOF
4703# This file is a shell script that caches the results of configure
4704# tests run on this system so they can be shared between configure
4705# scripts and configure runs.  It is not useful on other systems.
4706# If it contains results you don't want to keep, you may remove or edit it.
4707#
4708# By default, configure uses ./config.cache as the cache file,
4709# creating it if it does not exist already.  You can give configure
4710# the --cache-file=FILE option to use a different cache file; that is
4711# what configure does when it calls configure scripts in
4712# subdirectories, so they share the cache.
4713# Giving --cache-file=/dev/null disables caching, for debugging configure.
4714# config.status only pays attention to the cache file if you give it the
4715# --recheck option to rerun configure.
4716#
4717EOF
4718# The following way of writing the cache mishandles newlines in values,
4719# but we know of no workaround that is simple, portable, and efficient.
4720# So, don't put newlines in cache variables' values.
4721# Ultrix sh set writes to stderr and can't be redirected directly,
4722# and sets the high bit in the cache file unless we assign to the vars.
4723(set) 2>&1 |
4724  case `(ac_space=' '; set) 2>&1` in
4725  *ac_space=\ *)
4726    # `set' does not quote correctly, so add quotes (double-quote substitution
4727    # turns \\\\ into \\, and sed turns \\ into \).
4728    sed -n \
4729      -e "s/'/'\\\\''/g" \
4730      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4731    ;;
4732  *)
4733    # `set' quotes correctly as required by POSIX, so do not add quotes.
4734    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4735    ;;
4736  esac >> confcache
4737if cmp -s $cache_file confcache; then
4738  :
4739else
4740  if test -w $cache_file; then
4741    echo "updating cache $cache_file"
4742    cat confcache > $cache_file
4743  else
4744    echo "not updating unwritable cache $cache_file"
4745  fi
4746fi
4747rm -f confcache
4748
4749trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4750
4751test "x$prefix" = xNONE && prefix=$ac_default_prefix
4752# Let make expand exec_prefix.
4753test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4754
4755# Any assignment to VPATH causes Sun make to only execute
4756# the first set of double-colon rules, so remove it if not needed.
4757# If there is a colon in the path, we need to keep it.
4758if test "x$srcdir" = x.; then
4759  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
4760fi
4761
4762trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4763
4764DEFS=-DHAVE_CONFIG_H
4765
4766# Without the "./", some shells look in PATH for config.status.
4767: ${CONFIG_STATUS=./config.status}
4768
4769echo creating $CONFIG_STATUS
4770rm -f $CONFIG_STATUS
4771cat > $CONFIG_STATUS <<EOF
4772#! /bin/sh
4773# Generated automatically by configure.
4774# Run this file to recreate the current configuration.
4775# This directory was configured as follows,
4776# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4777#
4778# $0 $ac_configure_args
4779#
4780# Compiler output produced by configure, useful for debugging
4781# configure, is in ./config.log if it exists.
4782
4783ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4784for ac_option
4785do
4786  case "\$ac_option" in
4787  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4788    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4789    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4790  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4791    echo "$CONFIG_STATUS generated by autoconf version 2.12"
4792    exit 0 ;;
4793  -help | --help | --hel | --he | --h)
4794    echo "\$ac_cs_usage"; exit 0 ;;
4795  *) echo "\$ac_cs_usage"; exit 1 ;;
4796  esac
4797done
4798
4799ac_given_srcdir=$srcdir
4800ac_given_INSTALL="$INSTALL"
4801
4802trap 'rm -fr `echo "Makefile intl/Makefile lib/Makefile testsuite/Makefile \
4803man/Makefile po/Makefile.in src/Makefile debian/rules Specfile systype \
4804src/lrzszbug config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4805EOF
4806cat >> $CONFIG_STATUS <<EOF
4807
4808# Protect against being on the right side of a sed subst in config.status.
4809sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4810 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4811$ac_vpsub
4812$extrasub
4813s%@CFLAGS@%$CFLAGS%g
4814s%@CPPFLAGS@%$CPPFLAGS%g
4815s%@CXXFLAGS@%$CXXFLAGS%g
4816s%@DEFS@%$DEFS%g
4817s%@LDFLAGS@%$LDFLAGS%g
4818s%@LIBS@%$LIBS%g
4819s%@exec_prefix@%$exec_prefix%g
4820s%@prefix@%$prefix%g
4821s%@program_transform_name@%$program_transform_name%g
4822s%@bindir@%$bindir%g
4823s%@sbindir@%$sbindir%g
4824s%@libexecdir@%$libexecdir%g
4825s%@datadir@%$datadir%g
4826s%@sysconfdir@%$sysconfdir%g
4827s%@sharedstatedir@%$sharedstatedir%g
4828s%@localstatedir@%$localstatedir%g
4829s%@libdir@%$libdir%g
4830s%@includedir@%$includedir%g
4831s%@oldincludedir@%$oldincludedir%g
4832s%@infodir@%$infodir%g
4833s%@mandir@%$mandir%g
4834s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4835s%@INSTALL_DATA@%$INSTALL_DATA%g
4836s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4837s%@PACKAGE@%$PACKAGE%g
4838s%@VERSION@%$VERSION%g
4839s%@ACLOCAL@%$ACLOCAL%g
4840s%@AUTOCONF@%$AUTOCONF%g
4841s%@AUTOMAKE@%$AUTOMAKE%g
4842s%@AUTOHEADER@%$AUTOHEADER%g
4843s%@MAKEINFO@%$MAKEINFO%g
4844s%@SET_MAKE@%$SET_MAKE%g
4845s%@PACKAGE_VERSION@%$PACKAGE_VERSION%g
4846s%@ENABLE_TIMESYNC@%$ENABLE_TIMESYNC%g
4847s%@CC@%$CC%g
4848s%@CPP@%$CPP%g
4849s%@RANLIB@%$RANLIB%g
4850s%@U@%$U%g
4851s%@ANSI2KNR@%$ANSI2KNR%g
4852s%@ALLOCA@%$ALLOCA%g
4853s%@LIBOBJS@%$LIBOBJS%g
4854s%@USE_NLS@%$USE_NLS%g
4855s%@MSGFMT@%$MSGFMT%g
4856s%@GMSGFMT@%$GMSGFMT%g
4857s%@XGETTEXT@%$XGETTEXT%g
4858s%@GENCAT@%$GENCAT%g
4859s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4860s%@CATALOGS@%$CATALOGS%g
4861s%@CATOBJEXT@%$CATOBJEXT%g
4862s%@DATADIRNAME@%$DATADIRNAME%g
4863s%@GMOFILES@%$GMOFILES%g
4864s%@INSTOBJEXT@%$INSTOBJEXT%g
4865s%@INTLDEPS@%$INTLDEPS%g
4866s%@INTLLIBS@%$INTLLIBS%g
4867s%@INTLOBJS@%$INTLOBJS%g
4868s%@POFILES@%$POFILES%g
4869s%@POSUB@%$POSUB%g
4870s%@INCLUDE_LOCALE_H@%$INCLUDE_LOCALE_H%g
4871s%@GT_NO@%$GT_NO%g
4872s%@GT_YES@%$GT_YES%g
4873s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4874s%@l@%$l%g
4875
4876CEOF
4877EOF
4878
4879cat >> $CONFIG_STATUS <<\EOF
4880
4881# Split the substitutions into bite-sized pieces for seds with
4882# small command number limits, like on Digital OSF/1 and HP-UX.
4883ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4884ac_file=1 # Number of current file.
4885ac_beg=1 # First line for current file.
4886ac_end=$ac_max_sed_cmds # Line after last line for current file.
4887ac_more_lines=:
4888ac_sed_cmds=""
4889while $ac_more_lines; do
4890  if test $ac_beg -gt 1; then
4891    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4892  else
4893    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4894  fi
4895  if test ! -s conftest.s$ac_file; then
4896    ac_more_lines=false
4897    rm -f conftest.s$ac_file
4898  else
4899    if test -z "$ac_sed_cmds"; then
4900      ac_sed_cmds="sed -f conftest.s$ac_file"
4901    else
4902      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4903    fi
4904    ac_file=`expr $ac_file + 1`
4905    ac_beg=$ac_end
4906    ac_end=`expr $ac_end + $ac_max_sed_cmds`
4907  fi
4908done
4909if test -z "$ac_sed_cmds"; then
4910  ac_sed_cmds=cat
4911fi
4912EOF
4913
4914cat >> $CONFIG_STATUS <<EOF
4915
4916CONFIG_FILES=\${CONFIG_FILES-"Makefile intl/Makefile lib/Makefile testsuite/Makefile \
4917man/Makefile po/Makefile.in src/Makefile debian/rules Specfile systype \
4918src/lrzszbug"}
4919EOF
4920cat >> $CONFIG_STATUS <<\EOF
4921for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4922  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4923  case "$ac_file" in
4924  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4925       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4926  *) ac_file_in="${ac_file}.in" ;;
4927  esac
4928
4929  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4930
4931  # Remove last slash and all that follows it.  Not all systems have dirname.
4932  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4933  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4934    # The file is in a subdirectory.
4935    test ! -d "$ac_dir" && mkdir "$ac_dir"
4936    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4937    # A "../" for each directory in $ac_dir_suffix.
4938    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4939  else
4940    ac_dir_suffix= ac_dots=
4941  fi
4942
4943  case "$ac_given_srcdir" in
4944  .)  srcdir=.
4945      if test -z "$ac_dots"; then top_srcdir=.
4946      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4947  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4948  *) # Relative path.
4949    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4950    top_srcdir="$ac_dots$ac_given_srcdir" ;;
4951  esac
4952
4953  case "$ac_given_INSTALL" in
4954  [/$]*) INSTALL="$ac_given_INSTALL" ;;
4955  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4956  esac
4957
4958  echo creating "$ac_file"
4959  rm -f "$ac_file"
4960  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4961  case "$ac_file" in
4962  *Makefile*) ac_comsub="1i\\
4963# $configure_input" ;;
4964  *) ac_comsub= ;;
4965  esac
4966
4967  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4968  sed -e "$ac_comsub
4969s%@configure_input@%$configure_input%g
4970s%@srcdir@%$srcdir%g
4971s%@top_srcdir@%$top_srcdir%g
4972s%@INSTALL@%$INSTALL%g
4973" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4974fi; done
4975rm -f conftest.s*
4976
4977# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4978# NAME is the cpp macro being defined and VALUE is the value it is being given.
4979#
4980# ac_d sets the value in "#define NAME VALUE" lines.
4981ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
4982ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
4983ac_dC='\3'
4984ac_dD='%g'
4985# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4986ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4987ac_uB='\([ 	]\)%\1#\2define\3'
4988ac_uC=' '
4989ac_uD='\4%g'
4990# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4991ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
4992ac_eB='$%\1#\2define\3'
4993ac_eC=' '
4994ac_eD='%g'
4995
4996if test "${CONFIG_HEADERS+set}" != set; then
4997EOF
4998cat >> $CONFIG_STATUS <<EOF
4999  CONFIG_HEADERS="config.h"
5000EOF
5001cat >> $CONFIG_STATUS <<\EOF
5002fi
5003for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5004  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5005  case "$ac_file" in
5006  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5007       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5008  *) ac_file_in="${ac_file}.in" ;;
5009  esac
5010
5011  echo creating $ac_file
5012
5013  rm -f conftest.frag conftest.in conftest.out
5014  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5015  cat $ac_file_inputs > conftest.in
5016
5017EOF
5018
5019# Transform confdefs.h into a sed script conftest.vals that substitutes
5020# the proper values into config.h.in to produce config.h.  And first:
5021# Protect against being on the right side of a sed subst in config.status.
5022# Protect against being in an unquoted here document in config.status.
5023rm -f conftest.vals
5024cat > conftest.hdr <<\EOF
5025s/[\\&%]/\\&/g
5026s%[\\$`]%\\&%g
5027s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5028s%ac_d%ac_u%gp
5029s%ac_u%ac_e%gp
5030EOF
5031sed -n -f conftest.hdr confdefs.h > conftest.vals
5032rm -f conftest.hdr
5033
5034# This sed command replaces #undef with comments.  This is necessary, for
5035# example, in the case of _POSIX_SOURCE, which is predefined and required
5036# on some systems where configure will not decide to define it.
5037cat >> conftest.vals <<\EOF
5038s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5039EOF
5040
5041# Break up conftest.vals because some shells have a limit on
5042# the size of here documents, and old seds have small limits too.
5043
5044rm -f conftest.tail
5045while :
5046do
5047  ac_lines=`grep -c . conftest.vals`
5048  # grep -c gives empty output for an empty file on some AIX systems.
5049  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5050  # Write a limited-size here document to conftest.frag.
5051  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5052  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5053  echo 'CEOF
5054  sed -f conftest.frag conftest.in > conftest.out
5055  rm -f conftest.in
5056  mv conftest.out conftest.in
5057' >> $CONFIG_STATUS
5058  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5059  rm -f conftest.vals
5060  mv conftest.tail conftest.vals
5061done
5062rm -f conftest.vals
5063
5064cat >> $CONFIG_STATUS <<\EOF
5065  rm -f conftest.frag conftest.h
5066  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
5067  cat conftest.in >> conftest.h
5068  rm -f conftest.in
5069  if cmp -s $ac_file conftest.h 2>/dev/null; then
5070    echo "$ac_file is unchanged"
5071    rm -f conftest.h
5072  else
5073    # Remove last slash and all that follows it.  Not all systems have dirname.
5074      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5075      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5076      # The file is in a subdirectory.
5077      test ! -d "$ac_dir" && mkdir "$ac_dir"
5078    fi
5079    rm -f $ac_file
5080    mv conftest.h $ac_file
5081  fi
5082fi; done
5083
5084EOF
5085
5086cat >> $CONFIG_STATUS <<EOF
5087ac_sources="$nls_cv_header_libgt"
5088ac_dests="$nls_cv_header_intl"
5089EOF
5090
5091cat >> $CONFIG_STATUS <<\EOF
5092srcdir=$ac_given_srcdir
5093while test -n "$ac_sources"; do
5094  set $ac_dests; ac_dest=$1; shift; ac_dests=$*
5095  set $ac_sources; ac_source=$1; shift; ac_sources=$*
5096
5097  echo "linking $srcdir/$ac_source to $ac_dest"
5098
5099  if test ! -r $srcdir/$ac_source; then
5100    { echo "configure: error: $srcdir/$ac_source: File not found" 1>&2; exit 1; }
5101  fi
5102  rm -f $ac_dest
5103
5104  # Make relative symlinks.
5105  # Remove last slash and all that follows it.  Not all systems have dirname.
5106  ac_dest_dir=`echo $ac_dest|sed 's%/[^/][^/]*$%%'`
5107  if test "$ac_dest_dir" != "$ac_dest" && test "$ac_dest_dir" != .; then
5108    # The dest file is in a subdirectory.
5109    test ! -d "$ac_dest_dir" && mkdir "$ac_dest_dir"
5110    ac_dest_dir_suffix="/`echo $ac_dest_dir|sed 's%^\./%%'`"
5111    # A "../" for each directory in $ac_dest_dir_suffix.
5112    ac_dots=`echo $ac_dest_dir_suffix|sed 's%/[^/]*%../%g'`
5113  else
5114    ac_dest_dir_suffix= ac_dots=
5115  fi
5116
5117  case "$srcdir" in
5118  [/$]*) ac_rel_source="$srcdir/$ac_source" ;;
5119  *) ac_rel_source="$ac_dots$srcdir/$ac_source" ;;
5120  esac
5121
5122  # Make a symlink if possible; otherwise try a hard link.
5123  if ln -s $ac_rel_source $ac_dest 2>/dev/null ||
5124    ln $srcdir/$ac_source $ac_dest; then :
5125  else
5126    { echo "configure: error: can not link $ac_dest to $srcdir/$ac_source" 1>&2; exit 1; }
5127  fi
5128done
5129EOF
5130cat >> $CONFIG_STATUS <<EOF
5131
5132
5133EOF
5134cat >> $CONFIG_STATUS <<\EOF
5135test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5136sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile;
5137chmod +x debian/rules;
5138test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5139exit 0
5140EOF
5141chmod +x $CONFIG_STATUS
5142rm -fr confdefs* $ac_clean_files
5143test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5144
5145