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