configure revision c1986ecb6fc68427db7579d409929939117e45ff
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.65. 4# 5# 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 8# Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1" 175 if (eval "$as_required") 2>/dev/null; then : 176 as_have_required=yes 177else 178 as_have_required=no 179fi 180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 181 182else 183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 184as_found=false 185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 186do 187 IFS=$as_save_IFS 188 test -z "$as_dir" && as_dir=. 189 as_found=: 190 case $as_dir in #( 191 /*) 192 for as_base in sh bash ksh sh5; do 193 # Try only shells that exist, to save several forks. 194 as_shell=$as_dir/$as_base 195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 197 CONFIG_SHELL=$as_shell as_have_required=yes 198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 199 break 2 200fi 201fi 202 done;; 203 esac 204 as_found=false 205done 206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 208 CONFIG_SHELL=$SHELL as_have_required=yes 209fi; } 210IFS=$as_save_IFS 211 212 213 if test "x$CONFIG_SHELL" != x; then : 214 # We cannot yet assume a decent shell, so we have to provide a 215 # neutralization value for shells without unset; and this also 216 # works around shells that cannot unset nonexistent variables. 217 BASH_ENV=/dev/null 218 ENV=/dev/null 219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 220 export CONFIG_SHELL 221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 222fi 223 224 if test x$as_have_required = xno; then : 225 $as_echo "$0: This script requires a shell more modern than all" 226 $as_echo "$0: the shells that I found on your system." 227 if test x${ZSH_VERSION+set} = xset ; then 228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 229 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 230 else 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 232$0: including any error possibly output before this 233$0: message. Then install a modern shell, or manually run 234$0: the script under such a shell if you do have one." 235 fi 236 exit 1 237fi 238fi 239fi 240SHELL=${CONFIG_SHELL-/bin/sh} 241export SHELL 242# Unset more variables known to interfere with behavior of common tools. 243CLICOLOR_FORCE= GREP_OPTIONS= 244unset CLICOLOR_FORCE GREP_OPTIONS 245 246## --------------------- ## 247## M4sh Shell Functions. ## 248## --------------------- ## 249# as_fn_unset VAR 250# --------------- 251# Portably unset VAR. 252as_fn_unset () 253{ 254 { eval $1=; unset $1;} 255} 256as_unset=as_fn_unset 257 258# as_fn_set_status STATUS 259# ----------------------- 260# Set $? to STATUS, without forking. 261as_fn_set_status () 262{ 263 return $1 264} # as_fn_set_status 265 266# as_fn_exit STATUS 267# ----------------- 268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 269as_fn_exit () 270{ 271 set +e 272 as_fn_set_status $1 273 exit $1 274} # as_fn_exit 275 276# as_fn_mkdir_p 277# ------------- 278# Create "$as_dir" as a directory, including parents if necessary. 279as_fn_mkdir_p () 280{ 281 282 case $as_dir in #( 283 -*) as_dir=./$as_dir;; 284 esac 285 test -d "$as_dir" || eval $as_mkdir_p || { 286 as_dirs= 287 while :; do 288 case $as_dir in #( 289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 290 *) as_qdir=$as_dir;; 291 esac 292 as_dirs="'$as_qdir' $as_dirs" 293 as_dir=`$as_dirname -- "$as_dir" || 294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 295 X"$as_dir" : 'X\(//\)[^/]' \| \ 296 X"$as_dir" : 'X\(//\)$' \| \ 297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 298$as_echo X"$as_dir" | 299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 300 s//\1/ 301 q 302 } 303 /^X\(\/\/\)[^/].*/{ 304 s//\1/ 305 q 306 } 307 /^X\(\/\/\)$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\).*/{ 312 s//\1/ 313 q 314 } 315 s/.*/./; q'` 316 test -d "$as_dir" && break 317 done 318 test -z "$as_dirs" || eval "mkdir $as_dirs" 319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 320 321 322} # as_fn_mkdir_p 323# as_fn_append VAR VALUE 324# ---------------------- 325# Append the text in VALUE to the end of the definition contained in VAR. Take 326# advantage of any shell optimizations that allow amortized linear growth over 327# repeated appends, instead of the typical quadratic growth present in naive 328# implementations. 329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 330 eval 'as_fn_append () 331 { 332 eval $1+=\$2 333 }' 334else 335 as_fn_append () 336 { 337 eval $1=\$$1\$2 338 } 339fi # as_fn_append 340 341# as_fn_arith ARG... 342# ------------------ 343# Perform arithmetic evaluation on the ARGs, and store the result in the 344# global $as_val. Take advantage of shells that can avoid forks. The arguments 345# must be portable across $(()) and expr. 346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 347 eval 'as_fn_arith () 348 { 349 as_val=$(( $* )) 350 }' 351else 352 as_fn_arith () 353 { 354 as_val=`expr "$@" || test $? -eq 1` 355 } 356fi # as_fn_arith 357 358 359# as_fn_error ERROR [LINENO LOG_FD] 360# --------------------------------- 361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 363# script with status $?, using 1 if that was 0. 364as_fn_error () 365{ 366 as_status=$?; test $as_status -eq 0 && as_status=1 367 if test "$3"; then 368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 370 fi 371 $as_echo "$as_me: error: $1" >&2 372 as_fn_exit $as_status 373} # as_fn_error 374 375if expr a : '\(a\)' >/dev/null 2>&1 && 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 377 as_expr=expr 378else 379 as_expr=false 380fi 381 382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 383 as_basename=basename 384else 385 as_basename=false 386fi 387 388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 389 as_dirname=dirname 390else 391 as_dirname=false 392fi 393 394as_me=`$as_basename -- "$0" || 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 396 X"$0" : 'X\(//\)$' \| \ 397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 398$as_echo X/"$0" | 399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 400 s//\1/ 401 q 402 } 403 /^X\/\(\/\/\)$/{ 404 s//\1/ 405 q 406 } 407 /^X\/\(\/\).*/{ 408 s//\1/ 409 q 410 } 411 s/.*/./; q'` 412 413# Avoid depending upon Character Ranges. 414as_cr_letters='abcdefghijklmnopqrstuvwxyz' 415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 416as_cr_Letters=$as_cr_letters$as_cr_LETTERS 417as_cr_digits='0123456789' 418as_cr_alnum=$as_cr_Letters$as_cr_digits 419 420 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 426 sed -n ' 427 p 428 /[$]LINENO/= 429 ' <$as_myself | 430 sed ' 431 s/[$]LINENO.*/&-/ 432 t lineno 433 b 434 :lineno 435 N 436 :loop 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 438 t loop 439 s/-\n.*// 440 ' >$as_me.lineno && 441 chmod +x "$as_me.lineno" || 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 443 444 # Don't try to exec as it changes $[0], causing all sort of problems 445 # (the dirname of $[0] is not the place where we might find the 446 # original and so on. Autoconf is especially sensitive to this). 447 . "./$as_me.lineno" 448 # Exit status is that of the last command. 449 exit 450} 451 452ECHO_C= ECHO_N= ECHO_T= 453case `echo -n x` in #((((( 454-n*) 455 case `echo 'xy\c'` in 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 457 xy) ECHO_C='\c';; 458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 459 ECHO_T=' ';; 460 esac;; 461*) 462 ECHO_N='-n';; 463esac 464 465rm -f conf$$ conf$$.exe conf$$.file 466if test -d conf$$.dir; then 467 rm -f conf$$.dir/conf$$.file 468else 469 rm -f conf$$.dir 470 mkdir conf$$.dir 2>/dev/null 471fi 472if (echo >conf$$.file) 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then 474 as_ln_s='ln -s' 475 # ... but there are two gotchas: 476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 478 # In both cases, we have to default to `cp -p'. 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 480 as_ln_s='cp -p' 481 elif ln conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s=ln 483 else 484 as_ln_s='cp -p' 485 fi 486else 487 as_ln_s='cp -p' 488fi 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 490rmdir conf$$.dir 2>/dev/null 491 492if mkdir -p . 2>/dev/null; then 493 as_mkdir_p='mkdir -p "$as_dir"' 494else 495 test -d ./-p && rmdir ./-p 496 as_mkdir_p=false 497fi 498 499if test -x / >/dev/null 2>&1; then 500 as_test_x='test -x' 501else 502 if ls -dL / >/dev/null 2>&1; then 503 as_ls_L_option=L 504 else 505 as_ls_L_option= 506 fi 507 as_test_x=' 508 eval sh -c '\'' 509 if test -d "$1"; then 510 test -d "$1/."; 511 else 512 case $1 in #( 513 -*)set "./$1";; 514 esac; 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 516 ???[sx]*):;;*)false;;esac;fi 517 '\'' sh 518 ' 519fi 520as_executable_p=$as_test_x 521 522# Sed expression to map a string onto a valid CPP name. 523as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 524 525# Sed expression to map a string onto a valid variable name. 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 527 528 529test -n "$DJDIR" || exec 7<&0 </dev/null 530exec 6>&1 531 532# Name of the host. 533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 534# so uname gets run too. 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 536 537# 538# Initializations. 539# 540ac_default_prefix=/usr/local 541ac_clean_files= 542ac_config_libobj_dir=. 543LIBOBJS= 544cross_compiling=no 545subdirs= 546MFLAGS= 547MAKEFLAGS= 548 549# Identity of this package. 550PACKAGE_NAME= 551PACKAGE_TARNAME= 552PACKAGE_VERSION= 553PACKAGE_STRING= 554PACKAGE_BUGREPORT= 555PACKAGE_URL= 556 557ac_unique_file="version.h" 558# Factoring default headers for most tests. 559ac_includes_default="\ 560#include <stdio.h> 561#ifdef HAVE_SYS_TYPES_H 562# include <sys/types.h> 563#endif 564#ifdef HAVE_SYS_STAT_H 565# include <sys/stat.h> 566#endif 567#ifdef STDC_HEADERS 568# include <stdlib.h> 569# include <stddef.h> 570#else 571# ifdef HAVE_STDLIB_H 572# include <stdlib.h> 573# endif 574#endif 575#ifdef HAVE_STRING_H 576# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 577# include <memory.h> 578# endif 579# include <string.h> 580#endif 581#ifdef HAVE_STRINGS_H 582# include <strings.h> 583#endif 584#ifdef HAVE_INTTYPES_H 585# include <inttypes.h> 586#endif 587#ifdef HAVE_STDINT_H 588# include <stdint.h> 589#endif 590#ifdef HAVE_UNISTD_H 591# include <unistd.h> 592#endif" 593 594ac_header_list= 595ac_subst_vars='LTLIBOBJS 596LIBOBJS 597BUILD_LDFLAGS 598BUILD_CFLAGS 599INCLUDES 600DO_TEST_SUITE 601ET_DIR 602SS_DIR 603LDFLAG_STATIC 604root_sysconfdir 605root_libdir 606root_sbindir 607root_bindir 608root_prefix 609UNIX_CMT 610CYGWIN_CMT 611LINUX_CMT 612UNI_DIFF_OPTS 613SEM_INIT_LIB 614SOCKET_LIB 615SIZEOF_LONG_LONG 616SIZEOF_LONG 617SIZEOF_INT 618SIZEOF_SHORT 619BUILD_CC 620MAKEINFO 621STRIP 622AR 623LDCONFIG 624PERL 625SED 626AWK 627CHMOD 628RM 629CP 630MV 631LN_S 632LN 633ifNotGNUmake 634ifGNUmake 635BINARY_TYPE 636POSUB 637LTLIBINTL 638LIBINTL 639INTLLIBS 640INTL_LIBTOOL_SUFFIX_PREFIX 641INTLOBJS 642GENCAT 643INSTOBJEXT 644DATADIRNAME 645CATOBJEXT 646USE_INCLUDED_LIBINTL 647BUILD_INCLUDED_LIBINTL 648INTLBISON 649LTLIBICONV 650LIBICONV 651HAVE_WPRINTF 652HAVE_SNPRINTF 653HAVE_ASPRINTF 654HAVE_POSIX_PRINTF 655GLIBC21 656ALLOCA 657EGREP 658GREP 659RANLIB 660MSGMERGE 661XGETTEXT 662GMSGFMT 663MSGFMT 664USE_NLS 665MKINSTALLDIRS 666INSTALL_DATA 667INSTALL_SCRIPT 668INSTALL_PROGRAM 669SET_MAKE 670VERSION 671PACKAGE 672GETTEXT_PACKAGE 673UUIDD_CMT 674E2INITRD_MAN 675E2INITRD_PROG 676FSCK_MAN 677FSCK_PROG 678DEFRAG_CMT 679RESIZER_CMT 680IMAGER_CMT 681DEBUGFS_CMT 682QUOTA_CMT 683DEPPROFILED_LIBQUOTA 684PROFILED_LIBQUOTA 685DEPSTATIC_LIBQUOTA 686STATIC_LIBQUOTA 687DEPLIBQUOTA 688LIBQUOTA 689BLKID_CMT 690DEPPROFILED_LIBBLKID 691PROFILED_LIBBLKID 692DEPSTATIC_LIBBLKID 693STATIC_LIBBLKID 694DEPLIBBLKID 695LIBBLKID 696UUID_CMT 697DEPPROFILED_LIBUUID 698PROFILED_LIBUUID 699DEPSTATIC_LIBUUID 700STATIC_LIBUUID 701DEPLIBUUID 702LIBUUID 703PKG_CONFIG 704TEST_IO_CMT 705PRIVATE_LIBS_CMT 706LDFLAG_DYNAMIC 707PROFILED_LIB_EXT 708STATIC_LIB_EXT 709LIB_EXT 710CHECKER_CMT 711PROFILE_CMT 712BSDLIB_CMT 713ELF_CMT 714HTREE_CMT 715Q 716ES 717E 718LINK_BUILD_FLAGS 719SYMLINK_RELATIVE 720LINK_INSTALL_FLAGS 721MAINTAINER_CMT 722CPP 723RDYNAMIC 724DLOPEN_LIB 725OBJEXT 726EXEEXT 727ac_ct_CC 728CPPFLAGS 729LDFLAGS 730CFLAGS 731CC 732host_os 733host_vendor 734host_cpu 735host 736build_os 737build_vendor 738build_cpu 739build 740E2FSPROGS_PKGVER 741E2FSPROGS_VERSION 742E2FSPROGS_DAY 743E2FSPROGS_MONTH 744E2FSPROGS_YEAR 745target_alias 746host_alias 747build_alias 748LIBS 749ECHO_T 750ECHO_N 751ECHO_C 752DEFS 753mandir 754localedir 755libdir 756psdir 757pdfdir 758dvidir 759htmldir 760infodir 761docdir 762oldincludedir 763includedir 764localstatedir 765sharedstatedir 766sysconfdir 767datadir 768datarootdir 769libexecdir 770sbindir 771bindir 772program_transform_name 773prefix 774exec_prefix 775PACKAGE_URL 776PACKAGE_BUGREPORT 777PACKAGE_STRING 778PACKAGE_VERSION 779PACKAGE_TARNAME 780PACKAGE_NAME 781PATH_SEPARATOR 782SHELL' 783ac_subst_files='MCONFIG 784MAKEFILE_ELF 785MAKEFILE_BSDLIB 786MAKEFILE_PROFILE 787MAKEFILE_CHECKER 788MAKEFILE_LIBRARY 789ASM_TYPES_HEADER 790PUBLIC_CONFIG_HEADER' 791ac_user_opts=' 792enable_option_checking 793with_diet_libc 794with_cc 795with_ccopts 796with_ldopts 797with_root_prefix 798enable_maintainer_mode 799enable_symlink_install 800enable_symlink_relative_symlinks 801enable_symlink_build 802enable_verbose_makecmds 803enable_compression 804enable_htree 805enable_elf_shlibs 806enable_bsd_shlibs 807enable_profile 808enable_checker 809enable_jbd_debug 810enable_blkid_debug 811enable_testio_debug 812enable_libuuid 813enable_libblkid 814enable_quota 815enable_debugfs 816enable_imager 817enable_resizer 818enable_defrag 819enable_fsck 820enable_e2initrd_helper 821enable_tls 822enable_uuidd 823enable_nls 824with_gnu_ld 825enable_rpath 826with_libiconv_prefix 827with_included_gettext 828with_libintl_prefix 829with_multiarch 830' 831 ac_precious_vars='build_alias 832host_alias 833target_alias 834CC 835CFLAGS 836LDFLAGS 837LIBS 838CPPFLAGS 839CPP 840PKG_CONFIG' 841 842 843# Initialize some variables set by options. 844ac_init_help= 845ac_init_version=false 846ac_unrecognized_opts= 847ac_unrecognized_sep= 848# The variables have the same names as the options, with 849# dashes changed to underlines. 850cache_file=/dev/null 851exec_prefix=NONE 852no_create= 853no_recursion= 854prefix=NONE 855program_prefix=NONE 856program_suffix=NONE 857program_transform_name=s,x,x, 858silent= 859site= 860srcdir= 861verbose= 862x_includes=NONE 863x_libraries=NONE 864 865# Installation directory options. 866# These are left unexpanded so users can "make install exec_prefix=/foo" 867# and all the variables that are supposed to be based on exec_prefix 868# by default will actually change. 869# Use braces instead of parens because sh, perl, etc. also accept them. 870# (The list follows the same order as the GNU Coding Standards.) 871bindir='${exec_prefix}/bin' 872sbindir='${exec_prefix}/sbin' 873libexecdir='${exec_prefix}/libexec' 874datarootdir='${prefix}/share' 875datadir='${datarootdir}' 876sysconfdir='${prefix}/etc' 877sharedstatedir='${prefix}/com' 878localstatedir='${prefix}/var' 879includedir='${prefix}/include' 880oldincludedir='/usr/include' 881docdir='${datarootdir}/doc/${PACKAGE}' 882infodir='${datarootdir}/info' 883htmldir='${docdir}' 884dvidir='${docdir}' 885pdfdir='${docdir}' 886psdir='${docdir}' 887libdir='${exec_prefix}/lib' 888localedir='${datarootdir}/locale' 889mandir='${datarootdir}/man' 890 891ac_prev= 892ac_dashdash= 893for ac_option 894do 895 # If the previous option needs an argument, assign it. 896 if test -n "$ac_prev"; then 897 eval $ac_prev=\$ac_option 898 ac_prev= 899 continue 900 fi 901 902 case $ac_option in 903 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 904 *) ac_optarg=yes ;; 905 esac 906 907 # Accept the important Cygnus configure options, so we can diagnose typos. 908 909 case $ac_dashdash$ac_option in 910 --) 911 ac_dashdash=yes ;; 912 913 -bindir | --bindir | --bindi | --bind | --bin | --bi) 914 ac_prev=bindir ;; 915 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 916 bindir=$ac_optarg ;; 917 918 -build | --build | --buil | --bui | --bu) 919 ac_prev=build_alias ;; 920 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 921 build_alias=$ac_optarg ;; 922 923 -cache-file | --cache-file | --cache-fil | --cache-fi \ 924 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 925 ac_prev=cache_file ;; 926 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 927 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 928 cache_file=$ac_optarg ;; 929 930 --config-cache | -C) 931 cache_file=config.cache ;; 932 933 -datadir | --datadir | --datadi | --datad) 934 ac_prev=datadir ;; 935 -datadir=* | --datadir=* | --datadi=* | --datad=*) 936 datadir=$ac_optarg ;; 937 938 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 939 | --dataroo | --dataro | --datar) 940 ac_prev=datarootdir ;; 941 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 942 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 943 datarootdir=$ac_optarg ;; 944 945 -disable-* | --disable-*) 946 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 947 # Reject names that are not valid shell variable names. 948 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 949 as_fn_error "invalid feature name: $ac_useropt" 950 ac_useropt_orig=$ac_useropt 951 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 952 case $ac_user_opts in 953 *" 954"enable_$ac_useropt" 955"*) ;; 956 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 957 ac_unrecognized_sep=', ';; 958 esac 959 eval enable_$ac_useropt=no ;; 960 961 -docdir | --docdir | --docdi | --doc | --do) 962 ac_prev=docdir ;; 963 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 964 docdir=$ac_optarg ;; 965 966 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 967 ac_prev=dvidir ;; 968 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 969 dvidir=$ac_optarg ;; 970 971 -enable-* | --enable-*) 972 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 973 # Reject names that are not valid shell variable names. 974 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 975 as_fn_error "invalid feature name: $ac_useropt" 976 ac_useropt_orig=$ac_useropt 977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 978 case $ac_user_opts in 979 *" 980"enable_$ac_useropt" 981"*) ;; 982 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 983 ac_unrecognized_sep=', ';; 984 esac 985 eval enable_$ac_useropt=\$ac_optarg ;; 986 987 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 988 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 989 | --exec | --exe | --ex) 990 ac_prev=exec_prefix ;; 991 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 992 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 993 | --exec=* | --exe=* | --ex=*) 994 exec_prefix=$ac_optarg ;; 995 996 -gas | --gas | --ga | --g) 997 # Obsolete; use --with-gas. 998 with_gas=yes ;; 999 1000 -help | --help | --hel | --he | -h) 1001 ac_init_help=long ;; 1002 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1003 ac_init_help=recursive ;; 1004 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1005 ac_init_help=short ;; 1006 1007 -host | --host | --hos | --ho) 1008 ac_prev=host_alias ;; 1009 -host=* | --host=* | --hos=* | --ho=*) 1010 host_alias=$ac_optarg ;; 1011 1012 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1013 ac_prev=htmldir ;; 1014 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1015 | --ht=*) 1016 htmldir=$ac_optarg ;; 1017 1018 -includedir | --includedir | --includedi | --included | --include \ 1019 | --includ | --inclu | --incl | --inc) 1020 ac_prev=includedir ;; 1021 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1022 | --includ=* | --inclu=* | --incl=* | --inc=*) 1023 includedir=$ac_optarg ;; 1024 1025 -infodir | --infodir | --infodi | --infod | --info | --inf) 1026 ac_prev=infodir ;; 1027 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1028 infodir=$ac_optarg ;; 1029 1030 -libdir | --libdir | --libdi | --libd) 1031 ac_prev=libdir ;; 1032 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1033 libdir=$ac_optarg ;; 1034 1035 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1036 | --libexe | --libex | --libe) 1037 ac_prev=libexecdir ;; 1038 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1039 | --libexe=* | --libex=* | --libe=*) 1040 libexecdir=$ac_optarg ;; 1041 1042 -localedir | --localedir | --localedi | --localed | --locale) 1043 ac_prev=localedir ;; 1044 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1045 localedir=$ac_optarg ;; 1046 1047 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1048 | --localstate | --localstat | --localsta | --localst | --locals) 1049 ac_prev=localstatedir ;; 1050 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1051 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1052 localstatedir=$ac_optarg ;; 1053 1054 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1055 ac_prev=mandir ;; 1056 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1057 mandir=$ac_optarg ;; 1058 1059 -nfp | --nfp | --nf) 1060 # Obsolete; use --without-fp. 1061 with_fp=no ;; 1062 1063 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1064 | --no-cr | --no-c | -n) 1065 no_create=yes ;; 1066 1067 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1068 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1069 no_recursion=yes ;; 1070 1071 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1072 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1073 | --oldin | --oldi | --old | --ol | --o) 1074 ac_prev=oldincludedir ;; 1075 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1076 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1077 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1078 oldincludedir=$ac_optarg ;; 1079 1080 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1081 ac_prev=prefix ;; 1082 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1083 prefix=$ac_optarg ;; 1084 1085 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1086 | --program-pre | --program-pr | --program-p) 1087 ac_prev=program_prefix ;; 1088 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1089 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1090 program_prefix=$ac_optarg ;; 1091 1092 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1093 | --program-suf | --program-su | --program-s) 1094 ac_prev=program_suffix ;; 1095 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1096 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1097 program_suffix=$ac_optarg ;; 1098 1099 -program-transform-name | --program-transform-name \ 1100 | --program-transform-nam | --program-transform-na \ 1101 | --program-transform-n | --program-transform- \ 1102 | --program-transform | --program-transfor \ 1103 | --program-transfo | --program-transf \ 1104 | --program-trans | --program-tran \ 1105 | --progr-tra | --program-tr | --program-t) 1106 ac_prev=program_transform_name ;; 1107 -program-transform-name=* | --program-transform-name=* \ 1108 | --program-transform-nam=* | --program-transform-na=* \ 1109 | --program-transform-n=* | --program-transform-=* \ 1110 | --program-transform=* | --program-transfor=* \ 1111 | --program-transfo=* | --program-transf=* \ 1112 | --program-trans=* | --program-tran=* \ 1113 | --progr-tra=* | --program-tr=* | --program-t=*) 1114 program_transform_name=$ac_optarg ;; 1115 1116 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1117 ac_prev=pdfdir ;; 1118 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1119 pdfdir=$ac_optarg ;; 1120 1121 -psdir | --psdir | --psdi | --psd | --ps) 1122 ac_prev=psdir ;; 1123 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1124 psdir=$ac_optarg ;; 1125 1126 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1127 | -silent | --silent | --silen | --sile | --sil) 1128 silent=yes ;; 1129 1130 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1131 ac_prev=sbindir ;; 1132 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1133 | --sbi=* | --sb=*) 1134 sbindir=$ac_optarg ;; 1135 1136 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1137 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1138 | --sharedst | --shareds | --shared | --share | --shar \ 1139 | --sha | --sh) 1140 ac_prev=sharedstatedir ;; 1141 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1142 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1143 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1144 | --sha=* | --sh=*) 1145 sharedstatedir=$ac_optarg ;; 1146 1147 -site | --site | --sit) 1148 ac_prev=site ;; 1149 -site=* | --site=* | --sit=*) 1150 site=$ac_optarg ;; 1151 1152 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1153 ac_prev=srcdir ;; 1154 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1155 srcdir=$ac_optarg ;; 1156 1157 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1158 | --syscon | --sysco | --sysc | --sys | --sy) 1159 ac_prev=sysconfdir ;; 1160 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1161 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1162 sysconfdir=$ac_optarg ;; 1163 1164 -target | --target | --targe | --targ | --tar | --ta | --t) 1165 ac_prev=target_alias ;; 1166 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1167 target_alias=$ac_optarg ;; 1168 1169 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1170 verbose=yes ;; 1171 1172 -version | --version | --versio | --versi | --vers | -V) 1173 ac_init_version=: ;; 1174 1175 -with-* | --with-*) 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1177 # Reject names that are not valid shell variable names. 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1179 as_fn_error "invalid package name: $ac_useropt" 1180 ac_useropt_orig=$ac_useropt 1181 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 case $ac_user_opts in 1183 *" 1184"with_$ac_useropt" 1185"*) ;; 1186 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1187 ac_unrecognized_sep=', ';; 1188 esac 1189 eval with_$ac_useropt=\$ac_optarg ;; 1190 1191 -without-* | --without-*) 1192 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1193 # Reject names that are not valid shell variable names. 1194 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 as_fn_error "invalid package name: $ac_useropt" 1196 ac_useropt_orig=$ac_useropt 1197 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1198 case $ac_user_opts in 1199 *" 1200"with_$ac_useropt" 1201"*) ;; 1202 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1203 ac_unrecognized_sep=', ';; 1204 esac 1205 eval with_$ac_useropt=no ;; 1206 1207 --x) 1208 # Obsolete; use --with-x. 1209 with_x=yes ;; 1210 1211 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1212 | --x-incl | --x-inc | --x-in | --x-i) 1213 ac_prev=x_includes ;; 1214 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1215 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1216 x_includes=$ac_optarg ;; 1217 1218 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1219 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1220 ac_prev=x_libraries ;; 1221 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1222 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1223 x_libraries=$ac_optarg ;; 1224 1225 -*) as_fn_error "unrecognized option: \`$ac_option' 1226Try \`$0 --help' for more information." 1227 ;; 1228 1229 *=*) 1230 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1231 # Reject names that are not valid shell variable names. 1232 case $ac_envvar in #( 1233 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1234 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1235 esac 1236 eval $ac_envvar=\$ac_optarg 1237 export $ac_envvar ;; 1238 1239 *) 1240 # FIXME: should be removed in autoconf 3.0. 1241 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1242 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1243 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1244 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1245 ;; 1246 1247 esac 1248done 1249 1250if test -n "$ac_prev"; then 1251 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1252 as_fn_error "missing argument to $ac_option" 1253fi 1254 1255if test -n "$ac_unrecognized_opts"; then 1256 case $enable_option_checking in 1257 no) ;; 1258 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1259 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1260 esac 1261fi 1262 1263# Check all directory arguments for consistency. 1264for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1265 datadir sysconfdir sharedstatedir localstatedir includedir \ 1266 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1267 libdir localedir mandir 1268do 1269 eval ac_val=\$$ac_var 1270 # Remove trailing slashes. 1271 case $ac_val in 1272 */ ) 1273 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1274 eval $ac_var=\$ac_val;; 1275 esac 1276 # Be sure to have absolute directory names. 1277 case $ac_val in 1278 [\\/$]* | ?:[\\/]* ) continue;; 1279 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1280 esac 1281 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1282done 1283 1284# There might be people who depend on the old broken behavior: `$host' 1285# used to hold the argument of --host etc. 1286# FIXME: To remove some day. 1287build=$build_alias 1288host=$host_alias 1289target=$target_alias 1290 1291# FIXME: To remove some day. 1292if test "x$host_alias" != x; then 1293 if test "x$build_alias" = x; then 1294 cross_compiling=maybe 1295 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1296 If a cross compiler is detected then cross compile mode will be used." >&2 1297 elif test "x$build_alias" != "x$host_alias"; then 1298 cross_compiling=yes 1299 fi 1300fi 1301 1302ac_tool_prefix= 1303test -n "$host_alias" && ac_tool_prefix=$host_alias- 1304 1305test "$silent" = yes && exec 6>/dev/null 1306 1307 1308ac_pwd=`pwd` && test -n "$ac_pwd" && 1309ac_ls_di=`ls -di .` && 1310ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1311 as_fn_error "working directory cannot be determined" 1312test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1313 as_fn_error "pwd does not report name of working directory" 1314 1315 1316# Find the source files, if location was not specified. 1317if test -z "$srcdir"; then 1318 ac_srcdir_defaulted=yes 1319 # Try the directory containing this script, then the parent directory. 1320 ac_confdir=`$as_dirname -- "$as_myself" || 1321$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1322 X"$as_myself" : 'X\(//\)[^/]' \| \ 1323 X"$as_myself" : 'X\(//\)$' \| \ 1324 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1325$as_echo X"$as_myself" | 1326 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\/\)[^/].*/{ 1331 s//\1/ 1332 q 1333 } 1334 /^X\(\/\/\)$/{ 1335 s//\1/ 1336 q 1337 } 1338 /^X\(\/\).*/{ 1339 s//\1/ 1340 q 1341 } 1342 s/.*/./; q'` 1343 srcdir=$ac_confdir 1344 if test ! -r "$srcdir/$ac_unique_file"; then 1345 srcdir=.. 1346 fi 1347else 1348 ac_srcdir_defaulted=no 1349fi 1350if test ! -r "$srcdir/$ac_unique_file"; then 1351 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1352 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1353fi 1354ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1355ac_abs_confdir=`( 1356 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1357 pwd)` 1358# When building in place, set srcdir=. 1359if test "$ac_abs_confdir" = "$ac_pwd"; then 1360 srcdir=. 1361fi 1362# Remove unnecessary trailing slashes from srcdir. 1363# Double slashes in file names in object file debugging info 1364# mess up M-x gdb in Emacs. 1365case $srcdir in 1366*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1367esac 1368for ac_var in $ac_precious_vars; do 1369 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1370 eval ac_env_${ac_var}_value=\$${ac_var} 1371 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1372 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1373done 1374 1375# 1376# Report the --help message. 1377# 1378if test "$ac_init_help" = "long"; then 1379 # Omit some internal or obsolete options to make the list less imposing. 1380 # This message is too long to be a string in the A/UX 3.1 sh. 1381 cat <<_ACEOF 1382\`configure' configures this package to adapt to many kinds of systems. 1383 1384Usage: $0 [OPTION]... [VAR=VALUE]... 1385 1386To assign environment variables (e.g., CC, CFLAGS...), specify them as 1387VAR=VALUE. See below for descriptions of some of the useful variables. 1388 1389Defaults for the options are specified in brackets. 1390 1391Configuration: 1392 -h, --help display this help and exit 1393 --help=short display options specific to this package 1394 --help=recursive display the short help of all the included packages 1395 -V, --version display version information and exit 1396 -q, --quiet, --silent do not print \`checking...' messages 1397 --cache-file=FILE cache test results in FILE [disabled] 1398 -C, --config-cache alias for \`--cache-file=config.cache' 1399 -n, --no-create do not create output files 1400 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1401 1402Installation directories: 1403 --prefix=PREFIX install architecture-independent files in PREFIX 1404 [$ac_default_prefix] 1405 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1406 [PREFIX] 1407 1408By default, \`make install' will install all the files in 1409\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1410an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1411for instance \`--prefix=\$HOME'. 1412 1413For better control, use the options below. 1414 1415Fine tuning of the installation directories: 1416 --bindir=DIR user executables [EPREFIX/bin] 1417 --sbindir=DIR system admin executables [EPREFIX/sbin] 1418 --libexecdir=DIR program executables [EPREFIX/libexec] 1419 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1420 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1421 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1422 --libdir=DIR object code libraries [EPREFIX/lib] 1423 --includedir=DIR C header files [PREFIX/include] 1424 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1425 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1426 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1427 --infodir=DIR info documentation [DATAROOTDIR/info] 1428 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1429 --mandir=DIR man documentation [DATAROOTDIR/man] 1430 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1431 --htmldir=DIR html documentation [DOCDIR] 1432 --dvidir=DIR dvi documentation [DOCDIR] 1433 --pdfdir=DIR pdf documentation [DOCDIR] 1434 --psdir=DIR ps documentation [DOCDIR] 1435_ACEOF 1436 1437 cat <<\_ACEOF 1438 1439System types: 1440 --build=BUILD configure for building on BUILD [guessed] 1441 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1442_ACEOF 1443fi 1444 1445if test -n "$ac_init_help"; then 1446 1447 cat <<\_ACEOF 1448 1449Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-maintainer-mode enable makefile rules useful for maintainers 1454 --enable-symlink-install use symlinks when installing instead of hard links 1455 --enable-relative-symlinks use relative symlinks when installing 1456 --enable-symlink-build use symlinks while building instead of hard links 1457 --enable-verbose-makecmds enable verbose make command output 1458 --enable-compression enable EXPERIMENTAL compression support 1459 --enable-htree enable EXPERIMENTAL htree directory support 1460 --enable-elf-shlibs select ELF shared libraries 1461 --enable-bsd-shlibs select BSD shared libraries 1462 --enable-profile build profiling libraries 1463 --enable-checker build checker libraries 1464 --enable-jbd-debug enable journal debugging 1465 --enable-blkid-debug enable blkid debugging 1466 --disable-testio-debug disable the use of the test I/O manager for debugging 1467 --disable-libuuid do not build private uuid library 1468 --disable-libblkid do not build private blkid library 1469 --enable-libquota enable quota support 1470 --disable-debugfs disable support of debugfs program 1471 --disable-imager disable support of e2image program 1472 --disable-resizer disable support of e2resize program 1473 --disable-defrag disable support of e4defrag program 1474 --enable-fsck build fsck wrapper program 1475 --enable-e2initrd-helper build e2initrd-helper program 1476 --disable-tls disable use of thread local support 1477 --disable-uuidd disable building the uuid daemon 1478 --disable-nls do not use Native Language Support 1479 --disable-rpath do not hardcode runtime library paths 1480 1481Optional Packages: 1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1484 --with-diet-libc use diet libc 1485 --with-cc no longer supported, use CC= instead 1486 --with-ccopts no longer supported, use CFLAGS= instead 1487 --with-ldopts no longer supported, use LDFLAGS= instead 1488 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root 1489 --with-gnu-ld assume the C compiler uses GNU ld default=no 1490 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1491 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1492 --with-included-gettext use the GNU gettext library included here 1493 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1494 --without-libintl-prefix don't search for libintl in includedir and libdir 1495 --with-multiarch=ARCH specify the multiarch triplet 1496 1497Some influential environment variables: 1498 CC C compiler command 1499 CFLAGS C compiler flags 1500 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1501 nonstandard directory <lib dir> 1502 LIBS libraries to pass to the linker, e.g. -l<library> 1503 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1504 you have headers in a nonstandard directory <include dir> 1505 CPP C preprocessor 1506 PKG_CONFIG path to pkg-config utility 1507 1508Use these variables to override the choices made by `configure' or to help 1509it to find libraries and programs with nonstandard names/locations. 1510 1511Report bugs to the package provider. 1512_ACEOF 1513ac_status=$? 1514fi 1515 1516if test "$ac_init_help" = "recursive"; then 1517 # If there are subdirs, report their specific --help. 1518 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1519 test -d "$ac_dir" || 1520 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1521 continue 1522 ac_builddir=. 1523 1524case "$ac_dir" in 1525.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1526*) 1527 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1528 # A ".." for each directory in $ac_dir_suffix. 1529 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1530 case $ac_top_builddir_sub in 1531 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1532 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1533 esac ;; 1534esac 1535ac_abs_top_builddir=$ac_pwd 1536ac_abs_builddir=$ac_pwd$ac_dir_suffix 1537# for backward compatibility: 1538ac_top_builddir=$ac_top_build_prefix 1539 1540case $srcdir in 1541 .) # We are building in place. 1542 ac_srcdir=. 1543 ac_top_srcdir=$ac_top_builddir_sub 1544 ac_abs_top_srcdir=$ac_pwd ;; 1545 [\\/]* | ?:[\\/]* ) # Absolute name. 1546 ac_srcdir=$srcdir$ac_dir_suffix; 1547 ac_top_srcdir=$srcdir 1548 ac_abs_top_srcdir=$srcdir ;; 1549 *) # Relative name. 1550 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1551 ac_top_srcdir=$ac_top_build_prefix$srcdir 1552 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1553esac 1554ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1555 1556 cd "$ac_dir" || { ac_status=$?; continue; } 1557 # Check for guested configure. 1558 if test -f "$ac_srcdir/configure.gnu"; then 1559 echo && 1560 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1561 elif test -f "$ac_srcdir/configure"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure" --help=recursive 1564 else 1565 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1566 fi || ac_status=$? 1567 cd "$ac_pwd" || { ac_status=$?; break; } 1568 done 1569fi 1570 1571test -n "$ac_init_help" && exit $ac_status 1572if $ac_init_version; then 1573 cat <<\_ACEOF 1574configure 1575generated by GNU Autoconf 2.65 1576 1577Copyright (C) 2009 Free Software Foundation, Inc. 1578This configure script is free software; the Free Software Foundation 1579gives unlimited permission to copy, distribute and modify it. 1580_ACEOF 1581 exit 1582fi 1583 1584## ------------------------ ## 1585## Autoconf initialization. ## 1586## ------------------------ ## 1587 1588# ac_fn_c_try_compile LINENO 1589# -------------------------- 1590# Try to compile conftest.$ac_ext, and return whether this succeeded. 1591ac_fn_c_try_compile () 1592{ 1593 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1594 rm -f conftest.$ac_objext 1595 if { { ac_try="$ac_compile" 1596case "(($ac_try" in 1597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1598 *) ac_try_echo=$ac_try;; 1599esac 1600eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1601$as_echo "$ac_try_echo"; } >&5 1602 (eval "$ac_compile") 2>conftest.err 1603 ac_status=$? 1604 if test -s conftest.err; then 1605 grep -v '^ *+' conftest.err >conftest.er1 1606 cat conftest.er1 >&5 1607 mv -f conftest.er1 conftest.err 1608 fi 1609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1610 test $ac_status = 0; } && { 1611 test -z "$ac_c_werror_flag" || 1612 test ! -s conftest.err 1613 } && test -s conftest.$ac_objext; then : 1614 ac_retval=0 1615else 1616 $as_echo "$as_me: failed program was:" >&5 1617sed 's/^/| /' conftest.$ac_ext >&5 1618 1619 ac_retval=1 1620fi 1621 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1622 as_fn_set_status $ac_retval 1623 1624} # ac_fn_c_try_compile 1625 1626# ac_fn_c_try_link LINENO 1627# ----------------------- 1628# Try to link conftest.$ac_ext, and return whether this succeeded. 1629ac_fn_c_try_link () 1630{ 1631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1632 rm -f conftest.$ac_objext conftest$ac_exeext 1633 if { { ac_try="$ac_link" 1634case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637esac 1638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639$as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_link") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } && { 1649 test -z "$ac_c_werror_flag" || 1650 test ! -s conftest.err 1651 } && test -s conftest$ac_exeext && { 1652 test "$cross_compiling" = yes || 1653 $as_test_x conftest$ac_exeext 1654 }; then : 1655 ac_retval=0 1656else 1657 $as_echo "$as_me: failed program was:" >&5 1658sed 's/^/| /' conftest.$ac_ext >&5 1659 1660 ac_retval=1 1661fi 1662 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1663 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1664 # interfere with the next link command; also delete a directory that is 1665 # left behind by Apple's compiler. We do this before executing the actions. 1666 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1667 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1668 as_fn_set_status $ac_retval 1669 1670} # ac_fn_c_try_link 1671 1672# ac_fn_c_try_cpp LINENO 1673# ---------------------- 1674# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1675ac_fn_c_try_cpp () 1676{ 1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1678 if { { ac_try="$ac_cpp conftest.$ac_ext" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } >/dev/null && { 1694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1695 test ! -s conftest.err 1696 }; then : 1697 ac_retval=0 1698else 1699 $as_echo "$as_me: failed program was:" >&5 1700sed 's/^/| /' conftest.$ac_ext >&5 1701 1702 ac_retval=1 1703fi 1704 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1705 as_fn_set_status $ac_retval 1706 1707} # ac_fn_c_try_cpp 1708 1709# ac_fn_c_try_run LINENO 1710# ---------------------- 1711# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1712# that executables *can* be run. 1713ac_fn_c_try_run () 1714{ 1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1716 if { { ac_try="$ac_link" 1717case "(($ac_try" in 1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1719 *) ac_try_echo=$ac_try;; 1720esac 1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1722$as_echo "$ac_try_echo"; } >&5 1723 (eval "$ac_link") 2>&5 1724 ac_status=$? 1725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1726 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1727 { { case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_try") 2>&5 1734 ac_status=$? 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; }; }; then : 1737 ac_retval=0 1738else 1739 $as_echo "$as_me: program exited with status $ac_status" >&5 1740 $as_echo "$as_me: failed program was:" >&5 1741sed 's/^/| /' conftest.$ac_ext >&5 1742 1743 ac_retval=$ac_status 1744fi 1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1746 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1747 as_fn_set_status $ac_retval 1748 1749} # ac_fn_c_try_run 1750 1751# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1752# ------------------------------------------- 1753# Tests whether TYPE exists after having included INCLUDES, setting cache 1754# variable VAR accordingly. 1755ac_fn_c_check_type () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1759$as_echo_n "checking for $2... " >&6; } 1760if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1761 $as_echo_n "(cached) " >&6 1762else 1763 eval "$3=no" 1764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1765/* end confdefs.h. */ 1766$4 1767int 1768main () 1769{ 1770if (sizeof ($2)) 1771 return 0; 1772 ; 1773 return 0; 1774} 1775_ACEOF 1776if ac_fn_c_try_compile "$LINENO"; then : 1777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1778/* end confdefs.h. */ 1779$4 1780int 1781main () 1782{ 1783if (sizeof (($2))) 1784 return 0; 1785 ; 1786 return 0; 1787} 1788_ACEOF 1789if ac_fn_c_try_compile "$LINENO"; then : 1790 1791else 1792 eval "$3=yes" 1793fi 1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1795fi 1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1797fi 1798eval ac_res=\$$3 1799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1800$as_echo "$ac_res" >&6; } 1801 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1802 1803} # ac_fn_c_check_type 1804 1805# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1806# ------------------------------------------------------- 1807# Tests whether HEADER exists and can be compiled using the include files in 1808# INCLUDES, setting the cache variable VAR accordingly. 1809ac_fn_c_check_header_compile () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1813$as_echo_n "checking for $2... " >&6; } 1814if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1815 $as_echo_n "(cached) " >&6 1816else 1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1818/* end confdefs.h. */ 1819$4 1820#include <$2> 1821_ACEOF 1822if ac_fn_c_try_compile "$LINENO"; then : 1823 eval "$3=yes" 1824else 1825 eval "$3=no" 1826fi 1827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1828fi 1829eval ac_res=\$$3 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1831$as_echo "$ac_res" >&6; } 1832 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1833 1834} # ac_fn_c_check_header_compile 1835 1836# ac_fn_c_check_func LINENO FUNC VAR 1837# ---------------------------------- 1838# Tests whether FUNC exists, setting the cache variable VAR accordingly 1839ac_fn_c_check_func () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1843$as_echo_n "checking for $2... " >&6; } 1844if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1845 $as_echo_n "(cached) " >&6 1846else 1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1848/* end confdefs.h. */ 1849/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1850 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1851#define $2 innocuous_$2 1852 1853/* System header to define __stub macros and hopefully few prototypes, 1854 which can conflict with char $2 (); below. 1855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1856 <limits.h> exists even on freestanding compilers. */ 1857 1858#ifdef __STDC__ 1859# include <limits.h> 1860#else 1861# include <assert.h> 1862#endif 1863 1864#undef $2 1865 1866/* Override any GCC internal prototype to avoid an error. 1867 Use char because int might match the return type of a GCC 1868 builtin and then its argument prototype would still apply. */ 1869#ifdef __cplusplus 1870extern "C" 1871#endif 1872char $2 (); 1873/* The GNU C library defines this for functions which it implements 1874 to always fail with ENOSYS. Some functions are actually named 1875 something starting with __ and the normal name is an alias. */ 1876#if defined __stub_$2 || defined __stub___$2 1877choke me 1878#endif 1879 1880int 1881main () 1882{ 1883return $2 (); 1884 ; 1885 return 0; 1886} 1887_ACEOF 1888if ac_fn_c_try_link "$LINENO"; then : 1889 eval "$3=yes" 1890else 1891 eval "$3=no" 1892fi 1893rm -f core conftest.err conftest.$ac_objext \ 1894 conftest$ac_exeext conftest.$ac_ext 1895fi 1896eval ac_res=\$$3 1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1898$as_echo "$ac_res" >&6; } 1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1900 1901} # ac_fn_c_check_func 1902 1903# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1904# ------------------------------------------------------- 1905# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1906# the include files in INCLUDES and setting the cache variable VAR 1907# accordingly. 1908ac_fn_c_check_header_mongrel () 1909{ 1910 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1911 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1913$as_echo_n "checking for $2... " >&6; } 1914if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1915 $as_echo_n "(cached) " >&6 1916fi 1917eval ac_res=\$$3 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1919$as_echo "$ac_res" >&6; } 1920else 1921 # Is the header compilable? 1922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1923$as_echo_n "checking $2 usability... " >&6; } 1924cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1925/* end confdefs.h. */ 1926$4 1927#include <$2> 1928_ACEOF 1929if ac_fn_c_try_compile "$LINENO"; then : 1930 ac_header_compiler=yes 1931else 1932 ac_header_compiler=no 1933fi 1934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1936$as_echo "$ac_header_compiler" >&6; } 1937 1938# Is the header present? 1939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1940$as_echo_n "checking $2 presence... " >&6; } 1941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1942/* end confdefs.h. */ 1943#include <$2> 1944_ACEOF 1945if ac_fn_c_try_cpp "$LINENO"; then : 1946 ac_header_preproc=yes 1947else 1948 ac_header_preproc=no 1949fi 1950rm -f conftest.err conftest.$ac_ext 1951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1952$as_echo "$ac_header_preproc" >&6; } 1953 1954# So? What about this header? 1955case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1956 yes:no: ) 1957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1958$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1960$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1961 ;; 1962 no:yes:* ) 1963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1964$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1966$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1968$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1970$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1972$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1973 ;; 1974esac 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1976$as_echo_n "checking for $2... " >&6; } 1977if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1978 $as_echo_n "(cached) " >&6 1979else 1980 eval "$3=\$ac_header_compiler" 1981fi 1982eval ac_res=\$$3 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1984$as_echo "$ac_res" >&6; } 1985fi 1986 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1987 1988} # ac_fn_c_check_header_mongrel 1989 1990# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1991# -------------------------------------------- 1992# Tries to find the compile-time value of EXPR in a program that includes 1993# INCLUDES, setting VAR accordingly. Returns whether the value could be 1994# computed 1995ac_fn_c_compute_int () 1996{ 1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1998 if test "$cross_compiling" = yes; then 1999 # Depending upon the size, compute the lo and hi bounds. 2000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2001/* end confdefs.h. */ 2002$4 2003int 2004main () 2005{ 2006static int test_array [1 - 2 * !(($2) >= 0)]; 2007test_array [0] = 0 2008 2009 ; 2010 return 0; 2011} 2012_ACEOF 2013if ac_fn_c_try_compile "$LINENO"; then : 2014 ac_lo=0 ac_mid=0 2015 while :; do 2016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2017/* end confdefs.h. */ 2018$4 2019int 2020main () 2021{ 2022static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2023test_array [0] = 0 2024 2025 ; 2026 return 0; 2027} 2028_ACEOF 2029if ac_fn_c_try_compile "$LINENO"; then : 2030 ac_hi=$ac_mid; break 2031else 2032 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2033 if test $ac_lo -le $ac_mid; then 2034 ac_lo= ac_hi= 2035 break 2036 fi 2037 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2038fi 2039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2040 done 2041else 2042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2043/* end confdefs.h. */ 2044$4 2045int 2046main () 2047{ 2048static int test_array [1 - 2 * !(($2) < 0)]; 2049test_array [0] = 0 2050 2051 ; 2052 return 0; 2053} 2054_ACEOF 2055if ac_fn_c_try_compile "$LINENO"; then : 2056 ac_hi=-1 ac_mid=-1 2057 while :; do 2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2059/* end confdefs.h. */ 2060$4 2061int 2062main () 2063{ 2064static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2065test_array [0] = 0 2066 2067 ; 2068 return 0; 2069} 2070_ACEOF 2071if ac_fn_c_try_compile "$LINENO"; then : 2072 ac_lo=$ac_mid; break 2073else 2074 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2075 if test $ac_mid -le $ac_hi; then 2076 ac_lo= ac_hi= 2077 break 2078 fi 2079 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2080fi 2081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2082 done 2083else 2084 ac_lo= ac_hi= 2085fi 2086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2087fi 2088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2089# Binary search between lo and hi bounds. 2090while test "x$ac_lo" != "x$ac_hi"; do 2091 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2093/* end confdefs.h. */ 2094$4 2095int 2096main () 2097{ 2098static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2099test_array [0] = 0 2100 2101 ; 2102 return 0; 2103} 2104_ACEOF 2105if ac_fn_c_try_compile "$LINENO"; then : 2106 ac_hi=$ac_mid 2107else 2108 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2109fi 2110rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2111done 2112case $ac_lo in #(( 2113?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2114'') ac_retval=1 ;; 2115esac 2116 else 2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2118/* end confdefs.h. */ 2119$4 2120static long int longval () { return $2; } 2121static unsigned long int ulongval () { return $2; } 2122#include <stdio.h> 2123#include <stdlib.h> 2124int 2125main () 2126{ 2127 2128 FILE *f = fopen ("conftest.val", "w"); 2129 if (! f) 2130 return 1; 2131 if (($2) < 0) 2132 { 2133 long int i = longval (); 2134 if (i != ($2)) 2135 return 1; 2136 fprintf (f, "%ld", i); 2137 } 2138 else 2139 { 2140 unsigned long int i = ulongval (); 2141 if (i != ($2)) 2142 return 1; 2143 fprintf (f, "%lu", i); 2144 } 2145 /* Do not output a trailing newline, as this causes \r\n confusion 2146 on some platforms. */ 2147 return ferror (f) || fclose (f) != 0; 2148 2149 ; 2150 return 0; 2151} 2152_ACEOF 2153if ac_fn_c_try_run "$LINENO"; then : 2154 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2155else 2156 ac_retval=1 2157fi 2158rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2159 conftest.$ac_objext conftest.beam conftest.$ac_ext 2160rm -f conftest.val 2161 2162 fi 2163 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2164 as_fn_set_status $ac_retval 2165 2166} # ac_fn_c_compute_int 2167 2168# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2169# ---------------------------------------------------- 2170# Tries to find if the field MEMBER exists in type AGGR, after including 2171# INCLUDES, setting cache variable VAR accordingly. 2172ac_fn_c_check_member () 2173{ 2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2176$as_echo_n "checking for $2.$3... " >&6; } 2177if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2178 $as_echo_n "(cached) " >&6 2179else 2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2181/* end confdefs.h. */ 2182$5 2183int 2184main () 2185{ 2186static $2 ac_aggr; 2187if (ac_aggr.$3) 2188return 0; 2189 ; 2190 return 0; 2191} 2192_ACEOF 2193if ac_fn_c_try_compile "$LINENO"; then : 2194 eval "$4=yes" 2195else 2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2197/* end confdefs.h. */ 2198$5 2199int 2200main () 2201{ 2202static $2 ac_aggr; 2203if (sizeof ac_aggr.$3) 2204return 0; 2205 ; 2206 return 0; 2207} 2208_ACEOF 2209if ac_fn_c_try_compile "$LINENO"; then : 2210 eval "$4=yes" 2211else 2212 eval "$4=no" 2213fi 2214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2215fi 2216rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2217fi 2218eval ac_res=\$$4 2219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2220$as_echo "$ac_res" >&6; } 2221 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2222 2223} # ac_fn_c_check_member 2224 2225# ac_fn_c_check_decl LINENO SYMBOL VAR 2226# ------------------------------------ 2227# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2228ac_fn_c_check_decl () 2229{ 2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2232$as_echo_n "checking whether $2 is declared... " >&6; } 2233if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2234 $as_echo_n "(cached) " >&6 2235else 2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2237/* end confdefs.h. */ 2238$4 2239int 2240main () 2241{ 2242#ifndef $2 2243 (void) $2; 2244#endif 2245 2246 ; 2247 return 0; 2248} 2249_ACEOF 2250if ac_fn_c_try_compile "$LINENO"; then : 2251 eval "$3=yes" 2252else 2253 eval "$3=no" 2254fi 2255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2256fi 2257eval ac_res=\$$3 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2259$as_echo "$ac_res" >&6; } 2260 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2261 2262} # ac_fn_c_check_decl 2263cat >config.log <<_ACEOF 2264This file contains any messages produced by compilers while 2265running configure, to aid debugging if configure makes a mistake. 2266 2267It was created by $as_me, which was 2268generated by GNU Autoconf 2.65. Invocation command line was 2269 2270 $ $0 $@ 2271 2272_ACEOF 2273exec 5>>config.log 2274{ 2275cat <<_ASUNAME 2276## --------- ## 2277## Platform. ## 2278## --------- ## 2279 2280hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2281uname -m = `(uname -m) 2>/dev/null || echo unknown` 2282uname -r = `(uname -r) 2>/dev/null || echo unknown` 2283uname -s = `(uname -s) 2>/dev/null || echo unknown` 2284uname -v = `(uname -v) 2>/dev/null || echo unknown` 2285 2286/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2287/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2288 2289/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2290/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2291/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2292/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2293/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2294/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2295/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2296 2297_ASUNAME 2298 2299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2300for as_dir in $PATH 2301do 2302 IFS=$as_save_IFS 2303 test -z "$as_dir" && as_dir=. 2304 $as_echo "PATH: $as_dir" 2305 done 2306IFS=$as_save_IFS 2307 2308} >&5 2309 2310cat >&5 <<_ACEOF 2311 2312 2313## ----------- ## 2314## Core tests. ## 2315## ----------- ## 2316 2317_ACEOF 2318 2319 2320# Keep a trace of the command line. 2321# Strip out --no-create and --no-recursion so they do not pile up. 2322# Strip out --silent because we don't want to record it for future runs. 2323# Also quote any args containing shell meta-characters. 2324# Make two passes to allow for proper duplicate-argument suppression. 2325ac_configure_args= 2326ac_configure_args0= 2327ac_configure_args1= 2328ac_must_keep_next=false 2329for ac_pass in 1 2 2330do 2331 for ac_arg 2332 do 2333 case $ac_arg in 2334 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2336 | -silent | --silent | --silen | --sile | --sil) 2337 continue ;; 2338 *\'*) 2339 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2340 esac 2341 case $ac_pass in 2342 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2343 2) 2344 as_fn_append ac_configure_args1 " '$ac_arg'" 2345 if test $ac_must_keep_next = true; then 2346 ac_must_keep_next=false # Got value, back to normal. 2347 else 2348 case $ac_arg in 2349 *=* | --config-cache | -C | -disable-* | --disable-* \ 2350 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2351 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2352 | -with-* | --with-* | -without-* | --without-* | --x) 2353 case "$ac_configure_args0 " in 2354 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2355 esac 2356 ;; 2357 -* ) ac_must_keep_next=true ;; 2358 esac 2359 fi 2360 as_fn_append ac_configure_args " '$ac_arg'" 2361 ;; 2362 esac 2363 done 2364done 2365{ ac_configure_args0=; unset ac_configure_args0;} 2366{ ac_configure_args1=; unset ac_configure_args1;} 2367 2368# When interrupted or exit'd, cleanup temporary files, and complete 2369# config.log. We remove comments because anyway the quotes in there 2370# would cause problems or look ugly. 2371# WARNING: Use '\'' to represent an apostrophe within the trap. 2372# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2373trap 'exit_status=$? 2374 # Save into config.log some information that might help in debugging. 2375 { 2376 echo 2377 2378 cat <<\_ASBOX 2379## ---------------- ## 2380## Cache variables. ## 2381## ---------------- ## 2382_ASBOX 2383 echo 2384 # The following way of writing the cache mishandles newlines in values, 2385( 2386 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2387 eval ac_val=\$$ac_var 2388 case $ac_val in #( 2389 *${as_nl}*) 2390 case $ac_var in #( 2391 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2392$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2393 esac 2394 case $ac_var in #( 2395 _ | IFS | as_nl) ;; #( 2396 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2397 *) { eval $ac_var=; unset $ac_var;} ;; 2398 esac ;; 2399 esac 2400 done 2401 (set) 2>&1 | 2402 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2403 *${as_nl}ac_space=\ *) 2404 sed -n \ 2405 "s/'\''/'\''\\\\'\'''\''/g; 2406 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2407 ;; #( 2408 *) 2409 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2410 ;; 2411 esac | 2412 sort 2413) 2414 echo 2415 2416 cat <<\_ASBOX 2417## ----------------- ## 2418## Output variables. ## 2419## ----------------- ## 2420_ASBOX 2421 echo 2422 for ac_var in $ac_subst_vars 2423 do 2424 eval ac_val=\$$ac_var 2425 case $ac_val in 2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2427 esac 2428 $as_echo "$ac_var='\''$ac_val'\''" 2429 done | sort 2430 echo 2431 2432 if test -n "$ac_subst_files"; then 2433 cat <<\_ASBOX 2434## ------------------- ## 2435## File substitutions. ## 2436## ------------------- ## 2437_ASBOX 2438 echo 2439 for ac_var in $ac_subst_files 2440 do 2441 eval ac_val=\$$ac_var 2442 case $ac_val in 2443 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2444 esac 2445 $as_echo "$ac_var='\''$ac_val'\''" 2446 done | sort 2447 echo 2448 fi 2449 2450 if test -s confdefs.h; then 2451 cat <<\_ASBOX 2452## ----------- ## 2453## confdefs.h. ## 2454## ----------- ## 2455_ASBOX 2456 echo 2457 cat confdefs.h 2458 echo 2459 fi 2460 test "$ac_signal" != 0 && 2461 $as_echo "$as_me: caught signal $ac_signal" 2462 $as_echo "$as_me: exit $exit_status" 2463 } >&5 2464 rm -f core *.core core.conftest.* && 2465 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2466 exit $exit_status 2467' 0 2468for ac_signal in 1 2 13 15; do 2469 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2470done 2471ac_signal=0 2472 2473# confdefs.h avoids OS command line length limits that DEFS can exceed. 2474rm -f -r conftest* confdefs.h 2475 2476$as_echo "/* confdefs.h */" > confdefs.h 2477 2478# Predefined preprocessor variables. 2479 2480cat >>confdefs.h <<_ACEOF 2481#define PACKAGE_NAME "$PACKAGE_NAME" 2482_ACEOF 2483 2484cat >>confdefs.h <<_ACEOF 2485#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2486_ACEOF 2487 2488cat >>confdefs.h <<_ACEOF 2489#define PACKAGE_VERSION "$PACKAGE_VERSION" 2490_ACEOF 2491 2492cat >>confdefs.h <<_ACEOF 2493#define PACKAGE_STRING "$PACKAGE_STRING" 2494_ACEOF 2495 2496cat >>confdefs.h <<_ACEOF 2497#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2498_ACEOF 2499 2500cat >>confdefs.h <<_ACEOF 2501#define PACKAGE_URL "$PACKAGE_URL" 2502_ACEOF 2503 2504 2505# Let the site file select an alternate cache file if it wants to. 2506# Prefer an explicitly selected file to automatically selected ones. 2507ac_site_file1=NONE 2508ac_site_file2=NONE 2509if test -n "$CONFIG_SITE"; then 2510 ac_site_file1=$CONFIG_SITE 2511elif test "x$prefix" != xNONE; then 2512 ac_site_file1=$prefix/share/config.site 2513 ac_site_file2=$prefix/etc/config.site 2514else 2515 ac_site_file1=$ac_default_prefix/share/config.site 2516 ac_site_file2=$ac_default_prefix/etc/config.site 2517fi 2518for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2519do 2520 test "x$ac_site_file" = xNONE && continue 2521 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2523$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2524 sed 's/^/| /' "$ac_site_file" >&5 2525 . "$ac_site_file" 2526 fi 2527done 2528 2529if test -r "$cache_file"; then 2530 # Some versions of bash will fail to source /dev/null (special files 2531 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2532 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2533 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2534$as_echo "$as_me: loading cache $cache_file" >&6;} 2535 case $cache_file in 2536 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2537 *) . "./$cache_file";; 2538 esac 2539 fi 2540else 2541 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2542$as_echo "$as_me: creating cache $cache_file" >&6;} 2543 >$cache_file 2544fi 2545 2546as_fn_append ac_header_list " stdlib.h" 2547as_fn_append ac_header_list " unistd.h" 2548as_fn_append ac_header_list " sys/param.h" 2549# Check that the precious variables saved in the cache have kept the same 2550# value. 2551ac_cache_corrupted=false 2552for ac_var in $ac_precious_vars; do 2553 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2554 eval ac_new_set=\$ac_env_${ac_var}_set 2555 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2556 eval ac_new_val=\$ac_env_${ac_var}_value 2557 case $ac_old_set,$ac_new_set in 2558 set,) 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2560$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2561 ac_cache_corrupted=: ;; 2562 ,set) 2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2564$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2565 ac_cache_corrupted=: ;; 2566 ,);; 2567 *) 2568 if test "x$ac_old_val" != "x$ac_new_val"; then 2569 # differences in whitespace do not lead to failure. 2570 ac_old_val_w=`echo x $ac_old_val` 2571 ac_new_val_w=`echo x $ac_new_val` 2572 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2573 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2574$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2575 ac_cache_corrupted=: 2576 else 2577 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2578$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2579 eval $ac_var=\$ac_old_val 2580 fi 2581 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2582$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2583 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2584$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2585 fi;; 2586 esac 2587 # Pass precious variables to config.status. 2588 if test "$ac_new_set" = set; then 2589 case $ac_new_val in 2590 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2591 *) ac_arg=$ac_var=$ac_new_val ;; 2592 esac 2593 case " $ac_configure_args " in 2594 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2595 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2596 esac 2597 fi 2598done 2599if $ac_cache_corrupted; then 2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2603$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2604 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2605fi 2606## -------------------- ## 2607## Main body of script. ## 2608## -------------------- ## 2609 2610ac_ext=c 2611ac_cpp='$CPP $CPPFLAGS' 2612ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2613ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2614ac_compiler_gnu=$ac_cv_c_compiler_gnu 2615 2616 2617 2618ac_aux_dir= 2619for ac_dir in config "$srcdir"/config; do 2620 for ac_t in install-sh install.sh shtool; do 2621 if test -f "$ac_dir/$ac_t"; then 2622 ac_aux_dir=$ac_dir 2623 ac_install_sh="$ac_aux_dir/$ac_t -c" 2624 break 2 2625 fi 2626 done 2627done 2628if test -z "$ac_aux_dir"; then 2629 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2630fi 2631 2632# These three variables are undocumented and unsupported, 2633# and are intended to be withdrawn in a future Autoconf release. 2634# They can cause serious problems if a builder's source tree is in a directory 2635# whose full name contains unusual characters. 2636ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2637ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2638ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2639 2640 2641ac_config_headers="$ac_config_headers lib/config.h" 2642 2643 2644MCONFIG=./MCONFIG 2645 2646BINARY_TYPE=bin 2647E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ 2648 | awk '{print $3}' | tr \" " " | awk '{print $1}'` 2649DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ 2650 | tr \" " "` 2651E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` 2652MONTH=`echo $DATE | awk -F- '{print $2}'` 2653YEAR=`echo $DATE | awk -F- '{print $3}'` 2654 2655if expr $YEAR ">" 1900 > /dev/null ; then 2656 E2FSPROGS_YEAR=$YEAR 2657elif expr $YEAR ">" 90 >/dev/null ; then 2658 E2FSPROGS_YEAR=19$YEAR 2659else 2660 E2FSPROGS_YEAR=20$YEAR 2661fi 2662 2663case $MONTH in 2664Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; 2665Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; 2666Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; 2667Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; 2668May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; 2669Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; 2670Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; 2671Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; 2672Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; 2673Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; 2674Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; 2675Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; 2676*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 2677$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; 2678esac 2679 2680base_ver=`echo $E2FSPROGS_VERSION | \ 2681 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` 2682 2683date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} 2684 2685case $E2FSPROGS_VERSION in 2686*-WIP|pre-*) 2687 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" 2688 ;; 2689*) 2690 E2FSPROGS_PKGVER="$base_ver" 2691 ;; 2692esac 2693 2694unset DATE MONTH YEAR base_ver pre_vers date_spec 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 2696$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 2698$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } 2699 2700 2701 2702 2703 2704# Make sure we can run config.sub. 2705$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2706 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2707 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2709$as_echo_n "checking build system type... " >&6; } 2710if test "${ac_cv_build+set}" = set; then : 2711 $as_echo_n "(cached) " >&6 2712else 2713 ac_build_alias=$build_alias 2714test "x$ac_build_alias" = x && 2715 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2716test "x$ac_build_alias" = x && 2717 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2718ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2719 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2720 2721fi 2722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2723$as_echo "$ac_cv_build" >&6; } 2724case $ac_cv_build in 2725*-*-*) ;; 2726*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2727esac 2728build=$ac_cv_build 2729ac_save_IFS=$IFS; IFS='-' 2730set x $ac_cv_build 2731shift 2732build_cpu=$1 2733build_vendor=$2 2734shift; shift 2735# Remember, the first character of IFS is used to create $*, 2736# except with old shells: 2737build_os=$* 2738IFS=$ac_save_IFS 2739case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2740 2741 2742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2743$as_echo_n "checking host system type... " >&6; } 2744if test "${ac_cv_host+set}" = set; then : 2745 $as_echo_n "(cached) " >&6 2746else 2747 if test "x$host_alias" = x; then 2748 ac_cv_host=$ac_cv_build 2749else 2750 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2751 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2752fi 2753 2754fi 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2756$as_echo "$ac_cv_host" >&6; } 2757case $ac_cv_host in 2758*-*-*) ;; 2759*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2760esac 2761host=$ac_cv_host 2762ac_save_IFS=$IFS; IFS='-' 2763set x $ac_cv_host 2764shift 2765host_cpu=$1 2766host_vendor=$2 2767shift; shift 2768# Remember, the first character of IFS is used to create $*, 2769# except with old shells: 2770host_os=$* 2771IFS=$ac_save_IFS 2772case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2773 2774 2775DLOPEN_LIB='' 2776ac_ext=c 2777ac_cpp='$CPP $CPPFLAGS' 2778ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2779ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2780ac_compiler_gnu=$ac_cv_c_compiler_gnu 2781if test -n "$ac_tool_prefix"; then 2782 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2783set dummy ${ac_tool_prefix}gcc; ac_word=$2 2784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2785$as_echo_n "checking for $ac_word... " >&6; } 2786if test "${ac_cv_prog_CC+set}" = set; then : 2787 $as_echo_n "(cached) " >&6 2788else 2789 if test -n "$CC"; then 2790 ac_cv_prog_CC="$CC" # Let the user override the test. 2791else 2792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2793for as_dir in $PATH 2794do 2795 IFS=$as_save_IFS 2796 test -z "$as_dir" && as_dir=. 2797 for ac_exec_ext in '' $ac_executable_extensions; do 2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2799 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2801 break 2 2802 fi 2803done 2804 done 2805IFS=$as_save_IFS 2806 2807fi 2808fi 2809CC=$ac_cv_prog_CC 2810if test -n "$CC"; then 2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2812$as_echo "$CC" >&6; } 2813else 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2815$as_echo "no" >&6; } 2816fi 2817 2818 2819fi 2820if test -z "$ac_cv_prog_CC"; then 2821 ac_ct_CC=$CC 2822 # Extract the first word of "gcc", so it can be a program name with args. 2823set dummy gcc; ac_word=$2 2824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2825$as_echo_n "checking for $ac_word... " >&6; } 2826if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2827 $as_echo_n "(cached) " >&6 2828else 2829 if test -n "$ac_ct_CC"; then 2830 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2831else 2832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2833for as_dir in $PATH 2834do 2835 IFS=$as_save_IFS 2836 test -z "$as_dir" && as_dir=. 2837 for ac_exec_ext in '' $ac_executable_extensions; do 2838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2839 ac_cv_prog_ac_ct_CC="gcc" 2840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2841 break 2 2842 fi 2843done 2844 done 2845IFS=$as_save_IFS 2846 2847fi 2848fi 2849ac_ct_CC=$ac_cv_prog_ac_ct_CC 2850if test -n "$ac_ct_CC"; then 2851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2852$as_echo "$ac_ct_CC" >&6; } 2853else 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2855$as_echo "no" >&6; } 2856fi 2857 2858 if test "x$ac_ct_CC" = x; then 2859 CC="" 2860 else 2861 case $cross_compiling:$ac_tool_warned in 2862yes:) 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2864$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2865ac_tool_warned=yes ;; 2866esac 2867 CC=$ac_ct_CC 2868 fi 2869else 2870 CC="$ac_cv_prog_CC" 2871fi 2872 2873if test -z "$CC"; then 2874 if test -n "$ac_tool_prefix"; then 2875 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2876set dummy ${ac_tool_prefix}cc; ac_word=$2 2877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2878$as_echo_n "checking for $ac_word... " >&6; } 2879if test "${ac_cv_prog_CC+set}" = set; then : 2880 $as_echo_n "(cached) " >&6 2881else 2882 if test -n "$CC"; then 2883 ac_cv_prog_CC="$CC" # Let the user override the test. 2884else 2885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2886for as_dir in $PATH 2887do 2888 IFS=$as_save_IFS 2889 test -z "$as_dir" && as_dir=. 2890 for ac_exec_ext in '' $ac_executable_extensions; do 2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2892 ac_cv_prog_CC="${ac_tool_prefix}cc" 2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2894 break 2 2895 fi 2896done 2897 done 2898IFS=$as_save_IFS 2899 2900fi 2901fi 2902CC=$ac_cv_prog_CC 2903if test -n "$CC"; then 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2905$as_echo "$CC" >&6; } 2906else 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2908$as_echo "no" >&6; } 2909fi 2910 2911 2912 fi 2913fi 2914if test -z "$CC"; then 2915 # Extract the first word of "cc", so it can be a program name with args. 2916set dummy cc; ac_word=$2 2917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2918$as_echo_n "checking for $ac_word... " >&6; } 2919if test "${ac_cv_prog_CC+set}" = set; then : 2920 $as_echo_n "(cached) " >&6 2921else 2922 if test -n "$CC"; then 2923 ac_cv_prog_CC="$CC" # Let the user override the test. 2924else 2925 ac_prog_rejected=no 2926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2927for as_dir in $PATH 2928do 2929 IFS=$as_save_IFS 2930 test -z "$as_dir" && as_dir=. 2931 for ac_exec_ext in '' $ac_executable_extensions; do 2932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2933 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2934 ac_prog_rejected=yes 2935 continue 2936 fi 2937 ac_cv_prog_CC="cc" 2938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2939 break 2 2940 fi 2941done 2942 done 2943IFS=$as_save_IFS 2944 2945if test $ac_prog_rejected = yes; then 2946 # We found a bogon in the path, so make sure we never use it. 2947 set dummy $ac_cv_prog_CC 2948 shift 2949 if test $# != 0; then 2950 # We chose a different compiler from the bogus one. 2951 # However, it has the same basename, so the bogon will be chosen 2952 # first if we set CC to just the basename; use the full file name. 2953 shift 2954 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2955 fi 2956fi 2957fi 2958fi 2959CC=$ac_cv_prog_CC 2960if test -n "$CC"; then 2961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2962$as_echo "$CC" >&6; } 2963else 2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2965$as_echo "no" >&6; } 2966fi 2967 2968 2969fi 2970if test -z "$CC"; then 2971 if test -n "$ac_tool_prefix"; then 2972 for ac_prog in cl.exe 2973 do 2974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2975set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2977$as_echo_n "checking for $ac_word... " >&6; } 2978if test "${ac_cv_prog_CC+set}" = set; then : 2979 $as_echo_n "(cached) " >&6 2980else 2981 if test -n "$CC"; then 2982 ac_cv_prog_CC="$CC" # Let the user override the test. 2983else 2984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2985for as_dir in $PATH 2986do 2987 IFS=$as_save_IFS 2988 test -z "$as_dir" && as_dir=. 2989 for ac_exec_ext in '' $ac_executable_extensions; do 2990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2993 break 2 2994 fi 2995done 2996 done 2997IFS=$as_save_IFS 2998 2999fi 3000fi 3001CC=$ac_cv_prog_CC 3002if test -n "$CC"; then 3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3004$as_echo "$CC" >&6; } 3005else 3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3007$as_echo "no" >&6; } 3008fi 3009 3010 3011 test -n "$CC" && break 3012 done 3013fi 3014if test -z "$CC"; then 3015 ac_ct_CC=$CC 3016 for ac_prog in cl.exe 3017do 3018 # Extract the first word of "$ac_prog", so it can be a program name with args. 3019set dummy $ac_prog; ac_word=$2 3020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3021$as_echo_n "checking for $ac_word... " >&6; } 3022if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3023 $as_echo_n "(cached) " >&6 3024else 3025 if test -n "$ac_ct_CC"; then 3026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3027else 3028as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3029for as_dir in $PATH 3030do 3031 IFS=$as_save_IFS 3032 test -z "$as_dir" && as_dir=. 3033 for ac_exec_ext in '' $ac_executable_extensions; do 3034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3035 ac_cv_prog_ac_ct_CC="$ac_prog" 3036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3037 break 2 3038 fi 3039done 3040 done 3041IFS=$as_save_IFS 3042 3043fi 3044fi 3045ac_ct_CC=$ac_cv_prog_ac_ct_CC 3046if test -n "$ac_ct_CC"; then 3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3048$as_echo "$ac_ct_CC" >&6; } 3049else 3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3051$as_echo "no" >&6; } 3052fi 3053 3054 3055 test -n "$ac_ct_CC" && break 3056done 3057 3058 if test "x$ac_ct_CC" = x; then 3059 CC="" 3060 else 3061 case $cross_compiling:$ac_tool_warned in 3062yes:) 3063{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3064$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3065ac_tool_warned=yes ;; 3066esac 3067 CC=$ac_ct_CC 3068 fi 3069fi 3070 3071fi 3072 3073 3074test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3075$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3076as_fn_error "no acceptable C compiler found in \$PATH 3077See \`config.log' for more details." "$LINENO" 5; } 3078 3079# Provide some information about the compiler. 3080$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3081set X $ac_compile 3082ac_compiler=$2 3083for ac_option in --version -v -V -qversion; do 3084 { { ac_try="$ac_compiler $ac_option >&5" 3085case "(($ac_try" in 3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3087 *) ac_try_echo=$ac_try;; 3088esac 3089eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3090$as_echo "$ac_try_echo"; } >&5 3091 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3092 ac_status=$? 3093 if test -s conftest.err; then 3094 sed '10a\ 3095... rest of stderr output deleted ... 3096 10q' conftest.err >conftest.er1 3097 cat conftest.er1 >&5 3098 fi 3099 rm -f conftest.er1 conftest.err 3100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3101 test $ac_status = 0; } 3102done 3103 3104cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3105/* end confdefs.h. */ 3106 3107int 3108main () 3109{ 3110 3111 ; 3112 return 0; 3113} 3114_ACEOF 3115ac_clean_files_save=$ac_clean_files 3116ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3117# Try to create an executable without -o first, disregard a.out. 3118# It will help us diagnose broken compilers, and finding out an intuition 3119# of exeext. 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3121$as_echo_n "checking whether the C compiler works... " >&6; } 3122ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3123 3124# The possible output files: 3125ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3126 3127ac_rmfiles= 3128for ac_file in $ac_files 3129do 3130 case $ac_file in 3131 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3132 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3133 esac 3134done 3135rm -f $ac_rmfiles 3136 3137if { { ac_try="$ac_link_default" 3138case "(($ac_try" in 3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3140 *) ac_try_echo=$ac_try;; 3141esac 3142eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3143$as_echo "$ac_try_echo"; } >&5 3144 (eval "$ac_link_default") 2>&5 3145 ac_status=$? 3146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3147 test $ac_status = 0; }; then : 3148 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3149# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3150# in a Makefile. We should not override ac_cv_exeext if it was cached, 3151# so that the user can short-circuit this test for compilers unknown to 3152# Autoconf. 3153for ac_file in $ac_files '' 3154do 3155 test -f "$ac_file" || continue 3156 case $ac_file in 3157 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3158 ;; 3159 [ab].out ) 3160 # We found the default executable, but exeext='' is most 3161 # certainly right. 3162 break;; 3163 *.* ) 3164 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3165 then :; else 3166 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3167 fi 3168 # We set ac_cv_exeext here because the later test for it is not 3169 # safe: cross compilers may not add the suffix if given an `-o' 3170 # argument, so we may need to know it at that point already. 3171 # Even if this section looks crufty: it has the advantage of 3172 # actually working. 3173 break;; 3174 * ) 3175 break;; 3176 esac 3177done 3178test "$ac_cv_exeext" = no && ac_cv_exeext= 3179 3180else 3181 ac_file='' 3182fi 3183if test -z "$ac_file"; then : 3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3185$as_echo "no" >&6; } 3186$as_echo "$as_me: failed program was:" >&5 3187sed 's/^/| /' conftest.$ac_ext >&5 3188 3189{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3190$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3191{ as_fn_set_status 77 3192as_fn_error "C compiler cannot create executables 3193See \`config.log' for more details." "$LINENO" 5; }; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3196$as_echo "yes" >&6; } 3197fi 3198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3199$as_echo_n "checking for C compiler default output file name... " >&6; } 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3201$as_echo "$ac_file" >&6; } 3202ac_exeext=$ac_cv_exeext 3203 3204rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3205ac_clean_files=$ac_clean_files_save 3206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3207$as_echo_n "checking for suffix of executables... " >&6; } 3208if { { ac_try="$ac_link" 3209case "(($ac_try" in 3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3211 *) ac_try_echo=$ac_try;; 3212esac 3213eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3214$as_echo "$ac_try_echo"; } >&5 3215 (eval "$ac_link") 2>&5 3216 ac_status=$? 3217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3218 test $ac_status = 0; }; then : 3219 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3220# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3221# work properly (i.e., refer to `conftest.exe'), while it won't with 3222# `rm'. 3223for ac_file in conftest.exe conftest conftest.*; do 3224 test -f "$ac_file" || continue 3225 case $ac_file in 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3227 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3228 break;; 3229 * ) break;; 3230 esac 3231done 3232else 3233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3234$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3235as_fn_error "cannot compute suffix of executables: cannot compile and link 3236See \`config.log' for more details." "$LINENO" 5; } 3237fi 3238rm -f conftest conftest$ac_cv_exeext 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3240$as_echo "$ac_cv_exeext" >&6; } 3241 3242rm -f conftest.$ac_ext 3243EXEEXT=$ac_cv_exeext 3244ac_exeext=$EXEEXT 3245cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3246/* end confdefs.h. */ 3247#include <stdio.h> 3248int 3249main () 3250{ 3251FILE *f = fopen ("conftest.out", "w"); 3252 return ferror (f) || fclose (f) != 0; 3253 3254 ; 3255 return 0; 3256} 3257_ACEOF 3258ac_clean_files="$ac_clean_files conftest.out" 3259# Check that the compiler produces executables we can run. If not, either 3260# the compiler is broken, or we cross compile. 3261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3262$as_echo_n "checking whether we are cross compiling... " >&6; } 3263if test "$cross_compiling" != yes; then 3264 { { ac_try="$ac_link" 3265case "(($ac_try" in 3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3267 *) ac_try_echo=$ac_try;; 3268esac 3269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3270$as_echo "$ac_try_echo"; } >&5 3271 (eval "$ac_link") 2>&5 3272 ac_status=$? 3273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3274 test $ac_status = 0; } 3275 if { ac_try='./conftest$ac_cv_exeext' 3276 { { case "(($ac_try" in 3277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3278 *) ac_try_echo=$ac_try;; 3279esac 3280eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3281$as_echo "$ac_try_echo"; } >&5 3282 (eval "$ac_try") 2>&5 3283 ac_status=$? 3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3285 test $ac_status = 0; }; }; then 3286 cross_compiling=no 3287 else 3288 if test "$cross_compiling" = maybe; then 3289 cross_compiling=yes 3290 else 3291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3293as_fn_error "cannot run C compiled programs. 3294If you meant to cross compile, use \`--host'. 3295See \`config.log' for more details." "$LINENO" 5; } 3296 fi 3297 fi 3298fi 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3300$as_echo "$cross_compiling" >&6; } 3301 3302rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3303ac_clean_files=$ac_clean_files_save 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3305$as_echo_n "checking for suffix of object files... " >&6; } 3306if test "${ac_cv_objext+set}" = set; then : 3307 $as_echo_n "(cached) " >&6 3308else 3309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3310/* end confdefs.h. */ 3311 3312int 3313main () 3314{ 3315 3316 ; 3317 return 0; 3318} 3319_ACEOF 3320rm -f conftest.o conftest.obj 3321if { { ac_try="$ac_compile" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3327$as_echo "$ac_try_echo"; } >&5 3328 (eval "$ac_compile") 2>&5 3329 ac_status=$? 3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3331 test $ac_status = 0; }; then : 3332 for ac_file in conftest.o conftest.obj conftest.*; do 3333 test -f "$ac_file" || continue; 3334 case $ac_file in 3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3337 break;; 3338 esac 3339done 3340else 3341 $as_echo "$as_me: failed program was:" >&5 3342sed 's/^/| /' conftest.$ac_ext >&5 3343 3344{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3346as_fn_error "cannot compute suffix of object files: cannot compile 3347See \`config.log' for more details." "$LINENO" 5; } 3348fi 3349rm -f conftest.$ac_cv_objext conftest.$ac_ext 3350fi 3351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3352$as_echo "$ac_cv_objext" >&6; } 3353OBJEXT=$ac_cv_objext 3354ac_objext=$OBJEXT 3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3356$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3357if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3358 $as_echo_n "(cached) " >&6 3359else 3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3361/* end confdefs.h. */ 3362 3363int 3364main () 3365{ 3366#ifndef __GNUC__ 3367 choke me 3368#endif 3369 3370 ; 3371 return 0; 3372} 3373_ACEOF 3374if ac_fn_c_try_compile "$LINENO"; then : 3375 ac_compiler_gnu=yes 3376else 3377 ac_compiler_gnu=no 3378fi 3379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3380ac_cv_c_compiler_gnu=$ac_compiler_gnu 3381 3382fi 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3384$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3385if test $ac_compiler_gnu = yes; then 3386 GCC=yes 3387else 3388 GCC= 3389fi 3390ac_test_CFLAGS=${CFLAGS+set} 3391ac_save_CFLAGS=$CFLAGS 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3393$as_echo_n "checking whether $CC accepts -g... " >&6; } 3394if test "${ac_cv_prog_cc_g+set}" = set; then : 3395 $as_echo_n "(cached) " >&6 3396else 3397 ac_save_c_werror_flag=$ac_c_werror_flag 3398 ac_c_werror_flag=yes 3399 ac_cv_prog_cc_g=no 3400 CFLAGS="-g" 3401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3402/* end confdefs.h. */ 3403 3404int 3405main () 3406{ 3407 3408 ; 3409 return 0; 3410} 3411_ACEOF 3412if ac_fn_c_try_compile "$LINENO"; then : 3413 ac_cv_prog_cc_g=yes 3414else 3415 CFLAGS="" 3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3417/* end confdefs.h. */ 3418 3419int 3420main () 3421{ 3422 3423 ; 3424 return 0; 3425} 3426_ACEOF 3427if ac_fn_c_try_compile "$LINENO"; then : 3428 3429else 3430 ac_c_werror_flag=$ac_save_c_werror_flag 3431 CFLAGS="-g" 3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3433/* end confdefs.h. */ 3434 3435int 3436main () 3437{ 3438 3439 ; 3440 return 0; 3441} 3442_ACEOF 3443if ac_fn_c_try_compile "$LINENO"; then : 3444 ac_cv_prog_cc_g=yes 3445fi 3446rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3447fi 3448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3449fi 3450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3451 ac_c_werror_flag=$ac_save_c_werror_flag 3452fi 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3454$as_echo "$ac_cv_prog_cc_g" >&6; } 3455if test "$ac_test_CFLAGS" = set; then 3456 CFLAGS=$ac_save_CFLAGS 3457elif test $ac_cv_prog_cc_g = yes; then 3458 if test "$GCC" = yes; then 3459 CFLAGS="-g -O2" 3460 else 3461 CFLAGS="-g" 3462 fi 3463else 3464 if test "$GCC" = yes; then 3465 CFLAGS="-O2" 3466 else 3467 CFLAGS= 3468 fi 3469fi 3470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3471$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3472if test "${ac_cv_prog_cc_c89+set}" = set; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 ac_cv_prog_cc_c89=no 3476ac_save_CC=$CC 3477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3478/* end confdefs.h. */ 3479#include <stdarg.h> 3480#include <stdio.h> 3481#include <sys/types.h> 3482#include <sys/stat.h> 3483/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3484struct buf { int x; }; 3485FILE * (*rcsopen) (struct buf *, struct stat *, int); 3486static char *e (p, i) 3487 char **p; 3488 int i; 3489{ 3490 return p[i]; 3491} 3492static char *f (char * (*g) (char **, int), char **p, ...) 3493{ 3494 char *s; 3495 va_list v; 3496 va_start (v,p); 3497 s = g (p, va_arg (v,int)); 3498 va_end (v); 3499 return s; 3500} 3501 3502/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3503 function prototypes and stuff, but not '\xHH' hex character constants. 3504 These don't provoke an error unfortunately, instead are silently treated 3505 as 'x'. The following induces an error, until -std is added to get 3506 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3507 array size at least. It's necessary to write '\x00'==0 to get something 3508 that's true only with -std. */ 3509int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3510 3511/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3512 inside strings and character constants. */ 3513#define FOO(x) 'x' 3514int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3515 3516int test (int i, double x); 3517struct s1 {int (*f) (int a);}; 3518struct s2 {int (*f) (double a);}; 3519int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3520int argc; 3521char **argv; 3522int 3523main () 3524{ 3525return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3526 ; 3527 return 0; 3528} 3529_ACEOF 3530for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3531 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3532do 3533 CC="$ac_save_CC $ac_arg" 3534 if ac_fn_c_try_compile "$LINENO"; then : 3535 ac_cv_prog_cc_c89=$ac_arg 3536fi 3537rm -f core conftest.err conftest.$ac_objext 3538 test "x$ac_cv_prog_cc_c89" != "xno" && break 3539done 3540rm -f conftest.$ac_ext 3541CC=$ac_save_CC 3542 3543fi 3544# AC_CACHE_VAL 3545case "x$ac_cv_prog_cc_c89" in 3546 x) 3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3548$as_echo "none needed" >&6; } ;; 3549 xno) 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3551$as_echo "unsupported" >&6; } ;; 3552 *) 3553 CC="$CC $ac_cv_prog_cc_c89" 3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3555$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3556esac 3557if test "x$ac_cv_prog_cc_c89" != xno; then : 3558 3559fi 3560 3561ac_ext=c 3562ac_cpp='$CPP $CPPFLAGS' 3563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3565ac_compiler_gnu=$ac_cv_c_compiler_gnu 3566 3567 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 3569$as_echo_n "checking for dlopen in -ldl... " >&6; } 3570if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 ac_check_lib_save_LIBS=$LIBS 3574LIBS="-ldl $LIBS" 3575cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3576/* end confdefs.h. */ 3577 3578/* Override any GCC internal prototype to avoid an error. 3579 Use char because int might match the return type of a GCC 3580 builtin and then its argument prototype would still apply. */ 3581#ifdef __cplusplus 3582extern "C" 3583#endif 3584char dlopen (); 3585int 3586main () 3587{ 3588return dlopen (); 3589 ; 3590 return 0; 3591} 3592_ACEOF 3593if ac_fn_c_try_link "$LINENO"; then : 3594 ac_cv_lib_dl_dlopen=yes 3595else 3596 ac_cv_lib_dl_dlopen=no 3597fi 3598rm -f core conftest.err conftest.$ac_objext \ 3599 conftest$ac_exeext conftest.$ac_ext 3600LIBS=$ac_check_lib_save_LIBS 3601fi 3602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 3603$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 3604if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 3605 DLOPEN_LIB=-ldl 3606 3607$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 3608 3609fi 3610 3611 3612WITH_DIET_LIBC= 3613 3614# Check whether --with-diet-libc was given. 3615if test "${with_diet_libc+set}" = set; then : 3616 withval=$with_diet_libc; CC="diet cc -nostdinc" 3617WITH_DIET_LIBC=yes 3618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 3619$as_echo "CC=$CC" >&6; } 3620fi 3621 3622# Check whether --with-cc was given. 3623if test "${with_cc+set}" = set; then : 3624 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5 3625fi 3626 3627 3628# Check whether --with-ccopts was given. 3629if test "${with_ccopts+set}" = set; then : 3630 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 3631fi 3632 3633 3634# Check whether --with-ldopts was given. 3635if test "${with_ldopts+set}" = set; then : 3636 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 3637fi 3638 3639ac_ext=c 3640ac_cpp='$CPP $CPPFLAGS' 3641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3643ac_compiler_gnu=$ac_cv_c_compiler_gnu 3644if test -n "$ac_tool_prefix"; then 3645 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3646set dummy ${ac_tool_prefix}gcc; ac_word=$2 3647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3648$as_echo_n "checking for $ac_word... " >&6; } 3649if test "${ac_cv_prog_CC+set}" = set; then : 3650 $as_echo_n "(cached) " >&6 3651else 3652 if test -n "$CC"; then 3653 ac_cv_prog_CC="$CC" # Let the user override the test. 3654else 3655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3656for as_dir in $PATH 3657do 3658 IFS=$as_save_IFS 3659 test -z "$as_dir" && as_dir=. 3660 for ac_exec_ext in '' $ac_executable_extensions; do 3661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3662 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3664 break 2 3665 fi 3666done 3667 done 3668IFS=$as_save_IFS 3669 3670fi 3671fi 3672CC=$ac_cv_prog_CC 3673if test -n "$CC"; then 3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3675$as_echo "$CC" >&6; } 3676else 3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3678$as_echo "no" >&6; } 3679fi 3680 3681 3682fi 3683if test -z "$ac_cv_prog_CC"; then 3684 ac_ct_CC=$CC 3685 # Extract the first word of "gcc", so it can be a program name with args. 3686set dummy gcc; ac_word=$2 3687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3688$as_echo_n "checking for $ac_word... " >&6; } 3689if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3690 $as_echo_n "(cached) " >&6 3691else 3692 if test -n "$ac_ct_CC"; then 3693 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3694else 3695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3696for as_dir in $PATH 3697do 3698 IFS=$as_save_IFS 3699 test -z "$as_dir" && as_dir=. 3700 for ac_exec_ext in '' $ac_executable_extensions; do 3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3702 ac_cv_prog_ac_ct_CC="gcc" 3703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3704 break 2 3705 fi 3706done 3707 done 3708IFS=$as_save_IFS 3709 3710fi 3711fi 3712ac_ct_CC=$ac_cv_prog_ac_ct_CC 3713if test -n "$ac_ct_CC"; then 3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3715$as_echo "$ac_ct_CC" >&6; } 3716else 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3718$as_echo "no" >&6; } 3719fi 3720 3721 if test "x$ac_ct_CC" = x; then 3722 CC="" 3723 else 3724 case $cross_compiling:$ac_tool_warned in 3725yes:) 3726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3728ac_tool_warned=yes ;; 3729esac 3730 CC=$ac_ct_CC 3731 fi 3732else 3733 CC="$ac_cv_prog_CC" 3734fi 3735 3736if test -z "$CC"; then 3737 if test -n "$ac_tool_prefix"; then 3738 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3739set dummy ${ac_tool_prefix}cc; ac_word=$2 3740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3741$as_echo_n "checking for $ac_word... " >&6; } 3742if test "${ac_cv_prog_CC+set}" = set; then : 3743 $as_echo_n "(cached) " >&6 3744else 3745 if test -n "$CC"; then 3746 ac_cv_prog_CC="$CC" # Let the user override the test. 3747else 3748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3749for as_dir in $PATH 3750do 3751 IFS=$as_save_IFS 3752 test -z "$as_dir" && as_dir=. 3753 for ac_exec_ext in '' $ac_executable_extensions; do 3754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3755 ac_cv_prog_CC="${ac_tool_prefix}cc" 3756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3757 break 2 3758 fi 3759done 3760 done 3761IFS=$as_save_IFS 3762 3763fi 3764fi 3765CC=$ac_cv_prog_CC 3766if test -n "$CC"; then 3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3768$as_echo "$CC" >&6; } 3769else 3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3771$as_echo "no" >&6; } 3772fi 3773 3774 3775 fi 3776fi 3777if test -z "$CC"; then 3778 # Extract the first word of "cc", so it can be a program name with args. 3779set dummy cc; ac_word=$2 3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3781$as_echo_n "checking for $ac_word... " >&6; } 3782if test "${ac_cv_prog_CC+set}" = set; then : 3783 $as_echo_n "(cached) " >&6 3784else 3785 if test -n "$CC"; then 3786 ac_cv_prog_CC="$CC" # Let the user override the test. 3787else 3788 ac_prog_rejected=no 3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3790for as_dir in $PATH 3791do 3792 IFS=$as_save_IFS 3793 test -z "$as_dir" && as_dir=. 3794 for ac_exec_ext in '' $ac_executable_extensions; do 3795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3796 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3797 ac_prog_rejected=yes 3798 continue 3799 fi 3800 ac_cv_prog_CC="cc" 3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3802 break 2 3803 fi 3804done 3805 done 3806IFS=$as_save_IFS 3807 3808if test $ac_prog_rejected = yes; then 3809 # We found a bogon in the path, so make sure we never use it. 3810 set dummy $ac_cv_prog_CC 3811 shift 3812 if test $# != 0; then 3813 # We chose a different compiler from the bogus one. 3814 # However, it has the same basename, so the bogon will be chosen 3815 # first if we set CC to just the basename; use the full file name. 3816 shift 3817 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3818 fi 3819fi 3820fi 3821fi 3822CC=$ac_cv_prog_CC 3823if test -n "$CC"; then 3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3825$as_echo "$CC" >&6; } 3826else 3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3828$as_echo "no" >&6; } 3829fi 3830 3831 3832fi 3833if test -z "$CC"; then 3834 if test -n "$ac_tool_prefix"; then 3835 for ac_prog in cl.exe 3836 do 3837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3838set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3840$as_echo_n "checking for $ac_word... " >&6; } 3841if test "${ac_cv_prog_CC+set}" = set; then : 3842 $as_echo_n "(cached) " >&6 3843else 3844 if test -n "$CC"; then 3845 ac_cv_prog_CC="$CC" # Let the user override the test. 3846else 3847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3848for as_dir in $PATH 3849do 3850 IFS=$as_save_IFS 3851 test -z "$as_dir" && as_dir=. 3852 for ac_exec_ext in '' $ac_executable_extensions; do 3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3854 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3856 break 2 3857 fi 3858done 3859 done 3860IFS=$as_save_IFS 3861 3862fi 3863fi 3864CC=$ac_cv_prog_CC 3865if test -n "$CC"; then 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3867$as_echo "$CC" >&6; } 3868else 3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3870$as_echo "no" >&6; } 3871fi 3872 3873 3874 test -n "$CC" && break 3875 done 3876fi 3877if test -z "$CC"; then 3878 ac_ct_CC=$CC 3879 for ac_prog in cl.exe 3880do 3881 # Extract the first word of "$ac_prog", so it can be a program name with args. 3882set dummy $ac_prog; ac_word=$2 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3884$as_echo_n "checking for $ac_word... " >&6; } 3885if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3886 $as_echo_n "(cached) " >&6 3887else 3888 if test -n "$ac_ct_CC"; then 3889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3890else 3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3892for as_dir in $PATH 3893do 3894 IFS=$as_save_IFS 3895 test -z "$as_dir" && as_dir=. 3896 for ac_exec_ext in '' $ac_executable_extensions; do 3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3898 ac_cv_prog_ac_ct_CC="$ac_prog" 3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3900 break 2 3901 fi 3902done 3903 done 3904IFS=$as_save_IFS 3905 3906fi 3907fi 3908ac_ct_CC=$ac_cv_prog_ac_ct_CC 3909if test -n "$ac_ct_CC"; then 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3911$as_echo "$ac_ct_CC" >&6; } 3912else 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3914$as_echo "no" >&6; } 3915fi 3916 3917 3918 test -n "$ac_ct_CC" && break 3919done 3920 3921 if test "x$ac_ct_CC" = x; then 3922 CC="" 3923 else 3924 case $cross_compiling:$ac_tool_warned in 3925yes:) 3926{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3927$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3928ac_tool_warned=yes ;; 3929esac 3930 CC=$ac_ct_CC 3931 fi 3932fi 3933 3934fi 3935 3936 3937test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3939as_fn_error "no acceptable C compiler found in \$PATH 3940See \`config.log' for more details." "$LINENO" 5; } 3941 3942# Provide some information about the compiler. 3943$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3944set X $ac_compile 3945ac_compiler=$2 3946for ac_option in --version -v -V -qversion; do 3947 { { ac_try="$ac_compiler $ac_option >&5" 3948case "(($ac_try" in 3949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3950 *) ac_try_echo=$ac_try;; 3951esac 3952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3953$as_echo "$ac_try_echo"; } >&5 3954 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3955 ac_status=$? 3956 if test -s conftest.err; then 3957 sed '10a\ 3958... rest of stderr output deleted ... 3959 10q' conftest.err >conftest.er1 3960 cat conftest.er1 >&5 3961 fi 3962 rm -f conftest.er1 conftest.err 3963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3964 test $ac_status = 0; } 3965done 3966 3967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3968$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3969if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3970 $as_echo_n "(cached) " >&6 3971else 3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3973/* end confdefs.h. */ 3974 3975int 3976main () 3977{ 3978#ifndef __GNUC__ 3979 choke me 3980#endif 3981 3982 ; 3983 return 0; 3984} 3985_ACEOF 3986if ac_fn_c_try_compile "$LINENO"; then : 3987 ac_compiler_gnu=yes 3988else 3989 ac_compiler_gnu=no 3990fi 3991rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3992ac_cv_c_compiler_gnu=$ac_compiler_gnu 3993 3994fi 3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3996$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3997if test $ac_compiler_gnu = yes; then 3998 GCC=yes 3999else 4000 GCC= 4001fi 4002ac_test_CFLAGS=${CFLAGS+set} 4003ac_save_CFLAGS=$CFLAGS 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4005$as_echo_n "checking whether $CC accepts -g... " >&6; } 4006if test "${ac_cv_prog_cc_g+set}" = set; then : 4007 $as_echo_n "(cached) " >&6 4008else 4009 ac_save_c_werror_flag=$ac_c_werror_flag 4010 ac_c_werror_flag=yes 4011 ac_cv_prog_cc_g=no 4012 CFLAGS="-g" 4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4014/* end confdefs.h. */ 4015 4016int 4017main () 4018{ 4019 4020 ; 4021 return 0; 4022} 4023_ACEOF 4024if ac_fn_c_try_compile "$LINENO"; then : 4025 ac_cv_prog_cc_g=yes 4026else 4027 CFLAGS="" 4028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4029/* end confdefs.h. */ 4030 4031int 4032main () 4033{ 4034 4035 ; 4036 return 0; 4037} 4038_ACEOF 4039if ac_fn_c_try_compile "$LINENO"; then : 4040 4041else 4042 ac_c_werror_flag=$ac_save_c_werror_flag 4043 CFLAGS="-g" 4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4045/* end confdefs.h. */ 4046 4047int 4048main () 4049{ 4050 4051 ; 4052 return 0; 4053} 4054_ACEOF 4055if ac_fn_c_try_compile "$LINENO"; then : 4056 ac_cv_prog_cc_g=yes 4057fi 4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4059fi 4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4061fi 4062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4063 ac_c_werror_flag=$ac_save_c_werror_flag 4064fi 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4066$as_echo "$ac_cv_prog_cc_g" >&6; } 4067if test "$ac_test_CFLAGS" = set; then 4068 CFLAGS=$ac_save_CFLAGS 4069elif test $ac_cv_prog_cc_g = yes; then 4070 if test "$GCC" = yes; then 4071 CFLAGS="-g -O2" 4072 else 4073 CFLAGS="-g" 4074 fi 4075else 4076 if test "$GCC" = yes; then 4077 CFLAGS="-O2" 4078 else 4079 CFLAGS= 4080 fi 4081fi 4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4083$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4084if test "${ac_cv_prog_cc_c89+set}" = set; then : 4085 $as_echo_n "(cached) " >&6 4086else 4087 ac_cv_prog_cc_c89=no 4088ac_save_CC=$CC 4089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090/* end confdefs.h. */ 4091#include <stdarg.h> 4092#include <stdio.h> 4093#include <sys/types.h> 4094#include <sys/stat.h> 4095/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4096struct buf { int x; }; 4097FILE * (*rcsopen) (struct buf *, struct stat *, int); 4098static char *e (p, i) 4099 char **p; 4100 int i; 4101{ 4102 return p[i]; 4103} 4104static char *f (char * (*g) (char **, int), char **p, ...) 4105{ 4106 char *s; 4107 va_list v; 4108 va_start (v,p); 4109 s = g (p, va_arg (v,int)); 4110 va_end (v); 4111 return s; 4112} 4113 4114/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4115 function prototypes and stuff, but not '\xHH' hex character constants. 4116 These don't provoke an error unfortunately, instead are silently treated 4117 as 'x'. The following induces an error, until -std is added to get 4118 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4119 array size at least. It's necessary to write '\x00'==0 to get something 4120 that's true only with -std. */ 4121int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4122 4123/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4124 inside strings and character constants. */ 4125#define FOO(x) 'x' 4126int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4127 4128int test (int i, double x); 4129struct s1 {int (*f) (int a);}; 4130struct s2 {int (*f) (double a);}; 4131int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4132int argc; 4133char **argv; 4134int 4135main () 4136{ 4137return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4138 ; 4139 return 0; 4140} 4141_ACEOF 4142for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4143 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4144do 4145 CC="$ac_save_CC $ac_arg" 4146 if ac_fn_c_try_compile "$LINENO"; then : 4147 ac_cv_prog_cc_c89=$ac_arg 4148fi 4149rm -f core conftest.err conftest.$ac_objext 4150 test "x$ac_cv_prog_cc_c89" != "xno" && break 4151done 4152rm -f conftest.$ac_ext 4153CC=$ac_save_CC 4154 4155fi 4156# AC_CACHE_VAL 4157case "x$ac_cv_prog_cc_c89" in 4158 x) 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4160$as_echo "none needed" >&6; } ;; 4161 xno) 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4163$as_echo "unsupported" >&6; } ;; 4164 *) 4165 CC="$CC $ac_cv_prog_cc_c89" 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4167$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4168esac 4169if test "x$ac_cv_prog_cc_c89" != xno; then : 4170 4171fi 4172 4173ac_ext=c 4174ac_cpp='$CPP $CPPFLAGS' 4175ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4176ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4177ac_compiler_gnu=$ac_cv_c_compiler_gnu 4178 4179if test "$GCC" = yes; then 4180 RDYNAMIC="-rdynamic" 4181 4182fi 4183ac_ext=c 4184ac_cpp='$CPP $CPPFLAGS' 4185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4187ac_compiler_gnu=$ac_cv_c_compiler_gnu 4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4189$as_echo_n "checking how to run the C preprocessor... " >&6; } 4190# On Suns, sometimes $CPP names a directory. 4191if test -n "$CPP" && test -d "$CPP"; then 4192 CPP= 4193fi 4194if test -z "$CPP"; then 4195 if test "${ac_cv_prog_CPP+set}" = set; then : 4196 $as_echo_n "(cached) " >&6 4197else 4198 # Double quotes because CPP needs to be expanded 4199 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4200 do 4201 ac_preproc_ok=false 4202for ac_c_preproc_warn_flag in '' yes 4203do 4204 # Use a header file that comes with gcc, so configuring glibc 4205 # with a fresh cross-compiler works. 4206 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4207 # <limits.h> exists even on freestanding compilers. 4208 # On the NeXT, cc -E runs the code through the compiler's parser, 4209 # not just through cpp. "Syntax error" is here to catch this case. 4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4211/* end confdefs.h. */ 4212#ifdef __STDC__ 4213# include <limits.h> 4214#else 4215# include <assert.h> 4216#endif 4217 Syntax error 4218_ACEOF 4219if ac_fn_c_try_cpp "$LINENO"; then : 4220 4221else 4222 # Broken: fails on valid input. 4223continue 4224fi 4225rm -f conftest.err conftest.$ac_ext 4226 4227 # OK, works on sane cases. Now check whether nonexistent headers 4228 # can be detected and how. 4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4230/* end confdefs.h. */ 4231#include <ac_nonexistent.h> 4232_ACEOF 4233if ac_fn_c_try_cpp "$LINENO"; then : 4234 # Broken: success on invalid input. 4235continue 4236else 4237 # Passes both tests. 4238ac_preproc_ok=: 4239break 4240fi 4241rm -f conftest.err conftest.$ac_ext 4242 4243done 4244# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4245rm -f conftest.err conftest.$ac_ext 4246if $ac_preproc_ok; then : 4247 break 4248fi 4249 4250 done 4251 ac_cv_prog_CPP=$CPP 4252 4253fi 4254 CPP=$ac_cv_prog_CPP 4255else 4256 ac_cv_prog_CPP=$CPP 4257fi 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4259$as_echo "$CPP" >&6; } 4260ac_preproc_ok=false 4261for ac_c_preproc_warn_flag in '' yes 4262do 4263 # Use a header file that comes with gcc, so configuring glibc 4264 # with a fresh cross-compiler works. 4265 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4266 # <limits.h> exists even on freestanding compilers. 4267 # On the NeXT, cc -E runs the code through the compiler's parser, 4268 # not just through cpp. "Syntax error" is here to catch this case. 4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4270/* end confdefs.h. */ 4271#ifdef __STDC__ 4272# include <limits.h> 4273#else 4274# include <assert.h> 4275#endif 4276 Syntax error 4277_ACEOF 4278if ac_fn_c_try_cpp "$LINENO"; then : 4279 4280else 4281 # Broken: fails on valid input. 4282continue 4283fi 4284rm -f conftest.err conftest.$ac_ext 4285 4286 # OK, works on sane cases. Now check whether nonexistent headers 4287 # can be detected and how. 4288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4289/* end confdefs.h. */ 4290#include <ac_nonexistent.h> 4291_ACEOF 4292if ac_fn_c_try_cpp "$LINENO"; then : 4293 # Broken: success on invalid input. 4294continue 4295else 4296 # Passes both tests. 4297ac_preproc_ok=: 4298break 4299fi 4300rm -f conftest.err conftest.$ac_ext 4301 4302done 4303# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4304rm -f conftest.err conftest.$ac_ext 4305if $ac_preproc_ok; then : 4306 4307else 4308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4309$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4310as_fn_error "C preprocessor \"$CPP\" fails sanity check 4311See \`config.log' for more details." "$LINENO" 5; } 4312fi 4313 4314ac_ext=c 4315ac_cpp='$CPP $CPPFLAGS' 4316ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4317ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4318ac_compiler_gnu=$ac_cv_c_compiler_gnu 4319 4320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 4321$as_echo_n "checking for additional special compiler flags... " >&6; } 4322if test "$GCC" = yes 4323then 4324 case "$host_cpu" in 4325 alpha) addcflags="-mieee" ;; 4326 esac 4327fi 4328if test "x$addcflags" != x 4329then 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 4331$as_echo "$addcflags" >&6; } 4332 CFLAGS="$addcflags $CFLAGS" 4333else 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 4335$as_echo "(none)" >&6; } 4336fi 4337LIB_EXT=.a 4338STATIC_LIB_EXT=.a 4339PROFILED_LIB_EXT=.a 4340 4341# Check whether --with-root-prefix was given. 4342if test "${with_root_prefix+set}" = set; then : 4343 withval=$with_root_prefix; root_prefix=$withval 4344else 4345 root_prefix=NONE 4346fi 4347# Check whether --enable-maintainer-mode was given. 4348if test "${enable_maintainer_mode+set}" = set; then : 4349 enableval=$enable_maintainer_mode; if test "$enableval" = "no" 4350then 4351 MAINTAINER_CMT=# 4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 4353$as_echo "Disabling maintainer mode" >&6; } 4354else 4355 MAINTAINER_CMT= 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 4357$as_echo "Enabling maintainer mode" >&6; } 4358fi 4359 4360else 4361 MAINTAINER_CMT=# 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 4363$as_echo "Disabling maintainer mode by default" >&6; } 4364 4365fi 4366 4367 4368# Check whether --enable-symlink-install was given. 4369if test "${enable_symlink_install+set}" = set; then : 4370 enableval=$enable_symlink_install; if test "$enableval" = "no" 4371then 4372 LINK_INSTALL_FLAGS=-f 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 4374$as_echo "Disabling symlinks for install" >&6; } 4375else 4376 LINK_INSTALL_FLAGS=-sf 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 4378$as_echo "Enabling symlinks for install" >&6; } 4379fi 4380 4381else 4382 LINK_INSTALL_FLAGS=-f 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 4384$as_echo "Disabling symlinks for install by default" >&6; } 4385 4386fi 4387 4388 4389# Check whether --enable-symlink-relative-symlinks was given. 4390if test "${enable_symlink_relative_symlinks+set}" = set; then : 4391 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" 4392then 4393 SYMLINK_RELATIVE= 4394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 4395$as_echo "Disabling relative symlinks for install" >&6; } 4396else 4397 SYMLINK_RELATIVE=--relative 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 4399$as_echo "Enabling symlinks for install" >&6; } 4400fi 4401 4402else 4403 SYMLINK_RELATIVE= 4404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 4405$as_echo "Disabling relative symlinks for install by default" >&6; } 4406 4407fi 4408 4409 4410# Check whether --enable-symlink-build was given. 4411if test "${enable_symlink_build+set}" = set; then : 4412 enableval=$enable_symlink_build; if test "$enableval" = "no" 4413then 4414 LINK_BUILD_FLAGS= 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 4416$as_echo "Disabling symlinks for build" >&6; } 4417else 4418 LINK_BUILD_FLAGS=-s 4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 4420$as_echo "Enabling symlinks for build" >&6; } 4421fi 4422 4423else 4424 LINK_BUILD_FLAGS= 4425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 4426$as_echo "Disabling symlinks for build by default" >&6; } 4427 4428fi 4429 4430 4431# Check whether --enable-verbose-makecmds was given. 4432if test "${enable_verbose_makecmds+set}" = set; then : 4433 enableval=$enable_verbose_makecmds; if test "$enableval" = "no" 4434then 4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 4436$as_echo "Disabling verbose make commands" >&6; } 4437 E=@echo 4438 ES=echo 4439 Q=@ 4440else 4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 4442$as_echo "Enabling verbose make commands" >&6; } 4443 E=@\\# 4444 ES=\\# 4445 Q= 4446fi 4447 4448else 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 4450$as_echo "Disabling verbose make commands" >&6; } 4451E=@echo 4452ES=echo 4453Q=@ 4454 4455fi 4456 4457 4458 4459 4460# Check whether --enable-compression was given. 4461if test "${enable_compression+set}" = set; then : 4462 enableval=$enable_compression; if test "$enableval" = "no" 4463then 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 4465$as_echo "Disabling compression support" >&6; } 4466else 4467 4468$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h 4469 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 4471$as_echo "Enabling compression support" >&6; } 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 4473$as_echo "$as_me: WARNING: Compression support is experimental" >&2;} 4474fi 4475 4476else 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 4478$as_echo "Disabling compression support by default" >&6; } 4479 4480fi 4481 4482 4483# Check whether --enable-htree was given. 4484if test "${enable_htree+set}" = set; then : 4485 enableval=$enable_htree; if test "$enableval" = "no" 4486then 4487 HTREE_CMT=# 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 4489$as_echo "Disabling htree directory support" >&6; } 4490else 4491 HTREE_CMT= 4492 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h 4493 4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 4495$as_echo "Enabling htree directory support" >&6; } 4496fi 4497 4498else 4499 HTREE_CMT= 4500$as_echo "#define ENABLE_HTREE 1" >>confdefs.h 4501 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 4503$as_echo "Enabling htree directory support by default" >&6; } 4504 4505fi 4506 4507 4508E2_PKG_CONFIG_STATIC=--static 4509LDFLAG_DYNAMIC= 4510PRIVATE_LIBS_CMT= 4511# Check whether --enable-elf-shlibs was given. 4512if test "${enable_elf_shlibs+set}" = set; then : 4513 enableval=$enable_elf_shlibs; if test "$enableval" = "no" 4514then 4515 ELF_CMT=# 4516 MAKEFILE_ELF=/dev/null 4517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 4518$as_echo "Disabling ELF shared libraries" >&6; } 4519else 4520 E2_PKG_CONFIG_STATIC= 4521 ELF_CMT= 4522 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib 4523 case "$host_os" in 4524 solaris2.*) 4525 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib 4526 ;; 4527 esac 4528 BINARY_TYPE=elfbin 4529 LIB_EXT=.so 4530 PRIVATE_LIBS_CMT=# 4531 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' 4532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 4533$as_echo "Enabling ELF shared libraries" >&6; } 4534fi 4535 4536else 4537 MAKEFILE_ELF=/dev/null 4538ELF_CMT=# 4539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 4540$as_echo "Disabling ELF shared libraries by default" >&6; } 4541 4542fi 4543 4544 4545 4546# Check whether --enable-bsd-shlibs was given. 4547if test "${enable_bsd_shlibs+set}" = set; then : 4548 enableval=$enable_bsd_shlibs; if test "$enableval" = "no" 4549then 4550 BSDLIB_CMT=# 4551 MAKEFILE_BSDLIB=/dev/null 4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 4553$as_echo "Disabling BSD shared libraries" >&6; } 4554else 4555 E2_PKG_CONFIG_STATIC= 4556 BSDLIB_CMT= 4557 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib 4558 LIB_EXT=.so 4559 case "$host_os" in 4560 darwin*) 4561 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib 4562 LIB_EXT=.dylib 4563 ;; 4564 esac 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 4566$as_echo "Enabling BSD shared libraries" >&6; } 4567fi 4568 4569else 4570 MAKEFILE_BSDLIB=/dev/null 4571BSDLIB_CMT=# 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 4573$as_echo "Disabling BSD shared libraries by default" >&6; } 4574 4575fi 4576 4577 4578 4579# Check whether --enable-profile was given. 4580if test "${enable_profile+set}" = set; then : 4581 enableval=$enable_profile; if test "$enableval" = "no" 4582then 4583 PROFILE_CMT=# 4584 MAKEFILE_PROFILE=/dev/null 4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 4586$as_echo "Disabling profiling libraries" >&6; } 4587else 4588 PROFILE_CMT= 4589 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile 4590 PROFILED_LIB_EXT=_p.a 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 4592$as_echo "Building profiling libraries" >&6; } 4593fi 4594 4595else 4596 PROFILE_CMT=# 4597MAKEFILE_PROFILE=/dev/null 4598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 4599$as_echo "Disabling profiling libraries by default" >&6; } 4600 4601fi 4602 4603 4604 4605# Check whether --enable-checker was given. 4606if test "${enable_checker+set}" = set; then : 4607 enableval=$enable_checker; if test "$enableval" = "no" 4608then 4609 CHECKER_CMT=# 4610 MAKEFILE_CHECKER=/dev/null 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5 4612$as_echo "Disabling checker libraries" >&6; } 4613else 4614 CHECKER_CMT= 4615 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker 4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5 4617$as_echo "Building checker libraries" >&6; } 4618fi 4619 4620else 4621 CHECKER_CMT=# 4622MAKEFILE_CHECKER=/dev/null 4623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5 4624$as_echo "Disabling checker libraries by default" >&6; } 4625 4626fi 4627 4628 4629 4630 4631 4632 4633 4634 4635# Check whether --enable-jbd-debug was given. 4636if test "${enable_jbd_debug+set}" = set; then : 4637 enableval=$enable_jbd_debug; if test "$enableval" = "no" 4638then 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 4640$as_echo "Disabling journal debugging" >&6; } 4641else 4642 4643$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h 4644 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 4646$as_echo "Enabling journal debugging" >&6; } 4647fi 4648 4649else 4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 4651$as_echo "Disabling journal debugging by default" >&6; } 4652 4653fi 4654 4655# Check whether --enable-blkid-debug was given. 4656if test "${enable_blkid_debug+set}" = set; then : 4657 enableval=$enable_blkid_debug; if test "$enableval" = "no" 4658then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 4660$as_echo "Disabling blkid debugging" >&6; } 4661else 4662 4663$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h 4664 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 4666$as_echo "Enabling blkid debugging" >&6; } 4667fi 4668 4669else 4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 4671$as_echo "Disabling blkid debugging by default" >&6; } 4672 4673fi 4674 4675# Check whether --enable-testio-debug was given. 4676if test "${enable_testio_debug+set}" = set; then : 4677 enableval=$enable_testio_debug; 4678if test "$enableval" = "no" 4679then 4680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 4681$as_echo "Disabling testio debugging" >&6; } 4682 TEST_IO_CMT="#" 4683else 4684 TEST_IO_CMT= 4685 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h 4686 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 4688$as_echo "Enabling testio debugging" >&6; } 4689fi 4690 4691else 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 4693$as_echo "Enabling testio debugging by default" >&6; } 4694$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h 4695 4696TEST_IO_CMT= 4697 4698fi 4699 4700 4701 4702 4703if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4704 if test -n "$ac_tool_prefix"; then 4705 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4706set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4708$as_echo_n "checking for $ac_word... " >&6; } 4709if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4710 $as_echo_n "(cached) " >&6 4711else 4712 case $PKG_CONFIG in 4713 [\\/]* | ?:[\\/]*) 4714 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4715 ;; 4716 *) 4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4718for as_dir in $PATH 4719do 4720 IFS=$as_save_IFS 4721 test -z "$as_dir" && as_dir=. 4722 for ac_exec_ext in '' $ac_executable_extensions; do 4723 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4724 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4726 break 2 4727 fi 4728done 4729 done 4730IFS=$as_save_IFS 4731 4732 ;; 4733esac 4734fi 4735PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4736if test -n "$PKG_CONFIG"; then 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4738$as_echo "$PKG_CONFIG" >&6; } 4739else 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4741$as_echo "no" >&6; } 4742fi 4743 4744 4745fi 4746if test -z "$ac_cv_path_PKG_CONFIG"; then 4747 ac_pt_PKG_CONFIG=$PKG_CONFIG 4748 # Extract the first word of "pkg-config", so it can be a program name with args. 4749set dummy pkg-config; ac_word=$2 4750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4751$as_echo_n "checking for $ac_word... " >&6; } 4752if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4753 $as_echo_n "(cached) " >&6 4754else 4755 case $ac_pt_PKG_CONFIG in 4756 [\\/]* | ?:[\\/]*) 4757 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4758 ;; 4759 *) 4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4761for as_dir in $PATH 4762do 4763 IFS=$as_save_IFS 4764 test -z "$as_dir" && as_dir=. 4765 for ac_exec_ext in '' $ac_executable_extensions; do 4766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4767 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4769 break 2 4770 fi 4771done 4772 done 4773IFS=$as_save_IFS 4774 4775 ;; 4776esac 4777fi 4778ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4779if test -n "$ac_pt_PKG_CONFIG"; then 4780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4781$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4782else 4783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4784$as_echo "no" >&6; } 4785fi 4786 4787 if test "x$ac_pt_PKG_CONFIG" = x; then 4788 PKG_CONFIG="" 4789 else 4790 case $cross_compiling:$ac_tool_warned in 4791yes:) 4792{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4793$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4794ac_tool_warned=yes ;; 4795esac 4796 PKG_CONFIG=$ac_pt_PKG_CONFIG 4797 fi 4798else 4799 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4800fi 4801 4802fi 4803if test -n "$PKG_CONFIG"; then 4804 _pkg_min_version=0.9.0 4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4806$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4807 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4809$as_echo "yes" >&6; } 4810 else 4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4812$as_echo "no" >&6; } 4813 PKG_CONFIG="" 4814 fi 4815 4816fi 4817LIBUUID= 4818DEPLIBUUID= 4819STATIC_LIBUUID= 4820DEPSTATIC_LIBUUID= 4821PROFILED_LIBUUID= 4822DEPPROFILED_LIBUUID= 4823UUID_CMT= 4824# Check whether --enable-libuuid was given. 4825if test "${enable_libuuid+set}" = set; then : 4826 enableval=$enable_libuuid; if test "$enableval" = "no" 4827then 4828 if test -z "$PKG_CONFIG"; then 4829 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 4830 fi 4831 4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 4833$as_echo_n "checking for uuid_generate in -luuid... " >&6; } 4834if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : 4835 $as_echo_n "(cached) " >&6 4836else 4837 ac_check_lib_save_LIBS=$LIBS 4838LIBS="-luuid $LIBUUID $LIBS" 4839cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840/* end confdefs.h. */ 4841 4842/* Override any GCC internal prototype to avoid an error. 4843 Use char because int might match the return type of a GCC 4844 builtin and then its argument prototype would still apply. */ 4845#ifdef __cplusplus 4846extern "C" 4847#endif 4848char uuid_generate (); 4849int 4850main () 4851{ 4852return uuid_generate (); 4853 ; 4854 return 0; 4855} 4856_ACEOF 4857if ac_fn_c_try_link "$LINENO"; then : 4858 ac_cv_lib_uuid_uuid_generate=yes 4859else 4860 ac_cv_lib_uuid_uuid_generate=no 4861fi 4862rm -f core conftest.err conftest.$ac_objext \ 4863 conftest$ac_exeext conftest.$ac_ext 4864LIBS=$ac_check_lib_save_LIBS 4865fi 4866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 4867$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } 4868if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : 4869 LIBUUID=`$PKG_CONFIG --libs uuid`; 4870 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` 4871else 4872 as_fn_error "external uuid library not found" "$LINENO" 5 4873fi 4874 4875 UUID_CMT=# 4876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 4877$as_echo "Disabling private uuid library" >&6; } 4878else 4879 LIBUUID='$(LIB)/libuuid'$LIB_EXT 4880 DEPLIBUUID=$LIBUUID 4881 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT 4882 DEPSTATIC_LIBUUID=$STATIC_LIBUUID 4883 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT 4884 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 4886$as_echo "Enabling private uuid library" >&6; } 4887fi 4888 4889else 4890 LIBUUID='$(LIB)/libuuid'$LIB_EXT 4891DEPLIBUUID=$LIBUUID 4892STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT 4893DEPSTATIC_LIBUUID=$STATIC_LIBUUID 4894PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT 4895DEPPROFILED_LIBUUID=$PROFILED_LIBUUID 4896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 4897$as_echo "Enabling private uuid library by default" >&6; } 4898 4899fi 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4911 if test -n "$ac_tool_prefix"; then 4912 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4913set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4915$as_echo_n "checking for $ac_word... " >&6; } 4916if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4917 $as_echo_n "(cached) " >&6 4918else 4919 case $PKG_CONFIG in 4920 [\\/]* | ?:[\\/]*) 4921 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4922 ;; 4923 *) 4924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4925for as_dir in $PATH 4926do 4927 IFS=$as_save_IFS 4928 test -z "$as_dir" && as_dir=. 4929 for ac_exec_ext in '' $ac_executable_extensions; do 4930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4931 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4933 break 2 4934 fi 4935done 4936 done 4937IFS=$as_save_IFS 4938 4939 ;; 4940esac 4941fi 4942PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4943if test -n "$PKG_CONFIG"; then 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4945$as_echo "$PKG_CONFIG" >&6; } 4946else 4947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4948$as_echo "no" >&6; } 4949fi 4950 4951 4952fi 4953if test -z "$ac_cv_path_PKG_CONFIG"; then 4954 ac_pt_PKG_CONFIG=$PKG_CONFIG 4955 # Extract the first word of "pkg-config", so it can be a program name with args. 4956set dummy pkg-config; ac_word=$2 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4958$as_echo_n "checking for $ac_word... " >&6; } 4959if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4960 $as_echo_n "(cached) " >&6 4961else 4962 case $ac_pt_PKG_CONFIG in 4963 [\\/]* | ?:[\\/]*) 4964 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4965 ;; 4966 *) 4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4968for as_dir in $PATH 4969do 4970 IFS=$as_save_IFS 4971 test -z "$as_dir" && as_dir=. 4972 for ac_exec_ext in '' $ac_executable_extensions; do 4973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4974 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4976 break 2 4977 fi 4978done 4979 done 4980IFS=$as_save_IFS 4981 4982 ;; 4983esac 4984fi 4985ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4986if test -n "$ac_pt_PKG_CONFIG"; then 4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4988$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4989else 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4991$as_echo "no" >&6; } 4992fi 4993 4994 if test "x$ac_pt_PKG_CONFIG" = x; then 4995 PKG_CONFIG="" 4996 else 4997 case $cross_compiling:$ac_tool_warned in 4998yes:) 4999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5001ac_tool_warned=yes ;; 5002esac 5003 PKG_CONFIG=$ac_pt_PKG_CONFIG 5004 fi 5005else 5006 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5007fi 5008 5009fi 5010if test -n "$PKG_CONFIG"; then 5011 _pkg_min_version=0.9.0 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5013$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5014 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5016$as_echo "yes" >&6; } 5017 else 5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5019$as_echo "no" >&6; } 5020 PKG_CONFIG="" 5021 fi 5022 5023fi 5024LIBBLKID= 5025DEPLIBBLKID= 5026STATIC_LIBBLKID= 5027DEPSTATIC_LIBBLKID= 5028PROFILED_LIBBLKID= 5029DEPPROFILED_LIBBLKID= 5030BLKID_CMT= 5031 5032# Check whether --enable-libblkid was given. 5033if test "${enable_libblkid+set}" = set; then : 5034 enableval=$enable_libblkid; if test "$enableval" = "no" 5035then 5036 if test -z "$PKG_CONFIG"; then 5037 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 5038 fi 5039 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 5041$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } 5042if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then : 5043 $as_echo_n "(cached) " >&6 5044else 5045 ac_check_lib_save_LIBS=$LIBS 5046LIBS="-lblkid $LIBBLKID $LIBS" 5047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5048/* end confdefs.h. */ 5049 5050/* Override any GCC internal prototype to avoid an error. 5051 Use char because int might match the return type of a GCC 5052 builtin and then its argument prototype would still apply. */ 5053#ifdef __cplusplus 5054extern "C" 5055#endif 5056char blkid_get_cache (); 5057int 5058main () 5059{ 5060return blkid_get_cache (); 5061 ; 5062 return 0; 5063} 5064_ACEOF 5065if ac_fn_c_try_link "$LINENO"; then : 5066 ac_cv_lib_blkid_blkid_get_cache=yes 5067else 5068 ac_cv_lib_blkid_blkid_get_cache=no 5069fi 5070rm -f core conftest.err conftest.$ac_objext \ 5071 conftest$ac_exeext conftest.$ac_ext 5072LIBS=$ac_check_lib_save_LIBS 5073fi 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 5075$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } 5076if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then : 5077 LIBBLKID=`$PKG_CONFIG --libs blkid`; 5078 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` 5079else 5080 as_fn_error "external blkid library not found" "$LINENO" 5 5081fi 5082 5083 BLKID_CMT=# 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 5085$as_echo "Disabling private blkid library" >&6; } 5086else 5087 LIBBLKID='$(LIB)/libblkid'$LIB_EXT 5088 DEPLIBBLKID=$LIBBLKID 5089 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT 5090 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID 5091 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT 5092 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID 5093 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h 5094 5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 5096$as_echo "Enabling private blkid library" >&6; } 5097fi 5098 5099else 5100 LIBBLKID='$(LIB)/libblkid'$LIB_EXT 5101DEPLIBBLKID=$LIBBLKID 5102STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT 5103DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID 5104PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT 5105DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID 5106$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h 5107 5108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 5109$as_echo "Enabling private blkid library by default" >&6; } 5110 5111fi 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5123 if test -n "$ac_tool_prefix"; then 5124 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5125set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5127$as_echo_n "checking for $ac_word... " >&6; } 5128if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 5129 $as_echo_n "(cached) " >&6 5130else 5131 case $PKG_CONFIG in 5132 [\\/]* | ?:[\\/]*) 5133 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5134 ;; 5135 *) 5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5137for as_dir in $PATH 5138do 5139 IFS=$as_save_IFS 5140 test -z "$as_dir" && as_dir=. 5141 for ac_exec_ext in '' $ac_executable_extensions; do 5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5143 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5145 break 2 5146 fi 5147done 5148 done 5149IFS=$as_save_IFS 5150 5151 ;; 5152esac 5153fi 5154PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5155if test -n "$PKG_CONFIG"; then 5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5157$as_echo "$PKG_CONFIG" >&6; } 5158else 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5160$as_echo "no" >&6; } 5161fi 5162 5163 5164fi 5165if test -z "$ac_cv_path_PKG_CONFIG"; then 5166 ac_pt_PKG_CONFIG=$PKG_CONFIG 5167 # Extract the first word of "pkg-config", so it can be a program name with args. 5168set dummy pkg-config; ac_word=$2 5169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5170$as_echo_n "checking for $ac_word... " >&6; } 5171if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 5172 $as_echo_n "(cached) " >&6 5173else 5174 case $ac_pt_PKG_CONFIG in 5175 [\\/]* | ?:[\\/]*) 5176 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5177 ;; 5178 *) 5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5180for as_dir in $PATH 5181do 5182 IFS=$as_save_IFS 5183 test -z "$as_dir" && as_dir=. 5184 for ac_exec_ext in '' $ac_executable_extensions; do 5185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5188 break 2 5189 fi 5190done 5191 done 5192IFS=$as_save_IFS 5193 5194 ;; 5195esac 5196fi 5197ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5198if test -n "$ac_pt_PKG_CONFIG"; then 5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5200$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5201else 5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5203$as_echo "no" >&6; } 5204fi 5205 5206 if test "x$ac_pt_PKG_CONFIG" = x; then 5207 PKG_CONFIG="" 5208 else 5209 case $cross_compiling:$ac_tool_warned in 5210yes:) 5211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5213ac_tool_warned=yes ;; 5214esac 5215 PKG_CONFIG=$ac_pt_PKG_CONFIG 5216 fi 5217else 5218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5219fi 5220 5221fi 5222if test -n "$PKG_CONFIG"; then 5223 _pkg_min_version=0.9.0 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5225$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5226 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5228$as_echo "yes" >&6; } 5229 else 5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5231$as_echo "no" >&6; } 5232 PKG_CONFIG="" 5233 fi 5234 5235fi 5236 5237# Check whether --enable-quota was given. 5238if test "${enable_quota+set}" = set; then : 5239 enableval=$enable_quota; if test "$enableval" = "no" 5240then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 5242$as_echo "Disabling quota support" >&6; } 5243else 5244 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h 5245 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 5247$as_echo "Enabling quota support" >&6; } 5248fi 5249 5250else 5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 5252$as_echo "Disabling quota support by default" >&6; } 5253 5254fi 5255 5256LIBQUOTA='$(LIB)/libquota'$LIB_EXT 5257DEPLIBQUOTA=$LIBQUOTA 5258STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT 5259DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA 5260PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT 5261DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA 5262 5263 5264 5265 5266 5267 5268 5269# Check whether --enable-debugfs was given. 5270if test "${enable_debugfs+set}" = set; then : 5271 enableval=$enable_debugfs; if test "$enableval" = "no" 5272then 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 5274$as_echo "Disabling debugfs support" >&6; } 5275 DEBUGFS_CMT="#" 5276else 5277 DEBUGFS_CMT= 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 5279$as_echo "Enabling debugfs support" >&6; } 5280fi 5281 5282else 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 5284$as_echo "Enabling debugfs support by default" >&6; } 5285DEBUGFS_CMT= 5286 5287fi 5288 5289 5290# Check whether --enable-imager was given. 5291if test "${enable_imager+set}" = set; then : 5292 enableval=$enable_imager; if test "$enableval" = "no" 5293then 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 5295$as_echo "Disabling e2image support" >&6; } 5296 IMAGER_CMT="#" 5297else 5298 IMAGER_CMT= 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 5300$as_echo "Enabling e2image support" >&6; } 5301fi 5302 5303else 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 5305$as_echo "Enabling e2image support by default" >&6; } 5306IMAGER_CMT= 5307 5308fi 5309 5310 5311# Check whether --enable-resizer was given. 5312if test "${enable_resizer+set}" = set; then : 5313 enableval=$enable_resizer; if test "$enableval" = "no" 5314then 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 5316$as_echo "Disabling e2resize support" >&6; } 5317 RESIZER_CMT="#" 5318else 5319 RESIZER_CMT= 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 5321$as_echo "Enabling e2resize support" >&6; } 5322fi 5323 5324else 5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 5326$as_echo "Enabling e2resize support by default" >&6; } 5327RESIZER_CMT= 5328 5329fi 5330 5331 5332# Check whether --enable-defrag was given. 5333if test "${enable_defrag+set}" = set; then : 5334 enableval=$enable_defrag; if test "$enableval" = "no" 5335then 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 5337$as_echo "Disabling e4defrag support" >&6; } 5338 DEFRAG_CMT="#" 5339else 5340 DEFRAG_CMT= 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 5342$as_echo "Enabling e4defrag support" >&6; } 5343fi 5344 5345else 5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 5347$as_echo "Enabling e4defrag support by default" >&6; } 5348DEFRAG_CMT= 5349 5350fi 5351 5352 5353# Check whether --enable-fsck was given. 5354if test "${enable_fsck+set}" = set; then : 5355 enableval=$enable_fsck; if test "$enableval" = "no" 5356then 5357 FSCK_PROG='' FSCK_MAN='' 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 5359$as_echo "Not building fsck wrapper" >&6; } 5360else 5361 FSCK_PROG=fsck FSCK_MAN=fsck.8 5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 5363$as_echo "Building fsck wrapper" >&6; } 5364fi 5365 5366else 5367 case "$host_os" in 5368 gnu*) 5369 FSCK_PROG='' FSCK_MAN='' 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 5371$as_echo "Not building fsck wrapper by default" >&6; } 5372 ;; 5373 *) 5374 FSCK_PROG=fsck FSCK_MAN=fsck.8 5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 5376$as_echo "Building fsck wrapper by default" >&6; } 5377esac 5378 5379fi 5380 5381 5382 5383# Check whether --enable-e2initrd-helper was given. 5384if test "${enable_e2initrd_helper+set}" = set; then : 5385 enableval=$enable_e2initrd_helper; if test "$enableval" = "no" 5386then 5387 E2INITRD_PROG='' E2INITRD_MAN='' 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 5389$as_echo "Not building e2initrd helper" >&6; } 5390else 5391 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 5393$as_echo "Building e2initrd helper" >&6; } 5394fi 5395 5396else 5397 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 5398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 5399$as_echo "Building e2initrd helper by default" >&6; } 5400 5401fi 5402 5403 5404 5405# Check whether --enable-tls was given. 5406if test "${enable_tls+set}" = set; then : 5407 enableval=$enable_tls; if test "$enableval" = "no" 5408then 5409 try_tls="" 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 5411$as_echo "Disabling thread local support" >&6; } 5412else 5413 try_tls="yes" 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 5415$as_echo "Enabling thread local support" >&6; } 5416fi 5417 5418else 5419 if test -n "$WITH_DIET_LIBC" 5420then 5421 try_tls="" 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 5423$as_echo "Diet libc does not support thread local support" >&6; } 5424else 5425 try_tls="yes" 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 5427$as_echo "Try using thread local support by default" >&6; } 5428fi 5429 5430fi 5431 5432if test "$try_tls" = "yes" 5433then 5434 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 5436$as_echo_n "checking for thread local storage (TLS) class... " >&6; } 5437 if test "${ac_cv_tls+set}" = set; then : 5438 $as_echo_n "(cached) " >&6 5439else 5440 5441 ax_tls_keywords="__thread __declspec(thread) none" 5442 for ax_tls_keyword in $ax_tls_keywords; do 5443 case $ax_tls_keyword in 5444 none) ac_cv_tls=none ; break ;; 5445 *) 5446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447/* end confdefs.h. */ 5448#include <stdlib.h> 5449 static void 5450 foo(void) { 5451 static $ax_tls_keyword int bar; 5452 exit(1); 5453 } 5454int 5455main () 5456{ 5457 5458 ; 5459 return 0; 5460} 5461_ACEOF 5462if ac_fn_c_try_compile "$LINENO"; then : 5463 ac_cv_tls=$ax_tls_keyword ; break 5464else 5465 ac_cv_tls=none 5466 5467fi 5468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5469 esac 5470 done 5471 5472fi 5473 5474 5475 if test "$ac_cv_tls" != "none"; then 5476 5477cat >>confdefs.h <<_ACEOF 5478#define TLS $ac_cv_tls 5479_ACEOF 5480 5481 fi 5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 5483$as_echo "$ac_cv_tls" >&6; } 5484 5485fi 5486 5487# Check whether --enable-uuidd was given. 5488if test "${enable_uuidd+set}" = set; then : 5489 enableval=$enable_uuidd; if test "$enableval" = "no" 5490then 5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 5492$as_echo "Not building uuidd" >&6; } 5493 UUIDD_CMT="#" 5494else 5495 $as_echo "#define USE_UUIDD 1" >>confdefs.h 5496 5497 UUIDD_CMT="" 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 5499$as_echo "Building uuidd" >&6; } 5500fi 5501 5502else 5503 $as_echo "#define USE_UUIDD 1" >>confdefs.h 5504 5505UUIDD_CMT="" 5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 5507$as_echo "Building uuidd by default" >&6; } 5508 5509fi 5510 5511 5512MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library 5513 5514GETTEXT_PACKAGE=e2fsprogs 5515PACKAGE=e2fsprogs 5516VERSION="$E2FSPROGS_VERSION" 5517VERSION=0.14.1 5518 5519cat >>confdefs.h <<_ACEOF 5520#define PACKAGE "$PACKAGE" 5521_ACEOF 5522 5523 5524cat >>confdefs.h <<_ACEOF 5525#define VERSION "$VERSION" 5526_ACEOF 5527 5528 5529 5530 5531 5532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5533$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5534set x ${MAKE-make} 5535ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5536if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 5537 $as_echo_n "(cached) " >&6 5538else 5539 cat >conftest.make <<\_ACEOF 5540SHELL = /bin/sh 5541all: 5542 @echo '@@@%%%=$(MAKE)=@@@%%%' 5543_ACEOF 5544# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5545case `${MAKE-make} -f conftest.make 2>/dev/null` in 5546 *@@@%%%=?*=@@@%%%*) 5547 eval ac_cv_prog_make_${ac_make}_set=yes;; 5548 *) 5549 eval ac_cv_prog_make_${ac_make}_set=no;; 5550esac 5551rm -f conftest.make 5552fi 5553if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5555$as_echo "yes" >&6; } 5556 SET_MAKE= 5557else 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5559$as_echo "no" >&6; } 5560 SET_MAKE="MAKE=${MAKE-make}" 5561fi 5562 5563# Find a good install program. We prefer a C program (faster), 5564# so one script is as good as another. But avoid the broken or 5565# incompatible versions: 5566# SysV /etc/install, /usr/sbin/install 5567# SunOS /usr/etc/install 5568# IRIX /sbin/install 5569# AIX /bin/install 5570# AmigaOS /C/install, which installs bootblocks on floppy discs 5571# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5572# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5573# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5574# OS/2's system install, which has a completely different semantic 5575# ./install, which can be erroneously created by make from ./install.sh. 5576# Reject install programs that cannot install multiple files. 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5578$as_echo_n "checking for a BSD-compatible install... " >&6; } 5579if test -z "$INSTALL"; then 5580if test "${ac_cv_path_install+set}" = set; then : 5581 $as_echo_n "(cached) " >&6 5582else 5583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5584for as_dir in $PATH 5585do 5586 IFS=$as_save_IFS 5587 test -z "$as_dir" && as_dir=. 5588 # Account for people who put trailing slashes in PATH elements. 5589case $as_dir/ in #(( 5590 ./ | .// | /[cC]/* | \ 5591 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5592 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5593 /usr/ucb/* ) ;; 5594 *) 5595 # OSF1 and SCO ODT 3.0 have their own names for install. 5596 # Don't use installbsd from OSF since it installs stuff as root 5597 # by default. 5598 for ac_prog in ginstall scoinst install; do 5599 for ac_exec_ext in '' $ac_executable_extensions; do 5600 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 5601 if test $ac_prog = install && 5602 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5603 # AIX install. It has an incompatible calling convention. 5604 : 5605 elif test $ac_prog = install && 5606 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5607 # program-specific install script used by HP pwplus--don't use. 5608 : 5609 else 5610 rm -rf conftest.one conftest.two conftest.dir 5611 echo one > conftest.one 5612 echo two > conftest.two 5613 mkdir conftest.dir 5614 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5615 test -s conftest.one && test -s conftest.two && 5616 test -s conftest.dir/conftest.one && 5617 test -s conftest.dir/conftest.two 5618 then 5619 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5620 break 3 5621 fi 5622 fi 5623 fi 5624 done 5625 done 5626 ;; 5627esac 5628 5629 done 5630IFS=$as_save_IFS 5631 5632rm -rf conftest.one conftest.two conftest.dir 5633 5634fi 5635 if test "${ac_cv_path_install+set}" = set; then 5636 INSTALL=$ac_cv_path_install 5637 else 5638 # As a last resort, use the slow shell script. Don't cache a 5639 # value for INSTALL within a source directory, because that will 5640 # break other packages using the cache if that directory is 5641 # removed, or if the value is a relative name. 5642 INSTALL=$ac_install_sh 5643 fi 5644fi 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5646$as_echo "$INSTALL" >&6; } 5647 5648# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5649# It thinks the first close brace ends the variable substitution. 5650test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5651 5652test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5653 5654test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5655 5656 5657 MKINSTALLDIRS= 5658 if test -n "$ac_aux_dir"; then 5659 case "$ac_aux_dir" in 5660 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 5661 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 5662 esac 5663 fi 5664 if test -z "$MKINSTALLDIRS"; then 5665 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5666 fi 5667 5668 5669 5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5671$as_echo_n "checking whether NLS is requested... " >&6; } 5672 # Check whether --enable-nls was given. 5673if test "${enable_nls+set}" = set; then : 5674 enableval=$enable_nls; USE_NLS=$enableval 5675else 5676 USE_NLS=yes 5677fi 5678 5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5680$as_echo "$USE_NLS" >&6; } 5681 5682 5683 5684 5685 5686 5687# Prepare PATH_SEPARATOR. 5688# The user is always right. 5689if test "${PATH_SEPARATOR+set}" != set; then 5690 echo "#! /bin/sh" >conf$$.sh 5691 echo "exit 0" >>conf$$.sh 5692 chmod +x conf$$.sh 5693 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5694 PATH_SEPARATOR=';' 5695 else 5696 PATH_SEPARATOR=: 5697 fi 5698 rm -f conf$$.sh 5699fi 5700 5701# Find out how to test for executable files. Don't use a zero-byte file, 5702# as systems may use methods other than mode bits to determine executability. 5703cat >conf$$.file <<_ASEOF 5704#! /bin/sh 5705exit 0 5706_ASEOF 5707chmod +x conf$$.file 5708if test -x conf$$.file >/dev/null 2>&1; then 5709 ac_executable_p="test -x" 5710else 5711 ac_executable_p="test -f" 5712fi 5713rm -f conf$$.file 5714 5715# Extract the first word of "msgfmt", so it can be a program name with args. 5716set dummy msgfmt; ac_word=$2 5717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5718$as_echo_n "checking for $ac_word... " >&6; } 5719if test "${ac_cv_path_MSGFMT+set}" = set; then : 5720 $as_echo_n "(cached) " >&6 5721else 5722 case "$MSGFMT" in 5723 [\\/]* | ?:[\\/]*) 5724 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5725 ;; 5726 *) 5727 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5728 for ac_dir in $PATH; do 5729 IFS="$ac_save_IFS" 5730 test -z "$ac_dir" && ac_dir=. 5731 for ac_exec_ext in '' $ac_executable_extensions; do 5732 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5733 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 5734 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5735 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 5736 break 2 5737 fi 5738 fi 5739 done 5740 done 5741 IFS="$ac_save_IFS" 5742 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 5743 ;; 5744esac 5745fi 5746MSGFMT="$ac_cv_path_MSGFMT" 5747if test "$MSGFMT" != ":"; then 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 5749$as_echo "$MSGFMT" >&6; } 5750else 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5752$as_echo "no" >&6; } 5753fi 5754 5755 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5756set dummy gmsgfmt; ac_word=$2 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5758$as_echo_n "checking for $ac_word... " >&6; } 5759if test "${ac_cv_path_GMSGFMT+set}" = set; then : 5760 $as_echo_n "(cached) " >&6 5761else 5762 case $GMSGFMT in 5763 [\\/]* | ?:[\\/]*) 5764 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5765 ;; 5766 *) 5767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5768for as_dir in $PATH 5769do 5770 IFS=$as_save_IFS 5771 test -z "$as_dir" && as_dir=. 5772 for ac_exec_ext in '' $ac_executable_extensions; do 5773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5774 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5776 break 2 5777 fi 5778done 5779 done 5780IFS=$as_save_IFS 5781 5782 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5783 ;; 5784esac 5785fi 5786GMSGFMT=$ac_cv_path_GMSGFMT 5787if test -n "$GMSGFMT"; then 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 5789$as_echo "$GMSGFMT" >&6; } 5790else 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5792$as_echo "no" >&6; } 5793fi 5794 5795 5796 5797 5798# Prepare PATH_SEPARATOR. 5799# The user is always right. 5800if test "${PATH_SEPARATOR+set}" != set; then 5801 echo "#! /bin/sh" >conf$$.sh 5802 echo "exit 0" >>conf$$.sh 5803 chmod +x conf$$.sh 5804 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5805 PATH_SEPARATOR=';' 5806 else 5807 PATH_SEPARATOR=: 5808 fi 5809 rm -f conf$$.sh 5810fi 5811 5812# Find out how to test for executable files. Don't use a zero-byte file, 5813# as systems may use methods other than mode bits to determine executability. 5814cat >conf$$.file <<_ASEOF 5815#! /bin/sh 5816exit 0 5817_ASEOF 5818chmod +x conf$$.file 5819if test -x conf$$.file >/dev/null 2>&1; then 5820 ac_executable_p="test -x" 5821else 5822 ac_executable_p="test -f" 5823fi 5824rm -f conf$$.file 5825 5826# Extract the first word of "xgettext", so it can be a program name with args. 5827set dummy xgettext; ac_word=$2 5828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5829$as_echo_n "checking for $ac_word... " >&6; } 5830if test "${ac_cv_path_XGETTEXT+set}" = set; then : 5831 $as_echo_n "(cached) " >&6 5832else 5833 case "$XGETTEXT" in 5834 [\\/]* | ?:[\\/]*) 5835 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5836 ;; 5837 *) 5838 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5839 for ac_dir in $PATH; do 5840 IFS="$ac_save_IFS" 5841 test -z "$ac_dir" && ac_dir=. 5842 for ac_exec_ext in '' $ac_executable_extensions; do 5843 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5844 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5845 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5846 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 5847 break 2 5848 fi 5849 fi 5850 done 5851 done 5852 IFS="$ac_save_IFS" 5853 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5854 ;; 5855esac 5856fi 5857XGETTEXT="$ac_cv_path_XGETTEXT" 5858if test "$XGETTEXT" != ":"; then 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 5860$as_echo "$XGETTEXT" >&6; } 5861else 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5863$as_echo "no" >&6; } 5864fi 5865 5866 rm -f messages.po 5867 5868 5869# Prepare PATH_SEPARATOR. 5870# The user is always right. 5871if test "${PATH_SEPARATOR+set}" != set; then 5872 echo "#! /bin/sh" >conf$$.sh 5873 echo "exit 0" >>conf$$.sh 5874 chmod +x conf$$.sh 5875 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5876 PATH_SEPARATOR=';' 5877 else 5878 PATH_SEPARATOR=: 5879 fi 5880 rm -f conf$$.sh 5881fi 5882 5883# Find out how to test for executable files. Don't use a zero-byte file, 5884# as systems may use methods other than mode bits to determine executability. 5885cat >conf$$.file <<_ASEOF 5886#! /bin/sh 5887exit 0 5888_ASEOF 5889chmod +x conf$$.file 5890if test -x conf$$.file >/dev/null 2>&1; then 5891 ac_executable_p="test -x" 5892else 5893 ac_executable_p="test -f" 5894fi 5895rm -f conf$$.file 5896 5897# Extract the first word of "msgmerge", so it can be a program name with args. 5898set dummy msgmerge; ac_word=$2 5899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5900$as_echo_n "checking for $ac_word... " >&6; } 5901if test "${ac_cv_path_MSGMERGE+set}" = set; then : 5902 $as_echo_n "(cached) " >&6 5903else 5904 case "$MSGMERGE" in 5905 [\\/]* | ?:[\\/]*) 5906 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 5907 ;; 5908 *) 5909 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5910 for ac_dir in $PATH; do 5911 IFS="$ac_save_IFS" 5912 test -z "$ac_dir" && ac_dir=. 5913 for ac_exec_ext in '' $ac_executable_extensions; do 5914 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5915 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 5916 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 5917 break 2 5918 fi 5919 fi 5920 done 5921 done 5922 IFS="$ac_save_IFS" 5923 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 5924 ;; 5925esac 5926fi 5927MSGMERGE="$ac_cv_path_MSGMERGE" 5928if test "$MSGMERGE" != ":"; then 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 5930$as_echo "$MSGMERGE" >&6; } 5931else 5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5933$as_echo "no" >&6; } 5934fi 5935 5936 5937 if test "$GMSGFMT" != ":"; then 5938 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 5939 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5940 : ; 5941 else 5942 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 5944$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 5945 GMSGFMT=":" 5946 fi 5947 fi 5948 5949 if test "$XGETTEXT" != ":"; then 5950 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5951 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5952 : ; 5953 else 5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 5955$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 5956 XGETTEXT=":" 5957 fi 5958 rm -f messages.po 5959 fi 5960 5961 ac_config_commands="$ac_config_commands default-1" 5962 5963 5964if test -n "$ac_tool_prefix"; then 5965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5966set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5968$as_echo_n "checking for $ac_word... " >&6; } 5969if test "${ac_cv_prog_RANLIB+set}" = set; then : 5970 $as_echo_n "(cached) " >&6 5971else 5972 if test -n "$RANLIB"; then 5973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5974else 5975as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976for as_dir in $PATH 5977do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986done 5987 done 5988IFS=$as_save_IFS 5989 5990fi 5991fi 5992RANLIB=$ac_cv_prog_RANLIB 5993if test -n "$RANLIB"; then 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5995$as_echo "$RANLIB" >&6; } 5996else 5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5998$as_echo "no" >&6; } 5999fi 6000 6001 6002fi 6003if test -z "$ac_cv_prog_RANLIB"; then 6004 ac_ct_RANLIB=$RANLIB 6005 # Extract the first word of "ranlib", so it can be a program name with args. 6006set dummy ranlib; ac_word=$2 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6008$as_echo_n "checking for $ac_word... " >&6; } 6009if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6010 $as_echo_n "(cached) " >&6 6011else 6012 if test -n "$ac_ct_RANLIB"; then 6013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6014else 6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6016for as_dir in $PATH 6017do 6018 IFS=$as_save_IFS 6019 test -z "$as_dir" && as_dir=. 6020 for ac_exec_ext in '' $ac_executable_extensions; do 6021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6022 ac_cv_prog_ac_ct_RANLIB="ranlib" 6023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6024 break 2 6025 fi 6026done 6027 done 6028IFS=$as_save_IFS 6029 6030fi 6031fi 6032ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6033if test -n "$ac_ct_RANLIB"; then 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6035$as_echo "$ac_ct_RANLIB" >&6; } 6036else 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6038$as_echo "no" >&6; } 6039fi 6040 6041 if test "x$ac_ct_RANLIB" = x; then 6042 RANLIB=":" 6043 else 6044 case $cross_compiling:$ac_tool_warned in 6045yes:) 6046{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6047$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6048ac_tool_warned=yes ;; 6049esac 6050 RANLIB=$ac_ct_RANLIB 6051 fi 6052else 6053 RANLIB="$ac_cv_prog_RANLIB" 6054fi 6055 6056 6057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 6058$as_echo_n "checking for strerror in -lcposix... " >&6; } 6059if test "${ac_cv_lib_cposix_strerror+set}" = set; then : 6060 $as_echo_n "(cached) " >&6 6061else 6062 ac_check_lib_save_LIBS=$LIBS 6063LIBS="-lcposix $LIBS" 6064cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065/* end confdefs.h. */ 6066 6067/* Override any GCC internal prototype to avoid an error. 6068 Use char because int might match the return type of a GCC 6069 builtin and then its argument prototype would still apply. */ 6070#ifdef __cplusplus 6071extern "C" 6072#endif 6073char strerror (); 6074int 6075main () 6076{ 6077return strerror (); 6078 ; 6079 return 0; 6080} 6081_ACEOF 6082if ac_fn_c_try_link "$LINENO"; then : 6083 ac_cv_lib_cposix_strerror=yes 6084else 6085 ac_cv_lib_cposix_strerror=no 6086fi 6087rm -f core conftest.err conftest.$ac_objext \ 6088 conftest$ac_exeext conftest.$ac_ext 6089LIBS=$ac_check_lib_save_LIBS 6090fi 6091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 6092$as_echo "$ac_cv_lib_cposix_strerror" >&6; } 6093if test "x$ac_cv_lib_cposix_strerror" = x""yes; then : 6094 LIBS="$LIBS -lcposix" 6095fi 6096 6097 6098 6099 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6101$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6102if test "${ac_cv_path_GREP+set}" = set; then : 6103 $as_echo_n "(cached) " >&6 6104else 6105 if test -z "$GREP"; then 6106 ac_path_GREP_found=false 6107 # Loop through the user's path and test for each of PROGNAME-LIST 6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6109for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6110do 6111 IFS=$as_save_IFS 6112 test -z "$as_dir" && as_dir=. 6113 for ac_prog in grep ggrep; do 6114 for ac_exec_ext in '' $ac_executable_extensions; do 6115 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6116 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 6117# Check for GNU ac_path_GREP and select it if it is found. 6118 # Check for GNU $ac_path_GREP 6119case `"$ac_path_GREP" --version 2>&1` in 6120*GNU*) 6121 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6122*) 6123 ac_count=0 6124 $as_echo_n 0123456789 >"conftest.in" 6125 while : 6126 do 6127 cat "conftest.in" "conftest.in" >"conftest.tmp" 6128 mv "conftest.tmp" "conftest.in" 6129 cp "conftest.in" "conftest.nl" 6130 $as_echo 'GREP' >> "conftest.nl" 6131 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6132 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6133 as_fn_arith $ac_count + 1 && ac_count=$as_val 6134 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6135 # Best one so far, save it but keep looking for a better one 6136 ac_cv_path_GREP="$ac_path_GREP" 6137 ac_path_GREP_max=$ac_count 6138 fi 6139 # 10*(2^10) chars as input seems more than enough 6140 test $ac_count -gt 10 && break 6141 done 6142 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6143esac 6144 6145 $ac_path_GREP_found && break 3 6146 done 6147 done 6148 done 6149IFS=$as_save_IFS 6150 if test -z "$ac_cv_path_GREP"; then 6151 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6152 fi 6153else 6154 ac_cv_path_GREP=$GREP 6155fi 6156 6157fi 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6159$as_echo "$ac_cv_path_GREP" >&6; } 6160 GREP="$ac_cv_path_GREP" 6161 6162 6163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6164$as_echo_n "checking for egrep... " >&6; } 6165if test "${ac_cv_path_EGREP+set}" = set; then : 6166 $as_echo_n "(cached) " >&6 6167else 6168 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6169 then ac_cv_path_EGREP="$GREP -E" 6170 else 6171 if test -z "$EGREP"; then 6172 ac_path_EGREP_found=false 6173 # Loop through the user's path and test for each of PROGNAME-LIST 6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6175for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6176do 6177 IFS=$as_save_IFS 6178 test -z "$as_dir" && as_dir=. 6179 for ac_prog in egrep; do 6180 for ac_exec_ext in '' $ac_executable_extensions; do 6181 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6182 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 6183# Check for GNU ac_path_EGREP and select it if it is found. 6184 # Check for GNU $ac_path_EGREP 6185case `"$ac_path_EGREP" --version 2>&1` in 6186*GNU*) 6187 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6188*) 6189 ac_count=0 6190 $as_echo_n 0123456789 >"conftest.in" 6191 while : 6192 do 6193 cat "conftest.in" "conftest.in" >"conftest.tmp" 6194 mv "conftest.tmp" "conftest.in" 6195 cp "conftest.in" "conftest.nl" 6196 $as_echo 'EGREP' >> "conftest.nl" 6197 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6198 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6199 as_fn_arith $ac_count + 1 && ac_count=$as_val 6200 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6201 # Best one so far, save it but keep looking for a better one 6202 ac_cv_path_EGREP="$ac_path_EGREP" 6203 ac_path_EGREP_max=$ac_count 6204 fi 6205 # 10*(2^10) chars as input seems more than enough 6206 test $ac_count -gt 10 && break 6207 done 6208 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6209esac 6210 6211 $ac_path_EGREP_found && break 3 6212 done 6213 done 6214 done 6215IFS=$as_save_IFS 6216 if test -z "$ac_cv_path_EGREP"; then 6217 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6218 fi 6219else 6220 ac_cv_path_EGREP=$EGREP 6221fi 6222 6223 fi 6224fi 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6226$as_echo "$ac_cv_path_EGREP" >&6; } 6227 EGREP="$ac_cv_path_EGREP" 6228 6229 6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6231$as_echo_n "checking for ANSI C header files... " >&6; } 6232if test "${ac_cv_header_stdc+set}" = set; then : 6233 $as_echo_n "(cached) " >&6 6234else 6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6236/* end confdefs.h. */ 6237#include <stdlib.h> 6238#include <stdarg.h> 6239#include <string.h> 6240#include <float.h> 6241 6242int 6243main () 6244{ 6245 6246 ; 6247 return 0; 6248} 6249_ACEOF 6250if ac_fn_c_try_compile "$LINENO"; then : 6251 ac_cv_header_stdc=yes 6252else 6253 ac_cv_header_stdc=no 6254fi 6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6256 6257if test $ac_cv_header_stdc = yes; then 6258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6260/* end confdefs.h. */ 6261#include <string.h> 6262 6263_ACEOF 6264if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6265 $EGREP "memchr" >/dev/null 2>&1; then : 6266 6267else 6268 ac_cv_header_stdc=no 6269fi 6270rm -f conftest* 6271 6272fi 6273 6274if test $ac_cv_header_stdc = yes; then 6275 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6277/* end confdefs.h. */ 6278#include <stdlib.h> 6279 6280_ACEOF 6281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6282 $EGREP "free" >/dev/null 2>&1; then : 6283 6284else 6285 ac_cv_header_stdc=no 6286fi 6287rm -f conftest* 6288 6289fi 6290 6291if test $ac_cv_header_stdc = yes; then 6292 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6293 if test "$cross_compiling" = yes; then : 6294 : 6295else 6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297/* end confdefs.h. */ 6298#include <ctype.h> 6299#include <stdlib.h> 6300#if ((' ' & 0x0FF) == 0x020) 6301# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6302# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6303#else 6304# define ISLOWER(c) \ 6305 (('a' <= (c) && (c) <= 'i') \ 6306 || ('j' <= (c) && (c) <= 'r') \ 6307 || ('s' <= (c) && (c) <= 'z')) 6308# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6309#endif 6310 6311#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6312int 6313main () 6314{ 6315 int i; 6316 for (i = 0; i < 256; i++) 6317 if (XOR (islower (i), ISLOWER (i)) 6318 || toupper (i) != TOUPPER (i)) 6319 return 2; 6320 return 0; 6321} 6322_ACEOF 6323if ac_fn_c_try_run "$LINENO"; then : 6324 6325else 6326 ac_cv_header_stdc=no 6327fi 6328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6329 conftest.$ac_objext conftest.beam conftest.$ac_ext 6330fi 6331 6332fi 6333fi 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6335$as_echo "$ac_cv_header_stdc" >&6; } 6336if test $ac_cv_header_stdc = yes; then 6337 6338$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6339 6340fi 6341 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6343$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6344if test "${ac_cv_c_const+set}" = set; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6348/* end confdefs.h. */ 6349 6350int 6351main () 6352{ 6353/* FIXME: Include the comments suggested by Paul. */ 6354#ifndef __cplusplus 6355 /* Ultrix mips cc rejects this. */ 6356 typedef int charset[2]; 6357 const charset cs; 6358 /* SunOS 4.1.1 cc rejects this. */ 6359 char const *const *pcpcc; 6360 char **ppc; 6361 /* NEC SVR4.0.2 mips cc rejects this. */ 6362 struct point {int x, y;}; 6363 static struct point const zero = {0,0}; 6364 /* AIX XL C 1.02.0.0 rejects this. 6365 It does not let you subtract one const X* pointer from another in 6366 an arm of an if-expression whose if-part is not a constant 6367 expression */ 6368 const char *g = "string"; 6369 pcpcc = &g + (g ? g-g : 0); 6370 /* HPUX 7.0 cc rejects these. */ 6371 ++pcpcc; 6372 ppc = (char**) pcpcc; 6373 pcpcc = (char const *const *) ppc; 6374 { /* SCO 3.2v4 cc rejects this. */ 6375 char *t; 6376 char const *s = 0 ? (char *) 0 : (char const *) 0; 6377 6378 *t++ = 0; 6379 if (s) return 0; 6380 } 6381 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6382 int x[] = {25, 17}; 6383 const int *foo = &x[0]; 6384 ++foo; 6385 } 6386 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6387 typedef const int *iptr; 6388 iptr p = 0; 6389 ++p; 6390 } 6391 { /* AIX XL C 1.02.0.0 rejects this saying 6392 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6393 struct s { int j; const int *ap[3]; }; 6394 struct s *b; b->j = 5; 6395 } 6396 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6397 const int foo = 10; 6398 if (!foo) return 0; 6399 } 6400 return !cs[0] && !zero.x; 6401#endif 6402 6403 ; 6404 return 0; 6405} 6406_ACEOF 6407if ac_fn_c_try_compile "$LINENO"; then : 6408 ac_cv_c_const=yes 6409else 6410 ac_cv_c_const=no 6411fi 6412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6413fi 6414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6415$as_echo "$ac_cv_c_const" >&6; } 6416if test $ac_cv_c_const = no; then 6417 6418$as_echo "#define const /**/" >>confdefs.h 6419 6420fi 6421 6422 6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 6424$as_echo_n "checking for signed... " >&6; } 6425if test "${bh_cv_c_signed+set}" = set; then : 6426 $as_echo_n "(cached) " >&6 6427else 6428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6429/* end confdefs.h. */ 6430 6431int 6432main () 6433{ 6434signed char x; 6435 ; 6436 return 0; 6437} 6438_ACEOF 6439if ac_fn_c_try_compile "$LINENO"; then : 6440 bh_cv_c_signed=yes 6441else 6442 bh_cv_c_signed=no 6443fi 6444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6445fi 6446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 6447$as_echo "$bh_cv_c_signed" >&6; } 6448 if test $bh_cv_c_signed = no; then 6449 6450$as_echo "#define signed /**/" >>confdefs.h 6451 6452 fi 6453 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6455$as_echo_n "checking for inline... " >&6; } 6456if test "${ac_cv_c_inline+set}" = set; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 ac_cv_c_inline=no 6460for ac_kw in inline __inline__ __inline; do 6461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6462/* end confdefs.h. */ 6463#ifndef __cplusplus 6464typedef int foo_t; 6465static $ac_kw foo_t static_foo () {return 0; } 6466$ac_kw foo_t foo () {return 0; } 6467#endif 6468 6469_ACEOF 6470if ac_fn_c_try_compile "$LINENO"; then : 6471 ac_cv_c_inline=$ac_kw 6472fi 6473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6474 test "$ac_cv_c_inline" != no && break 6475done 6476 6477fi 6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6479$as_echo "$ac_cv_c_inline" >&6; } 6480 6481case $ac_cv_c_inline in 6482 inline | yes) ;; 6483 *) 6484 case $ac_cv_c_inline in 6485 no) ac_val=;; 6486 *) ac_val=$ac_cv_c_inline;; 6487 esac 6488 cat >>confdefs.h <<_ACEOF 6489#ifndef __cplusplus 6490#define inline $ac_val 6491#endif 6492_ACEOF 6493 ;; 6494esac 6495 6496# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6497for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6498 inttypes.h stdint.h unistd.h 6499do : 6500 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6501ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6502" 6503eval as_val=\$$as_ac_Header 6504 if test "x$as_val" = x""yes; then : 6505 cat >>confdefs.h <<_ACEOF 6506#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6507_ACEOF 6508 6509fi 6510 6511done 6512 6513 6514ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 6515if test "x$ac_cv_type_off_t" = x""yes; then : 6516 6517else 6518 6519cat >>confdefs.h <<_ACEOF 6520#define off_t long int 6521_ACEOF 6522 6523fi 6524 6525ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6526if test "x$ac_cv_type_size_t" = x""yes; then : 6527 6528else 6529 6530cat >>confdefs.h <<_ACEOF 6531#define size_t unsigned int 6532_ACEOF 6533 6534fi 6535 6536 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 6538$as_echo_n "checking for long long... " >&6; } 6539if test "${ac_cv_type_long_long+set}" = set; then : 6540 $as_echo_n "(cached) " >&6 6541else 6542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6543/* end confdefs.h. */ 6544long long ll = 1LL; int i = 63; 6545int 6546main () 6547{ 6548long long llmax = (long long) -1; 6549 return ll << i | ll >> i | llmax / ll | llmax % ll; 6550 ; 6551 return 0; 6552} 6553_ACEOF 6554if ac_fn_c_try_link "$LINENO"; then : 6555 ac_cv_type_long_long=yes 6556else 6557 ac_cv_type_long_long=no 6558fi 6559rm -f core conftest.err conftest.$ac_objext \ 6560 conftest$ac_exeext conftest.$ac_ext 6561fi 6562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 6563$as_echo "$ac_cv_type_long_long" >&6; } 6564 if test $ac_cv_type_long_long = yes; then 6565 6566$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 6567 6568 fi 6569 6570 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 6572$as_echo_n "checking for long double... " >&6; } 6573if test "${gt_cv_c_long_double+set}" = set; then : 6574 $as_echo_n "(cached) " >&6 6575else 6576 if test "$GCC" = yes; then 6577 gt_cv_c_long_double=yes 6578 else 6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6580/* end confdefs.h. */ 6581 6582 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 6583 long double foo = 0.0; 6584 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 6585 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 6586 6587int 6588main () 6589{ 6590 6591 ; 6592 return 0; 6593} 6594_ACEOF 6595if ac_fn_c_try_compile "$LINENO"; then : 6596 gt_cv_c_long_double=yes 6597else 6598 gt_cv_c_long_double=no 6599fi 6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6601 fi 6602fi 6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 6604$as_echo "$gt_cv_c_long_double" >&6; } 6605 if test $gt_cv_c_long_double = yes; then 6606 6607$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 6608 6609 fi 6610 6611 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 6613$as_echo_n "checking for wchar_t... " >&6; } 6614if test "${gt_cv_c_wchar_t+set}" = set; then : 6615 $as_echo_n "(cached) " >&6 6616else 6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6618/* end confdefs.h. */ 6619#include <stddef.h> 6620 wchar_t foo = (wchar_t)'\0'; 6621int 6622main () 6623{ 6624 6625 ; 6626 return 0; 6627} 6628_ACEOF 6629if ac_fn_c_try_compile "$LINENO"; then : 6630 gt_cv_c_wchar_t=yes 6631else 6632 gt_cv_c_wchar_t=no 6633fi 6634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6635fi 6636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 6637$as_echo "$gt_cv_c_wchar_t" >&6; } 6638 if test $gt_cv_c_wchar_t = yes; then 6639 6640$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 6641 6642 fi 6643 6644 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 6646$as_echo_n "checking for wint_t... " >&6; } 6647if test "${gt_cv_c_wint_t+set}" = set; then : 6648 $as_echo_n "(cached) " >&6 6649else 6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6651/* end confdefs.h. */ 6652#include <wchar.h> 6653 wint_t foo = (wchar_t)'\0'; 6654int 6655main () 6656{ 6657 6658 ; 6659 return 0; 6660} 6661_ACEOF 6662if ac_fn_c_try_compile "$LINENO"; then : 6663 gt_cv_c_wint_t=yes 6664else 6665 gt_cv_c_wint_t=no 6666fi 6667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6668fi 6669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 6670$as_echo "$gt_cv_c_wint_t" >&6; } 6671 if test $gt_cv_c_wint_t = yes; then 6672 6673$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 6674 6675 fi 6676 6677 6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 6679$as_echo_n "checking for inttypes.h... " >&6; } 6680if test "${jm_ac_cv_header_inttypes_h+set}" = set; then : 6681 $as_echo_n "(cached) " >&6 6682else 6683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6684/* end confdefs.h. */ 6685#include <sys/types.h> 6686#include <inttypes.h> 6687int 6688main () 6689{ 6690uintmax_t i = (uintmax_t) -1; 6691 ; 6692 return 0; 6693} 6694_ACEOF 6695if ac_fn_c_try_compile "$LINENO"; then : 6696 jm_ac_cv_header_inttypes_h=yes 6697else 6698 jm_ac_cv_header_inttypes_h=no 6699fi 6700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6701fi 6702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 6703$as_echo "$jm_ac_cv_header_inttypes_h" >&6; } 6704 if test $jm_ac_cv_header_inttypes_h = yes; then 6705 6706cat >>confdefs.h <<_ACEOF 6707#define HAVE_INTTYPES_H_WITH_UINTMAX 1 6708_ACEOF 6709 6710 fi 6711 6712 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 6714$as_echo_n "checking for stdint.h... " >&6; } 6715if test "${jm_ac_cv_header_stdint_h+set}" = set; then : 6716 $as_echo_n "(cached) " >&6 6717else 6718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6719/* end confdefs.h. */ 6720#include <sys/types.h> 6721#include <stdint.h> 6722int 6723main () 6724{ 6725uintmax_t i = (uintmax_t) -1; 6726 ; 6727 return 0; 6728} 6729_ACEOF 6730if ac_fn_c_try_compile "$LINENO"; then : 6731 jm_ac_cv_header_stdint_h=yes 6732else 6733 jm_ac_cv_header_stdint_h=no 6734fi 6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6736fi 6737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 6738$as_echo "$jm_ac_cv_header_stdint_h" >&6; } 6739 if test $jm_ac_cv_header_stdint_h = yes; then 6740 6741cat >>confdefs.h <<_ACEOF 6742#define HAVE_STDINT_H_WITH_UINTMAX 1 6743_ACEOF 6744 6745 fi 6746 6747 6748 6749 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 6751$as_echo_n "checking for intmax_t... " >&6; } 6752if test "${gt_cv_c_intmax_t+set}" = set; then : 6753 $as_echo_n "(cached) " >&6 6754else 6755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6756/* end confdefs.h. */ 6757 6758#include <stddef.h> 6759#include <stdlib.h> 6760#if HAVE_STDINT_H_WITH_UINTMAX 6761#include <stdint.h> 6762#endif 6763#if HAVE_INTTYPES_H_WITH_UINTMAX 6764#include <inttypes.h> 6765#endif 6766 6767int 6768main () 6769{ 6770intmax_t x = -1; 6771 ; 6772 return 0; 6773} 6774_ACEOF 6775if ac_fn_c_try_compile "$LINENO"; then : 6776 gt_cv_c_intmax_t=yes 6777else 6778 gt_cv_c_intmax_t=no 6779fi 6780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6781fi 6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 6783$as_echo "$gt_cv_c_intmax_t" >&6; } 6784 if test $gt_cv_c_intmax_t = yes; then 6785 6786$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 6787 6788 fi 6789 6790 6791 6792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 6793$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 6794if test "${gt_cv_func_printf_posix+set}" = set; then : 6795 $as_echo_n "(cached) " >&6 6796else 6797 6798 if test "$cross_compiling" = yes; then : 6799 6800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6801/* end confdefs.h. */ 6802 6803#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 6804 notposix 6805#endif 6806 6807_ACEOF 6808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6809 $EGREP "notposix" >/dev/null 2>&1; then : 6810 gt_cv_func_printf_posix="guessing no" 6811else 6812 gt_cv_func_printf_posix="guessing yes" 6813fi 6814rm -f conftest* 6815 6816 6817else 6818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6819/* end confdefs.h. */ 6820 6821#include <stdio.h> 6822#include <string.h> 6823/* The string "%2$d %1$d", with dollar characters protected from the shell's 6824 dollar expansion (possibly an autoconf bug). */ 6825static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 6826static char buf[100]; 6827int main () 6828{ 6829 sprintf (buf, format, 33, 55); 6830 return (strcmp (buf, "55 33") != 0); 6831} 6832_ACEOF 6833if ac_fn_c_try_run "$LINENO"; then : 6834 gt_cv_func_printf_posix=yes 6835else 6836 gt_cv_func_printf_posix=no 6837fi 6838rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6839 conftest.$ac_objext conftest.beam conftest.$ac_ext 6840fi 6841 6842 6843fi 6844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 6845$as_echo "$gt_cv_func_printf_posix" >&6; } 6846 case $gt_cv_func_printf_posix in 6847 *yes) 6848 6849$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 6850 6851 ;; 6852 esac 6853 6854# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6855# for constant arguments. Useless! 6856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 6857$as_echo_n "checking for working alloca.h... " >&6; } 6858if test "${ac_cv_working_alloca_h+set}" = set; then : 6859 $as_echo_n "(cached) " >&6 6860else 6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6862/* end confdefs.h. */ 6863#include <alloca.h> 6864int 6865main () 6866{ 6867char *p = (char *) alloca (2 * sizeof (int)); 6868 if (p) return 0; 6869 ; 6870 return 0; 6871} 6872_ACEOF 6873if ac_fn_c_try_link "$LINENO"; then : 6874 ac_cv_working_alloca_h=yes 6875else 6876 ac_cv_working_alloca_h=no 6877fi 6878rm -f core conftest.err conftest.$ac_objext \ 6879 conftest$ac_exeext conftest.$ac_ext 6880fi 6881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 6882$as_echo "$ac_cv_working_alloca_h" >&6; } 6883if test $ac_cv_working_alloca_h = yes; then 6884 6885$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 6886 6887fi 6888 6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 6890$as_echo_n "checking for alloca... " >&6; } 6891if test "${ac_cv_func_alloca_works+set}" = set; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895/* end confdefs.h. */ 6896#ifdef __GNUC__ 6897# define alloca __builtin_alloca 6898#else 6899# ifdef _MSC_VER 6900# include <malloc.h> 6901# define alloca _alloca 6902# else 6903# ifdef HAVE_ALLOCA_H 6904# include <alloca.h> 6905# else 6906# ifdef _AIX 6907 #pragma alloca 6908# else 6909# ifndef alloca /* predefined by HP cc +Olibcalls */ 6910char *alloca (); 6911# endif 6912# endif 6913# endif 6914# endif 6915#endif 6916 6917int 6918main () 6919{ 6920char *p = (char *) alloca (1); 6921 if (p) return 0; 6922 ; 6923 return 0; 6924} 6925_ACEOF 6926if ac_fn_c_try_link "$LINENO"; then : 6927 ac_cv_func_alloca_works=yes 6928else 6929 ac_cv_func_alloca_works=no 6930fi 6931rm -f core conftest.err conftest.$ac_objext \ 6932 conftest$ac_exeext conftest.$ac_ext 6933fi 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 6935$as_echo "$ac_cv_func_alloca_works" >&6; } 6936 6937if test $ac_cv_func_alloca_works = yes; then 6938 6939$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 6940 6941else 6942 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6943# that cause trouble. Some versions do not even contain alloca or 6944# contain a buggy version. If you still want to use their alloca, 6945# use ar to extract alloca.o from them instead of compiling alloca.c. 6946 6947ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 6948 6949$as_echo "#define C_ALLOCA 1" >>confdefs.h 6950 6951 6952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 6953$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 6954if test "${ac_cv_os_cray+set}" = set; then : 6955 $as_echo_n "(cached) " >&6 6956else 6957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6958/* end confdefs.h. */ 6959#if defined CRAY && ! defined CRAY2 6960webecray 6961#else 6962wenotbecray 6963#endif 6964 6965_ACEOF 6966if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6967 $EGREP "webecray" >/dev/null 2>&1; then : 6968 ac_cv_os_cray=yes 6969else 6970 ac_cv_os_cray=no 6971fi 6972rm -f conftest* 6973 6974fi 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 6976$as_echo "$ac_cv_os_cray" >&6; } 6977if test $ac_cv_os_cray = yes; then 6978 for ac_func in _getb67 GETB67 getb67; do 6979 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6980ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6981eval as_val=\$$as_ac_var 6982 if test "x$as_val" = x""yes; then : 6983 6984cat >>confdefs.h <<_ACEOF 6985#define CRAY_STACKSEG_END $ac_func 6986_ACEOF 6987 6988 break 6989fi 6990 6991 done 6992fi 6993 6994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 6995$as_echo_n "checking stack direction for C alloca... " >&6; } 6996if test "${ac_cv_c_stack_direction+set}" = set; then : 6997 $as_echo_n "(cached) " >&6 6998else 6999 if test "$cross_compiling" = yes; then : 7000 ac_cv_c_stack_direction=0 7001else 7002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7003/* end confdefs.h. */ 7004$ac_includes_default 7005int 7006find_stack_direction () 7007{ 7008 static char *addr = 0; 7009 auto char dummy; 7010 if (addr == 0) 7011 { 7012 addr = &dummy; 7013 return find_stack_direction (); 7014 } 7015 else 7016 return (&dummy > addr) ? 1 : -1; 7017} 7018 7019int 7020main () 7021{ 7022 return find_stack_direction () < 0; 7023} 7024_ACEOF 7025if ac_fn_c_try_run "$LINENO"; then : 7026 ac_cv_c_stack_direction=1 7027else 7028 ac_cv_c_stack_direction=-1 7029fi 7030rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7031 conftest.$ac_objext conftest.beam conftest.$ac_ext 7032fi 7033 7034fi 7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7036$as_echo "$ac_cv_c_stack_direction" >&6; } 7037cat >>confdefs.h <<_ACEOF 7038#define STACK_DIRECTION $ac_cv_c_stack_direction 7039_ACEOF 7040 7041 7042fi 7043 7044 7045 7046 7047 for ac_header in $ac_header_list 7048do : 7049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7050ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7051" 7052eval as_val=\$$as_ac_Header 7053 if test "x$as_val" = x""yes; then : 7054 cat >>confdefs.h <<_ACEOF 7055#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7056_ACEOF 7057 7058fi 7059 7060done 7061 7062 7063 7064 7065 7066 7067 7068 7069for ac_func in getpagesize 7070do : 7071 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 7072if test "x$ac_cv_func_getpagesize" = x""yes; then : 7073 cat >>confdefs.h <<_ACEOF 7074#define HAVE_GETPAGESIZE 1 7075_ACEOF 7076 7077fi 7078done 7079 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 7081$as_echo_n "checking for working mmap... " >&6; } 7082if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 7083 $as_echo_n "(cached) " >&6 7084else 7085 if test "$cross_compiling" = yes; then : 7086 ac_cv_func_mmap_fixed_mapped=no 7087else 7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7089/* end confdefs.h. */ 7090$ac_includes_default 7091/* malloc might have been renamed as rpl_malloc. */ 7092#undef malloc 7093 7094/* Thanks to Mike Haertel and Jim Avera for this test. 7095 Here is a matrix of mmap possibilities: 7096 mmap private not fixed 7097 mmap private fixed at somewhere currently unmapped 7098 mmap private fixed at somewhere already mapped 7099 mmap shared not fixed 7100 mmap shared fixed at somewhere currently unmapped 7101 mmap shared fixed at somewhere already mapped 7102 For private mappings, we should verify that changes cannot be read() 7103 back from the file, nor mmap's back from the file at a different 7104 address. (There have been systems where private was not correctly 7105 implemented like the infamous i386 svr4.0, and systems where the 7106 VM page cache was not coherent with the file system buffer cache 7107 like early versions of FreeBSD and possibly contemporary NetBSD.) 7108 For shared mappings, we should conversely verify that changes get 7109 propagated back to all the places they're supposed to be. 7110 7111 Grep wants private fixed already mapped. 7112 The main things grep needs to know about mmap are: 7113 * does it exist and is it safe to write into the mmap'd area 7114 * how to use it (BSD variants) */ 7115 7116#include <fcntl.h> 7117#include <sys/mman.h> 7118 7119#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 7120char *malloc (); 7121#endif 7122 7123/* This mess was copied from the GNU getpagesize.h. */ 7124#ifndef HAVE_GETPAGESIZE 7125# ifdef _SC_PAGESIZE 7126# define getpagesize() sysconf(_SC_PAGESIZE) 7127# else /* no _SC_PAGESIZE */ 7128# ifdef HAVE_SYS_PARAM_H 7129# include <sys/param.h> 7130# ifdef EXEC_PAGESIZE 7131# define getpagesize() EXEC_PAGESIZE 7132# else /* no EXEC_PAGESIZE */ 7133# ifdef NBPG 7134# define getpagesize() NBPG * CLSIZE 7135# ifndef CLSIZE 7136# define CLSIZE 1 7137# endif /* no CLSIZE */ 7138# else /* no NBPG */ 7139# ifdef NBPC 7140# define getpagesize() NBPC 7141# else /* no NBPC */ 7142# ifdef PAGESIZE 7143# define getpagesize() PAGESIZE 7144# endif /* PAGESIZE */ 7145# endif /* no NBPC */ 7146# endif /* no NBPG */ 7147# endif /* no EXEC_PAGESIZE */ 7148# else /* no HAVE_SYS_PARAM_H */ 7149# define getpagesize() 8192 /* punt totally */ 7150# endif /* no HAVE_SYS_PARAM_H */ 7151# endif /* no _SC_PAGESIZE */ 7152 7153#endif /* no HAVE_GETPAGESIZE */ 7154 7155int 7156main () 7157{ 7158 char *data, *data2, *data3; 7159 const char *cdata2; 7160 int i, pagesize; 7161 int fd, fd2; 7162 7163 pagesize = getpagesize (); 7164 7165 /* First, make a file with some known garbage in it. */ 7166 data = (char *) malloc (pagesize); 7167 if (!data) 7168 return 1; 7169 for (i = 0; i < pagesize; ++i) 7170 *(data + i) = rand (); 7171 umask (0); 7172 fd = creat ("conftest.mmap", 0600); 7173 if (fd < 0) 7174 return 2; 7175 if (write (fd, data, pagesize) != pagesize) 7176 return 3; 7177 close (fd); 7178 7179 /* Next, check that the tail of a page is zero-filled. File must have 7180 non-zero length, otherwise we risk SIGBUS for entire page. */ 7181 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 7182 if (fd2 < 0) 7183 return 4; 7184 cdata2 = ""; 7185 if (write (fd2, cdata2, 1) != 1) 7186 return 5; 7187 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 7188 if (data2 == MAP_FAILED) 7189 return 6; 7190 for (i = 0; i < pagesize; ++i) 7191 if (*(data2 + i)) 7192 return 7; 7193 close (fd2); 7194 if (munmap (data2, pagesize)) 7195 return 8; 7196 7197 /* Next, try to mmap the file at a fixed address which already has 7198 something else allocated at it. If we can, also make sure that 7199 we see the same garbage. */ 7200 fd = open ("conftest.mmap", O_RDWR); 7201 if (fd < 0) 7202 return 9; 7203 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 7204 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 7205 return 10; 7206 for (i = 0; i < pagesize; ++i) 7207 if (*(data + i) != *(data2 + i)) 7208 return 11; 7209 7210 /* Finally, make sure that changes to the mapped area do not 7211 percolate back to the file as seen by read(). (This is a bug on 7212 some variants of i386 svr4.0.) */ 7213 for (i = 0; i < pagesize; ++i) 7214 *(data2 + i) = *(data2 + i) + 1; 7215 data3 = (char *) malloc (pagesize); 7216 if (!data3) 7217 return 12; 7218 if (read (fd, data3, pagesize) != pagesize) 7219 return 13; 7220 for (i = 0; i < pagesize; ++i) 7221 if (*(data + i) != *(data3 + i)) 7222 return 14; 7223 close (fd); 7224 return 0; 7225} 7226_ACEOF 7227if ac_fn_c_try_run "$LINENO"; then : 7228 ac_cv_func_mmap_fixed_mapped=yes 7229else 7230 ac_cv_func_mmap_fixed_mapped=no 7231fi 7232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7233 conftest.$ac_objext conftest.beam conftest.$ac_ext 7234fi 7235 7236fi 7237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 7238$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 7239if test $ac_cv_func_mmap_fixed_mapped = yes; then 7240 7241$as_echo "#define HAVE_MMAP 1" >>confdefs.h 7242 7243fi 7244rm -f conftest.mmap conftest.txt 7245 7246 7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 7248$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 7249if test "${ac_cv_gnu_library_2_1+set}" = set; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7253/* end confdefs.h. */ 7254 7255#include <features.h> 7256#ifdef __GNU_LIBRARY__ 7257 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 7258 Lucky GNU user 7259 #endif 7260#endif 7261 7262_ACEOF 7263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7264 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 7265 ac_cv_gnu_library_2_1=yes 7266else 7267 ac_cv_gnu_library_2_1=no 7268fi 7269rm -f conftest* 7270 7271 7272 7273fi 7274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 7275$as_echo "$ac_cv_gnu_library_2_1" >&6; } 7276 7277 GLIBC21="$ac_cv_gnu_library_2_1" 7278 7279 7280 7281 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 7283$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 7284if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : 7285 $as_echo_n "(cached) " >&6 7286else 7287 7288 if test "$cross_compiling" = yes; then : 7289 7290 # Guess based on the CPU. 7291 case "$host_cpu" in 7292 alpha* | i3456786 | m68k | s390*) 7293 gt_cv_int_divbyzero_sigfpe="guessing yes";; 7294 *) 7295 gt_cv_int_divbyzero_sigfpe="guessing no";; 7296 esac 7297 7298else 7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7300/* end confdefs.h. */ 7301 7302#include <stdlib.h> 7303#include <signal.h> 7304 7305static void 7306#ifdef __cplusplus 7307sigfpe_handler (int sig) 7308#else 7309sigfpe_handler (sig) int sig; 7310#endif 7311{ 7312 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 7313 exit (sig != SIGFPE); 7314} 7315 7316int x = 1; 7317int y = 0; 7318int z; 7319int nan; 7320 7321int main () 7322{ 7323 signal (SIGFPE, sigfpe_handler); 7324/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 7325#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 7326 signal (SIGTRAP, sigfpe_handler); 7327#endif 7328/* Linux/SPARC yields signal SIGILL. */ 7329#if defined (__sparc__) && defined (__linux__) 7330 signal (SIGILL, sigfpe_handler); 7331#endif 7332 7333 z = x / y; 7334 nan = y / y; 7335 exit (1); 7336} 7337 7338_ACEOF 7339if ac_fn_c_try_run "$LINENO"; then : 7340 gt_cv_int_divbyzero_sigfpe=yes 7341else 7342 gt_cv_int_divbyzero_sigfpe=no 7343fi 7344rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7345 conftest.$ac_objext conftest.beam conftest.$ac_ext 7346fi 7347 7348 7349fi 7350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 7351$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 7352 case "$gt_cv_int_divbyzero_sigfpe" in 7353 *yes) value=1;; 7354 *) value=0;; 7355 esac 7356 7357cat >>confdefs.h <<_ACEOF 7358#define INTDIV0_RAISES_SIGFPE $value 7359_ACEOF 7360 7361 7362 7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 7364$as_echo_n "checking for unsigned long long... " >&6; } 7365if test "${ac_cv_type_unsigned_long_long+set}" = set; then : 7366 $as_echo_n "(cached) " >&6 7367else 7368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7369/* end confdefs.h. */ 7370unsigned long long ull = 1ULL; int i = 63; 7371int 7372main () 7373{ 7374unsigned long long ullmax = (unsigned long long) -1; 7375 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 7376 ; 7377 return 0; 7378} 7379_ACEOF 7380if ac_fn_c_try_link "$LINENO"; then : 7381 ac_cv_type_unsigned_long_long=yes 7382else 7383 ac_cv_type_unsigned_long_long=no 7384fi 7385rm -f core conftest.err conftest.$ac_objext \ 7386 conftest$ac_exeext conftest.$ac_ext 7387fi 7388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 7389$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 7390 if test $ac_cv_type_unsigned_long_long = yes; then 7391 7392$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h 7393 7394 fi 7395 7396 7397 7398 7399 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 7400 7401 test $ac_cv_type_unsigned_long_long = yes \ 7402 && ac_type='unsigned long long' \ 7403 || ac_type='unsigned long' 7404 7405cat >>confdefs.h <<_ACEOF 7406#define uintmax_t $ac_type 7407_ACEOF 7408 7409 else 7410 7411$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 7412 7413 fi 7414 7415 7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 7417$as_echo_n "checking for inttypes.h... " >&6; } 7418if test "${gt_cv_header_inttypes_h+set}" = set; then : 7419 $as_echo_n "(cached) " >&6 7420else 7421 7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7423/* end confdefs.h. */ 7424#include <sys/types.h> 7425#include <inttypes.h> 7426int 7427main () 7428{ 7429 7430 ; 7431 return 0; 7432} 7433_ACEOF 7434if ac_fn_c_try_compile "$LINENO"; then : 7435 gt_cv_header_inttypes_h=yes 7436else 7437 gt_cv_header_inttypes_h=no 7438fi 7439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7440 7441fi 7442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 7443$as_echo "$gt_cv_header_inttypes_h" >&6; } 7444 if test $gt_cv_header_inttypes_h = yes; then 7445 7446cat >>confdefs.h <<_ACEOF 7447#define HAVE_INTTYPES_H 1 7448_ACEOF 7449 7450 fi 7451 7452 7453 7454 if test $gt_cv_header_inttypes_h = yes; then 7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 7456$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 7457if test "${gt_cv_inttypes_pri_broken+set}" = set; then : 7458 $as_echo_n "(cached) " >&6 7459else 7460 7461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7462/* end confdefs.h. */ 7463#include <inttypes.h> 7464#ifdef PRId32 7465char *p = PRId32; 7466#endif 7467 7468int 7469main () 7470{ 7471 7472 ; 7473 return 0; 7474} 7475_ACEOF 7476if ac_fn_c_try_compile "$LINENO"; then : 7477 gt_cv_inttypes_pri_broken=no 7478else 7479 gt_cv_inttypes_pri_broken=yes 7480fi 7481rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7482 7483fi 7484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 7485$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 7486 fi 7487 if test "$gt_cv_inttypes_pri_broken" = yes; then 7488 7489cat >>confdefs.h <<_ACEOF 7490#define PRI_MACROS_BROKEN 1 7491_ACEOF 7492 7493 fi 7494 7495 7496 for ac_header in stdint.h 7497do : 7498 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 7499if test "x$ac_cv_header_stdint_h" = x""yes; then : 7500 cat >>confdefs.h <<_ACEOF 7501#define HAVE_STDINT_H 1 7502_ACEOF 7503 7504fi 7505 7506done 7507 7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 7509$as_echo_n "checking for SIZE_MAX... " >&6; } 7510 result= 7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7512/* end confdefs.h. */ 7513 7514#include <limits.h> 7515#if HAVE_STDINT_H 7516#include <stdint.h> 7517#endif 7518#ifdef SIZE_MAX 7519Found it 7520#endif 7521 7522_ACEOF 7523if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7524 $EGREP "Found it" >/dev/null 2>&1; then : 7525 result=yes 7526fi 7527rm -f conftest* 7528 7529 if test -z "$result"; then 7530 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : 7531 7532else 7533 result=? 7534fi 7535 7536 7537 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : 7538 7539else 7540 result=? 7541fi 7542 7543 7544 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 7545 7546else 7547 result=? 7548fi 7549 7550 7551 if test "$fits_in_uint" = 1; then 7552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7553/* end confdefs.h. */ 7554#include <stddef.h> 7555 extern size_t foo; 7556 extern unsigned long foo; 7557 7558int 7559main () 7560{ 7561 7562 ; 7563 return 0; 7564} 7565_ACEOF 7566if ac_fn_c_try_compile "$LINENO"; then : 7567 fits_in_uint=0 7568fi 7569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7570 fi 7571 if test -z "$result"; then 7572 if test "$fits_in_uint" = 1; then 7573 result="$res_hi$res_lo"U 7574 else 7575 result="$res_hi$res_lo"UL 7576 fi 7577 else 7578 result='~(size_t)0' 7579 fi 7580 fi 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7582$as_echo "$result" >&6; } 7583 if test "$result" != yes; then 7584 7585cat >>confdefs.h <<_ACEOF 7586#define SIZE_MAX $result 7587_ACEOF 7588 7589 fi 7590 7591 7592 7593 for ac_header in stdint.h 7594do : 7595 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 7596if test "x$ac_cv_header_stdint_h" = x""yes; then : 7597 cat >>confdefs.h <<_ACEOF 7598#define HAVE_STDINT_H 1 7599_ACEOF 7600 7601fi 7602 7603done 7604 7605 7606 7607 if test "X$prefix" = "XNONE"; then 7608 acl_final_prefix="$ac_default_prefix" 7609 else 7610 acl_final_prefix="$prefix" 7611 fi 7612 if test "X$exec_prefix" = "XNONE"; then 7613 acl_final_exec_prefix='${prefix}' 7614 else 7615 acl_final_exec_prefix="$exec_prefix" 7616 fi 7617 acl_save_prefix="$prefix" 7618 prefix="$acl_final_prefix" 7619 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 7620 prefix="$acl_save_prefix" 7621 7622 7623# Check whether --with-gnu-ld was given. 7624if test "${with_gnu_ld+set}" = set; then : 7625 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7626else 7627 with_gnu_ld=no 7628fi 7629 7630# Prepare PATH_SEPARATOR. 7631# The user is always right. 7632if test "${PATH_SEPARATOR+set}" != set; then 7633 echo "#! /bin/sh" >conf$$.sh 7634 echo "exit 0" >>conf$$.sh 7635 chmod +x conf$$.sh 7636 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7637 PATH_SEPARATOR=';' 7638 else 7639 PATH_SEPARATOR=: 7640 fi 7641 rm -f conf$$.sh 7642fi 7643ac_prog=ld 7644if test "$GCC" = yes; then 7645 # Check if gcc -print-prog-name=ld gives a path. 7646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 7647$as_echo_n "checking for ld used by GCC... " >&6; } 7648 case $host in 7649 *-*-mingw*) 7650 # gcc leaves a trailing carriage return which upsets mingw 7651 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7652 *) 7653 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7654 esac 7655 case $ac_prog in 7656 # Accept absolute paths. 7657 [\\/]* | [A-Za-z]:[\\/]*) 7658 re_direlt='/[^/][^/]*/\.\./' 7659 # Canonicalize the path of ld 7660 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 7661 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7662 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 7663 done 7664 test -z "$LD" && LD="$ac_prog" 7665 ;; 7666 "") 7667 # If it fails, then pretend we aren't using GCC. 7668 ac_prog=ld 7669 ;; 7670 *) 7671 # If it is relative, then search for the first ld in PATH. 7672 with_gnu_ld=unknown 7673 ;; 7674 esac 7675elif test "$with_gnu_ld" = yes; then 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7677$as_echo_n "checking for GNU ld... " >&6; } 7678else 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7680$as_echo_n "checking for non-GNU ld... " >&6; } 7681fi 7682if test "${acl_cv_path_LD+set}" = set; then : 7683 $as_echo_n "(cached) " >&6 7684else 7685 if test -z "$LD"; then 7686 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 7687 for ac_dir in $PATH; do 7688 test -z "$ac_dir" && ac_dir=. 7689 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7690 acl_cv_path_LD="$ac_dir/$ac_prog" 7691 # Check to see if the program is GNU ld. I'd rather use --version, 7692 # but apparently some GNU ld's only accept -v. 7693 # Break only if it was the GNU/non-GNU ld that we prefer. 7694 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 7695 *GNU* | *'with BFD'*) 7696 test "$with_gnu_ld" != no && break ;; 7697 *) 7698 test "$with_gnu_ld" != yes && break ;; 7699 esac 7700 fi 7701 done 7702 IFS="$ac_save_ifs" 7703else 7704 acl_cv_path_LD="$LD" # Let the user override the test with a path. 7705fi 7706fi 7707 7708LD="$acl_cv_path_LD" 7709if test -n "$LD"; then 7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7711$as_echo "$LD" >&6; } 7712else 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7714$as_echo "no" >&6; } 7715fi 7716test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 7717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7718$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7719if test "${acl_cv_prog_gnu_ld+set}" = set; then : 7720 $as_echo_n "(cached) " >&6 7721else 7722 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7723case `$LD -v 2>&1 </dev/null` in 7724*GNU* | *'with BFD'*) 7725 acl_cv_prog_gnu_ld=yes ;; 7726*) 7727 acl_cv_prog_gnu_ld=no ;; 7728esac 7729fi 7730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 7731$as_echo "$acl_cv_prog_gnu_ld" >&6; } 7732with_gnu_ld=$acl_cv_prog_gnu_ld 7733 7734 7735 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 7737$as_echo_n "checking for shared library run path origin... " >&6; } 7738if test "${acl_cv_rpath+set}" = set; then : 7739 $as_echo_n "(cached) " >&6 7740else 7741 7742 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7743 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 7744 . ./conftest.sh 7745 rm -f ./conftest.sh 7746 acl_cv_rpath=done 7747 7748fi 7749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 7750$as_echo "$acl_cv_rpath" >&6; } 7751 wl="$acl_cv_wl" 7752 libext="$acl_cv_libext" 7753 shlibext="$acl_cv_shlibext" 7754 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7755 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7756 hardcode_direct="$acl_cv_hardcode_direct" 7757 hardcode_minus_L="$acl_cv_hardcode_minus_L" 7758 # Check whether --enable-rpath was given. 7759if test "${enable_rpath+set}" = set; then : 7760 enableval=$enable_rpath; : 7761else 7762 enable_rpath=yes 7763fi 7764 7765 7766 7767 7768 7769 7770 7771 7772 use_additional=yes 7773 7774 acl_save_prefix="$prefix" 7775 prefix="$acl_final_prefix" 7776 acl_save_exec_prefix="$exec_prefix" 7777 exec_prefix="$acl_final_exec_prefix" 7778 7779 eval additional_includedir=\"$includedir\" 7780 eval additional_libdir=\"$libdir\" 7781 7782 exec_prefix="$acl_save_exec_prefix" 7783 prefix="$acl_save_prefix" 7784 7785 7786# Check whether --with-libiconv-prefix was given. 7787if test "${with_libiconv_prefix+set}" = set; then : 7788 withval=$with_libiconv_prefix; 7789 if test "X$withval" = "Xno"; then 7790 use_additional=no 7791 else 7792 if test "X$withval" = "X"; then 7793 7794 acl_save_prefix="$prefix" 7795 prefix="$acl_final_prefix" 7796 acl_save_exec_prefix="$exec_prefix" 7797 exec_prefix="$acl_final_exec_prefix" 7798 7799 eval additional_includedir=\"$includedir\" 7800 eval additional_libdir=\"$libdir\" 7801 7802 exec_prefix="$acl_save_exec_prefix" 7803 prefix="$acl_save_prefix" 7804 7805 else 7806 additional_includedir="$withval/include" 7807 additional_libdir="$withval/lib" 7808 fi 7809 fi 7810 7811fi 7812 7813 LIBICONV= 7814 LTLIBICONV= 7815 INCICONV= 7816 rpathdirs= 7817 ltrpathdirs= 7818 names_already_handled= 7819 names_next_round='iconv ' 7820 while test -n "$names_next_round"; do 7821 names_this_round="$names_next_round" 7822 names_next_round= 7823 for name in $names_this_round; do 7824 already_handled= 7825 for n in $names_already_handled; do 7826 if test "$n" = "$name"; then 7827 already_handled=yes 7828 break 7829 fi 7830 done 7831 if test -z "$already_handled"; then 7832 names_already_handled="$names_already_handled $name" 7833 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7834 eval value=\"\$HAVE_LIB$uppername\" 7835 if test -n "$value"; then 7836 if test "$value" = yes; then 7837 eval value=\"\$LIB$uppername\" 7838 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 7839 eval value=\"\$LTLIB$uppername\" 7840 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 7841 else 7842 : 7843 fi 7844 else 7845 found_dir= 7846 found_la= 7847 found_so= 7848 found_a= 7849 if test $use_additional = yes; then 7850 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 7851 found_dir="$additional_libdir" 7852 found_so="$additional_libdir/lib$name.$shlibext" 7853 if test -f "$additional_libdir/lib$name.la"; then 7854 found_la="$additional_libdir/lib$name.la" 7855 fi 7856 else 7857 if test -f "$additional_libdir/lib$name.$libext"; then 7858 found_dir="$additional_libdir" 7859 found_a="$additional_libdir/lib$name.$libext" 7860 if test -f "$additional_libdir/lib$name.la"; then 7861 found_la="$additional_libdir/lib$name.la" 7862 fi 7863 fi 7864 fi 7865 fi 7866 if test "X$found_dir" = "X"; then 7867 for x in $LDFLAGS $LTLIBICONV; do 7868 7869 acl_save_prefix="$prefix" 7870 prefix="$acl_final_prefix" 7871 acl_save_exec_prefix="$exec_prefix" 7872 exec_prefix="$acl_final_exec_prefix" 7873 eval x=\"$x\" 7874 exec_prefix="$acl_save_exec_prefix" 7875 prefix="$acl_save_prefix" 7876 7877 case "$x" in 7878 -L*) 7879 dir=`echo "X$x" | sed -e 's/^X-L//'` 7880 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 7881 found_dir="$dir" 7882 found_so="$dir/lib$name.$shlibext" 7883 if test -f "$dir/lib$name.la"; then 7884 found_la="$dir/lib$name.la" 7885 fi 7886 else 7887 if test -f "$dir/lib$name.$libext"; then 7888 found_dir="$dir" 7889 found_a="$dir/lib$name.$libext" 7890 if test -f "$dir/lib$name.la"; then 7891 found_la="$dir/lib$name.la" 7892 fi 7893 fi 7894 fi 7895 ;; 7896 esac 7897 if test "X$found_dir" != "X"; then 7898 break 7899 fi 7900 done 7901 fi 7902 if test "X$found_dir" != "X"; then 7903 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7904 if test "X$found_so" != "X"; then 7905 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 7906 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7907 else 7908 haveit= 7909 for x in $ltrpathdirs; do 7910 if test "X$x" = "X$found_dir"; then 7911 haveit=yes 7912 break 7913 fi 7914 done 7915 if test -z "$haveit"; then 7916 ltrpathdirs="$ltrpathdirs $found_dir" 7917 fi 7918 if test "$hardcode_direct" = yes; then 7919 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7920 else 7921 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7922 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7923 haveit= 7924 for x in $rpathdirs; do 7925 if test "X$x" = "X$found_dir"; then 7926 haveit=yes 7927 break 7928 fi 7929 done 7930 if test -z "$haveit"; then 7931 rpathdirs="$rpathdirs $found_dir" 7932 fi 7933 else 7934 haveit= 7935 for x in $LDFLAGS $LIBICONV; do 7936 7937 acl_save_prefix="$prefix" 7938 prefix="$acl_final_prefix" 7939 acl_save_exec_prefix="$exec_prefix" 7940 exec_prefix="$acl_final_exec_prefix" 7941 eval x=\"$x\" 7942 exec_prefix="$acl_save_exec_prefix" 7943 prefix="$acl_save_prefix" 7944 7945 if test "X$x" = "X-L$found_dir"; then 7946 haveit=yes 7947 break 7948 fi 7949 done 7950 if test -z "$haveit"; then 7951 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7952 fi 7953 if test "$hardcode_minus_L" != no; then 7954 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7955 else 7956 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7957 fi 7958 fi 7959 fi 7960 fi 7961 else 7962 if test "X$found_a" != "X"; then 7963 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 7964 else 7965 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 7966 fi 7967 fi 7968 additional_includedir= 7969 case "$found_dir" in 7970 */lib | */lib/) 7971 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7972 additional_includedir="$basedir/include" 7973 ;; 7974 esac 7975 if test "X$additional_includedir" != "X"; then 7976 if test "X$additional_includedir" != "X/usr/include"; then 7977 haveit= 7978 if test "X$additional_includedir" = "X/usr/local/include"; then 7979 if test -n "$GCC"; then 7980 case $host_os in 7981 linux*) haveit=yes;; 7982 esac 7983 fi 7984 fi 7985 if test -z "$haveit"; then 7986 for x in $CPPFLAGS $INCICONV; do 7987 7988 acl_save_prefix="$prefix" 7989 prefix="$acl_final_prefix" 7990 acl_save_exec_prefix="$exec_prefix" 7991 exec_prefix="$acl_final_exec_prefix" 7992 eval x=\"$x\" 7993 exec_prefix="$acl_save_exec_prefix" 7994 prefix="$acl_save_prefix" 7995 7996 if test "X$x" = "X-I$additional_includedir"; then 7997 haveit=yes 7998 break 7999 fi 8000 done 8001 if test -z "$haveit"; then 8002 if test -d "$additional_includedir"; then 8003 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 8004 fi 8005 fi 8006 fi 8007 fi 8008 fi 8009 if test -n "$found_la"; then 8010 save_libdir="$libdir" 8011 case "$found_la" in 8012 */* | *\\*) . "$found_la" ;; 8013 *) . "./$found_la" ;; 8014 esac 8015 libdir="$save_libdir" 8016 for dep in $dependency_libs; do 8017 case "$dep" in 8018 -L*) 8019 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8020 if test "X$additional_libdir" != "X/usr/lib"; then 8021 haveit= 8022 if test "X$additional_libdir" = "X/usr/local/lib"; then 8023 if test -n "$GCC"; then 8024 case $host_os in 8025 linux*) haveit=yes;; 8026 esac 8027 fi 8028 fi 8029 if test -z "$haveit"; then 8030 haveit= 8031 for x in $LDFLAGS $LIBICONV; do 8032 8033 acl_save_prefix="$prefix" 8034 prefix="$acl_final_prefix" 8035 acl_save_exec_prefix="$exec_prefix" 8036 exec_prefix="$acl_final_exec_prefix" 8037 eval x=\"$x\" 8038 exec_prefix="$acl_save_exec_prefix" 8039 prefix="$acl_save_prefix" 8040 8041 if test "X$x" = "X-L$additional_libdir"; then 8042 haveit=yes 8043 break 8044 fi 8045 done 8046 if test -z "$haveit"; then 8047 if test -d "$additional_libdir"; then 8048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 8049 fi 8050 fi 8051 haveit= 8052 for x in $LDFLAGS $LTLIBICONV; do 8053 8054 acl_save_prefix="$prefix" 8055 prefix="$acl_final_prefix" 8056 acl_save_exec_prefix="$exec_prefix" 8057 exec_prefix="$acl_final_exec_prefix" 8058 eval x=\"$x\" 8059 exec_prefix="$acl_save_exec_prefix" 8060 prefix="$acl_save_prefix" 8061 8062 if test "X$x" = "X-L$additional_libdir"; then 8063 haveit=yes 8064 break 8065 fi 8066 done 8067 if test -z "$haveit"; then 8068 if test -d "$additional_libdir"; then 8069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 8070 fi 8071 fi 8072 fi 8073 fi 8074 ;; 8075 -R*) 8076 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8077 if test "$enable_rpath" != no; then 8078 haveit= 8079 for x in $rpathdirs; do 8080 if test "X$x" = "X$dir"; then 8081 haveit=yes 8082 break 8083 fi 8084 done 8085 if test -z "$haveit"; then 8086 rpathdirs="$rpathdirs $dir" 8087 fi 8088 haveit= 8089 for x in $ltrpathdirs; do 8090 if test "X$x" = "X$dir"; then 8091 haveit=yes 8092 break 8093 fi 8094 done 8095 if test -z "$haveit"; then 8096 ltrpathdirs="$ltrpathdirs $dir" 8097 fi 8098 fi 8099 ;; 8100 -l*) 8101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8102 ;; 8103 *.la) 8104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8105 ;; 8106 *) 8107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 8108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 8109 ;; 8110 esac 8111 done 8112 fi 8113 else 8114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 8116 fi 8117 fi 8118 fi 8119 done 8120 done 8121 if test "X$rpathdirs" != "X"; then 8122 if test -n "$hardcode_libdir_separator"; then 8123 alldirs= 8124 for found_dir in $rpathdirs; do 8125 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 8126 done 8127 acl_save_libdir="$libdir" 8128 libdir="$alldirs" 8129 eval flag=\"$hardcode_libdir_flag_spec\" 8130 libdir="$acl_save_libdir" 8131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8132 else 8133 for found_dir in $rpathdirs; do 8134 acl_save_libdir="$libdir" 8135 libdir="$found_dir" 8136 eval flag=\"$hardcode_libdir_flag_spec\" 8137 libdir="$acl_save_libdir" 8138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8139 done 8140 fi 8141 fi 8142 if test "X$ltrpathdirs" != "X"; then 8143 for found_dir in $ltrpathdirs; do 8144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 8145 done 8146 fi 8147 8148 8149 8150 8151 8152 8153 8154 8155 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 8156if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : 8157 8158else 8159 8160$as_echo "#define ptrdiff_t long" >>confdefs.h 8161 8162 8163fi 8164 8165 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 8166stdlib.h string.h unistd.h sys/param.h 8167do : 8168 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8169ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8170eval as_val=\$$as_ac_Header 8171 if test "x$as_val" = x""yes; then : 8172 cat >>confdefs.h <<_ACEOF 8173#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8174_ACEOF 8175 8176fi 8177 8178done 8179 8180 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 8181mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 8182strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 8183__fsetlocking 8184do : 8185 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8186ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8187eval as_val=\$$as_ac_var 8188 if test "x$as_val" = x""yes; then : 8189 cat >>confdefs.h <<_ACEOF 8190#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8191_ACEOF 8192 8193fi 8194done 8195 8196 8197 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 8199$as_echo_n "checking whether _snprintf is declared... " >&6; } 8200if test "${ac_cv_have_decl__snprintf+set}" = set; then : 8201 $as_echo_n "(cached) " >&6 8202else 8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204/* end confdefs.h. */ 8205#include <stdio.h> 8206int 8207main () 8208{ 8209 8210#ifndef _snprintf 8211 char *p = (char *) _snprintf; 8212#endif 8213 8214 ; 8215 return 0; 8216} 8217_ACEOF 8218if ac_fn_c_try_compile "$LINENO"; then : 8219 ac_cv_have_decl__snprintf=yes 8220else 8221 ac_cv_have_decl__snprintf=no 8222fi 8223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8224fi 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 8226$as_echo "$ac_cv_have_decl__snprintf" >&6; } 8227 if test $ac_cv_have_decl__snprintf = yes; then 8228 gt_value=1 8229 else 8230 gt_value=0 8231 fi 8232 8233cat >>confdefs.h <<_ACEOF 8234#define HAVE_DECL__SNPRINTF $gt_value 8235_ACEOF 8236 8237 8238 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 8240$as_echo_n "checking whether _snwprintf is declared... " >&6; } 8241if test "${ac_cv_have_decl__snwprintf+set}" = set; then : 8242 $as_echo_n "(cached) " >&6 8243else 8244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8245/* end confdefs.h. */ 8246#include <stdio.h> 8247int 8248main () 8249{ 8250 8251#ifndef _snwprintf 8252 char *p = (char *) _snwprintf; 8253#endif 8254 8255 ; 8256 return 0; 8257} 8258_ACEOF 8259if ac_fn_c_try_compile "$LINENO"; then : 8260 ac_cv_have_decl__snwprintf=yes 8261else 8262 ac_cv_have_decl__snwprintf=no 8263fi 8264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8265fi 8266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 8267$as_echo "$ac_cv_have_decl__snwprintf" >&6; } 8268 if test $ac_cv_have_decl__snwprintf = yes; then 8269 gt_value=1 8270 else 8271 gt_value=0 8272 fi 8273 8274cat >>confdefs.h <<_ACEOF 8275#define HAVE_DECL__SNWPRINTF $gt_value 8276_ACEOF 8277 8278 8279 8280 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 8282$as_echo_n "checking whether feof_unlocked is declared... " >&6; } 8283if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : 8284 $as_echo_n "(cached) " >&6 8285else 8286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8287/* end confdefs.h. */ 8288#include <stdio.h> 8289int 8290main () 8291{ 8292 8293#ifndef feof_unlocked 8294 char *p = (char *) feof_unlocked; 8295#endif 8296 8297 ; 8298 return 0; 8299} 8300_ACEOF 8301if ac_fn_c_try_compile "$LINENO"; then : 8302 ac_cv_have_decl_feof_unlocked=yes 8303else 8304 ac_cv_have_decl_feof_unlocked=no 8305fi 8306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8307fi 8308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 8309$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } 8310 if test $ac_cv_have_decl_feof_unlocked = yes; then 8311 gt_value=1 8312 else 8313 gt_value=0 8314 fi 8315 8316cat >>confdefs.h <<_ACEOF 8317#define HAVE_DECL_FEOF_UNLOCKED $gt_value 8318_ACEOF 8319 8320 8321 8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 8323$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } 8324if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : 8325 $as_echo_n "(cached) " >&6 8326else 8327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8328/* end confdefs.h. */ 8329#include <stdio.h> 8330int 8331main () 8332{ 8333 8334#ifndef fgets_unlocked 8335 char *p = (char *) fgets_unlocked; 8336#endif 8337 8338 ; 8339 return 0; 8340} 8341_ACEOF 8342if ac_fn_c_try_compile "$LINENO"; then : 8343 ac_cv_have_decl_fgets_unlocked=yes 8344else 8345 ac_cv_have_decl_fgets_unlocked=no 8346fi 8347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8348fi 8349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 8350$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } 8351 if test $ac_cv_have_decl_fgets_unlocked = yes; then 8352 gt_value=1 8353 else 8354 gt_value=0 8355 fi 8356 8357cat >>confdefs.h <<_ACEOF 8358#define HAVE_DECL_FGETS_UNLOCKED $gt_value 8359_ACEOF 8360 8361 8362 8363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 8364$as_echo_n "checking whether getc_unlocked is declared... " >&6; } 8365if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : 8366 $as_echo_n "(cached) " >&6 8367else 8368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8369/* end confdefs.h. */ 8370#include <stdio.h> 8371int 8372main () 8373{ 8374 8375#ifndef getc_unlocked 8376 char *p = (char *) getc_unlocked; 8377#endif 8378 8379 ; 8380 return 0; 8381} 8382_ACEOF 8383if ac_fn_c_try_compile "$LINENO"; then : 8384 ac_cv_have_decl_getc_unlocked=yes 8385else 8386 ac_cv_have_decl_getc_unlocked=no 8387fi 8388rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8389fi 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 8391$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } 8392 if test $ac_cv_have_decl_getc_unlocked = yes; then 8393 gt_value=1 8394 else 8395 gt_value=0 8396 fi 8397 8398cat >>confdefs.h <<_ACEOF 8399#define HAVE_DECL_GETC_UNLOCKED $gt_value 8400_ACEOF 8401 8402 8403 8404 case $gt_cv_func_printf_posix in 8405 *yes) HAVE_POSIX_PRINTF=1 ;; 8406 *) HAVE_POSIX_PRINTF=0 ;; 8407 esac 8408 8409 if test "$ac_cv_func_asprintf" = yes; then 8410 HAVE_ASPRINTF=1 8411 else 8412 HAVE_ASPRINTF=0 8413 fi 8414 8415 if test "$ac_cv_func_snprintf" = yes; then 8416 HAVE_SNPRINTF=1 8417 else 8418 HAVE_SNPRINTF=0 8419 fi 8420 8421 if test "$ac_cv_func_wprintf" = yes; then 8422 HAVE_WPRINTF=1 8423 else 8424 HAVE_WPRINTF=0 8425 fi 8426 8427 8428 8429 8430 8431 8432 8433 am_save_CPPFLAGS="$CPPFLAGS" 8434 8435 for element in $INCICONV; do 8436 haveit= 8437 for x in $CPPFLAGS; do 8438 8439 acl_save_prefix="$prefix" 8440 prefix="$acl_final_prefix" 8441 acl_save_exec_prefix="$exec_prefix" 8442 exec_prefix="$acl_final_exec_prefix" 8443 eval x=\"$x\" 8444 exec_prefix="$acl_save_exec_prefix" 8445 prefix="$acl_save_prefix" 8446 8447 if test "X$x" = "X$element"; then 8448 haveit=yes 8449 break 8450 fi 8451 done 8452 if test -z "$haveit"; then 8453 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8454 fi 8455 done 8456 8457 8458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 8459$as_echo_n "checking for iconv... " >&6; } 8460if test "${am_cv_func_iconv+set}" = set; then : 8461 $as_echo_n "(cached) " >&6 8462else 8463 8464 am_cv_func_iconv="no, consider installing GNU libiconv" 8465 am_cv_lib_iconv=no 8466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8467/* end confdefs.h. */ 8468#include <stdlib.h> 8469#include <iconv.h> 8470int 8471main () 8472{ 8473iconv_t cd = iconv_open("",""); 8474 iconv(cd,NULL,NULL,NULL,NULL); 8475 iconv_close(cd); 8476 ; 8477 return 0; 8478} 8479_ACEOF 8480if ac_fn_c_try_link "$LINENO"; then : 8481 am_cv_func_iconv=yes 8482fi 8483rm -f core conftest.err conftest.$ac_objext \ 8484 conftest$ac_exeext conftest.$ac_ext 8485 if test "$am_cv_func_iconv" != yes; then 8486 am_save_LIBS="$LIBS" 8487 LIBS="$LIBS $LIBICONV" 8488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8489/* end confdefs.h. */ 8490#include <stdlib.h> 8491#include <iconv.h> 8492int 8493main () 8494{ 8495iconv_t cd = iconv_open("",""); 8496 iconv(cd,NULL,NULL,NULL,NULL); 8497 iconv_close(cd); 8498 ; 8499 return 0; 8500} 8501_ACEOF 8502if ac_fn_c_try_link "$LINENO"; then : 8503 am_cv_lib_iconv=yes 8504 am_cv_func_iconv=yes 8505fi 8506rm -f core conftest.err conftest.$ac_objext \ 8507 conftest$ac_exeext conftest.$ac_ext 8508 LIBS="$am_save_LIBS" 8509 fi 8510 8511fi 8512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 8513$as_echo "$am_cv_func_iconv" >&6; } 8514 if test "$am_cv_func_iconv" = yes; then 8515 8516$as_echo "#define HAVE_ICONV 1" >>confdefs.h 8517 8518 fi 8519 if test "$am_cv_lib_iconv" = yes; then 8520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 8521$as_echo_n "checking how to link with libiconv... " >&6; } 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 8523$as_echo "$LIBICONV" >&6; } 8524 else 8525 CPPFLAGS="$am_save_CPPFLAGS" 8526 LIBICONV= 8527 LTLIBICONV= 8528 fi 8529 8530 8531 8532 if test "$am_cv_func_iconv" = yes; then 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 8534$as_echo_n "checking for iconv declaration... " >&6; } 8535 if test "${am_cv_proto_iconv+set}" = set; then : 8536 $as_echo_n "(cached) " >&6 8537else 8538 8539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8540/* end confdefs.h. */ 8541 8542#include <stdlib.h> 8543#include <iconv.h> 8544extern 8545#ifdef __cplusplus 8546"C" 8547#endif 8548#if defined(__STDC__) || defined(__cplusplus) 8549size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 8550#else 8551size_t iconv(); 8552#endif 8553 8554int 8555main () 8556{ 8557 8558 ; 8559 return 0; 8560} 8561_ACEOF 8562if ac_fn_c_try_compile "$LINENO"; then : 8563 am_cv_proto_iconv_arg1="" 8564else 8565 am_cv_proto_iconv_arg1="const" 8566fi 8567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8568 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 8569fi 8570 8571 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 8573 }$am_cv_proto_iconv" >&5 8574$as_echo "${ac_t:- 8575 }$am_cv_proto_iconv" >&6; } 8576 8577cat >>confdefs.h <<_ACEOF 8578#define ICONV_CONST $am_cv_proto_iconv_arg1 8579_ACEOF 8580 8581 fi 8582 8583 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 8585$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 8586if test "${am_cv_langinfo_codeset+set}" = set; then : 8587 $as_echo_n "(cached) " >&6 8588else 8589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8590/* end confdefs.h. */ 8591#include <langinfo.h> 8592int 8593main () 8594{ 8595char* cs = nl_langinfo(CODESET); 8596 ; 8597 return 0; 8598} 8599_ACEOF 8600if ac_fn_c_try_link "$LINENO"; then : 8601 am_cv_langinfo_codeset=yes 8602else 8603 am_cv_langinfo_codeset=no 8604fi 8605rm -f core conftest.err conftest.$ac_objext \ 8606 conftest$ac_exeext conftest.$ac_ext 8607 8608fi 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 8610$as_echo "$am_cv_langinfo_codeset" >&6; } 8611 if test $am_cv_langinfo_codeset = yes; then 8612 8613$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 8614 8615 fi 8616 8617 if test $ac_cv_header_locale_h = yes; then 8618 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 8620$as_echo_n "checking for LC_MESSAGES... " >&6; } 8621if test "${am_cv_val_LC_MESSAGES+set}" = set; then : 8622 $as_echo_n "(cached) " >&6 8623else 8624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8625/* end confdefs.h. */ 8626#include <locale.h> 8627int 8628main () 8629{ 8630return LC_MESSAGES 8631 ; 8632 return 0; 8633} 8634_ACEOF 8635if ac_fn_c_try_link "$LINENO"; then : 8636 am_cv_val_LC_MESSAGES=yes 8637else 8638 am_cv_val_LC_MESSAGES=no 8639fi 8640rm -f core conftest.err conftest.$ac_objext \ 8641 conftest$ac_exeext conftest.$ac_ext 8642fi 8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 8644$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 8645 if test $am_cv_val_LC_MESSAGES = yes; then 8646 8647$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 8648 8649 fi 8650 8651 fi 8652 8653 for ac_prog in bison 8654do 8655 # Extract the first word of "$ac_prog", so it can be a program name with args. 8656set dummy $ac_prog; ac_word=$2 8657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8658$as_echo_n "checking for $ac_word... " >&6; } 8659if test "${ac_cv_prog_INTLBISON+set}" = set; then : 8660 $as_echo_n "(cached) " >&6 8661else 8662 if test -n "$INTLBISON"; then 8663 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 8664else 8665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8666for as_dir in $PATH 8667do 8668 IFS=$as_save_IFS 8669 test -z "$as_dir" && as_dir=. 8670 for ac_exec_ext in '' $ac_executable_extensions; do 8671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8672 ac_cv_prog_INTLBISON="$ac_prog" 8673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8674 break 2 8675 fi 8676done 8677 done 8678IFS=$as_save_IFS 8679 8680fi 8681fi 8682INTLBISON=$ac_cv_prog_INTLBISON 8683if test -n "$INTLBISON"; then 8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 8685$as_echo "$INTLBISON" >&6; } 8686else 8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8688$as_echo "no" >&6; } 8689fi 8690 8691 8692 test -n "$INTLBISON" && break 8693done 8694 8695 if test -z "$INTLBISON"; then 8696 ac_verc_fail=yes 8697 else 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 8699$as_echo_n "checking version of bison... " >&6; } 8700 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 8701 case $ac_prog_version in 8702 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 8703 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 8704 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 8705 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 8706 esac 8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 8708$as_echo "$ac_prog_version" >&6; } 8709 fi 8710 if test $ac_verc_fail = yes; then 8711 INTLBISON=: 8712 fi 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 8730$as_echo_n "checking whether NLS is requested... " >&6; } 8731 # Check whether --enable-nls was given. 8732if test "${enable_nls+set}" = set; then : 8733 enableval=$enable_nls; USE_NLS=$enableval 8734else 8735 USE_NLS=yes 8736fi 8737 8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 8739$as_echo "$USE_NLS" >&6; } 8740 8741 8742 8743 8744 BUILD_INCLUDED_LIBINTL=no 8745 USE_INCLUDED_LIBINTL=no 8746 8747 LIBINTL= 8748 LTLIBINTL= 8749 POSUB= 8750 8751 if test "$USE_NLS" = "yes"; then 8752 gt_use_preinstalled_gnugettext=no 8753 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 8755$as_echo_n "checking whether included gettext is requested... " >&6; } 8756 8757# Check whether --with-included-gettext was given. 8758if test "${with_included_gettext+set}" = set; then : 8759 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 8760else 8761 nls_cv_force_use_gnu_gettext=no 8762fi 8763 8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 8765$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 8766 8767 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 8768 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 8769 8770 8771 8772 8773 8774 8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 8776$as_echo_n "checking for GNU gettext in libc... " >&6; } 8777if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : 8778 $as_echo_n "(cached) " >&6 8779else 8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8781/* end confdefs.h. */ 8782#include <libintl.h> 8783extern int _nl_msg_cat_cntr; 8784extern int *_nl_domain_bindings; 8785int 8786main () 8787{ 8788bindtextdomain ("", ""); 8789return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 8790 ; 8791 return 0; 8792} 8793_ACEOF 8794if ac_fn_c_try_link "$LINENO"; then : 8795 gt_cv_func_gnugettext1_libc=yes 8796else 8797 gt_cv_func_gnugettext1_libc=no 8798fi 8799rm -f core conftest.err conftest.$ac_objext \ 8800 conftest$ac_exeext conftest.$ac_ext 8801fi 8802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 8803$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } 8804 8805 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 8806 8807 8808 8809 use_additional=yes 8810 8811 acl_save_prefix="$prefix" 8812 prefix="$acl_final_prefix" 8813 acl_save_exec_prefix="$exec_prefix" 8814 exec_prefix="$acl_final_exec_prefix" 8815 8816 eval additional_includedir=\"$includedir\" 8817 eval additional_libdir=\"$libdir\" 8818 8819 exec_prefix="$acl_save_exec_prefix" 8820 prefix="$acl_save_prefix" 8821 8822 8823# Check whether --with-libintl-prefix was given. 8824if test "${with_libintl_prefix+set}" = set; then : 8825 withval=$with_libintl_prefix; 8826 if test "X$withval" = "Xno"; then 8827 use_additional=no 8828 else 8829 if test "X$withval" = "X"; then 8830 8831 acl_save_prefix="$prefix" 8832 prefix="$acl_final_prefix" 8833 acl_save_exec_prefix="$exec_prefix" 8834 exec_prefix="$acl_final_exec_prefix" 8835 8836 eval additional_includedir=\"$includedir\" 8837 eval additional_libdir=\"$libdir\" 8838 8839 exec_prefix="$acl_save_exec_prefix" 8840 prefix="$acl_save_prefix" 8841 8842 else 8843 additional_includedir="$withval/include" 8844 additional_libdir="$withval/lib" 8845 fi 8846 fi 8847 8848fi 8849 8850 LIBINTL= 8851 LTLIBINTL= 8852 INCINTL= 8853 rpathdirs= 8854 ltrpathdirs= 8855 names_already_handled= 8856 names_next_round='intl ' 8857 while test -n "$names_next_round"; do 8858 names_this_round="$names_next_round" 8859 names_next_round= 8860 for name in $names_this_round; do 8861 already_handled= 8862 for n in $names_already_handled; do 8863 if test "$n" = "$name"; then 8864 already_handled=yes 8865 break 8866 fi 8867 done 8868 if test -z "$already_handled"; then 8869 names_already_handled="$names_already_handled $name" 8870 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 8871 eval value=\"\$HAVE_LIB$uppername\" 8872 if test -n "$value"; then 8873 if test "$value" = yes; then 8874 eval value=\"\$LIB$uppername\" 8875 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 8876 eval value=\"\$LTLIB$uppername\" 8877 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 8878 else 8879 : 8880 fi 8881 else 8882 found_dir= 8883 found_la= 8884 found_so= 8885 found_a= 8886 if test $use_additional = yes; then 8887 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 8888 found_dir="$additional_libdir" 8889 found_so="$additional_libdir/lib$name.$shlibext" 8890 if test -f "$additional_libdir/lib$name.la"; then 8891 found_la="$additional_libdir/lib$name.la" 8892 fi 8893 else 8894 if test -f "$additional_libdir/lib$name.$libext"; then 8895 found_dir="$additional_libdir" 8896 found_a="$additional_libdir/lib$name.$libext" 8897 if test -f "$additional_libdir/lib$name.la"; then 8898 found_la="$additional_libdir/lib$name.la" 8899 fi 8900 fi 8901 fi 8902 fi 8903 if test "X$found_dir" = "X"; then 8904 for x in $LDFLAGS $LTLIBINTL; do 8905 8906 acl_save_prefix="$prefix" 8907 prefix="$acl_final_prefix" 8908 acl_save_exec_prefix="$exec_prefix" 8909 exec_prefix="$acl_final_exec_prefix" 8910 eval x=\"$x\" 8911 exec_prefix="$acl_save_exec_prefix" 8912 prefix="$acl_save_prefix" 8913 8914 case "$x" in 8915 -L*) 8916 dir=`echo "X$x" | sed -e 's/^X-L//'` 8917 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 8918 found_dir="$dir" 8919 found_so="$dir/lib$name.$shlibext" 8920 if test -f "$dir/lib$name.la"; then 8921 found_la="$dir/lib$name.la" 8922 fi 8923 else 8924 if test -f "$dir/lib$name.$libext"; then 8925 found_dir="$dir" 8926 found_a="$dir/lib$name.$libext" 8927 if test -f "$dir/lib$name.la"; then 8928 found_la="$dir/lib$name.la" 8929 fi 8930 fi 8931 fi 8932 ;; 8933 esac 8934 if test "X$found_dir" != "X"; then 8935 break 8936 fi 8937 done 8938 fi 8939 if test "X$found_dir" != "X"; then 8940 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 8941 if test "X$found_so" != "X"; then 8942 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 8943 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8944 else 8945 haveit= 8946 for x in $ltrpathdirs; do 8947 if test "X$x" = "X$found_dir"; then 8948 haveit=yes 8949 break 8950 fi 8951 done 8952 if test -z "$haveit"; then 8953 ltrpathdirs="$ltrpathdirs $found_dir" 8954 fi 8955 if test "$hardcode_direct" = yes; then 8956 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8957 else 8958 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 8959 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8960 haveit= 8961 for x in $rpathdirs; do 8962 if test "X$x" = "X$found_dir"; then 8963 haveit=yes 8964 break 8965 fi 8966 done 8967 if test -z "$haveit"; then 8968 rpathdirs="$rpathdirs $found_dir" 8969 fi 8970 else 8971 haveit= 8972 for x in $LDFLAGS $LIBINTL; do 8973 8974 acl_save_prefix="$prefix" 8975 prefix="$acl_final_prefix" 8976 acl_save_exec_prefix="$exec_prefix" 8977 exec_prefix="$acl_final_exec_prefix" 8978 eval x=\"$x\" 8979 exec_prefix="$acl_save_exec_prefix" 8980 prefix="$acl_save_prefix" 8981 8982 if test "X$x" = "X-L$found_dir"; then 8983 haveit=yes 8984 break 8985 fi 8986 done 8987 if test -z "$haveit"; then 8988 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 8989 fi 8990 if test "$hardcode_minus_L" != no; then 8991 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8992 else 8993 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 8994 fi 8995 fi 8996 fi 8997 fi 8998 else 8999 if test "X$found_a" != "X"; then 9000 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 9001 else 9002 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 9003 fi 9004 fi 9005 additional_includedir= 9006 case "$found_dir" in 9007 */lib | */lib/) 9008 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 9009 additional_includedir="$basedir/include" 9010 ;; 9011 esac 9012 if test "X$additional_includedir" != "X"; then 9013 if test "X$additional_includedir" != "X/usr/include"; then 9014 haveit= 9015 if test "X$additional_includedir" = "X/usr/local/include"; then 9016 if test -n "$GCC"; then 9017 case $host_os in 9018 linux*) haveit=yes;; 9019 esac 9020 fi 9021 fi 9022 if test -z "$haveit"; then 9023 for x in $CPPFLAGS $INCINTL; do 9024 9025 acl_save_prefix="$prefix" 9026 prefix="$acl_final_prefix" 9027 acl_save_exec_prefix="$exec_prefix" 9028 exec_prefix="$acl_final_exec_prefix" 9029 eval x=\"$x\" 9030 exec_prefix="$acl_save_exec_prefix" 9031 prefix="$acl_save_prefix" 9032 9033 if test "X$x" = "X-I$additional_includedir"; then 9034 haveit=yes 9035 break 9036 fi 9037 done 9038 if test -z "$haveit"; then 9039 if test -d "$additional_includedir"; then 9040 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 9041 fi 9042 fi 9043 fi 9044 fi 9045 fi 9046 if test -n "$found_la"; then 9047 save_libdir="$libdir" 9048 case "$found_la" in 9049 */* | *\\*) . "$found_la" ;; 9050 *) . "./$found_la" ;; 9051 esac 9052 libdir="$save_libdir" 9053 for dep in $dependency_libs; do 9054 case "$dep" in 9055 -L*) 9056 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9057 if test "X$additional_libdir" != "X/usr/lib"; then 9058 haveit= 9059 if test "X$additional_libdir" = "X/usr/local/lib"; then 9060 if test -n "$GCC"; then 9061 case $host_os in 9062 linux*) haveit=yes;; 9063 esac 9064 fi 9065 fi 9066 if test -z "$haveit"; then 9067 haveit= 9068 for x in $LDFLAGS $LIBINTL; do 9069 9070 acl_save_prefix="$prefix" 9071 prefix="$acl_final_prefix" 9072 acl_save_exec_prefix="$exec_prefix" 9073 exec_prefix="$acl_final_exec_prefix" 9074 eval x=\"$x\" 9075 exec_prefix="$acl_save_exec_prefix" 9076 prefix="$acl_save_prefix" 9077 9078 if test "X$x" = "X-L$additional_libdir"; then 9079 haveit=yes 9080 break 9081 fi 9082 done 9083 if test -z "$haveit"; then 9084 if test -d "$additional_libdir"; then 9085 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 9086 fi 9087 fi 9088 haveit= 9089 for x in $LDFLAGS $LTLIBINTL; do 9090 9091 acl_save_prefix="$prefix" 9092 prefix="$acl_final_prefix" 9093 acl_save_exec_prefix="$exec_prefix" 9094 exec_prefix="$acl_final_exec_prefix" 9095 eval x=\"$x\" 9096 exec_prefix="$acl_save_exec_prefix" 9097 prefix="$acl_save_prefix" 9098 9099 if test "X$x" = "X-L$additional_libdir"; then 9100 haveit=yes 9101 break 9102 fi 9103 done 9104 if test -z "$haveit"; then 9105 if test -d "$additional_libdir"; then 9106 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 9107 fi 9108 fi 9109 fi 9110 fi 9111 ;; 9112 -R*) 9113 dir=`echo "X$dep" | sed -e 's/^X-R//'` 9114 if test "$enable_rpath" != no; then 9115 haveit= 9116 for x in $rpathdirs; do 9117 if test "X$x" = "X$dir"; then 9118 haveit=yes 9119 break 9120 fi 9121 done 9122 if test -z "$haveit"; then 9123 rpathdirs="$rpathdirs $dir" 9124 fi 9125 haveit= 9126 for x in $ltrpathdirs; do 9127 if test "X$x" = "X$dir"; then 9128 haveit=yes 9129 break 9130 fi 9131 done 9132 if test -z "$haveit"; then 9133 ltrpathdirs="$ltrpathdirs $dir" 9134 fi 9135 fi 9136 ;; 9137 -l*) 9138 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9139 ;; 9140 *.la) 9141 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9142 ;; 9143 *) 9144 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 9145 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 9146 ;; 9147 esac 9148 done 9149 fi 9150 else 9151 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 9152 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 9153 fi 9154 fi 9155 fi 9156 done 9157 done 9158 if test "X$rpathdirs" != "X"; then 9159 if test -n "$hardcode_libdir_separator"; then 9160 alldirs= 9161 for found_dir in $rpathdirs; do 9162 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 9163 done 9164 acl_save_libdir="$libdir" 9165 libdir="$alldirs" 9166 eval flag=\"$hardcode_libdir_flag_spec\" 9167 libdir="$acl_save_libdir" 9168 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 9169 else 9170 for found_dir in $rpathdirs; do 9171 acl_save_libdir="$libdir" 9172 libdir="$found_dir" 9173 eval flag=\"$hardcode_libdir_flag_spec\" 9174 libdir="$acl_save_libdir" 9175 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 9176 done 9177 fi 9178 fi 9179 if test "X$ltrpathdirs" != "X"; then 9180 for found_dir in $ltrpathdirs; do 9181 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 9182 done 9183 fi 9184 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 9186$as_echo_n "checking for GNU gettext in libintl... " >&6; } 9187if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : 9188 $as_echo_n "(cached) " >&6 9189else 9190 gt_save_CPPFLAGS="$CPPFLAGS" 9191 CPPFLAGS="$CPPFLAGS $INCINTL" 9192 gt_save_LIBS="$LIBS" 9193 LIBS="$LIBS $LIBINTL" 9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9195/* end confdefs.h. */ 9196#include <libintl.h> 9197extern int _nl_msg_cat_cntr; 9198extern 9199#ifdef __cplusplus 9200"C" 9201#endif 9202const char *_nl_expand_alias (); 9203int 9204main () 9205{ 9206bindtextdomain ("", ""); 9207return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 9208 ; 9209 return 0; 9210} 9211_ACEOF 9212if ac_fn_c_try_link "$LINENO"; then : 9213 gt_cv_func_gnugettext1_libintl=yes 9214else 9215 gt_cv_func_gnugettext1_libintl=no 9216fi 9217rm -f core conftest.err conftest.$ac_objext \ 9218 conftest$ac_exeext conftest.$ac_ext 9219 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 9220 LIBS="$LIBS $LIBICONV" 9221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9222/* end confdefs.h. */ 9223#include <libintl.h> 9224extern int _nl_msg_cat_cntr; 9225extern 9226#ifdef __cplusplus 9227"C" 9228#endif 9229const char *_nl_expand_alias (); 9230int 9231main () 9232{ 9233bindtextdomain ("", ""); 9234return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 9235 ; 9236 return 0; 9237} 9238_ACEOF 9239if ac_fn_c_try_link "$LINENO"; then : 9240 LIBINTL="$LIBINTL $LIBICONV" 9241 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 9242 gt_cv_func_gnugettext1_libintl=yes 9243 9244fi 9245rm -f core conftest.err conftest.$ac_objext \ 9246 conftest$ac_exeext conftest.$ac_ext 9247 fi 9248 CPPFLAGS="$gt_save_CPPFLAGS" 9249 LIBS="$gt_save_LIBS" 9250fi 9251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 9252$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } 9253 fi 9254 9255 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 9256 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 9257 && test "$PACKAGE" != gettext-runtime \ 9258 && test "$PACKAGE" != gettext-tools; }; then 9259 gt_use_preinstalled_gnugettext=yes 9260 else 9261 LIBINTL= 9262 LTLIBINTL= 9263 INCINTL= 9264 fi 9265 9266 9267 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 9268 nls_cv_use_gnu_gettext=yes 9269 fi 9270 fi 9271 9272 if test "$nls_cv_use_gnu_gettext" = "yes"; then 9273 BUILD_INCLUDED_LIBINTL=yes 9274 USE_INCLUDED_LIBINTL=yes 9275 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 9276 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 9277 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 9278 fi 9279 9280 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 9281 || test "$nls_cv_use_gnu_gettext" = "yes"; then 9282 CATOBJEXT=.gmo 9283 fi 9284 9285 9286 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 9287 || test "$nls_cv_use_gnu_gettext" = "yes"; then 9288 9289$as_echo "#define ENABLE_NLS 1" >>confdefs.h 9290 9291 else 9292 USE_NLS=no 9293 fi 9294 fi 9295 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 9297$as_echo_n "checking whether to use NLS... " >&6; } 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 9299$as_echo "$USE_NLS" >&6; } 9300 if test "$USE_NLS" = "yes"; then 9301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 9302$as_echo_n "checking where the gettext function comes from... " >&6; } 9303 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 9304 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 9305 gt_source="external libintl" 9306 else 9307 gt_source="libc" 9308 fi 9309 else 9310 gt_source="included intl directory" 9311 fi 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 9313$as_echo "$gt_source" >&6; } 9314 fi 9315 9316 if test "$USE_NLS" = "yes"; then 9317 9318 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 9319 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 9320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 9321$as_echo_n "checking how to link with libintl... " >&6; } 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 9323$as_echo "$LIBINTL" >&6; } 9324 9325 for element in $INCINTL; do 9326 haveit= 9327 for x in $CPPFLAGS; do 9328 9329 acl_save_prefix="$prefix" 9330 prefix="$acl_final_prefix" 9331 acl_save_exec_prefix="$exec_prefix" 9332 exec_prefix="$acl_final_exec_prefix" 9333 eval x=\"$x\" 9334 exec_prefix="$acl_save_exec_prefix" 9335 prefix="$acl_save_prefix" 9336 9337 if test "X$x" = "X$element"; then 9338 haveit=yes 9339 break 9340 fi 9341 done 9342 if test -z "$haveit"; then 9343 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9344 fi 9345 done 9346 9347 fi 9348 9349 9350$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 9351 9352 9353$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 9354 9355 fi 9356 9357 POSUB=po 9358 fi 9359 9360 9361 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 9362 BUILD_INCLUDED_LIBINTL=yes 9363 fi 9364 9365 9366 9367 9368 9369 nls_cv_header_intl= 9370 nls_cv_header_libgt= 9371 9372 DATADIRNAME=share 9373 9374 9375 INSTOBJEXT=.mo 9376 9377 9378 GENCAT=gencat 9379 9380 9381 if test "$USE_INCLUDED_LIBINTL" = yes; then 9382 INTLOBJS="\$(GETTOBJS)" 9383 fi 9384 9385 9386 INTL_LIBTOOL_SUFFIX_PREFIX= 9387 9388 9389 9390 INTLLIBS="$LIBINTL" 9391 9392 9393 9394 9395 9396 9397 9398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9399$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9400set x ${MAKE-make} 9401ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9402if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9403 $as_echo_n "(cached) " >&6 9404else 9405 cat >conftest.make <<\_ACEOF 9406SHELL = /bin/sh 9407all: 9408 @echo '@@@%%%=$(MAKE)=@@@%%%' 9409_ACEOF 9410# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9411case `${MAKE-make} -f conftest.make 2>/dev/null` in 9412 *@@@%%%=?*=@@@%%%*) 9413 eval ac_cv_prog_make_${ac_make}_set=yes;; 9414 *) 9415 eval ac_cv_prog_make_${ac_make}_set=no;; 9416esac 9417rm -f conftest.make 9418fi 9419if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9421$as_echo "yes" >&6; } 9422 SET_MAKE= 9423else 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9425$as_echo "no" >&6; } 9426 SET_MAKE="MAKE=${MAKE-make}" 9427fi 9428 9429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 9430$as_echo_n "checking for GNU make... " >&6; } 9431if test "${_cv_gnu_make_command+set}" = set; then : 9432 $as_echo_n "(cached) " >&6 9433else 9434 _cv_gnu_make_command='' ; 9435 for a in "$MAKE" make gmake gnumake ; do 9436 if test -z "$a" ; then continue ; fi ; 9437 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 9438 _cv_gnu_make_command=$a ; 9439 break; 9440 fi 9441 done ; 9442 9443fi 9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 9445$as_echo "$_cv_gnu_make_command" >&6; } ; 9446 if test "x$_cv_gnu_make_command" != "x" ; then 9447 ifGNUmake='' ; 9448 ifNotGNUmake='#' ; 9449 else 9450 ifGNUmake='#' ; 9451 ifNotGNUmake='' ; 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 9453$as_echo "\"Not found\"" >&6; }; 9454 fi 9455 9456 9457 9458# Extract the first word of "ln", so it can be a program name with args. 9459set dummy ln; ac_word=$2 9460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9461$as_echo_n "checking for $ac_word... " >&6; } 9462if test "${ac_cv_path_LN+set}" = set; then : 9463 $as_echo_n "(cached) " >&6 9464else 9465 case $LN in 9466 [\\/]* | ?:[\\/]*) 9467 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9468 ;; 9469 *) 9470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9471for as_dir in $PATH 9472do 9473 IFS=$as_save_IFS 9474 test -z "$as_dir" && as_dir=. 9475 for ac_exec_ext in '' $ac_executable_extensions; do 9476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9477 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9479 break 2 9480 fi 9481done 9482 done 9483IFS=$as_save_IFS 9484 9485 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 9486 ;; 9487esac 9488fi 9489LN=$ac_cv_path_LN 9490if test -n "$LN"; then 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9492$as_echo "$LN" >&6; } 9493else 9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9495$as_echo "no" >&6; } 9496fi 9497 9498 9499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9500$as_echo_n "checking whether ln -s works... " >&6; } 9501LN_S=$as_ln_s 9502if test "$LN_S" = "ln -s"; then 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9504$as_echo "yes" >&6; } 9505else 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9507$as_echo "no, using $LN_S" >&6; } 9508fi 9509 9510# Extract the first word of "mv", so it can be a program name with args. 9511set dummy mv; ac_word=$2 9512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9513$as_echo_n "checking for $ac_word... " >&6; } 9514if test "${ac_cv_path_MV+set}" = set; then : 9515 $as_echo_n "(cached) " >&6 9516else 9517 case $MV in 9518 [\\/]* | ?:[\\/]*) 9519 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9520 ;; 9521 *) 9522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9523for as_dir in $PATH 9524do 9525 IFS=$as_save_IFS 9526 test -z "$as_dir" && as_dir=. 9527 for ac_exec_ext in '' $ac_executable_extensions; do 9528 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9529 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9531 break 2 9532 fi 9533done 9534 done 9535IFS=$as_save_IFS 9536 9537 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 9538 ;; 9539esac 9540fi 9541MV=$ac_cv_path_MV 9542if test -n "$MV"; then 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9544$as_echo "$MV" >&6; } 9545else 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9547$as_echo "no" >&6; } 9548fi 9549 9550 9551# Extract the first word of "cp", so it can be a program name with args. 9552set dummy cp; ac_word=$2 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9554$as_echo_n "checking for $ac_word... " >&6; } 9555if test "${ac_cv_path_CP+set}" = set; then : 9556 $as_echo_n "(cached) " >&6 9557else 9558 case $CP in 9559 [\\/]* | ?:[\\/]*) 9560 ac_cv_path_CP="$CP" # Let the user override the test with a path. 9561 ;; 9562 *) 9563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9564for as_dir in $PATH 9565do 9566 IFS=$as_save_IFS 9567 test -z "$as_dir" && as_dir=. 9568 for ac_exec_ext in '' $ac_executable_extensions; do 9569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9570 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 9571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9572 break 2 9573 fi 9574done 9575 done 9576IFS=$as_save_IFS 9577 9578 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 9579 ;; 9580esac 9581fi 9582CP=$ac_cv_path_CP 9583if test -n "$CP"; then 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 9585$as_echo "$CP" >&6; } 9586else 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9588$as_echo "no" >&6; } 9589fi 9590 9591 9592# Extract the first word of "rm", so it can be a program name with args. 9593set dummy rm; ac_word=$2 9594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9595$as_echo_n "checking for $ac_word... " >&6; } 9596if test "${ac_cv_path_RM+set}" = set; then : 9597 $as_echo_n "(cached) " >&6 9598else 9599 case $RM in 9600 [\\/]* | ?:[\\/]*) 9601 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9602 ;; 9603 *) 9604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9605for as_dir in $PATH 9606do 9607 IFS=$as_save_IFS 9608 test -z "$as_dir" && as_dir=. 9609 for ac_exec_ext in '' $ac_executable_extensions; do 9610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9611 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9613 break 2 9614 fi 9615done 9616 done 9617IFS=$as_save_IFS 9618 9619 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 9620 ;; 9621esac 9622fi 9623RM=$ac_cv_path_RM 9624if test -n "$RM"; then 9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9626$as_echo "$RM" >&6; } 9627else 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9629$as_echo "no" >&6; } 9630fi 9631 9632 9633# Extract the first word of "chmod", so it can be a program name with args. 9634set dummy chmod; ac_word=$2 9635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9636$as_echo_n "checking for $ac_word... " >&6; } 9637if test "${ac_cv_path_CHMOD+set}" = set; then : 9638 $as_echo_n "(cached) " >&6 9639else 9640 case $CHMOD in 9641 [\\/]* | ?:[\\/]*) 9642 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 9643 ;; 9644 *) 9645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9646for as_dir in $PATH 9647do 9648 IFS=$as_save_IFS 9649 test -z "$as_dir" && as_dir=. 9650 for ac_exec_ext in '' $ac_executable_extensions; do 9651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9652 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 9653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9654 break 2 9655 fi 9656done 9657 done 9658IFS=$as_save_IFS 9659 9660 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" 9661 ;; 9662esac 9663fi 9664CHMOD=$ac_cv_path_CHMOD 9665if test -n "$CHMOD"; then 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 9667$as_echo "$CHMOD" >&6; } 9668else 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9670$as_echo "no" >&6; } 9671fi 9672 9673 9674for ac_prog in gawk mawk nawk awk 9675do 9676 # Extract the first word of "$ac_prog", so it can be a program name with args. 9677set dummy $ac_prog; ac_word=$2 9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9679$as_echo_n "checking for $ac_word... " >&6; } 9680if test "${ac_cv_prog_AWK+set}" = set; then : 9681 $as_echo_n "(cached) " >&6 9682else 9683 if test -n "$AWK"; then 9684 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9685else 9686as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9687for as_dir in $PATH 9688do 9689 IFS=$as_save_IFS 9690 test -z "$as_dir" && as_dir=. 9691 for ac_exec_ext in '' $ac_executable_extensions; do 9692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9693 ac_cv_prog_AWK="$ac_prog" 9694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9695 break 2 9696 fi 9697done 9698 done 9699IFS=$as_save_IFS 9700 9701fi 9702fi 9703AWK=$ac_cv_prog_AWK 9704if test -n "$AWK"; then 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9706$as_echo "$AWK" >&6; } 9707else 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9709$as_echo "no" >&6; } 9710fi 9711 9712 9713 test -n "$AWK" && break 9714done 9715 9716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 9717$as_echo_n "checking for egrep... " >&6; } 9718if test "${ac_cv_path_EGREP+set}" = set; then : 9719 $as_echo_n "(cached) " >&6 9720else 9721 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 9722 then ac_cv_path_EGREP="$GREP -E" 9723 else 9724 if test -z "$EGREP"; then 9725 ac_path_EGREP_found=false 9726 # Loop through the user's path and test for each of PROGNAME-LIST 9727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9728for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9729do 9730 IFS=$as_save_IFS 9731 test -z "$as_dir" && as_dir=. 9732 for ac_prog in egrep; do 9733 for ac_exec_ext in '' $ac_executable_extensions; do 9734 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 9735 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 9736# Check for GNU ac_path_EGREP and select it if it is found. 9737 # Check for GNU $ac_path_EGREP 9738case `"$ac_path_EGREP" --version 2>&1` in 9739*GNU*) 9740 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 9741*) 9742 ac_count=0 9743 $as_echo_n 0123456789 >"conftest.in" 9744 while : 9745 do 9746 cat "conftest.in" "conftest.in" >"conftest.tmp" 9747 mv "conftest.tmp" "conftest.in" 9748 cp "conftest.in" "conftest.nl" 9749 $as_echo 'EGREP' >> "conftest.nl" 9750 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 9751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9752 as_fn_arith $ac_count + 1 && ac_count=$as_val 9753 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 9754 # Best one so far, save it but keep looking for a better one 9755 ac_cv_path_EGREP="$ac_path_EGREP" 9756 ac_path_EGREP_max=$ac_count 9757 fi 9758 # 10*(2^10) chars as input seems more than enough 9759 test $ac_count -gt 10 && break 9760 done 9761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9762esac 9763 9764 $ac_path_EGREP_found && break 3 9765 done 9766 done 9767 done 9768IFS=$as_save_IFS 9769 if test -z "$ac_cv_path_EGREP"; then 9770 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9771 fi 9772else 9773 ac_cv_path_EGREP=$EGREP 9774fi 9775 9776 fi 9777fi 9778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 9779$as_echo "$ac_cv_path_EGREP" >&6; } 9780 EGREP="$ac_cv_path_EGREP" 9781 9782 9783# Extract the first word of "sed", so it can be a program name with args. 9784set dummy sed; ac_word=$2 9785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9786$as_echo_n "checking for $ac_word... " >&6; } 9787if test "${ac_cv_path_SED+set}" = set; then : 9788 $as_echo_n "(cached) " >&6 9789else 9790 case $SED in 9791 [\\/]* | ?:[\\/]*) 9792 ac_cv_path_SED="$SED" # Let the user override the test with a path. 9793 ;; 9794 *) 9795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9796for as_dir in $PATH 9797do 9798 IFS=$as_save_IFS 9799 test -z "$as_dir" && as_dir=. 9800 for ac_exec_ext in '' $ac_executable_extensions; do 9801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9802 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 9803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9804 break 2 9805 fi 9806done 9807 done 9808IFS=$as_save_IFS 9809 9810 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 9811 ;; 9812esac 9813fi 9814SED=$ac_cv_path_SED 9815if test -n "$SED"; then 9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 9817$as_echo "$SED" >&6; } 9818else 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9820$as_echo "no" >&6; } 9821fi 9822 9823 9824# Extract the first word of "perl", so it can be a program name with args. 9825set dummy perl; ac_word=$2 9826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9827$as_echo_n "checking for $ac_word... " >&6; } 9828if test "${ac_cv_path_PERL+set}" = set; then : 9829 $as_echo_n "(cached) " >&6 9830else 9831 case $PERL in 9832 [\\/]* | ?:[\\/]*) 9833 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 9834 ;; 9835 *) 9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9837for as_dir in $PATH 9838do 9839 IFS=$as_save_IFS 9840 test -z "$as_dir" && as_dir=. 9841 for ac_exec_ext in '' $ac_executable_extensions; do 9842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9843 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 9844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9845 break 2 9846 fi 9847done 9848 done 9849IFS=$as_save_IFS 9850 9851 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 9852 ;; 9853esac 9854fi 9855PERL=$ac_cv_path_PERL 9856if test -n "$PERL"; then 9857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 9858$as_echo "$PERL" >&6; } 9859else 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9861$as_echo "no" >&6; } 9862fi 9863 9864 9865# Extract the first word of "ldconfig", so it can be a program name with args. 9866set dummy ldconfig; ac_word=$2 9867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9868$as_echo_n "checking for $ac_word... " >&6; } 9869if test "${ac_cv_path_LDCONFIG+set}" = set; then : 9870 $as_echo_n "(cached) " >&6 9871else 9872 case $LDCONFIG in 9873 [\\/]* | ?:[\\/]*) 9874 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 9875 ;; 9876 *) 9877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9878for as_dir in $PATH 9879do 9880 IFS=$as_save_IFS 9881 test -z "$as_dir" && as_dir=. 9882 for ac_exec_ext in '' $ac_executable_extensions; do 9883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9884 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" 9885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9886 break 2 9887 fi 9888done 9889 done 9890IFS=$as_save_IFS 9891 9892 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" 9893 ;; 9894esac 9895fi 9896LDCONFIG=$ac_cv_path_LDCONFIG 9897if test -n "$LDCONFIG"; then 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 9899$as_echo "$LDCONFIG" >&6; } 9900else 9901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9902$as_echo "no" >&6; } 9903fi 9904 9905 9906if test -n "$ac_tool_prefix"; then 9907 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 9908set dummy ${ac_tool_prefix}ar; ac_word=$2 9909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9910$as_echo_n "checking for $ac_word... " >&6; } 9911if test "${ac_cv_prog_AR+set}" = set; then : 9912 $as_echo_n "(cached) " >&6 9913else 9914 if test -n "$AR"; then 9915 ac_cv_prog_AR="$AR" # Let the user override the test. 9916else 9917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9918for as_dir in $PATH 9919do 9920 IFS=$as_save_IFS 9921 test -z "$as_dir" && as_dir=. 9922 for ac_exec_ext in '' $ac_executable_extensions; do 9923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9924 ac_cv_prog_AR="${ac_tool_prefix}ar" 9925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9926 break 2 9927 fi 9928done 9929 done 9930IFS=$as_save_IFS 9931 9932fi 9933fi 9934AR=$ac_cv_prog_AR 9935if test -n "$AR"; then 9936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9937$as_echo "$AR" >&6; } 9938else 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9940$as_echo "no" >&6; } 9941fi 9942 9943 9944fi 9945if test -z "$ac_cv_prog_AR"; then 9946 ac_ct_AR=$AR 9947 # Extract the first word of "ar", so it can be a program name with args. 9948set dummy ar; ac_word=$2 9949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9950$as_echo_n "checking for $ac_word... " >&6; } 9951if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 9952 $as_echo_n "(cached) " >&6 9953else 9954 if test -n "$ac_ct_AR"; then 9955 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9956else 9957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9958for as_dir in $PATH 9959do 9960 IFS=$as_save_IFS 9961 test -z "$as_dir" && as_dir=. 9962 for ac_exec_ext in '' $ac_executable_extensions; do 9963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9964 ac_cv_prog_ac_ct_AR="ar" 9965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9966 break 2 9967 fi 9968done 9969 done 9970IFS=$as_save_IFS 9971 9972fi 9973fi 9974ac_ct_AR=$ac_cv_prog_ac_ct_AR 9975if test -n "$ac_ct_AR"; then 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9977$as_echo "$ac_ct_AR" >&6; } 9978else 9979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9980$as_echo "no" >&6; } 9981fi 9982 9983 if test "x$ac_ct_AR" = x; then 9984 AR="ar" 9985 else 9986 case $cross_compiling:$ac_tool_warned in 9987yes:) 9988{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9989$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9990ac_tool_warned=yes ;; 9991esac 9992 AR=$ac_ct_AR 9993 fi 9994else 9995 AR="$ac_cv_prog_AR" 9996fi 9997 9998if test -n "$ac_tool_prefix"; then 9999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 10000set dummy ${ac_tool_prefix}ranlib; ac_word=$2 10001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10002$as_echo_n "checking for $ac_word... " >&6; } 10003if test "${ac_cv_prog_RANLIB+set}" = set; then : 10004 $as_echo_n "(cached) " >&6 10005else 10006 if test -n "$RANLIB"; then 10007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10008else 10009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10010for as_dir in $PATH 10011do 10012 IFS=$as_save_IFS 10013 test -z "$as_dir" && as_dir=. 10014 for ac_exec_ext in '' $ac_executable_extensions; do 10015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10018 break 2 10019 fi 10020done 10021 done 10022IFS=$as_save_IFS 10023 10024fi 10025fi 10026RANLIB=$ac_cv_prog_RANLIB 10027if test -n "$RANLIB"; then 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10029$as_echo "$RANLIB" >&6; } 10030else 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10032$as_echo "no" >&6; } 10033fi 10034 10035 10036fi 10037if test -z "$ac_cv_prog_RANLIB"; then 10038 ac_ct_RANLIB=$RANLIB 10039 # Extract the first word of "ranlib", so it can be a program name with args. 10040set dummy ranlib; ac_word=$2 10041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10042$as_echo_n "checking for $ac_word... " >&6; } 10043if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 10044 $as_echo_n "(cached) " >&6 10045else 10046 if test -n "$ac_ct_RANLIB"; then 10047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10048else 10049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10050for as_dir in $PATH 10051do 10052 IFS=$as_save_IFS 10053 test -z "$as_dir" && as_dir=. 10054 for ac_exec_ext in '' $ac_executable_extensions; do 10055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10056 ac_cv_prog_ac_ct_RANLIB="ranlib" 10057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10058 break 2 10059 fi 10060done 10061 done 10062IFS=$as_save_IFS 10063 10064fi 10065fi 10066ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10067if test -n "$ac_ct_RANLIB"; then 10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10069$as_echo "$ac_ct_RANLIB" >&6; } 10070else 10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10072$as_echo "no" >&6; } 10073fi 10074 10075 if test "x$ac_ct_RANLIB" = x; then 10076 RANLIB=":" 10077 else 10078 case $cross_compiling:$ac_tool_warned in 10079yes:) 10080{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10081$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10082ac_tool_warned=yes ;; 10083esac 10084 RANLIB=$ac_ct_RANLIB 10085 fi 10086else 10087 RANLIB="$ac_cv_prog_RANLIB" 10088fi 10089 10090if test -n "$ac_tool_prefix"; then 10091 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10092set dummy ${ac_tool_prefix}strip; ac_word=$2 10093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10094$as_echo_n "checking for $ac_word... " >&6; } 10095if test "${ac_cv_prog_STRIP+set}" = set; then : 10096 $as_echo_n "(cached) " >&6 10097else 10098 if test -n "$STRIP"; then 10099 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10100else 10101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10102for as_dir in $PATH 10103do 10104 IFS=$as_save_IFS 10105 test -z "$as_dir" && as_dir=. 10106 for ac_exec_ext in '' $ac_executable_extensions; do 10107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10108 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10110 break 2 10111 fi 10112done 10113 done 10114IFS=$as_save_IFS 10115 10116fi 10117fi 10118STRIP=$ac_cv_prog_STRIP 10119if test -n "$STRIP"; then 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10121$as_echo "$STRIP" >&6; } 10122else 10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10124$as_echo "no" >&6; } 10125fi 10126 10127 10128fi 10129if test -z "$ac_cv_prog_STRIP"; then 10130 ac_ct_STRIP=$STRIP 10131 # Extract the first word of "strip", so it can be a program name with args. 10132set dummy strip; ac_word=$2 10133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10134$as_echo_n "checking for $ac_word... " >&6; } 10135if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 10136 $as_echo_n "(cached) " >&6 10137else 10138 if test -n "$ac_ct_STRIP"; then 10139 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10140else 10141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10142for as_dir in $PATH 10143do 10144 IFS=$as_save_IFS 10145 test -z "$as_dir" && as_dir=. 10146 for ac_exec_ext in '' $ac_executable_extensions; do 10147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10148 ac_cv_prog_ac_ct_STRIP="strip" 10149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10150 break 2 10151 fi 10152done 10153 done 10154IFS=$as_save_IFS 10155 10156fi 10157fi 10158ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10159if test -n "$ac_ct_STRIP"; then 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10161$as_echo "$ac_ct_STRIP" >&6; } 10162else 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10164$as_echo "no" >&6; } 10165fi 10166 10167 if test "x$ac_ct_STRIP" = x; then 10168 STRIP=":" 10169 else 10170 case $cross_compiling:$ac_tool_warned in 10171yes:) 10172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10174ac_tool_warned=yes ;; 10175esac 10176 STRIP=$ac_ct_STRIP 10177 fi 10178else 10179 STRIP="$ac_cv_prog_STRIP" 10180fi 10181 10182# Extract the first word of "makeinfo", so it can be a program name with args. 10183set dummy makeinfo; ac_word=$2 10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10185$as_echo_n "checking for $ac_word... " >&6; } 10186if test "${ac_cv_prog_MAKEINFO+set}" = set; then : 10187 $as_echo_n "(cached) " >&6 10188else 10189 if test -n "$MAKEINFO"; then 10190 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 10191else 10192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10193for as_dir in $PATH 10194do 10195 IFS=$as_save_IFS 10196 test -z "$as_dir" && as_dir=. 10197 for ac_exec_ext in '' $ac_executable_extensions; do 10198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10199 ac_cv_prog_MAKEINFO="makeinfo" 10200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10201 break 2 10202 fi 10203done 10204 done 10205IFS=$as_save_IFS 10206 10207fi 10208fi 10209MAKEINFO=$ac_cv_prog_MAKEINFO 10210if test -n "$MAKEINFO"; then 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 10212$as_echo "$MAKEINFO" >&6; } 10213else 10214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10215$as_echo "no" >&6; } 10216fi 10217 10218 10219if test "_$MAKEINFO" = "_"; then 10220 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" 10221else 10222 case "$MAKEINFO" in 10223 */missing.*) 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10225*** Makeinfo is missing. Info documentation will not be built." >&5 10226$as_echo "$as_me: WARNING: 10227*** Makeinfo is missing. Info documentation will not be built." >&2;} 10228 ;; 10229 *) 10230 ;; 10231 esac 10232fi 10233 10234 10235# See if we need a separate native compiler. 10236if test $cross_compiling = no; then 10237 BUILD_CC="$CC" 10238 10239else 10240 for ac_prog in gcc cc 10241do 10242 # Extract the first word of "$ac_prog", so it can be a program name with args. 10243set dummy $ac_prog; ac_word=$2 10244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10245$as_echo_n "checking for $ac_word... " >&6; } 10246if test "${ac_cv_prog_BUILD_CC+set}" = set; then : 10247 $as_echo_n "(cached) " >&6 10248else 10249 if test -n "$BUILD_CC"; then 10250 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 10251else 10252as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10253for as_dir in $PATH 10254do 10255 IFS=$as_save_IFS 10256 test -z "$as_dir" && as_dir=. 10257 for ac_exec_ext in '' $ac_executable_extensions; do 10258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10259 ac_cv_prog_BUILD_CC="$ac_prog" 10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10261 break 2 10262 fi 10263done 10264 done 10265IFS=$as_save_IFS 10266 10267fi 10268fi 10269BUILD_CC=$ac_cv_prog_BUILD_CC 10270if test -n "$BUILD_CC"; then 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 10272$as_echo "$BUILD_CC" >&6; } 10273else 10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10275$as_echo "no" >&6; } 10276fi 10277 10278 10279 test -n "$BUILD_CC" && break 10280done 10281 10282fi 10283for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h 10284do : 10285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10286ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10287eval as_val=\$$as_ac_Header 10288 if test "x$as_val" = x""yes; then : 10289 cat >>confdefs.h <<_ACEOF 10290#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10291_ACEOF 10292 10293fi 10294 10295done 10296 10297for ac_header in sys/disk.h sys/mount.h 10298do : 10299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10300ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 10301#if HAVE_SYS_QUEUE_H 10302#include <sys/queue.h> 10303#endif 10304 10305" 10306eval as_val=\$$as_ac_Header 10307 if test "x$as_val" = x""yes; then : 10308 cat >>confdefs.h <<_ACEOF 10309#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10310_ACEOF 10311 10312fi 10313 10314done 10315 10316for ac_header in net/if.h 10317do : 10318 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 10319#if HAVE_SYS_TYPES_H 10320#include <sys/types.h> 10321#endif 10322#if HAVE_SYS_SOCKET 10323#include <sys/socket.h> 10324#endif 10325 10326" 10327if test "x$ac_cv_header_net_if_h" = x""yes; then : 10328 cat >>confdefs.h <<_ACEOF 10329#define HAVE_NET_IF_H 1 10330_ACEOF 10331 10332fi 10333 10334done 10335 10336for ac_func in vprintf 10337do : 10338 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 10339if test "x$ac_cv_func_vprintf" = x""yes; then : 10340 cat >>confdefs.h <<_ACEOF 10341#define HAVE_VPRINTF 1 10342_ACEOF 10343 10344ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 10345if test "x$ac_cv_func__doprnt" = x""yes; then : 10346 10347$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 10348 10349fi 10350 10351fi 10352done 10353 10354 10355ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> 10356" 10357if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then : 10358 10359$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h 10360 10361fi 10362 10363ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> 10364" 10365if test "x$ac_cv_type_ssize_t" = x""yes; then : 10366 10367$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h 10368 10369fi 10370 10371ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> 10372" 10373if test "x$ac_cv_have_decl_llseek" = x""yes; then : 10374 10375$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h 10376 10377fi 10378 10379ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE 10380 #define _LARGEFILE64_SOURCE 10381 #include <unistd.h> 10382" 10383if test "x$ac_cv_have_decl_lseek64" = x""yes; then : 10384 10385$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h 10386 10387fi 10388 10389# The cast to long int works around a bug in the HP C Compiler 10390# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10391# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10392# This bug is HP SR number 8606223364. 10393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 10394$as_echo_n "checking size of short... " >&6; } 10395if test "${ac_cv_sizeof_short+set}" = set; then : 10396 $as_echo_n "(cached) " >&6 10397else 10398 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 10399 10400else 10401 if test "$ac_cv_type_short" = yes; then 10402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10404{ as_fn_set_status 77 10405as_fn_error "cannot compute sizeof (short) 10406See \`config.log' for more details." "$LINENO" 5; }; } 10407 else 10408 ac_cv_sizeof_short=0 10409 fi 10410fi 10411 10412fi 10413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 10414$as_echo "$ac_cv_sizeof_short" >&6; } 10415 10416 10417 10418cat >>confdefs.h <<_ACEOF 10419#define SIZEOF_SHORT $ac_cv_sizeof_short 10420_ACEOF 10421 10422 10423# The cast to long int works around a bug in the HP C Compiler 10424# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10425# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10426# This bug is HP SR number 8606223364. 10427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 10428$as_echo_n "checking size of int... " >&6; } 10429if test "${ac_cv_sizeof_int+set}" = set; then : 10430 $as_echo_n "(cached) " >&6 10431else 10432 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 10433 10434else 10435 if test "$ac_cv_type_int" = yes; then 10436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10438{ as_fn_set_status 77 10439as_fn_error "cannot compute sizeof (int) 10440See \`config.log' for more details." "$LINENO" 5; }; } 10441 else 10442 ac_cv_sizeof_int=0 10443 fi 10444fi 10445 10446fi 10447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 10448$as_echo "$ac_cv_sizeof_int" >&6; } 10449 10450 10451 10452cat >>confdefs.h <<_ACEOF 10453#define SIZEOF_INT $ac_cv_sizeof_int 10454_ACEOF 10455 10456 10457# The cast to long int works around a bug in the HP C Compiler 10458# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10459# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10460# This bug is HP SR number 8606223364. 10461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 10462$as_echo_n "checking size of long... " >&6; } 10463if test "${ac_cv_sizeof_long+set}" = set; then : 10464 $as_echo_n "(cached) " >&6 10465else 10466 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 10467 10468else 10469 if test "$ac_cv_type_long" = yes; then 10470 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10472{ as_fn_set_status 77 10473as_fn_error "cannot compute sizeof (long) 10474See \`config.log' for more details." "$LINENO" 5; }; } 10475 else 10476 ac_cv_sizeof_long=0 10477 fi 10478fi 10479 10480fi 10481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 10482$as_echo "$ac_cv_sizeof_long" >&6; } 10483 10484 10485 10486cat >>confdefs.h <<_ACEOF 10487#define SIZEOF_LONG $ac_cv_sizeof_long 10488_ACEOF 10489 10490 10491# The cast to long int works around a bug in the HP C Compiler 10492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10494# This bug is HP SR number 8606223364. 10495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 10496$as_echo_n "checking size of long long... " >&6; } 10497if test "${ac_cv_sizeof_long_long+set}" = set; then : 10498 $as_echo_n "(cached) " >&6 10499else 10500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 10501 10502else 10503 if test "$ac_cv_type_long_long" = yes; then 10504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10506{ as_fn_set_status 77 10507as_fn_error "cannot compute sizeof (long long) 10508See \`config.log' for more details." "$LINENO" 5; }; } 10509 else 10510 ac_cv_sizeof_long_long=0 10511 fi 10512fi 10513 10514fi 10515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 10516$as_echo "$ac_cv_sizeof_long_long" >&6; } 10517 10518 10519 10520cat >>confdefs.h <<_ACEOF 10521#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 10522_ACEOF 10523 10524 10525SIZEOF_SHORT=$ac_cv_sizeof_short 10526SIZEOF_INT=$ac_cv_sizeof_int 10527SIZEOF_LONG=$ac_cv_sizeof_long 10528SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long 10529 10530 10531 10532 10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10534$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10535if test "${ac_cv_c_bigendian+set}" = set; then : 10536 $as_echo_n "(cached) " >&6 10537else 10538 ac_cv_c_bigendian=unknown 10539 # See if we're dealing with a universal compiler. 10540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10541/* end confdefs.h. */ 10542#ifndef __APPLE_CC__ 10543 not a universal capable compiler 10544 #endif 10545 typedef int dummy; 10546 10547_ACEOF 10548if ac_fn_c_try_compile "$LINENO"; then : 10549 10550 # Check for potential -arch flags. It is not universal unless 10551 # there are at least two -arch flags with different values. 10552 ac_arch= 10553 ac_prev= 10554 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10555 if test -n "$ac_prev"; then 10556 case $ac_word in 10557 i?86 | x86_64 | ppc | ppc64) 10558 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 10559 ac_arch=$ac_word 10560 else 10561 ac_cv_c_bigendian=universal 10562 break 10563 fi 10564 ;; 10565 esac 10566 ac_prev= 10567 elif test "x$ac_word" = "x-arch"; then 10568 ac_prev=arch 10569 fi 10570 done 10571fi 10572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10573 if test $ac_cv_c_bigendian = unknown; then 10574 # See if sys/param.h defines the BYTE_ORDER macro. 10575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10576/* end confdefs.h. */ 10577#include <sys/types.h> 10578 #include <sys/param.h> 10579 10580int 10581main () 10582{ 10583#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 10584 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 10585 && LITTLE_ENDIAN) 10586 bogus endian macros 10587 #endif 10588 10589 ; 10590 return 0; 10591} 10592_ACEOF 10593if ac_fn_c_try_compile "$LINENO"; then : 10594 # It does; now see whether it defined to BIG_ENDIAN or not. 10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10596/* end confdefs.h. */ 10597#include <sys/types.h> 10598 #include <sys/param.h> 10599 10600int 10601main () 10602{ 10603#if BYTE_ORDER != BIG_ENDIAN 10604 not big endian 10605 #endif 10606 10607 ; 10608 return 0; 10609} 10610_ACEOF 10611if ac_fn_c_try_compile "$LINENO"; then : 10612 ac_cv_c_bigendian=yes 10613else 10614 ac_cv_c_bigendian=no 10615fi 10616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10617fi 10618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10619 fi 10620 if test $ac_cv_c_bigendian = unknown; then 10621 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 10622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10623/* end confdefs.h. */ 10624#include <limits.h> 10625 10626int 10627main () 10628{ 10629#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 10630 bogus endian macros 10631 #endif 10632 10633 ; 10634 return 0; 10635} 10636_ACEOF 10637if ac_fn_c_try_compile "$LINENO"; then : 10638 # It does; now see whether it defined to _BIG_ENDIAN or not. 10639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10640/* end confdefs.h. */ 10641#include <limits.h> 10642 10643int 10644main () 10645{ 10646#ifndef _BIG_ENDIAN 10647 not big endian 10648 #endif 10649 10650 ; 10651 return 0; 10652} 10653_ACEOF 10654if ac_fn_c_try_compile "$LINENO"; then : 10655 ac_cv_c_bigendian=yes 10656else 10657 ac_cv_c_bigendian=no 10658fi 10659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10660fi 10661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10662 fi 10663 if test $ac_cv_c_bigendian = unknown; then 10664 # Compile a test program. 10665 if test "$cross_compiling" = yes; then : 10666 # Try to guess by grepping values from an object file. 10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10668/* end confdefs.h. */ 10669short int ascii_mm[] = 10670 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 10671 short int ascii_ii[] = 10672 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 10673 int use_ascii (int i) { 10674 return ascii_mm[i] + ascii_ii[i]; 10675 } 10676 short int ebcdic_ii[] = 10677 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 10678 short int ebcdic_mm[] = 10679 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 10680 int use_ebcdic (int i) { 10681 return ebcdic_mm[i] + ebcdic_ii[i]; 10682 } 10683 extern int foo; 10684 10685int 10686main () 10687{ 10688return use_ascii (foo) == use_ebcdic (foo); 10689 ; 10690 return 0; 10691} 10692_ACEOF 10693if ac_fn_c_try_compile "$LINENO"; then : 10694 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 10695 ac_cv_c_bigendian=yes 10696 fi 10697 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 10698 if test "$ac_cv_c_bigendian" = unknown; then 10699 ac_cv_c_bigendian=no 10700 else 10701 # finding both strings is unlikely to happen, but who knows? 10702 ac_cv_c_bigendian=unknown 10703 fi 10704 fi 10705fi 10706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10707else 10708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10709/* end confdefs.h. */ 10710$ac_includes_default 10711int 10712main () 10713{ 10714 10715 /* Are we little or big endian? From Harbison&Steele. */ 10716 union 10717 { 10718 long int l; 10719 char c[sizeof (long int)]; 10720 } u; 10721 u.l = 1; 10722 return u.c[sizeof (long int) - 1] == 1; 10723 10724 ; 10725 return 0; 10726} 10727_ACEOF 10728if ac_fn_c_try_run "$LINENO"; then : 10729 ac_cv_c_bigendian=no 10730else 10731 ac_cv_c_bigendian=yes 10732fi 10733rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10734 conftest.$ac_objext conftest.beam conftest.$ac_ext 10735fi 10736 10737 fi 10738fi 10739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 10740$as_echo "$ac_cv_c_bigendian" >&6; } 10741 case $ac_cv_c_bigendian in #( 10742 yes) 10743 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 10744;; #( 10745 no) 10746 ;; #( 10747 universal) 10748 10749$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 10750 10751 ;; #( 10752 *) 10753 as_fn_error "unknown endianness 10754 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 10755 esac 10756 10757BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh 10758ASM_TYPES_HEADER=./asm_types.h 10759 10760echo "/* These defines are needed for the public ext2fs.h header file */" \ 10761 > public_config.h 10762if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then 10763 uniq tmp_config.$$ >> public_config.h 10764else 10765 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h 10766fi 10767if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then 10768 uniq tmp_config.$$ >> public_config.h 10769else 10770 echo "#undef WORDS_BIGENDIAN" >> public_config.h 10771fi 10772rm -f tmp_config.$$ 10773PUBLIC_CONFIG_HEADER=./public_config.h 10774 10775for ac_header in inttypes.h 10776do : 10777 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 10778if test "x$ac_cv_header_inttypes_h" = x""yes; then : 10779 cat >>confdefs.h <<_ACEOF 10780#define HAVE_INTTYPES_H 1 10781_ACEOF 10782 10783fi 10784 10785done 10786 10787ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 10788if test "x$ac_cv_type_intptr_t" = x""yes; then : 10789 10790cat >>confdefs.h <<_ACEOF 10791#define HAVE_INTPTR_T 1 10792_ACEOF 10793 10794 10795fi 10796 10797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 10798$as_echo_n "checking whether struct stat has a st_flags field... " >&6; } 10799if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then : 10800 $as_echo_n "(cached) " >&6 10801else 10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10803/* end confdefs.h. */ 10804#include <sys/stat.h> 10805int 10806main () 10807{ 10808struct stat stat; stat.st_flags = 0; 10809 ; 10810 return 0; 10811} 10812_ACEOF 10813if ac_fn_c_try_compile "$LINENO"; then : 10814 e2fsprogs_cv_struct_st_flags=yes 10815else 10816 e2fsprogs_cv_struct_st_flags=no 10817fi 10818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10819fi 10820 10821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 10822$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } 10823if test "$e2fsprogs_cv_struct_st_flags" = yes; then 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 10825$as_echo_n "checking whether st_flags field is useful... " >&6; } 10826 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then : 10827 $as_echo_n "(cached) " >&6 10828else 10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10830/* end confdefs.h. */ 10831#include <sys/stat.h> 10832int 10833main () 10834{ 10835struct stat stat; stat.st_flags |= UF_IMMUTABLE; 10836 ; 10837 return 0; 10838} 10839_ACEOF 10840if ac_fn_c_try_compile "$LINENO"; then : 10841 e2fsprogs_cv_struct_st_flags_immut=yes 10842else 10843 e2fsprogs_cv_struct_st_flags_immut=no 10844fi 10845rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10846fi 10847 10848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 10849$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } 10850 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then 10851 10852$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h 10853 10854 fi 10855fi 10856ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 10857 #include <sys/socket.h> 10858" 10859if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : 10860 10861cat >>confdefs.h <<_ACEOF 10862#define HAVE_SA_LEN 1 10863_ACEOF 10864 10865fi 10866 10867if test -n "$BLKID_CMT"; then 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 10869$as_echo_n "checking for library containing blkid_probe_all... " >&6; } 10870if test "${ac_cv_search_blkid_probe_all+set}" = set; then : 10871 $as_echo_n "(cached) " >&6 10872else 10873 ac_func_search_save_LIBS=$LIBS 10874cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10875/* end confdefs.h. */ 10876 10877/* Override any GCC internal prototype to avoid an error. 10878 Use char because int might match the return type of a GCC 10879 builtin and then its argument prototype would still apply. */ 10880#ifdef __cplusplus 10881extern "C" 10882#endif 10883char blkid_probe_all (); 10884int 10885main () 10886{ 10887return blkid_probe_all (); 10888 ; 10889 return 0; 10890} 10891_ACEOF 10892for ac_lib in '' blkid; do 10893 if test -z "$ac_lib"; then 10894 ac_res="none required" 10895 else 10896 ac_res=-l$ac_lib 10897 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10898 fi 10899 if ac_fn_c_try_link "$LINENO"; then : 10900 ac_cv_search_blkid_probe_all=$ac_res 10901fi 10902rm -f core conftest.err conftest.$ac_objext \ 10903 conftest$ac_exeext 10904 if test "${ac_cv_search_blkid_probe_all+set}" = set; then : 10905 break 10906fi 10907done 10908if test "${ac_cv_search_blkid_probe_all+set}" = set; then : 10909 10910else 10911 ac_cv_search_blkid_probe_all=no 10912fi 10913rm conftest.$ac_ext 10914LIBS=$ac_func_search_save_LIBS 10915fi 10916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 10917$as_echo "$ac_cv_search_blkid_probe_all" >&6; } 10918ac_res=$ac_cv_search_blkid_probe_all 10919if test "$ac_res" != no; then : 10920 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10921 10922fi 10923 10924fi 10925for ac_func in __secure_getenv backtrace blkid_probe_get_topology chflags fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 llseek lseek64 mallinfo mbstowcs memalign mmap msync nanosleep open64 pathconf posix_fadvise posix_memalign prctl setmntent setresgid setresuid srandom strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime valloc 10926do : 10927 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10928ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10929eval as_val=\$$as_ac_var 10930 if test "x$as_val" = x""yes; then : 10931 cat >>confdefs.h <<_ACEOF 10932#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10933_ACEOF 10934 10935fi 10936done 10937 10938SOCKET_LIB='' 10939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 10940$as_echo_n "checking for socket in -lsocket... " >&6; } 10941if test "${ac_cv_lib_socket_socket+set}" = set; then : 10942 $as_echo_n "(cached) " >&6 10943else 10944 ac_check_lib_save_LIBS=$LIBS 10945LIBS="-lsocket $LIBS" 10946cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10947/* end confdefs.h. */ 10948 10949/* Override any GCC internal prototype to avoid an error. 10950 Use char because int might match the return type of a GCC 10951 builtin and then its argument prototype would still apply. */ 10952#ifdef __cplusplus 10953extern "C" 10954#endif 10955char socket (); 10956int 10957main () 10958{ 10959return socket (); 10960 ; 10961 return 0; 10962} 10963_ACEOF 10964if ac_fn_c_try_link "$LINENO"; then : 10965 ac_cv_lib_socket_socket=yes 10966else 10967 ac_cv_lib_socket_socket=no 10968fi 10969rm -f core conftest.err conftest.$ac_objext \ 10970 conftest$ac_exeext conftest.$ac_ext 10971LIBS=$ac_check_lib_save_LIBS 10972fi 10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 10974$as_echo "$ac_cv_lib_socket_socket" >&6; } 10975if test "x$ac_cv_lib_socket_socket" = x""yes; then : 10976 SOCKET_LIB=-lsocket 10977fi 10978 10979 10980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 10981$as_echo_n "checking for optreset... " >&6; } 10982if test "${ac_cv_have_optreset+set}" = set; then : 10983 $as_echo_n "(cached) " >&6 10984else 10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10986/* end confdefs.h. */ 10987#include <unistd.h> 10988 10989_ACEOF 10990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10991 $EGREP "optreset" >/dev/null 2>&1; then : 10992 ac_cv_have_optreset=yes 10993else 10994 ac_cv_have_optreset=no 10995fi 10996rm -f conftest* 10997 10998fi 10999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 11000$as_echo "$ac_cv_have_optreset" >&6; } 11001if test $ac_cv_have_optreset = yes; then 11002 11003$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h 11004 11005fi 11006 11007SEM_INIT_LIB='' 11008ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" 11009if test "x$ac_cv_func_sem_init" = x""yes; then : 11010 11011else 11012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 11013$as_echo_n "checking for sem_init in -lpthread... " >&6; } 11014if test "${ac_cv_lib_pthread_sem_init+set}" = set; then : 11015 $as_echo_n "(cached) " >&6 11016else 11017 ac_check_lib_save_LIBS=$LIBS 11018LIBS="-lpthread $LIBS" 11019cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11020/* end confdefs.h. */ 11021 11022/* Override any GCC internal prototype to avoid an error. 11023 Use char because int might match the return type of a GCC 11024 builtin and then its argument prototype would still apply. */ 11025#ifdef __cplusplus 11026extern "C" 11027#endif 11028char sem_init (); 11029int 11030main () 11031{ 11032return sem_init (); 11033 ; 11034 return 0; 11035} 11036_ACEOF 11037if ac_fn_c_try_link "$LINENO"; then : 11038 ac_cv_lib_pthread_sem_init=yes 11039else 11040 ac_cv_lib_pthread_sem_init=no 11041fi 11042rm -f core conftest.err conftest.$ac_objext \ 11043 conftest$ac_exeext conftest.$ac_ext 11044LIBS=$ac_check_lib_save_LIBS 11045fi 11046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 11047$as_echo "$ac_cv_lib_pthread_sem_init" >&6; } 11048if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then : 11049 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h 11050 11051 SEM_INIT_LIB=-lpthread 11052else 11053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 11054$as_echo_n "checking for sem_init in -lrt... " >&6; } 11055if test "${ac_cv_lib_rt_sem_init+set}" = set; then : 11056 $as_echo_n "(cached) " >&6 11057else 11058 ac_check_lib_save_LIBS=$LIBS 11059LIBS="-lrt $LIBS" 11060cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11061/* end confdefs.h. */ 11062 11063/* Override any GCC internal prototype to avoid an error. 11064 Use char because int might match the return type of a GCC 11065 builtin and then its argument prototype would still apply. */ 11066#ifdef __cplusplus 11067extern "C" 11068#endif 11069char sem_init (); 11070int 11071main () 11072{ 11073return sem_init (); 11074 ; 11075 return 0; 11076} 11077_ACEOF 11078if ac_fn_c_try_link "$LINENO"; then : 11079 ac_cv_lib_rt_sem_init=yes 11080else 11081 ac_cv_lib_rt_sem_init=no 11082fi 11083rm -f core conftest.err conftest.$ac_objext \ 11084 conftest$ac_exeext conftest.$ac_ext 11085LIBS=$ac_check_lib_save_LIBS 11086fi 11087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 11088$as_echo "$ac_cv_lib_rt_sem_init" >&6; } 11089if test "x$ac_cv_lib_rt_sem_init" = x""yes; then : 11090 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h 11091 11092 SEM_INIT_LIB=-lrt 11093else 11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 11095$as_echo_n "checking for sem_init in -lposix4... " >&6; } 11096if test "${ac_cv_lib_posix4_sem_init+set}" = set; then : 11097 $as_echo_n "(cached) " >&6 11098else 11099 ac_check_lib_save_LIBS=$LIBS 11100LIBS="-lposix4 $LIBS" 11101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11102/* end confdefs.h. */ 11103 11104/* Override any GCC internal prototype to avoid an error. 11105 Use char because int might match the return type of a GCC 11106 builtin and then its argument prototype would still apply. */ 11107#ifdef __cplusplus 11108extern "C" 11109#endif 11110char sem_init (); 11111int 11112main () 11113{ 11114return sem_init (); 11115 ; 11116 return 0; 11117} 11118_ACEOF 11119if ac_fn_c_try_link "$LINENO"; then : 11120 ac_cv_lib_posix4_sem_init=yes 11121else 11122 ac_cv_lib_posix4_sem_init=no 11123fi 11124rm -f core conftest.err conftest.$ac_objext \ 11125 conftest$ac_exeext conftest.$ac_ext 11126LIBS=$ac_check_lib_save_LIBS 11127fi 11128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 11129$as_echo "$ac_cv_lib_posix4_sem_init" >&6; } 11130if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then : 11131 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h 11132 11133 SEM_INIT_LIB=-lposix4 11134fi 11135 11136fi 11137 11138fi 11139 11140fi 11141 11142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 11143$as_echo_n "checking for unified diff option... " >&6; } 11144if diff -u $0 $0 > /dev/null 2>&1 ; then 11145 UNI_DIFF_OPTS=-u 11146else 11147 UNI_DIFF_OPTS=-c 11148fi 11149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 11150$as_echo "$UNI_DIFF_OPTS" >&6; } 11151 11152case "$host_os" in 11153linux*) 11154 11155$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h 11156 11157 ;; 11158esac 11159LINUX_CMT="#" 11160CYGWIN_CMT="#" 11161UNIX_CMT= 11162case "$host_os" in 11163linux*) 11164 LINUX_CMT= 11165 ;; 11166cygwin) 11167 CYGWIN_CMT= 11168 UNIX_CMT="#" 11169 ;; 11170esac 11171 11172 11173 11174case "$host_os" in 11175linux* | gnu* | k*bsd*-gnu) 11176 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then 11177 root_prefix=""; 11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 11179$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } 11180 fi 11181 ;; 11182esac 11183case "$host_os" in 11184linux* | gnu* | k*bsd*-gnu) 11185 if test "$prefix" = NONE ; then 11186 prefix="/usr"; 11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 11188$as_echo "On $host_os systems, prefix defaults to /usr" >&6; } 11189 if test "$mandir" = '${prefix}/man' ; then 11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 11191$as_echo "...and mandir defaults to /usr/share/man" >&6; } 11192 mandir=/usr/share/man 11193 fi 11194 fi 11195;; 11196esac 11197if test "$root_prefix" = NONE ; then 11198 if test "$prefix" = NONE ; then 11199 root_prefix="$ac_default_prefix" 11200 else 11201 root_prefix="$prefix" 11202 fi 11203 root_bindir=$bindir 11204 root_sbindir=$sbindir 11205 root_libdir=$libdir 11206 root_sysconfdir=$sysconfdir 11207else 11208 root_bindir='${root_prefix}/bin' 11209 root_sbindir='${root_prefix}/sbin' 11210 root_libdir='${root_prefix}/lib' 11211 root_sysconfdir='${root_prefix}/etc' 11212fi 11213if test "$bindir" != '${exec_prefix}/bin'; then 11214 root_bindir=$bindir 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 11216$as_echo "Setting root_bindir to $root_bindir" >&6; } 11217fi 11218if test "$sbindir" != '${exec_prefix}/sbin'; then 11219 root_sbindir=$sbindir 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 11221$as_echo "Setting root_sbindir to $root_sbindir" >&6; } 11222fi 11223if test "$libdir" != '${exec_prefix}/lib'; then 11224 root_libdir=$libdir 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 11226$as_echo "Setting root_libdir to $root_libdir" >&6; } 11227fi 11228if test "$sysconfdir" != '${prefix}/etc'; then 11229 root_sysconfdir=$sysconfdir 11230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 11231$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } 11232fi 11233 11234 11235 11236 11237 11238 11239# Check whether --with-multiarch was given. 11240if test "${with_multiarch+set}" = set; then : 11241 withval=$with_multiarch; libdir=$libdir/$withval 11242root_libdir=$root_libdir/$withval 11243 11244fi 11245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5 11246$as_echo_n "checking whether linker accepts -static... " >&6; } 11247if test "${ac_cv_e2fsprogs_use_static+set}" = set; then : 11248 $as_echo_n "(cached) " >&6 11249else 11250 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" 11251cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11252/* end confdefs.h. */ 11253#include <stdio.h> 11254int 11255main () 11256{ 11257fflush(stdout); 11258 ; 11259 return 0; 11260} 11261_ACEOF 11262if ac_fn_c_try_link "$LINENO"; then : 11263 ac_cv_e2fsprogs_use_static=yes 11264else 11265 ac_cv_e2fsprogs_use_static=no 11266fi 11267rm -f core conftest.err conftest.$ac_objext \ 11268 conftest$ac_exeext conftest.$ac_ext 11269LDFLAGS=$SAVE_LDFLAGS 11270fi 11271 11272case "$host_os" in 11273solaris2.*) 11274 ac_cv_e2fsprogs_use_static=no 11275;; 11276esac 11277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 11278$as_echo "$ac_cv_e2fsprogs_use_static" >&6; } 11279LDFLAG_STATIC= 11280if test $ac_cv_e2fsprogs_use_static = yes; then 11281 LDFLAG_STATIC=-static 11282fi 11283 11284case "$host_os" in 11285darwin*) 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 11287$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } 11288 11289$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h 11290 11291 ;; 11292esac 11293SS_DIR=`cd ${srcdir}/lib/ss; pwd` 11294ET_DIR=`cd ${srcdir}/lib/et; pwd` 11295 11296 11297if test "$cross_compiling" = yes ; then 11298 DO_TEST_SUITE= 11299else 11300 DO_TEST_SUITE=check 11301fi 11302 11303INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' 11304if test -n "$CPPFLAGS" ; then 11305 INCLUDES="$INCLUDES $CPPFLAGS" 11306fi 11307if test "$USE_INCLUDED_LIBINTL" = "yes" ; then 11308 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' 11309fi 11310 11311if test $cross_compiling = no; then 11312 BUILD_CFLAGS="$CFLAGS $CPPFLAGS" 11313 BUILD_LDFLAGS="$LDFLAGS" 11314else 11315 BUILD_CFLAGS= 11316 BUILD_LDFLAGS= 11317fi 11318 11319 11320test -d lib || mkdir lib 11321test -d include || mkdir include 11322test -d include/linux || mkdir include/linux 11323test -d include/asm || mkdir include/asm 11324for i in MCONFIG Makefile e2fsprogs.spec \ 11325 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ 11326 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ 11327 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ 11328 lib/uuid/Makefile lib/uuid/uuid_types.h \ 11329 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ 11330 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ 11331 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ 11332 misc/Makefile ext2ed/Makefile e2fsck/Makefile \ 11333 debugfs/Makefile tests/Makefile tests/progs/Makefile \ 11334 resize/Makefile doc/Makefile intl/Makefile \ 11335 intl/libgnuintl.h po/Makefile.in ; do 11336 if test -d `dirname ${srcdir}/$i` ; then 11337 outlist="$outlist $i" 11338 fi 11339done 11340ac_config_files="$ac_config_files $outlist" 11341 11342cat >confcache <<\_ACEOF 11343# This file is a shell script that caches the results of configure 11344# tests run on this system so they can be shared between configure 11345# scripts and configure runs, see configure's option --config-cache. 11346# It is not useful on other systems. If it contains results you don't 11347# want to keep, you may remove or edit it. 11348# 11349# config.status only pays attention to the cache file if you give it 11350# the --recheck option to rerun configure. 11351# 11352# `ac_cv_env_foo' variables (set or unset) will be overridden when 11353# loading this file, other *unset* `ac_cv_foo' will be assigned the 11354# following values. 11355 11356_ACEOF 11357 11358# The following way of writing the cache mishandles newlines in values, 11359# but we know of no workaround that is simple, portable, and efficient. 11360# So, we kill variables containing newlines. 11361# Ultrix sh set writes to stderr and can't be redirected directly, 11362# and sets the high bit in the cache file unless we assign to the vars. 11363( 11364 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11365 eval ac_val=\$$ac_var 11366 case $ac_val in #( 11367 *${as_nl}*) 11368 case $ac_var in #( 11369 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11370$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11371 esac 11372 case $ac_var in #( 11373 _ | IFS | as_nl) ;; #( 11374 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11375 *) { eval $ac_var=; unset $ac_var;} ;; 11376 esac ;; 11377 esac 11378 done 11379 11380 (set) 2>&1 | 11381 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11382 *${as_nl}ac_space=\ *) 11383 # `set' does not quote correctly, so add quotes: double-quote 11384 # substitution turns \\\\ into \\, and sed turns \\ into \. 11385 sed -n \ 11386 "s/'/'\\\\''/g; 11387 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11388 ;; #( 11389 *) 11390 # `set' quotes correctly as required by POSIX, so do not add quotes. 11391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11392 ;; 11393 esac | 11394 sort 11395) | 11396 sed ' 11397 /^ac_cv_env_/b end 11398 t clear 11399 :clear 11400 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11401 t end 11402 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11403 :end' >>confcache 11404if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11405 if test -w "$cache_file"; then 11406 test "x$cache_file" != "x/dev/null" && 11407 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11408$as_echo "$as_me: updating cache $cache_file" >&6;} 11409 cat confcache >$cache_file 11410 else 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11412$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11413 fi 11414fi 11415rm -f confcache 11416 11417test "x$prefix" = xNONE && prefix=$ac_default_prefix 11418# Let make expand exec_prefix. 11419test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11420 11421DEFS=-DHAVE_CONFIG_H 11422 11423ac_libobjs= 11424ac_ltlibobjs= 11425for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11426 # 1. Remove the extension, and $U if already installed. 11427 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11428 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11429 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11430 # will be set to the directory where LIBOBJS objects are built. 11431 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11432 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11433done 11434LIBOBJS=$ac_libobjs 11435 11436LTLIBOBJS=$ac_ltlibobjs 11437 11438 11439 11440 11441: ${CONFIG_STATUS=./config.status} 11442ac_write_fail=0 11443ac_clean_files_save=$ac_clean_files 11444ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11445{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11446$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11447as_write_fail=0 11448cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11449#! $SHELL 11450# Generated by $as_me. 11451# Run this file to recreate the current configuration. 11452# Compiler output produced by configure, useful for debugging 11453# configure, is in config.log if it exists. 11454 11455debug=false 11456ac_cs_recheck=false 11457ac_cs_silent=false 11458 11459SHELL=\${CONFIG_SHELL-$SHELL} 11460export SHELL 11461_ASEOF 11462cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11463## -------------------- ## 11464## M4sh Initialization. ## 11465## -------------------- ## 11466 11467# Be more Bourne compatible 11468DUALCASE=1; export DUALCASE # for MKS sh 11469if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11470 emulate sh 11471 NULLCMD=: 11472 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11473 # is contrary to our usage. Disable this feature. 11474 alias -g '${1+"$@"}'='"$@"' 11475 setopt NO_GLOB_SUBST 11476else 11477 case `(set -o) 2>/dev/null` in #( 11478 *posix*) : 11479 set -o posix ;; #( 11480 *) : 11481 ;; 11482esac 11483fi 11484 11485 11486as_nl=' 11487' 11488export as_nl 11489# Printing a long string crashes Solaris 7 /usr/bin/printf. 11490as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11491as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11492as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11493# Prefer a ksh shell builtin over an external printf program on Solaris, 11494# but without wasting forks for bash or zsh. 11495if test -z "$BASH_VERSION$ZSH_VERSION" \ 11496 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11497 as_echo='print -r --' 11498 as_echo_n='print -rn --' 11499elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11500 as_echo='printf %s\n' 11501 as_echo_n='printf %s' 11502else 11503 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11504 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11505 as_echo_n='/usr/ucb/echo -n' 11506 else 11507 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11508 as_echo_n_body='eval 11509 arg=$1; 11510 case $arg in #( 11511 *"$as_nl"*) 11512 expr "X$arg" : "X\\(.*\\)$as_nl"; 11513 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11514 esac; 11515 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11516 ' 11517 export as_echo_n_body 11518 as_echo_n='sh -c $as_echo_n_body as_echo' 11519 fi 11520 export as_echo_body 11521 as_echo='sh -c $as_echo_body as_echo' 11522fi 11523 11524# The user is always right. 11525if test "${PATH_SEPARATOR+set}" != set; then 11526 PATH_SEPARATOR=: 11527 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11528 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11529 PATH_SEPARATOR=';' 11530 } 11531fi 11532 11533 11534# IFS 11535# We need space, tab and new line, in precisely that order. Quoting is 11536# there to prevent editors from complaining about space-tab. 11537# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11538# splitting by setting IFS to empty value.) 11539IFS=" "" $as_nl" 11540 11541# Find who we are. Look in the path if we contain no directory separator. 11542case $0 in #(( 11543 *[\\/]* ) as_myself=$0 ;; 11544 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11545for as_dir in $PATH 11546do 11547 IFS=$as_save_IFS 11548 test -z "$as_dir" && as_dir=. 11549 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11550 done 11551IFS=$as_save_IFS 11552 11553 ;; 11554esac 11555# We did not find ourselves, most probably we were run as `sh COMMAND' 11556# in which case we are not to be found in the path. 11557if test "x$as_myself" = x; then 11558 as_myself=$0 11559fi 11560if test ! -f "$as_myself"; then 11561 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11562 exit 1 11563fi 11564 11565# Unset variables that we do not need and which cause bugs (e.g. in 11566# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11567# suppresses any "Segmentation fault" message there. '((' could 11568# trigger a bug in pdksh 5.2.14. 11569for as_var in BASH_ENV ENV MAIL MAILPATH 11570do eval test x\${$as_var+set} = xset \ 11571 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11572done 11573PS1='$ ' 11574PS2='> ' 11575PS4='+ ' 11576 11577# NLS nuisances. 11578LC_ALL=C 11579export LC_ALL 11580LANGUAGE=C 11581export LANGUAGE 11582 11583# CDPATH. 11584(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11585 11586 11587# as_fn_error ERROR [LINENO LOG_FD] 11588# --------------------------------- 11589# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11590# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11591# script with status $?, using 1 if that was 0. 11592as_fn_error () 11593{ 11594 as_status=$?; test $as_status -eq 0 && as_status=1 11595 if test "$3"; then 11596 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11597 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 11598 fi 11599 $as_echo "$as_me: error: $1" >&2 11600 as_fn_exit $as_status 11601} # as_fn_error 11602 11603 11604# as_fn_set_status STATUS 11605# ----------------------- 11606# Set $? to STATUS, without forking. 11607as_fn_set_status () 11608{ 11609 return $1 11610} # as_fn_set_status 11611 11612# as_fn_exit STATUS 11613# ----------------- 11614# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11615as_fn_exit () 11616{ 11617 set +e 11618 as_fn_set_status $1 11619 exit $1 11620} # as_fn_exit 11621 11622# as_fn_unset VAR 11623# --------------- 11624# Portably unset VAR. 11625as_fn_unset () 11626{ 11627 { eval $1=; unset $1;} 11628} 11629as_unset=as_fn_unset 11630# as_fn_append VAR VALUE 11631# ---------------------- 11632# Append the text in VALUE to the end of the definition contained in VAR. Take 11633# advantage of any shell optimizations that allow amortized linear growth over 11634# repeated appends, instead of the typical quadratic growth present in naive 11635# implementations. 11636if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11637 eval 'as_fn_append () 11638 { 11639 eval $1+=\$2 11640 }' 11641else 11642 as_fn_append () 11643 { 11644 eval $1=\$$1\$2 11645 } 11646fi # as_fn_append 11647 11648# as_fn_arith ARG... 11649# ------------------ 11650# Perform arithmetic evaluation on the ARGs, and store the result in the 11651# global $as_val. Take advantage of shells that can avoid forks. The arguments 11652# must be portable across $(()) and expr. 11653if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11654 eval 'as_fn_arith () 11655 { 11656 as_val=$(( $* )) 11657 }' 11658else 11659 as_fn_arith () 11660 { 11661 as_val=`expr "$@" || test $? -eq 1` 11662 } 11663fi # as_fn_arith 11664 11665 11666if expr a : '\(a\)' >/dev/null 2>&1 && 11667 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11668 as_expr=expr 11669else 11670 as_expr=false 11671fi 11672 11673if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11674 as_basename=basename 11675else 11676 as_basename=false 11677fi 11678 11679if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11680 as_dirname=dirname 11681else 11682 as_dirname=false 11683fi 11684 11685as_me=`$as_basename -- "$0" || 11686$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11687 X"$0" : 'X\(//\)$' \| \ 11688 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11689$as_echo X/"$0" | 11690 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11691 s//\1/ 11692 q 11693 } 11694 /^X\/\(\/\/\)$/{ 11695 s//\1/ 11696 q 11697 } 11698 /^X\/\(\/\).*/{ 11699 s//\1/ 11700 q 11701 } 11702 s/.*/./; q'` 11703 11704# Avoid depending upon Character Ranges. 11705as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11706as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11707as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11708as_cr_digits='0123456789' 11709as_cr_alnum=$as_cr_Letters$as_cr_digits 11710 11711ECHO_C= ECHO_N= ECHO_T= 11712case `echo -n x` in #((((( 11713-n*) 11714 case `echo 'xy\c'` in 11715 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11716 xy) ECHO_C='\c';; 11717 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11718 ECHO_T=' ';; 11719 esac;; 11720*) 11721 ECHO_N='-n';; 11722esac 11723 11724rm -f conf$$ conf$$.exe conf$$.file 11725if test -d conf$$.dir; then 11726 rm -f conf$$.dir/conf$$.file 11727else 11728 rm -f conf$$.dir 11729 mkdir conf$$.dir 2>/dev/null 11730fi 11731if (echo >conf$$.file) 2>/dev/null; then 11732 if ln -s conf$$.file conf$$ 2>/dev/null; then 11733 as_ln_s='ln -s' 11734 # ... but there are two gotchas: 11735 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11736 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11737 # In both cases, we have to default to `cp -p'. 11738 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11739 as_ln_s='cp -p' 11740 elif ln conf$$.file conf$$ 2>/dev/null; then 11741 as_ln_s=ln 11742 else 11743 as_ln_s='cp -p' 11744 fi 11745else 11746 as_ln_s='cp -p' 11747fi 11748rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11749rmdir conf$$.dir 2>/dev/null 11750 11751 11752# as_fn_mkdir_p 11753# ------------- 11754# Create "$as_dir" as a directory, including parents if necessary. 11755as_fn_mkdir_p () 11756{ 11757 11758 case $as_dir in #( 11759 -*) as_dir=./$as_dir;; 11760 esac 11761 test -d "$as_dir" || eval $as_mkdir_p || { 11762 as_dirs= 11763 while :; do 11764 case $as_dir in #( 11765 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11766 *) as_qdir=$as_dir;; 11767 esac 11768 as_dirs="'$as_qdir' $as_dirs" 11769 as_dir=`$as_dirname -- "$as_dir" || 11770$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11771 X"$as_dir" : 'X\(//\)[^/]' \| \ 11772 X"$as_dir" : 'X\(//\)$' \| \ 11773 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11774$as_echo X"$as_dir" | 11775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11776 s//\1/ 11777 q 11778 } 11779 /^X\(\/\/\)[^/].*/{ 11780 s//\1/ 11781 q 11782 } 11783 /^X\(\/\/\)$/{ 11784 s//\1/ 11785 q 11786 } 11787 /^X\(\/\).*/{ 11788 s//\1/ 11789 q 11790 } 11791 s/.*/./; q'` 11792 test -d "$as_dir" && break 11793 done 11794 test -z "$as_dirs" || eval "mkdir $as_dirs" 11795 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 11796 11797 11798} # as_fn_mkdir_p 11799if mkdir -p . 2>/dev/null; then 11800 as_mkdir_p='mkdir -p "$as_dir"' 11801else 11802 test -d ./-p && rmdir ./-p 11803 as_mkdir_p=false 11804fi 11805 11806if test -x / >/dev/null 2>&1; then 11807 as_test_x='test -x' 11808else 11809 if ls -dL / >/dev/null 2>&1; then 11810 as_ls_L_option=L 11811 else 11812 as_ls_L_option= 11813 fi 11814 as_test_x=' 11815 eval sh -c '\'' 11816 if test -d "$1"; then 11817 test -d "$1/."; 11818 else 11819 case $1 in #( 11820 -*)set "./$1";; 11821 esac; 11822 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11823 ???[sx]*):;;*)false;;esac;fi 11824 '\'' sh 11825 ' 11826fi 11827as_executable_p=$as_test_x 11828 11829# Sed expression to map a string onto a valid CPP name. 11830as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11831 11832# Sed expression to map a string onto a valid variable name. 11833as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11834 11835 11836exec 6>&1 11837## ----------------------------------- ## 11838## Main body of $CONFIG_STATUS script. ## 11839## ----------------------------------- ## 11840_ASEOF 11841test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11842 11843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11844# Save the log message, to keep $0 and so on meaningful, and to 11845# report actual input values of CONFIG_FILES etc. instead of their 11846# values after options handling. 11847ac_log=" 11848This file was extended by $as_me, which was 11849generated by GNU Autoconf 2.65. Invocation command line was 11850 11851 CONFIG_FILES = $CONFIG_FILES 11852 CONFIG_HEADERS = $CONFIG_HEADERS 11853 CONFIG_LINKS = $CONFIG_LINKS 11854 CONFIG_COMMANDS = $CONFIG_COMMANDS 11855 $ $0 $@ 11856 11857on `(hostname || uname -n) 2>/dev/null | sed 1q` 11858" 11859 11860_ACEOF 11861 11862case $ac_config_files in *" 11863"*) set x $ac_config_files; shift; ac_config_files=$*;; 11864esac 11865 11866case $ac_config_headers in *" 11867"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11868esac 11869 11870 11871cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11872# Files that config.status was made for. 11873config_files="$ac_config_files" 11874config_headers="$ac_config_headers" 11875config_commands="$ac_config_commands" 11876 11877_ACEOF 11878 11879cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11880ac_cs_usage="\ 11881\`$as_me' instantiates files and other configuration actions 11882from templates according to the current configuration. Unless the files 11883and actions are specified as TAGs, all are instantiated by default. 11884 11885Usage: $0 [OPTION]... [TAG]... 11886 11887 -h, --help print this help, then exit 11888 -V, --version print version number and configuration settings, then exit 11889 --config print configuration, then exit 11890 -q, --quiet, --silent 11891 do not print progress messages 11892 -d, --debug don't remove temporary files 11893 --recheck update $as_me by reconfiguring in the same conditions 11894 --file=FILE[:TEMPLATE] 11895 instantiate the configuration file FILE 11896 --header=FILE[:TEMPLATE] 11897 instantiate the configuration header FILE 11898 11899Configuration files: 11900$config_files 11901 11902Configuration headers: 11903$config_headers 11904 11905Configuration commands: 11906$config_commands 11907 11908Report bugs to the package provider." 11909 11910_ACEOF 11911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11912ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11913ac_cs_version="\\ 11914config.status 11915configured by $0, generated by GNU Autoconf 2.65, 11916 with options \\"\$ac_cs_config\\" 11917 11918Copyright (C) 2009 Free Software Foundation, Inc. 11919This config.status script is free software; the Free Software Foundation 11920gives unlimited permission to copy, distribute and modify it." 11921 11922ac_pwd='$ac_pwd' 11923srcdir='$srcdir' 11924INSTALL='$INSTALL' 11925AWK='$AWK' 11926test -n "\$AWK" || AWK=awk 11927_ACEOF 11928 11929cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11930# The default lists apply if the user does not specify any file. 11931ac_need_defaults=: 11932while test $# != 0 11933do 11934 case $1 in 11935 --*=*) 11936 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11937 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11938 ac_shift=: 11939 ;; 11940 *) 11941 ac_option=$1 11942 ac_optarg=$2 11943 ac_shift=shift 11944 ;; 11945 esac 11946 11947 case $ac_option in 11948 # Handling of the options. 11949 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11950 ac_cs_recheck=: ;; 11951 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11952 $as_echo "$ac_cs_version"; exit ;; 11953 --config | --confi | --conf | --con | --co | --c ) 11954 $as_echo "$ac_cs_config"; exit ;; 11955 --debug | --debu | --deb | --de | --d | -d ) 11956 debug=: ;; 11957 --file | --fil | --fi | --f ) 11958 $ac_shift 11959 case $ac_optarg in 11960 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11961 esac 11962 as_fn_append CONFIG_FILES " '$ac_optarg'" 11963 ac_need_defaults=false;; 11964 --header | --heade | --head | --hea ) 11965 $ac_shift 11966 case $ac_optarg in 11967 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11968 esac 11969 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11970 ac_need_defaults=false;; 11971 --he | --h) 11972 # Conflict between --help and --header 11973 as_fn_error "ambiguous option: \`$1' 11974Try \`$0 --help' for more information.";; 11975 --help | --hel | -h ) 11976 $as_echo "$ac_cs_usage"; exit ;; 11977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11978 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11979 ac_cs_silent=: ;; 11980 11981 # This is an error. 11982 -*) as_fn_error "unrecognized option: \`$1' 11983Try \`$0 --help' for more information." ;; 11984 11985 *) as_fn_append ac_config_targets " $1" 11986 ac_need_defaults=false ;; 11987 11988 esac 11989 shift 11990done 11991 11992ac_configure_extra_args= 11993 11994if $ac_cs_silent; then 11995 exec 6>/dev/null 11996 ac_configure_extra_args="$ac_configure_extra_args --silent" 11997fi 11998 11999_ACEOF 12000cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12001if \$ac_cs_recheck; then 12002 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12003 shift 12004 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12005 CONFIG_SHELL='$SHELL' 12006 export CONFIG_SHELL 12007 exec "\$@" 12008fi 12009 12010_ACEOF 12011cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12012exec 5>>config.log 12013{ 12014 echo 12015 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12016## Running $as_me. ## 12017_ASBOX 12018 $as_echo "$ac_log" 12019} >&5 12020 12021_ACEOF 12022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12023# 12024# INIT-COMMANDS 12025# 12026# Capture the value of obsolete ALL_LINGUAS because we need it to compute 12027 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 12028 # from automake. 12029 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 12030 # Capture the value of LINGUAS because we need it to compute CATALOGS. 12031 LINGUAS="${LINGUAS-%UNSET%}" 12032 12033 12034_ACEOF 12035 12036cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12037 12038# Handling of arguments. 12039for ac_config_target in $ac_config_targets 12040do 12041 case $ac_config_target in 12042 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; 12043 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12044 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; 12045 12046 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12047 esac 12048done 12049 12050 12051# If the user did not use the arguments to specify the items to instantiate, 12052# then the envvar interface is used. Set only those that are not. 12053# We use the long form for the default assignment because of an extremely 12054# bizarre bug on SunOS 4.1.3. 12055if $ac_need_defaults; then 12056 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12057 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12058 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12059fi 12060 12061# Have a temporary directory for convenience. Make it in the build tree 12062# simply because there is no reason against having it here, and in addition, 12063# creating and moving files from /tmp can sometimes cause problems. 12064# Hook for its removal unless debugging. 12065# Note that there is a small window in which the directory will not be cleaned: 12066# after its creation but before its name has been assigned to `$tmp'. 12067$debug || 12068{ 12069 tmp= 12070 trap 'exit_status=$? 12071 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12072' 0 12073 trap 'as_fn_exit 1' 1 2 13 15 12074} 12075# Create a (secure) tmp directory for tmp files. 12076 12077{ 12078 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12079 test -n "$tmp" && test -d "$tmp" 12080} || 12081{ 12082 tmp=./conf$$-$RANDOM 12083 (umask 077 && mkdir "$tmp") 12084} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12085 12086# Set up the scripts for CONFIG_FILES section. 12087# No need to generate them if there are no CONFIG_FILES. 12088# This happens for instance with `./config.status config.h'. 12089if test -n "$CONFIG_FILES"; then 12090 12091if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 12092 ac_cs_awk_getline=: 12093 ac_cs_awk_pipe_init= 12094 ac_cs_awk_read_file=' 12095 while ((getline aline < (F[key])) > 0) 12096 print(aline) 12097 close(F[key])' 12098 ac_cs_awk_pipe_fini= 12099else 12100 ac_cs_awk_getline=false 12101 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 12102 ac_cs_awk_read_file=' 12103 print "|#_!!_#|" 12104 print "cat " F[key] " &&" 12105 '$ac_cs_awk_pipe_init 12106 # The final `:' finishes the AND list. 12107 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 12108fi 12109ac_cr=`echo X | tr X '\015'` 12110# On cygwin, bash can eat \r inside `` if the user requested igncr. 12111# But we know of no other shell where ac_cr would be empty at this 12112# point, so we can use a bashism as a fallback. 12113if test "x$ac_cr" = x; then 12114 eval ac_cr=\$\'\\r\' 12115fi 12116ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12117if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12118 ac_cs_awk_cr='\r' 12119else 12120 ac_cs_awk_cr=$ac_cr 12121fi 12122 12123echo 'BEGIN {' >"$tmp/subs1.awk" && 12124_ACEOF 12125 12126# Create commands to substitute file output variables. 12127{ 12128 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 12129 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && 12130 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 12131 echo "_ACAWK" && 12132 echo "_ACEOF" 12133} >conf$$files.sh && 12134. ./conf$$files.sh || 12135 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12136rm -f conf$$files.sh 12137 12138{ 12139 echo "cat >conf$$subs.awk <<_ACEOF" && 12140 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12141 echo "_ACEOF" 12142} >conf$$subs.sh || 12143 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12144ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12145ac_delim='%!_!# ' 12146for ac_last_try in false false false false false :; do 12147 . ./conf$$subs.sh || 12148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12149 12150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12151 if test $ac_delim_n = $ac_delim_num; then 12152 break 12153 elif $ac_last_try; then 12154 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12155 else 12156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12157 fi 12158done 12159rm -f conf$$subs.sh 12160 12161cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12162cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12163_ACEOF 12164sed -n ' 12165h 12166s/^/S["/; s/!.*/"]=/ 12167p 12168g 12169s/^[^!]*!// 12170:repl 12171t repl 12172s/'"$ac_delim"'$// 12173t delim 12174:nl 12175h 12176s/\(.\{148\}\)..*/\1/ 12177t more1 12178s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12179p 12180n 12181b repl 12182:more1 12183s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12184p 12185g 12186s/.\{148\}// 12187t nl 12188:delim 12189h 12190s/\(.\{148\}\)..*/\1/ 12191t more2 12192s/["\\]/\\&/g; s/^/"/; s/$/"/ 12193p 12194b 12195:more2 12196s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12197p 12198g 12199s/.\{148\}// 12200t delim 12201' <conf$$subs.awk | sed ' 12202/^[^""]/{ 12203 N 12204 s/\n// 12205} 12206' >>$CONFIG_STATUS || ac_write_fail=1 12207rm -f conf$$subs.awk 12208cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12209_ACAWK 12210cat >>"\$tmp/subs1.awk" <<_ACAWK && 12211 for (key in S) S_is_set[key] = 1 12212 FS = "" 12213 \$ac_cs_awk_pipe_init 12214} 12215{ 12216 line = $ 0 12217 nfields = split(line, field, "@") 12218 substed = 0 12219 len = length(field[1]) 12220 for (i = 2; i < nfields; i++) { 12221 key = field[i] 12222 keylen = length(key) 12223 if (S_is_set[key]) { 12224 value = S[key] 12225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12226 len += length(value) + length(field[++i]) 12227 substed = 1 12228 } else 12229 len += 1 + keylen 12230 } 12231 if (nfields == 3 && !substed) { 12232 key = field[2] 12233 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 12234 \$ac_cs_awk_read_file 12235 next 12236 } 12237 } 12238 print line 12239} 12240\$ac_cs_awk_pipe_fini 12241_ACAWK 12242_ACEOF 12243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12244if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12245 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12246else 12247 cat 12248fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12249 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12250_ACEOF 12251 12252# VPATH may cause trouble with some makes, so we remove $(srcdir), 12253# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12254# trailing colons and then remove the whole line if VPATH becomes empty 12255# (actually we leave an empty line to preserve line numbers). 12256if test "x$srcdir" = x.; then 12257 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12258s/:*\$(srcdir):*/:/ 12259s/:*\${srcdir}:*/:/ 12260s/:*@srcdir@:*/:/ 12261s/^\([^=]*=[ ]*\):*/\1/ 12262s/:*$// 12263s/^[^=]*=[ ]*$// 12264}' 12265fi 12266 12267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12268fi # test -n "$CONFIG_FILES" 12269 12270# Set up the scripts for CONFIG_HEADERS section. 12271# No need to generate them if there are no CONFIG_HEADERS. 12272# This happens for instance with `./config.status Makefile'. 12273if test -n "$CONFIG_HEADERS"; then 12274cat >"$tmp/defines.awk" <<\_ACAWK || 12275BEGIN { 12276_ACEOF 12277 12278# Transform confdefs.h into an awk script `defines.awk', embedded as 12279# here-document in config.status, that substitutes the proper values into 12280# config.h.in to produce config.h. 12281 12282# Create a delimiter string that does not exist in confdefs.h, to ease 12283# handling of long lines. 12284ac_delim='%!_!# ' 12285for ac_last_try in false false :; do 12286 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12287 if test -z "$ac_t"; then 12288 break 12289 elif $ac_last_try; then 12290 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 12291 else 12292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12293 fi 12294done 12295 12296# For the awk script, D is an array of macro values keyed by name, 12297# likewise P contains macro parameters if any. Preserve backslash 12298# newline sequences. 12299 12300ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12301sed -n ' 12302s/.\{148\}/&'"$ac_delim"'/g 12303t rset 12304:rset 12305s/^[ ]*#[ ]*define[ ][ ]*/ / 12306t def 12307d 12308:def 12309s/\\$// 12310t bsnl 12311s/["\\]/\\&/g 12312s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12313D["\1"]=" \3"/p 12314s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12315d 12316:bsnl 12317s/["\\]/\\&/g 12318s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12319D["\1"]=" \3\\\\\\n"\\/p 12320t cont 12321s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12322t cont 12323d 12324:cont 12325n 12326s/.\{148\}/&'"$ac_delim"'/g 12327t clear 12328:clear 12329s/\\$// 12330t bsnlc 12331s/["\\]/\\&/g; s/^/"/; s/$/"/p 12332d 12333:bsnlc 12334s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12335b cont 12336' <confdefs.h | sed ' 12337s/'"$ac_delim"'/"\\\ 12338"/g' >>$CONFIG_STATUS || ac_write_fail=1 12339 12340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12341 for (key in D) D_is_set[key] = 1 12342 FS = "" 12343} 12344/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12345 line = \$ 0 12346 split(line, arg, " ") 12347 if (arg[1] == "#") { 12348 defundef = arg[2] 12349 mac1 = arg[3] 12350 } else { 12351 defundef = substr(arg[1], 2) 12352 mac1 = arg[2] 12353 } 12354 split(mac1, mac2, "(") #) 12355 macro = mac2[1] 12356 prefix = substr(line, 1, index(line, defundef) - 1) 12357 if (D_is_set[macro]) { 12358 # Preserve the white space surrounding the "#". 12359 print prefix "define", macro P[macro] D[macro] 12360 next 12361 } else { 12362 # Replace #undef with comments. This is necessary, for example, 12363 # in the case of _POSIX_SOURCE, which is predefined and required 12364 # on some systems where configure will not decide to define it. 12365 if (defundef == "undef") { 12366 print "/*", prefix defundef, macro, "*/" 12367 next 12368 } 12369 } 12370} 12371{ print } 12372_ACAWK 12373_ACEOF 12374cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12375 as_fn_error "could not setup config headers machinery" "$LINENO" 5 12376fi # test -n "$CONFIG_HEADERS" 12377 12378 12379eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12380shift 12381for ac_tag 12382do 12383 case $ac_tag in 12384 :[FHLC]) ac_mode=$ac_tag; continue;; 12385 esac 12386 case $ac_mode$ac_tag in 12387 :[FHL]*:*);; 12388 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12389 :[FH]-) ac_tag=-:-;; 12390 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12391 esac 12392 ac_save_IFS=$IFS 12393 IFS=: 12394 set x $ac_tag 12395 IFS=$ac_save_IFS 12396 shift 12397 ac_file=$1 12398 shift 12399 12400 case $ac_mode in 12401 :L) ac_source=$1;; 12402 :[FH]) 12403 ac_file_inputs= 12404 for ac_f 12405 do 12406 case $ac_f in 12407 -) ac_f="$tmp/stdin";; 12408 *) # Look for the file first in the build tree, then in the source tree 12409 # (if the path is not absolute). The absolute path cannot be DOS-style, 12410 # because $ac_f cannot contain `:'. 12411 test -f "$ac_f" || 12412 case $ac_f in 12413 [\\/$]*) false;; 12414 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12415 esac || 12416 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12417 esac 12418 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12419 as_fn_append ac_file_inputs " '$ac_f'" 12420 done 12421 12422 # Let's still pretend it is `configure' which instantiates (i.e., don't 12423 # use $as_me), people would be surprised to read: 12424 # /* config.h. Generated by config.status. */ 12425 configure_input='Generated from '` 12426 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12427 `' by configure.' 12428 if test x"$ac_file" != x-; then 12429 configure_input="$ac_file. $configure_input" 12430 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12431$as_echo "$as_me: creating $ac_file" >&6;} 12432 fi 12433 # Neutralize special characters interpreted by sed in replacement strings. 12434 case $configure_input in #( 12435 *\&* | *\|* | *\\* ) 12436 ac_sed_conf_input=`$as_echo "$configure_input" | 12437 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12438 *) ac_sed_conf_input=$configure_input;; 12439 esac 12440 12441 case $ac_tag in 12442 *:-:* | *:-) cat >"$tmp/stdin" \ 12443 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12444 esac 12445 ;; 12446 esac 12447 12448 ac_dir=`$as_dirname -- "$ac_file" || 12449$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12450 X"$ac_file" : 'X\(//\)[^/]' \| \ 12451 X"$ac_file" : 'X\(//\)$' \| \ 12452 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12453$as_echo X"$ac_file" | 12454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12455 s//\1/ 12456 q 12457 } 12458 /^X\(\/\/\)[^/].*/{ 12459 s//\1/ 12460 q 12461 } 12462 /^X\(\/\/\)$/{ 12463 s//\1/ 12464 q 12465 } 12466 /^X\(\/\).*/{ 12467 s//\1/ 12468 q 12469 } 12470 s/.*/./; q'` 12471 as_dir="$ac_dir"; as_fn_mkdir_p 12472 ac_builddir=. 12473 12474case "$ac_dir" in 12475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12476*) 12477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12478 # A ".." for each directory in $ac_dir_suffix. 12479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12480 case $ac_top_builddir_sub in 12481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12483 esac ;; 12484esac 12485ac_abs_top_builddir=$ac_pwd 12486ac_abs_builddir=$ac_pwd$ac_dir_suffix 12487# for backward compatibility: 12488ac_top_builddir=$ac_top_build_prefix 12489 12490case $srcdir in 12491 .) # We are building in place. 12492 ac_srcdir=. 12493 ac_top_srcdir=$ac_top_builddir_sub 12494 ac_abs_top_srcdir=$ac_pwd ;; 12495 [\\/]* | ?:[\\/]* ) # Absolute name. 12496 ac_srcdir=$srcdir$ac_dir_suffix; 12497 ac_top_srcdir=$srcdir 12498 ac_abs_top_srcdir=$srcdir ;; 12499 *) # Relative name. 12500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12501 ac_top_srcdir=$ac_top_build_prefix$srcdir 12502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12503esac 12504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12505 12506 12507 case $ac_mode in 12508 :F) 12509 # 12510 # CONFIG_FILE 12511 # 12512 12513 case $INSTALL in 12514 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12515 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12516 esac 12517_ACEOF 12518 12519cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12520# If the template does not know about datarootdir, expand it. 12521# FIXME: This hack should be removed a few years after 2.60. 12522ac_datarootdir_hack=; ac_datarootdir_seen= 12523ac_sed_dataroot=' 12524/datarootdir/ { 12525 p 12526 q 12527} 12528/@datadir@/p 12529/@docdir@/p 12530/@infodir@/p 12531/@localedir@/p 12532/@mandir@/p' 12533case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12534*datarootdir*) ac_datarootdir_seen=yes;; 12535*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12537$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12538_ACEOF 12539cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12540 ac_datarootdir_hack=' 12541 s&@datadir@&$datadir&g 12542 s&@docdir@&$docdir&g 12543 s&@infodir@&$infodir&g 12544 s&@localedir@&$localedir&g 12545 s&@mandir@&$mandir&g 12546 s&\\\${datarootdir}&$datarootdir&g' ;; 12547esac 12548_ACEOF 12549 12550# Neutralize VPATH when `$srcdir' = `.'. 12551# Shell code in configure.ac might set extrasub. 12552# FIXME: do we really want to maintain this feature? 12553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12554ac_sed_extra="$ac_vpsub 12555$extrasub 12556_ACEOF 12557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12558:t 12559/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12560s|@configure_input@|$ac_sed_conf_input|;t t 12561s&@top_builddir@&$ac_top_builddir_sub&;t t 12562s&@top_build_prefix@&$ac_top_build_prefix&;t t 12563s&@srcdir@&$ac_srcdir&;t t 12564s&@abs_srcdir@&$ac_abs_srcdir&;t t 12565s&@top_srcdir@&$ac_top_srcdir&;t t 12566s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12567s&@builddir@&$ac_builddir&;t t 12568s&@abs_builddir@&$ac_abs_builddir&;t t 12569s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12570s&@INSTALL@&$ac_INSTALL&;t t 12571$ac_datarootdir_hack 12572" 12573eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 12574if $ac_cs_awk_getline; then 12575 $AWK -f "$tmp/subs.awk" 12576else 12577 $AWK -f "$tmp/subs.awk" | $SHELL 12578fi >$tmp/out \ 12579 || as_fn_error "could not create $ac_file" "$LINENO" 5 12580 12581test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12582 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12583 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12585which seems to be undefined. Please make sure it is defined." >&5 12586$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12587which seems to be undefined. Please make sure it is defined." >&2;} 12588 12589 rm -f "$tmp/stdin" 12590 case $ac_file in 12591 -) cat "$tmp/out" && rm -f "$tmp/out";; 12592 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12593 esac \ 12594 || as_fn_error "could not create $ac_file" "$LINENO" 5 12595 ;; 12596 :H) 12597 # 12598 # CONFIG_HEADER 12599 # 12600 if test x"$ac_file" != x-; then 12601 { 12602 $as_echo "/* $configure_input */" \ 12603 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 12604 } >"$tmp/config.h" \ 12605 || as_fn_error "could not create $ac_file" "$LINENO" 5 12606 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12608$as_echo "$as_me: $ac_file is unchanged" >&6;} 12609 else 12610 rm -f "$ac_file" 12611 mv "$tmp/config.h" "$ac_file" \ 12612 || as_fn_error "could not create $ac_file" "$LINENO" 5 12613 fi 12614 else 12615 $as_echo "/* $configure_input */" \ 12616 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 12617 || as_fn_error "could not create -" "$LINENO" 5 12618 fi 12619 ;; 12620 12621 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12622$as_echo "$as_me: executing $ac_file commands" >&6;} 12623 ;; 12624 esac 12625 12626 12627 case $ac_file$ac_mode in 12628 "default-1":C) 12629 for ac_file in $CONFIG_FILES; do 12630 # Support "outfile[:infile[:infile...]]" 12631 case "$ac_file" in 12632 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 12633 esac 12634 # PO directories have a Makefile.in generated from Makefile.in.in. 12635 case "$ac_file" in */Makefile.in) 12636 # Adjust a relative srcdir. 12637 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 12638 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 12639 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 12640 # In autoconf-2.13 it is called $ac_given_srcdir. 12641 # In autoconf-2.50 it is called $srcdir. 12642 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 12643 case "$ac_given_srcdir" in 12644 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 12645 /*) top_srcdir="$ac_given_srcdir" ;; 12646 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 12647 esac 12648 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 12649 rm -f "$ac_dir/POTFILES" 12650 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 12651 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 12652 POMAKEFILEDEPS="POTFILES.in" 12653 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 12654 # on $ac_dir but don't depend on user-specified configuration 12655 # parameters. 12656 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 12657 # The LINGUAS file contains the set of available languages. 12658 if test -n "$OBSOLETE_ALL_LINGUAS"; then 12659 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 12660 fi 12661 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 12662 # Hide the ALL_LINGUAS assigment from automake. 12663 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 12664 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 12665 else 12666 # The set of available languages was given in configure.in. 12667 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 12668 fi 12669 # Compute POFILES 12670 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 12671 # Compute UPDATEPOFILES 12672 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 12673 # Compute DUMMYPOFILES 12674 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 12675 # Compute GMOFILES 12676 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 12677 case "$ac_given_srcdir" in 12678 .) srcdirpre= ;; 12679 *) srcdirpre='$(srcdir)/' ;; 12680 esac 12681 POFILES= 12682 UPDATEPOFILES= 12683 DUMMYPOFILES= 12684 GMOFILES= 12685 for lang in $ALL_LINGUAS; do 12686 POFILES="$POFILES $srcdirpre$lang.po" 12687 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 12688 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 12689 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 12690 done 12691 # CATALOGS depends on both $ac_dir and the user's LINGUAS 12692 # environment variable. 12693 INST_LINGUAS= 12694 if test -n "$ALL_LINGUAS"; then 12695 for presentlang in $ALL_LINGUAS; do 12696 useit=no 12697 if test "%UNSET%" != "$LINGUAS"; then 12698 desiredlanguages="$LINGUAS" 12699 else 12700 desiredlanguages="$ALL_LINGUAS" 12701 fi 12702 for desiredlang in $desiredlanguages; do 12703 # Use the presentlang catalog if desiredlang is 12704 # a. equal to presentlang, or 12705 # b. a variant of presentlang (because in this case, 12706 # presentlang can be used as a fallback for messages 12707 # which are not translated in the desiredlang catalog). 12708 case "$desiredlang" in 12709 "$presentlang"*) useit=yes;; 12710 esac 12711 done 12712 if test $useit = yes; then 12713 INST_LINGUAS="$INST_LINGUAS $presentlang" 12714 fi 12715 done 12716 fi 12717 CATALOGS= 12718 if test -n "$INST_LINGUAS"; then 12719 for lang in $INST_LINGUAS; do 12720 CATALOGS="$CATALOGS $lang.gmo" 12721 done 12722 fi 12723 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 12724 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 12725 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 12726 if test -f "$f"; then 12727 case "$f" in 12728 *.orig | *.bak | *~) ;; 12729 *) cat "$f" >> "$ac_dir/Makefile" ;; 12730 esac 12731 fi 12732 done 12733 fi 12734 ;; 12735 esac 12736 done ;; 12737 12738 esac 12739done # for ac_tag 12740 12741 12742as_fn_exit 0 12743_ACEOF 12744ac_clean_files=$ac_clean_files_save 12745 12746test $ac_write_fail = 0 || 12747 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 12748 12749 12750# configure is writing to config.log, and then calls config.status. 12751# config.status does its own redirection, appending to config.log. 12752# Unfortunately, on DOS this fails, as config.log is still kept open 12753# by configure, so config.status won't be able to write to it; its 12754# output is simply discarded. So we exec the FD to /dev/null, 12755# effectively closing config.log, so it can be properly (re)opened and 12756# appended to by config.status. When coming back to configure, we 12757# need to make the FD available again. 12758if test "$no_create" != yes; then 12759 ac_cs_success=: 12760 ac_config_status_args= 12761 test "$silent" = yes && 12762 ac_config_status_args="$ac_config_status_args --quiet" 12763 exec 5>/dev/null 12764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12765 exec 5>>config.log 12766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12767 # would make configure fail if this is the last instruction. 12768 $ac_cs_success || as_fn_exit $? 12769fi 12770if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12772$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12773fi 12774 12775if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi 12776