source: trunk/third/traceroute/configure @ 10405

Revision 10405, 64.4 KB checked in by ghudson, 27 years ago (diff)
This commit was generated by cvs2svn to compensate for changes in r10404, which included commits to RCS files with non-trunk default branches.
  • Property svn:executable set to *
Line 
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  --without-gcc           don't use gcc"
16
17# Initialize some variables set by options.
18# The variables have the same names as the options, with
19# dashes changed to underlines.
20build=NONE
21cache_file=./config.cache
22exec_prefix=NONE
23host=NONE
24no_create=
25nonopt=NONE
26no_recursion=
27prefix=NONE
28program_prefix=NONE
29program_suffix=NONE
30program_transform_name=s,x,x,
31silent=
32site=
33srcdir=
34target=NONE
35verbose=
36x_includes=NONE
37x_libraries=NONE
38bindir='${exec_prefix}/bin'
39sbindir='${exec_prefix}/sbin'
40libexecdir='${exec_prefix}/libexec'
41datadir='${prefix}/share'
42sysconfdir='${prefix}/etc'
43sharedstatedir='${prefix}/com'
44localstatedir='${prefix}/var'
45libdir='${exec_prefix}/lib'
46includedir='${prefix}/include'
47oldincludedir='/usr/include'
48infodir='${prefix}/info'
49mandir='${prefix}/man'
50
51# Initialize some other variables.
52subdirs=
53MFLAGS= MAKEFLAGS=
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.12"
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=traceroute.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 $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
508cross_compiling=$ac_cv_prog_cc_cross
509
510if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
511  # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
512  if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
513    ac_n= ac_c='
514' ac_t='        '
515  else
516    ac_n=-n ac_c= ac_t=
517  fi
518else
519  ac_n= ac_c='\c' ac_t=
520fi
521
522
523
524ac_aux_dir=
525for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
526  if test -f $ac_dir/install-sh; then
527    ac_aux_dir=$ac_dir
528    ac_install_sh="$ac_aux_dir/install-sh -c"
529    break
530  elif test -f $ac_dir/install.sh; then
531    ac_aux_dir=$ac_dir
532    ac_install_sh="$ac_aux_dir/install.sh -c"
533    break
534  fi
535done
536if test -z "$ac_aux_dir"; then
537  { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
538fi
539ac_config_guess=$ac_aux_dir/config.guess
540ac_config_sub=$ac_aux_dir/config.sub
541ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
542
543
544# Do some error checking and defaulting for the host and target type.
545# The inputs are:
546#    configure --host=HOST --target=TARGET --build=BUILD NONOPT
547#
548# The rules are:
549# 1. You are not allowed to specify --host, --target, and nonopt at the
550#    same time.
551# 2. Host defaults to nonopt.
552# 3. If nonopt is not specified, then host defaults to the current host,
553#    as determined by config.guess.
554# 4. Target and build default to nonopt.
555# 5. If nonopt is not specified, then target and build default to host.
556
557# The aliases save the names the user supplied, while $host etc.
558# will get canonicalized.
559case $host---$target---$nonopt in
560NONE---*---* | *---NONE---* | *---*---NONE) ;;
561*) { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; } ;;
562esac
563
564
565# Make sure we can run config.sub.
566if $ac_config_sub sun4 >/dev/null 2>&1; then :
567else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
568fi
569
570echo $ac_n "checking host system type""... $ac_c" 1>&6
571echo "configure:572: checking host system type" >&5
572
573host_alias=$host
574case "$host_alias" in
575NONE)
576  case $nonopt in
577  NONE)
578    if host_alias=`$ac_config_guess`; then :
579    else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
580    fi ;;
581  *) host_alias=$nonopt ;;
582  esac ;;
583esac
584
585host=`$ac_config_sub $host_alias`
586host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
587host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
588host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
589echo "$ac_t""$host" 1>&6
590
591echo $ac_n "checking target system type""... $ac_c" 1>&6
592echo "configure:593: checking target system type" >&5
593
594target_alias=$target
595case "$target_alias" in
596NONE)
597  case $nonopt in
598  NONE) target_alias=$host_alias ;;
599  *) target_alias=$nonopt ;;
600  esac ;;
601esac
602
603target=`$ac_config_sub $target_alias`
604target_cpu=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
605target_vendor=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
606target_os=`echo $target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
607echo "$ac_t""$target" 1>&6
608
609echo $ac_n "checking build system type""... $ac_c" 1>&6
610echo "configure:611: checking build system type" >&5
611
612build_alias=$build
613case "$build_alias" in
614NONE)
615  case $nonopt in
616  NONE) build_alias=$host_alias ;;
617  *) build_alias=$nonopt ;;
618  esac ;;
619esac
620
621build=`$ac_config_sub $build_alias`
622build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
623build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
624build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
625echo "$ac_t""$build" 1>&6
626
627test "$host_alias" != "$target_alias" &&
628  test "$program_prefix$program_suffix$program_transform_name" = \
629    NONENONEs,x,x, &&
630  program_prefix=${target_alias}-
631
632
633umask 002
634
635if test -z "$PWD" ; then
636        PWD=`pwd`
637fi
638
639
640   
641   
642   
643    # Check whether --with-gcc or --without-gcc was given.
644if test "${with_gcc+set}" = set; then
645  withval="$with_gcc"
646  :
647fi
648
649    V_CCOPT="-O"
650    V_INCLS=""
651    if test "${CFLAGS+set}" = set; then
652            LBL_CFLAGS="$CFLAGS"
653    fi
654    if test -z "$CC" ; then
655            case "$target_os" in
656
657            bsdi*)
658                    # Extract the first word of "shlicc2", so it can be a program name with args.
659set dummy shlicc2; ac_word=$2
660echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
661echo "configure:662: checking for $ac_word" >&5
662if eval "test \"`echo '$''{'ac_cv_prog_SHLICC2'+set}'`\" = set"; then
663  echo $ac_n "(cached) $ac_c" 1>&6
664else
665  if test -n "$SHLICC2"; then
666  ac_cv_prog_SHLICC2="$SHLICC2" # Let the user override the test.
667else
668  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
669  for ac_dir in $PATH; do
670    test -z "$ac_dir" && ac_dir=.
671    if test -f $ac_dir/$ac_word; then
672      ac_cv_prog_SHLICC2="yes"
673      break
674    fi
675  done
676  IFS="$ac_save_ifs"
677  test -z "$ac_cv_prog_SHLICC2" && ac_cv_prog_SHLICC2="no"
678fi
679fi
680SHLICC2="$ac_cv_prog_SHLICC2"
681if test -n "$SHLICC2"; then
682  echo "$ac_t""$SHLICC2" 1>&6
683else
684  echo "$ac_t""no" 1>&6
685fi
686
687                    if test $SHLICC2 = yes ; then
688                            CC=shlicc2
689                            export CC
690                    fi
691                    ;;
692            esac
693    fi
694    if test -z "$CC" -a "$with_gcc" = no ; then
695            CC=cc
696            export CC
697    fi
698    # Extract the first word of "gcc", so it can be a program name with args.
699set dummy gcc; ac_word=$2
700echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
701echo "configure:702: checking for $ac_word" >&5
702if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
703  echo $ac_n "(cached) $ac_c" 1>&6
704else
705  if test -n "$CC"; then
706  ac_cv_prog_CC="$CC" # Let the user override the test.
707else
708  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
709  for ac_dir in $PATH; do
710    test -z "$ac_dir" && ac_dir=.
711    if test -f $ac_dir/$ac_word; then
712      ac_cv_prog_CC="gcc"
713      break
714    fi
715  done
716  IFS="$ac_save_ifs"
717fi
718fi
719CC="$ac_cv_prog_CC"
720if test -n "$CC"; then
721  echo "$ac_t""$CC" 1>&6
722else
723  echo "$ac_t""no" 1>&6
724fi
725
726if test -z "$CC"; then
727  # Extract the first word of "cc", so it can be a program name with args.
728set dummy cc; ac_word=$2
729echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
730echo "configure:731: checking for $ac_word" >&5
731if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
732  echo $ac_n "(cached) $ac_c" 1>&6
733else
734  if test -n "$CC"; then
735  ac_cv_prog_CC="$CC" # Let the user override the test.
736else
737  IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
738  ac_prog_rejected=no
739  for ac_dir in $PATH; do
740    test -z "$ac_dir" && ac_dir=.
741    if test -f $ac_dir/$ac_word; then
742      if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
743        ac_prog_rejected=yes
744        continue
745      fi
746      ac_cv_prog_CC="cc"
747      break
748    fi
749  done
750  IFS="$ac_save_ifs"
751if test $ac_prog_rejected = yes; then
752  # We found a bogon in the path, so make sure we never use it.
753  set dummy $ac_cv_prog_CC
754  shift
755  if test $# -gt 0; then
756    # We chose a different compiler from the bogus one.
757    # However, it has the same basename, so the bogon will be chosen
758    # first if we set CC to just the basename; use the full file name.
759    shift
760    set dummy "$ac_dir/$ac_word" "$@"
761    shift
762    ac_cv_prog_CC="$@"
763  fi
764fi
765fi
766fi
767CC="$ac_cv_prog_CC"
768if test -n "$CC"; then
769  echo "$ac_t""$CC" 1>&6
770else
771  echo "$ac_t""no" 1>&6
772fi
773
774  test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
775fi
776
777echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
778echo "configure:779: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
779
780ac_ext=c
781# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
782ac_cpp='$CPP $CPPFLAGS'
783ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
784ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
785cross_compiling=$ac_cv_prog_cc_cross
786
787cat > conftest.$ac_ext <<EOF
788#line 789 "configure"
789#include "confdefs.h"
790main(){return(0);}
791EOF
792if { (eval echo configure:793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
793  ac_cv_prog_cc_works=yes
794  # If we can't run a trivial program, we are probably using a cross compiler.
795  if (./conftest; exit) 2>/dev/null; then
796    ac_cv_prog_cc_cross=no
797  else
798    ac_cv_prog_cc_cross=yes
799  fi
800else
801  echo "configure: failed program was:" >&5
802  cat conftest.$ac_ext >&5
803  ac_cv_prog_cc_works=no
804fi
805rm -fr conftest*
806
807echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
808if test $ac_cv_prog_cc_works = no; then
809  { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
810fi
811echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
812echo "configure:813: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
813echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
814cross_compiling=$ac_cv_prog_cc_cross
815
816echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
817echo "configure:818: checking whether we are using GNU C" >&5
818if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
819  echo $ac_n "(cached) $ac_c" 1>&6
820else
821  cat > conftest.c <<EOF
822#ifdef __GNUC__
823  yes;
824#endif
825EOF
826if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:827: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
827  ac_cv_prog_gcc=yes
828else
829  ac_cv_prog_gcc=no
830fi
831fi
832
833echo "$ac_t""$ac_cv_prog_gcc" 1>&6
834
835if test $ac_cv_prog_gcc = yes; then
836  GCC=yes
837  ac_test_CFLAGS="${CFLAGS+set}"
838  ac_save_CFLAGS="$CFLAGS"
839  CFLAGS=
840  echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
841echo "configure:842: checking whether ${CC-cc} accepts -g" >&5
842if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
843  echo $ac_n "(cached) $ac_c" 1>&6
844else
845  echo 'void f(){}' > conftest.c
846if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
847  ac_cv_prog_cc_g=yes
848else
849  ac_cv_prog_cc_g=no
850fi
851rm -f conftest*
852
853fi
854
855echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
856  if test "$ac_test_CFLAGS" = set; then
857    CFLAGS="$ac_save_CFLAGS"
858  elif test $ac_cv_prog_cc_g = yes; then
859    CFLAGS="-g -O2"
860  else
861    CFLAGS="-O2"
862  fi
863else
864  GCC=
865  test "${CFLAGS+set}" = set || CFLAGS="-g"
866fi
867
868    if test "$GCC" = yes ; then
869            if test "$SHLICC2" = yes ; then
870                    ac_cv_lbl_gcc_vers=2
871                    V_CCOPT="-O2"
872            else
873                    echo $ac_n "checking gcc version""... $ac_c" 1>&6
874echo "configure:875: checking gcc version" >&5
875                    if eval "test \"`echo '$''{'ac_cv_lbl_gcc_vers'+set}'`\" = set"; then
876  echo $ac_n "(cached) $ac_c" 1>&6
877else
878  ac_cv_lbl_gcc_vers=`$CC -v 2>&1 | \
879                            sed -n -e '$s/.* //' -e '$s/\..*//p'`
880fi
881
882                    echo "$ac_t""$ac_cv_lbl_gcc_vers" 1>&6
883                    if test $ac_cv_lbl_gcc_vers -gt 1 ; then
884                            V_CCOPT="-O2"
885                    fi
886            fi
887    else
888            echo $ac_n "checking that $CC handles ansi prototypes""... $ac_c" 1>&6
889echo "configure:890: checking that $CC handles ansi prototypes" >&5
890            if eval "test \"`echo '$''{'ac_cv_lbl_cc_ansi_prototypes'+set}'`\" = set"; then
891  echo $ac_n "(cached) $ac_c" 1>&6
892else
893  cat > conftest.$ac_ext <<EOF
894#line 895 "configure"
895#include "confdefs.h"
896#include <sys/types.h>
897int main() {
898int frob(int, char *)
899; return 0; }
900EOF
901if { (eval echo configure:902: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
902  rm -rf conftest*
903  ac_cv_lbl_cc_ansi_prototypes=yes
904else
905  echo "configure: failed program was:" >&5
906  cat conftest.$ac_ext >&5
907  rm -rf conftest*
908  ac_cv_lbl_cc_ansi_prototypes=no
909fi
910rm -f conftest*
911fi
912
913            echo "$ac_t""$ac_cv_lbl_cc_ansi_prototypes" 1>&6
914            if test $ac_cv_lbl_cc_ansi_prototypes = no ; then
915                    case "$target_os" in
916
917                    hpux*)
918                            echo $ac_n "checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)""... $ac_c" 1>&6
919echo "configure:920: checking for HP-UX ansi compiler ($CC -Aa -D_HPUX_SOURCE)" >&5
920                            savedcflags="$CFLAGS"
921                            CFLAGS="-Aa -D_HPUX_SOURCE $CFLAGS"
922                            if eval "test \"`echo '$''{'ac_cv_lbl_cc_hpux_cc_aa'+set}'`\" = set"; then
923  echo $ac_n "(cached) $ac_c" 1>&6
924else
925  cat > conftest.$ac_ext <<EOF
926#line 927 "configure"
927#include "confdefs.h"
928#include <sys/types.h>
929int main() {
930int frob(int, char *)
931; return 0; }
932EOF
933if { (eval echo configure:934: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
934  rm -rf conftest*
935  ac_cv_lbl_cc_hpux_cc_aa=yes
936else
937  echo "configure: failed program was:" >&5
938  cat conftest.$ac_ext >&5
939  rm -rf conftest*
940  ac_cv_lbl_cc_hpux_cc_aa=no
941fi
942rm -f conftest*
943fi
944
945                            echo "$ac_t""$ac_cv_lbl_cc_hpux_cc_aa" 1>&6
946                            if test $ac_cv_lbl_cc_hpux_cc_aa = no ; then
947                                    { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
948                            fi
949                            CFLAGS="$savedcflags"
950                            V_CCOPT="-Aa $V_CCOPT"
951                            cat >> confdefs.h <<\EOF
952#define _HPUX_SOURCE 1
953EOF
954
955                            ;;
956
957                    *)
958                            { echo "configure: error: see the INSTALL doc for more info" 1>&2; exit 1; }
959                            ;;
960                    esac
961            fi
962            V_INCLS="-I/usr/local/include"
963
964            case "$target_os" in
965
966            irix*)
967                    V_CCOPT="$V_CCOPT -xansi -signed -g3"
968                    ;;
969
970            osf*)
971                    V_CCOPT="$V_CCOPT -g3"
972                    ;;
973
974            ultrix*)
975                    echo $ac_n "checking that Ultrix $CC hacks const in prototypes""... $ac_c" 1>&6
976echo "configure:977: checking that Ultrix $CC hacks const in prototypes" >&5
977                    if eval "test \"`echo '$''{'ac_cv_lbl_cc_const_proto'+set}'`\" = set"; then
978  echo $ac_n "(cached) $ac_c" 1>&6
979else
980  cat > conftest.$ac_ext <<EOF
981#line 982 "configure"
982#include "confdefs.h"
983#include <sys/types.h>
984int main() {
985struct a { int b; };
986                            void c(const struct a *)
987; return 0; }
988EOF
989if { (eval echo configure:990: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
990  rm -rf conftest*
991  ac_cv_lbl_cc_const_proto=yes
992else
993  echo "configure: failed program was:" >&5
994  cat conftest.$ac_ext >&5
995  rm -rf conftest*
996  ac_cv_lbl_cc_const_proto=no
997fi
998rm -f conftest*
999fi
1000
1001                    echo "$ac_t""$ac_cv_lbl_cc_const_proto" 1>&6
1002                    if test $ac_cv_lbl_cc_const_proto = no ; then
1003                            cat >> confdefs.h <<\EOF
1004#define const
1005EOF
1006
1007                    fi
1008                    ;;
1009            esac
1010    fi
1011
1012
1013echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1014echo "configure:1015: checking how to run the C preprocessor" >&5
1015# On Suns, sometimes $CPP names a directory.
1016if test -n "$CPP" && test -d "$CPP"; then
1017  CPP=
1018fi
1019if test -z "$CPP"; then
1020if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1021  echo $ac_n "(cached) $ac_c" 1>&6
1022else
1023    # This must be in double quotes, not single quotes, because CPP may get
1024  # substituted into the Makefile and "${CC-cc}" will confuse make.
1025  CPP="${CC-cc} -E"
1026  # On the NeXT, cc -E runs the code through the compiler's parser,
1027  # not just through cpp.
1028  cat > conftest.$ac_ext <<EOF
1029#line 1030 "configure"
1030#include "confdefs.h"
1031#include <assert.h>
1032Syntax Error
1033EOF
1034ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1035{ (eval echo configure:1036: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1036ac_err=`grep -v '^ *+' conftest.out`
1037if test -z "$ac_err"; then
1038  :
1039else
1040  echo "$ac_err" >&5
1041  echo "configure: failed program was:" >&5
1042  cat conftest.$ac_ext >&5
1043  rm -rf conftest*
1044  CPP="${CC-cc} -E -traditional-cpp"
1045  cat > conftest.$ac_ext <<EOF
1046#line 1047 "configure"
1047#include "confdefs.h"
1048#include <assert.h>
1049Syntax Error
1050EOF
1051ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1052{ (eval echo configure:1053: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1053ac_err=`grep -v '^ *+' conftest.out`
1054if test -z "$ac_err"; then
1055  :
1056else
1057  echo "$ac_err" >&5
1058  echo "configure: failed program was:" >&5
1059  cat conftest.$ac_ext >&5
1060  rm -rf conftest*
1061  CPP=/lib/cpp
1062fi
1063rm -f conftest*
1064fi
1065rm -f conftest*
1066  ac_cv_prog_CPP="$CPP"
1067fi
1068  CPP="$ac_cv_prog_CPP"
1069else
1070  ac_cv_prog_CPP="$CPP"
1071fi
1072echo "$ac_t""$CPP" 1>&6
1073
1074for ac_hdr in malloc.h sys/select.h sys/sockio.h
1075do
1076ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
1077echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
1078echo "configure:1079: checking for $ac_hdr" >&5
1079if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1080  echo $ac_n "(cached) $ac_c" 1>&6
1081else
1082  cat > conftest.$ac_ext <<EOF
1083#line 1084 "configure"
1084#include "confdefs.h"
1085#include <$ac_hdr>
1086EOF
1087ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1088{ (eval echo configure:1089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1089ac_err=`grep -v '^ *+' conftest.out`
1090if test -z "$ac_err"; then
1091  rm -rf conftest*
1092  eval "ac_cv_header_$ac_safe=yes"
1093else
1094  echo "$ac_err" >&5
1095  echo "configure: failed program was:" >&5
1096  cat conftest.$ac_ext >&5
1097  rm -rf conftest*
1098  eval "ac_cv_header_$ac_safe=no"
1099fi
1100rm -f conftest*
1101fi
1102if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1103  echo "$ac_t""yes" 1>&6
1104    ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
1105  cat >> confdefs.h <<EOF
1106#define $ac_tr_hdr 1
1107EOF
1108 
1109else
1110  echo "$ac_t""no" 1>&6
1111fi
1112done
1113
1114
1115for ac_func in strerror
1116do
1117echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1118echo "configure:1119: checking for $ac_func" >&5
1119if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1120  echo $ac_n "(cached) $ac_c" 1>&6
1121else
1122  cat > conftest.$ac_ext <<EOF
1123#line 1124 "configure"
1124#include "confdefs.h"
1125/* System header to define __stub macros and hopefully few prototypes,
1126    which can conflict with char $ac_func(); below.  */
1127#include <assert.h>
1128/* Override any gcc2 internal prototype to avoid an error.  */
1129/* We use char because int might match the return type of a gcc2
1130    builtin and then its argument prototype would still apply.  */
1131char $ac_func();
1132
1133int main() {
1134
1135/* The GNU C library defines this for functions which it implements
1136    to always fail with ENOSYS.  Some functions are actually named
1137    something starting with __ and the normal name is an alias.  */
1138#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1139choke me
1140#else
1141$ac_func();
1142#endif
1143
1144; return 0; }
1145EOF
1146if { (eval echo configure:1147: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1147  rm -rf conftest*
1148  eval "ac_cv_func_$ac_func=yes"
1149else
1150  echo "configure: failed program was:" >&5
1151  cat conftest.$ac_ext >&5
1152  rm -rf conftest*
1153  eval "ac_cv_func_$ac_func=no"
1154fi
1155rm -f conftest*
1156fi
1157
1158if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1159  echo "$ac_t""yes" 1>&6
1160    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1161  cat >> confdefs.h <<EOF
1162#define $ac_tr_func 1
1163EOF
1164 
1165else
1166  echo "$ac_t""no" 1>&6
1167LIBOBJS="$LIBOBJS ${ac_func}.o"
1168fi
1169done
1170
1171
1172for ac_func in setlinebuf
1173do
1174echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1175echo "configure:1176: checking for $ac_func" >&5
1176if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1177  echo $ac_n "(cached) $ac_c" 1>&6
1178else
1179  cat > conftest.$ac_ext <<EOF
1180#line 1181 "configure"
1181#include "confdefs.h"
1182/* System header to define __stub macros and hopefully few prototypes,
1183    which can conflict with char $ac_func(); below.  */
1184#include <assert.h>
1185/* Override any gcc2 internal prototype to avoid an error.  */
1186/* We use char because int might match the return type of a gcc2
1187    builtin and then its argument prototype would still apply.  */
1188char $ac_func();
1189
1190int main() {
1191
1192/* The GNU C library defines this for functions which it implements
1193    to always fail with ENOSYS.  Some functions are actually named
1194    something starting with __ and the normal name is an alias.  */
1195#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1196choke me
1197#else
1198$ac_func();
1199#endif
1200
1201; return 0; }
1202EOF
1203if { (eval echo configure:1204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1204  rm -rf conftest*
1205  eval "ac_cv_func_$ac_func=yes"
1206else
1207  echo "configure: failed program was:" >&5
1208  cat conftest.$ac_ext >&5
1209  rm -rf conftest*
1210  eval "ac_cv_func_$ac_func=no"
1211fi
1212rm -f conftest*
1213fi
1214
1215if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1216  echo "$ac_t""yes" 1>&6
1217    ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1218  cat >> confdefs.h <<EOF
1219#define $ac_tr_func 1
1220EOF
1221 
1222else
1223  echo "$ac_t""no" 1>&6
1224fi
1225done
1226
1227
1228
1229    # Most operating systems have gethostbyname() in the default searched
1230    # libraries (i.e. libc):
1231    echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1232echo "configure:1233: checking for gethostbyname" >&5
1233if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1234  echo $ac_n "(cached) $ac_c" 1>&6
1235else
1236  cat > conftest.$ac_ext <<EOF
1237#line 1238 "configure"
1238#include "confdefs.h"
1239/* System header to define __stub macros and hopefully few prototypes,
1240    which can conflict with char gethostbyname(); below.  */
1241#include <assert.h>
1242/* Override any gcc2 internal prototype to avoid an error.  */
1243/* We use char because int might match the return type of a gcc2
1244    builtin and then its argument prototype would still apply.  */
1245char gethostbyname();
1246
1247int main() {
1248
1249/* The GNU C library defines this for functions which it implements
1250    to always fail with ENOSYS.  Some functions are actually named
1251    something starting with __ and the normal name is an alias.  */
1252#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1253choke me
1254#else
1255gethostbyname();
1256#endif
1257
1258; return 0; }
1259EOF
1260if { (eval echo configure:1261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1261  rm -rf conftest*
1262  eval "ac_cv_func_gethostbyname=yes"
1263else
1264  echo "configure: failed program was:" >&5
1265  cat conftest.$ac_ext >&5
1266  rm -rf conftest*
1267  eval "ac_cv_func_gethostbyname=no"
1268fi
1269rm -f conftest*
1270fi
1271
1272if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1273  echo "$ac_t""yes" 1>&6
1274  :
1275else
1276  echo "$ac_t""no" 1>&6
1277# Some OSes (eg. Solaris) place it in libnsl:
1278        echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1279echo "configure:1280: checking for gethostbyname in -lnsl" >&5
1280ac_lib_var=`echo nsl'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
1281if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1282  echo $ac_n "(cached) $ac_c" 1>&6
1283else
1284  ac_save_LIBS="$LIBS"
1285LIBS="-lnsl  $LIBS"
1286cat > conftest.$ac_ext <<EOF
1287#line 1288 "configure"
1288#include "confdefs.h"
1289/* Override any gcc2 internal prototype to avoid an error.  */
1290/* We use char because int might match the return type of a gcc2
1291    builtin and then its argument prototype would still apply.  */
1292char gethostbyname();
1293
1294int main() {
1295gethostbyname()
1296; return 0; }
1297EOF
1298if { (eval echo configure:1299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1299  rm -rf conftest*
1300  eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1301else
1302  echo "configure: failed program was:" >&5
1303  cat conftest.$ac_ext >&5
1304  rm -rf conftest*
1305  eval "ac_cv_lbl_lib_$ac_lib_var=no"
1306fi
1307rm -f conftest*
1308LIBS="$ac_save_LIBS"
1309
1310fi
1311if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1312  echo "$ac_t""yes" 1>&6
1313    ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/^a-zA-Z0-9_/_/g' \
1314    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1315  cat >> confdefs.h <<EOF
1316#define $ac_tr_lib 1
1317EOF
1318
1319  LIBS="-lnsl $LIBS"
1320
1321else
1322  echo "$ac_t""no" 1>&6
1323# Some strange OSes (SINIX) have it in libsocket:
1324            echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1325echo "configure:1326: checking for gethostbyname in -lsocket" >&5
1326ac_lib_var=`echo socket'_'gethostbyname'_' | sed 'y%./+- %__p__%'`
1327if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1328  echo $ac_n "(cached) $ac_c" 1>&6
1329else
1330  ac_save_LIBS="$LIBS"
1331LIBS="-lsocket  $LIBS"
1332cat > conftest.$ac_ext <<EOF
1333#line 1334 "configure"
1334#include "confdefs.h"
1335/* Override any gcc2 internal prototype to avoid an error.  */
1336/* We use char because int might match the return type of a gcc2
1337    builtin and then its argument prototype would still apply.  */
1338char gethostbyname();
1339
1340int main() {
1341gethostbyname()
1342; return 0; }
1343EOF
1344if { (eval echo configure:1345: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1345  rm -rf conftest*
1346  eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1347else
1348  echo "configure: failed program was:" >&5
1349  cat conftest.$ac_ext >&5
1350  rm -rf conftest*
1351  eval "ac_cv_lbl_lib_$ac_lib_var=no"
1352fi
1353rm -f conftest*
1354LIBS="$ac_save_LIBS"
1355
1356fi
1357if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1358  echo "$ac_t""yes" 1>&6
1359    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1360    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1361  cat >> confdefs.h <<EOF
1362#define $ac_tr_lib 1
1363EOF
1364
1365  LIBS="-lsocket $LIBS"
1366
1367else
1368  echo "$ac_t""no" 1>&6
1369# Unfortunately libsocket sometimes depends on libnsl.
1370                # AC_CHECK_LIB's API is essentially broken so the
1371                # following ugliness is necessary:
1372                echo $ac_n "checking for gethostbyname in -lsocket""... $ac_c" 1>&6
1373echo "configure:1374: checking for gethostbyname in -lsocket" >&5
1374ac_lib_var=`echo socket'_'gethostbyname'_'-lnsl | sed 'y%./+- %__p__%'`
1375if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1376  echo $ac_n "(cached) $ac_c" 1>&6
1377else
1378  ac_save_LIBS="$LIBS"
1379LIBS="-lsocket -lnsl $LIBS"
1380cat > conftest.$ac_ext <<EOF
1381#line 1382 "configure"
1382#include "confdefs.h"
1383/* Override any gcc2 internal prototype to avoid an error.  */
1384/* We use char because int might match the return type of a gcc2
1385    builtin and then its argument prototype would still apply.  */
1386char gethostbyname();
1387
1388int main() {
1389gethostbyname()
1390; return 0; }
1391EOF
1392if { (eval echo configure:1393: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1393  rm -rf conftest*
1394  eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1395else
1396  echo "configure: failed program was:" >&5
1397  cat conftest.$ac_ext >&5
1398  rm -rf conftest*
1399  eval "ac_cv_lbl_lib_$ac_lib_var=no"
1400fi
1401rm -f conftest*
1402LIBS="$ac_save_LIBS"
1403
1404fi
1405if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1406  echo "$ac_t""yes" 1>&6
1407  LIBS="-lsocket -lnsl $LIBS"
1408else
1409  echo "$ac_t""no" 1>&6
1410echo $ac_n "checking for gethostbyname in -lresolv""... $ac_c" 1>&6
1411echo "configure:1412: checking for gethostbyname in -lresolv" >&5
1412ac_lib_var=`echo resolv'_'gethostbyname | sed 'y%./+-%__p_%'`
1413if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1414  echo $ac_n "(cached) $ac_c" 1>&6
1415else
1416  ac_save_LIBS="$LIBS"
1417LIBS="-lresolv  $LIBS"
1418cat > conftest.$ac_ext <<EOF
1419#line 1420 "configure"
1420#include "confdefs.h"
1421/* Override any gcc2 internal prototype to avoid an error.  */
1422/* We use char because int might match the return type of a gcc2
1423    builtin and then its argument prototype would still apply.  */
1424char gethostbyname();
1425
1426int main() {
1427gethostbyname()
1428; return 0; }
1429EOF
1430if { (eval echo configure:1431: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1431  rm -rf conftest*
1432  eval "ac_cv_lib_$ac_lib_var=yes"
1433else
1434  echo "configure: failed program was:" >&5
1435  cat conftest.$ac_ext >&5
1436  rm -rf conftest*
1437  eval "ac_cv_lib_$ac_lib_var=no"
1438fi
1439rm -f conftest*
1440LIBS="$ac_save_LIBS"
1441
1442fi
1443if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1444  echo "$ac_t""yes" 1>&6
1445    ac_tr_lib=HAVE_LIB`echo resolv | sed -e 's/^a-zA-Z0-9_/_/g' \
1446    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1447  cat >> confdefs.h <<EOF
1448#define $ac_tr_lib 1
1449EOF
1450
1451  LIBS="-lresolv $LIBS"
1452
1453else
1454  echo "$ac_t""no" 1>&6
1455fi
1456
1457fi
1458
1459fi
1460
1461fi
1462
1463fi
1464
1465    echo $ac_n "checking for socket""... $ac_c" 1>&6
1466echo "configure:1467: checking for socket" >&5
1467if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
1468  echo $ac_n "(cached) $ac_c" 1>&6
1469else
1470  cat > conftest.$ac_ext <<EOF
1471#line 1472 "configure"
1472#include "confdefs.h"
1473/* System header to define __stub macros and hopefully few prototypes,
1474    which can conflict with char socket(); below.  */
1475#include <assert.h>
1476/* Override any gcc2 internal prototype to avoid an error.  */
1477/* We use char because int might match the return type of a gcc2
1478    builtin and then its argument prototype would still apply.  */
1479char socket();
1480
1481int main() {
1482
1483/* The GNU C library defines this for functions which it implements
1484    to always fail with ENOSYS.  Some functions are actually named
1485    something starting with __ and the normal name is an alias.  */
1486#if defined (__stub_socket) || defined (__stub___socket)
1487choke me
1488#else
1489socket();
1490#endif
1491
1492; return 0; }
1493EOF
1494if { (eval echo configure:1495: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1495  rm -rf conftest*
1496  eval "ac_cv_func_socket=yes"
1497else
1498  echo "configure: failed program was:" >&5
1499  cat conftest.$ac_ext >&5
1500  rm -rf conftest*
1501  eval "ac_cv_func_socket=no"
1502fi
1503rm -f conftest*
1504fi
1505
1506if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
1507  echo "$ac_t""yes" 1>&6
1508  :
1509else
1510  echo "$ac_t""no" 1>&6
1511echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1512echo "configure:1513: checking for socket in -lsocket" >&5
1513ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
1514if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1515  echo $ac_n "(cached) $ac_c" 1>&6
1516else
1517  ac_save_LIBS="$LIBS"
1518LIBS="-lsocket  $LIBS"
1519cat > conftest.$ac_ext <<EOF
1520#line 1521 "configure"
1521#include "confdefs.h"
1522/* Override any gcc2 internal prototype to avoid an error.  */
1523/* We use char because int might match the return type of a gcc2
1524    builtin and then its argument prototype would still apply.  */
1525char socket();
1526
1527int main() {
1528socket()
1529; return 0; }
1530EOF
1531if { (eval echo configure:1532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1532  rm -rf conftest*
1533  eval "ac_cv_lib_$ac_lib_var=yes"
1534else
1535  echo "configure: failed program was:" >&5
1536  cat conftest.$ac_ext >&5
1537  rm -rf conftest*
1538  eval "ac_cv_lib_$ac_lib_var=no"
1539fi
1540rm -f conftest*
1541LIBS="$ac_save_LIBS"
1542
1543fi
1544if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1545  echo "$ac_t""yes" 1>&6
1546    ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/^a-zA-Z0-9_/_/g' \
1547    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1548  cat >> confdefs.h <<EOF
1549#define $ac_tr_lib 1
1550EOF
1551
1552  LIBS="-lsocket $LIBS"
1553
1554else
1555  echo "$ac_t""no" 1>&6
1556echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
1557echo "configure:1558: checking for socket in -lsocket" >&5
1558ac_lib_var=`echo socket'_'socket'_'-lnsl | sed 'y%./+- %__p__%'`
1559if eval "test \"`echo '$''{'ac_cv_lbl_lib_$ac_lib_var'+set}'`\" = set"; then
1560  echo $ac_n "(cached) $ac_c" 1>&6
1561else
1562  ac_save_LIBS="$LIBS"
1563LIBS="-lsocket -lnsl $LIBS"
1564cat > conftest.$ac_ext <<EOF
1565#line 1566 "configure"
1566#include "confdefs.h"
1567/* Override any gcc2 internal prototype to avoid an error.  */
1568/* We use char because int might match the return type of a gcc2
1569    builtin and then its argument prototype would still apply.  */
1570char socket();
1571
1572int main() {
1573socket()
1574; return 0; }
1575EOF
1576if { (eval echo configure:1577: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1577  rm -rf conftest*
1578  eval "ac_cv_lbl_lib_$ac_lib_var=yes"
1579else
1580  echo "configure: failed program was:" >&5
1581  cat conftest.$ac_ext >&5
1582  rm -rf conftest*
1583  eval "ac_cv_lbl_lib_$ac_lib_var=no"
1584fi
1585rm -f conftest*
1586LIBS="$ac_save_LIBS"
1587
1588fi
1589if eval "test \"`echo '$ac_cv_lbl_lib_'$ac_lib_var`\" = yes"; then
1590  echo "$ac_t""yes" 1>&6
1591  LIBS="-lsocket -lnsl $LIBS"
1592else
1593  echo "$ac_t""no" 1>&6
1594fi
1595
1596fi
1597
1598fi
1599
1600    # DLPI needs putmsg under HPUX so test for -lstr while we're at it
1601    echo $ac_n "checking for putmsg in -lstr""... $ac_c" 1>&6
1602echo "configure:1603: checking for putmsg in -lstr" >&5
1603ac_lib_var=`echo str'_'putmsg | sed 'y%./+-%__p_%'`
1604if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1605  echo $ac_n "(cached) $ac_c" 1>&6
1606else
1607  ac_save_LIBS="$LIBS"
1608LIBS="-lstr  $LIBS"
1609cat > conftest.$ac_ext <<EOF
1610#line 1611 "configure"
1611#include "confdefs.h"
1612/* Override any gcc2 internal prototype to avoid an error.  */
1613/* We use char because int might match the return type of a gcc2
1614    builtin and then its argument prototype would still apply.  */
1615char putmsg();
1616
1617int main() {
1618putmsg()
1619; return 0; }
1620EOF
1621if { (eval echo configure:1622: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1622  rm -rf conftest*
1623  eval "ac_cv_lib_$ac_lib_var=yes"
1624else
1625  echo "configure: failed program was:" >&5
1626  cat conftest.$ac_ext >&5
1627  rm -rf conftest*
1628  eval "ac_cv_lib_$ac_lib_var=no"
1629fi
1630rm -f conftest*
1631LIBS="$ac_save_LIBS"
1632
1633fi
1634if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1635  echo "$ac_t""yes" 1>&6
1636    ac_tr_lib=HAVE_LIB`echo str | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1637    -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1638  cat >> confdefs.h <<EOF
1639#define $ac_tr_lib 1
1640EOF
1641
1642  LIBS="-lstr $LIBS"
1643
1644else
1645  echo "$ac_t""no" 1>&6
1646fi
1647
1648   
1649
1650case "$target_os" in
1651
1652bsd4*)
1653        cat >> confdefs.h <<\EOF
1654#define HAVE_RAW_OPTIONS 1
1655EOF
1656
1657        ;;
1658
1659bsdi*)
1660        cat >> confdefs.h <<\EOF
1661#define HAVE_RAW_OPTIONS 1
1662EOF
1663
1664        ;;
1665
1666freebsd*)
1667        cat >> confdefs.h <<\EOF
1668#define HAVE_RAW_OPTIONS 1
1669EOF
1670
1671        ;;
1672
1673linux*)
1674        V_INCLS="$V_INCLS -Ilinux-include"
1675        ;;
1676
1677osf3*)
1678                cat >> confdefs.h <<\EOF
1679#define __STDC__ 2
1680EOF
1681
1682        ;;
1683
1684solaris*)
1685        cat >> confdefs.h <<\EOF
1686#define BYTESWAP_IP_LEN 1
1687EOF
1688
1689        cat >> confdefs.h <<\EOF
1690#define CANT_HACK_CKSUM
1691EOF
1692
1693        ;;
1694esac
1695
1696echo $ac_n "checking for int32_t using $CC""... $ac_c" 1>&6
1697echo "configure:1698: checking for int32_t using $CC" >&5
1698    if eval "test \"`echo '$''{'ac_cv_lbl_have_int32_t'+set}'`\" = set"; then
1699  echo $ac_n "(cached) $ac_c" 1>&6
1700else
1701  cat > conftest.$ac_ext <<EOF
1702#line 1703 "configure"
1703#include "confdefs.h"
1704
1705#       include "confdefs.h"
1706#       include <sys/types.h>
1707#       if STDC_HEADERS
1708#       include <stdlib.h>
1709#       include <stddef.h>
1710#       endif
1711int main() {
1712int32_t i
1713; return 0; }
1714EOF
1715if { (eval echo configure:1716: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1716  rm -rf conftest*
1717  ac_cv_lbl_have_int32_t=yes
1718else
1719  echo "configure: failed program was:" >&5
1720  cat conftest.$ac_ext >&5
1721  rm -rf conftest*
1722  ac_cv_lbl_have_int32_t=no
1723fi
1724rm -f conftest*
1725fi
1726
1727    echo "$ac_t""$ac_cv_lbl_have_int32_t" 1>&6
1728    if test $ac_cv_lbl_have_int32_t = no ; then
1729            cat >> confdefs.h <<\EOF
1730#define int32_t int
1731EOF
1732
1733    fi
1734echo $ac_n "checking for u_int32_t using $CC""... $ac_c" 1>&6
1735echo "configure:1736: checking for u_int32_t using $CC" >&5
1736    if eval "test \"`echo '$''{'ac_cv_lbl_have_u_int32_t'+set}'`\" = set"; then
1737  echo $ac_n "(cached) $ac_c" 1>&6
1738else
1739  cat > conftest.$ac_ext <<EOF
1740#line 1741 "configure"
1741#include "confdefs.h"
1742
1743#       include "confdefs.h"
1744#       include <sys/types.h>
1745#       if STDC_HEADERS
1746#       include <stdlib.h>
1747#       include <stddef.h>
1748#       endif
1749int main() {
1750u_int32_t i
1751; return 0; }
1752EOF
1753if { (eval echo configure:1754: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1754  rm -rf conftest*
1755  ac_cv_lbl_have_u_int32_t=yes
1756else
1757  echo "configure: failed program was:" >&5
1758  cat conftest.$ac_ext >&5
1759  rm -rf conftest*
1760  ac_cv_lbl_have_u_int32_t=no
1761fi
1762rm -f conftest*
1763fi
1764
1765    echo "$ac_t""$ac_cv_lbl_have_u_int32_t" 1>&6
1766    if test $ac_cv_lbl_have_u_int32_t = no ; then
1767            cat >> confdefs.h <<\EOF
1768#define u_int32_t u_int
1769EOF
1770
1771    fi
1772
1773rm -f os-proto.h
1774    if test "${LBL_CFLAGS+set}" = set; then
1775            V_CCOPT="$V_CCOPT ${LBL_CFLAGS}"
1776    fi
1777    if test -f .devel ; then
1778            if test "$GCC" = yes ; then
1779                    if test "${LBL_CFLAGS+set}" != set; then
1780                            if test "$ac_cv_prog_cc_g" = yes ; then
1781                                    V_CCOPT="-g $V_CCOPT"
1782                            fi
1783                            V_CCOPT="$V_CCOPT -Wall"
1784                            if test $ac_cv_lbl_gcc_vers -gt 1 ; then
1785                                    V_CCOPT="$V_CCOPT -Wmissing-prototypes -Wstrict-prototypes"
1786                            fi
1787                    fi
1788            else
1789                    case "$target_os" in
1790
1791                    irix6*)
1792                            V_CCOPT="$V_CCOPT -n32"
1793                            ;;
1794
1795                    *)
1796                            ;;
1797                    esac
1798            fi
1799            os=`echo $target_os | sed -e 's/\([0-9][0-9]*\)[^0-9].*$/\1/'`
1800            name="lbl/os-$os.h"
1801            if test -f $name ; then
1802                    ln -s $name os-proto.h
1803                    cat >> confdefs.h <<\EOF
1804#define HAVE_OS_PROTO_H 1
1805EOF
1806
1807            else
1808                    echo "configure: warning: can't find $name" 1>&2
1809            fi
1810    fi
1811
1812echo $ac_n "checking if sockaddr struct has sa_len member""... $ac_c" 1>&6
1813echo "configure:1814: checking if sockaddr struct has sa_len member" >&5
1814    if eval "test \"`echo '$''{'ac_cv_lbl_sockaddr_has_sa_len'+set}'`\" = set"; then
1815  echo $ac_n "(cached) $ac_c" 1>&6
1816else
1817  cat > conftest.$ac_ext <<EOF
1818#line 1819 "configure"
1819#include "confdefs.h"
1820
1821#       include <sys/types.h>
1822#       include <sys/socket.h>
1823int main() {
1824u_int i = sizeof(((struct sockaddr *)0)->sa_len)
1825; return 0; }
1826EOF
1827if { (eval echo configure:1828: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1828  rm -rf conftest*
1829  ac_cv_lbl_sockaddr_has_sa_len=yes
1830else
1831  echo "configure: failed program was:" >&5
1832  cat conftest.$ac_ext >&5
1833  rm -rf conftest*
1834  ac_cv_lbl_sockaddr_has_sa_len=no
1835fi
1836rm -f conftest*
1837fi
1838
1839    echo "$ac_t""$ac_cv_lbl_sockaddr_has_sa_len" 1>&6
1840    if test $ac_cv_lbl_sockaddr_has_sa_len = yes ; then
1841            cat >> confdefs.h <<\EOF
1842#define HAVE_SOCKADDR_SA_LEN 1
1843EOF
1844
1845    fi
1846
1847if test -r lbl/gnuc.h ; then
1848        rm -f gnuc.h
1849        ln -s lbl/gnuc.h gnuc.h
1850fi
1851
1852
1853
1854
1855# Find a good install program.  We prefer a C program (faster),
1856# so one script is as good as another.  But avoid the broken or
1857# incompatible versions:
1858# SysV /etc/install, /usr/sbin/install
1859# SunOS /usr/etc/install
1860# IRIX /sbin/install
1861# AIX /bin/install
1862# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1863# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1864# ./install, which can be erroneously created by make from ./install.sh.
1865echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1866echo "configure:1867: checking for a BSD compatible install" >&5
1867if test -z "$INSTALL"; then
1868if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1869  echo $ac_n "(cached) $ac_c" 1>&6
1870else
1871    IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1872  for ac_dir in $PATH; do
1873    # Account for people who put trailing slashes in PATH elements.
1874    case "$ac_dir/" in
1875    /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1876    *)
1877      # OSF1 and SCO ODT 3.0 have their own names for install.
1878      for ac_prog in ginstall installbsd scoinst install; do
1879        if test -f $ac_dir/$ac_prog; then
1880          if test $ac_prog = install &&
1881            grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1882            # AIX install.  It has an incompatible calling convention.
1883            # OSF/1 installbsd also uses dspmsg, but is usable.
1884            :
1885          else
1886            ac_cv_path_install="$ac_dir/$ac_prog -c"
1887            break 2
1888          fi
1889        fi
1890      done
1891      ;;
1892    esac
1893  done
1894  IFS="$ac_save_IFS"
1895
1896fi
1897  if test "${ac_cv_path_install+set}" = set; then
1898    INSTALL="$ac_cv_path_install"
1899  else
1900    # As a last resort, use the slow shell script.  We don't cache a
1901    # path for INSTALL within a source directory, because that will
1902    # break other packages using the cache if that directory is
1903    # removed, or if the path is relative.
1904    INSTALL="$ac_install_sh"
1905  fi
1906fi
1907echo "$ac_t""$INSTALL" 1>&6
1908
1909# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1910# It thinks the first close brace ends the variable substitution.
1911test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1912
1913test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1914
1915
1916trap '' 1 2 15
1917cat > confcache <<\EOF
1918# This file is a shell script that caches the results of configure
1919# tests run on this system so they can be shared between configure
1920# scripts and configure runs.  It is not useful on other systems.
1921# If it contains results you don't want to keep, you may remove or edit it.
1922#
1923# By default, configure uses ./config.cache as the cache file,
1924# creating it if it does not exist already.  You can give configure
1925# the --cache-file=FILE option to use a different cache file; that is
1926# what configure does when it calls configure scripts in
1927# subdirectories, so they share the cache.
1928# Giving --cache-file=/dev/null disables caching, for debugging configure.
1929# config.status only pays attention to the cache file if you give it the
1930# --recheck option to rerun configure.
1931#
1932EOF
1933# The following way of writing the cache mishandles newlines in values,
1934# but we know of no workaround that is simple, portable, and efficient.
1935# So, don't put newlines in cache variables' values.
1936# Ultrix sh set writes to stderr and can't be redirected directly,
1937# and sets the high bit in the cache file unless we assign to the vars.
1938(set) 2>&1 |
1939  case `(ac_space=' '; set) 2>&1` in
1940  *ac_space=\ *)
1941    # `set' does not quote correctly, so add quotes (double-quote substitution
1942    # turns \\\\ into \\, and sed turns \\ into \).
1943    sed -n \
1944      -e "s/'/'\\\\''/g" \
1945      -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1946    ;;
1947  *)
1948    # `set' quotes correctly as required by POSIX, so do not add quotes.
1949    sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1950    ;;
1951  esac >> confcache
1952if cmp -s $cache_file confcache; then
1953  :
1954else
1955  if test -w $cache_file; then
1956    echo "updating cache $cache_file"
1957    cat confcache > $cache_file
1958  else
1959    echo "not updating unwritable cache $cache_file"
1960  fi
1961fi
1962rm -f confcache
1963
1964trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1965
1966test "x$prefix" = xNONE && prefix=$ac_default_prefix
1967# Let make expand exec_prefix.
1968test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1969
1970# Any assignment to VPATH causes Sun make to only execute
1971# the first set of double-colon rules, so remove it if not needed.
1972# If there is a colon in the path, we need to keep it.
1973if test "x$srcdir" = x.; then
1974  ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1975fi
1976
1977trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1978
1979# Transform confdefs.h into DEFS.
1980# Protect against shell expansion while executing Makefile rules.
1981# Protect against Makefile macro expansion.
1982cat > conftest.defs <<\EOF
1983s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1984s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1985s%\[%\\&%g
1986s%\]%\\&%g
1987s%\$%$$%g
1988EOF
1989DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1990rm -f conftest.defs
1991
1992
1993# Without the "./", some shells look in PATH for config.status.
1994: ${CONFIG_STATUS=./config.status}
1995
1996echo creating $CONFIG_STATUS
1997rm -f $CONFIG_STATUS
1998cat > $CONFIG_STATUS <<EOF
1999#! /bin/sh
2000# Generated automatically by configure.
2001# Run this file to recreate the current configuration.
2002# This directory was configured as follows,
2003# on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2004#
2005# $0 $ac_configure_args
2006#
2007# Compiler output produced by configure, useful for debugging
2008# configure, is in ./config.log if it exists.
2009
2010ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2011for ac_option
2012do
2013  case "\$ac_option" in
2014  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2015    echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2016    exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2017  -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2018    echo "$CONFIG_STATUS generated by autoconf version 2.12"
2019    exit 0 ;;
2020  -help | --help | --hel | --he | --h)
2021    echo "\$ac_cs_usage"; exit 0 ;;
2022  *) echo "\$ac_cs_usage"; exit 1 ;;
2023  esac
2024done
2025
2026ac_given_srcdir=$srcdir
2027ac_given_INSTALL="$INSTALL"
2028
2029trap 'rm -fr `echo "Makefile" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2030EOF
2031cat >> $CONFIG_STATUS <<EOF
2032
2033# Protect against being on the right side of a sed subst in config.status.
2034sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2035 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2036$ac_vpsub
2037$extrasub
2038s%@CFLAGS@%$CFLAGS%g
2039s%@CPPFLAGS@%$CPPFLAGS%g
2040s%@CXXFLAGS@%$CXXFLAGS%g
2041s%@DEFS@%$DEFS%g
2042s%@LDFLAGS@%$LDFLAGS%g
2043s%@LIBS@%$LIBS%g
2044s%@exec_prefix@%$exec_prefix%g
2045s%@prefix@%$prefix%g
2046s%@program_transform_name@%$program_transform_name%g
2047s%@bindir@%$bindir%g
2048s%@sbindir@%$sbindir%g
2049s%@libexecdir@%$libexecdir%g
2050s%@datadir@%$datadir%g
2051s%@sysconfdir@%$sysconfdir%g
2052s%@sharedstatedir@%$sharedstatedir%g
2053s%@localstatedir@%$localstatedir%g
2054s%@libdir@%$libdir%g
2055s%@includedir@%$includedir%g
2056s%@oldincludedir@%$oldincludedir%g
2057s%@infodir@%$infodir%g
2058s%@mandir@%$mandir%g
2059s%@host@%$host%g
2060s%@host_alias@%$host_alias%g
2061s%@host_cpu@%$host_cpu%g
2062s%@host_vendor@%$host_vendor%g
2063s%@host_os@%$host_os%g
2064s%@target@%$target%g
2065s%@target_alias@%$target_alias%g
2066s%@target_cpu@%$target_cpu%g
2067s%@target_vendor@%$target_vendor%g
2068s%@target_os@%$target_os%g
2069s%@build@%$build%g
2070s%@build_alias@%$build_alias%g
2071s%@build_cpu@%$build_cpu%g
2072s%@build_vendor@%$build_vendor%g
2073s%@build_os@%$build_os%g
2074s%@SHLICC2@%$SHLICC2%g
2075s%@CC@%$CC%g
2076s%@CPP@%$CPP%g
2077s%@LIBOBJS@%$LIBOBJS%g
2078s%@V_CCOPT@%$V_CCOPT%g
2079s%@V_INCLS@%$V_INCLS%g
2080s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2081s%@INSTALL_DATA@%$INSTALL_DATA%g
2082
2083CEOF
2084EOF
2085
2086cat >> $CONFIG_STATUS <<\EOF
2087
2088# Split the substitutions into bite-sized pieces for seds with
2089# small command number limits, like on Digital OSF/1 and HP-UX.
2090ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2091ac_file=1 # Number of current file.
2092ac_beg=1 # First line for current file.
2093ac_end=$ac_max_sed_cmds # Line after last line for current file.
2094ac_more_lines=:
2095ac_sed_cmds=""
2096while $ac_more_lines; do
2097  if test $ac_beg -gt 1; then
2098    sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2099  else
2100    sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2101  fi
2102  if test ! -s conftest.s$ac_file; then
2103    ac_more_lines=false
2104    rm -f conftest.s$ac_file
2105  else
2106    if test -z "$ac_sed_cmds"; then
2107      ac_sed_cmds="sed -f conftest.s$ac_file"
2108    else
2109      ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2110    fi
2111    ac_file=`expr $ac_file + 1`
2112    ac_beg=$ac_end
2113    ac_end=`expr $ac_end + $ac_max_sed_cmds`
2114  fi
2115done
2116if test -z "$ac_sed_cmds"; then
2117  ac_sed_cmds=cat
2118fi
2119EOF
2120
2121cat >> $CONFIG_STATUS <<EOF
2122
2123CONFIG_FILES=\${CONFIG_FILES-"Makefile"}
2124EOF
2125cat >> $CONFIG_STATUS <<\EOF
2126for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2127  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2128  case "$ac_file" in
2129  *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2130       ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2131  *) ac_file_in="${ac_file}.in" ;;
2132  esac
2133
2134  # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2135
2136  # Remove last slash and all that follows it.  Not all systems have dirname.
2137  ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2138  if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2139    # The file is in a subdirectory.
2140    test ! -d "$ac_dir" && mkdir "$ac_dir"
2141    ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2142    # A "../" for each directory in $ac_dir_suffix.
2143    ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2144  else
2145    ac_dir_suffix= ac_dots=
2146  fi
2147
2148  case "$ac_given_srcdir" in
2149  .)  srcdir=.
2150      if test -z "$ac_dots"; then top_srcdir=.
2151      else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2152  /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2153  *) # Relative path.
2154    srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2155    top_srcdir="$ac_dots$ac_given_srcdir" ;;
2156  esac
2157
2158  case "$ac_given_INSTALL" in
2159  [/$]*) INSTALL="$ac_given_INSTALL" ;;
2160  *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2161  esac
2162
2163  echo creating "$ac_file"
2164  rm -f "$ac_file"
2165  configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2166  case "$ac_file" in
2167  *Makefile*) ac_comsub="1i\\
2168# $configure_input" ;;
2169  *) ac_comsub= ;;
2170  esac
2171
2172  ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2173  sed -e "$ac_comsub
2174s%@configure_input@%$configure_input%g
2175s%@srcdir@%$srcdir%g
2176s%@top_srcdir@%$top_srcdir%g
2177s%@INSTALL@%$INSTALL%g
2178" $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2179fi; done
2180rm -f conftest.s*
2181
2182EOF
2183cat >> $CONFIG_STATUS <<EOF
2184
2185EOF
2186cat >> $CONFIG_STATUS <<\EOF
2187
2188exit 0
2189EOF
2190chmod +x $CONFIG_STATUS
2191rm -fr confdefs* $ac_clean_files
2192test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
2193
2194
2195if test -f .devel ; then
2196        make depend
2197fi
2198
2199exit 0
Note: See TracBrowser for help on using the repository browser.