source: trunk/third/tcsh/configure @ 14620

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