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