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