Mercurial > hg > xemacs-beta
comparison modules/postgresql/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 | 184461bc8de4 |
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 PostgreSQL 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 PostgreSQL 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='PostgreSQL module' | |
298 PACKAGE_TARNAME='postgresql-module' | |
299 PACKAGE_VERSION='1.0' | |
300 PACKAGE_STRING='PostgreSQL module 1.0' | |
301 PACKAGE_BUGREPORT='xemacs-beta@xemacs.org' | |
302 | |
303 ac_unique_file="postgresql.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 postgresql_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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 PostgreSQL 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 for header_dir in "" "pgsql/" "postgresql/"; do | |
2263 | |
2264 ac_ext=c | |
2265 ac_cpp='$CPP $CPPFLAGS' | |
2266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2268 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2269 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2270 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2271 # On Suns, sometimes $CPP names a directory. | |
2272 if test -n "$CPP" && test -d "$CPP"; then | |
2273 CPP= | |
2274 fi | |
2275 if test -z "$CPP"; then | |
2276 if test "${ac_cv_prog_CPP+set}" = set; then | |
2277 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2278 else | |
2279 # Double quotes because CPP needs to be expanded | |
2280 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2281 do | |
2282 ac_preproc_ok=false | |
2283 for ac_c_preproc_warn_flag in '' yes | |
2284 do | |
2285 # Use a header file that comes with gcc, so configuring glibc | |
2286 # with a fresh cross-compiler works. | |
2287 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2288 # not just through cpp. "Syntax error" is here to catch this case. | |
2289 cat >conftest.$ac_ext <<_ACEOF | |
2290 #line $LINENO "configure" | |
2291 #include "confdefs.h" | |
2292 #include <assert.h> | |
2293 Syntax error | |
2294 _ACEOF | |
2295 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2296 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2297 ac_status=$? | |
2298 grep -v '^ *+' conftest.er1 >conftest.err | |
2299 rm -f conftest.er1 | |
2300 cat conftest.err >&5 | |
2301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2302 (exit $ac_status); } >/dev/null; then | |
2303 if test -s conftest.err; then | |
2304 ac_cpp_err=$ac_c_preproc_warn_flag | |
2305 else | |
2306 ac_cpp_err= | |
2307 fi | |
2308 else | |
2309 ac_cpp_err=yes | |
2310 fi | |
2311 if test -z "$ac_cpp_err"; then | |
2312 : | |
2313 else | |
2314 echo "$as_me: failed program was:" >&5 | |
2315 cat conftest.$ac_ext >&5 | |
2316 # Broken: fails on valid input. | |
2317 continue | |
2318 fi | |
2319 rm -f conftest.err conftest.$ac_ext | |
2320 | |
2321 # OK, works on sane cases. Now check whether non-existent headers | |
2322 # can be detected and how. | |
2323 cat >conftest.$ac_ext <<_ACEOF | |
2324 #line $LINENO "configure" | |
2325 #include "confdefs.h" | |
2326 #include <ac_nonexistent.h> | |
2327 _ACEOF | |
2328 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2329 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2330 ac_status=$? | |
2331 grep -v '^ *+' conftest.er1 >conftest.err | |
2332 rm -f conftest.er1 | |
2333 cat conftest.err >&5 | |
2334 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2335 (exit $ac_status); } >/dev/null; then | |
2336 if test -s conftest.err; then | |
2337 ac_cpp_err=$ac_c_preproc_warn_flag | |
2338 else | |
2339 ac_cpp_err= | |
2340 fi | |
2341 else | |
2342 ac_cpp_err=yes | |
2343 fi | |
2344 if test -z "$ac_cpp_err"; then | |
2345 # Broken: success on invalid input. | |
2346 continue | |
2347 else | |
2348 echo "$as_me: failed program was:" >&5 | |
2349 cat conftest.$ac_ext >&5 | |
2350 # Passes both tests. | |
2351 ac_preproc_ok=: | |
2352 break | |
2353 fi | |
2354 rm -f conftest.err conftest.$ac_ext | |
2355 | |
2356 done | |
2357 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2358 rm -f conftest.err conftest.$ac_ext | |
2359 if $ac_preproc_ok; then | |
2360 break | |
2361 fi | |
2362 | |
2363 done | |
2364 ac_cv_prog_CPP=$CPP | |
2365 | |
2366 fi | |
2367 CPP=$ac_cv_prog_CPP | |
2368 else | |
2369 ac_cv_prog_CPP=$CPP | |
2370 fi | |
2371 echo "$as_me:$LINENO: result: $CPP" >&5 | |
2372 echo "${ECHO_T}$CPP" >&6 | |
2373 ac_preproc_ok=false | |
2374 for ac_c_preproc_warn_flag in '' yes | |
2375 do | |
2376 # Use a header file that comes with gcc, so configuring glibc | |
2377 # with a fresh cross-compiler works. | |
2378 # On the NeXT, cc -E runs the code through the compiler's parser, | |
2379 # not just through cpp. "Syntax error" is here to catch this case. | |
2380 cat >conftest.$ac_ext <<_ACEOF | |
2381 #line $LINENO "configure" | |
2382 #include "confdefs.h" | |
2383 #include <assert.h> | |
2384 Syntax error | |
2385 _ACEOF | |
2386 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2387 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2388 ac_status=$? | |
2389 grep -v '^ *+' conftest.er1 >conftest.err | |
2390 rm -f conftest.er1 | |
2391 cat conftest.err >&5 | |
2392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2393 (exit $ac_status); } >/dev/null; then | |
2394 if test -s conftest.err; then | |
2395 ac_cpp_err=$ac_c_preproc_warn_flag | |
2396 else | |
2397 ac_cpp_err= | |
2398 fi | |
2399 else | |
2400 ac_cpp_err=yes | |
2401 fi | |
2402 if test -z "$ac_cpp_err"; then | |
2403 : | |
2404 else | |
2405 echo "$as_me: failed program was:" >&5 | |
2406 cat conftest.$ac_ext >&5 | |
2407 # Broken: fails on valid input. | |
2408 continue | |
2409 fi | |
2410 rm -f conftest.err conftest.$ac_ext | |
2411 | |
2412 # OK, works on sane cases. Now check whether non-existent headers | |
2413 # can be detected and how. | |
2414 cat >conftest.$ac_ext <<_ACEOF | |
2415 #line $LINENO "configure" | |
2416 #include "confdefs.h" | |
2417 #include <ac_nonexistent.h> | |
2418 _ACEOF | |
2419 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2420 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2421 ac_status=$? | |
2422 grep -v '^ *+' conftest.er1 >conftest.err | |
2423 rm -f conftest.er1 | |
2424 cat conftest.err >&5 | |
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2426 (exit $ac_status); } >/dev/null; then | |
2427 if test -s conftest.err; then | |
2428 ac_cpp_err=$ac_c_preproc_warn_flag | |
2429 else | |
2430 ac_cpp_err= | |
2431 fi | |
2432 else | |
2433 ac_cpp_err=yes | |
2434 fi | |
2435 if test -z "$ac_cpp_err"; then | |
2436 # Broken: success on invalid input. | |
2437 continue | |
2438 else | |
2439 echo "$as_me: failed program was:" >&5 | |
2440 cat conftest.$ac_ext >&5 | |
2441 # Passes both tests. | |
2442 ac_preproc_ok=: | |
2443 break | |
2444 fi | |
2445 rm -f conftest.err conftest.$ac_ext | |
2446 | |
2447 done | |
2448 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2449 rm -f conftest.err conftest.$ac_ext | |
2450 if $ac_preproc_ok; then | |
2451 : | |
2452 else | |
2453 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check" >&5 | |
2454 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check" >&2;} | |
2455 { (exit 1); exit 1; }; } | |
2456 fi | |
2457 | |
2458 ac_ext=c | |
2459 ac_cpp='$CPP $CPPFLAGS' | |
2460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2462 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2463 | |
2464 | |
2465 echo "$as_me:$LINENO: checking for egrep" >&5 | |
2466 echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2467 if test "${ac_cv_prog_egrep+set}" = set; then | |
2468 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2469 else | |
2470 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2471 then ac_cv_prog_egrep='grep -E' | |
2472 else ac_cv_prog_egrep='egrep' | |
2473 fi | |
2474 fi | |
2475 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
2476 echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2477 EGREP=$ac_cv_prog_egrep | |
2478 | |
2479 | |
2480 echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2481 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2482 if test "${ac_cv_header_stdc+set}" = set; then | |
2483 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2484 else | |
2485 cat >conftest.$ac_ext <<_ACEOF | |
2486 #line $LINENO "configure" | |
2487 #include "confdefs.h" | |
2488 #include <stdlib.h> | |
2489 #include <stdarg.h> | |
2490 #include <string.h> | |
2491 #include <float.h> | |
2492 | |
2493 _ACEOF | |
2494 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2495 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2496 ac_status=$? | |
2497 grep -v '^ *+' conftest.er1 >conftest.err | |
2498 rm -f conftest.er1 | |
2499 cat conftest.err >&5 | |
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2501 (exit $ac_status); } >/dev/null; then | |
2502 if test -s conftest.err; then | |
2503 ac_cpp_err=$ac_c_preproc_warn_flag | |
2504 else | |
2505 ac_cpp_err= | |
2506 fi | |
2507 else | |
2508 ac_cpp_err=yes | |
2509 fi | |
2510 if test -z "$ac_cpp_err"; then | |
2511 ac_cv_header_stdc=yes | |
2512 else | |
2513 echo "$as_me: failed program was:" >&5 | |
2514 cat conftest.$ac_ext >&5 | |
2515 ac_cv_header_stdc=no | |
2516 fi | |
2517 rm -f conftest.err conftest.$ac_ext | |
2518 | |
2519 if test $ac_cv_header_stdc = yes; then | |
2520 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
2521 cat >conftest.$ac_ext <<_ACEOF | |
2522 #line $LINENO "configure" | |
2523 #include "confdefs.h" | |
2524 #include <string.h> | |
2525 | |
2526 _ACEOF | |
2527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2528 $EGREP "memchr" >/dev/null 2>&1; then | |
2529 : | |
2530 else | |
2531 ac_cv_header_stdc=no | |
2532 fi | |
2533 rm -f conftest* | |
2534 | |
2535 fi | |
2536 | |
2537 if test $ac_cv_header_stdc = yes; then | |
2538 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
2539 cat >conftest.$ac_ext <<_ACEOF | |
2540 #line $LINENO "configure" | |
2541 #include "confdefs.h" | |
2542 #include <stdlib.h> | |
2543 | |
2544 _ACEOF | |
2545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
2546 $EGREP "free" >/dev/null 2>&1; then | |
2547 : | |
2548 else | |
2549 ac_cv_header_stdc=no | |
2550 fi | |
2551 rm -f conftest* | |
2552 | |
2553 fi | |
2554 | |
2555 if test $ac_cv_header_stdc = yes; then | |
2556 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
2557 if test "$cross_compiling" = yes; then | |
2558 : | |
2559 else | |
2560 cat >conftest.$ac_ext <<_ACEOF | |
2561 #line $LINENO "configure" | |
2562 #include "confdefs.h" | |
2563 #include <ctype.h> | |
2564 #if ((' ' & 0x0FF) == 0x020) | |
2565 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2566 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2567 #else | |
2568 # define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \ | |
2569 || ('j' <= (c) && (c) <= 'r') \ | |
2570 || ('s' <= (c) && (c) <= 'z')) | |
2571 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2572 #endif | |
2573 | |
2574 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
2575 int | |
2576 main () | |
2577 { | |
2578 int i; | |
2579 for (i = 0; i < 256; i++) | |
2580 if (XOR (islower (i), ISLOWER (i)) | |
2581 || toupper (i) != TOUPPER (i)) | |
2582 exit(2); | |
2583 exit (0); | |
2584 } | |
2585 _ACEOF | |
2586 rm -f conftest$ac_exeext | |
2587 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2588 (eval $ac_link) 2>&5 | |
2589 ac_status=$? | |
2590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2593 (eval $ac_try) 2>&5 | |
2594 ac_status=$? | |
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2596 (exit $ac_status); }; }; then | |
2597 : | |
2598 else | |
2599 echo "$as_me: program exited with status $ac_status" >&5 | |
2600 echo "$as_me: failed program was:" >&5 | |
2601 cat conftest.$ac_ext >&5 | |
2602 ( exit $ac_status ) | |
2603 ac_cv_header_stdc=no | |
2604 fi | |
2605 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
2606 fi | |
2607 fi | |
2608 fi | |
2609 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
2610 echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
2611 if test $ac_cv_header_stdc = yes; then | |
2612 | |
2613 cat >>confdefs.h <<\_ACEOF | |
2614 #define STDC_HEADERS 1 | |
2615 _ACEOF | |
2616 | |
2617 fi | |
2618 | |
2619 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
2620 | |
2621 | |
2622 | |
2623 | |
2624 | |
2625 | |
2626 | |
2627 | |
2628 | |
2629 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
2630 inttypes.h stdint.h unistd.h | |
2631 do | |
2632 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
2633 echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
2634 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
2635 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2636 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2637 else | |
2638 cat >conftest.$ac_ext <<_ACEOF | |
2639 #line $LINENO "configure" | |
2640 #include "confdefs.h" | |
2641 $ac_includes_default | |
2642 | |
2643 #include <$ac_header> | |
2644 _ACEOF | |
2645 rm -f conftest.$ac_objext | |
2646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2647 (eval $ac_compile) 2>&5 | |
2648 ac_status=$? | |
2649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2650 (exit $ac_status); } && | |
2651 { ac_try='test -s conftest.$ac_objext' | |
2652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2653 (eval $ac_try) 2>&5 | |
2654 ac_status=$? | |
2655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2656 (exit $ac_status); }; }; then | |
2657 eval "$as_ac_Header=yes" | |
2658 else | |
2659 echo "$as_me: failed program was:" >&5 | |
2660 cat conftest.$ac_ext >&5 | |
2661 eval "$as_ac_Header=no" | |
2662 fi | |
2663 rm -f conftest.$ac_objext conftest.$ac_ext | |
2664 fi | |
2665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2666 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2667 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2668 cat >>confdefs.h <<_ACEOF | |
2669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
2670 _ACEOF | |
2671 | |
2672 fi | |
2673 | |
2674 done | |
2675 | |
2676 | |
2677 as_ac_Header=`echo "ac_cv_header_${header_dir}libpq-fe.h" | $as_tr_sh` | |
2678 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2679 echo "$as_me:$LINENO: checking for ${header_dir}libpq-fe.h" >&5 | |
2680 echo $ECHO_N "checking for ${header_dir}libpq-fe.h... $ECHO_C" >&6 | |
2681 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2682 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2683 fi | |
2684 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2685 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2686 else | |
2687 # Is the header compilable? | |
2688 echo "$as_me:$LINENO: checking ${header_dir}libpq-fe.h usability" >&5 | |
2689 echo $ECHO_N "checking ${header_dir}libpq-fe.h usability... $ECHO_C" >&6 | |
2690 cat >conftest.$ac_ext <<_ACEOF | |
2691 #line $LINENO "configure" | |
2692 #include "confdefs.h" | |
2693 $ac_includes_default | |
2694 #include <${header_dir}libpq-fe.h> | |
2695 _ACEOF | |
2696 rm -f conftest.$ac_objext | |
2697 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2698 (eval $ac_compile) 2>&5 | |
2699 ac_status=$? | |
2700 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2701 (exit $ac_status); } && | |
2702 { ac_try='test -s conftest.$ac_objext' | |
2703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2704 (eval $ac_try) 2>&5 | |
2705 ac_status=$? | |
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2707 (exit $ac_status); }; }; then | |
2708 ac_header_compiler=yes | |
2709 else | |
2710 echo "$as_me: failed program was:" >&5 | |
2711 cat conftest.$ac_ext >&5 | |
2712 ac_header_compiler=no | |
2713 fi | |
2714 rm -f conftest.$ac_objext conftest.$ac_ext | |
2715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
2716 echo "${ECHO_T}$ac_header_compiler" >&6 | |
2717 | |
2718 # Is the header present? | |
2719 echo "$as_me:$LINENO: checking ${header_dir}libpq-fe.h presence" >&5 | |
2720 echo $ECHO_N "checking ${header_dir}libpq-fe.h presence... $ECHO_C" >&6 | |
2721 cat >conftest.$ac_ext <<_ACEOF | |
2722 #line $LINENO "configure" | |
2723 #include "confdefs.h" | |
2724 #include <${header_dir}libpq-fe.h> | |
2725 _ACEOF | |
2726 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2727 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2728 ac_status=$? | |
2729 grep -v '^ *+' conftest.er1 >conftest.err | |
2730 rm -f conftest.er1 | |
2731 cat conftest.err >&5 | |
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2733 (exit $ac_status); } >/dev/null; then | |
2734 if test -s conftest.err; then | |
2735 ac_cpp_err=$ac_c_preproc_warn_flag | |
2736 else | |
2737 ac_cpp_err= | |
2738 fi | |
2739 else | |
2740 ac_cpp_err=yes | |
2741 fi | |
2742 if test -z "$ac_cpp_err"; then | |
2743 ac_header_preproc=yes | |
2744 else | |
2745 echo "$as_me: failed program was:" >&5 | |
2746 cat conftest.$ac_ext >&5 | |
2747 ac_header_preproc=no | |
2748 fi | |
2749 rm -f conftest.err conftest.$ac_ext | |
2750 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
2751 echo "${ECHO_T}$ac_header_preproc" >&6 | |
2752 | |
2753 # So? What about this header? | |
2754 case $ac_header_compiler:$ac_header_preproc in | |
2755 yes:no ) | |
2756 { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
2757 echo "$as_me: WARNING: ${header_dir}libpq-fe.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
2758 { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: proceeding with the preprocessor's result" >&5 | |
2759 echo "$as_me: WARNING: ${header_dir}libpq-fe.h: proceeding with the preprocessor's result" >&2;};; | |
2760 no:yes ) | |
2761 { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: present but cannot be compiled" >&5 | |
2762 echo "$as_me: WARNING: ${header_dir}libpq-fe.h: present but cannot be compiled" >&2;} | |
2763 { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: check for missing prerequisite headers?" >&5 | |
2764 echo "$as_me: WARNING: ${header_dir}libpq-fe.h: check for missing prerequisite headers?" >&2;} | |
2765 { echo "$as_me:$LINENO: WARNING: ${header_dir}libpq-fe.h: proceeding with the preprocessor's result" >&5 | |
2766 echo "$as_me: WARNING: ${header_dir}libpq-fe.h: proceeding with the preprocessor's result" >&2;};; | |
2767 esac | |
2768 echo "$as_me:$LINENO: checking for ${header_dir}libpq-fe.h" >&5 | |
2769 echo $ECHO_N "checking for ${header_dir}libpq-fe.h... $ECHO_C" >&6 | |
2770 if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
2771 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2772 else | |
2773 eval "$as_ac_Header=$ac_header_preproc" | |
2774 fi | |
2775 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
2776 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
2777 | |
2778 fi | |
2779 if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
2780 libpq_fe_h_file=${header_dir}libpq-fe.h; break | |
2781 fi | |
2782 | |
2783 | |
2784 done | |
2785 | |
2786 test -z "$libpq_fe_h_file" && | |
2787 { { echo "$as_me:$LINENO: error: Cannot find the PostgresQL header files; try specifying CPPFLAGS." >&5 | |
2788 echo "$as_me: error: Cannot find the PostgresQL header files; try specifying CPPFLAGS." >&2;} | |
2789 { (exit 1); exit 1; }; } | |
2790 cat >>confdefs.h <<_ACEOF | |
2791 #define LIBPQ_FE_H_FILE "$libpq_fe_h_file" | |
2792 _ACEOF | |
2793 | |
2794 | |
2795 | |
2796 echo "$as_me:$LINENO: checking for PQconnectdb in -lpq" >&5 | |
2797 echo $ECHO_N "checking for PQconnectdb in -lpq... $ECHO_C" >&6 | |
2798 if test "${ac_cv_lib_pq_PQconnectdb+set}" = set; then | |
2799 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2800 else | |
2801 ac_check_lib_save_LIBS=$LIBS | |
2802 LIBS="-lpq $LIBS" | |
2803 cat >conftest.$ac_ext <<_ACEOF | |
2804 #line $LINENO "configure" | |
2805 #include "confdefs.h" | |
2806 | |
2807 /* Override any gcc2 internal prototype to avoid an error. */ | |
2808 #ifdef __cplusplus | |
2809 extern "C" | |
2810 #endif | |
2811 /* We use char because int might match the return type of a gcc2 | |
2812 builtin and then its argument prototype would still apply. */ | |
2813 char PQconnectdb (); | |
2814 int | |
2815 main () | |
2816 { | |
2817 PQconnectdb (); | |
2818 ; | |
2819 return 0; | |
2820 } | |
2821 _ACEOF | |
2822 rm -f conftest.$ac_objext conftest$ac_exeext | |
2823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2824 (eval $ac_link) 2>&5 | |
2825 ac_status=$? | |
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2827 (exit $ac_status); } && | |
2828 { ac_try='test -s conftest$ac_exeext' | |
2829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2830 (eval $ac_try) 2>&5 | |
2831 ac_status=$? | |
2832 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2833 (exit $ac_status); }; }; then | |
2834 ac_cv_lib_pq_PQconnectdb=yes | |
2835 else | |
2836 echo "$as_me: failed program was:" >&5 | |
2837 cat conftest.$ac_ext >&5 | |
2838 ac_cv_lib_pq_PQconnectdb=no | |
2839 fi | |
2840 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext | |
2841 LIBS=$ac_check_lib_save_LIBS | |
2842 fi | |
2843 echo "$as_me:$LINENO: result: $ac_cv_lib_pq_PQconnectdb" >&5 | |
2844 echo "${ECHO_T}$ac_cv_lib_pq_PQconnectdb" >&6 | |
2845 if test $ac_cv_lib_pq_PQconnectdb = yes; then | |
2846 cat >>confdefs.h <<_ACEOF | |
2847 #define HAVE_LIBPQ 1 | |
2848 _ACEOF | |
2849 | |
2850 LIBS="-lpq $LIBS" | |
2851 | |
2852 else | |
2853 { { echo "$as_me:$LINENO: error: Cannot find the PostgresQL library. Try specifying LDFLAGS." >&5 | |
2854 echo "$as_me: error: Cannot find the PostgresQL library. Try specifying LDFLAGS." >&2;} | |
2855 { (exit 1); exit 1; }; } | |
2856 fi | |
2857 | |
2858 echo "$as_me:$LINENO: checking for PQconnectStart in -lpq" >&5 | |
2859 echo $ECHO_N "checking for PQconnectStart in -lpq... $ECHO_C" >&6 | |
2860 if test "${ac_cv_lib_pq_PQconnectStart+set}" = set; then | |
2861 echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2862 else | |
2863 ac_check_lib_save_LIBS=$LIBS | |
2864 LIBS="-lpq $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 PQconnectStart (); | |
2876 int | |
2877 main () | |
2878 { | |
2879 PQconnectStart (); | |
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_pq_PQconnectStart=yes | |
2897 else | |
2898 echo "$as_me: failed program was:" >&5 | |
2899 cat conftest.$ac_ext >&5 | |
2900 ac_cv_lib_pq_PQconnectStart=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_pq_PQconnectStart" >&5 | |
2906 echo "${ECHO_T}$ac_cv_lib_pq_PQconnectStart" >&6 | |
2907 if test $ac_cv_lib_pq_PQconnectStart = yes; then | |
2908 | |
2909 with_postgresqlv7=yes; | |
2910 cat >>confdefs.h <<\_ACEOF | |
2911 #define HAVE_POSTGRESQLV7 1 | |
2912 _ACEOF | |
2913 | |
2914 fi | |
2915 | |
2916 postgresql_libs="$LIBS" | |
2917 | |
2918 | |
2919 # This part should appear unchanged in every module configure.ac | |
2920 PROGNAME="module" | |
2921 | |
2922 MOD_CC="@ELLCC@" | |
2923 | |
2924 MODARCHDIR="\$(shell @ELLCC@ --mod-archdir)" | |
2925 | |
2926 MAKE_DOCFILE="\$(MODARCHDIR)/make-docfile" | |
2927 | |
2928 MODCFLAGS="\$(CFLAGS) --mode=compile --mod-output=\$@ -I\$(MODARCHDIR)/include" | |
2929 | |
2930 INSTALLPATH="\$(shell @ELLCC@ --mod-site-location)" | |
2931 | |
2932 MOD_INSTALL_PROGRAM="@INSTALL_PROGRAM@" | |
2933 | |
2934 OBJECT_TO_BUILD="\$(MODNAME).ell" | |
2935 | |
2936 | |
2937 ac_config_files="$ac_config_files Makefile.in Makefile" | |
2938 | |
2939 cat >confcache <<\_ACEOF | |
2940 # This file is a shell script that caches the results of configure | |
2941 # tests run on this system so they can be shared between configure | |
2942 # scripts and configure runs, see configure's option --config-cache. | |
2943 # It is not useful on other systems. If it contains results you don't | |
2944 # want to keep, you may remove or edit it. | |
2945 # | |
2946 # config.status only pays attention to the cache file if you give it | |
2947 # the --recheck option to rerun configure. | |
2948 # | |
2949 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
2950 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
2951 # following values. | |
2952 | |
2953 _ACEOF | |
2954 | |
2955 # The following way of writing the cache mishandles newlines in values, | |
2956 # but we know of no workaround that is simple, portable, and efficient. | |
2957 # So, don't put newlines in cache variables' values. | |
2958 # Ultrix sh set writes to stderr and can't be redirected directly, | |
2959 # and sets the high bit in the cache file unless we assign to the vars. | |
2960 { | |
2961 (set) 2>&1 | | |
2962 case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
2963 *ac_space=\ *) | |
2964 # `set' does not quote correctly, so add quotes (double-quote | |
2965 # substitution turns \\\\ into \\, and sed turns \\ into \). | |
2966 sed -n \ | |
2967 "s/'/'\\\\''/g; | |
2968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
2969 ;; | |
2970 *) | |
2971 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
2972 sed -n \ | |
2973 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
2974 ;; | |
2975 esac; | |
2976 } | | |
2977 sed ' | |
2978 t clear | |
2979 : clear | |
2980 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
2981 t end | |
2982 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
2983 : end' >>confcache | |
2984 if cmp -s $cache_file confcache; then :; else | |
2985 if test -w $cache_file; then | |
2986 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
2987 cat confcache >$cache_file | |
2988 else | |
2989 echo "not updating unwritable cache $cache_file" | |
2990 fi | |
2991 fi | |
2992 rm -f confcache | |
2993 | |
2994 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
2995 # Let make expand exec_prefix. | |
2996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
2997 | |
2998 # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
2999 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
3000 # trailing colons and then remove the whole line if VPATH becomes empty | |
3001 # (actually we leave an empty line to preserve line numbers). | |
3002 if test "x$srcdir" = x.; then | |
3003 ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
3004 s/:*\$(srcdir):*/:/; | |
3005 s/:*\${srcdir}:*/:/; | |
3006 s/:*@srcdir@:*/:/; | |
3007 s/^\([^=]*=[ ]*\):*/\1/; | |
3008 s/:*$//; | |
3009 s/^[^=]*=[ ]*$//; | |
3010 }' | |
3011 fi | |
3012 | |
3013 # Transform confdefs.h into DEFS. | |
3014 # Protect against shell expansion while executing Makefile rules. | |
3015 # Protect against Makefile macro expansion. | |
3016 # | |
3017 # If the first sed substitution is executed (which looks for macros that | |
3018 # take arguments), then we branch to the quote section. Otherwise, | |
3019 # look for a macro that doesn't take arguments. | |
3020 cat >confdef2opt.sed <<\_ACEOF | |
3021 t clear | |
3022 : clear | |
3023 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g | |
3024 t quote | |
3025 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g | |
3026 t quote | |
3027 d | |
3028 : quote | |
3029 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g | |
3030 s,\[,\\&,g | |
3031 s,\],\\&,g | |
3032 s,\$,$$,g | |
3033 p | |
3034 _ACEOF | |
3035 # We use echo to avoid assuming a particular line-breaking character. | |
3036 # The extra dot is to prevent the shell from consuming trailing | |
3037 # line-breaks from the sub-command output. A line-break within | |
3038 # single-quotes doesn't work because, if this script is created in a | |
3039 # platform that uses two characters for line-breaks (e.g., DOS), tr | |
3040 # would break. | |
3041 ac_LF_and_DOT=`echo; echo .` | |
3042 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` | |
3043 rm -f confdef2opt.sed | |
3044 | |
3045 | |
3046 ac_libobjs= | |
3047 ac_ltlibobjs= | |
3048 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
3049 # 1. Remove the extension, and $U if already installed. | |
3050 ac_i=`echo "$ac_i" | | |
3051 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
3052 # 2. Add them. | |
3053 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
3054 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
3055 done | |
3056 LIBOBJS=$ac_libobjs | |
3057 | |
3058 LTLIBOBJS=$ac_ltlibobjs | |
3059 | |
3060 | |
3061 | |
3062 : ${CONFIG_STATUS=./config.status} | |
3063 ac_clean_files_save=$ac_clean_files | |
3064 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
3065 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
3066 echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
3067 cat >$CONFIG_STATUS <<_ACEOF | |
3068 #! $SHELL | |
3069 # Generated by $as_me. | |
3070 # Run this file to recreate the current configuration. | |
3071 # Compiler output produced by configure, useful for debugging | |
3072 # configure, is in config.log if it exists. | |
3073 | |
3074 debug=false | |
3075 SHELL=\${CONFIG_SHELL-$SHELL} | |
3076 _ACEOF | |
3077 | |
3078 cat >>$CONFIG_STATUS <<\_ACEOF | |
3079 ## --------------------- ## | |
3080 ## M4sh Initialization. ## | |
3081 ## --------------------- ## | |
3082 | |
3083 # Be Bourne compatible | |
3084 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
3085 emulate sh | |
3086 NULLCMD=: | |
3087 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
3088 # is contrary to our usage. Disable this feature. | |
3089 alias -g '${1+"$@"}'='"$@"' | |
3090 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
3091 set -o posix | |
3092 fi | |
3093 | |
3094 # NLS nuisances. | |
3095 # Support unset when possible. | |
3096 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then | |
3097 as_unset=unset | |
3098 else | |
3099 as_unset=false | |
3100 fi | |
3101 | |
3102 (set +x; test -n "`(LANG=C; export LANG) 2>&1`") && | |
3103 { $as_unset LANG || test "${LANG+set}" != set; } || | |
3104 { LANG=C; export LANG; } | |
3105 (set +x; test -n "`(LC_ALL=C; export LC_ALL) 2>&1`") && | |
3106 { $as_unset LC_ALL || test "${LC_ALL+set}" != set; } || | |
3107 { LC_ALL=C; export LC_ALL; } | |
3108 (set +x; test -n "`(LC_TIME=C; export LC_TIME) 2>&1`") && | |
3109 { $as_unset LC_TIME || test "${LC_TIME+set}" != set; } || | |
3110 { LC_TIME=C; export LC_TIME; } | |
3111 (set +x; test -n "`(LC_CTYPE=C; export LC_CTYPE) 2>&1`") && | |
3112 { $as_unset LC_CTYPE || test "${LC_CTYPE+set}" != set; } || | |
3113 { LC_CTYPE=C; export LC_CTYPE; } | |
3114 (set +x; test -n "`(LANGUAGE=C; export LANGUAGE) 2>&1`") && | |
3115 { $as_unset LANGUAGE || test "${LANGUAGE+set}" != set; } || | |
3116 { LANGUAGE=C; export LANGUAGE; } | |
3117 (set +x; test -n "`(LC_COLLATE=C; export LC_COLLATE) 2>&1`") && | |
3118 { $as_unset LC_COLLATE || test "${LC_COLLATE+set}" != set; } || | |
3119 { LC_COLLATE=C; export LC_COLLATE; } | |
3120 (set +x; test -n "`(LC_NUMERIC=C; export LC_NUMERIC) 2>&1`") && | |
3121 { $as_unset LC_NUMERIC || test "${LC_NUMERIC+set}" != set; } || | |
3122 { LC_NUMERIC=C; export LC_NUMERIC; } | |
3123 (set +x; test -n "`(LC_MESSAGES=C; export LC_MESSAGES) 2>&1`") && | |
3124 { $as_unset LC_MESSAGES || test "${LC_MESSAGES+set}" != set; } || | |
3125 { LC_MESSAGES=C; export LC_MESSAGES; } | |
3126 | |
3127 | |
3128 # Required to use basename. | |
3129 if expr a : '\(a\)' >/dev/null 2>&1; then | |
3130 as_expr=expr | |
3131 else | |
3132 as_expr=false | |
3133 fi | |
3134 | |
3135 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
3136 as_basename=basename | |
3137 else | |
3138 as_basename=false | |
3139 fi | |
3140 | |
3141 | |
3142 # Name of the executable. | |
3143 as_me=`$as_basename "$0" || | |
3144 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
3145 X"$0" : 'X\(//\)$' \| \ | |
3146 X"$0" : 'X\(/\)$' \| \ | |
3147 . : '\(.\)' 2>/dev/null || | |
3148 echo X/"$0" | | |
3149 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
3150 /^X\/\(\/\/\)$/{ s//\1/; q; } | |
3151 /^X\/\(\/\).*/{ s//\1/; q; } | |
3152 s/.*/./; q'` | |
3153 | |
3154 | |
3155 # PATH needs CR, and LINENO needs CR and PATH. | |
3156 # Avoid depending upon Character Ranges. | |
3157 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
3158 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
3159 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
3160 as_cr_digits='0123456789' | |
3161 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
3162 | |
3163 # The user is always right. | |
3164 if test "${PATH_SEPARATOR+set}" != set; then | |
3165 echo "#! /bin/sh" >conftest.sh | |
3166 echo "exit 0" >>conftest.sh | |
3167 chmod +x conftest.sh | |
3168 if (PATH=".;."; conftest.sh) >/dev/null 2>&1; then | |
3169 PATH_SEPARATOR=';' | |
3170 else | |
3171 PATH_SEPARATOR=: | |
3172 fi | |
3173 rm -f conftest.sh | |
3174 fi | |
3175 | |
3176 | |
3177 as_lineno_1=$LINENO | |
3178 as_lineno_2=$LINENO | |
3179 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
3180 test "x$as_lineno_1" != "x$as_lineno_2" && | |
3181 test "x$as_lineno_3" = "x$as_lineno_2" || { | |
3182 # Find who we are. Look in the path if we contain no path at all | |
3183 # relative or not. | |
3184 case $0 in | |
3185 *[\\/]* ) as_myself=$0 ;; | |
3186 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3187 for as_dir in $PATH | |
3188 do | |
3189 IFS=$as_save_IFS | |
3190 test -z "$as_dir" && as_dir=. | |
3191 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
3192 done | |
3193 | |
3194 ;; | |
3195 esac | |
3196 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
3197 # in which case we are not to be found in the path. | |
3198 if test "x$as_myself" = x; then | |
3199 as_myself=$0 | |
3200 fi | |
3201 if test ! -f "$as_myself"; then | |
3202 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
3203 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
3204 { (exit 1); exit 1; }; } | |
3205 fi | |
3206 case $CONFIG_SHELL in | |
3207 '') | |
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
3210 do | |
3211 IFS=$as_save_IFS | |
3212 test -z "$as_dir" && as_dir=. | |
3213 for as_base in sh bash ksh sh5; do | |
3214 case $as_dir in | |
3215 /*) | |
3216 if ("$as_dir/$as_base" -c ' | |
3217 as_lineno_1=$LINENO | |
3218 as_lineno_2=$LINENO | |
3219 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
3220 test "x$as_lineno_1" != "x$as_lineno_2" && | |
3221 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
3222 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
3223 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
3224 CONFIG_SHELL=$as_dir/$as_base | |
3225 export CONFIG_SHELL | |
3226 exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
3227 fi;; | |
3228 esac | |
3229 done | |
3230 done | |
3231 ;; | |
3232 esac | |
3233 | |
3234 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
3235 # uniformly replaced by the line number. The first 'sed' inserts a | |
3236 # line-number line before each line; the second 'sed' does the real | |
3237 # work. The second script uses 'N' to pair each line-number line | |
3238 # with the numbered line, and appends trailing '-' during | |
3239 # substitution so that $LINENO is not a special case at line end. | |
3240 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
3241 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
3242 sed '=' <$as_myself | | |
3243 sed ' | |
3244 N | |
3245 s,$,-, | |
3246 : loop | |
3247 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
3248 t loop | |
3249 s,-$,, | |
3250 s,^['$as_cr_digits']*\n,, | |
3251 ' >$as_me.lineno && | |
3252 chmod +x $as_me.lineno || | |
3253 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
3254 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
3255 { (exit 1); exit 1; }; } | |
3256 | |
3257 # Don't try to exec as it changes $[0], causing all sort of problems | |
3258 # (the dirname of $[0] is not the place where we might find the | |
3259 # original and so on. Autoconf is especially sensible to this). | |
3260 . ./$as_me.lineno | |
3261 # Exit status is that of the last command. | |
3262 exit | |
3263 } | |
3264 | |
3265 | |
3266 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
3267 *c*,-n*) ECHO_N= ECHO_C=' | |
3268 ' ECHO_T=' ' ;; | |
3269 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
3270 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
3271 esac | |
3272 | |
3273 if expr a : '\(a\)' >/dev/null 2>&1; then | |
3274 as_expr=expr | |
3275 else | |
3276 as_expr=false | |
3277 fi | |
3278 | |
3279 rm -f conf$$ conf$$.exe conf$$.file | |
3280 echo >conf$$.file | |
3281 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
3282 # We could just check for DJGPP; but this test a) works b) is more generic | |
3283 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
3284 if test -f conf$$.exe; then | |
3285 # Don't use ln at all; we don't have any links | |
3286 as_ln_s='cp -p' | |
3287 else | |
3288 as_ln_s='ln -s' | |
3289 fi | |
3290 elif ln conf$$.file conf$$ 2>/dev/null; then | |
3291 as_ln_s=ln | |
3292 else | |
3293 as_ln_s='cp -p' | |
3294 fi | |
3295 rm -f conf$$ conf$$.exe conf$$.file | |
3296 | |
3297 if mkdir -p . 2>/dev/null; then | |
3298 as_mkdir_p=: | |
3299 else | |
3300 as_mkdir_p=false | |
3301 fi | |
3302 | |
3303 as_executable_p="test -f" | |
3304 | |
3305 # Sed expression to map a string onto a valid CPP name. | |
3306 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g" | |
3307 | |
3308 # Sed expression to map a string onto a valid variable name. | |
3309 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g" | |
3310 | |
3311 | |
3312 # IFS | |
3313 # We need space, tab and new line, in precisely that order. | |
3314 as_nl=' | |
3315 ' | |
3316 IFS=" $as_nl" | |
3317 | |
3318 # CDPATH. | |
3319 $as_unset CDPATH || test "${CDPATH+set}" != set || { CDPATH=$PATH_SEPARATOR; export CDPATH; } | |
3320 | |
3321 exec 6>&1 | |
3322 | |
3323 # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
3324 # report actual input values of CONFIG_FILES etc. instead of their | |
3325 # values after options handling. Logging --version etc. is OK. | |
3326 exec 5>>config.log | |
3327 { | |
3328 echo | |
3329 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
3330 ## Running $as_me. ## | |
3331 _ASBOX | |
3332 } >&5 | |
3333 cat >&5 <<_CSEOF | |
3334 | |
3335 This file was extended by PostgreSQL module $as_me 1.0, which was | |
3336 generated by GNU Autoconf 2.53b. Invocation command line was | |
3337 | |
3338 CONFIG_FILES = $CONFIG_FILES | |
3339 CONFIG_HEADERS = $CONFIG_HEADERS | |
3340 CONFIG_LINKS = $CONFIG_LINKS | |
3341 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
3342 $ $0 $@ | |
3343 | |
3344 _CSEOF | |
3345 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
3346 echo >&5 | |
3347 _ACEOF | |
3348 | |
3349 # Files that config.status was made for. | |
3350 if test -n "$ac_config_files"; then | |
3351 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
3352 fi | |
3353 | |
3354 if test -n "$ac_config_headers"; then | |
3355 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
3356 fi | |
3357 | |
3358 if test -n "$ac_config_links"; then | |
3359 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
3360 fi | |
3361 | |
3362 if test -n "$ac_config_commands"; then | |
3363 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
3364 fi | |
3365 | |
3366 cat >>$CONFIG_STATUS <<\_ACEOF | |
3367 | |
3368 ac_cs_usage="\ | |
3369 \`$as_me' instantiates files from templates according to the | |
3370 current configuration. | |
3371 | |
3372 Usage: $0 [OPTIONS] [FILE]... | |
3373 | |
3374 -h, --help print this help, then exit | |
3375 -V, --version print version number, then exit | |
3376 -d, --debug don't remove temporary files | |
3377 --recheck update $as_me by reconfiguring in the same conditions | |
3378 --file=FILE[:TEMPLATE] | |
3379 instantiate the configuration file FILE | |
3380 | |
3381 Configuration files: | |
3382 $config_files | |
3383 | |
3384 Report bugs to <bug-autoconf@gnu.org>." | |
3385 _ACEOF | |
3386 | |
3387 cat >>$CONFIG_STATUS <<_ACEOF | |
3388 ac_cs_version="\\ | |
3389 PostgreSQL module config.status 1.0 | |
3390 configured by $0, generated by GNU Autoconf 2.53b, | |
3391 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
3392 | |
3393 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 | |
3394 Free Software Foundation, Inc. | |
3395 This config.status script is free software; the Free Software Foundation | |
3396 gives unlimited permission to copy, distribute and modify it." | |
3397 srcdir=$srcdir | |
3398 INSTALL="$INSTALL" | |
3399 _ACEOF | |
3400 | |
3401 cat >>$CONFIG_STATUS <<\_ACEOF | |
3402 # If no file are specified by the user, then we need to provide default | |
3403 # value. By we need to know if files were specified by the user. | |
3404 ac_need_defaults=: | |
3405 while test $# != 0 | |
3406 do | |
3407 case $1 in | |
3408 --*=*) | |
3409 ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
3410 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
3411 ac_shift=: | |
3412 ;; | |
3413 -*) | |
3414 ac_option=$1 | |
3415 ac_optarg=$2 | |
3416 ac_shift=shift | |
3417 ;; | |
3418 *) # This is not an option, so the user has probably given explicit | |
3419 # arguments. | |
3420 ac_option=$1 | |
3421 ac_need_defaults=false;; | |
3422 esac | |
3423 | |
3424 case $ac_option in | |
3425 # Handling of the options. | |
3426 _ACEOF | |
3427 cat >>$CONFIG_STATUS <<_ACEOF | |
3428 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
3429 echo "running $SHELL $0 " $ac_configure_args " --no-create --no-recursion" | |
3430 exec $SHELL $0 $ac_configure_args --no-create --no-recursion ;; | |
3431 _ACEOF | |
3432 cat >>$CONFIG_STATUS <<\_ACEOF | |
3433 --version | --vers* | -V ) | |
3434 echo "$ac_cs_version"; exit 0 ;; | |
3435 --he | --h) | |
3436 # Conflict between --help and --header | |
3437 { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
3438 Try \`$0 --help' for more information." >&5 | |
3439 echo "$as_me: error: ambiguous option: $1 | |
3440 Try \`$0 --help' for more information." >&2;} | |
3441 { (exit 1); exit 1; }; };; | |
3442 --help | --hel | -h ) | |
3443 echo "$ac_cs_usage"; exit 0 ;; | |
3444 --debug | --d* | -d ) | |
3445 debug=: ;; | |
3446 --file | --fil | --fi | --f ) | |
3447 $ac_shift | |
3448 CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
3449 ac_need_defaults=false;; | |
3450 --header | --heade | --head | --hea ) | |
3451 $ac_shift | |
3452 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
3453 ac_need_defaults=false;; | |
3454 | |
3455 # This is an error. | |
3456 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
3457 Try \`$0 --help' for more information." >&5 | |
3458 echo "$as_me: error: unrecognized option: $1 | |
3459 Try \`$0 --help' for more information." >&2;} | |
3460 { (exit 1); exit 1; }; } ;; | |
3461 | |
3462 *) ac_config_targets="$ac_config_targets $1" ;; | |
3463 | |
3464 esac | |
3465 shift | |
3466 done | |
3467 | |
3468 _ACEOF | |
3469 | |
3470 | |
3471 | |
3472 | |
3473 | |
3474 cat >>$CONFIG_STATUS <<\_ACEOF | |
3475 for ac_config_target in $ac_config_targets | |
3476 do | |
3477 case "$ac_config_target" in | |
3478 # Handling of arguments. | |
3479 "Makefile.in" ) CONFIG_FILES="$CONFIG_FILES Makefile.in" ;; | |
3480 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
3481 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
3482 echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
3483 { (exit 1); exit 1; }; };; | |
3484 esac | |
3485 done | |
3486 | |
3487 # If the user did not use the arguments to specify the items to instantiate, | |
3488 # then the envvar interface is used. Set only those that are not. | |
3489 # We use the long form for the default assignment because of an extremely | |
3490 # bizarre bug on SunOS 4.1.3. | |
3491 if $ac_need_defaults; then | |
3492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
3493 fi | |
3494 | |
3495 # Create a temporary directory, and hook for its removal unless debugging. | |
3496 $debug || | |
3497 { | |
3498 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
3499 trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
3500 } | |
3501 | |
3502 # Create a (secure) tmp directory for tmp files. | |
3503 : ${TMPDIR=/tmp} | |
3504 { | |
3505 tmp=`(umask 077 && mktemp -d -q "$TMPDIR/csXXXXXX") 2>/dev/null` && | |
3506 test -n "$tmp" && test -d "$tmp" | |
3507 } || | |
3508 { | |
3509 tmp=$TMPDIR/cs$$-$RANDOM | |
3510 (umask 077 && mkdir $tmp) | |
3511 } || | |
3512 { | |
3513 echo "$me: cannot create a temporary directory in $TMPDIR" >&2 | |
3514 { (exit 1); exit 1; } | |
3515 } | |
3516 | |
3517 _ACEOF | |
3518 | |
3519 cat >>$CONFIG_STATUS <<_ACEOF | |
3520 | |
3521 # | |
3522 # CONFIG_FILES section. | |
3523 # | |
3524 | |
3525 # No need to generate the scripts if there are no CONFIG_FILES. | |
3526 # This happens for instance when ./config.status config.h | |
3527 if test -n "\$CONFIG_FILES"; then | |
3528 # Protect against being on the right side of a sed subst in config.status. | |
3529 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
3530 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
3531 s,@SHELL@,$SHELL,;t t | |
3532 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
3533 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
3534 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
3535 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
3536 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
3537 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
3538 s,@exec_prefix@,$exec_prefix,;t t | |
3539 s,@prefix@,$prefix,;t t | |
3540 s,@program_transform_name@,$program_transform_name,;t t | |
3541 s,@bindir@,$bindir,;t t | |
3542 s,@sbindir@,$sbindir,;t t | |
3543 s,@libexecdir@,$libexecdir,;t t | |
3544 s,@datadir@,$datadir,;t t | |
3545 s,@sysconfdir@,$sysconfdir,;t t | |
3546 s,@sharedstatedir@,$sharedstatedir,;t t | |
3547 s,@localstatedir@,$localstatedir,;t t | |
3548 s,@libdir@,$libdir,;t t | |
3549 s,@includedir@,$includedir,;t t | |
3550 s,@oldincludedir@,$oldincludedir,;t t | |
3551 s,@infodir@,$infodir,;t t | |
3552 s,@mandir@,$mandir,;t t | |
3553 s,@build_alias@,$build_alias,;t t | |
3554 s,@host_alias@,$host_alias,;t t | |
3555 s,@target_alias@,$target_alias,;t t | |
3556 s,@DEFS@,$DEFS,;t t | |
3557 s,@ECHO_C@,$ECHO_C,;t t | |
3558 s,@ECHO_N@,$ECHO_N,;t t | |
3559 s,@ECHO_T@,$ECHO_T,;t t | |
3560 s,@LIBS@,$LIBS,;t t | |
3561 s,@CC@,$CC,;t t | |
3562 s,@CFLAGS@,$CFLAGS,;t t | |
3563 s,@LDFLAGS@,$LDFLAGS,;t t | |
3564 s,@CPPFLAGS@,$CPPFLAGS,;t t | |
3565 s,@ac_ct_CC@,$ac_ct_CC,;t t | |
3566 s,@EXEEXT@,$EXEEXT,;t t | |
3567 s,@OBJEXT@,$OBJEXT,;t t | |
3568 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
3569 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
3570 s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
3571 s,@ELLCC@,$ELLCC,;t t | |
3572 s,@CPP@,$CPP,;t t | |
3573 s,@EGREP@,$EGREP,;t t | |
3574 s,@postgresql_libs@,$postgresql_libs,;t t | |
3575 s,@PROGNAME@,$PROGNAME,;t t | |
3576 s,@MOD_CC@,$MOD_CC,;t t | |
3577 s,@MODARCHDIR@,$MODARCHDIR,;t t | |
3578 s,@MAKE_DOCFILE@,$MAKE_DOCFILE,;t t | |
3579 s,@MODCFLAGS@,$MODCFLAGS,;t t | |
3580 s,@INSTALLPATH@,$INSTALLPATH,;t t | |
3581 s,@MOD_INSTALL_PROGRAM@,$MOD_INSTALL_PROGRAM,;t t | |
3582 s,@OBJECT_TO_BUILD@,$OBJECT_TO_BUILD,;t t | |
3583 s,@LIBOBJS@,$LIBOBJS,;t t | |
3584 s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
3585 CEOF | |
3586 | |
3587 _ACEOF | |
3588 | |
3589 cat >>$CONFIG_STATUS <<\_ACEOF | |
3590 # Split the substitutions into bite-sized pieces for seds with | |
3591 # small command number limits, like on Digital OSF/1 and HP-UX. | |
3592 ac_max_sed_lines=48 | |
3593 ac_sed_frag=1 # Number of current file. | |
3594 ac_beg=1 # First line for current file. | |
3595 ac_end=$ac_max_sed_lines # Line after last line for current file. | |
3596 ac_more_lines=: | |
3597 ac_sed_cmds= | |
3598 while $ac_more_lines; do | |
3599 if test $ac_beg -gt 1; then | |
3600 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3601 else | |
3602 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
3603 fi | |
3604 if test ! -s $tmp/subs.frag; then | |
3605 ac_more_lines=false | |
3606 else | |
3607 # The purpose of the label and of the branching condition is to | |
3608 # speed up the sed processing (if there are no `@' at all, there | |
3609 # is no need to browse any of the substitutions). | |
3610 # These are the two extra sed commands mentioned above. | |
3611 (echo ':t | |
3612 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
3613 if test -z "$ac_sed_cmds"; then | |
3614 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
3615 else | |
3616 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
3617 fi | |
3618 ac_sed_frag=`expr $ac_sed_frag + 1` | |
3619 ac_beg=$ac_end | |
3620 ac_end=`expr $ac_end + $ac_max_sed_lines` | |
3621 fi | |
3622 done | |
3623 if test -z "$ac_sed_cmds"; then | |
3624 ac_sed_cmds=cat | |
3625 fi | |
3626 fi # test -n "$CONFIG_FILES" | |
3627 | |
3628 _ACEOF | |
3629 cat >>$CONFIG_STATUS <<\_ACEOF | |
3630 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
3631 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
3632 case $ac_file in | |
3633 - | *:- | *:-:* ) # input from stdin | |
3634 cat >$tmp/stdin | |
3635 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3636 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3637 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
3638 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
3639 * ) ac_file_in=$ac_file.in ;; | |
3640 esac | |
3641 | |
3642 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
3643 ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
3644 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3645 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
3646 X"$ac_file" : 'X\(//\)$' \| \ | |
3647 X"$ac_file" : 'X\(/\)' \| \ | |
3648 . : '\(.\)' 2>/dev/null || | |
3649 echo X"$ac_file" | | |
3650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3651 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3652 /^X\(\/\/\)$/{ s//\1/; q; } | |
3653 /^X\(\/\).*/{ s//\1/; q; } | |
3654 s/.*/./; q'` | |
3655 { if $as_mkdir_p; then | |
3656 mkdir -p "$ac_dir" | |
3657 else | |
3658 as_dir="$ac_dir" | |
3659 as_dirs= | |
3660 while test ! -d "$as_dir"; do | |
3661 as_dirs="$as_dir $as_dirs" | |
3662 as_dir=`(dirname "$as_dir") 2>/dev/null || | |
3663 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
3664 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
3665 X"$as_dir" : 'X\(//\)$' \| \ | |
3666 X"$as_dir" : 'X\(/\)' \| \ | |
3667 . : '\(.\)' 2>/dev/null || | |
3668 echo X"$as_dir" | | |
3669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
3670 /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
3671 /^X\(\/\/\)$/{ s//\1/; q; } | |
3672 /^X\(\/\).*/{ s//\1/; q; } | |
3673 s/.*/./; q'` | |
3674 done | |
3675 test ! -n "$as_dirs" || mkdir $as_dirs | |
3676 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
3677 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
3678 { (exit 1); exit 1; }; }; } | |
3679 | |
3680 ac_builddir=. | |
3681 | |
3682 if test "$ac_dir" != .; then | |
3683 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
3684 # A "../" for each directory in $ac_dir_suffix. | |
3685 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
3686 else | |
3687 ac_dir_suffix= ac_top_builddir= | |
3688 fi | |
3689 | |
3690 case $srcdir in | |
3691 .) # No --srcdir option. We are building in place. | |
3692 ac_srcdir=. | |
3693 if test -z "$ac_top_builddir"; then | |
3694 ac_top_srcdir=. | |
3695 else | |
3696 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
3697 fi ;; | |
3698 [\\/]* | ?:[\\/]* ) # Absolute path. | |
3699 ac_srcdir=$srcdir$ac_dir_suffix; | |
3700 ac_top_srcdir=$srcdir ;; | |
3701 *) # Relative path. | |
3702 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
3703 ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
3704 esac | |
3705 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be | |
3706 # absolute. | |
3707 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd` | |
3708 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd` | |
3709 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd` | |
3710 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd` | |
3711 | |
3712 | |
3713 case $INSTALL in | |
3714 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
3715 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
3716 esac | |
3717 | |
3718 if test x"$ac_file" != x-; then | |
3719 { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
3720 echo "$as_me: creating $ac_file" >&6;} | |
3721 rm -f "$ac_file" | |
3722 fi | |
3723 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
3724 # use $as_me), people would be surprised to read: | |
3725 # /* config.h. Generated by config.status. */ | |
3726 if test x"$ac_file" = x-; then | |
3727 configure_input= | |
3728 else | |
3729 configure_input="$ac_file. " | |
3730 fi | |
3731 configure_input=$configure_input"Generated from `echo $ac_file_in | | |
3732 sed 's,.*/,,'` by configure." | |
3733 | |
3734 # First look for the input files in the build tree, otherwise in the | |
3735 # src tree. | |
3736 ac_file_inputs=`IFS=: | |
3737 for f in $ac_file_in; do | |
3738 case $f in | |
3739 -) echo $tmp/stdin ;; | |
3740 [\\/$]*) | |
3741 # Absolute (can't be DOS-style, as IFS=:) | |
3742 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3743 echo "$as_me: error: cannot find input file: $f" >&2;} | |
3744 { (exit 1); exit 1; }; } | |
3745 echo $f;; | |
3746 *) # Relative | |
3747 if test -f "$f"; then | |
3748 # Build tree | |
3749 echo $f | |
3750 elif test -f "$srcdir/$f"; then | |
3751 # Source tree | |
3752 echo $srcdir/$f | |
3753 else | |
3754 # /dev/null tree | |
3755 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
3756 echo "$as_me: error: cannot find input file: $f" >&2;} | |
3757 { (exit 1); exit 1; }; } | |
3758 fi;; | |
3759 esac | |
3760 done` || { (exit 1); exit 1; } | |
3761 _ACEOF | |
3762 cat >>$CONFIG_STATUS <<_ACEOF | |
3763 sed "$ac_vpsub | |
3764 $extrasub | |
3765 _ACEOF | |
3766 cat >>$CONFIG_STATUS <<\_ACEOF | |
3767 :t | |
3768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
3769 s,@configure_input@,$configure_input,;t t | |
3770 s,@srcdir@,$ac_srcdir,;t t | |
3771 s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
3772 s,@top_srcdir@,$ac_top_srcdir,;t t | |
3773 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
3774 s,@builddir@,$ac_builddir,;t t | |
3775 s,@abs_builddir@,$ac_abs_builddir,;t t | |
3776 s,@top_builddir@,$ac_top_builddir,;t t | |
3777 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
3778 s,@INSTALL@,$ac_INSTALL,;t t | |
3779 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
3780 rm -f $tmp/stdin | |
3781 if test x"$ac_file" != x-; then | |
3782 mv $tmp/out $ac_file | |
3783 else | |
3784 cat $tmp/out | |
3785 rm -f $tmp/out | |
3786 fi | |
3787 | |
3788 done | |
3789 _ACEOF | |
3790 | |
3791 cat >>$CONFIG_STATUS <<\_ACEOF | |
3792 | |
3793 { (exit 0); exit 0; } | |
3794 _ACEOF | |
3795 chmod +x $CONFIG_STATUS | |
3796 ac_clean_files=$ac_clean_files_save | |
3797 | |
3798 | |
3799 # configure is writing to config.log, and then calls config.status. | |
3800 # config.status does its own redirection, appending to config.log. | |
3801 # Unfortunately, on DOS this fails, as config.log is still kept open | |
3802 # by configure, so config.status won't be able to write to it; its | |
3803 # output is simply discarded. So we exec the FD to /dev/null, | |
3804 # effectively closing config.log, so it can be properly (re)opened and | |
3805 # appended to by config.status. When coming back to configure, we | |
3806 # need to make the FD available again. | |
3807 if test "$no_create" != yes; then | |
3808 ac_cs_success=: | |
3809 exec 5>/dev/null | |
3810 $SHELL $CONFIG_STATUS || ac_cs_success=false | |
3811 exec 5>>config.log | |
3812 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
3813 # would make configure fail if this is the last instruction. | |
3814 $ac_cs_success || { (exit 1); exit 1; } | |
3815 fi | |
3816 |