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