1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8# Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error ERROR [LINENO LOG_FD] 360# --------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with status $?, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529test -n "$DJDIR" || exec 7<&0 </dev/null 530exec 6>&1 531 532# Name of the host. 533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 534# so uname gets run too. 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536 537# 538# Initializations. 539# 540ac_default_prefix=/usr/local 541ac_clean_files= 542ac_config_libobj_dir=. 543LIBOBJS= 544cross_compiling=no 545subdirs= 546MFLAGS= 547MAKEFLAGS= 548 549# Identity of this package. 550PACKAGE_NAME= 551PACKAGE_TARNAME= 552PACKAGE_VERSION= 553PACKAGE_STRING= 554PACKAGE_BUGREPORT= 555PACKAGE_URL= 556 557ac_unique_file="bvi.c" 558# Factoring default headers for most tests. 559ac_includes_default="\ 560#include <stdio.h> 561#ifdef HAVE_SYS_TYPES_H 562# include <sys/types.h> 563#endif 564#ifdef HAVE_SYS_STAT_H 565# include <sys/stat.h> 566#endif 567#ifdef STDC_HEADERS 568# include <stdlib.h> 569# include <stddef.h> 570#else 571# ifdef HAVE_STDLIB_H 572# include <stdlib.h> 573# endif 574#endif 575#ifdef HAVE_STRING_H 576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 577# include <memory.h> 578# endif 579# include <string.h> 580#endif 581#ifdef HAVE_STRINGS_H 582# include <strings.h> 583#endif 584#ifdef HAVE_INTTYPES_H 585# include <inttypes.h> 586#endif 587#ifdef HAVE_STDINT_H 588# include <stdint.h> 589#endif 590#ifdef HAVE_UNISTD_H 591# include <unistd.h> 592#endif" 593 594ac_subst_vars='LTLIBOBJS 595LIBOBJS 596EGREP 597GREP 598CPP 599INSTALL_DATA 600INSTALL_SCRIPT 601INSTALL_PROGRAM 602host_os 603host_vendor 604host_cpu 605host 606build_os 607build_vendor 608build_cpu 609build 610OBJEXT 611EXEEXT 612ac_ct_CC 613CPPFLAGS 614LDFLAGS 615CFLAGS 616CC 617target_alias 618host_alias 619build_alias 620LIBS 621ECHO_T 622ECHO_N 623ECHO_C 624DEFS 625mandir 626localedir 627libdir 628psdir 629pdfdir 630dvidir 631htmldir 632infodir 633docdir 634oldincludedir 635includedir 636localstatedir 637sharedstatedir 638sysconfdir 639datadir 640datarootdir 641libexecdir 642sbindir 643bindir 644program_transform_name 645prefix 646exec_prefix 647PACKAGE_URL 648PACKAGE_BUGREPORT 649PACKAGE_STRING 650PACKAGE_VERSION 651PACKAGE_TARNAME 652PACKAGE_NAME 653PATH_SEPARATOR 654SHELL' 655ac_subst_files='' 656ac_user_opts=' 657enable_option_checking 658enable_largefile 659with_ncurses 660' 661 ac_precious_vars='build_alias 662host_alias 663target_alias 664CC 665CFLAGS 666LDFLAGS 667LIBS 668CPPFLAGS 669CPP' 670 671 672# Initialize some variables set by options. 673ac_init_help= 674ac_init_version=false 675ac_unrecognized_opts= 676ac_unrecognized_sep= 677# The variables have the same names as the options, with 678# dashes changed to underlines. 679cache_file=/dev/null 680exec_prefix=NONE 681no_create= 682no_recursion= 683prefix=NONE 684program_prefix=NONE 685program_suffix=NONE 686program_transform_name=s,x,x, 687silent= 688site= 689srcdir= 690verbose= 691x_includes=NONE 692x_libraries=NONE 693 694# Installation directory options. 695# These are left unexpanded so users can "make install exec_prefix=/foo" 696# and all the variables that are supposed to be based on exec_prefix 697# by default will actually change. 698# Use braces instead of parens because sh, perl, etc. also accept them. 699# (The list follows the same order as the GNU Coding Standards.) 700bindir='${exec_prefix}/bin' 701sbindir='${exec_prefix}/sbin' 702libexecdir='${exec_prefix}/libexec' 703datarootdir='${prefix}/share' 704datadir='${datarootdir}' 705sysconfdir='${prefix}/etc' 706sharedstatedir='${prefix}/com' 707localstatedir='${prefix}/var' 708includedir='${prefix}/include' 709oldincludedir='/usr/include' 710docdir='${datarootdir}/doc/${PACKAGE}' 711infodir='${datarootdir}/info' 712htmldir='${docdir}' 713dvidir='${docdir}' 714pdfdir='${docdir}' 715psdir='${docdir}' 716libdir='${exec_prefix}/lib' 717localedir='${datarootdir}/locale' 718mandir='${datarootdir}/man' 719 720ac_prev= 721ac_dashdash= 722for ac_option 723do 724 # If the previous option needs an argument, assign it. 725 if test -n "$ac_prev"; then 726 eval $ac_prev=\$ac_option 727 ac_prev= 728 continue 729 fi 730 731 case $ac_option in 732 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 733 *) ac_optarg=yes ;; 734 esac 735 736 # Accept the important Cygnus configure options, so we can diagnose typos. 737 738 case $ac_dashdash$ac_option in 739 --) 740 ac_dashdash=yes ;; 741 742 -bindir | --bindir | --bindi | --bind | --bin | --bi) 743 ac_prev=bindir ;; 744 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 745 bindir=$ac_optarg ;; 746 747 -build | --build | --buil | --bui | --bu) 748 ac_prev=build_alias ;; 749 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 750 build_alias=$ac_optarg ;; 751 752 -cache-file | --cache-file | --cache-fil | --cache-fi \ 753 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 754 ac_prev=cache_file ;; 755 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 756 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 757 cache_file=$ac_optarg ;; 758 759 --config-cache | -C) 760 cache_file=config.cache ;; 761 762 -datadir | --datadir | --datadi | --datad) 763 ac_prev=datadir ;; 764 -datadir=* | --datadir=* | --datadi=* | --datad=*) 765 datadir=$ac_optarg ;; 766 767 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 768 | --dataroo | --dataro | --datar) 769 ac_prev=datarootdir ;; 770 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 771 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 772 datarootdir=$ac_optarg ;; 773 774 -disable-* | --disable-*) 775 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 776 # Reject names that are not valid shell variable names. 777 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 778 as_fn_error "invalid feature name: $ac_useropt" 779 ac_useropt_orig=$ac_useropt 780 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 781 case $ac_user_opts in 782 *" 783"enable_$ac_useropt" 784"*) ;; 785 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 786 ac_unrecognized_sep=', ';; 787 esac 788 eval enable_$ac_useropt=no ;; 789 790 -docdir | --docdir | --docdi | --doc | --do) 791 ac_prev=docdir ;; 792 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 793 docdir=$ac_optarg ;; 794 795 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 796 ac_prev=dvidir ;; 797 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 798 dvidir=$ac_optarg ;; 799 800 -enable-* | --enable-*) 801 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 802 # Reject names that are not valid shell variable names. 803 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 804 as_fn_error "invalid feature name: $ac_useropt" 805 ac_useropt_orig=$ac_useropt 806 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 807 case $ac_user_opts in 808 *" 809"enable_$ac_useropt" 810"*) ;; 811 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 812 ac_unrecognized_sep=', ';; 813 esac 814 eval enable_$ac_useropt=\$ac_optarg ;; 815 816 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 817 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 818 | --exec | --exe | --ex) 819 ac_prev=exec_prefix ;; 820 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 821 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 822 | --exec=* | --exe=* | --ex=*) 823 exec_prefix=$ac_optarg ;; 824 825 -gas | --gas | --ga | --g) 826 # Obsolete; use --with-gas. 827 with_gas=yes ;; 828 829 -help | --help | --hel | --he | -h) 830 ac_init_help=long ;; 831 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 832 ac_init_help=recursive ;; 833 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 834 ac_init_help=short ;; 835 836 -host | --host | --hos | --ho) 837 ac_prev=host_alias ;; 838 -host=* | --host=* | --hos=* | --ho=*) 839 host_alias=$ac_optarg ;; 840 841 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 842 ac_prev=htmldir ;; 843 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 844 | --ht=*) 845 htmldir=$ac_optarg ;; 846 847 -includedir | --includedir | --includedi | --included | --include \ 848 | --includ | --inclu | --incl | --inc) 849 ac_prev=includedir ;; 850 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 851 | --includ=* | --inclu=* | --incl=* | --inc=*) 852 includedir=$ac_optarg ;; 853 854 -infodir | --infodir | --infodi | --infod | --info | --inf) 855 ac_prev=infodir ;; 856 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 857 infodir=$ac_optarg ;; 858 859 -libdir | --libdir | --libdi | --libd) 860 ac_prev=libdir ;; 861 -libdir=* | --libdir=* | --libdi=* | --libd=*) 862 libdir=$ac_optarg ;; 863 864 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 865 | --libexe | --libex | --libe) 866 ac_prev=libexecdir ;; 867 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 868 | --libexe=* | --libex=* | --libe=*) 869 libexecdir=$ac_optarg ;; 870 871 -localedir | --localedir | --localedi | --localed | --locale) 872 ac_prev=localedir ;; 873 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 874 localedir=$ac_optarg ;; 875 876 -localstatedir | --localstatedir | --localstatedi | --localstated \ 877 | --localstate | --localstat | --localsta | --localst | --locals) 878 ac_prev=localstatedir ;; 879 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 880 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 881 localstatedir=$ac_optarg ;; 882 883 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 884 ac_prev=mandir ;; 885 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 886 mandir=$ac_optarg ;; 887 888 -nfp | --nfp | --nf) 889 # Obsolete; use --without-fp. 890 with_fp=no ;; 891 892 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 893 | --no-cr | --no-c | -n) 894 no_create=yes ;; 895 896 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 897 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 898 no_recursion=yes ;; 899 900 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 901 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 902 | --oldin | --oldi | --old | --ol | --o) 903 ac_prev=oldincludedir ;; 904 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 905 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 906 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 907 oldincludedir=$ac_optarg ;; 908 909 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 910 ac_prev=prefix ;; 911 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 912 prefix=$ac_optarg ;; 913 914 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 915 | --program-pre | --program-pr | --program-p) 916 ac_prev=program_prefix ;; 917 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 918 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 919 program_prefix=$ac_optarg ;; 920 921 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 922 | --program-suf | --program-su | --program-s) 923 ac_prev=program_suffix ;; 924 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 925 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 926 program_suffix=$ac_optarg ;; 927 928 -program-transform-name | --program-transform-name \ 929 | --program-transform-nam | --program-transform-na \ 930 | --program-transform-n | --program-transform- \ 931 | --program-transform | --program-transfor \ 932 | --program-transfo | --program-transf \ 933 | --program-trans | --program-tran \ 934 | --progr-tra | --program-tr | --program-t) 935 ac_prev=program_transform_name ;; 936 -program-transform-name=* | --program-transform-name=* \ 937 | --program-transform-nam=* | --program-transform-na=* \ 938 | --program-transform-n=* | --program-transform-=* \ 939 | --program-transform=* | --program-transfor=* \ 940 | --program-transfo=* | --program-transf=* \ 941 | --program-trans=* | --program-tran=* \ 942 | --progr-tra=* | --program-tr=* | --program-t=*) 943 program_transform_name=$ac_optarg ;; 944 945 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 946 ac_prev=pdfdir ;; 947 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 948 pdfdir=$ac_optarg ;; 949 950 -psdir | --psdir | --psdi | --psd | --ps) 951 ac_prev=psdir ;; 952 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 953 psdir=$ac_optarg ;; 954 955 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 956 | -silent | --silent | --silen | --sile | --sil) 957 silent=yes ;; 958 959 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 960 ac_prev=sbindir ;; 961 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 962 | --sbi=* | --sb=*) 963 sbindir=$ac_optarg ;; 964 965 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 966 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 967 | --sharedst | --shareds | --shared | --share | --shar \ 968 | --sha | --sh) 969 ac_prev=sharedstatedir ;; 970 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 971 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 972 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 973 | --sha=* | --sh=*) 974 sharedstatedir=$ac_optarg ;; 975 976 -site | --site | --sit) 977 ac_prev=site ;; 978 -site=* | --site=* | --sit=*) 979 site=$ac_optarg ;; 980 981 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 982 ac_prev=srcdir ;; 983 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 984 srcdir=$ac_optarg ;; 985 986 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 987 | --syscon | --sysco | --sysc | --sys | --sy) 988 ac_prev=sysconfdir ;; 989 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 990 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 991 sysconfdir=$ac_optarg ;; 992 993 -target | --target | --targe | --targ | --tar | --ta | --t) 994 ac_prev=target_alias ;; 995 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 996 target_alias=$ac_optarg ;; 997 998 -v | -verbose | --verbose | --verbos | --verbo | --verb) 999 verbose=yes ;; 1000 1001 -version | --version | --versio | --versi | --vers | -V) 1002 ac_init_version=: ;; 1003 1004 -with-* | --with-*) 1005 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1006 # Reject names that are not valid shell variable names. 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1008 as_fn_error "invalid package name: $ac_useropt" 1009 ac_useropt_orig=$ac_useropt 1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 case $ac_user_opts in 1012 *" 1013"with_$ac_useropt" 1014"*) ;; 1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1016 ac_unrecognized_sep=', ';; 1017 esac 1018 eval with_$ac_useropt=\$ac_optarg ;; 1019 1020 -without-* | --without-*) 1021 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1022 # Reject names that are not valid shell variable names. 1023 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1024 as_fn_error "invalid package name: $ac_useropt" 1025 ac_useropt_orig=$ac_useropt 1026 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1027 case $ac_user_opts in 1028 *" 1029"with_$ac_useropt" 1030"*) ;; 1031 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1032 ac_unrecognized_sep=', ';; 1033 esac 1034 eval with_$ac_useropt=no ;; 1035 1036 --x) 1037 # Obsolete; use --with-x. 1038 with_x=yes ;; 1039 1040 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1041 | --x-incl | --x-inc | --x-in | --x-i) 1042 ac_prev=x_includes ;; 1043 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1044 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1045 x_includes=$ac_optarg ;; 1046 1047 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1048 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1049 ac_prev=x_libraries ;; 1050 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1051 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1052 x_libraries=$ac_optarg ;; 1053 1054 -*) as_fn_error "unrecognized option: \`$ac_option' 1055Try \`$0 --help' for more information." 1056 ;; 1057 1058 *=*) 1059 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1060 # Reject names that are not valid shell variable names. 1061 case $ac_envvar in #( 1062 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1063 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1064 esac 1065 eval $ac_envvar=\$ac_optarg 1066 export $ac_envvar ;; 1067 1068 *) 1069 # FIXME: should be removed in autoconf 3.0. 1070 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1071 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1072 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1073 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1074 ;; 1075 1076 esac 1077done 1078 1079if test -n "$ac_prev"; then 1080 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1081 as_fn_error "missing argument to $ac_option" 1082fi 1083 1084if test -n "$ac_unrecognized_opts"; then 1085 case $enable_option_checking in 1086 no) ;; 1087 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1088 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1089 esac 1090fi 1091 1092# Check all directory arguments for consistency. 1093for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1094 datadir sysconfdir sharedstatedir localstatedir includedir \ 1095 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1096 libdir localedir mandir 1097do 1098 eval ac_val=\$$ac_var 1099 # Remove trailing slashes. 1100 case $ac_val in 1101 */ ) 1102 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1103 eval $ac_var=\$ac_val;; 1104 esac 1105 # Be sure to have absolute directory names. 1106 case $ac_val in 1107 [\\/$]* | ?:[\\/]* ) continue;; 1108 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1109 esac 1110 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1111done 1112 1113# There might be people who depend on the old broken behavior: `$host' 1114# used to hold the argument of --host etc. 1115# FIXME: To remove some day. 1116build=$build_alias 1117host=$host_alias 1118target=$target_alias 1119 1120# FIXME: To remove some day. 1121if test "x$host_alias" != x; then 1122 if test "x$build_alias" = x; then 1123 cross_compiling=maybe 1124 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1125 If a cross compiler is detected then cross compile mode will be used." >&2 1126 elif test "x$build_alias" != "x$host_alias"; then 1127 cross_compiling=yes 1128 fi 1129fi 1130 1131ac_tool_prefix= 1132test -n "$host_alias" && ac_tool_prefix=$host_alias- 1133 1134test "$silent" = yes && exec 6>/dev/null 1135 1136 1137ac_pwd=`pwd` && test -n "$ac_pwd" && 1138ac_ls_di=`ls -di .` && 1139ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1140 as_fn_error "working directory cannot be determined" 1141test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1142 as_fn_error "pwd does not report name of working directory" 1143 1144 1145# Find the source files, if location was not specified. 1146if test -z "$srcdir"; then 1147 ac_srcdir_defaulted=yes 1148 # Try the directory containing this script, then the parent directory. 1149 ac_confdir=`$as_dirname -- "$as_myself" || 1150$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1151 X"$as_myself" : 'X\(//\)[^/]' \| \ 1152 X"$as_myself" : 'X\(//\)$' \| \ 1153 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1154$as_echo X"$as_myself" | 1155 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1156 s//\1/ 1157 q 1158 } 1159 /^X\(\/\/\)[^/].*/{ 1160 s//\1/ 1161 q 1162 } 1163 /^X\(\/\/\)$/{ 1164 s//\1/ 1165 q 1166 } 1167 /^X\(\/\).*/{ 1168 s//\1/ 1169 q 1170 } 1171 s/.*/./; q'` 1172 srcdir=$ac_confdir 1173 if test ! -r "$srcdir/$ac_unique_file"; then 1174 srcdir=.. 1175 fi 1176else 1177 ac_srcdir_defaulted=no 1178fi 1179if test ! -r "$srcdir/$ac_unique_file"; then 1180 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1181 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1182fi 1183ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1184ac_abs_confdir=`( 1185 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1186 pwd)` 1187# When building in place, set srcdir=. 1188if test "$ac_abs_confdir" = "$ac_pwd"; then 1189 srcdir=. 1190fi 1191# Remove unnecessary trailing slashes from srcdir. 1192# Double slashes in file names in object file debugging info 1193# mess up M-x gdb in Emacs. 1194case $srcdir in 1195*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1196esac 1197for ac_var in $ac_precious_vars; do 1198 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1199 eval ac_env_${ac_var}_value=\$${ac_var} 1200 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1201 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1202done 1203 1204# 1205# Report the --help message. 1206# 1207if test "$ac_init_help" = "long"; then 1208 # Omit some internal or obsolete options to make the list less imposing. 1209 # This message is too long to be a string in the A/UX 3.1 sh. 1210 cat <<_ACEOF 1211\`configure' configures this package to adapt to many kinds of systems. 1212 1213Usage: $0 [OPTION]... [VAR=VALUE]... 1214 1215To assign environment variables (e.g., CC, CFLAGS...), specify them as 1216VAR=VALUE. See below for descriptions of some of the useful variables. 1217 1218Defaults for the options are specified in brackets. 1219 1220Configuration: 1221 -h, --help display this help and exit 1222 --help=short display options specific to this package 1223 --help=recursive display the short help of all the included packages 1224 -V, --version display version information and exit 1225 -q, --quiet, --silent do not print \`checking...' messages 1226 --cache-file=FILE cache test results in FILE [disabled] 1227 -C, --config-cache alias for \`--cache-file=config.cache' 1228 -n, --no-create do not create output files 1229 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1230 1231Installation directories: 1232 --prefix=PREFIX install architecture-independent files in PREFIX 1233 [$ac_default_prefix] 1234 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1235 [PREFIX] 1236 1237By default, \`make install' will install all the files in 1238\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1239an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1240for instance \`--prefix=\$HOME'. 1241 1242For better control, use the options below. 1243 1244Fine tuning of the installation directories: 1245 --bindir=DIR user executables [EPREFIX/bin] 1246 --sbindir=DIR system admin executables [EPREFIX/sbin] 1247 --libexecdir=DIR program executables [EPREFIX/libexec] 1248 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1249 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1250 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1251 --libdir=DIR object code libraries [EPREFIX/lib] 1252 --includedir=DIR C header files [PREFIX/include] 1253 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1254 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1255 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1256 --infodir=DIR info documentation [DATAROOTDIR/info] 1257 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1258 --mandir=DIR man documentation [DATAROOTDIR/man] 1259 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1260 --htmldir=DIR html documentation [DOCDIR] 1261 --dvidir=DIR dvi documentation [DOCDIR] 1262 --pdfdir=DIR pdf documentation [DOCDIR] 1263 --psdir=DIR ps documentation [DOCDIR] 1264_ACEOF 1265 1266 cat <<\_ACEOF 1267 1268System types: 1269 --build=BUILD configure for building on BUILD [guessed] 1270 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1271_ACEOF 1272fi 1273 1274if test -n "$ac_init_help"; then 1275 1276 cat <<\_ACEOF 1277 1278Optional Features: 1279 --disable-option-checking ignore unrecognized --enable/--with options 1280 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1281 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1282 --disable-largefile omit support for large files 1283 1284Optional Packages: 1285 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1286 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1287 --with-ncurses=DIR path to ncurses 1288 1289Some influential environment variables: 1290 CC C compiler command 1291 CFLAGS C compiler flags 1292 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1293 nonstandard directory <lib dir> 1294 LIBS libraries to pass to the linker, e.g. -l<library> 1295 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1296 you have headers in a nonstandard directory <include dir> 1297 CPP C preprocessor 1298 1299Use these variables to override the choices made by `configure' or to help 1300it to find libraries and programs with nonstandard names/locations. 1301 1302Report bugs to the package provider. 1303_ACEOF 1304ac_status=$? 1305fi 1306 1307if test "$ac_init_help" = "recursive"; then 1308 # If there are subdirs, report their specific --help. 1309 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1310 test -d "$ac_dir" || 1311 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1312 continue 1313 ac_builddir=. 1314 1315case "$ac_dir" in 1316.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1317*) 1318 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1319 # A ".." for each directory in $ac_dir_suffix. 1320 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1321 case $ac_top_builddir_sub in 1322 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1323 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1324 esac ;; 1325esac 1326ac_abs_top_builddir=$ac_pwd 1327ac_abs_builddir=$ac_pwd$ac_dir_suffix 1328# for backward compatibility: 1329ac_top_builddir=$ac_top_build_prefix 1330 1331case $srcdir in 1332 .) # We are building in place. 1333 ac_srcdir=. 1334 ac_top_srcdir=$ac_top_builddir_sub 1335 ac_abs_top_srcdir=$ac_pwd ;; 1336 [\\/]* | ?:[\\/]* ) # Absolute name. 1337 ac_srcdir=$srcdir$ac_dir_suffix; 1338 ac_top_srcdir=$srcdir 1339 ac_abs_top_srcdir=$srcdir ;; 1340 *) # Relative name. 1341 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1342 ac_top_srcdir=$ac_top_build_prefix$srcdir 1343 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1344esac 1345ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1346 1347 cd "$ac_dir" || { ac_status=$?; continue; } 1348 # Check for guested configure. 1349 if test -f "$ac_srcdir/configure.gnu"; then 1350 echo && 1351 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1352 elif test -f "$ac_srcdir/configure"; then 1353 echo && 1354 $SHELL "$ac_srcdir/configure" --help=recursive 1355 else 1356 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1357 fi || ac_status=$? 1358 cd "$ac_pwd" || { ac_status=$?; break; } 1359 done 1360fi 1361 1362test -n "$ac_init_help" && exit $ac_status 1363if $ac_init_version; then 1364 cat <<\_ACEOF 1365configure 1366generated by GNU Autoconf 2.65 1367 1368Copyright (C) 2009 Free Software Foundation, Inc. 1369This configure script is free software; the Free Software Foundation 1370gives unlimited permission to copy, distribute and modify it. 1371_ACEOF 1372 exit 1373fi 1374 1375## ------------------------ ## 1376## Autoconf initialization. ## 1377## ------------------------ ## 1378 1379# ac_fn_c_try_compile LINENO 1380# -------------------------- 1381# Try to compile conftest.$ac_ext, and return whether this succeeded. 1382ac_fn_c_try_compile () 1383{ 1384 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1385 rm -f conftest.$ac_objext 1386 if { { ac_try="$ac_compile" 1387case "(($ac_try" in 1388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1389 *) ac_try_echo=$ac_try;; 1390esac 1391eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1392$as_echo "$ac_try_echo"; } >&5 1393 (eval "$ac_compile") 2>conftest.err 1394 ac_status=$? 1395 if test -s conftest.err; then 1396 grep -v '^ *+' conftest.err >conftest.er1 1397 cat conftest.er1 >&5 1398 mv -f conftest.er1 conftest.err 1399 fi 1400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1401 test $ac_status = 0; } && { 1402 test -z "$ac_c_werror_flag" || 1403 test ! -s conftest.err 1404 } && test -s conftest.$ac_objext; then : 1405 ac_retval=0 1406else 1407 $as_echo "$as_me: failed program was:" >&5 1408sed 's/^/| /' conftest.$ac_ext >&5 1409 1410 ac_retval=1 1411fi 1412 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1413 as_fn_set_status $ac_retval 1414 1415} # ac_fn_c_try_compile 1416 1417# ac_fn_c_try_run LINENO 1418# ---------------------- 1419# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1420# that executables *can* be run. 1421ac_fn_c_try_run () 1422{ 1423 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1424 if { { ac_try="$ac_link" 1425case "(($ac_try" in 1426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1427 *) ac_try_echo=$ac_try;; 1428esac 1429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1430$as_echo "$ac_try_echo"; } >&5 1431 (eval "$ac_link") 2>&5 1432 ac_status=$? 1433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1434 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1435 { { case "(($ac_try" in 1436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1437 *) ac_try_echo=$ac_try;; 1438esac 1439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1440$as_echo "$ac_try_echo"; } >&5 1441 (eval "$ac_try") 2>&5 1442 ac_status=$? 1443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1444 test $ac_status = 0; }; }; then : 1445 ac_retval=0 1446else 1447 $as_echo "$as_me: program exited with status $ac_status" >&5 1448 $as_echo "$as_me: failed program was:" >&5 1449sed 's/^/| /' conftest.$ac_ext >&5 1450 1451 ac_retval=$ac_status 1452fi 1453 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1454 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1455 as_fn_set_status $ac_retval 1456 1457} # ac_fn_c_try_run 1458 1459# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1460# -------------------------------------------- 1461# Tries to find the compile-time value of EXPR in a program that includes 1462# INCLUDES, setting VAR accordingly. Returns whether the value could be 1463# computed 1464ac_fn_c_compute_int () 1465{ 1466 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1467 if test "$cross_compiling" = yes; then 1468 # Depending upon the size, compute the lo and hi bounds. 1469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1470/* end confdefs.h. */ 1471$4 1472int 1473main () 1474{ 1475static int test_array [1 - 2 * !(($2) >= 0)]; 1476test_array [0] = 0 1477 1478 ; 1479 return 0; 1480} 1481_ACEOF 1482if ac_fn_c_try_compile "$LINENO"; then : 1483 ac_lo=0 ac_mid=0 1484 while :; do 1485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1486/* end confdefs.h. */ 1487$4 1488int 1489main () 1490{ 1491static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1492test_array [0] = 0 1493 1494 ; 1495 return 0; 1496} 1497_ACEOF 1498if ac_fn_c_try_compile "$LINENO"; then : 1499 ac_hi=$ac_mid; break 1500else 1501 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1502 if test $ac_lo -le $ac_mid; then 1503 ac_lo= ac_hi= 1504 break 1505 fi 1506 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1507fi 1508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1509 done 1510else 1511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1512/* end confdefs.h. */ 1513$4 1514int 1515main () 1516{ 1517static int test_array [1 - 2 * !(($2) < 0)]; 1518test_array [0] = 0 1519 1520 ; 1521 return 0; 1522} 1523_ACEOF 1524if ac_fn_c_try_compile "$LINENO"; then : 1525 ac_hi=-1 ac_mid=-1 1526 while :; do 1527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1528/* end confdefs.h. */ 1529$4 1530int 1531main () 1532{ 1533static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1534test_array [0] = 0 1535 1536 ; 1537 return 0; 1538} 1539_ACEOF 1540if ac_fn_c_try_compile "$LINENO"; then : 1541 ac_lo=$ac_mid; break 1542else 1543 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1544 if test $ac_mid -le $ac_hi; then 1545 ac_lo= ac_hi= 1546 break 1547 fi 1548 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1549fi 1550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1551 done 1552else 1553 ac_lo= ac_hi= 1554fi 1555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1556fi 1557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1558# Binary search between lo and hi bounds. 1559while test "x$ac_lo" != "x$ac_hi"; do 1560 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1562/* end confdefs.h. */ 1563$4 1564int 1565main () 1566{ 1567static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1568test_array [0] = 0 1569 1570 ; 1571 return 0; 1572} 1573_ACEOF 1574if ac_fn_c_try_compile "$LINENO"; then : 1575 ac_hi=$ac_mid 1576else 1577 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1578fi 1579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1580done 1581case $ac_lo in #(( 1582?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1583'') ac_retval=1 ;; 1584esac 1585 else 1586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1587/* end confdefs.h. */ 1588$4 1589static long int longval () { return $2; } 1590static unsigned long int ulongval () { return $2; } 1591#include <stdio.h> 1592#include <stdlib.h> 1593int 1594main () 1595{ 1596 1597 FILE *f = fopen ("conftest.val", "w"); 1598 if (! f) 1599 return 1; 1600 if (($2) < 0) 1601 { 1602 long int i = longval (); 1603 if (i != ($2)) 1604 return 1; 1605 fprintf (f, "%ld", i); 1606 } 1607 else 1608 { 1609 unsigned long int i = ulongval (); 1610 if (i != ($2)) 1611 return 1; 1612 fprintf (f, "%lu", i); 1613 } 1614 /* Do not output a trailing newline, as this causes \r\n confusion 1615 on some platforms. */ 1616 return ferror (f) || fclose (f) != 0; 1617 1618 ; 1619 return 0; 1620} 1621_ACEOF 1622if ac_fn_c_try_run "$LINENO"; then : 1623 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1624else 1625 ac_retval=1 1626fi 1627rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1628 conftest.$ac_objext conftest.beam conftest.$ac_ext 1629rm -f conftest.val 1630 1631 fi 1632 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1633 as_fn_set_status $ac_retval 1634 1635} # ac_fn_c_compute_int 1636 1637# ac_fn_c_try_cpp LINENO 1638# ---------------------- 1639# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1640ac_fn_c_try_cpp () 1641{ 1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1643 if { { ac_try="$ac_cpp conftest.$ac_ext" 1644case "(($ac_try" in 1645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1646 *) ac_try_echo=$ac_try;; 1647esac 1648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1649$as_echo "$ac_try_echo"; } >&5 1650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1651 ac_status=$? 1652 if test -s conftest.err; then 1653 grep -v '^ *+' conftest.err >conftest.er1 1654 cat conftest.er1 >&5 1655 mv -f conftest.er1 conftest.err 1656 fi 1657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1658 test $ac_status = 0; } >/dev/null && { 1659 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1660 test ! -s conftest.err 1661 }; then : 1662 ac_retval=0 1663else 1664 $as_echo "$as_me: failed program was:" >&5 1665sed 's/^/| /' conftest.$ac_ext >&5 1666 1667 ac_retval=1 1668fi 1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1670 as_fn_set_status $ac_retval 1671 1672} # ac_fn_c_try_cpp 1673 1674# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1675# ------------------------------------------------------- 1676# Tests whether HEADER exists and can be compiled using the include files in 1677# INCLUDES, setting the cache variable VAR accordingly. 1678ac_fn_c_check_header_compile () 1679{ 1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1682$as_echo_n "checking for $2... " >&6; } 1683if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1684 $as_echo_n "(cached) " >&6 1685else 1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1687/* end confdefs.h. */ 1688$4 1689#include <$2> 1690_ACEOF 1691if ac_fn_c_try_compile "$LINENO"; then : 1692 eval "$3=yes" 1693else 1694 eval "$3=no" 1695fi 1696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1697fi 1698eval ac_res=\$$3 1699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1700$as_echo "$ac_res" >&6; } 1701 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1702 1703} # ac_fn_c_check_header_compile 1704 1705# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1706# ------------------------------------------- 1707# Tests whether TYPE exists after having included INCLUDES, setting cache 1708# variable VAR accordingly. 1709ac_fn_c_check_type () 1710{ 1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1713$as_echo_n "checking for $2... " >&6; } 1714if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1715 $as_echo_n "(cached) " >&6 1716else 1717 eval "$3=no" 1718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1719/* end confdefs.h. */ 1720$4 1721int 1722main () 1723{ 1724if (sizeof ($2)) 1725 return 0; 1726 ; 1727 return 0; 1728} 1729_ACEOF 1730if ac_fn_c_try_compile "$LINENO"; then : 1731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1732/* end confdefs.h. */ 1733$4 1734int 1735main () 1736{ 1737if (sizeof (($2))) 1738 return 0; 1739 ; 1740 return 0; 1741} 1742_ACEOF 1743if ac_fn_c_try_compile "$LINENO"; then : 1744 1745else 1746 eval "$3=yes" 1747fi 1748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1749fi 1750rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1751fi 1752eval ac_res=\$$3 1753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1754$as_echo "$ac_res" >&6; } 1755 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1756 1757} # ac_fn_c_check_type 1758 1759# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1760# ------------------------------------------------------- 1761# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1762# the include files in INCLUDES and setting the cache variable VAR 1763# accordingly. 1764ac_fn_c_check_header_mongrel () 1765{ 1766 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1767 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1769$as_echo_n "checking for $2... " >&6; } 1770if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1771 $as_echo_n "(cached) " >&6 1772fi 1773eval ac_res=\$$3 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1775$as_echo "$ac_res" >&6; } 1776else 1777 # Is the header compilable? 1778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1779$as_echo_n "checking $2 usability... " >&6; } 1780cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782$4 1783#include <$2> 1784_ACEOF 1785if ac_fn_c_try_compile "$LINENO"; then : 1786 ac_header_compiler=yes 1787else 1788 ac_header_compiler=no 1789fi 1790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1792$as_echo "$ac_header_compiler" >&6; } 1793 1794# Is the header present? 1795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1796$as_echo_n "checking $2 presence... " >&6; } 1797cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1798/* end confdefs.h. */ 1799#include <$2> 1800_ACEOF 1801if ac_fn_c_try_cpp "$LINENO"; then : 1802 ac_header_preproc=yes 1803else 1804 ac_header_preproc=no 1805fi 1806rm -f conftest.err conftest.$ac_ext 1807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1808$as_echo "$ac_header_preproc" >&6; } 1809 1810# So? What about this header? 1811case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1812 yes:no: ) 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1814$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1816$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1817 ;; 1818 no:yes:* ) 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1820$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1822$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1824$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1826$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1828$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1829 ;; 1830esac 1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1832$as_echo_n "checking for $2... " >&6; } 1833if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1834 $as_echo_n "(cached) " >&6 1835else 1836 eval "$3=\$ac_header_compiler" 1837fi 1838eval ac_res=\$$3 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1840$as_echo "$ac_res" >&6; } 1841fi 1842 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1843 1844} # ac_fn_c_check_header_mongrel 1845 1846# ac_fn_c_try_link LINENO 1847# ----------------------- 1848# Try to link conftest.$ac_ext, and return whether this succeeded. 1849ac_fn_c_try_link () 1850{ 1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1852 rm -f conftest.$ac_objext conftest$ac_exeext 1853 if { { ac_try="$ac_link" 1854case "(($ac_try" in 1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1856 *) ac_try_echo=$ac_try;; 1857esac 1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1859$as_echo "$ac_try_echo"; } >&5 1860 (eval "$ac_link") 2>conftest.err 1861 ac_status=$? 1862 if test -s conftest.err; then 1863 grep -v '^ *+' conftest.err >conftest.er1 1864 cat conftest.er1 >&5 1865 mv -f conftest.er1 conftest.err 1866 fi 1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1868 test $ac_status = 0; } && { 1869 test -z "$ac_c_werror_flag" || 1870 test ! -s conftest.err 1871 } && test -s conftest$ac_exeext && { 1872 test "$cross_compiling" = yes || 1873 $as_test_x conftest$ac_exeext 1874 }; then : 1875 ac_retval=0 1876else 1877 $as_echo "$as_me: failed program was:" >&5 1878sed 's/^/| /' conftest.$ac_ext >&5 1879 1880 ac_retval=1 1881fi 1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1884 # interfere with the next link command; also delete a directory that is 1885 # left behind by Apple's compiler. We do this before executing the actions. 1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1888 as_fn_set_status $ac_retval 1889 1890} # ac_fn_c_try_link 1891 1892# ac_fn_c_check_func LINENO FUNC VAR 1893# ---------------------------------- 1894# Tests whether FUNC exists, setting the cache variable VAR accordingly 1895ac_fn_c_check_func () 1896{ 1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1899$as_echo_n "checking for $2... " >&6; } 1900if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1901 $as_echo_n "(cached) " >&6 1902else 1903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1904/* end confdefs.h. */ 1905/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1906 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1907#define $2 innocuous_$2 1908 1909/* System header to define __stub macros and hopefully few prototypes, 1910 which can conflict with char $2 (); below. 1911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1912 <limits.h> exists even on freestanding compilers. */ 1913 1914#ifdef __STDC__ 1915# include <limits.h> 1916#else 1917# include <assert.h> 1918#endif 1919 1920#undef $2 1921 1922/* Override any GCC internal prototype to avoid an error. 1923 Use char because int might match the return type of a GCC 1924 builtin and then its argument prototype would still apply. */ 1925#ifdef __cplusplus 1926extern "C" 1927#endif 1928char $2 (); 1929/* The GNU C library defines this for functions which it implements 1930 to always fail with ENOSYS. Some functions are actually named 1931 something starting with __ and the normal name is an alias. */ 1932#if defined __stub_$2 || defined __stub___$2 1933choke me 1934#endif 1935 1936int 1937main () 1938{ 1939return $2 (); 1940 ; 1941 return 0; 1942} 1943_ACEOF 1944if ac_fn_c_try_link "$LINENO"; then : 1945 eval "$3=yes" 1946else 1947 eval "$3=no" 1948fi 1949rm -f core conftest.err conftest.$ac_objext \ 1950 conftest$ac_exeext conftest.$ac_ext 1951fi 1952eval ac_res=\$$3 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1954$as_echo "$ac_res" >&6; } 1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1956 1957} # ac_fn_c_check_func 1958cat >config.log <<_ACEOF 1959This file contains any messages produced by compilers while 1960running configure, to aid debugging if configure makes a mistake. 1961 1962It was created by $as_me, which was 1963generated by GNU Autoconf 2.65. Invocation command line was 1964 1965 $ $0 $@ 1966 1967_ACEOF 1968exec 5>>config.log 1969{ 1970cat <<_ASUNAME 1971## --------- ## 1972## Platform. ## 1973## --------- ## 1974 1975hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1976uname -m = `(uname -m) 2>/dev/null || echo unknown` 1977uname -r = `(uname -r) 2>/dev/null || echo unknown` 1978uname -s = `(uname -s) 2>/dev/null || echo unknown` 1979uname -v = `(uname -v) 2>/dev/null || echo unknown` 1980 1981/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1982/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1983 1984/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1985/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1986/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1987/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1988/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1989/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1990/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1991 1992_ASUNAME 1993 1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1995for as_dir in $PATH 1996do 1997 IFS=$as_save_IFS 1998 test -z "$as_dir" && as_dir=. 1999 $as_echo "PATH: $as_dir" 2000 done 2001IFS=$as_save_IFS 2002 2003} >&5 2004 2005cat >&5 <<_ACEOF 2006 2007 2008## ----------- ## 2009## Core tests. ## 2010## ----------- ## 2011 2012_ACEOF 2013 2014 2015# Keep a trace of the command line. 2016# Strip out --no-create and --no-recursion so they do not pile up. 2017# Strip out --silent because we don't want to record it for future runs. 2018# Also quote any args containing shell meta-characters. 2019# Make two passes to allow for proper duplicate-argument suppression. 2020ac_configure_args= 2021ac_configure_args0= 2022ac_configure_args1= 2023ac_must_keep_next=false 2024for ac_pass in 1 2 2025do 2026 for ac_arg 2027 do 2028 case $ac_arg in 2029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2031 | -silent | --silent | --silen | --sile | --sil) 2032 continue ;; 2033 *\'*) 2034 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2035 esac 2036 case $ac_pass in 2037 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2038 2) 2039 as_fn_append ac_configure_args1 " '$ac_arg'" 2040 if test $ac_must_keep_next = true; then 2041 ac_must_keep_next=false # Got value, back to normal. 2042 else 2043 case $ac_arg in 2044 *=* | --config-cache | -C | -disable-* | --disable-* \ 2045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2047 | -with-* | --with-* | -without-* | --without-* | --x) 2048 case "$ac_configure_args0 " in 2049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2050 esac 2051 ;; 2052 -* ) ac_must_keep_next=true ;; 2053 esac 2054 fi 2055 as_fn_append ac_configure_args " '$ac_arg'" 2056 ;; 2057 esac 2058 done 2059done 2060{ ac_configure_args0=; unset ac_configure_args0;} 2061{ ac_configure_args1=; unset ac_configure_args1;} 2062 2063# When interrupted or exit'd, cleanup temporary files, and complete 2064# config.log. We remove comments because anyway the quotes in there 2065# would cause problems or look ugly. 2066# WARNING: Use '\'' to represent an apostrophe within the trap. 2067# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2068trap 'exit_status=$? 2069 # Save into config.log some information that might help in debugging. 2070 { 2071 echo 2072 2073 cat <<\_ASBOX 2074## ---------------- ## 2075## Cache variables. ## 2076## ---------------- ## 2077_ASBOX 2078 echo 2079 # The following way of writing the cache mishandles newlines in values, 2080( 2081 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2082 eval ac_val=\$$ac_var 2083 case $ac_val in #( 2084 *${as_nl}*) 2085 case $ac_var in #( 2086 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2087$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2088 esac 2089 case $ac_var in #( 2090 _ | IFS | as_nl) ;; #( 2091 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2092 *) { eval $ac_var=; unset $ac_var;} ;; 2093 esac ;; 2094 esac 2095 done 2096 (set) 2>&1 | 2097 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2098 *${as_nl}ac_space=\ *) 2099 sed -n \ 2100 "s/'\''/'\''\\\\'\'''\''/g; 2101 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2102 ;; #( 2103 *) 2104 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2105 ;; 2106 esac | 2107 sort 2108) 2109 echo 2110 2111 cat <<\_ASBOX 2112## ----------------- ## 2113## Output variables. ## 2114## ----------------- ## 2115_ASBOX 2116 echo 2117 for ac_var in $ac_subst_vars 2118 do 2119 eval ac_val=\$$ac_var 2120 case $ac_val in 2121 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2122 esac 2123 $as_echo "$ac_var='\''$ac_val'\''" 2124 done | sort 2125 echo 2126 2127 if test -n "$ac_subst_files"; then 2128 cat <<\_ASBOX 2129## ------------------- ## 2130## File substitutions. ## 2131## ------------------- ## 2132_ASBOX 2133 echo 2134 for ac_var in $ac_subst_files 2135 do 2136 eval ac_val=\$$ac_var 2137 case $ac_val in 2138 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2139 esac 2140 $as_echo "$ac_var='\''$ac_val'\''" 2141 done | sort 2142 echo 2143 fi 2144 2145 if test -s confdefs.h; then 2146 cat <<\_ASBOX 2147## ----------- ## 2148## confdefs.h. ## 2149## ----------- ## 2150_ASBOX 2151 echo 2152 cat confdefs.h 2153 echo 2154 fi 2155 test "$ac_signal" != 0 && 2156 $as_echo "$as_me: caught signal $ac_signal" 2157 $as_echo "$as_me: exit $exit_status" 2158 } >&5 2159 rm -f core *.core core.conftest.* && 2160 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2161 exit $exit_status 2162' 0 2163for ac_signal in 1 2 13 15; do 2164 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2165done 2166ac_signal=0 2167 2168# confdefs.h avoids OS command line length limits that DEFS can exceed. 2169rm -f -r conftest* confdefs.h 2170 2171$as_echo "/* confdefs.h */" > confdefs.h 2172 2173# Predefined preprocessor variables. 2174 2175cat >>confdefs.h <<_ACEOF 2176#define PACKAGE_NAME "$PACKAGE_NAME" 2177_ACEOF 2178 2179cat >>confdefs.h <<_ACEOF 2180#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2181_ACEOF 2182 2183cat >>confdefs.h <<_ACEOF 2184#define PACKAGE_VERSION "$PACKAGE_VERSION" 2185_ACEOF 2186 2187cat >>confdefs.h <<_ACEOF 2188#define PACKAGE_STRING "$PACKAGE_STRING" 2189_ACEOF 2190 2191cat >>confdefs.h <<_ACEOF 2192#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2193_ACEOF 2194 2195cat >>confdefs.h <<_ACEOF 2196#define PACKAGE_URL "$PACKAGE_URL" 2197_ACEOF 2198 2199 2200# Let the site file select an alternate cache file if it wants to. 2201# Prefer an explicitly selected file to automatically selected ones. 2202ac_site_file1=NONE 2203ac_site_file2=NONE 2204if test -n "$CONFIG_SITE"; then 2205 ac_site_file1=$CONFIG_SITE 2206elif test "x$prefix" != xNONE; then 2207 ac_site_file1=$prefix/share/config.site 2208 ac_site_file2=$prefix/etc/config.site 2209else 2210 ac_site_file1=$ac_default_prefix/share/config.site 2211 ac_site_file2=$ac_default_prefix/etc/config.site 2212fi 2213for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2214do 2215 test "x$ac_site_file" = xNONE && continue 2216 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2218$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2219 sed 's/^/| /' "$ac_site_file" >&5 2220 . "$ac_site_file" 2221 fi 2222done 2223 2224if test -r "$cache_file"; then 2225 # Some versions of bash will fail to source /dev/null (special files 2226 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2227 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2229$as_echo "$as_me: loading cache $cache_file" >&6;} 2230 case $cache_file in 2231 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2232 *) . "./$cache_file";; 2233 esac 2234 fi 2235else 2236 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2237$as_echo "$as_me: creating cache $cache_file" >&6;} 2238 >$cache_file 2239fi 2240 2241# Check that the precious variables saved in the cache have kept the same 2242# value. 2243ac_cache_corrupted=false 2244for ac_var in $ac_precious_vars; do 2245 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2246 eval ac_new_set=\$ac_env_${ac_var}_set 2247 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2248 eval ac_new_val=\$ac_env_${ac_var}_value 2249 case $ac_old_set,$ac_new_set in 2250 set,) 2251 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2252$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2253 ac_cache_corrupted=: ;; 2254 ,set) 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2256$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2257 ac_cache_corrupted=: ;; 2258 ,);; 2259 *) 2260 if test "x$ac_old_val" != "x$ac_new_val"; then 2261 # differences in whitespace do not lead to failure. 2262 ac_old_val_w=`echo x $ac_old_val` 2263 ac_new_val_w=`echo x $ac_new_val` 2264 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2266$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2267 ac_cache_corrupted=: 2268 else 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2270$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2271 eval $ac_var=\$ac_old_val 2272 fi 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2274$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2275 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2276$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2277 fi;; 2278 esac 2279 # Pass precious variables to config.status. 2280 if test "$ac_new_set" = set; then 2281 case $ac_new_val in 2282 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2283 *) ac_arg=$ac_var=$ac_new_val ;; 2284 esac 2285 case " $ac_configure_args " in 2286 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2287 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2288 esac 2289 fi 2290done 2291if $ac_cache_corrupted; then 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2295$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2296 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2297fi 2298## -------------------- ## 2299## Main body of script. ## 2300## -------------------- ## 2301 2302ac_ext=c 2303ac_cpp='$CPP $CPPFLAGS' 2304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2306ac_compiler_gnu=$ac_cv_c_compiler_gnu 2307 2308 2309 2310ac_config_headers="$ac_config_headers config.h" 2311 2312ac_ext=c 2313ac_cpp='$CPP $CPPFLAGS' 2314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2316ac_compiler_gnu=$ac_cv_c_compiler_gnu 2317if test -n "$ac_tool_prefix"; then 2318 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2319set dummy ${ac_tool_prefix}gcc; ac_word=$2 2320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2321$as_echo_n "checking for $ac_word... " >&6; } 2322if test "${ac_cv_prog_CC+set}" = set; then : 2323 $as_echo_n "(cached) " >&6 2324else 2325 if test -n "$CC"; then 2326 ac_cv_prog_CC="$CC" # Let the user override the test. 2327else 2328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2329for as_dir in $PATH 2330do 2331 IFS=$as_save_IFS 2332 test -z "$as_dir" && as_dir=. 2333 for ac_exec_ext in '' $ac_executable_extensions; do 2334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2335 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2337 break 2 2338 fi 2339done 2340 done 2341IFS=$as_save_IFS 2342 2343fi 2344fi 2345CC=$ac_cv_prog_CC 2346if test -n "$CC"; then 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2348$as_echo "$CC" >&6; } 2349else 2350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2351$as_echo "no" >&6; } 2352fi 2353 2354 2355fi 2356if test -z "$ac_cv_prog_CC"; then 2357 ac_ct_CC=$CC 2358 # Extract the first word of "gcc", so it can be a program name with args. 2359set dummy gcc; ac_word=$2 2360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2361$as_echo_n "checking for $ac_word... " >&6; } 2362if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2363 $as_echo_n "(cached) " >&6 2364else 2365 if test -n "$ac_ct_CC"; then 2366 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2367else 2368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2369for as_dir in $PATH 2370do 2371 IFS=$as_save_IFS 2372 test -z "$as_dir" && as_dir=. 2373 for ac_exec_ext in '' $ac_executable_extensions; do 2374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2375 ac_cv_prog_ac_ct_CC="gcc" 2376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2377 break 2 2378 fi 2379done 2380 done 2381IFS=$as_save_IFS 2382 2383fi 2384fi 2385ac_ct_CC=$ac_cv_prog_ac_ct_CC 2386if test -n "$ac_ct_CC"; then 2387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2388$as_echo "$ac_ct_CC" >&6; } 2389else 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2391$as_echo "no" >&6; } 2392fi 2393 2394 if test "x$ac_ct_CC" = x; then 2395 CC="" 2396 else 2397 case $cross_compiling:$ac_tool_warned in 2398yes:) 2399{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2400$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2401ac_tool_warned=yes ;; 2402esac 2403 CC=$ac_ct_CC 2404 fi 2405else 2406 CC="$ac_cv_prog_CC" 2407fi 2408 2409if test -z "$CC"; then 2410 if test -n "$ac_tool_prefix"; then 2411 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2412set dummy ${ac_tool_prefix}cc; ac_word=$2 2413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2414$as_echo_n "checking for $ac_word... " >&6; } 2415if test "${ac_cv_prog_CC+set}" = set; then : 2416 $as_echo_n "(cached) " >&6 2417else 2418 if test -n "$CC"; then 2419 ac_cv_prog_CC="$CC" # Let the user override the test. 2420else 2421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2422for as_dir in $PATH 2423do 2424 IFS=$as_save_IFS 2425 test -z "$as_dir" && as_dir=. 2426 for ac_exec_ext in '' $ac_executable_extensions; do 2427 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2428 ac_cv_prog_CC="${ac_tool_prefix}cc" 2429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2430 break 2 2431 fi 2432done 2433 done 2434IFS=$as_save_IFS 2435 2436fi 2437fi 2438CC=$ac_cv_prog_CC 2439if test -n "$CC"; then 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2441$as_echo "$CC" >&6; } 2442else 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2444$as_echo "no" >&6; } 2445fi 2446 2447 2448 fi 2449fi 2450if test -z "$CC"; then 2451 # Extract the first word of "cc", so it can be a program name with args. 2452set dummy cc; ac_word=$2 2453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2454$as_echo_n "checking for $ac_word... " >&6; } 2455if test "${ac_cv_prog_CC+set}" = set; then : 2456 $as_echo_n "(cached) " >&6 2457else 2458 if test -n "$CC"; then 2459 ac_cv_prog_CC="$CC" # Let the user override the test. 2460else 2461 ac_prog_rejected=no 2462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2463for as_dir in $PATH 2464do 2465 IFS=$as_save_IFS 2466 test -z "$as_dir" && as_dir=. 2467 for ac_exec_ext in '' $ac_executable_extensions; do 2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2469 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2470 ac_prog_rejected=yes 2471 continue 2472 fi 2473 ac_cv_prog_CC="cc" 2474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2475 break 2 2476 fi 2477done 2478 done 2479IFS=$as_save_IFS 2480 2481if test $ac_prog_rejected = yes; then 2482 # We found a bogon in the path, so make sure we never use it. 2483 set dummy $ac_cv_prog_CC 2484 shift 2485 if test $# != 0; then 2486 # We chose a different compiler from the bogus one. 2487 # However, it has the same basename, so the bogon will be chosen 2488 # first if we set CC to just the basename; use the full file name. 2489 shift 2490 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2491 fi 2492fi 2493fi 2494fi 2495CC=$ac_cv_prog_CC 2496if test -n "$CC"; then 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2498$as_echo "$CC" >&6; } 2499else 2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2501$as_echo "no" >&6; } 2502fi 2503 2504 2505fi 2506if test -z "$CC"; then 2507 if test -n "$ac_tool_prefix"; then 2508 for ac_prog in cl.exe 2509 do 2510 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2511set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2513$as_echo_n "checking for $ac_word... " >&6; } 2514if test "${ac_cv_prog_CC+set}" = set; then : 2515 $as_echo_n "(cached) " >&6 2516else 2517 if test -n "$CC"; then 2518 ac_cv_prog_CC="$CC" # Let the user override the test. 2519else 2520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2521for as_dir in $PATH 2522do 2523 IFS=$as_save_IFS 2524 test -z "$as_dir" && as_dir=. 2525 for ac_exec_ext in '' $ac_executable_extensions; do 2526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2527 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2529 break 2 2530 fi 2531done 2532 done 2533IFS=$as_save_IFS 2534 2535fi 2536fi 2537CC=$ac_cv_prog_CC 2538if test -n "$CC"; then 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2540$as_echo "$CC" >&6; } 2541else 2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2543$as_echo "no" >&6; } 2544fi 2545 2546 2547 test -n "$CC" && break 2548 done 2549fi 2550if test -z "$CC"; then 2551 ac_ct_CC=$CC 2552 for ac_prog in cl.exe 2553do 2554 # Extract the first word of "$ac_prog", so it can be a program name with args. 2555set dummy $ac_prog; ac_word=$2 2556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2557$as_echo_n "checking for $ac_word... " >&6; } 2558if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2559 $as_echo_n "(cached) " >&6 2560else 2561 if test -n "$ac_ct_CC"; then 2562 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2563else 2564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2565for as_dir in $PATH 2566do 2567 IFS=$as_save_IFS 2568 test -z "$as_dir" && as_dir=. 2569 for ac_exec_ext in '' $ac_executable_extensions; do 2570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2571 ac_cv_prog_ac_ct_CC="$ac_prog" 2572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2573 break 2 2574 fi 2575done 2576 done 2577IFS=$as_save_IFS 2578 2579fi 2580fi 2581ac_ct_CC=$ac_cv_prog_ac_ct_CC 2582if test -n "$ac_ct_CC"; then 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2584$as_echo "$ac_ct_CC" >&6; } 2585else 2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2587$as_echo "no" >&6; } 2588fi 2589 2590 2591 test -n "$ac_ct_CC" && break 2592done 2593 2594 if test "x$ac_ct_CC" = x; then 2595 CC="" 2596 else 2597 case $cross_compiling:$ac_tool_warned in 2598yes:) 2599{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2600$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2601ac_tool_warned=yes ;; 2602esac 2603 CC=$ac_ct_CC 2604 fi 2605fi 2606 2607fi 2608 2609 2610test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2612as_fn_error "no acceptable C compiler found in \$PATH 2613See \`config.log' for more details." "$LINENO" 5; } 2614 2615# Provide some information about the compiler. 2616$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2617set X $ac_compile 2618ac_compiler=$2 2619for ac_option in --version -v -V -qversion; do 2620 { { ac_try="$ac_compiler $ac_option >&5" 2621case "(($ac_try" in 2622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2623 *) ac_try_echo=$ac_try;; 2624esac 2625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2626$as_echo "$ac_try_echo"; } >&5 2627 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2628 ac_status=$? 2629 if test -s conftest.err; then 2630 sed '10a\ 2631... rest of stderr output deleted ... 2632 10q' conftest.err >conftest.er1 2633 cat conftest.er1 >&5 2634 fi 2635 rm -f conftest.er1 conftest.err 2636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2637 test $ac_status = 0; } 2638done 2639 2640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2641/* end confdefs.h. */ 2642 2643int 2644main () 2645{ 2646 2647 ; 2648 return 0; 2649} 2650_ACEOF 2651ac_clean_files_save=$ac_clean_files 2652ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2653# Try to create an executable without -o first, disregard a.out. 2654# It will help us diagnose broken compilers, and finding out an intuition 2655# of exeext. 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2657$as_echo_n "checking whether the C compiler works... " >&6; } 2658ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2659 2660# The possible output files: 2661ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2662 2663ac_rmfiles= 2664for ac_file in $ac_files 2665do 2666 case $ac_file in 2667 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2668 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2669 esac 2670done 2671rm -f $ac_rmfiles 2672 2673if { { ac_try="$ac_link_default" 2674case "(($ac_try" in 2675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2676 *) ac_try_echo=$ac_try;; 2677esac 2678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2679$as_echo "$ac_try_echo"; } >&5 2680 (eval "$ac_link_default") 2>&5 2681 ac_status=$? 2682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2683 test $ac_status = 0; }; then : 2684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2685# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2686# in a Makefile. We should not override ac_cv_exeext if it was cached, 2687# so that the user can short-circuit this test for compilers unknown to 2688# Autoconf. 2689for ac_file in $ac_files '' 2690do 2691 test -f "$ac_file" || continue 2692 case $ac_file in 2693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2694 ;; 2695 [ab].out ) 2696 # We found the default executable, but exeext='' is most 2697 # certainly right. 2698 break;; 2699 *.* ) 2700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2701 then :; else 2702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2703 fi 2704 # We set ac_cv_exeext here because the later test for it is not 2705 # safe: cross compilers may not add the suffix if given an `-o' 2706 # argument, so we may need to know it at that point already. 2707 # Even if this section looks crufty: it has the advantage of 2708 # actually working. 2709 break;; 2710 * ) 2711 break;; 2712 esac 2713done 2714test "$ac_cv_exeext" = no && ac_cv_exeext= 2715 2716else 2717 ac_file='' 2718fi 2719if test -z "$ac_file"; then : 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2721$as_echo "no" >&6; } 2722$as_echo "$as_me: failed program was:" >&5 2723sed 's/^/| /' conftest.$ac_ext >&5 2724 2725{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2726$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2727{ as_fn_set_status 77 2728as_fn_error "C compiler cannot create executables 2729See \`config.log' for more details." "$LINENO" 5; }; } 2730else 2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2732$as_echo "yes" >&6; } 2733fi 2734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2735$as_echo_n "checking for C compiler default output file name... " >&6; } 2736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2737$as_echo "$ac_file" >&6; } 2738ac_exeext=$ac_cv_exeext 2739 2740rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2741ac_clean_files=$ac_clean_files_save 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2743$as_echo_n "checking for suffix of executables... " >&6; } 2744if { { ac_try="$ac_link" 2745case "(($ac_try" in 2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2747 *) ac_try_echo=$ac_try;; 2748esac 2749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2750$as_echo "$ac_try_echo"; } >&5 2751 (eval "$ac_link") 2>&5 2752 ac_status=$? 2753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2754 test $ac_status = 0; }; then : 2755 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2756# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2757# work properly (i.e., refer to `conftest.exe'), while it won't with 2758# `rm'. 2759for ac_file in conftest.exe conftest conftest.*; do 2760 test -f "$ac_file" || continue 2761 case $ac_file in 2762 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2763 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2764 break;; 2765 * ) break;; 2766 esac 2767done 2768else 2769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2770$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2771as_fn_error "cannot compute suffix of executables: cannot compile and link 2772See \`config.log' for more details." "$LINENO" 5; } 2773fi 2774rm -f conftest conftest$ac_cv_exeext 2775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2776$as_echo "$ac_cv_exeext" >&6; } 2777 2778rm -f conftest.$ac_ext 2779EXEEXT=$ac_cv_exeext 2780ac_exeext=$EXEEXT 2781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2782/* end confdefs.h. */ 2783#include <stdio.h> 2784int 2785main () 2786{ 2787FILE *f = fopen ("conftest.out", "w"); 2788 return ferror (f) || fclose (f) != 0; 2789 2790 ; 2791 return 0; 2792} 2793_ACEOF 2794ac_clean_files="$ac_clean_files conftest.out" 2795# Check that the compiler produces executables we can run. If not, either 2796# the compiler is broken, or we cross compile. 2797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2798$as_echo_n "checking whether we are cross compiling... " >&6; } 2799if test "$cross_compiling" != yes; then 2800 { { ac_try="$ac_link" 2801case "(($ac_try" in 2802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2803 *) ac_try_echo=$ac_try;; 2804esac 2805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2806$as_echo "$ac_try_echo"; } >&5 2807 (eval "$ac_link") 2>&5 2808 ac_status=$? 2809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2810 test $ac_status = 0; } 2811 if { ac_try='./conftest$ac_cv_exeext' 2812 { { case "(($ac_try" in 2813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2814 *) ac_try_echo=$ac_try;; 2815esac 2816eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2817$as_echo "$ac_try_echo"; } >&5 2818 (eval "$ac_try") 2>&5 2819 ac_status=$? 2820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2821 test $ac_status = 0; }; }; then 2822 cross_compiling=no 2823 else 2824 if test "$cross_compiling" = maybe; then 2825 cross_compiling=yes 2826 else 2827 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2828$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2829as_fn_error "cannot run C compiled programs. 2830If you meant to cross compile, use \`--host'. 2831See \`config.log' for more details." "$LINENO" 5; } 2832 fi 2833 fi 2834fi 2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2836$as_echo "$cross_compiling" >&6; } 2837 2838rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2839ac_clean_files=$ac_clean_files_save 2840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2841$as_echo_n "checking for suffix of object files... " >&6; } 2842if test "${ac_cv_objext+set}" = set; then : 2843 $as_echo_n "(cached) " >&6 2844else 2845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2846/* end confdefs.h. */ 2847 2848int 2849main () 2850{ 2851 2852 ; 2853 return 0; 2854} 2855_ACEOF 2856rm -f conftest.o conftest.obj 2857if { { ac_try="$ac_compile" 2858case "(($ac_try" in 2859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2860 *) ac_try_echo=$ac_try;; 2861esac 2862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2863$as_echo "$ac_try_echo"; } >&5 2864 (eval "$ac_compile") 2>&5 2865 ac_status=$? 2866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2867 test $ac_status = 0; }; then : 2868 for ac_file in conftest.o conftest.obj conftest.*; do 2869 test -f "$ac_file" || continue; 2870 case $ac_file in 2871 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2872 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2873 break;; 2874 esac 2875done 2876else 2877 $as_echo "$as_me: failed program was:" >&5 2878sed 's/^/| /' conftest.$ac_ext >&5 2879 2880{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2882as_fn_error "cannot compute suffix of object files: cannot compile 2883See \`config.log' for more details." "$LINENO" 5; } 2884fi 2885rm -f conftest.$ac_cv_objext conftest.$ac_ext 2886fi 2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2888$as_echo "$ac_cv_objext" >&6; } 2889OBJEXT=$ac_cv_objext 2890ac_objext=$OBJEXT 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2892$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2893if test "${ac_cv_c_compiler_gnu+set}" = set; then : 2894 $as_echo_n "(cached) " >&6 2895else 2896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2897/* end confdefs.h. */ 2898 2899int 2900main () 2901{ 2902#ifndef __GNUC__ 2903 choke me 2904#endif 2905 2906 ; 2907 return 0; 2908} 2909_ACEOF 2910if ac_fn_c_try_compile "$LINENO"; then : 2911 ac_compiler_gnu=yes 2912else 2913 ac_compiler_gnu=no 2914fi 2915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2916ac_cv_c_compiler_gnu=$ac_compiler_gnu 2917 2918fi 2919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2920$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2921if test $ac_compiler_gnu = yes; then 2922 GCC=yes 2923else 2924 GCC= 2925fi 2926ac_test_CFLAGS=${CFLAGS+set} 2927ac_save_CFLAGS=$CFLAGS 2928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2929$as_echo_n "checking whether $CC accepts -g... " >&6; } 2930if test "${ac_cv_prog_cc_g+set}" = set; then : 2931 $as_echo_n "(cached) " >&6 2932else 2933 ac_save_c_werror_flag=$ac_c_werror_flag 2934 ac_c_werror_flag=yes 2935 ac_cv_prog_cc_g=no 2936 CFLAGS="-g" 2937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2938/* end confdefs.h. */ 2939 2940int 2941main () 2942{ 2943 2944 ; 2945 return 0; 2946} 2947_ACEOF 2948if ac_fn_c_try_compile "$LINENO"; then : 2949 ac_cv_prog_cc_g=yes 2950else 2951 CFLAGS="" 2952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2953/* end confdefs.h. */ 2954 2955int 2956main () 2957{ 2958 2959 ; 2960 return 0; 2961} 2962_ACEOF 2963if ac_fn_c_try_compile "$LINENO"; then : 2964 2965else 2966 ac_c_werror_flag=$ac_save_c_werror_flag 2967 CFLAGS="-g" 2968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2969/* end confdefs.h. */ 2970 2971int 2972main () 2973{ 2974 2975 ; 2976 return 0; 2977} 2978_ACEOF 2979if ac_fn_c_try_compile "$LINENO"; then : 2980 ac_cv_prog_cc_g=yes 2981fi 2982rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2983fi 2984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2985fi 2986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2987 ac_c_werror_flag=$ac_save_c_werror_flag 2988fi 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2990$as_echo "$ac_cv_prog_cc_g" >&6; } 2991if test "$ac_test_CFLAGS" = set; then 2992 CFLAGS=$ac_save_CFLAGS 2993elif test $ac_cv_prog_cc_g = yes; then 2994 if test "$GCC" = yes; then 2995 CFLAGS="-g -O2" 2996 else 2997 CFLAGS="-g" 2998 fi 2999else 3000 if test "$GCC" = yes; then 3001 CFLAGS="-O2" 3002 else 3003 CFLAGS= 3004 fi 3005fi 3006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3007$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3008if test "${ac_cv_prog_cc_c89+set}" = set; then : 3009 $as_echo_n "(cached) " >&6 3010else 3011 ac_cv_prog_cc_c89=no 3012ac_save_CC=$CC 3013cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3014/* end confdefs.h. */ 3015#include <stdarg.h> 3016#include <stdio.h> 3017#include <sys/types.h> 3018#include <sys/stat.h> 3019/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3020struct buf { int x; }; 3021FILE * (*rcsopen) (struct buf *, struct stat *, int); 3022static char *e (p, i) 3023 char **p; 3024 int i; 3025{ 3026 return p[i]; 3027} 3028static char *f (char * (*g) (char **, int), char **p, ...) 3029{ 3030 char *s; 3031 va_list v; 3032 va_start (v,p); 3033 s = g (p, va_arg (v,int)); 3034 va_end (v); 3035 return s; 3036} 3037 3038/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3039 function prototypes and stuff, but not '\xHH' hex character constants. 3040 These don't provoke an error unfortunately, instead are silently treated 3041 as 'x'. The following induces an error, until -std is added to get 3042 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3043 array size at least. It's necessary to write '\x00'==0 to get something 3044 that's true only with -std. */ 3045int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3046 3047/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3048 inside strings and character constants. */ 3049#define FOO(x) 'x' 3050int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3051 3052int test (int i, double x); 3053struct s1 {int (*f) (int a);}; 3054struct s2 {int (*f) (double a);}; 3055int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3056int argc; 3057char **argv; 3058int 3059main () 3060{ 3061return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3062 ; 3063 return 0; 3064} 3065_ACEOF 3066for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3067 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3068do 3069 CC="$ac_save_CC $ac_arg" 3070 if ac_fn_c_try_compile "$LINENO"; then : 3071 ac_cv_prog_cc_c89=$ac_arg 3072fi 3073rm -f core conftest.err conftest.$ac_objext 3074 test "x$ac_cv_prog_cc_c89" != "xno" && break 3075done 3076rm -f conftest.$ac_ext 3077CC=$ac_save_CC 3078 3079fi 3080# AC_CACHE_VAL 3081case "x$ac_cv_prog_cc_c89" in 3082 x) 3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3084$as_echo "none needed" >&6; } ;; 3085 xno) 3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3087$as_echo "unsupported" >&6; } ;; 3088 *) 3089 CC="$CC $ac_cv_prog_cc_c89" 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3091$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3092esac 3093if test "x$ac_cv_prog_cc_c89" != xno; then : 3094 3095fi 3096 3097ac_ext=c 3098ac_cpp='$CPP $CPPFLAGS' 3099ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3100ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3101ac_compiler_gnu=$ac_cv_c_compiler_gnu 3102 3103 3104# Check whether --enable-largefile was given. 3105if test "${enable_largefile+set}" = set; then : 3106 enableval=$enable_largefile; 3107fi 3108 3109if test "$enable_largefile" != no; then 3110 3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 3112$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 3113if test "${ac_cv_sys_largefile_CC+set}" = set; then : 3114 $as_echo_n "(cached) " >&6 3115else 3116 ac_cv_sys_largefile_CC=no 3117 if test "$GCC" != yes; then 3118 ac_save_CC=$CC 3119 while :; do 3120 # IRIX 6.2 and later do not support large files by default, 3121 # so use the C compiler's -n32 option if that helps. 3122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3123/* end confdefs.h. */ 3124#include <sys/types.h> 3125 /* Check that off_t can represent 2**63 - 1 correctly. 3126 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3127 since some C++ compilers masquerading as C compilers 3128 incorrectly reject 9223372036854775807. */ 3129#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3130 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3131 && LARGE_OFF_T % 2147483647 == 1) 3132 ? 1 : -1]; 3133int 3134main () 3135{ 3136 3137 ; 3138 return 0; 3139} 3140_ACEOF 3141 if ac_fn_c_try_compile "$LINENO"; then : 3142 break 3143fi 3144rm -f core conftest.err conftest.$ac_objext 3145 CC="$CC -n32" 3146 if ac_fn_c_try_compile "$LINENO"; then : 3147 ac_cv_sys_largefile_CC=' -n32'; break 3148fi 3149rm -f core conftest.err conftest.$ac_objext 3150 break 3151 done 3152 CC=$ac_save_CC 3153 rm -f conftest.$ac_ext 3154 fi 3155fi 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 3157$as_echo "$ac_cv_sys_largefile_CC" >&6; } 3158 if test "$ac_cv_sys_largefile_CC" != no; then 3159 CC=$CC$ac_cv_sys_largefile_CC 3160 fi 3161 3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 3163$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 3164if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 3165 $as_echo_n "(cached) " >&6 3166else 3167 while :; do 3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3169/* end confdefs.h. */ 3170#include <sys/types.h> 3171 /* Check that off_t can represent 2**63 - 1 correctly. 3172 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3173 since some C++ compilers masquerading as C compilers 3174 incorrectly reject 9223372036854775807. */ 3175#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3176 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3177 && LARGE_OFF_T % 2147483647 == 1) 3178 ? 1 : -1]; 3179int 3180main () 3181{ 3182 3183 ; 3184 return 0; 3185} 3186_ACEOF 3187if ac_fn_c_try_compile "$LINENO"; then : 3188 ac_cv_sys_file_offset_bits=no; break 3189fi 3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3192/* end confdefs.h. */ 3193#define _FILE_OFFSET_BITS 64 3194#include <sys/types.h> 3195 /* Check that off_t can represent 2**63 - 1 correctly. 3196 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3197 since some C++ compilers masquerading as C compilers 3198 incorrectly reject 9223372036854775807. */ 3199#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3200 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3201 && LARGE_OFF_T % 2147483647 == 1) 3202 ? 1 : -1]; 3203int 3204main () 3205{ 3206 3207 ; 3208 return 0; 3209} 3210_ACEOF 3211if ac_fn_c_try_compile "$LINENO"; then : 3212 ac_cv_sys_file_offset_bits=64; break 3213fi 3214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3215 ac_cv_sys_file_offset_bits=unknown 3216 break 3217done 3218fi 3219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 3220$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 3221case $ac_cv_sys_file_offset_bits in #( 3222 no | unknown) ;; 3223 *) 3224cat >>confdefs.h <<_ACEOF 3225#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 3226_ACEOF 3227;; 3228esac 3229rm -rf conftest* 3230 if test $ac_cv_sys_file_offset_bits = unknown; then 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 3232$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 3233if test "${ac_cv_sys_large_files+set}" = set; then : 3234 $as_echo_n "(cached) " >&6 3235else 3236 while :; do 3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3238/* end confdefs.h. */ 3239#include <sys/types.h> 3240 /* Check that off_t can represent 2**63 - 1 correctly. 3241 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3242 since some C++ compilers masquerading as C compilers 3243 incorrectly reject 9223372036854775807. */ 3244#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3245 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3246 && LARGE_OFF_T % 2147483647 == 1) 3247 ? 1 : -1]; 3248int 3249main () 3250{ 3251 3252 ; 3253 return 0; 3254} 3255_ACEOF 3256if ac_fn_c_try_compile "$LINENO"; then : 3257 ac_cv_sys_large_files=no; break 3258fi 3259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3261/* end confdefs.h. */ 3262#define _LARGE_FILES 1 3263#include <sys/types.h> 3264 /* Check that off_t can represent 2**63 - 1 correctly. 3265 We can't simply define LARGE_OFF_T to be 9223372036854775807, 3266 since some C++ compilers masquerading as C compilers 3267 incorrectly reject 9223372036854775807. */ 3268#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 3269 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 3270 && LARGE_OFF_T % 2147483647 == 1) 3271 ? 1 : -1]; 3272int 3273main () 3274{ 3275 3276 ; 3277 return 0; 3278} 3279_ACEOF 3280if ac_fn_c_try_compile "$LINENO"; then : 3281 ac_cv_sys_large_files=1; break 3282fi 3283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3284 ac_cv_sys_large_files=unknown 3285 break 3286done 3287fi 3288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 3289$as_echo "$ac_cv_sys_large_files" >&6; } 3290case $ac_cv_sys_large_files in #( 3291 no | unknown) ;; 3292 *) 3293cat >>confdefs.h <<_ACEOF 3294#define _LARGE_FILES $ac_cv_sys_large_files 3295_ACEOF 3296;; 3297esac 3298rm -rf conftest* 3299 fi 3300fi 3301 3302 3303ac_aux_dir= 3304for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3305 for ac_t in install-sh install.sh shtool; do 3306 if test -f "$ac_dir/$ac_t"; then 3307 ac_aux_dir=$ac_dir 3308 ac_install_sh="$ac_aux_dir/$ac_t -c" 3309 break 2 3310 fi 3311 done 3312done 3313if test -z "$ac_aux_dir"; then 3314 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3315fi 3316 3317# These three variables are undocumented and unsupported, 3318# and are intended to be withdrawn in a future Autoconf release. 3319# They can cause serious problems if a builder's source tree is in a directory 3320# whose full name contains unusual characters. 3321ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3322ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3323ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3324 3325 3326# Make sure we can run config.sub. 3327$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3328 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3329 3330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3331$as_echo_n "checking build system type... " >&6; } 3332if test "${ac_cv_build+set}" = set; then : 3333 $as_echo_n "(cached) " >&6 3334else 3335 ac_build_alias=$build_alias 3336test "x$ac_build_alias" = x && 3337 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3338test "x$ac_build_alias" = x && 3339 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3340ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3341 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3342 3343fi 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3345$as_echo "$ac_cv_build" >&6; } 3346case $ac_cv_build in 3347*-*-*) ;; 3348*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3349esac 3350build=$ac_cv_build 3351ac_save_IFS=$IFS; IFS='-' 3352set x $ac_cv_build 3353shift 3354build_cpu=$1 3355build_vendor=$2 3356shift; shift 3357# Remember, the first character of IFS is used to create $*, 3358# except with old shells: 3359build_os=$* 3360IFS=$ac_save_IFS 3361case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3362 3363 3364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3365$as_echo_n "checking host system type... " >&6; } 3366if test "${ac_cv_host+set}" = set; then : 3367 $as_echo_n "(cached) " >&6 3368else 3369 if test "x$host_alias" = x; then 3370 ac_cv_host=$ac_cv_build 3371else 3372 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3373 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3374fi 3375 3376fi 3377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3378$as_echo "$ac_cv_host" >&6; } 3379case $ac_cv_host in 3380*-*-*) ;; 3381*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3382esac 3383host=$ac_cv_host 3384ac_save_IFS=$IFS; IFS='-' 3385set x $ac_cv_host 3386shift 3387host_cpu=$1 3388host_vendor=$2 3389shift; shift 3390# Remember, the first character of IFS is used to create $*, 3391# except with old shells: 3392host_os=$* 3393IFS=$ac_save_IFS 3394case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3395 3396 3397CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES" 3398 3399case "$host_os" in 3400sunos4*) 3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"using /usr/5bin/cc\"" >&5 3402$as_echo "\"using /usr/5bin/cc\"" >&6; } 3403 CC="/usr/5bin/cc" 3404 ac_objext="o" 3405 ;; 3406*) 3407 ac_ext=c 3408ac_cpp='$CPP $CPPFLAGS' 3409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3411ac_compiler_gnu=$ac_cv_c_compiler_gnu 3412if test -n "$ac_tool_prefix"; then 3413 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3414set dummy ${ac_tool_prefix}gcc; ac_word=$2 3415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3416$as_echo_n "checking for $ac_word... " >&6; } 3417if test "${ac_cv_prog_CC+set}" = set; then : 3418 $as_echo_n "(cached) " >&6 3419else 3420 if test -n "$CC"; then 3421 ac_cv_prog_CC="$CC" # Let the user override the test. 3422else 3423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3424for as_dir in $PATH 3425do 3426 IFS=$as_save_IFS 3427 test -z "$as_dir" && as_dir=. 3428 for ac_exec_ext in '' $ac_executable_extensions; do 3429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3430 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3432 break 2 3433 fi 3434done 3435 done 3436IFS=$as_save_IFS 3437 3438fi 3439fi 3440CC=$ac_cv_prog_CC 3441if test -n "$CC"; then 3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3443$as_echo "$CC" >&6; } 3444else 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3446$as_echo "no" >&6; } 3447fi 3448 3449 3450fi 3451if test -z "$ac_cv_prog_CC"; then 3452 ac_ct_CC=$CC 3453 # Extract the first word of "gcc", so it can be a program name with args. 3454set dummy gcc; ac_word=$2 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3456$as_echo_n "checking for $ac_word... " >&6; } 3457if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3458 $as_echo_n "(cached) " >&6 3459else 3460 if test -n "$ac_ct_CC"; then 3461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3462else 3463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3464for as_dir in $PATH 3465do 3466 IFS=$as_save_IFS 3467 test -z "$as_dir" && as_dir=. 3468 for ac_exec_ext in '' $ac_executable_extensions; do 3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3470 ac_cv_prog_ac_ct_CC="gcc" 3471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3472 break 2 3473 fi 3474done 3475 done 3476IFS=$as_save_IFS 3477 3478fi 3479fi 3480ac_ct_CC=$ac_cv_prog_ac_ct_CC 3481if test -n "$ac_ct_CC"; then 3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3483$as_echo "$ac_ct_CC" >&6; } 3484else 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3486$as_echo "no" >&6; } 3487fi 3488 3489 if test "x$ac_ct_CC" = x; then 3490 CC="" 3491 else 3492 case $cross_compiling:$ac_tool_warned in 3493yes:) 3494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3496ac_tool_warned=yes ;; 3497esac 3498 CC=$ac_ct_CC 3499 fi 3500else 3501 CC="$ac_cv_prog_CC" 3502fi 3503 3504if test -z "$CC"; then 3505 if test -n "$ac_tool_prefix"; then 3506 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3507set dummy ${ac_tool_prefix}cc; ac_word=$2 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3509$as_echo_n "checking for $ac_word... " >&6; } 3510if test "${ac_cv_prog_CC+set}" = set; then : 3511 $as_echo_n "(cached) " >&6 3512else 3513 if test -n "$CC"; then 3514 ac_cv_prog_CC="$CC" # Let the user override the test. 3515else 3516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3517for as_dir in $PATH 3518do 3519 IFS=$as_save_IFS 3520 test -z "$as_dir" && as_dir=. 3521 for ac_exec_ext in '' $ac_executable_extensions; do 3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3523 ac_cv_prog_CC="${ac_tool_prefix}cc" 3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3525 break 2 3526 fi 3527done 3528 done 3529IFS=$as_save_IFS 3530 3531fi 3532fi 3533CC=$ac_cv_prog_CC 3534if test -n "$CC"; then 3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3536$as_echo "$CC" >&6; } 3537else 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3539$as_echo "no" >&6; } 3540fi 3541 3542 3543 fi 3544fi 3545if test -z "$CC"; then 3546 # Extract the first word of "cc", so it can be a program name with args. 3547set dummy cc; ac_word=$2 3548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3549$as_echo_n "checking for $ac_word... " >&6; } 3550if test "${ac_cv_prog_CC+set}" = set; then : 3551 $as_echo_n "(cached) " >&6 3552else 3553 if test -n "$CC"; then 3554 ac_cv_prog_CC="$CC" # Let the user override the test. 3555else 3556 ac_prog_rejected=no 3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3558for as_dir in $PATH 3559do 3560 IFS=$as_save_IFS 3561 test -z "$as_dir" && as_dir=. 3562 for ac_exec_ext in '' $ac_executable_extensions; do 3563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3564 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3565 ac_prog_rejected=yes 3566 continue 3567 fi 3568 ac_cv_prog_CC="cc" 3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3570 break 2 3571 fi 3572done 3573 done 3574IFS=$as_save_IFS 3575 3576if test $ac_prog_rejected = yes; then 3577 # We found a bogon in the path, so make sure we never use it. 3578 set dummy $ac_cv_prog_CC 3579 shift 3580 if test $# != 0; then 3581 # We chose a different compiler from the bogus one. 3582 # However, it has the same basename, so the bogon will be chosen 3583 # first if we set CC to just the basename; use the full file name. 3584 shift 3585 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3586 fi 3587fi 3588fi 3589fi 3590CC=$ac_cv_prog_CC 3591if test -n "$CC"; then 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3593$as_echo "$CC" >&6; } 3594else 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3596$as_echo "no" >&6; } 3597fi 3598 3599 3600fi 3601if test -z "$CC"; then 3602 if test -n "$ac_tool_prefix"; then 3603 for ac_prog in cl.exe 3604 do 3605 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3606set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3608$as_echo_n "checking for $ac_word... " >&6; } 3609if test "${ac_cv_prog_CC+set}" = set; then : 3610 $as_echo_n "(cached) " >&6 3611else 3612 if test -n "$CC"; then 3613 ac_cv_prog_CC="$CC" # Let the user override the test. 3614else 3615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3616for as_dir in $PATH 3617do 3618 IFS=$as_save_IFS 3619 test -z "$as_dir" && as_dir=. 3620 for ac_exec_ext in '' $ac_executable_extensions; do 3621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3622 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3624 break 2 3625 fi 3626done 3627 done 3628IFS=$as_save_IFS 3629 3630fi 3631fi 3632CC=$ac_cv_prog_CC 3633if test -n "$CC"; then 3634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3635$as_echo "$CC" >&6; } 3636else 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3638$as_echo "no" >&6; } 3639fi 3640 3641 3642 test -n "$CC" && break 3643 done 3644fi 3645if test -z "$CC"; then 3646 ac_ct_CC=$CC 3647 for ac_prog in cl.exe 3648do 3649 # Extract the first word of "$ac_prog", so it can be a program name with args. 3650set dummy $ac_prog; ac_word=$2 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3652$as_echo_n "checking for $ac_word... " >&6; } 3653if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3654 $as_echo_n "(cached) " >&6 3655else 3656 if test -n "$ac_ct_CC"; then 3657 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3658else 3659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3660for as_dir in $PATH 3661do 3662 IFS=$as_save_IFS 3663 test -z "$as_dir" && as_dir=. 3664 for ac_exec_ext in '' $ac_executable_extensions; do 3665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3666 ac_cv_prog_ac_ct_CC="$ac_prog" 3667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3668 break 2 3669 fi 3670done 3671 done 3672IFS=$as_save_IFS 3673 3674fi 3675fi 3676ac_ct_CC=$ac_cv_prog_ac_ct_CC 3677if test -n "$ac_ct_CC"; then 3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3679$as_echo "$ac_ct_CC" >&6; } 3680else 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3682$as_echo "no" >&6; } 3683fi 3684 3685 3686 test -n "$ac_ct_CC" && break 3687done 3688 3689 if test "x$ac_ct_CC" = x; then 3690 CC="" 3691 else 3692 case $cross_compiling:$ac_tool_warned in 3693yes:) 3694{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3695$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3696ac_tool_warned=yes ;; 3697esac 3698 CC=$ac_ct_CC 3699 fi 3700fi 3701 3702fi 3703 3704 3705test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3707as_fn_error "no acceptable C compiler found in \$PATH 3708See \`config.log' for more details." "$LINENO" 5; } 3709 3710# Provide some information about the compiler. 3711$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3712set X $ac_compile 3713ac_compiler=$2 3714for ac_option in --version -v -V -qversion; do 3715 { { ac_try="$ac_compiler $ac_option >&5" 3716case "(($ac_try" in 3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3718 *) ac_try_echo=$ac_try;; 3719esac 3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3721$as_echo "$ac_try_echo"; } >&5 3722 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3723 ac_status=$? 3724 if test -s conftest.err; then 3725 sed '10a\ 3726... rest of stderr output deleted ... 3727 10q' conftest.err >conftest.er1 3728 cat conftest.er1 >&5 3729 fi 3730 rm -f conftest.er1 conftest.err 3731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3732 test $ac_status = 0; } 3733done 3734 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3736$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3737if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3738 $as_echo_n "(cached) " >&6 3739else 3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3741/* end confdefs.h. */ 3742 3743int 3744main () 3745{ 3746#ifndef __GNUC__ 3747 choke me 3748#endif 3749 3750 ; 3751 return 0; 3752} 3753_ACEOF 3754if ac_fn_c_try_compile "$LINENO"; then : 3755 ac_compiler_gnu=yes 3756else 3757 ac_compiler_gnu=no 3758fi 3759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3760ac_cv_c_compiler_gnu=$ac_compiler_gnu 3761 3762fi 3763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3764$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3765if test $ac_compiler_gnu = yes; then 3766 GCC=yes 3767else 3768 GCC= 3769fi 3770ac_test_CFLAGS=${CFLAGS+set} 3771ac_save_CFLAGS=$CFLAGS 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3773$as_echo_n "checking whether $CC accepts -g... " >&6; } 3774if test "${ac_cv_prog_cc_g+set}" = set; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 ac_save_c_werror_flag=$ac_c_werror_flag 3778 ac_c_werror_flag=yes 3779 ac_cv_prog_cc_g=no 3780 CFLAGS="-g" 3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3782/* end confdefs.h. */ 3783 3784int 3785main () 3786{ 3787 3788 ; 3789 return 0; 3790} 3791_ACEOF 3792if ac_fn_c_try_compile "$LINENO"; then : 3793 ac_cv_prog_cc_g=yes 3794else 3795 CFLAGS="" 3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3797/* end confdefs.h. */ 3798 3799int 3800main () 3801{ 3802 3803 ; 3804 return 0; 3805} 3806_ACEOF 3807if ac_fn_c_try_compile "$LINENO"; then : 3808 3809else 3810 ac_c_werror_flag=$ac_save_c_werror_flag 3811 CFLAGS="-g" 3812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3813/* end confdefs.h. */ 3814 3815int 3816main () 3817{ 3818 3819 ; 3820 return 0; 3821} 3822_ACEOF 3823if ac_fn_c_try_compile "$LINENO"; then : 3824 ac_cv_prog_cc_g=yes 3825fi 3826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3827fi 3828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3829fi 3830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3831 ac_c_werror_flag=$ac_save_c_werror_flag 3832fi 3833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3834$as_echo "$ac_cv_prog_cc_g" >&6; } 3835if test "$ac_test_CFLAGS" = set; then 3836 CFLAGS=$ac_save_CFLAGS 3837elif test $ac_cv_prog_cc_g = yes; then 3838 if test "$GCC" = yes; then 3839 CFLAGS="-g -O2" 3840 else 3841 CFLAGS="-g" 3842 fi 3843else 3844 if test "$GCC" = yes; then 3845 CFLAGS="-O2" 3846 else 3847 CFLAGS= 3848 fi 3849fi 3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3851$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3852if test "${ac_cv_prog_cc_c89+set}" = set; then : 3853 $as_echo_n "(cached) " >&6 3854else 3855 ac_cv_prog_cc_c89=no 3856ac_save_CC=$CC 3857cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3858/* end confdefs.h. */ 3859#include <stdarg.h> 3860#include <stdio.h> 3861#include <sys/types.h> 3862#include <sys/stat.h> 3863/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3864struct buf { int x; }; 3865FILE * (*rcsopen) (struct buf *, struct stat *, int); 3866static char *e (p, i) 3867 char **p; 3868 int i; 3869{ 3870 return p[i]; 3871} 3872static char *f (char * (*g) (char **, int), char **p, ...) 3873{ 3874 char *s; 3875 va_list v; 3876 va_start (v,p); 3877 s = g (p, va_arg (v,int)); 3878 va_end (v); 3879 return s; 3880} 3881 3882/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3883 function prototypes and stuff, but not '\xHH' hex character constants. 3884 These don't provoke an error unfortunately, instead are silently treated 3885 as 'x'. The following induces an error, until -std is added to get 3886 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3887 array size at least. It's necessary to write '\x00'==0 to get something 3888 that's true only with -std. */ 3889int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3890 3891/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3892 inside strings and character constants. */ 3893#define FOO(x) 'x' 3894int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3895 3896int test (int i, double x); 3897struct s1 {int (*f) (int a);}; 3898struct s2 {int (*f) (double a);}; 3899int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3900int argc; 3901char **argv; 3902int 3903main () 3904{ 3905return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3906 ; 3907 return 0; 3908} 3909_ACEOF 3910for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3911 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3912do 3913 CC="$ac_save_CC $ac_arg" 3914 if ac_fn_c_try_compile "$LINENO"; then : 3915 ac_cv_prog_cc_c89=$ac_arg 3916fi 3917rm -f core conftest.err conftest.$ac_objext 3918 test "x$ac_cv_prog_cc_c89" != "xno" && break 3919done 3920rm -f conftest.$ac_ext 3921CC=$ac_save_CC 3922 3923fi 3924# AC_CACHE_VAL 3925case "x$ac_cv_prog_cc_c89" in 3926 x) 3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3928$as_echo "none needed" >&6; } ;; 3929 xno) 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3931$as_echo "unsupported" >&6; } ;; 3932 *) 3933 CC="$CC $ac_cv_prog_cc_c89" 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3935$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3936esac 3937if test "x$ac_cv_prog_cc_c89" != xno; then : 3938 3939fi 3940 3941ac_ext=c 3942ac_cpp='$CPP $CPPFLAGS' 3943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3945ac_compiler_gnu=$ac_cv_c_compiler_gnu 3946 3947 ;; 3948esac 3949 3950 3951case "$host_os" in 3952solaris*) 3953 CPPFLAGS="${CPPFLAGS} -D_MSE_INT_H" 3954 $as_echo "#define NEED_PUTC_CHAR 1" >>confdefs.h 3955 3956 ;; 3957hpux9*) DEFS=${DEFS-"-DMINICURSES"} 3958 ;; 3959esac 3960 3961 3962# Find a good install program. We prefer a C program (faster), 3963# so one script is as good as another. But avoid the broken or 3964# incompatible versions: 3965# SysV /etc/install, /usr/sbin/install 3966# SunOS /usr/etc/install 3967# IRIX /sbin/install 3968# AIX /bin/install 3969# AmigaOS /C/install, which installs bootblocks on floppy discs 3970# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3971# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3972# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3973# OS/2's system install, which has a completely different semantic 3974# ./install, which can be erroneously created by make from ./install.sh. 3975# Reject install programs that cannot install multiple files. 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3977$as_echo_n "checking for a BSD-compatible install... " >&6; } 3978if test -z "$INSTALL"; then 3979if test "${ac_cv_path_install+set}" = set; then : 3980 $as_echo_n "(cached) " >&6 3981else 3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3983for as_dir in $PATH 3984do 3985 IFS=$as_save_IFS 3986 test -z "$as_dir" && as_dir=. 3987 # Account for people who put trailing slashes in PATH elements. 3988case $as_dir/ in #(( 3989 ./ | .// | /[cC]/* | \ 3990 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3991 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3992 /usr/ucb/* ) ;; 3993 *) 3994 # OSF1 and SCO ODT 3.0 have their own names for install. 3995 # Don't use installbsd from OSF since it installs stuff as root 3996 # by default. 3997 for ac_prog in ginstall scoinst install; do 3998 for ac_exec_ext in '' $ac_executable_extensions; do 3999 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 4000 if test $ac_prog = install && 4001 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4002 # AIX install. It has an incompatible calling convention. 4003 : 4004 elif test $ac_prog = install && 4005 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 4006 # program-specific install script used by HP pwplus--don't use. 4007 : 4008 else 4009 rm -rf conftest.one conftest.two conftest.dir 4010 echo one > conftest.one 4011 echo two > conftest.two 4012 mkdir conftest.dir 4013 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 4014 test -s conftest.one && test -s conftest.two && 4015 test -s conftest.dir/conftest.one && 4016 test -s conftest.dir/conftest.two 4017 then 4018 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4019 break 3 4020 fi 4021 fi 4022 fi 4023 done 4024 done 4025 ;; 4026esac 4027 4028 done 4029IFS=$as_save_IFS 4030 4031rm -rf conftest.one conftest.two conftest.dir 4032 4033fi 4034 if test "${ac_cv_path_install+set}" = set; then 4035 INSTALL=$ac_cv_path_install 4036 else 4037 # As a last resort, use the slow shell script. Don't cache a 4038 # value for INSTALL within a source directory, because that will 4039 # break other packages using the cache if that directory is 4040 # removed, or if the value is a relative name. 4041 INSTALL=$ac_install_sh 4042 fi 4043fi 4044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 4045$as_echo "$INSTALL" >&6; } 4046 4047# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4048# It thinks the first close brace ends the variable substitution. 4049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4050 4051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 4052 4053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4054 4055 4056ac_ext=c 4057ac_cpp='$CPP $CPPFLAGS' 4058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4060ac_compiler_gnu=$ac_cv_c_compiler_gnu 4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4062$as_echo_n "checking how to run the C preprocessor... " >&6; } 4063# On Suns, sometimes $CPP names a directory. 4064if test -n "$CPP" && test -d "$CPP"; then 4065 CPP= 4066fi 4067if test -z "$CPP"; then 4068 if test "${ac_cv_prog_CPP+set}" = set; then : 4069 $as_echo_n "(cached) " >&6 4070else 4071 # Double quotes because CPP needs to be expanded 4072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4073 do 4074 ac_preproc_ok=false 4075for ac_c_preproc_warn_flag in '' yes 4076do 4077 # Use a header file that comes with gcc, so configuring glibc 4078 # with a fresh cross-compiler works. 4079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4080 # <limits.h> exists even on freestanding compilers. 4081 # On the NeXT, cc -E runs the code through the compiler's parser, 4082 # not just through cpp. "Syntax error" is here to catch this case. 4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4084/* end confdefs.h. */ 4085#ifdef __STDC__ 4086# include <limits.h> 4087#else 4088# include <assert.h> 4089#endif 4090 Syntax error 4091_ACEOF 4092if ac_fn_c_try_cpp "$LINENO"; then : 4093 4094else 4095 # Broken: fails on valid input. 4096continue 4097fi 4098rm -f conftest.err conftest.$ac_ext 4099 4100 # OK, works on sane cases. Now check whether nonexistent headers 4101 # can be detected and how. 4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4103/* end confdefs.h. */ 4104#include <ac_nonexistent.h> 4105_ACEOF 4106if ac_fn_c_try_cpp "$LINENO"; then : 4107 # Broken: success on invalid input. 4108continue 4109else 4110 # Passes both tests. 4111ac_preproc_ok=: 4112break 4113fi 4114rm -f conftest.err conftest.$ac_ext 4115 4116done 4117# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4118rm -f conftest.err conftest.$ac_ext 4119if $ac_preproc_ok; then : 4120 break 4121fi 4122 4123 done 4124 ac_cv_prog_CPP=$CPP 4125 4126fi 4127 CPP=$ac_cv_prog_CPP 4128else 4129 ac_cv_prog_CPP=$CPP 4130fi 4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4132$as_echo "$CPP" >&6; } 4133ac_preproc_ok=false 4134for ac_c_preproc_warn_flag in '' yes 4135do 4136 # Use a header file that comes with gcc, so configuring glibc 4137 # with a fresh cross-compiler works. 4138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4139 # <limits.h> exists even on freestanding compilers. 4140 # On the NeXT, cc -E runs the code through the compiler's parser, 4141 # not just through cpp. "Syntax error" is here to catch this case. 4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4143/* end confdefs.h. */ 4144#ifdef __STDC__ 4145# include <limits.h> 4146#else 4147# include <assert.h> 4148#endif 4149 Syntax error 4150_ACEOF 4151if ac_fn_c_try_cpp "$LINENO"; then : 4152 4153else 4154 # Broken: fails on valid input. 4155continue 4156fi 4157rm -f conftest.err conftest.$ac_ext 4158 4159 # OK, works on sane cases. Now check whether nonexistent headers 4160 # can be detected and how. 4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4162/* end confdefs.h. */ 4163#include <ac_nonexistent.h> 4164_ACEOF 4165if ac_fn_c_try_cpp "$LINENO"; then : 4166 # Broken: success on invalid input. 4167continue 4168else 4169 # Passes both tests. 4170ac_preproc_ok=: 4171break 4172fi 4173rm -f conftest.err conftest.$ac_ext 4174 4175done 4176# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4177rm -f conftest.err conftest.$ac_ext 4178if $ac_preproc_ok; then : 4179 4180else 4181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4182$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4183as_fn_error "C preprocessor \"$CPP\" fails sanity check 4184See \`config.log' for more details." "$LINENO" 5; } 4185fi 4186 4187ac_ext=c 4188ac_cpp='$CPP $CPPFLAGS' 4189ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4190ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4191ac_compiler_gnu=$ac_cv_c_compiler_gnu 4192 4193 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4195$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4196if test "${ac_cv_path_GREP+set}" = set; then : 4197 $as_echo_n "(cached) " >&6 4198else 4199 if test -z "$GREP"; then 4200 ac_path_GREP_found=false 4201 # Loop through the user's path and test for each of PROGNAME-LIST 4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4203for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4204do 4205 IFS=$as_save_IFS 4206 test -z "$as_dir" && as_dir=. 4207 for ac_prog in grep ggrep; do 4208 for ac_exec_ext in '' $ac_executable_extensions; do 4209 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4210 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4211# Check for GNU ac_path_GREP and select it if it is found. 4212 # Check for GNU $ac_path_GREP 4213case `"$ac_path_GREP" --version 2>&1` in 4214*GNU*) 4215 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4216*) 4217 ac_count=0 4218 $as_echo_n 0123456789 >"conftest.in" 4219 while : 4220 do 4221 cat "conftest.in" "conftest.in" >"conftest.tmp" 4222 mv "conftest.tmp" "conftest.in" 4223 cp "conftest.in" "conftest.nl" 4224 $as_echo 'GREP' >> "conftest.nl" 4225 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4227 as_fn_arith $ac_count + 1 && ac_count=$as_val 4228 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4229 # Best one so far, save it but keep looking for a better one 4230 ac_cv_path_GREP="$ac_path_GREP" 4231 ac_path_GREP_max=$ac_count 4232 fi 4233 # 10*(2^10) chars as input seems more than enough 4234 test $ac_count -gt 10 && break 4235 done 4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4237esac 4238 4239 $ac_path_GREP_found && break 3 4240 done 4241 done 4242 done 4243IFS=$as_save_IFS 4244 if test -z "$ac_cv_path_GREP"; then 4245 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4246 fi 4247else 4248 ac_cv_path_GREP=$GREP 4249fi 4250 4251fi 4252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4253$as_echo "$ac_cv_path_GREP" >&6; } 4254 GREP="$ac_cv_path_GREP" 4255 4256 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4258$as_echo_n "checking for egrep... " >&6; } 4259if test "${ac_cv_path_EGREP+set}" = set; then : 4260 $as_echo_n "(cached) " >&6 4261else 4262 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4263 then ac_cv_path_EGREP="$GREP -E" 4264 else 4265 if test -z "$EGREP"; then 4266 ac_path_EGREP_found=false 4267 # Loop through the user's path and test for each of PROGNAME-LIST 4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4269for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4270do 4271 IFS=$as_save_IFS 4272 test -z "$as_dir" && as_dir=. 4273 for ac_prog in egrep; do 4274 for ac_exec_ext in '' $ac_executable_extensions; do 4275 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4276 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4277# Check for GNU ac_path_EGREP and select it if it is found. 4278 # Check for GNU $ac_path_EGREP 4279case `"$ac_path_EGREP" --version 2>&1` in 4280*GNU*) 4281 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4282*) 4283 ac_count=0 4284 $as_echo_n 0123456789 >"conftest.in" 4285 while : 4286 do 4287 cat "conftest.in" "conftest.in" >"conftest.tmp" 4288 mv "conftest.tmp" "conftest.in" 4289 cp "conftest.in" "conftest.nl" 4290 $as_echo 'EGREP' >> "conftest.nl" 4291 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4292 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4293 as_fn_arith $ac_count + 1 && ac_count=$as_val 4294 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4295 # Best one so far, save it but keep looking for a better one 4296 ac_cv_path_EGREP="$ac_path_EGREP" 4297 ac_path_EGREP_max=$ac_count 4298 fi 4299 # 10*(2^10) chars as input seems more than enough 4300 test $ac_count -gt 10 && break 4301 done 4302 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4303esac 4304 4305 $ac_path_EGREP_found && break 3 4306 done 4307 done 4308 done 4309IFS=$as_save_IFS 4310 if test -z "$ac_cv_path_EGREP"; then 4311 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4312 fi 4313else 4314 ac_cv_path_EGREP=$EGREP 4315fi 4316 4317 fi 4318fi 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4320$as_echo "$ac_cv_path_EGREP" >&6; } 4321 EGREP="$ac_cv_path_EGREP" 4322 4323 4324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4325$as_echo_n "checking for ANSI C header files... " >&6; } 4326if test "${ac_cv_header_stdc+set}" = set; then : 4327 $as_echo_n "(cached) " >&6 4328else 4329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4330/* end confdefs.h. */ 4331#include <stdlib.h> 4332#include <stdarg.h> 4333#include <string.h> 4334#include <float.h> 4335 4336int 4337main () 4338{ 4339 4340 ; 4341 return 0; 4342} 4343_ACEOF 4344if ac_fn_c_try_compile "$LINENO"; then : 4345 ac_cv_header_stdc=yes 4346else 4347 ac_cv_header_stdc=no 4348fi 4349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4350 4351if test $ac_cv_header_stdc = yes; then 4352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4354/* end confdefs.h. */ 4355#include <string.h> 4356 4357_ACEOF 4358if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4359 $EGREP "memchr" >/dev/null 2>&1; then : 4360 4361else 4362 ac_cv_header_stdc=no 4363fi 4364rm -f conftest* 4365 4366fi 4367 4368if test $ac_cv_header_stdc = yes; then 4369 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4371/* end confdefs.h. */ 4372#include <stdlib.h> 4373 4374_ACEOF 4375if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4376 $EGREP "free" >/dev/null 2>&1; then : 4377 4378else 4379 ac_cv_header_stdc=no 4380fi 4381rm -f conftest* 4382 4383fi 4384 4385if test $ac_cv_header_stdc = yes; then 4386 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4387 if test "$cross_compiling" = yes; then : 4388 : 4389else 4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4391/* end confdefs.h. */ 4392#include <ctype.h> 4393#include <stdlib.h> 4394#if ((' ' & 0x0FF) == 0x020) 4395# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4396# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4397#else 4398# define ISLOWER(c) \ 4399 (('a' <= (c) && (c) <= 'i') \ 4400 || ('j' <= (c) && (c) <= 'r') \ 4401 || ('s' <= (c) && (c) <= 'z')) 4402# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4403#endif 4404 4405#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4406int 4407main () 4408{ 4409 int i; 4410 for (i = 0; i < 256; i++) 4411 if (XOR (islower (i), ISLOWER (i)) 4412 || toupper (i) != TOUPPER (i)) 4413 return 2; 4414 return 0; 4415} 4416_ACEOF 4417if ac_fn_c_try_run "$LINENO"; then : 4418 4419else 4420 ac_cv_header_stdc=no 4421fi 4422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4423 conftest.$ac_objext conftest.beam conftest.$ac_ext 4424fi 4425 4426fi 4427fi 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4429$as_echo "$ac_cv_header_stdc" >&6; } 4430if test $ac_cv_header_stdc = yes; then 4431 4432$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4433 4434fi 4435 4436# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4437for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4438 inttypes.h stdint.h unistd.h 4439do : 4440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4441ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4442" 4443eval as_val=\$$as_ac_Header 4444 if test "x$as_val" = x""yes; then : 4445 cat >>confdefs.h <<_ACEOF 4446#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4447_ACEOF 4448 4449fi 4450 4451done 4452 4453 4454# The cast to long int works around a bug in the HP C Compiler 4455# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4456# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4457# This bug is HP SR number 8606223364. 4458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 4459$as_echo_n "checking size of int... " >&6; } 4460if test "${ac_cv_sizeof_int+set}" = set; then : 4461 $as_echo_n "(cached) " >&6 4462else 4463 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 4464 4465else 4466 if test "$ac_cv_type_int" = yes; then 4467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4469{ as_fn_set_status 77 4470as_fn_error "cannot compute sizeof (int) 4471See \`config.log' for more details." "$LINENO" 5; }; } 4472 else 4473 ac_cv_sizeof_int=0 4474 fi 4475fi 4476 4477fi 4478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 4479$as_echo "$ac_cv_sizeof_int" >&6; } 4480 4481 4482 4483cat >>confdefs.h <<_ACEOF 4484#define SIZEOF_INT $ac_cv_sizeof_int 4485_ACEOF 4486 4487 4488# The cast to long int works around a bug in the HP C Compiler 4489# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4490# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4491# This bug is HP SR number 8606223364. 4492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 4493$as_echo_n "checking size of long... " >&6; } 4494if test "${ac_cv_sizeof_long+set}" = set; then : 4495 $as_echo_n "(cached) " >&6 4496else 4497 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 4498 4499else 4500 if test "$ac_cv_type_long" = yes; then 4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4502$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4503{ as_fn_set_status 77 4504as_fn_error "cannot compute sizeof (long) 4505See \`config.log' for more details." "$LINENO" 5; }; } 4506 else 4507 ac_cv_sizeof_long=0 4508 fi 4509fi 4510 4511fi 4512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 4513$as_echo "$ac_cv_sizeof_long" >&6; } 4514 4515 4516 4517cat >>confdefs.h <<_ACEOF 4518#define SIZEOF_LONG $ac_cv_sizeof_long 4519_ACEOF 4520 4521 4522# The cast to long int works around a bug in the HP C Compiler 4523# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4524# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4525# This bug is HP SR number 8606223364. 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 4527$as_echo_n "checking size of long long... " >&6; } 4528if test "${ac_cv_sizeof_long_long+set}" = set; then : 4529 $as_echo_n "(cached) " >&6 4530else 4531 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 4532 4533else 4534 if test "$ac_cv_type_long_long" = yes; then 4535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4536$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4537{ as_fn_set_status 77 4538as_fn_error "cannot compute sizeof (long long) 4539See \`config.log' for more details." "$LINENO" 5; }; } 4540 else 4541 ac_cv_sizeof_long_long=0 4542 fi 4543fi 4544 4545fi 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 4547$as_echo "$ac_cv_sizeof_long_long" >&6; } 4548 4549 4550 4551cat >>confdefs.h <<_ACEOF 4552#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 4553_ACEOF 4554 4555 4556# The cast to long int works around a bug in the HP C Compiler 4557# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 4558# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 4559# This bug is HP SR number 8606223364. 4560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 4561$as_echo_n "checking size of void *... " >&6; } 4562if test "${ac_cv_sizeof_void_p+set}" = set; then : 4563 $as_echo_n "(cached) " >&6 4564else 4565 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 4566 4567else 4568 if test "$ac_cv_type_void_p" = yes; then 4569 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4570$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4571{ as_fn_set_status 77 4572as_fn_error "cannot compute sizeof (void *) 4573See \`config.log' for more details." "$LINENO" 5; }; } 4574 else 4575 ac_cv_sizeof_void_p=0 4576 fi 4577fi 4578 4579fi 4580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 4581$as_echo "$ac_cv_sizeof_void_p" >&6; } 4582 4583 4584 4585cat >>confdefs.h <<_ACEOF 4586#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 4587_ACEOF 4588 4589 4590 4591ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4592if test "x$ac_cv_type_size_t" = x""yes; then : 4593 4594else 4595 4596cat >>confdefs.h <<_ACEOF 4597#define size_t unsigned int 4598_ACEOF 4599 4600fi 4601 4602ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 4603if test "x$ac_cv_type_off_t" = x""yes; then : 4604 4605else 4606 4607cat >>confdefs.h <<_ACEOF 4608#define off_t int 4609_ACEOF 4610 4611fi 4612 4613 4614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4615$as_echo_n "checking for ANSI C header files... " >&6; } 4616if test "${ac_cv_header_stdc+set}" = set; then : 4617 $as_echo_n "(cached) " >&6 4618else 4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4620/* end confdefs.h. */ 4621#include <stdlib.h> 4622#include <stdarg.h> 4623#include <string.h> 4624#include <float.h> 4625 4626int 4627main () 4628{ 4629 4630 ; 4631 return 0; 4632} 4633_ACEOF 4634if ac_fn_c_try_compile "$LINENO"; then : 4635 ac_cv_header_stdc=yes 4636else 4637 ac_cv_header_stdc=no 4638fi 4639rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4640 4641if test $ac_cv_header_stdc = yes; then 4642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4644/* end confdefs.h. */ 4645#include <string.h> 4646 4647_ACEOF 4648if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4649 $EGREP "memchr" >/dev/null 2>&1; then : 4650 4651else 4652 ac_cv_header_stdc=no 4653fi 4654rm -f conftest* 4655 4656fi 4657 4658if test $ac_cv_header_stdc = yes; then 4659 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4661/* end confdefs.h. */ 4662#include <stdlib.h> 4663 4664_ACEOF 4665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4666 $EGREP "free" >/dev/null 2>&1; then : 4667 4668else 4669 ac_cv_header_stdc=no 4670fi 4671rm -f conftest* 4672 4673fi 4674 4675if test $ac_cv_header_stdc = yes; then 4676 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4677 if test "$cross_compiling" = yes; then : 4678 : 4679else 4680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4681/* end confdefs.h. */ 4682#include <ctype.h> 4683#include <stdlib.h> 4684#if ((' ' & 0x0FF) == 0x020) 4685# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4686# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4687#else 4688# define ISLOWER(c) \ 4689 (('a' <= (c) && (c) <= 'i') \ 4690 || ('j' <= (c) && (c) <= 'r') \ 4691 || ('s' <= (c) && (c) <= 'z')) 4692# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4693#endif 4694 4695#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4696int 4697main () 4698{ 4699 int i; 4700 for (i = 0; i < 256; i++) 4701 if (XOR (islower (i), ISLOWER (i)) 4702 || toupper (i) != TOUPPER (i)) 4703 return 2; 4704 return 0; 4705} 4706_ACEOF 4707if ac_fn_c_try_run "$LINENO"; then : 4708 4709else 4710 ac_cv_header_stdc=no 4711fi 4712rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4713 conftest.$ac_objext conftest.beam conftest.$ac_ext 4714fi 4715 4716fi 4717fi 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4719$as_echo "$ac_cv_header_stdc" >&6; } 4720if test $ac_cv_header_stdc = yes; then 4721 4722$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4723 4724fi 4725 4726for ac_header in fcntl.h termcap.h termio.h termios.h unistd.h term.h ncurses/term.h 4727do : 4728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4729ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 4730eval as_val=\$$as_ac_Header 4731 if test "x$as_val" = x""yes; then : 4732 cat >>confdefs.h <<_ACEOF 4733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4734_ACEOF 4735 4736fi 4737 4738done 4739 4740 4741_cppflags="${CPPFLAGS}" 4742_ldflags="${LDFLAGS}" 4743 4744 4745# Check whether --with-ncurses was given. 4746if test "${with_ncurses+set}" = set; then : 4747 withval=$with_ncurses; 4748 if test "$withval" != "no"; then 4749 CPPFLAGS="${CPPFLAGS} -I$withval/include -I$withval/include/ncurses" 4750 LDFLAGS="${LDFLAGS} -L$withval/lib" 4751 fi 4752 4753fi 4754 4755 4756ac_fn_c_check_header_mongrel "$LINENO" "ncurses.h" "ac_cv_header_ncurses_h" "$ac_includes_default" 4757if test "x$ac_cv_header_ncurses_h" = x""yes; then : 4758 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5 4760$as_echo_n "checking for library containing initscr... " >&6; } 4761if test "${ac_cv_search_initscr+set}" = set; then : 4762 $as_echo_n "(cached) " >&6 4763else 4764 ac_func_search_save_LIBS=$LIBS 4765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4766/* end confdefs.h. */ 4767 4768/* Override any GCC internal prototype to avoid an error. 4769 Use char because int might match the return type of a GCC 4770 builtin and then its argument prototype would still apply. */ 4771#ifdef __cplusplus 4772extern "C" 4773#endif 4774char initscr (); 4775int 4776main () 4777{ 4778return initscr (); 4779 ; 4780 return 0; 4781} 4782_ACEOF 4783for ac_lib in '' ncurses; do 4784 if test -z "$ac_lib"; then 4785 ac_res="none required" 4786 else 4787 ac_res=-l$ac_lib 4788 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4789 fi 4790 if ac_fn_c_try_link "$LINENO"; then : 4791 ac_cv_search_initscr=$ac_res 4792fi 4793rm -f core conftest.err conftest.$ac_objext \ 4794 conftest$ac_exeext 4795 if test "${ac_cv_search_initscr+set}" = set; then : 4796 break 4797fi 4798done 4799if test "${ac_cv_search_initscr+set}" = set; then : 4800 4801else 4802 ac_cv_search_initscr=no 4803fi 4804rm conftest.$ac_ext 4805LIBS=$ac_func_search_save_LIBS 4806fi 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5 4808$as_echo "$ac_cv_search_initscr" >&6; } 4809ac_res=$ac_cv_search_initscr 4810if test "$ac_res" != no; then : 4811 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4812 4813 $as_echo "#define HAVE_NCURSES_H 1" >>confdefs.h 4814 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 4816$as_echo_n "checking for library containing tputs... " >&6; } 4817if test "${ac_cv_search_tputs+set}" = set; then : 4818 $as_echo_n "(cached) " >&6 4819else 4820 ac_func_search_save_LIBS=$LIBS 4821cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4822/* end confdefs.h. */ 4823 4824/* Override any GCC internal prototype to avoid an error. 4825 Use char because int might match the return type of a GCC 4826 builtin and then its argument prototype would still apply. */ 4827#ifdef __cplusplus 4828extern "C" 4829#endif 4830char tputs (); 4831int 4832main () 4833{ 4834return tputs (); 4835 ; 4836 return 0; 4837} 4838_ACEOF 4839for ac_lib in '' tinfo; do 4840 if test -z "$ac_lib"; then 4841 ac_res="none required" 4842 else 4843 ac_res=-l$ac_lib 4844 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4845 fi 4846 if ac_fn_c_try_link "$LINENO"; then : 4847 ac_cv_search_tputs=$ac_res 4848fi 4849rm -f core conftest.err conftest.$ac_objext \ 4850 conftest$ac_exeext 4851 if test "${ac_cv_search_tputs+set}" = set; then : 4852 break 4853fi 4854done 4855if test "${ac_cv_search_tputs+set}" = set; then : 4856 4857else 4858 ac_cv_search_tputs=no 4859fi 4860rm conftest.$ac_ext 4861LIBS=$ac_func_search_save_LIBS 4862fi 4863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 4864$as_echo "$ac_cv_search_tputs" >&6; } 4865ac_res=$ac_cv_search_tputs 4866if test "$ac_res" != no; then : 4867 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4868 4869fi 4870 4871else 4872 4873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5 4874$as_echo_n "checking for library containing initscr... " >&6; } 4875if test "${ac_cv_search_initscr+set}" = set; then : 4876 $as_echo_n "(cached) " >&6 4877else 4878 ac_func_search_save_LIBS=$LIBS 4879cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4880/* end confdefs.h. */ 4881 4882/* Override any GCC internal prototype to avoid an error. 4883 Use char because int might match the return type of a GCC 4884 builtin and then its argument prototype would still apply. */ 4885#ifdef __cplusplus 4886extern "C" 4887#endif 4888char initscr (); 4889int 4890main () 4891{ 4892return initscr (); 4893 ; 4894 return 0; 4895} 4896_ACEOF 4897for ac_lib in '' curses; do 4898 if test -z "$ac_lib"; then 4899 ac_res="none required" 4900 else 4901 ac_res=-l$ac_lib 4902 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4903 fi 4904 if ac_fn_c_try_link "$LINENO"; then : 4905 ac_cv_search_initscr=$ac_res 4906fi 4907rm -f core conftest.err conftest.$ac_objext \ 4908 conftest$ac_exeext 4909 if test "${ac_cv_search_initscr+set}" = set; then : 4910 break 4911fi 4912done 4913if test "${ac_cv_search_initscr+set}" = set; then : 4914 4915else 4916 ac_cv_search_initscr=no 4917fi 4918rm conftest.$ac_ext 4919LIBS=$ac_func_search_save_LIBS 4920fi 4921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5 4922$as_echo "$ac_cv_search_initscr" >&6; } 4923ac_res=$ac_cv_search_initscr 4924if test "$ac_res" != no; then : 4925 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4926 4927 $as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 4928 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 4930$as_echo_n "checking for library containing tputs... " >&6; } 4931if test "${ac_cv_search_tputs+set}" = set; then : 4932 $as_echo_n "(cached) " >&6 4933else 4934 ac_func_search_save_LIBS=$LIBS 4935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4936/* end confdefs.h. */ 4937 4938/* Override any GCC internal prototype to avoid an error. 4939 Use char because int might match the return type of a GCC 4940 builtin and then its argument prototype would still apply. */ 4941#ifdef __cplusplus 4942extern "C" 4943#endif 4944char tputs (); 4945int 4946main () 4947{ 4948return tputs (); 4949 ; 4950 return 0; 4951} 4952_ACEOF 4953for ac_lib in '' tinfo; do 4954 if test -z "$ac_lib"; then 4955 ac_res="none required" 4956 else 4957 ac_res=-l$ac_lib 4958 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4959 fi 4960 if ac_fn_c_try_link "$LINENO"; then : 4961 ac_cv_search_tputs=$ac_res 4962fi 4963rm -f core conftest.err conftest.$ac_objext \ 4964 conftest$ac_exeext 4965 if test "${ac_cv_search_tputs+set}" = set; then : 4966 break 4967fi 4968done 4969if test "${ac_cv_search_tputs+set}" = set; then : 4970 4971else 4972 ac_cv_search_tputs=no 4973fi 4974rm conftest.$ac_ext 4975LIBS=$ac_func_search_save_LIBS 4976fi 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 4978$as_echo "$ac_cv_search_tputs" >&6; } 4979ac_res=$ac_cv_search_tputs 4980if test "$ac_res" != no; then : 4981 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4982 4983fi 4984 4985else 4986 4987 as_fn_error "bvi requires the curses library" "$LINENO" 5 4988fi 4989 4990fi 4991 4992else 4993 4994 ac_fn_c_check_header_mongrel "$LINENO" "curses.h" "ac_cv_header_curses_h" "$ac_includes_default" 4995if test "x$ac_cv_header_curses_h" = x""yes; then : 4996 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing initscr" >&5 4998$as_echo_n "checking for library containing initscr... " >&6; } 4999if test "${ac_cv_search_initscr+set}" = set; then : 5000 $as_echo_n "(cached) " >&6 5001else 5002 ac_func_search_save_LIBS=$LIBS 5003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5004/* end confdefs.h. */ 5005 5006/* Override any GCC internal prototype to avoid an error. 5007 Use char because int might match the return type of a GCC 5008 builtin and then its argument prototype would still apply. */ 5009#ifdef __cplusplus 5010extern "C" 5011#endif 5012char initscr (); 5013int 5014main () 5015{ 5016return initscr (); 5017 ; 5018 return 0; 5019} 5020_ACEOF 5021for ac_lib in '' curses; do 5022 if test -z "$ac_lib"; then 5023 ac_res="none required" 5024 else 5025 ac_res=-l$ac_lib 5026 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5027 fi 5028 if ac_fn_c_try_link "$LINENO"; then : 5029 ac_cv_search_initscr=$ac_res 5030fi 5031rm -f core conftest.err conftest.$ac_objext \ 5032 conftest$ac_exeext 5033 if test "${ac_cv_search_initscr+set}" = set; then : 5034 break 5035fi 5036done 5037if test "${ac_cv_search_initscr+set}" = set; then : 5038 5039else 5040 ac_cv_search_initscr=no 5041fi 5042rm conftest.$ac_ext 5043LIBS=$ac_func_search_save_LIBS 5044fi 5045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_initscr" >&5 5046$as_echo "$ac_cv_search_initscr" >&6; } 5047ac_res=$ac_cv_search_initscr 5048if test "$ac_res" != no; then : 5049 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5050 5051 $as_echo "#define HAVE_CURSES_H 1" >>confdefs.h 5052 5053else 5054 5055 as_fn_error "bvi requires the curses library" "$LINENO" 5 5056fi 5057 5058else 5059 5060 as_fn_error "bvi requires the curses library" "$LINENO" 5 5061fi 5062 5063 5064fi 5065 5066 5067 5068 5069for ac_func in strdup strtol strtoll strerror memmove 5070do : 5071 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5072ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5073eval as_val=\$$as_ac_var 5074 if test "x$as_val" = x""yes; then : 5075 cat >>confdefs.h <<_ACEOF 5076#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5077_ACEOF 5078 5079fi 5080done 5081 5082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 5083$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 5084if test "${ac_cv_sys_largefile_source+set}" = set; then : 5085 $as_echo_n "(cached) " >&6 5086else 5087 while :; do 5088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5089/* end confdefs.h. */ 5090#include <sys/types.h> /* for off_t */ 5091 #include <stdio.h> 5092int 5093main () 5094{ 5095int (*fp) (FILE *, off_t, int) = fseeko; 5096 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 5097 ; 5098 return 0; 5099} 5100_ACEOF 5101if ac_fn_c_try_link "$LINENO"; then : 5102 ac_cv_sys_largefile_source=no; break 5103fi 5104rm -f core conftest.err conftest.$ac_objext \ 5105 conftest$ac_exeext conftest.$ac_ext 5106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5107/* end confdefs.h. */ 5108#define _LARGEFILE_SOURCE 1 5109#include <sys/types.h> /* for off_t */ 5110 #include <stdio.h> 5111int 5112main () 5113{ 5114int (*fp) (FILE *, off_t, int) = fseeko; 5115 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 5116 ; 5117 return 0; 5118} 5119_ACEOF 5120if ac_fn_c_try_link "$LINENO"; then : 5121 ac_cv_sys_largefile_source=1; break 5122fi 5123rm -f core conftest.err conftest.$ac_objext \ 5124 conftest$ac_exeext conftest.$ac_ext 5125 ac_cv_sys_largefile_source=unknown 5126 break 5127done 5128fi 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 5130$as_echo "$ac_cv_sys_largefile_source" >&6; } 5131case $ac_cv_sys_largefile_source in #( 5132 no | unknown) ;; 5133 *) 5134cat >>confdefs.h <<_ACEOF 5135#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 5136_ACEOF 5137;; 5138esac 5139rm -rf conftest* 5140 5141# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 5142# in glibc 2.1.3, but that breaks too many other things. 5143# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 5144if test $ac_cv_sys_largefile_source != unknown; then 5145 5146$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 5147 5148fi 5149 5150for ac_header in stdlib.h 5151do : 5152 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5153if test "x$ac_cv_header_stdlib_h" = x""yes; then : 5154 cat >>confdefs.h <<_ACEOF 5155#define HAVE_STDLIB_H 1 5156_ACEOF 5157 5158fi 5159 5160done 5161 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 5163$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 5164if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then : 5165 $as_echo_n "(cached) " >&6 5166else 5167 if test "$cross_compiling" = yes; then : 5168 ac_cv_func_malloc_0_nonnull=no 5169else 5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5171/* end confdefs.h. */ 5172#if defined STDC_HEADERS || defined HAVE_STDLIB_H 5173# include <stdlib.h> 5174#else 5175char *malloc (); 5176#endif 5177 5178int 5179main () 5180{ 5181return ! malloc (0); 5182 ; 5183 return 0; 5184} 5185_ACEOF 5186if ac_fn_c_try_run "$LINENO"; then : 5187 ac_cv_func_malloc_0_nonnull=yes 5188else 5189 ac_cv_func_malloc_0_nonnull=no 5190fi 5191rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5192 conftest.$ac_objext conftest.beam conftest.$ac_ext 5193fi 5194 5195fi 5196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 5197$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 5198if test $ac_cv_func_malloc_0_nonnull = yes; then : 5199 5200$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 5201 5202else 5203 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 5204 5205 case " $LIBOBJS " in 5206 *" malloc.$ac_objext "* ) ;; 5207 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 5208 ;; 5209esac 5210 5211 5212$as_echo "#define malloc rpl_malloc" >>confdefs.h 5213 5214fi 5215 5216 5217for ac_header in stdlib.h 5218do : 5219 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 5220if test "x$ac_cv_header_stdlib_h" = x""yes; then : 5221 cat >>confdefs.h <<_ACEOF 5222#define HAVE_STDLIB_H 1 5223_ACEOF 5224 5225fi 5226 5227done 5228 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 5230$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 5231if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then : 5232 $as_echo_n "(cached) " >&6 5233else 5234 if test "$cross_compiling" = yes; then : 5235 ac_cv_func_realloc_0_nonnull=no 5236else 5237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5238/* end confdefs.h. */ 5239#if defined STDC_HEADERS || defined HAVE_STDLIB_H 5240# include <stdlib.h> 5241#else 5242char *realloc (); 5243#endif 5244 5245int 5246main () 5247{ 5248return ! realloc (0, 0); 5249 ; 5250 return 0; 5251} 5252_ACEOF 5253if ac_fn_c_try_run "$LINENO"; then : 5254 ac_cv_func_realloc_0_nonnull=yes 5255else 5256 ac_cv_func_realloc_0_nonnull=no 5257fi 5258rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5259 conftest.$ac_objext conftest.beam conftest.$ac_ext 5260fi 5261 5262fi 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 5264$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 5265if test $ac_cv_func_realloc_0_nonnull = yes; then : 5266 5267$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 5268 5269else 5270 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 5271 5272 case " $LIBOBJS " in 5273 *" realloc.$ac_objext "* ) ;; 5274 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 5275 ;; 5276esac 5277 5278 5279$as_echo "#define realloc rpl_realloc" >>confdefs.h 5280 5281fi 5282 5283 5284 5285 5286 5287ac_config_files="$ac_config_files Makefile" 5288 5289cat >confcache <<\_ACEOF 5290# This file is a shell script that caches the results of configure 5291# tests run on this system so they can be shared between configure 5292# scripts and configure runs, see configure's option --config-cache. 5293# It is not useful on other systems. If it contains results you don't 5294# want to keep, you may remove or edit it. 5295# 5296# config.status only pays attention to the cache file if you give it 5297# the --recheck option to rerun configure. 5298# 5299# `ac_cv_env_foo' variables (set or unset) will be overridden when 5300# loading this file, other *unset* `ac_cv_foo' will be assigned the 5301# following values. 5302 5303_ACEOF 5304 5305# The following way of writing the cache mishandles newlines in values, 5306# but we know of no workaround that is simple, portable, and efficient. 5307# So, we kill variables containing newlines. 5308# Ultrix sh set writes to stderr and can't be redirected directly, 5309# and sets the high bit in the cache file unless we assign to the vars. 5310( 5311 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 5312 eval ac_val=\$$ac_var 5313 case $ac_val in #( 5314 *${as_nl}*) 5315 case $ac_var in #( 5316 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 5317$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 5318 esac 5319 case $ac_var in #( 5320 _ | IFS | as_nl) ;; #( 5321 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 5322 *) { eval $ac_var=; unset $ac_var;} ;; 5323 esac ;; 5324 esac 5325 done 5326 5327 (set) 2>&1 | 5328 case $as_nl`(ac_space=' '; set) 2>&1` in #( 5329 *${as_nl}ac_space=\ *) 5330 # `set' does not quote correctly, so add quotes: double-quote 5331 # substitution turns \\\\ into \\, and sed turns \\ into \. 5332 sed -n \ 5333 "s/'/'\\\\''/g; 5334 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 5335 ;; #( 5336 *) 5337 # `set' quotes correctly as required by POSIX, so do not add quotes. 5338 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 5339 ;; 5340 esac | 5341 sort 5342) | 5343 sed ' 5344 /^ac_cv_env_/b end 5345 t clear 5346 :clear 5347 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 5348 t end 5349 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 5350 :end' >>confcache 5351if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 5352 if test -w "$cache_file"; then 5353 test "x$cache_file" != "x/dev/null" && 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 5355$as_echo "$as_me: updating cache $cache_file" >&6;} 5356 cat confcache >$cache_file 5357 else 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 5359$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 5360 fi 5361fi 5362rm -f confcache 5363 5364test "x$prefix" = xNONE && prefix=$ac_default_prefix 5365# Let make expand exec_prefix. 5366test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 5367 5368DEFS=-DHAVE_CONFIG_H 5369 5370ac_libobjs= 5371ac_ltlibobjs= 5372for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 5373 # 1. Remove the extension, and $U if already installed. 5374 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 5375 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 5376 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 5377 # will be set to the directory where LIBOBJS objects are built. 5378 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 5379 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 5380done 5381LIBOBJS=$ac_libobjs 5382 5383LTLIBOBJS=$ac_ltlibobjs 5384 5385 5386 5387: ${CONFIG_STATUS=./config.status} 5388ac_write_fail=0 5389ac_clean_files_save=$ac_clean_files 5390ac_clean_files="$ac_clean_files $CONFIG_STATUS" 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 5392$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 5393as_write_fail=0 5394cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 5395#! $SHELL 5396# Generated by $as_me. 5397# Run this file to recreate the current configuration. 5398# Compiler output produced by configure, useful for debugging 5399# configure, is in config.log if it exists. 5400 5401debug=false 5402ac_cs_recheck=false 5403ac_cs_silent=false 5404 5405SHELL=\${CONFIG_SHELL-$SHELL} 5406export SHELL 5407_ASEOF 5408cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 5409## -------------------- ## 5410## M4sh Initialization. ## 5411## -------------------- ## 5412 5413# Be more Bourne compatible 5414DUALCASE=1; export DUALCASE # for MKS sh 5415if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 5416 emulate sh 5417 NULLCMD=: 5418 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 5419 # is contrary to our usage. Disable this feature. 5420 alias -g '${1+"$@"}'='"$@"' 5421 setopt NO_GLOB_SUBST 5422else 5423 case `(set -o) 2>/dev/null` in #( 5424 *posix*) : 5425 set -o posix ;; #( 5426 *) : 5427 ;; 5428esac 5429fi 5430 5431 5432as_nl=' 5433' 5434export as_nl 5435# Printing a long string crashes Solaris 7 /usr/bin/printf. 5436as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5437as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 5438as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 5439# Prefer a ksh shell builtin over an external printf program on Solaris, 5440# but without wasting forks for bash or zsh. 5441if test -z "$BASH_VERSION$ZSH_VERSION" \ 5442 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 5443 as_echo='print -r --' 5444 as_echo_n='print -rn --' 5445elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 5446 as_echo='printf %s\n' 5447 as_echo_n='printf %s' 5448else 5449 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 5450 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 5451 as_echo_n='/usr/ucb/echo -n' 5452 else 5453 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 5454 as_echo_n_body='eval 5455 arg=$1; 5456 case $arg in #( 5457 *"$as_nl"*) 5458 expr "X$arg" : "X\\(.*\\)$as_nl"; 5459 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 5460 esac; 5461 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 5462 ' 5463 export as_echo_n_body 5464 as_echo_n='sh -c $as_echo_n_body as_echo' 5465 fi 5466 export as_echo_body 5467 as_echo='sh -c $as_echo_body as_echo' 5468fi 5469 5470# The user is always right. 5471if test "${PATH_SEPARATOR+set}" != set; then 5472 PATH_SEPARATOR=: 5473 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 5474 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 5475 PATH_SEPARATOR=';' 5476 } 5477fi 5478 5479 5480# IFS 5481# We need space, tab and new line, in precisely that order. Quoting is 5482# there to prevent editors from complaining about space-tab. 5483# (If _AS_PATH_WALK were called with IFS unset, it would disable word 5484# splitting by setting IFS to empty value.) 5485IFS=" "" $as_nl" 5486 5487# Find who we are. Look in the path if we contain no directory separator. 5488case $0 in #(( 5489 *[\\/]* ) as_myself=$0 ;; 5490 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5491for as_dir in $PATH 5492do 5493 IFS=$as_save_IFS 5494 test -z "$as_dir" && as_dir=. 5495 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 5496 done 5497IFS=$as_save_IFS 5498 5499 ;; 5500esac 5501# We did not find ourselves, most probably we were run as `sh COMMAND' 5502# in which case we are not to be found in the path. 5503if test "x$as_myself" = x; then 5504 as_myself=$0 5505fi 5506if test ! -f "$as_myself"; then 5507 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 5508 exit 1 5509fi 5510 5511# Unset variables that we do not need and which cause bugs (e.g. in 5512# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 5513# suppresses any "Segmentation fault" message there. '((' could 5514# trigger a bug in pdksh 5.2.14. 5515for as_var in BASH_ENV ENV MAIL MAILPATH 5516do eval test x\${$as_var+set} = xset \ 5517 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 5518done 5519PS1='$ ' 5520PS2='> ' 5521PS4='+ ' 5522 5523# NLS nuisances. 5524LC_ALL=C 5525export LC_ALL 5526LANGUAGE=C 5527export LANGUAGE 5528 5529# CDPATH. 5530(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 5531 5532 5533# as_fn_error ERROR [LINENO LOG_FD] 5534# --------------------------------- 5535# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 5536# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 5537# script with status $?, using 1 if that was 0. 5538as_fn_error () 5539{ 5540 as_status=$?; test $as_status -eq 0 && as_status=1 5541 if test "$3"; then 5542 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 5543 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 5544 fi 5545 $as_echo "$as_me: error: $1" >&2 5546 as_fn_exit $as_status 5547} # as_fn_error 5548 5549 5550# as_fn_set_status STATUS 5551# ----------------------- 5552# Set $? to STATUS, without forking. 5553as_fn_set_status () 5554{ 5555 return $1 5556} # as_fn_set_status 5557 5558# as_fn_exit STATUS 5559# ----------------- 5560# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 5561as_fn_exit () 5562{ 5563 set +e 5564 as_fn_set_status $1 5565 exit $1 5566} # as_fn_exit 5567 5568# as_fn_unset VAR 5569# --------------- 5570# Portably unset VAR. 5571as_fn_unset () 5572{ 5573 { eval $1=; unset $1;} 5574} 5575as_unset=as_fn_unset 5576# as_fn_append VAR VALUE 5577# ---------------------- 5578# Append the text in VALUE to the end of the definition contained in VAR. Take 5579# advantage of any shell optimizations that allow amortized linear growth over 5580# repeated appends, instead of the typical quadratic growth present in naive 5581# implementations. 5582if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 5583 eval 'as_fn_append () 5584 { 5585 eval $1+=\$2 5586 }' 5587else 5588 as_fn_append () 5589 { 5590 eval $1=\$$1\$2 5591 } 5592fi # as_fn_append 5593 5594# as_fn_arith ARG... 5595# ------------------ 5596# Perform arithmetic evaluation on the ARGs, and store the result in the 5597# global $as_val. Take advantage of shells that can avoid forks. The arguments 5598# must be portable across $(()) and expr. 5599if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 5600 eval 'as_fn_arith () 5601 { 5602 as_val=$(( $* )) 5603 }' 5604else 5605 as_fn_arith () 5606 { 5607 as_val=`expr "$@" || test $? -eq 1` 5608 } 5609fi # as_fn_arith 5610 5611 5612if expr a : '\(a\)' >/dev/null 2>&1 && 5613 test "X`expr 00001 : '.*\(...\)'`" = X001; then 5614 as_expr=expr 5615else 5616 as_expr=false 5617fi 5618 5619if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 5620 as_basename=basename 5621else 5622 as_basename=false 5623fi 5624 5625if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 5626 as_dirname=dirname 5627else 5628 as_dirname=false 5629fi 5630 5631as_me=`$as_basename -- "$0" || 5632$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 5633 X"$0" : 'X\(//\)$' \| \ 5634 X"$0" : 'X\(/\)' \| . 2>/dev/null || 5635$as_echo X/"$0" | 5636 sed '/^.*\/\([^/][^/]*\)\/*$/{ 5637 s//\1/ 5638 q 5639 } 5640 /^X\/\(\/\/\)$/{ 5641 s//\1/ 5642 q 5643 } 5644 /^X\/\(\/\).*/{ 5645 s//\1/ 5646 q 5647 } 5648 s/.*/./; q'` 5649 5650# Avoid depending upon Character Ranges. 5651as_cr_letters='abcdefghijklmnopqrstuvwxyz' 5652as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 5653as_cr_Letters=$as_cr_letters$as_cr_LETTERS 5654as_cr_digits='0123456789' 5655as_cr_alnum=$as_cr_Letters$as_cr_digits 5656 5657ECHO_C= ECHO_N= ECHO_T= 5658case `echo -n x` in #((((( 5659-n*) 5660 case `echo 'xy\c'` in 5661 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 5662 xy) ECHO_C='\c';; 5663 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 5664 ECHO_T=' ';; 5665 esac;; 5666*) 5667 ECHO_N='-n';; 5668esac 5669 5670rm -f conf$$ conf$$.exe conf$$.file 5671if test -d conf$$.dir; then 5672 rm -f conf$$.dir/conf$$.file 5673else 5674 rm -f conf$$.dir 5675 mkdir conf$$.dir 2>/dev/null 5676fi 5677if (echo >conf$$.file) 2>/dev/null; then 5678 if ln -s conf$$.file conf$$ 2>/dev/null; then 5679 as_ln_s='ln -s' 5680 # ... but there are two gotchas: 5681 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 5682 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 5683 # In both cases, we have to default to `cp -p'. 5684 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 5685 as_ln_s='cp -p' 5686 elif ln conf$$.file conf$$ 2>/dev/null; then 5687 as_ln_s=ln 5688 else 5689 as_ln_s='cp -p' 5690 fi 5691else 5692 as_ln_s='cp -p' 5693fi 5694rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 5695rmdir conf$$.dir 2>/dev/null 5696 5697 5698# as_fn_mkdir_p 5699# ------------- 5700# Create "$as_dir" as a directory, including parents if necessary. 5701as_fn_mkdir_p () 5702{ 5703 5704 case $as_dir in #( 5705 -*) as_dir=./$as_dir;; 5706 esac 5707 test -d "$as_dir" || eval $as_mkdir_p || { 5708 as_dirs= 5709 while :; do 5710 case $as_dir in #( 5711 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 5712 *) as_qdir=$as_dir;; 5713 esac 5714 as_dirs="'$as_qdir' $as_dirs" 5715 as_dir=`$as_dirname -- "$as_dir" || 5716$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5717 X"$as_dir" : 'X\(//\)[^/]' \| \ 5718 X"$as_dir" : 'X\(//\)$' \| \ 5719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 5720$as_echo X"$as_dir" | 5721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5722 s//\1/ 5723 q 5724 } 5725 /^X\(\/\/\)[^/].*/{ 5726 s//\1/ 5727 q 5728 } 5729 /^X\(\/\/\)$/{ 5730 s//\1/ 5731 q 5732 } 5733 /^X\(\/\).*/{ 5734 s//\1/ 5735 q 5736 } 5737 s/.*/./; q'` 5738 test -d "$as_dir" && break 5739 done 5740 test -z "$as_dirs" || eval "mkdir $as_dirs" 5741 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 5742 5743 5744} # as_fn_mkdir_p 5745if mkdir -p . 2>/dev/null; then 5746 as_mkdir_p='mkdir -p "$as_dir"' 5747else 5748 test -d ./-p && rmdir ./-p 5749 as_mkdir_p=false 5750fi 5751 5752if test -x / >/dev/null 2>&1; then 5753 as_test_x='test -x' 5754else 5755 if ls -dL / >/dev/null 2>&1; then 5756 as_ls_L_option=L 5757 else 5758 as_ls_L_option= 5759 fi 5760 as_test_x=' 5761 eval sh -c '\'' 5762 if test -d "$1"; then 5763 test -d "$1/."; 5764 else 5765 case $1 in #( 5766 -*)set "./$1";; 5767 esac; 5768 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 5769 ???[sx]*):;;*)false;;esac;fi 5770 '\'' sh 5771 ' 5772fi 5773as_executable_p=$as_test_x 5774 5775# Sed expression to map a string onto a valid CPP name. 5776as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 5777 5778# Sed expression to map a string onto a valid variable name. 5779as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 5780 5781 5782exec 6>&1 5783## ----------------------------------- ## 5784## Main body of $CONFIG_STATUS script. ## 5785## ----------------------------------- ## 5786_ASEOF 5787test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 5788 5789cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5790# Save the log message, to keep $0 and so on meaningful, and to 5791# report actual input values of CONFIG_FILES etc. instead of their 5792# values after options handling. 5793ac_log=" 5794This file was extended by $as_me, which was 5795generated by GNU Autoconf 2.65. Invocation command line was 5796 5797 CONFIG_FILES = $CONFIG_FILES 5798 CONFIG_HEADERS = $CONFIG_HEADERS 5799 CONFIG_LINKS = $CONFIG_LINKS 5800 CONFIG_COMMANDS = $CONFIG_COMMANDS 5801 $ $0 $@ 5802 5803on `(hostname || uname -n) 2>/dev/null | sed 1q` 5804" 5805 5806_ACEOF 5807 5808case $ac_config_files in *" 5809"*) set x $ac_config_files; shift; ac_config_files=$*;; 5810esac 5811 5812case $ac_config_headers in *" 5813"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 5814esac 5815 5816 5817cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5818# Files that config.status was made for. 5819config_files="$ac_config_files" 5820config_headers="$ac_config_headers" 5821 5822_ACEOF 5823 5824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5825ac_cs_usage="\ 5826\`$as_me' instantiates files and other configuration actions 5827from templates according to the current configuration. Unless the files 5828and actions are specified as TAGs, all are instantiated by default. 5829 5830Usage: $0 [OPTION]... [TAG]... 5831 5832 -h, --help print this help, then exit 5833 -V, --version print version number and configuration settings, then exit 5834 --config print configuration, then exit 5835 -q, --quiet, --silent 5836 do not print progress messages 5837 -d, --debug don't remove temporary files 5838 --recheck update $as_me by reconfiguring in the same conditions 5839 --file=FILE[:TEMPLATE] 5840 instantiate the configuration file FILE 5841 --header=FILE[:TEMPLATE] 5842 instantiate the configuration header FILE 5843 5844Configuration files: 5845$config_files 5846 5847Configuration headers: 5848$config_headers 5849 5850Report bugs to the package provider." 5851 5852_ACEOF 5853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5854ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 5855ac_cs_version="\\ 5856config.status 5857configured by $0, generated by GNU Autoconf 2.65, 5858 with options \\"\$ac_cs_config\\" 5859 5860Copyright (C) 2009 Free Software Foundation, Inc. 5861This config.status script is free software; the Free Software Foundation 5862gives unlimited permission to copy, distribute and modify it." 5863 5864ac_pwd='$ac_pwd' 5865srcdir='$srcdir' 5866INSTALL='$INSTALL' 5867test -n "\$AWK" || AWK=awk 5868_ACEOF 5869 5870cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5871# The default lists apply if the user does not specify any file. 5872ac_need_defaults=: 5873while test $# != 0 5874do 5875 case $1 in 5876 --*=*) 5877 ac_option=`expr "X$1" : 'X\([^=]*\)='` 5878 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 5879 ac_shift=: 5880 ;; 5881 *) 5882 ac_option=$1 5883 ac_optarg=$2 5884 ac_shift=shift 5885 ;; 5886 esac 5887 5888 case $ac_option in 5889 # Handling of the options. 5890 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 5891 ac_cs_recheck=: ;; 5892 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 5893 $as_echo "$ac_cs_version"; exit ;; 5894 --config | --confi | --conf | --con | --co | --c ) 5895 $as_echo "$ac_cs_config"; exit ;; 5896 --debug | --debu | --deb | --de | --d | -d ) 5897 debug=: ;; 5898 --file | --fil | --fi | --f ) 5899 $ac_shift 5900 case $ac_optarg in 5901 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5902 esac 5903 as_fn_append CONFIG_FILES " '$ac_optarg'" 5904 ac_need_defaults=false;; 5905 --header | --heade | --head | --hea ) 5906 $ac_shift 5907 case $ac_optarg in 5908 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 5909 esac 5910 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 5911 ac_need_defaults=false;; 5912 --he | --h) 5913 # Conflict between --help and --header 5914 as_fn_error "ambiguous option: \`$1' 5915Try \`$0 --help' for more information.";; 5916 --help | --hel | -h ) 5917 $as_echo "$ac_cs_usage"; exit ;; 5918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 5919 | -silent | --silent | --silen | --sile | --sil | --si | --s) 5920 ac_cs_silent=: ;; 5921 5922 # This is an error. 5923 -*) as_fn_error "unrecognized option: \`$1' 5924Try \`$0 --help' for more information." ;; 5925 5926 *) as_fn_append ac_config_targets " $1" 5927 ac_need_defaults=false ;; 5928 5929 esac 5930 shift 5931done 5932 5933ac_configure_extra_args= 5934 5935if $ac_cs_silent; then 5936 exec 6>/dev/null 5937 ac_configure_extra_args="$ac_configure_extra_args --silent" 5938fi 5939 5940_ACEOF 5941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5942if \$ac_cs_recheck; then 5943 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 5944 shift 5945 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 5946 CONFIG_SHELL='$SHELL' 5947 export CONFIG_SHELL 5948 exec "\$@" 5949fi 5950 5951_ACEOF 5952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5953exec 5>>config.log 5954{ 5955 echo 5956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 5957## Running $as_me. ## 5958_ASBOX 5959 $as_echo "$ac_log" 5960} >&5 5961 5962_ACEOF 5963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 5964_ACEOF 5965 5966cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 5967 5968# Handling of arguments. 5969for ac_config_target in $ac_config_targets 5970do 5971 case $ac_config_target in 5972 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 5973 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 5974 5975 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 5976 esac 5977done 5978 5979 5980# If the user did not use the arguments to specify the items to instantiate, 5981# then the envvar interface is used. Set only those that are not. 5982# We use the long form for the default assignment because of an extremely 5983# bizarre bug on SunOS 4.1.3. 5984if $ac_need_defaults; then 5985 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 5986 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 5987fi 5988 5989# Have a temporary directory for convenience. Make it in the build tree 5990# simply because there is no reason against having it here, and in addition, 5991# creating and moving files from /tmp can sometimes cause problems. 5992# Hook for its removal unless debugging. 5993# Note that there is a small window in which the directory will not be cleaned: 5994# after its creation but before its name has been assigned to `$tmp'. 5995$debug || 5996{ 5997 tmp= 5998 trap 'exit_status=$? 5999 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 6000' 0 6001 trap 'as_fn_exit 1' 1 2 13 15 6002} 6003# Create a (secure) tmp directory for tmp files. 6004 6005{ 6006 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 6007 test -n "$tmp" && test -d "$tmp" 6008} || 6009{ 6010 tmp=./conf$$-$RANDOM 6011 (umask 077 && mkdir "$tmp") 6012} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 6013 6014# Set up the scripts for CONFIG_FILES section. 6015# No need to generate them if there are no CONFIG_FILES. 6016# This happens for instance with `./config.status config.h'. 6017if test -n "$CONFIG_FILES"; then 6018 6019 6020ac_cr=`echo X | tr X '\015'` 6021# On cygwin, bash can eat \r inside `` if the user requested igncr. 6022# But we know of no other shell where ac_cr would be empty at this 6023# point, so we can use a bashism as a fallback. 6024if test "x$ac_cr" = x; then 6025 eval ac_cr=\$\'\\r\' 6026fi 6027ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 6028if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 6029 ac_cs_awk_cr='\r' 6030else 6031 ac_cs_awk_cr=$ac_cr 6032fi 6033 6034echo 'BEGIN {' >"$tmp/subs1.awk" && 6035_ACEOF 6036 6037 6038{ 6039 echo "cat >conf$$subs.awk <<_ACEOF" && 6040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 6041 echo "_ACEOF" 6042} >conf$$subs.sh || 6043 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 6044ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 6045ac_delim='%!_!# ' 6046for ac_last_try in false false false false false :; do 6047 . ./conf$$subs.sh || 6048 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 6049 6050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 6051 if test $ac_delim_n = $ac_delim_num; then 6052 break 6053 elif $ac_last_try; then 6054 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 6055 else 6056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6057 fi 6058done 6059rm -f conf$$subs.sh 6060 6061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6062cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 6063_ACEOF 6064sed -n ' 6065h 6066s/^/S["/; s/!.*/"]=/ 6067p 6068g 6069s/^[^!]*!// 6070:repl 6071t repl 6072s/'"$ac_delim"'$// 6073t delim 6074:nl 6075h 6076s/\(.\{148\}\)..*/\1/ 6077t more1 6078s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 6079p 6080n 6081b repl 6082:more1 6083s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6084p 6085g 6086s/.\{148\}// 6087t nl 6088:delim 6089h 6090s/\(.\{148\}\)..*/\1/ 6091t more2 6092s/["\\]/\\&/g; s/^/"/; s/$/"/ 6093p 6094b 6095:more2 6096s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 6097p 6098g 6099s/.\{148\}// 6100t delim 6101' <conf$$subs.awk | sed ' 6102/^[^""]/{ 6103 N 6104 s/\n// 6105} 6106' >>$CONFIG_STATUS || ac_write_fail=1 6107rm -f conf$$subs.awk 6108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6109_ACAWK 6110cat >>"\$tmp/subs1.awk" <<_ACAWK && 6111 for (key in S) S_is_set[key] = 1 6112 FS = "" 6113 6114} 6115{ 6116 line = $ 0 6117 nfields = split(line, field, "@") 6118 substed = 0 6119 len = length(field[1]) 6120 for (i = 2; i < nfields; i++) { 6121 key = field[i] 6122 keylen = length(key) 6123 if (S_is_set[key]) { 6124 value = S[key] 6125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 6126 len += length(value) + length(field[++i]) 6127 substed = 1 6128 } else 6129 len += 1 + keylen 6130 } 6131 6132 print line 6133} 6134 6135_ACAWK 6136_ACEOF 6137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6138if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 6139 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 6140else 6141 cat 6142fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 6143 || as_fn_error "could not setup config files machinery" "$LINENO" 5 6144_ACEOF 6145 6146# VPATH may cause trouble with some makes, so we remove $(srcdir), 6147# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 6148# trailing colons and then remove the whole line if VPATH becomes empty 6149# (actually we leave an empty line to preserve line numbers). 6150if test "x$srcdir" = x.; then 6151 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 6152s/:*\$(srcdir):*/:/ 6153s/:*\${srcdir}:*/:/ 6154s/:*@srcdir@:*/:/ 6155s/^\([^=]*=[ ]*\):*/\1/ 6156s/:*$// 6157s/^[^=]*=[ ]*$// 6158}' 6159fi 6160 6161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6162fi # test -n "$CONFIG_FILES" 6163 6164# Set up the scripts for CONFIG_HEADERS section. 6165# No need to generate them if there are no CONFIG_HEADERS. 6166# This happens for instance with `./config.status Makefile'. 6167if test -n "$CONFIG_HEADERS"; then 6168cat >"$tmp/defines.awk" <<\_ACAWK || 6169BEGIN { 6170_ACEOF 6171 6172# Transform confdefs.h into an awk script `defines.awk', embedded as 6173# here-document in config.status, that substitutes the proper values into 6174# config.h.in to produce config.h. 6175 6176# Create a delimiter string that does not exist in confdefs.h, to ease 6177# handling of long lines. 6178ac_delim='%!_!# ' 6179for ac_last_try in false false :; do 6180 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 6181 if test -z "$ac_t"; then 6182 break 6183 elif $ac_last_try; then 6184 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 6185 else 6186 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 6187 fi 6188done 6189 6190# For the awk script, D is an array of macro values keyed by name, 6191# likewise P contains macro parameters if any. Preserve backslash 6192# newline sequences. 6193 6194ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 6195sed -n ' 6196s/.\{148\}/&'"$ac_delim"'/g 6197t rset 6198:rset 6199s/^[ ]*#[ ]*define[ ][ ]*/ / 6200t def 6201d 6202:def 6203s/\\$// 6204t bsnl 6205s/["\\]/\\&/g 6206s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6207D["\1"]=" \3"/p 6208s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 6209d 6210:bsnl 6211s/["\\]/\\&/g 6212s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 6213D["\1"]=" \3\\\\\\n"\\/p 6214t cont 6215s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 6216t cont 6217d 6218:cont 6219n 6220s/.\{148\}/&'"$ac_delim"'/g 6221t clear 6222:clear 6223s/\\$// 6224t bsnlc 6225s/["\\]/\\&/g; s/^/"/; s/$/"/p 6226d 6227:bsnlc 6228s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 6229b cont 6230' <confdefs.h | sed ' 6231s/'"$ac_delim"'/"\\\ 6232"/g' >>$CONFIG_STATUS || ac_write_fail=1 6233 6234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6235 for (key in D) D_is_set[key] = 1 6236 FS = "" 6237} 6238/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 6239 line = \$ 0 6240 split(line, arg, " ") 6241 if (arg[1] == "#") { 6242 defundef = arg[2] 6243 mac1 = arg[3] 6244 } else { 6245 defundef = substr(arg[1], 2) 6246 mac1 = arg[2] 6247 } 6248 split(mac1, mac2, "(") #) 6249 macro = mac2[1] 6250 prefix = substr(line, 1, index(line, defundef) - 1) 6251 if (D_is_set[macro]) { 6252 # Preserve the white space surrounding the "#". 6253 print prefix "define", macro P[macro] D[macro] 6254 next 6255 } else { 6256 # Replace #undef with comments. This is necessary, for example, 6257 # in the case of _POSIX_SOURCE, which is predefined and required 6258 # on some systems where configure will not decide to define it. 6259 if (defundef == "undef") { 6260 print "/*", prefix defundef, macro, "*/" 6261 next 6262 } 6263 } 6264} 6265{ print } 6266_ACAWK 6267_ACEOF 6268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6269 as_fn_error "could not setup config headers machinery" "$LINENO" 5 6270fi # test -n "$CONFIG_HEADERS" 6271 6272 6273eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 6274shift 6275for ac_tag 6276do 6277 case $ac_tag in 6278 :[FHLC]) ac_mode=$ac_tag; continue;; 6279 esac 6280 case $ac_mode$ac_tag in 6281 :[FHL]*:*);; 6282 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 6283 :[FH]-) ac_tag=-:-;; 6284 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 6285 esac 6286 ac_save_IFS=$IFS 6287 IFS=: 6288 set x $ac_tag 6289 IFS=$ac_save_IFS 6290 shift 6291 ac_file=$1 6292 shift 6293 6294 case $ac_mode in 6295 :L) ac_source=$1;; 6296 :[FH]) 6297 ac_file_inputs= 6298 for ac_f 6299 do 6300 case $ac_f in 6301 -) ac_f="$tmp/stdin";; 6302 *) # Look for the file first in the build tree, then in the source tree 6303 # (if the path is not absolute). The absolute path cannot be DOS-style, 6304 # because $ac_f cannot contain `:'. 6305 test -f "$ac_f" || 6306 case $ac_f in 6307 [\\/$]*) false;; 6308 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 6309 esac || 6310 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 6311 esac 6312 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 6313 as_fn_append ac_file_inputs " '$ac_f'" 6314 done 6315 6316 # Let's still pretend it is `configure' which instantiates (i.e., don't 6317 # use $as_me), people would be surprised to read: 6318 # /* config.h. Generated by config.status. */ 6319 configure_input='Generated from '` 6320 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 6321 `' by configure.' 6322 if test x"$ac_file" != x-; then 6323 configure_input="$ac_file. $configure_input" 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 6325$as_echo "$as_me: creating $ac_file" >&6;} 6326 fi 6327 # Neutralize special characters interpreted by sed in replacement strings. 6328 case $configure_input in #( 6329 *\&* | *\|* | *\\* ) 6330 ac_sed_conf_input=`$as_echo "$configure_input" | 6331 sed 's/[\\\\&|]/\\\\&/g'`;; #( 6332 *) ac_sed_conf_input=$configure_input;; 6333 esac 6334 6335 case $ac_tag in 6336 *:-:* | *:-) cat >"$tmp/stdin" \ 6337 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 6338 esac 6339 ;; 6340 esac 6341 6342 ac_dir=`$as_dirname -- "$ac_file" || 6343$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 6344 X"$ac_file" : 'X\(//\)[^/]' \| \ 6345 X"$ac_file" : 'X\(//\)$' \| \ 6346 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 6347$as_echo X"$ac_file" | 6348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 6349 s//\1/ 6350 q 6351 } 6352 /^X\(\/\/\)[^/].*/{ 6353 s//\1/ 6354 q 6355 } 6356 /^X\(\/\/\)$/{ 6357 s//\1/ 6358 q 6359 } 6360 /^X\(\/\).*/{ 6361 s//\1/ 6362 q 6363 } 6364 s/.*/./; q'` 6365 as_dir="$ac_dir"; as_fn_mkdir_p 6366 ac_builddir=. 6367 6368case "$ac_dir" in 6369.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 6370*) 6371 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 6372 # A ".." for each directory in $ac_dir_suffix. 6373 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 6374 case $ac_top_builddir_sub in 6375 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 6376 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 6377 esac ;; 6378esac 6379ac_abs_top_builddir=$ac_pwd 6380ac_abs_builddir=$ac_pwd$ac_dir_suffix 6381# for backward compatibility: 6382ac_top_builddir=$ac_top_build_prefix 6383 6384case $srcdir in 6385 .) # We are building in place. 6386 ac_srcdir=. 6387 ac_top_srcdir=$ac_top_builddir_sub 6388 ac_abs_top_srcdir=$ac_pwd ;; 6389 [\\/]* | ?:[\\/]* ) # Absolute name. 6390 ac_srcdir=$srcdir$ac_dir_suffix; 6391 ac_top_srcdir=$srcdir 6392 ac_abs_top_srcdir=$srcdir ;; 6393 *) # Relative name. 6394 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 6395 ac_top_srcdir=$ac_top_build_prefix$srcdir 6396 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 6397esac 6398ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 6399 6400 6401 case $ac_mode in 6402 :F) 6403 # 6404 # CONFIG_FILE 6405 # 6406 6407 case $INSTALL in 6408 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 6409 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 6410 esac 6411_ACEOF 6412 6413cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6414# If the template does not know about datarootdir, expand it. 6415# FIXME: This hack should be removed a few years after 2.60. 6416ac_datarootdir_hack=; ac_datarootdir_seen= 6417ac_sed_dataroot=' 6418/datarootdir/ { 6419 p 6420 q 6421} 6422/@datadir@/p 6423/@docdir@/p 6424/@infodir@/p 6425/@localedir@/p 6426/@mandir@/p' 6427case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 6428*datarootdir*) ac_datarootdir_seen=yes;; 6429*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 6431$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 6432_ACEOF 6433cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6434 ac_datarootdir_hack=' 6435 s&@datadir@&$datadir&g 6436 s&@docdir@&$docdir&g 6437 s&@infodir@&$infodir&g 6438 s&@localedir@&$localedir&g 6439 s&@mandir@&$mandir&g 6440 s&\\\${datarootdir}&$datarootdir&g' ;; 6441esac 6442_ACEOF 6443 6444# Neutralize VPATH when `$srcdir' = `.'. 6445# Shell code in configure.ac might set extrasub. 6446# FIXME: do we really want to maintain this feature? 6447cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 6448ac_sed_extra="$ac_vpsub 6449$extrasub 6450_ACEOF 6451cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 6452:t 6453/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 6454s|@configure_input@|$ac_sed_conf_input|;t t 6455s&@top_builddir@&$ac_top_builddir_sub&;t t 6456s&@top_build_prefix@&$ac_top_build_prefix&;t t 6457s&@srcdir@&$ac_srcdir&;t t 6458s&@abs_srcdir@&$ac_abs_srcdir&;t t 6459s&@top_srcdir@&$ac_top_srcdir&;t t 6460s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 6461s&@builddir@&$ac_builddir&;t t 6462s&@abs_builddir@&$ac_abs_builddir&;t t 6463s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 6464s&@INSTALL@&$ac_INSTALL&;t t 6465$ac_datarootdir_hack 6466" 6467eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 6468 || as_fn_error "could not create $ac_file" "$LINENO" 5 6469 6470test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 6471 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 6472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 6473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6474which seems to be undefined. Please make sure it is defined." >&5 6475$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 6476which seems to be undefined. Please make sure it is defined." >&2;} 6477 6478 rm -f "$tmp/stdin" 6479 case $ac_file in 6480 -) cat "$tmp/out" && rm -f "$tmp/out";; 6481 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 6482 esac \ 6483 || as_fn_error "could not create $ac_file" "$LINENO" 5 6484 ;; 6485 :H) 6486 # 6487 # CONFIG_HEADER 6488 # 6489 if test x"$ac_file" != x-; then 6490 { 6491 $as_echo "/* $configure_input */" \ 6492 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 6493 } >"$tmp/config.h" \ 6494 || as_fn_error "could not create $ac_file" "$LINENO" 5 6495 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 6497$as_echo "$as_me: $ac_file is unchanged" >&6;} 6498 else 6499 rm -f "$ac_file" 6500 mv "$tmp/config.h" "$ac_file" \ 6501 || as_fn_error "could not create $ac_file" "$LINENO" 5 6502 fi 6503 else 6504 $as_echo "/* $configure_input */" \ 6505 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 6506 || as_fn_error "could not create -" "$LINENO" 5 6507 fi 6508 ;; 6509 6510 6511 esac 6512 6513done # for ac_tag 6514 6515 6516as_fn_exit 0 6517_ACEOF 6518ac_clean_files=$ac_clean_files_save 6519 6520test $ac_write_fail = 0 || 6521 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 6522 6523 6524# configure is writing to config.log, and then calls config.status. 6525# config.status does its own redirection, appending to config.log. 6526# Unfortunately, on DOS this fails, as config.log is still kept open 6527# by configure, so config.status won't be able to write to it; its 6528# output is simply discarded. So we exec the FD to /dev/null, 6529# effectively closing config.log, so it can be properly (re)opened and 6530# appended to by config.status. When coming back to configure, we 6531# need to make the FD available again. 6532if test "$no_create" != yes; then 6533 ac_cs_success=: 6534 ac_config_status_args= 6535 test "$silent" = yes && 6536 ac_config_status_args="$ac_config_status_args --quiet" 6537 exec 5>/dev/null 6538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 6539 exec 5>>config.log 6540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 6541 # would make configure fail if this is the last instruction. 6542 $ac_cs_success || as_fn_exit $? 6543fi 6544if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 6545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 6546$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 6547fi 6548 6549