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