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