1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1" 199 if (eval "$as_required") 2>/dev/null; then : 200 as_have_required=yes 201else 202 as_have_required=no 203fi 204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 205 206else 207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 208as_found=false 209for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 210do 211 IFS=$as_save_IFS 212 test -z "$as_dir" && as_dir=. 213 as_found=: 214 case $as_dir in #( 215 /*) 216 for as_base in sh bash ksh sh5; do 217 # Try only shells that exist, to save several forks. 218 as_shell=$as_dir/$as_base 219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 221 CONFIG_SHELL=$as_shell as_have_required=yes 222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 223 break 2 224fi 225fi 226 done;; 227 esac 228 as_found=false 229done 230$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 232 CONFIG_SHELL=$SHELL as_have_required=yes 233fi; } 234IFS=$as_save_IFS 235 236 237 if test "x$CONFIG_SHELL" != x; then : 238 export CONFIG_SHELL 239 # We cannot yet assume a decent shell, so we have to provide a 240# neutralization value for shells without unset; and this also 241# works around shells that cannot unset nonexistent variables. 242# Preserve -v and -x to the replacement shell. 243BASH_ENV=/dev/null 244ENV=/dev/null 245(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 246case $- in # (((( 247 *v*x* | *x*v* ) as_opts=-vx ;; 248 *v* ) as_opts=-v ;; 249 *x* ) as_opts=-x ;; 250 * ) as_opts= ;; 251esac 252exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 253# Admittedly, this is quite paranoid, since all the known shells bail 254# out after a failed `exec'. 255$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 256exit 255 257fi 258 259 if test x$as_have_required = xno; then : 260 $as_echo "$0: This script requires a shell more modern than all" 261 $as_echo "$0: the shells that I found on your system." 262 if test x${ZSH_VERSION+set} = xset ; then 263 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 264 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 265 else 266 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 267$0: including any error possibly output before this 268$0: message. Then install a modern shell, or manually run 269$0: the script under such a shell if you do have one." 270 fi 271 exit 1 272fi 273fi 274fi 275SHELL=${CONFIG_SHELL-/bin/sh} 276export SHELL 277# Unset more variables known to interfere with behavior of common tools. 278CLICOLOR_FORCE= GREP_OPTIONS= 279unset CLICOLOR_FORCE GREP_OPTIONS 280 281## --------------------- ## 282## M4sh Shell Functions. ## 283## --------------------- ## 284# as_fn_unset VAR 285# --------------- 286# Portably unset VAR. 287as_fn_unset () 288{ 289 { eval $1=; unset $1;} 290} 291as_unset=as_fn_unset 292 293# as_fn_set_status STATUS 294# ----------------------- 295# Set $? to STATUS, without forking. 296as_fn_set_status () 297{ 298 return $1 299} # as_fn_set_status 300 301# as_fn_exit STATUS 302# ----------------- 303# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 304as_fn_exit () 305{ 306 set +e 307 as_fn_set_status $1 308 exit $1 309} # as_fn_exit 310 311# as_fn_mkdir_p 312# ------------- 313# Create "$as_dir" as a directory, including parents if necessary. 314as_fn_mkdir_p () 315{ 316 317 case $as_dir in #( 318 -*) as_dir=./$as_dir;; 319 esac 320 test -d "$as_dir" || eval $as_mkdir_p || { 321 as_dirs= 322 while :; do 323 case $as_dir in #( 324 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 325 *) as_qdir=$as_dir;; 326 esac 327 as_dirs="'$as_qdir' $as_dirs" 328 as_dir=`$as_dirname -- "$as_dir" || 329$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 330 X"$as_dir" : 'X\(//\)[^/]' \| \ 331 X"$as_dir" : 'X\(//\)$' \| \ 332 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 333$as_echo X"$as_dir" | 334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 335 s//\1/ 336 q 337 } 338 /^X\(\/\/\)[^/].*/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)$/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\).*/{ 347 s//\1/ 348 q 349 } 350 s/.*/./; q'` 351 test -d "$as_dir" && break 352 done 353 test -z "$as_dirs" || eval "mkdir $as_dirs" 354 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 355 356 357} # as_fn_mkdir_p 358 359# as_fn_executable_p FILE 360# ----------------------- 361# Test if FILE is an executable regular file. 362as_fn_executable_p () 363{ 364 test -f "$1" && test -x "$1" 365} # as_fn_executable_p 366# as_fn_append VAR VALUE 367# ---------------------- 368# Append the text in VALUE to the end of the definition contained in VAR. Take 369# advantage of any shell optimizations that allow amortized linear growth over 370# repeated appends, instead of the typical quadratic growth present in naive 371# implementations. 372if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 373 eval 'as_fn_append () 374 { 375 eval $1+=\$2 376 }' 377else 378 as_fn_append () 379 { 380 eval $1=\$$1\$2 381 } 382fi # as_fn_append 383 384# as_fn_arith ARG... 385# ------------------ 386# Perform arithmetic evaluation on the ARGs, and store the result in the 387# global $as_val. Take advantage of shells that can avoid forks. The arguments 388# must be portable across $(()) and expr. 389if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 390 eval 'as_fn_arith () 391 { 392 as_val=$(( $* )) 393 }' 394else 395 as_fn_arith () 396 { 397 as_val=`expr "$@" || test $? -eq 1` 398 } 399fi # as_fn_arith 400 401 402# as_fn_error STATUS ERROR [LINENO LOG_FD] 403# ---------------------------------------- 404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 406# script with STATUS, using 1 if that was 0. 407as_fn_error () 408{ 409 as_status=$1; test $as_status -eq 0 && as_status=1 410 if test "$4"; then 411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 413 fi 414 $as_echo "$as_me: error: $2" >&2 415 as_fn_exit $as_status 416} # as_fn_error 417 418if expr a : '\(a\)' >/dev/null 2>&1 && 419 test "X`expr 00001 : '.*\(...\)'`" = X001; then 420 as_expr=expr 421else 422 as_expr=false 423fi 424 425if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 426 as_basename=basename 427else 428 as_basename=false 429fi 430 431if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 432 as_dirname=dirname 433else 434 as_dirname=false 435fi 436 437as_me=`$as_basename -- "$0" || 438$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 439 X"$0" : 'X\(//\)$' \| \ 440 X"$0" : 'X\(/\)' \| . 2>/dev/null || 441$as_echo X/"$0" | 442 sed '/^.*\/\([^/][^/]*\)\/*$/{ 443 s//\1/ 444 q 445 } 446 /^X\/\(\/\/\)$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\).*/{ 451 s//\1/ 452 q 453 } 454 s/.*/./; q'` 455 456# Avoid depending upon Character Ranges. 457as_cr_letters='abcdefghijklmnopqrstuvwxyz' 458as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 459as_cr_Letters=$as_cr_letters$as_cr_LETTERS 460as_cr_digits='0123456789' 461as_cr_alnum=$as_cr_Letters$as_cr_digits 462 463 464 as_lineno_1=$LINENO as_lineno_1a=$LINENO 465 as_lineno_2=$LINENO as_lineno_2a=$LINENO 466 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 467 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 468 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 469 sed -n ' 470 p 471 /[$]LINENO/= 472 ' <$as_myself | 473 sed ' 474 s/[$]LINENO.*/&-/ 475 t lineno 476 b 477 :lineno 478 N 479 :loop 480 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 481 t loop 482 s/-\n.*// 483 ' >$as_me.lineno && 484 chmod +x "$as_me.lineno" || 485 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 486 487 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 488 # already done that, so ensure we don't try to do so again and fall 489 # in an infinite loop. This has already happened in practice. 490 _as_can_reexec=no; export _as_can_reexec 491 # Don't try to exec as it changes $[0], causing all sort of problems 492 # (the dirname of $[0] is not the place where we might find the 493 # original and so on. Autoconf is especially sensitive to this). 494 . "./$as_me.lineno" 495 # Exit status is that of the last command. 496 exit 497} 498 499ECHO_C= ECHO_N= ECHO_T= 500case `echo -n x` in #((((( 501-n*) 502 case `echo 'xy\c'` in 503 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 504 xy) ECHO_C='\c';; 505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 506 ECHO_T=' ';; 507 esac;; 508*) 509 ECHO_N='-n';; 510esac 511 512rm -f conf$$ conf$$.exe conf$$.file 513if test -d conf$$.dir; then 514 rm -f conf$$.dir/conf$$.file 515else 516 rm -f conf$$.dir 517 mkdir conf$$.dir 2>/dev/null 518fi 519if (echo >conf$$.file) 2>/dev/null; then 520 if ln -s conf$$.file conf$$ 2>/dev/null; then 521 as_ln_s='ln -s' 522 # ... but there are two gotchas: 523 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 524 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 525 # In both cases, we have to default to `cp -pR'. 526 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 527 as_ln_s='cp -pR' 528 elif ln conf$$.file conf$$ 2>/dev/null; then 529 as_ln_s=ln 530 else 531 as_ln_s='cp -pR' 532 fi 533else 534 as_ln_s='cp -pR' 535fi 536rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 537rmdir conf$$.dir 2>/dev/null 538 539if mkdir -p . 2>/dev/null; then 540 as_mkdir_p='mkdir -p "$as_dir"' 541else 542 test -d ./-p && rmdir ./-p 543 as_mkdir_p=false 544fi 545 546as_test_x='test -x' 547as_executable_p=as_fn_executable_p 548 549# Sed expression to map a string onto a valid CPP name. 550as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 551 552# Sed expression to map a string onto a valid variable name. 553as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 554 555 556test -n "$DJDIR" || exec 7<&0 </dev/null 557exec 6>&1 558 559# Name of the host. 560# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 561# so uname gets run too. 562ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 563 564# 565# Initializations. 566# 567ac_default_prefix=/usr/local 568ac_clean_files= 569ac_config_libobj_dir=. 570LIBOBJS= 571cross_compiling=no 572subdirs= 573MFLAGS= 574MAKEFLAGS= 575 576# Identity of this package. 577PACKAGE_NAME= 578PACKAGE_TARNAME= 579PACKAGE_VERSION= 580PACKAGE_STRING= 581PACKAGE_BUGREPORT= 582PACKAGE_URL= 583 584ac_unique_file="Makefile.in" 585ac_subst_vars='LTLIBOBJS 586LIBOBJS 587PQ_INCLUDE 588GRASS_GISBASE 589GRASS_INCLUDE 590AUTOLOAD_DIR 591GDAL_INC 592GDAL_CONFIG 593C_WFLAGS 594CXX_WFLAGS 595SO_EXT 596LD_SHARED 597C_PIC 598CXX_PIC 599RANLIB 600ac_ct_CXX 601CXXFLAGS 602CXX 603OBJEXT 604EXEEXT 605ac_ct_CC 606CPPFLAGS 607LDFLAGS 608CFLAGS 609CC 610target_alias 611host_alias 612build_alias 613LIBS 614ECHO_T 615ECHO_N 616ECHO_C 617DEFS 618mandir 619localedir 620libdir 621psdir 622pdfdir 623dvidir 624htmldir 625infodir 626docdir 627oldincludedir 628includedir 629runstatedir 630localstatedir 631sharedstatedir 632sysconfdir 633datadir 634datarootdir 635libexecdir 636sbindir 637bindir 638program_transform_name 639prefix 640exec_prefix 641PACKAGE_URL 642PACKAGE_BUGREPORT 643PACKAGE_STRING 644PACKAGE_VERSION 645PACKAGE_TARNAME 646PACKAGE_NAME 647PATH_SEPARATOR 648SHELL' 649ac_subst_files='' 650ac_user_opts=' 651enable_option_checking 652with_ld_shared 653with_gdal 654with_autoload 655with_grass 656with_postgres_includes 657' 658 ac_precious_vars='build_alias 659host_alias 660target_alias 661CC 662CFLAGS 663LDFLAGS 664LIBS 665CPPFLAGS 666CXX 667CXXFLAGS 668CCC' 669 670 671# Initialize some variables set by options. 672ac_init_help= 673ac_init_version=false 674ac_unrecognized_opts= 675ac_unrecognized_sep= 676# The variables have the same names as the options, with 677# dashes changed to underlines. 678cache_file=/dev/null 679exec_prefix=NONE 680no_create= 681no_recursion= 682prefix=NONE 683program_prefix=NONE 684program_suffix=NONE 685program_transform_name=s,x,x, 686silent= 687site= 688srcdir= 689verbose= 690x_includes=NONE 691x_libraries=NONE 692 693# Installation directory options. 694# These are left unexpanded so users can "make install exec_prefix=/foo" 695# and all the variables that are supposed to be based on exec_prefix 696# by default will actually change. 697# Use braces instead of parens because sh, perl, etc. also accept them. 698# (The list follows the same order as the GNU Coding Standards.) 699bindir='${exec_prefix}/bin' 700sbindir='${exec_prefix}/sbin' 701libexecdir='${exec_prefix}/libexec' 702datarootdir='${prefix}/share' 703datadir='${datarootdir}' 704sysconfdir='${prefix}/etc' 705sharedstatedir='${prefix}/com' 706localstatedir='${prefix}/var' 707runstatedir='${localstatedir}/run' 708includedir='${prefix}/include' 709oldincludedir='/usr/include' 710docdir='${datarootdir}/doc/${PACKAGE}' 711infodir='${datarootdir}/info' 712htmldir='${docdir}' 713dvidir='${docdir}' 714pdfdir='${docdir}' 715psdir='${docdir}' 716libdir='${exec_prefix}/lib' 717localedir='${datarootdir}/locale' 718mandir='${datarootdir}/man' 719 720ac_prev= 721ac_dashdash= 722for ac_option 723do 724 # If the previous option needs an argument, assign it. 725 if test -n "$ac_prev"; then 726 eval $ac_prev=\$ac_option 727 ac_prev= 728 continue 729 fi 730 731 case $ac_option in 732 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 733 *=) ac_optarg= ;; 734 *) ac_optarg=yes ;; 735 esac 736 737 # Accept the important Cygnus configure options, so we can diagnose typos. 738 739 case $ac_dashdash$ac_option in 740 --) 741 ac_dashdash=yes ;; 742 743 -bindir | --bindir | --bindi | --bind | --bin | --bi) 744 ac_prev=bindir ;; 745 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 746 bindir=$ac_optarg ;; 747 748 -build | --build | --buil | --bui | --bu) 749 ac_prev=build_alias ;; 750 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 751 build_alias=$ac_optarg ;; 752 753 -cache-file | --cache-file | --cache-fil | --cache-fi \ 754 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 755 ac_prev=cache_file ;; 756 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 757 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 758 cache_file=$ac_optarg ;; 759 760 --config-cache | -C) 761 cache_file=config.cache ;; 762 763 -datadir | --datadir | --datadi | --datad) 764 ac_prev=datadir ;; 765 -datadir=* | --datadir=* | --datadi=* | --datad=*) 766 datadir=$ac_optarg ;; 767 768 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 769 | --dataroo | --dataro | --datar) 770 ac_prev=datarootdir ;; 771 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 772 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 773 datarootdir=$ac_optarg ;; 774 775 -disable-* | --disable-*) 776 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 777 # Reject names that are not valid shell variable names. 778 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 779 as_fn_error $? "invalid feature name: $ac_useropt" 780 ac_useropt_orig=$ac_useropt 781 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 782 case $ac_user_opts in 783 *" 784"enable_$ac_useropt" 785"*) ;; 786 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 787 ac_unrecognized_sep=', ';; 788 esac 789 eval enable_$ac_useropt=no ;; 790 791 -docdir | --docdir | --docdi | --doc | --do) 792 ac_prev=docdir ;; 793 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 794 docdir=$ac_optarg ;; 795 796 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 797 ac_prev=dvidir ;; 798 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 799 dvidir=$ac_optarg ;; 800 801 -enable-* | --enable-*) 802 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 803 # Reject names that are not valid shell variable names. 804 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 805 as_fn_error $? "invalid feature name: $ac_useropt" 806 ac_useropt_orig=$ac_useropt 807 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 808 case $ac_user_opts in 809 *" 810"enable_$ac_useropt" 811"*) ;; 812 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 813 ac_unrecognized_sep=', ';; 814 esac 815 eval enable_$ac_useropt=\$ac_optarg ;; 816 817 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 818 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 819 | --exec | --exe | --ex) 820 ac_prev=exec_prefix ;; 821 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 822 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 823 | --exec=* | --exe=* | --ex=*) 824 exec_prefix=$ac_optarg ;; 825 826 -gas | --gas | --ga | --g) 827 # Obsolete; use --with-gas. 828 with_gas=yes ;; 829 830 -help | --help | --hel | --he | -h) 831 ac_init_help=long ;; 832 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 833 ac_init_help=recursive ;; 834 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 835 ac_init_help=short ;; 836 837 -host | --host | --hos | --ho) 838 ac_prev=host_alias ;; 839 -host=* | --host=* | --hos=* | --ho=*) 840 host_alias=$ac_optarg ;; 841 842 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 843 ac_prev=htmldir ;; 844 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 845 | --ht=*) 846 htmldir=$ac_optarg ;; 847 848 -includedir | --includedir | --includedi | --included | --include \ 849 | --includ | --inclu | --incl | --inc) 850 ac_prev=includedir ;; 851 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 852 | --includ=* | --inclu=* | --incl=* | --inc=*) 853 includedir=$ac_optarg ;; 854 855 -infodir | --infodir | --infodi | --infod | --info | --inf) 856 ac_prev=infodir ;; 857 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 858 infodir=$ac_optarg ;; 859 860 -libdir | --libdir | --libdi | --libd) 861 ac_prev=libdir ;; 862 -libdir=* | --libdir=* | --libdi=* | --libd=*) 863 libdir=$ac_optarg ;; 864 865 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 866 | --libexe | --libex | --libe) 867 ac_prev=libexecdir ;; 868 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 869 | --libexe=* | --libex=* | --libe=*) 870 libexecdir=$ac_optarg ;; 871 872 -localedir | --localedir | --localedi | --localed | --locale) 873 ac_prev=localedir ;; 874 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 875 localedir=$ac_optarg ;; 876 877 -localstatedir | --localstatedir | --localstatedi | --localstated \ 878 | --localstate | --localstat | --localsta | --localst | --locals) 879 ac_prev=localstatedir ;; 880 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 881 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 882 localstatedir=$ac_optarg ;; 883 884 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 885 ac_prev=mandir ;; 886 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 887 mandir=$ac_optarg ;; 888 889 -nfp | --nfp | --nf) 890 # Obsolete; use --without-fp. 891 with_fp=no ;; 892 893 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 894 | --no-cr | --no-c | -n) 895 no_create=yes ;; 896 897 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 898 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 899 no_recursion=yes ;; 900 901 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 902 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 903 | --oldin | --oldi | --old | --ol | --o) 904 ac_prev=oldincludedir ;; 905 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 906 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 907 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 908 oldincludedir=$ac_optarg ;; 909 910 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 911 ac_prev=prefix ;; 912 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 913 prefix=$ac_optarg ;; 914 915 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 916 | --program-pre | --program-pr | --program-p) 917 ac_prev=program_prefix ;; 918 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 919 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 920 program_prefix=$ac_optarg ;; 921 922 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 923 | --program-suf | --program-su | --program-s) 924 ac_prev=program_suffix ;; 925 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 926 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 927 program_suffix=$ac_optarg ;; 928 929 -program-transform-name | --program-transform-name \ 930 | --program-transform-nam | --program-transform-na \ 931 | --program-transform-n | --program-transform- \ 932 | --program-transform | --program-transfor \ 933 | --program-transfo | --program-transf \ 934 | --program-trans | --program-tran \ 935 | --progr-tra | --program-tr | --program-t) 936 ac_prev=program_transform_name ;; 937 -program-transform-name=* | --program-transform-name=* \ 938 | --program-transform-nam=* | --program-transform-na=* \ 939 | --program-transform-n=* | --program-transform-=* \ 940 | --program-transform=* | --program-transfor=* \ 941 | --program-transfo=* | --program-transf=* \ 942 | --program-trans=* | --program-tran=* \ 943 | --progr-tra=* | --program-tr=* | --program-t=*) 944 program_transform_name=$ac_optarg ;; 945 946 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 947 ac_prev=pdfdir ;; 948 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 949 pdfdir=$ac_optarg ;; 950 951 -psdir | --psdir | --psdi | --psd | --ps) 952 ac_prev=psdir ;; 953 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 954 psdir=$ac_optarg ;; 955 956 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 957 | -silent | --silent | --silen | --sile | --sil) 958 silent=yes ;; 959 960 -runstatedir | --runstatedir | --runstatedi | --runstated \ 961 | --runstate | --runstat | --runsta | --runst | --runs \ 962 | --run | --ru | --r) 963 ac_prev=runstatedir ;; 964 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 965 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 966 | --run=* | --ru=* | --r=*) 967 runstatedir=$ac_optarg ;; 968 969 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 970 ac_prev=sbindir ;; 971 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 972 | --sbi=* | --sb=*) 973 sbindir=$ac_optarg ;; 974 975 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 976 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 977 | --sharedst | --shareds | --shared | --share | --shar \ 978 | --sha | --sh) 979 ac_prev=sharedstatedir ;; 980 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 981 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 982 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 983 | --sha=* | --sh=*) 984 sharedstatedir=$ac_optarg ;; 985 986 -site | --site | --sit) 987 ac_prev=site ;; 988 -site=* | --site=* | --sit=*) 989 site=$ac_optarg ;; 990 991 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 992 ac_prev=srcdir ;; 993 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 994 srcdir=$ac_optarg ;; 995 996 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 997 | --syscon | --sysco | --sysc | --sys | --sy) 998 ac_prev=sysconfdir ;; 999 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1000 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1001 sysconfdir=$ac_optarg ;; 1002 1003 -target | --target | --targe | --targ | --tar | --ta | --t) 1004 ac_prev=target_alias ;; 1005 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1006 target_alias=$ac_optarg ;; 1007 1008 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1009 verbose=yes ;; 1010 1011 -version | --version | --versio | --versi | --vers | -V) 1012 ac_init_version=: ;; 1013 1014 -with-* | --with-*) 1015 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1016 # Reject names that are not valid shell variable names. 1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1018 as_fn_error $? "invalid package name: $ac_useropt" 1019 ac_useropt_orig=$ac_useropt 1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1021 case $ac_user_opts in 1022 *" 1023"with_$ac_useropt" 1024"*) ;; 1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1026 ac_unrecognized_sep=', ';; 1027 esac 1028 eval with_$ac_useropt=\$ac_optarg ;; 1029 1030 -without-* | --without-*) 1031 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1032 # Reject names that are not valid shell variable names. 1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1034 as_fn_error $? "invalid package name: $ac_useropt" 1035 ac_useropt_orig=$ac_useropt 1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1037 case $ac_user_opts in 1038 *" 1039"with_$ac_useropt" 1040"*) ;; 1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1042 ac_unrecognized_sep=', ';; 1043 esac 1044 eval with_$ac_useropt=no ;; 1045 1046 --x) 1047 # Obsolete; use --with-x. 1048 with_x=yes ;; 1049 1050 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1051 | --x-incl | --x-inc | --x-in | --x-i) 1052 ac_prev=x_includes ;; 1053 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1054 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1055 x_includes=$ac_optarg ;; 1056 1057 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1058 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1059 ac_prev=x_libraries ;; 1060 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1061 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1062 x_libraries=$ac_optarg ;; 1063 1064 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1065Try \`$0 --help' for more information" 1066 ;; 1067 1068 *=*) 1069 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1070 # Reject names that are not valid shell variable names. 1071 case $ac_envvar in #( 1072 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1073 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1074 esac 1075 eval $ac_envvar=\$ac_optarg 1076 export $ac_envvar ;; 1077 1078 *) 1079 # FIXME: should be removed in autoconf 3.0. 1080 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1081 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1082 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1083 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1084 ;; 1085 1086 esac 1087done 1088 1089if test -n "$ac_prev"; then 1090 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1091 as_fn_error $? "missing argument to $ac_option" 1092fi 1093 1094if test -n "$ac_unrecognized_opts"; then 1095 case $enable_option_checking in 1096 no) ;; 1097 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1098 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1099 esac 1100fi 1101 1102# Check all directory arguments for consistency. 1103for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1104 datadir sysconfdir sharedstatedir localstatedir includedir \ 1105 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1106 libdir localedir mandir runstatedir 1107do 1108 eval ac_val=\$$ac_var 1109 # Remove trailing slashes. 1110 case $ac_val in 1111 */ ) 1112 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1113 eval $ac_var=\$ac_val;; 1114 esac 1115 # Be sure to have absolute directory names. 1116 case $ac_val in 1117 [\\/$]* | ?:[\\/]* ) continue;; 1118 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1119 esac 1120 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1121done 1122 1123# There might be people who depend on the old broken behavior: `$host' 1124# used to hold the argument of --host etc. 1125# FIXME: To remove some day. 1126build=$build_alias 1127host=$host_alias 1128target=$target_alias 1129 1130# FIXME: To remove some day. 1131if test "x$host_alias" != x; then 1132 if test "x$build_alias" = x; then 1133 cross_compiling=maybe 1134 elif test "x$build_alias" != "x$host_alias"; then 1135 cross_compiling=yes 1136 fi 1137fi 1138 1139ac_tool_prefix= 1140test -n "$host_alias" && ac_tool_prefix=$host_alias- 1141 1142test "$silent" = yes && exec 6>/dev/null 1143 1144 1145ac_pwd=`pwd` && test -n "$ac_pwd" && 1146ac_ls_di=`ls -di .` && 1147ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1148 as_fn_error $? "working directory cannot be determined" 1149test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1150 as_fn_error $? "pwd does not report name of working directory" 1151 1152 1153# Find the source files, if location was not specified. 1154if test -z "$srcdir"; then 1155 ac_srcdir_defaulted=yes 1156 # Try the directory containing this script, then the parent directory. 1157 ac_confdir=`$as_dirname -- "$as_myself" || 1158$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1159 X"$as_myself" : 'X\(//\)[^/]' \| \ 1160 X"$as_myself" : 'X\(//\)$' \| \ 1161 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1162$as_echo X"$as_myself" | 1163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1164 s//\1/ 1165 q 1166 } 1167 /^X\(\/\/\)[^/].*/{ 1168 s//\1/ 1169 q 1170 } 1171 /^X\(\/\/\)$/{ 1172 s//\1/ 1173 q 1174 } 1175 /^X\(\/\).*/{ 1176 s//\1/ 1177 q 1178 } 1179 s/.*/./; q'` 1180 srcdir=$ac_confdir 1181 if test ! -r "$srcdir/$ac_unique_file"; then 1182 srcdir=.. 1183 fi 1184else 1185 ac_srcdir_defaulted=no 1186fi 1187if test ! -r "$srcdir/$ac_unique_file"; then 1188 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1189 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1190fi 1191ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1192ac_abs_confdir=`( 1193 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1194 pwd)` 1195# When building in place, set srcdir=. 1196if test "$ac_abs_confdir" = "$ac_pwd"; then 1197 srcdir=. 1198fi 1199# Remove unnecessary trailing slashes from srcdir. 1200# Double slashes in file names in object file debugging info 1201# mess up M-x gdb in Emacs. 1202case $srcdir in 1203*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1204esac 1205for ac_var in $ac_precious_vars; do 1206 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1207 eval ac_env_${ac_var}_value=\$${ac_var} 1208 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1209 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1210done 1211 1212# 1213# Report the --help message. 1214# 1215if test "$ac_init_help" = "long"; then 1216 # Omit some internal or obsolete options to make the list less imposing. 1217 # This message is too long to be a string in the A/UX 3.1 sh. 1218 cat <<_ACEOF 1219\`configure' configures this package to adapt to many kinds of systems. 1220 1221Usage: $0 [OPTION]... [VAR=VALUE]... 1222 1223To assign environment variables (e.g., CC, CFLAGS...), specify them as 1224VAR=VALUE. See below for descriptions of some of the useful variables. 1225 1226Defaults for the options are specified in brackets. 1227 1228Configuration: 1229 -h, --help display this help and exit 1230 --help=short display options specific to this package 1231 --help=recursive display the short help of all the included packages 1232 -V, --version display version information and exit 1233 -q, --quiet, --silent do not print \`checking ...' messages 1234 --cache-file=FILE cache test results in FILE [disabled] 1235 -C, --config-cache alias for \`--cache-file=config.cache' 1236 -n, --no-create do not create output files 1237 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1238 1239Installation directories: 1240 --prefix=PREFIX install architecture-independent files in PREFIX 1241 [$ac_default_prefix] 1242 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1243 [PREFIX] 1244 1245By default, \`make install' will install all the files in 1246\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1247an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1248for instance \`--prefix=\$HOME'. 1249 1250For better control, use the options below. 1251 1252Fine tuning of the installation directories: 1253 --bindir=DIR user executables [EPREFIX/bin] 1254 --sbindir=DIR system admin executables [EPREFIX/sbin] 1255 --libexecdir=DIR program executables [EPREFIX/libexec] 1256 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1257 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1258 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1259 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1260 --libdir=DIR object code libraries [EPREFIX/lib] 1261 --includedir=DIR C header files [PREFIX/include] 1262 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1263 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1264 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1265 --infodir=DIR info documentation [DATAROOTDIR/info] 1266 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1267 --mandir=DIR man documentation [DATAROOTDIR/man] 1268 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1269 --htmldir=DIR html documentation [DOCDIR] 1270 --dvidir=DIR dvi documentation [DOCDIR] 1271 --pdfdir=DIR pdf documentation [DOCDIR] 1272 --psdir=DIR ps documentation [DOCDIR] 1273_ACEOF 1274 1275 cat <<\_ACEOF 1276_ACEOF 1277fi 1278 1279if test -n "$ac_init_help"; then 1280 1281 cat <<\_ACEOF 1282 1283Optional Packages: 1284 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1285 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1286 --with-ld-shared=cmd provide shared library link 1287 --with-gdal=PATH GDAL (PATH is path to gdal-config) 1288 --with-autoload=DIR Directory for autoload drivers 1289 --with-grass=ARG Include GRASS support (ARG=GRASS install tree dir) 1290 --with-postgres-includes=DIR use PostgreSQL includes in DIR 1291 1292Some influential environment variables: 1293 CC C compiler command 1294 CFLAGS C compiler flags 1295 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1296 nonstandard directory <lib dir> 1297 LIBS libraries to pass to the linker, e.g. -l<library> 1298 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1299 you have headers in a nonstandard directory <include dir> 1300 CXX C++ compiler command 1301 CXXFLAGS C++ compiler flags 1302 1303Use these variables to override the choices made by `configure' or to help 1304it to find libraries and programs with nonstandard names/locations. 1305 1306Report bugs to the package provider. 1307_ACEOF 1308ac_status=$? 1309fi 1310 1311if test "$ac_init_help" = "recursive"; then 1312 # If there are subdirs, report their specific --help. 1313 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1314 test -d "$ac_dir" || 1315 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1316 continue 1317 ac_builddir=. 1318 1319case "$ac_dir" in 1320.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1321*) 1322 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1323 # A ".." for each directory in $ac_dir_suffix. 1324 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1325 case $ac_top_builddir_sub in 1326 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1327 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1328 esac ;; 1329esac 1330ac_abs_top_builddir=$ac_pwd 1331ac_abs_builddir=$ac_pwd$ac_dir_suffix 1332# for backward compatibility: 1333ac_top_builddir=$ac_top_build_prefix 1334 1335case $srcdir in 1336 .) # We are building in place. 1337 ac_srcdir=. 1338 ac_top_srcdir=$ac_top_builddir_sub 1339 ac_abs_top_srcdir=$ac_pwd ;; 1340 [\\/]* | ?:[\\/]* ) # Absolute name. 1341 ac_srcdir=$srcdir$ac_dir_suffix; 1342 ac_top_srcdir=$srcdir 1343 ac_abs_top_srcdir=$srcdir ;; 1344 *) # Relative name. 1345 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1346 ac_top_srcdir=$ac_top_build_prefix$srcdir 1347 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1348esac 1349ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1350 1351 cd "$ac_dir" || { ac_status=$?; continue; } 1352 # Check for guested configure. 1353 if test -f "$ac_srcdir/configure.gnu"; then 1354 echo && 1355 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1356 elif test -f "$ac_srcdir/configure"; then 1357 echo && 1358 $SHELL "$ac_srcdir/configure" --help=recursive 1359 else 1360 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1361 fi || ac_status=$? 1362 cd "$ac_pwd" || { ac_status=$?; break; } 1363 done 1364fi 1365 1366test -n "$ac_init_help" && exit $ac_status 1367if $ac_init_version; then 1368 cat <<\_ACEOF 1369configure 1370generated by GNU Autoconf 2.69 1371 1372Copyright (C) 2012 Free Software Foundation, Inc. 1373This configure script is free software; the Free Software Foundation 1374gives unlimited permission to copy, distribute and modify it. 1375_ACEOF 1376 exit 1377fi 1378 1379## ------------------------ ## 1380## Autoconf initialization. ## 1381## ------------------------ ## 1382 1383# ac_fn_c_try_compile LINENO 1384# -------------------------- 1385# Try to compile conftest.$ac_ext, and return whether this succeeded. 1386ac_fn_c_try_compile () 1387{ 1388 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1389 rm -f conftest.$ac_objext 1390 if { { ac_try="$ac_compile" 1391case "(($ac_try" in 1392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1393 *) ac_try_echo=$ac_try;; 1394esac 1395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1396$as_echo "$ac_try_echo"; } >&5 1397 (eval "$ac_compile") 2>conftest.err 1398 ac_status=$? 1399 if test -s conftest.err; then 1400 grep -v '^ *+' conftest.err >conftest.er1 1401 cat conftest.er1 >&5 1402 mv -f conftest.er1 conftest.err 1403 fi 1404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1405 test $ac_status = 0; } && { 1406 test -z "$ac_c_werror_flag" || 1407 test ! -s conftest.err 1408 } && test -s conftest.$ac_objext; then : 1409 ac_retval=0 1410else 1411 $as_echo "$as_me: failed program was:" >&5 1412sed 's/^/| /' conftest.$ac_ext >&5 1413 1414 ac_retval=1 1415fi 1416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1417 as_fn_set_status $ac_retval 1418 1419} # ac_fn_c_try_compile 1420 1421# ac_fn_cxx_try_compile LINENO 1422# ---------------------------- 1423# Try to compile conftest.$ac_ext, and return whether this succeeded. 1424ac_fn_cxx_try_compile () 1425{ 1426 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1427 rm -f conftest.$ac_objext 1428 if { { ac_try="$ac_compile" 1429case "(($ac_try" in 1430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1431 *) ac_try_echo=$ac_try;; 1432esac 1433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1434$as_echo "$ac_try_echo"; } >&5 1435 (eval "$ac_compile") 2>conftest.err 1436 ac_status=$? 1437 if test -s conftest.err; then 1438 grep -v '^ *+' conftest.err >conftest.er1 1439 cat conftest.er1 >&5 1440 mv -f conftest.er1 conftest.err 1441 fi 1442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1443 test $ac_status = 0; } && { 1444 test -z "$ac_cxx_werror_flag" || 1445 test ! -s conftest.err 1446 } && test -s conftest.$ac_objext; then : 1447 ac_retval=0 1448else 1449 $as_echo "$as_me: failed program was:" >&5 1450sed 's/^/| /' conftest.$ac_ext >&5 1451 1452 ac_retval=1 1453fi 1454 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1455 as_fn_set_status $ac_retval 1456 1457} # ac_fn_cxx_try_compile 1458 1459# ac_fn_c_try_link LINENO 1460# ----------------------- 1461# Try to link conftest.$ac_ext, and return whether this succeeded. 1462ac_fn_c_try_link () 1463{ 1464 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1465 rm -f conftest.$ac_objext conftest$ac_exeext 1466 if { { ac_try="$ac_link" 1467case "(($ac_try" in 1468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1469 *) ac_try_echo=$ac_try;; 1470esac 1471eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1472$as_echo "$ac_try_echo"; } >&5 1473 (eval "$ac_link") 2>conftest.err 1474 ac_status=$? 1475 if test -s conftest.err; then 1476 grep -v '^ *+' conftest.err >conftest.er1 1477 cat conftest.er1 >&5 1478 mv -f conftest.er1 conftest.err 1479 fi 1480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1481 test $ac_status = 0; } && { 1482 test -z "$ac_c_werror_flag" || 1483 test ! -s conftest.err 1484 } && test -s conftest$ac_exeext && { 1485 test "$cross_compiling" = yes || 1486 test -x conftest$ac_exeext 1487 }; then : 1488 ac_retval=0 1489else 1490 $as_echo "$as_me: failed program was:" >&5 1491sed 's/^/| /' conftest.$ac_ext >&5 1492 1493 ac_retval=1 1494fi 1495 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1496 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1497 # interfere with the next link command; also delete a directory that is 1498 # left behind by Apple's compiler. We do this before executing the actions. 1499 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1501 as_fn_set_status $ac_retval 1502 1503} # ac_fn_c_try_link 1504cat >config.log <<_ACEOF 1505This file contains any messages produced by compilers while 1506running configure, to aid debugging if configure makes a mistake. 1507 1508It was created by $as_me, which was 1509generated by GNU Autoconf 2.69. Invocation command line was 1510 1511 $ $0 $@ 1512 1513_ACEOF 1514exec 5>>config.log 1515{ 1516cat <<_ASUNAME 1517## --------- ## 1518## Platform. ## 1519## --------- ## 1520 1521hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1522uname -m = `(uname -m) 2>/dev/null || echo unknown` 1523uname -r = `(uname -r) 2>/dev/null || echo unknown` 1524uname -s = `(uname -s) 2>/dev/null || echo unknown` 1525uname -v = `(uname -v) 2>/dev/null || echo unknown` 1526 1527/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1528/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1529 1530/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1531/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1532/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1533/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1534/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1535/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1536/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1537 1538_ASUNAME 1539 1540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1541for as_dir in $PATH 1542do 1543 IFS=$as_save_IFS 1544 test -z "$as_dir" && as_dir=. 1545 $as_echo "PATH: $as_dir" 1546 done 1547IFS=$as_save_IFS 1548 1549} >&5 1550 1551cat >&5 <<_ACEOF 1552 1553 1554## ----------- ## 1555## Core tests. ## 1556## ----------- ## 1557 1558_ACEOF 1559 1560 1561# Keep a trace of the command line. 1562# Strip out --no-create and --no-recursion so they do not pile up. 1563# Strip out --silent because we don't want to record it for future runs. 1564# Also quote any args containing shell meta-characters. 1565# Make two passes to allow for proper duplicate-argument suppression. 1566ac_configure_args= 1567ac_configure_args0= 1568ac_configure_args1= 1569ac_must_keep_next=false 1570for ac_pass in 1 2 1571do 1572 for ac_arg 1573 do 1574 case $ac_arg in 1575 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1576 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1577 | -silent | --silent | --silen | --sile | --sil) 1578 continue ;; 1579 *\'*) 1580 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1581 esac 1582 case $ac_pass in 1583 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1584 2) 1585 as_fn_append ac_configure_args1 " '$ac_arg'" 1586 if test $ac_must_keep_next = true; then 1587 ac_must_keep_next=false # Got value, back to normal. 1588 else 1589 case $ac_arg in 1590 *=* | --config-cache | -C | -disable-* | --disable-* \ 1591 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1592 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1593 | -with-* | --with-* | -without-* | --without-* | --x) 1594 case "$ac_configure_args0 " in 1595 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1596 esac 1597 ;; 1598 -* ) ac_must_keep_next=true ;; 1599 esac 1600 fi 1601 as_fn_append ac_configure_args " '$ac_arg'" 1602 ;; 1603 esac 1604 done 1605done 1606{ ac_configure_args0=; unset ac_configure_args0;} 1607{ ac_configure_args1=; unset ac_configure_args1;} 1608 1609# When interrupted or exit'd, cleanup temporary files, and complete 1610# config.log. We remove comments because anyway the quotes in there 1611# would cause problems or look ugly. 1612# WARNING: Use '\'' to represent an apostrophe within the trap. 1613# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1614trap 'exit_status=$? 1615 # Save into config.log some information that might help in debugging. 1616 { 1617 echo 1618 1619 $as_echo "## ---------------- ## 1620## Cache variables. ## 1621## ---------------- ##" 1622 echo 1623 # The following way of writing the cache mishandles newlines in values, 1624( 1625 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1626 eval ac_val=\$$ac_var 1627 case $ac_val in #( 1628 *${as_nl}*) 1629 case $ac_var in #( 1630 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1631$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1632 esac 1633 case $ac_var in #( 1634 _ | IFS | as_nl) ;; #( 1635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1636 *) { eval $ac_var=; unset $ac_var;} ;; 1637 esac ;; 1638 esac 1639 done 1640 (set) 2>&1 | 1641 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1642 *${as_nl}ac_space=\ *) 1643 sed -n \ 1644 "s/'\''/'\''\\\\'\'''\''/g; 1645 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1646 ;; #( 1647 *) 1648 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1649 ;; 1650 esac | 1651 sort 1652) 1653 echo 1654 1655 $as_echo "## ----------------- ## 1656## Output variables. ## 1657## ----------------- ##" 1658 echo 1659 for ac_var in $ac_subst_vars 1660 do 1661 eval ac_val=\$$ac_var 1662 case $ac_val in 1663 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1664 esac 1665 $as_echo "$ac_var='\''$ac_val'\''" 1666 done | sort 1667 echo 1668 1669 if test -n "$ac_subst_files"; then 1670 $as_echo "## ------------------- ## 1671## File substitutions. ## 1672## ------------------- ##" 1673 echo 1674 for ac_var in $ac_subst_files 1675 do 1676 eval ac_val=\$$ac_var 1677 case $ac_val in 1678 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1679 esac 1680 $as_echo "$ac_var='\''$ac_val'\''" 1681 done | sort 1682 echo 1683 fi 1684 1685 if test -s confdefs.h; then 1686 $as_echo "## ----------- ## 1687## confdefs.h. ## 1688## ----------- ##" 1689 echo 1690 cat confdefs.h 1691 echo 1692 fi 1693 test "$ac_signal" != 0 && 1694 $as_echo "$as_me: caught signal $ac_signal" 1695 $as_echo "$as_me: exit $exit_status" 1696 } >&5 1697 rm -f core *.core core.conftest.* && 1698 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1699 exit $exit_status 1700' 0 1701for ac_signal in 1 2 13 15; do 1702 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1703done 1704ac_signal=0 1705 1706# confdefs.h avoids OS command line length limits that DEFS can exceed. 1707rm -f -r conftest* confdefs.h 1708 1709$as_echo "/* confdefs.h */" > confdefs.h 1710 1711# Predefined preprocessor variables. 1712 1713cat >>confdefs.h <<_ACEOF 1714#define PACKAGE_NAME "$PACKAGE_NAME" 1715_ACEOF 1716 1717cat >>confdefs.h <<_ACEOF 1718#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1719_ACEOF 1720 1721cat >>confdefs.h <<_ACEOF 1722#define PACKAGE_VERSION "$PACKAGE_VERSION" 1723_ACEOF 1724 1725cat >>confdefs.h <<_ACEOF 1726#define PACKAGE_STRING "$PACKAGE_STRING" 1727_ACEOF 1728 1729cat >>confdefs.h <<_ACEOF 1730#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1731_ACEOF 1732 1733cat >>confdefs.h <<_ACEOF 1734#define PACKAGE_URL "$PACKAGE_URL" 1735_ACEOF 1736 1737 1738# Let the site file select an alternate cache file if it wants to. 1739# Prefer an explicitly selected file to automatically selected ones. 1740ac_site_file1=NONE 1741ac_site_file2=NONE 1742if test -n "$CONFIG_SITE"; then 1743 # We do not want a PATH search for config.site. 1744 case $CONFIG_SITE in #(( 1745 -*) ac_site_file1=./$CONFIG_SITE;; 1746 */*) ac_site_file1=$CONFIG_SITE;; 1747 *) ac_site_file1=./$CONFIG_SITE;; 1748 esac 1749elif test "x$prefix" != xNONE; then 1750 ac_site_file1=$prefix/share/config.site 1751 ac_site_file2=$prefix/etc/config.site 1752else 1753 ac_site_file1=$ac_default_prefix/share/config.site 1754 ac_site_file2=$ac_default_prefix/etc/config.site 1755fi 1756for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1757do 1758 test "x$ac_site_file" = xNONE && continue 1759 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1761$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1762 sed 's/^/| /' "$ac_site_file" >&5 1763 . "$ac_site_file" \ 1764 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1765$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1766as_fn_error $? "failed to load site script $ac_site_file 1767See \`config.log' for more details" "$LINENO" 5; } 1768 fi 1769done 1770 1771 1772# Check that the precious variables saved in the cache have kept the same 1773# value. 1774ac_cache_corrupted=false 1775for ac_var in $ac_precious_vars; do 1776 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1777 eval ac_new_set=\$ac_env_${ac_var}_set 1778 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1779 eval ac_new_val=\$ac_env_${ac_var}_value 1780 case $ac_old_set,$ac_new_set in 1781 set,) 1782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1783$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1784 ac_cache_corrupted=: ;; 1785 ,set) 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1787$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1788 ac_cache_corrupted=: ;; 1789 ,);; 1790 *) 1791 if test "x$ac_old_val" != "x$ac_new_val"; then 1792 # differences in whitespace do not lead to failure. 1793 ac_old_val_w=`echo x $ac_old_val` 1794 ac_new_val_w=`echo x $ac_new_val` 1795 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1796 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1797$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1798 ac_cache_corrupted=: 1799 else 1800 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1801$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1802 eval $ac_var=\$ac_old_val 1803 fi 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1805$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1806 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1807$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1808 fi;; 1809 esac 1810 # Pass precious variables to config.status. 1811 if test "$ac_new_set" = set; then 1812 case $ac_new_val in 1813 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1814 *) ac_arg=$ac_var=$ac_new_val ;; 1815 esac 1816 case " $ac_configure_args " in 1817 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1818 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1819 esac 1820 fi 1821done 1822if $ac_cache_corrupted; then 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1824$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 1826$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1827 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1828fi 1829## -------------------- ## 1830## Main body of script. ## 1831## -------------------- ## 1832 1833ac_ext=c 1834ac_cpp='$CPP $CPPFLAGS' 1835ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1836ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1837ac_compiler_gnu=$ac_cv_c_compiler_gnu 1838 1839 1840 1841 1842 1843ac_ext=c 1844ac_cpp='$CPP $CPPFLAGS' 1845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1847ac_compiler_gnu=$ac_cv_c_compiler_gnu 1848if test -n "$ac_tool_prefix"; then 1849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1850set dummy ${ac_tool_prefix}gcc; ac_word=$2 1851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1852$as_echo_n "checking for $ac_word... " >&6; } 1853if ${ac_cv_prog_CC+:} false; then : 1854 $as_echo_n "(cached) " >&6 1855else 1856 if test -n "$CC"; then 1857 ac_cv_prog_CC="$CC" # Let the user override the test. 1858else 1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1860for as_dir in $PATH 1861do 1862 IFS=$as_save_IFS 1863 test -z "$as_dir" && as_dir=. 1864 for ac_exec_ext in '' $ac_executable_extensions; do 1865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1866 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1868 break 2 1869 fi 1870done 1871 done 1872IFS=$as_save_IFS 1873 1874fi 1875fi 1876CC=$ac_cv_prog_CC 1877if test -n "$CC"; then 1878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 1879$as_echo "$CC" >&6; } 1880else 1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1882$as_echo "no" >&6; } 1883fi 1884 1885 1886fi 1887if test -z "$ac_cv_prog_CC"; then 1888 ac_ct_CC=$CC 1889 # Extract the first word of "gcc", so it can be a program name with args. 1890set dummy gcc; ac_word=$2 1891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1892$as_echo_n "checking for $ac_word... " >&6; } 1893if ${ac_cv_prog_ac_ct_CC+:} false; then : 1894 $as_echo_n "(cached) " >&6 1895else 1896 if test -n "$ac_ct_CC"; then 1897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1898else 1899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1900for as_dir in $PATH 1901do 1902 IFS=$as_save_IFS 1903 test -z "$as_dir" && as_dir=. 1904 for ac_exec_ext in '' $ac_executable_extensions; do 1905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1906 ac_cv_prog_ac_ct_CC="gcc" 1907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1908 break 2 1909 fi 1910done 1911 done 1912IFS=$as_save_IFS 1913 1914fi 1915fi 1916ac_ct_CC=$ac_cv_prog_ac_ct_CC 1917if test -n "$ac_ct_CC"; then 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 1919$as_echo "$ac_ct_CC" >&6; } 1920else 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1922$as_echo "no" >&6; } 1923fi 1924 1925 if test "x$ac_ct_CC" = x; then 1926 CC="" 1927 else 1928 case $cross_compiling:$ac_tool_warned in 1929yes:) 1930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 1931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 1932ac_tool_warned=yes ;; 1933esac 1934 CC=$ac_ct_CC 1935 fi 1936else 1937 CC="$ac_cv_prog_CC" 1938fi 1939 1940if test -z "$CC"; then 1941 if test -n "$ac_tool_prefix"; then 1942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1943set dummy ${ac_tool_prefix}cc; ac_word=$2 1944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1945$as_echo_n "checking for $ac_word... " >&6; } 1946if ${ac_cv_prog_CC+:} false; then : 1947 $as_echo_n "(cached) " >&6 1948else 1949 if test -n "$CC"; then 1950 ac_cv_prog_CC="$CC" # Let the user override the test. 1951else 1952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1953for as_dir in $PATH 1954do 1955 IFS=$as_save_IFS 1956 test -z "$as_dir" && as_dir=. 1957 for ac_exec_ext in '' $ac_executable_extensions; do 1958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1959 ac_cv_prog_CC="${ac_tool_prefix}cc" 1960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 1961 break 2 1962 fi 1963done 1964 done 1965IFS=$as_save_IFS 1966 1967fi 1968fi 1969CC=$ac_cv_prog_CC 1970if test -n "$CC"; then 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 1972$as_echo "$CC" >&6; } 1973else 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 1975$as_echo "no" >&6; } 1976fi 1977 1978 1979 fi 1980fi 1981if test -z "$CC"; then 1982 # Extract the first word of "cc", so it can be a program name with args. 1983set dummy cc; ac_word=$2 1984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 1985$as_echo_n "checking for $ac_word... " >&6; } 1986if ${ac_cv_prog_CC+:} false; then : 1987 $as_echo_n "(cached) " >&6 1988else 1989 if test -n "$CC"; then 1990 ac_cv_prog_CC="$CC" # Let the user override the test. 1991else 1992 ac_prog_rejected=no 1993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1994for as_dir in $PATH 1995do 1996 IFS=$as_save_IFS 1997 test -z "$as_dir" && as_dir=. 1998 for ac_exec_ext in '' $ac_executable_extensions; do 1999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2001 ac_prog_rejected=yes 2002 continue 2003 fi 2004 ac_cv_prog_CC="cc" 2005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2006 break 2 2007 fi 2008done 2009 done 2010IFS=$as_save_IFS 2011 2012if test $ac_prog_rejected = yes; then 2013 # We found a bogon in the path, so make sure we never use it. 2014 set dummy $ac_cv_prog_CC 2015 shift 2016 if test $# != 0; then 2017 # We chose a different compiler from the bogus one. 2018 # However, it has the same basename, so the bogon will be chosen 2019 # first if we set CC to just the basename; use the full file name. 2020 shift 2021 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2022 fi 2023fi 2024fi 2025fi 2026CC=$ac_cv_prog_CC 2027if test -n "$CC"; then 2028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2029$as_echo "$CC" >&6; } 2030else 2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2032$as_echo "no" >&6; } 2033fi 2034 2035 2036fi 2037if test -z "$CC"; then 2038 if test -n "$ac_tool_prefix"; then 2039 for ac_prog in cl.exe 2040 do 2041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2042set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2044$as_echo_n "checking for $ac_word... " >&6; } 2045if ${ac_cv_prog_CC+:} false; then : 2046 $as_echo_n "(cached) " >&6 2047else 2048 if test -n "$CC"; then 2049 ac_cv_prog_CC="$CC" # Let the user override the test. 2050else 2051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2052for as_dir in $PATH 2053do 2054 IFS=$as_save_IFS 2055 test -z "$as_dir" && as_dir=. 2056 for ac_exec_ext in '' $ac_executable_extensions; do 2057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2060 break 2 2061 fi 2062done 2063 done 2064IFS=$as_save_IFS 2065 2066fi 2067fi 2068CC=$ac_cv_prog_CC 2069if test -n "$CC"; then 2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2071$as_echo "$CC" >&6; } 2072else 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2074$as_echo "no" >&6; } 2075fi 2076 2077 2078 test -n "$CC" && break 2079 done 2080fi 2081if test -z "$CC"; then 2082 ac_ct_CC=$CC 2083 for ac_prog in cl.exe 2084do 2085 # Extract the first word of "$ac_prog", so it can be a program name with args. 2086set dummy $ac_prog; ac_word=$2 2087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2088$as_echo_n "checking for $ac_word... " >&6; } 2089if ${ac_cv_prog_ac_ct_CC+:} false; then : 2090 $as_echo_n "(cached) " >&6 2091else 2092 if test -n "$ac_ct_CC"; then 2093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2094else 2095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2096for as_dir in $PATH 2097do 2098 IFS=$as_save_IFS 2099 test -z "$as_dir" && as_dir=. 2100 for ac_exec_ext in '' $ac_executable_extensions; do 2101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2102 ac_cv_prog_ac_ct_CC="$ac_prog" 2103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2104 break 2 2105 fi 2106done 2107 done 2108IFS=$as_save_IFS 2109 2110fi 2111fi 2112ac_ct_CC=$ac_cv_prog_ac_ct_CC 2113if test -n "$ac_ct_CC"; then 2114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2115$as_echo "$ac_ct_CC" >&6; } 2116else 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2118$as_echo "no" >&6; } 2119fi 2120 2121 2122 test -n "$ac_ct_CC" && break 2123done 2124 2125 if test "x$ac_ct_CC" = x; then 2126 CC="" 2127 else 2128 case $cross_compiling:$ac_tool_warned in 2129yes:) 2130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2132ac_tool_warned=yes ;; 2133esac 2134 CC=$ac_ct_CC 2135 fi 2136fi 2137 2138fi 2139 2140 2141test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2143as_fn_error $? "no acceptable C compiler found in \$PATH 2144See \`config.log' for more details" "$LINENO" 5; } 2145 2146# Provide some information about the compiler. 2147$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2148set X $ac_compile 2149ac_compiler=$2 2150for ac_option in --version -v -V -qversion; do 2151 { { ac_try="$ac_compiler $ac_option >&5" 2152case "(($ac_try" in 2153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2154 *) ac_try_echo=$ac_try;; 2155esac 2156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2157$as_echo "$ac_try_echo"; } >&5 2158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2159 ac_status=$? 2160 if test -s conftest.err; then 2161 sed '10a\ 2162... rest of stderr output deleted ... 2163 10q' conftest.err >conftest.er1 2164 cat conftest.er1 >&5 2165 fi 2166 rm -f conftest.er1 conftest.err 2167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2168 test $ac_status = 0; } 2169done 2170 2171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2172/* end confdefs.h. */ 2173 2174int 2175main () 2176{ 2177 2178 ; 2179 return 0; 2180} 2181_ACEOF 2182ac_clean_files_save=$ac_clean_files 2183ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2184# Try to create an executable without -o first, disregard a.out. 2185# It will help us diagnose broken compilers, and finding out an intuition 2186# of exeext. 2187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2188$as_echo_n "checking whether the C compiler works... " >&6; } 2189ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2190 2191# The possible output files: 2192ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2193 2194ac_rmfiles= 2195for ac_file in $ac_files 2196do 2197 case $ac_file in 2198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2199 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2200 esac 2201done 2202rm -f $ac_rmfiles 2203 2204if { { ac_try="$ac_link_default" 2205case "(($ac_try" in 2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2207 *) ac_try_echo=$ac_try;; 2208esac 2209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2210$as_echo "$ac_try_echo"; } >&5 2211 (eval "$ac_link_default") 2>&5 2212 ac_status=$? 2213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2214 test $ac_status = 0; }; then : 2215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2217# in a Makefile. We should not override ac_cv_exeext if it was cached, 2218# so that the user can short-circuit this test for compilers unknown to 2219# Autoconf. 2220for ac_file in $ac_files '' 2221do 2222 test -f "$ac_file" || continue 2223 case $ac_file in 2224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2225 ;; 2226 [ab].out ) 2227 # We found the default executable, but exeext='' is most 2228 # certainly right. 2229 break;; 2230 *.* ) 2231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2232 then :; else 2233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2234 fi 2235 # We set ac_cv_exeext here because the later test for it is not 2236 # safe: cross compilers may not add the suffix if given an `-o' 2237 # argument, so we may need to know it at that point already. 2238 # Even if this section looks crufty: it has the advantage of 2239 # actually working. 2240 break;; 2241 * ) 2242 break;; 2243 esac 2244done 2245test "$ac_cv_exeext" = no && ac_cv_exeext= 2246 2247else 2248 ac_file='' 2249fi 2250if test -z "$ac_file"; then : 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2252$as_echo "no" >&6; } 2253$as_echo "$as_me: failed program was:" >&5 2254sed 's/^/| /' conftest.$ac_ext >&5 2255 2256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2258as_fn_error 77 "C compiler cannot create executables 2259See \`config.log' for more details" "$LINENO" 5; } 2260else 2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2262$as_echo "yes" >&6; } 2263fi 2264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2265$as_echo_n "checking for C compiler default output file name... " >&6; } 2266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2267$as_echo "$ac_file" >&6; } 2268ac_exeext=$ac_cv_exeext 2269 2270rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2271ac_clean_files=$ac_clean_files_save 2272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2273$as_echo_n "checking for suffix of executables... " >&6; } 2274if { { ac_try="$ac_link" 2275case "(($ac_try" in 2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2277 *) ac_try_echo=$ac_try;; 2278esac 2279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2280$as_echo "$ac_try_echo"; } >&5 2281 (eval "$ac_link") 2>&5 2282 ac_status=$? 2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2284 test $ac_status = 0; }; then : 2285 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2286# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2287# work properly (i.e., refer to `conftest.exe'), while it won't with 2288# `rm'. 2289for ac_file in conftest.exe conftest conftest.*; do 2290 test -f "$ac_file" || continue 2291 case $ac_file in 2292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2294 break;; 2295 * ) break;; 2296 esac 2297done 2298else 2299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2301as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2302See \`config.log' for more details" "$LINENO" 5; } 2303fi 2304rm -f conftest conftest$ac_cv_exeext 2305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2306$as_echo "$ac_cv_exeext" >&6; } 2307 2308rm -f conftest.$ac_ext 2309EXEEXT=$ac_cv_exeext 2310ac_exeext=$EXEEXT 2311cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2312/* end confdefs.h. */ 2313#include <stdio.h> 2314int 2315main () 2316{ 2317FILE *f = fopen ("conftest.out", "w"); 2318 return ferror (f) || fclose (f) != 0; 2319 2320 ; 2321 return 0; 2322} 2323_ACEOF 2324ac_clean_files="$ac_clean_files conftest.out" 2325# Check that the compiler produces executables we can run. If not, either 2326# the compiler is broken, or we cross compile. 2327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2328$as_echo_n "checking whether we are cross compiling... " >&6; } 2329if test "$cross_compiling" != yes; then 2330 { { ac_try="$ac_link" 2331case "(($ac_try" in 2332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2333 *) ac_try_echo=$ac_try;; 2334esac 2335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2336$as_echo "$ac_try_echo"; } >&5 2337 (eval "$ac_link") 2>&5 2338 ac_status=$? 2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2340 test $ac_status = 0; } 2341 if { ac_try='./conftest$ac_cv_exeext' 2342 { { case "(($ac_try" in 2343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2344 *) ac_try_echo=$ac_try;; 2345esac 2346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2347$as_echo "$ac_try_echo"; } >&5 2348 (eval "$ac_try") 2>&5 2349 ac_status=$? 2350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2351 test $ac_status = 0; }; }; then 2352 cross_compiling=no 2353 else 2354 if test "$cross_compiling" = maybe; then 2355 cross_compiling=yes 2356 else 2357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2359as_fn_error $? "cannot run C compiled programs. 2360If you meant to cross compile, use \`--host'. 2361See \`config.log' for more details" "$LINENO" 5; } 2362 fi 2363 fi 2364fi 2365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2366$as_echo "$cross_compiling" >&6; } 2367 2368rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2369ac_clean_files=$ac_clean_files_save 2370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2371$as_echo_n "checking for suffix of object files... " >&6; } 2372if ${ac_cv_objext+:} false; then : 2373 $as_echo_n "(cached) " >&6 2374else 2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2376/* end confdefs.h. */ 2377 2378int 2379main () 2380{ 2381 2382 ; 2383 return 0; 2384} 2385_ACEOF 2386rm -f conftest.o conftest.obj 2387if { { ac_try="$ac_compile" 2388case "(($ac_try" in 2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2390 *) ac_try_echo=$ac_try;; 2391esac 2392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2393$as_echo "$ac_try_echo"; } >&5 2394 (eval "$ac_compile") 2>&5 2395 ac_status=$? 2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2397 test $ac_status = 0; }; then : 2398 for ac_file in conftest.o conftest.obj conftest.*; do 2399 test -f "$ac_file" || continue; 2400 case $ac_file in 2401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2403 break;; 2404 esac 2405done 2406else 2407 $as_echo "$as_me: failed program was:" >&5 2408sed 's/^/| /' conftest.$ac_ext >&5 2409 2410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2412as_fn_error $? "cannot compute suffix of object files: cannot compile 2413See \`config.log' for more details" "$LINENO" 5; } 2414fi 2415rm -f conftest.$ac_cv_objext conftest.$ac_ext 2416fi 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2418$as_echo "$ac_cv_objext" >&6; } 2419OBJEXT=$ac_cv_objext 2420ac_objext=$OBJEXT 2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2422$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2423if ${ac_cv_c_compiler_gnu+:} false; then : 2424 $as_echo_n "(cached) " >&6 2425else 2426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2427/* end confdefs.h. */ 2428 2429int 2430main () 2431{ 2432#ifndef __GNUC__ 2433 choke me 2434#endif 2435 2436 ; 2437 return 0; 2438} 2439_ACEOF 2440if ac_fn_c_try_compile "$LINENO"; then : 2441 ac_compiler_gnu=yes 2442else 2443 ac_compiler_gnu=no 2444fi 2445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2446ac_cv_c_compiler_gnu=$ac_compiler_gnu 2447 2448fi 2449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2450$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2451if test $ac_compiler_gnu = yes; then 2452 GCC=yes 2453else 2454 GCC= 2455fi 2456ac_test_CFLAGS=${CFLAGS+set} 2457ac_save_CFLAGS=$CFLAGS 2458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2459$as_echo_n "checking whether $CC accepts -g... " >&6; } 2460if ${ac_cv_prog_cc_g+:} false; then : 2461 $as_echo_n "(cached) " >&6 2462else 2463 ac_save_c_werror_flag=$ac_c_werror_flag 2464 ac_c_werror_flag=yes 2465 ac_cv_prog_cc_g=no 2466 CFLAGS="-g" 2467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2468/* end confdefs.h. */ 2469 2470int 2471main () 2472{ 2473 2474 ; 2475 return 0; 2476} 2477_ACEOF 2478if ac_fn_c_try_compile "$LINENO"; then : 2479 ac_cv_prog_cc_g=yes 2480else 2481 CFLAGS="" 2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2483/* end confdefs.h. */ 2484 2485int 2486main () 2487{ 2488 2489 ; 2490 return 0; 2491} 2492_ACEOF 2493if ac_fn_c_try_compile "$LINENO"; then : 2494 2495else 2496 ac_c_werror_flag=$ac_save_c_werror_flag 2497 CFLAGS="-g" 2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2499/* end confdefs.h. */ 2500 2501int 2502main () 2503{ 2504 2505 ; 2506 return 0; 2507} 2508_ACEOF 2509if ac_fn_c_try_compile "$LINENO"; then : 2510 ac_cv_prog_cc_g=yes 2511fi 2512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2513fi 2514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2515fi 2516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2517 ac_c_werror_flag=$ac_save_c_werror_flag 2518fi 2519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2520$as_echo "$ac_cv_prog_cc_g" >&6; } 2521if test "$ac_test_CFLAGS" = set; then 2522 CFLAGS=$ac_save_CFLAGS 2523elif test $ac_cv_prog_cc_g = yes; then 2524 if test "$GCC" = yes; then 2525 CFLAGS="-g -O2" 2526 else 2527 CFLAGS="-g" 2528 fi 2529else 2530 if test "$GCC" = yes; then 2531 CFLAGS="-O2" 2532 else 2533 CFLAGS= 2534 fi 2535fi 2536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2537$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2538if ${ac_cv_prog_cc_c89+:} false; then : 2539 $as_echo_n "(cached) " >&6 2540else 2541 ac_cv_prog_cc_c89=no 2542ac_save_CC=$CC 2543cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2544/* end confdefs.h. */ 2545#include <stdarg.h> 2546#include <stdio.h> 2547struct stat; 2548/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2549struct buf { int x; }; 2550FILE * (*rcsopen) (struct buf *, struct stat *, int); 2551static char *e (p, i) 2552 char **p; 2553 int i; 2554{ 2555 return p[i]; 2556} 2557static char *f (char * (*g) (char **, int), char **p, ...) 2558{ 2559 char *s; 2560 va_list v; 2561 va_start (v,p); 2562 s = g (p, va_arg (v,int)); 2563 va_end (v); 2564 return s; 2565} 2566 2567/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2568 function prototypes and stuff, but not '\xHH' hex character constants. 2569 These don't provoke an error unfortunately, instead are silently treated 2570 as 'x'. The following induces an error, until -std is added to get 2571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2572 array size at least. It's necessary to write '\x00'==0 to get something 2573 that's true only with -std. */ 2574int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2575 2576/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2577 inside strings and character constants. */ 2578#define FOO(x) 'x' 2579int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2580 2581int test (int i, double x); 2582struct s1 {int (*f) (int a);}; 2583struct s2 {int (*f) (double a);}; 2584int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2585int argc; 2586char **argv; 2587int 2588main () 2589{ 2590return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2591 ; 2592 return 0; 2593} 2594_ACEOF 2595for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2597do 2598 CC="$ac_save_CC $ac_arg" 2599 if ac_fn_c_try_compile "$LINENO"; then : 2600 ac_cv_prog_cc_c89=$ac_arg 2601fi 2602rm -f core conftest.err conftest.$ac_objext 2603 test "x$ac_cv_prog_cc_c89" != "xno" && break 2604done 2605rm -f conftest.$ac_ext 2606CC=$ac_save_CC 2607 2608fi 2609# AC_CACHE_VAL 2610case "x$ac_cv_prog_cc_c89" in 2611 x) 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2613$as_echo "none needed" >&6; } ;; 2614 xno) 2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2616$as_echo "unsupported" >&6; } ;; 2617 *) 2618 CC="$CC $ac_cv_prog_cc_c89" 2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2620$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2621esac 2622if test "x$ac_cv_prog_cc_c89" != xno; then : 2623 2624fi 2625 2626ac_ext=c 2627ac_cpp='$CPP $CPPFLAGS' 2628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2630ac_compiler_gnu=$ac_cv_c_compiler_gnu 2631 2632ac_ext=cpp 2633ac_cpp='$CXXCPP $CPPFLAGS' 2634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2637if test -z "$CXX"; then 2638 if test -n "$CCC"; then 2639 CXX=$CCC 2640 else 2641 if test -n "$ac_tool_prefix"; then 2642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2643 do 2644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2645set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2647$as_echo_n "checking for $ac_word... " >&6; } 2648if ${ac_cv_prog_CXX+:} false; then : 2649 $as_echo_n "(cached) " >&6 2650else 2651 if test -n "$CXX"; then 2652 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2653else 2654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2655for as_dir in $PATH 2656do 2657 IFS=$as_save_IFS 2658 test -z "$as_dir" && as_dir=. 2659 for ac_exec_ext in '' $ac_executable_extensions; do 2660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2663 break 2 2664 fi 2665done 2666 done 2667IFS=$as_save_IFS 2668 2669fi 2670fi 2671CXX=$ac_cv_prog_CXX 2672if test -n "$CXX"; then 2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 2674$as_echo "$CXX" >&6; } 2675else 2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2677$as_echo "no" >&6; } 2678fi 2679 2680 2681 test -n "$CXX" && break 2682 done 2683fi 2684if test -z "$CXX"; then 2685 ac_ct_CXX=$CXX 2686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 2687do 2688 # Extract the first word of "$ac_prog", so it can be a program name with args. 2689set dummy $ac_prog; ac_word=$2 2690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2691$as_echo_n "checking for $ac_word... " >&6; } 2692if ${ac_cv_prog_ac_ct_CXX+:} false; then : 2693 $as_echo_n "(cached) " >&6 2694else 2695 if test -n "$ac_ct_CXX"; then 2696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2697else 2698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2699for as_dir in $PATH 2700do 2701 IFS=$as_save_IFS 2702 test -z "$as_dir" && as_dir=. 2703 for ac_exec_ext in '' $ac_executable_extensions; do 2704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2705 ac_cv_prog_ac_ct_CXX="$ac_prog" 2706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2707 break 2 2708 fi 2709done 2710 done 2711IFS=$as_save_IFS 2712 2713fi 2714fi 2715ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2716if test -n "$ac_ct_CXX"; then 2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 2718$as_echo "$ac_ct_CXX" >&6; } 2719else 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2721$as_echo "no" >&6; } 2722fi 2723 2724 2725 test -n "$ac_ct_CXX" && break 2726done 2727 2728 if test "x$ac_ct_CXX" = x; then 2729 CXX="g++" 2730 else 2731 case $cross_compiling:$ac_tool_warned in 2732yes:) 2733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2735ac_tool_warned=yes ;; 2736esac 2737 CXX=$ac_ct_CXX 2738 fi 2739fi 2740 2741 fi 2742fi 2743# Provide some information about the compiler. 2744$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 2745set X $ac_compile 2746ac_compiler=$2 2747for ac_option in --version -v -V -qversion; do 2748 { { ac_try="$ac_compiler $ac_option >&5" 2749case "(($ac_try" in 2750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2751 *) ac_try_echo=$ac_try;; 2752esac 2753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2754$as_echo "$ac_try_echo"; } >&5 2755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2756 ac_status=$? 2757 if test -s conftest.err; then 2758 sed '10a\ 2759... rest of stderr output deleted ... 2760 10q' conftest.err >conftest.er1 2761 cat conftest.er1 >&5 2762 fi 2763 rm -f conftest.er1 conftest.err 2764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2765 test $ac_status = 0; } 2766done 2767 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 2769$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 2770if ${ac_cv_cxx_compiler_gnu+:} false; then : 2771 $as_echo_n "(cached) " >&6 2772else 2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2774/* end confdefs.h. */ 2775 2776int 2777main () 2778{ 2779#ifndef __GNUC__ 2780 choke me 2781#endif 2782 2783 ; 2784 return 0; 2785} 2786_ACEOF 2787if ac_fn_cxx_try_compile "$LINENO"; then : 2788 ac_compiler_gnu=yes 2789else 2790 ac_compiler_gnu=no 2791fi 2792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2793ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2794 2795fi 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 2797$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 2798if test $ac_compiler_gnu = yes; then 2799 GXX=yes 2800else 2801 GXX= 2802fi 2803ac_test_CXXFLAGS=${CXXFLAGS+set} 2804ac_save_CXXFLAGS=$CXXFLAGS 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 2806$as_echo_n "checking whether $CXX accepts -g... " >&6; } 2807if ${ac_cv_prog_cxx_g+:} false; then : 2808 $as_echo_n "(cached) " >&6 2809else 2810 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 2811 ac_cxx_werror_flag=yes 2812 ac_cv_prog_cxx_g=no 2813 CXXFLAGS="-g" 2814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2815/* end confdefs.h. */ 2816 2817int 2818main () 2819{ 2820 2821 ; 2822 return 0; 2823} 2824_ACEOF 2825if ac_fn_cxx_try_compile "$LINENO"; then : 2826 ac_cv_prog_cxx_g=yes 2827else 2828 CXXFLAGS="" 2829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2830/* end confdefs.h. */ 2831 2832int 2833main () 2834{ 2835 2836 ; 2837 return 0; 2838} 2839_ACEOF 2840if ac_fn_cxx_try_compile "$LINENO"; then : 2841 2842else 2843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2844 CXXFLAGS="-g" 2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2846/* end confdefs.h. */ 2847 2848int 2849main () 2850{ 2851 2852 ; 2853 return 0; 2854} 2855_ACEOF 2856if ac_fn_cxx_try_compile "$LINENO"; then : 2857 ac_cv_prog_cxx_g=yes 2858fi 2859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2860fi 2861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2862fi 2863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 2865fi 2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 2867$as_echo "$ac_cv_prog_cxx_g" >&6; } 2868if test "$ac_test_CXXFLAGS" = set; then 2869 CXXFLAGS=$ac_save_CXXFLAGS 2870elif test $ac_cv_prog_cxx_g = yes; then 2871 if test "$GXX" = yes; then 2872 CXXFLAGS="-g -O2" 2873 else 2874 CXXFLAGS="-g" 2875 fi 2876else 2877 if test "$GXX" = yes; then 2878 CXXFLAGS="-O2" 2879 else 2880 CXXFLAGS= 2881 fi 2882fi 2883ac_ext=c 2884ac_cpp='$CPP $CPPFLAGS' 2885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2887ac_compiler_gnu=$ac_cv_c_compiler_gnu 2888 2889 2890if test -n "$ac_tool_prefix"; then 2891 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 2892set dummy ${ac_tool_prefix}ranlib; ac_word=$2 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2894$as_echo_n "checking for $ac_word... " >&6; } 2895if ${ac_cv_prog_RANLIB+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 if test -n "$RANLIB"; then 2899 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 2900else 2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2902for as_dir in $PATH 2903do 2904 IFS=$as_save_IFS 2905 test -z "$as_dir" && as_dir=. 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2908 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912done 2913 done 2914IFS=$as_save_IFS 2915 2916fi 2917fi 2918RANLIB=$ac_cv_prog_RANLIB 2919if test -n "$RANLIB"; then 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 2921$as_echo "$RANLIB" >&6; } 2922else 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924$as_echo "no" >&6; } 2925fi 2926 2927 2928fi 2929if test -z "$ac_cv_prog_RANLIB"; then 2930 ac_ct_RANLIB=$RANLIB 2931 # Extract the first word of "ranlib", so it can be a program name with args. 2932set dummy ranlib; ac_word=$2 2933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2934$as_echo_n "checking for $ac_word... " >&6; } 2935if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 2936 $as_echo_n "(cached) " >&6 2937else 2938 if test -n "$ac_ct_RANLIB"; then 2939 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 2940else 2941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2942for as_dir in $PATH 2943do 2944 IFS=$as_save_IFS 2945 test -z "$as_dir" && as_dir=. 2946 for ac_exec_ext in '' $ac_executable_extensions; do 2947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2948 ac_cv_prog_ac_ct_RANLIB="ranlib" 2949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2950 break 2 2951 fi 2952done 2953 done 2954IFS=$as_save_IFS 2955 2956fi 2957fi 2958ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 2959if test -n "$ac_ct_RANLIB"; then 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 2961$as_echo "$ac_ct_RANLIB" >&6; } 2962else 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2964$as_echo "no" >&6; } 2965fi 2966 2967 if test "x$ac_ct_RANLIB" = x; then 2968 RANLIB=":" 2969 else 2970 case $cross_compiling:$ac_tool_warned in 2971yes:) 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2974ac_tool_warned=yes ;; 2975esac 2976 RANLIB=$ac_ct_RANLIB 2977 fi 2978else 2979 RANLIB="$ac_cv_prog_RANLIB" 2980fi 2981 2982 2983 echo 'void f(){}' > conftest.c 2984 if test -z "`${CC-cc} -fPIC -c conftest.c 2>&1`"; then 2985 C_PIC=-fPIC 2986 else 2987 C_PIC= 2988 fi 2989 if test -z "`${CXX-g++} -fPIC -c conftest.c 2>&1`"; then 2990 CXX_PIC=-fPIC 2991 else 2992 CXX_PIC= 2993 fi 2994 rm -f conftest* 2995 2996 CXX_PIC=$CXX_PIC 2997 2998 C_PIC=$C_PIC 2999 3000 3001 3002 echo 'void g(); int main(){ g(); return 0; }' > conftest1.c 3003 3004 echo '#include <stdio.h>' > conftest2.c 3005 echo 'void g(); void g(){printf("");}' >> conftest2.c 3006 ${CC} ${C_PIC} -c conftest2.c 3007 3008 SO_EXT="so" 3009 export SO_EXT 3010 LD_SHARED="/bin/true" 3011 if test ! -z "`uname -a | grep IRIX`" ; then 3012 IRIX_ALL=-all 3013 else 3014 IRIX_ALL= 3015 fi 3016 3017 3018# Check whether --with-ld-shared was given. 3019if test "${with_ld_shared+set}" = set; then : 3020 withval=$with_ld_shared; 3021fi 3022 3023 3024 if test "$with_ld_shared" != "" ; then 3025 if test "$with_ld_shared" = "no" ; then 3026 echo "user disabled shared library support." 3027 else 3028 echo "using user supplied .so link command ... $with_ld_shared" 3029 fi 3030 LD_SHARED="$with_ld_shared" 3031 fi 3032 3033 3034 if test ! -z "`uname -a | grep CYGWIN`" \ 3035 -a "$LD_SHARED" = "/bin/true" \ 3036 -a -z "`gcc -shared conftest2.o -o libconftest.dll`" ; then 3037 if test -z "`${CC} conftest1.c -L./ -lconftest -o conftest1 2>&1`"; then 3038 LD_LIBRARY_PATH_OLD="$LD_LIBRARY_PATH" 3039 if test -z "$LD_LIBRARY_PATH" ; then 3040 LD_LIBRARY_PATH="`pwd`" 3041 else 3042 LD_LIBRARY_PATH="`pwd`:$LD_LIBRARY_PATH" 3043 fi 3044 export LD_LIBRARY_PATH 3045 if test -z "`./conftest1 2>&1`" ; then 3046 echo "checking for Cygwin gcc -shared ... yes" 3047 LD_SHARED="c++ -shared" 3048 SO_EXT="dll" 3049 fi 3050 LD_LIBRARY_PATH="$LD_LIBRARY_PATH_OLD" 3051 fi 3052 fi 3053 3054 3055 if test ! -z "`uname | grep Darwin`" \ 3056 -a "$LD_SHARED" = "/bin/true" \ 3057 -a -z "`${CXX} -dynamiclib conftest2.o -o libconftest.so 2>&1`" ; then 3058 ${CC} -c conftest1.c 3059 if test -z "`${CXX} conftest1.o libconftest.so -o conftest1 2>&1`"; then 3060 DYLD_LIBRARY_PATH_OLD="$DYLD_LIBRARY_PATH" 3061 if test -z "$DYLD_LIBRARY_PATH" ; then 3062 DYLD_LIBRARY_PATH="`pwd`" 3063 else 3064 DYLD_LIBRARY_PATH="`pwd`:$DYLD_LIBRARY_PATH" 3065 fi 3066 export DYLD_LIBRARY_PATH 3067 if test -z "`./conftest1 2>&1`" ; then 3068 echo "checking for ${CXX} -dynamiclib ... yes" 3069 LD_SHARED="${CXX} -dynamiclib" 3070 SO_EXT=dylib 3071 fi 3072 DYLD_LIBRARY_PATH="$DYLD_LIBRARY_PATH_OLD" 3073 fi 3074 rm -f conftest1.o 3075 fi 3076 3077 if test "$LD_SHARED" = "/bin/true" \ 3078 -a -z "`${CXX} -shared $IRIX_ALL conftest2.o -o libconftest.so 2>&1|grep -v WARNING`" ; then 3079 if test -z "`${CC} conftest1.c libconftest.so -o conftest1 2>&1`"; then 3080 LD_LIBRARY_PATH_OLD="$LD_LIBRARY_PATH" 3081 if test -z "$LD_LIBRARY_PATH" ; then 3082 LD_LIBRARY_PATH="`pwd`" 3083 else 3084 LD_LIBRARY_PATH="`pwd`:$LD_LIBRARY_PATH" 3085 fi 3086 export LD_LIBRARY_PATH 3087 if test -z "`./conftest1 2>&1`" ; then 3088 echo "checking for ${CXX} -shared ... yes" 3089 LD_SHARED="${CXX} -shared $IRIX_ALL" 3090 else 3091 echo "checking for ${CXX} -shared ... no(3)" 3092 fi 3093 LD_LIBRARY_PATH="$LD_LIBRARY_PATH_OLD" 3094 else 3095 echo "checking for ${CXX} -shared ... no(2)" 3096 fi 3097 else 3098 if test "$LD_SHARED" = "/bin/true" ; then 3099 echo "checking for ${CXX} -shared ... no(1)" 3100 fi 3101 fi 3102 3103 if test "$LD_SHARED" = "/bin/true" \ 3104 -a -z "`ld -shared conftest2.o -o libconftest.so 2>&1`" ; then 3105 if test -z "`${CC} conftest1.c libconftest.so -o conftest1 2>&1`"; then 3106 LD_LIBRARY_PATH_OLD="$LD_LIBRARY_PATH" 3107 if test -z "$LD_LIBRARY_PATH" ; then 3108 LD_LIBRARY_PATH="`pwd`" 3109 else 3110 LD_LIBRARY_PATH="`pwd`:$LD_LIBRARY_PATH" 3111 fi 3112 export LD_LIBRARY_PATH 3113 if test -z "`./conftest1 2>&1`" ; then 3114 echo "checking for ld -shared ... yes" 3115 LD_SHARED="ld -shared" 3116 fi 3117 LD_LIBRARY_PATH="$LD_LIBRARY_PATH_OLD" 3118 fi 3119 fi 3120 3121 if test "$LD_SHARED" = "/bin/true" ; then 3122 echo "checking for ld -shared ... no" 3123 if test ! -x /bin/true ; then 3124 LD_SHARED=/usr/bin/true 3125 fi 3126 fi 3127 if test "$LD_SHARED" = "no" ; then 3128 if test -x /bin/true ; then 3129 LD_SHARED=/bin/true 3130 else 3131 LD_SHARED=/usr/bin/true 3132 fi 3133 fi 3134 3135 rm -f conftest* libconftest* 3136 3137 LD_SHARED=$LD_SHARED 3138 3139 SO_EXT=$SO_EXT 3140 3141 3142 3143 # Remove -g from compile flags, we will add via CFG variable if 3144 # we need it. 3145 CXXFLAGS=`echo "$CXXFLAGS " | sed "s/-g //"` 3146 CFLAGS=`echo "$CFLAGS " | sed "s/-g //"` 3147 3148 # check for GNU compiler, and use -Wall 3149 if test "$GCC" = "yes"; then 3150 C_WFLAGS="-Wall" 3151 3152$as_echo "#define USE_GNUCC 1" >>confdefs.h 3153 3154 fi 3155 if test "$GXX" = "yes"; then 3156 CXX_WFLAGS="-Wall" 3157 3158$as_echo "#define USE_GNUCC 1" >>confdefs.h 3159 3160 fi 3161 CXX_WFLAGS=$CXX_WFLAGS 3162 3163 C_WFLAGS=$C_WFLAGS 3164 3165 3166 3167 3168 3169# Check whether --with-gdal was given. 3170if test "${with_gdal+set}" = set; then : 3171 withval=$with_gdal; 3172fi 3173 3174 3175if test "$with_gdal" = "yes" -o "$with_gdal" = "" ; then 3176 3177 if test "`basename xx/$with_gdal`" = "gdal-config" ; then 3178 GDAL_CONFIG="$with_gdal" 3179 fi 3180 3181 if test -z "$GDAL_CONFIG" ; then 3182 # Extract the first word of "gdal-config", so it can be a program name with args. 3183set dummy gdal-config; ac_word=$2 3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3185$as_echo_n "checking for $ac_word... " >&6; } 3186if ${ac_cv_path_GDAL_CONFIG+:} false; then : 3187 $as_echo_n "(cached) " >&6 3188else 3189 case $GDAL_CONFIG in 3190 [\\/]* | ?:[\\/]*) 3191 ac_cv_path_GDAL_CONFIG="$GDAL_CONFIG" # Let the user override the test with a path. 3192 ;; 3193 *) 3194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3195for as_dir in $PATH 3196do 3197 IFS=$as_save_IFS 3198 test -z "$as_dir" && as_dir=. 3199 for ac_exec_ext in '' $ac_executable_extensions; do 3200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3201 ac_cv_path_GDAL_CONFIG="$as_dir/$ac_word$ac_exec_ext" 3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3203 break 2 3204 fi 3205done 3206 done 3207IFS=$as_save_IFS 3208 3209 test -z "$ac_cv_path_GDAL_CONFIG" && ac_cv_path_GDAL_CONFIG="no" 3210 ;; 3211esac 3212fi 3213GDAL_CONFIG=$ac_cv_path_GDAL_CONFIG 3214if test -n "$GDAL_CONFIG"; then 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDAL_CONFIG" >&5 3216$as_echo "$GDAL_CONFIG" >&6; } 3217else 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3219$as_echo "no" >&6; } 3220fi 3221 3222 3223 fi 3224 3225 if test "$GDAL_CONFIG" = "no" ; then 3226 as_fn_error $? "couldn't find gdal-config" "$LINENO" 5 3227 fi 3228 3229elif test -n "$with_gdal" -a "$with_gdal" != "no" ; then 3230 3231 GDAL_CONFIG=$with_gdal 3232 3233 if test -f "$GDAL_CONFIG" -a -x "$GDAL_CONFIG" ; then 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: user supplied gdal-config ($GDAL_CONFIG)" >&5 3235$as_echo "user supplied gdal-config ($GDAL_CONFIG)" >&6; } 3236 else 3237 as_fn_error $? "'$GDAL_CONFIG' is not an executable. Make sure you use --with-gdal=/path/to/gdal-config" "$LINENO" 5 3238 fi 3239 3240else 3241 3242 as_fn_error $? "gdal required to build GDAL GRASS driver" "$LINENO" 5 3243 3244fi 3245 3246LIBS="`$GDAL_CONFIG --libs` $LIBS" 3247GDAL_INC=`$GDAL_CONFIG --cflags` 3248 3249GDAL_INC=$GDAL_INC 3250 3251 3252 3253# Check whether --with-autoload was given. 3254if test "${with_autoload+set}" = set; then : 3255 withval=$with_autoload; 3256fi 3257 3258 3259if test "$with_autoload" != "" ; then 3260 AUTOLOAD_DIR=$with_autoload 3261else 3262 if $GDAL_CONFIG --autoload > /dev/null 2>&1 ; then 3263 AUTOLOAD_DIR=`$GDAL_CONFIG --autoload` 3264 else 3265 AUTOLOAD_DIR=`$GDAL_CONFIG --prefix`/lib/gdalplugins 3266 fi 3267fi 3268 3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: using $AUTOLOAD_DIR as GDAL shared library autoload directory" >&5 3270$as_echo "using $AUTOLOAD_DIR as GDAL shared library autoload directory" >&6; } 3271AUTOLOAD_DIR=$AUTOLOAD_DIR 3272 3273 3274 3275GRASS_SETTING=no 3276GRASS_INCLUDE= 3277GRASS_GISBASE= 3278export GRASS_INCLUDE GRASS_SETTING GRASS_GISBASE 3279 3280 3281# Check whether --with-grass was given. 3282if test "${with_grass+set}" = set; then : 3283 withval=$with_grass; 3284fi 3285 3286 3287if test "$with_grass" = "no" ; then 3288 as_fn_error $? "grass required for this driver, please install GRASS 5.7 or later and rebuild" "$LINENO" 5 3289fi 3290 3291if test "$with_grass" != "yes" ; then 3292 3293 3294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for G_read_compressed in -lgrass_gis" >&5 3295$as_echo_n "checking for G_read_compressed in -lgrass_gis... " >&6; } 3296if ${ac_cv_lib_grass_gis_G_read_compressed+:} false; then : 3297 $as_echo_n "(cached) " >&6 3298else 3299 ac_check_lib_save_LIBS=$LIBS 3300LIBS="-lgrass_gis -L$with_grass/lib -lgrass_datetime $LIBS" 3301cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3302/* end confdefs.h. */ 3303 3304/* Override any GCC internal prototype to avoid an error. 3305 Use char because int might match the return type of a GCC 3306 builtin and then its argument prototype would still apply. */ 3307#ifdef __cplusplus 3308extern "C" 3309#endif 3310char G_read_compressed (); 3311int 3312main () 3313{ 3314return G_read_compressed (); 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319if ac_fn_c_try_link "$LINENO"; then : 3320 ac_cv_lib_grass_gis_G_read_compressed=yes 3321else 3322 ac_cv_lib_grass_gis_G_read_compressed=no 3323fi 3324rm -f core conftest.err conftest.$ac_objext \ 3325 conftest$ac_exeext conftest.$ac_ext 3326LIBS=$ac_check_lib_save_LIBS 3327fi 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_grass_gis_G_read_compressed" >&5 3329$as_echo "$ac_cv_lib_grass_gis_G_read_compressed" >&6; } 3330if test "x$ac_cv_lib_grass_gis_G_read_compressed" = xyes; then : 3331 GRASS_SETTING=grass72+ 3332else 3333 GRASS_SETTING=no 3334fi 3335 3336 if test "$GRASS_SETTING" = "no" ; then 3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for G_is_initialized in -lgrass_gis" >&5 3338$as_echo_n "checking for G_is_initialized in -lgrass_gis... " >&6; } 3339if ${ac_cv_lib_grass_gis_G_is_initialized+:} false; then : 3340 $as_echo_n "(cached) " >&6 3341else 3342 ac_check_lib_save_LIBS=$LIBS 3343LIBS="-lgrass_gis -L$with_grass/lib -lgrass_datetime $LIBS" 3344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3345/* end confdefs.h. */ 3346 3347/* Override any GCC internal prototype to avoid an error. 3348 Use char because int might match the return type of a GCC 3349 builtin and then its argument prototype would still apply. */ 3350#ifdef __cplusplus 3351extern "C" 3352#endif 3353char G_is_initialized (); 3354int 3355main () 3356{ 3357return G_is_initialized (); 3358 ; 3359 return 0; 3360} 3361_ACEOF 3362if ac_fn_c_try_link "$LINENO"; then : 3363 ac_cv_lib_grass_gis_G_is_initialized=yes 3364else 3365 ac_cv_lib_grass_gis_G_is_initialized=no 3366fi 3367rm -f core conftest.err conftest.$ac_objext \ 3368 conftest$ac_exeext conftest.$ac_ext 3369LIBS=$ac_check_lib_save_LIBS 3370fi 3371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_grass_gis_G_is_initialized" >&5 3372$as_echo "$ac_cv_lib_grass_gis_G_is_initialized" >&6; } 3373if test "x$ac_cv_lib_grass_gis_G_is_initialized" = xyes; then : 3374 GRASS_SETTING=grass70+ 3375else 3376 GRASS_SETTING=no 3377fi 3378 3379 if test "$GRASS_SETTING" = "no" ; then 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for G_asprintf in -lgrass_gis" >&5 3381$as_echo_n "checking for G_asprintf in -lgrass_gis... " >&6; } 3382if ${ac_cv_lib_grass_gis_G_asprintf+:} false; then : 3383 $as_echo_n "(cached) " >&6 3384else 3385 ac_check_lib_save_LIBS=$LIBS 3386LIBS="-lgrass_gis -L$with_grass/lib -lgrass_datetime $LIBS" 3387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3388/* end confdefs.h. */ 3389 3390/* Override any GCC internal prototype to avoid an error. 3391 Use char because int might match the return type of a GCC 3392 builtin and then its argument prototype would still apply. */ 3393#ifdef __cplusplus 3394extern "C" 3395#endif 3396char G_asprintf (); 3397int 3398main () 3399{ 3400return G_asprintf (); 3401 ; 3402 return 0; 3403} 3404_ACEOF 3405if ac_fn_c_try_link "$LINENO"; then : 3406 ac_cv_lib_grass_gis_G_asprintf=yes 3407else 3408 ac_cv_lib_grass_gis_G_asprintf=no 3409fi 3410rm -f core conftest.err conftest.$ac_objext \ 3411 conftest$ac_exeext conftest.$ac_ext 3412LIBS=$ac_check_lib_save_LIBS 3413fi 3414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_grass_gis_G_asprintf" >&5 3415$as_echo "$ac_cv_lib_grass_gis_G_asprintf" >&6; } 3416if test "x$ac_cv_lib_grass_gis_G_asprintf" = xyes; then : 3417 GRASS_SETTING=grass57+ 3418else 3419 GRASS_SETTING=no 3420fi 3421 3422 fi 3423 fi 3424 3425 if test "$GRASS_SETTING" != "no" ; then 3426 if test "$GRASS_SETTING" = "grass72+" ; then 3427 G_RASTLIBS="-lgrass_raster -lgrass_imagery" 3428 G_VECTLIBS="-lgrass_vector -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase" 3429 LIBS="-L$with_grass/lib $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_gmath -lgrass_gis -lgrass_datetime -lgrass_btree2 -lgrass_ccmath $LIBS" 3430 elif test "$GRASS_SETTING" = "grass70+" ; then 3431 G_RASTLIBS="-lgrass_raster -lgrass_imagery" 3432 G_VECTLIBS="-lgrass_vector -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase" 3433 LIBS="-L$with_grass/lib $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" 3434 else 3435 G_RASTLIBS="-lgrass_I" 3436 G_VECTLIBS="-lgrass_vect -lgrass_dig2 -lgrass_dgl -lgrass_rtree -lgrass_linkm -lgrass_dbmiclient -lgrass_dbmibase" 3437 LIBS="-L$with_grass/lib $G_VECTLIBS $G_RASTLIBS -lgrass_gproj -lgrass_vask -lgrass_gmath -lgrass_gis -lgrass_datetime $LIBS" 3438 fi 3439 GRASS_INCLUDE="-I$with_grass/include" 3440 GRASS_GISBASE="$with_grass" 3441 HAVE_GRASS=yes 3442 else 3443 as_fn_error $? "--with-grass=$with_grass requested, but libraries not found!" "$LINENO" 5 3444 fi 3445fi 3446 3447GRASS_INCLUDE=$GRASS_INCLUDE 3448 3449GRASS_GISBASE=$GRASS_GISBASE 3450 3451 3452 3453 3454 3455# Check whether --with-postgres_includes was given. 3456if test "${with_postgres_includes+set}" = set; then : 3457 withval=$with_postgres_includes; postgres_includes="$withval" 3458else 3459 postgres_includes=no 3460fi 3461 3462 3463PQ_INCLUDE= 3464if test "x$postgres_includes" != "xno"; then 3465# With PostgreSQL includes directory 3466PQ_INCLUDE="-I$postgres_includes" 3467fi 3468 3469 3470 3471 3472rm -f conftest* 3473 3474ac_config_files="$ac_config_files Makefile" 3475 3476 3477 3478test "x$prefix" = xNONE && prefix=$ac_default_prefix 3479# Let make expand exec_prefix. 3480test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 3481 3482# Transform confdefs.h into DEFS. 3483# Protect against shell expansion while executing Makefile rules. 3484# Protect against Makefile macro expansion. 3485# 3486# If the first sed substitution is executed (which looks for macros that 3487# take arguments), then branch to the quote section. Otherwise, 3488# look for a macro that doesn't take arguments. 3489ac_script=' 3490:mline 3491/\\$/{ 3492 N 3493 s,\\\n,, 3494 b mline 3495} 3496t clear 3497:clear 3498s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 3499t quote 3500s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 3501t quote 3502b any 3503:quote 3504s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 3505s/\[/\\&/g 3506s/\]/\\&/g 3507s/\$/$$/g 3508H 3509:any 3510${ 3511 g 3512 s/^\n// 3513 s/\n/ /g 3514 p 3515} 3516' 3517DEFS=`sed -n "$ac_script" confdefs.h` 3518 3519 3520ac_libobjs= 3521ac_ltlibobjs= 3522U= 3523for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 3524 # 1. Remove the extension, and $U if already installed. 3525 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 3526 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 3527 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 3528 # will be set to the directory where LIBOBJS objects are built. 3529 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 3530 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 3531done 3532LIBOBJS=$ac_libobjs 3533 3534LTLIBOBJS=$ac_ltlibobjs 3535 3536 3537 3538: "${CONFIG_STATUS=./config.status}" 3539ac_write_fail=0 3540ac_clean_files_save=$ac_clean_files 3541ac_clean_files="$ac_clean_files $CONFIG_STATUS" 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 3543$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 3544as_write_fail=0 3545cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 3546#! $SHELL 3547# Generated by $as_me. 3548# Run this file to recreate the current configuration. 3549# Compiler output produced by configure, useful for debugging 3550# configure, is in config.log if it exists. 3551 3552debug=false 3553ac_cs_recheck=false 3554ac_cs_silent=false 3555 3556SHELL=\${CONFIG_SHELL-$SHELL} 3557export SHELL 3558_ASEOF 3559cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 3560## -------------------- ## 3561## M4sh Initialization. ## 3562## -------------------- ## 3563 3564# Be more Bourne compatible 3565DUALCASE=1; export DUALCASE # for MKS sh 3566if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 3567 emulate sh 3568 NULLCMD=: 3569 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 3570 # is contrary to our usage. Disable this feature. 3571 alias -g '${1+"$@"}'='"$@"' 3572 setopt NO_GLOB_SUBST 3573else 3574 case `(set -o) 2>/dev/null` in #( 3575 *posix*) : 3576 set -o posix ;; #( 3577 *) : 3578 ;; 3579esac 3580fi 3581 3582 3583as_nl=' 3584' 3585export as_nl 3586# Printing a long string crashes Solaris 7 /usr/bin/printf. 3587as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 3588as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 3589as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 3590# Prefer a ksh shell builtin over an external printf program on Solaris, 3591# but without wasting forks for bash or zsh. 3592if test -z "$BASH_VERSION$ZSH_VERSION" \ 3593 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 3594 as_echo='print -r --' 3595 as_echo_n='print -rn --' 3596elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 3597 as_echo='printf %s\n' 3598 as_echo_n='printf %s' 3599else 3600 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 3601 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 3602 as_echo_n='/usr/ucb/echo -n' 3603 else 3604 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 3605 as_echo_n_body='eval 3606 arg=$1; 3607 case $arg in #( 3608 *"$as_nl"*) 3609 expr "X$arg" : "X\\(.*\\)$as_nl"; 3610 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 3611 esac; 3612 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 3613 ' 3614 export as_echo_n_body 3615 as_echo_n='sh -c $as_echo_n_body as_echo' 3616 fi 3617 export as_echo_body 3618 as_echo='sh -c $as_echo_body as_echo' 3619fi 3620 3621# The user is always right. 3622if test "${PATH_SEPARATOR+set}" != set; then 3623 PATH_SEPARATOR=: 3624 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 3625 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 3626 PATH_SEPARATOR=';' 3627 } 3628fi 3629 3630 3631# IFS 3632# We need space, tab and new line, in precisely that order. Quoting is 3633# there to prevent editors from complaining about space-tab. 3634# (If _AS_PATH_WALK were called with IFS unset, it would disable word 3635# splitting by setting IFS to empty value.) 3636IFS=" "" $as_nl" 3637 3638# Find who we are. Look in the path if we contain no directory separator. 3639as_myself= 3640case $0 in #(( 3641 *[\\/]* ) as_myself=$0 ;; 3642 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3643for as_dir in $PATH 3644do 3645 IFS=$as_save_IFS 3646 test -z "$as_dir" && as_dir=. 3647 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 3648 done 3649IFS=$as_save_IFS 3650 3651 ;; 3652esac 3653# We did not find ourselves, most probably we were run as `sh COMMAND' 3654# in which case we are not to be found in the path. 3655if test "x$as_myself" = x; then 3656 as_myself=$0 3657fi 3658if test ! -f "$as_myself"; then 3659 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 3660 exit 1 3661fi 3662 3663# Unset variables that we do not need and which cause bugs (e.g. in 3664# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 3665# suppresses any "Segmentation fault" message there. '((' could 3666# trigger a bug in pdksh 5.2.14. 3667for as_var in BASH_ENV ENV MAIL MAILPATH 3668do eval test x\${$as_var+set} = xset \ 3669 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 3670done 3671PS1='$ ' 3672PS2='> ' 3673PS4='+ ' 3674 3675# NLS nuisances. 3676LC_ALL=C 3677export LC_ALL 3678LANGUAGE=C 3679export LANGUAGE 3680 3681# CDPATH. 3682(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 3683 3684 3685# as_fn_error STATUS ERROR [LINENO LOG_FD] 3686# ---------------------------------------- 3687# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 3688# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 3689# script with STATUS, using 1 if that was 0. 3690as_fn_error () 3691{ 3692 as_status=$1; test $as_status -eq 0 && as_status=1 3693 if test "$4"; then 3694 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 3695 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 3696 fi 3697 $as_echo "$as_me: error: $2" >&2 3698 as_fn_exit $as_status 3699} # as_fn_error 3700 3701 3702# as_fn_set_status STATUS 3703# ----------------------- 3704# Set $? to STATUS, without forking. 3705as_fn_set_status () 3706{ 3707 return $1 3708} # as_fn_set_status 3709 3710# as_fn_exit STATUS 3711# ----------------- 3712# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 3713as_fn_exit () 3714{ 3715 set +e 3716 as_fn_set_status $1 3717 exit $1 3718} # as_fn_exit 3719 3720# as_fn_unset VAR 3721# --------------- 3722# Portably unset VAR. 3723as_fn_unset () 3724{ 3725 { eval $1=; unset $1;} 3726} 3727as_unset=as_fn_unset 3728# as_fn_append VAR VALUE 3729# ---------------------- 3730# Append the text in VALUE to the end of the definition contained in VAR. Take 3731# advantage of any shell optimizations that allow amortized linear growth over 3732# repeated appends, instead of the typical quadratic growth present in naive 3733# implementations. 3734if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 3735 eval 'as_fn_append () 3736 { 3737 eval $1+=\$2 3738 }' 3739else 3740 as_fn_append () 3741 { 3742 eval $1=\$$1\$2 3743 } 3744fi # as_fn_append 3745 3746# as_fn_arith ARG... 3747# ------------------ 3748# Perform arithmetic evaluation on the ARGs, and store the result in the 3749# global $as_val. Take advantage of shells that can avoid forks. The arguments 3750# must be portable across $(()) and expr. 3751if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 3752 eval 'as_fn_arith () 3753 { 3754 as_val=$(( $* )) 3755 }' 3756else 3757 as_fn_arith () 3758 { 3759 as_val=`expr "$@" || test $? -eq 1` 3760 } 3761fi # as_fn_arith 3762 3763 3764if expr a : '\(a\)' >/dev/null 2>&1 && 3765 test "X`expr 00001 : '.*\(...\)'`" = X001; then 3766 as_expr=expr 3767else 3768 as_expr=false 3769fi 3770 3771if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 3772 as_basename=basename 3773else 3774 as_basename=false 3775fi 3776 3777if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 3778 as_dirname=dirname 3779else 3780 as_dirname=false 3781fi 3782 3783as_me=`$as_basename -- "$0" || 3784$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 3785 X"$0" : 'X\(//\)$' \| \ 3786 X"$0" : 'X\(/\)' \| . 2>/dev/null || 3787$as_echo X/"$0" | 3788 sed '/^.*\/\([^/][^/]*\)\/*$/{ 3789 s//\1/ 3790 q 3791 } 3792 /^X\/\(\/\/\)$/{ 3793 s//\1/ 3794 q 3795 } 3796 /^X\/\(\/\).*/{ 3797 s//\1/ 3798 q 3799 } 3800 s/.*/./; q'` 3801 3802# Avoid depending upon Character Ranges. 3803as_cr_letters='abcdefghijklmnopqrstuvwxyz' 3804as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 3805as_cr_Letters=$as_cr_letters$as_cr_LETTERS 3806as_cr_digits='0123456789' 3807as_cr_alnum=$as_cr_Letters$as_cr_digits 3808 3809ECHO_C= ECHO_N= ECHO_T= 3810case `echo -n x` in #((((( 3811-n*) 3812 case `echo 'xy\c'` in 3813 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 3814 xy) ECHO_C='\c';; 3815 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 3816 ECHO_T=' ';; 3817 esac;; 3818*) 3819 ECHO_N='-n';; 3820esac 3821 3822rm -f conf$$ conf$$.exe conf$$.file 3823if test -d conf$$.dir; then 3824 rm -f conf$$.dir/conf$$.file 3825else 3826 rm -f conf$$.dir 3827 mkdir conf$$.dir 2>/dev/null 3828fi 3829if (echo >conf$$.file) 2>/dev/null; then 3830 if ln -s conf$$.file conf$$ 2>/dev/null; then 3831 as_ln_s='ln -s' 3832 # ... but there are two gotchas: 3833 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 3834 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 3835 # In both cases, we have to default to `cp -pR'. 3836 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 3837 as_ln_s='cp -pR' 3838 elif ln conf$$.file conf$$ 2>/dev/null; then 3839 as_ln_s=ln 3840 else 3841 as_ln_s='cp -pR' 3842 fi 3843else 3844 as_ln_s='cp -pR' 3845fi 3846rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 3847rmdir conf$$.dir 2>/dev/null 3848 3849 3850# as_fn_mkdir_p 3851# ------------- 3852# Create "$as_dir" as a directory, including parents if necessary. 3853as_fn_mkdir_p () 3854{ 3855 3856 case $as_dir in #( 3857 -*) as_dir=./$as_dir;; 3858 esac 3859 test -d "$as_dir" || eval $as_mkdir_p || { 3860 as_dirs= 3861 while :; do 3862 case $as_dir in #( 3863 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 3864 *) as_qdir=$as_dir;; 3865 esac 3866 as_dirs="'$as_qdir' $as_dirs" 3867 as_dir=`$as_dirname -- "$as_dir" || 3868$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 3869 X"$as_dir" : 'X\(//\)[^/]' \| \ 3870 X"$as_dir" : 'X\(//\)$' \| \ 3871 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 3872$as_echo X"$as_dir" | 3873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 3874 s//\1/ 3875 q 3876 } 3877 /^X\(\/\/\)[^/].*/{ 3878 s//\1/ 3879 q 3880 } 3881 /^X\(\/\/\)$/{ 3882 s//\1/ 3883 q 3884 } 3885 /^X\(\/\).*/{ 3886 s//\1/ 3887 q 3888 } 3889 s/.*/./; q'` 3890 test -d "$as_dir" && break 3891 done 3892 test -z "$as_dirs" || eval "mkdir $as_dirs" 3893 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 3894 3895 3896} # as_fn_mkdir_p 3897if mkdir -p . 2>/dev/null; then 3898 as_mkdir_p='mkdir -p "$as_dir"' 3899else 3900 test -d ./-p && rmdir ./-p 3901 as_mkdir_p=false 3902fi 3903 3904 3905# as_fn_executable_p FILE 3906# ----------------------- 3907# Test if FILE is an executable regular file. 3908as_fn_executable_p () 3909{ 3910 test -f "$1" && test -x "$1" 3911} # as_fn_executable_p 3912as_test_x='test -x' 3913as_executable_p=as_fn_executable_p 3914 3915# Sed expression to map a string onto a valid CPP name. 3916as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 3917 3918# Sed expression to map a string onto a valid variable name. 3919as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 3920 3921 3922exec 6>&1 3923## ----------------------------------- ## 3924## Main body of $CONFIG_STATUS script. ## 3925## ----------------------------------- ## 3926_ASEOF 3927test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 3928 3929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3930# Save the log message, to keep $0 and so on meaningful, and to 3931# report actual input values of CONFIG_FILES etc. instead of their 3932# values after options handling. 3933ac_log=" 3934This file was extended by $as_me, which was 3935generated by GNU Autoconf 2.69. Invocation command line was 3936 3937 CONFIG_FILES = $CONFIG_FILES 3938 CONFIG_HEADERS = $CONFIG_HEADERS 3939 CONFIG_LINKS = $CONFIG_LINKS 3940 CONFIG_COMMANDS = $CONFIG_COMMANDS 3941 $ $0 $@ 3942 3943on `(hostname || uname -n) 2>/dev/null | sed 1q` 3944" 3945 3946_ACEOF 3947 3948case $ac_config_files in *" 3949"*) set x $ac_config_files; shift; ac_config_files=$*;; 3950esac 3951 3952 3953 3954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3955# Files that config.status was made for. 3956config_files="$ac_config_files" 3957 3958_ACEOF 3959 3960cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 3961ac_cs_usage="\ 3962\`$as_me' instantiates files and other configuration actions 3963from templates according to the current configuration. Unless the files 3964and actions are specified as TAGs, all are instantiated by default. 3965 3966Usage: $0 [OPTION]... [TAG]... 3967 3968 -h, --help print this help, then exit 3969 -V, --version print version number and configuration settings, then exit 3970 --config print configuration, then exit 3971 -q, --quiet, --silent 3972 do not print progress messages 3973 -d, --debug don't remove temporary files 3974 --recheck update $as_me by reconfiguring in the same conditions 3975 --file=FILE[:TEMPLATE] 3976 instantiate the configuration file FILE 3977 3978Configuration files: 3979$config_files 3980 3981Report bugs to the package provider." 3982 3983_ACEOF 3984cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 3985ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 3986ac_cs_version="\\ 3987config.status 3988configured by $0, generated by GNU Autoconf 2.69, 3989 with options \\"\$ac_cs_config\\" 3990 3991Copyright (C) 2012 Free Software Foundation, Inc. 3992This config.status script is free software; the Free Software Foundation 3993gives unlimited permission to copy, distribute and modify it." 3994 3995ac_pwd='$ac_pwd' 3996srcdir='$srcdir' 3997test -n "\$AWK" || AWK=awk 3998_ACEOF 3999 4000cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4001# The default lists apply if the user does not specify any file. 4002ac_need_defaults=: 4003while test $# != 0 4004do 4005 case $1 in 4006 --*=?*) 4007 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4008 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4009 ac_shift=: 4010 ;; 4011 --*=) 4012 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4013 ac_optarg= 4014 ac_shift=: 4015 ;; 4016 *) 4017 ac_option=$1 4018 ac_optarg=$2 4019 ac_shift=shift 4020 ;; 4021 esac 4022 4023 case $ac_option in 4024 # Handling of the options. 4025 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4026 ac_cs_recheck=: ;; 4027 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4028 $as_echo "$ac_cs_version"; exit ;; 4029 --config | --confi | --conf | --con | --co | --c ) 4030 $as_echo "$ac_cs_config"; exit ;; 4031 --debug | --debu | --deb | --de | --d | -d ) 4032 debug=: ;; 4033 --file | --fil | --fi | --f ) 4034 $ac_shift 4035 case $ac_optarg in 4036 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4037 '') as_fn_error $? "missing file argument" ;; 4038 esac 4039 as_fn_append CONFIG_FILES " '$ac_optarg'" 4040 ac_need_defaults=false;; 4041 --he | --h | --help | --hel | -h ) 4042 $as_echo "$ac_cs_usage"; exit ;; 4043 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4044 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4045 ac_cs_silent=: ;; 4046 4047 # This is an error. 4048 -*) as_fn_error $? "unrecognized option: \`$1' 4049Try \`$0 --help' for more information." ;; 4050 4051 *) as_fn_append ac_config_targets " $1" 4052 ac_need_defaults=false ;; 4053 4054 esac 4055 shift 4056done 4057 4058ac_configure_extra_args= 4059 4060if $ac_cs_silent; then 4061 exec 6>/dev/null 4062 ac_configure_extra_args="$ac_configure_extra_args --silent" 4063fi 4064 4065_ACEOF 4066cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4067if \$ac_cs_recheck; then 4068 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4069 shift 4070 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 4071 CONFIG_SHELL='$SHELL' 4072 export CONFIG_SHELL 4073 exec "\$@" 4074fi 4075 4076_ACEOF 4077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4078exec 5>>config.log 4079{ 4080 echo 4081 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4082## Running $as_me. ## 4083_ASBOX 4084 $as_echo "$ac_log" 4085} >&5 4086 4087_ACEOF 4088cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4089_ACEOF 4090 4091cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4092 4093# Handling of arguments. 4094for ac_config_target in $ac_config_targets 4095do 4096 case $ac_config_target in 4097 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 4098 4099 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 4100 esac 4101done 4102 4103 4104# If the user did not use the arguments to specify the items to instantiate, 4105# then the envvar interface is used. Set only those that are not. 4106# We use the long form for the default assignment because of an extremely 4107# bizarre bug on SunOS 4.1.3. 4108if $ac_need_defaults; then 4109 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 4110fi 4111 4112# Have a temporary directory for convenience. Make it in the build tree 4113# simply because there is no reason against having it here, and in addition, 4114# creating and moving files from /tmp can sometimes cause problems. 4115# Hook for its removal unless debugging. 4116# Note that there is a small window in which the directory will not be cleaned: 4117# after its creation but before its name has been assigned to `$tmp'. 4118$debug || 4119{ 4120 tmp= ac_tmp= 4121 trap 'exit_status=$? 4122 : "${ac_tmp:=$tmp}" 4123 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 4124' 0 4125 trap 'as_fn_exit 1' 1 2 13 15 4126} 4127# Create a (secure) tmp directory for tmp files. 4128 4129{ 4130 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4131 test -d "$tmp" 4132} || 4133{ 4134 tmp=./conf$$-$RANDOM 4135 (umask 077 && mkdir "$tmp") 4136} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 4137ac_tmp=$tmp 4138 4139# Set up the scripts for CONFIG_FILES section. 4140# No need to generate them if there are no CONFIG_FILES. 4141# This happens for instance with `./config.status config.h'. 4142if test -n "$CONFIG_FILES"; then 4143 4144 4145ac_cr=`echo X | tr X '\015'` 4146# On cygwin, bash can eat \r inside `` if the user requested igncr. 4147# But we know of no other shell where ac_cr would be empty at this 4148# point, so we can use a bashism as a fallback. 4149if test "x$ac_cr" = x; then 4150 eval ac_cr=\$\'\\r\' 4151fi 4152ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 4153if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 4154 ac_cs_awk_cr='\\r' 4155else 4156 ac_cs_awk_cr=$ac_cr 4157fi 4158 4159echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 4160_ACEOF 4161 4162 4163{ 4164 echo "cat >conf$$subs.awk <<_ACEOF" && 4165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 4166 echo "_ACEOF" 4167} >conf$$subs.sh || 4168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4169ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 4170ac_delim='%!_!# ' 4171for ac_last_try in false false false false false :; do 4172 . ./conf$$subs.sh || 4173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4174 4175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 4176 if test $ac_delim_n = $ac_delim_num; then 4177 break 4178 elif $ac_last_try; then 4179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 4180 else 4181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4182 fi 4183done 4184rm -f conf$$subs.sh 4185 4186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4187cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 4188_ACEOF 4189sed -n ' 4190h 4191s/^/S["/; s/!.*/"]=/ 4192p 4193g 4194s/^[^!]*!// 4195:repl 4196t repl 4197s/'"$ac_delim"'$// 4198t delim 4199:nl 4200h 4201s/\(.\{148\}\)..*/\1/ 4202t more1 4203s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 4204p 4205n 4206b repl 4207:more1 4208s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 4209p 4210g 4211s/.\{148\}// 4212t nl 4213:delim 4214h 4215s/\(.\{148\}\)..*/\1/ 4216t more2 4217s/["\\]/\\&/g; s/^/"/; s/$/"/ 4218p 4219b 4220:more2 4221s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 4222p 4223g 4224s/.\{148\}// 4225t delim 4226' <conf$$subs.awk | sed ' 4227/^[^""]/{ 4228 N 4229 s/\n// 4230} 4231' >>$CONFIG_STATUS || ac_write_fail=1 4232rm -f conf$$subs.awk 4233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4234_ACAWK 4235cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 4236 for (key in S) S_is_set[key] = 1 4237 FS = "" 4238 4239} 4240{ 4241 line = $ 0 4242 nfields = split(line, field, "@") 4243 substed = 0 4244 len = length(field[1]) 4245 for (i = 2; i < nfields; i++) { 4246 key = field[i] 4247 keylen = length(key) 4248 if (S_is_set[key]) { 4249 value = S[key] 4250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 4251 len += length(value) + length(field[++i]) 4252 substed = 1 4253 } else 4254 len += 1 + keylen 4255 } 4256 4257 print line 4258} 4259 4260_ACAWK 4261_ACEOF 4262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4263if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 4264 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 4265else 4266 cat 4267fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 4268 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 4269_ACEOF 4270 4271# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 4272# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 4273# trailing colons and then remove the whole line if VPATH becomes empty 4274# (actually we leave an empty line to preserve line numbers). 4275if test "x$srcdir" = x.; then 4276 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 4277h 4278s/// 4279s/^/:/ 4280s/[ ]*$/:/ 4281s/:\$(srcdir):/:/g 4282s/:\${srcdir}:/:/g 4283s/:@srcdir@:/:/g 4284s/^:*// 4285s/:*$// 4286x 4287s/\(=[ ]*\).*/\1/ 4288G 4289s/\n// 4290s/^[^=]*=[ ]*$// 4291}' 4292fi 4293 4294cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4295fi # test -n "$CONFIG_FILES" 4296 4297 4298eval set X " :F $CONFIG_FILES " 4299shift 4300for ac_tag 4301do 4302 case $ac_tag in 4303 :[FHLC]) ac_mode=$ac_tag; continue;; 4304 esac 4305 case $ac_mode$ac_tag in 4306 :[FHL]*:*);; 4307 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 4308 :[FH]-) ac_tag=-:-;; 4309 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 4310 esac 4311 ac_save_IFS=$IFS 4312 IFS=: 4313 set x $ac_tag 4314 IFS=$ac_save_IFS 4315 shift 4316 ac_file=$1 4317 shift 4318 4319 case $ac_mode in 4320 :L) ac_source=$1;; 4321 :[FH]) 4322 ac_file_inputs= 4323 for ac_f 4324 do 4325 case $ac_f in 4326 -) ac_f="$ac_tmp/stdin";; 4327 *) # Look for the file first in the build tree, then in the source tree 4328 # (if the path is not absolute). The absolute path cannot be DOS-style, 4329 # because $ac_f cannot contain `:'. 4330 test -f "$ac_f" || 4331 case $ac_f in 4332 [\\/$]*) false;; 4333 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4334 esac || 4335 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 4336 esac 4337 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 4338 as_fn_append ac_file_inputs " '$ac_f'" 4339 done 4340 4341 # Let's still pretend it is `configure' which instantiates (i.e., don't 4342 # use $as_me), people would be surprised to read: 4343 # /* config.h. Generated by config.status. */ 4344 configure_input='Generated from '` 4345 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 4346 `' by configure.' 4347 if test x"$ac_file" != x-; then 4348 configure_input="$ac_file. $configure_input" 4349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 4350$as_echo "$as_me: creating $ac_file" >&6;} 4351 fi 4352 # Neutralize special characters interpreted by sed in replacement strings. 4353 case $configure_input in #( 4354 *\&* | *\|* | *\\* ) 4355 ac_sed_conf_input=`$as_echo "$configure_input" | 4356 sed 's/[\\\\&|]/\\\\&/g'`;; #( 4357 *) ac_sed_conf_input=$configure_input;; 4358 esac 4359 4360 case $ac_tag in 4361 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 4362 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 4363 esac 4364 ;; 4365 esac 4366 4367 ac_dir=`$as_dirname -- "$ac_file" || 4368$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4369 X"$ac_file" : 'X\(//\)[^/]' \| \ 4370 X"$ac_file" : 'X\(//\)$' \| \ 4371 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 4372$as_echo X"$ac_file" | 4373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4374 s//\1/ 4375 q 4376 } 4377 /^X\(\/\/\)[^/].*/{ 4378 s//\1/ 4379 q 4380 } 4381 /^X\(\/\/\)$/{ 4382 s//\1/ 4383 q 4384 } 4385 /^X\(\/\).*/{ 4386 s//\1/ 4387 q 4388 } 4389 s/.*/./; q'` 4390 as_dir="$ac_dir"; as_fn_mkdir_p 4391 ac_builddir=. 4392 4393case "$ac_dir" in 4394.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 4395*) 4396 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 4397 # A ".." for each directory in $ac_dir_suffix. 4398 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 4399 case $ac_top_builddir_sub in 4400 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 4401 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 4402 esac ;; 4403esac 4404ac_abs_top_builddir=$ac_pwd 4405ac_abs_builddir=$ac_pwd$ac_dir_suffix 4406# for backward compatibility: 4407ac_top_builddir=$ac_top_build_prefix 4408 4409case $srcdir in 4410 .) # We are building in place. 4411 ac_srcdir=. 4412 ac_top_srcdir=$ac_top_builddir_sub 4413 ac_abs_top_srcdir=$ac_pwd ;; 4414 [\\/]* | ?:[\\/]* ) # Absolute name. 4415 ac_srcdir=$srcdir$ac_dir_suffix; 4416 ac_top_srcdir=$srcdir 4417 ac_abs_top_srcdir=$srcdir ;; 4418 *) # Relative name. 4419 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 4420 ac_top_srcdir=$ac_top_build_prefix$srcdir 4421 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 4422esac 4423ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 4424 4425 4426 case $ac_mode in 4427 :F) 4428 # 4429 # CONFIG_FILE 4430 # 4431 4432_ACEOF 4433 4434cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4435# If the template does not know about datarootdir, expand it. 4436# FIXME: This hack should be removed a few years after 2.60. 4437ac_datarootdir_hack=; ac_datarootdir_seen= 4438ac_sed_dataroot=' 4439/datarootdir/ { 4440 p 4441 q 4442} 4443/@datadir@/p 4444/@docdir@/p 4445/@infodir@/p 4446/@localedir@/p 4447/@mandir@/p' 4448case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 4449*datarootdir*) ac_datarootdir_seen=yes;; 4450*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 4452$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 4453_ACEOF 4454cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4455 ac_datarootdir_hack=' 4456 s&@datadir@&$datadir&g 4457 s&@docdir@&$docdir&g 4458 s&@infodir@&$infodir&g 4459 s&@localedir@&$localedir&g 4460 s&@mandir@&$mandir&g 4461 s&\\\${datarootdir}&$datarootdir&g' ;; 4462esac 4463_ACEOF 4464 4465# Neutralize VPATH when `$srcdir' = `.'. 4466# Shell code in configure.ac might set extrasub. 4467# FIXME: do we really want to maintain this feature? 4468cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4469ac_sed_extra="$ac_vpsub 4470$extrasub 4471_ACEOF 4472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4473:t 4474/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 4475s|@configure_input@|$ac_sed_conf_input|;t t 4476s&@top_builddir@&$ac_top_builddir_sub&;t t 4477s&@top_build_prefix@&$ac_top_build_prefix&;t t 4478s&@srcdir@&$ac_srcdir&;t t 4479s&@abs_srcdir@&$ac_abs_srcdir&;t t 4480s&@top_srcdir@&$ac_top_srcdir&;t t 4481s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 4482s&@builddir@&$ac_builddir&;t t 4483s&@abs_builddir@&$ac_abs_builddir&;t t 4484s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 4485$ac_datarootdir_hack 4486" 4487eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 4488 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4489 4490test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 4491 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 4492 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 4493 "$ac_tmp/out"`; test -z "$ac_out"; } && 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4495which seems to be undefined. Please make sure it is defined" >&5 4496$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 4497which seems to be undefined. Please make sure it is defined" >&2;} 4498 4499 rm -f "$ac_tmp/stdin" 4500 case $ac_file in 4501 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 4502 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 4503 esac \ 4504 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 4505 ;; 4506 4507 4508 4509 esac 4510 4511done # for ac_tag 4512 4513 4514as_fn_exit 0 4515_ACEOF 4516ac_clean_files=$ac_clean_files_save 4517 4518test $ac_write_fail = 0 || 4519 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 4520 4521 4522# configure is writing to config.log, and then calls config.status. 4523# config.status does its own redirection, appending to config.log. 4524# Unfortunately, on DOS this fails, as config.log is still kept open 4525# by configure, so config.status won't be able to write to it; its 4526# output is simply discarded. So we exec the FD to /dev/null, 4527# effectively closing config.log, so it can be properly (re)opened and 4528# appended to by config.status. When coming back to configure, we 4529# need to make the FD available again. 4530if test "$no_create" != yes; then 4531 ac_cs_success=: 4532 ac_config_status_args= 4533 test "$silent" = yes && 4534 ac_config_status_args="$ac_config_status_args --quiet" 4535 exec 5>/dev/null 4536 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 4537 exec 5>>config.log 4538 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 4539 # would make configure fail if this is the last instruction. 4540 $ac_cs_success || as_fn_exit 1 4541fi 4542if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 4544$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 4545fi 4546 4547 4548 4549 4550