]> git.sur5r.net Git - openldap/blob - contrib/ldaptcl/configure
Ldaptcl package version 1.2:
[openldap] / contrib / ldaptcl / 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   --enable-gcc            allow use of gcc if available"
16 ac_help="$ac_help
17   --enable-gcc            allow use of gcc if available"
18 ac_help="$ac_help
19   --with-tk=DIR          use Tk 8.0 binaries from DIR"
20 ac_help="$ac_help
21   --without-x            do not build/install ldapwish"
22 ac_help="$ac_help
23   --enable-shared         build libldaptcl as a shared library"
24 ac_help="$ac_help
25   --with-ldap=<dir>           common parent of ldap include and lib dirs"
26 ac_help="$ac_help
27   --with-ldap-incdir=<dir>    path to ldap.h"
28 ac_help="$ac_help
29   --with-ldap-libdir=<dir>    path to ldap and lber libs"
30 ac_help="$ac_help
31   --with-ldap-libflags=<libnames>   -l flags for ldap libraries"
32
33 # Initialize some variables set by options.
34 # The variables have the same names as the options, with
35 # dashes changed to underlines.
36 build=NONE
37 cache_file=./config.cache
38 exec_prefix=NONE
39 host=NONE
40 no_create=
41 nonopt=NONE
42 no_recursion=
43 prefix=NONE
44 program_prefix=NONE
45 program_suffix=NONE
46 program_transform_name=s,x,x,
47 silent=
48 site=
49 srcdir=
50 target=NONE
51 verbose=
52 x_includes=NONE
53 x_libraries=NONE
54 bindir='${exec_prefix}/bin'
55 sbindir='${exec_prefix}/sbin'
56 libexecdir='${exec_prefix}/libexec'
57 datadir='${prefix}/share'
58 sysconfdir='${prefix}/etc'
59 sharedstatedir='${prefix}/com'
60 localstatedir='${prefix}/var'
61 libdir='${exec_prefix}/lib'
62 includedir='${prefix}/include'
63 oldincludedir='/usr/include'
64 infodir='${prefix}/info'
65 mandir='${prefix}/man'
66
67 # Initialize some other variables.
68 subdirs=
69 MFLAGS= MAKEFLAGS=
70 SHELL=${CONFIG_SHELL-/bin/sh}
71 # Maximum number of lines to put in a shell here document.
72 ac_max_here_lines=12
73
74 ac_prev=
75 for ac_option
76 do
77
78   # If the previous option needs an argument, assign it.
79   if test -n "$ac_prev"; then
80     eval "$ac_prev=\$ac_option"
81     ac_prev=
82     continue
83   fi
84
85   case "$ac_option" in
86   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
87   *) ac_optarg= ;;
88   esac
89
90   # Accept the important Cygnus configure options, so we can diagnose typos.
91
92   case "$ac_option" in
93
94   -bindir | --bindir | --bindi | --bind | --bin | --bi)
95     ac_prev=bindir ;;
96   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
97     bindir="$ac_optarg" ;;
98
99   -build | --build | --buil | --bui | --bu)
100     ac_prev=build ;;
101   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
102     build="$ac_optarg" ;;
103
104   -cache-file | --cache-file | --cache-fil | --cache-fi \
105   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
106     ac_prev=cache_file ;;
107   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
108   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
109     cache_file="$ac_optarg" ;;
110
111   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
112     ac_prev=datadir ;;
113   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
114   | --da=*)
115     datadir="$ac_optarg" ;;
116
117   -disable-* | --disable-*)
118     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
119     # Reject names that are not valid shell variable names.
120     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
121       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
122     fi
123     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
124     eval "enable_${ac_feature}=no" ;;
125
126   -enable-* | --enable-*)
127     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
128     # Reject names that are not valid shell variable names.
129     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
130       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
131     fi
132     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
133     case "$ac_option" in
134       *=*) ;;
135       *) ac_optarg=yes ;;
136     esac
137     eval "enable_${ac_feature}='$ac_optarg'" ;;
138
139   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
140   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
141   | --exec | --exe | --ex)
142     ac_prev=exec_prefix ;;
143   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
144   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
145   | --exec=* | --exe=* | --ex=*)
146     exec_prefix="$ac_optarg" ;;
147
148   -gas | --gas | --ga | --g)
149     # Obsolete; use --with-gas.
150     with_gas=yes ;;
151
152   -help | --help | --hel | --he)
153     # Omit some internal or obsolete options to make the list less imposing.
154     # This message is too long to be a string in the A/UX 3.1 sh.
155     cat << EOF
156 Usage: configure [options] [host]
157 Options: [defaults in brackets after descriptions]
158 Configuration:
159   --cache-file=FILE       cache test results in FILE
160   --help                  print this message
161   --no-create             do not create output files
162   --quiet, --silent       do not print \`checking...' messages
163   --version               print the version of autoconf that created configure
164 Directory and file names:
165   --prefix=PREFIX         install architecture-independent files in PREFIX
166                           [$ac_default_prefix]
167   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
168                           [same as prefix]
169   --bindir=DIR            user executables in DIR [EPREFIX/bin]
170   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
171   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
172   --datadir=DIR           read-only architecture-independent data in DIR
173                           [PREFIX/share]
174   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
175   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
176                           [PREFIX/com]
177   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
178   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
179   --includedir=DIR        C header files in DIR [PREFIX/include]
180   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
181   --infodir=DIR           info documentation in DIR [PREFIX/info]
182   --mandir=DIR            man documentation in DIR [PREFIX/man]
183   --srcdir=DIR            find the sources in DIR [configure dir or ..]
184   --program-prefix=PREFIX prepend PREFIX to installed program names
185   --program-suffix=SUFFIX append SUFFIX to installed program names
186   --program-transform-name=PROGRAM
187                           run sed PROGRAM on installed program names
188 EOF
189     cat << EOF
190 Host type:
191   --build=BUILD           configure for building on BUILD [BUILD=HOST]
192   --host=HOST             configure for HOST [guessed]
193   --target=TARGET         configure for TARGET [TARGET=HOST]
194 Features and packages:
195   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
196   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
197   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
198   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
199   --x-includes=DIR        X include files are in DIR
200   --x-libraries=DIR       X library files are in DIR
201 EOF
202     if test -n "$ac_help"; then
203       echo "--enable and --with options recognized:$ac_help"
204     fi
205     exit 0 ;;
206
207   -host | --host | --hos | --ho)
208     ac_prev=host ;;
209   -host=* | --host=* | --hos=* | --ho=*)
210     host="$ac_optarg" ;;
211
212   -includedir | --includedir | --includedi | --included | --include \
213   | --includ | --inclu | --incl | --inc)
214     ac_prev=includedir ;;
215   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
216   | --includ=* | --inclu=* | --incl=* | --inc=*)
217     includedir="$ac_optarg" ;;
218
219   -infodir | --infodir | --infodi | --infod | --info | --inf)
220     ac_prev=infodir ;;
221   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
222     infodir="$ac_optarg" ;;
223
224   -libdir | --libdir | --libdi | --libd)
225     ac_prev=libdir ;;
226   -libdir=* | --libdir=* | --libdi=* | --libd=*)
227     libdir="$ac_optarg" ;;
228
229   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
230   | --libexe | --libex | --libe)
231     ac_prev=libexecdir ;;
232   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
233   | --libexe=* | --libex=* | --libe=*)
234     libexecdir="$ac_optarg" ;;
235
236   -localstatedir | --localstatedir | --localstatedi | --localstated \
237   | --localstate | --localstat | --localsta | --localst \
238   | --locals | --local | --loca | --loc | --lo)
239     ac_prev=localstatedir ;;
240   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
241   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
242   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
243     localstatedir="$ac_optarg" ;;
244
245   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
246     ac_prev=mandir ;;
247   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
248     mandir="$ac_optarg" ;;
249
250   -nfp | --nfp | --nf)
251     # Obsolete; use --without-fp.
252     with_fp=no ;;
253
254   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
255   | --no-cr | --no-c)
256     no_create=yes ;;
257
258   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
259   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
260     no_recursion=yes ;;
261
262   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
263   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
264   | --oldin | --oldi | --old | --ol | --o)
265     ac_prev=oldincludedir ;;
266   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
267   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
268   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
269     oldincludedir="$ac_optarg" ;;
270
271   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
272     ac_prev=prefix ;;
273   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
274     prefix="$ac_optarg" ;;
275
276   -program-prefix | --program-prefix | --program-prefi | --program-pref \
277   | --program-pre | --program-pr | --program-p)
278     ac_prev=program_prefix ;;
279   -program-prefix=* | --program-prefix=* | --program-prefi=* \
280   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
281     program_prefix="$ac_optarg" ;;
282
283   -program-suffix | --program-suffix | --program-suffi | --program-suff \
284   | --program-suf | --program-su | --program-s)
285     ac_prev=program_suffix ;;
286   -program-suffix=* | --program-suffix=* | --program-suffi=* \
287   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
288     program_suffix="$ac_optarg" ;;
289
290   -program-transform-name | --program-transform-name \
291   | --program-transform-nam | --program-transform-na \
292   | --program-transform-n | --program-transform- \
293   | --program-transform | --program-transfor \
294   | --program-transfo | --program-transf \
295   | --program-trans | --program-tran \
296   | --progr-tra | --program-tr | --program-t)
297     ac_prev=program_transform_name ;;
298   -program-transform-name=* | --program-transform-name=* \
299   | --program-transform-nam=* | --program-transform-na=* \
300   | --program-transform-n=* | --program-transform-=* \
301   | --program-transform=* | --program-transfor=* \
302   | --program-transfo=* | --program-transf=* \
303   | --program-trans=* | --program-tran=* \
304   | --progr-tra=* | --program-tr=* | --program-t=*)
305     program_transform_name="$ac_optarg" ;;
306
307   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
308   | -silent | --silent | --silen | --sile | --sil)
309     silent=yes ;;
310
311   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
312     ac_prev=sbindir ;;
313   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
314   | --sbi=* | --sb=*)
315     sbindir="$ac_optarg" ;;
316
317   -sharedstatedir | --sharedstatedir | --sharedstatedi \
318   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
319   | --sharedst | --shareds | --shared | --share | --shar \
320   | --sha | --sh)
321     ac_prev=sharedstatedir ;;
322   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
323   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
324   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
325   | --sha=* | --sh=*)
326     sharedstatedir="$ac_optarg" ;;
327
328   -site | --site | --sit)
329     ac_prev=site ;;
330   -site=* | --site=* | --sit=*)
331     site="$ac_optarg" ;;
332
333   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
334     ac_prev=srcdir ;;
335   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
336     srcdir="$ac_optarg" ;;
337
338   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
339   | --syscon | --sysco | --sysc | --sys | --sy)
340     ac_prev=sysconfdir ;;
341   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
342   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
343     sysconfdir="$ac_optarg" ;;
344
345   -target | --target | --targe | --targ | --tar | --ta | --t)
346     ac_prev=target ;;
347   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
348     target="$ac_optarg" ;;
349
350   -v | -verbose | --verbose | --verbos | --verbo | --verb)
351     verbose=yes ;;
352
353   -version | --version | --versio | --versi | --vers)
354     echo "configure generated by autoconf version 2.13"
355     exit 0 ;;
356
357   -with-* | --with-*)
358     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
359     # Reject names that are not valid shell variable names.
360     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
361       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
362     fi
363     ac_package=`echo $ac_package| sed 's/-/_/g'`
364     case "$ac_option" in
365       *=*) ;;
366       *) ac_optarg=yes ;;
367     esac
368     eval "with_${ac_package}='$ac_optarg'" ;;
369
370   -without-* | --without-*)
371     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
372     # Reject names that are not valid shell variable names.
373     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
374       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375     fi
376     ac_package=`echo $ac_package| sed 's/-/_/g'`
377     eval "with_${ac_package}=no" ;;
378
379   --x)
380     # Obsolete; use --with-x.
381     with_x=yes ;;
382
383   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
384   | --x-incl | --x-inc | --x-in | --x-i)
385     ac_prev=x_includes ;;
386   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
387   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
388     x_includes="$ac_optarg" ;;
389
390   -x-libraries | --x-libraries | --x-librarie | --x-librari \
391   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
392     ac_prev=x_libraries ;;
393   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
394   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
395     x_libraries="$ac_optarg" ;;
396
397   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
398     ;;
399
400   *)
401     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
402       echo "configure: warning: $ac_option: invalid host type" 1>&2
403     fi
404     if test "x$nonopt" != xNONE; then
405       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
406     fi
407     nonopt="$ac_option"
408     ;;
409
410   esac
411 done
412
413 if test -n "$ac_prev"; then
414   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
415 fi
416
417 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
418
419 # File descriptor usage:
420 # 0 standard input
421 # 1 file creation
422 # 2 errors and warnings
423 # 3 some systems may open it to /dev/tty
424 # 4 used on the Kubota Titan
425 # 6 checking for... messages and results
426 # 5 compiler messages saved in config.log
427 if test "$silent" = yes; then
428   exec 6>/dev/null
429 else
430   exec 6>&1
431 fi
432 exec 5>./config.log
433
434 echo "\
435 This file contains any messages produced by compilers while
436 running configure, to aid debugging if configure makes a mistake.
437 " 1>&5
438
439 # Strip out --no-create and --no-recursion so they do not pile up.
440 # Also quote any args containing shell metacharacters.
441 ac_configure_args=
442 for ac_arg
443 do
444   case "$ac_arg" in
445   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
446   | --no-cr | --no-c) ;;
447   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
448   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
449   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
450   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
451   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
452   esac
453 done
454
455 # NLS nuisances.
456 # Only set these to C if already set.  These must not be set unconditionally
457 # because not all systems understand e.g. LANG=C (notably SCO).
458 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
459 # Non-C LC_CTYPE values break the ctype check.
460 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
461 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
462 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
463 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
464
465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
466 rm -rf conftest* confdefs.h
467 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
468 echo > confdefs.h
469
470 # A filename unique to this package, relative to the directory that
471 # configure is in, which we can look for to find out if srcdir is correct.
472 ac_unique_file=neoXldap.c
473
474 # Find the source files, if location was not specified.
475 if test -z "$srcdir"; then
476   ac_srcdir_defaulted=yes
477   # Try the directory containing this script, then its parent.
478   ac_prog=$0
479   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
480   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
481   srcdir=$ac_confdir
482   if test ! -r $srcdir/$ac_unique_file; then
483     srcdir=..
484   fi
485 else
486   ac_srcdir_defaulted=no
487 fi
488 if test ! -r $srcdir/$ac_unique_file; then
489   if test "$ac_srcdir_defaulted" = yes; then
490     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
491   else
492     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
493   fi
494 fi
495 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
496
497 # Prefer explicitly selected file to automatically selected ones.
498 if test -z "$CONFIG_SITE"; then
499   if test "x$prefix" != xNONE; then
500     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
501   else
502     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
503   fi
504 fi
505 for ac_site_file in $CONFIG_SITE; do
506   if test -r "$ac_site_file"; then
507     echo "loading site script $ac_site_file"
508     . "$ac_site_file"
509   fi
510 done
511
512 if test -r "$cache_file"; then
513   echo "loading cache $cache_file"
514   . $cache_file
515 else
516   echo "creating cache $cache_file"
517   > $cache_file
518 fi
519
520 ac_ext=c
521 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
522 ac_cpp='$CPP $CPPFLAGS'
523 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
524 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
525 cross_compiling=$ac_cv_prog_cc_cross
526
527 ac_exeext=
528 ac_objext=o
529 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
530   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
531   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
532     ac_n= ac_c='
533 ' ac_t='        '
534   else
535     ac_n=-n ac_c= ac_t=
536   fi
537 else
538   ac_n= ac_c='\c' ac_t=
539 fi
540
541
542 # $Id: configure.in,v 1.2 1999/07/27 05:29:27 kunkee Exp $
543
544 NEO_VERSION=1.2
545 NEO_MAJOR_VERSION=1
546 NEO_MINOR_VERSION=2
547 VERSION=${NEO_VERSION}
548
549 if test "${prefix}" = "NONE"; then
550     prefix=/usr/local
551 fi
552 if test "${exec_prefix}" = "NONE"; then
553     exec_prefix=$prefix
554 fi
555
556 # Check whether --enable-gcc or --disable-gcc was given.
557 if test "${enable_gcc+set}" = set; then
558   enableval="$enable_gcc"
559   neo_ok=$enableval
560 else
561   neo_ok=no
562 fi
563
564 if test "$neo_ok" = "yes"; then
565     # Extract the first word of "gcc", so it can be a program name with args.
566 set dummy gcc; ac_word=$2
567 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
568 echo "configure:569: checking for $ac_word" >&5
569 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
570   echo $ac_n "(cached) $ac_c" 1>&6
571 else
572   if test -n "$CC"; then
573   ac_cv_prog_CC="$CC" # Let the user override the test.
574 else
575   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
576   ac_dummy="$PATH"
577   for ac_dir in $ac_dummy; do
578     test -z "$ac_dir" && ac_dir=.
579     if test -f $ac_dir/$ac_word; then
580       ac_cv_prog_CC="gcc"
581       break
582     fi
583   done
584   IFS="$ac_save_ifs"
585 fi
586 fi
587 CC="$ac_cv_prog_CC"
588 if test -n "$CC"; then
589   echo "$ac_t""$CC" 1>&6
590 else
591   echo "$ac_t""no" 1>&6
592 fi
593
594 if test -z "$CC"; then
595   # Extract the first word of "cc", so it can be a program name with args.
596 set dummy cc; ac_word=$2
597 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
598 echo "configure:599: checking for $ac_word" >&5
599 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
600   echo $ac_n "(cached) $ac_c" 1>&6
601 else
602   if test -n "$CC"; then
603   ac_cv_prog_CC="$CC" # Let the user override the test.
604 else
605   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
606   ac_prog_rejected=no
607   ac_dummy="$PATH"
608   for ac_dir in $ac_dummy; do
609     test -z "$ac_dir" && ac_dir=.
610     if test -f $ac_dir/$ac_word; then
611       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
612         ac_prog_rejected=yes
613         continue
614       fi
615       ac_cv_prog_CC="cc"
616       break
617     fi
618   done
619   IFS="$ac_save_ifs"
620 if test $ac_prog_rejected = yes; then
621   # We found a bogon in the path, so make sure we never use it.
622   set dummy $ac_cv_prog_CC
623   shift
624   if test $# -gt 0; then
625     # We chose a different compiler from the bogus one.
626     # However, it has the same basename, so the bogon will be chosen
627     # first if we set CC to just the basename; use the full file name.
628     shift
629     set dummy "$ac_dir/$ac_word" "$@"
630     shift
631     ac_cv_prog_CC="$@"
632   fi
633 fi
634 fi
635 fi
636 CC="$ac_cv_prog_CC"
637 if test -n "$CC"; then
638   echo "$ac_t""$CC" 1>&6
639 else
640   echo "$ac_t""no" 1>&6
641 fi
642
643   if test -z "$CC"; then
644     case "`uname -s`" in
645     *win32* | *WIN32*)
646       # Extract the first word of "cl", so it can be a program name with args.
647 set dummy cl; ac_word=$2
648 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
649 echo "configure:650: checking for $ac_word" >&5
650 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
651   echo $ac_n "(cached) $ac_c" 1>&6
652 else
653   if test -n "$CC"; then
654   ac_cv_prog_CC="$CC" # Let the user override the test.
655 else
656   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
657   ac_dummy="$PATH"
658   for ac_dir in $ac_dummy; do
659     test -z "$ac_dir" && ac_dir=.
660     if test -f $ac_dir/$ac_word; then
661       ac_cv_prog_CC="cl"
662       break
663     fi
664   done
665   IFS="$ac_save_ifs"
666 fi
667 fi
668 CC="$ac_cv_prog_CC"
669 if test -n "$CC"; then
670   echo "$ac_t""$CC" 1>&6
671 else
672   echo "$ac_t""no" 1>&6
673 fi
674  ;;
675     esac
676   fi
677   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
678 fi
679
680 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
681 echo "configure:682: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
682
683 ac_ext=c
684 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
685 ac_cpp='$CPP $CPPFLAGS'
686 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
687 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
688 cross_compiling=$ac_cv_prog_cc_cross
689
690 cat > conftest.$ac_ext << EOF
691
692 #line 693 "configure"
693 #include "confdefs.h"
694
695 main(){return(0);}
696 EOF
697 if { (eval echo configure:698: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
698   ac_cv_prog_cc_works=yes
699   # If we can't run a trivial program, we are probably using a cross compiler.
700   if (./conftest; exit) 2>/dev/null; then
701     ac_cv_prog_cc_cross=no
702   else
703     ac_cv_prog_cc_cross=yes
704   fi
705 else
706   echo "configure: failed program was:" >&5
707   cat conftest.$ac_ext >&5
708   ac_cv_prog_cc_works=no
709 fi
710 rm -fr conftest*
711 ac_ext=c
712 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
713 ac_cpp='$CPP $CPPFLAGS'
714 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
715 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
716 cross_compiling=$ac_cv_prog_cc_cross
717
718 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
719 if test $ac_cv_prog_cc_works = no; then
720   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
721 fi
722 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
723 echo "configure:724: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
724 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
725 cross_compiling=$ac_cv_prog_cc_cross
726
727 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
728 echo "configure:729: checking whether we are using GNU C" >&5
729 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
730   echo $ac_n "(cached) $ac_c" 1>&6
731 else
732   cat > conftest.c <<EOF
733 #ifdef __GNUC__
734   yes;
735 #endif
736 EOF
737 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:738: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
738   ac_cv_prog_gcc=yes
739 else
740   ac_cv_prog_gcc=no
741 fi
742 fi
743
744 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
745
746 if test $ac_cv_prog_gcc = yes; then
747   GCC=yes
748 else
749   GCC=
750 fi
751
752 ac_test_CFLAGS="${CFLAGS+set}"
753 ac_save_CFLAGS="$CFLAGS"
754 CFLAGS=
755 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
756 echo "configure:757: checking whether ${CC-cc} accepts -g" >&5
757 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
758   echo $ac_n "(cached) $ac_c" 1>&6
759 else
760   echo 'void f(){}' > conftest.c
761 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
762   ac_cv_prog_cc_g=yes
763 else
764   ac_cv_prog_cc_g=no
765 fi
766 rm -f conftest*
767
768 fi
769
770 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
771 if test "$ac_test_CFLAGS" = set; then
772   CFLAGS="$ac_save_CFLAGS"
773 elif test $ac_cv_prog_cc_g = yes; then
774   if test "$GCC" = yes; then
775     CFLAGS="-g -O2"
776   else
777     CFLAGS="-g"
778   fi
779 else
780   if test "$GCC" = yes; then
781     CFLAGS="-O2"
782   else
783     CFLAGS=
784   fi
785 fi
786
787 else
788     CC=${CC-cc}
789     
790 fi
791 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
792 echo "configure:793: checking how to run the C preprocessor" >&5
793 # On Suns, sometimes $CPP names a directory.
794 if test -n "$CPP" && test -d "$CPP"; then
795   CPP=
796 fi
797 if test -z "$CPP"; then
798 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
799   echo $ac_n "(cached) $ac_c" 1>&6
800 else
801     # This must be in double quotes, not single quotes, because CPP may get
802   # substituted into the Makefile and "${CC-cc}" will confuse make.
803   CPP="${CC-cc} -E"
804   # On the NeXT, cc -E runs the code through the compiler's parser,
805   # not just through cpp.
806   cat > conftest.$ac_ext <<EOF
807 #line 808 "configure"
808 #include "confdefs.h"
809 #include <assert.h>
810 Syntax Error
811 EOF
812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
813 { (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
814 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
815 if test -z "$ac_err"; then
816   :
817 else
818   echo "$ac_err" >&5
819   echo "configure: failed program was:" >&5
820   cat conftest.$ac_ext >&5
821   rm -rf conftest*
822   CPP="${CC-cc} -E -traditional-cpp"
823   cat > conftest.$ac_ext <<EOF
824 #line 825 "configure"
825 #include "confdefs.h"
826 #include <assert.h>
827 Syntax Error
828 EOF
829 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
830 { (eval echo configure:831: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
831 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
832 if test -z "$ac_err"; then
833   :
834 else
835   echo "$ac_err" >&5
836   echo "configure: failed program was:" >&5
837   cat conftest.$ac_ext >&5
838   rm -rf conftest*
839   CPP="${CC-cc} -nologo -E"
840   cat > conftest.$ac_ext <<EOF
841 #line 842 "configure"
842 #include "confdefs.h"
843 #include <assert.h>
844 Syntax Error
845 EOF
846 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
847 { (eval echo configure:848: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
848 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
849 if test -z "$ac_err"; then
850   :
851 else
852   echo "$ac_err" >&5
853   echo "configure: failed program was:" >&5
854   cat conftest.$ac_ext >&5
855   rm -rf conftest*
856   CPP=/lib/cpp
857 fi
858 rm -f conftest*
859 fi
860 rm -f conftest*
861 fi
862 rm -f conftest*
863   ac_cv_prog_CPP="$CPP"
864 fi
865   CPP="$ac_cv_prog_CPP"
866 else
867   ac_cv_prog_CPP="$CPP"
868 fi
869 echo "$ac_t""$CPP" 1>&6
870
871
872 # Check whether --enable-gcc or --disable-gcc was given.
873 if test "${enable_gcc+set}" = set; then
874   enableval="$enable_gcc"
875   neo_ok=$enableval
876 else
877   neo_ok=no
878 fi
879
880 if test "$neo_ok" = "yes"; then
881     # Extract the first word of "gcc", so it can be a program name with args.
882 set dummy gcc; ac_word=$2
883 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
884 echo "configure:885: checking for $ac_word" >&5
885 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
886   echo $ac_n "(cached) $ac_c" 1>&6
887 else
888   if test -n "$CC"; then
889   ac_cv_prog_CC="$CC" # Let the user override the test.
890 else
891   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
892   ac_dummy="$PATH"
893   for ac_dir in $ac_dummy; do
894     test -z "$ac_dir" && ac_dir=.
895     if test -f $ac_dir/$ac_word; then
896       ac_cv_prog_CC="gcc"
897       break
898     fi
899   done
900   IFS="$ac_save_ifs"
901 fi
902 fi
903 CC="$ac_cv_prog_CC"
904 if test -n "$CC"; then
905   echo "$ac_t""$CC" 1>&6
906 else
907   echo "$ac_t""no" 1>&6
908 fi
909
910 if test -z "$CC"; then
911   # Extract the first word of "cc", so it can be a program name with args.
912 set dummy cc; ac_word=$2
913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
914 echo "configure:915: checking for $ac_word" >&5
915 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
916   echo $ac_n "(cached) $ac_c" 1>&6
917 else
918   if test -n "$CC"; then
919   ac_cv_prog_CC="$CC" # Let the user override the test.
920 else
921   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
922   ac_prog_rejected=no
923   ac_dummy="$PATH"
924   for ac_dir in $ac_dummy; do
925     test -z "$ac_dir" && ac_dir=.
926     if test -f $ac_dir/$ac_word; then
927       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
928         ac_prog_rejected=yes
929         continue
930       fi
931       ac_cv_prog_CC="cc"
932       break
933     fi
934   done
935   IFS="$ac_save_ifs"
936 if test $ac_prog_rejected = yes; then
937   # We found a bogon in the path, so make sure we never use it.
938   set dummy $ac_cv_prog_CC
939   shift
940   if test $# -gt 0; then
941     # We chose a different compiler from the bogus one.
942     # However, it has the same basename, so the bogon will be chosen
943     # first if we set CC to just the basename; use the full file name.
944     shift
945     set dummy "$ac_dir/$ac_word" "$@"
946     shift
947     ac_cv_prog_CC="$@"
948   fi
949 fi
950 fi
951 fi
952 CC="$ac_cv_prog_CC"
953 if test -n "$CC"; then
954   echo "$ac_t""$CC" 1>&6
955 else
956   echo "$ac_t""no" 1>&6
957 fi
958
959   if test -z "$CC"; then
960     case "`uname -s`" in
961     *win32* | *WIN32*)
962       # Extract the first word of "cl", so it can be a program name with args.
963 set dummy cl; ac_word=$2
964 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
965 echo "configure:966: checking for $ac_word" >&5
966 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
967   echo $ac_n "(cached) $ac_c" 1>&6
968 else
969   if test -n "$CC"; then
970   ac_cv_prog_CC="$CC" # Let the user override the test.
971 else
972   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
973   ac_dummy="$PATH"
974   for ac_dir in $ac_dummy; do
975     test -z "$ac_dir" && ac_dir=.
976     if test -f $ac_dir/$ac_word; then
977       ac_cv_prog_CC="cl"
978       break
979     fi
980   done
981   IFS="$ac_save_ifs"
982 fi
983 fi
984 CC="$ac_cv_prog_CC"
985 if test -n "$CC"; then
986   echo "$ac_t""$CC" 1>&6
987 else
988   echo "$ac_t""no" 1>&6
989 fi
990  ;;
991     esac
992   fi
993   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
994 fi
995
996 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
997 echo "configure:998: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
998
999 ac_ext=c
1000 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1001 ac_cpp='$CPP $CPPFLAGS'
1002 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1003 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1004 cross_compiling=$ac_cv_prog_cc_cross
1005
1006 cat > conftest.$ac_ext << EOF
1007
1008 #line 1009 "configure"
1009 #include "confdefs.h"
1010
1011 main(){return(0);}
1012 EOF
1013 if { (eval echo configure:1014: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1014   ac_cv_prog_cc_works=yes
1015   # If we can't run a trivial program, we are probably using a cross compiler.
1016   if (./conftest; exit) 2>/dev/null; then
1017     ac_cv_prog_cc_cross=no
1018   else
1019     ac_cv_prog_cc_cross=yes
1020   fi
1021 else
1022   echo "configure: failed program was:" >&5
1023   cat conftest.$ac_ext >&5
1024   ac_cv_prog_cc_works=no
1025 fi
1026 rm -fr conftest*
1027 ac_ext=c
1028 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1029 ac_cpp='$CPP $CPPFLAGS'
1030 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1031 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1032 cross_compiling=$ac_cv_prog_cc_cross
1033
1034 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1035 if test $ac_cv_prog_cc_works = no; then
1036   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1037 fi
1038 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1039 echo "configure:1040: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1040 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1041 cross_compiling=$ac_cv_prog_cc_cross
1042
1043 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1044 echo "configure:1045: checking whether we are using GNU C" >&5
1045 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1046   echo $ac_n "(cached) $ac_c" 1>&6
1047 else
1048   cat > conftest.c <<EOF
1049 #ifdef __GNUC__
1050   yes;
1051 #endif
1052 EOF
1053 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1054: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1054   ac_cv_prog_gcc=yes
1055 else
1056   ac_cv_prog_gcc=no
1057 fi
1058 fi
1059
1060 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1061
1062 if test $ac_cv_prog_gcc = yes; then
1063   GCC=yes
1064 else
1065   GCC=
1066 fi
1067
1068 ac_test_CFLAGS="${CFLAGS+set}"
1069 ac_save_CFLAGS="$CFLAGS"
1070 CFLAGS=
1071 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1072 echo "configure:1073: checking whether ${CC-cc} accepts -g" >&5
1073 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1074   echo $ac_n "(cached) $ac_c" 1>&6
1075 else
1076   echo 'void f(){}' > conftest.c
1077 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1078   ac_cv_prog_cc_g=yes
1079 else
1080   ac_cv_prog_cc_g=no
1081 fi
1082 rm -f conftest*
1083
1084 fi
1085
1086 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1087 if test "$ac_test_CFLAGS" = set; then
1088   CFLAGS="$ac_save_CFLAGS"
1089 elif test $ac_cv_prog_cc_g = yes; then
1090   if test "$GCC" = yes; then
1091     CFLAGS="-g -O2"
1092   else
1093     CFLAGS="-g"
1094   fi
1095 else
1096   if test "$GCC" = yes; then
1097     CFLAGS="-O2"
1098   else
1099     CFLAGS=
1100   fi
1101 fi
1102
1103 else
1104     CC=${CC-cc}
1105
1106 fi
1107
1108 ac_aux_dir=
1109 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1110   if test -f $ac_dir/install-sh; then
1111     ac_aux_dir=$ac_dir
1112     ac_install_sh="$ac_aux_dir/install-sh -c"
1113     break
1114   elif test -f $ac_dir/install.sh; then
1115     ac_aux_dir=$ac_dir
1116     ac_install_sh="$ac_aux_dir/install.sh -c"
1117     break
1118   fi
1119 done
1120 if test -z "$ac_aux_dir"; then
1121   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
1122 fi
1123 ac_config_guess=$ac_aux_dir/config.guess
1124 ac_config_sub=$ac_aux_dir/config.sub
1125 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
1126
1127 # Find a good install program.  We prefer a C program (faster),
1128 # so one script is as good as another.  But avoid the broken or
1129 # incompatible versions:
1130 # SysV /etc/install, /usr/sbin/install
1131 # SunOS /usr/etc/install
1132 # IRIX /sbin/install
1133 # AIX /bin/install
1134 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1135 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1136 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1137 # ./install, which can be erroneously created by make from ./install.sh.
1138 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1139 echo "configure:1140: checking for a BSD compatible install" >&5
1140 if test -z "$INSTALL"; then
1141 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1142   echo $ac_n "(cached) $ac_c" 1>&6
1143 else
1144     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS=":"
1145   for ac_dir in $PATH; do
1146     # Account for people who put trailing slashes in PATH elements.
1147     case "$ac_dir/" in
1148     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1149     *)
1150       # OSF1 and SCO ODT 3.0 have their own names for install.
1151       # Don't use installbsd from OSF since it installs stuff as root
1152       # by default.
1153       for ac_prog in ginstall scoinst install; do
1154         if test -f $ac_dir/$ac_prog; then
1155           if test $ac_prog = install &&
1156             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1157             # AIX install.  It has an incompatible calling convention.
1158             :
1159           else
1160             ac_cv_path_install="$ac_dir/$ac_prog -c"
1161             break 2
1162           fi
1163         fi
1164       done
1165       ;;
1166     esac
1167   done
1168   IFS="$ac_save_IFS"
1169
1170 fi
1171   if test "${ac_cv_path_install+set}" = set; then
1172     INSTALL="$ac_cv_path_install"
1173   else
1174     # As a last resort, use the slow shell script.  We don't cache a
1175     # path for INSTALL within a source directory, because that will
1176     # break other packages using the cache if that directory is
1177     # removed, or if the path is relative.
1178     INSTALL="$ac_install_sh"
1179   fi
1180 fi
1181 echo "$ac_t""$INSTALL" 1>&6
1182
1183 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1184 # It thinks the first close brace ends the variable substitution.
1185 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1186
1187 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
1188
1189 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1190
1191 # Extract the first word of "ranlib", so it can be a program name with args.
1192 set dummy ranlib; ac_word=$2
1193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194 echo "configure:1195: checking for $ac_word" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1196   echo $ac_n "(cached) $ac_c" 1>&6
1197 else
1198   if test -n "$RANLIB"; then
1199   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1200 else
1201   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
1202   ac_dummy="$PATH"
1203   for ac_dir in $ac_dummy; do
1204     test -z "$ac_dir" && ac_dir=.
1205     if test -f $ac_dir/$ac_word; then
1206       ac_cv_prog_RANLIB="ranlib"
1207       break
1208     fi
1209   done
1210   IFS="$ac_save_ifs"
1211   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1212 fi
1213 fi
1214 RANLIB="$ac_cv_prog_RANLIB"
1215 if test -n "$RANLIB"; then
1216   echo "$ac_t""$RANLIB" 1>&6
1217 else
1218   echo "$ac_t""no" 1>&6
1219 fi
1220
1221
1222 if test ! -f $exec_prefix/lib/tclConfig.sh
1223 then
1224     { echo "configure: error: Tcl must be installed first" 1>&2; exit 1; }
1225 fi
1226
1227 . $exec_prefix/lib/tclConfig.sh
1228
1229 if test ! -f $exec_prefix/lib/tclxConfig.sh
1230 then
1231     { echo "configure: error: Extended Tcl must be installed first" 1>&2; exit 1; }
1232 fi
1233 . $exec_prefix/lib/tclxConfig.sh
1234
1235
1236 #--------------------------------------------------------------------
1237 #       See if there was a command-line option for where Tk is;  if
1238 #       not, assume that its top-level directory is a sibling of ours.
1239 #--------------------------------------------------------------------
1240
1241 # Check whether --with-tk or --without-tk was given.
1242 if test "${with_tk+set}" = set; then
1243   withval="$with_tk"
1244   :
1245 else
1246   with_tk=yes
1247 fi
1248
1249
1250 case "$with_tk" in
1251     yes)
1252         if test -f $exec_prefix/lib/tkConfig.sh -a $exec_prefix/lib/tkxConfig.sh
1253         then
1254             :
1255         else
1256             { echo "configure: error: Tk does not appear to be installed at $exec_prefix" 1>&2; exit 1; }
1257         fi
1258         ;;
1259     no) ;;
1260     *)  { echo "configure: error: Tk cannot be specified and must be in $exec_prefix" 1>&2; exit 1; }
1261         ;;
1262 esac
1263
1264 # Check whether --with-x or --without-x was given.
1265 if test "${with_x+set}" = set; then
1266   withval="$with_x"
1267   :
1268 fi
1269
1270 if test "$with_x" = "no"
1271 then
1272     with_tk=no
1273 fi
1274
1275 if test "$with_tk" != "no"
1276 then
1277     LDAPWISH=ldapwish
1278     . $exec_prefix/lib/tkConfig.sh
1279     . $exec_prefix/lib/tkxConfig.sh
1280 fi
1281
1282
1283
1284
1285
1286
1287
1288 #--------------------------------------------------------------------
1289 #       Read in configuration information generated by Tcl for shared
1290 #       libraries, and arrange for it to be substituted into our
1291 #       Makefile.
1292 #--------------------------------------------------------------------
1293
1294 CC=$TCL_CC
1295 SHLIB_CFLAGS=$TCL_SHLIB_CFLAGS
1296 SHLIB_LD=$TCL_SHLIB_LD
1297 SHLIB_LD_LIBS=$TCL_SHLIB_LD_LIBS
1298 SHLIB_SUFFIX=$TCL_SHLIB_SUFFIX
1299 SHLIB_VERSION=$TCL_SHLIB_VERSION
1300 DL_LIBS=$TCL_DL_LIBS
1301 LD_FLAGS=$TCL_LD_FLAGS
1302 NEO_LD_SEARCH_FLAGS=$TCL_LD_SEARCH_FLAGS
1303
1304 eval "NEO_SHARED_LIB_FILE=libldaptcl${TCL_SHARED_LIB_SUFFIX}"
1305 eval "NEO_UNSHARED_LIB_FILE=libldaptcl${TCL_UNSHARED_LIB_SUFFIX}"
1306
1307 #--------------------------------------------------------------------
1308 #       The statements below define a collection of symbols related to
1309 #       building libldap as a shared library instead of a static library.
1310 #--------------------------------------------------------------------
1311
1312 # Warning: in order to use the following code for libldap and libdb versions,
1313 # the VERSION shell variable is modified, and then is restored after.
1314
1315 # Check whether --enable-shared or --disable-shared was given.
1316 if test "${enable_shared+set}" = set; then
1317   enableval="$enable_shared"
1318   ok=$enableval
1319 else
1320   ok=no
1321 fi
1322
1323 if test "$ok" = "yes" -a "${SHLIB_SUFFIX}" != ""; then
1324     NEO_SHLIB_CFLAGS="${SHLIB_CFLAGS}"
1325     eval "NEO_LIB_FILE=libldaptcl${TCL_SHARED_LIB_SUFFIX}"
1326     MAKE_LIB="\${SHLIB_LD} $TCL_LIB_HNAME -o ${NEO_LIB_FILE} \${OBJS} \${LDAP_LIBFLAGS}"
1327     RANLIB=":"
1328 else
1329     NEO_SHLIB_CFLAGS=""
1330     eval "NEO_LIB_FILE=libldaptcl${TCL_UNSHARED_LIB_SUFFIX}"
1331     MAKE_LIB="ar cr ${NEO_LIB_FILE} \${OBJS}"
1332 fi
1333
1334 # Check whether --with-ldap or --without-ldap was given.
1335 if test "${with_ldap+set}" = set; then
1336   withval="$with_ldap"
1337   neo_ldap=$withval
1338         case $withval in
1339             yes) ldapdir=/usr/local
1340                  ;;
1341             no)  ;;
1342             *)   ldapdir=$withval
1343                  neo_ldap=yes
1344                  ;;
1345         esac
1346         
1347 else
1348   
1349             neo_ldap=yes
1350             ldapdir=/usr/local
1351         
1352 fi
1353
1354
1355 ldapincdir=$ldapdir/include
1356 # Check whether --with-ldap-incdir or --without-ldap-incdir was given.
1357 if test "${with_ldap_incdir+set}" = set; then
1358   withval="$with_ldap_incdir"
1359   ldapincdir=$withval
1360 fi
1361
1362
1363 ldaplibdir=$ldapdir/lib
1364 # Check whether --with-ldap-libdir or --without-ldap-libdir was given.
1365 if test "${with_ldap_libdir+set}" = set; then
1366   withval="$with_ldap_libdir"
1367   ldapincdir=$withval
1368 fi
1369
1370
1371 # Check whether --with-ldap-libraries or --without-ldap-libraries was given.
1372 if test "${with_ldap_libraries+set}" = set; then
1373   withval="$with_ldap_libraries"
1374   ldaplibflags="-L$ldaplibdir $withval"
1375 else
1376   ldaplibflags="-L$ldaplibdir -lldap -llber"
1377 fi
1378
1379
1380 ldapinclude="-I$ldapincdir"
1381
1382 ldapbuild=yes
1383
1384
1385
1386
1387
1388
1389
1390
1391 VERSION=${NEO_VERSION}
1392 # Note:  in the following variable, it's important to use the absolute
1393 # path name of the Tcl directory rather than "..":  this is because
1394 # AIX remembers this path and will attempt to use it at run-time to look
1395 # up the Tcl library.
1396
1397 if test "${TCL_LIB_VERSIONS_OK}" = "ok"; then
1398     NEO_BUILD_LIB_SPEC="-L`pwd` -lldaptcl${VERSION}"
1399     NEO_LIB_SPEC="-L${exec_prefix}/lib -lldaptcl${VERSION}"
1400 else
1401     NEO_BUILD_LIB_SPEC="-L`pwd` -lldaptcl`echo ${VERSION} | tr -d .`"
1402     NEO_LIB_SPEC="-L${exec_prefix}/lib -lldaptcl`echo ${VERSION} | tr -d .`"
1403 fi
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439 trap '' 1 2 15
1440 cat > confcache <<\EOF
1441 # This file is a shell script that caches the results of configure
1442 # tests run on this system so they can be shared between configure
1443 # scripts and configure runs.  It is not useful on other systems.
1444 # If it contains results you don't want to keep, you may remove or edit it.
1445 #
1446 # By default, configure uses ./config.cache as the cache file,
1447 # creating it if it does not exist already.  You can give configure
1448 # the --cache-file=FILE option to use a different cache file; that is
1449 # what configure does when it calls configure scripts in
1450 # subdirectories, so they share the cache.
1451 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1452 # config.status only pays attention to the cache file if you give it the
1453 # --recheck option to rerun configure.
1454 #
1455 EOF
1456 # The following way of writing the cache mishandles newlines in values,
1457 # but we know of no workaround that is simple, portable, and efficient.
1458 # So, don't put newlines in cache variables' values.
1459 # Ultrix sh set writes to stderr and can't be redirected directly,
1460 # and sets the high bit in the cache file unless we assign to the vars.
1461 (set) 2>&1 |
1462   case `(ac_space=' '; set | grep ac_space) 2>&1` in
1463   *ac_space=\ *)
1464     # `set' does not quote correctly, so add quotes (double-quote substitution
1465     # turns \\\\ into \\, and sed turns \\ into \).
1466     sed -n \
1467       -e "s/'/'\\\\''/g" \
1468       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1469     ;;
1470   *)
1471     # `set' quotes correctly as required by POSIX, so do not add quotes.
1472     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1473     ;;
1474   esac >> confcache
1475 if cmp -s $cache_file confcache; then
1476   :
1477 else
1478   if test -w $cache_file; then
1479     echo "updating cache $cache_file"
1480     cat confcache > $cache_file
1481   else
1482     echo "not updating unwritable cache $cache_file"
1483   fi
1484 fi
1485 rm -f confcache
1486
1487 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1488
1489 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1490 # Let make expand exec_prefix.
1491 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1492
1493 # Any assignment to VPATH causes Sun make to only execute
1494 # the first set of double-colon rules, so remove it if not needed.
1495 # If there is a colon in the path, we need to keep it.
1496 if test "x$srcdir" = x.; then
1497   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1498 fi
1499
1500 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1501
1502 # Transform confdefs.h into DEFS.
1503 # Protect against shell expansion while executing Makefile rules.
1504 # Protect against Makefile macro expansion.
1505 cat > conftest.defs <<\EOF
1506 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
1507 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
1508 s%\[%\\&%g
1509 s%\]%\\&%g
1510 s%\$%$$%g
1511 EOF
1512 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
1513 rm -f conftest.defs
1514
1515
1516 # Without the "./", some shells look in PATH for config.status.
1517 : ${CONFIG_STATUS=./config.status}
1518
1519 echo creating $CONFIG_STATUS
1520 rm -f $CONFIG_STATUS
1521 cat > $CONFIG_STATUS <<EOF
1522 #! /bin/sh
1523 # Generated automatically by configure.
1524 # Run this file to recreate the current configuration.
1525 # This directory was configured as follows,
1526 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1527 #
1528 # $0 $ac_configure_args
1529 #
1530 # Compiler output produced by configure, useful for debugging
1531 # configure, is in ./config.log if it exists.
1532
1533 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1534 for ac_option
1535 do
1536   case "\$ac_option" in
1537   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1538     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1539     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1540   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1541     echo "$CONFIG_STATUS generated by autoconf version 2.13"
1542     exit 0 ;;
1543   -help | --help | --hel | --he | --h)
1544     echo "\$ac_cs_usage"; exit 0 ;;
1545   *) echo "\$ac_cs_usage"; exit 1 ;;
1546   esac
1547 done
1548
1549 ac_given_srcdir=$srcdir
1550 ac_given_INSTALL="$INSTALL"
1551
1552 trap 'rm -fr `echo "Makefile pkgIndex.tcl" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1553 EOF
1554 cat >> $CONFIG_STATUS <<EOF
1555
1556 # Protect against being on the right side of a sed subst in config.status.
1557 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1558  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1559 $ac_vpsub
1560 $extrasub
1561 s%@SHELL@%$SHELL%g
1562 s%@CFLAGS@%$CFLAGS%g
1563 s%@CPPFLAGS@%$CPPFLAGS%g
1564 s%@CXXFLAGS@%$CXXFLAGS%g
1565 s%@FFLAGS@%$FFLAGS%g
1566 s%@DEFS@%$DEFS%g
1567 s%@LDFLAGS@%$LDFLAGS%g
1568 s%@LIBS@%$LIBS%g
1569 s%@exec_prefix@%$exec_prefix%g
1570 s%@prefix@%$prefix%g
1571 s%@program_transform_name@%$program_transform_name%g
1572 s%@bindir@%$bindir%g
1573 s%@sbindir@%$sbindir%g
1574 s%@libexecdir@%$libexecdir%g
1575 s%@datadir@%$datadir%g
1576 s%@sysconfdir@%$sysconfdir%g
1577 s%@sharedstatedir@%$sharedstatedir%g
1578 s%@localstatedir@%$localstatedir%g
1579 s%@libdir@%$libdir%g
1580 s%@includedir@%$includedir%g
1581 s%@oldincludedir@%$oldincludedir%g
1582 s%@infodir@%$infodir%g
1583 s%@mandir@%$mandir%g
1584 s%@CC@%$CC%g
1585 s%@CPP@%$CPP%g
1586 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1587 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
1588 s%@INSTALL_DATA@%$INSTALL_DATA%g
1589 s%@RANLIB@%$RANLIB%g
1590 s%@TK_LIBS@%$TK_LIBS%g
1591 s%@TK_LIB_SPEC@%$TK_LIB_SPEC%g
1592 s%@TK_XINCLUDES@%$TK_XINCLUDES%g
1593 s%@TK_VERSION@%$TK_VERSION%g
1594 s%@TKX_LIB_SPEC@%$TKX_LIB_SPEC%g
1595 s%@LDAPWISH@%$LDAPWISH%g
1596 s%@ldaplibflags@%$ldaplibflags%g
1597 s%@ldapinclude@%$ldapinclude%g
1598 s%@ldapbuild@%$ldapbuild%g
1599 s%@ldapdir@%$ldapdir%g
1600 s%@ldapincdir@%$ldapincdir%g
1601 s%@DL_LIBS@%$DL_LIBS%g
1602 s%@LD_FLAGS@%$LD_FLAGS%g
1603 s%@MATH_LIBS@%$MATH_LIBS%g
1604 s%@MAKE_LIB@%$MAKE_LIB%g
1605 s%@SHLIB_CFLAGS@%$SHLIB_CFLAGS%g
1606 s%@SHLIB_LD@%$SHLIB_LD%g
1607 s%@SHLIB_LD_LIBS@%$SHLIB_LD_LIBS%g
1608 s%@SHLIB_SUFFIX@%$SHLIB_SUFFIX%g
1609 s%@SHLIB_VERSION@%$SHLIB_VERSION%g
1610 s%@TCLX_TOP_DIR@%$TCLX_TOP_DIR%g
1611 s%@TCLX_TCL_DIR@%$TCLX_TCL_DIR%g
1612 s%@TCLX_LIB_SPEC@%$TCLX_LIB_SPEC%g
1613 s%@ITCL_LIB_SPEC@%$ITCL_LIB_SPEC%g
1614 s%@TCL_LIBS@%$TCL_LIBS%g
1615 s%@TCL_SRC_DIR@%$TCL_SRC_DIR%g
1616 s%@TCL_BIN_DIR@%$TCL_BIN_DIR%g
1617 s%@TCL_LIB_SPEC@%$TCL_LIB_SPEC%g
1618 s%@TCL_LD_SEARCH_FLAGS@%$TCL_LD_SEARCH_FLAGS%g
1619 s%@TCL_LIB_HNAME@%$TCL_LIB_HNAME%g
1620 s%@TCL_VERSION@%$TCL_VERSION%g
1621 s%@NEO_BUILD_LIB_SPEC@%$NEO_BUILD_LIB_SPEC%g
1622 s%@NEO_LD_SEARCH_FLAGS@%$NEO_LD_SEARCH_FLAGS%g
1623 s%@NEO_SHARED_LIB_FILE@%$NEO_SHARED_LIB_FILE%g
1624 s%@NEO_UNSHARED_LIB_FILE@%$NEO_UNSHARED_LIB_FILE%g
1625 s%@NEO_LIB_FILE@%$NEO_LIB_FILE%g
1626 s%@NEO_LIB_SPEC@%$NEO_LIB_SPEC%g
1627 s%@NEO_MAJOR_VERSION@%$NEO_MAJOR_VERSION%g
1628 s%@NEO_MINOR_VERSION@%$NEO_MINOR_VERSION%g
1629 s%@NEO_SHLIB_CFLAGS@%$NEO_SHLIB_CFLAGS%g
1630 s%@NEO_VERSION@%$NEO_VERSION%g
1631
1632 CEOF
1633 EOF
1634
1635 cat >> $CONFIG_STATUS <<\EOF
1636
1637 # Split the substitutions into bite-sized pieces for seds with
1638 # small command number limits, like on Digital OSF/1 and HP-UX.
1639 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1640 ac_file=1 # Number of current file.
1641 ac_beg=1 # First line for current file.
1642 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1643 ac_more_lines=:
1644 ac_sed_cmds=""
1645 while $ac_more_lines; do
1646   if test $ac_beg -gt 1; then
1647     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1648   else
1649     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1650   fi
1651   if test ! -s conftest.s$ac_file; then
1652     ac_more_lines=false
1653     rm -f conftest.s$ac_file
1654   else
1655     if test -z "$ac_sed_cmds"; then
1656       ac_sed_cmds="sed -f conftest.s$ac_file"
1657     else
1658       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1659     fi
1660     ac_file=`expr $ac_file + 1`
1661     ac_beg=$ac_end
1662     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1663   fi
1664 done
1665 if test -z "$ac_sed_cmds"; then
1666   ac_sed_cmds=cat
1667 fi
1668 EOF
1669
1670 cat >> $CONFIG_STATUS <<EOF
1671
1672 CONFIG_FILES=\${CONFIG_FILES-"Makefile pkgIndex.tcl"}
1673 EOF
1674 cat >> $CONFIG_STATUS <<\EOF
1675 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1676   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1677   case "$ac_file" in
1678   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1679        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1680   *) ac_file_in="${ac_file}.in" ;;
1681   esac
1682
1683   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1684
1685   # Remove last slash and all that follows it.  Not all systems have dirname.
1686   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1687   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1688     # The file is in a subdirectory.
1689     test ! -d "$ac_dir" && mkdir "$ac_dir"
1690     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1691     # A "../" for each directory in $ac_dir_suffix.
1692     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1693   else
1694     ac_dir_suffix= ac_dots=
1695   fi
1696
1697   case "$ac_given_srcdir" in
1698   .)  srcdir=.
1699       if test -z "$ac_dots"; then top_srcdir=.
1700       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1701   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1702   *) # Relative path.
1703     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1704     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1705   esac
1706
1707   case "$ac_given_INSTALL" in
1708   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1709   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1710   esac
1711
1712   echo creating "$ac_file"
1713   rm -f "$ac_file"
1714   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1715   case "$ac_file" in
1716   *Makefile*) ac_comsub="1i\\
1717 # $configure_input" ;;
1718   *) ac_comsub= ;;
1719   esac
1720
1721   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1722   sed -e "$ac_comsub
1723 s%@configure_input@%$configure_input%g
1724 s%@srcdir@%$srcdir%g
1725 s%@top_srcdir@%$top_srcdir%g
1726 s%@INSTALL@%$INSTALL%g
1727 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1728 fi; done
1729 rm -f conftest.s*
1730
1731 EOF
1732 cat >> $CONFIG_STATUS <<EOF
1733
1734 EOF
1735 cat >> $CONFIG_STATUS <<\EOF
1736
1737 exit 0
1738 EOF
1739 chmod +x $CONFIG_STATUS
1740 rm -fr confdefs* $ac_clean_files
1741 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1742