configure revision 3b802e43d9276a13cbc75144087cbf017672ca6c
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 716E 717LINK_BUILD_FLAGS 718SYMLINK_RELATIVE 719LINK_INSTALL_FLAGS 720MAINTAINER_CMT 721CPP 722RDYNAMIC 723DLOPEN_LIB 724OBJEXT 725EXEEXT 726ac_ct_CC 727CPPFLAGS 728LDFLAGS 729CFLAGS 730CC 731host_os 732host_vendor 733host_cpu 734host 735build_os 736build_vendor 737build_cpu 738build 739E2FSPROGS_PKGVER 740E2FSPROGS_VERSION 741E2FSPROGS_DAY 742E2FSPROGS_MONTH 743E2FSPROGS_YEAR 744target_alias 745host_alias 746build_alias 747LIBS 748ECHO_T 749ECHO_N 750ECHO_C 751DEFS 752mandir 753localedir 754libdir 755psdir 756pdfdir 757dvidir 758htmldir 759infodir 760docdir 761oldincludedir 762includedir 763localstatedir 764sharedstatedir 765sysconfdir 766datadir 767datarootdir 768libexecdir 769sbindir 770bindir 771program_transform_name 772prefix 773exec_prefix 774PACKAGE_URL 775PACKAGE_BUGREPORT 776PACKAGE_STRING 777PACKAGE_VERSION 778PACKAGE_TARNAME 779PACKAGE_NAME 780PATH_SEPARATOR 781SHELL' 782ac_subst_files='MCONFIG 783MAKEFILE_ELF 784MAKEFILE_BSDLIB 785MAKEFILE_PROFILE 786MAKEFILE_CHECKER 787MAKEFILE_LIBRARY 788ASM_TYPES_HEADER 789PUBLIC_CONFIG_HEADER' 790ac_user_opts=' 791enable_option_checking 792with_diet_libc 793with_cc 794with_ccopts 795with_ldopts 796with_root_prefix 797enable_maintainer_mode 798enable_symlink_install 799enable_symlink_relative_symlinks 800enable_symlink_build 801enable_verbose_makecmds 802enable_compression 803enable_htree 804enable_elf_shlibs 805enable_bsd_shlibs 806enable_profile 807enable_checker 808enable_jbd_debug 809enable_blkid_debug 810enable_testio_debug 811enable_libuuid 812enable_libblkid 813enable_quota 814enable_debugfs 815enable_imager 816enable_resizer 817enable_defrag 818enable_fsck 819enable_e2initrd_helper 820enable_tls 821enable_uuidd 822enable_nls 823with_gnu_ld 824enable_rpath 825with_libiconv_prefix 826with_included_gettext 827with_libintl_prefix 828with_multiarch 829' 830 ac_precious_vars='build_alias 831host_alias 832target_alias 833CC 834CFLAGS 835LDFLAGS 836LIBS 837CPPFLAGS 838CPP 839PKG_CONFIG' 840 841 842# Initialize some variables set by options. 843ac_init_help= 844ac_init_version=false 845ac_unrecognized_opts= 846ac_unrecognized_sep= 847# The variables have the same names as the options, with 848# dashes changed to underlines. 849cache_file=/dev/null 850exec_prefix=NONE 851no_create= 852no_recursion= 853prefix=NONE 854program_prefix=NONE 855program_suffix=NONE 856program_transform_name=s,x,x, 857silent= 858site= 859srcdir= 860verbose= 861x_includes=NONE 862x_libraries=NONE 863 864# Installation directory options. 865# These are left unexpanded so users can "make install exec_prefix=/foo" 866# and all the variables that are supposed to be based on exec_prefix 867# by default will actually change. 868# Use braces instead of parens because sh, perl, etc. also accept them. 869# (The list follows the same order as the GNU Coding Standards.) 870bindir='${exec_prefix}/bin' 871sbindir='${exec_prefix}/sbin' 872libexecdir='${exec_prefix}/libexec' 873datarootdir='${prefix}/share' 874datadir='${datarootdir}' 875sysconfdir='${prefix}/etc' 876sharedstatedir='${prefix}/com' 877localstatedir='${prefix}/var' 878includedir='${prefix}/include' 879oldincludedir='/usr/include' 880docdir='${datarootdir}/doc/${PACKAGE}' 881infodir='${datarootdir}/info' 882htmldir='${docdir}' 883dvidir='${docdir}' 884pdfdir='${docdir}' 885psdir='${docdir}' 886libdir='${exec_prefix}/lib' 887localedir='${datarootdir}/locale' 888mandir='${datarootdir}/man' 889 890ac_prev= 891ac_dashdash= 892for ac_option 893do 894 # If the previous option needs an argument, assign it. 895 if test -n "$ac_prev"; then 896 eval $ac_prev=\$ac_option 897 ac_prev= 898 continue 899 fi 900 901 case $ac_option in 902 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 903 *) ac_optarg=yes ;; 904 esac 905 906 # Accept the important Cygnus configure options, so we can diagnose typos. 907 908 case $ac_dashdash$ac_option in 909 --) 910 ac_dashdash=yes ;; 911 912 -bindir | --bindir | --bindi | --bind | --bin | --bi) 913 ac_prev=bindir ;; 914 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 915 bindir=$ac_optarg ;; 916 917 -build | --build | --buil | --bui | --bu) 918 ac_prev=build_alias ;; 919 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 920 build_alias=$ac_optarg ;; 921 922 -cache-file | --cache-file | --cache-fil | --cache-fi \ 923 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 924 ac_prev=cache_file ;; 925 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 926 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 927 cache_file=$ac_optarg ;; 928 929 --config-cache | -C) 930 cache_file=config.cache ;; 931 932 -datadir | --datadir | --datadi | --datad) 933 ac_prev=datadir ;; 934 -datadir=* | --datadir=* | --datadi=* | --datad=*) 935 datadir=$ac_optarg ;; 936 937 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 938 | --dataroo | --dataro | --datar) 939 ac_prev=datarootdir ;; 940 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 941 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 942 datarootdir=$ac_optarg ;; 943 944 -disable-* | --disable-*) 945 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 946 # Reject names that are not valid shell variable names. 947 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 948 as_fn_error "invalid feature name: $ac_useropt" 949 ac_useropt_orig=$ac_useropt 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 951 case $ac_user_opts in 952 *" 953"enable_$ac_useropt" 954"*) ;; 955 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 956 ac_unrecognized_sep=', ';; 957 esac 958 eval enable_$ac_useropt=no ;; 959 960 -docdir | --docdir | --docdi | --doc | --do) 961 ac_prev=docdir ;; 962 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 963 docdir=$ac_optarg ;; 964 965 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 966 ac_prev=dvidir ;; 967 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 968 dvidir=$ac_optarg ;; 969 970 -enable-* | --enable-*) 971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 972 # Reject names that are not valid shell variable names. 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 974 as_fn_error "invalid feature name: $ac_useropt" 975 ac_useropt_orig=$ac_useropt 976 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 977 case $ac_user_opts in 978 *" 979"enable_$ac_useropt" 980"*) ;; 981 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 982 ac_unrecognized_sep=', ';; 983 esac 984 eval enable_$ac_useropt=\$ac_optarg ;; 985 986 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 987 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 988 | --exec | --exe | --ex) 989 ac_prev=exec_prefix ;; 990 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 991 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 992 | --exec=* | --exe=* | --ex=*) 993 exec_prefix=$ac_optarg ;; 994 995 -gas | --gas | --ga | --g) 996 # Obsolete; use --with-gas. 997 with_gas=yes ;; 998 999 -help | --help | --hel | --he | -h) 1000 ac_init_help=long ;; 1001 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1002 ac_init_help=recursive ;; 1003 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1004 ac_init_help=short ;; 1005 1006 -host | --host | --hos | --ho) 1007 ac_prev=host_alias ;; 1008 -host=* | --host=* | --hos=* | --ho=*) 1009 host_alias=$ac_optarg ;; 1010 1011 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1012 ac_prev=htmldir ;; 1013 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1014 | --ht=*) 1015 htmldir=$ac_optarg ;; 1016 1017 -includedir | --includedir | --includedi | --included | --include \ 1018 | --includ | --inclu | --incl | --inc) 1019 ac_prev=includedir ;; 1020 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1021 | --includ=* | --inclu=* | --incl=* | --inc=*) 1022 includedir=$ac_optarg ;; 1023 1024 -infodir | --infodir | --infodi | --infod | --info | --inf) 1025 ac_prev=infodir ;; 1026 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1027 infodir=$ac_optarg ;; 1028 1029 -libdir | --libdir | --libdi | --libd) 1030 ac_prev=libdir ;; 1031 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1032 libdir=$ac_optarg ;; 1033 1034 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1035 | --libexe | --libex | --libe) 1036 ac_prev=libexecdir ;; 1037 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1038 | --libexe=* | --libex=* | --libe=*) 1039 libexecdir=$ac_optarg ;; 1040 1041 -localedir | --localedir | --localedi | --localed | --locale) 1042 ac_prev=localedir ;; 1043 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1044 localedir=$ac_optarg ;; 1045 1046 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1047 | --localstate | --localstat | --localsta | --localst | --locals) 1048 ac_prev=localstatedir ;; 1049 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1050 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1051 localstatedir=$ac_optarg ;; 1052 1053 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1054 ac_prev=mandir ;; 1055 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1056 mandir=$ac_optarg ;; 1057 1058 -nfp | --nfp | --nf) 1059 # Obsolete; use --without-fp. 1060 with_fp=no ;; 1061 1062 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1063 | --no-cr | --no-c | -n) 1064 no_create=yes ;; 1065 1066 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1067 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1068 no_recursion=yes ;; 1069 1070 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1071 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1072 | --oldin | --oldi | --old | --ol | --o) 1073 ac_prev=oldincludedir ;; 1074 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1075 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1076 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1077 oldincludedir=$ac_optarg ;; 1078 1079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1080 ac_prev=prefix ;; 1081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1082 prefix=$ac_optarg ;; 1083 1084 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1085 | --program-pre | --program-pr | --program-p) 1086 ac_prev=program_prefix ;; 1087 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1088 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1089 program_prefix=$ac_optarg ;; 1090 1091 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1092 | --program-suf | --program-su | --program-s) 1093 ac_prev=program_suffix ;; 1094 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1095 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1096 program_suffix=$ac_optarg ;; 1097 1098 -program-transform-name | --program-transform-name \ 1099 | --program-transform-nam | --program-transform-na \ 1100 | --program-transform-n | --program-transform- \ 1101 | --program-transform | --program-transfor \ 1102 | --program-transfo | --program-transf \ 1103 | --program-trans | --program-tran \ 1104 | --progr-tra | --program-tr | --program-t) 1105 ac_prev=program_transform_name ;; 1106 -program-transform-name=* | --program-transform-name=* \ 1107 | --program-transform-nam=* | --program-transform-na=* \ 1108 | --program-transform-n=* | --program-transform-=* \ 1109 | --program-transform=* | --program-transfor=* \ 1110 | --program-transfo=* | --program-transf=* \ 1111 | --program-trans=* | --program-tran=* \ 1112 | --progr-tra=* | --program-tr=* | --program-t=*) 1113 program_transform_name=$ac_optarg ;; 1114 1115 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1116 ac_prev=pdfdir ;; 1117 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1118 pdfdir=$ac_optarg ;; 1119 1120 -psdir | --psdir | --psdi | --psd | --ps) 1121 ac_prev=psdir ;; 1122 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1123 psdir=$ac_optarg ;; 1124 1125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1126 | -silent | --silent | --silen | --sile | --sil) 1127 silent=yes ;; 1128 1129 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1130 ac_prev=sbindir ;; 1131 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1132 | --sbi=* | --sb=*) 1133 sbindir=$ac_optarg ;; 1134 1135 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1136 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1137 | --sharedst | --shareds | --shared | --share | --shar \ 1138 | --sha | --sh) 1139 ac_prev=sharedstatedir ;; 1140 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1141 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1142 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1143 | --sha=* | --sh=*) 1144 sharedstatedir=$ac_optarg ;; 1145 1146 -site | --site | --sit) 1147 ac_prev=site ;; 1148 -site=* | --site=* | --sit=*) 1149 site=$ac_optarg ;; 1150 1151 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1152 ac_prev=srcdir ;; 1153 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1154 srcdir=$ac_optarg ;; 1155 1156 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1157 | --syscon | --sysco | --sysc | --sys | --sy) 1158 ac_prev=sysconfdir ;; 1159 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1160 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1161 sysconfdir=$ac_optarg ;; 1162 1163 -target | --target | --targe | --targ | --tar | --ta | --t) 1164 ac_prev=target_alias ;; 1165 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1166 target_alias=$ac_optarg ;; 1167 1168 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1169 verbose=yes ;; 1170 1171 -version | --version | --versio | --versi | --vers | -V) 1172 ac_init_version=: ;; 1173 1174 -with-* | --with-*) 1175 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1176 # Reject names that are not valid shell variable names. 1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 as_fn_error "invalid package name: $ac_useropt" 1179 ac_useropt_orig=$ac_useropt 1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1181 case $ac_user_opts in 1182 *" 1183"with_$ac_useropt" 1184"*) ;; 1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1186 ac_unrecognized_sep=', ';; 1187 esac 1188 eval with_$ac_useropt=\$ac_optarg ;; 1189 1190 -without-* | --without-*) 1191 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1192 # Reject names that are not valid shell variable names. 1193 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1194 as_fn_error "invalid package name: $ac_useropt" 1195 ac_useropt_orig=$ac_useropt 1196 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1197 case $ac_user_opts in 1198 *" 1199"with_$ac_useropt" 1200"*) ;; 1201 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1202 ac_unrecognized_sep=', ';; 1203 esac 1204 eval with_$ac_useropt=no ;; 1205 1206 --x) 1207 # Obsolete; use --with-x. 1208 with_x=yes ;; 1209 1210 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1211 | --x-incl | --x-inc | --x-in | --x-i) 1212 ac_prev=x_includes ;; 1213 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1214 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1215 x_includes=$ac_optarg ;; 1216 1217 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1218 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1219 ac_prev=x_libraries ;; 1220 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1221 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1222 x_libraries=$ac_optarg ;; 1223 1224 -*) as_fn_error "unrecognized option: \`$ac_option' 1225Try \`$0 --help' for more information." 1226 ;; 1227 1228 *=*) 1229 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1230 # Reject names that are not valid shell variable names. 1231 case $ac_envvar in #( 1232 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1233 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1234 esac 1235 eval $ac_envvar=\$ac_optarg 1236 export $ac_envvar ;; 1237 1238 *) 1239 # FIXME: should be removed in autoconf 3.0. 1240 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1241 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1242 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1243 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1244 ;; 1245 1246 esac 1247done 1248 1249if test -n "$ac_prev"; then 1250 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1251 as_fn_error "missing argument to $ac_option" 1252fi 1253 1254if test -n "$ac_unrecognized_opts"; then 1255 case $enable_option_checking in 1256 no) ;; 1257 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1258 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1259 esac 1260fi 1261 1262# Check all directory arguments for consistency. 1263for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1264 datadir sysconfdir sharedstatedir localstatedir includedir \ 1265 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1266 libdir localedir mandir 1267do 1268 eval ac_val=\$$ac_var 1269 # Remove trailing slashes. 1270 case $ac_val in 1271 */ ) 1272 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1273 eval $ac_var=\$ac_val;; 1274 esac 1275 # Be sure to have absolute directory names. 1276 case $ac_val in 1277 [\\/$]* | ?:[\\/]* ) continue;; 1278 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1279 esac 1280 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1281done 1282 1283# There might be people who depend on the old broken behavior: `$host' 1284# used to hold the argument of --host etc. 1285# FIXME: To remove some day. 1286build=$build_alias 1287host=$host_alias 1288target=$target_alias 1289 1290# FIXME: To remove some day. 1291if test "x$host_alias" != x; then 1292 if test "x$build_alias" = x; then 1293 cross_compiling=maybe 1294 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1295 If a cross compiler is detected then cross compile mode will be used." >&2 1296 elif test "x$build_alias" != "x$host_alias"; then 1297 cross_compiling=yes 1298 fi 1299fi 1300 1301ac_tool_prefix= 1302test -n "$host_alias" && ac_tool_prefix=$host_alias- 1303 1304test "$silent" = yes && exec 6>/dev/null 1305 1306 1307ac_pwd=`pwd` && test -n "$ac_pwd" && 1308ac_ls_di=`ls -di .` && 1309ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1310 as_fn_error "working directory cannot be determined" 1311test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1312 as_fn_error "pwd does not report name of working directory" 1313 1314 1315# Find the source files, if location was not specified. 1316if test -z "$srcdir"; then 1317 ac_srcdir_defaulted=yes 1318 # Try the directory containing this script, then the parent directory. 1319 ac_confdir=`$as_dirname -- "$as_myself" || 1320$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1321 X"$as_myself" : 'X\(//\)[^/]' \| \ 1322 X"$as_myself" : 'X\(//\)$' \| \ 1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1324$as_echo X"$as_myself" | 1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1326 s//\1/ 1327 q 1328 } 1329 /^X\(\/\/\)[^/].*/{ 1330 s//\1/ 1331 q 1332 } 1333 /^X\(\/\/\)$/{ 1334 s//\1/ 1335 q 1336 } 1337 /^X\(\/\).*/{ 1338 s//\1/ 1339 q 1340 } 1341 s/.*/./; q'` 1342 srcdir=$ac_confdir 1343 if test ! -r "$srcdir/$ac_unique_file"; then 1344 srcdir=.. 1345 fi 1346else 1347 ac_srcdir_defaulted=no 1348fi 1349if test ! -r "$srcdir/$ac_unique_file"; then 1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1351 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1352fi 1353ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1354ac_abs_confdir=`( 1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1356 pwd)` 1357# When building in place, set srcdir=. 1358if test "$ac_abs_confdir" = "$ac_pwd"; then 1359 srcdir=. 1360fi 1361# Remove unnecessary trailing slashes from srcdir. 1362# Double slashes in file names in object file debugging info 1363# mess up M-x gdb in Emacs. 1364case $srcdir in 1365*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1366esac 1367for ac_var in $ac_precious_vars; do 1368 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1369 eval ac_env_${ac_var}_value=\$${ac_var} 1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1371 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1372done 1373 1374# 1375# Report the --help message. 1376# 1377if test "$ac_init_help" = "long"; then 1378 # Omit some internal or obsolete options to make the list less imposing. 1379 # This message is too long to be a string in the A/UX 3.1 sh. 1380 cat <<_ACEOF 1381\`configure' configures this package to adapt to many kinds of systems. 1382 1383Usage: $0 [OPTION]... [VAR=VALUE]... 1384 1385To assign environment variables (e.g., CC, CFLAGS...), specify them as 1386VAR=VALUE. See below for descriptions of some of the useful variables. 1387 1388Defaults for the options are specified in brackets. 1389 1390Configuration: 1391 -h, --help display this help and exit 1392 --help=short display options specific to this package 1393 --help=recursive display the short help of all the included packages 1394 -V, --version display version information and exit 1395 -q, --quiet, --silent do not print \`checking...' messages 1396 --cache-file=FILE cache test results in FILE [disabled] 1397 -C, --config-cache alias for \`--cache-file=config.cache' 1398 -n, --no-create do not create output files 1399 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1400 1401Installation directories: 1402 --prefix=PREFIX install architecture-independent files in PREFIX 1403 [$ac_default_prefix] 1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1405 [PREFIX] 1406 1407By default, \`make install' will install all the files in 1408\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1409an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1410for instance \`--prefix=\$HOME'. 1411 1412For better control, use the options below. 1413 1414Fine tuning of the installation directories: 1415 --bindir=DIR user executables [EPREFIX/bin] 1416 --sbindir=DIR system admin executables [EPREFIX/sbin] 1417 --libexecdir=DIR program executables [EPREFIX/libexec] 1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1421 --libdir=DIR object code libraries [EPREFIX/lib] 1422 --includedir=DIR C header files [PREFIX/include] 1423 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1426 --infodir=DIR info documentation [DATAROOTDIR/info] 1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1428 --mandir=DIR man documentation [DATAROOTDIR/man] 1429 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1430 --htmldir=DIR html documentation [DOCDIR] 1431 --dvidir=DIR dvi documentation [DOCDIR] 1432 --pdfdir=DIR pdf documentation [DOCDIR] 1433 --psdir=DIR ps documentation [DOCDIR] 1434_ACEOF 1435 1436 cat <<\_ACEOF 1437 1438System types: 1439 --build=BUILD configure for building on BUILD [guessed] 1440 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1441_ACEOF 1442fi 1443 1444if test -n "$ac_init_help"; then 1445 1446 cat <<\_ACEOF 1447 1448Optional Features: 1449 --disable-option-checking ignore unrecognized --enable/--with options 1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1452 --enable-maintainer-mode enable makefile rules useful for maintainers 1453 --enable-symlink-install use symlinks when installing instead of hard links 1454 --enable-relative-symlinks use relative symlinks when installing 1455 --enable-symlink-build use symlinks while building instead of hard links 1456 --enable-verbose-makecmds enable verbose make command output 1457 --enable-compression enable EXPERIMENTAL compression support 1458 --enable-htree enable EXPERIMENTAL htree directory support 1459 --enable-elf-shlibs select ELF shared libraries 1460 --enable-bsd-shlibs select BSD shared libraries 1461 --enable-profile build profiling libraries 1462 --enable-checker build checker libraries 1463 --enable-jbd-debug enable journal debugging 1464 --enable-blkid-debug enable blkid debugging 1465 --disable-testio-debug disable the use of the test I/O manager for debugging 1466 --disable-libuuid do not build private uuid library 1467 --disable-libblkid do not build private blkid library 1468 --enable-libquota enable quota support 1469 --disable-debugfs disable support of debugfs program 1470 --disable-imager disable support of e2image program 1471 --disable-resizer disable support of e2resize program 1472 --disable-defrag disable support of e4defrag program 1473 --enable-fsck build fsck wrapper program 1474 --enable-e2initrd-helper build e2initrd-helper program 1475 --disable-tls disable use of thread local support 1476 --disable-uuidd disable building the uuid daemon 1477 --disable-nls do not use Native Language Support 1478 --disable-rpath do not hardcode runtime library paths 1479 1480Optional Packages: 1481 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1482 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1483 --with-diet-libc use diet libc 1484 --with-cc no longer supported, use CC= instead 1485 --with-ccopts no longer supported, use CFLAGS= instead 1486 --with-ldopts no longer supported, use LDFLAGS= instead 1487 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root 1488 --with-gnu-ld assume the C compiler uses GNU ld default=no 1489 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1490 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1491 --with-included-gettext use the GNU gettext library included here 1492 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1493 --without-libintl-prefix don't search for libintl in includedir and libdir 1494 --with-multiarch=ARCH specify the multiarch triplet 1495 1496Some influential environment variables: 1497 CC C compiler command 1498 CFLAGS C compiler flags 1499 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1500 nonstandard directory <lib dir> 1501 LIBS libraries to pass to the linker, e.g. -l<library> 1502 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1503 you have headers in a nonstandard directory <include dir> 1504 CPP C preprocessor 1505 PKG_CONFIG path to pkg-config utility 1506 1507Use these variables to override the choices made by `configure' or to help 1508it to find libraries and programs with nonstandard names/locations. 1509 1510Report bugs to the package provider. 1511_ACEOF 1512ac_status=$? 1513fi 1514 1515if test "$ac_init_help" = "recursive"; then 1516 # If there are subdirs, report their specific --help. 1517 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1518 test -d "$ac_dir" || 1519 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1520 continue 1521 ac_builddir=. 1522 1523case "$ac_dir" in 1524.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1525*) 1526 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1527 # A ".." for each directory in $ac_dir_suffix. 1528 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1529 case $ac_top_builddir_sub in 1530 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1531 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1532 esac ;; 1533esac 1534ac_abs_top_builddir=$ac_pwd 1535ac_abs_builddir=$ac_pwd$ac_dir_suffix 1536# for backward compatibility: 1537ac_top_builddir=$ac_top_build_prefix 1538 1539case $srcdir in 1540 .) # We are building in place. 1541 ac_srcdir=. 1542 ac_top_srcdir=$ac_top_builddir_sub 1543 ac_abs_top_srcdir=$ac_pwd ;; 1544 [\\/]* | ?:[\\/]* ) # Absolute name. 1545 ac_srcdir=$srcdir$ac_dir_suffix; 1546 ac_top_srcdir=$srcdir 1547 ac_abs_top_srcdir=$srcdir ;; 1548 *) # Relative name. 1549 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1550 ac_top_srcdir=$ac_top_build_prefix$srcdir 1551 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1552esac 1553ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1554 1555 cd "$ac_dir" || { ac_status=$?; continue; } 1556 # Check for guested configure. 1557 if test -f "$ac_srcdir/configure.gnu"; then 1558 echo && 1559 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1560 elif test -f "$ac_srcdir/configure"; then 1561 echo && 1562 $SHELL "$ac_srcdir/configure" --help=recursive 1563 else 1564 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1565 fi || ac_status=$? 1566 cd "$ac_pwd" || { ac_status=$?; break; } 1567 done 1568fi 1569 1570test -n "$ac_init_help" && exit $ac_status 1571if $ac_init_version; then 1572 cat <<\_ACEOF 1573configure 1574generated by GNU Autoconf 2.65 1575 1576Copyright (C) 2009 Free Software Foundation, Inc. 1577This configure script is free software; the Free Software Foundation 1578gives unlimited permission to copy, distribute and modify it. 1579_ACEOF 1580 exit 1581fi 1582 1583## ------------------------ ## 1584## Autoconf initialization. ## 1585## ------------------------ ## 1586 1587# ac_fn_c_try_compile LINENO 1588# -------------------------- 1589# Try to compile conftest.$ac_ext, and return whether this succeeded. 1590ac_fn_c_try_compile () 1591{ 1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1593 rm -f conftest.$ac_objext 1594 if { { ac_try="$ac_compile" 1595case "(($ac_try" in 1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1597 *) ac_try_echo=$ac_try;; 1598esac 1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1600$as_echo "$ac_try_echo"; } >&5 1601 (eval "$ac_compile") 2>conftest.err 1602 ac_status=$? 1603 if test -s conftest.err; then 1604 grep -v '^ *+' conftest.err >conftest.er1 1605 cat conftest.er1 >&5 1606 mv -f conftest.er1 conftest.err 1607 fi 1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1609 test $ac_status = 0; } && { 1610 test -z "$ac_c_werror_flag" || 1611 test ! -s conftest.err 1612 } && test -s conftest.$ac_objext; then : 1613 ac_retval=0 1614else 1615 $as_echo "$as_me: failed program was:" >&5 1616sed 's/^/| /' conftest.$ac_ext >&5 1617 1618 ac_retval=1 1619fi 1620 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1621 as_fn_set_status $ac_retval 1622 1623} # ac_fn_c_try_compile 1624 1625# ac_fn_c_try_link LINENO 1626# ----------------------- 1627# Try to link conftest.$ac_ext, and return whether this succeeded. 1628ac_fn_c_try_link () 1629{ 1630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1631 rm -f conftest.$ac_objext conftest$ac_exeext 1632 if { { ac_try="$ac_link" 1633case "(($ac_try" in 1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1635 *) ac_try_echo=$ac_try;; 1636esac 1637eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1638$as_echo "$ac_try_echo"; } >&5 1639 (eval "$ac_link") 2>conftest.err 1640 ac_status=$? 1641 if test -s conftest.err; then 1642 grep -v '^ *+' conftest.err >conftest.er1 1643 cat conftest.er1 >&5 1644 mv -f conftest.er1 conftest.err 1645 fi 1646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1647 test $ac_status = 0; } && { 1648 test -z "$ac_c_werror_flag" || 1649 test ! -s conftest.err 1650 } && test -s conftest$ac_exeext && { 1651 test "$cross_compiling" = yes || 1652 $as_test_x conftest$ac_exeext 1653 }; then : 1654 ac_retval=0 1655else 1656 $as_echo "$as_me: failed program was:" >&5 1657sed 's/^/| /' conftest.$ac_ext >&5 1658 1659 ac_retval=1 1660fi 1661 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1662 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1663 # interfere with the next link command; also delete a directory that is 1664 # left behind by Apple's compiler. We do this before executing the actions. 1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_c_try_link 1670 1671# ac_fn_c_try_cpp LINENO 1672# ---------------------- 1673# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1674ac_fn_c_try_cpp () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 if { { ac_try="$ac_cpp conftest.$ac_ext" 1678case "(($ac_try" in 1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1680 *) ac_try_echo=$ac_try;; 1681esac 1682eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1683$as_echo "$ac_try_echo"; } >&5 1684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1685 ac_status=$? 1686 if test -s conftest.err; then 1687 grep -v '^ *+' conftest.err >conftest.er1 1688 cat conftest.er1 >&5 1689 mv -f conftest.er1 conftest.err 1690 fi 1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1692 test $ac_status = 0; } >/dev/null && { 1693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1694 test ! -s conftest.err 1695 }; then : 1696 ac_retval=0 1697else 1698 $as_echo "$as_me: failed program was:" >&5 1699sed 's/^/| /' conftest.$ac_ext >&5 1700 1701 ac_retval=1 1702fi 1703 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_cpp 1707 1708# ac_fn_c_try_run LINENO 1709# ---------------------- 1710# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1711# that executables *can* be run. 1712ac_fn_c_try_run () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 if { { ac_try="$ac_link" 1716case "(($ac_try" in 1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1718 *) ac_try_echo=$ac_try;; 1719esac 1720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1721$as_echo "$ac_try_echo"; } >&5 1722 (eval "$ac_link") 2>&5 1723 ac_status=$? 1724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1725 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1726 { { case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_try") 2>&5 1733 ac_status=$? 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; }; }; then : 1736 ac_retval=0 1737else 1738 $as_echo "$as_me: program exited with status $ac_status" >&5 1739 $as_echo "$as_me: failed program was:" >&5 1740sed 's/^/| /' conftest.$ac_ext >&5 1741 1742 ac_retval=$ac_status 1743fi 1744 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1745 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1746 as_fn_set_status $ac_retval 1747 1748} # ac_fn_c_try_run 1749 1750# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1751# ------------------------------------------- 1752# Tests whether TYPE exists after having included INCLUDES, setting cache 1753# variable VAR accordingly. 1754ac_fn_c_check_type () 1755{ 1756 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1758$as_echo_n "checking for $2... " >&6; } 1759if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1760 $as_echo_n "(cached) " >&6 1761else 1762 eval "$3=no" 1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1764/* end confdefs.h. */ 1765$4 1766int 1767main () 1768{ 1769if (sizeof ($2)) 1770 return 0; 1771 ; 1772 return 0; 1773} 1774_ACEOF 1775if ac_fn_c_try_compile "$LINENO"; then : 1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1777/* end confdefs.h. */ 1778$4 1779int 1780main () 1781{ 1782if (sizeof (($2))) 1783 return 0; 1784 ; 1785 return 0; 1786} 1787_ACEOF 1788if ac_fn_c_try_compile "$LINENO"; then : 1789 1790else 1791 eval "$3=yes" 1792fi 1793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1794fi 1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1796fi 1797eval ac_res=\$$3 1798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1799$as_echo "$ac_res" >&6; } 1800 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1801 1802} # ac_fn_c_check_type 1803 1804# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1805# ------------------------------------------------------- 1806# Tests whether HEADER exists and can be compiled using the include files in 1807# INCLUDES, setting the cache variable VAR accordingly. 1808ac_fn_c_check_header_compile () 1809{ 1810 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1812$as_echo_n "checking for $2... " >&6; } 1813if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1814 $as_echo_n "(cached) " >&6 1815else 1816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1817/* end confdefs.h. */ 1818$4 1819#include <$2> 1820_ACEOF 1821if ac_fn_c_try_compile "$LINENO"; then : 1822 eval "$3=yes" 1823else 1824 eval "$3=no" 1825fi 1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1827fi 1828eval ac_res=\$$3 1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1830$as_echo "$ac_res" >&6; } 1831 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1832 1833} # ac_fn_c_check_header_compile 1834 1835# ac_fn_c_check_func LINENO FUNC VAR 1836# ---------------------------------- 1837# Tests whether FUNC exists, setting the cache variable VAR accordingly 1838ac_fn_c_check_func () 1839{ 1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1842$as_echo_n "checking for $2... " >&6; } 1843if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1844 $as_echo_n "(cached) " >&6 1845else 1846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1847/* end confdefs.h. */ 1848/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1849 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1850#define $2 innocuous_$2 1851 1852/* System header to define __stub macros and hopefully few prototypes, 1853 which can conflict with char $2 (); below. 1854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1855 <limits.h> exists even on freestanding compilers. */ 1856 1857#ifdef __STDC__ 1858# include <limits.h> 1859#else 1860# include <assert.h> 1861#endif 1862 1863#undef $2 1864 1865/* Override any GCC internal prototype to avoid an error. 1866 Use char because int might match the return type of a GCC 1867 builtin and then its argument prototype would still apply. */ 1868#ifdef __cplusplus 1869extern "C" 1870#endif 1871char $2 (); 1872/* The GNU C library defines this for functions which it implements 1873 to always fail with ENOSYS. Some functions are actually named 1874 something starting with __ and the normal name is an alias. */ 1875#if defined __stub_$2 || defined __stub___$2 1876choke me 1877#endif 1878 1879int 1880main () 1881{ 1882return $2 (); 1883 ; 1884 return 0; 1885} 1886_ACEOF 1887if ac_fn_c_try_link "$LINENO"; then : 1888 eval "$3=yes" 1889else 1890 eval "$3=no" 1891fi 1892rm -f core conftest.err conftest.$ac_objext \ 1893 conftest$ac_exeext conftest.$ac_ext 1894fi 1895eval ac_res=\$$3 1896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1897$as_echo "$ac_res" >&6; } 1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1899 1900} # ac_fn_c_check_func 1901 1902# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1903# ------------------------------------------------------- 1904# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1905# the include files in INCLUDES and setting the cache variable VAR 1906# accordingly. 1907ac_fn_c_check_header_mongrel () 1908{ 1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1910 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1912$as_echo_n "checking for $2... " >&6; } 1913if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1914 $as_echo_n "(cached) " >&6 1915fi 1916eval ac_res=\$$3 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1918$as_echo "$ac_res" >&6; } 1919else 1920 # Is the header compilable? 1921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1922$as_echo_n "checking $2 usability... " >&6; } 1923cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1924/* end confdefs.h. */ 1925$4 1926#include <$2> 1927_ACEOF 1928if ac_fn_c_try_compile "$LINENO"; then : 1929 ac_header_compiler=yes 1930else 1931 ac_header_compiler=no 1932fi 1933rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1935$as_echo "$ac_header_compiler" >&6; } 1936 1937# Is the header present? 1938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1939$as_echo_n "checking $2 presence... " >&6; } 1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942#include <$2> 1943_ACEOF 1944if ac_fn_c_try_cpp "$LINENO"; then : 1945 ac_header_preproc=yes 1946else 1947 ac_header_preproc=no 1948fi 1949rm -f conftest.err conftest.$ac_ext 1950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1951$as_echo "$ac_header_preproc" >&6; } 1952 1953# So? What about this header? 1954case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1955 yes:no: ) 1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1957$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1959$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1960 ;; 1961 no:yes:* ) 1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1963$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1965$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1967$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1969$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1971$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1972 ;; 1973esac 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1975$as_echo_n "checking for $2... " >&6; } 1976if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1977 $as_echo_n "(cached) " >&6 1978else 1979 eval "$3=\$ac_header_compiler" 1980fi 1981eval ac_res=\$$3 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1983$as_echo "$ac_res" >&6; } 1984fi 1985 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1986 1987} # ac_fn_c_check_header_mongrel 1988 1989# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1990# -------------------------------------------- 1991# Tries to find the compile-time value of EXPR in a program that includes 1992# INCLUDES, setting VAR accordingly. Returns whether the value could be 1993# computed 1994ac_fn_c_compute_int () 1995{ 1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1997 if test "$cross_compiling" = yes; then 1998 # Depending upon the size, compute the lo and hi bounds. 1999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2000/* end confdefs.h. */ 2001$4 2002int 2003main () 2004{ 2005static int test_array [1 - 2 * !(($2) >= 0)]; 2006test_array [0] = 0 2007 2008 ; 2009 return 0; 2010} 2011_ACEOF 2012if ac_fn_c_try_compile "$LINENO"; then : 2013 ac_lo=0 ac_mid=0 2014 while :; do 2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2016/* end confdefs.h. */ 2017$4 2018int 2019main () 2020{ 2021static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2022test_array [0] = 0 2023 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO"; then : 2029 ac_hi=$ac_mid; break 2030else 2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2032 if test $ac_lo -le $ac_mid; then 2033 ac_lo= ac_hi= 2034 break 2035 fi 2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2037fi 2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2039 done 2040else 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044int 2045main () 2046{ 2047static int test_array [1 - 2 * !(($2) < 0)]; 2048test_array [0] = 0 2049 2050 ; 2051 return 0; 2052} 2053_ACEOF 2054if ac_fn_c_try_compile "$LINENO"; then : 2055 ac_hi=-1 ac_mid=-1 2056 while :; do 2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2058/* end confdefs.h. */ 2059$4 2060int 2061main () 2062{ 2063static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2064test_array [0] = 0 2065 2066 ; 2067 return 0; 2068} 2069_ACEOF 2070if ac_fn_c_try_compile "$LINENO"; then : 2071 ac_lo=$ac_mid; break 2072else 2073 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2074 if test $ac_mid -le $ac_hi; then 2075 ac_lo= ac_hi= 2076 break 2077 fi 2078 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2079fi 2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2081 done 2082else 2083 ac_lo= ac_hi= 2084fi 2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2086fi 2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2088# Binary search between lo and hi bounds. 2089while test "x$ac_lo" != "x$ac_hi"; do 2090 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2092/* end confdefs.h. */ 2093$4 2094int 2095main () 2096{ 2097static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2098test_array [0] = 0 2099 2100 ; 2101 return 0; 2102} 2103_ACEOF 2104if ac_fn_c_try_compile "$LINENO"; then : 2105 ac_hi=$ac_mid 2106else 2107 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2108fi 2109rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2110done 2111case $ac_lo in #(( 2112?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2113'') ac_retval=1 ;; 2114esac 2115 else 2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2117/* end confdefs.h. */ 2118$4 2119static long int longval () { return $2; } 2120static unsigned long int ulongval () { return $2; } 2121#include <stdio.h> 2122#include <stdlib.h> 2123int 2124main () 2125{ 2126 2127 FILE *f = fopen ("conftest.val", "w"); 2128 if (! f) 2129 return 1; 2130 if (($2) < 0) 2131 { 2132 long int i = longval (); 2133 if (i != ($2)) 2134 return 1; 2135 fprintf (f, "%ld", i); 2136 } 2137 else 2138 { 2139 unsigned long int i = ulongval (); 2140 if (i != ($2)) 2141 return 1; 2142 fprintf (f, "%lu", i); 2143 } 2144 /* Do not output a trailing newline, as this causes \r\n confusion 2145 on some platforms. */ 2146 return ferror (f) || fclose (f) != 0; 2147 2148 ; 2149 return 0; 2150} 2151_ACEOF 2152if ac_fn_c_try_run "$LINENO"; then : 2153 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2154else 2155 ac_retval=1 2156fi 2157rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2158 conftest.$ac_objext conftest.beam conftest.$ac_ext 2159rm -f conftest.val 2160 2161 fi 2162 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2163 as_fn_set_status $ac_retval 2164 2165} # ac_fn_c_compute_int 2166 2167# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2168# ---------------------------------------------------- 2169# Tries to find if the field MEMBER exists in type AGGR, after including 2170# INCLUDES, setting cache variable VAR accordingly. 2171ac_fn_c_check_member () 2172{ 2173 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2175$as_echo_n "checking for $2.$3... " >&6; } 2176if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2177 $as_echo_n "(cached) " >&6 2178else 2179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2180/* end confdefs.h. */ 2181$5 2182int 2183main () 2184{ 2185static $2 ac_aggr; 2186if (ac_aggr.$3) 2187return 0; 2188 ; 2189 return 0; 2190} 2191_ACEOF 2192if ac_fn_c_try_compile "$LINENO"; then : 2193 eval "$4=yes" 2194else 2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2196/* end confdefs.h. */ 2197$5 2198int 2199main () 2200{ 2201static $2 ac_aggr; 2202if (sizeof ac_aggr.$3) 2203return 0; 2204 ; 2205 return 0; 2206} 2207_ACEOF 2208if ac_fn_c_try_compile "$LINENO"; then : 2209 eval "$4=yes" 2210else 2211 eval "$4=no" 2212fi 2213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2214fi 2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2216fi 2217eval ac_res=\$$4 2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2219$as_echo "$ac_res" >&6; } 2220 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2221 2222} # ac_fn_c_check_member 2223 2224# ac_fn_c_check_decl LINENO SYMBOL VAR 2225# ------------------------------------ 2226# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2227ac_fn_c_check_decl () 2228{ 2229 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2231$as_echo_n "checking whether $2 is declared... " >&6; } 2232if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2233 $as_echo_n "(cached) " >&6 2234else 2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2236/* end confdefs.h. */ 2237$4 2238int 2239main () 2240{ 2241#ifndef $2 2242 (void) $2; 2243#endif 2244 2245 ; 2246 return 0; 2247} 2248_ACEOF 2249if ac_fn_c_try_compile "$LINENO"; then : 2250 eval "$3=yes" 2251else 2252 eval "$3=no" 2253fi 2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2255fi 2256eval ac_res=\$$3 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2258$as_echo "$ac_res" >&6; } 2259 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2260 2261} # ac_fn_c_check_decl 2262cat >config.log <<_ACEOF 2263This file contains any messages produced by compilers while 2264running configure, to aid debugging if configure makes a mistake. 2265 2266It was created by $as_me, which was 2267generated by GNU Autoconf 2.65. Invocation command line was 2268 2269 $ $0 $@ 2270 2271_ACEOF 2272exec 5>>config.log 2273{ 2274cat <<_ASUNAME 2275## --------- ## 2276## Platform. ## 2277## --------- ## 2278 2279hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2280uname -m = `(uname -m) 2>/dev/null || echo unknown` 2281uname -r = `(uname -r) 2>/dev/null || echo unknown` 2282uname -s = `(uname -s) 2>/dev/null || echo unknown` 2283uname -v = `(uname -v) 2>/dev/null || echo unknown` 2284 2285/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2286/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2287 2288/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2289/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2290/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2291/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2292/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2293/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2294/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2295 2296_ASUNAME 2297 2298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2299for as_dir in $PATH 2300do 2301 IFS=$as_save_IFS 2302 test -z "$as_dir" && as_dir=. 2303 $as_echo "PATH: $as_dir" 2304 done 2305IFS=$as_save_IFS 2306 2307} >&5 2308 2309cat >&5 <<_ACEOF 2310 2311 2312## ----------- ## 2313## Core tests. ## 2314## ----------- ## 2315 2316_ACEOF 2317 2318 2319# Keep a trace of the command line. 2320# Strip out --no-create and --no-recursion so they do not pile up. 2321# Strip out --silent because we don't want to record it for future runs. 2322# Also quote any args containing shell meta-characters. 2323# Make two passes to allow for proper duplicate-argument suppression. 2324ac_configure_args= 2325ac_configure_args0= 2326ac_configure_args1= 2327ac_must_keep_next=false 2328for ac_pass in 1 2 2329do 2330 for ac_arg 2331 do 2332 case $ac_arg in 2333 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2335 | -silent | --silent | --silen | --sile | --sil) 2336 continue ;; 2337 *\'*) 2338 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2339 esac 2340 case $ac_pass in 2341 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2342 2) 2343 as_fn_append ac_configure_args1 " '$ac_arg'" 2344 if test $ac_must_keep_next = true; then 2345 ac_must_keep_next=false # Got value, back to normal. 2346 else 2347 case $ac_arg in 2348 *=* | --config-cache | -C | -disable-* | --disable-* \ 2349 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2350 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2351 | -with-* | --with-* | -without-* | --without-* | --x) 2352 case "$ac_configure_args0 " in 2353 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2354 esac 2355 ;; 2356 -* ) ac_must_keep_next=true ;; 2357 esac 2358 fi 2359 as_fn_append ac_configure_args " '$ac_arg'" 2360 ;; 2361 esac 2362 done 2363done 2364{ ac_configure_args0=; unset ac_configure_args0;} 2365{ ac_configure_args1=; unset ac_configure_args1;} 2366 2367# When interrupted or exit'd, cleanup temporary files, and complete 2368# config.log. We remove comments because anyway the quotes in there 2369# would cause problems or look ugly. 2370# WARNING: Use '\'' to represent an apostrophe within the trap. 2371# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2372trap 'exit_status=$? 2373 # Save into config.log some information that might help in debugging. 2374 { 2375 echo 2376 2377 cat <<\_ASBOX 2378## ---------------- ## 2379## Cache variables. ## 2380## ---------------- ## 2381_ASBOX 2382 echo 2383 # The following way of writing the cache mishandles newlines in values, 2384( 2385 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2386 eval ac_val=\$$ac_var 2387 case $ac_val in #( 2388 *${as_nl}*) 2389 case $ac_var in #( 2390 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2391$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2392 esac 2393 case $ac_var in #( 2394 _ | IFS | as_nl) ;; #( 2395 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2396 *) { eval $ac_var=; unset $ac_var;} ;; 2397 esac ;; 2398 esac 2399 done 2400 (set) 2>&1 | 2401 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2402 *${as_nl}ac_space=\ *) 2403 sed -n \ 2404 "s/'\''/'\''\\\\'\'''\''/g; 2405 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2406 ;; #( 2407 *) 2408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2409 ;; 2410 esac | 2411 sort 2412) 2413 echo 2414 2415 cat <<\_ASBOX 2416## ----------------- ## 2417## Output variables. ## 2418## ----------------- ## 2419_ASBOX 2420 echo 2421 for ac_var in $ac_subst_vars 2422 do 2423 eval ac_val=\$$ac_var 2424 case $ac_val in 2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2426 esac 2427 $as_echo "$ac_var='\''$ac_val'\''" 2428 done | sort 2429 echo 2430 2431 if test -n "$ac_subst_files"; then 2432 cat <<\_ASBOX 2433## ------------------- ## 2434## File substitutions. ## 2435## ------------------- ## 2436_ASBOX 2437 echo 2438 for ac_var in $ac_subst_files 2439 do 2440 eval ac_val=\$$ac_var 2441 case $ac_val in 2442 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2443 esac 2444 $as_echo "$ac_var='\''$ac_val'\''" 2445 done | sort 2446 echo 2447 fi 2448 2449 if test -s confdefs.h; then 2450 cat <<\_ASBOX 2451## ----------- ## 2452## confdefs.h. ## 2453## ----------- ## 2454_ASBOX 2455 echo 2456 cat confdefs.h 2457 echo 2458 fi 2459 test "$ac_signal" != 0 && 2460 $as_echo "$as_me: caught signal $ac_signal" 2461 $as_echo "$as_me: exit $exit_status" 2462 } >&5 2463 rm -f core *.core core.conftest.* && 2464 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2465 exit $exit_status 2466' 0 2467for ac_signal in 1 2 13 15; do 2468 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2469done 2470ac_signal=0 2471 2472# confdefs.h avoids OS command line length limits that DEFS can exceed. 2473rm -f -r conftest* confdefs.h 2474 2475$as_echo "/* confdefs.h */" > confdefs.h 2476 2477# Predefined preprocessor variables. 2478 2479cat >>confdefs.h <<_ACEOF 2480#define PACKAGE_NAME "$PACKAGE_NAME" 2481_ACEOF 2482 2483cat >>confdefs.h <<_ACEOF 2484#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2485_ACEOF 2486 2487cat >>confdefs.h <<_ACEOF 2488#define PACKAGE_VERSION "$PACKAGE_VERSION" 2489_ACEOF 2490 2491cat >>confdefs.h <<_ACEOF 2492#define PACKAGE_STRING "$PACKAGE_STRING" 2493_ACEOF 2494 2495cat >>confdefs.h <<_ACEOF 2496#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2497_ACEOF 2498 2499cat >>confdefs.h <<_ACEOF 2500#define PACKAGE_URL "$PACKAGE_URL" 2501_ACEOF 2502 2503 2504# Let the site file select an alternate cache file if it wants to. 2505# Prefer an explicitly selected file to automatically selected ones. 2506ac_site_file1=NONE 2507ac_site_file2=NONE 2508if test -n "$CONFIG_SITE"; then 2509 ac_site_file1=$CONFIG_SITE 2510elif test "x$prefix" != xNONE; then 2511 ac_site_file1=$prefix/share/config.site 2512 ac_site_file2=$prefix/etc/config.site 2513else 2514 ac_site_file1=$ac_default_prefix/share/config.site 2515 ac_site_file2=$ac_default_prefix/etc/config.site 2516fi 2517for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2518do 2519 test "x$ac_site_file" = xNONE && continue 2520 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2522$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2523 sed 's/^/| /' "$ac_site_file" >&5 2524 . "$ac_site_file" 2525 fi 2526done 2527 2528if test -r "$cache_file"; then 2529 # Some versions of bash will fail to source /dev/null (special files 2530 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2531 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2533$as_echo "$as_me: loading cache $cache_file" >&6;} 2534 case $cache_file in 2535 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2536 *) . "./$cache_file";; 2537 esac 2538 fi 2539else 2540 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2541$as_echo "$as_me: creating cache $cache_file" >&6;} 2542 >$cache_file 2543fi 2544 2545as_fn_append ac_header_list " stdlib.h" 2546as_fn_append ac_header_list " unistd.h" 2547as_fn_append ac_header_list " sys/param.h" 2548# Check that the precious variables saved in the cache have kept the same 2549# value. 2550ac_cache_corrupted=false 2551for ac_var in $ac_precious_vars; do 2552 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2553 eval ac_new_set=\$ac_env_${ac_var}_set 2554 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2555 eval ac_new_val=\$ac_env_${ac_var}_value 2556 case $ac_old_set,$ac_new_set in 2557 set,) 2558 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2559$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2560 ac_cache_corrupted=: ;; 2561 ,set) 2562 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2563$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2564 ac_cache_corrupted=: ;; 2565 ,);; 2566 *) 2567 if test "x$ac_old_val" != "x$ac_new_val"; then 2568 # differences in whitespace do not lead to failure. 2569 ac_old_val_w=`echo x $ac_old_val` 2570 ac_new_val_w=`echo x $ac_new_val` 2571 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2573$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2574 ac_cache_corrupted=: 2575 else 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2577$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2578 eval $ac_var=\$ac_old_val 2579 fi 2580 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2581$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2582 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2583$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2584 fi;; 2585 esac 2586 # Pass precious variables to config.status. 2587 if test "$ac_new_set" = set; then 2588 case $ac_new_val in 2589 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2590 *) ac_arg=$ac_var=$ac_new_val ;; 2591 esac 2592 case " $ac_configure_args " in 2593 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2594 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2595 esac 2596 fi 2597done 2598if $ac_cache_corrupted; then 2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2600$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2602$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2603 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2604fi 2605## -------------------- ## 2606## Main body of script. ## 2607## -------------------- ## 2608 2609ac_ext=c 2610ac_cpp='$CPP $CPPFLAGS' 2611ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2612ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2613ac_compiler_gnu=$ac_cv_c_compiler_gnu 2614 2615 2616 2617ac_aux_dir= 2618for ac_dir in config "$srcdir"/config; do 2619 for ac_t in install-sh install.sh shtool; do 2620 if test -f "$ac_dir/$ac_t"; then 2621 ac_aux_dir=$ac_dir 2622 ac_install_sh="$ac_aux_dir/$ac_t -c" 2623 break 2 2624 fi 2625 done 2626done 2627if test -z "$ac_aux_dir"; then 2628 as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2629fi 2630 2631# These three variables are undocumented and unsupported, 2632# and are intended to be withdrawn in a future Autoconf release. 2633# They can cause serious problems if a builder's source tree is in a directory 2634# whose full name contains unusual characters. 2635ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2636ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2637ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2638 2639 2640ac_config_headers="$ac_config_headers lib/config.h" 2641 2642 2643MCONFIG=./MCONFIG 2644 2645BINARY_TYPE=bin 2646E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ 2647 | awk '{print $3}' | tr \" " " | awk '{print $1}'` 2648DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ 2649 | tr \" " "` 2650E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` 2651MONTH=`echo $DATE | awk -F- '{print $2}'` 2652YEAR=`echo $DATE | awk -F- '{print $3}'` 2653 2654if expr $YEAR ">" 1900 > /dev/null ; then 2655 E2FSPROGS_YEAR=$YEAR 2656elif expr $YEAR ">" 90 >/dev/null ; then 2657 E2FSPROGS_YEAR=19$YEAR 2658else 2659 E2FSPROGS_YEAR=20$YEAR 2660fi 2661 2662case $MONTH in 2663Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; 2664Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; 2665Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; 2666Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; 2667May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; 2668Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; 2669Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; 2670Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; 2671Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; 2672Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; 2673Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; 2674Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; 2675*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 2676$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; 2677esac 2678 2679base_ver=`echo $E2FSPROGS_VERSION | \ 2680 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` 2681 2682date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} 2683 2684case $E2FSPROGS_VERSION in 2685*-WIP|pre-*) 2686 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" 2687 ;; 2688*) 2689 E2FSPROGS_PKGVER="$base_ver" 2690 ;; 2691esac 2692 2693unset DATE MONTH YEAR base_ver pre_vers date_spec 2694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 2695$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } 2696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 2697$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } 2698 2699 2700 2701 2702 2703# Make sure we can run config.sub. 2704$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2705 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2706 2707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2708$as_echo_n "checking build system type... " >&6; } 2709if test "${ac_cv_build+set}" = set; then : 2710 $as_echo_n "(cached) " >&6 2711else 2712 ac_build_alias=$build_alias 2713test "x$ac_build_alias" = x && 2714 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2715test "x$ac_build_alias" = x && 2716 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2717ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2718 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2719 2720fi 2721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2722$as_echo "$ac_cv_build" >&6; } 2723case $ac_cv_build in 2724*-*-*) ;; 2725*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2726esac 2727build=$ac_cv_build 2728ac_save_IFS=$IFS; IFS='-' 2729set x $ac_cv_build 2730shift 2731build_cpu=$1 2732build_vendor=$2 2733shift; shift 2734# Remember, the first character of IFS is used to create $*, 2735# except with old shells: 2736build_os=$* 2737IFS=$ac_save_IFS 2738case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2739 2740 2741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2742$as_echo_n "checking host system type... " >&6; } 2743if test "${ac_cv_host+set}" = set; then : 2744 $as_echo_n "(cached) " >&6 2745else 2746 if test "x$host_alias" = x; then 2747 ac_cv_host=$ac_cv_build 2748else 2749 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2750 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2751fi 2752 2753fi 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2755$as_echo "$ac_cv_host" >&6; } 2756case $ac_cv_host in 2757*-*-*) ;; 2758*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2759esac 2760host=$ac_cv_host 2761ac_save_IFS=$IFS; IFS='-' 2762set x $ac_cv_host 2763shift 2764host_cpu=$1 2765host_vendor=$2 2766shift; shift 2767# Remember, the first character of IFS is used to create $*, 2768# except with old shells: 2769host_os=$* 2770IFS=$ac_save_IFS 2771case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2772 2773 2774DLOPEN_LIB='' 2775ac_ext=c 2776ac_cpp='$CPP $CPPFLAGS' 2777ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2778ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2779ac_compiler_gnu=$ac_cv_c_compiler_gnu 2780if test -n "$ac_tool_prefix"; then 2781 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2782set dummy ${ac_tool_prefix}gcc; ac_word=$2 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2784$as_echo_n "checking for $ac_word... " >&6; } 2785if test "${ac_cv_prog_CC+set}" = set; then : 2786 $as_echo_n "(cached) " >&6 2787else 2788 if test -n "$CC"; then 2789 ac_cv_prog_CC="$CC" # Let the user override the test. 2790else 2791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2792for as_dir in $PATH 2793do 2794 IFS=$as_save_IFS 2795 test -z "$as_dir" && as_dir=. 2796 for ac_exec_ext in '' $ac_executable_extensions; do 2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2798 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2800 break 2 2801 fi 2802done 2803 done 2804IFS=$as_save_IFS 2805 2806fi 2807fi 2808CC=$ac_cv_prog_CC 2809if test -n "$CC"; then 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2811$as_echo "$CC" >&6; } 2812else 2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2814$as_echo "no" >&6; } 2815fi 2816 2817 2818fi 2819if test -z "$ac_cv_prog_CC"; then 2820 ac_ct_CC=$CC 2821 # Extract the first word of "gcc", so it can be a program name with args. 2822set dummy gcc; ac_word=$2 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2824$as_echo_n "checking for $ac_word... " >&6; } 2825if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2826 $as_echo_n "(cached) " >&6 2827else 2828 if test -n "$ac_ct_CC"; then 2829 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2830else 2831as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2832for as_dir in $PATH 2833do 2834 IFS=$as_save_IFS 2835 test -z "$as_dir" && as_dir=. 2836 for ac_exec_ext in '' $ac_executable_extensions; do 2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2838 ac_cv_prog_ac_ct_CC="gcc" 2839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2840 break 2 2841 fi 2842done 2843 done 2844IFS=$as_save_IFS 2845 2846fi 2847fi 2848ac_ct_CC=$ac_cv_prog_ac_ct_CC 2849if test -n "$ac_ct_CC"; then 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2851$as_echo "$ac_ct_CC" >&6; } 2852else 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2854$as_echo "no" >&6; } 2855fi 2856 2857 if test "x$ac_ct_CC" = x; then 2858 CC="" 2859 else 2860 case $cross_compiling:$ac_tool_warned in 2861yes:) 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2863$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2864ac_tool_warned=yes ;; 2865esac 2866 CC=$ac_ct_CC 2867 fi 2868else 2869 CC="$ac_cv_prog_CC" 2870fi 2871 2872if test -z "$CC"; then 2873 if test -n "$ac_tool_prefix"; then 2874 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2875set dummy ${ac_tool_prefix}cc; ac_word=$2 2876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2877$as_echo_n "checking for $ac_word... " >&6; } 2878if test "${ac_cv_prog_CC+set}" = set; then : 2879 $as_echo_n "(cached) " >&6 2880else 2881 if test -n "$CC"; then 2882 ac_cv_prog_CC="$CC" # Let the user override the test. 2883else 2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2885for as_dir in $PATH 2886do 2887 IFS=$as_save_IFS 2888 test -z "$as_dir" && as_dir=. 2889 for ac_exec_ext in '' $ac_executable_extensions; do 2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2891 ac_cv_prog_CC="${ac_tool_prefix}cc" 2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2893 break 2 2894 fi 2895done 2896 done 2897IFS=$as_save_IFS 2898 2899fi 2900fi 2901CC=$ac_cv_prog_CC 2902if test -n "$CC"; then 2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2904$as_echo "$CC" >&6; } 2905else 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2907$as_echo "no" >&6; } 2908fi 2909 2910 2911 fi 2912fi 2913if test -z "$CC"; then 2914 # Extract the first word of "cc", so it can be a program name with args. 2915set dummy cc; ac_word=$2 2916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2917$as_echo_n "checking for $ac_word... " >&6; } 2918if test "${ac_cv_prog_CC+set}" = set; then : 2919 $as_echo_n "(cached) " >&6 2920else 2921 if test -n "$CC"; then 2922 ac_cv_prog_CC="$CC" # Let the user override the test. 2923else 2924 ac_prog_rejected=no 2925as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2926for as_dir in $PATH 2927do 2928 IFS=$as_save_IFS 2929 test -z "$as_dir" && as_dir=. 2930 for ac_exec_ext in '' $ac_executable_extensions; do 2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2932 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2933 ac_prog_rejected=yes 2934 continue 2935 fi 2936 ac_cv_prog_CC="cc" 2937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2938 break 2 2939 fi 2940done 2941 done 2942IFS=$as_save_IFS 2943 2944if test $ac_prog_rejected = yes; then 2945 # We found a bogon in the path, so make sure we never use it. 2946 set dummy $ac_cv_prog_CC 2947 shift 2948 if test $# != 0; then 2949 # We chose a different compiler from the bogus one. 2950 # However, it has the same basename, so the bogon will be chosen 2951 # first if we set CC to just the basename; use the full file name. 2952 shift 2953 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2954 fi 2955fi 2956fi 2957fi 2958CC=$ac_cv_prog_CC 2959if test -n "$CC"; then 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2961$as_echo "$CC" >&6; } 2962else 2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2964$as_echo "no" >&6; } 2965fi 2966 2967 2968fi 2969if test -z "$CC"; then 2970 if test -n "$ac_tool_prefix"; then 2971 for ac_prog in cl.exe 2972 do 2973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2974set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2976$as_echo_n "checking for $ac_word... " >&6; } 2977if test "${ac_cv_prog_CC+set}" = set; then : 2978 $as_echo_n "(cached) " >&6 2979else 2980 if test -n "$CC"; then 2981 ac_cv_prog_CC="$CC" # Let the user override the test. 2982else 2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2984for as_dir in $PATH 2985do 2986 IFS=$as_save_IFS 2987 test -z "$as_dir" && as_dir=. 2988 for ac_exec_ext in '' $ac_executable_extensions; do 2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2992 break 2 2993 fi 2994done 2995 done 2996IFS=$as_save_IFS 2997 2998fi 2999fi 3000CC=$ac_cv_prog_CC 3001if test -n "$CC"; then 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3003$as_echo "$CC" >&6; } 3004else 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3006$as_echo "no" >&6; } 3007fi 3008 3009 3010 test -n "$CC" && break 3011 done 3012fi 3013if test -z "$CC"; then 3014 ac_ct_CC=$CC 3015 for ac_prog in cl.exe 3016do 3017 # Extract the first word of "$ac_prog", so it can be a program name with args. 3018set dummy $ac_prog; ac_word=$2 3019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3020$as_echo_n "checking for $ac_word... " >&6; } 3021if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3022 $as_echo_n "(cached) " >&6 3023else 3024 if test -n "$ac_ct_CC"; then 3025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3026else 3027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3028for as_dir in $PATH 3029do 3030 IFS=$as_save_IFS 3031 test -z "$as_dir" && as_dir=. 3032 for ac_exec_ext in '' $ac_executable_extensions; do 3033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3034 ac_cv_prog_ac_ct_CC="$ac_prog" 3035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3036 break 2 3037 fi 3038done 3039 done 3040IFS=$as_save_IFS 3041 3042fi 3043fi 3044ac_ct_CC=$ac_cv_prog_ac_ct_CC 3045if test -n "$ac_ct_CC"; then 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3047$as_echo "$ac_ct_CC" >&6; } 3048else 3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3050$as_echo "no" >&6; } 3051fi 3052 3053 3054 test -n "$ac_ct_CC" && break 3055done 3056 3057 if test "x$ac_ct_CC" = x; then 3058 CC="" 3059 else 3060 case $cross_compiling:$ac_tool_warned in 3061yes:) 3062{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3063$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3064ac_tool_warned=yes ;; 3065esac 3066 CC=$ac_ct_CC 3067 fi 3068fi 3069 3070fi 3071 3072 3073test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3074$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3075as_fn_error "no acceptable C compiler found in \$PATH 3076See \`config.log' for more details." "$LINENO" 5; } 3077 3078# Provide some information about the compiler. 3079$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3080set X $ac_compile 3081ac_compiler=$2 3082for ac_option in --version -v -V -qversion; do 3083 { { ac_try="$ac_compiler $ac_option >&5" 3084case "(($ac_try" in 3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3086 *) ac_try_echo=$ac_try;; 3087esac 3088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3089$as_echo "$ac_try_echo"; } >&5 3090 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3091 ac_status=$? 3092 if test -s conftest.err; then 3093 sed '10a\ 3094... rest of stderr output deleted ... 3095 10q' conftest.err >conftest.er1 3096 cat conftest.er1 >&5 3097 fi 3098 rm -f conftest.er1 conftest.err 3099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3100 test $ac_status = 0; } 3101done 3102 3103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3104/* end confdefs.h. */ 3105 3106int 3107main () 3108{ 3109 3110 ; 3111 return 0; 3112} 3113_ACEOF 3114ac_clean_files_save=$ac_clean_files 3115ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3116# Try to create an executable without -o first, disregard a.out. 3117# It will help us diagnose broken compilers, and finding out an intuition 3118# of exeext. 3119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3120$as_echo_n "checking whether the C compiler works... " >&6; } 3121ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3122 3123# The possible output files: 3124ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3125 3126ac_rmfiles= 3127for ac_file in $ac_files 3128do 3129 case $ac_file in 3130 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3131 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3132 esac 3133done 3134rm -f $ac_rmfiles 3135 3136if { { ac_try="$ac_link_default" 3137case "(($ac_try" in 3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3139 *) ac_try_echo=$ac_try;; 3140esac 3141eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3142$as_echo "$ac_try_echo"; } >&5 3143 (eval "$ac_link_default") 2>&5 3144 ac_status=$? 3145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3146 test $ac_status = 0; }; then : 3147 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3148# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3149# in a Makefile. We should not override ac_cv_exeext if it was cached, 3150# so that the user can short-circuit this test for compilers unknown to 3151# Autoconf. 3152for ac_file in $ac_files '' 3153do 3154 test -f "$ac_file" || continue 3155 case $ac_file in 3156 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3157 ;; 3158 [ab].out ) 3159 # We found the default executable, but exeext='' is most 3160 # certainly right. 3161 break;; 3162 *.* ) 3163 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3164 then :; else 3165 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3166 fi 3167 # We set ac_cv_exeext here because the later test for it is not 3168 # safe: cross compilers may not add the suffix if given an `-o' 3169 # argument, so we may need to know it at that point already. 3170 # Even if this section looks crufty: it has the advantage of 3171 # actually working. 3172 break;; 3173 * ) 3174 break;; 3175 esac 3176done 3177test "$ac_cv_exeext" = no && ac_cv_exeext= 3178 3179else 3180 ac_file='' 3181fi 3182if test -z "$ac_file"; then : 3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3184$as_echo "no" >&6; } 3185$as_echo "$as_me: failed program was:" >&5 3186sed 's/^/| /' conftest.$ac_ext >&5 3187 3188{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3190{ as_fn_set_status 77 3191as_fn_error "C compiler cannot create executables 3192See \`config.log' for more details." "$LINENO" 5; }; } 3193else 3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3195$as_echo "yes" >&6; } 3196fi 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3198$as_echo_n "checking for C compiler default output file name... " >&6; } 3199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3200$as_echo "$ac_file" >&6; } 3201ac_exeext=$ac_cv_exeext 3202 3203rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3204ac_clean_files=$ac_clean_files_save 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3206$as_echo_n "checking for suffix of executables... " >&6; } 3207if { { ac_try="$ac_link" 3208case "(($ac_try" in 3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3210 *) ac_try_echo=$ac_try;; 3211esac 3212eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3213$as_echo "$ac_try_echo"; } >&5 3214 (eval "$ac_link") 2>&5 3215 ac_status=$? 3216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3217 test $ac_status = 0; }; then : 3218 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3219# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3220# work properly (i.e., refer to `conftest.exe'), while it won't with 3221# `rm'. 3222for ac_file in conftest.exe conftest conftest.*; do 3223 test -f "$ac_file" || continue 3224 case $ac_file in 3225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3226 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3227 break;; 3228 * ) break;; 3229 esac 3230done 3231else 3232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3233$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3234as_fn_error "cannot compute suffix of executables: cannot compile and link 3235See \`config.log' for more details." "$LINENO" 5; } 3236fi 3237rm -f conftest conftest$ac_cv_exeext 3238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3239$as_echo "$ac_cv_exeext" >&6; } 3240 3241rm -f conftest.$ac_ext 3242EXEEXT=$ac_cv_exeext 3243ac_exeext=$EXEEXT 3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3245/* end confdefs.h. */ 3246#include <stdio.h> 3247int 3248main () 3249{ 3250FILE *f = fopen ("conftest.out", "w"); 3251 return ferror (f) || fclose (f) != 0; 3252 3253 ; 3254 return 0; 3255} 3256_ACEOF 3257ac_clean_files="$ac_clean_files conftest.out" 3258# Check that the compiler produces executables we can run. If not, either 3259# the compiler is broken, or we cross compile. 3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3261$as_echo_n "checking whether we are cross compiling... " >&6; } 3262if test "$cross_compiling" != yes; then 3263 { { ac_try="$ac_link" 3264case "(($ac_try" in 3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3266 *) ac_try_echo=$ac_try;; 3267esac 3268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3269$as_echo "$ac_try_echo"; } >&5 3270 (eval "$ac_link") 2>&5 3271 ac_status=$? 3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3273 test $ac_status = 0; } 3274 if { ac_try='./conftest$ac_cv_exeext' 3275 { { case "(($ac_try" in 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3277 *) ac_try_echo=$ac_try;; 3278esac 3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3280$as_echo "$ac_try_echo"; } >&5 3281 (eval "$ac_try") 2>&5 3282 ac_status=$? 3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3284 test $ac_status = 0; }; }; then 3285 cross_compiling=no 3286 else 3287 if test "$cross_compiling" = maybe; then 3288 cross_compiling=yes 3289 else 3290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3291$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3292as_fn_error "cannot run C compiled programs. 3293If you meant to cross compile, use \`--host'. 3294See \`config.log' for more details." "$LINENO" 5; } 3295 fi 3296 fi 3297fi 3298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3299$as_echo "$cross_compiling" >&6; } 3300 3301rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3302ac_clean_files=$ac_clean_files_save 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3304$as_echo_n "checking for suffix of object files... " >&6; } 3305if test "${ac_cv_objext+set}" = set; then : 3306 $as_echo_n "(cached) " >&6 3307else 3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3309/* end confdefs.h. */ 3310 3311int 3312main () 3313{ 3314 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319rm -f conftest.o conftest.obj 3320if { { ac_try="$ac_compile" 3321case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324esac 3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3326$as_echo "$ac_try_echo"; } >&5 3327 (eval "$ac_compile") 2>&5 3328 ac_status=$? 3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3330 test $ac_status = 0; }; then : 3331 for ac_file in conftest.o conftest.obj conftest.*; do 3332 test -f "$ac_file" || continue; 3333 case $ac_file in 3334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3335 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3336 break;; 3337 esac 3338done 3339else 3340 $as_echo "$as_me: failed program was:" >&5 3341sed 's/^/| /' conftest.$ac_ext >&5 3342 3343{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3345as_fn_error "cannot compute suffix of object files: cannot compile 3346See \`config.log' for more details." "$LINENO" 5; } 3347fi 3348rm -f conftest.$ac_cv_objext conftest.$ac_ext 3349fi 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3351$as_echo "$ac_cv_objext" >&6; } 3352OBJEXT=$ac_cv_objext 3353ac_objext=$OBJEXT 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3355$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3356if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3357 $as_echo_n "(cached) " >&6 3358else 3359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3360/* end confdefs.h. */ 3361 3362int 3363main () 3364{ 3365#ifndef __GNUC__ 3366 choke me 3367#endif 3368 3369 ; 3370 return 0; 3371} 3372_ACEOF 3373if ac_fn_c_try_compile "$LINENO"; then : 3374 ac_compiler_gnu=yes 3375else 3376 ac_compiler_gnu=no 3377fi 3378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3379ac_cv_c_compiler_gnu=$ac_compiler_gnu 3380 3381fi 3382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3383$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3384if test $ac_compiler_gnu = yes; then 3385 GCC=yes 3386else 3387 GCC= 3388fi 3389ac_test_CFLAGS=${CFLAGS+set} 3390ac_save_CFLAGS=$CFLAGS 3391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3392$as_echo_n "checking whether $CC accepts -g... " >&6; } 3393if test "${ac_cv_prog_cc_g+set}" = set; then : 3394 $as_echo_n "(cached) " >&6 3395else 3396 ac_save_c_werror_flag=$ac_c_werror_flag 3397 ac_c_werror_flag=yes 3398 ac_cv_prog_cc_g=no 3399 CFLAGS="-g" 3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401/* end confdefs.h. */ 3402 3403int 3404main () 3405{ 3406 3407 ; 3408 return 0; 3409} 3410_ACEOF 3411if ac_fn_c_try_compile "$LINENO"; then : 3412 ac_cv_prog_cc_g=yes 3413else 3414 CFLAGS="" 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3416/* end confdefs.h. */ 3417 3418int 3419main () 3420{ 3421 3422 ; 3423 return 0; 3424} 3425_ACEOF 3426if ac_fn_c_try_compile "$LINENO"; then : 3427 3428else 3429 ac_c_werror_flag=$ac_save_c_werror_flag 3430 CFLAGS="-g" 3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3432/* end confdefs.h. */ 3433 3434int 3435main () 3436{ 3437 3438 ; 3439 return 0; 3440} 3441_ACEOF 3442if ac_fn_c_try_compile "$LINENO"; then : 3443 ac_cv_prog_cc_g=yes 3444fi 3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3446fi 3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3448fi 3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450 ac_c_werror_flag=$ac_save_c_werror_flag 3451fi 3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3453$as_echo "$ac_cv_prog_cc_g" >&6; } 3454if test "$ac_test_CFLAGS" = set; then 3455 CFLAGS=$ac_save_CFLAGS 3456elif test $ac_cv_prog_cc_g = yes; then 3457 if test "$GCC" = yes; then 3458 CFLAGS="-g -O2" 3459 else 3460 CFLAGS="-g" 3461 fi 3462else 3463 if test "$GCC" = yes; then 3464 CFLAGS="-O2" 3465 else 3466 CFLAGS= 3467 fi 3468fi 3469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3470$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3471if test "${ac_cv_prog_cc_c89+set}" = set; then : 3472 $as_echo_n "(cached) " >&6 3473else 3474 ac_cv_prog_cc_c89=no 3475ac_save_CC=$CC 3476cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3477/* end confdefs.h. */ 3478#include <stdarg.h> 3479#include <stdio.h> 3480#include <sys/types.h> 3481#include <sys/stat.h> 3482/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3483struct buf { int x; }; 3484FILE * (*rcsopen) (struct buf *, struct stat *, int); 3485static char *e (p, i) 3486 char **p; 3487 int i; 3488{ 3489 return p[i]; 3490} 3491static char *f (char * (*g) (char **, int), char **p, ...) 3492{ 3493 char *s; 3494 va_list v; 3495 va_start (v,p); 3496 s = g (p, va_arg (v,int)); 3497 va_end (v); 3498 return s; 3499} 3500 3501/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3502 function prototypes and stuff, but not '\xHH' hex character constants. 3503 These don't provoke an error unfortunately, instead are silently treated 3504 as 'x'. The following induces an error, until -std is added to get 3505 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3506 array size at least. It's necessary to write '\x00'==0 to get something 3507 that's true only with -std. */ 3508int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3509 3510/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3511 inside strings and character constants. */ 3512#define FOO(x) 'x' 3513int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3514 3515int test (int i, double x); 3516struct s1 {int (*f) (int a);}; 3517struct s2 {int (*f) (double a);}; 3518int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3519int argc; 3520char **argv; 3521int 3522main () 3523{ 3524return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3525 ; 3526 return 0; 3527} 3528_ACEOF 3529for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3530 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3531do 3532 CC="$ac_save_CC $ac_arg" 3533 if ac_fn_c_try_compile "$LINENO"; then : 3534 ac_cv_prog_cc_c89=$ac_arg 3535fi 3536rm -f core conftest.err conftest.$ac_objext 3537 test "x$ac_cv_prog_cc_c89" != "xno" && break 3538done 3539rm -f conftest.$ac_ext 3540CC=$ac_save_CC 3541 3542fi 3543# AC_CACHE_VAL 3544case "x$ac_cv_prog_cc_c89" in 3545 x) 3546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3547$as_echo "none needed" >&6; } ;; 3548 xno) 3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3550$as_echo "unsupported" >&6; } ;; 3551 *) 3552 CC="$CC $ac_cv_prog_cc_c89" 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3554$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3555esac 3556if test "x$ac_cv_prog_cc_c89" != xno; then : 3557 3558fi 3559 3560ac_ext=c 3561ac_cpp='$CPP $CPPFLAGS' 3562ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3563ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3564ac_compiler_gnu=$ac_cv_c_compiler_gnu 3565 3566 3567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 3568$as_echo_n "checking for dlopen in -ldl... " >&6; } 3569if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 3570 $as_echo_n "(cached) " >&6 3571else 3572 ac_check_lib_save_LIBS=$LIBS 3573LIBS="-ldl $LIBS" 3574cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3575/* end confdefs.h. */ 3576 3577/* Override any GCC internal prototype to avoid an error. 3578 Use char because int might match the return type of a GCC 3579 builtin and then its argument prototype would still apply. */ 3580#ifdef __cplusplus 3581extern "C" 3582#endif 3583char dlopen (); 3584int 3585main () 3586{ 3587return dlopen (); 3588 ; 3589 return 0; 3590} 3591_ACEOF 3592if ac_fn_c_try_link "$LINENO"; then : 3593 ac_cv_lib_dl_dlopen=yes 3594else 3595 ac_cv_lib_dl_dlopen=no 3596fi 3597rm -f core conftest.err conftest.$ac_objext \ 3598 conftest$ac_exeext conftest.$ac_ext 3599LIBS=$ac_check_lib_save_LIBS 3600fi 3601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 3602$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 3603if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 3604 DLOPEN_LIB=-ldl 3605 3606$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h 3607 3608fi 3609 3610 3611WITH_DIET_LIBC= 3612 3613# Check whether --with-diet-libc was given. 3614if test "${with_diet_libc+set}" = set; then : 3615 withval=$with_diet_libc; CC="diet cc -nostdinc" 3616WITH_DIET_LIBC=yes 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 3618$as_echo "CC=$CC" >&6; } 3619fi 3620 3621# Check whether --with-cc was given. 3622if test "${with_cc+set}" = set; then : 3623 withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5 3624fi 3625 3626 3627# Check whether --with-ccopts was given. 3628if test "${with_ccopts+set}" = set; then : 3629 withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 3630fi 3631 3632 3633# Check whether --with-ldopts was given. 3634if test "${with_ldopts+set}" = set; then : 3635 withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 3636fi 3637 3638ac_ext=c 3639ac_cpp='$CPP $CPPFLAGS' 3640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3642ac_compiler_gnu=$ac_cv_c_compiler_gnu 3643if test -n "$ac_tool_prefix"; then 3644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3645set dummy ${ac_tool_prefix}gcc; ac_word=$2 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3647$as_echo_n "checking for $ac_word... " >&6; } 3648if test "${ac_cv_prog_CC+set}" = set; then : 3649 $as_echo_n "(cached) " >&6 3650else 3651 if test -n "$CC"; then 3652 ac_cv_prog_CC="$CC" # Let the user override the test. 3653else 3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3655for as_dir in $PATH 3656do 3657 IFS=$as_save_IFS 3658 test -z "$as_dir" && as_dir=. 3659 for ac_exec_ext in '' $ac_executable_extensions; do 3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3661 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3663 break 2 3664 fi 3665done 3666 done 3667IFS=$as_save_IFS 3668 3669fi 3670fi 3671CC=$ac_cv_prog_CC 3672if test -n "$CC"; then 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3674$as_echo "$CC" >&6; } 3675else 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3677$as_echo "no" >&6; } 3678fi 3679 3680 3681fi 3682if test -z "$ac_cv_prog_CC"; then 3683 ac_ct_CC=$CC 3684 # Extract the first word of "gcc", so it can be a program name with args. 3685set dummy gcc; ac_word=$2 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3687$as_echo_n "checking for $ac_word... " >&6; } 3688if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3689 $as_echo_n "(cached) " >&6 3690else 3691 if test -n "$ac_ct_CC"; then 3692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3693else 3694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3695for as_dir in $PATH 3696do 3697 IFS=$as_save_IFS 3698 test -z "$as_dir" && as_dir=. 3699 for ac_exec_ext in '' $ac_executable_extensions; do 3700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3701 ac_cv_prog_ac_ct_CC="gcc" 3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3703 break 2 3704 fi 3705done 3706 done 3707IFS=$as_save_IFS 3708 3709fi 3710fi 3711ac_ct_CC=$ac_cv_prog_ac_ct_CC 3712if test -n "$ac_ct_CC"; then 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3714$as_echo "$ac_ct_CC" >&6; } 3715else 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3717$as_echo "no" >&6; } 3718fi 3719 3720 if test "x$ac_ct_CC" = x; then 3721 CC="" 3722 else 3723 case $cross_compiling:$ac_tool_warned in 3724yes:) 3725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3727ac_tool_warned=yes ;; 3728esac 3729 CC=$ac_ct_CC 3730 fi 3731else 3732 CC="$ac_cv_prog_CC" 3733fi 3734 3735if test -z "$CC"; then 3736 if test -n "$ac_tool_prefix"; then 3737 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3738set dummy ${ac_tool_prefix}cc; ac_word=$2 3739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3740$as_echo_n "checking for $ac_word... " >&6; } 3741if test "${ac_cv_prog_CC+set}" = set; then : 3742 $as_echo_n "(cached) " >&6 3743else 3744 if test -n "$CC"; then 3745 ac_cv_prog_CC="$CC" # Let the user override the test. 3746else 3747as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3748for as_dir in $PATH 3749do 3750 IFS=$as_save_IFS 3751 test -z "$as_dir" && as_dir=. 3752 for ac_exec_ext in '' $ac_executable_extensions; do 3753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3754 ac_cv_prog_CC="${ac_tool_prefix}cc" 3755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3756 break 2 3757 fi 3758done 3759 done 3760IFS=$as_save_IFS 3761 3762fi 3763fi 3764CC=$ac_cv_prog_CC 3765if test -n "$CC"; then 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3767$as_echo "$CC" >&6; } 3768else 3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3770$as_echo "no" >&6; } 3771fi 3772 3773 3774 fi 3775fi 3776if test -z "$CC"; then 3777 # Extract the first word of "cc", so it can be a program name with args. 3778set dummy cc; ac_word=$2 3779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3780$as_echo_n "checking for $ac_word... " >&6; } 3781if test "${ac_cv_prog_CC+set}" = set; then : 3782 $as_echo_n "(cached) " >&6 3783else 3784 if test -n "$CC"; then 3785 ac_cv_prog_CC="$CC" # Let the user override the test. 3786else 3787 ac_prog_rejected=no 3788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3789for as_dir in $PATH 3790do 3791 IFS=$as_save_IFS 3792 test -z "$as_dir" && as_dir=. 3793 for ac_exec_ext in '' $ac_executable_extensions; do 3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3795 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3796 ac_prog_rejected=yes 3797 continue 3798 fi 3799 ac_cv_prog_CC="cc" 3800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3801 break 2 3802 fi 3803done 3804 done 3805IFS=$as_save_IFS 3806 3807if test $ac_prog_rejected = yes; then 3808 # We found a bogon in the path, so make sure we never use it. 3809 set dummy $ac_cv_prog_CC 3810 shift 3811 if test $# != 0; then 3812 # We chose a different compiler from the bogus one. 3813 # However, it has the same basename, so the bogon will be chosen 3814 # first if we set CC to just the basename; use the full file name. 3815 shift 3816 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3817 fi 3818fi 3819fi 3820fi 3821CC=$ac_cv_prog_CC 3822if test -n "$CC"; then 3823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3824$as_echo "$CC" >&6; } 3825else 3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3827$as_echo "no" >&6; } 3828fi 3829 3830 3831fi 3832if test -z "$CC"; then 3833 if test -n "$ac_tool_prefix"; then 3834 for ac_prog in cl.exe 3835 do 3836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3837set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3839$as_echo_n "checking for $ac_word... " >&6; } 3840if test "${ac_cv_prog_CC+set}" = set; then : 3841 $as_echo_n "(cached) " >&6 3842else 3843 if test -n "$CC"; then 3844 ac_cv_prog_CC="$CC" # Let the user override the test. 3845else 3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3847for as_dir in $PATH 3848do 3849 IFS=$as_save_IFS 3850 test -z "$as_dir" && as_dir=. 3851 for ac_exec_ext in '' $ac_executable_extensions; do 3852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3853 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3855 break 2 3856 fi 3857done 3858 done 3859IFS=$as_save_IFS 3860 3861fi 3862fi 3863CC=$ac_cv_prog_CC 3864if test -n "$CC"; then 3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3866$as_echo "$CC" >&6; } 3867else 3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3869$as_echo "no" >&6; } 3870fi 3871 3872 3873 test -n "$CC" && break 3874 done 3875fi 3876if test -z "$CC"; then 3877 ac_ct_CC=$CC 3878 for ac_prog in cl.exe 3879do 3880 # Extract the first word of "$ac_prog", so it can be a program name with args. 3881set dummy $ac_prog; ac_word=$2 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3883$as_echo_n "checking for $ac_word... " >&6; } 3884if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3885 $as_echo_n "(cached) " >&6 3886else 3887 if test -n "$ac_ct_CC"; then 3888 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3889else 3890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3891for as_dir in $PATH 3892do 3893 IFS=$as_save_IFS 3894 test -z "$as_dir" && as_dir=. 3895 for ac_exec_ext in '' $ac_executable_extensions; do 3896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3897 ac_cv_prog_ac_ct_CC="$ac_prog" 3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3899 break 2 3900 fi 3901done 3902 done 3903IFS=$as_save_IFS 3904 3905fi 3906fi 3907ac_ct_CC=$ac_cv_prog_ac_ct_CC 3908if test -n "$ac_ct_CC"; then 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3910$as_echo "$ac_ct_CC" >&6; } 3911else 3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3913$as_echo "no" >&6; } 3914fi 3915 3916 3917 test -n "$ac_ct_CC" && break 3918done 3919 3920 if test "x$ac_ct_CC" = x; then 3921 CC="" 3922 else 3923 case $cross_compiling:$ac_tool_warned in 3924yes:) 3925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3927ac_tool_warned=yes ;; 3928esac 3929 CC=$ac_ct_CC 3930 fi 3931fi 3932 3933fi 3934 3935 3936test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3937$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3938as_fn_error "no acceptable C compiler found in \$PATH 3939See \`config.log' for more details." "$LINENO" 5; } 3940 3941# Provide some information about the compiler. 3942$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3943set X $ac_compile 3944ac_compiler=$2 3945for ac_option in --version -v -V -qversion; do 3946 { { ac_try="$ac_compiler $ac_option >&5" 3947case "(($ac_try" in 3948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3949 *) ac_try_echo=$ac_try;; 3950esac 3951eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3952$as_echo "$ac_try_echo"; } >&5 3953 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3954 ac_status=$? 3955 if test -s conftest.err; then 3956 sed '10a\ 3957... rest of stderr output deleted ... 3958 10q' conftest.err >conftest.er1 3959 cat conftest.er1 >&5 3960 fi 3961 rm -f conftest.er1 conftest.err 3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3963 test $ac_status = 0; } 3964done 3965 3966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3967$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3968if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3969 $as_echo_n "(cached) " >&6 3970else 3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3972/* end confdefs.h. */ 3973 3974int 3975main () 3976{ 3977#ifndef __GNUC__ 3978 choke me 3979#endif 3980 3981 ; 3982 return 0; 3983} 3984_ACEOF 3985if ac_fn_c_try_compile "$LINENO"; then : 3986 ac_compiler_gnu=yes 3987else 3988 ac_compiler_gnu=no 3989fi 3990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3991ac_cv_c_compiler_gnu=$ac_compiler_gnu 3992 3993fi 3994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3995$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3996if test $ac_compiler_gnu = yes; then 3997 GCC=yes 3998else 3999 GCC= 4000fi 4001ac_test_CFLAGS=${CFLAGS+set} 4002ac_save_CFLAGS=$CFLAGS 4003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4004$as_echo_n "checking whether $CC accepts -g... " >&6; } 4005if test "${ac_cv_prog_cc_g+set}" = set; then : 4006 $as_echo_n "(cached) " >&6 4007else 4008 ac_save_c_werror_flag=$ac_c_werror_flag 4009 ac_c_werror_flag=yes 4010 ac_cv_prog_cc_g=no 4011 CFLAGS="-g" 4012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4013/* end confdefs.h. */ 4014 4015int 4016main () 4017{ 4018 4019 ; 4020 return 0; 4021} 4022_ACEOF 4023if ac_fn_c_try_compile "$LINENO"; then : 4024 ac_cv_prog_cc_g=yes 4025else 4026 CFLAGS="" 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029 4030int 4031main () 4032{ 4033 4034 ; 4035 return 0; 4036} 4037_ACEOF 4038if ac_fn_c_try_compile "$LINENO"; then : 4039 4040else 4041 ac_c_werror_flag=$ac_save_c_werror_flag 4042 CFLAGS="-g" 4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4044/* end confdefs.h. */ 4045 4046int 4047main () 4048{ 4049 4050 ; 4051 return 0; 4052} 4053_ACEOF 4054if ac_fn_c_try_compile "$LINENO"; then : 4055 ac_cv_prog_cc_g=yes 4056fi 4057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4058fi 4059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4060fi 4061rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062 ac_c_werror_flag=$ac_save_c_werror_flag 4063fi 4064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4065$as_echo "$ac_cv_prog_cc_g" >&6; } 4066if test "$ac_test_CFLAGS" = set; then 4067 CFLAGS=$ac_save_CFLAGS 4068elif test $ac_cv_prog_cc_g = yes; then 4069 if test "$GCC" = yes; then 4070 CFLAGS="-g -O2" 4071 else 4072 CFLAGS="-g" 4073 fi 4074else 4075 if test "$GCC" = yes; then 4076 CFLAGS="-O2" 4077 else 4078 CFLAGS= 4079 fi 4080fi 4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4082$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4083if test "${ac_cv_prog_cc_c89+set}" = set; then : 4084 $as_echo_n "(cached) " >&6 4085else 4086 ac_cv_prog_cc_c89=no 4087ac_save_CC=$CC 4088cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4089/* end confdefs.h. */ 4090#include <stdarg.h> 4091#include <stdio.h> 4092#include <sys/types.h> 4093#include <sys/stat.h> 4094/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4095struct buf { int x; }; 4096FILE * (*rcsopen) (struct buf *, struct stat *, int); 4097static char *e (p, i) 4098 char **p; 4099 int i; 4100{ 4101 return p[i]; 4102} 4103static char *f (char * (*g) (char **, int), char **p, ...) 4104{ 4105 char *s; 4106 va_list v; 4107 va_start (v,p); 4108 s = g (p, va_arg (v,int)); 4109 va_end (v); 4110 return s; 4111} 4112 4113/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4114 function prototypes and stuff, but not '\xHH' hex character constants. 4115 These don't provoke an error unfortunately, instead are silently treated 4116 as 'x'. The following induces an error, until -std is added to get 4117 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4118 array size at least. It's necessary to write '\x00'==0 to get something 4119 that's true only with -std. */ 4120int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4121 4122/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4123 inside strings and character constants. */ 4124#define FOO(x) 'x' 4125int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4126 4127int test (int i, double x); 4128struct s1 {int (*f) (int a);}; 4129struct s2 {int (*f) (double a);}; 4130int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4131int argc; 4132char **argv; 4133int 4134main () 4135{ 4136return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4137 ; 4138 return 0; 4139} 4140_ACEOF 4141for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4142 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4143do 4144 CC="$ac_save_CC $ac_arg" 4145 if ac_fn_c_try_compile "$LINENO"; then : 4146 ac_cv_prog_cc_c89=$ac_arg 4147fi 4148rm -f core conftest.err conftest.$ac_objext 4149 test "x$ac_cv_prog_cc_c89" != "xno" && break 4150done 4151rm -f conftest.$ac_ext 4152CC=$ac_save_CC 4153 4154fi 4155# AC_CACHE_VAL 4156case "x$ac_cv_prog_cc_c89" in 4157 x) 4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4159$as_echo "none needed" >&6; } ;; 4160 xno) 4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4162$as_echo "unsupported" >&6; } ;; 4163 *) 4164 CC="$CC $ac_cv_prog_cc_c89" 4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4166$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4167esac 4168if test "x$ac_cv_prog_cc_c89" != xno; then : 4169 4170fi 4171 4172ac_ext=c 4173ac_cpp='$CPP $CPPFLAGS' 4174ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4175ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4176ac_compiler_gnu=$ac_cv_c_compiler_gnu 4177 4178if test "$GCC" = yes; then 4179 RDYNAMIC="-rdynamic" 4180 4181fi 4182ac_ext=c 4183ac_cpp='$CPP $CPPFLAGS' 4184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4186ac_compiler_gnu=$ac_cv_c_compiler_gnu 4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4188$as_echo_n "checking how to run the C preprocessor... " >&6; } 4189# On Suns, sometimes $CPP names a directory. 4190if test -n "$CPP" && test -d "$CPP"; then 4191 CPP= 4192fi 4193if test -z "$CPP"; then 4194 if test "${ac_cv_prog_CPP+set}" = set; then : 4195 $as_echo_n "(cached) " >&6 4196else 4197 # Double quotes because CPP needs to be expanded 4198 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4199 do 4200 ac_preproc_ok=false 4201for ac_c_preproc_warn_flag in '' yes 4202do 4203 # Use a header file that comes with gcc, so configuring glibc 4204 # with a fresh cross-compiler works. 4205 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4206 # <limits.h> exists even on freestanding compilers. 4207 # On the NeXT, cc -E runs the code through the compiler's parser, 4208 # not just through cpp. "Syntax error" is here to catch this case. 4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4210/* end confdefs.h. */ 4211#ifdef __STDC__ 4212# include <limits.h> 4213#else 4214# include <assert.h> 4215#endif 4216 Syntax error 4217_ACEOF 4218if ac_fn_c_try_cpp "$LINENO"; then : 4219 4220else 4221 # Broken: fails on valid input. 4222continue 4223fi 4224rm -f conftest.err conftest.$ac_ext 4225 4226 # OK, works on sane cases. Now check whether nonexistent headers 4227 # can be detected and how. 4228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4229/* end confdefs.h. */ 4230#include <ac_nonexistent.h> 4231_ACEOF 4232if ac_fn_c_try_cpp "$LINENO"; then : 4233 # Broken: success on invalid input. 4234continue 4235else 4236 # Passes both tests. 4237ac_preproc_ok=: 4238break 4239fi 4240rm -f conftest.err conftest.$ac_ext 4241 4242done 4243# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4244rm -f conftest.err conftest.$ac_ext 4245if $ac_preproc_ok; then : 4246 break 4247fi 4248 4249 done 4250 ac_cv_prog_CPP=$CPP 4251 4252fi 4253 CPP=$ac_cv_prog_CPP 4254else 4255 ac_cv_prog_CPP=$CPP 4256fi 4257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4258$as_echo "$CPP" >&6; } 4259ac_preproc_ok=false 4260for ac_c_preproc_warn_flag in '' yes 4261do 4262 # Use a header file that comes with gcc, so configuring glibc 4263 # with a fresh cross-compiler works. 4264 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4265 # <limits.h> exists even on freestanding compilers. 4266 # On the NeXT, cc -E runs the code through the compiler's parser, 4267 # not just through cpp. "Syntax error" is here to catch this case. 4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4269/* end confdefs.h. */ 4270#ifdef __STDC__ 4271# include <limits.h> 4272#else 4273# include <assert.h> 4274#endif 4275 Syntax error 4276_ACEOF 4277if ac_fn_c_try_cpp "$LINENO"; then : 4278 4279else 4280 # Broken: fails on valid input. 4281continue 4282fi 4283rm -f conftest.err conftest.$ac_ext 4284 4285 # OK, works on sane cases. Now check whether nonexistent headers 4286 # can be detected and how. 4287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4288/* end confdefs.h. */ 4289#include <ac_nonexistent.h> 4290_ACEOF 4291if ac_fn_c_try_cpp "$LINENO"; then : 4292 # Broken: success on invalid input. 4293continue 4294else 4295 # Passes both tests. 4296ac_preproc_ok=: 4297break 4298fi 4299rm -f conftest.err conftest.$ac_ext 4300 4301done 4302# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4303rm -f conftest.err conftest.$ac_ext 4304if $ac_preproc_ok; then : 4305 4306else 4307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4308$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4309as_fn_error "C preprocessor \"$CPP\" fails sanity check 4310See \`config.log' for more details." "$LINENO" 5; } 4311fi 4312 4313ac_ext=c 4314ac_cpp='$CPP $CPPFLAGS' 4315ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4316ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4317ac_compiler_gnu=$ac_cv_c_compiler_gnu 4318 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 4320$as_echo_n "checking for additional special compiler flags... " >&6; } 4321if test "$GCC" = yes 4322then 4323 case "$host_cpu" in 4324 alpha) addcflags="-mieee" ;; 4325 esac 4326fi 4327if test "x$addcflags" != x 4328then 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 4330$as_echo "$addcflags" >&6; } 4331 CFLAGS="$addcflags $CFLAGS" 4332else 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 4334$as_echo "(none)" >&6; } 4335fi 4336LIB_EXT=.a 4337STATIC_LIB_EXT=.a 4338PROFILED_LIB_EXT=.a 4339 4340# Check whether --with-root-prefix was given. 4341if test "${with_root_prefix+set}" = set; then : 4342 withval=$with_root_prefix; root_prefix=$withval 4343else 4344 root_prefix=NONE 4345fi 4346# Check whether --enable-maintainer-mode was given. 4347if test "${enable_maintainer_mode+set}" = set; then : 4348 enableval=$enable_maintainer_mode; if test "$enableval" = "no" 4349then 4350 MAINTAINER_CMT=# 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 4352$as_echo "Disabling maintainer mode" >&6; } 4353else 4354 MAINTAINER_CMT= 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 4356$as_echo "Enabling maintainer mode" >&6; } 4357fi 4358 4359else 4360 MAINTAINER_CMT=# 4361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 4362$as_echo "Disabling maintainer mode by default" >&6; } 4363 4364fi 4365 4366 4367# Check whether --enable-symlink-install was given. 4368if test "${enable_symlink_install+set}" = set; then : 4369 enableval=$enable_symlink_install; if test "$enableval" = "no" 4370then 4371 LINK_INSTALL_FLAGS=-f 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 4373$as_echo "Disabling symlinks for install" >&6; } 4374else 4375 LINK_INSTALL_FLAGS=-sf 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 4377$as_echo "Enabling symlinks for install" >&6; } 4378fi 4379 4380else 4381 LINK_INSTALL_FLAGS=-f 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 4383$as_echo "Disabling symlinks for install by default" >&6; } 4384 4385fi 4386 4387 4388# Check whether --enable-symlink-relative-symlinks was given. 4389if test "${enable_symlink_relative_symlinks+set}" = set; then : 4390 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" 4391then 4392 SYMLINK_RELATIVE= 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 4394$as_echo "Disabling relative symlinks for install" >&6; } 4395else 4396 SYMLINK_RELATIVE=--relative 4397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 4398$as_echo "Enabling symlinks for install" >&6; } 4399fi 4400 4401else 4402 SYMLINK_RELATIVE= 4403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 4404$as_echo "Disabling relative symlinks for install by default" >&6; } 4405 4406fi 4407 4408 4409# Check whether --enable-symlink-build was given. 4410if test "${enable_symlink_build+set}" = set; then : 4411 enableval=$enable_symlink_build; if test "$enableval" = "no" 4412then 4413 LINK_BUILD_FLAGS= 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 4415$as_echo "Disabling symlinks for build" >&6; } 4416else 4417 LINK_BUILD_FLAGS=-s 4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 4419$as_echo "Enabling symlinks for build" >&6; } 4420fi 4421 4422else 4423 LINK_BUILD_FLAGS= 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 4425$as_echo "Disabling symlinks for build by default" >&6; } 4426 4427fi 4428 4429 4430# Check whether --enable-verbose-makecmds was given. 4431if test "${enable_verbose_makecmds+set}" = set; then : 4432 enableval=$enable_verbose_makecmds; if test "$enableval" = "no" 4433then 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 4435$as_echo "Disabling verbose make commands" >&6; } 4436 E=@echo 4437 Q=@ 4438else 4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 4440$as_echo "Enabling verbose make commands" >&6; } 4441 E=@\\# 4442 Q= 4443fi 4444 4445else 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 4447$as_echo "Disabling verbose make commands" >&6; } 4448E=@echo 4449Q=@ 4450 4451fi 4452 4453 4454 4455# Check whether --enable-compression was given. 4456if test "${enable_compression+set}" = set; then : 4457 enableval=$enable_compression; if test "$enableval" = "no" 4458then 4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 4460$as_echo "Disabling compression support" >&6; } 4461else 4462 4463$as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h 4464 4465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 4466$as_echo "Enabling compression support" >&6; } 4467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 4468$as_echo "$as_me: WARNING: Compression support is experimental" >&2;} 4469fi 4470 4471else 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 4473$as_echo "Disabling compression support by default" >&6; } 4474 4475fi 4476 4477 4478# Check whether --enable-htree was given. 4479if test "${enable_htree+set}" = set; then : 4480 enableval=$enable_htree; if test "$enableval" = "no" 4481then 4482 HTREE_CMT=# 4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 4484$as_echo "Disabling htree directory support" >&6; } 4485else 4486 HTREE_CMT= 4487 $as_echo "#define ENABLE_HTREE 1" >>confdefs.h 4488 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 4490$as_echo "Enabling htree directory support" >&6; } 4491fi 4492 4493else 4494 HTREE_CMT= 4495$as_echo "#define ENABLE_HTREE 1" >>confdefs.h 4496 4497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 4498$as_echo "Enabling htree directory support by default" >&6; } 4499 4500fi 4501 4502 4503E2_PKG_CONFIG_STATIC=--static 4504LDFLAG_DYNAMIC= 4505PRIVATE_LIBS_CMT= 4506# Check whether --enable-elf-shlibs was given. 4507if test "${enable_elf_shlibs+set}" = set; then : 4508 enableval=$enable_elf_shlibs; if test "$enableval" = "no" 4509then 4510 ELF_CMT=# 4511 MAKEFILE_ELF=/dev/null 4512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 4513$as_echo "Disabling ELF shared libraries" >&6; } 4514else 4515 E2_PKG_CONFIG_STATIC= 4516 ELF_CMT= 4517 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib 4518 case "$host_os" in 4519 solaris2.*) 4520 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib 4521 ;; 4522 esac 4523 BINARY_TYPE=elfbin 4524 LIB_EXT=.so 4525 PRIVATE_LIBS_CMT=# 4526 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' 4527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 4528$as_echo "Enabling ELF shared libraries" >&6; } 4529fi 4530 4531else 4532 MAKEFILE_ELF=/dev/null 4533ELF_CMT=# 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 4535$as_echo "Disabling ELF shared libraries by default" >&6; } 4536 4537fi 4538 4539 4540 4541# Check whether --enable-bsd-shlibs was given. 4542if test "${enable_bsd_shlibs+set}" = set; then : 4543 enableval=$enable_bsd_shlibs; if test "$enableval" = "no" 4544then 4545 BSDLIB_CMT=# 4546 MAKEFILE_BSDLIB=/dev/null 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 4548$as_echo "Disabling BSD shared libraries" >&6; } 4549else 4550 E2_PKG_CONFIG_STATIC= 4551 BSDLIB_CMT= 4552 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib 4553 LIB_EXT=.so 4554 case "$host_os" in 4555 darwin*) 4556 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib 4557 LIB_EXT=.dylib 4558 ;; 4559 esac 4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 4561$as_echo "Enabling BSD shared libraries" >&6; } 4562fi 4563 4564else 4565 MAKEFILE_BSDLIB=/dev/null 4566BSDLIB_CMT=# 4567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 4568$as_echo "Disabling BSD shared libraries by default" >&6; } 4569 4570fi 4571 4572 4573 4574# Check whether --enable-profile was given. 4575if test "${enable_profile+set}" = set; then : 4576 enableval=$enable_profile; if test "$enableval" = "no" 4577then 4578 PROFILE_CMT=# 4579 MAKEFILE_PROFILE=/dev/null 4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 4581$as_echo "Disabling profiling libraries" >&6; } 4582else 4583 PROFILE_CMT= 4584 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile 4585 PROFILED_LIB_EXT=_p.a 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 4587$as_echo "Building profiling libraries" >&6; } 4588fi 4589 4590else 4591 PROFILE_CMT=# 4592MAKEFILE_PROFILE=/dev/null 4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 4594$as_echo "Disabling profiling libraries by default" >&6; } 4595 4596fi 4597 4598 4599 4600# Check whether --enable-checker was given. 4601if test "${enable_checker+set}" = set; then : 4602 enableval=$enable_checker; if test "$enableval" = "no" 4603then 4604 CHECKER_CMT=# 4605 MAKEFILE_CHECKER=/dev/null 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5 4607$as_echo "Disabling checker libraries" >&6; } 4608else 4609 CHECKER_CMT= 4610 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5 4612$as_echo "Building checker libraries" >&6; } 4613fi 4614 4615else 4616 CHECKER_CMT=# 4617MAKEFILE_CHECKER=/dev/null 4618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5 4619$as_echo "Disabling checker libraries by default" >&6; } 4620 4621fi 4622 4623 4624 4625 4626 4627 4628 4629 4630# Check whether --enable-jbd-debug was given. 4631if test "${enable_jbd_debug+set}" = set; then : 4632 enableval=$enable_jbd_debug; if test "$enableval" = "no" 4633then 4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 4635$as_echo "Disabling journal debugging" >&6; } 4636else 4637 4638$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h 4639 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 4641$as_echo "Enabling journal debugging" >&6; } 4642fi 4643 4644else 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 4646$as_echo "Disabling journal debugging by default" >&6; } 4647 4648fi 4649 4650# Check whether --enable-blkid-debug was given. 4651if test "${enable_blkid_debug+set}" = set; then : 4652 enableval=$enable_blkid_debug; if test "$enableval" = "no" 4653then 4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 4655$as_echo "Disabling blkid debugging" >&6; } 4656else 4657 4658$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h 4659 4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 4661$as_echo "Enabling blkid debugging" >&6; } 4662fi 4663 4664else 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 4666$as_echo "Disabling blkid debugging by default" >&6; } 4667 4668fi 4669 4670# Check whether --enable-testio-debug was given. 4671if test "${enable_testio_debug+set}" = set; then : 4672 enableval=$enable_testio_debug; 4673if test "$enableval" = "no" 4674then 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 4676$as_echo "Disabling testio debugging" >&6; } 4677 TEST_IO_CMT="#" 4678else 4679 TEST_IO_CMT= 4680 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h 4681 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 4683$as_echo "Enabling testio debugging" >&6; } 4684fi 4685 4686else 4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 4688$as_echo "Enabling testio debugging by default" >&6; } 4689$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h 4690 4691TEST_IO_CMT= 4692 4693fi 4694 4695 4696 4697 4698if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4699 if test -n "$ac_tool_prefix"; then 4700 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4701set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4703$as_echo_n "checking for $ac_word... " >&6; } 4704if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4705 $as_echo_n "(cached) " >&6 4706else 4707 case $PKG_CONFIG in 4708 [\\/]* | ?:[\\/]*) 4709 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4710 ;; 4711 *) 4712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4713for as_dir in $PATH 4714do 4715 IFS=$as_save_IFS 4716 test -z "$as_dir" && as_dir=. 4717 for ac_exec_ext in '' $ac_executable_extensions; do 4718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4719 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4721 break 2 4722 fi 4723done 4724 done 4725IFS=$as_save_IFS 4726 4727 ;; 4728esac 4729fi 4730PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4731if test -n "$PKG_CONFIG"; then 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4733$as_echo "$PKG_CONFIG" >&6; } 4734else 4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4736$as_echo "no" >&6; } 4737fi 4738 4739 4740fi 4741if test -z "$ac_cv_path_PKG_CONFIG"; then 4742 ac_pt_PKG_CONFIG=$PKG_CONFIG 4743 # Extract the first word of "pkg-config", so it can be a program name with args. 4744set dummy pkg-config; ac_word=$2 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4746$as_echo_n "checking for $ac_word... " >&6; } 4747if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 case $ac_pt_PKG_CONFIG in 4751 [\\/]* | ?:[\\/]*) 4752 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4753 ;; 4754 *) 4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4756for as_dir in $PATH 4757do 4758 IFS=$as_save_IFS 4759 test -z "$as_dir" && as_dir=. 4760 for ac_exec_ext in '' $ac_executable_extensions; do 4761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4762 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4764 break 2 4765 fi 4766done 4767 done 4768IFS=$as_save_IFS 4769 4770 ;; 4771esac 4772fi 4773ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4774if test -n "$ac_pt_PKG_CONFIG"; then 4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4776$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4777else 4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4779$as_echo "no" >&6; } 4780fi 4781 4782 if test "x$ac_pt_PKG_CONFIG" = x; then 4783 PKG_CONFIG="" 4784 else 4785 case $cross_compiling:$ac_tool_warned in 4786yes:) 4787{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4788$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4789ac_tool_warned=yes ;; 4790esac 4791 PKG_CONFIG=$ac_pt_PKG_CONFIG 4792 fi 4793else 4794 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4795fi 4796 4797fi 4798if test -n "$PKG_CONFIG"; then 4799 _pkg_min_version=0.9.0 4800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4801$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4802 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4804$as_echo "yes" >&6; } 4805 else 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4807$as_echo "no" >&6; } 4808 PKG_CONFIG="" 4809 fi 4810 4811fi 4812LIBUUID= 4813DEPLIBUUID= 4814STATIC_LIBUUID= 4815DEPSTATIC_LIBUUID= 4816PROFILED_LIBUUID= 4817DEPPROFILED_LIBUUID= 4818UUID_CMT= 4819# Check whether --enable-libuuid was given. 4820if test "${enable_libuuid+set}" = set; then : 4821 enableval=$enable_libuuid; if test "$enableval" = "no" 4822then 4823 if test -z "$PKG_CONFIG"; then 4824 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 4825 fi 4826 4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 4828$as_echo_n "checking for uuid_generate in -luuid... " >&6; } 4829if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : 4830 $as_echo_n "(cached) " >&6 4831else 4832 ac_check_lib_save_LIBS=$LIBS 4833LIBS="-luuid $LIBUUID $LIBS" 4834cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4835/* end confdefs.h. */ 4836 4837/* Override any GCC internal prototype to avoid an error. 4838 Use char because int might match the return type of a GCC 4839 builtin and then its argument prototype would still apply. */ 4840#ifdef __cplusplus 4841extern "C" 4842#endif 4843char uuid_generate (); 4844int 4845main () 4846{ 4847return uuid_generate (); 4848 ; 4849 return 0; 4850} 4851_ACEOF 4852if ac_fn_c_try_link "$LINENO"; then : 4853 ac_cv_lib_uuid_uuid_generate=yes 4854else 4855 ac_cv_lib_uuid_uuid_generate=no 4856fi 4857rm -f core conftest.err conftest.$ac_objext \ 4858 conftest$ac_exeext conftest.$ac_ext 4859LIBS=$ac_check_lib_save_LIBS 4860fi 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 4862$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } 4863if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : 4864 LIBUUID=`$PKG_CONFIG --libs uuid`; 4865 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` 4866else 4867 as_fn_error "external uuid library not found" "$LINENO" 5 4868fi 4869 4870 UUID_CMT=# 4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 4872$as_echo "Disabling private uuid library" >&6; } 4873else 4874 LIBUUID='$(LIB)/libuuid'$LIB_EXT 4875 DEPLIBUUID=$LIBUUID 4876 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT 4877 DEPSTATIC_LIBUUID=$STATIC_LIBUUID 4878 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT 4879 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 4881$as_echo "Enabling private uuid library" >&6; } 4882fi 4883 4884else 4885 LIBUUID='$(LIB)/libuuid'$LIB_EXT 4886DEPLIBUUID=$LIBUUID 4887STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT 4888DEPSTATIC_LIBUUID=$STATIC_LIBUUID 4889PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT 4890DEPPROFILED_LIBUUID=$PROFILED_LIBUUID 4891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 4892$as_echo "Enabling private uuid library by default" >&6; } 4893 4894fi 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4906 if test -n "$ac_tool_prefix"; then 4907 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4908set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4910$as_echo_n "checking for $ac_word... " >&6; } 4911if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 4912 $as_echo_n "(cached) " >&6 4913else 4914 case $PKG_CONFIG in 4915 [\\/]* | ?:[\\/]*) 4916 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4917 ;; 4918 *) 4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920for as_dir in $PATH 4921do 4922 IFS=$as_save_IFS 4923 test -z "$as_dir" && as_dir=. 4924 for ac_exec_ext in '' $ac_executable_extensions; do 4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4926 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4928 break 2 4929 fi 4930done 4931 done 4932IFS=$as_save_IFS 4933 4934 ;; 4935esac 4936fi 4937PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4938if test -n "$PKG_CONFIG"; then 4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4940$as_echo "$PKG_CONFIG" >&6; } 4941else 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4943$as_echo "no" >&6; } 4944fi 4945 4946 4947fi 4948if test -z "$ac_cv_path_PKG_CONFIG"; then 4949 ac_pt_PKG_CONFIG=$PKG_CONFIG 4950 # Extract the first word of "pkg-config", so it can be a program name with args. 4951set dummy pkg-config; ac_word=$2 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4953$as_echo_n "checking for $ac_word... " >&6; } 4954if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 case $ac_pt_PKG_CONFIG in 4958 [\\/]* | ?:[\\/]*) 4959 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4960 ;; 4961 *) 4962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4963for as_dir in $PATH 4964do 4965 IFS=$as_save_IFS 4966 test -z "$as_dir" && as_dir=. 4967 for ac_exec_ext in '' $ac_executable_extensions; do 4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4969 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4971 break 2 4972 fi 4973done 4974 done 4975IFS=$as_save_IFS 4976 4977 ;; 4978esac 4979fi 4980ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4981if test -n "$ac_pt_PKG_CONFIG"; then 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4983$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4984else 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4986$as_echo "no" >&6; } 4987fi 4988 4989 if test "x$ac_pt_PKG_CONFIG" = x; then 4990 PKG_CONFIG="" 4991 else 4992 case $cross_compiling:$ac_tool_warned in 4993yes:) 4994{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4995$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4996ac_tool_warned=yes ;; 4997esac 4998 PKG_CONFIG=$ac_pt_PKG_CONFIG 4999 fi 5000else 5001 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5002fi 5003 5004fi 5005if test -n "$PKG_CONFIG"; then 5006 _pkg_min_version=0.9.0 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5008$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5009 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5011$as_echo "yes" >&6; } 5012 else 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5014$as_echo "no" >&6; } 5015 PKG_CONFIG="" 5016 fi 5017 5018fi 5019LIBBLKID= 5020DEPLIBBLKID= 5021STATIC_LIBBLKID= 5022DEPSTATIC_LIBBLKID= 5023PROFILED_LIBBLKID= 5024DEPPROFILED_LIBBLKID= 5025BLKID_CMT= 5026 5027# Check whether --enable-libblkid was given. 5028if test "${enable_libblkid+set}" = set; then : 5029 enableval=$enable_libblkid; if test "$enableval" = "no" 5030then 5031 if test -z "$PKG_CONFIG"; then 5032 as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 5033 fi 5034 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 5036$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } 5037if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then : 5038 $as_echo_n "(cached) " >&6 5039else 5040 ac_check_lib_save_LIBS=$LIBS 5041LIBS="-lblkid $LIBBLKID $LIBS" 5042cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5043/* end confdefs.h. */ 5044 5045/* Override any GCC internal prototype to avoid an error. 5046 Use char because int might match the return type of a GCC 5047 builtin and then its argument prototype would still apply. */ 5048#ifdef __cplusplus 5049extern "C" 5050#endif 5051char blkid_get_cache (); 5052int 5053main () 5054{ 5055return blkid_get_cache (); 5056 ; 5057 return 0; 5058} 5059_ACEOF 5060if ac_fn_c_try_link "$LINENO"; then : 5061 ac_cv_lib_blkid_blkid_get_cache=yes 5062else 5063 ac_cv_lib_blkid_blkid_get_cache=no 5064fi 5065rm -f core conftest.err conftest.$ac_objext \ 5066 conftest$ac_exeext conftest.$ac_ext 5067LIBS=$ac_check_lib_save_LIBS 5068fi 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 5070$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } 5071if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then : 5072 LIBBLKID=`$PKG_CONFIG --libs blkid`; 5073 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` 5074else 5075 as_fn_error "external blkid library not found" "$LINENO" 5 5076fi 5077 5078 BLKID_CMT=# 5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 5080$as_echo "Disabling private blkid library" >&6; } 5081else 5082 LIBBLKID='$(LIB)/libblkid'$LIB_EXT 5083 DEPLIBBLKID=$LIBBLKID 5084 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT 5085 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID 5086 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT 5087 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID 5088 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h 5089 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 5091$as_echo "Enabling private blkid library" >&6; } 5092fi 5093 5094else 5095 LIBBLKID='$(LIB)/libblkid'$LIB_EXT 5096DEPLIBBLKID=$LIBBLKID 5097STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT 5098DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID 5099PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT 5100DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID 5101$as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h 5102 5103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 5104$as_echo "Enabling private blkid library by default" >&6; } 5105 5106fi 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5118 if test -n "$ac_tool_prefix"; then 5119 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5120set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5121{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5122$as_echo_n "checking for $ac_word... " >&6; } 5123if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 5124 $as_echo_n "(cached) " >&6 5125else 5126 case $PKG_CONFIG in 5127 [\\/]* | ?:[\\/]*) 5128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5129 ;; 5130 *) 5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5132for as_dir in $PATH 5133do 5134 IFS=$as_save_IFS 5135 test -z "$as_dir" && as_dir=. 5136 for ac_exec_ext in '' $ac_executable_extensions; do 5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5140 break 2 5141 fi 5142done 5143 done 5144IFS=$as_save_IFS 5145 5146 ;; 5147esac 5148fi 5149PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5150if test -n "$PKG_CONFIG"; then 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5152$as_echo "$PKG_CONFIG" >&6; } 5153else 5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5155$as_echo "no" >&6; } 5156fi 5157 5158 5159fi 5160if test -z "$ac_cv_path_PKG_CONFIG"; then 5161 ac_pt_PKG_CONFIG=$PKG_CONFIG 5162 # Extract the first word of "pkg-config", so it can be a program name with args. 5163set dummy pkg-config; ac_word=$2 5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5165$as_echo_n "checking for $ac_word... " >&6; } 5166if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 case $ac_pt_PKG_CONFIG in 5170 [\\/]* | ?:[\\/]*) 5171 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5172 ;; 5173 *) 5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5175for as_dir in $PATH 5176do 5177 IFS=$as_save_IFS 5178 test -z "$as_dir" && as_dir=. 5179 for ac_exec_ext in '' $ac_executable_extensions; do 5180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5181 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5183 break 2 5184 fi 5185done 5186 done 5187IFS=$as_save_IFS 5188 5189 ;; 5190esac 5191fi 5192ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5193if test -n "$ac_pt_PKG_CONFIG"; then 5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5195$as_echo "$ac_pt_PKG_CONFIG" >&6; } 5196else 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5198$as_echo "no" >&6; } 5199fi 5200 5201 if test "x$ac_pt_PKG_CONFIG" = x; then 5202 PKG_CONFIG="" 5203 else 5204 case $cross_compiling:$ac_tool_warned in 5205yes:) 5206{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5207$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5208ac_tool_warned=yes ;; 5209esac 5210 PKG_CONFIG=$ac_pt_PKG_CONFIG 5211 fi 5212else 5213 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5214fi 5215 5216fi 5217if test -n "$PKG_CONFIG"; then 5218 _pkg_min_version=0.9.0 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5220$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5221 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5223$as_echo "yes" >&6; } 5224 else 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5226$as_echo "no" >&6; } 5227 PKG_CONFIG="" 5228 fi 5229 5230fi 5231 5232# Check whether --enable-quota was given. 5233if test "${enable_quota+set}" = set; then : 5234 enableval=$enable_quota; if test "$enableval" = "no" 5235then 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 5237$as_echo "Disabling quota support" >&6; } 5238else 5239 $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h 5240 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 5242$as_echo "Enabling quota support" >&6; } 5243fi 5244 5245else 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 5247$as_echo "Disabling quota support by default" >&6; } 5248 5249fi 5250 5251LIBQUOTA='$(LIB)/libquota'$LIB_EXT 5252DEPLIBQUOTA=$LIBQUOTA 5253STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT 5254DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA 5255PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT 5256DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA 5257 5258 5259 5260 5261 5262 5263 5264# Check whether --enable-debugfs was given. 5265if test "${enable_debugfs+set}" = set; then : 5266 enableval=$enable_debugfs; if test "$enableval" = "no" 5267then 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 5269$as_echo "Disabling debugfs support" >&6; } 5270 DEBUGFS_CMT="#" 5271else 5272 DEBUGFS_CMT= 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 5274$as_echo "Enabling debugfs support" >&6; } 5275fi 5276 5277else 5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 5279$as_echo "Enabling debugfs support by default" >&6; } 5280DEBUGFS_CMT= 5281 5282fi 5283 5284 5285# Check whether --enable-imager was given. 5286if test "${enable_imager+set}" = set; then : 5287 enableval=$enable_imager; if test "$enableval" = "no" 5288then 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 5290$as_echo "Disabling e2image support" >&6; } 5291 IMAGER_CMT="#" 5292else 5293 IMAGER_CMT= 5294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 5295$as_echo "Enabling e2image support" >&6; } 5296fi 5297 5298else 5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 5300$as_echo "Enabling e2image support by default" >&6; } 5301IMAGER_CMT= 5302 5303fi 5304 5305 5306# Check whether --enable-resizer was given. 5307if test "${enable_resizer+set}" = set; then : 5308 enableval=$enable_resizer; if test "$enableval" = "no" 5309then 5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 5311$as_echo "Disabling e2resize support" >&6; } 5312 RESIZER_CMT="#" 5313else 5314 RESIZER_CMT= 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 5316$as_echo "Enabling e2resize support" >&6; } 5317fi 5318 5319else 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 5321$as_echo "Enabling e2resize support by default" >&6; } 5322RESIZER_CMT= 5323 5324fi 5325 5326 5327# Check whether --enable-defrag was given. 5328if test "${enable_defrag+set}" = set; then : 5329 enableval=$enable_defrag; if test "$enableval" = "no" 5330then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 5332$as_echo "Disabling e4defrag support" >&6; } 5333 DEFRAG_CMT="#" 5334else 5335 DEFRAG_CMT= 5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 5337$as_echo "Enabling e4defrag support" >&6; } 5338fi 5339 5340else 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 5342$as_echo "Enabling e4defrag support by default" >&6; } 5343DEFRAG_CMT= 5344 5345fi 5346 5347 5348# Check whether --enable-fsck was given. 5349if test "${enable_fsck+set}" = set; then : 5350 enableval=$enable_fsck; if test "$enableval" = "no" 5351then 5352 FSCK_PROG='' FSCK_MAN='' 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 5354$as_echo "Not building fsck wrapper" >&6; } 5355else 5356 FSCK_PROG=fsck FSCK_MAN=fsck.8 5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 5358$as_echo "Building fsck wrapper" >&6; } 5359fi 5360 5361else 5362 case "$host_os" in 5363 gnu*) 5364 FSCK_PROG='' FSCK_MAN='' 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 5366$as_echo "Not building fsck wrapper by default" >&6; } 5367 ;; 5368 *) 5369 FSCK_PROG=fsck FSCK_MAN=fsck.8 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 5371$as_echo "Building fsck wrapper by default" >&6; } 5372esac 5373 5374fi 5375 5376 5377 5378# Check whether --enable-e2initrd-helper was given. 5379if test "${enable_e2initrd_helper+set}" = set; then : 5380 enableval=$enable_e2initrd_helper; if test "$enableval" = "no" 5381then 5382 E2INITRD_PROG='' E2INITRD_MAN='' 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 5384$as_echo "Not building e2initrd helper" >&6; } 5385else 5386 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 5388$as_echo "Building e2initrd helper" >&6; } 5389fi 5390 5391else 5392 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 5394$as_echo "Building e2initrd helper by default" >&6; } 5395 5396fi 5397 5398 5399 5400# Check whether --enable-tls was given. 5401if test "${enable_tls+set}" = set; then : 5402 enableval=$enable_tls; if test "$enableval" = "no" 5403then 5404 try_tls="" 5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 5406$as_echo "Disabling thread local support" >&6; } 5407else 5408 try_tls="yes" 5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 5410$as_echo "Enabling thread local support" >&6; } 5411fi 5412 5413else 5414 if test -n "$WITH_DIET_LIBC" 5415then 5416 try_tls="" 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 5418$as_echo "Diet libc does not support thread local support" >&6; } 5419else 5420 try_tls="yes" 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 5422$as_echo "Try using thread local support by default" >&6; } 5423fi 5424 5425fi 5426 5427if test "$try_tls" = "yes" 5428then 5429 5430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 5431$as_echo_n "checking for thread local storage (TLS) class... " >&6; } 5432 if test "${ac_cv_tls+set}" = set; then : 5433 $as_echo_n "(cached) " >&6 5434else 5435 5436 ax_tls_keywords="__thread __declspec(thread) none" 5437 for ax_tls_keyword in $ax_tls_keywords; do 5438 case $ax_tls_keyword in 5439 none) ac_cv_tls=none ; break ;; 5440 *) 5441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5442/* end confdefs.h. */ 5443#include <stdlib.h> 5444 static void 5445 foo(void) { 5446 static $ax_tls_keyword int bar; 5447 exit(1); 5448 } 5449int 5450main () 5451{ 5452 5453 ; 5454 return 0; 5455} 5456_ACEOF 5457if ac_fn_c_try_compile "$LINENO"; then : 5458 ac_cv_tls=$ax_tls_keyword ; break 5459else 5460 ac_cv_tls=none 5461 5462fi 5463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5464 esac 5465 done 5466 5467fi 5468 5469 5470 if test "$ac_cv_tls" != "none"; then 5471 5472cat >>confdefs.h <<_ACEOF 5473#define TLS $ac_cv_tls 5474_ACEOF 5475 5476 fi 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 5478$as_echo "$ac_cv_tls" >&6; } 5479 5480fi 5481 5482# Check whether --enable-uuidd was given. 5483if test "${enable_uuidd+set}" = set; then : 5484 enableval=$enable_uuidd; if test "$enableval" = "no" 5485then 5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 5487$as_echo "Not building uuidd" >&6; } 5488 UUIDD_CMT="#" 5489else 5490 $as_echo "#define USE_UUIDD 1" >>confdefs.h 5491 5492 UUIDD_CMT="" 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 5494$as_echo "Building uuidd" >&6; } 5495fi 5496 5497else 5498 $as_echo "#define USE_UUIDD 1" >>confdefs.h 5499 5500UUIDD_CMT="" 5501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 5502$as_echo "Building uuidd by default" >&6; } 5503 5504fi 5505 5506 5507MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library 5508 5509GETTEXT_PACKAGE=e2fsprogs 5510PACKAGE=e2fsprogs 5511VERSION="$E2FSPROGS_VERSION" 5512VERSION=0.14.1 5513 5514cat >>confdefs.h <<_ACEOF 5515#define PACKAGE "$PACKAGE" 5516_ACEOF 5517 5518 5519cat >>confdefs.h <<_ACEOF 5520#define VERSION "$VERSION" 5521_ACEOF 5522 5523 5524 5525 5526 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5528$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5529set x ${MAKE-make} 5530ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5531if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 5532 $as_echo_n "(cached) " >&6 5533else 5534 cat >conftest.make <<\_ACEOF 5535SHELL = /bin/sh 5536all: 5537 @echo '@@@%%%=$(MAKE)=@@@%%%' 5538_ACEOF 5539# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5540case `${MAKE-make} -f conftest.make 2>/dev/null` in 5541 *@@@%%%=?*=@@@%%%*) 5542 eval ac_cv_prog_make_${ac_make}_set=yes;; 5543 *) 5544 eval ac_cv_prog_make_${ac_make}_set=no;; 5545esac 5546rm -f conftest.make 5547fi 5548if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5550$as_echo "yes" >&6; } 5551 SET_MAKE= 5552else 5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5554$as_echo "no" >&6; } 5555 SET_MAKE="MAKE=${MAKE-make}" 5556fi 5557 5558# Find a good install program. We prefer a C program (faster), 5559# so one script is as good as another. But avoid the broken or 5560# incompatible versions: 5561# SysV /etc/install, /usr/sbin/install 5562# SunOS /usr/etc/install 5563# IRIX /sbin/install 5564# AIX /bin/install 5565# AmigaOS /C/install, which installs bootblocks on floppy discs 5566# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5567# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5568# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5569# OS/2's system install, which has a completely different semantic 5570# ./install, which can be erroneously created by make from ./install.sh. 5571# Reject install programs that cannot install multiple files. 5572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5573$as_echo_n "checking for a BSD-compatible install... " >&6; } 5574if test -z "$INSTALL"; then 5575if test "${ac_cv_path_install+set}" = set; then : 5576 $as_echo_n "(cached) " >&6 5577else 5578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5579for as_dir in $PATH 5580do 5581 IFS=$as_save_IFS 5582 test -z "$as_dir" && as_dir=. 5583 # Account for people who put trailing slashes in PATH elements. 5584case $as_dir/ in #(( 5585 ./ | .// | /[cC]/* | \ 5586 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5587 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5588 /usr/ucb/* ) ;; 5589 *) 5590 # OSF1 and SCO ODT 3.0 have their own names for install. 5591 # Don't use installbsd from OSF since it installs stuff as root 5592 # by default. 5593 for ac_prog in ginstall scoinst install; do 5594 for ac_exec_ext in '' $ac_executable_extensions; do 5595 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 5596 if test $ac_prog = install && 5597 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5598 # AIX install. It has an incompatible calling convention. 5599 : 5600 elif test $ac_prog = install && 5601 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5602 # program-specific install script used by HP pwplus--don't use. 5603 : 5604 else 5605 rm -rf conftest.one conftest.two conftest.dir 5606 echo one > conftest.one 5607 echo two > conftest.two 5608 mkdir conftest.dir 5609 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5610 test -s conftest.one && test -s conftest.two && 5611 test -s conftest.dir/conftest.one && 5612 test -s conftest.dir/conftest.two 5613 then 5614 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5615 break 3 5616 fi 5617 fi 5618 fi 5619 done 5620 done 5621 ;; 5622esac 5623 5624 done 5625IFS=$as_save_IFS 5626 5627rm -rf conftest.one conftest.two conftest.dir 5628 5629fi 5630 if test "${ac_cv_path_install+set}" = set; then 5631 INSTALL=$ac_cv_path_install 5632 else 5633 # As a last resort, use the slow shell script. Don't cache a 5634 # value for INSTALL within a source directory, because that will 5635 # break other packages using the cache if that directory is 5636 # removed, or if the value is a relative name. 5637 INSTALL=$ac_install_sh 5638 fi 5639fi 5640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5641$as_echo "$INSTALL" >&6; } 5642 5643# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5644# It thinks the first close brace ends the variable substitution. 5645test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5646 5647test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5648 5649test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5650 5651 5652 MKINSTALLDIRS= 5653 if test -n "$ac_aux_dir"; then 5654 case "$ac_aux_dir" in 5655 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; 5656 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; 5657 esac 5658 fi 5659 if test -z "$MKINSTALLDIRS"; then 5660 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 5661 fi 5662 5663 5664 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 5666$as_echo_n "checking whether NLS is requested... " >&6; } 5667 # Check whether --enable-nls was given. 5668if test "${enable_nls+set}" = set; then : 5669 enableval=$enable_nls; USE_NLS=$enableval 5670else 5671 USE_NLS=yes 5672fi 5673 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 5675$as_echo "$USE_NLS" >&6; } 5676 5677 5678 5679 5680 5681 5682# Prepare PATH_SEPARATOR. 5683# The user is always right. 5684if test "${PATH_SEPARATOR+set}" != set; then 5685 echo "#! /bin/sh" >conf$$.sh 5686 echo "exit 0" >>conf$$.sh 5687 chmod +x conf$$.sh 5688 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5689 PATH_SEPARATOR=';' 5690 else 5691 PATH_SEPARATOR=: 5692 fi 5693 rm -f conf$$.sh 5694fi 5695 5696# Find out how to test for executable files. Don't use a zero-byte file, 5697# as systems may use methods other than mode bits to determine executability. 5698cat >conf$$.file <<_ASEOF 5699#! /bin/sh 5700exit 0 5701_ASEOF 5702chmod +x conf$$.file 5703if test -x conf$$.file >/dev/null 2>&1; then 5704 ac_executable_p="test -x" 5705else 5706 ac_executable_p="test -f" 5707fi 5708rm -f conf$$.file 5709 5710# Extract the first word of "msgfmt", so it can be a program name with args. 5711set dummy msgfmt; ac_word=$2 5712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5713$as_echo_n "checking for $ac_word... " >&6; } 5714if test "${ac_cv_path_MSGFMT+set}" = set; then : 5715 $as_echo_n "(cached) " >&6 5716else 5717 case "$MSGFMT" in 5718 [\\/]* | ?:[\\/]*) 5719 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 5720 ;; 5721 *) 5722 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5723 for ac_dir in $PATH; do 5724 IFS="$ac_save_IFS" 5725 test -z "$ac_dir" && ac_dir=. 5726 for ac_exec_ext in '' $ac_executable_extensions; do 5727 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5728 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 5729 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5730 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 5731 break 2 5732 fi 5733 fi 5734 done 5735 done 5736 IFS="$ac_save_IFS" 5737 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 5738 ;; 5739esac 5740fi 5741MSGFMT="$ac_cv_path_MSGFMT" 5742if test "$MSGFMT" != ":"; then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 5744$as_echo "$MSGFMT" >&6; } 5745else 5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5747$as_echo "no" >&6; } 5748fi 5749 5750 # Extract the first word of "gmsgfmt", so it can be a program name with args. 5751set dummy gmsgfmt; ac_word=$2 5752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5753$as_echo_n "checking for $ac_word... " >&6; } 5754if test "${ac_cv_path_GMSGFMT+set}" = set; then : 5755 $as_echo_n "(cached) " >&6 5756else 5757 case $GMSGFMT in 5758 [\\/]* | ?:[\\/]*) 5759 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 5760 ;; 5761 *) 5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5763for as_dir in $PATH 5764do 5765 IFS=$as_save_IFS 5766 test -z "$as_dir" && as_dir=. 5767 for ac_exec_ext in '' $ac_executable_extensions; do 5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5769 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5771 break 2 5772 fi 5773done 5774 done 5775IFS=$as_save_IFS 5776 5777 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 5778 ;; 5779esac 5780fi 5781GMSGFMT=$ac_cv_path_GMSGFMT 5782if test -n "$GMSGFMT"; then 5783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 5784$as_echo "$GMSGFMT" >&6; } 5785else 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5787$as_echo "no" >&6; } 5788fi 5789 5790 5791 5792 5793# Prepare PATH_SEPARATOR. 5794# The user is always right. 5795if test "${PATH_SEPARATOR+set}" != set; then 5796 echo "#! /bin/sh" >conf$$.sh 5797 echo "exit 0" >>conf$$.sh 5798 chmod +x conf$$.sh 5799 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5800 PATH_SEPARATOR=';' 5801 else 5802 PATH_SEPARATOR=: 5803 fi 5804 rm -f conf$$.sh 5805fi 5806 5807# Find out how to test for executable files. Don't use a zero-byte file, 5808# as systems may use methods other than mode bits to determine executability. 5809cat >conf$$.file <<_ASEOF 5810#! /bin/sh 5811exit 0 5812_ASEOF 5813chmod +x conf$$.file 5814if test -x conf$$.file >/dev/null 2>&1; then 5815 ac_executable_p="test -x" 5816else 5817 ac_executable_p="test -f" 5818fi 5819rm -f conf$$.file 5820 5821# Extract the first word of "xgettext", so it can be a program name with args. 5822set dummy xgettext; ac_word=$2 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824$as_echo_n "checking for $ac_word... " >&6; } 5825if test "${ac_cv_path_XGETTEXT+set}" = set; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 case "$XGETTEXT" in 5829 [\\/]* | ?:[\\/]*) 5830 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 5831 ;; 5832 *) 5833 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5834 for ac_dir in $PATH; do 5835 IFS="$ac_save_IFS" 5836 test -z "$ac_dir" && ac_dir=. 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5839 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5840 (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 5841 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 5842 break 2 5843 fi 5844 fi 5845 done 5846 done 5847 IFS="$ac_save_IFS" 5848 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 5849 ;; 5850esac 5851fi 5852XGETTEXT="$ac_cv_path_XGETTEXT" 5853if test "$XGETTEXT" != ":"; then 5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 5855$as_echo "$XGETTEXT" >&6; } 5856else 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5858$as_echo "no" >&6; } 5859fi 5860 5861 rm -f messages.po 5862 5863 5864# Prepare PATH_SEPARATOR. 5865# The user is always right. 5866if test "${PATH_SEPARATOR+set}" != set; then 5867 echo "#! /bin/sh" >conf$$.sh 5868 echo "exit 0" >>conf$$.sh 5869 chmod +x conf$$.sh 5870 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 5871 PATH_SEPARATOR=';' 5872 else 5873 PATH_SEPARATOR=: 5874 fi 5875 rm -f conf$$.sh 5876fi 5877 5878# Find out how to test for executable files. Don't use a zero-byte file, 5879# as systems may use methods other than mode bits to determine executability. 5880cat >conf$$.file <<_ASEOF 5881#! /bin/sh 5882exit 0 5883_ASEOF 5884chmod +x conf$$.file 5885if test -x conf$$.file >/dev/null 2>&1; then 5886 ac_executable_p="test -x" 5887else 5888 ac_executable_p="test -f" 5889fi 5890rm -f conf$$.file 5891 5892# Extract the first word of "msgmerge", so it can be a program name with args. 5893set dummy msgmerge; ac_word=$2 5894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5895$as_echo_n "checking for $ac_word... " >&6; } 5896if test "${ac_cv_path_MSGMERGE+set}" = set; then : 5897 $as_echo_n "(cached) " >&6 5898else 5899 case "$MSGMERGE" in 5900 [\\/]* | ?:[\\/]*) 5901 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 5902 ;; 5903 *) 5904 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 5905 for ac_dir in $PATH; do 5906 IFS="$ac_save_IFS" 5907 test -z "$ac_dir" && ac_dir=. 5908 for ac_exec_ext in '' $ac_executable_extensions; do 5909 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 5910 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 5911 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 5912 break 2 5913 fi 5914 fi 5915 done 5916 done 5917 IFS="$ac_save_IFS" 5918 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 5919 ;; 5920esac 5921fi 5922MSGMERGE="$ac_cv_path_MSGMERGE" 5923if test "$MSGMERGE" != ":"; then 5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 5925$as_echo "$MSGMERGE" >&6; } 5926else 5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5928$as_echo "no" >&6; } 5929fi 5930 5931 5932 if test "$GMSGFMT" != ":"; then 5933 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 5934 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 5935 : ; 5936 else 5937 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 5939$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 5940 GMSGFMT=":" 5941 fi 5942 fi 5943 5944 if test "$XGETTEXT" != ":"; then 5945 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && 5946 (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 5947 : ; 5948 else 5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 5950$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 5951 XGETTEXT=":" 5952 fi 5953 rm -f messages.po 5954 fi 5955 5956 ac_config_commands="$ac_config_commands default-1" 5957 5958 5959if test -n "$ac_tool_prefix"; then 5960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5961set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5963$as_echo_n "checking for $ac_word... " >&6; } 5964if test "${ac_cv_prog_RANLIB+set}" = set; then : 5965 $as_echo_n "(cached) " >&6 5966else 5967 if test -n "$RANLIB"; then 5968 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5969else 5970as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5971for as_dir in $PATH 5972do 5973 IFS=$as_save_IFS 5974 test -z "$as_dir" && as_dir=. 5975 for ac_exec_ext in '' $ac_executable_extensions; do 5976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5979 break 2 5980 fi 5981done 5982 done 5983IFS=$as_save_IFS 5984 5985fi 5986fi 5987RANLIB=$ac_cv_prog_RANLIB 5988if test -n "$RANLIB"; then 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5990$as_echo "$RANLIB" >&6; } 5991else 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5993$as_echo "no" >&6; } 5994fi 5995 5996 5997fi 5998if test -z "$ac_cv_prog_RANLIB"; then 5999 ac_ct_RANLIB=$RANLIB 6000 # Extract the first word of "ranlib", so it can be a program name with args. 6001set dummy ranlib; ac_word=$2 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6003$as_echo_n "checking for $ac_word... " >&6; } 6004if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6005 $as_echo_n "(cached) " >&6 6006else 6007 if test -n "$ac_ct_RANLIB"; then 6008 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6009else 6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6011for as_dir in $PATH 6012do 6013 IFS=$as_save_IFS 6014 test -z "$as_dir" && as_dir=. 6015 for ac_exec_ext in '' $ac_executable_extensions; do 6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6017 ac_cv_prog_ac_ct_RANLIB="ranlib" 6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6019 break 2 6020 fi 6021done 6022 done 6023IFS=$as_save_IFS 6024 6025fi 6026fi 6027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6028if test -n "$ac_ct_RANLIB"; then 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6030$as_echo "$ac_ct_RANLIB" >&6; } 6031else 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6033$as_echo "no" >&6; } 6034fi 6035 6036 if test "x$ac_ct_RANLIB" = x; then 6037 RANLIB=":" 6038 else 6039 case $cross_compiling:$ac_tool_warned in 6040yes:) 6041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6043ac_tool_warned=yes ;; 6044esac 6045 RANLIB=$ac_ct_RANLIB 6046 fi 6047else 6048 RANLIB="$ac_cv_prog_RANLIB" 6049fi 6050 6051 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 6053$as_echo_n "checking for strerror in -lcposix... " >&6; } 6054if test "${ac_cv_lib_cposix_strerror+set}" = set; then : 6055 $as_echo_n "(cached) " >&6 6056else 6057 ac_check_lib_save_LIBS=$LIBS 6058LIBS="-lcposix $LIBS" 6059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6060/* end confdefs.h. */ 6061 6062/* Override any GCC internal prototype to avoid an error. 6063 Use char because int might match the return type of a GCC 6064 builtin and then its argument prototype would still apply. */ 6065#ifdef __cplusplus 6066extern "C" 6067#endif 6068char strerror (); 6069int 6070main () 6071{ 6072return strerror (); 6073 ; 6074 return 0; 6075} 6076_ACEOF 6077if ac_fn_c_try_link "$LINENO"; then : 6078 ac_cv_lib_cposix_strerror=yes 6079else 6080 ac_cv_lib_cposix_strerror=no 6081fi 6082rm -f core conftest.err conftest.$ac_objext \ 6083 conftest$ac_exeext conftest.$ac_ext 6084LIBS=$ac_check_lib_save_LIBS 6085fi 6086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 6087$as_echo "$ac_cv_lib_cposix_strerror" >&6; } 6088if test "x$ac_cv_lib_cposix_strerror" = x""yes; then : 6089 LIBS="$LIBS -lcposix" 6090fi 6091 6092 6093 6094 6095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6096$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6097if test "${ac_cv_path_GREP+set}" = set; then : 6098 $as_echo_n "(cached) " >&6 6099else 6100 if test -z "$GREP"; then 6101 ac_path_GREP_found=false 6102 # Loop through the user's path and test for each of PROGNAME-LIST 6103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6104for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6105do 6106 IFS=$as_save_IFS 6107 test -z "$as_dir" && as_dir=. 6108 for ac_prog in grep ggrep; do 6109 for ac_exec_ext in '' $ac_executable_extensions; do 6110 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6111 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 6112# Check for GNU ac_path_GREP and select it if it is found. 6113 # Check for GNU $ac_path_GREP 6114case `"$ac_path_GREP" --version 2>&1` in 6115*GNU*) 6116 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6117*) 6118 ac_count=0 6119 $as_echo_n 0123456789 >"conftest.in" 6120 while : 6121 do 6122 cat "conftest.in" "conftest.in" >"conftest.tmp" 6123 mv "conftest.tmp" "conftest.in" 6124 cp "conftest.in" "conftest.nl" 6125 $as_echo 'GREP' >> "conftest.nl" 6126 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6127 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6128 as_fn_arith $ac_count + 1 && ac_count=$as_val 6129 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6130 # Best one so far, save it but keep looking for a better one 6131 ac_cv_path_GREP="$ac_path_GREP" 6132 ac_path_GREP_max=$ac_count 6133 fi 6134 # 10*(2^10) chars as input seems more than enough 6135 test $ac_count -gt 10 && break 6136 done 6137 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6138esac 6139 6140 $ac_path_GREP_found && break 3 6141 done 6142 done 6143 done 6144IFS=$as_save_IFS 6145 if test -z "$ac_cv_path_GREP"; then 6146 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6147 fi 6148else 6149 ac_cv_path_GREP=$GREP 6150fi 6151 6152fi 6153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6154$as_echo "$ac_cv_path_GREP" >&6; } 6155 GREP="$ac_cv_path_GREP" 6156 6157 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6159$as_echo_n "checking for egrep... " >&6; } 6160if test "${ac_cv_path_EGREP+set}" = set; then : 6161 $as_echo_n "(cached) " >&6 6162else 6163 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6164 then ac_cv_path_EGREP="$GREP -E" 6165 else 6166 if test -z "$EGREP"; then 6167 ac_path_EGREP_found=false 6168 # Loop through the user's path and test for each of PROGNAME-LIST 6169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6170for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6171do 6172 IFS=$as_save_IFS 6173 test -z "$as_dir" && as_dir=. 6174 for ac_prog in egrep; do 6175 for ac_exec_ext in '' $ac_executable_extensions; do 6176 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6177 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 6178# Check for GNU ac_path_EGREP and select it if it is found. 6179 # Check for GNU $ac_path_EGREP 6180case `"$ac_path_EGREP" --version 2>&1` in 6181*GNU*) 6182 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6183*) 6184 ac_count=0 6185 $as_echo_n 0123456789 >"conftest.in" 6186 while : 6187 do 6188 cat "conftest.in" "conftest.in" >"conftest.tmp" 6189 mv "conftest.tmp" "conftest.in" 6190 cp "conftest.in" "conftest.nl" 6191 $as_echo 'EGREP' >> "conftest.nl" 6192 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6194 as_fn_arith $ac_count + 1 && ac_count=$as_val 6195 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6196 # Best one so far, save it but keep looking for a better one 6197 ac_cv_path_EGREP="$ac_path_EGREP" 6198 ac_path_EGREP_max=$ac_count 6199 fi 6200 # 10*(2^10) chars as input seems more than enough 6201 test $ac_count -gt 10 && break 6202 done 6203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6204esac 6205 6206 $ac_path_EGREP_found && break 3 6207 done 6208 done 6209 done 6210IFS=$as_save_IFS 6211 if test -z "$ac_cv_path_EGREP"; then 6212 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6213 fi 6214else 6215 ac_cv_path_EGREP=$EGREP 6216fi 6217 6218 fi 6219fi 6220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6221$as_echo "$ac_cv_path_EGREP" >&6; } 6222 EGREP="$ac_cv_path_EGREP" 6223 6224 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6226$as_echo_n "checking for ANSI C header files... " >&6; } 6227if test "${ac_cv_header_stdc+set}" = set; then : 6228 $as_echo_n "(cached) " >&6 6229else 6230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6231/* end confdefs.h. */ 6232#include <stdlib.h> 6233#include <stdarg.h> 6234#include <string.h> 6235#include <float.h> 6236 6237int 6238main () 6239{ 6240 6241 ; 6242 return 0; 6243} 6244_ACEOF 6245if ac_fn_c_try_compile "$LINENO"; then : 6246 ac_cv_header_stdc=yes 6247else 6248 ac_cv_header_stdc=no 6249fi 6250rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6251 6252if test $ac_cv_header_stdc = yes; then 6253 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6255/* end confdefs.h. */ 6256#include <string.h> 6257 6258_ACEOF 6259if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6260 $EGREP "memchr" >/dev/null 2>&1; then : 6261 6262else 6263 ac_cv_header_stdc=no 6264fi 6265rm -f conftest* 6266 6267fi 6268 6269if test $ac_cv_header_stdc = yes; then 6270 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6272/* end confdefs.h. */ 6273#include <stdlib.h> 6274 6275_ACEOF 6276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6277 $EGREP "free" >/dev/null 2>&1; then : 6278 6279else 6280 ac_cv_header_stdc=no 6281fi 6282rm -f conftest* 6283 6284fi 6285 6286if test $ac_cv_header_stdc = yes; then 6287 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6288 if test "$cross_compiling" = yes; then : 6289 : 6290else 6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6292/* end confdefs.h. */ 6293#include <ctype.h> 6294#include <stdlib.h> 6295#if ((' ' & 0x0FF) == 0x020) 6296# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6297# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6298#else 6299# define ISLOWER(c) \ 6300 (('a' <= (c) && (c) <= 'i') \ 6301 || ('j' <= (c) && (c) <= 'r') \ 6302 || ('s' <= (c) && (c) <= 'z')) 6303# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6304#endif 6305 6306#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6307int 6308main () 6309{ 6310 int i; 6311 for (i = 0; i < 256; i++) 6312 if (XOR (islower (i), ISLOWER (i)) 6313 || toupper (i) != TOUPPER (i)) 6314 return 2; 6315 return 0; 6316} 6317_ACEOF 6318if ac_fn_c_try_run "$LINENO"; then : 6319 6320else 6321 ac_cv_header_stdc=no 6322fi 6323rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6324 conftest.$ac_objext conftest.beam conftest.$ac_ext 6325fi 6326 6327fi 6328fi 6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6330$as_echo "$ac_cv_header_stdc" >&6; } 6331if test $ac_cv_header_stdc = yes; then 6332 6333$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6334 6335fi 6336 6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 6338$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6339if test "${ac_cv_c_const+set}" = set; then : 6340 $as_echo_n "(cached) " >&6 6341else 6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6343/* end confdefs.h. */ 6344 6345int 6346main () 6347{ 6348/* FIXME: Include the comments suggested by Paul. */ 6349#ifndef __cplusplus 6350 /* Ultrix mips cc rejects this. */ 6351 typedef int charset[2]; 6352 const charset cs; 6353 /* SunOS 4.1.1 cc rejects this. */ 6354 char const *const *pcpcc; 6355 char **ppc; 6356 /* NEC SVR4.0.2 mips cc rejects this. */ 6357 struct point {int x, y;}; 6358 static struct point const zero = {0,0}; 6359 /* AIX XL C 1.02.0.0 rejects this. 6360 It does not let you subtract one const X* pointer from another in 6361 an arm of an if-expression whose if-part is not a constant 6362 expression */ 6363 const char *g = "string"; 6364 pcpcc = &g + (g ? g-g : 0); 6365 /* HPUX 7.0 cc rejects these. */ 6366 ++pcpcc; 6367 ppc = (char**) pcpcc; 6368 pcpcc = (char const *const *) ppc; 6369 { /* SCO 3.2v4 cc rejects this. */ 6370 char *t; 6371 char const *s = 0 ? (char *) 0 : (char const *) 0; 6372 6373 *t++ = 0; 6374 if (s) return 0; 6375 } 6376 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 6377 int x[] = {25, 17}; 6378 const int *foo = &x[0]; 6379 ++foo; 6380 } 6381 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 6382 typedef const int *iptr; 6383 iptr p = 0; 6384 ++p; 6385 } 6386 { /* AIX XL C 1.02.0.0 rejects this saying 6387 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 6388 struct s { int j; const int *ap[3]; }; 6389 struct s *b; b->j = 5; 6390 } 6391 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 6392 const int foo = 10; 6393 if (!foo) return 0; 6394 } 6395 return !cs[0] && !zero.x; 6396#endif 6397 6398 ; 6399 return 0; 6400} 6401_ACEOF 6402if ac_fn_c_try_compile "$LINENO"; then : 6403 ac_cv_c_const=yes 6404else 6405 ac_cv_c_const=no 6406fi 6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6408fi 6409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 6410$as_echo "$ac_cv_c_const" >&6; } 6411if test $ac_cv_c_const = no; then 6412 6413$as_echo "#define const /**/" >>confdefs.h 6414 6415fi 6416 6417 6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 6419$as_echo_n "checking for signed... " >&6; } 6420if test "${bh_cv_c_signed+set}" = set; then : 6421 $as_echo_n "(cached) " >&6 6422else 6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6424/* end confdefs.h. */ 6425 6426int 6427main () 6428{ 6429signed char x; 6430 ; 6431 return 0; 6432} 6433_ACEOF 6434if ac_fn_c_try_compile "$LINENO"; then : 6435 bh_cv_c_signed=yes 6436else 6437 bh_cv_c_signed=no 6438fi 6439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6440fi 6441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 6442$as_echo "$bh_cv_c_signed" >&6; } 6443 if test $bh_cv_c_signed = no; then 6444 6445$as_echo "#define signed /**/" >>confdefs.h 6446 6447 fi 6448 6449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6450$as_echo_n "checking for inline... " >&6; } 6451if test "${ac_cv_c_inline+set}" = set; then : 6452 $as_echo_n "(cached) " >&6 6453else 6454 ac_cv_c_inline=no 6455for ac_kw in inline __inline__ __inline; do 6456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6457/* end confdefs.h. */ 6458#ifndef __cplusplus 6459typedef int foo_t; 6460static $ac_kw foo_t static_foo () {return 0; } 6461$ac_kw foo_t foo () {return 0; } 6462#endif 6463 6464_ACEOF 6465if ac_fn_c_try_compile "$LINENO"; then : 6466 ac_cv_c_inline=$ac_kw 6467fi 6468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6469 test "$ac_cv_c_inline" != no && break 6470done 6471 6472fi 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6474$as_echo "$ac_cv_c_inline" >&6; } 6475 6476case $ac_cv_c_inline in 6477 inline | yes) ;; 6478 *) 6479 case $ac_cv_c_inline in 6480 no) ac_val=;; 6481 *) ac_val=$ac_cv_c_inline;; 6482 esac 6483 cat >>confdefs.h <<_ACEOF 6484#ifndef __cplusplus 6485#define inline $ac_val 6486#endif 6487_ACEOF 6488 ;; 6489esac 6490 6491# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6492for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6493 inttypes.h stdint.h unistd.h 6494do : 6495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6496ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6497" 6498eval as_val=\$$as_ac_Header 6499 if test "x$as_val" = x""yes; then : 6500 cat >>confdefs.h <<_ACEOF 6501#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6502_ACEOF 6503 6504fi 6505 6506done 6507 6508 6509ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 6510if test "x$ac_cv_type_off_t" = x""yes; then : 6511 6512else 6513 6514cat >>confdefs.h <<_ACEOF 6515#define off_t long int 6516_ACEOF 6517 6518fi 6519 6520ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6521if test "x$ac_cv_type_size_t" = x""yes; then : 6522 6523else 6524 6525cat >>confdefs.h <<_ACEOF 6526#define size_t unsigned int 6527_ACEOF 6528 6529fi 6530 6531 6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 6533$as_echo_n "checking for long long... " >&6; } 6534if test "${ac_cv_type_long_long+set}" = set; then : 6535 $as_echo_n "(cached) " >&6 6536else 6537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6538/* end confdefs.h. */ 6539long long ll = 1LL; int i = 63; 6540int 6541main () 6542{ 6543long long llmax = (long long) -1; 6544 return ll << i | ll >> i | llmax / ll | llmax % ll; 6545 ; 6546 return 0; 6547} 6548_ACEOF 6549if ac_fn_c_try_link "$LINENO"; then : 6550 ac_cv_type_long_long=yes 6551else 6552 ac_cv_type_long_long=no 6553fi 6554rm -f core conftest.err conftest.$ac_objext \ 6555 conftest$ac_exeext conftest.$ac_ext 6556fi 6557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 6558$as_echo "$ac_cv_type_long_long" >&6; } 6559 if test $ac_cv_type_long_long = yes; then 6560 6561$as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h 6562 6563 fi 6564 6565 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 6567$as_echo_n "checking for long double... " >&6; } 6568if test "${gt_cv_c_long_double+set}" = set; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 if test "$GCC" = yes; then 6572 gt_cv_c_long_double=yes 6573 else 6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6575/* end confdefs.h. */ 6576 6577 /* The Stardent Vistra knows sizeof(long double), but does not support it. */ 6578 long double foo = 0.0; 6579 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ 6580 int array [2*(sizeof(long double) >= sizeof(double)) - 1]; 6581 6582int 6583main () 6584{ 6585 6586 ; 6587 return 0; 6588} 6589_ACEOF 6590if ac_fn_c_try_compile "$LINENO"; then : 6591 gt_cv_c_long_double=yes 6592else 6593 gt_cv_c_long_double=no 6594fi 6595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6596 fi 6597fi 6598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 6599$as_echo "$gt_cv_c_long_double" >&6; } 6600 if test $gt_cv_c_long_double = yes; then 6601 6602$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h 6603 6604 fi 6605 6606 6607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 6608$as_echo_n "checking for wchar_t... " >&6; } 6609if test "${gt_cv_c_wchar_t+set}" = set; then : 6610 $as_echo_n "(cached) " >&6 6611else 6612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6613/* end confdefs.h. */ 6614#include <stddef.h> 6615 wchar_t foo = (wchar_t)'\0'; 6616int 6617main () 6618{ 6619 6620 ; 6621 return 0; 6622} 6623_ACEOF 6624if ac_fn_c_try_compile "$LINENO"; then : 6625 gt_cv_c_wchar_t=yes 6626else 6627 gt_cv_c_wchar_t=no 6628fi 6629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6630fi 6631{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 6632$as_echo "$gt_cv_c_wchar_t" >&6; } 6633 if test $gt_cv_c_wchar_t = yes; then 6634 6635$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 6636 6637 fi 6638 6639 6640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 6641$as_echo_n "checking for wint_t... " >&6; } 6642if test "${gt_cv_c_wint_t+set}" = set; then : 6643 $as_echo_n "(cached) " >&6 6644else 6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646/* end confdefs.h. */ 6647#include <wchar.h> 6648 wint_t foo = (wchar_t)'\0'; 6649int 6650main () 6651{ 6652 6653 ; 6654 return 0; 6655} 6656_ACEOF 6657if ac_fn_c_try_compile "$LINENO"; then : 6658 gt_cv_c_wint_t=yes 6659else 6660 gt_cv_c_wint_t=no 6661fi 6662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6663fi 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 6665$as_echo "$gt_cv_c_wint_t" >&6; } 6666 if test $gt_cv_c_wint_t = yes; then 6667 6668$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 6669 6670 fi 6671 6672 6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 6674$as_echo_n "checking for inttypes.h... " >&6; } 6675if test "${jm_ac_cv_header_inttypes_h+set}" = set; then : 6676 $as_echo_n "(cached) " >&6 6677else 6678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6679/* end confdefs.h. */ 6680#include <sys/types.h> 6681#include <inttypes.h> 6682int 6683main () 6684{ 6685uintmax_t i = (uintmax_t) -1; 6686 ; 6687 return 0; 6688} 6689_ACEOF 6690if ac_fn_c_try_compile "$LINENO"; then : 6691 jm_ac_cv_header_inttypes_h=yes 6692else 6693 jm_ac_cv_header_inttypes_h=no 6694fi 6695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6696fi 6697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 6698$as_echo "$jm_ac_cv_header_inttypes_h" >&6; } 6699 if test $jm_ac_cv_header_inttypes_h = yes; then 6700 6701cat >>confdefs.h <<_ACEOF 6702#define HAVE_INTTYPES_H_WITH_UINTMAX 1 6703_ACEOF 6704 6705 fi 6706 6707 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 6709$as_echo_n "checking for stdint.h... " >&6; } 6710if test "${jm_ac_cv_header_stdint_h+set}" = set; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714/* end confdefs.h. */ 6715#include <sys/types.h> 6716#include <stdint.h> 6717int 6718main () 6719{ 6720uintmax_t i = (uintmax_t) -1; 6721 ; 6722 return 0; 6723} 6724_ACEOF 6725if ac_fn_c_try_compile "$LINENO"; then : 6726 jm_ac_cv_header_stdint_h=yes 6727else 6728 jm_ac_cv_header_stdint_h=no 6729fi 6730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6731fi 6732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 6733$as_echo "$jm_ac_cv_header_stdint_h" >&6; } 6734 if test $jm_ac_cv_header_stdint_h = yes; then 6735 6736cat >>confdefs.h <<_ACEOF 6737#define HAVE_STDINT_H_WITH_UINTMAX 1 6738_ACEOF 6739 6740 fi 6741 6742 6743 6744 6745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 6746$as_echo_n "checking for intmax_t... " >&6; } 6747if test "${gt_cv_c_intmax_t+set}" = set; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6751/* end confdefs.h. */ 6752 6753#include <stddef.h> 6754#include <stdlib.h> 6755#if HAVE_STDINT_H_WITH_UINTMAX 6756#include <stdint.h> 6757#endif 6758#if HAVE_INTTYPES_H_WITH_UINTMAX 6759#include <inttypes.h> 6760#endif 6761 6762int 6763main () 6764{ 6765intmax_t x = -1; 6766 ; 6767 return 0; 6768} 6769_ACEOF 6770if ac_fn_c_try_compile "$LINENO"; then : 6771 gt_cv_c_intmax_t=yes 6772else 6773 gt_cv_c_intmax_t=no 6774fi 6775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6776fi 6777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 6778$as_echo "$gt_cv_c_intmax_t" >&6; } 6779 if test $gt_cv_c_intmax_t = yes; then 6780 6781$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 6782 6783 fi 6784 6785 6786 6787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 6788$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 6789if test "${gt_cv_func_printf_posix+set}" = set; then : 6790 $as_echo_n "(cached) " >&6 6791else 6792 6793 if test "$cross_compiling" = yes; then : 6794 6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796/* end confdefs.h. */ 6797 6798#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 6799 notposix 6800#endif 6801 6802_ACEOF 6803if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6804 $EGREP "notposix" >/dev/null 2>&1; then : 6805 gt_cv_func_printf_posix="guessing no" 6806else 6807 gt_cv_func_printf_posix="guessing yes" 6808fi 6809rm -f conftest* 6810 6811 6812else 6813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6814/* end confdefs.h. */ 6815 6816#include <stdio.h> 6817#include <string.h> 6818/* The string "%2$d %1$d", with dollar characters protected from the shell's 6819 dollar expansion (possibly an autoconf bug). */ 6820static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 6821static char buf[100]; 6822int main () 6823{ 6824 sprintf (buf, format, 33, 55); 6825 return (strcmp (buf, "55 33") != 0); 6826} 6827_ACEOF 6828if ac_fn_c_try_run "$LINENO"; then : 6829 gt_cv_func_printf_posix=yes 6830else 6831 gt_cv_func_printf_posix=no 6832fi 6833rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6834 conftest.$ac_objext conftest.beam conftest.$ac_ext 6835fi 6836 6837 6838fi 6839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 6840$as_echo "$gt_cv_func_printf_posix" >&6; } 6841 case $gt_cv_func_printf_posix in 6842 *yes) 6843 6844$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 6845 6846 ;; 6847 esac 6848 6849# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6850# for constant arguments. Useless! 6851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 6852$as_echo_n "checking for working alloca.h... " >&6; } 6853if test "${ac_cv_working_alloca_h+set}" = set; then : 6854 $as_echo_n "(cached) " >&6 6855else 6856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6857/* end confdefs.h. */ 6858#include <alloca.h> 6859int 6860main () 6861{ 6862char *p = (char *) alloca (2 * sizeof (int)); 6863 if (p) return 0; 6864 ; 6865 return 0; 6866} 6867_ACEOF 6868if ac_fn_c_try_link "$LINENO"; then : 6869 ac_cv_working_alloca_h=yes 6870else 6871 ac_cv_working_alloca_h=no 6872fi 6873rm -f core conftest.err conftest.$ac_objext \ 6874 conftest$ac_exeext conftest.$ac_ext 6875fi 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 6877$as_echo "$ac_cv_working_alloca_h" >&6; } 6878if test $ac_cv_working_alloca_h = yes; then 6879 6880$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 6881 6882fi 6883 6884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 6885$as_echo_n "checking for alloca... " >&6; } 6886if test "${ac_cv_func_alloca_works+set}" = set; then : 6887 $as_echo_n "(cached) " >&6 6888else 6889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6890/* end confdefs.h. */ 6891#ifdef __GNUC__ 6892# define alloca __builtin_alloca 6893#else 6894# ifdef _MSC_VER 6895# include <malloc.h> 6896# define alloca _alloca 6897# else 6898# ifdef HAVE_ALLOCA_H 6899# include <alloca.h> 6900# else 6901# ifdef _AIX 6902 #pragma alloca 6903# else 6904# ifndef alloca /* predefined by HP cc +Olibcalls */ 6905char *alloca (); 6906# endif 6907# endif 6908# endif 6909# endif 6910#endif 6911 6912int 6913main () 6914{ 6915char *p = (char *) alloca (1); 6916 if (p) return 0; 6917 ; 6918 return 0; 6919} 6920_ACEOF 6921if ac_fn_c_try_link "$LINENO"; then : 6922 ac_cv_func_alloca_works=yes 6923else 6924 ac_cv_func_alloca_works=no 6925fi 6926rm -f core conftest.err conftest.$ac_objext \ 6927 conftest$ac_exeext conftest.$ac_ext 6928fi 6929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 6930$as_echo "$ac_cv_func_alloca_works" >&6; } 6931 6932if test $ac_cv_func_alloca_works = yes; then 6933 6934$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 6935 6936else 6937 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 6938# that cause trouble. Some versions do not even contain alloca or 6939# contain a buggy version. If you still want to use their alloca, 6940# use ar to extract alloca.o from them instead of compiling alloca.c. 6941 6942ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 6943 6944$as_echo "#define C_ALLOCA 1" >>confdefs.h 6945 6946 6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 6948$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 6949if test "${ac_cv_os_cray+set}" = set; then : 6950 $as_echo_n "(cached) " >&6 6951else 6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6953/* end confdefs.h. */ 6954#if defined CRAY && ! defined CRAY2 6955webecray 6956#else 6957wenotbecray 6958#endif 6959 6960_ACEOF 6961if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6962 $EGREP "webecray" >/dev/null 2>&1; then : 6963 ac_cv_os_cray=yes 6964else 6965 ac_cv_os_cray=no 6966fi 6967rm -f conftest* 6968 6969fi 6970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 6971$as_echo "$ac_cv_os_cray" >&6; } 6972if test $ac_cv_os_cray = yes; then 6973 for ac_func in _getb67 GETB67 getb67; do 6974 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6975ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6976eval as_val=\$$as_ac_var 6977 if test "x$as_val" = x""yes; then : 6978 6979cat >>confdefs.h <<_ACEOF 6980#define CRAY_STACKSEG_END $ac_func 6981_ACEOF 6982 6983 break 6984fi 6985 6986 done 6987fi 6988 6989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 6990$as_echo_n "checking stack direction for C alloca... " >&6; } 6991if test "${ac_cv_c_stack_direction+set}" = set; then : 6992 $as_echo_n "(cached) " >&6 6993else 6994 if test "$cross_compiling" = yes; then : 6995 ac_cv_c_stack_direction=0 6996else 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6998/* end confdefs.h. */ 6999$ac_includes_default 7000int 7001find_stack_direction () 7002{ 7003 static char *addr = 0; 7004 auto char dummy; 7005 if (addr == 0) 7006 { 7007 addr = &dummy; 7008 return find_stack_direction (); 7009 } 7010 else 7011 return (&dummy > addr) ? 1 : -1; 7012} 7013 7014int 7015main () 7016{ 7017 return find_stack_direction () < 0; 7018} 7019_ACEOF 7020if ac_fn_c_try_run "$LINENO"; then : 7021 ac_cv_c_stack_direction=1 7022else 7023 ac_cv_c_stack_direction=-1 7024fi 7025rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7026 conftest.$ac_objext conftest.beam conftest.$ac_ext 7027fi 7028 7029fi 7030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7031$as_echo "$ac_cv_c_stack_direction" >&6; } 7032cat >>confdefs.h <<_ACEOF 7033#define STACK_DIRECTION $ac_cv_c_stack_direction 7034_ACEOF 7035 7036 7037fi 7038 7039 7040 7041 7042 for ac_header in $ac_header_list 7043do : 7044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7045ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7046" 7047eval as_val=\$$as_ac_Header 7048 if test "x$as_val" = x""yes; then : 7049 cat >>confdefs.h <<_ACEOF 7050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7051_ACEOF 7052 7053fi 7054 7055done 7056 7057 7058 7059 7060 7061 7062 7063 7064for ac_func in getpagesize 7065do : 7066 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 7067if test "x$ac_cv_func_getpagesize" = x""yes; then : 7068 cat >>confdefs.h <<_ACEOF 7069#define HAVE_GETPAGESIZE 1 7070_ACEOF 7071 7072fi 7073done 7074 7075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 7076$as_echo_n "checking for working mmap... " >&6; } 7077if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 7078 $as_echo_n "(cached) " >&6 7079else 7080 if test "$cross_compiling" = yes; then : 7081 ac_cv_func_mmap_fixed_mapped=no 7082else 7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7084/* end confdefs.h. */ 7085$ac_includes_default 7086/* malloc might have been renamed as rpl_malloc. */ 7087#undef malloc 7088 7089/* Thanks to Mike Haertel and Jim Avera for this test. 7090 Here is a matrix of mmap possibilities: 7091 mmap private not fixed 7092 mmap private fixed at somewhere currently unmapped 7093 mmap private fixed at somewhere already mapped 7094 mmap shared not fixed 7095 mmap shared fixed at somewhere currently unmapped 7096 mmap shared fixed at somewhere already mapped 7097 For private mappings, we should verify that changes cannot be read() 7098 back from the file, nor mmap's back from the file at a different 7099 address. (There have been systems where private was not correctly 7100 implemented like the infamous i386 svr4.0, and systems where the 7101 VM page cache was not coherent with the file system buffer cache 7102 like early versions of FreeBSD and possibly contemporary NetBSD.) 7103 For shared mappings, we should conversely verify that changes get 7104 propagated back to all the places they're supposed to be. 7105 7106 Grep wants private fixed already mapped. 7107 The main things grep needs to know about mmap are: 7108 * does it exist and is it safe to write into the mmap'd area 7109 * how to use it (BSD variants) */ 7110 7111#include <fcntl.h> 7112#include <sys/mman.h> 7113 7114#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 7115char *malloc (); 7116#endif 7117 7118/* This mess was copied from the GNU getpagesize.h. */ 7119#ifndef HAVE_GETPAGESIZE 7120# ifdef _SC_PAGESIZE 7121# define getpagesize() sysconf(_SC_PAGESIZE) 7122# else /* no _SC_PAGESIZE */ 7123# ifdef HAVE_SYS_PARAM_H 7124# include <sys/param.h> 7125# ifdef EXEC_PAGESIZE 7126# define getpagesize() EXEC_PAGESIZE 7127# else /* no EXEC_PAGESIZE */ 7128# ifdef NBPG 7129# define getpagesize() NBPG * CLSIZE 7130# ifndef CLSIZE 7131# define CLSIZE 1 7132# endif /* no CLSIZE */ 7133# else /* no NBPG */ 7134# ifdef NBPC 7135# define getpagesize() NBPC 7136# else /* no NBPC */ 7137# ifdef PAGESIZE 7138# define getpagesize() PAGESIZE 7139# endif /* PAGESIZE */ 7140# endif /* no NBPC */ 7141# endif /* no NBPG */ 7142# endif /* no EXEC_PAGESIZE */ 7143# else /* no HAVE_SYS_PARAM_H */ 7144# define getpagesize() 8192 /* punt totally */ 7145# endif /* no HAVE_SYS_PARAM_H */ 7146# endif /* no _SC_PAGESIZE */ 7147 7148#endif /* no HAVE_GETPAGESIZE */ 7149 7150int 7151main () 7152{ 7153 char *data, *data2, *data3; 7154 const char *cdata2; 7155 int i, pagesize; 7156 int fd, fd2; 7157 7158 pagesize = getpagesize (); 7159 7160 /* First, make a file with some known garbage in it. */ 7161 data = (char *) malloc (pagesize); 7162 if (!data) 7163 return 1; 7164 for (i = 0; i < pagesize; ++i) 7165 *(data + i) = rand (); 7166 umask (0); 7167 fd = creat ("conftest.mmap", 0600); 7168 if (fd < 0) 7169 return 2; 7170 if (write (fd, data, pagesize) != pagesize) 7171 return 3; 7172 close (fd); 7173 7174 /* Next, check that the tail of a page is zero-filled. File must have 7175 non-zero length, otherwise we risk SIGBUS for entire page. */ 7176 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 7177 if (fd2 < 0) 7178 return 4; 7179 cdata2 = ""; 7180 if (write (fd2, cdata2, 1) != 1) 7181 return 5; 7182 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 7183 if (data2 == MAP_FAILED) 7184 return 6; 7185 for (i = 0; i < pagesize; ++i) 7186 if (*(data2 + i)) 7187 return 7; 7188 close (fd2); 7189 if (munmap (data2, pagesize)) 7190 return 8; 7191 7192 /* Next, try to mmap the file at a fixed address which already has 7193 something else allocated at it. If we can, also make sure that 7194 we see the same garbage. */ 7195 fd = open ("conftest.mmap", O_RDWR); 7196 if (fd < 0) 7197 return 9; 7198 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 7199 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 7200 return 10; 7201 for (i = 0; i < pagesize; ++i) 7202 if (*(data + i) != *(data2 + i)) 7203 return 11; 7204 7205 /* Finally, make sure that changes to the mapped area do not 7206 percolate back to the file as seen by read(). (This is a bug on 7207 some variants of i386 svr4.0.) */ 7208 for (i = 0; i < pagesize; ++i) 7209 *(data2 + i) = *(data2 + i) + 1; 7210 data3 = (char *) malloc (pagesize); 7211 if (!data3) 7212 return 12; 7213 if (read (fd, data3, pagesize) != pagesize) 7214 return 13; 7215 for (i = 0; i < pagesize; ++i) 7216 if (*(data + i) != *(data3 + i)) 7217 return 14; 7218 close (fd); 7219 return 0; 7220} 7221_ACEOF 7222if ac_fn_c_try_run "$LINENO"; then : 7223 ac_cv_func_mmap_fixed_mapped=yes 7224else 7225 ac_cv_func_mmap_fixed_mapped=no 7226fi 7227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7228 conftest.$ac_objext conftest.beam conftest.$ac_ext 7229fi 7230 7231fi 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 7233$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 7234if test $ac_cv_func_mmap_fixed_mapped = yes; then 7235 7236$as_echo "#define HAVE_MMAP 1" >>confdefs.h 7237 7238fi 7239rm -f conftest.mmap conftest.txt 7240 7241 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 7243$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 7244if test "${ac_cv_gnu_library_2_1+set}" = set; then : 7245 $as_echo_n "(cached) " >&6 7246else 7247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7248/* end confdefs.h. */ 7249 7250#include <features.h> 7251#ifdef __GNU_LIBRARY__ 7252 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 7253 Lucky GNU user 7254 #endif 7255#endif 7256 7257_ACEOF 7258if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7259 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 7260 ac_cv_gnu_library_2_1=yes 7261else 7262 ac_cv_gnu_library_2_1=no 7263fi 7264rm -f conftest* 7265 7266 7267 7268fi 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 7270$as_echo "$ac_cv_gnu_library_2_1" >&6; } 7271 7272 GLIBC21="$ac_cv_gnu_library_2_1" 7273 7274 7275 7276 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 7278$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 7279if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : 7280 $as_echo_n "(cached) " >&6 7281else 7282 7283 if test "$cross_compiling" = yes; then : 7284 7285 # Guess based on the CPU. 7286 case "$host_cpu" in 7287 alpha* | i3456786 | m68k | s390*) 7288 gt_cv_int_divbyzero_sigfpe="guessing yes";; 7289 *) 7290 gt_cv_int_divbyzero_sigfpe="guessing no";; 7291 esac 7292 7293else 7294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7295/* end confdefs.h. */ 7296 7297#include <stdlib.h> 7298#include <signal.h> 7299 7300static void 7301#ifdef __cplusplus 7302sigfpe_handler (int sig) 7303#else 7304sigfpe_handler (sig) int sig; 7305#endif 7306{ 7307 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 7308 exit (sig != SIGFPE); 7309} 7310 7311int x = 1; 7312int y = 0; 7313int z; 7314int nan; 7315 7316int main () 7317{ 7318 signal (SIGFPE, sigfpe_handler); 7319/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 7320#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 7321 signal (SIGTRAP, sigfpe_handler); 7322#endif 7323/* Linux/SPARC yields signal SIGILL. */ 7324#if defined (__sparc__) && defined (__linux__) 7325 signal (SIGILL, sigfpe_handler); 7326#endif 7327 7328 z = x / y; 7329 nan = y / y; 7330 exit (1); 7331} 7332 7333_ACEOF 7334if ac_fn_c_try_run "$LINENO"; then : 7335 gt_cv_int_divbyzero_sigfpe=yes 7336else 7337 gt_cv_int_divbyzero_sigfpe=no 7338fi 7339rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7340 conftest.$ac_objext conftest.beam conftest.$ac_ext 7341fi 7342 7343 7344fi 7345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 7346$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 7347 case "$gt_cv_int_divbyzero_sigfpe" in 7348 *yes) value=1;; 7349 *) value=0;; 7350 esac 7351 7352cat >>confdefs.h <<_ACEOF 7353#define INTDIV0_RAISES_SIGFPE $value 7354_ACEOF 7355 7356 7357 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 7359$as_echo_n "checking for unsigned long long... " >&6; } 7360if test "${ac_cv_type_unsigned_long_long+set}" = set; then : 7361 $as_echo_n "(cached) " >&6 7362else 7363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7364/* end confdefs.h. */ 7365unsigned long long ull = 1ULL; int i = 63; 7366int 7367main () 7368{ 7369unsigned long long ullmax = (unsigned long long) -1; 7370 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 7371 ; 7372 return 0; 7373} 7374_ACEOF 7375if ac_fn_c_try_link "$LINENO"; then : 7376 ac_cv_type_unsigned_long_long=yes 7377else 7378 ac_cv_type_unsigned_long_long=no 7379fi 7380rm -f core conftest.err conftest.$ac_objext \ 7381 conftest$ac_exeext conftest.$ac_ext 7382fi 7383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 7384$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 7385 if test $ac_cv_type_unsigned_long_long = yes; then 7386 7387$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h 7388 7389 fi 7390 7391 7392 7393 7394 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 7395 7396 test $ac_cv_type_unsigned_long_long = yes \ 7397 && ac_type='unsigned long long' \ 7398 || ac_type='unsigned long' 7399 7400cat >>confdefs.h <<_ACEOF 7401#define uintmax_t $ac_type 7402_ACEOF 7403 7404 else 7405 7406$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 7407 7408 fi 7409 7410 7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 7412$as_echo_n "checking for inttypes.h... " >&6; } 7413if test "${gt_cv_header_inttypes_h+set}" = set; then : 7414 $as_echo_n "(cached) " >&6 7415else 7416 7417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7418/* end confdefs.h. */ 7419#include <sys/types.h> 7420#include <inttypes.h> 7421int 7422main () 7423{ 7424 7425 ; 7426 return 0; 7427} 7428_ACEOF 7429if ac_fn_c_try_compile "$LINENO"; then : 7430 gt_cv_header_inttypes_h=yes 7431else 7432 gt_cv_header_inttypes_h=no 7433fi 7434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7435 7436fi 7437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 7438$as_echo "$gt_cv_header_inttypes_h" >&6; } 7439 if test $gt_cv_header_inttypes_h = yes; then 7440 7441cat >>confdefs.h <<_ACEOF 7442#define HAVE_INTTYPES_H 1 7443_ACEOF 7444 7445 fi 7446 7447 7448 7449 if test $gt_cv_header_inttypes_h = yes; then 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 7451$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 7452if test "${gt_cv_inttypes_pri_broken+set}" = set; then : 7453 $as_echo_n "(cached) " >&6 7454else 7455 7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7457/* end confdefs.h. */ 7458#include <inttypes.h> 7459#ifdef PRId32 7460char *p = PRId32; 7461#endif 7462 7463int 7464main () 7465{ 7466 7467 ; 7468 return 0; 7469} 7470_ACEOF 7471if ac_fn_c_try_compile "$LINENO"; then : 7472 gt_cv_inttypes_pri_broken=no 7473else 7474 gt_cv_inttypes_pri_broken=yes 7475fi 7476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7477 7478fi 7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 7480$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 7481 fi 7482 if test "$gt_cv_inttypes_pri_broken" = yes; then 7483 7484cat >>confdefs.h <<_ACEOF 7485#define PRI_MACROS_BROKEN 1 7486_ACEOF 7487 7488 fi 7489 7490 7491 for ac_header in stdint.h 7492do : 7493 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 7494if test "x$ac_cv_header_stdint_h" = x""yes; then : 7495 cat >>confdefs.h <<_ACEOF 7496#define HAVE_STDINT_H 1 7497_ACEOF 7498 7499fi 7500 7501done 7502 7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 7504$as_echo_n "checking for SIZE_MAX... " >&6; } 7505 result= 7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507/* end confdefs.h. */ 7508 7509#include <limits.h> 7510#if HAVE_STDINT_H 7511#include <stdint.h> 7512#endif 7513#ifdef SIZE_MAX 7514Found it 7515#endif 7516 7517_ACEOF 7518if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7519 $EGREP "Found it" >/dev/null 2>&1; then : 7520 result=yes 7521fi 7522rm -f conftest* 7523 7524 if test -z "$result"; then 7525 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : 7526 7527else 7528 result=? 7529fi 7530 7531 7532 if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : 7533 7534else 7535 result=? 7536fi 7537 7538 7539 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 7540 7541else 7542 result=? 7543fi 7544 7545 7546 if test "$fits_in_uint" = 1; then 7547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7548/* end confdefs.h. */ 7549#include <stddef.h> 7550 extern size_t foo; 7551 extern unsigned long foo; 7552 7553int 7554main () 7555{ 7556 7557 ; 7558 return 0; 7559} 7560_ACEOF 7561if ac_fn_c_try_compile "$LINENO"; then : 7562 fits_in_uint=0 7563fi 7564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7565 fi 7566 if test -z "$result"; then 7567 if test "$fits_in_uint" = 1; then 7568 result="$res_hi$res_lo"U 7569 else 7570 result="$res_hi$res_lo"UL 7571 fi 7572 else 7573 result='~(size_t)0' 7574 fi 7575 fi 7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 7577$as_echo "$result" >&6; } 7578 if test "$result" != yes; then 7579 7580cat >>confdefs.h <<_ACEOF 7581#define SIZE_MAX $result 7582_ACEOF 7583 7584 fi 7585 7586 7587 7588 for ac_header in stdint.h 7589do : 7590 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 7591if test "x$ac_cv_header_stdint_h" = x""yes; then : 7592 cat >>confdefs.h <<_ACEOF 7593#define HAVE_STDINT_H 1 7594_ACEOF 7595 7596fi 7597 7598done 7599 7600 7601 7602 if test "X$prefix" = "XNONE"; then 7603 acl_final_prefix="$ac_default_prefix" 7604 else 7605 acl_final_prefix="$prefix" 7606 fi 7607 if test "X$exec_prefix" = "XNONE"; then 7608 acl_final_exec_prefix='${prefix}' 7609 else 7610 acl_final_exec_prefix="$exec_prefix" 7611 fi 7612 acl_save_prefix="$prefix" 7613 prefix="$acl_final_prefix" 7614 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 7615 prefix="$acl_save_prefix" 7616 7617 7618# Check whether --with-gnu-ld was given. 7619if test "${with_gnu_ld+set}" = set; then : 7620 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7621else 7622 with_gnu_ld=no 7623fi 7624 7625# Prepare PATH_SEPARATOR. 7626# The user is always right. 7627if test "${PATH_SEPARATOR+set}" != set; then 7628 echo "#! /bin/sh" >conf$$.sh 7629 echo "exit 0" >>conf$$.sh 7630 chmod +x conf$$.sh 7631 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 7632 PATH_SEPARATOR=';' 7633 else 7634 PATH_SEPARATOR=: 7635 fi 7636 rm -f conf$$.sh 7637fi 7638ac_prog=ld 7639if test "$GCC" = yes; then 7640 # Check if gcc -print-prog-name=ld gives a path. 7641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 7642$as_echo_n "checking for ld used by GCC... " >&6; } 7643 case $host in 7644 *-*-mingw*) 7645 # gcc leaves a trailing carriage return which upsets mingw 7646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7647 *) 7648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7649 esac 7650 case $ac_prog in 7651 # Accept absolute paths. 7652 [\\/]* | [A-Za-z]:[\\/]*) 7653 re_direlt='/[^/][^/]*/\.\./' 7654 # Canonicalize the path of ld 7655 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 7656 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 7657 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 7658 done 7659 test -z "$LD" && LD="$ac_prog" 7660 ;; 7661 "") 7662 # If it fails, then pretend we aren't using GCC. 7663 ac_prog=ld 7664 ;; 7665 *) 7666 # If it is relative, then search for the first ld in PATH. 7667 with_gnu_ld=unknown 7668 ;; 7669 esac 7670elif test "$with_gnu_ld" = yes; then 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7672$as_echo_n "checking for GNU ld... " >&6; } 7673else 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7675$as_echo_n "checking for non-GNU ld... " >&6; } 7676fi 7677if test "${acl_cv_path_LD+set}" = set; then : 7678 $as_echo_n "(cached) " >&6 7679else 7680 if test -z "$LD"; then 7681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 7682 for ac_dir in $PATH; do 7683 test -z "$ac_dir" && ac_dir=. 7684 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7685 acl_cv_path_LD="$ac_dir/$ac_prog" 7686 # Check to see if the program is GNU ld. I'd rather use --version, 7687 # but apparently some GNU ld's only accept -v. 7688 # Break only if it was the GNU/non-GNU ld that we prefer. 7689 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 7690 *GNU* | *'with BFD'*) 7691 test "$with_gnu_ld" != no && break ;; 7692 *) 7693 test "$with_gnu_ld" != yes && break ;; 7694 esac 7695 fi 7696 done 7697 IFS="$ac_save_ifs" 7698else 7699 acl_cv_path_LD="$LD" # Let the user override the test with a path. 7700fi 7701fi 7702 7703LD="$acl_cv_path_LD" 7704if test -n "$LD"; then 7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7706$as_echo "$LD" >&6; } 7707else 7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7709$as_echo "no" >&6; } 7710fi 7711test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7713$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7714if test "${acl_cv_prog_gnu_ld+set}" = set; then : 7715 $as_echo_n "(cached) " >&6 7716else 7717 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 7718case `$LD -v 2>&1 </dev/null` in 7719*GNU* | *'with BFD'*) 7720 acl_cv_prog_gnu_ld=yes ;; 7721*) 7722 acl_cv_prog_gnu_ld=no ;; 7723esac 7724fi 7725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 7726$as_echo "$acl_cv_prog_gnu_ld" >&6; } 7727with_gnu_ld=$acl_cv_prog_gnu_ld 7728 7729 7730 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 7732$as_echo_n "checking for shared library run path origin... " >&6; } 7733if test "${acl_cv_rpath+set}" = set; then : 7734 $as_echo_n "(cached) " >&6 7735else 7736 7737 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7738 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 7739 . ./conftest.sh 7740 rm -f ./conftest.sh 7741 acl_cv_rpath=done 7742 7743fi 7744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 7745$as_echo "$acl_cv_rpath" >&6; } 7746 wl="$acl_cv_wl" 7747 libext="$acl_cv_libext" 7748 shlibext="$acl_cv_shlibext" 7749 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7750 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7751 hardcode_direct="$acl_cv_hardcode_direct" 7752 hardcode_minus_L="$acl_cv_hardcode_minus_L" 7753 # Check whether --enable-rpath was given. 7754if test "${enable_rpath+set}" = set; then : 7755 enableval=$enable_rpath; : 7756else 7757 enable_rpath=yes 7758fi 7759 7760 7761 7762 7763 7764 7765 7766 7767 use_additional=yes 7768 7769 acl_save_prefix="$prefix" 7770 prefix="$acl_final_prefix" 7771 acl_save_exec_prefix="$exec_prefix" 7772 exec_prefix="$acl_final_exec_prefix" 7773 7774 eval additional_includedir=\"$includedir\" 7775 eval additional_libdir=\"$libdir\" 7776 7777 exec_prefix="$acl_save_exec_prefix" 7778 prefix="$acl_save_prefix" 7779 7780 7781# Check whether --with-libiconv-prefix was given. 7782if test "${with_libiconv_prefix+set}" = set; then : 7783 withval=$with_libiconv_prefix; 7784 if test "X$withval" = "Xno"; then 7785 use_additional=no 7786 else 7787 if test "X$withval" = "X"; then 7788 7789 acl_save_prefix="$prefix" 7790 prefix="$acl_final_prefix" 7791 acl_save_exec_prefix="$exec_prefix" 7792 exec_prefix="$acl_final_exec_prefix" 7793 7794 eval additional_includedir=\"$includedir\" 7795 eval additional_libdir=\"$libdir\" 7796 7797 exec_prefix="$acl_save_exec_prefix" 7798 prefix="$acl_save_prefix" 7799 7800 else 7801 additional_includedir="$withval/include" 7802 additional_libdir="$withval/lib" 7803 fi 7804 fi 7805 7806fi 7807 7808 LIBICONV= 7809 LTLIBICONV= 7810 INCICONV= 7811 rpathdirs= 7812 ltrpathdirs= 7813 names_already_handled= 7814 names_next_round='iconv ' 7815 while test -n "$names_next_round"; do 7816 names_this_round="$names_next_round" 7817 names_next_round= 7818 for name in $names_this_round; do 7819 already_handled= 7820 for n in $names_already_handled; do 7821 if test "$n" = "$name"; then 7822 already_handled=yes 7823 break 7824 fi 7825 done 7826 if test -z "$already_handled"; then 7827 names_already_handled="$names_already_handled $name" 7828 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 7829 eval value=\"\$HAVE_LIB$uppername\" 7830 if test -n "$value"; then 7831 if test "$value" = yes; then 7832 eval value=\"\$LIB$uppername\" 7833 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 7834 eval value=\"\$LTLIB$uppername\" 7835 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 7836 else 7837 : 7838 fi 7839 else 7840 found_dir= 7841 found_la= 7842 found_so= 7843 found_a= 7844 if test $use_additional = yes; then 7845 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 7846 found_dir="$additional_libdir" 7847 found_so="$additional_libdir/lib$name.$shlibext" 7848 if test -f "$additional_libdir/lib$name.la"; then 7849 found_la="$additional_libdir/lib$name.la" 7850 fi 7851 else 7852 if test -f "$additional_libdir/lib$name.$libext"; then 7853 found_dir="$additional_libdir" 7854 found_a="$additional_libdir/lib$name.$libext" 7855 if test -f "$additional_libdir/lib$name.la"; then 7856 found_la="$additional_libdir/lib$name.la" 7857 fi 7858 fi 7859 fi 7860 fi 7861 if test "X$found_dir" = "X"; then 7862 for x in $LDFLAGS $LTLIBICONV; do 7863 7864 acl_save_prefix="$prefix" 7865 prefix="$acl_final_prefix" 7866 acl_save_exec_prefix="$exec_prefix" 7867 exec_prefix="$acl_final_exec_prefix" 7868 eval x=\"$x\" 7869 exec_prefix="$acl_save_exec_prefix" 7870 prefix="$acl_save_prefix" 7871 7872 case "$x" in 7873 -L*) 7874 dir=`echo "X$x" | sed -e 's/^X-L//'` 7875 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 7876 found_dir="$dir" 7877 found_so="$dir/lib$name.$shlibext" 7878 if test -f "$dir/lib$name.la"; then 7879 found_la="$dir/lib$name.la" 7880 fi 7881 else 7882 if test -f "$dir/lib$name.$libext"; then 7883 found_dir="$dir" 7884 found_a="$dir/lib$name.$libext" 7885 if test -f "$dir/lib$name.la"; then 7886 found_la="$dir/lib$name.la" 7887 fi 7888 fi 7889 fi 7890 ;; 7891 esac 7892 if test "X$found_dir" != "X"; then 7893 break 7894 fi 7895 done 7896 fi 7897 if test "X$found_dir" != "X"; then 7898 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 7899 if test "X$found_so" != "X"; then 7900 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 7901 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7902 else 7903 haveit= 7904 for x in $ltrpathdirs; do 7905 if test "X$x" = "X$found_dir"; then 7906 haveit=yes 7907 break 7908 fi 7909 done 7910 if test -z "$haveit"; then 7911 ltrpathdirs="$ltrpathdirs $found_dir" 7912 fi 7913 if test "$hardcode_direct" = yes; then 7914 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7915 else 7916 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 7917 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7918 haveit= 7919 for x in $rpathdirs; do 7920 if test "X$x" = "X$found_dir"; then 7921 haveit=yes 7922 break 7923 fi 7924 done 7925 if test -z "$haveit"; then 7926 rpathdirs="$rpathdirs $found_dir" 7927 fi 7928 else 7929 haveit= 7930 for x in $LDFLAGS $LIBICONV; do 7931 7932 acl_save_prefix="$prefix" 7933 prefix="$acl_final_prefix" 7934 acl_save_exec_prefix="$exec_prefix" 7935 exec_prefix="$acl_final_exec_prefix" 7936 eval x=\"$x\" 7937 exec_prefix="$acl_save_exec_prefix" 7938 prefix="$acl_save_prefix" 7939 7940 if test "X$x" = "X-L$found_dir"; then 7941 haveit=yes 7942 break 7943 fi 7944 done 7945 if test -z "$haveit"; then 7946 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 7947 fi 7948 if test "$hardcode_minus_L" != no; then 7949 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 7950 else 7951 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 7952 fi 7953 fi 7954 fi 7955 fi 7956 else 7957 if test "X$found_a" != "X"; then 7958 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 7959 else 7960 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 7961 fi 7962 fi 7963 additional_includedir= 7964 case "$found_dir" in 7965 */lib | */lib/) 7966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 7967 additional_includedir="$basedir/include" 7968 ;; 7969 esac 7970 if test "X$additional_includedir" != "X"; then 7971 if test "X$additional_includedir" != "X/usr/include"; then 7972 haveit= 7973 if test "X$additional_includedir" = "X/usr/local/include"; then 7974 if test -n "$GCC"; then 7975 case $host_os in 7976 linux*) haveit=yes;; 7977 esac 7978 fi 7979 fi 7980 if test -z "$haveit"; then 7981 for x in $CPPFLAGS $INCICONV; do 7982 7983 acl_save_prefix="$prefix" 7984 prefix="$acl_final_prefix" 7985 acl_save_exec_prefix="$exec_prefix" 7986 exec_prefix="$acl_final_exec_prefix" 7987 eval x=\"$x\" 7988 exec_prefix="$acl_save_exec_prefix" 7989 prefix="$acl_save_prefix" 7990 7991 if test "X$x" = "X-I$additional_includedir"; then 7992 haveit=yes 7993 break 7994 fi 7995 done 7996 if test -z "$haveit"; then 7997 if test -d "$additional_includedir"; then 7998 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 7999 fi 8000 fi 8001 fi 8002 fi 8003 fi 8004 if test -n "$found_la"; then 8005 save_libdir="$libdir" 8006 case "$found_la" in 8007 */* | *\\*) . "$found_la" ;; 8008 *) . "./$found_la" ;; 8009 esac 8010 libdir="$save_libdir" 8011 for dep in $dependency_libs; do 8012 case "$dep" in 8013 -L*) 8014 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8015 if test "X$additional_libdir" != "X/usr/lib"; then 8016 haveit= 8017 if test "X$additional_libdir" = "X/usr/local/lib"; then 8018 if test -n "$GCC"; then 8019 case $host_os in 8020 linux*) haveit=yes;; 8021 esac 8022 fi 8023 fi 8024 if test -z "$haveit"; then 8025 haveit= 8026 for x in $LDFLAGS $LIBICONV; do 8027 8028 acl_save_prefix="$prefix" 8029 prefix="$acl_final_prefix" 8030 acl_save_exec_prefix="$exec_prefix" 8031 exec_prefix="$acl_final_exec_prefix" 8032 eval x=\"$x\" 8033 exec_prefix="$acl_save_exec_prefix" 8034 prefix="$acl_save_prefix" 8035 8036 if test "X$x" = "X-L$additional_libdir"; then 8037 haveit=yes 8038 break 8039 fi 8040 done 8041 if test -z "$haveit"; then 8042 if test -d "$additional_libdir"; then 8043 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 8044 fi 8045 fi 8046 haveit= 8047 for x in $LDFLAGS $LTLIBICONV; do 8048 8049 acl_save_prefix="$prefix" 8050 prefix="$acl_final_prefix" 8051 acl_save_exec_prefix="$exec_prefix" 8052 exec_prefix="$acl_final_exec_prefix" 8053 eval x=\"$x\" 8054 exec_prefix="$acl_save_exec_prefix" 8055 prefix="$acl_save_prefix" 8056 8057 if test "X$x" = "X-L$additional_libdir"; then 8058 haveit=yes 8059 break 8060 fi 8061 done 8062 if test -z "$haveit"; then 8063 if test -d "$additional_libdir"; then 8064 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 8065 fi 8066 fi 8067 fi 8068 fi 8069 ;; 8070 -R*) 8071 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8072 if test "$enable_rpath" != no; then 8073 haveit= 8074 for x in $rpathdirs; do 8075 if test "X$x" = "X$dir"; then 8076 haveit=yes 8077 break 8078 fi 8079 done 8080 if test -z "$haveit"; then 8081 rpathdirs="$rpathdirs $dir" 8082 fi 8083 haveit= 8084 for x in $ltrpathdirs; do 8085 if test "X$x" = "X$dir"; then 8086 haveit=yes 8087 break 8088 fi 8089 done 8090 if test -z "$haveit"; then 8091 ltrpathdirs="$ltrpathdirs $dir" 8092 fi 8093 fi 8094 ;; 8095 -l*) 8096 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8097 ;; 8098 *.la) 8099 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8100 ;; 8101 *) 8102 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 8103 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 8104 ;; 8105 esac 8106 done 8107 fi 8108 else 8109 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 8110 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 8111 fi 8112 fi 8113 fi 8114 done 8115 done 8116 if test "X$rpathdirs" != "X"; then 8117 if test -n "$hardcode_libdir_separator"; then 8118 alldirs= 8119 for found_dir in $rpathdirs; do 8120 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 8121 done 8122 acl_save_libdir="$libdir" 8123 libdir="$alldirs" 8124 eval flag=\"$hardcode_libdir_flag_spec\" 8125 libdir="$acl_save_libdir" 8126 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8127 else 8128 for found_dir in $rpathdirs; do 8129 acl_save_libdir="$libdir" 8130 libdir="$found_dir" 8131 eval flag=\"$hardcode_libdir_flag_spec\" 8132 libdir="$acl_save_libdir" 8133 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 8134 done 8135 fi 8136 fi 8137 if test "X$ltrpathdirs" != "X"; then 8138 for found_dir in $ltrpathdirs; do 8139 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 8140 done 8141 fi 8142 8143 8144 8145 8146 8147 8148 8149 8150 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 8151if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : 8152 8153else 8154 8155$as_echo "#define ptrdiff_t long" >>confdefs.h 8156 8157 8158fi 8159 8160 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 8161stdlib.h string.h unistd.h sys/param.h 8162do : 8163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8164ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8165eval as_val=\$$as_ac_Header 8166 if test "x$as_val" = x""yes; then : 8167 cat >>confdefs.h <<_ACEOF 8168#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8169_ACEOF 8170 8171fi 8172 8173done 8174 8175 for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ 8176mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ 8177strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ 8178__fsetlocking 8179do : 8180 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8181ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8182eval as_val=\$$as_ac_var 8183 if test "x$as_val" = x""yes; then : 8184 cat >>confdefs.h <<_ACEOF 8185#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8186_ACEOF 8187 8188fi 8189done 8190 8191 8192 8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 8194$as_echo_n "checking whether _snprintf is declared... " >&6; } 8195if test "${ac_cv_have_decl__snprintf+set}" = set; then : 8196 $as_echo_n "(cached) " >&6 8197else 8198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8199/* end confdefs.h. */ 8200#include <stdio.h> 8201int 8202main () 8203{ 8204 8205#ifndef _snprintf 8206 char *p = (char *) _snprintf; 8207#endif 8208 8209 ; 8210 return 0; 8211} 8212_ACEOF 8213if ac_fn_c_try_compile "$LINENO"; then : 8214 ac_cv_have_decl__snprintf=yes 8215else 8216 ac_cv_have_decl__snprintf=no 8217fi 8218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8219fi 8220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 8221$as_echo "$ac_cv_have_decl__snprintf" >&6; } 8222 if test $ac_cv_have_decl__snprintf = yes; then 8223 gt_value=1 8224 else 8225 gt_value=0 8226 fi 8227 8228cat >>confdefs.h <<_ACEOF 8229#define HAVE_DECL__SNPRINTF $gt_value 8230_ACEOF 8231 8232 8233 8234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 8235$as_echo_n "checking whether _snwprintf is declared... " >&6; } 8236if test "${ac_cv_have_decl__snwprintf+set}" = set; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8240/* end confdefs.h. */ 8241#include <stdio.h> 8242int 8243main () 8244{ 8245 8246#ifndef _snwprintf 8247 char *p = (char *) _snwprintf; 8248#endif 8249 8250 ; 8251 return 0; 8252} 8253_ACEOF 8254if ac_fn_c_try_compile "$LINENO"; then : 8255 ac_cv_have_decl__snwprintf=yes 8256else 8257 ac_cv_have_decl__snwprintf=no 8258fi 8259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8260fi 8261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 8262$as_echo "$ac_cv_have_decl__snwprintf" >&6; } 8263 if test $ac_cv_have_decl__snwprintf = yes; then 8264 gt_value=1 8265 else 8266 gt_value=0 8267 fi 8268 8269cat >>confdefs.h <<_ACEOF 8270#define HAVE_DECL__SNWPRINTF $gt_value 8271_ACEOF 8272 8273 8274 8275 8276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 8277$as_echo_n "checking whether feof_unlocked is declared... " >&6; } 8278if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : 8279 $as_echo_n "(cached) " >&6 8280else 8281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8282/* end confdefs.h. */ 8283#include <stdio.h> 8284int 8285main () 8286{ 8287 8288#ifndef feof_unlocked 8289 char *p = (char *) feof_unlocked; 8290#endif 8291 8292 ; 8293 return 0; 8294} 8295_ACEOF 8296if ac_fn_c_try_compile "$LINENO"; then : 8297 ac_cv_have_decl_feof_unlocked=yes 8298else 8299 ac_cv_have_decl_feof_unlocked=no 8300fi 8301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8302fi 8303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 8304$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } 8305 if test $ac_cv_have_decl_feof_unlocked = yes; then 8306 gt_value=1 8307 else 8308 gt_value=0 8309 fi 8310 8311cat >>confdefs.h <<_ACEOF 8312#define HAVE_DECL_FEOF_UNLOCKED $gt_value 8313_ACEOF 8314 8315 8316 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 8318$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } 8319if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : 8320 $as_echo_n "(cached) " >&6 8321else 8322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8323/* end confdefs.h. */ 8324#include <stdio.h> 8325int 8326main () 8327{ 8328 8329#ifndef fgets_unlocked 8330 char *p = (char *) fgets_unlocked; 8331#endif 8332 8333 ; 8334 return 0; 8335} 8336_ACEOF 8337if ac_fn_c_try_compile "$LINENO"; then : 8338 ac_cv_have_decl_fgets_unlocked=yes 8339else 8340 ac_cv_have_decl_fgets_unlocked=no 8341fi 8342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8343fi 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 8345$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } 8346 if test $ac_cv_have_decl_fgets_unlocked = yes; then 8347 gt_value=1 8348 else 8349 gt_value=0 8350 fi 8351 8352cat >>confdefs.h <<_ACEOF 8353#define HAVE_DECL_FGETS_UNLOCKED $gt_value 8354_ACEOF 8355 8356 8357 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 8359$as_echo_n "checking whether getc_unlocked is declared... " >&6; } 8360if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : 8361 $as_echo_n "(cached) " >&6 8362else 8363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8364/* end confdefs.h. */ 8365#include <stdio.h> 8366int 8367main () 8368{ 8369 8370#ifndef getc_unlocked 8371 char *p = (char *) getc_unlocked; 8372#endif 8373 8374 ; 8375 return 0; 8376} 8377_ACEOF 8378if ac_fn_c_try_compile "$LINENO"; then : 8379 ac_cv_have_decl_getc_unlocked=yes 8380else 8381 ac_cv_have_decl_getc_unlocked=no 8382fi 8383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8384fi 8385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 8386$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } 8387 if test $ac_cv_have_decl_getc_unlocked = yes; then 8388 gt_value=1 8389 else 8390 gt_value=0 8391 fi 8392 8393cat >>confdefs.h <<_ACEOF 8394#define HAVE_DECL_GETC_UNLOCKED $gt_value 8395_ACEOF 8396 8397 8398 8399 case $gt_cv_func_printf_posix in 8400 *yes) HAVE_POSIX_PRINTF=1 ;; 8401 *) HAVE_POSIX_PRINTF=0 ;; 8402 esac 8403 8404 if test "$ac_cv_func_asprintf" = yes; then 8405 HAVE_ASPRINTF=1 8406 else 8407 HAVE_ASPRINTF=0 8408 fi 8409 8410 if test "$ac_cv_func_snprintf" = yes; then 8411 HAVE_SNPRINTF=1 8412 else 8413 HAVE_SNPRINTF=0 8414 fi 8415 8416 if test "$ac_cv_func_wprintf" = yes; then 8417 HAVE_WPRINTF=1 8418 else 8419 HAVE_WPRINTF=0 8420 fi 8421 8422 8423 8424 8425 8426 8427 8428 am_save_CPPFLAGS="$CPPFLAGS" 8429 8430 for element in $INCICONV; do 8431 haveit= 8432 for x in $CPPFLAGS; do 8433 8434 acl_save_prefix="$prefix" 8435 prefix="$acl_final_prefix" 8436 acl_save_exec_prefix="$exec_prefix" 8437 exec_prefix="$acl_final_exec_prefix" 8438 eval x=\"$x\" 8439 exec_prefix="$acl_save_exec_prefix" 8440 prefix="$acl_save_prefix" 8441 8442 if test "X$x" = "X$element"; then 8443 haveit=yes 8444 break 8445 fi 8446 done 8447 if test -z "$haveit"; then 8448 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8449 fi 8450 done 8451 8452 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 8454$as_echo_n "checking for iconv... " >&6; } 8455if test "${am_cv_func_iconv+set}" = set; then : 8456 $as_echo_n "(cached) " >&6 8457else 8458 8459 am_cv_func_iconv="no, consider installing GNU libiconv" 8460 am_cv_lib_iconv=no 8461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8462/* end confdefs.h. */ 8463#include <stdlib.h> 8464#include <iconv.h> 8465int 8466main () 8467{ 8468iconv_t cd = iconv_open("",""); 8469 iconv(cd,NULL,NULL,NULL,NULL); 8470 iconv_close(cd); 8471 ; 8472 return 0; 8473} 8474_ACEOF 8475if ac_fn_c_try_link "$LINENO"; then : 8476 am_cv_func_iconv=yes 8477fi 8478rm -f core conftest.err conftest.$ac_objext \ 8479 conftest$ac_exeext conftest.$ac_ext 8480 if test "$am_cv_func_iconv" != yes; then 8481 am_save_LIBS="$LIBS" 8482 LIBS="$LIBS $LIBICONV" 8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8484/* end confdefs.h. */ 8485#include <stdlib.h> 8486#include <iconv.h> 8487int 8488main () 8489{ 8490iconv_t cd = iconv_open("",""); 8491 iconv(cd,NULL,NULL,NULL,NULL); 8492 iconv_close(cd); 8493 ; 8494 return 0; 8495} 8496_ACEOF 8497if ac_fn_c_try_link "$LINENO"; then : 8498 am_cv_lib_iconv=yes 8499 am_cv_func_iconv=yes 8500fi 8501rm -f core conftest.err conftest.$ac_objext \ 8502 conftest$ac_exeext conftest.$ac_ext 8503 LIBS="$am_save_LIBS" 8504 fi 8505 8506fi 8507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 8508$as_echo "$am_cv_func_iconv" >&6; } 8509 if test "$am_cv_func_iconv" = yes; then 8510 8511$as_echo "#define HAVE_ICONV 1" >>confdefs.h 8512 8513 fi 8514 if test "$am_cv_lib_iconv" = yes; then 8515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 8516$as_echo_n "checking how to link with libiconv... " >&6; } 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 8518$as_echo "$LIBICONV" >&6; } 8519 else 8520 CPPFLAGS="$am_save_CPPFLAGS" 8521 LIBICONV= 8522 LTLIBICONV= 8523 fi 8524 8525 8526 8527 if test "$am_cv_func_iconv" = yes; then 8528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 8529$as_echo_n "checking for iconv declaration... " >&6; } 8530 if test "${am_cv_proto_iconv+set}" = set; then : 8531 $as_echo_n "(cached) " >&6 8532else 8533 8534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8535/* end confdefs.h. */ 8536 8537#include <stdlib.h> 8538#include <iconv.h> 8539extern 8540#ifdef __cplusplus 8541"C" 8542#endif 8543#if defined(__STDC__) || defined(__cplusplus) 8544size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 8545#else 8546size_t iconv(); 8547#endif 8548 8549int 8550main () 8551{ 8552 8553 ; 8554 return 0; 8555} 8556_ACEOF 8557if ac_fn_c_try_compile "$LINENO"; then : 8558 am_cv_proto_iconv_arg1="" 8559else 8560 am_cv_proto_iconv_arg1="const" 8561fi 8562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8563 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);" 8564fi 8565 8566 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 8568 }$am_cv_proto_iconv" >&5 8569$as_echo "${ac_t:- 8570 }$am_cv_proto_iconv" >&6; } 8571 8572cat >>confdefs.h <<_ACEOF 8573#define ICONV_CONST $am_cv_proto_iconv_arg1 8574_ACEOF 8575 8576 fi 8577 8578 8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 8580$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 8581if test "${am_cv_langinfo_codeset+set}" = set; then : 8582 $as_echo_n "(cached) " >&6 8583else 8584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8585/* end confdefs.h. */ 8586#include <langinfo.h> 8587int 8588main () 8589{ 8590char* cs = nl_langinfo(CODESET); 8591 ; 8592 return 0; 8593} 8594_ACEOF 8595if ac_fn_c_try_link "$LINENO"; then : 8596 am_cv_langinfo_codeset=yes 8597else 8598 am_cv_langinfo_codeset=no 8599fi 8600rm -f core conftest.err conftest.$ac_objext \ 8601 conftest$ac_exeext conftest.$ac_ext 8602 8603fi 8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 8605$as_echo "$am_cv_langinfo_codeset" >&6; } 8606 if test $am_cv_langinfo_codeset = yes; then 8607 8608$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 8609 8610 fi 8611 8612 if test $ac_cv_header_locale_h = yes; then 8613 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 8615$as_echo_n "checking for LC_MESSAGES... " >&6; } 8616if test "${am_cv_val_LC_MESSAGES+set}" = set; then : 8617 $as_echo_n "(cached) " >&6 8618else 8619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8620/* end confdefs.h. */ 8621#include <locale.h> 8622int 8623main () 8624{ 8625return LC_MESSAGES 8626 ; 8627 return 0; 8628} 8629_ACEOF 8630if ac_fn_c_try_link "$LINENO"; then : 8631 am_cv_val_LC_MESSAGES=yes 8632else 8633 am_cv_val_LC_MESSAGES=no 8634fi 8635rm -f core conftest.err conftest.$ac_objext \ 8636 conftest$ac_exeext conftest.$ac_ext 8637fi 8638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 8639$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 8640 if test $am_cv_val_LC_MESSAGES = yes; then 8641 8642$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 8643 8644 fi 8645 8646 fi 8647 8648 for ac_prog in bison 8649do 8650 # Extract the first word of "$ac_prog", so it can be a program name with args. 8651set dummy $ac_prog; ac_word=$2 8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8653$as_echo_n "checking for $ac_word... " >&6; } 8654if test "${ac_cv_prog_INTLBISON+set}" = set; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 if test -n "$INTLBISON"; then 8658 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 8659else 8660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8661for as_dir in $PATH 8662do 8663 IFS=$as_save_IFS 8664 test -z "$as_dir" && as_dir=. 8665 for ac_exec_ext in '' $ac_executable_extensions; do 8666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8667 ac_cv_prog_INTLBISON="$ac_prog" 8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8669 break 2 8670 fi 8671done 8672 done 8673IFS=$as_save_IFS 8674 8675fi 8676fi 8677INTLBISON=$ac_cv_prog_INTLBISON 8678if test -n "$INTLBISON"; then 8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 8680$as_echo "$INTLBISON" >&6; } 8681else 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8683$as_echo "no" >&6; } 8684fi 8685 8686 8687 test -n "$INTLBISON" && break 8688done 8689 8690 if test -z "$INTLBISON"; then 8691 ac_verc_fail=yes 8692 else 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 8694$as_echo_n "checking version of bison... " >&6; } 8695 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 8696 case $ac_prog_version in 8697 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 8698 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 8699 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 8700 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 8701 esac 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 8703$as_echo "$ac_prog_version" >&6; } 8704 fi 8705 if test $ac_verc_fail = yes; then 8706 INTLBISON=: 8707 fi 8708 8709 8710 8711 8712 8713 8714 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 8725$as_echo_n "checking whether NLS is requested... " >&6; } 8726 # Check whether --enable-nls was given. 8727if test "${enable_nls+set}" = set; then : 8728 enableval=$enable_nls; USE_NLS=$enableval 8729else 8730 USE_NLS=yes 8731fi 8732 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 8734$as_echo "$USE_NLS" >&6; } 8735 8736 8737 8738 8739 BUILD_INCLUDED_LIBINTL=no 8740 USE_INCLUDED_LIBINTL=no 8741 8742 LIBINTL= 8743 LTLIBINTL= 8744 POSUB= 8745 8746 if test "$USE_NLS" = "yes"; then 8747 gt_use_preinstalled_gnugettext=no 8748 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 8750$as_echo_n "checking whether included gettext is requested... " >&6; } 8751 8752# Check whether --with-included-gettext was given. 8753if test "${with_included_gettext+set}" = set; then : 8754 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 8755else 8756 nls_cv_force_use_gnu_gettext=no 8757fi 8758 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 8760$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 8761 8762 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 8763 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 8764 8765 8766 8767 8768 8769 8770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 8771$as_echo_n "checking for GNU gettext in libc... " >&6; } 8772if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : 8773 $as_echo_n "(cached) " >&6 8774else 8775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8776/* end confdefs.h. */ 8777#include <libintl.h> 8778extern int _nl_msg_cat_cntr; 8779extern int *_nl_domain_bindings; 8780int 8781main () 8782{ 8783bindtextdomain ("", ""); 8784return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 8785 ; 8786 return 0; 8787} 8788_ACEOF 8789if ac_fn_c_try_link "$LINENO"; then : 8790 gt_cv_func_gnugettext1_libc=yes 8791else 8792 gt_cv_func_gnugettext1_libc=no 8793fi 8794rm -f core conftest.err conftest.$ac_objext \ 8795 conftest$ac_exeext conftest.$ac_ext 8796fi 8797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 8798$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } 8799 8800 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 8801 8802 8803 8804 use_additional=yes 8805 8806 acl_save_prefix="$prefix" 8807 prefix="$acl_final_prefix" 8808 acl_save_exec_prefix="$exec_prefix" 8809 exec_prefix="$acl_final_exec_prefix" 8810 8811 eval additional_includedir=\"$includedir\" 8812 eval additional_libdir=\"$libdir\" 8813 8814 exec_prefix="$acl_save_exec_prefix" 8815 prefix="$acl_save_prefix" 8816 8817 8818# Check whether --with-libintl-prefix was given. 8819if test "${with_libintl_prefix+set}" = set; then : 8820 withval=$with_libintl_prefix; 8821 if test "X$withval" = "Xno"; then 8822 use_additional=no 8823 else 8824 if test "X$withval" = "X"; then 8825 8826 acl_save_prefix="$prefix" 8827 prefix="$acl_final_prefix" 8828 acl_save_exec_prefix="$exec_prefix" 8829 exec_prefix="$acl_final_exec_prefix" 8830 8831 eval additional_includedir=\"$includedir\" 8832 eval additional_libdir=\"$libdir\" 8833 8834 exec_prefix="$acl_save_exec_prefix" 8835 prefix="$acl_save_prefix" 8836 8837 else 8838 additional_includedir="$withval/include" 8839 additional_libdir="$withval/lib" 8840 fi 8841 fi 8842 8843fi 8844 8845 LIBINTL= 8846 LTLIBINTL= 8847 INCINTL= 8848 rpathdirs= 8849 ltrpathdirs= 8850 names_already_handled= 8851 names_next_round='intl ' 8852 while test -n "$names_next_round"; do 8853 names_this_round="$names_next_round" 8854 names_next_round= 8855 for name in $names_this_round; do 8856 already_handled= 8857 for n in $names_already_handled; do 8858 if test "$n" = "$name"; then 8859 already_handled=yes 8860 break 8861 fi 8862 done 8863 if test -z "$already_handled"; then 8864 names_already_handled="$names_already_handled $name" 8865 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 8866 eval value=\"\$HAVE_LIB$uppername\" 8867 if test -n "$value"; then 8868 if test "$value" = yes; then 8869 eval value=\"\$LIB$uppername\" 8870 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 8871 eval value=\"\$LTLIB$uppername\" 8872 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 8873 else 8874 : 8875 fi 8876 else 8877 found_dir= 8878 found_la= 8879 found_so= 8880 found_a= 8881 if test $use_additional = yes; then 8882 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 8883 found_dir="$additional_libdir" 8884 found_so="$additional_libdir/lib$name.$shlibext" 8885 if test -f "$additional_libdir/lib$name.la"; then 8886 found_la="$additional_libdir/lib$name.la" 8887 fi 8888 else 8889 if test -f "$additional_libdir/lib$name.$libext"; then 8890 found_dir="$additional_libdir" 8891 found_a="$additional_libdir/lib$name.$libext" 8892 if test -f "$additional_libdir/lib$name.la"; then 8893 found_la="$additional_libdir/lib$name.la" 8894 fi 8895 fi 8896 fi 8897 fi 8898 if test "X$found_dir" = "X"; then 8899 for x in $LDFLAGS $LTLIBINTL; do 8900 8901 acl_save_prefix="$prefix" 8902 prefix="$acl_final_prefix" 8903 acl_save_exec_prefix="$exec_prefix" 8904 exec_prefix="$acl_final_exec_prefix" 8905 eval x=\"$x\" 8906 exec_prefix="$acl_save_exec_prefix" 8907 prefix="$acl_save_prefix" 8908 8909 case "$x" in 8910 -L*) 8911 dir=`echo "X$x" | sed -e 's/^X-L//'` 8912 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 8913 found_dir="$dir" 8914 found_so="$dir/lib$name.$shlibext" 8915 if test -f "$dir/lib$name.la"; then 8916 found_la="$dir/lib$name.la" 8917 fi 8918 else 8919 if test -f "$dir/lib$name.$libext"; then 8920 found_dir="$dir" 8921 found_a="$dir/lib$name.$libext" 8922 if test -f "$dir/lib$name.la"; then 8923 found_la="$dir/lib$name.la" 8924 fi 8925 fi 8926 fi 8927 ;; 8928 esac 8929 if test "X$found_dir" != "X"; then 8930 break 8931 fi 8932 done 8933 fi 8934 if test "X$found_dir" != "X"; then 8935 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 8936 if test "X$found_so" != "X"; then 8937 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 8938 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8939 else 8940 haveit= 8941 for x in $ltrpathdirs; do 8942 if test "X$x" = "X$found_dir"; then 8943 haveit=yes 8944 break 8945 fi 8946 done 8947 if test -z "$haveit"; then 8948 ltrpathdirs="$ltrpathdirs $found_dir" 8949 fi 8950 if test "$hardcode_direct" = yes; then 8951 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8952 else 8953 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 8954 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8955 haveit= 8956 for x in $rpathdirs; do 8957 if test "X$x" = "X$found_dir"; then 8958 haveit=yes 8959 break 8960 fi 8961 done 8962 if test -z "$haveit"; then 8963 rpathdirs="$rpathdirs $found_dir" 8964 fi 8965 else 8966 haveit= 8967 for x in $LDFLAGS $LIBINTL; do 8968 8969 acl_save_prefix="$prefix" 8970 prefix="$acl_final_prefix" 8971 acl_save_exec_prefix="$exec_prefix" 8972 exec_prefix="$acl_final_exec_prefix" 8973 eval x=\"$x\" 8974 exec_prefix="$acl_save_exec_prefix" 8975 prefix="$acl_save_prefix" 8976 8977 if test "X$x" = "X-L$found_dir"; then 8978 haveit=yes 8979 break 8980 fi 8981 done 8982 if test -z "$haveit"; then 8983 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 8984 fi 8985 if test "$hardcode_minus_L" != no; then 8986 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 8987 else 8988 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 8989 fi 8990 fi 8991 fi 8992 fi 8993 else 8994 if test "X$found_a" != "X"; then 8995 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 8996 else 8997 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 8998 fi 8999 fi 9000 additional_includedir= 9001 case "$found_dir" in 9002 */lib | */lib/) 9003 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 9004 additional_includedir="$basedir/include" 9005 ;; 9006 esac 9007 if test "X$additional_includedir" != "X"; then 9008 if test "X$additional_includedir" != "X/usr/include"; then 9009 haveit= 9010 if test "X$additional_includedir" = "X/usr/local/include"; then 9011 if test -n "$GCC"; then 9012 case $host_os in 9013 linux*) haveit=yes;; 9014 esac 9015 fi 9016 fi 9017 if test -z "$haveit"; then 9018 for x in $CPPFLAGS $INCINTL; do 9019 9020 acl_save_prefix="$prefix" 9021 prefix="$acl_final_prefix" 9022 acl_save_exec_prefix="$exec_prefix" 9023 exec_prefix="$acl_final_exec_prefix" 9024 eval x=\"$x\" 9025 exec_prefix="$acl_save_exec_prefix" 9026 prefix="$acl_save_prefix" 9027 9028 if test "X$x" = "X-I$additional_includedir"; then 9029 haveit=yes 9030 break 9031 fi 9032 done 9033 if test -z "$haveit"; then 9034 if test -d "$additional_includedir"; then 9035 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 9036 fi 9037 fi 9038 fi 9039 fi 9040 fi 9041 if test -n "$found_la"; then 9042 save_libdir="$libdir" 9043 case "$found_la" in 9044 */* | *\\*) . "$found_la" ;; 9045 *) . "./$found_la" ;; 9046 esac 9047 libdir="$save_libdir" 9048 for dep in $dependency_libs; do 9049 case "$dep" in 9050 -L*) 9051 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9052 if test "X$additional_libdir" != "X/usr/lib"; then 9053 haveit= 9054 if test "X$additional_libdir" = "X/usr/local/lib"; then 9055 if test -n "$GCC"; then 9056 case $host_os in 9057 linux*) haveit=yes;; 9058 esac 9059 fi 9060 fi 9061 if test -z "$haveit"; then 9062 haveit= 9063 for x in $LDFLAGS $LIBINTL; do 9064 9065 acl_save_prefix="$prefix" 9066 prefix="$acl_final_prefix" 9067 acl_save_exec_prefix="$exec_prefix" 9068 exec_prefix="$acl_final_exec_prefix" 9069 eval x=\"$x\" 9070 exec_prefix="$acl_save_exec_prefix" 9071 prefix="$acl_save_prefix" 9072 9073 if test "X$x" = "X-L$additional_libdir"; then 9074 haveit=yes 9075 break 9076 fi 9077 done 9078 if test -z "$haveit"; then 9079 if test -d "$additional_libdir"; then 9080 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 9081 fi 9082 fi 9083 haveit= 9084 for x in $LDFLAGS $LTLIBINTL; do 9085 9086 acl_save_prefix="$prefix" 9087 prefix="$acl_final_prefix" 9088 acl_save_exec_prefix="$exec_prefix" 9089 exec_prefix="$acl_final_exec_prefix" 9090 eval x=\"$x\" 9091 exec_prefix="$acl_save_exec_prefix" 9092 prefix="$acl_save_prefix" 9093 9094 if test "X$x" = "X-L$additional_libdir"; then 9095 haveit=yes 9096 break 9097 fi 9098 done 9099 if test -z "$haveit"; then 9100 if test -d "$additional_libdir"; then 9101 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 9102 fi 9103 fi 9104 fi 9105 fi 9106 ;; 9107 -R*) 9108 dir=`echo "X$dep" | sed -e 's/^X-R//'` 9109 if test "$enable_rpath" != no; then 9110 haveit= 9111 for x in $rpathdirs; do 9112 if test "X$x" = "X$dir"; then 9113 haveit=yes 9114 break 9115 fi 9116 done 9117 if test -z "$haveit"; then 9118 rpathdirs="$rpathdirs $dir" 9119 fi 9120 haveit= 9121 for x in $ltrpathdirs; do 9122 if test "X$x" = "X$dir"; then 9123 haveit=yes 9124 break 9125 fi 9126 done 9127 if test -z "$haveit"; then 9128 ltrpathdirs="$ltrpathdirs $dir" 9129 fi 9130 fi 9131 ;; 9132 -l*) 9133 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9134 ;; 9135 *.la) 9136 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9137 ;; 9138 *) 9139 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 9140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 9141 ;; 9142 esac 9143 done 9144 fi 9145 else 9146 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 9147 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 9148 fi 9149 fi 9150 fi 9151 done 9152 done 9153 if test "X$rpathdirs" != "X"; then 9154 if test -n "$hardcode_libdir_separator"; then 9155 alldirs= 9156 for found_dir in $rpathdirs; do 9157 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 9158 done 9159 acl_save_libdir="$libdir" 9160 libdir="$alldirs" 9161 eval flag=\"$hardcode_libdir_flag_spec\" 9162 libdir="$acl_save_libdir" 9163 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 9164 else 9165 for found_dir in $rpathdirs; do 9166 acl_save_libdir="$libdir" 9167 libdir="$found_dir" 9168 eval flag=\"$hardcode_libdir_flag_spec\" 9169 libdir="$acl_save_libdir" 9170 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 9171 done 9172 fi 9173 fi 9174 if test "X$ltrpathdirs" != "X"; then 9175 for found_dir in $ltrpathdirs; do 9176 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 9177 done 9178 fi 9179 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 9181$as_echo_n "checking for GNU gettext in libintl... " >&6; } 9182if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : 9183 $as_echo_n "(cached) " >&6 9184else 9185 gt_save_CPPFLAGS="$CPPFLAGS" 9186 CPPFLAGS="$CPPFLAGS $INCINTL" 9187 gt_save_LIBS="$LIBS" 9188 LIBS="$LIBS $LIBINTL" 9189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9190/* end confdefs.h. */ 9191#include <libintl.h> 9192extern int _nl_msg_cat_cntr; 9193extern 9194#ifdef __cplusplus 9195"C" 9196#endif 9197const char *_nl_expand_alias (); 9198int 9199main () 9200{ 9201bindtextdomain ("", ""); 9202return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 9203 ; 9204 return 0; 9205} 9206_ACEOF 9207if ac_fn_c_try_link "$LINENO"; then : 9208 gt_cv_func_gnugettext1_libintl=yes 9209else 9210 gt_cv_func_gnugettext1_libintl=no 9211fi 9212rm -f core conftest.err conftest.$ac_objext \ 9213 conftest$ac_exeext conftest.$ac_ext 9214 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 9215 LIBS="$LIBS $LIBICONV" 9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9217/* end confdefs.h. */ 9218#include <libintl.h> 9219extern int _nl_msg_cat_cntr; 9220extern 9221#ifdef __cplusplus 9222"C" 9223#endif 9224const char *_nl_expand_alias (); 9225int 9226main () 9227{ 9228bindtextdomain ("", ""); 9229return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 9230 ; 9231 return 0; 9232} 9233_ACEOF 9234if ac_fn_c_try_link "$LINENO"; then : 9235 LIBINTL="$LIBINTL $LIBICONV" 9236 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 9237 gt_cv_func_gnugettext1_libintl=yes 9238 9239fi 9240rm -f core conftest.err conftest.$ac_objext \ 9241 conftest$ac_exeext conftest.$ac_ext 9242 fi 9243 CPPFLAGS="$gt_save_CPPFLAGS" 9244 LIBS="$gt_save_LIBS" 9245fi 9246{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 9247$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } 9248 fi 9249 9250 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 9251 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 9252 && test "$PACKAGE" != gettext-runtime \ 9253 && test "$PACKAGE" != gettext-tools; }; then 9254 gt_use_preinstalled_gnugettext=yes 9255 else 9256 LIBINTL= 9257 LTLIBINTL= 9258 INCINTL= 9259 fi 9260 9261 9262 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 9263 nls_cv_use_gnu_gettext=yes 9264 fi 9265 fi 9266 9267 if test "$nls_cv_use_gnu_gettext" = "yes"; then 9268 BUILD_INCLUDED_LIBINTL=yes 9269 USE_INCLUDED_LIBINTL=yes 9270 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 9271 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 9272 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 9273 fi 9274 9275 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 9276 || test "$nls_cv_use_gnu_gettext" = "yes"; then 9277 CATOBJEXT=.gmo 9278 fi 9279 9280 9281 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 9282 || test "$nls_cv_use_gnu_gettext" = "yes"; then 9283 9284$as_echo "#define ENABLE_NLS 1" >>confdefs.h 9285 9286 else 9287 USE_NLS=no 9288 fi 9289 fi 9290 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 9292$as_echo_n "checking whether to use NLS... " >&6; } 9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 9294$as_echo "$USE_NLS" >&6; } 9295 if test "$USE_NLS" = "yes"; then 9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 9297$as_echo_n "checking where the gettext function comes from... " >&6; } 9298 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 9299 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 9300 gt_source="external libintl" 9301 else 9302 gt_source="libc" 9303 fi 9304 else 9305 gt_source="included intl directory" 9306 fi 9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 9308$as_echo "$gt_source" >&6; } 9309 fi 9310 9311 if test "$USE_NLS" = "yes"; then 9312 9313 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 9314 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 9316$as_echo_n "checking how to link with libintl... " >&6; } 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 9318$as_echo "$LIBINTL" >&6; } 9319 9320 for element in $INCINTL; do 9321 haveit= 9322 for x in $CPPFLAGS; do 9323 9324 acl_save_prefix="$prefix" 9325 prefix="$acl_final_prefix" 9326 acl_save_exec_prefix="$exec_prefix" 9327 exec_prefix="$acl_final_exec_prefix" 9328 eval x=\"$x\" 9329 exec_prefix="$acl_save_exec_prefix" 9330 prefix="$acl_save_prefix" 9331 9332 if test "X$x" = "X$element"; then 9333 haveit=yes 9334 break 9335 fi 9336 done 9337 if test -z "$haveit"; then 9338 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9339 fi 9340 done 9341 9342 fi 9343 9344 9345$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 9346 9347 9348$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 9349 9350 fi 9351 9352 POSUB=po 9353 fi 9354 9355 9356 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 9357 BUILD_INCLUDED_LIBINTL=yes 9358 fi 9359 9360 9361 9362 9363 9364 nls_cv_header_intl= 9365 nls_cv_header_libgt= 9366 9367 DATADIRNAME=share 9368 9369 9370 INSTOBJEXT=.mo 9371 9372 9373 GENCAT=gencat 9374 9375 9376 if test "$USE_INCLUDED_LIBINTL" = yes; then 9377 INTLOBJS="\$(GETTOBJS)" 9378 fi 9379 9380 9381 INTL_LIBTOOL_SUFFIX_PREFIX= 9382 9383 9384 9385 INTLLIBS="$LIBINTL" 9386 9387 9388 9389 9390 9391 9392 9393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9394$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9395set x ${MAKE-make} 9396ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9397if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9398 $as_echo_n "(cached) " >&6 9399else 9400 cat >conftest.make <<\_ACEOF 9401SHELL = /bin/sh 9402all: 9403 @echo '@@@%%%=$(MAKE)=@@@%%%' 9404_ACEOF 9405# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 9406case `${MAKE-make} -f conftest.make 2>/dev/null` in 9407 *@@@%%%=?*=@@@%%%*) 9408 eval ac_cv_prog_make_${ac_make}_set=yes;; 9409 *) 9410 eval ac_cv_prog_make_${ac_make}_set=no;; 9411esac 9412rm -f conftest.make 9413fi 9414if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9416$as_echo "yes" >&6; } 9417 SET_MAKE= 9418else 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9420$as_echo "no" >&6; } 9421 SET_MAKE="MAKE=${MAKE-make}" 9422fi 9423 9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 9425$as_echo_n "checking for GNU make... " >&6; } 9426if test "${_cv_gnu_make_command+set}" = set; then : 9427 $as_echo_n "(cached) " >&6 9428else 9429 _cv_gnu_make_command='' ; 9430 for a in "$MAKE" make gmake gnumake ; do 9431 if test -z "$a" ; then continue ; fi ; 9432 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 9433 _cv_gnu_make_command=$a ; 9434 break; 9435 fi 9436 done ; 9437 9438fi 9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 9440$as_echo "$_cv_gnu_make_command" >&6; } ; 9441 if test "x$_cv_gnu_make_command" != "x" ; then 9442 ifGNUmake='' ; 9443 ifNotGNUmake='#' ; 9444 else 9445 ifGNUmake='#' ; 9446 ifNotGNUmake='' ; 9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 9448$as_echo "\"Not found\"" >&6; }; 9449 fi 9450 9451 9452 9453# Extract the first word of "ln", so it can be a program name with args. 9454set dummy ln; ac_word=$2 9455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9456$as_echo_n "checking for $ac_word... " >&6; } 9457if test "${ac_cv_path_LN+set}" = set; then : 9458 $as_echo_n "(cached) " >&6 9459else 9460 case $LN in 9461 [\\/]* | ?:[\\/]*) 9462 ac_cv_path_LN="$LN" # Let the user override the test with a path. 9463 ;; 9464 *) 9465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9466for as_dir in $PATH 9467do 9468 IFS=$as_save_IFS 9469 test -z "$as_dir" && as_dir=. 9470 for ac_exec_ext in '' $ac_executable_extensions; do 9471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9472 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 9473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9474 break 2 9475 fi 9476done 9477 done 9478IFS=$as_save_IFS 9479 9480 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 9481 ;; 9482esac 9483fi 9484LN=$ac_cv_path_LN 9485if test -n "$LN"; then 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 9487$as_echo "$LN" >&6; } 9488else 9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9490$as_echo "no" >&6; } 9491fi 9492 9493 9494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 9495$as_echo_n "checking whether ln -s works... " >&6; } 9496LN_S=$as_ln_s 9497if test "$LN_S" = "ln -s"; then 9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9499$as_echo "yes" >&6; } 9500else 9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 9502$as_echo "no, using $LN_S" >&6; } 9503fi 9504 9505# Extract the first word of "mv", so it can be a program name with args. 9506set dummy mv; ac_word=$2 9507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9508$as_echo_n "checking for $ac_word... " >&6; } 9509if test "${ac_cv_path_MV+set}" = set; then : 9510 $as_echo_n "(cached) " >&6 9511else 9512 case $MV in 9513 [\\/]* | ?:[\\/]*) 9514 ac_cv_path_MV="$MV" # Let the user override the test with a path. 9515 ;; 9516 *) 9517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9518for as_dir in $PATH 9519do 9520 IFS=$as_save_IFS 9521 test -z "$as_dir" && as_dir=. 9522 for ac_exec_ext in '' $ac_executable_extensions; do 9523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9524 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 9525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9526 break 2 9527 fi 9528done 9529 done 9530IFS=$as_save_IFS 9531 9532 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 9533 ;; 9534esac 9535fi 9536MV=$ac_cv_path_MV 9537if test -n "$MV"; then 9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 9539$as_echo "$MV" >&6; } 9540else 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9542$as_echo "no" >&6; } 9543fi 9544 9545 9546# Extract the first word of "cp", so it can be a program name with args. 9547set dummy cp; ac_word=$2 9548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9549$as_echo_n "checking for $ac_word... " >&6; } 9550if test "${ac_cv_path_CP+set}" = set; then : 9551 $as_echo_n "(cached) " >&6 9552else 9553 case $CP in 9554 [\\/]* | ?:[\\/]*) 9555 ac_cv_path_CP="$CP" # Let the user override the test with a path. 9556 ;; 9557 *) 9558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9559for as_dir in $PATH 9560do 9561 IFS=$as_save_IFS 9562 test -z "$as_dir" && as_dir=. 9563 for ac_exec_ext in '' $ac_executable_extensions; do 9564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9565 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 9566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9567 break 2 9568 fi 9569done 9570 done 9571IFS=$as_save_IFS 9572 9573 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 9574 ;; 9575esac 9576fi 9577CP=$ac_cv_path_CP 9578if test -n "$CP"; then 9579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 9580$as_echo "$CP" >&6; } 9581else 9582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9583$as_echo "no" >&6; } 9584fi 9585 9586 9587# Extract the first word of "rm", so it can be a program name with args. 9588set dummy rm; ac_word=$2 9589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9590$as_echo_n "checking for $ac_word... " >&6; } 9591if test "${ac_cv_path_RM+set}" = set; then : 9592 $as_echo_n "(cached) " >&6 9593else 9594 case $RM in 9595 [\\/]* | ?:[\\/]*) 9596 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9597 ;; 9598 *) 9599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9600for as_dir in $PATH 9601do 9602 IFS=$as_save_IFS 9603 test -z "$as_dir" && as_dir=. 9604 for ac_exec_ext in '' $ac_executable_extensions; do 9605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9606 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9608 break 2 9609 fi 9610done 9611 done 9612IFS=$as_save_IFS 9613 9614 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 9615 ;; 9616esac 9617fi 9618RM=$ac_cv_path_RM 9619if test -n "$RM"; then 9620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9621$as_echo "$RM" >&6; } 9622else 9623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9624$as_echo "no" >&6; } 9625fi 9626 9627 9628# Extract the first word of "chmod", so it can be a program name with args. 9629set dummy chmod; ac_word=$2 9630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9631$as_echo_n "checking for $ac_word... " >&6; } 9632if test "${ac_cv_path_CHMOD+set}" = set; then : 9633 $as_echo_n "(cached) " >&6 9634else 9635 case $CHMOD in 9636 [\\/]* | ?:[\\/]*) 9637 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 9638 ;; 9639 *) 9640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9641for as_dir in $PATH 9642do 9643 IFS=$as_save_IFS 9644 test -z "$as_dir" && as_dir=. 9645 for ac_exec_ext in '' $ac_executable_extensions; do 9646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9647 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 9648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9649 break 2 9650 fi 9651done 9652 done 9653IFS=$as_save_IFS 9654 9655 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" 9656 ;; 9657esac 9658fi 9659CHMOD=$ac_cv_path_CHMOD 9660if test -n "$CHMOD"; then 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 9662$as_echo "$CHMOD" >&6; } 9663else 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9665$as_echo "no" >&6; } 9666fi 9667 9668 9669for ac_prog in gawk mawk nawk awk 9670do 9671 # Extract the first word of "$ac_prog", so it can be a program name with args. 9672set dummy $ac_prog; ac_word=$2 9673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9674$as_echo_n "checking for $ac_word... " >&6; } 9675if test "${ac_cv_prog_AWK+set}" = set; then : 9676 $as_echo_n "(cached) " >&6 9677else 9678 if test -n "$AWK"; then 9679 ac_cv_prog_AWK="$AWK" # Let the user override the test. 9680else 9681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9682for as_dir in $PATH 9683do 9684 IFS=$as_save_IFS 9685 test -z "$as_dir" && as_dir=. 9686 for ac_exec_ext in '' $ac_executable_extensions; do 9687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9688 ac_cv_prog_AWK="$ac_prog" 9689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9690 break 2 9691 fi 9692done 9693 done 9694IFS=$as_save_IFS 9695 9696fi 9697fi 9698AWK=$ac_cv_prog_AWK 9699if test -n "$AWK"; then 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 9701$as_echo "$AWK" >&6; } 9702else 9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9704$as_echo "no" >&6; } 9705fi 9706 9707 9708 test -n "$AWK" && break 9709done 9710 9711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 9712$as_echo_n "checking for egrep... " >&6; } 9713if test "${ac_cv_path_EGREP+set}" = set; then : 9714 $as_echo_n "(cached) " >&6 9715else 9716 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 9717 then ac_cv_path_EGREP="$GREP -E" 9718 else 9719 if test -z "$EGREP"; then 9720 ac_path_EGREP_found=false 9721 # Loop through the user's path and test for each of PROGNAME-LIST 9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9723for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 9724do 9725 IFS=$as_save_IFS 9726 test -z "$as_dir" && as_dir=. 9727 for ac_prog in egrep; do 9728 for ac_exec_ext in '' $ac_executable_extensions; do 9729 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 9730 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 9731# Check for GNU ac_path_EGREP and select it if it is found. 9732 # Check for GNU $ac_path_EGREP 9733case `"$ac_path_EGREP" --version 2>&1` in 9734*GNU*) 9735 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 9736*) 9737 ac_count=0 9738 $as_echo_n 0123456789 >"conftest.in" 9739 while : 9740 do 9741 cat "conftest.in" "conftest.in" >"conftest.tmp" 9742 mv "conftest.tmp" "conftest.in" 9743 cp "conftest.in" "conftest.nl" 9744 $as_echo 'EGREP' >> "conftest.nl" 9745 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 9746 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 9747 as_fn_arith $ac_count + 1 && ac_count=$as_val 9748 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 9749 # Best one so far, save it but keep looking for a better one 9750 ac_cv_path_EGREP="$ac_path_EGREP" 9751 ac_path_EGREP_max=$ac_count 9752 fi 9753 # 10*(2^10) chars as input seems more than enough 9754 test $ac_count -gt 10 && break 9755 done 9756 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 9757esac 9758 9759 $ac_path_EGREP_found && break 3 9760 done 9761 done 9762 done 9763IFS=$as_save_IFS 9764 if test -z "$ac_cv_path_EGREP"; then 9765 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 9766 fi 9767else 9768 ac_cv_path_EGREP=$EGREP 9769fi 9770 9771 fi 9772fi 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 9774$as_echo "$ac_cv_path_EGREP" >&6; } 9775 EGREP="$ac_cv_path_EGREP" 9776 9777 9778# Extract the first word of "sed", so it can be a program name with args. 9779set dummy sed; ac_word=$2 9780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9781$as_echo_n "checking for $ac_word... " >&6; } 9782if test "${ac_cv_path_SED+set}" = set; then : 9783 $as_echo_n "(cached) " >&6 9784else 9785 case $SED in 9786 [\\/]* | ?:[\\/]*) 9787 ac_cv_path_SED="$SED" # Let the user override the test with a path. 9788 ;; 9789 *) 9790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9791for as_dir in $PATH 9792do 9793 IFS=$as_save_IFS 9794 test -z "$as_dir" && as_dir=. 9795 for ac_exec_ext in '' $ac_executable_extensions; do 9796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9797 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 9798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9799 break 2 9800 fi 9801done 9802 done 9803IFS=$as_save_IFS 9804 9805 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 9806 ;; 9807esac 9808fi 9809SED=$ac_cv_path_SED 9810if test -n "$SED"; then 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 9812$as_echo "$SED" >&6; } 9813else 9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9815$as_echo "no" >&6; } 9816fi 9817 9818 9819# Extract the first word of "perl", so it can be a program name with args. 9820set dummy perl; ac_word=$2 9821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9822$as_echo_n "checking for $ac_word... " >&6; } 9823if test "${ac_cv_path_PERL+set}" = set; then : 9824 $as_echo_n "(cached) " >&6 9825else 9826 case $PERL in 9827 [\\/]* | ?:[\\/]*) 9828 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 9829 ;; 9830 *) 9831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9832for as_dir in $PATH 9833do 9834 IFS=$as_save_IFS 9835 test -z "$as_dir" && as_dir=. 9836 for ac_exec_ext in '' $ac_executable_extensions; do 9837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9838 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 9839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9840 break 2 9841 fi 9842done 9843 done 9844IFS=$as_save_IFS 9845 9846 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 9847 ;; 9848esac 9849fi 9850PERL=$ac_cv_path_PERL 9851if test -n "$PERL"; then 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 9853$as_echo "$PERL" >&6; } 9854else 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9856$as_echo "no" >&6; } 9857fi 9858 9859 9860# Extract the first word of "ldconfig", so it can be a program name with args. 9861set dummy ldconfig; ac_word=$2 9862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9863$as_echo_n "checking for $ac_word... " >&6; } 9864if test "${ac_cv_path_LDCONFIG+set}" = set; then : 9865 $as_echo_n "(cached) " >&6 9866else 9867 case $LDCONFIG in 9868 [\\/]* | ?:[\\/]*) 9869 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 9870 ;; 9871 *) 9872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9873for as_dir in $PATH 9874do 9875 IFS=$as_save_IFS 9876 test -z "$as_dir" && as_dir=. 9877 for ac_exec_ext in '' $ac_executable_extensions; do 9878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9879 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" 9880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9881 break 2 9882 fi 9883done 9884 done 9885IFS=$as_save_IFS 9886 9887 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" 9888 ;; 9889esac 9890fi 9891LDCONFIG=$ac_cv_path_LDCONFIG 9892if test -n "$LDCONFIG"; then 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 9894$as_echo "$LDCONFIG" >&6; } 9895else 9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9897$as_echo "no" >&6; } 9898fi 9899 9900 9901if test -n "$ac_tool_prefix"; then 9902 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 9903set dummy ${ac_tool_prefix}ar; ac_word=$2 9904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9905$as_echo_n "checking for $ac_word... " >&6; } 9906if test "${ac_cv_prog_AR+set}" = set; then : 9907 $as_echo_n "(cached) " >&6 9908else 9909 if test -n "$AR"; then 9910 ac_cv_prog_AR="$AR" # Let the user override the test. 9911else 9912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9913for as_dir in $PATH 9914do 9915 IFS=$as_save_IFS 9916 test -z "$as_dir" && as_dir=. 9917 for ac_exec_ext in '' $ac_executable_extensions; do 9918 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9919 ac_cv_prog_AR="${ac_tool_prefix}ar" 9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9921 break 2 9922 fi 9923done 9924 done 9925IFS=$as_save_IFS 9926 9927fi 9928fi 9929AR=$ac_cv_prog_AR 9930if test -n "$AR"; then 9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 9932$as_echo "$AR" >&6; } 9933else 9934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9935$as_echo "no" >&6; } 9936fi 9937 9938 9939fi 9940if test -z "$ac_cv_prog_AR"; then 9941 ac_ct_AR=$AR 9942 # Extract the first word of "ar", so it can be a program name with args. 9943set dummy ar; ac_word=$2 9944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9945$as_echo_n "checking for $ac_word... " >&6; } 9946if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 9947 $as_echo_n "(cached) " >&6 9948else 9949 if test -n "$ac_ct_AR"; then 9950 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 9951else 9952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9953for as_dir in $PATH 9954do 9955 IFS=$as_save_IFS 9956 test -z "$as_dir" && as_dir=. 9957 for ac_exec_ext in '' $ac_executable_extensions; do 9958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9959 ac_cv_prog_ac_ct_AR="ar" 9960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9961 break 2 9962 fi 9963done 9964 done 9965IFS=$as_save_IFS 9966 9967fi 9968fi 9969ac_ct_AR=$ac_cv_prog_ac_ct_AR 9970if test -n "$ac_ct_AR"; then 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 9972$as_echo "$ac_ct_AR" >&6; } 9973else 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9975$as_echo "no" >&6; } 9976fi 9977 9978 if test "x$ac_ct_AR" = x; then 9979 AR="ar" 9980 else 9981 case $cross_compiling:$ac_tool_warned in 9982yes:) 9983{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9984$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9985ac_tool_warned=yes ;; 9986esac 9987 AR=$ac_ct_AR 9988 fi 9989else 9990 AR="$ac_cv_prog_AR" 9991fi 9992 9993if test -n "$ac_tool_prefix"; then 9994 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 9995set dummy ${ac_tool_prefix}ranlib; ac_word=$2 9996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9997$as_echo_n "checking for $ac_word... " >&6; } 9998if test "${ac_cv_prog_RANLIB+set}" = set; then : 9999 $as_echo_n "(cached) " >&6 10000else 10001 if test -n "$RANLIB"; then 10002 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 10003else 10004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10005for as_dir in $PATH 10006do 10007 IFS=$as_save_IFS 10008 test -z "$as_dir" && as_dir=. 10009 for ac_exec_ext in '' $ac_executable_extensions; do 10010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10011 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 10012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10013 break 2 10014 fi 10015done 10016 done 10017IFS=$as_save_IFS 10018 10019fi 10020fi 10021RANLIB=$ac_cv_prog_RANLIB 10022if test -n "$RANLIB"; then 10023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 10024$as_echo "$RANLIB" >&6; } 10025else 10026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10027$as_echo "no" >&6; } 10028fi 10029 10030 10031fi 10032if test -z "$ac_cv_prog_RANLIB"; then 10033 ac_ct_RANLIB=$RANLIB 10034 # Extract the first word of "ranlib", so it can be a program name with args. 10035set dummy ranlib; ac_word=$2 10036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10037$as_echo_n "checking for $ac_word... " >&6; } 10038if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 10039 $as_echo_n "(cached) " >&6 10040else 10041 if test -n "$ac_ct_RANLIB"; then 10042 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 10043else 10044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10045for as_dir in $PATH 10046do 10047 IFS=$as_save_IFS 10048 test -z "$as_dir" && as_dir=. 10049 for ac_exec_ext in '' $ac_executable_extensions; do 10050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10051 ac_cv_prog_ac_ct_RANLIB="ranlib" 10052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10053 break 2 10054 fi 10055done 10056 done 10057IFS=$as_save_IFS 10058 10059fi 10060fi 10061ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 10062if test -n "$ac_ct_RANLIB"; then 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 10064$as_echo "$ac_ct_RANLIB" >&6; } 10065else 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10067$as_echo "no" >&6; } 10068fi 10069 10070 if test "x$ac_ct_RANLIB" = x; then 10071 RANLIB=":" 10072 else 10073 case $cross_compiling:$ac_tool_warned in 10074yes:) 10075{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10076$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10077ac_tool_warned=yes ;; 10078esac 10079 RANLIB=$ac_ct_RANLIB 10080 fi 10081else 10082 RANLIB="$ac_cv_prog_RANLIB" 10083fi 10084 10085if test -n "$ac_tool_prefix"; then 10086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 10087set dummy ${ac_tool_prefix}strip; ac_word=$2 10088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10089$as_echo_n "checking for $ac_word... " >&6; } 10090if test "${ac_cv_prog_STRIP+set}" = set; then : 10091 $as_echo_n "(cached) " >&6 10092else 10093 if test -n "$STRIP"; then 10094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 10095else 10096as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10097for as_dir in $PATH 10098do 10099 IFS=$as_save_IFS 10100 test -z "$as_dir" && as_dir=. 10101 for ac_exec_ext in '' $ac_executable_extensions; do 10102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10103 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 10104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10105 break 2 10106 fi 10107done 10108 done 10109IFS=$as_save_IFS 10110 10111fi 10112fi 10113STRIP=$ac_cv_prog_STRIP 10114if test -n "$STRIP"; then 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 10116$as_echo "$STRIP" >&6; } 10117else 10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10119$as_echo "no" >&6; } 10120fi 10121 10122 10123fi 10124if test -z "$ac_cv_prog_STRIP"; then 10125 ac_ct_STRIP=$STRIP 10126 # Extract the first word of "strip", so it can be a program name with args. 10127set dummy strip; ac_word=$2 10128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10129$as_echo_n "checking for $ac_word... " >&6; } 10130if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 10131 $as_echo_n "(cached) " >&6 10132else 10133 if test -n "$ac_ct_STRIP"; then 10134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 10135else 10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10137for as_dir in $PATH 10138do 10139 IFS=$as_save_IFS 10140 test -z "$as_dir" && as_dir=. 10141 for ac_exec_ext in '' $ac_executable_extensions; do 10142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10143 ac_cv_prog_ac_ct_STRIP="strip" 10144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10145 break 2 10146 fi 10147done 10148 done 10149IFS=$as_save_IFS 10150 10151fi 10152fi 10153ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 10154if test -n "$ac_ct_STRIP"; then 10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 10156$as_echo "$ac_ct_STRIP" >&6; } 10157else 10158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10159$as_echo "no" >&6; } 10160fi 10161 10162 if test "x$ac_ct_STRIP" = x; then 10163 STRIP=":" 10164 else 10165 case $cross_compiling:$ac_tool_warned in 10166yes:) 10167{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10168$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10169ac_tool_warned=yes ;; 10170esac 10171 STRIP=$ac_ct_STRIP 10172 fi 10173else 10174 STRIP="$ac_cv_prog_STRIP" 10175fi 10176 10177# Extract the first word of "makeinfo", so it can be a program name with args. 10178set dummy makeinfo; ac_word=$2 10179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10180$as_echo_n "checking for $ac_word... " >&6; } 10181if test "${ac_cv_prog_MAKEINFO+set}" = set; then : 10182 $as_echo_n "(cached) " >&6 10183else 10184 if test -n "$MAKEINFO"; then 10185 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 10186else 10187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10188for as_dir in $PATH 10189do 10190 IFS=$as_save_IFS 10191 test -z "$as_dir" && as_dir=. 10192 for ac_exec_ext in '' $ac_executable_extensions; do 10193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10194 ac_cv_prog_MAKEINFO="makeinfo" 10195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10196 break 2 10197 fi 10198done 10199 done 10200IFS=$as_save_IFS 10201 10202fi 10203fi 10204MAKEINFO=$ac_cv_prog_MAKEINFO 10205if test -n "$MAKEINFO"; then 10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 10207$as_echo "$MAKEINFO" >&6; } 10208else 10209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10210$as_echo "no" >&6; } 10211fi 10212 10213 10214if test "_$MAKEINFO" = "_"; then 10215 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" 10216else 10217 case "$MAKEINFO" in 10218 */missing.*) 10219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 10220*** Makeinfo is missing. Info documentation will not be built." >&5 10221$as_echo "$as_me: WARNING: 10222*** Makeinfo is missing. Info documentation will not be built." >&2;} 10223 ;; 10224 *) 10225 ;; 10226 esac 10227fi 10228 10229 10230# See if we need a separate native compiler. 10231if test $cross_compiling = no; then 10232 BUILD_CC="$CC" 10233 10234else 10235 for ac_prog in gcc cc 10236do 10237 # Extract the first word of "$ac_prog", so it can be a program name with args. 10238set dummy $ac_prog; ac_word=$2 10239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10240$as_echo_n "checking for $ac_word... " >&6; } 10241if test "${ac_cv_prog_BUILD_CC+set}" = set; then : 10242 $as_echo_n "(cached) " >&6 10243else 10244 if test -n "$BUILD_CC"; then 10245 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 10246else 10247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10248for as_dir in $PATH 10249do 10250 IFS=$as_save_IFS 10251 test -z "$as_dir" && as_dir=. 10252 for ac_exec_ext in '' $ac_executable_extensions; do 10253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10254 ac_cv_prog_BUILD_CC="$ac_prog" 10255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10256 break 2 10257 fi 10258done 10259 done 10260IFS=$as_save_IFS 10261 10262fi 10263fi 10264BUILD_CC=$ac_cv_prog_BUILD_CC 10265if test -n "$BUILD_CC"; then 10266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 10267$as_echo "$BUILD_CC" >&6; } 10268else 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10270$as_echo "no" >&6; } 10271fi 10272 10273 10274 test -n "$BUILD_CC" && break 10275done 10276 10277fi 10278for 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 10279do : 10280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10281ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10282eval as_val=\$$as_ac_Header 10283 if test "x$as_val" = x""yes; then : 10284 cat >>confdefs.h <<_ACEOF 10285#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10286_ACEOF 10287 10288fi 10289 10290done 10291 10292for ac_header in sys/disk.h sys/mount.h 10293do : 10294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10295ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 10296#if HAVE_SYS_QUEUE_H 10297#include <sys/queue.h> 10298#endif 10299 10300" 10301eval as_val=\$$as_ac_Header 10302 if test "x$as_val" = x""yes; then : 10303 cat >>confdefs.h <<_ACEOF 10304#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10305_ACEOF 10306 10307fi 10308 10309done 10310 10311for ac_header in net/if.h 10312do : 10313 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 10314#if HAVE_SYS_TYPES_H 10315#include <sys/types.h> 10316#endif 10317#if HAVE_SYS_SOCKET 10318#include <sys/socket.h> 10319#endif 10320 10321" 10322if test "x$ac_cv_header_net_if_h" = x""yes; then : 10323 cat >>confdefs.h <<_ACEOF 10324#define HAVE_NET_IF_H 1 10325_ACEOF 10326 10327fi 10328 10329done 10330 10331for ac_func in vprintf 10332do : 10333 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 10334if test "x$ac_cv_func_vprintf" = x""yes; then : 10335 cat >>confdefs.h <<_ACEOF 10336#define HAVE_VPRINTF 1 10337_ACEOF 10338 10339ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 10340if test "x$ac_cv_func__doprnt" = x""yes; then : 10341 10342$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 10343 10344fi 10345 10346fi 10347done 10348 10349 10350ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> 10351" 10352if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then : 10353 10354$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h 10355 10356fi 10357 10358ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> 10359" 10360if test "x$ac_cv_type_ssize_t" = x""yes; then : 10361 10362$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h 10363 10364fi 10365 10366ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> 10367" 10368if test "x$ac_cv_have_decl_llseek" = x""yes; then : 10369 10370$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h 10371 10372fi 10373 10374ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE 10375 #define _LARGEFILE64_SOURCE 10376 #include <unistd.h> 10377" 10378if test "x$ac_cv_have_decl_lseek64" = x""yes; then : 10379 10380$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h 10381 10382fi 10383 10384# The cast to long int works around a bug in the HP C Compiler 10385# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10386# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10387# This bug is HP SR number 8606223364. 10388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 10389$as_echo_n "checking size of short... " >&6; } 10390if test "${ac_cv_sizeof_short+set}" = set; then : 10391 $as_echo_n "(cached) " >&6 10392else 10393 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 10394 10395else 10396 if test "$ac_cv_type_short" = yes; then 10397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10399{ as_fn_set_status 77 10400as_fn_error "cannot compute sizeof (short) 10401See \`config.log' for more details." "$LINENO" 5; }; } 10402 else 10403 ac_cv_sizeof_short=0 10404 fi 10405fi 10406 10407fi 10408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 10409$as_echo "$ac_cv_sizeof_short" >&6; } 10410 10411 10412 10413cat >>confdefs.h <<_ACEOF 10414#define SIZEOF_SHORT $ac_cv_sizeof_short 10415_ACEOF 10416 10417 10418# The cast to long int works around a bug in the HP C Compiler 10419# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10420# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10421# This bug is HP SR number 8606223364. 10422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 10423$as_echo_n "checking size of int... " >&6; } 10424if test "${ac_cv_sizeof_int+set}" = set; then : 10425 $as_echo_n "(cached) " >&6 10426else 10427 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 10428 10429else 10430 if test "$ac_cv_type_int" = yes; then 10431 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10433{ as_fn_set_status 77 10434as_fn_error "cannot compute sizeof (int) 10435See \`config.log' for more details." "$LINENO" 5; }; } 10436 else 10437 ac_cv_sizeof_int=0 10438 fi 10439fi 10440 10441fi 10442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 10443$as_echo "$ac_cv_sizeof_int" >&6; } 10444 10445 10446 10447cat >>confdefs.h <<_ACEOF 10448#define SIZEOF_INT $ac_cv_sizeof_int 10449_ACEOF 10450 10451 10452# The cast to long int works around a bug in the HP C Compiler 10453# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10454# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10455# This bug is HP SR number 8606223364. 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 10457$as_echo_n "checking size of long... " >&6; } 10458if test "${ac_cv_sizeof_long+set}" = set; then : 10459 $as_echo_n "(cached) " >&6 10460else 10461 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 10462 10463else 10464 if test "$ac_cv_type_long" = yes; then 10465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10467{ as_fn_set_status 77 10468as_fn_error "cannot compute sizeof (long) 10469See \`config.log' for more details." "$LINENO" 5; }; } 10470 else 10471 ac_cv_sizeof_long=0 10472 fi 10473fi 10474 10475fi 10476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 10477$as_echo "$ac_cv_sizeof_long" >&6; } 10478 10479 10480 10481cat >>confdefs.h <<_ACEOF 10482#define SIZEOF_LONG $ac_cv_sizeof_long 10483_ACEOF 10484 10485 10486# The cast to long int works around a bug in the HP C Compiler 10487# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 10488# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 10489# This bug is HP SR number 8606223364. 10490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 10491$as_echo_n "checking size of long long... " >&6; } 10492if test "${ac_cv_sizeof_long_long+set}" = set; then : 10493 $as_echo_n "(cached) " >&6 10494else 10495 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 10496 10497else 10498 if test "$ac_cv_type_long_long" = yes; then 10499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10500$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10501{ as_fn_set_status 77 10502as_fn_error "cannot compute sizeof (long long) 10503See \`config.log' for more details." "$LINENO" 5; }; } 10504 else 10505 ac_cv_sizeof_long_long=0 10506 fi 10507fi 10508 10509fi 10510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 10511$as_echo "$ac_cv_sizeof_long_long" >&6; } 10512 10513 10514 10515cat >>confdefs.h <<_ACEOF 10516#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 10517_ACEOF 10518 10519 10520SIZEOF_SHORT=$ac_cv_sizeof_short 10521SIZEOF_INT=$ac_cv_sizeof_int 10522SIZEOF_LONG=$ac_cv_sizeof_long 10523SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long 10524 10525 10526 10527 10528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 10529$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 10530if test "${ac_cv_c_bigendian+set}" = set; then : 10531 $as_echo_n "(cached) " >&6 10532else 10533 ac_cv_c_bigendian=unknown 10534 # See if we're dealing with a universal compiler. 10535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10536/* end confdefs.h. */ 10537#ifndef __APPLE_CC__ 10538 not a universal capable compiler 10539 #endif 10540 typedef int dummy; 10541 10542_ACEOF 10543if ac_fn_c_try_compile "$LINENO"; then : 10544 10545 # Check for potential -arch flags. It is not universal unless 10546 # there are at least two -arch flags with different values. 10547 ac_arch= 10548 ac_prev= 10549 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 10550 if test -n "$ac_prev"; then 10551 case $ac_word in 10552 i?86 | x86_64 | ppc | ppc64) 10553 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 10554 ac_arch=$ac_word 10555 else 10556 ac_cv_c_bigendian=universal 10557 break 10558 fi 10559 ;; 10560 esac 10561 ac_prev= 10562 elif test "x$ac_word" = "x-arch"; then 10563 ac_prev=arch 10564 fi 10565 done 10566fi 10567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10568 if test $ac_cv_c_bigendian = unknown; then 10569 # See if sys/param.h defines the BYTE_ORDER macro. 10570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10571/* end confdefs.h. */ 10572#include <sys/types.h> 10573 #include <sys/param.h> 10574 10575int 10576main () 10577{ 10578#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 10579 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 10580 && LITTLE_ENDIAN) 10581 bogus endian macros 10582 #endif 10583 10584 ; 10585 return 0; 10586} 10587_ACEOF 10588if ac_fn_c_try_compile "$LINENO"; then : 10589 # It does; now see whether it defined to BIG_ENDIAN or not. 10590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10591/* end confdefs.h. */ 10592#include <sys/types.h> 10593 #include <sys/param.h> 10594 10595int 10596main () 10597{ 10598#if BYTE_ORDER != BIG_ENDIAN 10599 not big endian 10600 #endif 10601 10602 ; 10603 return 0; 10604} 10605_ACEOF 10606if ac_fn_c_try_compile "$LINENO"; then : 10607 ac_cv_c_bigendian=yes 10608else 10609 ac_cv_c_bigendian=no 10610fi 10611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10612fi 10613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10614 fi 10615 if test $ac_cv_c_bigendian = unknown; then 10616 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 10617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10618/* end confdefs.h. */ 10619#include <limits.h> 10620 10621int 10622main () 10623{ 10624#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 10625 bogus endian macros 10626 #endif 10627 10628 ; 10629 return 0; 10630} 10631_ACEOF 10632if ac_fn_c_try_compile "$LINENO"; then : 10633 # It does; now see whether it defined to _BIG_ENDIAN or not. 10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10635/* end confdefs.h. */ 10636#include <limits.h> 10637 10638int 10639main () 10640{ 10641#ifndef _BIG_ENDIAN 10642 not big endian 10643 #endif 10644 10645 ; 10646 return 0; 10647} 10648_ACEOF 10649if ac_fn_c_try_compile "$LINENO"; then : 10650 ac_cv_c_bigendian=yes 10651else 10652 ac_cv_c_bigendian=no 10653fi 10654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10655fi 10656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10657 fi 10658 if test $ac_cv_c_bigendian = unknown; then 10659 # Compile a test program. 10660 if test "$cross_compiling" = yes; then : 10661 # Try to guess by grepping values from an object file. 10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10663/* end confdefs.h. */ 10664short int ascii_mm[] = 10665 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 10666 short int ascii_ii[] = 10667 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 10668 int use_ascii (int i) { 10669 return ascii_mm[i] + ascii_ii[i]; 10670 } 10671 short int ebcdic_ii[] = 10672 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 10673 short int ebcdic_mm[] = 10674 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 10675 int use_ebcdic (int i) { 10676 return ebcdic_mm[i] + ebcdic_ii[i]; 10677 } 10678 extern int foo; 10679 10680int 10681main () 10682{ 10683return use_ascii (foo) == use_ebcdic (foo); 10684 ; 10685 return 0; 10686} 10687_ACEOF 10688if ac_fn_c_try_compile "$LINENO"; then : 10689 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 10690 ac_cv_c_bigendian=yes 10691 fi 10692 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 10693 if test "$ac_cv_c_bigendian" = unknown; then 10694 ac_cv_c_bigendian=no 10695 else 10696 # finding both strings is unlikely to happen, but who knows? 10697 ac_cv_c_bigendian=unknown 10698 fi 10699 fi 10700fi 10701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10702else 10703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10704/* end confdefs.h. */ 10705$ac_includes_default 10706int 10707main () 10708{ 10709 10710 /* Are we little or big endian? From Harbison&Steele. */ 10711 union 10712 { 10713 long int l; 10714 char c[sizeof (long int)]; 10715 } u; 10716 u.l = 1; 10717 return u.c[sizeof (long int) - 1] == 1; 10718 10719 ; 10720 return 0; 10721} 10722_ACEOF 10723if ac_fn_c_try_run "$LINENO"; then : 10724 ac_cv_c_bigendian=no 10725else 10726 ac_cv_c_bigendian=yes 10727fi 10728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10729 conftest.$ac_objext conftest.beam conftest.$ac_ext 10730fi 10731 10732 fi 10733fi 10734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 10735$as_echo "$ac_cv_c_bigendian" >&6; } 10736 case $ac_cv_c_bigendian in #( 10737 yes) 10738 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 10739;; #( 10740 no) 10741 ;; #( 10742 universal) 10743 10744$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 10745 10746 ;; #( 10747 *) 10748 as_fn_error "unknown endianness 10749 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 10750 esac 10751 10752BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh 10753ASM_TYPES_HEADER=./asm_types.h 10754 10755echo "/* These defines are needed for the public ext2fs.h header file */" \ 10756 > public_config.h 10757if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then 10758 uniq tmp_config.$$ >> public_config.h 10759else 10760 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h 10761fi 10762if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then 10763 uniq tmp_config.$$ >> public_config.h 10764else 10765 echo "#undef WORDS_BIGENDIAN" >> public_config.h 10766fi 10767rm -f tmp_config.$$ 10768PUBLIC_CONFIG_HEADER=./public_config.h 10769 10770for ac_header in inttypes.h 10771do : 10772 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 10773if test "x$ac_cv_header_inttypes_h" = x""yes; then : 10774 cat >>confdefs.h <<_ACEOF 10775#define HAVE_INTTYPES_H 1 10776_ACEOF 10777 10778fi 10779 10780done 10781 10782ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 10783if test "x$ac_cv_type_intptr_t" = x""yes; then : 10784 10785cat >>confdefs.h <<_ACEOF 10786#define HAVE_INTPTR_T 1 10787_ACEOF 10788 10789 10790fi 10791 10792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 10793$as_echo_n "checking whether struct stat has a st_flags field... " >&6; } 10794if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then : 10795 $as_echo_n "(cached) " >&6 10796else 10797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10798/* end confdefs.h. */ 10799#include <sys/stat.h> 10800int 10801main () 10802{ 10803struct stat stat; stat.st_flags = 0; 10804 ; 10805 return 0; 10806} 10807_ACEOF 10808if ac_fn_c_try_compile "$LINENO"; then : 10809 e2fsprogs_cv_struct_st_flags=yes 10810else 10811 e2fsprogs_cv_struct_st_flags=no 10812fi 10813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10814fi 10815 10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 10817$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } 10818if test "$e2fsprogs_cv_struct_st_flags" = yes; then 10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 10820$as_echo_n "checking whether st_flags field is useful... " >&6; } 10821 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then : 10822 $as_echo_n "(cached) " >&6 10823else 10824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10825/* end confdefs.h. */ 10826#include <sys/stat.h> 10827int 10828main () 10829{ 10830struct stat stat; stat.st_flags |= UF_IMMUTABLE; 10831 ; 10832 return 0; 10833} 10834_ACEOF 10835if ac_fn_c_try_compile "$LINENO"; then : 10836 e2fsprogs_cv_struct_st_flags_immut=yes 10837else 10838 e2fsprogs_cv_struct_st_flags_immut=no 10839fi 10840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10841fi 10842 10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 10844$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } 10845 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then 10846 10847$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h 10848 10849 fi 10850fi 10851ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 10852 #include <sys/socket.h> 10853" 10854if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : 10855 10856cat >>confdefs.h <<_ACEOF 10857#define HAVE_SA_LEN 1 10858_ACEOF 10859 10860fi 10861 10862if test -n "$BLKID_CMT"; then 10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 10864$as_echo_n "checking for library containing blkid_probe_all... " >&6; } 10865if test "${ac_cv_search_blkid_probe_all+set}" = set; then : 10866 $as_echo_n "(cached) " >&6 10867else 10868 ac_func_search_save_LIBS=$LIBS 10869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10870/* end confdefs.h. */ 10871 10872/* Override any GCC internal prototype to avoid an error. 10873 Use char because int might match the return type of a GCC 10874 builtin and then its argument prototype would still apply. */ 10875#ifdef __cplusplus 10876extern "C" 10877#endif 10878char blkid_probe_all (); 10879int 10880main () 10881{ 10882return blkid_probe_all (); 10883 ; 10884 return 0; 10885} 10886_ACEOF 10887for ac_lib in '' blkid; do 10888 if test -z "$ac_lib"; then 10889 ac_res="none required" 10890 else 10891 ac_res=-l$ac_lib 10892 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10893 fi 10894 if ac_fn_c_try_link "$LINENO"; then : 10895 ac_cv_search_blkid_probe_all=$ac_res 10896fi 10897rm -f core conftest.err conftest.$ac_objext \ 10898 conftest$ac_exeext 10899 if test "${ac_cv_search_blkid_probe_all+set}" = set; then : 10900 break 10901fi 10902done 10903if test "${ac_cv_search_blkid_probe_all+set}" = set; then : 10904 10905else 10906 ac_cv_search_blkid_probe_all=no 10907fi 10908rm conftest.$ac_ext 10909LIBS=$ac_func_search_save_LIBS 10910fi 10911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 10912$as_echo "$ac_cv_search_blkid_probe_all" >&6; } 10913ac_res=$ac_cv_search_blkid_probe_all 10914if test "$ac_res" != no; then : 10915 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10916 10917fi 10918 10919fi 10920for 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 10921do : 10922 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10923ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10924eval as_val=\$$as_ac_var 10925 if test "x$as_val" = x""yes; then : 10926 cat >>confdefs.h <<_ACEOF 10927#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10928_ACEOF 10929 10930fi 10931done 10932 10933SOCKET_LIB='' 10934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 10935$as_echo_n "checking for socket in -lsocket... " >&6; } 10936if test "${ac_cv_lib_socket_socket+set}" = set; then : 10937 $as_echo_n "(cached) " >&6 10938else 10939 ac_check_lib_save_LIBS=$LIBS 10940LIBS="-lsocket $LIBS" 10941cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10942/* end confdefs.h. */ 10943 10944/* Override any GCC internal prototype to avoid an error. 10945 Use char because int might match the return type of a GCC 10946 builtin and then its argument prototype would still apply. */ 10947#ifdef __cplusplus 10948extern "C" 10949#endif 10950char socket (); 10951int 10952main () 10953{ 10954return socket (); 10955 ; 10956 return 0; 10957} 10958_ACEOF 10959if ac_fn_c_try_link "$LINENO"; then : 10960 ac_cv_lib_socket_socket=yes 10961else 10962 ac_cv_lib_socket_socket=no 10963fi 10964rm -f core conftest.err conftest.$ac_objext \ 10965 conftest$ac_exeext conftest.$ac_ext 10966LIBS=$ac_check_lib_save_LIBS 10967fi 10968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 10969$as_echo "$ac_cv_lib_socket_socket" >&6; } 10970if test "x$ac_cv_lib_socket_socket" = x""yes; then : 10971 SOCKET_LIB=-lsocket 10972fi 10973 10974 10975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 10976$as_echo_n "checking for optreset... " >&6; } 10977if test "${ac_cv_have_optreset+set}" = set; then : 10978 $as_echo_n "(cached) " >&6 10979else 10980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10981/* end confdefs.h. */ 10982#include <unistd.h> 10983 10984_ACEOF 10985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10986 $EGREP "optreset" >/dev/null 2>&1; then : 10987 ac_cv_have_optreset=yes 10988else 10989 ac_cv_have_optreset=no 10990fi 10991rm -f conftest* 10992 10993fi 10994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 10995$as_echo "$ac_cv_have_optreset" >&6; } 10996if test $ac_cv_have_optreset = yes; then 10997 10998$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h 10999 11000fi 11001 11002SEM_INIT_LIB='' 11003ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" 11004if test "x$ac_cv_func_sem_init" = x""yes; then : 11005 11006else 11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 11008$as_echo_n "checking for sem_init in -lpthread... " >&6; } 11009if test "${ac_cv_lib_pthread_sem_init+set}" = set; then : 11010 $as_echo_n "(cached) " >&6 11011else 11012 ac_check_lib_save_LIBS=$LIBS 11013LIBS="-lpthread $LIBS" 11014cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11015/* end confdefs.h. */ 11016 11017/* Override any GCC internal prototype to avoid an error. 11018 Use char because int might match the return type of a GCC 11019 builtin and then its argument prototype would still apply. */ 11020#ifdef __cplusplus 11021extern "C" 11022#endif 11023char sem_init (); 11024int 11025main () 11026{ 11027return sem_init (); 11028 ; 11029 return 0; 11030} 11031_ACEOF 11032if ac_fn_c_try_link "$LINENO"; then : 11033 ac_cv_lib_pthread_sem_init=yes 11034else 11035 ac_cv_lib_pthread_sem_init=no 11036fi 11037rm -f core conftest.err conftest.$ac_objext \ 11038 conftest$ac_exeext conftest.$ac_ext 11039LIBS=$ac_check_lib_save_LIBS 11040fi 11041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 11042$as_echo "$ac_cv_lib_pthread_sem_init" >&6; } 11043if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then : 11044 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h 11045 11046 SEM_INIT_LIB=-lpthread 11047else 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 11049$as_echo_n "checking for sem_init in -lrt... " >&6; } 11050if test "${ac_cv_lib_rt_sem_init+set}" = set; then : 11051 $as_echo_n "(cached) " >&6 11052else 11053 ac_check_lib_save_LIBS=$LIBS 11054LIBS="-lrt $LIBS" 11055cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11056/* end confdefs.h. */ 11057 11058/* Override any GCC internal prototype to avoid an error. 11059 Use char because int might match the return type of a GCC 11060 builtin and then its argument prototype would still apply. */ 11061#ifdef __cplusplus 11062extern "C" 11063#endif 11064char sem_init (); 11065int 11066main () 11067{ 11068return sem_init (); 11069 ; 11070 return 0; 11071} 11072_ACEOF 11073if ac_fn_c_try_link "$LINENO"; then : 11074 ac_cv_lib_rt_sem_init=yes 11075else 11076 ac_cv_lib_rt_sem_init=no 11077fi 11078rm -f core conftest.err conftest.$ac_objext \ 11079 conftest$ac_exeext conftest.$ac_ext 11080LIBS=$ac_check_lib_save_LIBS 11081fi 11082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 11083$as_echo "$ac_cv_lib_rt_sem_init" >&6; } 11084if test "x$ac_cv_lib_rt_sem_init" = x""yes; then : 11085 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h 11086 11087 SEM_INIT_LIB=-lrt 11088else 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 11090$as_echo_n "checking for sem_init in -lposix4... " >&6; } 11091if test "${ac_cv_lib_posix4_sem_init+set}" = set; then : 11092 $as_echo_n "(cached) " >&6 11093else 11094 ac_check_lib_save_LIBS=$LIBS 11095LIBS="-lposix4 $LIBS" 11096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11097/* end confdefs.h. */ 11098 11099/* Override any GCC internal prototype to avoid an error. 11100 Use char because int might match the return type of a GCC 11101 builtin and then its argument prototype would still apply. */ 11102#ifdef __cplusplus 11103extern "C" 11104#endif 11105char sem_init (); 11106int 11107main () 11108{ 11109return sem_init (); 11110 ; 11111 return 0; 11112} 11113_ACEOF 11114if ac_fn_c_try_link "$LINENO"; then : 11115 ac_cv_lib_posix4_sem_init=yes 11116else 11117 ac_cv_lib_posix4_sem_init=no 11118fi 11119rm -f core conftest.err conftest.$ac_objext \ 11120 conftest$ac_exeext conftest.$ac_ext 11121LIBS=$ac_check_lib_save_LIBS 11122fi 11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 11124$as_echo "$ac_cv_lib_posix4_sem_init" >&6; } 11125if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then : 11126 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h 11127 11128 SEM_INIT_LIB=-lposix4 11129fi 11130 11131fi 11132 11133fi 11134 11135fi 11136 11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 11138$as_echo_n "checking for unified diff option... " >&6; } 11139if diff -u $0 $0 > /dev/null 2>&1 ; then 11140 UNI_DIFF_OPTS=-u 11141else 11142 UNI_DIFF_OPTS=-c 11143fi 11144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 11145$as_echo "$UNI_DIFF_OPTS" >&6; } 11146 11147case "$host_os" in 11148linux*) 11149 11150$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h 11151 11152 ;; 11153esac 11154LINUX_CMT="#" 11155CYGWIN_CMT="#" 11156UNIX_CMT= 11157case "$host_os" in 11158linux*) 11159 LINUX_CMT= 11160 ;; 11161cygwin) 11162 CYGWIN_CMT= 11163 UNIX_CMT="#" 11164 ;; 11165esac 11166 11167 11168 11169case "$host_os" in 11170linux* | gnu* | k*bsd*-gnu) 11171 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then 11172 root_prefix=""; 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 11174$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } 11175 fi 11176 ;; 11177esac 11178case "$host_os" in 11179linux* | gnu* | k*bsd*-gnu) 11180 if test "$prefix" = NONE ; then 11181 prefix="/usr"; 11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 11183$as_echo "On $host_os systems, prefix defaults to /usr" >&6; } 11184 if test "$mandir" = '${prefix}/man' ; then 11185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 11186$as_echo "...and mandir defaults to /usr/share/man" >&6; } 11187 mandir=/usr/share/man 11188 fi 11189 fi 11190;; 11191esac 11192if test "$root_prefix" = NONE ; then 11193 if test "$prefix" = NONE ; then 11194 root_prefix="$ac_default_prefix" 11195 else 11196 root_prefix="$prefix" 11197 fi 11198 root_bindir=$bindir 11199 root_sbindir=$sbindir 11200 root_libdir=$libdir 11201 root_sysconfdir=$sysconfdir 11202else 11203 root_bindir='${root_prefix}/bin' 11204 root_sbindir='${root_prefix}/sbin' 11205 root_libdir='${root_prefix}/lib' 11206 root_sysconfdir='${root_prefix}/etc' 11207fi 11208if test "$bindir" != '${exec_prefix}/bin'; then 11209 root_bindir=$bindir 11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 11211$as_echo "Setting root_bindir to $root_bindir" >&6; } 11212fi 11213if test "$sbindir" != '${exec_prefix}/sbin'; then 11214 root_sbindir=$sbindir 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 11216$as_echo "Setting root_sbindir to $root_sbindir" >&6; } 11217fi 11218if test "$libdir" != '${exec_prefix}/lib'; then 11219 root_libdir=$libdir 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 11221$as_echo "Setting root_libdir to $root_libdir" >&6; } 11222fi 11223if test "$sysconfdir" != '${prefix}/etc'; then 11224 root_sysconfdir=$sysconfdir 11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 11226$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } 11227fi 11228 11229 11230 11231 11232 11233 11234# Check whether --with-multiarch was given. 11235if test "${with_multiarch+set}" = set; then : 11236 withval=$with_multiarch; libdir=$libdir/$withval 11237root_libdir=$root_libdir/$withval 11238 11239fi 11240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5 11241$as_echo_n "checking whether linker accepts -static... " >&6; } 11242if test "${ac_cv_e2fsprogs_use_static+set}" = set; then : 11243 $as_echo_n "(cached) " >&6 11244else 11245 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" 11246cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11247/* end confdefs.h. */ 11248#include <stdio.h> 11249int 11250main () 11251{ 11252fflush(stdout); 11253 ; 11254 return 0; 11255} 11256_ACEOF 11257if ac_fn_c_try_link "$LINENO"; then : 11258 ac_cv_e2fsprogs_use_static=yes 11259else 11260 ac_cv_e2fsprogs_use_static=no 11261fi 11262rm -f core conftest.err conftest.$ac_objext \ 11263 conftest$ac_exeext conftest.$ac_ext 11264LDFLAGS=$SAVE_LDFLAGS 11265fi 11266 11267case "$host_os" in 11268solaris2.*) 11269 ac_cv_e2fsprogs_use_static=no 11270;; 11271esac 11272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 11273$as_echo "$ac_cv_e2fsprogs_use_static" >&6; } 11274LDFLAG_STATIC= 11275if test $ac_cv_e2fsprogs_use_static = yes; then 11276 LDFLAG_STATIC=-static 11277fi 11278 11279case "$host_os" in 11280darwin*) 11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 11282$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } 11283 11284$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h 11285 11286 ;; 11287esac 11288SS_DIR=`cd ${srcdir}/lib/ss; pwd` 11289ET_DIR=`cd ${srcdir}/lib/et; pwd` 11290 11291 11292if test "$cross_compiling" = yes ; then 11293 DO_TEST_SUITE= 11294else 11295 DO_TEST_SUITE=check 11296fi 11297 11298INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' 11299if test -n "$CPPFLAGS" ; then 11300 INCLUDES="$INCLUDES $CPPFLAGS" 11301fi 11302if test "$USE_INCLUDED_LIBINTL" = "yes" ; then 11303 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' 11304fi 11305 11306if test $cross_compiling = no; then 11307 BUILD_CFLAGS="$CFLAGS" 11308 BUILD_LDFLAGS="$LDFLAGS" 11309else 11310 BUILD_CFLAGS= 11311 BUILD_LDFLAGS= 11312fi 11313 11314 11315test -d lib || mkdir lib 11316test -d include || mkdir include 11317test -d include/linux || mkdir include/linux 11318test -d include/asm || mkdir include/asm 11319for i in MCONFIG Makefile e2fsprogs.spec \ 11320 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ 11321 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ 11322 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ 11323 lib/uuid/Makefile lib/uuid/uuid_types.h \ 11324 lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ 11325 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ 11326 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ 11327 misc/Makefile ext2ed/Makefile e2fsck/Makefile \ 11328 debugfs/Makefile tests/Makefile tests/progs/Makefile \ 11329 resize/Makefile doc/Makefile intl/Makefile \ 11330 intl/libgnuintl.h po/Makefile.in ; do 11331 if test -d `dirname ${srcdir}/$i` ; then 11332 outlist="$outlist $i" 11333 fi 11334done 11335ac_config_files="$ac_config_files $outlist" 11336 11337cat >confcache <<\_ACEOF 11338# This file is a shell script that caches the results of configure 11339# tests run on this system so they can be shared between configure 11340# scripts and configure runs, see configure's option --config-cache. 11341# It is not useful on other systems. If it contains results you don't 11342# want to keep, you may remove or edit it. 11343# 11344# config.status only pays attention to the cache file if you give it 11345# the --recheck option to rerun configure. 11346# 11347# `ac_cv_env_foo' variables (set or unset) will be overridden when 11348# loading this file, other *unset* `ac_cv_foo' will be assigned the 11349# following values. 11350 11351_ACEOF 11352 11353# The following way of writing the cache mishandles newlines in values, 11354# but we know of no workaround that is simple, portable, and efficient. 11355# So, we kill variables containing newlines. 11356# Ultrix sh set writes to stderr and can't be redirected directly, 11357# and sets the high bit in the cache file unless we assign to the vars. 11358( 11359 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11360 eval ac_val=\$$ac_var 11361 case $ac_val in #( 11362 *${as_nl}*) 11363 case $ac_var in #( 11364 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11365$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11366 esac 11367 case $ac_var in #( 11368 _ | IFS | as_nl) ;; #( 11369 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11370 *) { eval $ac_var=; unset $ac_var;} ;; 11371 esac ;; 11372 esac 11373 done 11374 11375 (set) 2>&1 | 11376 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11377 *${as_nl}ac_space=\ *) 11378 # `set' does not quote correctly, so add quotes: double-quote 11379 # substitution turns \\\\ into \\, and sed turns \\ into \. 11380 sed -n \ 11381 "s/'/'\\\\''/g; 11382 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11383 ;; #( 11384 *) 11385 # `set' quotes correctly as required by POSIX, so do not add quotes. 11386 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11387 ;; 11388 esac | 11389 sort 11390) | 11391 sed ' 11392 /^ac_cv_env_/b end 11393 t clear 11394 :clear 11395 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11396 t end 11397 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11398 :end' >>confcache 11399if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11400 if test -w "$cache_file"; then 11401 test "x$cache_file" != "x/dev/null" && 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11403$as_echo "$as_me: updating cache $cache_file" >&6;} 11404 cat confcache >$cache_file 11405 else 11406 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11407$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11408 fi 11409fi 11410rm -f confcache 11411 11412test "x$prefix" = xNONE && prefix=$ac_default_prefix 11413# Let make expand exec_prefix. 11414test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11415 11416DEFS=-DHAVE_CONFIG_H 11417 11418ac_libobjs= 11419ac_ltlibobjs= 11420for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11421 # 1. Remove the extension, and $U if already installed. 11422 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11423 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11424 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11425 # will be set to the directory where LIBOBJS objects are built. 11426 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11427 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11428done 11429LIBOBJS=$ac_libobjs 11430 11431LTLIBOBJS=$ac_ltlibobjs 11432 11433 11434 11435 11436: ${CONFIG_STATUS=./config.status} 11437ac_write_fail=0 11438ac_clean_files_save=$ac_clean_files 11439ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11440{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11441$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11442as_write_fail=0 11443cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11444#! $SHELL 11445# Generated by $as_me. 11446# Run this file to recreate the current configuration. 11447# Compiler output produced by configure, useful for debugging 11448# configure, is in config.log if it exists. 11449 11450debug=false 11451ac_cs_recheck=false 11452ac_cs_silent=false 11453 11454SHELL=\${CONFIG_SHELL-$SHELL} 11455export SHELL 11456_ASEOF 11457cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11458## -------------------- ## 11459## M4sh Initialization. ## 11460## -------------------- ## 11461 11462# Be more Bourne compatible 11463DUALCASE=1; export DUALCASE # for MKS sh 11464if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11465 emulate sh 11466 NULLCMD=: 11467 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11468 # is contrary to our usage. Disable this feature. 11469 alias -g '${1+"$@"}'='"$@"' 11470 setopt NO_GLOB_SUBST 11471else 11472 case `(set -o) 2>/dev/null` in #( 11473 *posix*) : 11474 set -o posix ;; #( 11475 *) : 11476 ;; 11477esac 11478fi 11479 11480 11481as_nl=' 11482' 11483export as_nl 11484# Printing a long string crashes Solaris 7 /usr/bin/printf. 11485as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11486as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11487as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11488# Prefer a ksh shell builtin over an external printf program on Solaris, 11489# but without wasting forks for bash or zsh. 11490if test -z "$BASH_VERSION$ZSH_VERSION" \ 11491 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11492 as_echo='print -r --' 11493 as_echo_n='print -rn --' 11494elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11495 as_echo='printf %s\n' 11496 as_echo_n='printf %s' 11497else 11498 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11499 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11500 as_echo_n='/usr/ucb/echo -n' 11501 else 11502 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11503 as_echo_n_body='eval 11504 arg=$1; 11505 case $arg in #( 11506 *"$as_nl"*) 11507 expr "X$arg" : "X\\(.*\\)$as_nl"; 11508 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11509 esac; 11510 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11511 ' 11512 export as_echo_n_body 11513 as_echo_n='sh -c $as_echo_n_body as_echo' 11514 fi 11515 export as_echo_body 11516 as_echo='sh -c $as_echo_body as_echo' 11517fi 11518 11519# The user is always right. 11520if test "${PATH_SEPARATOR+set}" != set; then 11521 PATH_SEPARATOR=: 11522 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11523 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11524 PATH_SEPARATOR=';' 11525 } 11526fi 11527 11528 11529# IFS 11530# We need space, tab and new line, in precisely that order. Quoting is 11531# there to prevent editors from complaining about space-tab. 11532# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11533# splitting by setting IFS to empty value.) 11534IFS=" "" $as_nl" 11535 11536# Find who we are. Look in the path if we contain no directory separator. 11537case $0 in #(( 11538 *[\\/]* ) as_myself=$0 ;; 11539 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11540for as_dir in $PATH 11541do 11542 IFS=$as_save_IFS 11543 test -z "$as_dir" && as_dir=. 11544 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11545 done 11546IFS=$as_save_IFS 11547 11548 ;; 11549esac 11550# We did not find ourselves, most probably we were run as `sh COMMAND' 11551# in which case we are not to be found in the path. 11552if test "x$as_myself" = x; then 11553 as_myself=$0 11554fi 11555if test ! -f "$as_myself"; then 11556 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11557 exit 1 11558fi 11559 11560# Unset variables that we do not need and which cause bugs (e.g. in 11561# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11562# suppresses any "Segmentation fault" message there. '((' could 11563# trigger a bug in pdksh 5.2.14. 11564for as_var in BASH_ENV ENV MAIL MAILPATH 11565do eval test x\${$as_var+set} = xset \ 11566 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11567done 11568PS1='$ ' 11569PS2='> ' 11570PS4='+ ' 11571 11572# NLS nuisances. 11573LC_ALL=C 11574export LC_ALL 11575LANGUAGE=C 11576export LANGUAGE 11577 11578# CDPATH. 11579(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11580 11581 11582# as_fn_error ERROR [LINENO LOG_FD] 11583# --------------------------------- 11584# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11585# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11586# script with status $?, using 1 if that was 0. 11587as_fn_error () 11588{ 11589 as_status=$?; test $as_status -eq 0 && as_status=1 11590 if test "$3"; then 11591 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11592 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 11593 fi 11594 $as_echo "$as_me: error: $1" >&2 11595 as_fn_exit $as_status 11596} # as_fn_error 11597 11598 11599# as_fn_set_status STATUS 11600# ----------------------- 11601# Set $? to STATUS, without forking. 11602as_fn_set_status () 11603{ 11604 return $1 11605} # as_fn_set_status 11606 11607# as_fn_exit STATUS 11608# ----------------- 11609# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11610as_fn_exit () 11611{ 11612 set +e 11613 as_fn_set_status $1 11614 exit $1 11615} # as_fn_exit 11616 11617# as_fn_unset VAR 11618# --------------- 11619# Portably unset VAR. 11620as_fn_unset () 11621{ 11622 { eval $1=; unset $1;} 11623} 11624as_unset=as_fn_unset 11625# as_fn_append VAR VALUE 11626# ---------------------- 11627# Append the text in VALUE to the end of the definition contained in VAR. Take 11628# advantage of any shell optimizations that allow amortized linear growth over 11629# repeated appends, instead of the typical quadratic growth present in naive 11630# implementations. 11631if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11632 eval 'as_fn_append () 11633 { 11634 eval $1+=\$2 11635 }' 11636else 11637 as_fn_append () 11638 { 11639 eval $1=\$$1\$2 11640 } 11641fi # as_fn_append 11642 11643# as_fn_arith ARG... 11644# ------------------ 11645# Perform arithmetic evaluation on the ARGs, and store the result in the 11646# global $as_val. Take advantage of shells that can avoid forks. The arguments 11647# must be portable across $(()) and expr. 11648if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11649 eval 'as_fn_arith () 11650 { 11651 as_val=$(( $* )) 11652 }' 11653else 11654 as_fn_arith () 11655 { 11656 as_val=`expr "$@" || test $? -eq 1` 11657 } 11658fi # as_fn_arith 11659 11660 11661if expr a : '\(a\)' >/dev/null 2>&1 && 11662 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11663 as_expr=expr 11664else 11665 as_expr=false 11666fi 11667 11668if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11669 as_basename=basename 11670else 11671 as_basename=false 11672fi 11673 11674if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11675 as_dirname=dirname 11676else 11677 as_dirname=false 11678fi 11679 11680as_me=`$as_basename -- "$0" || 11681$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11682 X"$0" : 'X\(//\)$' \| \ 11683 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11684$as_echo X/"$0" | 11685 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11686 s//\1/ 11687 q 11688 } 11689 /^X\/\(\/\/\)$/{ 11690 s//\1/ 11691 q 11692 } 11693 /^X\/\(\/\).*/{ 11694 s//\1/ 11695 q 11696 } 11697 s/.*/./; q'` 11698 11699# Avoid depending upon Character Ranges. 11700as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11701as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11702as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11703as_cr_digits='0123456789' 11704as_cr_alnum=$as_cr_Letters$as_cr_digits 11705 11706ECHO_C= ECHO_N= ECHO_T= 11707case `echo -n x` in #((((( 11708-n*) 11709 case `echo 'xy\c'` in 11710 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11711 xy) ECHO_C='\c';; 11712 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11713 ECHO_T=' ';; 11714 esac;; 11715*) 11716 ECHO_N='-n';; 11717esac 11718 11719rm -f conf$$ conf$$.exe conf$$.file 11720if test -d conf$$.dir; then 11721 rm -f conf$$.dir/conf$$.file 11722else 11723 rm -f conf$$.dir 11724 mkdir conf$$.dir 2>/dev/null 11725fi 11726if (echo >conf$$.file) 2>/dev/null; then 11727 if ln -s conf$$.file conf$$ 2>/dev/null; then 11728 as_ln_s='ln -s' 11729 # ... but there are two gotchas: 11730 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11731 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11732 # In both cases, we have to default to `cp -p'. 11733 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11734 as_ln_s='cp -p' 11735 elif ln conf$$.file conf$$ 2>/dev/null; then 11736 as_ln_s=ln 11737 else 11738 as_ln_s='cp -p' 11739 fi 11740else 11741 as_ln_s='cp -p' 11742fi 11743rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11744rmdir conf$$.dir 2>/dev/null 11745 11746 11747# as_fn_mkdir_p 11748# ------------- 11749# Create "$as_dir" as a directory, including parents if necessary. 11750as_fn_mkdir_p () 11751{ 11752 11753 case $as_dir in #( 11754 -*) as_dir=./$as_dir;; 11755 esac 11756 test -d "$as_dir" || eval $as_mkdir_p || { 11757 as_dirs= 11758 while :; do 11759 case $as_dir in #( 11760 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11761 *) as_qdir=$as_dir;; 11762 esac 11763 as_dirs="'$as_qdir' $as_dirs" 11764 as_dir=`$as_dirname -- "$as_dir" || 11765$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11766 X"$as_dir" : 'X\(//\)[^/]' \| \ 11767 X"$as_dir" : 'X\(//\)$' \| \ 11768 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11769$as_echo X"$as_dir" | 11770 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11771 s//\1/ 11772 q 11773 } 11774 /^X\(\/\/\)[^/].*/{ 11775 s//\1/ 11776 q 11777 } 11778 /^X\(\/\/\)$/{ 11779 s//\1/ 11780 q 11781 } 11782 /^X\(\/\).*/{ 11783 s//\1/ 11784 q 11785 } 11786 s/.*/./; q'` 11787 test -d "$as_dir" && break 11788 done 11789 test -z "$as_dirs" || eval "mkdir $as_dirs" 11790 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 11791 11792 11793} # as_fn_mkdir_p 11794if mkdir -p . 2>/dev/null; then 11795 as_mkdir_p='mkdir -p "$as_dir"' 11796else 11797 test -d ./-p && rmdir ./-p 11798 as_mkdir_p=false 11799fi 11800 11801if test -x / >/dev/null 2>&1; then 11802 as_test_x='test -x' 11803else 11804 if ls -dL / >/dev/null 2>&1; then 11805 as_ls_L_option=L 11806 else 11807 as_ls_L_option= 11808 fi 11809 as_test_x=' 11810 eval sh -c '\'' 11811 if test -d "$1"; then 11812 test -d "$1/."; 11813 else 11814 case $1 in #( 11815 -*)set "./$1";; 11816 esac; 11817 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 11818 ???[sx]*):;;*)false;;esac;fi 11819 '\'' sh 11820 ' 11821fi 11822as_executable_p=$as_test_x 11823 11824# Sed expression to map a string onto a valid CPP name. 11825as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11826 11827# Sed expression to map a string onto a valid variable name. 11828as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11829 11830 11831exec 6>&1 11832## ----------------------------------- ## 11833## Main body of $CONFIG_STATUS script. ## 11834## ----------------------------------- ## 11835_ASEOF 11836test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11837 11838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11839# Save the log message, to keep $0 and so on meaningful, and to 11840# report actual input values of CONFIG_FILES etc. instead of their 11841# values after options handling. 11842ac_log=" 11843This file was extended by $as_me, which was 11844generated by GNU Autoconf 2.65. Invocation command line was 11845 11846 CONFIG_FILES = $CONFIG_FILES 11847 CONFIG_HEADERS = $CONFIG_HEADERS 11848 CONFIG_LINKS = $CONFIG_LINKS 11849 CONFIG_COMMANDS = $CONFIG_COMMANDS 11850 $ $0 $@ 11851 11852on `(hostname || uname -n) 2>/dev/null | sed 1q` 11853" 11854 11855_ACEOF 11856 11857case $ac_config_files in *" 11858"*) set x $ac_config_files; shift; ac_config_files=$*;; 11859esac 11860 11861case $ac_config_headers in *" 11862"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11863esac 11864 11865 11866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11867# Files that config.status was made for. 11868config_files="$ac_config_files" 11869config_headers="$ac_config_headers" 11870config_commands="$ac_config_commands" 11871 11872_ACEOF 11873 11874cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11875ac_cs_usage="\ 11876\`$as_me' instantiates files and other configuration actions 11877from templates according to the current configuration. Unless the files 11878and actions are specified as TAGs, all are instantiated by default. 11879 11880Usage: $0 [OPTION]... [TAG]... 11881 11882 -h, --help print this help, then exit 11883 -V, --version print version number and configuration settings, then exit 11884 --config print configuration, then exit 11885 -q, --quiet, --silent 11886 do not print progress messages 11887 -d, --debug don't remove temporary files 11888 --recheck update $as_me by reconfiguring in the same conditions 11889 --file=FILE[:TEMPLATE] 11890 instantiate the configuration file FILE 11891 --header=FILE[:TEMPLATE] 11892 instantiate the configuration header FILE 11893 11894Configuration files: 11895$config_files 11896 11897Configuration headers: 11898$config_headers 11899 11900Configuration commands: 11901$config_commands 11902 11903Report bugs to the package provider." 11904 11905_ACEOF 11906cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11907ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11908ac_cs_version="\\ 11909config.status 11910configured by $0, generated by GNU Autoconf 2.65, 11911 with options \\"\$ac_cs_config\\" 11912 11913Copyright (C) 2009 Free Software Foundation, Inc. 11914This config.status script is free software; the Free Software Foundation 11915gives unlimited permission to copy, distribute and modify it." 11916 11917ac_pwd='$ac_pwd' 11918srcdir='$srcdir' 11919INSTALL='$INSTALL' 11920AWK='$AWK' 11921test -n "\$AWK" || AWK=awk 11922_ACEOF 11923 11924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11925# The default lists apply if the user does not specify any file. 11926ac_need_defaults=: 11927while test $# != 0 11928do 11929 case $1 in 11930 --*=*) 11931 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11932 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11933 ac_shift=: 11934 ;; 11935 *) 11936 ac_option=$1 11937 ac_optarg=$2 11938 ac_shift=shift 11939 ;; 11940 esac 11941 11942 case $ac_option in 11943 # Handling of the options. 11944 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11945 ac_cs_recheck=: ;; 11946 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11947 $as_echo "$ac_cs_version"; exit ;; 11948 --config | --confi | --conf | --con | --co | --c ) 11949 $as_echo "$ac_cs_config"; exit ;; 11950 --debug | --debu | --deb | --de | --d | -d ) 11951 debug=: ;; 11952 --file | --fil | --fi | --f ) 11953 $ac_shift 11954 case $ac_optarg in 11955 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11956 esac 11957 as_fn_append CONFIG_FILES " '$ac_optarg'" 11958 ac_need_defaults=false;; 11959 --header | --heade | --head | --hea ) 11960 $ac_shift 11961 case $ac_optarg in 11962 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11963 esac 11964 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11965 ac_need_defaults=false;; 11966 --he | --h) 11967 # Conflict between --help and --header 11968 as_fn_error "ambiguous option: \`$1' 11969Try \`$0 --help' for more information.";; 11970 --help | --hel | -h ) 11971 $as_echo "$ac_cs_usage"; exit ;; 11972 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11973 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11974 ac_cs_silent=: ;; 11975 11976 # This is an error. 11977 -*) as_fn_error "unrecognized option: \`$1' 11978Try \`$0 --help' for more information." ;; 11979 11980 *) as_fn_append ac_config_targets " $1" 11981 ac_need_defaults=false ;; 11982 11983 esac 11984 shift 11985done 11986 11987ac_configure_extra_args= 11988 11989if $ac_cs_silent; then 11990 exec 6>/dev/null 11991 ac_configure_extra_args="$ac_configure_extra_args --silent" 11992fi 11993 11994_ACEOF 11995cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11996if \$ac_cs_recheck; then 11997 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11998 shift 11999 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12000 CONFIG_SHELL='$SHELL' 12001 export CONFIG_SHELL 12002 exec "\$@" 12003fi 12004 12005_ACEOF 12006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12007exec 5>>config.log 12008{ 12009 echo 12010 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12011## Running $as_me. ## 12012_ASBOX 12013 $as_echo "$ac_log" 12014} >&5 12015 12016_ACEOF 12017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12018# 12019# INIT-COMMANDS 12020# 12021# Capture the value of obsolete ALL_LINGUAS because we need it to compute 12022 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 12023 # from automake. 12024 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 12025 # Capture the value of LINGUAS because we need it to compute CATALOGS. 12026 LINGUAS="${LINGUAS-%UNSET%}" 12027 12028 12029_ACEOF 12030 12031cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12032 12033# Handling of arguments. 12034for ac_config_target in $ac_config_targets 12035do 12036 case $ac_config_target in 12037 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; 12038 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12039 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; 12040 12041 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12042 esac 12043done 12044 12045 12046# If the user did not use the arguments to specify the items to instantiate, 12047# then the envvar interface is used. Set only those that are not. 12048# We use the long form for the default assignment because of an extremely 12049# bizarre bug on SunOS 4.1.3. 12050if $ac_need_defaults; then 12051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12054fi 12055 12056# Have a temporary directory for convenience. Make it in the build tree 12057# simply because there is no reason against having it here, and in addition, 12058# creating and moving files from /tmp can sometimes cause problems. 12059# Hook for its removal unless debugging. 12060# Note that there is a small window in which the directory will not be cleaned: 12061# after its creation but before its name has been assigned to `$tmp'. 12062$debug || 12063{ 12064 tmp= 12065 trap 'exit_status=$? 12066 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12067' 0 12068 trap 'as_fn_exit 1' 1 2 13 15 12069} 12070# Create a (secure) tmp directory for tmp files. 12071 12072{ 12073 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12074 test -n "$tmp" && test -d "$tmp" 12075} || 12076{ 12077 tmp=./conf$$-$RANDOM 12078 (umask 077 && mkdir "$tmp") 12079} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12080 12081# Set up the scripts for CONFIG_FILES section. 12082# No need to generate them if there are no CONFIG_FILES. 12083# This happens for instance with `./config.status config.h'. 12084if test -n "$CONFIG_FILES"; then 12085 12086if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 12087 ac_cs_awk_getline=: 12088 ac_cs_awk_pipe_init= 12089 ac_cs_awk_read_file=' 12090 while ((getline aline < (F[key])) > 0) 12091 print(aline) 12092 close(F[key])' 12093 ac_cs_awk_pipe_fini= 12094else 12095 ac_cs_awk_getline=false 12096 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 12097 ac_cs_awk_read_file=' 12098 print "|#_!!_#|" 12099 print "cat " F[key] " &&" 12100 '$ac_cs_awk_pipe_init 12101 # The final `:' finishes the AND list. 12102 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 12103fi 12104ac_cr=`echo X | tr X '\015'` 12105# On cygwin, bash can eat \r inside `` if the user requested igncr. 12106# But we know of no other shell where ac_cr would be empty at this 12107# point, so we can use a bashism as a fallback. 12108if test "x$ac_cr" = x; then 12109 eval ac_cr=\$\'\\r\' 12110fi 12111ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12112if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12113 ac_cs_awk_cr='\r' 12114else 12115 ac_cs_awk_cr=$ac_cr 12116fi 12117 12118echo 'BEGIN {' >"$tmp/subs1.awk" && 12119_ACEOF 12120 12121# Create commands to substitute file output variables. 12122{ 12123 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 12124 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && 12125 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 12126 echo "_ACAWK" && 12127 echo "_ACEOF" 12128} >conf$$files.sh && 12129. ./conf$$files.sh || 12130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12131rm -f conf$$files.sh 12132 12133{ 12134 echo "cat >conf$$subs.awk <<_ACEOF" && 12135 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12136 echo "_ACEOF" 12137} >conf$$subs.sh || 12138 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12139ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12140ac_delim='%!_!# ' 12141for ac_last_try in false false false false false :; do 12142 . ./conf$$subs.sh || 12143 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12144 12145 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12146 if test $ac_delim_n = $ac_delim_num; then 12147 break 12148 elif $ac_last_try; then 12149 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12150 else 12151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12152 fi 12153done 12154rm -f conf$$subs.sh 12155 12156cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12157cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12158_ACEOF 12159sed -n ' 12160h 12161s/^/S["/; s/!.*/"]=/ 12162p 12163g 12164s/^[^!]*!// 12165:repl 12166t repl 12167s/'"$ac_delim"'$// 12168t delim 12169:nl 12170h 12171s/\(.\{148\}\)..*/\1/ 12172t more1 12173s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12174p 12175n 12176b repl 12177:more1 12178s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12179p 12180g 12181s/.\{148\}// 12182t nl 12183:delim 12184h 12185s/\(.\{148\}\)..*/\1/ 12186t more2 12187s/["\\]/\\&/g; s/^/"/; s/$/"/ 12188p 12189b 12190:more2 12191s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12192p 12193g 12194s/.\{148\}// 12195t delim 12196' <conf$$subs.awk | sed ' 12197/^[^""]/{ 12198 N 12199 s/\n// 12200} 12201' >>$CONFIG_STATUS || ac_write_fail=1 12202rm -f conf$$subs.awk 12203cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12204_ACAWK 12205cat >>"\$tmp/subs1.awk" <<_ACAWK && 12206 for (key in S) S_is_set[key] = 1 12207 FS = "" 12208 \$ac_cs_awk_pipe_init 12209} 12210{ 12211 line = $ 0 12212 nfields = split(line, field, "@") 12213 substed = 0 12214 len = length(field[1]) 12215 for (i = 2; i < nfields; i++) { 12216 key = field[i] 12217 keylen = length(key) 12218 if (S_is_set[key]) { 12219 value = S[key] 12220 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12221 len += length(value) + length(field[++i]) 12222 substed = 1 12223 } else 12224 len += 1 + keylen 12225 } 12226 if (nfields == 3 && !substed) { 12227 key = field[2] 12228 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 12229 \$ac_cs_awk_read_file 12230 next 12231 } 12232 } 12233 print line 12234} 12235\$ac_cs_awk_pipe_fini 12236_ACAWK 12237_ACEOF 12238cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12239if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12240 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12241else 12242 cat 12243fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12244 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12245_ACEOF 12246 12247# VPATH may cause trouble with some makes, so we remove $(srcdir), 12248# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12249# trailing colons and then remove the whole line if VPATH becomes empty 12250# (actually we leave an empty line to preserve line numbers). 12251if test "x$srcdir" = x.; then 12252 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12253s/:*\$(srcdir):*/:/ 12254s/:*\${srcdir}:*/:/ 12255s/:*@srcdir@:*/:/ 12256s/^\([^=]*=[ ]*\):*/\1/ 12257s/:*$// 12258s/^[^=]*=[ ]*$// 12259}' 12260fi 12261 12262cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12263fi # test -n "$CONFIG_FILES" 12264 12265# Set up the scripts for CONFIG_HEADERS section. 12266# No need to generate them if there are no CONFIG_HEADERS. 12267# This happens for instance with `./config.status Makefile'. 12268if test -n "$CONFIG_HEADERS"; then 12269cat >"$tmp/defines.awk" <<\_ACAWK || 12270BEGIN { 12271_ACEOF 12272 12273# Transform confdefs.h into an awk script `defines.awk', embedded as 12274# here-document in config.status, that substitutes the proper values into 12275# config.h.in to produce config.h. 12276 12277# Create a delimiter string that does not exist in confdefs.h, to ease 12278# handling of long lines. 12279ac_delim='%!_!# ' 12280for ac_last_try in false false :; do 12281 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12282 if test -z "$ac_t"; then 12283 break 12284 elif $ac_last_try; then 12285 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 12286 else 12287 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12288 fi 12289done 12290 12291# For the awk script, D is an array of macro values keyed by name, 12292# likewise P contains macro parameters if any. Preserve backslash 12293# newline sequences. 12294 12295ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12296sed -n ' 12297s/.\{148\}/&'"$ac_delim"'/g 12298t rset 12299:rset 12300s/^[ ]*#[ ]*define[ ][ ]*/ / 12301t def 12302d 12303:def 12304s/\\$// 12305t bsnl 12306s/["\\]/\\&/g 12307s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12308D["\1"]=" \3"/p 12309s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12310d 12311:bsnl 12312s/["\\]/\\&/g 12313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12314D["\1"]=" \3\\\\\\n"\\/p 12315t cont 12316s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12317t cont 12318d 12319:cont 12320n 12321s/.\{148\}/&'"$ac_delim"'/g 12322t clear 12323:clear 12324s/\\$// 12325t bsnlc 12326s/["\\]/\\&/g; s/^/"/; s/$/"/p 12327d 12328:bsnlc 12329s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12330b cont 12331' <confdefs.h | sed ' 12332s/'"$ac_delim"'/"\\\ 12333"/g' >>$CONFIG_STATUS || ac_write_fail=1 12334 12335cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12336 for (key in D) D_is_set[key] = 1 12337 FS = "" 12338} 12339/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12340 line = \$ 0 12341 split(line, arg, " ") 12342 if (arg[1] == "#") { 12343 defundef = arg[2] 12344 mac1 = arg[3] 12345 } else { 12346 defundef = substr(arg[1], 2) 12347 mac1 = arg[2] 12348 } 12349 split(mac1, mac2, "(") #) 12350 macro = mac2[1] 12351 prefix = substr(line, 1, index(line, defundef) - 1) 12352 if (D_is_set[macro]) { 12353 # Preserve the white space surrounding the "#". 12354 print prefix "define", macro P[macro] D[macro] 12355 next 12356 } else { 12357 # Replace #undef with comments. This is necessary, for example, 12358 # in the case of _POSIX_SOURCE, which is predefined and required 12359 # on some systems where configure will not decide to define it. 12360 if (defundef == "undef") { 12361 print "/*", prefix defundef, macro, "*/" 12362 next 12363 } 12364 } 12365} 12366{ print } 12367_ACAWK 12368_ACEOF 12369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12370 as_fn_error "could not setup config headers machinery" "$LINENO" 5 12371fi # test -n "$CONFIG_HEADERS" 12372 12373 12374eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12375shift 12376for ac_tag 12377do 12378 case $ac_tag in 12379 :[FHLC]) ac_mode=$ac_tag; continue;; 12380 esac 12381 case $ac_mode$ac_tag in 12382 :[FHL]*:*);; 12383 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12384 :[FH]-) ac_tag=-:-;; 12385 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12386 esac 12387 ac_save_IFS=$IFS 12388 IFS=: 12389 set x $ac_tag 12390 IFS=$ac_save_IFS 12391 shift 12392 ac_file=$1 12393 shift 12394 12395 case $ac_mode in 12396 :L) ac_source=$1;; 12397 :[FH]) 12398 ac_file_inputs= 12399 for ac_f 12400 do 12401 case $ac_f in 12402 -) ac_f="$tmp/stdin";; 12403 *) # Look for the file first in the build tree, then in the source tree 12404 # (if the path is not absolute). The absolute path cannot be DOS-style, 12405 # because $ac_f cannot contain `:'. 12406 test -f "$ac_f" || 12407 case $ac_f in 12408 [\\/$]*) false;; 12409 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12410 esac || 12411 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12412 esac 12413 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12414 as_fn_append ac_file_inputs " '$ac_f'" 12415 done 12416 12417 # Let's still pretend it is `configure' which instantiates (i.e., don't 12418 # use $as_me), people would be surprised to read: 12419 # /* config.h. Generated by config.status. */ 12420 configure_input='Generated from '` 12421 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12422 `' by configure.' 12423 if test x"$ac_file" != x-; then 12424 configure_input="$ac_file. $configure_input" 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12426$as_echo "$as_me: creating $ac_file" >&6;} 12427 fi 12428 # Neutralize special characters interpreted by sed in replacement strings. 12429 case $configure_input in #( 12430 *\&* | *\|* | *\\* ) 12431 ac_sed_conf_input=`$as_echo "$configure_input" | 12432 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12433 *) ac_sed_conf_input=$configure_input;; 12434 esac 12435 12436 case $ac_tag in 12437 *:-:* | *:-) cat >"$tmp/stdin" \ 12438 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12439 esac 12440 ;; 12441 esac 12442 12443 ac_dir=`$as_dirname -- "$ac_file" || 12444$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12445 X"$ac_file" : 'X\(//\)[^/]' \| \ 12446 X"$ac_file" : 'X\(//\)$' \| \ 12447 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12448$as_echo X"$ac_file" | 12449 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12450 s//\1/ 12451 q 12452 } 12453 /^X\(\/\/\)[^/].*/{ 12454 s//\1/ 12455 q 12456 } 12457 /^X\(\/\/\)$/{ 12458 s//\1/ 12459 q 12460 } 12461 /^X\(\/\).*/{ 12462 s//\1/ 12463 q 12464 } 12465 s/.*/./; q'` 12466 as_dir="$ac_dir"; as_fn_mkdir_p 12467 ac_builddir=. 12468 12469case "$ac_dir" in 12470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12471*) 12472 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12473 # A ".." for each directory in $ac_dir_suffix. 12474 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12475 case $ac_top_builddir_sub in 12476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12478 esac ;; 12479esac 12480ac_abs_top_builddir=$ac_pwd 12481ac_abs_builddir=$ac_pwd$ac_dir_suffix 12482# for backward compatibility: 12483ac_top_builddir=$ac_top_build_prefix 12484 12485case $srcdir in 12486 .) # We are building in place. 12487 ac_srcdir=. 12488 ac_top_srcdir=$ac_top_builddir_sub 12489 ac_abs_top_srcdir=$ac_pwd ;; 12490 [\\/]* | ?:[\\/]* ) # Absolute name. 12491 ac_srcdir=$srcdir$ac_dir_suffix; 12492 ac_top_srcdir=$srcdir 12493 ac_abs_top_srcdir=$srcdir ;; 12494 *) # Relative name. 12495 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12496 ac_top_srcdir=$ac_top_build_prefix$srcdir 12497 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12498esac 12499ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12500 12501 12502 case $ac_mode in 12503 :F) 12504 # 12505 # CONFIG_FILE 12506 # 12507 12508 case $INSTALL in 12509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12510 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12511 esac 12512_ACEOF 12513 12514cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12515# If the template does not know about datarootdir, expand it. 12516# FIXME: This hack should be removed a few years after 2.60. 12517ac_datarootdir_hack=; ac_datarootdir_seen= 12518ac_sed_dataroot=' 12519/datarootdir/ { 12520 p 12521 q 12522} 12523/@datadir@/p 12524/@docdir@/p 12525/@infodir@/p 12526/@localedir@/p 12527/@mandir@/p' 12528case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12529*datarootdir*) ac_datarootdir_seen=yes;; 12530*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12532$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12533_ACEOF 12534cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12535 ac_datarootdir_hack=' 12536 s&@datadir@&$datadir&g 12537 s&@docdir@&$docdir&g 12538 s&@infodir@&$infodir&g 12539 s&@localedir@&$localedir&g 12540 s&@mandir@&$mandir&g 12541 s&\\\${datarootdir}&$datarootdir&g' ;; 12542esac 12543_ACEOF 12544 12545# Neutralize VPATH when `$srcdir' = `.'. 12546# Shell code in configure.ac might set extrasub. 12547# FIXME: do we really want to maintain this feature? 12548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12549ac_sed_extra="$ac_vpsub 12550$extrasub 12551_ACEOF 12552cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12553:t 12554/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12555s|@configure_input@|$ac_sed_conf_input|;t t 12556s&@top_builddir@&$ac_top_builddir_sub&;t t 12557s&@top_build_prefix@&$ac_top_build_prefix&;t t 12558s&@srcdir@&$ac_srcdir&;t t 12559s&@abs_srcdir@&$ac_abs_srcdir&;t t 12560s&@top_srcdir@&$ac_top_srcdir&;t t 12561s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12562s&@builddir@&$ac_builddir&;t t 12563s&@abs_builddir@&$ac_abs_builddir&;t t 12564s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12565s&@INSTALL@&$ac_INSTALL&;t t 12566$ac_datarootdir_hack 12567" 12568eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 12569if $ac_cs_awk_getline; then 12570 $AWK -f "$tmp/subs.awk" 12571else 12572 $AWK -f "$tmp/subs.awk" | $SHELL 12573fi >$tmp/out \ 12574 || as_fn_error "could not create $ac_file" "$LINENO" 5 12575 12576test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12577 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 12578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 12579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12580which seems to be undefined. Please make sure it is defined." >&5 12581$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12582which seems to be undefined. Please make sure it is defined." >&2;} 12583 12584 rm -f "$tmp/stdin" 12585 case $ac_file in 12586 -) cat "$tmp/out" && rm -f "$tmp/out";; 12587 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 12588 esac \ 12589 || as_fn_error "could not create $ac_file" "$LINENO" 5 12590 ;; 12591 :H) 12592 # 12593 # CONFIG_HEADER 12594 # 12595 if test x"$ac_file" != x-; then 12596 { 12597 $as_echo "/* $configure_input */" \ 12598 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 12599 } >"$tmp/config.h" \ 12600 || as_fn_error "could not create $ac_file" "$LINENO" 5 12601 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 12602 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12603$as_echo "$as_me: $ac_file is unchanged" >&6;} 12604 else 12605 rm -f "$ac_file" 12606 mv "$tmp/config.h" "$ac_file" \ 12607 || as_fn_error "could not create $ac_file" "$LINENO" 5 12608 fi 12609 else 12610 $as_echo "/* $configure_input */" \ 12611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 12612 || as_fn_error "could not create -" "$LINENO" 5 12613 fi 12614 ;; 12615 12616 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12617$as_echo "$as_me: executing $ac_file commands" >&6;} 12618 ;; 12619 esac 12620 12621 12622 case $ac_file$ac_mode in 12623 "default-1":C) 12624 for ac_file in $CONFIG_FILES; do 12625 # Support "outfile[:infile[:infile...]]" 12626 case "$ac_file" in 12627 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 12628 esac 12629 # PO directories have a Makefile.in generated from Makefile.in.in. 12630 case "$ac_file" in */Makefile.in) 12631 # Adjust a relative srcdir. 12632 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 12633 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 12634 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 12635 # In autoconf-2.13 it is called $ac_given_srcdir. 12636 # In autoconf-2.50 it is called $srcdir. 12637 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 12638 case "$ac_given_srcdir" in 12639 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 12640 /*) top_srcdir="$ac_given_srcdir" ;; 12641 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 12642 esac 12643 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 12644 rm -f "$ac_dir/POTFILES" 12645 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 12646 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 12647 POMAKEFILEDEPS="POTFILES.in" 12648 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 12649 # on $ac_dir but don't depend on user-specified configuration 12650 # parameters. 12651 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 12652 # The LINGUAS file contains the set of available languages. 12653 if test -n "$OBSOLETE_ALL_LINGUAS"; then 12654 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 12655 fi 12656 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 12657 # Hide the ALL_LINGUAS assigment from automake. 12658 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 12659 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 12660 else 12661 # The set of available languages was given in configure.in. 12662 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 12663 fi 12664 # Compute POFILES 12665 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 12666 # Compute UPDATEPOFILES 12667 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 12668 # Compute DUMMYPOFILES 12669 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 12670 # Compute GMOFILES 12671 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 12672 case "$ac_given_srcdir" in 12673 .) srcdirpre= ;; 12674 *) srcdirpre='$(srcdir)/' ;; 12675 esac 12676 POFILES= 12677 UPDATEPOFILES= 12678 DUMMYPOFILES= 12679 GMOFILES= 12680 for lang in $ALL_LINGUAS; do 12681 POFILES="$POFILES $srcdirpre$lang.po" 12682 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 12683 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 12684 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 12685 done 12686 # CATALOGS depends on both $ac_dir and the user's LINGUAS 12687 # environment variable. 12688 INST_LINGUAS= 12689 if test -n "$ALL_LINGUAS"; then 12690 for presentlang in $ALL_LINGUAS; do 12691 useit=no 12692 if test "%UNSET%" != "$LINGUAS"; then 12693 desiredlanguages="$LINGUAS" 12694 else 12695 desiredlanguages="$ALL_LINGUAS" 12696 fi 12697 for desiredlang in $desiredlanguages; do 12698 # Use the presentlang catalog if desiredlang is 12699 # a. equal to presentlang, or 12700 # b. a variant of presentlang (because in this case, 12701 # presentlang can be used as a fallback for messages 12702 # which are not translated in the desiredlang catalog). 12703 case "$desiredlang" in 12704 "$presentlang"*) useit=yes;; 12705 esac 12706 done 12707 if test $useit = yes; then 12708 INST_LINGUAS="$INST_LINGUAS $presentlang" 12709 fi 12710 done 12711 fi 12712 CATALOGS= 12713 if test -n "$INST_LINGUAS"; then 12714 for lang in $INST_LINGUAS; do 12715 CATALOGS="$CATALOGS $lang.gmo" 12716 done 12717 fi 12718 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 12719 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" 12720 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 12721 if test -f "$f"; then 12722 case "$f" in 12723 *.orig | *.bak | *~) ;; 12724 *) cat "$f" >> "$ac_dir/Makefile" ;; 12725 esac 12726 fi 12727 done 12728 fi 12729 ;; 12730 esac 12731 done ;; 12732 12733 esac 12734done # for ac_tag 12735 12736 12737as_fn_exit 0 12738_ACEOF 12739ac_clean_files=$ac_clean_files_save 12740 12741test $ac_write_fail = 0 || 12742 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 12743 12744 12745# configure is writing to config.log, and then calls config.status. 12746# config.status does its own redirection, appending to config.log. 12747# Unfortunately, on DOS this fails, as config.log is still kept open 12748# by configure, so config.status won't be able to write to it; its 12749# output is simply discarded. So we exec the FD to /dev/null, 12750# effectively closing config.log, so it can be properly (re)opened and 12751# appended to by config.status. When coming back to configure, we 12752# need to make the FD available again. 12753if test "$no_create" != yes; then 12754 ac_cs_success=: 12755 ac_config_status_args= 12756 test "$silent" = yes && 12757 ac_config_status_args="$ac_config_status_args --quiet" 12758 exec 5>/dev/null 12759 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12760 exec 5>>config.log 12761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12762 # would make configure fail if this is the last instruction. 12763 $ac_cs_success || as_fn_exit $? 12764fi 12765if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12767$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12768fi 12769 12770if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi 12771