1#! /bin/sh
2
3# Guess values for system-dependent variables and create Makefiles.
4# Generated automatically using autoconf version 2.13 
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_default_prefix=/usr
15
16# Initialize some variables set by options.
17# The variables have the same names as the options, with
18# dashes changed to underlines.
19build=NONE
20cache_file=./config.cache
21exec_prefix=NONE
22host=NONE
23no_create=
24nonopt=NONE
25no_recursion=
26prefix=NONE
27program_prefix=NONE
28program_suffix=NONE
29program_transform_name=s,x,x,
30silent=
31site=
32srcdir=
33target=NONE
34verbose=
35x_includes=NONE
36x_libraries=NONE
37bindir='${exec_prefix}/bin'
38sbindir='${exec_prefix}/sbin'
39libexecdir='${exec_prefix}/libexec'
40datadir='${prefix}/share'
41sysconfdir='${prefix}/etc'
42sharedstatedir='${prefix}/com'
43localstatedir='${prefix}/var'
44libdir='${exec_prefix}/lib'
45includedir='${prefix}/include'
46oldincludedir='/usr/include'
47infodir='${prefix}/info'
48mandir='${prefix}/man'
49
50# Initialize some other variables.
51subdirs=
52MFLAGS= MAKEFLAGS=
53SHELL=${CONFIG_SHELL-/bin/sh}
54# Maximum number of lines to put in a shell here document.
55ac_max_here_lines=12
56
57ac_prev=
58for ac_option
59do
60
61  # If the previous option needs an argument, assign it.
62  if test -n "$ac_prev"; then
63    eval "$ac_prev=\$ac_option"
64    ac_prev=
65    continue
66  fi
67
68  case "$ac_option" in
69  -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
70  *) ac_optarg= ;;
71  esac
72
73  # Accept the important Cygnus configure options, so we can diagnose typos.
74
75  case "$ac_option" in
76
77  -bindir | --bindir | --bindi | --bind | --bin | --bi)
78    ac_prev=bindir ;;
79  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
80    bindir="$ac_optarg" ;;
81
82  -build | --build | --buil | --bui | --bu)
83    ac_prev=build ;;
84  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
85    build="$ac_optarg" ;;
86
87  -cache-file | --cache-file | --cache-fil | --cache-fi \
88  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
89    ac_prev=cache_file ;;
90  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
91  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
92    cache_file="$ac_optarg" ;;
93
94  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
95    ac_prev=datadir ;;
96  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
97  | --da=*)
98    datadir="$ac_optarg" ;;
99
100  -disable-* | --disable-*)
101    ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
102    # Reject names that are not valid shell variable names.
103    if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
104      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
105    fi
106    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
107    eval "enable_${ac_feature}=no" ;;
108
109  -enable-* | --enable-*)
110    ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
111    # Reject names that are not valid shell variable names.
112    if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
113      { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
114    fi
115    ac_feature=`echo $ac_feature| sed 's/-/_/g'`
116    case "$ac_option" in
117      *=*) ;;
118      *) ac_optarg=yes ;;
119    esac
120    eval "enable_${ac_feature}='$ac_optarg'" ;;
121
122  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
123  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
124  | --exec | --exe | --ex)
125    ac_prev=exec_prefix ;;
126  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
127  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
128  | --exec=* | --exe=* | --ex=*)
129    exec_prefix="$ac_optarg" ;;
130
131  -gas | --gas | --ga | --g)
132    # Obsolete; use --with-gas.
133    with_gas=yes ;;
134
135  -help | --help | --hel | --he)
136    # Omit some internal or obsolete options to make the list less imposing.
137    # This message is too long to be a string in the A/UX 3.1 sh.
138    cat << EOF
139Usage: configure [options] [host]
140Options: [defaults in brackets after descriptions]
141Configuration:
142  --cache-file=FILE       cache test results in FILE
143  --help                  print this message
144  --no-create             do not create output files
145  --quiet, --silent       do not print \`checking...' messages
146  --version               print the version of autoconf that created configure
147Directory and file names:
148  --prefix=PREFIX         install architecture-independent files in PREFIX
149                          [$ac_default_prefix]
150  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
151                          [same as prefix]
152  --bindir=DIR            user executables in DIR [EPREFIX/bin]
153  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
154  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
155  --datadir=DIR           read-only architecture-independent data in DIR
156                          [PREFIX/share]
157  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
158  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
159                          [PREFIX/com]
160  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
161  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
162  --includedir=DIR        C header files in DIR [PREFIX/include]
163  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
164  --infodir=DIR           info documentation in DIR [PREFIX/info]
165  --mandir=DIR            man documentation in DIR [PREFIX/man]
166  --srcdir=DIR            find the sources in DIR [configure dir or ..]
167  --program-prefix=PREFIX prepend PREFIX to installed program names
168  --program-suffix=SUFFIX append SUFFIX to installed program names
169  --program-transform-name=PROGRAM
170                          run sed PROGRAM on installed program names
171EOF
172    cat << EOF
173Host type:
174  --build=BUILD           configure for building on BUILD [BUILD=HOST]
175  --host=HOST             configure for HOST [guessed]
176  --target=TARGET         configure for TARGET [TARGET=HOST]
177Features and packages:
178  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
179  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
180  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
181  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
182  --x-includes=DIR        X include files are in DIR
183  --x-libraries=DIR       X library files are in DIR
184EOF
185    if test -n "$ac_help"; then
186      echo "--enable and --with options recognized:$ac_help"
187    fi
188    exit 0 ;;
189
190  -host | --host | --hos | --ho)
191    ac_prev=host ;;
192  -host=* | --host=* | --hos=* | --ho=*)
193    host="$ac_optarg" ;;
194
195  -includedir | --includedir | --includedi | --included | --include \
196  | --includ | --inclu | --incl | --inc)
197    ac_prev=includedir ;;
198  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
199  | --includ=* | --inclu=* | --incl=* | --inc=*)
200    includedir="$ac_optarg" ;;
201
202  -infodir | --infodir | --infodi | --infod | --info | --inf)
203    ac_prev=infodir ;;
204  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
205    infodir="$ac_optarg" ;;
206
207  -libdir | --libdir | --libdi | --libd)
208    ac_prev=libdir ;;
209  -libdir=* | --libdir=* | --libdi=* | --libd=*)
210    libdir="$ac_optarg" ;;
211
212  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
213  | --libexe | --libex | --libe)
214    ac_prev=libexecdir ;;
215  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
216  | --libexe=* | --libex=* | --libe=*)
217    libexecdir="$ac_optarg" ;;
218
219  -localstatedir | --localstatedir | --localstatedi | --localstated \
220  | --localstate | --localstat | --localsta | --localst \
221  | --locals | --local | --loca | --loc | --lo)
222    ac_prev=localstatedir ;;
223  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
224  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
225  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
226    localstatedir="$ac_optarg" ;;
227
228  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
229    ac_prev=mandir ;;
230  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
231    mandir="$ac_optarg" ;;
232
233  -nfp | --nfp | --nf)
234    # Obsolete; use --without-fp.
235    with_fp=no ;;
236
237  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
238  | --no-cr | --no-c)
239    no_create=yes ;;
240
241  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
242  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
243    no_recursion=yes ;;
244
245  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
246  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
247  | --oldin | --oldi | --old | --ol | --o)
248    ac_prev=oldincludedir ;;
249  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
250  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
251  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
252    oldincludedir="$ac_optarg" ;;
253
254  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
255    ac_prev=prefix ;;
256  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
257    prefix="$ac_optarg" ;;
258
259  -program-prefix | --program-prefix | --program-prefi | --program-pref \
260  | --program-pre | --program-pr | --program-p)
261    ac_prev=program_prefix ;;
262  -program-prefix=* | --program-prefix=* | --program-prefi=* \
263  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
264    program_prefix="$ac_optarg" ;;
265
266  -program-suffix | --program-suffix | --program-suffi | --program-suff \
267  | --program-suf | --program-su | --program-s)
268    ac_prev=program_suffix ;;
269  -program-suffix=* | --program-suffix=* | --program-suffi=* \
270  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
271    program_suffix="$ac_optarg" ;;
272
273  -program-transform-name | --program-transform-name \
274  | --program-transform-nam | --program-transform-na \
275  | --program-transform-n | --program-transform- \
276  | --program-transform | --program-transfor \
277  | --program-transfo | --program-transf \
278  | --program-trans | --program-tran \
279  | --progr-tra | --program-tr | --program-t)
280    ac_prev=program_transform_name ;;
281  -program-transform-name=* | --program-transform-name=* \
282  | --program-transform-nam=* | --program-transform-na=* \
283  | --program-transform-n=* | --program-transform-=* \
284  | --program-transform=* | --program-transfor=* \
285  | --program-transfo=* | --program-transf=* \
286  | --program-trans=* | --program-tran=* \
287  | --progr-tra=* | --program-tr=* | --program-t=*)
288    program_transform_name="$ac_optarg" ;;
289
290  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
291  | -silent | --silent | --silen | --sile | --sil)
292    silent=yes ;;
293
294  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
295    ac_prev=sbindir ;;
296  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
297  | --sbi=* | --sb=*)
298    sbindir="$ac_optarg" ;;
299
300  -sharedstatedir | --sharedstatedir | --sharedstatedi \
301  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
302  | --sharedst | --shareds | --shared | --share | --shar \
303  | --sha | --sh)
304    ac_prev=sharedstatedir ;;
305  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
306  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
307  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
308  | --sha=* | --sh=*)
309    sharedstatedir="$ac_optarg" ;;
310
311  -site | --site | --sit)
312    ac_prev=site ;;
313  -site=* | --site=* | --sit=*)
314    site="$ac_optarg" ;;
315
316  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
317    ac_prev=srcdir ;;
318  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
319    srcdir="$ac_optarg" ;;
320
321  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
322  | --syscon | --sysco | --sysc | --sys | --sy)
323    ac_prev=sysconfdir ;;
324  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
325  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
326    sysconfdir="$ac_optarg" ;;
327
328  -target | --target | --targe | --targ | --tar | --ta | --t)
329    ac_prev=target ;;
330  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
331    target="$ac_optarg" ;;
332
333  -v | -verbose | --verbose | --verbos | --verbo | --verb)
334    verbose=yes ;;
335
336  -version | --version | --versio | --versi | --vers)
337    echo "configure generated by autoconf version 2.13"
338    exit 0 ;;
339
340  -with-* | --with-*)
341    ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
342    # Reject names that are not valid shell variable names.
343    if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
344      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
345    fi
346    ac_package=`echo $ac_package| sed 's/-/_/g'`
347    case "$ac_option" in
348      *=*) ;;
349      *) ac_optarg=yes ;;
350    esac
351    eval "with_${ac_package}='$ac_optarg'" ;;
352
353  -without-* | --without-*)
354    ac_package=`echo $ac_option|sed -e 's/-*without-//'`
355    # Reject names that are not valid shell variable names.
356    if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
357      { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
358    fi
359    ac_package=`echo $ac_package| sed 's/-/_/g'`
360    eval "with_${ac_package}=no" ;;
361
362  --x)
363    # Obsolete; use --with-x.
364    with_x=yes ;;
365
366  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
367  | --x-incl | --x-inc | --x-in | --x-i)
368    ac_prev=x_includes ;;
369  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
370  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
371    x_includes="$ac_optarg" ;;
372
373  -x-libraries | --x-libraries | --x-librarie | --x-librari \
374  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
375    ac_prev=x_libraries ;;
376  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
377  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
378    x_libraries="$ac_optarg" ;;
379
380  -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
381    ;;
382
383  *)
384    if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
385      echo "configure: warning: $ac_option: invalid host type" 1>&2
386    fi
387    if test "x$nonopt" != xNONE; then
388      { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
389    fi
390    nonopt="$ac_option"
391    ;;
392
393  esac
394done
395
396if test -n "$ac_prev"; then
397  { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
398fi
399
400trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
401
402# File descriptor usage:
403# 0 standard input
404# 1 file creation
405# 2 errors and warnings
406# 3 some systems may open it to /dev/tty
407# 4 used on the Kubota Titan
408# 6 checking for... messages and results
409# 5 compiler messages saved in config.log
410if test "$silent" = yes; then
411  exec 6>/dev/null
412else
413  exec 6>&1
414fi
415exec 5>./config.log
416
417echo "\
418This file contains any messages produced by compilers while
419running configure, to aid debugging if configure makes a mistake.
420" 1>&5
421
422# Strip out --no-create and --no-recursion so they do not pile up.
423# Also quote any args containing shell metacharacters.
424ac_configure_args=
425for ac_arg
426do
427  case "$ac_arg" in
428  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
429  | --no-cr | --no-c) ;;
430  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
431  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
432  *" "*|*"	"*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
433  ac_configure_args="$ac_configure_args '$ac_arg'" ;;
434  *) ac_configure_args="$ac_configure_args $ac_arg" ;;
435  esac
436done
437
438# NLS nuisances.
439# Only set these to C if already set.  These must not be set unconditionally
440# because not all systems understand e.g. LANG=C (notably SCO).
441# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
442# Non-C LC_CTYPE values break the ctype check.
443if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
444if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
445if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
446if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
447
448# confdefs.h avoids OS command line length limits that DEFS can exceed.
449rm -rf conftest* confdefs.h
450# AIX cpp loses on an empty file, so make sure it contains at least a newline.
451echo > confdefs.h
452
453# A filename unique to this package, relative to the directory that
454# configure is in, which we can look for to find out if srcdir is correct.
455ac_unique_file=pppoe.c
456
457# Find the source files, if location was not specified.
458if test -z "$srcdir"; then
459  ac_srcdir_defaulted=yes
460  # Try the directory containing this script, then its parent.
461  ac_prog=$0
462  ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
463  test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
464  srcdir=$ac_confdir
465  if test ! -r $srcdir/$ac_unique_file; then
466    srcdir=..
467  fi
468else
469  ac_srcdir_defaulted=no
470fi
471if test ! -r $srcdir/$ac_unique_file; then
472  if test "$ac_srcdir_defaulted" = yes; then
473    { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
474  else
475    { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
476  fi
477fi
478srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
479
480# Prefer explicitly selected file to automatically selected ones.
481if test -z "$CONFIG_SITE"; then
482  if test "x$prefix" != xNONE; then
483    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
484  else
485    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
486  fi
487fi
488for ac_site_file in $CONFIG_SITE; do
489  if test -r "$ac_site_file"; then
490    echo "loading site script $ac_site_file"
491    . "$ac_site_file"
492  fi
493done
494
495if test -r "$cache_file"; then
496  echo "loading cache $cache_file"
497  . $cache_file
498else
499  echo "creating cache $cache_file"
500  > $cache_file
501fi
502
503ac_ext=c
504# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
505ac_cpp='$CPP $CPPFLAGS'
506ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
507ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508cross_compiling=$ac_cv_prog_cc_cross
509
510ac_exeext=
511ac_objext=o
512if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
513  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
514  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
515    ac_n= ac_c='
516' ac_t='	'
517  else
518    ac_n=-n ac_c= ac_t=
519  fi
520else
521  ac_n= ac_c='\c' ac_t=
522fi
523
524
525
526
527
528
529
530# Extract the first word of "gcc", so it can be a program name with args.
531set dummy gcc; ac_word=$2
532echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
533echo "configure:534: checking for $ac_word" >&5
534if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
535  echo $ac_n "(cached) $ac_c" 1>&6
536else
537  if test -n "$CC"; then
538  ac_cv_prog_CC="$CC" # Let the user override the test.
539else
540  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
541  ac_dummy="$PATH"
542  for ac_dir in $ac_dummy; do
543    test -z "$ac_dir" && ac_dir=.
544    if test -f $ac_dir/$ac_word; then
545      ac_cv_prog_CC="gcc"
546      break
547    fi
548  done
549  IFS="$ac_save_ifs"
550fi
551fi
552CC="$ac_cv_prog_CC"
553if test -n "$CC"; then
554  echo "$ac_t""$CC" 1>&6
555else
556  echo "$ac_t""no" 1>&6
557fi
558
559if test -z "$CC"; then
560  # Extract the first word of "cc", so it can be a program name with args.
561set dummy cc; ac_word=$2
562echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
563echo "configure:564: checking for $ac_word" >&5
564if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
565  echo $ac_n "(cached) $ac_c" 1>&6
566else
567  if test -n "$CC"; then
568  ac_cv_prog_CC="$CC" # Let the user override the test.
569else
570  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
571  ac_prog_rejected=no
572  ac_dummy="$PATH"
573  for ac_dir in $ac_dummy; do
574    test -z "$ac_dir" && ac_dir=.
575    if test -f $ac_dir/$ac_word; then
576      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
577        ac_prog_rejected=yes
578	continue
579      fi
580      ac_cv_prog_CC="cc"
581      break
582    fi
583  done
584  IFS="$ac_save_ifs"
585if test $ac_prog_rejected = yes; then
586  # We found a bogon in the path, so make sure we never use it.
587  set dummy $ac_cv_prog_CC
588  shift
589  if test $# -gt 0; then
590    # We chose a different compiler from the bogus one.
591    # However, it has the same basename, so the bogon will be chosen
592    # first if we set CC to just the basename; use the full file name.
593    shift
594    set dummy "$ac_dir/$ac_word" "$@"
595    shift
596    ac_cv_prog_CC="$@"
597  fi
598fi
599fi
600fi
601CC="$ac_cv_prog_CC"
602if test -n "$CC"; then
603  echo "$ac_t""$CC" 1>&6
604else
605  echo "$ac_t""no" 1>&6
606fi
607
608  if test -z "$CC"; then
609    case "`uname -s`" in
610    *win32* | *WIN32*)
611      # Extract the first word of "cl", so it can be a program name with args.
612set dummy cl; ac_word=$2
613echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
614echo "configure:615: checking for $ac_word" >&5
615if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
616  echo $ac_n "(cached) $ac_c" 1>&6
617else
618  if test -n "$CC"; then
619  ac_cv_prog_CC="$CC" # Let the user override the test.
620else
621  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
622  ac_dummy="$PATH"
623  for ac_dir in $ac_dummy; do
624    test -z "$ac_dir" && ac_dir=.
625    if test -f $ac_dir/$ac_word; then
626      ac_cv_prog_CC="cl"
627      break
628    fi
629  done
630  IFS="$ac_save_ifs"
631fi
632fi
633CC="$ac_cv_prog_CC"
634if test -n "$CC"; then
635  echo "$ac_t""$CC" 1>&6
636else
637  echo "$ac_t""no" 1>&6
638fi
639 ;;
640    esac
641  fi
642  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
643fi
644
645echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
646echo "configure:647: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
647
648ac_ext=c
649# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
650ac_cpp='$CPP $CPPFLAGS'
651ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
652ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
653cross_compiling=$ac_cv_prog_cc_cross
654
655cat > conftest.$ac_ext << EOF
656
657#line 658 "configure"
658#include "confdefs.h"
659
660main(){return(0);}
661EOF
662if { (eval echo configure:663: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
663  ac_cv_prog_cc_works=yes
664  # If we can't run a trivial program, we are probably using a cross compiler.
665  if (./conftest; exit) 2>/dev/null; then
666    ac_cv_prog_cc_cross=no
667  else
668    ac_cv_prog_cc_cross=yes
669  fi
670else
671  echo "configure: failed program was:" >&5
672  cat conftest.$ac_ext >&5
673  ac_cv_prog_cc_works=no
674fi
675rm -fr conftest*
676ac_ext=c
677# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
678ac_cpp='$CPP $CPPFLAGS'
679ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
680ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
681cross_compiling=$ac_cv_prog_cc_cross
682
683echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
684if test $ac_cv_prog_cc_works = no; then
685  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
686fi
687echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
688echo "configure:689: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
689echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
690cross_compiling=$ac_cv_prog_cc_cross
691
692echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
693echo "configure:694: checking whether we are using GNU C" >&5
694if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
695  echo $ac_n "(cached) $ac_c" 1>&6
696else
697  cat > conftest.c <<EOF
698#ifdef __GNUC__
699  yes;
700#endif
701EOF
702if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:703: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
703  ac_cv_prog_gcc=yes
704else
705  ac_cv_prog_gcc=no
706fi
707fi
708
709echo "$ac_t""$ac_cv_prog_gcc" 1>&6
710
711if test $ac_cv_prog_gcc = yes; then
712  GCC=yes
713else
714  GCC=
715fi
716
717ac_test_CFLAGS="${CFLAGS+set}"
718ac_save_CFLAGS="$CFLAGS"
719CFLAGS=
720echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
721echo "configure:722: checking whether ${CC-cc} accepts -g" >&5
722if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
723  echo $ac_n "(cached) $ac_c" 1>&6
724else
725  echo 'void f(){}' > conftest.c
726if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
727  ac_cv_prog_cc_g=yes
728else
729  ac_cv_prog_cc_g=no
730fi
731rm -f conftest*
732
733fi
734
735echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
736if test "$ac_test_CFLAGS" = set; then
737  CFLAGS="$ac_save_CFLAGS"
738elif test $ac_cv_prog_cc_g = yes; then
739  if test "$GCC" = yes; then
740    CFLAGS="-g -O2"
741  else
742    CFLAGS="-g"
743  fi
744else
745  if test "$GCC" = yes; then
746    CFLAGS="-O2"
747  else
748    CFLAGS=
749  fi
750fi
751
752
753
754echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
755echo "configure:756: checking how to run the C preprocessor" >&5
756# On Suns, sometimes $CPP names a directory.
757if test -n "$CPP" && test -d "$CPP"; then
758  CPP=
759fi
760if test -z "$CPP"; then
761if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
762  echo $ac_n "(cached) $ac_c" 1>&6
763else
764    # This must be in double quotes, not single quotes, because CPP may get
765  # substituted into the Makefile and "${CC-cc}" will confuse make.
766  CPP="${CC-cc} -E"
767  # On the NeXT, cc -E runs the code through the compiler's parser,
768  # not just through cpp.
769  cat > conftest.$ac_ext <<EOF
770#line 771 "configure"
771#include "confdefs.h"
772#include <assert.h>
773Syntax Error
774EOF
775ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
776{ (eval echo configure:777: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
777ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
778if test -z "$ac_err"; then
779  :
780else
781  echo "$ac_err" >&5
782  echo "configure: failed program was:" >&5
783  cat conftest.$ac_ext >&5
784  rm -rf conftest*
785  CPP="${CC-cc} -E -traditional-cpp"
786  cat > conftest.$ac_ext <<EOF
787#line 788 "configure"
788#include "confdefs.h"
789#include <assert.h>
790Syntax Error
791EOF
792ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
793{ (eval echo configure:794: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
794ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
795if test -z "$ac_err"; then
796  :
797else
798  echo "$ac_err" >&5
799  echo "configure: failed program was:" >&5
800  cat conftest.$ac_ext >&5
801  rm -rf conftest*
802  CPP="${CC-cc} -nologo -E"
803  cat > conftest.$ac_ext <<EOF
804#line 805 "configure"
805#include "confdefs.h"
806#include <assert.h>
807Syntax Error
808EOF
809ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
810{ (eval echo configure:811: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
811ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
812if test -z "$ac_err"; then
813  :
814else
815  echo "$ac_err" >&5
816  echo "configure: failed program was:" >&5
817  cat conftest.$ac_ext >&5
818  rm -rf conftest*
819  CPP=/lib/cpp
820fi
821rm -f conftest*
822fi
823rm -f conftest*
824fi
825rm -f conftest*
826  ac_cv_prog_CPP="$CPP"
827fi
828  CPP="$ac_cv_prog_CPP"
829else
830  ac_cv_prog_CPP="$CPP"
831fi
832echo "$ac_t""$CPP" 1>&6
833
834echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
835echo "configure:836: checking for ANSI C header files" >&5
836if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
837  echo $ac_n "(cached) $ac_c" 1>&6
838else
839  cat > conftest.$ac_ext <<EOF
840#line 841 "configure"
841#include "confdefs.h"
842#include <stdlib.h>
843#include <stdarg.h>
844#include <string.h>
845#include <float.h>
846EOF
847ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
848{ (eval echo configure:849: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
849ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
850if test -z "$ac_err"; then
851  rm -rf conftest*
852  ac_cv_header_stdc=yes
853else
854  echo "$ac_err" >&5
855  echo "configure: failed program was:" >&5
856  cat conftest.$ac_ext >&5
857  rm -rf conftest*
858  ac_cv_header_stdc=no
859fi
860rm -f conftest*
861
862if test $ac_cv_header_stdc = yes; then
863  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
864cat > conftest.$ac_ext <<EOF
865#line 866 "configure"
866#include "confdefs.h"
867#include <string.h>
868EOF
869if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
870  egrep "memchr" >/dev/null 2>&1; then
871  :
872else
873  rm -rf conftest*
874  ac_cv_header_stdc=no
875fi
876rm -f conftest*
877
878fi
879
880if test $ac_cv_header_stdc = yes; then
881  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
882cat > conftest.$ac_ext <<EOF
883#line 884 "configure"
884#include "confdefs.h"
885#include <stdlib.h>
886EOF
887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
888  egrep "free" >/dev/null 2>&1; then
889  :
890else
891  rm -rf conftest*
892  ac_cv_header_stdc=no
893fi
894rm -f conftest*
895
896fi
897
898if test $ac_cv_header_stdc = yes; then
899  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
900if test "$cross_compiling" = yes; then
901  :
902else
903  cat > conftest.$ac_ext <<EOF
904#line 905 "configure"
905#include "confdefs.h"
906#include <ctype.h>
907#define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
908#define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
909#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
910int main () { int i; for (i = 0; i < 256; i++)
911if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
912exit (0); }
913
914EOF
915if { (eval echo configure:916: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
916then
917  :
918else
919  echo "configure: failed program was:" >&5
920  cat conftest.$ac_ext >&5
921  rm -fr conftest*
922  ac_cv_header_stdc=no
923fi
924rm -fr conftest*
925fi
926
927fi
928fi
929
930echo "$ac_t""$ac_cv_header_stdc" 1>&6
931if test $ac_cv_header_stdc = yes; then
932  cat >> confdefs.h <<\EOF
933#define STDC_HEADERS 1
934EOF
935
936fi
937
938echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
939echo "configure:940: checking for sys/wait.h that is POSIX.1 compatible" >&5
940if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
941  echo $ac_n "(cached) $ac_c" 1>&6
942else
943  cat > conftest.$ac_ext <<EOF
944#line 945 "configure"
945#include "confdefs.h"
946#include <sys/types.h>
947#include <sys/wait.h>
948#ifndef WEXITSTATUS
949#define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
950#endif
951#ifndef WIFEXITED
952#define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
953#endif
954int main() {
955int s;
956wait (&s);
957s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
958; return 0; }
959EOF
960if { (eval echo configure:961: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
961  rm -rf conftest*
962  ac_cv_header_sys_wait_h=yes
963else
964  echo "configure: failed program was:" >&5
965  cat conftest.$ac_ext >&5
966  rm -rf conftest*
967  ac_cv_header_sys_wait_h=no
968fi
969rm -f conftest*
970fi
971
972echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
973if test $ac_cv_header_sys_wait_h = yes; then
974  cat >> confdefs.h <<\EOF
975#define HAVE_SYS_WAIT_H 1
976EOF
977
978fi
979
980for ac_hdr in fcntl.h sys/ioctl.h sys/time.h syslog.h unistd.h netinet/if_ether.h getopt.h sys/uio.h sys/param.h fcntl.h net/bpf.h netpacket/packet.h net/ethernet.h asm/types.h linux/if_packet.h linux/if_ether.h sys/socket.h sys/cdefs.h net/if.h net/if_dl.h net/if_ether.h net/if_types.h netinet/if_ether.h net/if_types.h net/if_dl.h sys/dlpi.h 
981do
982ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
983echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
984echo "configure:985: checking for $ac_hdr" >&5
985if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
986  echo $ac_n "(cached) $ac_c" 1>&6
987else
988  cat > conftest.$ac_ext <<EOF
989#line 990 "configure"
990#include "confdefs.h"
991#include <$ac_hdr>
992EOF
993ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
994{ (eval echo configure:995: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
995ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
996if test -z "$ac_err"; then
997  rm -rf conftest*
998  eval "ac_cv_header_$ac_safe=yes"
999else
1000  echo "$ac_err" >&5
1001  echo "configure: failed program was:" >&5
1002  cat conftest.$ac_ext >&5
1003  rm -rf conftest*
1004  eval "ac_cv_header_$ac_safe=no"
1005fi
1006rm -f conftest*
1007fi
1008if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1009  echo "$ac_t""yes" 1>&6
1010    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1011  cat >> confdefs.h <<EOF
1012#define $ac_tr_hdr 1
1013EOF
1014 
1015else
1016  echo "$ac_t""no" 1>&6
1017fi
1018done
1019
1020
1021echo $ac_n "checking for working const""... $ac_c" 1>&6
1022echo "configure:1023: checking for working const" >&5
1023if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
1024  echo $ac_n "(cached) $ac_c" 1>&6
1025else
1026  cat > conftest.$ac_ext <<EOF
1027#line 1028 "configure"
1028#include "confdefs.h"
1029
1030int main() {
1031
1032/* Ultrix mips cc rejects this.  */
1033typedef int charset[2]; const charset x;
1034/* SunOS 4.1.1 cc rejects this.  */
1035char const *const *ccp;
1036char **p;
1037/* NEC SVR4.0.2 mips cc rejects this.  */
1038struct point {int x, y;};
1039static struct point const zero = {0,0};
1040/* AIX XL C 1.02.0.0 rejects this.
1041   It does not let you subtract one const X* pointer from another in an arm
1042   of an if-expression whose if-part is not a constant expression */
1043const char *g = "string";
1044ccp = &g + (g ? g-g : 0);
1045/* HPUX 7.0 cc rejects these. */
1046++ccp;
1047p = (char**) ccp;
1048ccp = (char const *const *) p;
1049{ /* SCO 3.2v4 cc rejects this.  */
1050  char *t;
1051  char const *s = 0 ? (char *) 0 : (char const *) 0;
1052
1053  *t++ = 0;
1054}
1055{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
1056  int x[] = {25, 17};
1057  const int *foo = &x[0];
1058  ++foo;
1059}
1060{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
1061  typedef const int *iptr;
1062  iptr p = 0;
1063  ++p;
1064}
1065{ /* AIX XL C 1.02.0.0 rejects this saying
1066     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
1067  struct s { int j; const int *ap[3]; };
1068  struct s *b; b->j = 5;
1069}
1070{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
1071  const int foo = 10;
1072}
1073
1074; return 0; }
1075EOF
1076if { (eval echo configure:1077: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1077  rm -rf conftest*
1078  ac_cv_c_const=yes
1079else
1080  echo "configure: failed program was:" >&5
1081  cat conftest.$ac_ext >&5
1082  rm -rf conftest*
1083  ac_cv_c_const=no
1084fi
1085rm -f conftest*
1086fi
1087
1088echo "$ac_t""$ac_cv_c_const" 1>&6
1089if test $ac_cv_c_const = no; then
1090  cat >> confdefs.h <<\EOF
1091#define const 
1092EOF
1093
1094fi
1095
1096echo $ac_n "checking for pid_t""... $ac_c" 1>&6
1097echo "configure:1098: checking for pid_t" >&5
1098if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
1099  echo $ac_n "(cached) $ac_c" 1>&6
1100else
1101  cat > conftest.$ac_ext <<EOF
1102#line 1103 "configure"
1103#include "confdefs.h"
1104#include <sys/types.h>
1105#if STDC_HEADERS
1106#include <stdlib.h>
1107#include <stddef.h>
1108#endif
1109EOF
1110if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1111  egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
1112  rm -rf conftest*
1113  ac_cv_type_pid_t=yes
1114else
1115  rm -rf conftest*
1116  ac_cv_type_pid_t=no
1117fi
1118rm -f conftest*
1119
1120fi
1121echo "$ac_t""$ac_cv_type_pid_t" 1>&6
1122if test $ac_cv_type_pid_t = no; then
1123  cat >> confdefs.h <<\EOF
1124#define pid_t int
1125EOF
1126
1127fi
1128
1129echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
1130echo "configure:1131: checking whether time.h and sys/time.h may both be included" >&5
1131if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
1132  echo $ac_n "(cached) $ac_c" 1>&6
1133else
1134  cat > conftest.$ac_ext <<EOF
1135#line 1136 "configure"
1136#include "confdefs.h"
1137#include <sys/types.h>
1138#include <sys/time.h>
1139#include <time.h>
1140int main() {
1141struct tm *tp;
1142; return 0; }
1143EOF
1144if { (eval echo configure:1145: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1145  rm -rf conftest*
1146  ac_cv_header_time=yes
1147else
1148  echo "configure: failed program was:" >&5
1149  cat conftest.$ac_ext >&5
1150  rm -rf conftest*
1151  ac_cv_header_time=no
1152fi
1153rm -f conftest*
1154fi
1155
1156echo "$ac_t""$ac_cv_header_time" 1>&6
1157if test $ac_cv_header_time = yes; then
1158  cat >> confdefs.h <<\EOF
1159#define TIME_WITH_SYS_TIME 1
1160EOF
1161
1162fi
1163
1164echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6
1165echo "configure:1166: checking whether struct tm is in sys/time.h or time.h" >&5
1166if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then
1167  echo $ac_n "(cached) $ac_c" 1>&6
1168else
1169  cat > conftest.$ac_ext <<EOF
1170#line 1171 "configure"
1171#include "confdefs.h"
1172#include <sys/types.h>
1173#include <time.h>
1174int main() {
1175struct tm *tp; tp->tm_sec;
1176; return 0; }
1177EOF
1178if { (eval echo configure:1179: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1179  rm -rf conftest*
1180  ac_cv_struct_tm=time.h
1181else
1182  echo "configure: failed program was:" >&5
1183  cat conftest.$ac_ext >&5
1184  rm -rf conftest*
1185  ac_cv_struct_tm=sys/time.h
1186fi
1187rm -f conftest*
1188fi
1189
1190echo "$ac_t""$ac_cv_struct_tm" 1>&6
1191if test $ac_cv_struct_tm = sys/time.h; then
1192  cat >> confdefs.h <<\EOF
1193#define TM_IN_SYS_TIME 1
1194EOF
1195
1196fi
1197
1198
1199echo -n "checking for struct sockaddr_ll... "
1200cat > conftest.$ac_ext <<EOF
1201#line 1202 "configure"
1202#include "confdefs.h"
1203#include <asm/types.h>
1204#include <linux/if_packet.h>
1205#include <linux/if_ether.h>
1206
1207int main() {
1208struct sockaddr_ll sa;
1209; return 0; }
1210EOF
1211if { (eval echo configure:1212: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1212  rm -rf conftest*
1213  ac_cv_struct_sockaddr_ll=yes
1214else
1215  echo "configure: failed program was:" >&5
1216  cat conftest.$ac_ext >&5
1217  rm -rf conftest*
1218  ac_cv_struct_sockaddr_ll=no
1219fi
1220rm -f conftest*
1221echo $ac_cv_struct_sockaddr_ll
1222if test "$ac_cv_struct_sockaddr_ll" = yes ; then
1223cat >> confdefs.h <<\EOF
1224#define HAVE_STRUCT_SOCKADDR_LL 1
1225EOF
1226
1227fi
1228
1229echo -n "checking for N_HDLC line discipline... "
1230cat > conftest.$ac_ext <<EOF
1231#line 1232 "configure"
1232#include "confdefs.h"
1233#include <linux/termios.h>
1234int main() {
1235int x = N_HDLC;
1236; return 0; }
1237EOF
1238if { (eval echo configure:1239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1239  rm -rf conftest*
1240  ac_cv_n_hdlc=yes
1241else
1242  echo "configure: failed program was:" >&5
1243  cat conftest.$ac_ext >&5
1244  rm -rf conftest*
1245  ac_cv_n_hdlc=no
1246fi
1247rm -f conftest*
1248echo $ac_cv_n_hdlc
1249if test "$ac_cv_n_hdlc" = yes ; then
1250cat >> confdefs.h <<\EOF
1251#define HAVE_N_HDLC 1
1252EOF
1253
1254fi
1255
1256echo $ac_n "checking for 8-bit clean memcmp""... $ac_c" 1>&6
1257echo "configure:1258: checking for 8-bit clean memcmp" >&5
1258if eval "test \"`echo '$''{'ac_cv_func_memcmp_clean'+set}'`\" = set"; then
1259  echo $ac_n "(cached) $ac_c" 1>&6
1260else
1261  if test "$cross_compiling" = yes; then
1262  ac_cv_func_memcmp_clean=no
1263else
1264  cat > conftest.$ac_ext <<EOF
1265#line 1266 "configure"
1266#include "confdefs.h"
1267
1268main()
1269{
1270  char c0 = 0x40, c1 = 0x80, c2 = 0x81;
1271  exit(memcmp(&c0, &c2, 1) < 0 && memcmp(&c1, &c2, 1) < 0 ? 0 : 1);
1272}
1273
1274EOF
1275if { (eval echo configure:1276: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1276then
1277  ac_cv_func_memcmp_clean=yes
1278else
1279  echo "configure: failed program was:" >&5
1280  cat conftest.$ac_ext >&5
1281  rm -fr conftest*
1282  ac_cv_func_memcmp_clean=no
1283fi
1284rm -fr conftest*
1285fi
1286
1287fi
1288
1289echo "$ac_t""$ac_cv_func_memcmp_clean" 1>&6
1290test $ac_cv_func_memcmp_clean = no && LIBOBJS="$LIBOBJS memcmp.${ac_objext}"
1291
1292echo $ac_n "checking whether setvbuf arguments are reversed""... $ac_c" 1>&6
1293echo "configure:1294: checking whether setvbuf arguments are reversed" >&5
1294if eval "test \"`echo '$''{'ac_cv_func_setvbuf_reversed'+set}'`\" = set"; then
1295  echo $ac_n "(cached) $ac_c" 1>&6
1296else
1297  if test "$cross_compiling" = yes; then
1298    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1299else
1300  cat > conftest.$ac_ext <<EOF
1301#line 1302 "configure"
1302#include "confdefs.h"
1303#include <stdio.h>
1304/* If setvbuf has the reversed format, exit 0. */
1305main () {
1306  /* This call has the arguments reversed.
1307     A reversed system may check and see that the address of main
1308     is not _IOLBF, _IONBF, or _IOFBF, and return nonzero.  */
1309  if (setvbuf(stdout, _IOLBF, (char *) main, BUFSIZ) != 0)
1310    exit(1);
1311  putc('\r', stdout);
1312  exit(0);			/* Non-reversed systems segv here.  */
1313}
1314EOF
1315if { (eval echo configure:1316: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1316then
1317  ac_cv_func_setvbuf_reversed=yes
1318else
1319  echo "configure: failed program was:" >&5
1320  cat conftest.$ac_ext >&5
1321  rm -fr conftest*
1322  ac_cv_func_setvbuf_reversed=no
1323fi
1324rm -fr conftest*
1325fi
1326
1327rm -f core core.* *.core
1328fi
1329
1330echo "$ac_t""$ac_cv_func_setvbuf_reversed" 1>&6
1331if test $ac_cv_func_setvbuf_reversed = yes; then
1332  cat >> confdefs.h <<\EOF
1333#define SETVBUF_REVERSED 1
1334EOF
1335
1336fi
1337
1338echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1339echo "configure:1340: checking return type of signal handlers" >&5
1340if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1341  echo $ac_n "(cached) $ac_c" 1>&6
1342else
1343  cat > conftest.$ac_ext <<EOF
1344#line 1345 "configure"
1345#include "confdefs.h"
1346#include <sys/types.h>
1347#include <signal.h>
1348#ifdef signal
1349#undef signal
1350#endif
1351#ifdef __cplusplus
1352extern "C" void (*signal (int, void (*)(int)))(int);
1353#else
1354void (*signal ()) ();
1355#endif
1356
1357int main() {
1358int i;
1359; return 0; }
1360EOF
1361if { (eval echo configure:1362: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1362  rm -rf conftest*
1363  ac_cv_type_signal=void
1364else
1365  echo "configure: failed program was:" >&5
1366  cat conftest.$ac_ext >&5
1367  rm -rf conftest*
1368  ac_cv_type_signal=int
1369fi
1370rm -f conftest*
1371fi
1372
1373echo "$ac_t""$ac_cv_type_signal" 1>&6
1374cat >> confdefs.h <<EOF
1375#define RETSIGTYPE $ac_cv_type_signal
1376EOF
1377
1378
1379for ac_func in select socket strerror strtol
1380do
1381echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1382echo "configure:1383: checking for $ac_func" >&5
1383if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1384  echo $ac_n "(cached) $ac_c" 1>&6
1385else
1386  cat > conftest.$ac_ext <<EOF
1387#line 1388 "configure"
1388#include "confdefs.h"
1389/* System header to define __stub macros and hopefully few prototypes,
1390    which can conflict with char $ac_func(); below.  */
1391#include <assert.h>
1392/* Override any gcc2 internal prototype to avoid an error.  */
1393/* We use char because int might match the return type of a gcc2
1394    builtin and then its argument prototype would still apply.  */
1395char $ac_func();
1396
1397int main() {
1398
1399/* The GNU C library defines this for functions which it implements
1400    to always fail with ENOSYS.  Some functions are actually named
1401    something starting with __ and the normal name is an alias.  */
1402#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1403choke me
1404#else
1405$ac_func();
1406#endif
1407
1408; return 0; }
1409EOF
1410if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1411  rm -rf conftest*
1412  eval "ac_cv_func_$ac_func=yes"
1413else
1414  echo "configure: failed program was:" >&5
1415  cat conftest.$ac_ext >&5
1416  rm -rf conftest*
1417  eval "ac_cv_func_$ac_func=no"
1418fi
1419rm -f conftest*
1420fi
1421
1422if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1423  echo "$ac_t""yes" 1>&6
1424    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1425  cat >> confdefs.h <<EOF
1426#define $ac_tr_func 1
1427EOF
1428 
1429else
1430  echo "$ac_t""no" 1>&6
1431fi
1432done
1433
1434ac_aux_dir=
1435for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1436  if test -f $ac_dir/install-sh; then
1437    ac_aux_dir=$ac_dir
1438    ac_install_sh="$ac_aux_dir/install-sh -c"
1439    break
1440  elif test -f $ac_dir/install.sh; then
1441    ac_aux_dir=$ac_dir
1442    ac_install_sh="$ac_aux_dir/install.sh -c"
1443    break
1444  fi
1445done
1446if test -z "$ac_aux_dir"; then
1447  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1448fi
1449ac_config_guess=$ac_aux_dir/config.guess
1450ac_config_sub=$ac_aux_dir/config.sub
1451ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1452
1453# Find a good install program.  We prefer a C program (faster),
1454# so one script is as good as another.  But avoid the broken or
1455# incompatible versions:
1456# SysV /etc/install, /usr/sbin/install
1457# SunOS /usr/etc/install
1458# IRIX /sbin/install
1459# AIX /bin/install
1460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1461# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1463# ./install, which can be erroneously created by make from ./install.sh.
1464echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1465echo "configure:1466: checking for a BSD compatible install" >&5
1466if test -z "$INSTALL"; then
1467if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1468  echo $ac_n "(cached) $ac_c" 1>&6
1469else
1470    IFS="${IFS= 	}"; ac_save_IFS="$IFS"; IFS=":"
1471  for ac_dir in $PATH; do
1472    # Account for people who put trailing slashes in PATH elements.
1473    case "$ac_dir/" in
1474    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1475    *)
1476      # OSF1 and SCO ODT 3.0 have their own names for install.
1477      # Don't use installbsd from OSF since it installs stuff as root
1478      # by default.
1479      for ac_prog in ginstall scoinst install; do
1480        if test -f $ac_dir/$ac_prog; then
1481	  if test $ac_prog = install &&
1482            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1483	    # AIX install.  It has an incompatible calling convention.
1484	    :
1485	  else
1486	    ac_cv_path_install="$ac_dir/$ac_prog -c"
1487	    break 2
1488	  fi
1489	fi
1490      done
1491      ;;
1492    esac
1493  done
1494  IFS="$ac_save_IFS"
1495
1496fi
1497  if test "${ac_cv_path_install+set}" = set; then
1498    INSTALL="$ac_cv_path_install"
1499  else
1500    # As a last resort, use the slow shell script.  We don't cache a
1501    # path for INSTALL within a source directory, because that will
1502    # break other packages using the cache if that directory is
1503    # removed, or if the path is relative.
1504    INSTALL="$ac_install_sh"
1505  fi
1506fi
1507echo "$ac_t""$INSTALL" 1>&6
1508
1509# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1510# It thinks the first close brace ends the variable substitution.
1511test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1512
1513test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1514
1515test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1516
1517
1518echo $ac_n "checking size of unsigned short""... $ac_c" 1>&6
1519echo "configure:1520: checking size of unsigned short" >&5
1520if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_short'+set}'`\" = set"; then
1521  echo $ac_n "(cached) $ac_c" 1>&6
1522else
1523  if test "$cross_compiling" = yes; then
1524    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1525else
1526  cat > conftest.$ac_ext <<EOF
1527#line 1528 "configure"
1528#include "confdefs.h"
1529#include <stdio.h>
1530main()
1531{
1532  FILE *f=fopen("conftestval", "w");
1533  if (!f) exit(1);
1534  fprintf(f, "%d\n", sizeof(unsigned short));
1535  exit(0);
1536}
1537EOF
1538if { (eval echo configure:1539: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1539then
1540  ac_cv_sizeof_unsigned_short=`cat conftestval`
1541else
1542  echo "configure: failed program was:" >&5
1543  cat conftest.$ac_ext >&5
1544  rm -fr conftest*
1545  ac_cv_sizeof_unsigned_short=0
1546fi
1547rm -fr conftest*
1548fi
1549
1550fi
1551echo "$ac_t""$ac_cv_sizeof_unsigned_short" 1>&6
1552cat >> confdefs.h <<EOF
1553#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
1554EOF
1555
1556
1557echo $ac_n "checking size of unsigned int""... $ac_c" 1>&6
1558echo "configure:1559: checking size of unsigned int" >&5
1559if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_int'+set}'`\" = set"; then
1560  echo $ac_n "(cached) $ac_c" 1>&6
1561else
1562  if test "$cross_compiling" = yes; then
1563    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1564else
1565  cat > conftest.$ac_ext <<EOF
1566#line 1567 "configure"
1567#include "confdefs.h"
1568#include <stdio.h>
1569main()
1570{
1571  FILE *f=fopen("conftestval", "w");
1572  if (!f) exit(1);
1573  fprintf(f, "%d\n", sizeof(unsigned int));
1574  exit(0);
1575}
1576EOF
1577if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1578then
1579  ac_cv_sizeof_unsigned_int=`cat conftestval`
1580else
1581  echo "configure: failed program was:" >&5
1582  cat conftest.$ac_ext >&5
1583  rm -fr conftest*
1584  ac_cv_sizeof_unsigned_int=0
1585fi
1586rm -fr conftest*
1587fi
1588
1589fi
1590echo "$ac_t""$ac_cv_sizeof_unsigned_int" 1>&6
1591cat >> confdefs.h <<EOF
1592#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
1593EOF
1594
1595
1596echo $ac_n "checking size of unsigned long""... $ac_c" 1>&6
1597echo "configure:1598: checking size of unsigned long" >&5
1598if eval "test \"`echo '$''{'ac_cv_sizeof_unsigned_long'+set}'`\" = set"; then
1599  echo $ac_n "(cached) $ac_c" 1>&6
1600else
1601  if test "$cross_compiling" = yes; then
1602    { echo "configure: error: can not run test program while cross compiling" 1>&2; exit 1; }
1603else
1604  cat > conftest.$ac_ext <<EOF
1605#line 1606 "configure"
1606#include "confdefs.h"
1607#include <stdio.h>
1608main()
1609{
1610  FILE *f=fopen("conftestval", "w");
1611  if (!f) exit(1);
1612  fprintf(f, "%d\n", sizeof(unsigned long));
1613  exit(0);
1614}
1615EOF
1616if { (eval echo configure:1617: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1617then
1618  ac_cv_sizeof_unsigned_long=`cat conftestval`
1619else
1620  echo "configure: failed program was:" >&5
1621  cat conftest.$ac_ext >&5
1622  rm -fr conftest*
1623  ac_cv_sizeof_unsigned_long=0
1624fi
1625rm -fr conftest*
1626fi
1627
1628fi
1629echo "$ac_t""$ac_cv_sizeof_unsigned_long" 1>&6
1630cat >> confdefs.h <<EOF
1631#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
1632EOF
1633
1634
1635
1636# Extract the first word of "pppd", so it can be a program name with args.
1637set dummy pppd; ac_word=$2
1638echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1639echo "configure:1640: checking for $ac_word" >&5
1640if eval "test \"`echo '$''{'ac_cv_path_PPPD'+set}'`\" = set"; then
1641  echo $ac_n "(cached) $ac_c" 1>&6
1642else
1643  case "$PPPD" in
1644  /*)
1645  ac_cv_path_PPPD="$PPPD" # Let the user override the test with a path.
1646  ;;
1647  ?:/*)			 
1648  ac_cv_path_PPPD="$PPPD" # Let the user override the test with a dos path.
1649  ;;
1650  *)
1651  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1652  ac_dummy="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
1653  for ac_dir in $ac_dummy; do 
1654    test -z "$ac_dir" && ac_dir=.
1655    if test -f $ac_dir/$ac_word; then
1656      ac_cv_path_PPPD="$ac_dir/$ac_word"
1657      break
1658    fi
1659  done
1660  IFS="$ac_save_ifs"
1661  test -z "$ac_cv_path_PPPD" && ac_cv_path_PPPD="NOTFOUND"
1662  ;;
1663esac
1664fi
1665PPPD="$ac_cv_path_PPPD"
1666if test -n "$PPPD"; then
1667  echo "$ac_t""$PPPD" 1>&6
1668else
1669  echo "$ac_t""no" 1>&6
1670fi
1671
1672
1673# Extract the first word of "setsid", so it can be a program name with args.
1674set dummy setsid; ac_word=$2
1675echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1676echo "configure:1677: checking for $ac_word" >&5
1677if eval "test \"`echo '$''{'ac_cv_path_SETSID'+set}'`\" = set"; then
1678  echo $ac_n "(cached) $ac_c" 1>&6
1679else
1680  case "$SETSID" in
1681  /*)
1682  ac_cv_path_SETSID="$SETSID" # Let the user override the test with a path.
1683  ;;
1684  ?:/*)			 
1685  ac_cv_path_SETSID="$SETSID" # Let the user override the test with a dos path.
1686  ;;
1687  *)
1688  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS=":"
1689  ac_dummy="$PATH:/sbin:/usr/sbin:/usr/local/sbin"
1690  for ac_dir in $ac_dummy; do 
1691    test -z "$ac_dir" && ac_dir=.
1692    if test -f $ac_dir/$ac_word; then
1693      ac_cv_path_SETSID="$ac_dir/$ac_word"
1694      break
1695    fi
1696  done
1697  IFS="$ac_save_ifs"
1698  test -z "$ac_cv_path_SETSID" && ac_cv_path_SETSID=""""
1699  ;;
1700esac
1701fi
1702SETSID="$ac_cv_path_SETSID"
1703if test -n "$SETSID"; then
1704  echo "$ac_t""$SETSID" 1>&6
1705else
1706  echo "$ac_t""no" 1>&6
1707fi
1708
1709
1710if test "$GCC" = yes; then
1711	CFLAGS="$CFLAGS -Wall -Wstrict-prototypes -ansi -pedantic"
1712fi
1713
1714if test "$PPPD" = "NOTFOUND"; then
1715	echo ""
1716	echo "*** Oops!  I couldn't find pppd, the PPP daemon anywhere."
1717	echo "*** You must install pppd, version 2.3.10 or later."
1718	echo ""
1719	exit 1
1720fi
1721
1722
1723PPPD_VERSION=`$PPPD --version 2>&1 | awk '{print $NF}'`
1724
1725case "$PPPD_VERSION" in
17261.*|2.0.*|2.1.*|2.2.*|2.3.0|2.3.1|2.3.2|2.3.3|2.3.4|2.3.5|2.3.6)
1727	echo ""
1728	echo "*** Oops! Your version of pppd is $PPPD_VERSION, which is too old."
1729	echo "*** You need at least 2.3.7 (2.3.10 or newer recommended.)"
1730	echo ""
1731	exit 1
1732	;;
1733
17342.3.7|2.3.8|2.3.9)
1735	echo ""
1736	echo "*** Warning.  Your version of pppd is $PPPD_VERSION.  You will"
1737	echo "*** not be able to use connect-on-demand.  Upgrade to pppd"
1738	echo "*** 2.3.10 or newer if you need connect-on-demand."
1739	echo ""
1740	;;
1741
17422*|3*|4*|5*|6*|7*|8*|9*)
1743	;;
1744
1745*)
1746	echo ""
1747	echo "*** Oops.  I cannot figure out what version of pppd you have."
1748	echo "*** All I got back was '$PPPD_VERSION'"
1749	echo ""
1750	exit 1
1751	;;
1752esac
1753
1754trap '' 1 2 15
1755cat > confcache <<\EOF
1756# This file is a shell script that caches the results of configure
1757# tests run on this system so they can be shared between configure
1758# scripts and configure runs.  It is not useful on other systems.
1759# If it contains results you don't want to keep, you may remove or edit it.
1760#
1761# By default, configure uses ./config.cache as the cache file,
1762# creating it if it does not exist already.  You can give configure
1763# the --cache-file=FILE option to use a different cache file; that is
1764# what configure does when it calls configure scripts in
1765# subdirectories, so they share the cache.
1766# Giving --cache-file=/dev/null disables caching, for debugging configure.
1767# config.status only pays attention to the cache file if you give it the
1768# --recheck option to rerun configure.
1769#
1770EOF
1771# The following way of writing the cache mishandles newlines in values,
1772# but we know of no workaround that is simple, portable, and efficient.
1773# So, don't put newlines in cache variables' values.
1774# Ultrix sh set writes to stderr and can't be redirected directly,
1775# and sets the high bit in the cache file unless we assign to the vars.
1776(set) 2>&1 |
1777  case `(ac_space=' '; set | grep ac_space) 2>&1` in
1778  *ac_space=\ *)
1779    # `set' does not quote correctly, so add quotes (double-quote substitution
1780    # turns \\\\ into \\, and sed turns \\ into \).
1781    sed -n \
1782      -e "s/'/'\\\\''/g" \
1783      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1784    ;;
1785  *)
1786    # `set' quotes correctly as required by POSIX, so do not add quotes.
1787    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1788    ;;
1789  esac >> confcache
1790if cmp -s $cache_file confcache; then
1791  :
1792else
1793  if test -w $cache_file; then
1794    echo "updating cache $cache_file"
1795    cat confcache > $cache_file
1796  else
1797    echo "not updating unwritable cache $cache_file"
1798  fi
1799fi
1800rm -f confcache
1801
1802trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1803
1804test "x$prefix" = xNONE && prefix=$ac_default_prefix
1805# Let make expand exec_prefix.
1806test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1807
1808# Any assignment to VPATH causes Sun make to only execute
1809# the first set of double-colon rules, so remove it if not needed.
1810# If there is a colon in the path, we need to keep it.
1811if test "x$srcdir" = x.; then
1812  ac_vpsub='/^[ 	]*VPATH[ 	]*=[^:]*$/d'
1813fi
1814
1815trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1816
1817DEFS=-DHAVE_CONFIG_H
1818
1819# Without the "./", some shells look in PATH for config.status.
1820: ${CONFIG_STATUS=./config.status}
1821
1822echo creating $CONFIG_STATUS
1823rm -f $CONFIG_STATUS
1824cat > $CONFIG_STATUS <<EOF
1825#! /bin/sh
1826# Generated automatically by configure.
1827# Run this file to recreate the current configuration.
1828# This directory was configured as follows,
1829# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1830#
1831# $0 $ac_configure_args
1832#
1833# Compiler output produced by configure, useful for debugging
1834# configure, is in ./config.log if it exists.
1835
1836ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1837for ac_option
1838do
1839  case "\$ac_option" in
1840  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1841    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1842    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1843  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1844    echo "$CONFIG_STATUS generated by autoconf version 2.13"
1845    exit 0 ;;
1846  -help | --help | --hel | --he | --h)
1847    echo "\$ac_cs_usage"; exit 0 ;;
1848  *) echo "\$ac_cs_usage"; exit 1 ;;
1849  esac
1850done
1851
1852ac_given_srcdir=$srcdir
1853ac_given_INSTALL="$INSTALL"
1854
1855trap 'rm -fr `echo "Makefile adsl-connect adsl-start adsl-stop adsl-init adsl-init-suse adsl-setup config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1856EOF
1857cat >> $CONFIG_STATUS <<EOF
1858
1859# Protect against being on the right side of a sed subst in config.status.
1860sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1861 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1862$ac_vpsub
1863$extrasub
1864s%@SHELL@%$SHELL%g
1865s%@CFLAGS@%$CFLAGS%g
1866s%@CPPFLAGS@%$CPPFLAGS%g
1867s%@CXXFLAGS@%$CXXFLAGS%g
1868s%@FFLAGS@%$FFLAGS%g
1869s%@DEFS@%$DEFS%g
1870s%@LDFLAGS@%$LDFLAGS%g
1871s%@LIBS@%$LIBS%g
1872s%@exec_prefix@%$exec_prefix%g
1873s%@prefix@%$prefix%g
1874s%@program_transform_name@%$program_transform_name%g
1875s%@bindir@%$bindir%g
1876s%@sbindir@%$sbindir%g
1877s%@libexecdir@%$libexecdir%g
1878s%@datadir@%$datadir%g
1879s%@sysconfdir@%$sysconfdir%g
1880s%@sharedstatedir@%$sharedstatedir%g
1881s%@localstatedir@%$localstatedir%g
1882s%@libdir@%$libdir%g
1883s%@includedir@%$includedir%g
1884s%@oldincludedir@%$oldincludedir%g
1885s%@infodir@%$infodir%g
1886s%@mandir@%$mandir%g
1887s%@CC@%$CC%g
1888s%@CPP@%$CPP%g
1889s%@LIBOBJS@%$LIBOBJS%g
1890s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1891s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1892s%@INSTALL_DATA@%$INSTALL_DATA%g
1893s%@PPPD@%$PPPD%g
1894s%@SETSID@%$SETSID%g
1895
1896CEOF
1897EOF
1898
1899cat >> $CONFIG_STATUS <<\EOF
1900
1901# Split the substitutions into bite-sized pieces for seds with
1902# small command number limits, like on Digital OSF/1 and HP-UX.
1903ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1904ac_file=1 # Number of current file.
1905ac_beg=1 # First line for current file.
1906ac_end=$ac_max_sed_cmds # Line after last line for current file.
1907ac_more_lines=:
1908ac_sed_cmds=""
1909while $ac_more_lines; do
1910  if test $ac_beg -gt 1; then
1911    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1912  else
1913    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1914  fi
1915  if test ! -s conftest.s$ac_file; then
1916    ac_more_lines=false
1917    rm -f conftest.s$ac_file
1918  else
1919    if test -z "$ac_sed_cmds"; then
1920      ac_sed_cmds="sed -f conftest.s$ac_file"
1921    else
1922      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1923    fi
1924    ac_file=`expr $ac_file + 1`
1925    ac_beg=$ac_end
1926    ac_end=`expr $ac_end + $ac_max_sed_cmds`
1927  fi
1928done
1929if test -z "$ac_sed_cmds"; then
1930  ac_sed_cmds=cat
1931fi
1932EOF
1933
1934cat >> $CONFIG_STATUS <<EOF
1935
1936CONFIG_FILES=\${CONFIG_FILES-"Makefile adsl-connect adsl-start adsl-stop adsl-init adsl-init-suse adsl-setup"}
1937EOF
1938cat >> $CONFIG_STATUS <<\EOF
1939for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1940  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1941  case "$ac_file" in
1942  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1943       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1944  *) ac_file_in="${ac_file}.in" ;;
1945  esac
1946
1947  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1948
1949  # Remove last slash and all that follows it.  Not all systems have dirname.
1950  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1951  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1952    # The file is in a subdirectory.
1953    test ! -d "$ac_dir" && mkdir "$ac_dir"
1954    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1955    # A "../" for each directory in $ac_dir_suffix.
1956    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1957  else
1958    ac_dir_suffix= ac_dots=
1959  fi
1960
1961  case "$ac_given_srcdir" in
1962  .)  srcdir=.
1963      if test -z "$ac_dots"; then top_srcdir=.
1964      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1965  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1966  *) # Relative path.
1967    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1968    top_srcdir="$ac_dots$ac_given_srcdir" ;;
1969  esac
1970
1971  case "$ac_given_INSTALL" in
1972  [/$]*) INSTALL="$ac_given_INSTALL" ;;
1973  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1974  esac
1975
1976  echo creating "$ac_file"
1977  rm -f "$ac_file"
1978  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1979  case "$ac_file" in
1980  *Makefile*) ac_comsub="1i\\
1981# $configure_input" ;;
1982  *) ac_comsub= ;;
1983  esac
1984
1985  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1986  sed -e "$ac_comsub
1987s%@configure_input@%$configure_input%g
1988s%@srcdir@%$srcdir%g
1989s%@top_srcdir@%$top_srcdir%g
1990s%@INSTALL@%$INSTALL%g
1991" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1992fi; done
1993rm -f conftest.s*
1994
1995# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1996# NAME is the cpp macro being defined and VALUE is the value it is being given.
1997#
1998# ac_d sets the value in "#define NAME VALUE" lines.
1999ac_dA='s%^\([ 	]*\)#\([ 	]*define[ 	][ 	]*\)'
2000ac_dB='\([ 	][ 	]*\)[^ 	]*%\1#\2'
2001ac_dC='\3'
2002ac_dD='%g'
2003# ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2004ac_uA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2005ac_uB='\([ 	]\)%\1#\2define\3'
2006ac_uC=' '
2007ac_uD='\4%g'
2008# ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2009ac_eA='s%^\([ 	]*\)#\([ 	]*\)undef\([ 	][ 	]*\)'
2010ac_eB='$%\1#\2define\3'
2011ac_eC=' '
2012ac_eD='%g'
2013
2014if test "${CONFIG_HEADERS+set}" != set; then
2015EOF
2016cat >> $CONFIG_STATUS <<EOF
2017  CONFIG_HEADERS="config.h"
2018EOF
2019cat >> $CONFIG_STATUS <<\EOF
2020fi
2021for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2022  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2023  case "$ac_file" in
2024  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2025       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2026  *) ac_file_in="${ac_file}.in" ;;
2027  esac
2028
2029  echo creating $ac_file
2030
2031  rm -f conftest.frag conftest.in conftest.out
2032  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2033  cat $ac_file_inputs > conftest.in
2034
2035EOF
2036
2037# Transform confdefs.h into a sed script conftest.vals that substitutes
2038# the proper values into config.h.in to produce config.h.  And first:
2039# Protect against being on the right side of a sed subst in config.status.
2040# Protect against being in an unquoted here document in config.status.
2041rm -f conftest.vals
2042cat > conftest.hdr <<\EOF
2043s/[\\&%]/\\&/g
2044s%[\\$`]%\\&%g
2045s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
2046s%ac_d%ac_u%gp
2047s%ac_u%ac_e%gp
2048EOF
2049sed -n -f conftest.hdr confdefs.h > conftest.vals
2050rm -f conftest.hdr
2051
2052# This sed command replaces #undef with comments.  This is necessary, for
2053# example, in the case of _POSIX_SOURCE, which is predefined and required
2054# on some systems where configure will not decide to define it.
2055cat >> conftest.vals <<\EOF
2056s%^[ 	]*#[ 	]*undef[ 	][ 	]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
2057EOF
2058
2059# Break up conftest.vals because some shells have a limit on
2060# the size of here documents, and old seds have small limits too.
2061
2062rm -f conftest.tail
2063while :
2064do
2065  ac_lines=`grep -c . conftest.vals`
2066  # grep -c gives empty output for an empty file on some AIX systems.
2067  if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
2068  # Write a limited-size here document to conftest.frag.
2069  echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
2070  sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
2071  echo 'CEOF
2072  sed -f conftest.frag conftest.in > conftest.out
2073  rm -f conftest.in
2074  mv conftest.out conftest.in
2075' >> $CONFIG_STATUS
2076  sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
2077  rm -f conftest.vals
2078  mv conftest.tail conftest.vals
2079done
2080rm -f conftest.vals
2081
2082cat >> $CONFIG_STATUS <<\EOF
2083  rm -f conftest.frag conftest.h
2084  echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
2085  cat conftest.in >> conftest.h
2086  rm -f conftest.in
2087  if cmp -s $ac_file conftest.h 2>/dev/null; then
2088    echo "$ac_file is unchanged"
2089    rm -f conftest.h
2090  else
2091    # Remove last slash and all that follows it.  Not all systems have dirname.
2092      ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2093      if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2094      # The file is in a subdirectory.
2095      test ! -d "$ac_dir" && mkdir "$ac_dir"
2096    fi
2097    rm -f $ac_file
2098    mv conftest.h $ac_file
2099  fi
2100fi; done
2101
2102EOF
2103cat >> $CONFIG_STATUS <<EOF
2104
2105EOF
2106cat >> $CONFIG_STATUS <<\EOF
2107
2108exit 0
2109EOF
2110chmod +x $CONFIG_STATUS
2111rm -fr confdefs* $ac_clean_files
2112test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2113
2114
2115echo ""
2116echo "Type 'make' to compile the software."
2117