PS and PDF build correctly now
[Samba/gebeck_regimport.git] / docs / docbook / configure
blobd51cdfc48c2283fa6b4b4db86dded0c985d8cb3f
1 #! /bin/sh
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.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-crop Whether to use a crop template"
16 ac_help="$ac_help
17 --with-papersize Specify papersize (a4paper,letter) "
18 ac_help="$ac_help
19 --with-fontsize Specify the fontsize in points (default: 10.5) "
21 # Initialize some variables set by options.
22 # The variables have the same names as the options, with
23 # dashes changed to underlines.
24 build=NONE
25 cache_file=./config.cache
26 exec_prefix=NONE
27 host=NONE
28 no_create=
29 nonopt=NONE
30 no_recursion=
31 prefix=NONE
32 program_prefix=NONE
33 program_suffix=NONE
34 program_transform_name=s,x,x,
35 silent=
36 site=
37 srcdir=
38 target=NONE
39 verbose=
40 x_includes=NONE
41 x_libraries=NONE
42 bindir='${exec_prefix}/bin'
43 sbindir='${exec_prefix}/sbin'
44 libexecdir='${exec_prefix}/libexec'
45 datadir='${prefix}/share'
46 sysconfdir='${prefix}/etc'
47 sharedstatedir='${prefix}/com'
48 localstatedir='${prefix}/var'
49 libdir='${exec_prefix}/lib'
50 includedir='${prefix}/include'
51 oldincludedir='/usr/include'
52 infodir='${prefix}/info'
53 mandir='${prefix}/man'
55 # Initialize some other variables.
56 subdirs=
57 MFLAGS= MAKEFLAGS=
58 SHELL=${CONFIG_SHELL-/bin/sh}
59 # Maximum number of lines to put in a shell here document.
60 ac_max_here_lines=12
62 ac_prev=
63 for ac_option
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
69 ac_prev=
70 continue
73 case "$ac_option" in
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
75 *) ac_optarg= ;;
76 esac
78 # Accept the important Cygnus configure options, so we can diagnose typos.
80 case "$ac_option" in
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
83 ac_prev=bindir ;;
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
88 ac_prev=build ;;
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
90 build="$ac_optarg" ;;
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
94 ac_prev=cache_file ;;
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
100 ac_prev=datadir ;;
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
102 | --da=*)
103 datadir="$ac_optarg" ;;
105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
121 case "$ac_option" in
122 *=*) ;;
123 *) ac_optarg=yes ;;
124 esac
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
138 with_gas=yes ;;
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
143 cat << EOF
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
146 Configuration:
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
154 [$ac_default_prefix]
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
156 [same as prefix]
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
161 [PREFIX/share]
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
164 [PREFIX/com]
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
177 cat << EOF
178 Host type:
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
193 exit 0 ;;
195 -host | --host | --hos | --ho)
196 ac_prev=host ;;
197 -host=* | --host=* | --hos=* | --ho=*)
198 host="$ac_optarg" ;;
200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
208 ac_prev=infodir ;;
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
213 ac_prev=libdir ;;
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
234 ac_prev=mandir ;;
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
238 -nfp | --nfp | --nf)
239 # Obsolete; use --without-fp.
240 with_fp=no ;;
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
243 | --no-cr | --no-c)
244 no_create=yes ;;
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
248 no_recursion=yes ;;
250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
260 ac_prev=prefix ;;
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
297 silent=yes ;;
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
300 ac_prev=sbindir ;;
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
302 | --sbi=* | --sb=*)
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
308 | --sha | --sh)
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
313 | --sha=* | --sh=*)
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
317 ac_prev=site ;;
318 -site=* | --site=* | --sit=*)
319 site="$ac_optarg" ;;
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
322 ac_prev=srcdir ;;
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
334 ac_prev=target ;;
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
339 verbose=yes ;;
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.13"
343 exit 0 ;;
345 -with-* | --with-*)
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
352 case "$ac_option" in
353 *=*) ;;
354 *) ac_optarg=yes ;;
355 esac
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
367 --x)
368 # Obsolete; use --with-x.
369 with_x=yes ;;
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
395 nonopt="$ac_option"
398 esac
399 done
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
408 # 0 standard input
409 # 1 file creation
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
416 exec 6>/dev/null
417 else
418 exec 6>&1
420 exec 5>./config.log
422 echo "\
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
425 " 1>&5
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
429 ac_configure_args=
430 for ac_arg
432 case "$ac_arg" in
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
440 esac
441 done
443 # NLS nuisances.
444 # Only set these to C if already set. These must not be set unconditionally
445 # because not all systems understand e.g. LANG=C (notably SCO).
446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447 # Non-C LC_CTYPE values break the ctype check.
448 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
456 echo > confdefs.h
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
460 ac_unique_file=global.ent
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464 ac_srcdir_defaulted=yes
465 # Try the directory containing this script, then its parent.
466 ac_prog=$0
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
469 srcdir=$ac_confdir
470 if test ! -r $srcdir/$ac_unique_file; then
471 srcdir=..
473 else
474 ac_srcdir_defaulted=no
476 if test ! -r $srcdir/$ac_unique_file; then
477 if test "$ac_srcdir_defaulted" = yes; then
478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
479 else
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487 if test "x$prefix" != xNONE; then
488 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
489 else
490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 for ac_site_file in $CONFIG_SITE; do
494 if test -r "$ac_site_file"; then
495 echo "loading site script $ac_site_file"
496 . "$ac_site_file"
498 done
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
502 . $cache_file
503 else
504 echo "creating cache $cache_file"
505 > $cache_file
508 ac_ext=c
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp='$CPP $CPPFLAGS'
511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 cross_compiling=$ac_cv_prog_cc_cross
515 ac_exeext=
516 ac_objext=o
517 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
518 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
519 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
520 ac_n= ac_c='
521 ' ac_t=' '
522 else
523 ac_n=-n ac_c= ac_t=
525 else
526 ac_n= ac_c='\c' ac_t=
531 # Extract the first word of "xsltproc", so it can be a program name with args.
532 set dummy xsltproc; ac_word=$2
533 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
534 echo "configure:535: checking for $ac_word" >&5
535 if eval "test \"`echo '$''{'ac_cv_path_XSLTPROC'+set}'`\" = set"; then
536 echo $ac_n "(cached) $ac_c" 1>&6
537 else
538 case "$XSLTPROC" in
540 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
542 ?:/*)
543 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a dos path.
546 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
547 ac_dummy="$PATH"
548 for ac_dir in $ac_dummy; do
549 test -z "$ac_dir" && ac_dir=.
550 if test -f $ac_dir/$ac_word; then
551 ac_cv_path_XSLTPROC="$ac_dir/$ac_word"
552 break
554 done
555 IFS="$ac_save_ifs"
557 esac
559 XSLTPROC="$ac_cv_path_XSLTPROC"
560 if test -n "$XSLTPROC"; then
561 echo "$ac_t""$XSLTPROC" 1>&6
562 else
563 echo "$ac_t""no" 1>&6
566 if test "x$XSLTPROC" = x; then
567 { echo "configure: error: "xsltproc is required"" 1>&2; exit 1; }
569 # Extract the first word of "pdflatex", so it can be a program name with args.
570 set dummy pdflatex; ac_word=$2
571 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
572 echo "configure:573: checking for $ac_word" >&5
573 if eval "test \"`echo '$''{'ac_cv_path_PDFLATEX'+set}'`\" = set"; then
574 echo $ac_n "(cached) $ac_c" 1>&6
575 else
576 case "$PDFLATEX" in
578 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
580 ?:/*)
581 ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a dos path.
584 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
585 ac_dummy="$PATH"
586 for ac_dir in $ac_dummy; do
587 test -z "$ac_dir" && ac_dir=.
588 if test -f $ac_dir/$ac_word; then
589 ac_cv_path_PDFLATEX="$ac_dir/$ac_word"
590 break
592 done
593 IFS="$ac_save_ifs"
595 esac
597 PDFLATEX="$ac_cv_path_PDFLATEX"
598 if test -n "$PDFLATEX"; then
599 echo "$ac_t""$PDFLATEX" 1>&6
600 else
601 echo "$ac_t""no" 1>&6
604 if test "x$PDFLATEX" = x; then
605 { echo "configure: error: "pdflatex is required"" 1>&2; exit 1; }
607 # Extract the first word of "makeindex", so it can be a program name with args.
608 set dummy makeindex; ac_word=$2
609 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
610 echo "configure:611: checking for $ac_word" >&5
611 if eval "test \"`echo '$''{'ac_cv_path_MAKEINDEX'+set}'`\" = set"; then
612 echo $ac_n "(cached) $ac_c" 1>&6
613 else
614 case "$MAKEINDEX" in
616 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a path.
618 ?:/*)
619 ac_cv_path_MAKEINDEX="$MAKEINDEX" # Let the user override the test with a dos path.
622 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
623 ac_dummy="$PATH"
624 for ac_dir in $ac_dummy; do
625 test -z "$ac_dir" && ac_dir=.
626 if test -f $ac_dir/$ac_word; then
627 ac_cv_path_MAKEINDEX="$ac_dir/$ac_word"
628 break
630 done
631 IFS="$ac_save_ifs"
633 esac
635 MAKEINDEX="$ac_cv_path_MAKEINDEX"
636 if test -n "$MAKEINDEX"; then
637 echo "$ac_t""$MAKEINDEX" 1>&6
638 else
639 echo "$ac_t""no" 1>&6
642 if test "x$MAKEINDEX" = x; then
643 { echo "configure: error: "makeindex is required"" 1>&2; exit 1; }
646 PAPERSIZE=""
647 TEXSTYLESHEET=xslt/latex.xsl
648 DUPLICATE_ULINKS=""
650 CROP="--stringparam docrop 0"
652 # Check whether --enable-crop or --disable-crop was given.
653 if test "${enable_crop+set}" = set; then
654 enableval="$enable_crop"
655 test "$withval" && CROP="--stringparam docrop 1"
659 PAPERSIZE="--stringparam papersize a4paper"
661 # Check whether --with-papersize or --without-papersize was given.
662 if test "${with_papersize+set}" = set; then
663 withval="$with_papersize"
664 test "$withval" && PAPERSIZE="--stringparam papersize $withval"
668 FONTSIZE="--stringparam fontsize 10.5"
670 # Check whether --with-fontsize or --without-fontsize was given.
671 if test "${with_fontsize+set}" = set; then
672 withval="$with_fontsize"
673 test "$withval" && FONTSIZE="--stringparam fontsize $withval"
677 # Extract the first word of "latex", so it can be a program name with args.
678 set dummy latex; ac_word=$2
679 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
680 echo "configure:681: checking for $ac_word" >&5
681 if eval "test \"`echo '$''{'ac_cv_path_LATEX'+set}'`\" = set"; then
682 echo $ac_n "(cached) $ac_c" 1>&6
683 else
684 case "$LATEX" in
686 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
688 ?:/*)
689 ac_cv_path_LATEX="$LATEX" # Let the user override the test with a dos path.
692 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
693 ac_dummy="$PATH"
694 for ac_dir in $ac_dummy; do
695 test -z "$ac_dir" && ac_dir=.
696 if test -f $ac_dir/$ac_word; then
697 ac_cv_path_LATEX="$ac_dir/$ac_word"
698 break
700 done
701 IFS="$ac_save_ifs"
703 esac
705 LATEX="$ac_cv_path_LATEX"
706 if test -n "$LATEX"; then
707 echo "$ac_t""$LATEX" 1>&6
708 else
709 echo "$ac_t""no" 1>&6
712 # Extract the first word of "dvips", so it can be a program name with args.
713 set dummy dvips; ac_word=$2
714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
715 echo "configure:716: checking for $ac_word" >&5
716 if eval "test \"`echo '$''{'ac_cv_path_DVIPS'+set}'`\" = set"; then
717 echo $ac_n "(cached) $ac_c" 1>&6
718 else
719 case "$DVIPS" in
721 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
723 ?:/*)
724 ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a dos path.
727 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
728 ac_dummy="$PATH"
729 for ac_dir in $ac_dummy; do
730 test -z "$ac_dir" && ac_dir=.
731 if test -f $ac_dir/$ac_word; then
732 ac_cv_path_DVIPS="$ac_dir/$ac_word"
733 break
735 done
736 IFS="$ac_save_ifs"
738 esac
740 DVIPS="$ac_cv_path_DVIPS"
741 if test -n "$DVIPS"; then
742 echo "$ac_t""$DVIPS" 1>&6
743 else
744 echo "$ac_t""no" 1>&6
747 # Extract the first word of "pngtopnm", so it can be a program name with args.
748 set dummy pngtopnm; ac_word=$2
749 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
750 echo "configure:751: checking for $ac_word" >&5
751 if eval "test \"`echo '$''{'ac_cv_path_PNGTOPNM'+set}'`\" = set"; then
752 echo $ac_n "(cached) $ac_c" 1>&6
753 else
754 case "$PNGTOPNM" in
756 ac_cv_path_PNGTOPNM="$PNGTOPNM" # Let the user override the test with a path.
758 ?:/*)
759 ac_cv_path_PNGTOPNM="$PNGTOPNM" # Let the user override the test with a dos path.
762 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
763 ac_dummy="$PATH"
764 for ac_dir in $ac_dummy; do
765 test -z "$ac_dir" && ac_dir=.
766 if test -f $ac_dir/$ac_word; then
767 ac_cv_path_PNGTOPNM="$ac_dir/$ac_word"
768 break
770 done
771 IFS="$ac_save_ifs"
773 esac
775 PNGTOPNM="$ac_cv_path_PNGTOPNM"
776 if test -n "$PNGTOPNM"; then
777 echo "$ac_t""$PNGTOPNM" 1>&6
778 else
779 echo "$ac_t""no" 1>&6
782 # Extract the first word of "pnmtops", so it can be a program name with args.
783 set dummy pnmtops; ac_word=$2
784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
785 echo "configure:786: checking for $ac_word" >&5
786 if eval "test \"`echo '$''{'ac_cv_path_PNMTOPS'+set}'`\" = set"; then
787 echo $ac_n "(cached) $ac_c" 1>&6
788 else
789 case "$PNMTOPS" in
791 ac_cv_path_PNMTOPS="$PNMTOPS" # Let the user override the test with a path.
793 ?:/*)
794 ac_cv_path_PNMTOPS="$PNMTOPS" # Let the user override the test with a dos path.
797 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
798 ac_dummy="$PATH"
799 for ac_dir in $ac_dummy; do
800 test -z "$ac_dir" && ac_dir=.
801 if test -f $ac_dir/$ac_word; then
802 ac_cv_path_PNMTOPS="$ac_dir/$ac_word"
803 break
805 done
806 IFS="$ac_save_ifs"
808 esac
810 PNMTOPS="$ac_cv_path_PNMTOPS"
811 if test -n "$PNMTOPS"; then
812 echo "$ac_t""$PNMTOPS" 1>&6
813 else
814 echo "$ac_t""no" 1>&6
817 # Extract the first word of "perl", so it can be a program name with args.
818 set dummy perl; ac_word=$2
819 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
820 echo "configure:821: checking for $ac_word" >&5
821 if eval "test \"`echo '$''{'ac_cv_path_PERL'+set}'`\" = set"; then
822 echo $ac_n "(cached) $ac_c" 1>&6
823 else
824 case "$PERL" in
826 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
828 ?:/*)
829 ac_cv_path_PERL="$PERL" # Let the user override the test with a dos path.
832 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
833 ac_dummy="$PATH"
834 for ac_dir in $ac_dummy; do
835 test -z "$ac_dir" && ac_dir=.
836 if test -f $ac_dir/$ac_word; then
837 ac_cv_path_PERL="$ac_dir/$ac_word"
838 break
840 done
841 IFS="$ac_save_ifs"
843 esac
845 PERL="$ac_cv_path_PERL"
846 if test -n "$PERL"; then
847 echo "$ac_t""$PERL" 1>&6
848 else
849 echo "$ac_t""no" 1>&6
852 # Extract the first word of "xmlto", so it can be a program name with args.
853 set dummy xmlto; ac_word=$2
854 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
855 echo "configure:856: checking for $ac_word" >&5
856 if eval "test \"`echo '$''{'ac_cv_path_XMLTO'+set}'`\" = set"; then
857 echo $ac_n "(cached) $ac_c" 1>&6
858 else
859 case "$XMLTO" in
861 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
863 ?:/*)
864 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a dos path.
867 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
868 ac_dummy="$PATH"
869 for ac_dir in $ac_dummy; do
870 test -z "$ac_dir" && ac_dir=.
871 if test -f $ac_dir/$ac_word; then
872 ac_cv_path_XMLTO="$ac_dir/$ac_word"
873 break
875 done
876 IFS="$ac_save_ifs"
878 esac
880 XMLTO="$ac_cv_path_XMLTO"
881 if test -n "$XMLTO"; then
882 echo "$ac_t""$XMLTO" 1>&6
883 else
884 echo "$ac_t""no" 1>&6
888 DOC_BUILD_DATE=`date '+%d-%m-%Y'`
896 trap '' 1 2 15
897 cat > confcache <<\EOF
898 # This file is a shell script that caches the results of configure
899 # tests run on this system so they can be shared between configure
900 # scripts and configure runs. It is not useful on other systems.
901 # If it contains results you don't want to keep, you may remove or edit it.
903 # By default, configure uses ./config.cache as the cache file,
904 # creating it if it does not exist already. You can give configure
905 # the --cache-file=FILE option to use a different cache file; that is
906 # what configure does when it calls configure scripts in
907 # subdirectories, so they share the cache.
908 # Giving --cache-file=/dev/null disables caching, for debugging configure.
909 # config.status only pays attention to the cache file if you give it the
910 # --recheck option to rerun configure.
913 # The following way of writing the cache mishandles newlines in values,
914 # but we know of no workaround that is simple, portable, and efficient.
915 # So, don't put newlines in cache variables' values.
916 # Ultrix sh set writes to stderr and can't be redirected directly,
917 # and sets the high bit in the cache file unless we assign to the vars.
918 (set) 2>&1 |
919 case `(ac_space=' '; set | grep ac_space) 2>&1` in
920 *ac_space=\ *)
921 # `set' does not quote correctly, so add quotes (double-quote substitution
922 # turns \\\\ into \\, and sed turns \\ into \).
923 sed -n \
924 -e "s/'/'\\\\''/g" \
925 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
928 # `set' quotes correctly as required by POSIX, so do not add quotes.
929 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
931 esac >> confcache
932 if cmp -s $cache_file confcache; then
934 else
935 if test -w $cache_file; then
936 echo "updating cache $cache_file"
937 cat confcache > $cache_file
938 else
939 echo "not updating unwritable cache $cache_file"
942 rm -f confcache
944 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
946 test "x$prefix" = xNONE && prefix=$ac_default_prefix
947 # Let make expand exec_prefix.
948 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
950 # Any assignment to VPATH causes Sun make to only execute
951 # the first set of double-colon rules, so remove it if not needed.
952 # If there is a colon in the path, we need to keep it.
953 if test "x$srcdir" = x.; then
954 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
957 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
959 # Transform confdefs.h into DEFS.
960 # Protect against shell expansion while executing Makefile rules.
961 # Protect against Makefile macro expansion.
962 cat > conftest.defs <<\EOF
963 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%-D\1=\2%g
964 s%[ `~#$^&*(){}\\|;'"<>?]%\\&%g
965 s%\[%\\&%g
966 s%\]%\\&%g
967 s%\$%$$%g
969 DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '`
970 rm -f conftest.defs
973 # Without the "./", some shells look in PATH for config.status.
974 : ${CONFIG_STATUS=./config.status}
976 echo creating $CONFIG_STATUS
977 rm -f $CONFIG_STATUS
978 cat > $CONFIG_STATUS <<EOF
979 #! /bin/sh
980 # Generated automatically by configure.
981 # Run this file to recreate the current configuration.
982 # This directory was configured as follows,
983 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
985 # $0 $ac_configure_args
987 # Compiler output produced by configure, useful for debugging
988 # configure, is in ./config.log if it exists.
990 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
991 for ac_option
993 case "\$ac_option" in
994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
995 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
996 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
997 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
998 echo "$CONFIG_STATUS generated by autoconf version 2.13"
999 exit 0 ;;
1000 -help | --help | --hel | --he | --h)
1001 echo "\$ac_cs_usage"; exit 0 ;;
1002 *) echo "\$ac_cs_usage"; exit 1 ;;
1003 esac
1004 done
1006 ac_given_srcdir=$srcdir
1008 trap 'rm -fr `echo "Makefile " | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1010 cat >> $CONFIG_STATUS <<EOF
1012 # Protect against being on the right side of a sed subst in config.status.
1013 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1014 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1015 $ac_vpsub
1016 $extrasub
1017 s%@SHELL@%$SHELL%g
1018 s%@CFLAGS@%$CFLAGS%g
1019 s%@CPPFLAGS@%$CPPFLAGS%g
1020 s%@CXXFLAGS@%$CXXFLAGS%g
1021 s%@FFLAGS@%$FFLAGS%g
1022 s%@DEFS@%$DEFS%g
1023 s%@LDFLAGS@%$LDFLAGS%g
1024 s%@LIBS@%$LIBS%g
1025 s%@exec_prefix@%$exec_prefix%g
1026 s%@prefix@%$prefix%g
1027 s%@program_transform_name@%$program_transform_name%g
1028 s%@bindir@%$bindir%g
1029 s%@sbindir@%$sbindir%g
1030 s%@libexecdir@%$libexecdir%g
1031 s%@datadir@%$datadir%g
1032 s%@sysconfdir@%$sysconfdir%g
1033 s%@sharedstatedir@%$sharedstatedir%g
1034 s%@localstatedir@%$localstatedir%g
1035 s%@libdir@%$libdir%g
1036 s%@includedir@%$includedir%g
1037 s%@oldincludedir@%$oldincludedir%g
1038 s%@infodir@%$infodir%g
1039 s%@mandir@%$mandir%g
1040 s%@XSLTPROC@%$XSLTPROC%g
1041 s%@PDFLATEX@%$PDFLATEX%g
1042 s%@MAKEINDEX@%$MAKEINDEX%g
1043 s%@LATEX@%$LATEX%g
1044 s%@DVIPS@%$DVIPS%g
1045 s%@PNGTOPNM@%$PNGTOPNM%g
1046 s%@PNMTOPS@%$PNMTOPS%g
1047 s%@PERL@%$PERL%g
1048 s%@XMLTO@%$XMLTO%g
1049 s%@DOC_BUILD_DATE@%$DOC_BUILD_DATE%g
1050 s%@TEXSTYLESHEET@%$TEXSTYLESHEET%g
1051 s%@PAPERSIZE@%$PAPERSIZE%g
1052 s%@DUPLICATE_ULINKS@%$DUPLICATE_ULINKS%g
1053 s%@FONTSIZE@%$FONTSIZE%g
1054 s%@CROP@%$CROP%g
1056 CEOF
1059 cat >> $CONFIG_STATUS <<\EOF
1061 # Split the substitutions into bite-sized pieces for seds with
1062 # small command number limits, like on Digital OSF/1 and HP-UX.
1063 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1064 ac_file=1 # Number of current file.
1065 ac_beg=1 # First line for current file.
1066 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1067 ac_more_lines=:
1068 ac_sed_cmds=""
1069 while $ac_more_lines; do
1070 if test $ac_beg -gt 1; then
1071 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1072 else
1073 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1075 if test ! -s conftest.s$ac_file; then
1076 ac_more_lines=false
1077 rm -f conftest.s$ac_file
1078 else
1079 if test -z "$ac_sed_cmds"; then
1080 ac_sed_cmds="sed -f conftest.s$ac_file"
1081 else
1082 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1084 ac_file=`expr $ac_file + 1`
1085 ac_beg=$ac_end
1086 ac_end=`expr $ac_end + $ac_max_sed_cmds`
1088 done
1089 if test -z "$ac_sed_cmds"; then
1090 ac_sed_cmds=cat
1094 cat >> $CONFIG_STATUS <<EOF
1096 CONFIG_FILES=\${CONFIG_FILES-"Makefile "}
1098 cat >> $CONFIG_STATUS <<\EOF
1099 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1100 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1101 case "$ac_file" in
1102 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1103 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1104 *) ac_file_in="${ac_file}.in" ;;
1105 esac
1107 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1109 # Remove last slash and all that follows it. Not all systems have dirname.
1110 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1111 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1112 # The file is in a subdirectory.
1113 test ! -d "$ac_dir" && mkdir "$ac_dir"
1114 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1115 # A "../" for each directory in $ac_dir_suffix.
1116 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1117 else
1118 ac_dir_suffix= ac_dots=
1121 case "$ac_given_srcdir" in
1122 .) srcdir=.
1123 if test -z "$ac_dots"; then top_srcdir=.
1124 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1125 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1126 *) # Relative path.
1127 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1128 top_srcdir="$ac_dots$ac_given_srcdir" ;;
1129 esac
1132 echo creating "$ac_file"
1133 rm -f "$ac_file"
1134 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1135 case "$ac_file" in
1136 *Makefile*) ac_comsub="1i\\
1137 # $configure_input" ;;
1138 *) ac_comsub= ;;
1139 esac
1141 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1142 sed -e "$ac_comsub
1143 s%@configure_input@%$configure_input%g
1144 s%@srcdir@%$srcdir%g
1145 s%@top_srcdir@%$top_srcdir%g
1146 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1147 fi; done
1148 rm -f conftest.s*
1151 cat >> $CONFIG_STATUS <<EOF
1154 cat >> $CONFIG_STATUS <<\EOF
1156 exit 0
1158 chmod +x $CONFIG_STATUS
1159 rm -fr confdefs* $ac_clean_files
1160 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1