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