comparison modules/ldap/configure @ 996:25e260cb7994

[xemacs-hg @ 2002-09-10 15:27:02 by james] Enable unloading of dynamic modules. Create the first two internal XEmacs modules: LDAP and postgreSQL. Update the sample directory to contain a sample internal XEmacs module and a sample external XEmacs module. Improve support for autoloading modules. Make internal module code compile into the XEmacs binary if XEmacs is configured without module support. Make the internal module directories self-contained so that they can be distributed separately from XEmacs.
author james
date Tue, 10 Sep 2002 15:27:39 +0000
parents
children 56b64a055043
comparison
equal deleted inserted replaced
995:4575a219af58 996:25e260cb7994
1 #! /bin/sh
2 # From configure.ac Revision: 1.0 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.53b for LDAP module 1.0.
5 #
6 # Report bugs to <xemacs-beta@xemacs.org>.
7 #
8 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
9 # Free Software Foundation, Inc.
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 #
13 # Configuration script for the LDAP module.
14 # Copyright (C) 2002 Jerry James.
15 #
16 # This file is part of XEmacs.
17 #
18 # XEmacs is free software; you can redistribute it and/or modify it
19 # under the terms of the GNU General Public License as published by
20 # the Free Software Foundation; either version 2, or (at your
21 # option) any later version.
22 #
23 # XEmacs is distributed in the hope that it will be useful, but
24 # WITHOUT ANY WARRANTY; without even the implied warranty of
25 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
26 # General Public License for more details.
27 #
28 # You should have received a copy of the GNU General Public License
29 # along with XEmacs; see the file COPYING. If not, write to the Free
30 # Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
31 # 02111-1307, USA.
32 ## --------------------- ##
33 ## M4sh Initialization. ##
34 ## --------------------- ##
35
36 # Be Bourne compatible
37 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38 emulate sh
39 NULLCMD=:
40 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41 # is contrary to our usage. Disable this feature.
42 alias -g '${1+"$@"}'='"$@"'
43 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
44 set -o posix
45 fi
46
47 # NLS nuisances.
48 # Support unset when possible.
49 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
50 as_unset=unset
51 else
52 as_unset=false
53 fi
54
55 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
56 { $as_unset LANG || test "${LANG+set}" != set; } ||
57 { LANG=C; export LANG; }
58 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
59 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
60 { LC_ALL=C; export LC_ALL; }
61 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
62 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
63 { LC_TIME=C; export LC_TIME; }
64 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
65 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
66 { LC_CTYPE=C; export LC_CTYPE; }
67 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
68 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
69 { LANGUAGE=C; export LANGUAGE; }
70 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
71 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
72 { LC_COLLATE=C; export LC_COLLATE; }
73 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
74 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
75 { LC_NUMERIC=C; export LC_NUMERIC; }
76 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
77 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
78 { LC_MESSAGES=C; export LC_MESSAGES; }
79
80
81 # Required to use basename.
82 if expr a : '\(a\)' >/dev/null 2>&1; then
83 as_expr=expr
84 else
85 as_expr=false
86 fi
87
88 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
89 as_basename=basename
90 else
91 as_basename=false
92 fi
93
94
95 # Name of the executable.
96 as_me=`$as_basename "$0" ||
97 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
98 X"$0" : 'X\(//\)$' \| \
99 X"$0" : 'X\(/\)$' \| \
100 . : '\(.\)' 2>/dev/null ||
101 echo X/"$0" |
102 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
103 /^X\/\(\/\/\)$/{ s//\1/; q; }
104 /^X\/\(\/\).*/{ s//\1/; q; }
105 s/.*/./; q'`
106
107
108 # PATH needs CR, and LINENO needs CR and PATH.
109 # Avoid depending upon Character Ranges.
110 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
111 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
112 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
113 as_cr_digits='0123456789'
114 as_cr_alnum=$as_cr_Letters$as_cr_digits
115
116 # The user is always right.
117 if test "${PATH_SEPARATOR+set}" != set; then
118 echo "#! /bin/sh" >conftest.sh
119 echo "exit 0" >>conftest.sh
120 chmod +x conftest.sh
121 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
122 PATH_SEPARATOR=';'
123 else
124 PATH_SEPARATOR=:
125 fi
126 rm -f conftest.sh
127 fi
128
129
130 as_lineno_1=$LINENO
131 as_lineno_2=$LINENO
132 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
133 test "x$as_lineno_1" != "x$as_lineno_2" &&
134 test "x$as_lineno_3" = "x$as_lineno_2" || {
135 # Find who we are. Look in the path if we contain no path at all
136 # relative or not.
137 case $0 in
138 *[\\/]* ) as_myself=$0 ;;
139 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140 for as_dir in $PATH
141 do
142 IFS=$as_save_IFS
143 test -z "$as_dir" && as_dir=.
144 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
145 done
146
147 ;;
148 esac
149 # We did not find ourselves, most probably we were run as `sh COMMAND'
150 # in which case we are not to be found in the path.
151 if test "x$as_myself" = x; then
152 as_myself=$0
153 fi
154 if test ! -f "$as_myself"; then
155 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
156 { (exit 1); exit 1; }; }
157 fi
158 case $CONFIG_SHELL in
159 '')
160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
161 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
162 do
163 IFS=$as_save_IFS
164 test -z "$as_dir" && as_dir=.
165 for as_base in sh bash ksh sh5; do
166 case $as_dir in
167 /*)
168 if ("$as_dir/$as_base" -c '
169 as_lineno_1=$LINENO
170 as_lineno_2=$LINENO
171 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
172 test "x$as_lineno_1" != "x$as_lineno_2" &&
173 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
174 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
175 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
176 CONFIG_SHELL=$as_dir/$as_base
177 export CONFIG_SHELL
178 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
179 fi;;
180 esac
181 done
182 done
183 ;;
184 esac
185
186 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
187 # uniformly replaced by the line number. The first 'sed' inserts a
188 # line-number line before each line; the second 'sed' does the real
189 # work. The second script uses 'N' to pair each line-number line
190 # with the numbered line, and appends trailing '-' during
191 # substitution so that $LINENO is not a special case at line end.
192 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
193 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
194 sed '=' <$as_myself |
195 sed '
196 N
197 s,$,-,
198 : loop
199 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
200 t loop
201 s,-$,,
202 s,^['$as_cr_digits']*\n,,
203 ' >$as_me.lineno &&
204 chmod +x $as_me.lineno ||
205 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
206 { (exit 1); exit 1; }; }
207
208 # Don't try to exec as it changes $[0], causing all sort of problems
209 # (the dirname of $[0] is not the place where we might find the
210 # original and so on. Autoconf is especially sensible to this).
211 . ./$as_me.lineno
212 # Exit status is that of the last command.
213 exit
214 }
215
216
217 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
218 *c*,-n*) ECHO_N= ECHO_C='
219 ' ECHO_T=' ' ;;
220 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
221 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
222 esac
223
224 if expr a : '\(a\)' >/dev/null 2>&1; then
225 as_expr=expr
226 else
227 as_expr=false
228 fi
229
230 rm -f conf$$ conf$$.exe conf$$.file
231 echo >conf$$.file
232 if ln -s conf$$.file conf$$ 2>/dev/null; then
233 # We could just check for DJGPP; but this test a) works b) is more generic
234 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
235 if test -f conf$$.exe; then
236 # Don't use ln at all; we don't have any links
237 as_ln_s='cp -p'
238 else
239 as_ln_s='ln -s'
240 fi
241 elif ln conf$$.file conf$$ 2>/dev/null; then
242 as_ln_s=ln
243 else
244 as_ln_s='cp -p'
245 fi
246 rm -f conf$$ conf$$.exe conf$$.file
247
248 if mkdir -p . 2>/dev/null; then
249 as_mkdir_p=:
250 else
251 as_mkdir_p=false
252 fi
253
254 as_executable_p="test -f"
255
256 # Sed expression to map a string onto a valid CPP name.
257 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
258
259 # Sed expression to map a string onto a valid variable name.
260 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
261
262
263 # IFS
264 # We need space, tab and new line, in precisely that order.
265 as_nl='
266 '
267 IFS=" $as_nl"
268
269 # CDPATH.
270 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
271
272
273 # Name of the host.
274 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
275 # so uname gets run too.
276 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
277
278 exec 6>&1
279
280 #
281 # Initializations.
282 #
283 ac_default_prefix=/usr/local
284 ac_config_libobj_dir=.
285 cross_compiling=no
286 subdirs=
287 MFLAGS=
288 MAKEFLAGS=
289 SHELL=${CONFIG_SHELL-/bin/sh}
290
291 # Maximum number of lines to put in a shell here document.
292 # This variable seems obsolete. It should probably be removed, and
293 # only ac_max_sed_lines should be used.
294 : ${ac_max_here_lines=38}
295
296 # Identity of this package.
297 PACKAGE_NAME='LDAP module'
298 PACKAGE_TARNAME='ldap-module'
299 PACKAGE_VERSION='1.0'
300 PACKAGE_STRING='LDAP module 1.0'
301 PACKAGE_BUGREPORT='xemacs-beta@xemacs.org'
302
303 ac_unique_file="eldap.c"
304 # Factoring default headers for most tests.
305 ac_includes_default="\
306 #include <stdio.h>
307 #if HAVE_SYS_TYPES_H
308 # include <sys/types.h>
309 #endif
310 #if HAVE_SYS_STAT_H
311 # include <sys/stat.h>
312 #endif
313 #if STDC_HEADERS
314 # include <stdlib.h>
315 # include <stddef.h>
316 #else
317 # if HAVE_STDLIB_H
318 # include <stdlib.h>
319 # endif
320 #endif
321 #if HAVE_STRING_H
322 # if !STDC_HEADERS && HAVE_MEMORY_H
323 # include <memory.h>
324 # endif
325 # include <string.h>
326 #endif
327 #if HAVE_STRINGS_H
328 # include <strings.h>
329 #endif
330 #if HAVE_INTTYPES_H
331 # include <inttypes.h>
332 #else
333 # if HAVE_STDINT_H
334 # include <stdint.h>
335 # endif
336 #endif
337 #if HAVE_UNISTD_H
338 # include <unistd.h>
339 #endif"
340
341 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA ELLCC CPP EGREP ldap_libs PROGNAME MOD_CC MODARCHDIR MAKE_DOCFILE MODCFLAGS INSTALLPATH MOD_INSTALL_PROGRAM OBJECT_TO_BUILD LIBOBJS LTLIBOBJS'
342 ac_subst_files=''
343
344 # Initialize some variables set by options.
345 ac_init_help=
346 ac_init_version=false
347 # The variables have the same names as the options, with
348 # dashes changed to underlines.
349 cache_file=/dev/null
350 exec_prefix=NONE
351 no_create=
352 no_recursion=
353 prefix=NONE
354 program_prefix=NONE
355 program_suffix=NONE
356 program_transform_name=s,x,x,
357 silent=
358 site=
359 srcdir=
360 verbose=
361 x_includes=NONE
362 x_libraries=NONE
363
364 # Installation directory options.
365 # These are left unexpanded so users can "make install exec_prefix=/foo"
366 # and all the variables that are supposed to be based on exec_prefix
367 # by default will actually change.
368 # Use braces instead of parens because sh, perl, etc. also accept them.
369 bindir='${exec_prefix}/bin'
370 sbindir='${exec_prefix}/sbin'
371 libexecdir='${exec_prefix}/libexec'
372 datadir='${prefix}/share'
373 sysconfdir='${prefix}/etc'
374 sharedstatedir='${prefix}/com'
375 localstatedir='${prefix}/var'
376 libdir='${exec_prefix}/lib'
377 includedir='${prefix}/include'
378 oldincludedir='/usr/include'
379 infodir='${prefix}/info'
380 mandir='${prefix}/man'
381
382 ac_prev=
383 for ac_option
384 do
385 # If the previous option needs an argument, assign it.
386 if test -n "$ac_prev"; then
387 eval "$ac_prev=\$ac_option"
388 ac_prev=
389 continue
390 fi
391
392 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
393
394 # Accept the important Cygnus configure options, so we can diagnose typos.
395
396 case $ac_option in
397
398 -bindir | --bindir | --bindi | --bind | --bin | --bi)
399 ac_prev=bindir ;;
400 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
401 bindir=$ac_optarg ;;
402
403 -build | --build | --buil | --bui | --bu)
404 ac_prev=build_alias ;;
405 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
406 build_alias=$ac_optarg ;;
407
408 -cache-file | --cache-file | --cache-fil | --cache-fi \
409 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
410 ac_prev=cache_file ;;
411 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
412 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
413 cache_file=$ac_optarg ;;
414
415 --config-cache | -C)
416 cache_file=config.cache ;;
417
418 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
419 ac_prev=datadir ;;
420 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
421 | --da=*)
422 datadir=$ac_optarg ;;
423
424 -disable-* | --disable-*)
425 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
426 # Reject names that are not valid shell variable names.
427 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
428 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
429 { (exit 1); exit 1; }; }
430 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
431 eval "enable_$ac_feature=no" ;;
432
433 -enable-* | --enable-*)
434 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
435 # Reject names that are not valid shell variable names.
436 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
437 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
438 { (exit 1); exit 1; }; }
439 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
440 case $ac_option in
441 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
442 *) ac_optarg=yes ;;
443 esac
444 eval "enable_$ac_feature='$ac_optarg'" ;;
445
446 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
447 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
448 | --exec | --exe | --ex)
449 ac_prev=exec_prefix ;;
450 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
451 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
452 | --exec=* | --exe=* | --ex=*)
453 exec_prefix=$ac_optarg ;;
454
455 -gas | --gas | --ga | --g)
456 # Obsolete; use --with-gas.
457 with_gas=yes ;;
458
459 -help | --help | --hel | --he | -h)
460 ac_init_help=long ;;
461 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
462 ac_init_help=recursive ;;
463 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
464 ac_init_help=short ;;
465
466 -host | --host | --hos | --ho)
467 ac_prev=host_alias ;;
468 -host=* | --host=* | --hos=* | --ho=*)
469 host_alias=$ac_optarg ;;
470
471 -includedir | --includedir | --includedi | --included | --include \
472 | --includ | --inclu | --incl | --inc)
473 ac_prev=includedir ;;
474 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
475 | --includ=* | --inclu=* | --incl=* | --inc=*)
476 includedir=$ac_optarg ;;
477
478 -infodir | --infodir | --infodi | --infod | --info | --inf)
479 ac_prev=infodir ;;
480 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
481 infodir=$ac_optarg ;;
482
483 -libdir | --libdir | --libdi | --libd)
484 ac_prev=libdir ;;
485 -libdir=* | --libdir=* | --libdi=* | --libd=*)
486 libdir=$ac_optarg ;;
487
488 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
489 | --libexe | --libex | --libe)
490 ac_prev=libexecdir ;;
491 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
492 | --libexe=* | --libex=* | --libe=*)
493 libexecdir=$ac_optarg ;;
494
495 -localstatedir | --localstatedir | --localstatedi | --localstated \
496 | --localstate | --localstat | --localsta | --localst \
497 | --locals | --local | --loca | --loc | --lo)
498 ac_prev=localstatedir ;;
499 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
500 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
501 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
502 localstatedir=$ac_optarg ;;
503
504 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
505 ac_prev=mandir ;;
506 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
507 mandir=$ac_optarg ;;
508
509 -nfp | --nfp | --nf)
510 # Obsolete; use --without-fp.
511 with_fp=no ;;
512
513 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
514 | --no-cr | --no-c | -n)
515 no_create=yes ;;
516
517 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
518 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
519 no_recursion=yes ;;
520
521 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
522 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
523 | --oldin | --oldi | --old | --ol | --o)
524 ac_prev=oldincludedir ;;
525 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
526 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
527 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
528 oldincludedir=$ac_optarg ;;
529
530 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
531 ac_prev=prefix ;;
532 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
533 prefix=$ac_optarg ;;
534
535 -program-prefix | --program-prefix | --program-prefi | --program-pref \
536 | --program-pre | --program-pr | --program-p)
537 ac_prev=program_prefix ;;
538 -program-prefix=* | --program-prefix=* | --program-prefi=* \
539 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
540 program_prefix=$ac_optarg ;;
541
542 -program-suffix | --program-suffix | --program-suffi | --program-suff \
543 | --program-suf | --program-su | --program-s)
544 ac_prev=program_suffix ;;
545 -program-suffix=* | --program-suffix=* | --program-suffi=* \
546 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
547 program_suffix=$ac_optarg ;;
548
549 -program-transform-name | --program-transform-name \
550 | --program-transform-nam | --program-transform-na \
551 | --program-transform-n | --program-transform- \
552 | --program-transform | --program-transfor \
553 | --program-transfo | --program-transf \
554 | --program-trans | --program-tran \
555 | --progr-tra | --program-tr | --program-t)
556 ac_prev=program_transform_name ;;
557 -program-transform-name=* | --program-transform-name=* \
558 | --program-transform-nam=* | --program-transform-na=* \
559 | --program-transform-n=* | --program-transform-=* \
560 | --program-transform=* | --program-transfor=* \
561 | --program-transfo=* | --program-transf=* \
562 | --program-trans=* | --program-tran=* \
563 | --progr-tra=* | --program-tr=* | --program-t=*)
564 program_transform_name=$ac_optarg ;;
565
566 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
567 | -silent | --silent | --silen | --sile | --sil)
568 silent=yes ;;
569
570 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
571 ac_prev=sbindir ;;
572 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
573 | --sbi=* | --sb=*)
574 sbindir=$ac_optarg ;;
575
576 -sharedstatedir | --sharedstatedir | --sharedstatedi \
577 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
578 | --sharedst | --shareds | --shared | --share | --shar \
579 | --sha | --sh)
580 ac_prev=sharedstatedir ;;
581 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
582 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
583 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
584 | --sha=* | --sh=*)
585 sharedstatedir=$ac_optarg ;;
586
587 -site | --site | --sit)
588 ac_prev=site ;;
589 -site=* | --site=* | --sit=*)
590 site=$ac_optarg ;;
591
592 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
593 ac_prev=srcdir ;;
594 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
595 srcdir=$ac_optarg ;;
596
597 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
598 | --syscon | --sysco | --sysc | --sys | --sy)
599 ac_prev=sysconfdir ;;
600 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
601 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
602 sysconfdir=$ac_optarg ;;
603
604 -target | --target | --targe | --targ | --tar | --ta | --t)
605 ac_prev=target_alias ;;
606 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
607 target_alias=$ac_optarg ;;
608
609 -v | -verbose | --verbose | --verbos | --verbo | --verb)
610 verbose=yes ;;
611
612 -version | --version | --versio | --versi | --vers | -V)
613 ac_init_version=: ;;
614
615 -with-* | --with-*)
616 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
617 # Reject names that are not valid shell variable names.
618 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
619 { echo "$as_me: error: invalid package name: $ac_package" >&2
620 { (exit 1); exit 1; }; }
621 ac_package=`echo $ac_package| sed 's/-/_/g'`
622 case $ac_option in
623 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
624 *) ac_optarg=yes ;;
625 esac
626 eval "with_$ac_package='$ac_optarg'" ;;
627
628 -without-* | --without-*)
629 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
630 # Reject names that are not valid shell variable names.
631 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
632 { echo "$as_me: error: invalid package name: $ac_package" >&2
633 { (exit 1); exit 1; }; }
634 ac_package=`echo $ac_package | sed 's/-/_/g'`
635 eval "with_$ac_package=no" ;;
636
637 --x)
638 # Obsolete; use --with-x.
639 with_x=yes ;;
640
641 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
642 | --x-incl | --x-inc | --x-in | --x-i)
643 ac_prev=x_includes ;;
644 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
645 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
646 x_includes=$ac_optarg ;;
647
648 -x-libraries | --x-libraries | --x-librarie | --x-librari \
649 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
650 ac_prev=x_libraries ;;
651 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
652 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
653 x_libraries=$ac_optarg ;;
654
655 -*) { echo "$as_me: error: unrecognized option: $ac_option
656 Try \`$0 --help' for more information." >&2
657 { (exit 1); exit 1; }; }
658 ;;
659
660 *=*)
661 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
662 # Reject names that are not valid shell variable names.
663 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
664 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
665 { (exit 1); exit 1; }; }
666 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
667 eval "$ac_envvar='$ac_optarg'"
668 export $ac_envvar ;;
669
670 *)
671 # FIXME: should be removed in autoconf 3.0.
672 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
673 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
674 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
675 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
676 ;;
677
678 esac
679 done
680
681 if test -n "$ac_prev"; then
682 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
683 { echo "$as_me: error: missing argument to $ac_option" >&2
684 { (exit 1); exit 1; }; }
685 fi
686
687 # Be sure to have absolute paths.
688 for ac_var in exec_prefix prefix
689 do
690 eval ac_val=$`echo $ac_var`
691 case $ac_val in
692 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
693 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
694 { (exit 1); exit 1; }; };;
695 esac
696 done
697
698 # Be sure to have absolute paths.
699 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
700 localstatedir libdir includedir oldincludedir infodir mandir
701 do
702 eval ac_val=$`echo $ac_var`
703 case $ac_val in
704 [\\/$]* | ?:[\\/]* ) ;;
705 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
706 { (exit 1); exit 1; }; };;
707 esac
708 done
709
710 # There might be people who depend on the old broken behavior: `$host'
711 # used to hold the argument of --host etc.
712 # FIXME: To remove some day.
713 build=$build_alias
714 host=$host_alias
715 target=$target_alias
716
717 # FIXME: To remove some day.
718 if test "x$host_alias" != x; then
719 if test "x$build_alias" = x; then
720 cross_compiling=maybe
721 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
722 If a cross compiler is detected then cross compile mode will be used." >&2
723 elif test "x$build_alias" != "x$host_alias"; then
724 cross_compiling=yes
725 fi
726 fi
727
728 ac_tool_prefix=
729 test -n "$host_alias" && ac_tool_prefix=$host_alias-
730
731 test "$silent" = yes && exec 6>/dev/null
732
733
734 # Find the source files, if location was not specified.
735 if test -z "$srcdir"; then
736 ac_srcdir_defaulted=yes
737 # Try the directory containing this script, then its parent.
738 ac_confdir=`(dirname "$0") 2>/dev/null ||
739 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
740 X"$0" : 'X\(//\)[^/]' \| \
741 X"$0" : 'X\(//\)$' \| \
742 X"$0" : 'X\(/\)' \| \
743 . : '\(.\)' 2>/dev/null ||
744 echo X"$0" |
745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
746 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
747 /^X\(\/\/\)$/{ s//\1/; q; }
748 /^X\(\/\).*/{ s//\1/; q; }
749 s/.*/./; q'`
750 srcdir=$ac_confdir
751 if test ! -r $srcdir/$ac_unique_file; then
752 srcdir=..
753 fi
754 else
755 ac_srcdir_defaulted=no
756 fi
757 if test ! -r $srcdir/$ac_unique_file; then
758 if test "$ac_srcdir_defaulted" = yes; then
759 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
760 { (exit 1); exit 1; }; }
761 else
762 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
763 { (exit 1); exit 1; }; }
764 fi
765 fi
766 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
767 ac_env_build_alias_set=${build_alias+set}
768 ac_env_build_alias_value=$build_alias
769 ac_cv_env_build_alias_set=${build_alias+set}
770 ac_cv_env_build_alias_value=$build_alias
771 ac_env_host_alias_set=${host_alias+set}
772 ac_env_host_alias_value=$host_alias
773 ac_cv_env_host_alias_set=${host_alias+set}
774 ac_cv_env_host_alias_value=$host_alias
775 ac_env_target_alias_set=${target_alias+set}
776 ac_env_target_alias_value=$target_alias
777 ac_cv_env_target_alias_set=${target_alias+set}
778 ac_cv_env_target_alias_value=$target_alias
779 ac_env_CC_set=${CC+set}
780 ac_env_CC_value=$CC
781 ac_cv_env_CC_set=${CC+set}
782 ac_cv_env_CC_value=$CC
783 ac_env_CFLAGS_set=${CFLAGS+set}
784 ac_env_CFLAGS_value=$CFLAGS
785 ac_cv_env_CFLAGS_set=${CFLAGS+set}
786 ac_cv_env_CFLAGS_value=$CFLAGS
787 ac_env_LDFLAGS_set=${LDFLAGS+set}
788 ac_env_LDFLAGS_value=$LDFLAGS
789 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
790 ac_cv_env_LDFLAGS_value=$LDFLAGS
791 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
792 ac_env_CPPFLAGS_value=$CPPFLAGS
793 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
794 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
795 ac_env_ELLCC_set=${ELLCC+set}
796 ac_env_ELLCC_value=$ELLCC
797 ac_cv_env_ELLCC_set=${ELLCC+set}
798 ac_cv_env_ELLCC_value=$ELLCC
799 ac_env_CPP_set=${CPP+set}
800 ac_env_CPP_value=$CPP
801 ac_cv_env_CPP_set=${CPP+set}
802 ac_cv_env_CPP_value=$CPP
803
804 #
805 # Report the --help message.
806 #
807 if test "$ac_init_help" = "long"; then
808 # Omit some internal or obsolete options to make the list less imposing.
809 # This message is too long to be a string in the A/UX 3.1 sh.
810 cat <<_ACEOF
811 \`configure' configures LDAP module 1.0 to adapt to many kinds of systems.
812
813 Usage: $0 [OPTION]... [VAR=VALUE]...
814
815 To assign environment variables (e.g., CC, CFLAGS...), specify them as
816 VAR=VALUE. See below for descriptions of some of the useful variables.
817
818 Defaults for the options are specified in brackets.
819
820 Configuration:
821 -h, --help display this help and exit
822 --help=short display options specific to this package
823 --help=recursive display the short help of all the included packages
824 -V, --version display version information and exit
825 -q, --quiet, --silent do not print \`checking...' messages
826 --cache-file=FILE cache test results in FILE [disabled]
827 -C, --config-cache alias for \`--cache-file=config.cache'
828 -n, --no-create do not create output files
829 --srcdir=DIR find the sources in DIR [configure dir or \`..']
830
831 _ACEOF
832
833 cat <<_ACEOF
834 Installation directories:
835 --prefix=PREFIX install architecture-independent files in PREFIX
836 [$ac_default_prefix]
837 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
838 [PREFIX]
839
840 By default, \`make install' will install all the files in
841 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
842 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
843 for instance \`--prefix=\$HOME'.
844
845 For better control, use the options below.
846
847 Fine tuning of the installation directories:
848 --bindir=DIR user executables [EPREFIX/bin]
849 --sbindir=DIR system admin executables [EPREFIX/sbin]
850 --libexecdir=DIR program executables [EPREFIX/libexec]
851 --datadir=DIR read-only architecture-independent data [PREFIX/share]
852 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
853 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
854 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
855 --libdir=DIR object code libraries [EPREFIX/lib]
856 --includedir=DIR C header files [PREFIX/include]
857 --oldincludedir=DIR C header files for non-gcc [/usr/include]
858 --infodir=DIR info documentation [PREFIX/info]
859 --mandir=DIR man documentation [PREFIX/man]
860 _ACEOF
861
862 cat <<\_ACEOF
863 _ACEOF
864 fi
865
866 if test -n "$ac_init_help"; then
867 case $ac_init_help in
868 short | recursive ) echo "Configuration of LDAP module 1.0:";;
869 esac
870 cat <<\_ACEOF
871
872 Some influential environment variables:
873 CC C compiler command
874 CFLAGS C compiler flags
875 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
876 nonstandard directory <lib dir>
877 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
878 headers in a nonstandard directory <include dir>
879 ELLCC The path to the ellcc module compiler
880 CPP C preprocessor
881
882 Use these variables to override the choices made by `configure' or to help
883 it to find libraries and programs with nonstandard names/locations.
884
885 Report bugs to <xemacs-beta@xemacs.org>.
886 _ACEOF
887 fi
888
889 if test "$ac_init_help" = "recursive"; then
890 # If there are subdirs, report their specific --help.
891 ac_popdir=`pwd`
892 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
893 test -d $ac_dir || continue
894 ac_builddir=.
895
896 if test "$ac_dir" != .; then
897 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
898 # A "../" for each directory in $ac_dir_suffix.
899 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
900 else
901 ac_dir_suffix= ac_top_builddir=
902 fi
903
904 case $srcdir in
905 .) # No --srcdir option. We are building in place.
906 ac_srcdir=.
907 if test -z "$ac_top_builddir"; then
908 ac_top_srcdir=.
909 else
910 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
911 fi ;;
912 [\\/]* | ?:[\\/]* ) # Absolute path.
913 ac_srcdir=$srcdir$ac_dir_suffix;
914 ac_top_srcdir=$srcdir ;;
915 *) # Relative path.
916 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
917 ac_top_srcdir=$ac_top_builddir$srcdir ;;
918 esac
919 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
920 # absolute.
921 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
922 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
923 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
924 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
925
926 cd $ac_dir
927 # Check for guested configure; otherwise get Cygnus style configure.
928 if test -f $ac_srcdir/configure.gnu; then
929 echo
930 $SHELL $ac_srcdir/configure.gnu --help=recursive
931 elif test -f $ac_srcdir/configure; then
932 echo
933 $SHELL $ac_srcdir/configure --help=recursive
934 elif test -f $ac_srcdir/configure.ac ||
935 test -f $ac_srcdir/configure.in; then
936 echo
937 $ac_configure --help
938 else
939 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
940 fi
941 cd $ac_popdir
942 done
943 fi
944
945 test -n "$ac_init_help" && exit 0
946 if $ac_init_version; then
947 cat <<\_ACEOF
948 LDAP module configure 1.0
949 generated by GNU Autoconf 2.53b
950
951 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
952 Free Software Foundation, Inc.
953 This configure script is free software; the Free Software Foundation
954 gives unlimited permission to copy, distribute and modify it.
955
956 Configuration script for the LDAP module.
957 Copyright (C) 2002 Jerry James.
958
959 This file is part of XEmacs.
960
961 XEmacs is free software; you can redistribute it and/or modify it
962 under the terms of the GNU General Public License as published by
963 the Free Software Foundation; either version 2, or (at your
964 option) any later version.
965
966 XEmacs is distributed in the hope that it will be useful, but
967 WITHOUT ANY WARRANTY; without even the implied warranty of
968 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
969 General Public License for more details.
970
971 You should have received a copy of the GNU General Public License
972 along with XEmacs; see the file COPYING. If not, write to the Free
973 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
974 02111-1307, USA.
975 _ACEOF
976 exit 0
977 fi
978 exec 5>config.log
979 cat >&5 <<_ACEOF
980 This file contains any messages produced by compilers while
981 running configure, to aid debugging if configure makes a mistake.
982
983 It was created by LDAP module $as_me 1.0, which was
984 generated by GNU Autoconf 2.53b. Invocation command line was
985
986 $ $0 $@
987
988 _ACEOF
989 {
990 cat <<_ASUNAME
991 ## --------- ##
992 ## Platform. ##
993 ## --------- ##
994
995 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
996 uname -m = `(uname -m) 2>/dev/null || echo unknown`
997 uname -r = `(uname -r) 2>/dev/null || echo unknown`
998 uname -s = `(uname -s) 2>/dev/null || echo unknown`
999 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1000
1001 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1002 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1003
1004 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1005 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1006 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1007 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1008 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1009 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1010 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1011
1012 _ASUNAME
1013
1014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1015 for as_dir in $PATH
1016 do
1017 IFS=$as_save_IFS
1018 test -z "$as_dir" && as_dir=.
1019 echo "PATH: $as_dir"
1020 done
1021
1022 } >&5
1023
1024 cat >&5 <<_ACEOF
1025
1026
1027 ## ----------- ##
1028 ## Core tests. ##
1029 ## ----------- ##
1030
1031 _ACEOF
1032
1033
1034 # Keep a trace of the command line.
1035 # Strip out --no-create and --no-recursion so they do not pile up.
1036 # Also quote any args containing shell meta-characters.
1037 ac_configure_args=
1038 ac_sep=
1039 for ac_arg
1040 do
1041 case $ac_arg in
1042 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1043 | --no-cr | --no-c | -n ) continue ;;
1044 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1045 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1046 continue ;;
1047 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1048 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1049 esac
1050 case " $ac_configure_args " in
1051 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1052 *) ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1053 ac_sep=" " ;;
1054 esac
1055 # Get rid of the leading space.
1056 done
1057
1058 # When interrupted or exit'd, cleanup temporary files, and complete
1059 # config.log. We remove comments because anyway the quotes in there
1060 # would cause problems or look ugly.
1061 # WARNING: Be sure not to use single quotes in there, as some shells,
1062 # such as our DU 5.0 friend, will then `close' the trap.
1063 trap 'exit_status=$?
1064 # Save into config.log some information that might help in debugging.
1065 {
1066 echo
1067
1068 cat <<\_ASBOX
1069 ## ---------------- ##
1070 ## Cache variables. ##
1071 ## ---------------- ##
1072 _ASBOX
1073 echo
1074 # The following way of writing the cache mishandles newlines in values,
1075 {
1076 (set) 2>&1 |
1077 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1078 *ac_space=\ *)
1079 sed -n \
1080 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1081 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1082 ;;
1083 *)
1084 sed -n \
1085 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1086 ;;
1087 esac;
1088 }
1089 echo
1090
1091 cat <<\_ASBOX
1092 ## ----------------- ##
1093 ## Output variables. ##
1094 ## ----------------- ##
1095 _ASBOX
1096 echo
1097 for ac_var in $ac_subst_vars
1098 do
1099 eval ac_val=$`echo $ac_var`
1100 echo "$ac_var='"'"'$ac_val'"'"'"
1101 done | sort
1102 echo
1103
1104 if test -n "$ac_subst_files"; then
1105 cat <<\_ASBOX
1106 ## ------------- ##
1107 ## Output files. ##
1108 ## ------------- ##
1109 _ASBOX
1110 echo
1111 for ac_var in $ac_subst_files
1112 do
1113 eval ac_val=$`echo $ac_var`
1114 echo "$ac_var='"'"'$ac_val'"'"'"
1115 done | sort
1116 echo
1117 fi
1118
1119 if test -s confdefs.h; then
1120 cat <<\_ASBOX
1121 ## ----------- ##
1122 ## confdefs.h. ##
1123 ## ----------- ##
1124 _ASBOX
1125 echo
1126 sed "/^$/d" confdefs.h | sort
1127 echo
1128 fi
1129 test "$ac_signal" != 0 &&
1130 echo "$as_me: caught signal $ac_signal"
1131 echo "$as_me: exit $exit_status"
1132 } >&5
1133 rm -f core core.* *.core &&
1134 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1135 exit $exit_status
1136 ' 0
1137 for ac_signal in 1 2 13 15; do
1138 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1139 done
1140 ac_signal=0
1141
1142 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1143 rm -rf conftest* confdefs.h
1144 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1145 echo >confdefs.h
1146
1147 # Predefined preprocessor variables.
1148
1149 cat >>confdefs.h <<_ACEOF
1150 #define PACKAGE_NAME "$PACKAGE_NAME"
1151 _ACEOF
1152
1153
1154 cat >>confdefs.h <<_ACEOF
1155 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1156 _ACEOF
1157
1158
1159 cat >>confdefs.h <<_ACEOF
1160 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1161 _ACEOF
1162
1163
1164 cat >>confdefs.h <<_ACEOF
1165 #define PACKAGE_STRING "$PACKAGE_STRING"
1166 _ACEOF
1167
1168
1169 cat >>confdefs.h <<_ACEOF
1170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1171 _ACEOF
1172
1173
1174 # Let the site file select an alternate cache file if it wants to.
1175 # Prefer explicitly selected file to automatically selected ones.
1176 if test -z "$CONFIG_SITE"; then
1177 if test "x$prefix" != xNONE; then
1178 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1179 else
1180 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1181 fi
1182 fi
1183 for ac_site_file in $CONFIG_SITE; do
1184 if test -r "$ac_site_file"; then
1185 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1186 echo "$as_me: loading site script $ac_site_file" >&6;}
1187 sed 's/^/| /' "$ac_site_file" >&5
1188 . "$ac_site_file"
1189 fi
1190 done
1191
1192 if test -r "$cache_file"; then
1193 # Some versions of bash will fail to source /dev/null (special
1194 # files actually), so we avoid doing that.
1195 if test -f "$cache_file"; then
1196 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1197 echo "$as_me: loading cache $cache_file" >&6;}
1198 case $cache_file in
1199 [\\/]* | ?:[\\/]* ) . $cache_file;;
1200 *) . ./$cache_file;;
1201 esac
1202 fi
1203 else
1204 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1205 echo "$as_me: creating cache $cache_file" >&6;}
1206 >$cache_file
1207 fi
1208
1209 # Check that the precious variables saved in the cache have kept the same
1210 # value.
1211 ac_cache_corrupted=false
1212 for ac_var in `(set) 2>&1 |
1213 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1214 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1215 eval ac_new_set=\$ac_env_${ac_var}_set
1216 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1217 eval ac_new_val="\$ac_env_${ac_var}_value"
1218 case $ac_old_set,$ac_new_set in
1219 set,)
1220 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1221 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1222 ac_cache_corrupted=: ;;
1223 ,set)
1224 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1225 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1226 ac_cache_corrupted=: ;;
1227 ,);;
1228 *)
1229 if test "x$ac_old_val" != "x$ac_new_val"; then
1230 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1231 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1232 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1233 echo "$as_me: former value: $ac_old_val" >&2;}
1234 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1235 echo "$as_me: current value: $ac_new_val" >&2;}
1236 ac_cache_corrupted=:
1237 fi;;
1238 esac
1239 # Pass precious variables to config.status.
1240 if test "$ac_new_set" = set; then
1241 case $ac_new_val in
1242 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1244 *) ac_arg=$ac_var=$ac_new_val ;;
1245 esac
1246 case " $ac_configure_args " in
1247 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1248 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1249 esac
1250 fi
1251 done
1252 if $ac_cache_corrupted; then
1253 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1254 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1255 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1256 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1257 { (exit 1); exit 1; }; }
1258 fi
1259
1260 ac_ext=c
1261 ac_cpp='$CPP $CPPFLAGS'
1262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297 ac_ext=c
1298 ac_cpp='$CPP $CPPFLAGS'
1299 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1300 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1301 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1302 if test -n "$ac_tool_prefix"; then
1303 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1304 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1305 echo "$as_me:$LINENO: checking for $ac_word" >&5
1306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1307 if test "${ac_cv_prog_CC+set}" = set; then
1308 echo $ECHO_N "(cached) $ECHO_C" >&6
1309 else
1310 if test -n "$CC"; then
1311 ac_cv_prog_CC="$CC" # Let the user override the test.
1312 else
1313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1314 for as_dir in $PATH
1315 do
1316 IFS=$as_save_IFS
1317 test -z "$as_dir" && as_dir=.
1318 for ac_exec_ext in '' $ac_executable_extensions; do
1319 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1320 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1322 break 2
1323 fi
1324 done
1325 done
1326
1327 fi
1328 fi
1329 CC=$ac_cv_prog_CC
1330 if test -n "$CC"; then
1331 echo "$as_me:$LINENO: result: $CC" >&5
1332 echo "${ECHO_T}$CC" >&6
1333 else
1334 echo "$as_me:$LINENO: result: no" >&5
1335 echo "${ECHO_T}no" >&6
1336 fi
1337
1338 fi
1339 if test -z "$ac_cv_prog_CC"; then
1340 ac_ct_CC=$CC
1341 # Extract the first word of "gcc", so it can be a program name with args.
1342 set dummy gcc; ac_word=$2
1343 echo "$as_me:$LINENO: checking for $ac_word" >&5
1344 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1345 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1346 echo $ECHO_N "(cached) $ECHO_C" >&6
1347 else
1348 if test -n "$ac_ct_CC"; then
1349 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1350 else
1351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1352 for as_dir in $PATH
1353 do
1354 IFS=$as_save_IFS
1355 test -z "$as_dir" && as_dir=.
1356 for ac_exec_ext in '' $ac_executable_extensions; do
1357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1358 ac_cv_prog_ac_ct_CC="gcc"
1359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1360 break 2
1361 fi
1362 done
1363 done
1364
1365 fi
1366 fi
1367 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1368 if test -n "$ac_ct_CC"; then
1369 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1370 echo "${ECHO_T}$ac_ct_CC" >&6
1371 else
1372 echo "$as_me:$LINENO: result: no" >&5
1373 echo "${ECHO_T}no" >&6
1374 fi
1375
1376 CC=$ac_ct_CC
1377 else
1378 CC="$ac_cv_prog_CC"
1379 fi
1380
1381 if test -z "$CC"; then
1382 if test -n "$ac_tool_prefix"; then
1383 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1384 set dummy ${ac_tool_prefix}cc; ac_word=$2
1385 echo "$as_me:$LINENO: checking for $ac_word" >&5
1386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1387 if test "${ac_cv_prog_CC+set}" = set; then
1388 echo $ECHO_N "(cached) $ECHO_C" >&6
1389 else
1390 if test -n "$CC"; then
1391 ac_cv_prog_CC="$CC" # Let the user override the test.
1392 else
1393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1394 for as_dir in $PATH
1395 do
1396 IFS=$as_save_IFS
1397 test -z "$as_dir" && as_dir=.
1398 for ac_exec_ext in '' $ac_executable_extensions; do
1399 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1400 ac_cv_prog_CC="${ac_tool_prefix}cc"
1401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1402 break 2
1403 fi
1404 done
1405 done
1406
1407 fi
1408 fi
1409 CC=$ac_cv_prog_CC
1410 if test -n "$CC"; then
1411 echo "$as_me:$LINENO: result: $CC" >&5
1412 echo "${ECHO_T}$CC" >&6
1413 else
1414 echo "$as_me:$LINENO: result: no" >&5
1415 echo "${ECHO_T}no" >&6
1416 fi
1417
1418 fi
1419 if test -z "$ac_cv_prog_CC"; then
1420 ac_ct_CC=$CC
1421 # Extract the first word of "cc", so it can be a program name with args.
1422 set dummy cc; ac_word=$2
1423 echo "$as_me:$LINENO: checking for $ac_word" >&5
1424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1425 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1426 echo $ECHO_N "(cached) $ECHO_C" >&6
1427 else
1428 if test -n "$ac_ct_CC"; then
1429 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1430 else
1431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1432 for as_dir in $PATH
1433 do
1434 IFS=$as_save_IFS
1435 test -z "$as_dir" && as_dir=.
1436 for ac_exec_ext in '' $ac_executable_extensions; do
1437 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1438 ac_cv_prog_ac_ct_CC="cc"
1439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1440 break 2
1441 fi
1442 done
1443 done
1444
1445 fi
1446 fi
1447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1448 if test -n "$ac_ct_CC"; then
1449 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1450 echo "${ECHO_T}$ac_ct_CC" >&6
1451 else
1452 echo "$as_me:$LINENO: result: no" >&5
1453 echo "${ECHO_T}no" >&6
1454 fi
1455
1456 CC=$ac_ct_CC
1457 else
1458 CC="$ac_cv_prog_CC"
1459 fi
1460
1461 fi
1462 if test -z "$CC"; then
1463 # Extract the first word of "cc", so it can be a program name with args.
1464 set dummy cc; ac_word=$2
1465 echo "$as_me:$LINENO: checking for $ac_word" >&5
1466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1467 if test "${ac_cv_prog_CC+set}" = set; then
1468 echo $ECHO_N "(cached) $ECHO_C" >&6
1469 else
1470 if test -n "$CC"; then
1471 ac_cv_prog_CC="$CC" # Let the user override the test.
1472 else
1473 ac_prog_rejected=no
1474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 for as_dir in $PATH
1476 do
1477 IFS=$as_save_IFS
1478 test -z "$as_dir" && as_dir=.
1479 for ac_exec_ext in '' $ac_executable_extensions; do
1480 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1482 ac_prog_rejected=yes
1483 continue
1484 fi
1485 ac_cv_prog_CC="cc"
1486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1487 break 2
1488 fi
1489 done
1490 done
1491
1492 if test $ac_prog_rejected = yes; then
1493 # We found a bogon in the path, so make sure we never use it.
1494 set dummy $ac_cv_prog_CC
1495 shift
1496 if test $# != 0; then
1497 # We chose a different compiler from the bogus one.
1498 # However, it has the same basename, so the bogon will be chosen
1499 # first if we set CC to just the basename; use the full file name.
1500 shift
1501 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1502 fi
1503 fi
1504 fi
1505 fi
1506 CC=$ac_cv_prog_CC
1507 if test -n "$CC"; then
1508 echo "$as_me:$LINENO: result: $CC" >&5
1509 echo "${ECHO_T}$CC" >&6
1510 else
1511 echo "$as_me:$LINENO: result: no" >&5
1512 echo "${ECHO_T}no" >&6
1513 fi
1514
1515 fi
1516 if test -z "$CC"; then
1517 if test -n "$ac_tool_prefix"; then
1518 for ac_prog in cl
1519 do
1520 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1521 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1522 echo "$as_me:$LINENO: checking for $ac_word" >&5
1523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1524 if test "${ac_cv_prog_CC+set}" = set; then
1525 echo $ECHO_N "(cached) $ECHO_C" >&6
1526 else
1527 if test -n "$CC"; then
1528 ac_cv_prog_CC="$CC" # Let the user override the test.
1529 else
1530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1531 for as_dir in $PATH
1532 do
1533 IFS=$as_save_IFS
1534 test -z "$as_dir" && as_dir=.
1535 for ac_exec_ext in '' $ac_executable_extensions; do
1536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1537 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1539 break 2
1540 fi
1541 done
1542 done
1543
1544 fi
1545 fi
1546 CC=$ac_cv_prog_CC
1547 if test -n "$CC"; then
1548 echo "$as_me:$LINENO: result: $CC" >&5
1549 echo "${ECHO_T}$CC" >&6
1550 else
1551 echo "$as_me:$LINENO: result: no" >&5
1552 echo "${ECHO_T}no" >&6
1553 fi
1554
1555 test -n "$CC" && break
1556 done
1557 fi
1558 if test -z "$CC"; then
1559 ac_ct_CC=$CC
1560 for ac_prog in cl
1561 do
1562 # Extract the first word of "$ac_prog", so it can be a program name with args.
1563 set dummy $ac_prog; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 else
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1571 else
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1573 for as_dir in $PATH
1574 do
1575 IFS=$as_save_IFS
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="$ac_prog"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1581 break 2
1582 fi
1583 done
1584 done
1585
1586 fi
1587 fi
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1592 else
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1595 fi
1596
1597 test -n "$ac_ct_CC" && break
1598 done
1599
1600 CC=$ac_ct_CC
1601 fi
1602
1603 fi
1604
1605
1606 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH" >&5
1607 echo "$as_me: error: no acceptable C compiler found in \$PATH" >&2;}
1608 { (exit 1); exit 1; }; }
1609
1610 # Provide some information about the compiler.
1611 echo "$as_me:$LINENO:" \
1612 "checking for C compiler version" >&5
1613 ac_compiler=`set X $ac_compile; echo $2`
1614 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1615 (eval $ac_compiler --version </dev/null >&5) 2>&5
1616 ac_status=$?
1617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1618 (exit $ac_status); }
1619 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1620 (eval $ac_compiler -v </dev/null >&5) 2>&5
1621 ac_status=$?
1622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1623 (exit $ac_status); }
1624 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1625 (eval $ac_compiler -V </dev/null >&5) 2>&5
1626 ac_status=$?
1627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628 (exit $ac_status); }
1629
1630 cat >conftest.$ac_ext <<_ACEOF
1631 #line $LINENO "configure"
1632 #include "confdefs.h"
1633
1634 int
1635 main ()
1636 {
1637
1638 ;
1639 return 0;
1640 }
1641 _ACEOF
1642 ac_clean_files_save=$ac_clean_files
1643 ac_clean_files="$ac_clean_files a.out a.exe"
1644 # Try to create an executable without -o first, disregard a.out.
1645 # It will help us diagnose broken compilers, and finding out an intuition
1646 # of exeext.
1647 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1648 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1649 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1650 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1651 (eval $ac_link_default) 2>&5
1652 ac_status=$?
1653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1654 (exit $ac_status); }; then
1655 # Find the output, starting from the most likely. This scheme is
1656 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1657 # resort.
1658
1659 # Be careful to initialize this variable, since it used to be cached.
1660 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1661 ac_cv_exeext=
1662 for ac_file in `ls a_out.exe a.exe conftest.exe 2>/dev/null;
1663 ls a.out conftest 2>/dev/null;
1664 ls a.* conftest.* 2>/dev/null`; do
1665 case $ac_file in
1666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1667 a.out ) # We found the default executable, but exeext='' is most
1668 # certainly right.
1669 break;;
1670 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1671 # FIXME: I believe we export ac_cv_exeext for Libtool --akim.
1672 export ac_cv_exeext
1673 break;;
1674 * ) break;;
1675 esac
1676 done
1677 else
1678 echo "$as_me: failed program was:" >&5
1679 cat conftest.$ac_ext >&5
1680 { { echo "$as_me:$LINENO: error: C compiler cannot create executables" >&5
1681 echo "$as_me: error: C compiler cannot create executables" >&2;}
1682 { (exit 77); exit 77; }; }
1683 fi
1684
1685 ac_exeext=$ac_cv_exeext
1686 echo "$as_me:$LINENO: result: $ac_file" >&5
1687 echo "${ECHO_T}$ac_file" >&6
1688
1689 # Check the compiler produces executables we can run. If not, either
1690 # the compiler is broken, or we cross compile.
1691 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1692 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1693 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1694 # If not cross compiling, check that we can run a simple program.
1695 if test "$cross_compiling" != yes; then
1696 if { ac_try='./$ac_file'
1697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1698 (eval $ac_try) 2>&5
1699 ac_status=$?
1700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1701 (exit $ac_status); }; }; then
1702 cross_compiling=no
1703 else
1704 if test "$cross_compiling" = maybe; then
1705 cross_compiling=yes
1706 else
1707 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1708 If you meant to cross compile, use \`--host'." >&5
1709 echo "$as_me: error: cannot run C compiled programs.
1710 If you meant to cross compile, use \`--host'." >&2;}
1711 { (exit 1); exit 1; }; }
1712 fi
1713 fi
1714 fi
1715 echo "$as_me:$LINENO: result: yes" >&5
1716 echo "${ECHO_T}yes" >&6
1717
1718 rm -f a.out a.exe conftest$ac_cv_exeext
1719 ac_clean_files=$ac_clean_files_save
1720 # Check the compiler produces executables we can run. If not, either
1721 # the compiler is broken, or we cross compile.
1722 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1723 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1724 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1725 echo "${ECHO_T}$cross_compiling" >&6
1726
1727 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1728 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1729 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1730 (eval $ac_link) 2>&5
1731 ac_status=$?
1732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1733 (exit $ac_status); }; then
1734 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1735 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1736 # work properly (i.e., refer to `conftest.exe'), while it won't with
1737 # `rm'.
1738 for ac_file in `(ls conftest.exe; ls conftest; ls conftest.*) 2>/dev/null`; do
1739 case $ac_file in
1740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1741 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1742 export ac_cv_exeext
1743 break;;
1744 * ) break;;
1745 esac
1746 done
1747 else
1748 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link" >&5
1749 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link" >&2;}
1750 { (exit 1); exit 1; }; }
1751 fi
1752
1753 rm -f conftest$ac_cv_exeext
1754 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1755 echo "${ECHO_T}$ac_cv_exeext" >&6
1756
1757 rm -f conftest.$ac_ext
1758 EXEEXT=$ac_cv_exeext
1759 ac_exeext=$EXEEXT
1760 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1761 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1762 if test "${ac_cv_objext+set}" = set; then
1763 echo $ECHO_N "(cached) $ECHO_C" >&6
1764 else
1765 cat >conftest.$ac_ext <<_ACEOF
1766 #line $LINENO "configure"
1767 #include "confdefs.h"
1768
1769 int
1770 main ()
1771 {
1772
1773 ;
1774 return 0;
1775 }
1776 _ACEOF
1777 rm -f conftest.o conftest.obj
1778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1779 (eval $ac_compile) 2>&5
1780 ac_status=$?
1781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1782 (exit $ac_status); }; then
1783 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1784 case $ac_file in
1785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1786 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1787 break;;
1788 esac
1789 done
1790 else
1791 echo "$as_me: failed program was:" >&5
1792 cat conftest.$ac_ext >&5
1793 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile" >&5
1794 echo "$as_me: error: cannot compute suffix of object files: cannot compile" >&2;}
1795 { (exit 1); exit 1; }; }
1796 fi
1797
1798 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1799 fi
1800 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1801 echo "${ECHO_T}$ac_cv_objext" >&6
1802 OBJEXT=$ac_cv_objext
1803 ac_objext=$OBJEXT
1804 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1805 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1806 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1808 else
1809 cat >conftest.$ac_ext <<_ACEOF
1810 #line $LINENO "configure"
1811 #include "confdefs.h"
1812
1813 int
1814 main ()
1815 {
1816 #ifndef __GNUC__
1817 choke me
1818 #endif
1819
1820 ;
1821 return 0;
1822 }
1823 _ACEOF
1824 rm -f conftest.$ac_objext
1825 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1826 (eval $ac_compile) 2>&5
1827 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1829 (exit $ac_status); } &&
1830 { ac_try='test -s conftest.$ac_objext'
1831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1832 (eval $ac_try) 2>&5
1833 ac_status=$?
1834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835 (exit $ac_status); }; }; then
1836 ac_compiler_gnu=yes
1837 else
1838 echo "$as_me: failed program was:" >&5
1839 cat conftest.$ac_ext >&5
1840 ac_compiler_gnu=no
1841 fi
1842 rm -f conftest.$ac_objext conftest.$ac_ext
1843 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1844
1845 fi
1846 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1847 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1848 GCC=`test $ac_compiler_gnu = yes && echo yes`
1849 ac_test_CFLAGS=${CFLAGS+set}
1850 ac_save_CFLAGS=$CFLAGS
1851 CFLAGS="-g"
1852 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1853 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1854 if test "${ac_cv_prog_cc_g+set}" = set; then
1855 echo $ECHO_N "(cached) $ECHO_C" >&6
1856 else
1857 cat >conftest.$ac_ext <<_ACEOF
1858 #line $LINENO "configure"
1859 #include "confdefs.h"
1860
1861 int
1862 main ()
1863 {
1864
1865 ;
1866 return 0;
1867 }
1868 _ACEOF
1869 rm -f conftest.$ac_objext
1870 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1871 (eval $ac_compile) 2>&5
1872 ac_status=$?
1873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874 (exit $ac_status); } &&
1875 { ac_try='test -s conftest.$ac_objext'
1876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1877 (eval $ac_try) 2>&5
1878 ac_status=$?
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; }; then
1881 ac_cv_prog_cc_g=yes
1882 else
1883 echo "$as_me: failed program was:" >&5
1884 cat conftest.$ac_ext >&5
1885 ac_cv_prog_cc_g=no
1886 fi
1887 rm -f conftest.$ac_objext conftest.$ac_ext
1888 fi
1889 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1890 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1891 if test "$ac_test_CFLAGS" = set; then
1892 CFLAGS=$ac_save_CFLAGS
1893 elif test $ac_cv_prog_cc_g = yes; then
1894 if test "$GCC" = yes; then
1895 CFLAGS="-g -O2"
1896 else
1897 CFLAGS="-g"
1898 fi
1899 else
1900 if test "$GCC" = yes; then
1901 CFLAGS="-O2"
1902 else
1903 CFLAGS=
1904 fi
1905 fi
1906 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1907 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1908 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1909 echo $ECHO_N "(cached) $ECHO_C" >&6
1910 else
1911 ac_cv_prog_cc_stdc=no
1912 ac_save_CC=$CC
1913 cat >conftest.$ac_ext <<_ACEOF
1914 #line $LINENO "configure"
1915 #include "confdefs.h"
1916 #include <stdarg.h>
1917 #include <stdio.h>
1918 #include <sys/types.h>
1919 #include <sys/stat.h>
1920 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1921 struct buf { int x; };
1922 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1923 static char *e (p, i)
1924 char **p;
1925 int i;
1926 {
1927 return p[i];
1928 }
1929 static char *f (char * (*g) (char **, int), char **p, ...)
1930 {
1931 char *s;
1932 va_list v;
1933 va_start (v,p);
1934 s = g (p, va_arg (v,int));
1935 va_end (v);
1936 return s;
1937 }
1938 int test (int i, double x);
1939 struct s1 {int (*f) (int a);};
1940 struct s2 {int (*f) (double a);};
1941 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1942 int argc;
1943 char **argv;
1944 int
1945 main ()
1946 {
1947 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1948 ;
1949 return 0;
1950 }
1951 _ACEOF
1952 # Don't try gcc -ansi; that turns off useful extensions and
1953 # breaks some systems' header files.
1954 # AIX -qlanglvl=ansi
1955 # Ultrix and OSF/1 -std1
1956 # HP-UX 10.20 and later -Ae
1957 # HP-UX older versions -Aa -D_HPUX_SOURCE
1958 # SVR4 -Xc -D__EXTENSIONS__
1959 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1960 do
1961 CC="$ac_save_CC $ac_arg"
1962 rm -f conftest.$ac_objext
1963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1964 (eval $ac_compile) 2>&5
1965 ac_status=$?
1966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1967 (exit $ac_status); } &&
1968 { ac_try='test -s conftest.$ac_objext'
1969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1970 (eval $ac_try) 2>&5
1971 ac_status=$?
1972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1973 (exit $ac_status); }; }; then
1974 ac_cv_prog_cc_stdc=$ac_arg
1975 break
1976 else
1977 echo "$as_me: failed program was:" >&5
1978 cat conftest.$ac_ext >&5
1979 fi
1980 rm -f conftest.$ac_objext
1981 done
1982 rm -f conftest.$ac_ext conftest.$ac_objext
1983 CC=$ac_save_CC
1984
1985 fi
1986
1987 case "x$ac_cv_prog_cc_stdc" in
1988 x|xno)
1989 echo "$as_me:$LINENO: result: none needed" >&5
1990 echo "${ECHO_T}none needed" >&6 ;;
1991 *)
1992 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
1993 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
1994 CC="$CC $ac_cv_prog_cc_stdc" ;;
1995 esac
1996
1997 # Some people use a C++ compiler to compile C. Since we use `exit',
1998 # in C++ we need to declare it. In case someone uses the same compiler
1999 # for both compiling C and C++ we need to have the C++ compiler decide
2000 # the declaration of exit, since it's the most demanding environment.
2001 cat >conftest.$ac_ext <<_ACEOF
2002 #ifndef __cplusplus
2003 choke me
2004 #endif
2005 _ACEOF
2006 rm -f conftest.$ac_objext
2007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2008 (eval $ac_compile) 2>&5
2009 ac_status=$?
2010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2011 (exit $ac_status); } &&
2012 { ac_try='test -s conftest.$ac_objext'
2013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2014 (eval $ac_try) 2>&5
2015 ac_status=$?
2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2017 (exit $ac_status); }; }; then
2018 for ac_declaration in \
2019 ''\
2020 '#include <stdlib.h>' \
2021 'extern "C" void std::exit (int) throw (); using std::exit;' \
2022 'extern "C" void std::exit (int); using std::exit;' \
2023 'extern "C" void exit (int) throw ();' \
2024 'extern "C" void exit (int);' \
2025 'void exit (int);'
2026 do
2027 cat >conftest.$ac_ext <<_ACEOF
2028 #line $LINENO "configure"
2029 #include "confdefs.h"
2030 #include <stdlib.h>
2031 $ac_declaration
2032 int
2033 main ()
2034 {
2035 exit (42);
2036 ;
2037 return 0;
2038 }
2039 _ACEOF
2040 rm -f conftest.$ac_objext
2041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042 (eval $ac_compile) 2>&5
2043 ac_status=$?
2044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2045 (exit $ac_status); } &&
2046 { ac_try='test -s conftest.$ac_objext'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2048 (eval $ac_try) 2>&5
2049 ac_status=$?
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2052 :
2053 else
2054 echo "$as_me: failed program was:" >&5
2055 cat conftest.$ac_ext >&5
2056 continue
2057 fi
2058 rm -f conftest.$ac_objext conftest.$ac_ext
2059 cat >conftest.$ac_ext <<_ACEOF
2060 #line $LINENO "configure"
2061 #include "confdefs.h"
2062 $ac_declaration
2063 int
2064 main ()
2065 {
2066 exit (42);
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 rm -f conftest.$ac_objext
2072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2073 (eval $ac_compile) 2>&5
2074 ac_status=$?
2075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2076 (exit $ac_status); } &&
2077 { ac_try='test -s conftest.$ac_objext'
2078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2079 (eval $ac_try) 2>&5
2080 ac_status=$?
2081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2082 (exit $ac_status); }; }; then
2083 break
2084 else
2085 echo "$as_me: failed program was:" >&5
2086 cat conftest.$ac_ext >&5
2087 fi
2088 rm -f conftest.$ac_objext conftest.$ac_ext
2089 done
2090 rm -f conftest*
2091 if test -n "$ac_declaration"; then
2092 echo '#ifdef __cplusplus' >>confdefs.h
2093 echo $ac_declaration >>confdefs.h
2094 echo '#endif' >>confdefs.h
2095 fi
2096
2097 else
2098 echo "$as_me: failed program was:" >&5
2099 cat conftest.$ac_ext >&5
2100 fi
2101 rm -f conftest.$ac_objext conftest.$ac_ext
2102 ac_ext=c
2103 ac_cpp='$CPP $CPPFLAGS'
2104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2107
2108 ac_aux_dir=
2109 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2110 if test -f $ac_dir/install-sh; then
2111 ac_aux_dir=$ac_dir
2112 ac_install_sh="$ac_aux_dir/install-sh -c"
2113 break
2114 elif test -f $ac_dir/install.sh; then
2115 ac_aux_dir=$ac_dir
2116 ac_install_sh="$ac_aux_dir/install.sh -c"
2117 break
2118 elif test -f $ac_dir/shtool; then
2119 ac_aux_dir=$ac_dir
2120 ac_install_sh="$ac_aux_dir/shtool install -c"
2121 break
2122 fi
2123 done
2124 if test -z "$ac_aux_dir"; then
2125 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2126 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2127 { (exit 1); exit 1; }; }
2128 fi
2129 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2130 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2131 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2132
2133 # Find a good install program. We prefer a C program (faster),
2134 # so one script is as good as another. But avoid the broken or
2135 # incompatible versions:
2136 # SysV /etc/install, /usr/sbin/install
2137 # SunOS /usr/etc/install
2138 # IRIX /sbin/install
2139 # AIX /bin/install
2140 # AmigaOS /C/install, which installs bootblocks on floppy discs
2141 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2142 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2143 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2144 # ./install, which can be erroneously created by make from ./install.sh.
2145 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2146 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2147 if test -z "$INSTALL"; then
2148 if test "${ac_cv_path_install+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152 for as_dir in $PATH
2153 do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
2156 # Account for people who put trailing slashes in PATH elements.
2157 case $as_dir/ in
2158 ./ | .// | /cC/* | \
2159 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2160 /usr/ucb/* ) ;;
2161 *)
2162 # OSF1 and SCO ODT 3.0 have their own names for install.
2163 # Don't use installbsd from OSF since it installs stuff as root
2164 # by default.
2165 for ac_prog in ginstall scoinst install; do
2166 for ac_exec_ext in '' $ac_executable_extensions; do
2167 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2168 if test $ac_prog = install &&
2169 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2170 # AIX install. It has an incompatible calling convention.
2171 :
2172 elif test $ac_prog = install &&
2173 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2174 # program-specific install script used by HP pwplus--don't use.
2175 :
2176 else
2177 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2178 break 3
2179 fi
2180 fi
2181 done
2182 done
2183 ;;
2184 esac
2185 done
2186
2187
2188 fi
2189 if test "${ac_cv_path_install+set}" = set; then
2190 INSTALL=$ac_cv_path_install
2191 else
2192 # As a last resort, use the slow shell script. We don't cache a
2193 # path for INSTALL within a source directory, because that will
2194 # break other packages using the cache if that directory is
2195 # removed, or if the path is relative.
2196 INSTALL=$ac_install_sh
2197 fi
2198 fi
2199 echo "$as_me:$LINENO: result: $INSTALL" >&5
2200 echo "${ECHO_T}$INSTALL" >&6
2201
2202 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2203 # It thinks the first close brace ends the variable substitution.
2204 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2205
2206 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2207
2208 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2209
2210
2211
2212
2213 # Find ELLCC
2214
2215 # Extract the first word of "ellcc", so it can be a program name with args.
2216 set dummy ellcc; ac_word=$2
2217 echo "$as_me:$LINENO: checking for $ac_word" >&5
2218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2219 if test "${ac_cv_path_ELLCC+set}" = set; then
2220 echo $ECHO_N "(cached) $ECHO_C" >&6
2221 else
2222 case $ELLCC in
2223 [\\/]* | ?:[\\/]*)
2224 ac_cv_path_ELLCC="$ELLCC" # Let the user override the test with a path.
2225 ;;
2226 *)
2227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2228 for as_dir in $PATH
2229 do
2230 IFS=$as_save_IFS
2231 test -z "$as_dir" && as_dir=.
2232 for ac_exec_ext in '' $ac_executable_extensions; do
2233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2234 ac_cv_path_ELLCC="$as_dir/$ac_word$ac_exec_ext"
2235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 break 2
2237 fi
2238 done
2239 done
2240
2241 test -z "$ac_cv_path_ELLCC" && ac_cv_path_ELLCC=""FAIL""
2242 ;;
2243 esac
2244 fi
2245 ELLCC=$ac_cv_path_ELLCC
2246
2247 if test -n "$ELLCC"; then
2248 echo "$as_me:$LINENO: result: $ELLCC" >&5
2249 echo "${ECHO_T}$ELLCC" >&6
2250 else
2251 echo "$as_me:$LINENO: result: no" >&5
2252 echo "${ECHO_T}no" >&6
2253 fi
2254
2255 if test "$ELLCC" = "FAIL"; then
2256 { { echo "$as_me:$LINENO: error: Cannot find ellcc" >&5
2257 echo "$as_me: error: Cannot find ellcc" >&2;}
2258 { (exit 1); exit 1; }; }
2259 fi
2260
2261
2262 # Find the LDAP headers and libraries
2263 have_ldap="yes"
2264
2265 ac_ext=c
2266 ac_cpp='$CPP $CPPFLAGS'
2267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2270 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2272 # On Suns, sometimes $CPP names a directory.
2273 if test -n "$CPP" && test -d "$CPP"; then
2274 CPP=
2275 fi
2276 if test -z "$CPP"; then
2277 if test "${ac_cv_prog_CPP+set}" = set; then
2278 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 else
2280 # Double quotes because CPP needs to be expanded
2281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2282 do
2283 ac_preproc_ok=false
2284 for ac_c_preproc_warn_flag in '' yes
2285 do
2286 # Use a header file that comes with gcc, so configuring glibc
2287 # with a fresh cross-compiler works.
2288 # On the NeXT, cc -E runs the code through the compiler's parser,
2289 # not just through cpp. "Syntax error" is here to catch this case.
2290 cat >conftest.$ac_ext <<_ACEOF
2291 #line $LINENO "configure"
2292 #include "confdefs.h"
2293 #include <assert.h>
2294 Syntax error
2295 _ACEOF
2296 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2297 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2298 ac_status=$?
2299 grep -v '^ *+' conftest.er1 >conftest.err
2300 rm -f conftest.er1
2301 cat conftest.err >&5
2302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2303 (exit $ac_status); } >/dev/null; then
2304 if test -s conftest.err; then
2305 ac_cpp_err=$ac_c_preproc_warn_flag
2306 else
2307 ac_cpp_err=
2308 fi
2309 else
2310 ac_cpp_err=yes
2311 fi
2312 if test -z "$ac_cpp_err"; then
2313 :
2314 else
2315 echo "$as_me: failed program was:" >&5
2316 cat conftest.$ac_ext >&5
2317 # Broken: fails on valid input.
2318 continue
2319 fi
2320 rm -f conftest.err conftest.$ac_ext
2321
2322 # OK, works on sane cases. Now check whether non-existent headers
2323 # can be detected and how.
2324 cat >conftest.$ac_ext <<_ACEOF
2325 #line $LINENO "configure"
2326 #include "confdefs.h"
2327 #include <ac_nonexistent.h>
2328 _ACEOF
2329 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2330 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2331 ac_status=$?
2332 grep -v '^ *+' conftest.er1 >conftest.err
2333 rm -f conftest.er1
2334 cat conftest.err >&5
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2336 (exit $ac_status); } >/dev/null; then
2337 if test -s conftest.err; then
2338 ac_cpp_err=$ac_c_preproc_warn_flag
2339 else
2340 ac_cpp_err=
2341 fi
2342 else
2343 ac_cpp_err=yes
2344 fi
2345 if test -z "$ac_cpp_err"; then
2346 # Broken: success on invalid input.
2347 continue
2348 else
2349 echo "$as_me: failed program was:" >&5
2350 cat conftest.$ac_ext >&5
2351 # Passes both tests.
2352 ac_preproc_ok=:
2353 break
2354 fi
2355 rm -f conftest.err conftest.$ac_ext
2356
2357 done
2358 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2359 rm -f conftest.err conftest.$ac_ext
2360 if $ac_preproc_ok; then
2361 break
2362 fi
2363
2364 done
2365 ac_cv_prog_CPP=$CPP
2366
2367 fi
2368 CPP=$ac_cv_prog_CPP
2369 else
2370 ac_cv_prog_CPP=$CPP
2371 fi
2372 echo "$as_me:$LINENO: result: $CPP" >&5
2373 echo "${ECHO_T}$CPP" >&6
2374 ac_preproc_ok=false
2375 for ac_c_preproc_warn_flag in '' yes
2376 do
2377 # Use a header file that comes with gcc, so configuring glibc
2378 # with a fresh cross-compiler works.
2379 # On the NeXT, cc -E runs the code through the compiler's parser,
2380 # not just through cpp. "Syntax error" is here to catch this case.
2381 cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2383 #include "confdefs.h"
2384 #include <assert.h>
2385 Syntax error
2386 _ACEOF
2387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2389 ac_status=$?
2390 grep -v '^ *+' conftest.er1 >conftest.err
2391 rm -f conftest.er1
2392 cat conftest.err >&5
2393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2394 (exit $ac_status); } >/dev/null; then
2395 if test -s conftest.err; then
2396 ac_cpp_err=$ac_c_preproc_warn_flag
2397 else
2398 ac_cpp_err=
2399 fi
2400 else
2401 ac_cpp_err=yes
2402 fi
2403 if test -z "$ac_cpp_err"; then
2404 :
2405 else
2406 echo "$as_me: failed program was:" >&5
2407 cat conftest.$ac_ext >&5
2408 # Broken: fails on valid input.
2409 continue
2410 fi
2411 rm -f conftest.err conftest.$ac_ext
2412
2413 # OK, works on sane cases. Now check whether non-existent headers
2414 # can be detected and how.
2415 cat >conftest.$ac_ext <<_ACEOF
2416 #line $LINENO "configure"
2417 #include "confdefs.h"
2418 #include <ac_nonexistent.h>
2419 _ACEOF
2420 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2421 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2422 ac_status=$?
2423 grep -v '^ *+' conftest.er1 >conftest.err
2424 rm -f conftest.er1
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } >/dev/null; then
2428 if test -s conftest.err; then
2429 ac_cpp_err=$ac_c_preproc_warn_flag
2430 else
2431 ac_cpp_err=
2432 fi
2433 else
2434 ac_cpp_err=yes
2435 fi
2436 if test -z "$ac_cpp_err"; then
2437 # Broken: success on invalid input.
2438 continue
2439 else
2440 echo "$as_me: failed program was:" >&5
2441 cat conftest.$ac_ext >&5
2442 # Passes both tests.
2443 ac_preproc_ok=:
2444 break
2445 fi
2446 rm -f conftest.err conftest.$ac_ext
2447
2448 done
2449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2450 rm -f conftest.err conftest.$ac_ext
2451 if $ac_preproc_ok; then
2452 :
2453 else
2454 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5
2455 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;}
2456 { (exit 1); exit 1; }; }
2457 fi
2458
2459 ac_ext=c
2460 ac_cpp='$CPP $CPPFLAGS'
2461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2464
2465
2466 echo "$as_me:$LINENO: checking for egrep" >&5
2467 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2468 if test "${ac_cv_prog_egrep+set}" = set; then
2469 echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2472 then ac_cv_prog_egrep='grep -E'
2473 else ac_cv_prog_egrep='egrep'
2474 fi
2475 fi
2476 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2477 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2478 EGREP=$ac_cv_prog_egrep
2479
2480
2481 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2482 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2483 if test "${ac_cv_header_stdc+set}" = set; then
2484 echo $ECHO_N "(cached) $ECHO_C" >&6
2485 else
2486 cat >conftest.$ac_ext <<_ACEOF
2487 #line $LINENO "configure"
2488 #include "confdefs.h"
2489 #include <stdlib.h>
2490 #include <stdarg.h>
2491 #include <string.h>
2492 #include <float.h>
2493
2494 _ACEOF
2495 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2496 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2497 ac_status=$?
2498 grep -v '^ *+' conftest.er1 >conftest.err
2499 rm -f conftest.er1
2500 cat conftest.err >&5
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); } >/dev/null; then
2503 if test -s conftest.err; then
2504 ac_cpp_err=$ac_c_preproc_warn_flag
2505 else
2506 ac_cpp_err=
2507 fi
2508 else
2509 ac_cpp_err=yes
2510 fi
2511 if test -z "$ac_cpp_err"; then
2512 ac_cv_header_stdc=yes
2513 else
2514 echo "$as_me: failed program was:" >&5
2515 cat conftest.$ac_ext >&5
2516 ac_cv_header_stdc=no
2517 fi
2518 rm -f conftest.err conftest.$ac_ext
2519
2520 if test $ac_cv_header_stdc = yes; then
2521 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2522 cat >conftest.$ac_ext <<_ACEOF
2523 #line $LINENO "configure"
2524 #include "confdefs.h"
2525 #include <string.h>
2526
2527 _ACEOF
2528 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2529 $EGREP "memchr" >/dev/null 2>&1; then
2530 :
2531 else
2532 ac_cv_header_stdc=no
2533 fi
2534 rm -f conftest*
2535
2536 fi
2537
2538 if test $ac_cv_header_stdc = yes; then
2539 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2540 cat >conftest.$ac_ext <<_ACEOF
2541 #line $LINENO "configure"
2542 #include "confdefs.h"
2543 #include <stdlib.h>
2544
2545 _ACEOF
2546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2547 $EGREP "free" >/dev/null 2>&1; then
2548 :
2549 else
2550 ac_cv_header_stdc=no
2551 fi
2552 rm -f conftest*
2553
2554 fi
2555
2556 if test $ac_cv_header_stdc = yes; then
2557 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2558 if test "$cross_compiling" = yes; then
2559 :
2560 else
2561 cat >conftest.$ac_ext <<_ACEOF
2562 #line $LINENO "configure"
2563 #include "confdefs.h"
2564 #include <ctype.h>
2565 #if ((' ' & 0x0FF) == 0x020)
2566 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2567 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2568 #else
2569 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
2570 || ('j' <= (c) && (c) <= 'r') \
2571 || ('s' <= (c) && (c) <= 'z'))
2572 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2573 #endif
2574
2575 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2576 int
2577 main ()
2578 {
2579 int i;
2580 for (i = 0; i < 256; i++)
2581 if (XOR (islower (i), ISLOWER (i))
2582 || toupper (i) != TOUPPER (i))
2583 exit(2);
2584 exit (0);
2585 }
2586 _ACEOF
2587 rm -f conftest$ac_exeext
2588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2589 (eval $ac_link) 2>&5
2590 ac_status=$?
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2594 (eval $ac_try) 2>&5
2595 ac_status=$?
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2598 :
2599 else
2600 echo "$as_me: program exited with status $ac_status" >&5
2601 echo "$as_me: failed program was:" >&5
2602 cat conftest.$ac_ext >&5
2603 ( exit $ac_status )
2604 ac_cv_header_stdc=no
2605 fi
2606 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2607 fi
2608 fi
2609 fi
2610 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2611 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2612 if test $ac_cv_header_stdc = yes; then
2613
2614 cat >>confdefs.h <<\_ACEOF
2615 #define STDC_HEADERS 1
2616 _ACEOF
2617
2618 fi
2619
2620 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2631 inttypes.h stdint.h unistd.h
2632 do
2633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2634 echo "$as_me:$LINENO: checking for $ac_header" >&5
2635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2636 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639 cat >conftest.$ac_ext <<_ACEOF
2640 #line $LINENO "configure"
2641 #include "confdefs.h"
2642 $ac_includes_default
2643
2644 #include <$ac_header>
2645 _ACEOF
2646 rm -f conftest.$ac_objext
2647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2648 (eval $ac_compile) 2>&5
2649 ac_status=$?
2650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2651 (exit $ac_status); } &&
2652 { ac_try='test -s conftest.$ac_objext'
2653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2654 (eval $ac_try) 2>&5
2655 ac_status=$?
2656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2657 (exit $ac_status); }; }; then
2658 eval "$as_ac_Header=yes"
2659 else
2660 echo "$as_me: failed program was:" >&5
2661 cat conftest.$ac_ext >&5
2662 eval "$as_ac_Header=no"
2663 fi
2664 rm -f conftest.$ac_objext conftest.$ac_ext
2665 fi
2666 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2667 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2669 cat >>confdefs.h <<_ACEOF
2670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2671 _ACEOF
2672
2673 fi
2674
2675 done
2676
2677
2678
2679
2680 for ac_header in ldap.h lber.h
2681 do
2682 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2683 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2684 echo "$as_me:$LINENO: checking for $ac_header" >&5
2685 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2686 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2687 echo $ECHO_N "(cached) $ECHO_C" >&6
2688 fi
2689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2690 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2691 else
2692 # Is the header compilable?
2693 echo "$as_me:$LINENO: checking $ac_header usability" >&5
2694 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
2695 cat >conftest.$ac_ext <<_ACEOF
2696 #line $LINENO "configure"
2697 #include "confdefs.h"
2698 $ac_includes_default
2699 #include <$ac_header>
2700 _ACEOF
2701 rm -f conftest.$ac_objext
2702 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2703 (eval $ac_compile) 2>&5
2704 ac_status=$?
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2706 (exit $ac_status); } &&
2707 { ac_try='test -s conftest.$ac_objext'
2708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2709 (eval $ac_try) 2>&5
2710 ac_status=$?
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); }; }; then
2713 ac_header_compiler=yes
2714 else
2715 echo "$as_me: failed program was:" >&5
2716 cat conftest.$ac_ext >&5
2717 ac_header_compiler=no
2718 fi
2719 rm -f conftest.$ac_objext conftest.$ac_ext
2720 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
2721 echo "${ECHO_T}$ac_header_compiler" >&6
2722
2723 # Is the header present?
2724 echo "$as_me:$LINENO: checking $ac_header presence" >&5
2725 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
2726 cat >conftest.$ac_ext <<_ACEOF
2727 #line $LINENO "configure"
2728 #include "confdefs.h"
2729 #include <$ac_header>
2730 _ACEOF
2731 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2732 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2733 ac_status=$?
2734 grep -v '^ *+' conftest.er1 >conftest.err
2735 rm -f conftest.er1
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } >/dev/null; then
2739 if test -s conftest.err; then
2740 ac_cpp_err=$ac_c_preproc_warn_flag
2741 else
2742 ac_cpp_err=
2743 fi
2744 else
2745 ac_cpp_err=yes
2746 fi
2747 if test -z "$ac_cpp_err"; then
2748 ac_header_preproc=yes
2749 else
2750 echo "$as_me: failed program was:" >&5
2751 cat conftest.$ac_ext >&5
2752 ac_header_preproc=no
2753 fi
2754 rm -f conftest.err conftest.$ac_ext
2755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
2756 echo "${ECHO_T}$ac_header_preproc" >&6
2757
2758 # So? What about this header?
2759 case $ac_header_compiler:$ac_header_preproc in
2760 yes:no )
2761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
2762 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
2763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
2765 no:yes )
2766 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
2767 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
2768 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
2769 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
2770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
2771 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;};;
2772 esac
2773 echo "$as_me:$LINENO: checking for $ac_header" >&5
2774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2775 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2776 echo $ECHO_N "(cached) $ECHO_C" >&6
2777 else
2778 eval "$as_ac_Header=$ac_header_preproc"
2779 fi
2780 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2781 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2782
2783 fi
2784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2785 cat >>confdefs.h <<_ACEOF
2786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
2787 _ACEOF
2788
2789 else
2790 have_ldap="no"
2791 fi
2792
2793 done
2794
2795 if test "$have_ldap" = "yes"; then
2796
2797 echo "$as_me:$LINENO: checking for ldap_search in -lldap" >&5
2798 echo $ECHO_N "checking for ldap_search in -lldap... $ECHO_C" >&6
2799 if test "${ac_cv_lib_ldap_ldap_search+set}" = set; then
2800 echo $ECHO_N "(cached) $ECHO_C" >&6
2801 else
2802 ac_check_lib_save_LIBS=$LIBS
2803 LIBS="-lldap -llber $LIBS"
2804 cat >conftest.$ac_ext <<_ACEOF
2805 #line $LINENO "configure"
2806 #include "confdefs.h"
2807
2808 /* Override any gcc2 internal prototype to avoid an error. */
2809 #ifdef __cplusplus
2810 extern "C"
2811 #endif
2812 /* We use char because int might match the return type of a gcc2
2813 builtin and then its argument prototype would still apply. */
2814 char ldap_search ();
2815 int
2816 main ()
2817 {
2818 ldap_search ();
2819 ;
2820 return 0;
2821 }
2822 _ACEOF
2823 rm -f conftest.$ac_objext conftest$ac_exeext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2825 (eval $ac_link) 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); } &&
2829 { ac_try='test -s conftest$ac_exeext'
2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2831 (eval $ac_try) 2>&5
2832 ac_status=$?
2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2834 (exit $ac_status); }; }; then
2835 ac_cv_lib_ldap_ldap_search=yes
2836 else
2837 echo "$as_me: failed program was:" >&5
2838 cat conftest.$ac_ext >&5
2839 ac_cv_lib_ldap_ldap_search=no
2840 fi
2841 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2842 LIBS=$ac_check_lib_save_LIBS
2843 fi
2844 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_search" >&5
2845 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_search" >&6
2846 if test $ac_cv_lib_ldap_ldap_search = yes; then
2847 cat >>confdefs.h <<_ACEOF
2848 #define HAVE_LIBLDAP 1
2849 _ACEOF
2850
2851 LIBS="-lldap $LIBS"
2852
2853 else
2854 have_ldap="no"; LIBS="$LIBS -llber"
2855 fi
2856
2857 test "$have_ldap" = "no" && {
2858 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
2859 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
2860 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
2861 echo $ECHO_N "(cached) $ECHO_C" >&6
2862 else
2863 ac_check_lib_save_LIBS=$LIBS
2864 LIBS="-lldap -lkrb $LIBS"
2865 cat >conftest.$ac_ext <<_ACEOF
2866 #line $LINENO "configure"
2867 #include "confdefs.h"
2868
2869 /* Override any gcc2 internal prototype to avoid an error. */
2870 #ifdef __cplusplus
2871 extern "C"
2872 #endif
2873 /* We use char because int might match the return type of a gcc2
2874 builtin and then its argument prototype would still apply. */
2875 char ldap_open ();
2876 int
2877 main ()
2878 {
2879 ldap_open ();
2880 ;
2881 return 0;
2882 }
2883 _ACEOF
2884 rm -f conftest.$ac_objext conftest$ac_exeext
2885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2886 (eval $ac_link) 2>&5
2887 ac_status=$?
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); } &&
2890 { ac_try='test -s conftest$ac_exeext'
2891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2892 (eval $ac_try) 2>&5
2893 ac_status=$?
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }; }; then
2896 ac_cv_lib_ldap_ldap_open=yes
2897 else
2898 echo "$as_me: failed program was:" >&5
2899 cat conftest.$ac_ext >&5
2900 ac_cv_lib_ldap_ldap_open=no
2901 fi
2902 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2903 LIBS=$ac_check_lib_save_LIBS
2904 fi
2905 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
2906 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
2907 if test $ac_cv_lib_ldap_ldap_open = yes; then
2908 have_ldap="yes"
2909 else
2910 LIBS="$LIBS -lkrb"
2911 fi
2912 }
2913 test "$have_ldap" = "no" && {
2914 echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
2915 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6
2916 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2918 else
2919 ac_check_lib_save_LIBS=$LIBS
2920 LIBS="-lldap -ldes $LIBS"
2921 cat >conftest.$ac_ext <<_ACEOF
2922 #line $LINENO "configure"
2923 #include "confdefs.h"
2924
2925 /* Override any gcc2 internal prototype to avoid an error. */
2926 #ifdef __cplusplus
2927 extern "C"
2928 #endif
2929 /* We use char because int might match the return type of a gcc2
2930 builtin and then its argument prototype would still apply. */
2931 char ldap_open ();
2932 int
2933 main ()
2934 {
2935 ldap_open ();
2936 ;
2937 return 0;
2938 }
2939 _ACEOF
2940 rm -f conftest.$ac_objext conftest$ac_exeext
2941 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2942 (eval $ac_link) 2>&5
2943 ac_status=$?
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); } &&
2946 { ac_try='test -s conftest$ac_exeext'
2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2948 (eval $ac_try) 2>&5
2949 ac_status=$?
2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951 (exit $ac_status); }; }; then
2952 ac_cv_lib_ldap_ldap_open=yes
2953 else
2954 echo "$as_me: failed program was:" >&5
2955 cat conftest.$ac_ext >&5
2956 ac_cv_lib_ldap_ldap_open=no
2957 fi
2958 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2959 LIBS=$ac_check_lib_save_LIBS
2960 fi
2961 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
2962 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6
2963 if test $ac_cv_lib_ldap_ldap_open = yes; then
2964 have_ldap="yes"
2965 else
2966 LIBS="$LIBS -ldes"
2967 fi
2968 }
2969 else
2970 { { echo "$as_me:$LINENO: error: Cannot find the LDAP header file" >&5
2971 echo "$as_me: error: Cannot find the LDAP header file" >&2;}
2972 { (exit 1); exit 1; }; }
2973 fi
2974
2975 if test "$have_ldap" = "yes"; then
2976
2977
2978
2979
2980 for ac_func in ldap_set_option ldap_get_lderrno ldap_result2error ldap_parse_result
2981 do
2982 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
2983 echo "$as_me:$LINENO: checking for $ac_func" >&5
2984 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
2985 if eval "test \"\${$as_ac_var+set}\" = set"; then
2986 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 else
2988 cat >conftest.$ac_ext <<_ACEOF
2989 #line $LINENO "configure"
2990 #include "confdefs.h"
2991 /* System header to define __stub macros and hopefully few prototypes,
2992 which can conflict with char $ac_func (); below. */
2993 #include <assert.h>
2994 /* Override any gcc2 internal prototype to avoid an error. */
2995 #ifdef __cplusplus
2996 extern "C"
2997 #endif
2998 /* We use char because int might match the return type of a gcc2
2999 builtin and then its argument prototype would still apply. */
3000 char $ac_func ();
3001 char (*f) ();
3002
3003 int
3004 main ()
3005 {
3006 /* The GNU C library defines this for functions which it implements
3007 to always fail with ENOSYS. Some functions are actually named
3008 something starting with __ and the normal name is an alias. */
3009 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3010 choke me
3011 #else
3012 f = $ac_func;
3013 #endif
3014
3015 ;
3016 return 0;
3017 }
3018 _ACEOF
3019 rm -f conftest.$ac_objext conftest$ac_exeext
3020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3021 (eval $ac_link) 2>&5
3022 ac_status=$?
3023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3024 (exit $ac_status); } &&
3025 { ac_try='test -s conftest$ac_exeext'
3026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3027 (eval $ac_try) 2>&5
3028 ac_status=$?
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); }; }; then
3031 eval "$as_ac_var=yes"
3032 else
3033 echo "$as_me: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3035 eval "$as_ac_var=no"
3036 fi
3037 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3038 fi
3039 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
3040 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
3041 if test `eval echo '${'$as_ac_var'}'` = yes; then
3042 cat >>confdefs.h <<_ACEOF
3043 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
3044 _ACEOF
3045
3046 fi
3047 done
3048
3049 else
3050 { { echo "$as_me:$LINENO: error: Cannot link with the LDAP library" >&5
3051 echo "$as_me: error: Cannot link with the LDAP library" >&2;}
3052 { (exit 1); exit 1; }; }
3053 fi
3054
3055 ldap_libs="$LIBS"
3056
3057
3058 # This part should appear unchanged in every module configure.ac
3059 PROGNAME="module"
3060
3061 MOD_CC="@ELLCC@"
3062
3063 MODARCHDIR="\$(shell @ELLCC@ --mod-archdir)"
3064
3065 MAKE_DOCFILE="\$(MODARCHDIR)/make-docfile"
3066
3067 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I\$(MODARCHDIR)/include"
3068
3069 INSTALLPATH="\$(shell @ELLCC@ --mod-site-location)"
3070
3071 MOD_INSTALL_PROGRAM="@INSTALL_PROGRAM@"
3072
3073 OBJECT_TO_BUILD="\$(MODNAME).ell"
3074
3075
3076 ac_config_files="$ac_config_files Makefile.in Makefile"
3077
3078 cat >confcache <<\_ACEOF
3079 # This file is a shell script that caches the results of configure
3080 # tests run on this system so they can be shared between configure
3081 # scripts and configure runs, see configure's option --config-cache.
3082 # It is not useful on other systems. If it contains results you don't
3083 # want to keep, you may remove or edit it.
3084 #
3085 # config.status only pays attention to the cache file if you give it
3086 # the --recheck option to rerun configure.
3087 #
3088 # `ac_cv_env_foo' variables (set or unset) will be overridden when
3089 # loading this file, other *unset* `ac_cv_foo' will be assigned the
3090 # following values.
3091
3092 _ACEOF
3093
3094 # The following way of writing the cache mishandles newlines in values,
3095 # but we know of no workaround that is simple, portable, and efficient.
3096 # So, don't put newlines in cache variables' values.
3097 # Ultrix sh set writes to stderr and can't be redirected directly,
3098 # and sets the high bit in the cache file unless we assign to the vars.
3099 {
3100 (set) 2>&1 |
3101 case `(ac_space=' '; set | grep ac_space) 2>&1` in
3102 *ac_space=\ *)
3103 # `set' does not quote correctly, so add quotes (double-quote
3104 # substitution turns \\\\ into \\, and sed turns \\ into \).
3105 sed -n \
3106 "s/'/'\\\\''/g;
3107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3108 ;;
3109 *)
3110 # `set' quotes correctly as required by POSIX, so do not add quotes.
3111 sed -n \
3112 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3113 ;;
3114 esac;
3115 } |
3116 sed '
3117 t clear
3118 : clear
3119 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3120 t end
3121 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3122 : end' >>confcache
3123 if cmp -s $cache_file confcache; then :; else
3124 if test -w $cache_file; then
3125 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3126 cat confcache >$cache_file
3127 else
3128 echo "not updating unwritable cache $cache_file"
3129 fi
3130 fi
3131 rm -f confcache
3132
3133 test "x$prefix" = xNONE && prefix=$ac_default_prefix
3134 # Let make expand exec_prefix.
3135 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3136
3137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
3138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3139 # trailing colons and then remove the whole line if VPATH becomes empty
3140 # (actually we leave an empty line to preserve line numbers).
3141 if test "x$srcdir" = x.; then
3142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
3143 s/:*\$(srcdir):*/:/;
3144 s/:*\${srcdir}:*/:/;
3145 s/:*@srcdir@:*/:/;
3146 s/^\([^=]*=[ ]*\):*/\1/;
3147 s/:*$//;
3148 s/^[^=]*=[ ]*$//;
3149 }'
3150 fi
3151
3152 # Transform confdefs.h into DEFS.
3153 # Protect against shell expansion while executing Makefile rules.
3154 # Protect against Makefile macro expansion.
3155 #
3156 # If the first sed substitution is executed (which looks for macros that
3157 # take arguments), then we branch to the quote section. Otherwise,
3158 # look for a macro that doesn't take arguments.
3159 cat >confdef2opt.sed <<\_ACEOF
3160 t clear
3161 : clear
3162 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
3163 t quote
3164 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
3165 t quote
3166 d
3167 : quote
3168 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
3169 s,\[,\\&,g
3170 s,\],\\&,g
3171 s,\$,$$,g
3172 p
3173 _ACEOF
3174 # We use echo to avoid assuming a particular line-breaking character.
3175 # The extra dot is to prevent the shell from consuming trailing
3176 # line-breaks from the sub-command output. A line-break within
3177 # single-quotes doesn't work because, if this script is created in a
3178 # platform that uses two characters for line-breaks (e.g., DOS), tr
3179 # would break.
3180 ac_LF_and_DOT=`echo; echo .`
3181 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3182 rm -f confdef2opt.sed
3183
3184
3185 ac_libobjs=
3186 ac_ltlibobjs=
3187 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3188 # 1. Remove the extension, and $U if already installed.
3189 ac_i=`echo "$ac_i" |
3190 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3191 # 2. Add them.
3192 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3193 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3194 done
3195 LIBOBJS=$ac_libobjs
3196
3197 LTLIBOBJS=$ac_ltlibobjs
3198
3199
3200
3201 : ${CONFIG_STATUS=./config.status}
3202 ac_clean_files_save=$ac_clean_files
3203 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3204 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3205 echo "$as_me: creating $CONFIG_STATUS" >&6;}
3206 cat >$CONFIG_STATUS <<_ACEOF
3207 #! $SHELL
3208 # Generated by $as_me.
3209 # Run this file to recreate the current configuration.
3210 # Compiler output produced by configure, useful for debugging
3211 # configure, is in config.log if it exists.
3212
3213 debug=false
3214 SHELL=\${CONFIG_SHELL-$SHELL}
3215 _ACEOF
3216
3217 cat >>$CONFIG_STATUS <<\_ACEOF
3218 ## --------------------- ##
3219 ## M4sh Initialization. ##
3220 ## --------------------- ##
3221
3222 # Be Bourne compatible
3223 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3224 emulate sh
3225 NULLCMD=:
3226 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3227 # is contrary to our usage. Disable this feature.
3228 alias -g '${1+"$@"}'='"$@"'
3229 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3230 set -o posix
3231 fi
3232
3233 # NLS nuisances.
3234 # Support unset when possible.
3235 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
3236 as_unset=unset
3237 else
3238 as_unset=false
3239 fi
3240
3241 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") &&
3242 { $as_unset LANG || test "${LANG+set}" != set; } ||
3243 { LANG=C; export LANG; }
3244 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") &&
3245 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } ||
3246 { LC_ALL=C; export LC_ALL; }
3247 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") &&
3248 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } ||
3249 { LC_TIME=C; export LC_TIME; }
3250 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") &&
3251 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } ||
3252 { LC_CTYPE=C; export LC_CTYPE; }
3253 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") &&
3254 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } ||
3255 { LANGUAGE=C; export LANGUAGE; }
3256 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") &&
3257 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } ||
3258 { LC_COLLATE=C; export LC_COLLATE; }
3259 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") &&
3260 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } ||
3261 { LC_NUMERIC=C; export LC_NUMERIC; }
3262 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") &&
3263 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } ||
3264 { LC_MESSAGES=C; export LC_MESSAGES; }
3265
3266
3267 # Required to use basename.
3268 if expr a : '\(a\)' >/dev/null 2>&1; then
3269 as_expr=expr
3270 else
3271 as_expr=false
3272 fi
3273
3274 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3275 as_basename=basename
3276 else
3277 as_basename=false
3278 fi
3279
3280
3281 # Name of the executable.
3282 as_me=`$as_basename "$0" ||
3283 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3284 X"$0" : 'X\(//\)$' \| \
3285 X"$0" : 'X\(/\)$' \| \
3286 . : '\(.\)' 2>/dev/null ||
3287 echo X/"$0" |
3288 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3289 /^X\/\(\/\/\)$/{ s//\1/; q; }
3290 /^X\/\(\/\).*/{ s//\1/; q; }
3291 s/.*/./; q'`
3292
3293
3294 # PATH needs CR, and LINENO needs CR and PATH.
3295 # Avoid depending upon Character Ranges.
3296 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3297 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3298 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3299 as_cr_digits='0123456789'
3300 as_cr_alnum=$as_cr_Letters$as_cr_digits
3301
3302 # The user is always right.
3303 if test "${PATH_SEPARATOR+set}" != set; then
3304 echo "#! /bin/sh" >conftest.sh
3305 echo "exit 0" >>conftest.sh
3306 chmod +x conftest.sh
3307 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then
3308 PATH_SEPARATOR=';'
3309 else
3310 PATH_SEPARATOR=:
3311 fi
3312 rm -f conftest.sh
3313 fi
3314
3315
3316 as_lineno_1=$LINENO
3317 as_lineno_2=$LINENO
3318 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3319 test "x$as_lineno_1" != "x$as_lineno_2" &&
3320 test "x$as_lineno_3" = "x$as_lineno_2" || {
3321 # Find who we are. Look in the path if we contain no path at all
3322 # relative or not.
3323 case $0 in
3324 *[\\/]* ) as_myself=$0 ;;
3325 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3331 done
3332
3333 ;;
3334 esac
3335 # We did not find ourselves, most probably we were run as `sh COMMAND'
3336 # in which case we are not to be found in the path.
3337 if test "x$as_myself" = x; then
3338 as_myself=$0
3339 fi
3340 if test ! -f "$as_myself"; then
3341 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3342 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3343 { (exit 1); exit 1; }; }
3344 fi
3345 case $CONFIG_SHELL in
3346 '')
3347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3348 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3349 do
3350 IFS=$as_save_IFS
3351 test -z "$as_dir" && as_dir=.
3352 for as_base in sh bash ksh sh5; do
3353 case $as_dir in
3354 /*)
3355 if ("$as_dir/$as_base" -c '
3356 as_lineno_1=$LINENO
3357 as_lineno_2=$LINENO
3358 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3359 test "x$as_lineno_1" != "x$as_lineno_2" &&
3360 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
3361 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3362 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3363 CONFIG_SHELL=$as_dir/$as_base
3364 export CONFIG_SHELL
3365 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3366 fi;;
3367 esac
3368 done
3369 done
3370 ;;
3371 esac
3372
3373 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3374 # uniformly replaced by the line number. The first 'sed' inserts a
3375 # line-number line before each line; the second 'sed' does the real
3376 # work. The second script uses 'N' to pair each line-number line
3377 # with the numbered line, and appends trailing '-' during
3378 # substitution so that $LINENO is not a special case at line end.
3379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3380 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
3381 sed '=' <$as_myself |
3382 sed '
3383 N
3384 s,$,-,
3385 : loop
3386 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3387 t loop
3388 s,-$,,
3389 s,^['$as_cr_digits']*\n,,
3390 ' >$as_me.lineno &&
3391 chmod +x $as_me.lineno ||
3392 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3393 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3394 { (exit 1); exit 1; }; }
3395
3396 # Don't try to exec as it changes $[0], causing all sort of problems
3397 # (the dirname of $[0] is not the place where we might find the
3398 # original and so on. Autoconf is especially sensible to this).
3399 . ./$as_me.lineno
3400 # Exit status is that of the last command.
3401 exit
3402 }
3403
3404
3405 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3406 *c*,-n*) ECHO_N= ECHO_C='
3407 ' ECHO_T=' ' ;;
3408 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3409 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
3410 esac
3411
3412 if expr a : '\(a\)' >/dev/null 2>&1; then
3413 as_expr=expr
3414 else
3415 as_expr=false
3416 fi
3417
3418 rm -f conf$$ conf$$.exe conf$$.file
3419 echo >conf$$.file
3420 if ln -s conf$$.file conf$$ 2>/dev/null; then
3421 # We could just check for DJGPP; but this test a) works b) is more generic
3422 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3423 if test -f conf$$.exe; then
3424 # Don't use ln at all; we don't have any links
3425 as_ln_s='cp -p'
3426 else
3427 as_ln_s='ln -s'
3428 fi
3429 elif ln conf$$.file conf$$ 2>/dev/null; then
3430 as_ln_s=ln
3431 else
3432 as_ln_s='cp -p'
3433 fi
3434 rm -f conf$$ conf$$.exe conf$$.file
3435
3436 if mkdir -p . 2>/dev/null; then
3437 as_mkdir_p=:
3438 else
3439 as_mkdir_p=false
3440 fi
3441
3442 as_executable_p="test -f"
3443
3444 # Sed expression to map a string onto a valid CPP name.
3445 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
3446
3447 # Sed expression to map a string onto a valid variable name.
3448 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
3449
3450
3451 # IFS
3452 # We need space, tab and new line, in precisely that order.
3453 as_nl='
3454 '
3455 IFS=" $as_nl"
3456
3457 # CDPATH.
3458 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; }
3459
3460 exec 6>&1
3461
3462 # Open the log real soon, to keep \$[0] and so on meaningful, and to
3463 # report actual input values of CONFIG_FILES etc. instead of their
3464 # values after options handling. Logging --version etc. is OK.
3465 exec 5>>config.log
3466 {
3467 echo
3468 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3469 ## Running $as_me. ##
3470 _ASBOX
3471 } >&5
3472 cat >&5 <<_CSEOF
3473
3474 This file was extended by LDAP module $as_me 1.0, which was
3475 generated by GNU Autoconf 2.53b. Invocation command line was
3476
3477 CONFIG_FILES = $CONFIG_FILES
3478 CONFIG_HEADERS = $CONFIG_HEADERS
3479 CONFIG_LINKS = $CONFIG_LINKS
3480 CONFIG_COMMANDS = $CONFIG_COMMANDS
3481 $ $0 $@
3482
3483 _CSEOF
3484 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3485 echo >&5
3486 _ACEOF
3487
3488 # Files that config.status was made for.
3489 if test -n "$ac_config_files"; then
3490 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3491 fi
3492
3493 if test -n "$ac_config_headers"; then
3494 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3495 fi
3496
3497 if test -n "$ac_config_links"; then
3498 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3499 fi
3500
3501 if test -n "$ac_config_commands"; then
3502 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3503 fi
3504
3505 cat >>$CONFIG_STATUS <<\_ACEOF
3506
3507 ac_cs_usage="\
3508 \`$as_me' instantiates files from templates according to the
3509 current configuration.
3510
3511 Usage: $0 [OPTIONS] [FILE]...
3512
3513 -h, --help print this help, then exit
3514 -V, --version print version number, then exit
3515 -d, --debug don't remove temporary files
3516 --recheck update $as_me by reconfiguring in the same conditions
3517 --file=FILE[:TEMPLATE]
3518 instantiate the configuration file FILE
3519
3520 Configuration files:
3521 $config_files
3522
3523 Report bugs to <bug-autoconf@gnu.org>."
3524 _ACEOF
3525
3526 cat >>$CONFIG_STATUS <<_ACEOF
3527 ac_cs_version="\\
3528 LDAP module config.status 1.0
3529 configured by $0, generated by GNU Autoconf 2.53b,
3530 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3531
3532 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
3533 Free Software Foundation, Inc.
3534 This config.status script is free software; the Free Software Foundation
3535 gives unlimited permission to copy, distribute and modify it."
3536 srcdir=$srcdir
3537 INSTALL="$INSTALL"
3538 _ACEOF
3539
3540 cat >>$CONFIG_STATUS <<\_ACEOF
3541 # If no file are specified by the user, then we need to provide default
3542 # value. By we need to know if files were specified by the user.
3543 ac_need_defaults=:
3544 while test $# != 0
3545 do
3546 case $1 in
3547 --*=*)
3548 ac_option=`expr "x$1" : 'x\([^=]*\)='`
3549 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3550 ac_shift=:
3551 ;;
3552 -*)
3553 ac_option=$1
3554 ac_optarg=$2
3555 ac_shift=shift
3556 ;;
3557 *) # This is not an option, so the user has probably given explicit
3558 # arguments.
3559 ac_option=$1
3560 ac_need_defaults=false;;
3561 esac
3562
3563 case $ac_option in
3564 # Handling of the options.
3565 _ACEOF
3566 cat >>$CONFIG_STATUS <<_ACEOF
3567 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3568 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion"
3569 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;;
3570 _ACEOF
3571 cat >>$CONFIG_STATUS <<\_ACEOF
3572 --version | --vers* | -V )
3573 echo "$ac_cs_version"; exit 0 ;;
3574 --he | --h)
3575 # Conflict between --help and --header
3576 { { echo "$as_me:$LINENO: error: ambiguous option: $1
3577 Try \`$0 --help' for more information." >&5
3578 echo "$as_me: error: ambiguous option: $1
3579 Try \`$0 --help' for more information." >&2;}
3580 { (exit 1); exit 1; }; };;
3581 --help | --hel | -h )
3582 echo "$ac_cs_usage"; exit 0 ;;
3583 --debug | --d* | -d )
3584 debug=: ;;
3585 --file | --fil | --fi | --f )
3586 $ac_shift
3587 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3588 ac_need_defaults=false;;
3589 --header | --heade | --head | --hea )
3590 $ac_shift
3591 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3592 ac_need_defaults=false;;
3593
3594 # This is an error.
3595 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3596 Try \`$0 --help' for more information." >&5
3597 echo "$as_me: error: unrecognized option: $1
3598 Try \`$0 --help' for more information." >&2;}
3599 { (exit 1); exit 1; }; } ;;
3600
3601 *) ac_config_targets="$ac_config_targets $1" ;;
3602
3603 esac
3604 shift
3605 done
3606
3607 _ACEOF
3608
3609
3610
3611
3612
3613 cat >>$CONFIG_STATUS <<\_ACEOF
3614 for ac_config_target in $ac_config_targets
3615 do
3616 case "$ac_config_target" in
3617 # Handling of arguments.
3618 "Makefile.in" ) CONFIG_FILES="$CONFIG_FILES Makefile.in" ;;
3619 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3620 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3621 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3622 { (exit 1); exit 1; }; };;
3623 esac
3624 done
3625
3626 # If the user did not use the arguments to specify the items to instantiate,
3627 # then the envvar interface is used. Set only those that are not.
3628 # We use the long form for the default assignment because of an extremely
3629 # bizarre bug on SunOS 4.1.3.
3630 if $ac_need_defaults; then
3631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3632 fi
3633
3634 # Create a temporary directory, and hook for its removal unless debugging.
3635 $debug ||
3636 {
3637 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3638 trap '{ (exit 1); exit 1; }' 1 2 13 15
3639 }
3640
3641 # Create a (secure) tmp directory for tmp files.
3642 : ${TMPDIR=/tmp}
3643 {
3644 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` &&
3645 test -n "$tmp" && test -d "$tmp"
3646 } ||
3647 {
3648 tmp=$TMPDIR/cs$$-$RANDOM
3649 (umask 077 && mkdir $tmp)
3650 } ||
3651 {
3652 echo "$me: cannot create a temporary directory in $TMPDIR" >&2
3653 { (exit 1); exit 1; }
3654 }
3655
3656 _ACEOF
3657
3658 cat >>$CONFIG_STATUS <<_ACEOF
3659
3660 #
3661 # CONFIG_FILES section.
3662 #
3663
3664 # No need to generate the scripts if there are no CONFIG_FILES.
3665 # This happens for instance when ./config.status config.h
3666 if test -n "\$CONFIG_FILES"; then
3667 # Protect against being on the right side of a sed subst in config.status.
3668 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3669 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3670 s,@SHELL@,$SHELL,;t t
3671 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3672 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3673 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3674 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3675 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3676 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3677 s,@exec_prefix@,$exec_prefix,;t t
3678 s,@prefix@,$prefix,;t t
3679 s,@program_transform_name@,$program_transform_name,;t t
3680 s,@bindir@,$bindir,;t t
3681 s,@sbindir@,$sbindir,;t t
3682 s,@libexecdir@,$libexecdir,;t t
3683 s,@datadir@,$datadir,;t t
3684 s,@sysconfdir@,$sysconfdir,;t t
3685 s,@sharedstatedir@,$sharedstatedir,;t t
3686 s,@localstatedir@,$localstatedir,;t t
3687 s,@libdir@,$libdir,;t t
3688 s,@includedir@,$includedir,;t t
3689 s,@oldincludedir@,$oldincludedir,;t t
3690 s,@infodir@,$infodir,;t t
3691 s,@mandir@,$mandir,;t t
3692 s,@build_alias@,$build_alias,;t t
3693 s,@host_alias@,$host_alias,;t t
3694 s,@target_alias@,$target_alias,;t t
3695 s,@DEFS@,$DEFS,;t t
3696 s,@ECHO_C@,$ECHO_C,;t t
3697 s,@ECHO_N@,$ECHO_N,;t t
3698 s,@ECHO_T@,$ECHO_T,;t t
3699 s,@LIBS@,$LIBS,;t t
3700 s,@CC@,$CC,;t t
3701 s,@CFLAGS@,$CFLAGS,;t t
3702 s,@LDFLAGS@,$LDFLAGS,;t t
3703 s,@CPPFLAGS@,$CPPFLAGS,;t t
3704 s,@ac_ct_CC@,$ac_ct_CC,;t t
3705 s,@EXEEXT@,$EXEEXT,;t t
3706 s,@OBJEXT@,$OBJEXT,;t t
3707 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
3708 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
3709 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
3710 s,@ELLCC@,$ELLCC,;t t
3711 s,@CPP@,$CPP,;t t
3712 s,@EGREP@,$EGREP,;t t
3713 s,@ldap_libs@,$ldap_libs,;t t
3714 s,@PROGNAME@,$PROGNAME,;t t
3715 s,@MOD_CC@,$MOD_CC,;t t
3716 s,@MODARCHDIR@,$MODARCHDIR,;t t
3717 s,@MAKE_DOCFILE@,$MAKE_DOCFILE,;t t
3718 s,@MODCFLAGS@,$MODCFLAGS,;t t
3719 s,@INSTALLPATH@,$INSTALLPATH,;t t
3720 s,@MOD_INSTALL_PROGRAM@,$MOD_INSTALL_PROGRAM,;t t
3721 s,@OBJECT_TO_BUILD@,$OBJECT_TO_BUILD,;t t
3722 s,@LIBOBJS@,$LIBOBJS,;t t
3723 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3724 CEOF
3725
3726 _ACEOF
3727
3728 cat >>$CONFIG_STATUS <<\_ACEOF
3729 # Split the substitutions into bite-sized pieces for seds with
3730 # small command number limits, like on Digital OSF/1 and HP-UX.
3731 ac_max_sed_lines=48
3732 ac_sed_frag=1 # Number of current file.
3733 ac_beg=1 # First line for current file.
3734 ac_end=$ac_max_sed_lines # Line after last line for current file.
3735 ac_more_lines=:
3736 ac_sed_cmds=
3737 while $ac_more_lines; do
3738 if test $ac_beg -gt 1; then
3739 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3740 else
3741 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3742 fi
3743 if test ! -s $tmp/subs.frag; then
3744 ac_more_lines=false
3745 else
3746 # The purpose of the label and of the branching condition is to
3747 # speed up the sed processing (if there are no `@' at all, there
3748 # is no need to browse any of the substitutions).
3749 # These are the two extra sed commands mentioned above.
3750 (echo ':t
3751 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
3752 if test -z "$ac_sed_cmds"; then
3753 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
3754 else
3755 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
3756 fi
3757 ac_sed_frag=`expr $ac_sed_frag + 1`
3758 ac_beg=$ac_end
3759 ac_end=`expr $ac_end + $ac_max_sed_lines`
3760 fi
3761 done
3762 if test -z "$ac_sed_cmds"; then
3763 ac_sed_cmds=cat
3764 fi
3765 fi # test -n "$CONFIG_FILES"
3766
3767 _ACEOF
3768 cat >>$CONFIG_STATUS <<\_ACEOF
3769 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
3770 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
3771 case $ac_file in
3772 - | *:- | *:-:* ) # input from stdin
3773 cat >$tmp/stdin
3774 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3775 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3776 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
3777 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
3778 * ) ac_file_in=$ac_file.in ;;
3779 esac
3780
3781 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
3782 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
3783 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3784 X"$ac_file" : 'X\(//\)[^/]' \| \
3785 X"$ac_file" : 'X\(//\)$' \| \
3786 X"$ac_file" : 'X\(/\)' \| \
3787 . : '\(.\)' 2>/dev/null ||
3788 echo X"$ac_file" |
3789 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3790 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3791 /^X\(\/\/\)$/{ s//\1/; q; }
3792 /^X\(\/\).*/{ s//\1/; q; }
3793 s/.*/./; q'`
3794 { if $as_mkdir_p; then
3795 mkdir -p "$ac_dir"
3796 else
3797 as_dir="$ac_dir"
3798 as_dirs=
3799 while test ! -d "$as_dir"; do
3800 as_dirs="$as_dir $as_dirs"
3801 as_dir=`(dirname "$as_dir") 2>/dev/null ||
3802 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
3803 X"$as_dir" : 'X\(//\)[^/]' \| \
3804 X"$as_dir" : 'X\(//\)$' \| \
3805 X"$as_dir" : 'X\(/\)' \| \
3806 . : '\(.\)' 2>/dev/null ||
3807 echo X"$as_dir" |
3808 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
3809 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
3810 /^X\(\/\/\)$/{ s//\1/; q; }
3811 /^X\(\/\).*/{ s//\1/; q; }
3812 s/.*/./; q'`
3813 done
3814 test ! -n "$as_dirs" || mkdir $as_dirs
3815 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
3816 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
3817 { (exit 1); exit 1; }; }; }
3818
3819 ac_builddir=.
3820
3821 if test "$ac_dir" != .; then
3822 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
3823 # A "../" for each directory in $ac_dir_suffix.
3824 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
3825 else
3826 ac_dir_suffix= ac_top_builddir=
3827 fi
3828
3829 case $srcdir in
3830 .) # No --srcdir option. We are building in place.
3831 ac_srcdir=.
3832 if test -z "$ac_top_builddir"; then
3833 ac_top_srcdir=.
3834 else
3835 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
3836 fi ;;
3837 [\\/]* | ?:[\\/]* ) # Absolute path.
3838 ac_srcdir=$srcdir$ac_dir_suffix;
3839 ac_top_srcdir=$srcdir ;;
3840 *) # Relative path.
3841 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
3842 ac_top_srcdir=$ac_top_builddir$srcdir ;;
3843 esac
3844 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
3845 # absolute.
3846 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
3847 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
3848 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
3849 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
3850
3851
3852 case $INSTALL in
3853 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
3854 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
3855 esac
3856
3857 if test x"$ac_file" != x-; then
3858 { echo "$as_me:$LINENO: creating $ac_file" >&5
3859 echo "$as_me: creating $ac_file" >&6;}
3860 rm -f "$ac_file"
3861 fi
3862 # Let's still pretend it is `configure' which instantiates (i.e., don't
3863 # use $as_me), people would be surprised to read:
3864 # /* config.h. Generated by config.status. */
3865 if test x"$ac_file" = x-; then
3866 configure_input=
3867 else
3868 configure_input="$ac_file. "
3869 fi
3870 configure_input=$configure_input"Generated from `echo $ac_file_in |
3871 sed 's,.*/,,'` by configure."
3872
3873 # First look for the input files in the build tree, otherwise in the
3874 # src tree.
3875 ac_file_inputs=`IFS=:
3876 for f in $ac_file_in; do
3877 case $f in
3878 -) echo $tmp/stdin ;;
3879 [\\/$]*)
3880 # Absolute (can't be DOS-style, as IFS=:)
3881 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3882 echo "$as_me: error: cannot find input file: $f" >&2;}
3883 { (exit 1); exit 1; }; }
3884 echo $f;;
3885 *) # Relative
3886 if test -f "$f"; then
3887 # Build tree
3888 echo $f
3889 elif test -f "$srcdir/$f"; then
3890 # Source tree
3891 echo $srcdir/$f
3892 else
3893 # /dev/null tree
3894 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
3895 echo "$as_me: error: cannot find input file: $f" >&2;}
3896 { (exit 1); exit 1; }; }
3897 fi;;
3898 esac
3899 done` || { (exit 1); exit 1; }
3900 _ACEOF
3901 cat >>$CONFIG_STATUS <<_ACEOF
3902 sed "$ac_vpsub
3903 $extrasub
3904 _ACEOF
3905 cat >>$CONFIG_STATUS <<\_ACEOF
3906 :t
3907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
3908 s,@configure_input@,$configure_input,;t t
3909 s,@srcdir@,$ac_srcdir,;t t
3910 s,@abs_srcdir@,$ac_abs_srcdir,;t t
3911 s,@top_srcdir@,$ac_top_srcdir,;t t
3912 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
3913 s,@builddir@,$ac_builddir,;t t
3914 s,@abs_builddir@,$ac_abs_builddir,;t t
3915 s,@top_builddir@,$ac_top_builddir,;t t
3916 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
3917 s,@INSTALL@,$ac_INSTALL,;t t
3918 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
3919 rm -f $tmp/stdin
3920 if test x"$ac_file" != x-; then
3921 mv $tmp/out $ac_file
3922 else
3923 cat $tmp/out
3924 rm -f $tmp/out
3925 fi
3926
3927 done
3928 _ACEOF
3929
3930 cat >>$CONFIG_STATUS <<\_ACEOF
3931
3932 { (exit 0); exit 0; }
3933 _ACEOF
3934 chmod +x $CONFIG_STATUS
3935 ac_clean_files=$ac_clean_files_save
3936
3937
3938 # configure is writing to config.log, and then calls config.status.
3939 # config.status does its own redirection, appending to config.log.
3940 # Unfortunately, on DOS this fails, as config.log is still kept open
3941 # by configure, so config.status won't be able to write to it; its
3942 # output is simply discarded. So we exec the FD to /dev/null,
3943 # effectively closing config.log, so it can be properly (re)opened and
3944 # appended to by config.status. When coming back to configure, we
3945 # need to make the FD available again.
3946 if test "$no_create" != yes; then
3947 ac_cs_success=:
3948 exec 5>/dev/null
3949 $SHELL $CONFIG_STATUS || ac_cs_success=false
3950 exec 5>>config.log
3951 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
3952 # would make configure fail if this is the last instruction.
3953 $ac_cs_success || { (exit 1); exit 1; }
3954 fi
3955