Bulk add of the test suite for libsmbclient ...
[sfrench/samba-autobuild/.git] / docs / docbook / 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   --with-sgml-share=DIR   change the default location of SGML stylesheets"
16
17 # Initialize some variables set by options.
18 # The variables have the same names as the options, with
19 # dashes changed to underlines.
20 build=NONE
21 cache_file=./config.cache
22 exec_prefix=NONE
23 host=NONE
24 no_create=
25 nonopt=NONE
26 no_recursion=
27 prefix=NONE
28 program_prefix=NONE
29 program_suffix=NONE
30 program_transform_name=s,x,x,
31 silent=
32 site=
33 srcdir=
34 target=NONE
35 verbose=
36 x_includes=NONE
37 x_libraries=NONE
38 bindir='${exec_prefix}/bin'
39 sbindir='${exec_prefix}/sbin'
40 libexecdir='${exec_prefix}/libexec'
41 datadir='${prefix}/share'
42 sysconfdir='${prefix}/etc'
43 sharedstatedir='${prefix}/com'
44 localstatedir='${prefix}/var'
45 libdir='${exec_prefix}/lib'
46 includedir='${prefix}/include'
47 oldincludedir='/usr/include'
48 infodir='${prefix}/info'
49 mandir='${prefix}/man'
50
51 # Initialize some other variables.
52 subdirs=
53 MFLAGS= MAKEFLAGS=
54 SHELL=${CONFIG_SHELL-/bin/sh}
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62   # If the previous option needs an argument, assign it.
63   if test -n "$ac_prev"; then
64     eval "$ac_prev=\$ac_option"
65     ac_prev=
66     continue
67   fi
68
69   case "$ac_option" in
70   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71   *) ac_optarg= ;;
72   esac
73
74   # Accept the important Cygnus configure options, so we can diagnose typos.
75
76   case "$ac_option" in
77
78   -bindir | --bindir | --bindi | --bind | --bin | --bi)
79     ac_prev=bindir ;;
80   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81     bindir="$ac_optarg" ;;
82
83   -build | --build | --buil | --bui | --bu)
84     ac_prev=build ;;
85   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86     build="$ac_optarg" ;;
87
88   -cache-file | --cache-file | --cache-fil | --cache-fi \
89   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90     ac_prev=cache_file ;;
91   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93     cache_file="$ac_optarg" ;;
94
95   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96     ac_prev=datadir ;;
97   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98   | --da=*)
99     datadir="$ac_optarg" ;;
100
101   -disable-* | --disable-*)
102     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103     # Reject names that are not valid shell variable names.
104     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106     fi
107     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108     eval "enable_${ac_feature}=no" ;;
109
110   -enable-* | --enable-*)
111     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112     # Reject names that are not valid shell variable names.
113     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115     fi
116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117     case "$ac_option" in
118       *=*) ;;
119       *) ac_optarg=yes ;;
120     esac
121     eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125   | --exec | --exe | --ex)
126     ac_prev=exec_prefix ;;
127   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129   | --exec=* | --exe=* | --ex=*)
130     exec_prefix="$ac_optarg" ;;
131
132   -gas | --gas | --ga | --g)
133     # Obsolete; use --with-gas.
134     with_gas=yes ;;
135
136   -help | --help | --hel | --he)
137     # Omit some internal or obsolete options to make the list less imposing.
138     # This message is too long to be a string in the A/UX 3.1 sh.
139     cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143   --cache-file=FILE       cache test results in FILE
144   --help                  print this message
145   --no-create             do not create output files
146   --quiet, --silent       do not print \`checking...' messages
147   --version               print the version of autoconf that created configure
148 Directory and file names:
149   --prefix=PREFIX         install architecture-independent files in PREFIX
150                           [$ac_default_prefix]
151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                           [same as prefix]
153   --bindir=DIR            user executables in DIR [EPREFIX/bin]
154   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
155   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
156   --datadir=DIR           read-only architecture-independent data in DIR
157                           [PREFIX/share]
158   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                           [PREFIX/com]
161   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
162   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
163   --includedir=DIR        C header files in DIR [PREFIX/include]
164   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
165   --infodir=DIR           info documentation in DIR [PREFIX/info]
166   --mandir=DIR            man documentation in DIR [PREFIX/man]
167   --srcdir=DIR            find the sources in DIR [configure dir or ..]
168   --program-prefix=PREFIX prepend PREFIX to installed program names
169   --program-suffix=SUFFIX append SUFFIX to installed program names
170   --program-transform-name=PROGRAM
171                           run sed PROGRAM on installed program names
172 EOF
173     cat << EOF
174 Host type:
175   --build=BUILD           configure for building on BUILD [BUILD=HOST]
176   --host=HOST             configure for HOST [guessed]
177   --target=TARGET         configure for TARGET [TARGET=HOST]
178 Features and packages:
179   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
180   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
181   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
182   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
183   --x-includes=DIR        X include files are in DIR
184   --x-libraries=DIR       X library files are in DIR
185 EOF
186     if test -n "$ac_help"; then
187       echo "--enable and --with options recognized:$ac_help"
188     fi
189     exit 0 ;;
190
191   -host | --host | --hos | --ho)
192     ac_prev=host ;;
193   -host=* | --host=* | --hos=* | --ho=*)
194     host="$ac_optarg" ;;
195
196   -includedir | --includedir | --includedi | --included | --include \
197   | --includ | --inclu | --incl | --inc)
198     ac_prev=includedir ;;
199   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200   | --includ=* | --inclu=* | --incl=* | --inc=*)
201     includedir="$ac_optarg" ;;
202
203   -infodir | --infodir | --infodi | --infod | --info | --inf)
204     ac_prev=infodir ;;
205   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206     infodir="$ac_optarg" ;;
207
208   -libdir | --libdir | --libdi | --libd)
209     ac_prev=libdir ;;
210   -libdir=* | --libdir=* | --libdi=* | --libd=*)
211     libdir="$ac_optarg" ;;
212
213   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214   | --libexe | --libex | --libe)
215     ac_prev=libexecdir ;;
216   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217   | --libexe=* | --libex=* | --libe=*)
218     libexecdir="$ac_optarg" ;;
219
220   -localstatedir | --localstatedir | --localstatedi | --localstated \
221   | --localstate | --localstat | --localsta | --localst \
222   | --locals | --local | --loca | --loc | --lo)
223     ac_prev=localstatedir ;;
224   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227     localstatedir="$ac_optarg" ;;
228
229   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230     ac_prev=mandir ;;
231   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232     mandir="$ac_optarg" ;;
233
234   -nfp | --nfp | --nf)
235     # Obsolete; use --without-fp.
236     with_fp=no ;;
237
238   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239   | --no-cr | --no-c)
240     no_create=yes ;;
241
242   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244     no_recursion=yes ;;
245
246   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248   | --oldin | --oldi | --old | --ol | --o)
249     ac_prev=oldincludedir ;;
250   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253     oldincludedir="$ac_optarg" ;;
254
255   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256     ac_prev=prefix ;;
257   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258     prefix="$ac_optarg" ;;
259
260   -program-prefix | --program-prefix | --program-prefi | --program-pref \
261   | --program-pre | --program-pr | --program-p)
262     ac_prev=program_prefix ;;
263   -program-prefix=* | --program-prefix=* | --program-prefi=* \
264   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265     program_prefix="$ac_optarg" ;;
266
267   -program-suffix | --program-suffix | --program-suffi | --program-suff \
268   | --program-suf | --program-su | --program-s)
269     ac_prev=program_suffix ;;
270   -program-suffix=* | --program-suffix=* | --program-suffi=* \
271   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272     program_suffix="$ac_optarg" ;;
273
274   -program-transform-name | --program-transform-name \
275   | --program-transform-nam | --program-transform-na \
276   | --program-transform-n | --program-transform- \
277   | --program-transform | --program-transfor \
278   | --program-transfo | --program-transf \
279   | --program-trans | --program-tran \
280   | --progr-tra | --program-tr | --program-t)
281     ac_prev=program_transform_name ;;
282   -program-transform-name=* | --program-transform-name=* \
283   | --program-transform-nam=* | --program-transform-na=* \
284   | --program-transform-n=* | --program-transform-=* \
285   | --program-transform=* | --program-transfor=* \
286   | --program-transfo=* | --program-transf=* \
287   | --program-trans=* | --program-tran=* \
288   | --progr-tra=* | --program-tr=* | --program-t=*)
289     program_transform_name="$ac_optarg" ;;
290
291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292   | -silent | --silent | --silen | --sile | --sil)
293     silent=yes ;;
294
295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296     ac_prev=sbindir ;;
297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298   | --sbi=* | --sb=*)
299     sbindir="$ac_optarg" ;;
300
301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303   | --sharedst | --shareds | --shared | --share | --shar \
304   | --sha | --sh)
305     ac_prev=sharedstatedir ;;
306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309   | --sha=* | --sh=*)
310     sharedstatedir="$ac_optarg" ;;
311
312   -site | --site | --sit)
313     ac_prev=site ;;
314   -site=* | --site=* | --sit=*)
315     site="$ac_optarg" ;;
316
317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318     ac_prev=srcdir ;;
319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320     srcdir="$ac_optarg" ;;
321
322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323   | --syscon | --sysco | --sysc | --sys | --sy)
324     ac_prev=sysconfdir ;;
325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327     sysconfdir="$ac_optarg" ;;
328
329   -target | --target | --targe | --targ | --tar | --ta | --t)
330     ac_prev=target ;;
331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332     target="$ac_optarg" ;;
333
334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
335     verbose=yes ;;
336
337   -version | --version | --versio | --versi | --vers)
338     echo "configure generated by autoconf version 2.13"
339     exit 0 ;;
340
341   -with-* | --with-*)
342     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343     # Reject names that are not valid shell variable names.
344     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346     fi
347     ac_package=`echo $ac_package| sed 's/-/_/g'`
348     case "$ac_option" in
349       *=*) ;;
350       *) ac_optarg=yes ;;
351     esac
352     eval "with_${ac_package}='$ac_optarg'" ;;
353
354   -without-* | --without-*)
355     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356     # Reject names that are not valid shell variable names.
357     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     eval "with_${ac_package}=no" ;;
362
363   --x)
364     # Obsolete; use --with-x.
365     with_x=yes ;;
366
367   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368   | --x-incl | --x-inc | --x-in | --x-i)
369     ac_prev=x_includes ;;
370   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372     x_includes="$ac_optarg" ;;
373
374   -x-libraries | --x-libraries | --x-librarie | --x-librari \
375   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376     ac_prev=x_libraries ;;
377   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379     x_libraries="$ac_optarg" ;;
380
381   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382     ;;
383
384   *)
385     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386       echo "configure: warning: $ac_option: invalid host type" 1>&2
387     fi
388     if test "x$nonopt" != xNONE; then
389       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390     fi
391     nonopt="$ac_option"
392     ;;
393
394   esac
395 done
396
397 if test -n "$ac_prev"; then
398   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412   exec 6>/dev/null
413 else
414   exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428   case "$ac_arg" in
429   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430   | --no-cr | --no-c) ;;
431   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436   esac
437 done
438
439 # NLS nuisances.
440 # Only set these to C if already set.  These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
448
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
453
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=global.ent
457
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460   ac_srcdir_defaulted=yes
461   # Try the directory containing this script, then its parent.
462   ac_prog=$0
463   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465   srcdir=$ac_confdir
466   if test ! -r $srcdir/$ac_unique_file; then
467     srcdir=..
468   fi
469 else
470   ac_srcdir_defaulted=no
471 fi
472 if test ! -r $srcdir/$ac_unique_file; then
473   if test "$ac_srcdir_defaulted" = yes; then
474     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475   else
476     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477   fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483   if test "x$prefix" != xNONE; then
484     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485   else
486     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487   fi
488 fi
489 for ac_site_file in $CONFIG_SITE; do
490   if test -r "$ac_site_file"; then
491     echo "loading site script $ac_site_file"
492     . "$ac_site_file"
493   fi
494 done
495
496 if test -r "$cache_file"; then
497   echo "loading cache $cache_file"
498   . $cache_file
499 else
500   echo "creating cache $cache_file"
501   > $cache_file
502 fi
503
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
510
511 ac_exeext=
512 ac_objext=o
513 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
514   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
515   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
516     ac_n= ac_c='
517 ' ac_t='        '
518   else
519     ac_n=-n ac_c= ac_t=
520   fi
521 else
522   ac_n= ac_c='\c' ac_t=
523 fi
524
525
526
527 ## check for the necesary install tools
528 # Extract the first word of "openjade", so it can be a program name with args.
529 set dummy openjade; ac_word=$2
530 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
531 echo "configure:532: checking for $ac_word" >&5
532 if eval "test \"`echo '$''{'ac_cv_path_JADE'+set}'`\" = set"; then
533   echo $ac_n "(cached) $ac_c" 1>&6
534 else
535   case "$JADE" in
536   /*)
537   ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
538   ;;
539   ?:/*)                  
540   ac_cv_path_JADE="$JADE" # Let the user override the test with a dos path.
541   ;;
542   *)
543   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
544   ac_dummy="$PATH"
545   for ac_dir in $ac_dummy; do 
546     test -z "$ac_dir" && ac_dir=.
547     if test -f $ac_dir/$ac_word; then
548       ac_cv_path_JADE="$ac_dir/$ac_word"
549       break
550     fi
551   done
552   IFS="$ac_save_ifs"
553   ;;
554 esac
555 fi
556 JADE="$ac_cv_path_JADE"
557 if test -n "$JADE"; then
558   echo "$ac_t""$JADE" 1>&6
559 else
560   echo "$ac_t""no" 1>&6
561 fi
562
563
564 if test -z "$JADE"; then
565         # Extract the first word of "jade", so it can be a program name with args.
566 set dummy jade; 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_path_JADE'+set}'`\" = set"; then
570   echo $ac_n "(cached) $ac_c" 1>&6
571 else
572   case "$JADE" in
573   /*)
574   ac_cv_path_JADE="$JADE" # Let the user override the test with a path.
575   ;;
576   ?:/*)                  
577   ac_cv_path_JADE="$JADE" # Let the user override the test with a dos path.
578   ;;
579   *)
580   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
581   ac_dummy="$PATH"
582   for ac_dir in $ac_dummy; do 
583     test -z "$ac_dir" && ac_dir=.
584     if test -f $ac_dir/$ac_word; then
585       ac_cv_path_JADE="$ac_dir/$ac_word"
586       break
587     fi
588   done
589   IFS="$ac_save_ifs"
590   ;;
591 esac
592 fi
593 JADE="$ac_cv_path_JADE"
594 if test -n "$JADE"; then
595   echo "$ac_t""$JADE" 1>&6
596 else
597   echo "$ac_t""no" 1>&6
598 fi
599
600 fi
601
602 # Extract the first word of "nsgmls", so it can be a program name with args.
603 set dummy nsgmls; ac_word=$2
604 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
605 echo "configure:606: checking for $ac_word" >&5
606 if eval "test \"`echo '$''{'ac_cv_path_NSGMLS'+set}'`\" = set"; then
607   echo $ac_n "(cached) $ac_c" 1>&6
608 else
609   case "$NSGMLS" in
610   /*)
611   ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a path.
612   ;;
613   ?:/*)                  
614   ac_cv_path_NSGMLS="$NSGMLS" # Let the user override the test with a dos path.
615   ;;
616   *)
617   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
618   ac_dummy="$PATH"
619   for ac_dir in $ac_dummy; do 
620     test -z "$ac_dir" && ac_dir=.
621     if test -f $ac_dir/$ac_word; then
622       ac_cv_path_NSGMLS="$ac_dir/$ac_word"
623       break
624     fi
625   done
626   IFS="$ac_save_ifs"
627   ;;
628 esac
629 fi
630 NSGMLS="$ac_cv_path_NSGMLS"
631 if test -n "$NSGMLS"; then
632   echo "$ac_t""$NSGMLS" 1>&6
633 else
634   echo "$ac_t""no" 1>&6
635 fi
636
637 # Extract the first word of "htmldoc", so it can be a program name with args.
638 set dummy htmldoc; ac_word=$2
639 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
640 echo "configure:641: checking for $ac_word" >&5
641 if eval "test \"`echo '$''{'ac_cv_path_HTMLDOC'+set}'`\" = set"; then
642   echo $ac_n "(cached) $ac_c" 1>&6
643 else
644   case "$HTMLDOC" in
645   /*)
646   ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a path.
647   ;;
648   ?:/*)                  
649   ac_cv_path_HTMLDOC="$HTMLDOC" # Let the user override the test with a dos path.
650   ;;
651   *)
652   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
653   ac_dummy="$PATH"
654   for ac_dir in $ac_dummy; do 
655     test -z "$ac_dir" && ac_dir=.
656     if test -f $ac_dir/$ac_word; then
657       ac_cv_path_HTMLDOC="$ac_dir/$ac_word"
658       break
659     fi
660   done
661   IFS="$ac_save_ifs"
662   ;;
663 esac
664 fi
665 HTMLDOC="$ac_cv_path_HTMLDOC"
666 if test -n "$HTMLDOC"; then
667   echo "$ac_t""$HTMLDOC" 1>&6
668 else
669   echo "$ac_t""no" 1>&6
670 fi
671
672 # Extract the first word of "onsgmls", so it can be a program name with args.
673 set dummy onsgmls; ac_word=$2
674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
675 echo "configure:676: checking for $ac_word" >&5
676 if eval "test \"`echo '$''{'ac_cv_path_ONSGMLS'+set}'`\" = set"; then
677   echo $ac_n "(cached) $ac_c" 1>&6
678 else
679   case "$ONSGMLS" in
680   /*)
681   ac_cv_path_ONSGMLS="$ONSGMLS" # Let the user override the test with a path.
682   ;;
683   ?:/*)                  
684   ac_cv_path_ONSGMLS="$ONSGMLS" # Let the user override the test with a dos path.
685   ;;
686   *)
687   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
688   ac_dummy="$PATH"
689   for ac_dir in $ac_dummy; do 
690     test -z "$ac_dir" && ac_dir=.
691     if test -f $ac_dir/$ac_word; then
692       ac_cv_path_ONSGMLS="$ac_dir/$ac_word"
693       break
694     fi
695   done
696   IFS="$ac_save_ifs"
697   ;;
698 esac
699 fi
700 ONSGMLS="$ac_cv_path_ONSGMLS"
701 if test -n "$ONSGMLS"; then
702   echo "$ac_t""$ONSGMLS" 1>&6
703 else
704   echo "$ac_t""no" 1>&6
705 fi
706
707 # Extract the first word of "sgmlspl", so it can be a program name with args.
708 set dummy sgmlspl; ac_word=$2
709 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
710 echo "configure:711: checking for $ac_word" >&5
711 if eval "test \"`echo '$''{'ac_cv_path_SGMLSPL'+set}'`\" = set"; then
712   echo $ac_n "(cached) $ac_c" 1>&6
713 else
714   case "$SGMLSPL" in
715   /*)
716   ac_cv_path_SGMLSPL="$SGMLSPL" # Let the user override the test with a path.
717   ;;
718   ?:/*)                  
719   ac_cv_path_SGMLSPL="$SGMLSPL" # Let the user override the test with a dos path.
720   ;;
721   *)
722   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
723   ac_dummy="$PATH"
724   for ac_dir in $ac_dummy; do 
725     test -z "$ac_dir" && ac_dir=.
726     if test -f $ac_dir/$ac_word; then
727       ac_cv_path_SGMLSPL="$ac_dir/$ac_word"
728       break
729     fi
730   done
731   IFS="$ac_save_ifs"
732   ;;
733 esac
734 fi
735 SGMLSPL="$ac_cv_path_SGMLSPL"
736 if test -n "$SGMLSPL"; then
737   echo "$ac_t""$SGMLSPL" 1>&6
738 else
739   echo "$ac_t""no" 1>&6
740 fi
741
742
743 SGML_SHARE="/usr/local/share/sgml"
744
745 # Check whether --with-SGML_SHARE or --without-SGML_SHARE was given.
746 if test "${with_SGML_SHARE+set}" = set; then
747   withval="$with_SGML_SHARE"
748   case "$withval" in
749         no) SGML_SHARE=""
750                 ;;
751         yes)
752                 ;;
753         /*|\\*)
754                 SGML_SHARE="$withval"
755                 ;;
756         *)
757                 SGML_SHARE="/$withval"
758                 ;;
759 esac
760
761 fi
762
763
764
765
766 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
767
768
769 trap '' 1 2 15
770 cat > confcache <<\EOF
771 # This file is a shell script that caches the results of configure
772 # tests run on this system so they can be shared between configure
773 # scripts and configure runs.  It is not useful on other systems.
774 # If it contains results you don't want to keep, you may remove or edit it.
775 #
776 # By default, configure uses ./config.cache as the cache file,
777 # creating it if it does not exist already.  You can give configure
778 # the --cache-file=FILE option to use a different cache file; that is
779 # what configure does when it calls configure scripts in
780 # subdirectories, so they share the cache.
781 # Giving --cache-file=/dev/null disables caching, for debugging configure.
782 # config.status only pays attention to the cache file if you give it the
783 # --recheck option to rerun configure.
784 #
785 EOF
786 # The following way of writing the cache mishandles newlines in values,
787 # but we know of no workaround that is simple, portable, and efficient.
788 # So, don't put newlines in cache variables' values.
789 # Ultrix sh set writes to stderr and can't be redirected directly,
790 # and sets the high bit in the cache file unless we assign to the vars.
791 (set) 2>&1 |
792   case `(ac_space=' '; set | grep ac_space) 2>&1` in
793   *ac_space=\ *)
794     # `set' does not quote correctly, so add quotes (double-quote substitution
795     # turns \\\\ into \\, and sed turns \\ into \).
796     sed -n \
797       -e "s/'/'\\\\''/g" \
798       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
799     ;;
800   *)
801     # `set' quotes correctly as required by POSIX, so do not add quotes.
802     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
803     ;;
804   esac >> confcache
805 if cmp -s $cache_file confcache; then
806   :
807 else
808   if test -w $cache_file; then
809     echo "updating cache $cache_file"
810     cat confcache > $cache_file
811   else
812     echo "not updating unwritable cache $cache_file"
813   fi
814 fi
815 rm -f confcache
816
817 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
818
819 test "x$prefix" = xNONE && prefix=$ac_default_prefix
820 # Let make expand exec_prefix.
821 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
822
823 # Any assignment to VPATH causes Sun make to only execute
824 # the first set of double-colon rules, so remove it if not needed.
825 # If there is a colon in the path, we need to keep it.
826 if test "x$srcdir" = x.; then
827   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
828 fi
829
830 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
831
832 # Transform confdefs.h into DEFS.
833 # Protect against shell expansion while executing Makefile rules.
834 # Protect against Makefile macro expansion.
835 cat > conftest.defs <<\EOF
836 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
837 s%[     `~#$^&*(){}\\|;'"<>?]%\\&%g
838 s%\[%\\&%g
839 s%\]%\\&%g
840 s%\$%$$%g
841 EOF
842 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
843 rm -f conftest.defs
844
845
846 # Without the "./", some shells look in PATH for config.status.
847 : ${CONFIG_STATUS=./config.status}
848
849 echo creating $CONFIG_STATUS
850 rm -f $CONFIG_STATUS
851 cat > $CONFIG_STATUS <<EOF
852 #! /bin/sh
853 # Generated automatically by configure.
854 # Run this file to recreate the current configuration.
855 # This directory was configured as follows,
856 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
857 #
858 # $0 $ac_configure_args
859 #
860 # Compiler output produced by configure, useful for debugging
861 # configure, is in ./config.log if it exists.
862
863 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
864 for ac_option
865 do
866   case "\$ac_option" in
867   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
868     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
869     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
870   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
871     echo "$CONFIG_STATUS generated by autoconf version 2.13"
872     exit 0 ;;
873   -help | --help | --hel | --he | --h)
874     echo "\$ac_cs_usage"; exit 0 ;;
875   *) echo "\$ac_cs_usage"; exit 1 ;;
876   esac
877 done
878
879 ac_given_srcdir=$srcdir
880
881 trap 'rm -fr `echo "Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
882 EOF
883 cat >> $CONFIG_STATUS <<EOF
884
885 # Protect against being on the right side of a sed subst in config.status.
886 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
887  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
888 $ac_vpsub
889 $extrasub
890 s%@SHELL@%$SHELL%g
891 s%@CFLAGS@%$CFLAGS%g
892 s%@CPPFLAGS@%$CPPFLAGS%g
893 s%@CXXFLAGS@%$CXXFLAGS%g
894 s%@FFLAGS@%$FFLAGS%g
895 s%@DEFS@%$DEFS%g
896 s%@LDFLAGS@%$LDFLAGS%g
897 s%@LIBS@%$LIBS%g
898 s%@exec_prefix@%$exec_prefix%g
899 s%@prefix@%$prefix%g
900 s%@program_transform_name@%$program_transform_name%g
901 s%@bindir@%$bindir%g
902 s%@sbindir@%$sbindir%g
903 s%@libexecdir@%$libexecdir%g
904 s%@datadir@%$datadir%g
905 s%@sysconfdir@%$sysconfdir%g
906 s%@sharedstatedir@%$sharedstatedir%g
907 s%@localstatedir@%$localstatedir%g
908 s%@libdir@%$libdir%g
909 s%@includedir@%$includedir%g
910 s%@oldincludedir@%$oldincludedir%g
911 s%@infodir@%$infodir%g
912 s%@mandir@%$mandir%g
913 s%@JADE@%$JADE%g
914 s%@NSGMLS@%$NSGMLS%g
915 s%@HTMLDOC@%$HTMLDOC%g
916 s%@ONSGMLS@%$ONSGMLS%g
917 s%@SGMLSPL@%$SGMLSPL%g
918 s%@SGML_SHARE@%$SGML_SHARE%g
919 s%@DOC_BUILD_DATE@%$DOC_BUILD_DATE%g
920
921 CEOF
922 EOF
923
924 cat >> $CONFIG_STATUS <<\EOF
925
926 # Split the substitutions into bite-sized pieces for seds with
927 # small command number limits, like on Digital OSF/1 and HP-UX.
928 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
929 ac_file=1 # Number of current file.
930 ac_beg=1 # First line for current file.
931 ac_end=$ac_max_sed_cmds # Line after last line for current file.
932 ac_more_lines=:
933 ac_sed_cmds=""
934 while $ac_more_lines; do
935   if test $ac_beg -gt 1; then
936     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
937   else
938     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
939   fi
940   if test ! -s conftest.s$ac_file; then
941     ac_more_lines=false
942     rm -f conftest.s$ac_file
943   else
944     if test -z "$ac_sed_cmds"; then
945       ac_sed_cmds="sed -f conftest.s$ac_file"
946     else
947       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
948     fi
949     ac_file=`expr $ac_file + 1`
950     ac_beg=$ac_end
951     ac_end=`expr $ac_end + $ac_max_sed_cmds`
952   fi
953 done
954 if test -z "$ac_sed_cmds"; then
955   ac_sed_cmds=cat
956 fi
957 EOF
958
959 cat >> $CONFIG_STATUS <<EOF
960
961 CONFIG_FILES=\${CONFIG_FILES-"Makefile "}
962 EOF
963 cat >> $CONFIG_STATUS <<\EOF
964 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
965   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
966   case "$ac_file" in
967   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
968        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
969   *) ac_file_in="${ac_file}.in" ;;
970   esac
971
972   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
973
974   # Remove last slash and all that follows it.  Not all systems have dirname.
975   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
976   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
977     # The file is in a subdirectory.
978     test ! -d "$ac_dir" && mkdir "$ac_dir"
979     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
980     # A "../" for each directory in $ac_dir_suffix.
981     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
982   else
983     ac_dir_suffix= ac_dots=
984   fi
985
986   case "$ac_given_srcdir" in
987   .)  srcdir=.
988       if test -z "$ac_dots"; then top_srcdir=.
989       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
990   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
991   *) # Relative path.
992     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
993     top_srcdir="$ac_dots$ac_given_srcdir" ;;
994   esac
995
996
997   echo creating "$ac_file"
998   rm -f "$ac_file"
999   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1000   case "$ac_file" in
1001   *Makefile*) ac_comsub="1i\\
1002 # $configure_input" ;;
1003   *) ac_comsub= ;;
1004   esac
1005
1006   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1007   sed -e "$ac_comsub
1008 s%@configure_input@%$configure_input%g
1009 s%@srcdir@%$srcdir%g
1010 s%@top_srcdir@%$top_srcdir%g
1011 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1012 fi; done
1013 rm -f conftest.s*
1014
1015 EOF
1016 cat >> $CONFIG_STATUS <<EOF
1017
1018 EOF
1019 cat >> $CONFIG_STATUS <<\EOF
1020
1021 exit 0
1022 EOF
1023 chmod +x $CONFIG_STATUS
1024 rm -fr confdefs* $ac_clean_files
1025 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1026