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