1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69. 4 # 5 # 6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7 # 8 # 9 # This configure script is free software; the Free Software Foundation 10 # gives unlimited permission to copy, distribute and modify it. 11 ## -------------------- ## 12 ## M4sh Initialization. ## 13 ## -------------------- ## 14 15 # Be more Bourne compatible 16 DUALCASE=1; export DUALCASE # for MKS sh 17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24 else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30 esac 31 fi 32 33 34 as_nl=' 35 ' 36 export as_nl 37 # Printing a long string crashes Solaris 7 /usr/bin/printf. 38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41 # Prefer a ksh shell builtin over an external printf program on Solaris, 42 # but without wasting forks for bash or zsh. 43 if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50 else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70 fi 71 72 # The user is always right. 73 if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79 fi 80 81 82 # IFS 83 # We need space, tab and new line, in precisely that order. Quoting is 84 # there to prevent editors from complaining about space-tab. 85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 86 # splitting by setting IFS to empty value.) 87 IFS=" "" $as_nl" 88 89 # Find who we are. Look in the path if we contain no directory separator. 90 as_myself= 91 case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 for as_dir in $PATH 95 do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100 IFS=$as_save_IFS 101 102 ;; 103 esac 104 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # in which case we are not to be found in the path. 106 if test "x$as_myself" = x; then 107 as_myself=$0 108 fi 109 if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112 fi 113 114 # Unset variables that we do not need and which cause bugs (e.g. in 115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116 # suppresses any "Segmentation fault" message there. '((' could 117 # trigger a bug in pdksh 5.2.14. 118 for as_var in BASH_ENV ENV MAIL MAILPATH 119 do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121 done 122 PS1='$ ' 123 PS2='> ' 124 PS4='+ ' 125 126 # NLS nuisances. 127 LC_ALL=C 128 export LC_ALL 129 LANGUAGE=C 130 export LANGUAGE 131 132 # CDPATH. 133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135 # Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140 # neutralization value for shells without unset; and this also 141 # works around shells that cannot unset nonexistent variables. 142 # Preserve -v and -x to the replacement shell. 143 BASH_ENV=/dev/null 144 ENV=/dev/null 145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146 case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151 esac 152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153 # Admittedly, this is quite paranoid, since all the known shells bail 154 # out after a failed `exec'. 155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156 as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160 if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168 else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174 esac 175 fi 176 " 177 as_required="as_fn_return () { (exit \$1); } 178 as_fn_success () { as_fn_return 0; } 179 as_fn_failure () { as_fn_return 1; } 180 as_fn_ret_success () { return 0; } 181 as_fn_ret_failure () { return 1; } 182 183 exitcode=0 184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190 else 191 exitcode=1; echo positional parameters were not saved. 192 fi 193 test x\$exitcode = x0 || exit 1 194 test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202 else 203 as_have_required=no 204 fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207 else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209 as_found=false 210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211 do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225 fi 226 fi 227 done;; 228 esac 229 as_found=false 230 done 231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234 fi; } 235 IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241 # neutralization value for shells without unset; and this also 242 # works around shells that cannot unset nonexistent variables. 243 # Preserve -v and -x to the replacement shell. 244 BASH_ENV=/dev/null 245 ENV=/dev/null 246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247 case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252 esac 253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254 # Admittedly, this is quite paranoid, since all the known shells bail 255 # out after a failed `exec'. 256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257 exit 255 258 fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf (at] gnu.org about your system, 268 $0: including any error possibly output before this 269 $0: message. Then install a modern shell, or manually run 270 $0: the script under such a shell if you do have one." 271 fi 272 exit 1 273 fi 274 fi 275 fi 276 SHELL=${CONFIG_SHELL-/bin/sh} 277 export SHELL 278 # Unset more variables known to interfere with behavior of common tools. 279 CLICOLOR_FORCE= GREP_OPTIONS= 280 unset CLICOLOR_FORCE GREP_OPTIONS 281 282 ## --------------------- ## 283 ## M4sh Shell Functions. ## 284 ## --------------------- ## 285 # as_fn_unset VAR 286 # --------------- 287 # Portably unset VAR. 288 as_fn_unset () 289 { 290 { eval $1=; unset $1;} 291 } 292 as_unset=as_fn_unset 293 294 # as_fn_set_status STATUS 295 # ----------------------- 296 # Set $? to STATUS, without forking. 297 as_fn_set_status () 298 { 299 return $1 300 } # as_fn_set_status 301 302 # as_fn_exit STATUS 303 # ----------------- 304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305 as_fn_exit () 306 { 307 set +e 308 as_fn_set_status $1 309 exit $1 310 } # as_fn_exit 311 312 # as_fn_mkdir_p 313 # ------------- 314 # Create "$as_dir" as a directory, including parents if necessary. 315 as_fn_mkdir_p () 316 { 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334 $as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358 } # as_fn_mkdir_p 359 360 # as_fn_executable_p FILE 361 # ----------------------- 362 # Test if FILE is an executable regular file. 363 as_fn_executable_p () 364 { 365 test -f "$1" && test -x "$1" 366 } # as_fn_executable_p 367 # as_fn_append VAR VALUE 368 # ---------------------- 369 # Append the text in VALUE to the end of the definition contained in VAR. Take 370 # advantage of any shell optimizations that allow amortized linear growth over 371 # repeated appends, instead of the typical quadratic growth present in naive 372 # implementations. 373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378 else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383 fi # as_fn_append 384 385 # as_fn_arith ARG... 386 # ------------------ 387 # Perform arithmetic evaluation on the ARGs, and store the result in the 388 # global $as_val. Take advantage of shells that can avoid forks. The arguments 389 # must be portable across $(()) and expr. 390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395 else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400 fi # as_fn_arith 401 402 403 # as_fn_error STATUS ERROR [LINENO LOG_FD] 404 # ---------------------------------------- 405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407 # script with STATUS, using 1 if that was 0. 408 as_fn_error () 409 { 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417 } # as_fn_error 418 419 if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422 else 423 as_expr=false 424 fi 425 426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428 else 429 as_basename=false 430 fi 431 432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434 else 435 as_dirname=false 436 fi 437 438 as_me=`$as_basename -- "$0" || 439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442 $as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457 # Avoid depending upon Character Ranges. 458 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461 as_cr_digits='0123456789' 462 as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498 } 499 500 ECHO_C= ECHO_N= ECHO_T= 501 case `echo -n x` in #((((( 502 -n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509 *) 510 ECHO_N='-n';; 511 esac 512 513 rm -f conf$$ conf$$.exe conf$$.file 514 if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516 else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519 fi 520 if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534 else 535 as_ln_s='cp -pR' 536 fi 537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538 rmdir conf$$.dir 2>/dev/null 539 540 if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542 else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545 fi 546 547 as_test_x='test -x' 548 as_executable_p=as_fn_executable_p 549 550 # Sed expression to map a string onto a valid CPP name. 551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553 # Sed expression to map a string onto a valid variable name. 554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557 test -n "$DJDIR" || exec 7<&0 </dev/null 558 exec 6>&1 559 560 # Name of the host. 561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562 # so uname gets run too. 563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565 # 566 # Initializations. 567 # 568 ac_default_prefix=/usr/local 569 ac_clean_files= 570 ac_config_libobj_dir=. 571 LIBOBJS= 572 cross_compiling=no 573 subdirs= 574 MFLAGS= 575 MAKEFLAGS= 576 577 # Identity of this package. 578 PACKAGE_NAME= 579 PACKAGE_TARNAME= 580 PACKAGE_VERSION= 581 PACKAGE_STRING= 582 PACKAGE_BUGREPORT= 583 PACKAGE_URL= 584 585 ac_unique_file="version.h" 586 # Factoring default headers for most tests. 587 ac_includes_default="\ 588 #include <stdio.h> 589 #ifdef HAVE_SYS_TYPES_H 590 # include <sys/types.h> 591 #endif 592 #ifdef HAVE_SYS_STAT_H 593 # include <sys/stat.h> 594 #endif 595 #ifdef STDC_HEADERS 596 # include <stdlib.h> 597 # include <stddef.h> 598 #else 599 # ifdef HAVE_STDLIB_H 600 # include <stdlib.h> 601 # endif 602 #endif 603 #ifdef HAVE_STRING_H 604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605 # include <memory.h> 606 # endif 607 # include <string.h> 608 #endif 609 #ifdef HAVE_STRINGS_H 610 # include <strings.h> 611 #endif 612 #ifdef HAVE_INTTYPES_H 613 # include <inttypes.h> 614 #endif 615 #ifdef HAVE_STDINT_H 616 # include <stdint.h> 617 #endif 618 #ifdef HAVE_UNISTD_H 619 # include <unistd.h> 620 #endif" 621 622 gt_needs= 623 ac_header_list= 624 gl_use_threads_default= 625 ac_func_list= 626 ac_subst_vars='LTLIBOBJS 627 LIBOBJS 628 systemd_system_unit_dir 629 have_systemd 630 systemd_LIBS 631 systemd_CFLAGS 632 crond_dir 633 have_crond 634 pkg_udev_rules_dir 635 have_udev 636 udev_LIBS 637 udev_CFLAGS 638 LDFLAGS_SHLIB 639 CFLAGS_STLIB 640 CFLAGS_SHLIB 641 BUILD_LDFLAGS 642 BUILD_CFLAGS 643 INCLUDES 644 DO_TEST_SUITE 645 LDFLAGS_STATIC 646 root_sysconfdir 647 root_libdir 648 root_sbindir 649 root_bindir 650 root_prefix 651 E2SCRUB_CMT 652 UNIX_CMT 653 CYGWIN_CMT 654 LINUX_CMT 655 threadsan_ldflags 656 threadsan_cflags 657 have_threadsan 658 addrsan_ldflags 659 addrsan_cflags 660 have_addrsan 661 ubsan_ldflags 662 ubsan_cflags 663 have_ubsan 664 lto_ldflags 665 lto_cflags 666 have_lto 667 gcc_ranlib 668 gcc_ar 669 UNI_DIFF_OPTS 670 SEM_INIT_LIB 671 FUSE_CMT 672 FUSE_LIB 673 CLOCK_GETTIME_LIB 674 MAGIC_LIB 675 SOCKET_LIB 676 SIZEOF_TIME_T 677 SIZEOF_OFF_T 678 SIZEOF_LONG_LONG 679 SIZEOF_LONG 680 SIZEOF_INT 681 SIZEOF_SHORT 682 DD 683 BUILD_CC 684 MAKEINFO 685 STRIP 686 AR 687 LDCONFIG 688 PERL 689 AWK 690 CHMOD 691 RM 692 CP 693 MV 694 LN_S 695 LN 696 ifNotGNUmake 697 ifGNUmake 698 BINARY_TYPE 699 POSUB 700 LTLIBINTL 701 LIBINTL 702 INTLLIBS 703 INTL_LIBTOOL_SUFFIX_PREFIX 704 INTLOBJS 705 GENCAT 706 INSTOBJEXT 707 DATADIRNAME 708 CATOBJEXT 709 USE_INCLUDED_LIBINTL 710 BUILD_INCLUDED_LIBINTL 711 LTLIBC 712 WINDRES 713 WOE32 714 WOE32DLL 715 HAVE_WPRINTF 716 HAVE_NEWLOCALE 717 HAVE_SNPRINTF 718 HAVE_ASPRINTF 719 HAVE_POSIX_PRINTF 720 INTL_DEFAULT_VERBOSITY 721 INTL_MACOSX_LIBS 722 GLIBC21 723 INTLBISON 724 LTLIBICONV 725 LIBICONV 726 LTLIBMULTITHREAD 727 LIBMULTITHREAD 728 LTLIBTHREAD 729 LIBTHREAD 730 LIBPTH_PREFIX 731 LTLIBPTH 732 LIBPTH 733 PRI_MACROS_BROKEN 734 ALLOCA 735 HAVE_VISIBILITY 736 CFLAG_VISIBILITY 737 RANLIB 738 GLIBC2 739 XGETTEXT_EXTRA_OPTIONS 740 MSGMERGE 741 XGETTEXT_015 742 XGETTEXT 743 GMSGFMT_015 744 MSGFMT_015 745 GMSGFMT 746 MSGFMT 747 GETTEXT_MACRO_VERSION 748 USE_NLS 749 SED 750 MKDIR_P 751 INSTALL_DATA 752 INSTALL_SCRIPT 753 INSTALL_PROGRAM 754 SET_MAKE 755 VERSION 756 PACKAGE 757 GETTEXT_PACKAGE 758 TDB_MAN_COMMENT 759 TDB_CMT 760 UUIDD_CMT 761 E2INITRD_MAN 762 E2INITRD_PROG 763 FSCK_MAN 764 FSCK_PROG 765 DEFRAG_CMT 766 RESIZER_CMT 767 IMAGER_CMT 768 DEBUGFS_CMT 769 SUBSET_CMT 770 ALL_CMT 771 BLKID_CMT 772 DEPPROFILED_LIBBLKID 773 PROFILED_LIBBLKID 774 DEPSTATIC_LIBBLKID 775 STATIC_LIBBLKID 776 DEPLIBBLKID 777 LIBBLKID 778 UUID_CMT 779 DEPPROFILED_LIBUUID 780 PROFILED_LIBUUID 781 DEPSTATIC_LIBUUID 782 STATIC_LIBUUID 783 DEPLIBUUID 784 LIBUUID 785 PKG_CONFIG_LIBDIR 786 PKG_CONFIG_PATH 787 PKG_CONFIG 788 TEST_IO_CMT 789 PRIVATE_LIBS_CMT 790 LDFLAG_DYNAMIC 791 PROFILED_LIB_EXT 792 STATIC_LIB_EXT 793 LIB_EXT 794 PROFILE_CMT 795 BSDLIB_CMT 796 ELF_CMT 797 Q 798 ES 799 E 800 LINK_BUILD_FLAGS 801 SYMLINK_RELATIVE 802 LINK_INSTALL_FLAGS 803 MAINTAINER_CMT 804 EGREP 805 GREP 806 CPP 807 RDYNAMIC 808 DLOPEN_LIB 809 OBJEXT 810 EXEEXT 811 ac_ct_CC 812 CPPFLAGS 813 LDFLAGS 814 CFLAGS 815 CC 816 host_os 817 host_vendor 818 host_cpu 819 host 820 build_os 821 build_vendor 822 build_cpu 823 build 824 E2FSPROGS_DATE 825 E2FSPROGS_PKGVER 826 E2FSPROGS_VERSION 827 E2FSPROGS_DAY 828 E2FSPROGS_MONTH 829 E2FSPROGS_YEAR 830 target_alias 831 host_alias 832 build_alias 833 LIBS 834 ECHO_T 835 ECHO_N 836 ECHO_C 837 DEFS 838 mandir 839 localedir 840 libdir 841 psdir 842 pdfdir 843 dvidir 844 htmldir 845 infodir 846 docdir 847 oldincludedir 848 includedir 849 runstatedir 850 localstatedir 851 sharedstatedir 852 sysconfdir 853 datadir 854 datarootdir 855 libexecdir 856 sbindir 857 bindir 858 program_transform_name 859 prefix 860 exec_prefix 861 PACKAGE_URL 862 PACKAGE_BUGREPORT 863 PACKAGE_STRING 864 PACKAGE_VERSION 865 PACKAGE_TARNAME 866 PACKAGE_NAME 867 PATH_SEPARATOR 868 SHELL' 869 ac_subst_files='MCONFIG 870 MAKEFILE_ELF 871 MAKEFILE_BSDLIB 872 MAKEFILE_PROFILE 873 MAKEFILE_LIBRARY 874 ASM_TYPES_HEADER 875 PUBLIC_CONFIG_HEADER' 876 ac_user_opts=' 877 enable_option_checking 878 with_diet_libc 879 with_cc 880 with_ccopts 881 with_ldopts 882 with_root_prefix 883 enable_maintainer_mode 884 enable_symlink_install 885 enable_relative_symlinks 886 enable_symlink_relative_symlinks 887 enable_symlink_build 888 enable_verbose_makecmds 889 enable_elf_shlibs 890 enable_bsd_shlibs 891 enable_profile 892 enable_gcov 893 enable_hardening 894 enable_jbd_debug 895 enable_blkid_debug 896 enable_testio_debug 897 enable_libuuid 898 enable_libblkid 899 enable_subset 900 enable_backtrace 901 enable_debugfs 902 enable_imager 903 enable_resizer 904 enable_defrag 905 enable_fsck 906 enable_e2initrd_helper 907 enable_tls 908 enable_uuidd 909 enable_mmp 910 enable_tdb 911 enable_bmap_stats 912 enable_bmap_stats_ops 913 enable_nls 914 enable_threads 915 with_gnu_ld 916 enable_rpath 917 with_libpth_prefix 918 with_libiconv_prefix 919 with_included_gettext 920 with_libintl_prefix 921 enable_fuse2fs 922 enable_lto 923 enable_ubsan 924 enable_addrsan 925 enable_threadsan 926 with_multiarch 927 with_udev_rules_dir 928 with_crond_dir 929 with_systemd_unit_dir 930 ' 931 ac_precious_vars='build_alias 932 host_alias 933 target_alias 934 CC 935 CFLAGS 936 LDFLAGS 937 LIBS 938 CPPFLAGS 939 CPP 940 PKG_CONFIG 941 PKG_CONFIG_PATH 942 PKG_CONFIG_LIBDIR 943 udev_CFLAGS 944 udev_LIBS 945 systemd_CFLAGS 946 systemd_LIBS' 947 948 949 # Initialize some variables set by options. 950 ac_init_help= 951 ac_init_version=false 952 ac_unrecognized_opts= 953 ac_unrecognized_sep= 954 # The variables have the same names as the options, with 955 # dashes changed to underlines. 956 cache_file=/dev/null 957 exec_prefix=NONE 958 no_create= 959 no_recursion= 960 prefix=NONE 961 program_prefix=NONE 962 program_suffix=NONE 963 program_transform_name=s,x,x, 964 silent= 965 site= 966 srcdir= 967 verbose= 968 x_includes=NONE 969 x_libraries=NONE 970 971 # Installation directory options. 972 # These are left unexpanded so users can "make install exec_prefix=/foo" 973 # and all the variables that are supposed to be based on exec_prefix 974 # by default will actually change. 975 # Use braces instead of parens because sh, perl, etc. also accept them. 976 # (The list follows the same order as the GNU Coding Standards.) 977 bindir='${exec_prefix}/bin' 978 sbindir='${exec_prefix}/sbin' 979 libexecdir='${exec_prefix}/libexec' 980 datarootdir='${prefix}/share' 981 datadir='${datarootdir}' 982 sysconfdir='${prefix}/etc' 983 sharedstatedir='${prefix}/com' 984 localstatedir='${prefix}/var' 985 runstatedir='${localstatedir}/run' 986 includedir='${prefix}/include' 987 oldincludedir='/usr/include' 988 docdir='${datarootdir}/doc/${PACKAGE}' 989 infodir='${datarootdir}/info' 990 htmldir='${docdir}' 991 dvidir='${docdir}' 992 pdfdir='${docdir}' 993 psdir='${docdir}' 994 libdir='${exec_prefix}/lib' 995 localedir='${datarootdir}/locale' 996 mandir='${datarootdir}/man' 997 998 ac_prev= 999 ac_dashdash= 1000 for ac_option 1001 do 1002 # If the previous option needs an argument, assign it. 1003 if test -n "$ac_prev"; then 1004 eval $ac_prev=\$ac_option 1005 ac_prev= 1006 continue 1007 fi 1008 1009 case $ac_option in 1010 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1011 *=) ac_optarg= ;; 1012 *) ac_optarg=yes ;; 1013 esac 1014 1015 # Accept the important Cygnus configure options, so we can diagnose typos. 1016 1017 case $ac_dashdash$ac_option in 1018 --) 1019 ac_dashdash=yes ;; 1020 1021 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1022 ac_prev=bindir ;; 1023 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1024 bindir=$ac_optarg ;; 1025 1026 -build | --build | --buil | --bui | --bu) 1027 ac_prev=build_alias ;; 1028 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1029 build_alias=$ac_optarg ;; 1030 1031 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1032 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1033 ac_prev=cache_file ;; 1034 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1035 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1036 cache_file=$ac_optarg ;; 1037 1038 --config-cache | -C) 1039 cache_file=config.cache ;; 1040 1041 -datadir | --datadir | --datadi | --datad) 1042 ac_prev=datadir ;; 1043 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1044 datadir=$ac_optarg ;; 1045 1046 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1047 | --dataroo | --dataro | --datar) 1048 ac_prev=datarootdir ;; 1049 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1050 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1051 datarootdir=$ac_optarg ;; 1052 1053 -disable-* | --disable-*) 1054 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1055 # Reject names that are not valid shell variable names. 1056 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1057 as_fn_error $? "invalid feature name: $ac_useropt" 1058 ac_useropt_orig=$ac_useropt 1059 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1060 case $ac_user_opts in 1061 *" 1062 "enable_$ac_useropt" 1063 "*) ;; 1064 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1065 ac_unrecognized_sep=', ';; 1066 esac 1067 eval enable_$ac_useropt=no ;; 1068 1069 -docdir | --docdir | --docdi | --doc | --do) 1070 ac_prev=docdir ;; 1071 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1072 docdir=$ac_optarg ;; 1073 1074 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1075 ac_prev=dvidir ;; 1076 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1077 dvidir=$ac_optarg ;; 1078 1079 -enable-* | --enable-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 as_fn_error $? "invalid feature name: $ac_useropt" 1084 ac_useropt_orig=$ac_useropt 1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086 case $ac_user_opts in 1087 *" 1088 "enable_$ac_useropt" 1089 "*) ;; 1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1091 ac_unrecognized_sep=', ';; 1092 esac 1093 eval enable_$ac_useropt=\$ac_optarg ;; 1094 1095 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1096 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1097 | --exec | --exe | --ex) 1098 ac_prev=exec_prefix ;; 1099 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1100 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1101 | --exec=* | --exe=* | --ex=*) 1102 exec_prefix=$ac_optarg ;; 1103 1104 -gas | --gas | --ga | --g) 1105 # Obsolete; use --with-gas. 1106 with_gas=yes ;; 1107 1108 -help | --help | --hel | --he | -h) 1109 ac_init_help=long ;; 1110 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1111 ac_init_help=recursive ;; 1112 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1113 ac_init_help=short ;; 1114 1115 -host | --host | --hos | --ho) 1116 ac_prev=host_alias ;; 1117 -host=* | --host=* | --hos=* | --ho=*) 1118 host_alias=$ac_optarg ;; 1119 1120 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1121 ac_prev=htmldir ;; 1122 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1123 | --ht=*) 1124 htmldir=$ac_optarg ;; 1125 1126 -includedir | --includedir | --includedi | --included | --include \ 1127 | --includ | --inclu | --incl | --inc) 1128 ac_prev=includedir ;; 1129 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1130 | --includ=* | --inclu=* | --incl=* | --inc=*) 1131 includedir=$ac_optarg ;; 1132 1133 -infodir | --infodir | --infodi | --infod | --info | --inf) 1134 ac_prev=infodir ;; 1135 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1136 infodir=$ac_optarg ;; 1137 1138 -libdir | --libdir | --libdi | --libd) 1139 ac_prev=libdir ;; 1140 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1141 libdir=$ac_optarg ;; 1142 1143 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1144 | --libexe | --libex | --libe) 1145 ac_prev=libexecdir ;; 1146 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1147 | --libexe=* | --libex=* | --libe=*) 1148 libexecdir=$ac_optarg ;; 1149 1150 -localedir | --localedir | --localedi | --localed | --locale) 1151 ac_prev=localedir ;; 1152 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1153 localedir=$ac_optarg ;; 1154 1155 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1156 | --localstate | --localstat | --localsta | --localst | --locals) 1157 ac_prev=localstatedir ;; 1158 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1159 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1160 localstatedir=$ac_optarg ;; 1161 1162 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1163 ac_prev=mandir ;; 1164 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1165 mandir=$ac_optarg ;; 1166 1167 -nfp | --nfp | --nf) 1168 # Obsolete; use --without-fp. 1169 with_fp=no ;; 1170 1171 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1172 | --no-cr | --no-c | -n) 1173 no_create=yes ;; 1174 1175 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1176 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1177 no_recursion=yes ;; 1178 1179 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1180 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1181 | --oldin | --oldi | --old | --ol | --o) 1182 ac_prev=oldincludedir ;; 1183 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1184 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1185 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1186 oldincludedir=$ac_optarg ;; 1187 1188 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1189 ac_prev=prefix ;; 1190 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1191 prefix=$ac_optarg ;; 1192 1193 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1194 | --program-pre | --program-pr | --program-p) 1195 ac_prev=program_prefix ;; 1196 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1197 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1198 program_prefix=$ac_optarg ;; 1199 1200 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1201 | --program-suf | --program-su | --program-s) 1202 ac_prev=program_suffix ;; 1203 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1204 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1205 program_suffix=$ac_optarg ;; 1206 1207 -program-transform-name | --program-transform-name \ 1208 | --program-transform-nam | --program-transform-na \ 1209 | --program-transform-n | --program-transform- \ 1210 | --program-transform | --program-transfor \ 1211 | --program-transfo | --program-transf \ 1212 | --program-trans | --program-tran \ 1213 | --progr-tra | --program-tr | --program-t) 1214 ac_prev=program_transform_name ;; 1215 -program-transform-name=* | --program-transform-name=* \ 1216 | --program-transform-nam=* | --program-transform-na=* \ 1217 | --program-transform-n=* | --program-transform-=* \ 1218 | --program-transform=* | --program-transfor=* \ 1219 | --program-transfo=* | --program-transf=* \ 1220 | --program-trans=* | --program-tran=* \ 1221 | --progr-tra=* | --program-tr=* | --program-t=*) 1222 program_transform_name=$ac_optarg ;; 1223 1224 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1225 ac_prev=pdfdir ;; 1226 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1227 pdfdir=$ac_optarg ;; 1228 1229 -psdir | --psdir | --psdi | --psd | --ps) 1230 ac_prev=psdir ;; 1231 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1232 psdir=$ac_optarg ;; 1233 1234 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1235 | -silent | --silent | --silen | --sile | --sil) 1236 silent=yes ;; 1237 1238 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1239 | --runstate | --runstat | --runsta | --runst | --runs \ 1240 | --run | --ru | --r) 1241 ac_prev=runstatedir ;; 1242 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1243 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1244 | --run=* | --ru=* | --r=*) 1245 runstatedir=$ac_optarg ;; 1246 1247 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1248 ac_prev=sbindir ;; 1249 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1250 | --sbi=* | --sb=*) 1251 sbindir=$ac_optarg ;; 1252 1253 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1254 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1255 | --sharedst | --shareds | --shared | --share | --shar \ 1256 | --sha | --sh) 1257 ac_prev=sharedstatedir ;; 1258 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1259 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1260 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1261 | --sha=* | --sh=*) 1262 sharedstatedir=$ac_optarg ;; 1263 1264 -site | --site | --sit) 1265 ac_prev=site ;; 1266 -site=* | --site=* | --sit=*) 1267 site=$ac_optarg ;; 1268 1269 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1270 ac_prev=srcdir ;; 1271 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1272 srcdir=$ac_optarg ;; 1273 1274 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1275 | --syscon | --sysco | --sysc | --sys | --sy) 1276 ac_prev=sysconfdir ;; 1277 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1278 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1279 sysconfdir=$ac_optarg ;; 1280 1281 -target | --target | --targe | --targ | --tar | --ta | --t) 1282 ac_prev=target_alias ;; 1283 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1284 target_alias=$ac_optarg ;; 1285 1286 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1287 verbose=yes ;; 1288 1289 -version | --version | --versio | --versi | --vers | -V) 1290 ac_init_version=: ;; 1291 1292 -with-* | --with-*) 1293 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1294 # Reject names that are not valid shell variable names. 1295 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1296 as_fn_error $? "invalid package name: $ac_useropt" 1297 ac_useropt_orig=$ac_useropt 1298 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1299 case $ac_user_opts in 1300 *" 1301 "with_$ac_useropt" 1302 "*) ;; 1303 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1304 ac_unrecognized_sep=', ';; 1305 esac 1306 eval with_$ac_useropt=\$ac_optarg ;; 1307 1308 -without-* | --without-*) 1309 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1310 # Reject names that are not valid shell variable names. 1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1312 as_fn_error $? "invalid package name: $ac_useropt" 1313 ac_useropt_orig=$ac_useropt 1314 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1315 case $ac_user_opts in 1316 *" 1317 "with_$ac_useropt" 1318 "*) ;; 1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1320 ac_unrecognized_sep=', ';; 1321 esac 1322 eval with_$ac_useropt=no ;; 1323 1324 --x) 1325 # Obsolete; use --with-x. 1326 with_x=yes ;; 1327 1328 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1329 | --x-incl | --x-inc | --x-in | --x-i) 1330 ac_prev=x_includes ;; 1331 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1332 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1333 x_includes=$ac_optarg ;; 1334 1335 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1336 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1337 ac_prev=x_libraries ;; 1338 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1339 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1340 x_libraries=$ac_optarg ;; 1341 1342 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1343 Try \`$0 --help' for more information" 1344 ;; 1345 1346 *=*) 1347 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1348 # Reject names that are not valid shell variable names. 1349 case $ac_envvar in #( 1350 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1351 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1352 esac 1353 eval $ac_envvar=\$ac_optarg 1354 export $ac_envvar ;; 1355 1356 *) 1357 # FIXME: should be removed in autoconf 3.0. 1358 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1359 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1360 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1361 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1362 ;; 1363 1364 esac 1365 done 1366 1367 if test -n "$ac_prev"; then 1368 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1369 as_fn_error $? "missing argument to $ac_option" 1370 fi 1371 1372 if test -n "$ac_unrecognized_opts"; then 1373 case $enable_option_checking in 1374 no) ;; 1375 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1376 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1377 esac 1378 fi 1379 1380 # Check all directory arguments for consistency. 1381 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1382 datadir sysconfdir sharedstatedir localstatedir includedir \ 1383 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1384 libdir localedir mandir runstatedir 1385 do 1386 eval ac_val=\$$ac_var 1387 # Remove trailing slashes. 1388 case $ac_val in 1389 */ ) 1390 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1391 eval $ac_var=\$ac_val;; 1392 esac 1393 # Be sure to have absolute directory names. 1394 case $ac_val in 1395 [\\/$]* | ?:[\\/]* ) continue;; 1396 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1397 esac 1398 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1399 done 1400 1401 # There might be people who depend on the old broken behavior: `$host' 1402 # used to hold the argument of --host etc. 1403 # FIXME: To remove some day. 1404 build=$build_alias 1405 host=$host_alias 1406 target=$target_alias 1407 1408 # FIXME: To remove some day. 1409 if test "x$host_alias" != x; then 1410 if test "x$build_alias" = x; then 1411 cross_compiling=maybe 1412 elif test "x$build_alias" != "x$host_alias"; then 1413 cross_compiling=yes 1414 fi 1415 fi 1416 1417 ac_tool_prefix= 1418 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1419 1420 test "$silent" = yes && exec 6>/dev/null 1421 1422 1423 ac_pwd=`pwd` && test -n "$ac_pwd" && 1424 ac_ls_di=`ls -di .` && 1425 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1426 as_fn_error $? "working directory cannot be determined" 1427 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1428 as_fn_error $? "pwd does not report name of working directory" 1429 1430 1431 # Find the source files, if location was not specified. 1432 if test -z "$srcdir"; then 1433 ac_srcdir_defaulted=yes 1434 # Try the directory containing this script, then the parent directory. 1435 ac_confdir=`$as_dirname -- "$as_myself" || 1436 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1437 X"$as_myself" : 'X\(//\)[^/]' \| \ 1438 X"$as_myself" : 'X\(//\)$' \| \ 1439 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1440 $as_echo X"$as_myself" | 1441 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1442 s//\1/ 1443 q 1444 } 1445 /^X\(\/\/\)[^/].*/{ 1446 s//\1/ 1447 q 1448 } 1449 /^X\(\/\/\)$/{ 1450 s//\1/ 1451 q 1452 } 1453 /^X\(\/\).*/{ 1454 s//\1/ 1455 q 1456 } 1457 s/.*/./; q'` 1458 srcdir=$ac_confdir 1459 if test ! -r "$srcdir/$ac_unique_file"; then 1460 srcdir=.. 1461 fi 1462 else 1463 ac_srcdir_defaulted=no 1464 fi 1465 if test ! -r "$srcdir/$ac_unique_file"; then 1466 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1467 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1468 fi 1469 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1470 ac_abs_confdir=`( 1471 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1472 pwd)` 1473 # When building in place, set srcdir=. 1474 if test "$ac_abs_confdir" = "$ac_pwd"; then 1475 srcdir=. 1476 fi 1477 # Remove unnecessary trailing slashes from srcdir. 1478 # Double slashes in file names in object file debugging info 1479 # mess up M-x gdb in Emacs. 1480 case $srcdir in 1481 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1482 esac 1483 for ac_var in $ac_precious_vars; do 1484 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1485 eval ac_env_${ac_var}_value=\$${ac_var} 1486 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1487 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1488 done 1489 1490 # 1491 # Report the --help message. 1492 # 1493 if test "$ac_init_help" = "long"; then 1494 # Omit some internal or obsolete options to make the list less imposing. 1495 # This message is too long to be a string in the A/UX 3.1 sh. 1496 cat <<_ACEOF 1497 \`configure' configures this package to adapt to many kinds of systems. 1498 1499 Usage: $0 [OPTION]... [VAR=VALUE]... 1500 1501 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1502 VAR=VALUE. See below for descriptions of some of the useful variables. 1503 1504 Defaults for the options are specified in brackets. 1505 1506 Configuration: 1507 -h, --help display this help and exit 1508 --help=short display options specific to this package 1509 --help=recursive display the short help of all the included packages 1510 -V, --version display version information and exit 1511 -q, --quiet, --silent do not print \`checking ...' messages 1512 --cache-file=FILE cache test results in FILE [disabled] 1513 -C, --config-cache alias for \`--cache-file=config.cache' 1514 -n, --no-create do not create output files 1515 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1516 1517 Installation directories: 1518 --prefix=PREFIX install architecture-independent files in PREFIX 1519 [$ac_default_prefix] 1520 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1521 [PREFIX] 1522 1523 By default, \`make install' will install all the files in 1524 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1525 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1526 for instance \`--prefix=\$HOME'. 1527 1528 For better control, use the options below. 1529 1530 Fine tuning of the installation directories: 1531 --bindir=DIR user executables [EPREFIX/bin] 1532 --sbindir=DIR system admin executables [EPREFIX/sbin] 1533 --libexecdir=DIR program executables [EPREFIX/libexec] 1534 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1535 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1536 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1537 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1538 --libdir=DIR object code libraries [EPREFIX/lib] 1539 --includedir=DIR C header files [PREFIX/include] 1540 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1541 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1542 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1543 --infodir=DIR info documentation [DATAROOTDIR/info] 1544 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1545 --mandir=DIR man documentation [DATAROOTDIR/man] 1546 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1547 --htmldir=DIR html documentation [DOCDIR] 1548 --dvidir=DIR dvi documentation [DOCDIR] 1549 --pdfdir=DIR pdf documentation [DOCDIR] 1550 --psdir=DIR ps documentation [DOCDIR] 1551 _ACEOF 1552 1553 cat <<\_ACEOF 1554 1555 System types: 1556 --build=BUILD configure for building on BUILD [guessed] 1557 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1558 _ACEOF 1559 fi 1560 1561 if test -n "$ac_init_help"; then 1562 1563 cat <<\_ACEOF 1564 1565 Optional Features: 1566 --disable-option-checking ignore unrecognized --enable/--with options 1567 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1568 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1569 --enable-maintainer-mode enable makefile rules useful for maintainers 1570 --enable-symlink-install use symlinks when installing instead of hard links 1571 --enable-relative-symlinks use relative symlinks when installing 1572 1573 --enable-symlink-build use symlinks while building instead of hard links 1574 --enable-verbose-makecmds enable verbose make command output 1575 --enable-elf-shlibs select ELF shared libraries 1576 --enable-bsd-shlibs select BSD shared libraries 1577 --enable-profile build profiling libraries 1578 --enable-gcov build for coverage testing using gcov 1579 --enable-hardening build for coverage testing using gcov 1580 --enable-jbd-debug enable journal debugging 1581 --enable-blkid-debug enable blkid debugging 1582 --disable-testio-debug disable the use of the test I/O manager for debugging 1583 --enable-libuuid build and use private uuid library 1584 --enable-libblkid build and use private blkid library 1585 --enable-subset enable subset-only build 1586 --disable-backtrace disable use backtrace 1587 --disable-debugfs disable support of debugfs program 1588 --disable-imager disable support of e2image program 1589 --disable-resizer disable support of e2resize program 1590 --disable-defrag disable support of e4defrag program 1591 --enable-fsck build fsck wrapper program 1592 --enable-e2initrd-helper build e2initrd-helper program 1593 --disable-tls disable use of thread local support 1594 --disable-uuidd disable building the uuid daemon 1595 --disable-mmp disable support mmp, Multi Mount Protection 1596 --disable-tdb disable tdb support 1597 --disable-bmap-stats disable collection of bitmap stats. 1598 --enable-bmap-stats-ops enable collection of additional bitmap stats 1599 --disable-nls do not use Native Language Support 1600 --enable-threads={posix|solaris|pth|windows} 1601 specify multithreading API 1602 --disable-threads build without multithread safety 1603 --disable-rpath do not hardcode runtime library paths 1604 --disable-fuse2fs do not build fuse2fs 1605 --enable-lto enable link time optimization 1606 --enable-ubsan enable undefined behavior sanitizer 1607 --enable-addrsan enable address sanitizer 1608 --enable-threadsan enable thread sanitizer 1609 1610 Optional Packages: 1611 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1612 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1613 --with-diet-libc use diet libc 1614 --with-cc no longer supported, use CC= instead 1615 --with-ccopts no longer supported, use CFLAGS= instead 1616 --with-ldopts no longer supported, use LDFLAGS= instead 1617 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root 1618 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1619 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib 1620 --without-libpth-prefix don't search for libpth in includedir and libdir 1621 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1622 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1623 --with-included-gettext use the GNU gettext library included here 1624 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1625 --without-libintl-prefix don't search for libintl in includedir and libdir 1626 --with-multiarch=ARCH specify the multiarch triplet 1627 --with-udev-rules-dir[=DIR] 1628 Install udev rules into DIR. 1629 --with-crond-dir[=DIR] Install system crontabs into DIR. 1630 --with-systemd-unit-dir[=DIR] 1631 Install systemd system units into DIR. 1632 1633 Some influential environment variables: 1634 CC C compiler command 1635 CFLAGS C compiler flags 1636 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1637 nonstandard directory <lib dir> 1638 LIBS libraries to pass to the linker, e.g. -l<library> 1639 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1640 you have headers in a nonstandard directory <include dir> 1641 CPP C preprocessor 1642 PKG_CONFIG path to pkg-config utility 1643 PKG_CONFIG_PATH 1644 directories to add to pkg-config's search path 1645 PKG_CONFIG_LIBDIR 1646 path overriding pkg-config's built-in search path 1647 udev_CFLAGS C compiler flags for udev, overriding pkg-config 1648 udev_LIBS linker flags for udev, overriding pkg-config 1649 systemd_CFLAGS 1650 C compiler flags for systemd, overriding pkg-config 1651 systemd_LIBS 1652 linker flags for systemd, overriding pkg-config 1653 1654 Use these variables to override the choices made by `configure' or to help 1655 it to find libraries and programs with nonstandard names/locations. 1656 1657 Report bugs to the package provider. 1658 _ACEOF 1659 ac_status=$? 1660 fi 1661 1662 if test "$ac_init_help" = "recursive"; then 1663 # If there are subdirs, report their specific --help. 1664 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1665 test -d "$ac_dir" || 1666 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1667 continue 1668 ac_builddir=. 1669 1670 case "$ac_dir" in 1671 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1672 *) 1673 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1674 # A ".." for each directory in $ac_dir_suffix. 1675 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1676 case $ac_top_builddir_sub in 1677 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1678 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1679 esac ;; 1680 esac 1681 ac_abs_top_builddir=$ac_pwd 1682 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1683 # for backward compatibility: 1684 ac_top_builddir=$ac_top_build_prefix 1685 1686 case $srcdir in 1687 .) # We are building in place. 1688 ac_srcdir=. 1689 ac_top_srcdir=$ac_top_builddir_sub 1690 ac_abs_top_srcdir=$ac_pwd ;; 1691 [\\/]* | ?:[\\/]* ) # Absolute name. 1692 ac_srcdir=$srcdir$ac_dir_suffix; 1693 ac_top_srcdir=$srcdir 1694 ac_abs_top_srcdir=$srcdir ;; 1695 *) # Relative name. 1696 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1697 ac_top_srcdir=$ac_top_build_prefix$srcdir 1698 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1699 esac 1700 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1701 1702 cd "$ac_dir" || { ac_status=$?; continue; } 1703 # Check for guested configure. 1704 if test -f "$ac_srcdir/configure.gnu"; then 1705 echo && 1706 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1707 elif test -f "$ac_srcdir/configure"; then 1708 echo && 1709 $SHELL "$ac_srcdir/configure" --help=recursive 1710 else 1711 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1712 fi || ac_status=$? 1713 cd "$ac_pwd" || { ac_status=$?; break; } 1714 done 1715 fi 1716 1717 test -n "$ac_init_help" && exit $ac_status 1718 if $ac_init_version; then 1719 cat <<\_ACEOF 1720 configure 1721 generated by GNU Autoconf 2.69 1722 1723 Copyright (C) 2012 Free Software Foundation, Inc. 1724 This configure script is free software; the Free Software Foundation 1725 gives unlimited permission to copy, distribute and modify it. 1726 _ACEOF 1727 exit 1728 fi 1729 1730 ## ------------------------ ## 1731 ## Autoconf initialization. ## 1732 ## ------------------------ ## 1733 1734 # ac_fn_c_try_compile LINENO 1735 # -------------------------- 1736 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1737 ac_fn_c_try_compile () 1738 { 1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1740 rm -f conftest.$ac_objext 1741 if { { ac_try="$ac_compile" 1742 case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745 esac 1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747 $as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_compile") 2>conftest.err 1749 ac_status=$? 1750 if test -s conftest.err; then 1751 grep -v '^ *+' conftest.err >conftest.er1 1752 cat conftest.er1 >&5 1753 mv -f conftest.er1 conftest.err 1754 fi 1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1756 test $ac_status = 0; } && { 1757 test -z "$ac_c_werror_flag" || 1758 test ! -s conftest.err 1759 } && test -s conftest.$ac_objext; then : 1760 ac_retval=0 1761 else 1762 $as_echo "$as_me: failed program was:" >&5 1763 sed 's/^/| /' conftest.$ac_ext >&5 1764 1765 ac_retval=1 1766 fi 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 as_fn_set_status $ac_retval 1769 1770 } # ac_fn_c_try_compile 1771 1772 # ac_fn_c_try_link LINENO 1773 # ----------------------- 1774 # Try to link conftest.$ac_ext, and return whether this succeeded. 1775 ac_fn_c_try_link () 1776 { 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 rm -f conftest.$ac_objext conftest$ac_exeext 1779 if { { ac_try="$ac_link" 1780 case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783 esac 1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785 $as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_link") 2>conftest.err 1787 ac_status=$? 1788 if test -s conftest.err; then 1789 grep -v '^ *+' conftest.err >conftest.er1 1790 cat conftest.er1 >&5 1791 mv -f conftest.er1 conftest.err 1792 fi 1793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1794 test $ac_status = 0; } && { 1795 test -z "$ac_c_werror_flag" || 1796 test ! -s conftest.err 1797 } && test -s conftest$ac_exeext && { 1798 test "$cross_compiling" = yes || 1799 test -x conftest$ac_exeext 1800 }; then : 1801 ac_retval=0 1802 else 1803 $as_echo "$as_me: failed program was:" >&5 1804 sed 's/^/| /' conftest.$ac_ext >&5 1805 1806 ac_retval=1 1807 fi 1808 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1809 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1810 # interfere with the next link command; also delete a directory that is 1811 # left behind by Apple's compiler. We do this before executing the actions. 1812 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1813 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1814 as_fn_set_status $ac_retval 1815 1816 } # ac_fn_c_try_link 1817 1818 # ac_fn_c_try_cpp LINENO 1819 # ---------------------- 1820 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1821 ac_fn_c_try_cpp () 1822 { 1823 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1824 if { { ac_try="$ac_cpp conftest.$ac_ext" 1825 case "(($ac_try" in 1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1827 *) ac_try_echo=$ac_try;; 1828 esac 1829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1830 $as_echo "$ac_try_echo"; } >&5 1831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1832 ac_status=$? 1833 if test -s conftest.err; then 1834 grep -v '^ *+' conftest.err >conftest.er1 1835 cat conftest.er1 >&5 1836 mv -f conftest.er1 conftest.err 1837 fi 1838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1839 test $ac_status = 0; } > conftest.i && { 1840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1841 test ! -s conftest.err 1842 }; then : 1843 ac_retval=0 1844 else 1845 $as_echo "$as_me: failed program was:" >&5 1846 sed 's/^/| /' conftest.$ac_ext >&5 1847 1848 ac_retval=1 1849 fi 1850 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1851 as_fn_set_status $ac_retval 1852 1853 } # ac_fn_c_try_cpp 1854 1855 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1856 # ------------------------------------------------------- 1857 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1858 # the include files in INCLUDES and setting the cache variable VAR 1859 # accordingly. 1860 ac_fn_c_check_header_mongrel () 1861 { 1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1863 if eval \${$3+:} false; then : 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1865 $as_echo_n "checking for $2... " >&6; } 1866 if eval \${$3+:} false; then : 1867 $as_echo_n "(cached) " >&6 1868 fi 1869 eval ac_res=\$$3 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1871 $as_echo "$ac_res" >&6; } 1872 else 1873 # Is the header compilable? 1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1875 $as_echo_n "checking $2 usability... " >&6; } 1876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1877 /* end confdefs.h. */ 1878 $4 1879 #include <$2> 1880 _ACEOF 1881 if ac_fn_c_try_compile "$LINENO"; then : 1882 ac_header_compiler=yes 1883 else 1884 ac_header_compiler=no 1885 fi 1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1888 $as_echo "$ac_header_compiler" >&6; } 1889 1890 # Is the header present? 1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1892 $as_echo_n "checking $2 presence... " >&6; } 1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1894 /* end confdefs.h. */ 1895 #include <$2> 1896 _ACEOF 1897 if ac_fn_c_try_cpp "$LINENO"; then : 1898 ac_header_preproc=yes 1899 else 1900 ac_header_preproc=no 1901 fi 1902 rm -f conftest.err conftest.i conftest.$ac_ext 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1904 $as_echo "$ac_header_preproc" >&6; } 1905 1906 # So? What about this header? 1907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1908 yes:no: ) 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1910 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1913 ;; 1914 no:yes:* ) 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1916 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1918 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1920 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1922 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1924 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1925 ;; 1926 esac 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1928 $as_echo_n "checking for $2... " >&6; } 1929 if eval \${$3+:} false; then : 1930 $as_echo_n "(cached) " >&6 1931 else 1932 eval "$3=\$ac_header_compiler" 1933 fi 1934 eval ac_res=\$$3 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1936 $as_echo "$ac_res" >&6; } 1937 fi 1938 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1939 1940 } # ac_fn_c_check_header_mongrel 1941 1942 # ac_fn_c_try_run LINENO 1943 # ---------------------- 1944 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1945 # that executables *can* be run. 1946 ac_fn_c_try_run () 1947 { 1948 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1949 if { { ac_try="$ac_link" 1950 case "(($ac_try" in 1951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1952 *) ac_try_echo=$ac_try;; 1953 esac 1954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1955 $as_echo "$ac_try_echo"; } >&5 1956 (eval "$ac_link") 2>&5 1957 ac_status=$? 1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1959 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1960 { { case "(($ac_try" in 1961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1962 *) ac_try_echo=$ac_try;; 1963 esac 1964 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1965 $as_echo "$ac_try_echo"; } >&5 1966 (eval "$ac_try") 2>&5 1967 ac_status=$? 1968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1969 test $ac_status = 0; }; }; then : 1970 ac_retval=0 1971 else 1972 $as_echo "$as_me: program exited with status $ac_status" >&5 1973 $as_echo "$as_me: failed program was:" >&5 1974 sed 's/^/| /' conftest.$ac_ext >&5 1975 1976 ac_retval=$ac_status 1977 fi 1978 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1979 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1980 as_fn_set_status $ac_retval 1981 1982 } # ac_fn_c_try_run 1983 1984 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1985 # ------------------------------------------------------- 1986 # Tests whether HEADER exists and can be compiled using the include files in 1987 # INCLUDES, setting the cache variable VAR accordingly. 1988 ac_fn_c_check_header_compile () 1989 { 1990 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1992 $as_echo_n "checking for $2... " >&6; } 1993 if eval \${$3+:} false; then : 1994 $as_echo_n "(cached) " >&6 1995 else 1996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1997 /* end confdefs.h. */ 1998 $4 1999 #include <$2> 2000 _ACEOF 2001 if ac_fn_c_try_compile "$LINENO"; then : 2002 eval "$3=yes" 2003 else 2004 eval "$3=no" 2005 fi 2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2007 fi 2008 eval ac_res=\$$3 2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2010 $as_echo "$ac_res" >&6; } 2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2012 2013 } # ac_fn_c_check_header_compile 2014 2015 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2016 # ------------------------------------------- 2017 # Tests whether TYPE exists after having included INCLUDES, setting cache 2018 # variable VAR accordingly. 2019 ac_fn_c_check_type () 2020 { 2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2023 $as_echo_n "checking for $2... " >&6; } 2024 if eval \${$3+:} false; then : 2025 $as_echo_n "(cached) " >&6 2026 else 2027 eval "$3=no" 2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2029 /* end confdefs.h. */ 2030 $4 2031 int 2032 main () 2033 { 2034 if (sizeof ($2)) 2035 return 0; 2036 ; 2037 return 0; 2038 } 2039 _ACEOF 2040 if ac_fn_c_try_compile "$LINENO"; then : 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042 /* end confdefs.h. */ 2043 $4 2044 int 2045 main () 2046 { 2047 if (sizeof (($2))) 2048 return 0; 2049 ; 2050 return 0; 2051 } 2052 _ACEOF 2053 if ac_fn_c_try_compile "$LINENO"; then : 2054 2055 else 2056 eval "$3=yes" 2057 fi 2058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2059 fi 2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2061 fi 2062 eval ac_res=\$$3 2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2064 $as_echo "$ac_res" >&6; } 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2066 2067 } # ac_fn_c_check_type 2068 2069 # ac_fn_c_check_func LINENO FUNC VAR 2070 # ---------------------------------- 2071 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2072 ac_fn_c_check_func () 2073 { 2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2076 $as_echo_n "checking for $2... " >&6; } 2077 if eval \${$3+:} false; then : 2078 $as_echo_n "(cached) " >&6 2079 else 2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2081 /* end confdefs.h. */ 2082 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2083 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2084 #define $2 innocuous_$2 2085 2086 /* System header to define __stub macros and hopefully few prototypes, 2087 which can conflict with char $2 (); below. 2088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2089 <limits.h> exists even on freestanding compilers. */ 2090 2091 #ifdef __STDC__ 2092 # include <limits.h> 2093 #else 2094 # include <assert.h> 2095 #endif 2096 2097 #undef $2 2098 2099 /* Override any GCC internal prototype to avoid an error. 2100 Use char because int might match the return type of a GCC 2101 builtin and then its argument prototype would still apply. */ 2102 #ifdef __cplusplus 2103 extern "C" 2104 #endif 2105 char $2 (); 2106 /* The GNU C library defines this for functions which it implements 2107 to always fail with ENOSYS. Some functions are actually named 2108 something starting with __ and the normal name is an alias. */ 2109 #if defined __stub_$2 || defined __stub___$2 2110 choke me 2111 #endif 2112 2113 int 2114 main () 2115 { 2116 return $2 (); 2117 ; 2118 return 0; 2119 } 2120 _ACEOF 2121 if ac_fn_c_try_link "$LINENO"; then : 2122 eval "$3=yes" 2123 else 2124 eval "$3=no" 2125 fi 2126 rm -f core conftest.err conftest.$ac_objext \ 2127 conftest$ac_exeext conftest.$ac_ext 2128 fi 2129 eval ac_res=\$$3 2130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2131 $as_echo "$ac_res" >&6; } 2132 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2133 2134 } # ac_fn_c_check_func 2135 2136 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 2137 # --------------------------------------------- 2138 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 2139 # accordingly. 2140 ac_fn_c_check_decl () 2141 { 2142 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2143 as_decl_name=`echo $2|sed 's/ *(.*//'` 2144 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 2145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 2146 $as_echo_n "checking whether $as_decl_name is declared... " >&6; } 2147 if eval \${$3+:} false; then : 2148 $as_echo_n "(cached) " >&6 2149 else 2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2151 /* end confdefs.h. */ 2152 $4 2153 int 2154 main () 2155 { 2156 #ifndef $as_decl_name 2157 #ifdef __cplusplus 2158 (void) $as_decl_use; 2159 #else 2160 (void) $as_decl_name; 2161 #endif 2162 #endif 2163 2164 ; 2165 return 0; 2166 } 2167 _ACEOF 2168 if ac_fn_c_try_compile "$LINENO"; then : 2169 eval "$3=yes" 2170 else 2171 eval "$3=no" 2172 fi 2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2174 fi 2175 eval ac_res=\$$3 2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2177 $as_echo "$ac_res" >&6; } 2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2179 2180 } # ac_fn_c_check_decl 2181 2182 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2183 # -------------------------------------------- 2184 # Tries to find the compile-time value of EXPR in a program that includes 2185 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2186 # computed 2187 ac_fn_c_compute_int () 2188 { 2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2190 if test "$cross_compiling" = yes; then 2191 # Depending upon the size, compute the lo and hi bounds. 2192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2193 /* end confdefs.h. */ 2194 $4 2195 int 2196 main () 2197 { 2198 static int test_array [1 - 2 * !(($2) >= 0)]; 2199 test_array [0] = 0; 2200 return test_array [0]; 2201 2202 ; 2203 return 0; 2204 } 2205 _ACEOF 2206 if ac_fn_c_try_compile "$LINENO"; then : 2207 ac_lo=0 ac_mid=0 2208 while :; do 2209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2210 /* end confdefs.h. */ 2211 $4 2212 int 2213 main () 2214 { 2215 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2216 test_array [0] = 0; 2217 return test_array [0]; 2218 2219 ; 2220 return 0; 2221 } 2222 _ACEOF 2223 if ac_fn_c_try_compile "$LINENO"; then : 2224 ac_hi=$ac_mid; break 2225 else 2226 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2227 if test $ac_lo -le $ac_mid; then 2228 ac_lo= ac_hi= 2229 break 2230 fi 2231 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2232 fi 2233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2234 done 2235 else 2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2237 /* end confdefs.h. */ 2238 $4 2239 int 2240 main () 2241 { 2242 static int test_array [1 - 2 * !(($2) < 0)]; 2243 test_array [0] = 0; 2244 return test_array [0]; 2245 2246 ; 2247 return 0; 2248 } 2249 _ACEOF 2250 if ac_fn_c_try_compile "$LINENO"; then : 2251 ac_hi=-1 ac_mid=-1 2252 while :; do 2253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2254 /* end confdefs.h. */ 2255 $4 2256 int 2257 main () 2258 { 2259 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2260 test_array [0] = 0; 2261 return test_array [0]; 2262 2263 ; 2264 return 0; 2265 } 2266 _ACEOF 2267 if ac_fn_c_try_compile "$LINENO"; then : 2268 ac_lo=$ac_mid; break 2269 else 2270 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2271 if test $ac_mid -le $ac_hi; then 2272 ac_lo= ac_hi= 2273 break 2274 fi 2275 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2276 fi 2277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2278 done 2279 else 2280 ac_lo= ac_hi= 2281 fi 2282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2283 fi 2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2285 # Binary search between lo and hi bounds. 2286 while test "x$ac_lo" != "x$ac_hi"; do 2287 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2289 /* end confdefs.h. */ 2290 $4 2291 int 2292 main () 2293 { 2294 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2295 test_array [0] = 0; 2296 return test_array [0]; 2297 2298 ; 2299 return 0; 2300 } 2301 _ACEOF 2302 if ac_fn_c_try_compile "$LINENO"; then : 2303 ac_hi=$ac_mid 2304 else 2305 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2306 fi 2307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2308 done 2309 case $ac_lo in #(( 2310 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2311 '') ac_retval=1 ;; 2312 esac 2313 else 2314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2315 /* end confdefs.h. */ 2316 $4 2317 static long int longval () { return $2; } 2318 static unsigned long int ulongval () { return $2; } 2319 #include <stdio.h> 2320 #include <stdlib.h> 2321 int 2322 main () 2323 { 2324 2325 FILE *f = fopen ("conftest.val", "w"); 2326 if (! f) 2327 return 1; 2328 if (($2) < 0) 2329 { 2330 long int i = longval (); 2331 if (i != ($2)) 2332 return 1; 2333 fprintf (f, "%ld", i); 2334 } 2335 else 2336 { 2337 unsigned long int i = ulongval (); 2338 if (i != ($2)) 2339 return 1; 2340 fprintf (f, "%lu", i); 2341 } 2342 /* Do not output a trailing newline, as this causes \r\n confusion 2343 on some platforms. */ 2344 return ferror (f) || fclose (f) != 0; 2345 2346 ; 2347 return 0; 2348 } 2349 _ACEOF 2350 if ac_fn_c_try_run "$LINENO"; then : 2351 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2352 else 2353 ac_retval=1 2354 fi 2355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2356 conftest.$ac_objext conftest.beam conftest.$ac_ext 2357 rm -f conftest.val 2358 2359 fi 2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2361 as_fn_set_status $ac_retval 2362 2363 } # ac_fn_c_compute_int 2364 2365 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2366 # ---------------------------------------------------- 2367 # Tries to find if the field MEMBER exists in type AGGR, after including 2368 # INCLUDES, setting cache variable VAR accordingly. 2369 ac_fn_c_check_member () 2370 { 2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2373 $as_echo_n "checking for $2.$3... " >&6; } 2374 if eval \${$4+:} false; then : 2375 $as_echo_n "(cached) " >&6 2376 else 2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2378 /* end confdefs.h. */ 2379 $5 2380 int 2381 main () 2382 { 2383 static $2 ac_aggr; 2384 if (ac_aggr.$3) 2385 return 0; 2386 ; 2387 return 0; 2388 } 2389 _ACEOF 2390 if ac_fn_c_try_compile "$LINENO"; then : 2391 eval "$4=yes" 2392 else 2393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2394 /* end confdefs.h. */ 2395 $5 2396 int 2397 main () 2398 { 2399 static $2 ac_aggr; 2400 if (sizeof ac_aggr.$3) 2401 return 0; 2402 ; 2403 return 0; 2404 } 2405 _ACEOF 2406 if ac_fn_c_try_compile "$LINENO"; then : 2407 eval "$4=yes" 2408 else 2409 eval "$4=no" 2410 fi 2411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2412 fi 2413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2414 fi 2415 eval ac_res=\$$4 2416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2417 $as_echo "$ac_res" >&6; } 2418 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2419 2420 } # ac_fn_c_check_member 2421 cat >config.log <<_ACEOF 2422 This file contains any messages produced by compilers while 2423 running configure, to aid debugging if configure makes a mistake. 2424 2425 It was created by $as_me, which was 2426 generated by GNU Autoconf 2.69. Invocation command line was 2427 2428 $ $0 $@ 2429 2430 _ACEOF 2431 exec 5>>config.log 2432 { 2433 cat <<_ASUNAME 2434 ## --------- ## 2435 ## Platform. ## 2436 ## --------- ## 2437 2438 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2439 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2440 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2441 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2442 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2443 2444 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2445 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2446 2447 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2448 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2449 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2450 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2451 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2452 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2453 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2454 2455 _ASUNAME 2456 2457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2458 for as_dir in $PATH 2459 do 2460 IFS=$as_save_IFS 2461 test -z "$as_dir" && as_dir=. 2462 $as_echo "PATH: $as_dir" 2463 done 2464 IFS=$as_save_IFS 2465 2466 } >&5 2467 2468 cat >&5 <<_ACEOF 2469 2470 2471 ## ----------- ## 2472 ## Core tests. ## 2473 ## ----------- ## 2474 2475 _ACEOF 2476 2477 2478 # Keep a trace of the command line. 2479 # Strip out --no-create and --no-recursion so they do not pile up. 2480 # Strip out --silent because we don't want to record it for future runs. 2481 # Also quote any args containing shell meta-characters. 2482 # Make two passes to allow for proper duplicate-argument suppression. 2483 ac_configure_args= 2484 ac_configure_args0= 2485 ac_configure_args1= 2486 ac_must_keep_next=false 2487 for ac_pass in 1 2 2488 do 2489 for ac_arg 2490 do 2491 case $ac_arg in 2492 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2493 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2494 | -silent | --silent | --silen | --sile | --sil) 2495 continue ;; 2496 *\'*) 2497 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2498 esac 2499 case $ac_pass in 2500 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2501 2) 2502 as_fn_append ac_configure_args1 " '$ac_arg'" 2503 if test $ac_must_keep_next = true; then 2504 ac_must_keep_next=false # Got value, back to normal. 2505 else 2506 case $ac_arg in 2507 *=* | --config-cache | -C | -disable-* | --disable-* \ 2508 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2509 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2510 | -with-* | --with-* | -without-* | --without-* | --x) 2511 case "$ac_configure_args0 " in 2512 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2513 esac 2514 ;; 2515 -* ) ac_must_keep_next=true ;; 2516 esac 2517 fi 2518 as_fn_append ac_configure_args " '$ac_arg'" 2519 ;; 2520 esac 2521 done 2522 done 2523 { ac_configure_args0=; unset ac_configure_args0;} 2524 { ac_configure_args1=; unset ac_configure_args1;} 2525 2526 # When interrupted or exit'd, cleanup temporary files, and complete 2527 # config.log. We remove comments because anyway the quotes in there 2528 # would cause problems or look ugly. 2529 # WARNING: Use '\'' to represent an apostrophe within the trap. 2530 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2531 trap 'exit_status=$? 2532 # Save into config.log some information that might help in debugging. 2533 { 2534 echo 2535 2536 $as_echo "## ---------------- ## 2537 ## Cache variables. ## 2538 ## ---------------- ##" 2539 echo 2540 # The following way of writing the cache mishandles newlines in values, 2541 ( 2542 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2543 eval ac_val=\$$ac_var 2544 case $ac_val in #( 2545 *${as_nl}*) 2546 case $ac_var in #( 2547 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2548 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2549 esac 2550 case $ac_var in #( 2551 _ | IFS | as_nl) ;; #( 2552 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2553 *) { eval $ac_var=; unset $ac_var;} ;; 2554 esac ;; 2555 esac 2556 done 2557 (set) 2>&1 | 2558 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2559 *${as_nl}ac_space=\ *) 2560 sed -n \ 2561 "s/'\''/'\''\\\\'\'''\''/g; 2562 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2563 ;; #( 2564 *) 2565 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2566 ;; 2567 esac | 2568 sort 2569 ) 2570 echo 2571 2572 $as_echo "## ----------------- ## 2573 ## Output variables. ## 2574 ## ----------------- ##" 2575 echo 2576 for ac_var in $ac_subst_vars 2577 do 2578 eval ac_val=\$$ac_var 2579 case $ac_val in 2580 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2581 esac 2582 $as_echo "$ac_var='\''$ac_val'\''" 2583 done | sort 2584 echo 2585 2586 if test -n "$ac_subst_files"; then 2587 $as_echo "## ------------------- ## 2588 ## File substitutions. ## 2589 ## ------------------- ##" 2590 echo 2591 for ac_var in $ac_subst_files 2592 do 2593 eval ac_val=\$$ac_var 2594 case $ac_val in 2595 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2596 esac 2597 $as_echo "$ac_var='\''$ac_val'\''" 2598 done | sort 2599 echo 2600 fi 2601 2602 if test -s confdefs.h; then 2603 $as_echo "## ----------- ## 2604 ## confdefs.h. ## 2605 ## ----------- ##" 2606 echo 2607 cat confdefs.h 2608 echo 2609 fi 2610 test "$ac_signal" != 0 && 2611 $as_echo "$as_me: caught signal $ac_signal" 2612 $as_echo "$as_me: exit $exit_status" 2613 } >&5 2614 rm -f core *.core core.conftest.* && 2615 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2616 exit $exit_status 2617 ' 0 2618 for ac_signal in 1 2 13 15; do 2619 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2620 done 2621 ac_signal=0 2622 2623 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2624 rm -f -r conftest* confdefs.h 2625 2626 $as_echo "/* confdefs.h */" > confdefs.h 2627 2628 # Predefined preprocessor variables. 2629 2630 cat >>confdefs.h <<_ACEOF 2631 #define PACKAGE_NAME "$PACKAGE_NAME" 2632 _ACEOF 2633 2634 cat >>confdefs.h <<_ACEOF 2635 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2636 _ACEOF 2637 2638 cat >>confdefs.h <<_ACEOF 2639 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2640 _ACEOF 2641 2642 cat >>confdefs.h <<_ACEOF 2643 #define PACKAGE_STRING "$PACKAGE_STRING" 2644 _ACEOF 2645 2646 cat >>confdefs.h <<_ACEOF 2647 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2648 _ACEOF 2649 2650 cat >>confdefs.h <<_ACEOF 2651 #define PACKAGE_URL "$PACKAGE_URL" 2652 _ACEOF 2653 2654 2655 # Let the site file select an alternate cache file if it wants to. 2656 # Prefer an explicitly selected file to automatically selected ones. 2657 ac_site_file1=NONE 2658 ac_site_file2=NONE 2659 if test -n "$CONFIG_SITE"; then 2660 # We do not want a PATH search for config.site. 2661 case $CONFIG_SITE in #(( 2662 -*) ac_site_file1=./$CONFIG_SITE;; 2663 */*) ac_site_file1=$CONFIG_SITE;; 2664 *) ac_site_file1=./$CONFIG_SITE;; 2665 esac 2666 elif test "x$prefix" != xNONE; then 2667 ac_site_file1=$prefix/share/config.site 2668 ac_site_file2=$prefix/etc/config.site 2669 else 2670 ac_site_file1=$ac_default_prefix/share/config.site 2671 ac_site_file2=$ac_default_prefix/etc/config.site 2672 fi 2673 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2674 do 2675 test "x$ac_site_file" = xNONE && continue 2676 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2677 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2678 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2679 sed 's/^/| /' "$ac_site_file" >&5 2680 . "$ac_site_file" \ 2681 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2683 as_fn_error $? "failed to load site script $ac_site_file 2684 See \`config.log' for more details" "$LINENO" 5; } 2685 fi 2686 done 2687 2688 if test -r "$cache_file"; then 2689 # Some versions of bash will fail to source /dev/null (special files 2690 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2691 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2693 $as_echo "$as_me: loading cache $cache_file" >&6;} 2694 case $cache_file in 2695 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2696 *) . "./$cache_file";; 2697 esac 2698 fi 2699 else 2700 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2701 $as_echo "$as_me: creating cache $cache_file" >&6;} 2702 >$cache_file 2703 fi 2704 2705 gt_needs="$gt_needs " 2706 as_fn_append ac_header_list " stdlib.h" 2707 as_fn_append ac_header_list " unistd.h" 2708 as_fn_append ac_header_list " sys/param.h" 2709 as_fn_append ac_func_list " symlink" 2710 # Check that the precious variables saved in the cache have kept the same 2711 # value. 2712 ac_cache_corrupted=false 2713 for ac_var in $ac_precious_vars; do 2714 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2715 eval ac_new_set=\$ac_env_${ac_var}_set 2716 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2717 eval ac_new_val=\$ac_env_${ac_var}_value 2718 case $ac_old_set,$ac_new_set in 2719 set,) 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2721 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2722 ac_cache_corrupted=: ;; 2723 ,set) 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2725 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2726 ac_cache_corrupted=: ;; 2727 ,);; 2728 *) 2729 if test "x$ac_old_val" != "x$ac_new_val"; then 2730 # differences in whitespace do not lead to failure. 2731 ac_old_val_w=`echo x $ac_old_val` 2732 ac_new_val_w=`echo x $ac_new_val` 2733 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2735 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2736 ac_cache_corrupted=: 2737 else 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2739 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2740 eval $ac_var=\$ac_old_val 2741 fi 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2743 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2744 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2745 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2746 fi;; 2747 esac 2748 # Pass precious variables to config.status. 2749 if test "$ac_new_set" = set; then 2750 case $ac_new_val in 2751 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2752 *) ac_arg=$ac_var=$ac_new_val ;; 2753 esac 2754 case " $ac_configure_args " in 2755 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2756 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2757 esac 2758 fi 2759 done 2760 if $ac_cache_corrupted; then 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2762 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2764 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2765 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2766 fi 2767 ## -------------------- ## 2768 ## Main body of script. ## 2769 ## -------------------- ## 2770 2771 ac_ext=c 2772 ac_cpp='$CPP $CPPFLAGS' 2773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2775 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2776 2777 2778 2779 ac_aux_dir= 2780 for ac_dir in config "$srcdir"/config; do 2781 if test -f "$ac_dir/install-sh"; then 2782 ac_aux_dir=$ac_dir 2783 ac_install_sh="$ac_aux_dir/install-sh -c" 2784 break 2785 elif test -f "$ac_dir/install.sh"; then 2786 ac_aux_dir=$ac_dir 2787 ac_install_sh="$ac_aux_dir/install.sh -c" 2788 break 2789 elif test -f "$ac_dir/shtool"; then 2790 ac_aux_dir=$ac_dir 2791 ac_install_sh="$ac_aux_dir/shtool install -c" 2792 break 2793 fi 2794 done 2795 if test -z "$ac_aux_dir"; then 2796 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2797 fi 2798 2799 # These three variables are undocumented and unsupported, 2800 # and are intended to be withdrawn in a future Autoconf release. 2801 # They can cause serious problems if a builder's source tree is in a directory 2802 # whose full name contains unusual characters. 2803 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2804 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2805 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2806 2807 2808 ac_config_headers="$ac_config_headers lib/config.h" 2809 2810 2811 MCONFIG=./MCONFIG 2812 2813 BINARY_TYPE=bin 2814 E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ 2815 | awk '{print $3}' | tr \" " " | awk '{print $1}'` 2816 E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ 2817 | tr \" " " | awk '{print $1}'` 2818 E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/') 2819 MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'` 2820 YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'` 2821 2822 if expr $YEAR ">" 1900 > /dev/null ; then 2823 E2FSPROGS_YEAR=$YEAR 2824 elif expr $YEAR ">" 90 >/dev/null ; then 2825 E2FSPROGS_YEAR=19$YEAR 2826 else 2827 E2FSPROGS_YEAR=20$YEAR 2828 fi 2829 2830 case $MONTH in 2831 Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; 2832 Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; 2833 Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; 2834 Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; 2835 May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; 2836 Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; 2837 Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; 2838 Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; 2839 Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; 2840 Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; 2841 Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; 2842 Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; 2843 *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 2844 $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; 2845 esac 2846 2847 base_ver=`echo $E2FSPROGS_VERSION | \ 2848 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` 2849 2850 date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} 2851 2852 case $E2FSPROGS_VERSION in 2853 *-WIP|pre-*) 2854 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec" 2855 ;; 2856 *) 2857 E2FSPROGS_PKGVER="$base_ver" 2858 ;; 2859 esac 2860 2861 unset DATE MONTH YEAR base_ver pre_vers date_spec 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 2863 $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 2865 $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } 2866 2867 2868 2869 2870 2871 2872 WITH_DIET_LIBC= 2873 2874 # Check whether --with-diet-libc was given. 2875 if test "${with_diet_libc+set}" = set; then : 2876 withval=$with_diet_libc; CC="diet cc -nostdinc" 2877 WITH_DIET_LIBC=yes 2878 if test -z "$LIBS" 2879 then 2880 LIBS="-lcompat" 2881 else 2882 LIBS="$LIBS -lcompat" 2883 fi 2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 2885 $as_echo "CC=$CC" >&6; } 2886 fi 2887 # Make sure we can run config.sub. 2888 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2889 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2890 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2892 $as_echo_n "checking build system type... " >&6; } 2893 if ${ac_cv_build+:} false; then : 2894 $as_echo_n "(cached) " >&6 2895 else 2896 ac_build_alias=$build_alias 2897 test "x$ac_build_alias" = x && 2898 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2899 test "x$ac_build_alias" = x && 2900 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2901 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2902 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2903 2904 fi 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2906 $as_echo "$ac_cv_build" >&6; } 2907 case $ac_cv_build in 2908 *-*-*) ;; 2909 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2910 esac 2911 build=$ac_cv_build 2912 ac_save_IFS=$IFS; IFS='-' 2913 set x $ac_cv_build 2914 shift 2915 build_cpu=$1 2916 build_vendor=$2 2917 shift; shift 2918 # Remember, the first character of IFS is used to create $*, 2919 # except with old shells: 2920 build_os=$* 2921 IFS=$ac_save_IFS 2922 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2923 2924 2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2926 $as_echo_n "checking host system type... " >&6; } 2927 if ${ac_cv_host+:} false; then : 2928 $as_echo_n "(cached) " >&6 2929 else 2930 if test "x$host_alias" = x; then 2931 ac_cv_host=$ac_cv_build 2932 else 2933 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2934 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2935 fi 2936 2937 fi 2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2939 $as_echo "$ac_cv_host" >&6; } 2940 case $ac_cv_host in 2941 *-*-*) ;; 2942 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2943 esac 2944 host=$ac_cv_host 2945 ac_save_IFS=$IFS; IFS='-' 2946 set x $ac_cv_host 2947 shift 2948 host_cpu=$1 2949 host_vendor=$2 2950 shift; shift 2951 # Remember, the first character of IFS is used to create $*, 2952 # except with old shells: 2953 host_os=$* 2954 IFS=$ac_save_IFS 2955 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2956 2957 2958 DLOPEN_LIB='' 2959 ac_ext=c 2960 ac_cpp='$CPP $CPPFLAGS' 2961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2963 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2964 if test -n "$ac_tool_prefix"; then 2965 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2966 set dummy ${ac_tool_prefix}gcc; ac_word=$2 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2968 $as_echo_n "checking for $ac_word... " >&6; } 2969 if ${ac_cv_prog_CC+:} false; then : 2970 $as_echo_n "(cached) " >&6 2971 else 2972 if test -n "$CC"; then 2973 ac_cv_prog_CC="$CC" # Let the user override the test. 2974 else 2975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2976 for as_dir in $PATH 2977 do 2978 IFS=$as_save_IFS 2979 test -z "$as_dir" && as_dir=. 2980 for ac_exec_ext in '' $ac_executable_extensions; do 2981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2982 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2984 break 2 2985 fi 2986 done 2987 done 2988 IFS=$as_save_IFS 2989 2990 fi 2991 fi 2992 CC=$ac_cv_prog_CC 2993 if test -n "$CC"; then 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2995 $as_echo "$CC" >&6; } 2996 else 2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2998 $as_echo "no" >&6; } 2999 fi 3000 3001 3002 fi 3003 if test -z "$ac_cv_prog_CC"; then 3004 ac_ct_CC=$CC 3005 # Extract the first word of "gcc", so it can be a program name with args. 3006 set dummy gcc; ac_word=$2 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3008 $as_echo_n "checking for $ac_word... " >&6; } 3009 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3010 $as_echo_n "(cached) " >&6 3011 else 3012 if test -n "$ac_ct_CC"; then 3013 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3014 else 3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3016 for as_dir in $PATH 3017 do 3018 IFS=$as_save_IFS 3019 test -z "$as_dir" && as_dir=. 3020 for ac_exec_ext in '' $ac_executable_extensions; do 3021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3022 ac_cv_prog_ac_ct_CC="gcc" 3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3024 break 2 3025 fi 3026 done 3027 done 3028 IFS=$as_save_IFS 3029 3030 fi 3031 fi 3032 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3033 if test -n "$ac_ct_CC"; then 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3035 $as_echo "$ac_ct_CC" >&6; } 3036 else 3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3038 $as_echo "no" >&6; } 3039 fi 3040 3041 if test "x$ac_ct_CC" = x; then 3042 CC="" 3043 else 3044 case $cross_compiling:$ac_tool_warned in 3045 yes:) 3046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3048 ac_tool_warned=yes ;; 3049 esac 3050 CC=$ac_ct_CC 3051 fi 3052 else 3053 CC="$ac_cv_prog_CC" 3054 fi 3055 3056 if test -z "$CC"; then 3057 if test -n "$ac_tool_prefix"; then 3058 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3059 set dummy ${ac_tool_prefix}cc; ac_word=$2 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3061 $as_echo_n "checking for $ac_word... " >&6; } 3062 if ${ac_cv_prog_CC+:} false; then : 3063 $as_echo_n "(cached) " >&6 3064 else 3065 if test -n "$CC"; then 3066 ac_cv_prog_CC="$CC" # Let the user override the test. 3067 else 3068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3069 for as_dir in $PATH 3070 do 3071 IFS=$as_save_IFS 3072 test -z "$as_dir" && as_dir=. 3073 for ac_exec_ext in '' $ac_executable_extensions; do 3074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3075 ac_cv_prog_CC="${ac_tool_prefix}cc" 3076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3077 break 2 3078 fi 3079 done 3080 done 3081 IFS=$as_save_IFS 3082 3083 fi 3084 fi 3085 CC=$ac_cv_prog_CC 3086 if test -n "$CC"; then 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3088 $as_echo "$CC" >&6; } 3089 else 3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3091 $as_echo "no" >&6; } 3092 fi 3093 3094 3095 fi 3096 fi 3097 if test -z "$CC"; then 3098 # Extract the first word of "cc", so it can be a program name with args. 3099 set dummy cc; ac_word=$2 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3101 $as_echo_n "checking for $ac_word... " >&6; } 3102 if ${ac_cv_prog_CC+:} false; then : 3103 $as_echo_n "(cached) " >&6 3104 else 3105 if test -n "$CC"; then 3106 ac_cv_prog_CC="$CC" # Let the user override the test. 3107 else 3108 ac_prog_rejected=no 3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3110 for as_dir in $PATH 3111 do 3112 IFS=$as_save_IFS 3113 test -z "$as_dir" && as_dir=. 3114 for ac_exec_ext in '' $ac_executable_extensions; do 3115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3116 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3117 ac_prog_rejected=yes 3118 continue 3119 fi 3120 ac_cv_prog_CC="cc" 3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3122 break 2 3123 fi 3124 done 3125 done 3126 IFS=$as_save_IFS 3127 3128 if test $ac_prog_rejected = yes; then 3129 # We found a bogon in the path, so make sure we never use it. 3130 set dummy $ac_cv_prog_CC 3131 shift 3132 if test $# != 0; then 3133 # We chose a different compiler from the bogus one. 3134 # However, it has the same basename, so the bogon will be chosen 3135 # first if we set CC to just the basename; use the full file name. 3136 shift 3137 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3138 fi 3139 fi 3140 fi 3141 fi 3142 CC=$ac_cv_prog_CC 3143 if test -n "$CC"; then 3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3145 $as_echo "$CC" >&6; } 3146 else 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3148 $as_echo "no" >&6; } 3149 fi 3150 3151 3152 fi 3153 if test -z "$CC"; then 3154 if test -n "$ac_tool_prefix"; then 3155 for ac_prog in cl.exe 3156 do 3157 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3158 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3160 $as_echo_n "checking for $ac_word... " >&6; } 3161 if ${ac_cv_prog_CC+:} false; then : 3162 $as_echo_n "(cached) " >&6 3163 else 3164 if test -n "$CC"; then 3165 ac_cv_prog_CC="$CC" # Let the user override the test. 3166 else 3167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3168 for as_dir in $PATH 3169 do 3170 IFS=$as_save_IFS 3171 test -z "$as_dir" && as_dir=. 3172 for ac_exec_ext in '' $ac_executable_extensions; do 3173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3174 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3176 break 2 3177 fi 3178 done 3179 done 3180 IFS=$as_save_IFS 3181 3182 fi 3183 fi 3184 CC=$ac_cv_prog_CC 3185 if test -n "$CC"; then 3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3187 $as_echo "$CC" >&6; } 3188 else 3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3190 $as_echo "no" >&6; } 3191 fi 3192 3193 3194 test -n "$CC" && break 3195 done 3196 fi 3197 if test -z "$CC"; then 3198 ac_ct_CC=$CC 3199 for ac_prog in cl.exe 3200 do 3201 # Extract the first word of "$ac_prog", so it can be a program name with args. 3202 set dummy $ac_prog; ac_word=$2 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3204 $as_echo_n "checking for $ac_word... " >&6; } 3205 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3206 $as_echo_n "(cached) " >&6 3207 else 3208 if test -n "$ac_ct_CC"; then 3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3210 else 3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3212 for as_dir in $PATH 3213 do 3214 IFS=$as_save_IFS 3215 test -z "$as_dir" && as_dir=. 3216 for ac_exec_ext in '' $ac_executable_extensions; do 3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3218 ac_cv_prog_ac_ct_CC="$ac_prog" 3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3220 break 2 3221 fi 3222 done 3223 done 3224 IFS=$as_save_IFS 3225 3226 fi 3227 fi 3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3229 if test -n "$ac_ct_CC"; then 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3231 $as_echo "$ac_ct_CC" >&6; } 3232 else 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3234 $as_echo "no" >&6; } 3235 fi 3236 3237 3238 test -n "$ac_ct_CC" && break 3239 done 3240 3241 if test "x$ac_ct_CC" = x; then 3242 CC="" 3243 else 3244 case $cross_compiling:$ac_tool_warned in 3245 yes:) 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3247 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3248 ac_tool_warned=yes ;; 3249 esac 3250 CC=$ac_ct_CC 3251 fi 3252 fi 3253 3254 fi 3255 3256 3257 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3259 as_fn_error $? "no acceptable C compiler found in \$PATH 3260 See \`config.log' for more details" "$LINENO" 5; } 3261 3262 # Provide some information about the compiler. 3263 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3264 set X $ac_compile 3265 ac_compiler=$2 3266 for ac_option in --version -v -V -qversion; do 3267 { { ac_try="$ac_compiler $ac_option >&5" 3268 case "(($ac_try" in 3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3270 *) ac_try_echo=$ac_try;; 3271 esac 3272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3273 $as_echo "$ac_try_echo"; } >&5 3274 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3275 ac_status=$? 3276 if test -s conftest.err; then 3277 sed '10a\ 3278 ... rest of stderr output deleted ... 3279 10q' conftest.err >conftest.er1 3280 cat conftest.er1 >&5 3281 fi 3282 rm -f conftest.er1 conftest.err 3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3284 test $ac_status = 0; } 3285 done 3286 3287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3288 /* end confdefs.h. */ 3289 3290 int 3291 main () 3292 { 3293 3294 ; 3295 return 0; 3296 } 3297 _ACEOF 3298 ac_clean_files_save=$ac_clean_files 3299 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3300 # Try to create an executable without -o first, disregard a.out. 3301 # It will help us diagnose broken compilers, and finding out an intuition 3302 # of exeext. 3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3304 $as_echo_n "checking whether the C compiler works... " >&6; } 3305 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3306 3307 # The possible output files: 3308 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3309 3310 ac_rmfiles= 3311 for ac_file in $ac_files 3312 do 3313 case $ac_file in 3314 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3315 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3316 esac 3317 done 3318 rm -f $ac_rmfiles 3319 3320 if { { ac_try="$ac_link_default" 3321 case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324 esac 3325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3326 $as_echo "$ac_try_echo"; } >&5 3327 (eval "$ac_link_default") 2>&5 3328 ac_status=$? 3329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3330 test $ac_status = 0; }; then : 3331 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3332 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3333 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3334 # so that the user can short-circuit this test for compilers unknown to 3335 # Autoconf. 3336 for ac_file in $ac_files '' 3337 do 3338 test -f "$ac_file" || continue 3339 case $ac_file in 3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3341 ;; 3342 [ab].out ) 3343 # We found the default executable, but exeext='' is most 3344 # certainly right. 3345 break;; 3346 *.* ) 3347 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3348 then :; else 3349 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3350 fi 3351 # We set ac_cv_exeext here because the later test for it is not 3352 # safe: cross compilers may not add the suffix if given an `-o' 3353 # argument, so we may need to know it at that point already. 3354 # Even if this section looks crufty: it has the advantage of 3355 # actually working. 3356 break;; 3357 * ) 3358 break;; 3359 esac 3360 done 3361 test "$ac_cv_exeext" = no && ac_cv_exeext= 3362 3363 else 3364 ac_file='' 3365 fi 3366 if test -z "$ac_file"; then : 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3368 $as_echo "no" >&6; } 3369 $as_echo "$as_me: failed program was:" >&5 3370 sed 's/^/| /' conftest.$ac_ext >&5 3371 3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3373 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3374 as_fn_error 77 "C compiler cannot create executables 3375 See \`config.log' for more details" "$LINENO" 5; } 3376 else 3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3378 $as_echo "yes" >&6; } 3379 fi 3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3381 $as_echo_n "checking for C compiler default output file name... " >&6; } 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3383 $as_echo "$ac_file" >&6; } 3384 ac_exeext=$ac_cv_exeext 3385 3386 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3387 ac_clean_files=$ac_clean_files_save 3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3389 $as_echo_n "checking for suffix of executables... " >&6; } 3390 if { { ac_try="$ac_link" 3391 case "(($ac_try" in 3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3393 *) ac_try_echo=$ac_try;; 3394 esac 3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3396 $as_echo "$ac_try_echo"; } >&5 3397 (eval "$ac_link") 2>&5 3398 ac_status=$? 3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3400 test $ac_status = 0; }; then : 3401 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3402 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3403 # work properly (i.e., refer to `conftest.exe'), while it won't with 3404 # `rm'. 3405 for ac_file in conftest.exe conftest conftest.*; do 3406 test -f "$ac_file" || continue 3407 case $ac_file in 3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3409 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3410 break;; 3411 * ) break;; 3412 esac 3413 done 3414 else 3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3417 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3418 See \`config.log' for more details" "$LINENO" 5; } 3419 fi 3420 rm -f conftest conftest$ac_cv_exeext 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3422 $as_echo "$ac_cv_exeext" >&6; } 3423 3424 rm -f conftest.$ac_ext 3425 EXEEXT=$ac_cv_exeext 3426 ac_exeext=$EXEEXT 3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3428 /* end confdefs.h. */ 3429 #include <stdio.h> 3430 int 3431 main () 3432 { 3433 FILE *f = fopen ("conftest.out", "w"); 3434 return ferror (f) || fclose (f) != 0; 3435 3436 ; 3437 return 0; 3438 } 3439 _ACEOF 3440 ac_clean_files="$ac_clean_files conftest.out" 3441 # Check that the compiler produces executables we can run. If not, either 3442 # the compiler is broken, or we cross compile. 3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3444 $as_echo_n "checking whether we are cross compiling... " >&6; } 3445 if test "$cross_compiling" != yes; then 3446 { { ac_try="$ac_link" 3447 case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450 esac 3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3452 $as_echo "$ac_try_echo"; } >&5 3453 (eval "$ac_link") 2>&5 3454 ac_status=$? 3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3456 test $ac_status = 0; } 3457 if { ac_try='./conftest$ac_cv_exeext' 3458 { { case "(($ac_try" in 3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3460 *) ac_try_echo=$ac_try;; 3461 esac 3462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3463 $as_echo "$ac_try_echo"; } >&5 3464 (eval "$ac_try") 2>&5 3465 ac_status=$? 3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3467 test $ac_status = 0; }; }; then 3468 cross_compiling=no 3469 else 3470 if test "$cross_compiling" = maybe; then 3471 cross_compiling=yes 3472 else 3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3475 as_fn_error $? "cannot run C compiled programs. 3476 If you meant to cross compile, use \`--host'. 3477 See \`config.log' for more details" "$LINENO" 5; } 3478 fi 3479 fi 3480 fi 3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3482 $as_echo "$cross_compiling" >&6; } 3483 3484 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3485 ac_clean_files=$ac_clean_files_save 3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3487 $as_echo_n "checking for suffix of object files... " >&6; } 3488 if ${ac_cv_objext+:} false; then : 3489 $as_echo_n "(cached) " >&6 3490 else 3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3492 /* end confdefs.h. */ 3493 3494 int 3495 main () 3496 { 3497 3498 ; 3499 return 0; 3500 } 3501 _ACEOF 3502 rm -f conftest.o conftest.obj 3503 if { { ac_try="$ac_compile" 3504 case "(($ac_try" in 3505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3506 *) ac_try_echo=$ac_try;; 3507 esac 3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3509 $as_echo "$ac_try_echo"; } >&5 3510 (eval "$ac_compile") 2>&5 3511 ac_status=$? 3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3513 test $ac_status = 0; }; then : 3514 for ac_file in conftest.o conftest.obj conftest.*; do 3515 test -f "$ac_file" || continue; 3516 case $ac_file in 3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3519 break;; 3520 esac 3521 done 3522 else 3523 $as_echo "$as_me: failed program was:" >&5 3524 sed 's/^/| /' conftest.$ac_ext >&5 3525 3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3528 as_fn_error $? "cannot compute suffix of object files: cannot compile 3529 See \`config.log' for more details" "$LINENO" 5; } 3530 fi 3531 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3532 fi 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3534 $as_echo "$ac_cv_objext" >&6; } 3535 OBJEXT=$ac_cv_objext 3536 ac_objext=$OBJEXT 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3538 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3539 if ${ac_cv_c_compiler_gnu+:} false; then : 3540 $as_echo_n "(cached) " >&6 3541 else 3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3543 /* end confdefs.h. */ 3544 3545 int 3546 main () 3547 { 3548 #ifndef __GNUC__ 3549 choke me 3550 #endif 3551 3552 ; 3553 return 0; 3554 } 3555 _ACEOF 3556 if ac_fn_c_try_compile "$LINENO"; then : 3557 ac_compiler_gnu=yes 3558 else 3559 ac_compiler_gnu=no 3560 fi 3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3562 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3563 3564 fi 3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3566 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3567 if test $ac_compiler_gnu = yes; then 3568 GCC=yes 3569 else 3570 GCC= 3571 fi 3572 ac_test_CFLAGS=${CFLAGS+set} 3573 ac_save_CFLAGS=$CFLAGS 3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3575 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3576 if ${ac_cv_prog_cc_g+:} false; then : 3577 $as_echo_n "(cached) " >&6 3578 else 3579 ac_save_c_werror_flag=$ac_c_werror_flag 3580 ac_c_werror_flag=yes 3581 ac_cv_prog_cc_g=no 3582 CFLAGS="-g" 3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3584 /* end confdefs.h. */ 3585 3586 int 3587 main () 3588 { 3589 3590 ; 3591 return 0; 3592 } 3593 _ACEOF 3594 if ac_fn_c_try_compile "$LINENO"; then : 3595 ac_cv_prog_cc_g=yes 3596 else 3597 CFLAGS="" 3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3599 /* end confdefs.h. */ 3600 3601 int 3602 main () 3603 { 3604 3605 ; 3606 return 0; 3607 } 3608 _ACEOF 3609 if ac_fn_c_try_compile "$LINENO"; then : 3610 3611 else 3612 ac_c_werror_flag=$ac_save_c_werror_flag 3613 CFLAGS="-g" 3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3615 /* end confdefs.h. */ 3616 3617 int 3618 main () 3619 { 3620 3621 ; 3622 return 0; 3623 } 3624 _ACEOF 3625 if ac_fn_c_try_compile "$LINENO"; then : 3626 ac_cv_prog_cc_g=yes 3627 fi 3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3629 fi 3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3631 fi 3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3633 ac_c_werror_flag=$ac_save_c_werror_flag 3634 fi 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3636 $as_echo "$ac_cv_prog_cc_g" >&6; } 3637 if test "$ac_test_CFLAGS" = set; then 3638 CFLAGS=$ac_save_CFLAGS 3639 elif test $ac_cv_prog_cc_g = yes; then 3640 if test "$GCC" = yes; then 3641 CFLAGS="-g -O2" 3642 else 3643 CFLAGS="-g" 3644 fi 3645 else 3646 if test "$GCC" = yes; then 3647 CFLAGS="-O2" 3648 else 3649 CFLAGS= 3650 fi 3651 fi 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3653 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3654 if ${ac_cv_prog_cc_c89+:} false; then : 3655 $as_echo_n "(cached) " >&6 3656 else 3657 ac_cv_prog_cc_c89=no 3658 ac_save_CC=$CC 3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3660 /* end confdefs.h. */ 3661 #include <stdarg.h> 3662 #include <stdio.h> 3663 struct stat; 3664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3665 struct buf { int x; }; 3666 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3667 static char *e (p, i) 3668 char **p; 3669 int i; 3670 { 3671 return p[i]; 3672 } 3673 static char *f (char * (*g) (char **, int), char **p, ...) 3674 { 3675 char *s; 3676 va_list v; 3677 va_start (v,p); 3678 s = g (p, va_arg (v,int)); 3679 va_end (v); 3680 return s; 3681 } 3682 3683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3684 function prototypes and stuff, but not '\xHH' hex character constants. 3685 These don't provoke an error unfortunately, instead are silently treated 3686 as 'x'. The following induces an error, until -std is added to get 3687 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3688 array size at least. It's necessary to write '\x00'==0 to get something 3689 that's true only with -std. */ 3690 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3691 3692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3693 inside strings and character constants. */ 3694 #define FOO(x) 'x' 3695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3696 3697 int test (int i, double x); 3698 struct s1 {int (*f) (int a);}; 3699 struct s2 {int (*f) (double a);}; 3700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3701 int argc; 3702 char **argv; 3703 int 3704 main () 3705 { 3706 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3707 ; 3708 return 0; 3709 } 3710 _ACEOF 3711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3712 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3713 do 3714 CC="$ac_save_CC $ac_arg" 3715 if ac_fn_c_try_compile "$LINENO"; then : 3716 ac_cv_prog_cc_c89=$ac_arg 3717 fi 3718 rm -f core conftest.err conftest.$ac_objext 3719 test "x$ac_cv_prog_cc_c89" != "xno" && break 3720 done 3721 rm -f conftest.$ac_ext 3722 CC=$ac_save_CC 3723 3724 fi 3725 # AC_CACHE_VAL 3726 case "x$ac_cv_prog_cc_c89" in 3727 x) 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3729 $as_echo "none needed" >&6; } ;; 3730 xno) 3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3732 $as_echo "unsupported" >&6; } ;; 3733 *) 3734 CC="$CC $ac_cv_prog_cc_c89" 3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3736 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3737 esac 3738 if test "x$ac_cv_prog_cc_c89" != xno; then : 3739 3740 fi 3741 3742 ac_ext=c 3743 ac_cpp='$CPP $CPPFLAGS' 3744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3746 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3747 3748 3749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 3750 $as_echo_n "checking for dlopen in -ldl... " >&6; } 3751 if ${ac_cv_lib_dl_dlopen+:} false; then : 3752 $as_echo_n "(cached) " >&6 3753 else 3754 ac_check_lib_save_LIBS=$LIBS 3755 LIBS="-ldl $LIBS" 3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3757 /* end confdefs.h. */ 3758 3759 /* Override any GCC internal prototype to avoid an error. 3760 Use char because int might match the return type of a GCC 3761 builtin and then its argument prototype would still apply. */ 3762 #ifdef __cplusplus 3763 extern "C" 3764 #endif 3765 char dlopen (); 3766 int 3767 main () 3768 { 3769 return dlopen (); 3770 ; 3771 return 0; 3772 } 3773 _ACEOF 3774 if ac_fn_c_try_link "$LINENO"; then : 3775 ac_cv_lib_dl_dlopen=yes 3776 else 3777 ac_cv_lib_dl_dlopen=no 3778 fi 3779 rm -f core conftest.err conftest.$ac_objext \ 3780 conftest$ac_exeext conftest.$ac_ext 3781 LIBS=$ac_check_lib_save_LIBS 3782 fi 3783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 3784 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 3785 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 3786 DLOPEN_LIB=-ldl 3787 fi 3788 3789 3790 3791 # Check whether --with-cc was given. 3792 if test "${with_cc+set}" = set; then : 3793 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5 3794 fi 3795 3796 3797 # Check whether --with-ccopts was given. 3798 if test "${with_ccopts+set}" = set; then : 3799 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 3800 fi 3801 3802 3803 # Check whether --with-ldopts was given. 3804 if test "${with_ldopts+set}" = set; then : 3805 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 3806 fi 3807 3808 ac_ext=c 3809 ac_cpp='$CPP $CPPFLAGS' 3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3813 if test -n "$ac_tool_prefix"; then 3814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3815 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3817 $as_echo_n "checking for $ac_word... " >&6; } 3818 if ${ac_cv_prog_CC+:} false; then : 3819 $as_echo_n "(cached) " >&6 3820 else 3821 if test -n "$CC"; then 3822 ac_cv_prog_CC="$CC" # Let the user override the test. 3823 else 3824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3825 for as_dir in $PATH 3826 do 3827 IFS=$as_save_IFS 3828 test -z "$as_dir" && as_dir=. 3829 for ac_exec_ext in '' $ac_executable_extensions; do 3830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3831 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3833 break 2 3834 fi 3835 done 3836 done 3837 IFS=$as_save_IFS 3838 3839 fi 3840 fi 3841 CC=$ac_cv_prog_CC 3842 if test -n "$CC"; then 3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3844 $as_echo "$CC" >&6; } 3845 else 3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3847 $as_echo "no" >&6; } 3848 fi 3849 3850 3851 fi 3852 if test -z "$ac_cv_prog_CC"; then 3853 ac_ct_CC=$CC 3854 # Extract the first word of "gcc", so it can be a program name with args. 3855 set dummy gcc; ac_word=$2 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3857 $as_echo_n "checking for $ac_word... " >&6; } 3858 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3859 $as_echo_n "(cached) " >&6 3860 else 3861 if test -n "$ac_ct_CC"; then 3862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3863 else 3864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3865 for as_dir in $PATH 3866 do 3867 IFS=$as_save_IFS 3868 test -z "$as_dir" && as_dir=. 3869 for ac_exec_ext in '' $ac_executable_extensions; do 3870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3871 ac_cv_prog_ac_ct_CC="gcc" 3872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3873 break 2 3874 fi 3875 done 3876 done 3877 IFS=$as_save_IFS 3878 3879 fi 3880 fi 3881 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3882 if test -n "$ac_ct_CC"; then 3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3884 $as_echo "$ac_ct_CC" >&6; } 3885 else 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3887 $as_echo "no" >&6; } 3888 fi 3889 3890 if test "x$ac_ct_CC" = x; then 3891 CC="" 3892 else 3893 case $cross_compiling:$ac_tool_warned in 3894 yes:) 3895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3897 ac_tool_warned=yes ;; 3898 esac 3899 CC=$ac_ct_CC 3900 fi 3901 else 3902 CC="$ac_cv_prog_CC" 3903 fi 3904 3905 if test -z "$CC"; then 3906 if test -n "$ac_tool_prefix"; then 3907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3908 set dummy ${ac_tool_prefix}cc; ac_word=$2 3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3910 $as_echo_n "checking for $ac_word... " >&6; } 3911 if ${ac_cv_prog_CC+:} false; then : 3912 $as_echo_n "(cached) " >&6 3913 else 3914 if test -n "$CC"; then 3915 ac_cv_prog_CC="$CC" # Let the user override the test. 3916 else 3917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3918 for as_dir in $PATH 3919 do 3920 IFS=$as_save_IFS 3921 test -z "$as_dir" && as_dir=. 3922 for ac_exec_ext in '' $ac_executable_extensions; do 3923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3924 ac_cv_prog_CC="${ac_tool_prefix}cc" 3925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3926 break 2 3927 fi 3928 done 3929 done 3930 IFS=$as_save_IFS 3931 3932 fi 3933 fi 3934 CC=$ac_cv_prog_CC 3935 if test -n "$CC"; then 3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3937 $as_echo "$CC" >&6; } 3938 else 3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3940 $as_echo "no" >&6; } 3941 fi 3942 3943 3944 fi 3945 fi 3946 if test -z "$CC"; then 3947 # Extract the first word of "cc", so it can be a program name with args. 3948 set dummy cc; ac_word=$2 3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3950 $as_echo_n "checking for $ac_word... " >&6; } 3951 if ${ac_cv_prog_CC+:} false; then : 3952 $as_echo_n "(cached) " >&6 3953 else 3954 if test -n "$CC"; then 3955 ac_cv_prog_CC="$CC" # Let the user override the test. 3956 else 3957 ac_prog_rejected=no 3958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3959 for as_dir in $PATH 3960 do 3961 IFS=$as_save_IFS 3962 test -z "$as_dir" && as_dir=. 3963 for ac_exec_ext in '' $ac_executable_extensions; do 3964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3966 ac_prog_rejected=yes 3967 continue 3968 fi 3969 ac_cv_prog_CC="cc" 3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3971 break 2 3972 fi 3973 done 3974 done 3975 IFS=$as_save_IFS 3976 3977 if test $ac_prog_rejected = yes; then 3978 # We found a bogon in the path, so make sure we never use it. 3979 set dummy $ac_cv_prog_CC 3980 shift 3981 if test $# != 0; then 3982 # We chose a different compiler from the bogus one. 3983 # However, it has the same basename, so the bogon will be chosen 3984 # first if we set CC to just the basename; use the full file name. 3985 shift 3986 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3987 fi 3988 fi 3989 fi 3990 fi 3991 CC=$ac_cv_prog_CC 3992 if test -n "$CC"; then 3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3994 $as_echo "$CC" >&6; } 3995 else 3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3997 $as_echo "no" >&6; } 3998 fi 3999 4000 4001 fi 4002 if test -z "$CC"; then 4003 if test -n "$ac_tool_prefix"; then 4004 for ac_prog in cl.exe 4005 do 4006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4009 $as_echo_n "checking for $ac_word... " >&6; } 4010 if ${ac_cv_prog_CC+:} false; then : 4011 $as_echo_n "(cached) " >&6 4012 else 4013 if test -n "$CC"; then 4014 ac_cv_prog_CC="$CC" # Let the user override the test. 4015 else 4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4017 for as_dir in $PATH 4018 do 4019 IFS=$as_save_IFS 4020 test -z "$as_dir" && as_dir=. 4021 for ac_exec_ext in '' $ac_executable_extensions; do 4022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4025 break 2 4026 fi 4027 done 4028 done 4029 IFS=$as_save_IFS 4030 4031 fi 4032 fi 4033 CC=$ac_cv_prog_CC 4034 if test -n "$CC"; then 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4036 $as_echo "$CC" >&6; } 4037 else 4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4039 $as_echo "no" >&6; } 4040 fi 4041 4042 4043 test -n "$CC" && break 4044 done 4045 fi 4046 if test -z "$CC"; then 4047 ac_ct_CC=$CC 4048 for ac_prog in cl.exe 4049 do 4050 # Extract the first word of "$ac_prog", so it can be a program name with args. 4051 set dummy $ac_prog; ac_word=$2 4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4053 $as_echo_n "checking for $ac_word... " >&6; } 4054 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4055 $as_echo_n "(cached) " >&6 4056 else 4057 if test -n "$ac_ct_CC"; then 4058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4059 else 4060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4061 for as_dir in $PATH 4062 do 4063 IFS=$as_save_IFS 4064 test -z "$as_dir" && as_dir=. 4065 for ac_exec_ext in '' $ac_executable_extensions; do 4066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4067 ac_cv_prog_ac_ct_CC="$ac_prog" 4068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4069 break 2 4070 fi 4071 done 4072 done 4073 IFS=$as_save_IFS 4074 4075 fi 4076 fi 4077 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4078 if test -n "$ac_ct_CC"; then 4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4080 $as_echo "$ac_ct_CC" >&6; } 4081 else 4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4083 $as_echo "no" >&6; } 4084 fi 4085 4086 4087 test -n "$ac_ct_CC" && break 4088 done 4089 4090 if test "x$ac_ct_CC" = x; then 4091 CC="" 4092 else 4093 case $cross_compiling:$ac_tool_warned in 4094 yes:) 4095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4096 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4097 ac_tool_warned=yes ;; 4098 esac 4099 CC=$ac_ct_CC 4100 fi 4101 fi 4102 4103 fi 4104 4105 4106 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4108 as_fn_error $? "no acceptable C compiler found in \$PATH 4109 See \`config.log' for more details" "$LINENO" 5; } 4110 4111 # Provide some information about the compiler. 4112 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4113 set X $ac_compile 4114 ac_compiler=$2 4115 for ac_option in --version -v -V -qversion; do 4116 { { ac_try="$ac_compiler $ac_option >&5" 4117 case "(($ac_try" in 4118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4119 *) ac_try_echo=$ac_try;; 4120 esac 4121 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4122 $as_echo "$ac_try_echo"; } >&5 4123 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4124 ac_status=$? 4125 if test -s conftest.err; then 4126 sed '10a\ 4127 ... rest of stderr output deleted ... 4128 10q' conftest.err >conftest.er1 4129 cat conftest.er1 >&5 4130 fi 4131 rm -f conftest.er1 conftest.err 4132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4133 test $ac_status = 0; } 4134 done 4135 4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4137 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4138 if ${ac_cv_c_compiler_gnu+:} false; then : 4139 $as_echo_n "(cached) " >&6 4140 else 4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4142 /* end confdefs.h. */ 4143 4144 int 4145 main () 4146 { 4147 #ifndef __GNUC__ 4148 choke me 4149 #endif 4150 4151 ; 4152 return 0; 4153 } 4154 _ACEOF 4155 if ac_fn_c_try_compile "$LINENO"; then : 4156 ac_compiler_gnu=yes 4157 else 4158 ac_compiler_gnu=no 4159 fi 4160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4161 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4162 4163 fi 4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4165 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4166 if test $ac_compiler_gnu = yes; then 4167 GCC=yes 4168 else 4169 GCC= 4170 fi 4171 ac_test_CFLAGS=${CFLAGS+set} 4172 ac_save_CFLAGS=$CFLAGS 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4174 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4175 if ${ac_cv_prog_cc_g+:} false; then : 4176 $as_echo_n "(cached) " >&6 4177 else 4178 ac_save_c_werror_flag=$ac_c_werror_flag 4179 ac_c_werror_flag=yes 4180 ac_cv_prog_cc_g=no 4181 CFLAGS="-g" 4182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4183 /* end confdefs.h. */ 4184 4185 int 4186 main () 4187 { 4188 4189 ; 4190 return 0; 4191 } 4192 _ACEOF 4193 if ac_fn_c_try_compile "$LINENO"; then : 4194 ac_cv_prog_cc_g=yes 4195 else 4196 CFLAGS="" 4197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4198 /* end confdefs.h. */ 4199 4200 int 4201 main () 4202 { 4203 4204 ; 4205 return 0; 4206 } 4207 _ACEOF 4208 if ac_fn_c_try_compile "$LINENO"; then : 4209 4210 else 4211 ac_c_werror_flag=$ac_save_c_werror_flag 4212 CFLAGS="-g" 4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4214 /* end confdefs.h. */ 4215 4216 int 4217 main () 4218 { 4219 4220 ; 4221 return 0; 4222 } 4223 _ACEOF 4224 if ac_fn_c_try_compile "$LINENO"; then : 4225 ac_cv_prog_cc_g=yes 4226 fi 4227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4228 fi 4229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4230 fi 4231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4232 ac_c_werror_flag=$ac_save_c_werror_flag 4233 fi 4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4235 $as_echo "$ac_cv_prog_cc_g" >&6; } 4236 if test "$ac_test_CFLAGS" = set; then 4237 CFLAGS=$ac_save_CFLAGS 4238 elif test $ac_cv_prog_cc_g = yes; then 4239 if test "$GCC" = yes; then 4240 CFLAGS="-g -O2" 4241 else 4242 CFLAGS="-g" 4243 fi 4244 else 4245 if test "$GCC" = yes; then 4246 CFLAGS="-O2" 4247 else 4248 CFLAGS= 4249 fi 4250 fi 4251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4252 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4253 if ${ac_cv_prog_cc_c89+:} false; then : 4254 $as_echo_n "(cached) " >&6 4255 else 4256 ac_cv_prog_cc_c89=no 4257 ac_save_CC=$CC 4258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4259 /* end confdefs.h. */ 4260 #include <stdarg.h> 4261 #include <stdio.h> 4262 struct stat; 4263 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4264 struct buf { int x; }; 4265 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4266 static char *e (p, i) 4267 char **p; 4268 int i; 4269 { 4270 return p[i]; 4271 } 4272 static char *f (char * (*g) (char **, int), char **p, ...) 4273 { 4274 char *s; 4275 va_list v; 4276 va_start (v,p); 4277 s = g (p, va_arg (v,int)); 4278 va_end (v); 4279 return s; 4280 } 4281 4282 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4283 function prototypes and stuff, but not '\xHH' hex character constants. 4284 These don't provoke an error unfortunately, instead are silently treated 4285 as 'x'. The following induces an error, until -std is added to get 4286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4287 array size at least. It's necessary to write '\x00'==0 to get something 4288 that's true only with -std. */ 4289 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4290 4291 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4292 inside strings and character constants. */ 4293 #define FOO(x) 'x' 4294 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4295 4296 int test (int i, double x); 4297 struct s1 {int (*f) (int a);}; 4298 struct s2 {int (*f) (double a);}; 4299 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4300 int argc; 4301 char **argv; 4302 int 4303 main () 4304 { 4305 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4306 ; 4307 return 0; 4308 } 4309 _ACEOF 4310 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4312 do 4313 CC="$ac_save_CC $ac_arg" 4314 if ac_fn_c_try_compile "$LINENO"; then : 4315 ac_cv_prog_cc_c89=$ac_arg 4316 fi 4317 rm -f core conftest.err conftest.$ac_objext 4318 test "x$ac_cv_prog_cc_c89" != "xno" && break 4319 done 4320 rm -f conftest.$ac_ext 4321 CC=$ac_save_CC 4322 4323 fi 4324 # AC_CACHE_VAL 4325 case "x$ac_cv_prog_cc_c89" in 4326 x) 4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4328 $as_echo "none needed" >&6; } ;; 4329 xno) 4330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4331 $as_echo "unsupported" >&6; } ;; 4332 *) 4333 CC="$CC $ac_cv_prog_cc_c89" 4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4335 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4336 esac 4337 if test "x$ac_cv_prog_cc_c89" != xno; then : 4338 4339 fi 4340 4341 ac_ext=c 4342 ac_cpp='$CPP $CPPFLAGS' 4343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4345 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4346 4347 if test "$GCC" = yes; then 4348 RDYNAMIC="-rdynamic" 4349 4350 fi 4351 ac_ext=c 4352 ac_cpp='$CPP $CPPFLAGS' 4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4357 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4358 # On Suns, sometimes $CPP names a directory. 4359 if test -n "$CPP" && test -d "$CPP"; then 4360 CPP= 4361 fi 4362 if test -z "$CPP"; then 4363 if ${ac_cv_prog_CPP+:} false; then : 4364 $as_echo_n "(cached) " >&6 4365 else 4366 # Double quotes because CPP needs to be expanded 4367 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4368 do 4369 ac_preproc_ok=false 4370 for ac_c_preproc_warn_flag in '' yes 4371 do 4372 # Use a header file that comes with gcc, so configuring glibc 4373 # with a fresh cross-compiler works. 4374 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4375 # <limits.h> exists even on freestanding compilers. 4376 # On the NeXT, cc -E runs the code through the compiler's parser, 4377 # not just through cpp. "Syntax error" is here to catch this case. 4378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4379 /* end confdefs.h. */ 4380 #ifdef __STDC__ 4381 # include <limits.h> 4382 #else 4383 # include <assert.h> 4384 #endif 4385 Syntax error 4386 _ACEOF 4387 if ac_fn_c_try_cpp "$LINENO"; then : 4388 4389 else 4390 # Broken: fails on valid input. 4391 continue 4392 fi 4393 rm -f conftest.err conftest.i conftest.$ac_ext 4394 4395 # OK, works on sane cases. Now check whether nonexistent headers 4396 # can be detected and how. 4397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4398 /* end confdefs.h. */ 4399 #include <ac_nonexistent.h> 4400 _ACEOF 4401 if ac_fn_c_try_cpp "$LINENO"; then : 4402 # Broken: success on invalid input. 4403 continue 4404 else 4405 # Passes both tests. 4406 ac_preproc_ok=: 4407 break 4408 fi 4409 rm -f conftest.err conftest.i conftest.$ac_ext 4410 4411 done 4412 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4413 rm -f conftest.i conftest.err conftest.$ac_ext 4414 if $ac_preproc_ok; then : 4415 break 4416 fi 4417 4418 done 4419 ac_cv_prog_CPP=$CPP 4420 4421 fi 4422 CPP=$ac_cv_prog_CPP 4423 else 4424 ac_cv_prog_CPP=$CPP 4425 fi 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4427 $as_echo "$CPP" >&6; } 4428 ac_preproc_ok=false 4429 for ac_c_preproc_warn_flag in '' yes 4430 do 4431 # Use a header file that comes with gcc, so configuring glibc 4432 # with a fresh cross-compiler works. 4433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4434 # <limits.h> exists even on freestanding compilers. 4435 # On the NeXT, cc -E runs the code through the compiler's parser, 4436 # not just through cpp. "Syntax error" is here to catch this case. 4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4438 /* end confdefs.h. */ 4439 #ifdef __STDC__ 4440 # include <limits.h> 4441 #else 4442 # include <assert.h> 4443 #endif 4444 Syntax error 4445 _ACEOF 4446 if ac_fn_c_try_cpp "$LINENO"; then : 4447 4448 else 4449 # Broken: fails on valid input. 4450 continue 4451 fi 4452 rm -f conftest.err conftest.i conftest.$ac_ext 4453 4454 # OK, works on sane cases. Now check whether nonexistent headers 4455 # can be detected and how. 4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4457 /* end confdefs.h. */ 4458 #include <ac_nonexistent.h> 4459 _ACEOF 4460 if ac_fn_c_try_cpp "$LINENO"; then : 4461 # Broken: success on invalid input. 4462 continue 4463 else 4464 # Passes both tests. 4465 ac_preproc_ok=: 4466 break 4467 fi 4468 rm -f conftest.err conftest.i conftest.$ac_ext 4469 4470 done 4471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4472 rm -f conftest.i conftest.err conftest.$ac_ext 4473 if $ac_preproc_ok; then : 4474 4475 else 4476 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4477 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4478 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4479 See \`config.log' for more details" "$LINENO" 5; } 4480 fi 4481 4482 ac_ext=c 4483 ac_cpp='$CPP $CPPFLAGS' 4484 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4485 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4486 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4487 4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 4489 $as_echo_n "checking for additional special compiler flags... " >&6; } 4490 if test "$GCC" = yes 4491 then 4492 case "$host_cpu" in 4493 alpha) addcflags="-mieee" ;; 4494 esac 4495 fi 4496 if test "x$addcflags" != x 4497 then 4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 4499 $as_echo "$addcflags" >&6; } 4500 CFLAGS="$addcflags $CFLAGS" 4501 else 4502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 4503 $as_echo "(none)" >&6; } 4504 fi 4505 4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4507 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4508 if ${ac_cv_path_GREP+:} false; then : 4509 $as_echo_n "(cached) " >&6 4510 else 4511 if test -z "$GREP"; then 4512 ac_path_GREP_found=false 4513 # Loop through the user's path and test for each of PROGNAME-LIST 4514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4515 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4516 do 4517 IFS=$as_save_IFS 4518 test -z "$as_dir" && as_dir=. 4519 for ac_prog in grep ggrep; do 4520 for ac_exec_ext in '' $ac_executable_extensions; do 4521 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4522 as_fn_executable_p "$ac_path_GREP" || continue 4523 # Check for GNU ac_path_GREP and select it if it is found. 4524 # Check for GNU $ac_path_GREP 4525 case `"$ac_path_GREP" --version 2>&1` in 4526 *GNU*) 4527 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4528 *) 4529 ac_count=0 4530 $as_echo_n 0123456789 >"conftest.in" 4531 while : 4532 do 4533 cat "conftest.in" "conftest.in" >"conftest.tmp" 4534 mv "conftest.tmp" "conftest.in" 4535 cp "conftest.in" "conftest.nl" 4536 $as_echo 'GREP' >> "conftest.nl" 4537 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4539 as_fn_arith $ac_count + 1 && ac_count=$as_val 4540 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4541 # Best one so far, save it but keep looking for a better one 4542 ac_cv_path_GREP="$ac_path_GREP" 4543 ac_path_GREP_max=$ac_count 4544 fi 4545 # 10*(2^10) chars as input seems more than enough 4546 test $ac_count -gt 10 && break 4547 done 4548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4549 esac 4550 4551 $ac_path_GREP_found && break 3 4552 done 4553 done 4554 done 4555 IFS=$as_save_IFS 4556 if test -z "$ac_cv_path_GREP"; then 4557 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4558 fi 4559 else 4560 ac_cv_path_GREP=$GREP 4561 fi 4562 4563 fi 4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4565 $as_echo "$ac_cv_path_GREP" >&6; } 4566 GREP="$ac_cv_path_GREP" 4567 4568 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4570 $as_echo_n "checking for egrep... " >&6; } 4571 if ${ac_cv_path_EGREP+:} false; then : 4572 $as_echo_n "(cached) " >&6 4573 else 4574 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4575 then ac_cv_path_EGREP="$GREP -E" 4576 else 4577 if test -z "$EGREP"; then 4578 ac_path_EGREP_found=false 4579 # Loop through the user's path and test for each of PROGNAME-LIST 4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4582 do 4583 IFS=$as_save_IFS 4584 test -z "$as_dir" && as_dir=. 4585 for ac_prog in egrep; do 4586 for ac_exec_ext in '' $ac_executable_extensions; do 4587 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4588 as_fn_executable_p "$ac_path_EGREP" || continue 4589 # Check for GNU ac_path_EGREP and select it if it is found. 4590 # Check for GNU $ac_path_EGREP 4591 case `"$ac_path_EGREP" --version 2>&1` in 4592 *GNU*) 4593 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4594 *) 4595 ac_count=0 4596 $as_echo_n 0123456789 >"conftest.in" 4597 while : 4598 do 4599 cat "conftest.in" "conftest.in" >"conftest.tmp" 4600 mv "conftest.tmp" "conftest.in" 4601 cp "conftest.in" "conftest.nl" 4602 $as_echo 'EGREP' >> "conftest.nl" 4603 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4605 as_fn_arith $ac_count + 1 && ac_count=$as_val 4606 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4607 # Best one so far, save it but keep looking for a better one 4608 ac_cv_path_EGREP="$ac_path_EGREP" 4609 ac_path_EGREP_max=$ac_count 4610 fi 4611 # 10*(2^10) chars as input seems more than enough 4612 test $ac_count -gt 10 && break 4613 done 4614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4615 esac 4616 4617 $ac_path_EGREP_found && break 3 4618 done 4619 done 4620 done 4621 IFS=$as_save_IFS 4622 if test -z "$ac_cv_path_EGREP"; then 4623 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4624 fi 4625 else 4626 ac_cv_path_EGREP=$EGREP 4627 fi 4628 4629 fi 4630 fi 4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4632 $as_echo "$ac_cv_path_EGREP" >&6; } 4633 EGREP="$ac_cv_path_EGREP" 4634 4635 4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4637 $as_echo_n "checking for ANSI C header files... " >&6; } 4638 if ${ac_cv_header_stdc+:} false; then : 4639 $as_echo_n "(cached) " >&6 4640 else 4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4642 /* end confdefs.h. */ 4643 #include <stdlib.h> 4644 #include <stdarg.h> 4645 #include <string.h> 4646 #include <float.h> 4647 4648 int 4649 main () 4650 { 4651 4652 ; 4653 return 0; 4654 } 4655 _ACEOF 4656 if ac_fn_c_try_compile "$LINENO"; then : 4657 ac_cv_header_stdc=yes 4658 else 4659 ac_cv_header_stdc=no 4660 fi 4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4662 4663 if test $ac_cv_header_stdc = yes; then 4664 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4666 /* end confdefs.h. */ 4667 #include <string.h> 4668 4669 _ACEOF 4670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4671 $EGREP "memchr" >/dev/null 2>&1; then : 4672 4673 else 4674 ac_cv_header_stdc=no 4675 fi 4676 rm -f conftest* 4677 4678 fi 4679 4680 if test $ac_cv_header_stdc = yes; then 4681 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4683 /* end confdefs.h. */ 4684 #include <stdlib.h> 4685 4686 _ACEOF 4687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4688 $EGREP "free" >/dev/null 2>&1; then : 4689 4690 else 4691 ac_cv_header_stdc=no 4692 fi 4693 rm -f conftest* 4694 4695 fi 4696 4697 if test $ac_cv_header_stdc = yes; then 4698 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4699 if test "$cross_compiling" = yes; then : 4700 : 4701 else 4702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4703 /* end confdefs.h. */ 4704 #include <ctype.h> 4705 #include <stdlib.h> 4706 #if ((' ' & 0x0FF) == 0x020) 4707 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4708 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4709 #else 4710 # define ISLOWER(c) \ 4711 (('a' <= (c) && (c) <= 'i') \ 4712 || ('j' <= (c) && (c) <= 'r') \ 4713 || ('s' <= (c) && (c) <= 'z')) 4714 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4715 #endif 4716 4717 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4718 int 4719 main () 4720 { 4721 int i; 4722 for (i = 0; i < 256; i++) 4723 if (XOR (islower (i), ISLOWER (i)) 4724 || toupper (i) != TOUPPER (i)) 4725 return 2; 4726 return 0; 4727 } 4728 _ACEOF 4729 if ac_fn_c_try_run "$LINENO"; then : 4730 4731 else 4732 ac_cv_header_stdc=no 4733 fi 4734 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4735 conftest.$ac_objext conftest.beam conftest.$ac_ext 4736 fi 4737 4738 fi 4739 fi 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4741 $as_echo "$ac_cv_header_stdc" >&6; } 4742 if test $ac_cv_header_stdc = yes; then 4743 4744 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4745 4746 fi 4747 4748 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4749 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4750 inttypes.h stdint.h unistd.h 4751 do : 4752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4753 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4754 " 4755 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4756 cat >>confdefs.h <<_ACEOF 4757 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4758 _ACEOF 4759 4760 fi 4761 4762 done 4763 4764 4765 4766 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4767 if test "x$ac_cv_header_minix_config_h" = xyes; then : 4768 MINIX=yes 4769 else 4770 MINIX= 4771 fi 4772 4773 4774 if test "$MINIX" = yes; then 4775 4776 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4777 4778 4779 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4780 4781 4782 $as_echo "#define _MINIX 1" >>confdefs.h 4783 4784 fi 4785 4786 4787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4788 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4789 if ${ac_cv_safe_to_define___extensions__+:} false; then : 4790 $as_echo_n "(cached) " >&6 4791 else 4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4793 /* end confdefs.h. */ 4794 4795 # define __EXTENSIONS__ 1 4796 $ac_includes_default 4797 int 4798 main () 4799 { 4800 4801 ; 4802 return 0; 4803 } 4804 _ACEOF 4805 if ac_fn_c_try_compile "$LINENO"; then : 4806 ac_cv_safe_to_define___extensions__=yes 4807 else 4808 ac_cv_safe_to_define___extensions__=no 4809 fi 4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4811 fi 4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4813 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4814 test $ac_cv_safe_to_define___extensions__ = yes && 4815 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4816 4817 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4818 4819 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4820 4821 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4822 4823 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4824 4825 4826 LIB_EXT=.a 4827 STATIC_LIB_EXT=.a 4828 PROFILED_LIB_EXT=.a 4829 4830 # Check whether --with-root-prefix was given. 4831 if test "${with_root_prefix+set}" = set; then : 4832 withval=$with_root_prefix; root_prefix=$withval 4833 else 4834 root_prefix=NONE 4835 fi 4836 # Check whether --enable-maintainer-mode was given. 4837 if test "${enable_maintainer_mode+set}" = set; then : 4838 enableval=$enable_maintainer_mode; if test "$enableval" = "no" 4839 then 4840 MAINTAINER_CMT=# 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 4842 $as_echo "Disabling maintainer mode" >&6; } 4843 else 4844 MAINTAINER_CMT= 4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 4846 $as_echo "Enabling maintainer mode" >&6; } 4847 fi 4848 4849 else 4850 MAINTAINER_CMT=# 4851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 4852 $as_echo "Disabling maintainer mode by default" >&6; } 4853 4854 fi 4855 4856 4857 # Check whether --enable-symlink-install was given. 4858 if test "${enable_symlink_install+set}" = set; then : 4859 enableval=$enable_symlink_install; if test "$enableval" = "no" 4860 then 4861 LINK_INSTALL_FLAGS=-f 4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 4863 $as_echo "Disabling symlinks for install" >&6; } 4864 else 4865 LINK_INSTALL_FLAGS=-sf 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 4867 $as_echo "Enabling symlinks for install" >&6; } 4868 fi 4869 4870 else 4871 LINK_INSTALL_FLAGS=-f 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5 4873 $as_echo "Disabling symlinks for install by default" >&6; } 4874 4875 fi 4876 4877 4878 relative_symlink_defined= 4879 # Check whether --enable-relative-symlinks was given. 4880 if test "${enable_relative_symlinks+set}" = set; then : 4881 enableval=$enable_relative_symlinks; if test "$enableval" = "no" 4882 then 4883 SYMLINK_RELATIVE= 4884 relative_symlink_defined=yes 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 4886 $as_echo "Disabling relative symlinks for install" >&6; } 4887 else 4888 SYMLINK_RELATIVE=--relative 4889 relative_symlink_defined=yes 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 4891 $as_echo "Enabling relative symlinks for install" >&6; } 4892 fi 4893 fi 4894 4895 # Check whether --enable-symlink-relative-symlinks was given. 4896 if test "${enable_symlink_relative_symlinks+set}" = set; then : 4897 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no" 4898 then 4899 SYMLINK_RELATIVE=yes 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5 4901 $as_echo "Disabling relative symlinks for install" >&6; } 4902 else 4903 SYMLINK_RELATIVE=--relative 4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5 4905 $as_echo "Enabling relative symlinks for install" >&6; } 4906 fi 4907 4908 else 4909 if test -z "$relative_symlink_defined" 4910 then 4911 SYMLINK_RELATIVE= 4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5 4913 $as_echo "Disabling relative symlinks for install by default" >&6; } 4914 fi 4915 4916 fi 4917 4918 4919 # Check whether --enable-symlink-build was given. 4920 if test "${enable_symlink_build+set}" = set; then : 4921 enableval=$enable_symlink_build; if test "$enableval" = "no" 4922 then 4923 LINK_BUILD_FLAGS= 4924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 4925 $as_echo "Disabling symlinks for build" >&6; } 4926 else 4927 LINK_BUILD_FLAGS=-s 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 4929 $as_echo "Enabling symlinks for build" >&6; } 4930 fi 4931 4932 else 4933 LINK_BUILD_FLAGS= 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5 4935 $as_echo "Disabling symlinks for build by default" >&6; } 4936 4937 fi 4938 4939 4940 # Check whether --enable-verbose-makecmds was given. 4941 if test "${enable_verbose_makecmds+set}" = set; then : 4942 enableval=$enable_verbose_makecmds; if test "$enableval" = "no" 4943 then 4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 4945 $as_echo "Disabling verbose make commands" >&6; } 4946 E=@echo 4947 ES=echo 4948 Q=@ 4949 else 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 4951 $as_echo "Enabling verbose make commands" >&6; } 4952 E=@\\# 4953 ES=\\# 4954 Q= 4955 fi 4956 4957 else 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 4959 $as_echo "Disabling verbose make commands" >&6; } 4960 E=@echo 4961 ES=echo 4962 Q=@ 4963 4964 fi 4965 4966 4967 4968 4969 E2_PKG_CONFIG_STATIC=--static 4970 LDFLAG_DYNAMIC= 4971 PRIVATE_LIBS_CMT= 4972 # Check whether --enable-elf-shlibs was given. 4973 if test "${enable_elf_shlibs+set}" = set; then : 4974 enableval=$enable_elf_shlibs; if test "$enableval" = "no" 4975 then 4976 ELF_CMT=# 4977 MAKEFILE_ELF=/dev/null 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 4979 $as_echo "Disabling ELF shared libraries" >&6; } 4980 else 4981 E2_PKG_CONFIG_STATIC= 4982 ELF_CMT= 4983 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib 4984 case "$host_os" in 4985 solaris2.*) 4986 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib 4987 ;; 4988 esac 4989 BINARY_TYPE=elfbin 4990 LIB_EXT=.so 4991 PRIVATE_LIBS_CMT=# 4992 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 4994 $as_echo "Enabling ELF shared libraries" >&6; } 4995 fi 4996 4997 else 4998 MAKEFILE_ELF=/dev/null 4999 ELF_CMT=# 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 5001 $as_echo "Disabling ELF shared libraries by default" >&6; } 5002 5003 fi 5004 5005 5006 5007 # Check whether --enable-bsd-shlibs was given. 5008 if test "${enable_bsd_shlibs+set}" = set; then : 5009 enableval=$enable_bsd_shlibs; if test "$enableval" = "no" 5010 then 5011 BSDLIB_CMT=# 5012 MAKEFILE_BSDLIB=/dev/null 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 5014 $as_echo "Disabling BSD shared libraries" >&6; } 5015 else 5016 E2_PKG_CONFIG_STATIC= 5017 BSDLIB_CMT= 5018 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib 5019 LIB_EXT=.so 5020 case "$host_os" in 5021 darwin*) 5022 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib 5023 LIB_EXT=.dylib 5024 ;; 5025 esac 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 5027 $as_echo "Enabling BSD shared libraries" >&6; } 5028 fi 5029 5030 else 5031 MAKEFILE_BSDLIB=/dev/null 5032 BSDLIB_CMT=# 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 5034 $as_echo "Disabling BSD shared libraries by default" >&6; } 5035 5036 fi 5037 5038 5039 5040 # Check whether --enable-profile was given. 5041 if test "${enable_profile+set}" = set; then : 5042 enableval=$enable_profile; if test "$enableval" = "no" 5043 then 5044 PROFILE_CMT=# 5045 MAKEFILE_PROFILE=/dev/null 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 5047 $as_echo "Disabling profiling libraries" >&6; } 5048 else 5049 PROFILE_CMT= 5050 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile 5051 PROFILED_LIB_EXT=_p.a 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 5053 $as_echo "Building profiling libraries" >&6; } 5054 fi 5055 5056 else 5057 PROFILE_CMT=# 5058 MAKEFILE_PROFILE=/dev/null 5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 5060 $as_echo "Disabling profiling libraries by default" >&6; } 5061 5062 fi 5063 5064 5065 5066 # Check whether --enable-gcov was given. 5067 if test "${enable_gcov+set}" = set; then : 5068 enableval=$enable_gcov; if test "$enableval" = "yes" 5069 then 5070 CFLAGS="-g -fprofile-arcs -ftest-coverage" 5071 LDFLAGS="-fprofile-arcs -ftest-coverage" 5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5 5073 $as_echo "Enabling gcov support" >&6; } 5074 fi 5075 5076 fi 5077 5078 CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}" 5079 CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}" 5080 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} 5081 LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS} 5082 # Check whether --enable-hardening was given. 5083 if test "${enable_hardening+set}" = set; then : 5084 enableval=$enable_hardening; if test "$enableval" = "yes" 5085 then 5086 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong" 5087 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now" 5088 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE" 5089 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS" 5090 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE" 5091 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie" 5092 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS" 5093 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS" 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5 5095 $as_echo "Enabling hardening support" >&6; } 5096 fi 5097 5098 fi 5099 5100 5101 5102 5103 5104 5105 # Check whether --enable-jbd-debug was given. 5106 if test "${enable_jbd_debug+set}" = set; then : 5107 enableval=$enable_jbd_debug; if test "$enableval" = "no" 5108 then 5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 5110 $as_echo "Disabling journal debugging" >&6; } 5111 else 5112 5113 $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h 5114 5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 5116 $as_echo "Enabling journal debugging" >&6; } 5117 fi 5118 5119 else 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 5121 $as_echo "Disabling journal debugging by default" >&6; } 5122 5123 fi 5124 5125 # Check whether --enable-blkid-debug was given. 5126 if test "${enable_blkid_debug+set}" = set; then : 5127 enableval=$enable_blkid_debug; if test "$enableval" = "no" 5128 then 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 5130 $as_echo "Disabling blkid debugging" >&6; } 5131 else 5132 5133 $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h 5134 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 5136 $as_echo "Enabling blkid debugging" >&6; } 5137 fi 5138 5139 else 5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 5141 $as_echo "Disabling blkid debugging by default" >&6; } 5142 5143 fi 5144 5145 # Check whether --enable-testio-debug was given. 5146 if test "${enable_testio_debug+set}" = set; then : 5147 enableval=$enable_testio_debug; 5148 if test "$enableval" = "no" 5149 then 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 5151 $as_echo "Disabling testio debugging" >&6; } 5152 TEST_IO_CMT="#" 5153 else 5154 TEST_IO_CMT= 5155 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h 5156 5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 5158 $as_echo "Enabling testio debugging" >&6; } 5159 fi 5160 5161 else 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 5163 $as_echo "Enabling testio debugging by default" >&6; } 5164 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h 5165 5166 TEST_IO_CMT= 5167 5168 fi 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5179 if test -n "$ac_tool_prefix"; then 5180 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5181 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5183 $as_echo_n "checking for $ac_word... " >&6; } 5184 if ${ac_cv_path_PKG_CONFIG+:} false; then : 5185 $as_echo_n "(cached) " >&6 5186 else 5187 case $PKG_CONFIG in 5188 [\\/]* | ?:[\\/]*) 5189 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5190 ;; 5191 *) 5192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5193 for as_dir in $PATH 5194 do 5195 IFS=$as_save_IFS 5196 test -z "$as_dir" && as_dir=. 5197 for ac_exec_ext in '' $ac_executable_extensions; do 5198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5199 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5201 break 2 5202 fi 5203 done 5204 done 5205 IFS=$as_save_IFS 5206 5207 ;; 5208 esac 5209 fi 5210 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5211 if test -n "$PKG_CONFIG"; then 5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5213 $as_echo "$PKG_CONFIG" >&6; } 5214 else 5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5216 $as_echo "no" >&6; } 5217 fi 5218 5219 5220 fi 5221 if test -z "$ac_cv_path_PKG_CONFIG"; then 5222 ac_pt_PKG_CONFIG=$PKG_CONFIG 5223 # Extract the first word of "pkg-config", so it can be a program name with args. 5224 set dummy pkg-config; ac_word=$2 5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5226 $as_echo_n "checking for $ac_word... " >&6; } 5227 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5228 $as_echo_n "(cached) " >&6 5229 else 5230 case $ac_pt_PKG_CONFIG in 5231 [\\/]* | ?:[\\/]*) 5232 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5233 ;; 5234 *) 5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5236 for as_dir in $PATH 5237 do 5238 IFS=$as_save_IFS 5239 test -z "$as_dir" && as_dir=. 5240 for ac_exec_ext in '' $ac_executable_extensions; do 5241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5242 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5244 break 2 5245 fi 5246 done 5247 done 5248 IFS=$as_save_IFS 5249 5250 ;; 5251 esac 5252 fi 5253 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5254 if test -n "$ac_pt_PKG_CONFIG"; then 5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5256 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 5257 else 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5259 $as_echo "no" >&6; } 5260 fi 5261 5262 if test "x$ac_pt_PKG_CONFIG" = x; then 5263 PKG_CONFIG="" 5264 else 5265 case $cross_compiling:$ac_tool_warned in 5266 yes:) 5267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5269 ac_tool_warned=yes ;; 5270 esac 5271 PKG_CONFIG=$ac_pt_PKG_CONFIG 5272 fi 5273 else 5274 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5275 fi 5276 5277 fi 5278 if test -n "$PKG_CONFIG"; then 5279 _pkg_min_version=0.9.0 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5281 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5282 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5284 $as_echo "yes" >&6; } 5285 else 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5287 $as_echo "no" >&6; } 5288 PKG_CONFIG="" 5289 fi 5290 fi 5291 LIBUUID= 5292 DEPLIBUUID= 5293 STATIC_LIBUUID= 5294 DEPSTATIC_LIBUUID= 5295 PROFILED_LIBUUID= 5296 DEPPROFILED_LIBUUID= 5297 UUID_CMT= 5298 # Check whether --enable-libuuid was given. 5299 if test "${enable_libuuid+set}" = set; then : 5300 enableval=$enable_libuuid; if test "$enableval" = "no" 5301 then 5302 if test -z "$PKG_CONFIG"; then 5303 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 5304 fi 5305 5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 5307 $as_echo_n "checking for uuid_generate in -luuid... " >&6; } 5308 if ${ac_cv_lib_uuid_uuid_generate+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310 else 5311 ac_check_lib_save_LIBS=$LIBS 5312 LIBS="-luuid $LIBS" 5313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5314 /* end confdefs.h. */ 5315 5316 /* Override any GCC internal prototype to avoid an error. 5317 Use char because int might match the return type of a GCC 5318 builtin and then its argument prototype would still apply. */ 5319 #ifdef __cplusplus 5320 extern "C" 5321 #endif 5322 char uuid_generate (); 5323 int 5324 main () 5325 { 5326 return uuid_generate (); 5327 ; 5328 return 0; 5329 } 5330 _ACEOF 5331 if ac_fn_c_try_link "$LINENO"; then : 5332 ac_cv_lib_uuid_uuid_generate=yes 5333 else 5334 ac_cv_lib_uuid_uuid_generate=no 5335 fi 5336 rm -f core conftest.err conftest.$ac_objext \ 5337 conftest$ac_exeext conftest.$ac_ext 5338 LIBS=$ac_check_lib_save_LIBS 5339 fi 5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 5341 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } 5342 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : 5343 LIBUUID=`$PKG_CONFIG --libs uuid`; 5344 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` 5345 else 5346 as_fn_error $? "external uuid library not found" "$LINENO" 5 5347 fi 5348 5349 PROFILED_LIBUUID=$LIBUUID 5350 UUID_CMT=# 5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 5352 $as_echo "Disabling private uuid library" >&6; } 5353 else 5354 LIBUUID='$(LIB)/libuuid'$LIB_EXT 5355 DEPLIBUUID=$LIBUUID 5356 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT 5357 DEPSTATIC_LIBUUID=$STATIC_LIBUUID 5358 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT 5359 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 5361 $as_echo "Enabling private uuid library" >&6; } 5362 fi 5363 5364 else 5365 if test -n "$PKG_CONFIG"; then 5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 5367 $as_echo_n "checking for uuid_generate in -luuid... " >&6; } 5368 if ${ac_cv_lib_uuid_uuid_generate+:} false; then : 5369 $as_echo_n "(cached) " >&6 5370 else 5371 ac_check_lib_save_LIBS=$LIBS 5372 LIBS="-luuid $LIBS" 5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5374 /* end confdefs.h. */ 5375 5376 /* Override any GCC internal prototype to avoid an error. 5377 Use char because int might match the return type of a GCC 5378 builtin and then its argument prototype would still apply. */ 5379 #ifdef __cplusplus 5380 extern "C" 5381 #endif 5382 char uuid_generate (); 5383 int 5384 main () 5385 { 5386 return uuid_generate (); 5387 ; 5388 return 0; 5389 } 5390 _ACEOF 5391 if ac_fn_c_try_link "$LINENO"; then : 5392 ac_cv_lib_uuid_uuid_generate=yes 5393 else 5394 ac_cv_lib_uuid_uuid_generate=no 5395 fi 5396 rm -f core conftest.err conftest.$ac_objext \ 5397 conftest$ac_exeext conftest.$ac_ext 5398 LIBS=$ac_check_lib_save_LIBS 5399 fi 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 5401 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } 5402 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then : 5403 LIBUUID=`$PKG_CONFIG --libs uuid`; 5404 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` 5405 fi 5406 5407 fi 5408 if test -n "$LIBUUID"; then 5409 PROFILED_LIBUUID=$LIBUUID 5410 UUID_CMT=# 5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5 5412 $as_echo "Using system uuid by default" >&6; } 5413 else 5414 LIBUUID='$(LIB)/libuuid'$LIB_EXT 5415 DEPLIBUUID=$LIBUUID 5416 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT 5417 DEPSTATIC_LIBUUID=$STATIC_LIBUUID 5418 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT 5419 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 5421 $as_echo "Enabling private uuid library by default" >&6; } 5422 fi 5423 5424 fi 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 5441 if test -n "$ac_tool_prefix"; then 5442 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 5443 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5445 $as_echo_n "checking for $ac_word... " >&6; } 5446 if ${ac_cv_path_PKG_CONFIG+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448 else 5449 case $PKG_CONFIG in 5450 [\\/]* | ?:[\\/]*) 5451 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5452 ;; 5453 *) 5454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5455 for as_dir in $PATH 5456 do 5457 IFS=$as_save_IFS 5458 test -z "$as_dir" && as_dir=. 5459 for ac_exec_ext in '' $ac_executable_extensions; do 5460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5461 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5463 break 2 5464 fi 5465 done 5466 done 5467 IFS=$as_save_IFS 5468 5469 ;; 5470 esac 5471 fi 5472 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5473 if test -n "$PKG_CONFIG"; then 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 5475 $as_echo "$PKG_CONFIG" >&6; } 5476 else 5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5478 $as_echo "no" >&6; } 5479 fi 5480 5481 5482 fi 5483 if test -z "$ac_cv_path_PKG_CONFIG"; then 5484 ac_pt_PKG_CONFIG=$PKG_CONFIG 5485 # Extract the first word of "pkg-config", so it can be a program name with args. 5486 set dummy pkg-config; ac_word=$2 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5488 $as_echo_n "checking for $ac_word... " >&6; } 5489 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 5490 $as_echo_n "(cached) " >&6 5491 else 5492 case $ac_pt_PKG_CONFIG in 5493 [\\/]* | ?:[\\/]*) 5494 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 5495 ;; 5496 *) 5497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5498 for as_dir in $PATH 5499 do 5500 IFS=$as_save_IFS 5501 test -z "$as_dir" && as_dir=. 5502 for ac_exec_ext in '' $ac_executable_extensions; do 5503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5504 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5506 break 2 5507 fi 5508 done 5509 done 5510 IFS=$as_save_IFS 5511 5512 ;; 5513 esac 5514 fi 5515 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 5516 if test -n "$ac_pt_PKG_CONFIG"; then 5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 5518 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 5519 else 5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5521 $as_echo "no" >&6; } 5522 fi 5523 5524 if test "x$ac_pt_PKG_CONFIG" = x; then 5525 PKG_CONFIG="" 5526 else 5527 case $cross_compiling:$ac_tool_warned in 5528 yes:) 5529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5531 ac_tool_warned=yes ;; 5532 esac 5533 PKG_CONFIG=$ac_pt_PKG_CONFIG 5534 fi 5535 else 5536 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 5537 fi 5538 5539 fi 5540 if test -n "$PKG_CONFIG"; then 5541 _pkg_min_version=0.9.0 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 5543 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 5544 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5546 $as_echo "yes" >&6; } 5547 else 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5549 $as_echo "no" >&6; } 5550 PKG_CONFIG="" 5551 fi 5552 fi 5553 LIBBLKID= 5554 DEPLIBBLKID= 5555 STATIC_LIBBLKID= 5556 DEPSTATIC_LIBBLKID= 5557 PROFILED_LIBBLKID= 5558 DEPPROFILED_LIBBLKID= 5559 BLKID_CMT= 5560 5561 # Check whether --enable-libblkid was given. 5562 if test "${enable_libblkid+set}" = set; then : 5563 enableval=$enable_libblkid; if test "$enableval" = "no" 5564 then 5565 if test -z "$PKG_CONFIG"; then 5566 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5 5567 fi 5568 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 5570 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } 5571 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573 else 5574 ac_check_lib_save_LIBS=$LIBS 5575 LIBS="-lblkid -luuid $LIBS" 5576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5577 /* end confdefs.h. */ 5578 5579 /* Override any GCC internal prototype to avoid an error. 5580 Use char because int might match the return type of a GCC 5581 builtin and then its argument prototype would still apply. */ 5582 #ifdef __cplusplus 5583 extern "C" 5584 #endif 5585 char blkid_get_cache (); 5586 int 5587 main () 5588 { 5589 return blkid_get_cache (); 5590 ; 5591 return 0; 5592 } 5593 _ACEOF 5594 if ac_fn_c_try_link "$LINENO"; then : 5595 ac_cv_lib_blkid_blkid_get_cache=yes 5596 else 5597 ac_cv_lib_blkid_blkid_get_cache=no 5598 fi 5599 rm -f core conftest.err conftest.$ac_objext \ 5600 conftest$ac_exeext conftest.$ac_ext 5601 LIBS=$ac_check_lib_save_LIBS 5602 fi 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 5604 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } 5605 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : 5606 LIBBLKID=`$PKG_CONFIG --libs blkid`; 5607 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` 5608 else 5609 as_fn_error $? "external blkid library not found" "$LINENO" 5 5610 fi 5611 5612 BLKID_CMT=# 5613 PROFILED_LIBBLKID=$LIBBLKID 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 5615 $as_echo "Disabling private blkid library" >&6; } 5616 else 5617 LIBBLKID='$(LIB)/libblkid'$LIB_EXT 5618 DEPLIBBLKID=$LIBBLKID 5619 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT 5620 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID 5621 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT 5622 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID 5623 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h 5624 5625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 5626 $as_echo "Enabling private blkid library" >&6; } 5627 fi 5628 5629 else 5630 if test -n "$PKG_CONFIG"; then 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 5632 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } 5633 if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then : 5634 $as_echo_n "(cached) " >&6 5635 else 5636 ac_check_lib_save_LIBS=$LIBS 5637 LIBS="-lblkid $LIBS" 5638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5639 /* end confdefs.h. */ 5640 5641 /* Override any GCC internal prototype to avoid an error. 5642 Use char because int might match the return type of a GCC 5643 builtin and then its argument prototype would still apply. */ 5644 #ifdef __cplusplus 5645 extern "C" 5646 #endif 5647 char blkid_get_cache (); 5648 int 5649 main () 5650 { 5651 return blkid_get_cache (); 5652 ; 5653 return 0; 5654 } 5655 _ACEOF 5656 if ac_fn_c_try_link "$LINENO"; then : 5657 ac_cv_lib_blkid_blkid_get_cache=yes 5658 else 5659 ac_cv_lib_blkid_blkid_get_cache=no 5660 fi 5661 rm -f core conftest.err conftest.$ac_objext \ 5662 conftest$ac_exeext conftest.$ac_ext 5663 LIBS=$ac_check_lib_save_LIBS 5664 fi 5665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 5666 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } 5667 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then : 5668 LIBBLKID=`$PKG_CONFIG --libs blkid`; 5669 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` 5670 fi 5671 5672 fi 5673 if test -n "$LIBBLKID"; then 5674 BLKID_CMT=# 5675 PROFILED_LIBBLKID=$LIBBLKID 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5 5677 $as_echo "Using system blkid library by default" >&6; } 5678 else 5679 LIBBLKID='$(LIB)/libblkid'$LIB_EXT 5680 DEPLIBBLKID=$LIBBLKID 5681 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT 5682 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID 5683 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT 5684 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID 5685 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h 5686 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 5688 $as_echo "Enabling private blkid library by default" >&6; } 5689 fi 5690 5691 fi 5692 5693 5694 5695 5696 5697 5698 5699 5700 ALL_CMT= 5701 SUBSET_CMT= 5702 # Check whether --enable-subset was given. 5703 if test "${enable_subset+set}" = set; then : 5704 enableval=$enable_subset; if test "$enableval" = "no" 5705 then 5706 SUBSET_CMT=# 5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5 5708 $as_echo "Disabling subset-only build" >&6; } 5709 else 5710 ALL_CMT=# 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5 5712 $as_echo "Enabling subset-only-build" >&6; } 5713 fi 5714 5715 fi 5716 5717 5718 5719 5720 # Check whether --enable-backtrace was given. 5721 if test "${enable_backtrace+set}" = set; then : 5722 enableval=$enable_backtrace; if test "$enableval" = "no" 5723 then 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5 5725 $as_echo "Disabling use of backtrace" >&6; } 5726 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h 5727 5728 else 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5 5730 $as_echo "Enabling use of backtrace" >&6; } 5731 fi 5732 5733 else 5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5 5735 $as_echo "Enabling use of backtrace by default" >&6; } 5736 5737 fi 5738 5739 # Check whether --enable-debugfs was given. 5740 if test "${enable_debugfs+set}" = set; then : 5741 enableval=$enable_debugfs; if test "$enableval" = "no" 5742 then 5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 5744 $as_echo "Disabling debugfs support" >&6; } 5745 DEBUGFS_CMT="#" 5746 else 5747 DEBUGFS_CMT= 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 5749 $as_echo "Enabling debugfs support" >&6; } 5750 fi 5751 5752 else 5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 5754 $as_echo "Enabling debugfs support by default" >&6; } 5755 DEBUGFS_CMT= 5756 5757 fi 5758 5759 5760 # Check whether --enable-imager was given. 5761 if test "${enable_imager+set}" = set; then : 5762 enableval=$enable_imager; if test "$enableval" = "no" 5763 then 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 5765 $as_echo "Disabling e2image support" >&6; } 5766 IMAGER_CMT="#" 5767 else 5768 IMAGER_CMT= 5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 5770 $as_echo "Enabling e2image support" >&6; } 5771 fi 5772 5773 else 5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 5775 $as_echo "Enabling e2image support by default" >&6; } 5776 IMAGER_CMT= 5777 5778 fi 5779 5780 5781 # Check whether --enable-resizer was given. 5782 if test "${enable_resizer+set}" = set; then : 5783 enableval=$enable_resizer; if test "$enableval" = "no" 5784 then 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 5786 $as_echo "Disabling e2resize support" >&6; } 5787 RESIZER_CMT="#" 5788 else 5789 RESIZER_CMT= 5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 5791 $as_echo "Enabling e2resize support" >&6; } 5792 fi 5793 5794 else 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 5796 $as_echo "Enabling e2resize support by default" >&6; } 5797 RESIZER_CMT= 5798 5799 fi 5800 5801 5802 # Check whether --enable-defrag was given. 5803 if test "${enable_defrag+set}" = set; then : 5804 enableval=$enable_defrag; if test "$enableval" = "no" 5805 then 5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 5807 $as_echo "Disabling e4defrag support" >&6; } 5808 DEFRAG_CMT="#" 5809 else 5810 DEFRAG_CMT= 5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 5812 $as_echo "Enabling e4defrag support" >&6; } 5813 fi 5814 5815 else 5816 if test -z "$WITH_DIET_LIBC" 5817 then 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 5819 $as_echo "Enabling e4defrag support by default" >&6; } 5820 DEFRAG_CMT= 5821 else 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5 5823 $as_echo "Disabling e4defrag support by default" >&6; } 5824 DEFRAG_CMT="#" 5825 fi 5826 5827 fi 5828 5829 5830 # Check whether --enable-fsck was given. 5831 if test "${enable_fsck+set}" = set; then : 5832 enableval=$enable_fsck; if test "$enableval" = "no" 5833 then 5834 FSCK_PROG='' FSCK_MAN='' 5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 5836 $as_echo "Not building fsck wrapper" >&6; } 5837 else 5838 FSCK_PROG=fsck FSCK_MAN=fsck.8 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 5840 $as_echo "Building fsck wrapper" >&6; } 5841 fi 5842 5843 else 5844 case "$host_os" in 5845 gnu*) 5846 FSCK_PROG='' FSCK_MAN='' 5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 5848 $as_echo "Not building fsck wrapper by default" >&6; } 5849 ;; 5850 *) 5851 FSCK_PROG=fsck FSCK_MAN=fsck.8 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 5853 $as_echo "Building fsck wrapper by default" >&6; } 5854 esac 5855 5856 fi 5857 5858 5859 5860 # Check whether --enable-e2initrd-helper was given. 5861 if test "${enable_e2initrd_helper+set}" = set; then : 5862 enableval=$enable_e2initrd_helper; if test "$enableval" = "no" 5863 then 5864 E2INITRD_PROG='' E2INITRD_MAN='' 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 5866 $as_echo "Not building e2initrd helper" >&6; } 5867 else 5868 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 5870 $as_echo "Building e2initrd helper" >&6; } 5871 fi 5872 5873 else 5874 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 5876 $as_echo "Building e2initrd helper by default" >&6; } 5877 5878 fi 5879 5880 5881 5882 # Check whether --enable-tls was given. 5883 if test "${enable_tls+set}" = set; then : 5884 enableval=$enable_tls; if test "$enableval" = "no" 5885 then 5886 try_tls="" 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 5888 $as_echo "Disabling thread local support" >&6; } 5889 else 5890 try_tls="yes" 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 5892 $as_echo "Enabling thread local support" >&6; } 5893 fi 5894 5895 else 5896 if test -n "$WITH_DIET_LIBC" 5897 then 5898 try_tls="" 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 5900 $as_echo "Diet libc does not support thread local support" >&6; } 5901 else 5902 try_tls="yes" 5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 5904 $as_echo "Try using thread local support by default" >&6; } 5905 fi 5906 5907 fi 5908 5909 if test "$try_tls" = "yes" 5910 then 5911 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 5913 $as_echo_n "checking for thread local storage (TLS) class... " >&6; } 5914 if ${ac_cv_tls+:} false; then : 5915 $as_echo_n "(cached) " >&6 5916 else 5917 5918 ax_tls_keywords="__thread __declspec(thread) none" 5919 for ax_tls_keyword in $ax_tls_keywords; do 5920 case $ax_tls_keyword in 5921 none) ac_cv_tls=none ; break ;; 5922 *) 5923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5924 /* end confdefs.h. */ 5925 #include <stdlib.h> 5926 static void 5927 foo(void) { 5928 static $ax_tls_keyword int bar; 5929 exit(1); 5930 } 5931 int 5932 main () 5933 { 5934 5935 ; 5936 return 0; 5937 } 5938 _ACEOF 5939 if ac_fn_c_try_compile "$LINENO"; then : 5940 ac_cv_tls=$ax_tls_keyword ; break 5941 else 5942 ac_cv_tls=none 5943 5944 fi 5945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5946 esac 5947 done 5948 5949 fi 5950 5951 5952 if test "$ac_cv_tls" != "none"; then 5953 5954 cat >>confdefs.h <<_ACEOF 5955 #define TLS $ac_cv_tls 5956 _ACEOF 5957 5958 fi 5959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 5960 $as_echo "$ac_cv_tls" >&6; } 5961 5962 fi 5963 5964 # Check whether --enable-uuidd was given. 5965 if test "${enable_uuidd+set}" = set; then : 5966 enableval=$enable_uuidd; if test "$enableval" = "no" 5967 then 5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 5969 $as_echo "Not building uuidd" >&6; } 5970 UUIDD_CMT="#" 5971 else 5972 $as_echo "#define USE_UUIDD 1" >>confdefs.h 5973 5974 UUIDD_CMT="" 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 5976 $as_echo "Building uuidd" >&6; } 5977 fi 5978 5979 else 5980 $as_echo "#define USE_UUIDD 1" >>confdefs.h 5981 5982 if test -z "$UUID_CMT" 5983 then 5984 UUIDD_CMT="" 5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 5986 $as_echo "Building uuidd by default" >&6; } 5987 else 5988 UUIDD_CMT="#" 5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5 5990 $as_echo "Disabling uuidd by default" >&6; } 5991 fi 5992 5993 fi 5994 5995 5996 5997 # Check whether --enable-mmp was given. 5998 if test "${enable_mmp+set}" = set; then : 5999 enableval=$enable_mmp; if test "$enableval" = "no" 6000 then 6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5 6002 $as_echo "Disabling mmp support" >&6; } 6003 else 6004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5 6005 $as_echo "Enabling mmp support" >&6; } 6006 $as_echo "#define CONFIG_MMP 1" >>confdefs.h 6007 6008 fi 6009 6010 else 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 6012 $as_echo "Enabling mmp support by default" >&6; } 6013 $as_echo "#define CONFIG_MMP 1" >>confdefs.h 6014 6015 6016 fi 6017 6018 6019 # Check whether --enable-tdb was given. 6020 if test "${enable_tdb+set}" = set; then : 6021 enableval=$enable_tdb; if test "$enableval" = "no" 6022 then 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5 6024 $as_echo "Disabling tdb support" >&6; } 6025 TDB_CMT="#" 6026 TDB_MAN_COMMENT='.\"' 6027 else 6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5 6029 $as_echo "Enabling tdb support" >&6; } 6030 $as_echo "#define CONFIG_TDB 1" >>confdefs.h 6031 6032 TDB_CMT="" 6033 TDB_MAN_COMMENT="" 6034 fi 6035 6036 else 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5 6038 $as_echo "Enabling mmp support by default" >&6; } 6039 $as_echo "#define CONFIG_TDB 1" >>confdefs.h 6040 6041 TDB_CMT="" 6042 TDB_MAN_COMMENT="" 6043 6044 fi 6045 6046 6047 6048 6049 # Check whether --enable-bmap-stats was given. 6050 if test "${enable_bmap_stats+set}" = set; then : 6051 enableval=$enable_bmap_stats; if test "$enableval" = "no" 6052 then 6053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5 6054 $as_echo "Disabling bitmap statistics support" >&6; } 6055 else 6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5 6057 $as_echo "Enabling bitmap statistics support" >&6; } 6058 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h 6059 6060 fi 6061 6062 else 6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5 6064 $as_echo "Enabling bitmap statistics support by default" >&6; } 6065 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h 6066 6067 6068 fi 6069 6070 6071 # Check whether --enable-bmap-stats-ops was given. 6072 if test "${enable_bmap_stats_ops+set}" = set; then : 6073 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no" 6074 then 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5 6076 $as_echo "Disabling additional bitmap statistics" >&6; } 6077 else 6078 if test "x${enable_bmap_stats}" = "xno"; then : 6079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6080 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6081 as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats 6082 See \`config.log' for more details" "$LINENO" 5; } 6083 fi 6084 6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5 6086 $as_echo "Enabling additional bitmap statistics" >&6; } 6087 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h 6088 6089 fi 6090 6091 else 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5 6093 $as_echo "Disabling additional bitmap statistics by default" >&6; } 6094 6095 fi 6096 6097 MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library 6098 6099 GETTEXT_PACKAGE=e2fsprogs 6100 PACKAGE=e2fsprogs 6101 VERSION="$E2FSPROGS_VERSION" 6102 VERSION=0.14.1 6103 6104 cat >>confdefs.h <<_ACEOF 6105 #define PACKAGE "$PACKAGE" 6106 _ACEOF 6107 6108 6109 cat >>confdefs.h <<_ACEOF 6110 #define VERSION "$VERSION" 6111 _ACEOF 6112 6113 6114 6115 6116 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 6118 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6119 set x ${MAKE-make} 6120 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6121 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 6122 $as_echo_n "(cached) " >&6 6123 else 6124 cat >conftest.make <<\_ACEOF 6125 SHELL = /bin/sh 6126 all: 6127 @echo '@@@%%%=$(MAKE)=@@@%%%' 6128 _ACEOF 6129 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 6130 case `${MAKE-make} -f conftest.make 2>/dev/null` in 6131 *@@@%%%=?*=@@@%%%*) 6132 eval ac_cv_prog_make_${ac_make}_set=yes;; 6133 *) 6134 eval ac_cv_prog_make_${ac_make}_set=no;; 6135 esac 6136 rm -f conftest.make 6137 fi 6138 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6140 $as_echo "yes" >&6; } 6141 SET_MAKE= 6142 else 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6144 $as_echo "no" >&6; } 6145 SET_MAKE="MAKE=${MAKE-make}" 6146 fi 6147 6148 # Find a good install program. We prefer a C program (faster), 6149 # so one script is as good as another. But avoid the broken or 6150 # incompatible versions: 6151 # SysV /etc/install, /usr/sbin/install 6152 # SunOS /usr/etc/install 6153 # IRIX /sbin/install 6154 # AIX /bin/install 6155 # AmigaOS /C/install, which installs bootblocks on floppy discs 6156 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 6157 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 6158 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 6159 # OS/2's system install, which has a completely different semantic 6160 # ./install, which can be erroneously created by make from ./install.sh. 6161 # Reject install programs that cannot install multiple files. 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 6163 $as_echo_n "checking for a BSD-compatible install... " >&6; } 6164 if test -z "$INSTALL"; then 6165 if ${ac_cv_path_install+:} false; then : 6166 $as_echo_n "(cached) " >&6 6167 else 6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169 for as_dir in $PATH 6170 do 6171 IFS=$as_save_IFS 6172 test -z "$as_dir" && as_dir=. 6173 # Account for people who put trailing slashes in PATH elements. 6174 case $as_dir/ in #(( 6175 ./ | .// | /[cC]/* | \ 6176 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 6177 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 6178 /usr/ucb/* ) ;; 6179 *) 6180 # OSF1 and SCO ODT 3.0 have their own names for install. 6181 # Don't use installbsd from OSF since it installs stuff as root 6182 # by default. 6183 for ac_prog in ginstall scoinst install; do 6184 for ac_exec_ext in '' $ac_executable_extensions; do 6185 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 6186 if test $ac_prog = install && 6187 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6188 # AIX install. It has an incompatible calling convention. 6189 : 6190 elif test $ac_prog = install && 6191 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 6192 # program-specific install script used by HP pwplus--don't use. 6193 : 6194 else 6195 rm -rf conftest.one conftest.two conftest.dir 6196 echo one > conftest.one 6197 echo two > conftest.two 6198 mkdir conftest.dir 6199 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 6200 test -s conftest.one && test -s conftest.two && 6201 test -s conftest.dir/conftest.one && 6202 test -s conftest.dir/conftest.two 6203 then 6204 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 6205 break 3 6206 fi 6207 fi 6208 fi 6209 done 6210 done 6211 ;; 6212 esac 6213 6214 done 6215 IFS=$as_save_IFS 6216 6217 rm -rf conftest.one conftest.two conftest.dir 6218 6219 fi 6220 if test "${ac_cv_path_install+set}" = set; then 6221 INSTALL=$ac_cv_path_install 6222 else 6223 # As a last resort, use the slow shell script. Don't cache a 6224 # value for INSTALL within a source directory, because that will 6225 # break other packages using the cache if that directory is 6226 # removed, or if the value is a relative name. 6227 INSTALL=$ac_install_sh 6228 fi 6229 fi 6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 6231 $as_echo "$INSTALL" >&6; } 6232 6233 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 6234 # It thinks the first close brace ends the variable substitution. 6235 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 6236 6237 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 6238 6239 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 6240 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 6242 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 6243 if test -z "$MKDIR_P"; then 6244 if ${ac_cv_path_mkdir+:} false; then : 6245 $as_echo_n "(cached) " >&6 6246 else 6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6248 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 6249 do 6250 IFS=$as_save_IFS 6251 test -z "$as_dir" && as_dir=. 6252 for ac_prog in mkdir gmkdir; do 6253 for ac_exec_ext in '' $ac_executable_extensions; do 6254 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 6255 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 6256 'mkdir (GNU coreutils) '* | \ 6257 'mkdir (coreutils) '* | \ 6258 'mkdir (fileutils) '4.1*) 6259 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 6260 break 3;; 6261 esac 6262 done 6263 done 6264 done 6265 IFS=$as_save_IFS 6266 6267 fi 6268 6269 test -d ./--version && rmdir ./--version 6270 if test "${ac_cv_path_mkdir+set}" = set; then 6271 MKDIR_P="$ac_cv_path_mkdir -p" 6272 else 6273 # As a last resort, use the slow shell script. Don't cache a 6274 # value for MKDIR_P within a source directory, because that will 6275 # break other packages using the cache if that directory is 6276 # removed, or if the value is a relative name. 6277 MKDIR_P="$ac_install_sh -d" 6278 fi 6279 fi 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 6281 $as_echo "$MKDIR_P" >&6; } 6282 6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 6284 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 6285 if ${ac_cv_path_SED+:} false; then : 6286 $as_echo_n "(cached) " >&6 6287 else 6288 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 6289 for ac_i in 1 2 3 4 5 6 7; do 6290 ac_script="$ac_script$as_nl$ac_script" 6291 done 6292 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 6293 { ac_script=; unset ac_script;} 6294 if test -z "$SED"; then 6295 ac_path_SED_found=false 6296 # Loop through the user's path and test for each of PROGNAME-LIST 6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6298 for as_dir in $PATH 6299 do 6300 IFS=$as_save_IFS 6301 test -z "$as_dir" && as_dir=. 6302 for ac_prog in sed gsed; do 6303 for ac_exec_ext in '' $ac_executable_extensions; do 6304 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 6305 as_fn_executable_p "$ac_path_SED" || continue 6306 # Check for GNU ac_path_SED and select it if it is found. 6307 # Check for GNU $ac_path_SED 6308 case `"$ac_path_SED" --version 2>&1` in 6309 *GNU*) 6310 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 6311 *) 6312 ac_count=0 6313 $as_echo_n 0123456789 >"conftest.in" 6314 while : 6315 do 6316 cat "conftest.in" "conftest.in" >"conftest.tmp" 6317 mv "conftest.tmp" "conftest.in" 6318 cp "conftest.in" "conftest.nl" 6319 $as_echo '' >> "conftest.nl" 6320 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 6321 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6322 as_fn_arith $ac_count + 1 && ac_count=$as_val 6323 if test $ac_count -gt ${ac_path_SED_max-0}; then 6324 # Best one so far, save it but keep looking for a better one 6325 ac_cv_path_SED="$ac_path_SED" 6326 ac_path_SED_max=$ac_count 6327 fi 6328 # 10*(2^10) chars as input seems more than enough 6329 test $ac_count -gt 10 && break 6330 done 6331 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6332 esac 6333 6334 $ac_path_SED_found && break 3 6335 done 6336 done 6337 done 6338 IFS=$as_save_IFS 6339 if test -z "$ac_cv_path_SED"; then 6340 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6341 fi 6342 else 6343 ac_cv_path_SED=$SED 6344 fi 6345 6346 fi 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6348 $as_echo "$ac_cv_path_SED" >&6; } 6349 SED="$ac_cv_path_SED" 6350 rm -f conftest.sed 6351 6352 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 6354 $as_echo_n "checking whether NLS is requested... " >&6; } 6355 # Check whether --enable-nls was given. 6356 if test "${enable_nls+set}" = set; then : 6357 enableval=$enable_nls; USE_NLS=$enableval 6358 else 6359 USE_NLS=yes 6360 fi 6361 6362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 6363 $as_echo "$USE_NLS" >&6; } 6364 6365 6366 6367 6368 GETTEXT_MACRO_VERSION=0.18 6369 6370 6371 6372 6373 # Prepare PATH_SEPARATOR. 6374 # The user is always right. 6375 if test "${PATH_SEPARATOR+set}" != set; then 6376 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 6377 # contains only /bin. Note that ksh looks also at the FPATH variable, 6378 # so we have to set that as well for the test. 6379 PATH_SEPARATOR=: 6380 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 6381 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 6382 || PATH_SEPARATOR=';' 6383 } 6384 fi 6385 6386 # Find out how to test for executable files. Don't use a zero-byte file, 6387 # as systems may use methods other than mode bits to determine executability. 6388 cat >conf$$.file <<_ASEOF 6389 #! /bin/sh 6390 exit 0 6391 _ASEOF 6392 chmod +x conf$$.file 6393 if test -x conf$$.file >/dev/null 2>&1; then 6394 ac_executable_p="test -x" 6395 else 6396 ac_executable_p="test -f" 6397 fi 6398 rm -f conf$$.file 6399 6400 # Extract the first word of "msgfmt", so it can be a program name with args. 6401 set dummy msgfmt; ac_word=$2 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6403 $as_echo_n "checking for $ac_word... " >&6; } 6404 if ${ac_cv_path_MSGFMT+:} false; then : 6405 $as_echo_n "(cached) " >&6 6406 else 6407 case "$MSGFMT" in 6408 [\\/]* | ?:[\\/]*) 6409 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 6410 ;; 6411 *) 6412 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 6413 for ac_dir in $PATH; do 6414 IFS="$ac_save_IFS" 6415 test -z "$ac_dir" && ac_dir=. 6416 for ac_exec_ext in '' $ac_executable_extensions; do 6417 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 6418 echo "$as_me: trying $ac_dir/$ac_word..." >&5 6419 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 6420 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 6421 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 6422 break 2 6423 fi 6424 fi 6425 done 6426 done 6427 IFS="$ac_save_IFS" 6428 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 6429 ;; 6430 esac 6431 fi 6432 MSGFMT="$ac_cv_path_MSGFMT" 6433 if test "$MSGFMT" != ":"; then 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 6435 $as_echo "$MSGFMT" >&6; } 6436 else 6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6438 $as_echo "no" >&6; } 6439 fi 6440 6441 # Extract the first word of "gmsgfmt", so it can be a program name with args. 6442 set dummy gmsgfmt; ac_word=$2 6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6444 $as_echo_n "checking for $ac_word... " >&6; } 6445 if ${ac_cv_path_GMSGFMT+:} false; then : 6446 $as_echo_n "(cached) " >&6 6447 else 6448 case $GMSGFMT in 6449 [\\/]* | ?:[\\/]*) 6450 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 6451 ;; 6452 *) 6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6454 for as_dir in $PATH 6455 do 6456 IFS=$as_save_IFS 6457 test -z "$as_dir" && as_dir=. 6458 for ac_exec_ext in '' $ac_executable_extensions; do 6459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6460 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 6461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6462 break 2 6463 fi 6464 done 6465 done 6466 IFS=$as_save_IFS 6467 6468 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 6469 ;; 6470 esac 6471 fi 6472 GMSGFMT=$ac_cv_path_GMSGFMT 6473 if test -n "$GMSGFMT"; then 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 6475 $as_echo "$GMSGFMT" >&6; } 6476 else 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6478 $as_echo "no" >&6; } 6479 fi 6480 6481 6482 6483 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 6484 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 6485 *) MSGFMT_015=$MSGFMT ;; 6486 esac 6487 6488 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 6489 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 6490 *) GMSGFMT_015=$GMSGFMT ;; 6491 esac 6492 6493 6494 6495 # Prepare PATH_SEPARATOR. 6496 # The user is always right. 6497 if test "${PATH_SEPARATOR+set}" != set; then 6498 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 6499 # contains only /bin. Note that ksh looks also at the FPATH variable, 6500 # so we have to set that as well for the test. 6501 PATH_SEPARATOR=: 6502 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 6503 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 6504 || PATH_SEPARATOR=';' 6505 } 6506 fi 6507 6508 # Find out how to test for executable files. Don't use a zero-byte file, 6509 # as systems may use methods other than mode bits to determine executability. 6510 cat >conf$$.file <<_ASEOF 6511 #! /bin/sh 6512 exit 0 6513 _ASEOF 6514 chmod +x conf$$.file 6515 if test -x conf$$.file >/dev/null 2>&1; then 6516 ac_executable_p="test -x" 6517 else 6518 ac_executable_p="test -f" 6519 fi 6520 rm -f conf$$.file 6521 6522 # Extract the first word of "xgettext", so it can be a program name with args. 6523 set dummy xgettext; ac_word=$2 6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6525 $as_echo_n "checking for $ac_word... " >&6; } 6526 if ${ac_cv_path_XGETTEXT+:} false; then : 6527 $as_echo_n "(cached) " >&6 6528 else 6529 case "$XGETTEXT" in 6530 [\\/]* | ?:[\\/]*) 6531 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 6532 ;; 6533 *) 6534 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 6535 for ac_dir in $PATH; do 6536 IFS="$ac_save_IFS" 6537 test -z "$ac_dir" && ac_dir=. 6538 for ac_exec_ext in '' $ac_executable_extensions; do 6539 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 6540 echo "$as_me: trying $ac_dir/$ac_word..." >&5 6541 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 6542 (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 6543 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 6544 break 2 6545 fi 6546 fi 6547 done 6548 done 6549 IFS="$ac_save_IFS" 6550 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 6551 ;; 6552 esac 6553 fi 6554 XGETTEXT="$ac_cv_path_XGETTEXT" 6555 if test "$XGETTEXT" != ":"; then 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 6557 $as_echo "$XGETTEXT" >&6; } 6558 else 6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6560 $as_echo "no" >&6; } 6561 fi 6562 6563 rm -f messages.po 6564 6565 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 6566 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 6567 *) XGETTEXT_015=$XGETTEXT ;; 6568 esac 6569 6570 6571 6572 # Prepare PATH_SEPARATOR. 6573 # The user is always right. 6574 if test "${PATH_SEPARATOR+set}" != set; then 6575 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 6576 # contains only /bin. Note that ksh looks also at the FPATH variable, 6577 # so we have to set that as well for the test. 6578 PATH_SEPARATOR=: 6579 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 6580 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 6581 || PATH_SEPARATOR=';' 6582 } 6583 fi 6584 6585 # Find out how to test for executable files. Don't use a zero-byte file, 6586 # as systems may use methods other than mode bits to determine executability. 6587 cat >conf$$.file <<_ASEOF 6588 #! /bin/sh 6589 exit 0 6590 _ASEOF 6591 chmod +x conf$$.file 6592 if test -x conf$$.file >/dev/null 2>&1; then 6593 ac_executable_p="test -x" 6594 else 6595 ac_executable_p="test -f" 6596 fi 6597 rm -f conf$$.file 6598 6599 # Extract the first word of "msgmerge", so it can be a program name with args. 6600 set dummy msgmerge; ac_word=$2 6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6602 $as_echo_n "checking for $ac_word... " >&6; } 6603 if ${ac_cv_path_MSGMERGE+:} false; then : 6604 $as_echo_n "(cached) " >&6 6605 else 6606 case "$MSGMERGE" in 6607 [\\/]* | ?:[\\/]*) 6608 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 6609 ;; 6610 *) 6611 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 6612 for ac_dir in $PATH; do 6613 IFS="$ac_save_IFS" 6614 test -z "$ac_dir" && ac_dir=. 6615 for ac_exec_ext in '' $ac_executable_extensions; do 6616 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 6617 echo "$as_me: trying $ac_dir/$ac_word..." >&5 6618 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 6619 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 6620 break 2 6621 fi 6622 fi 6623 done 6624 done 6625 IFS="$ac_save_IFS" 6626 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 6627 ;; 6628 esac 6629 fi 6630 MSGMERGE="$ac_cv_path_MSGMERGE" 6631 if test "$MSGMERGE" != ":"; then 6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 6633 $as_echo "$MSGMERGE" >&6; } 6634 else 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6636 $as_echo "no" >&6; } 6637 fi 6638 6639 6640 test -n "$localedir" || localedir='${datadir}/locale' 6641 6642 6643 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 6644 6645 6646 ac_config_commands="$ac_config_commands po-directories" 6647 6648 6649 6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 6651 $as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } 6652 if ${ac_cv_gnu_library_2+:} false; then : 6653 $as_echo_n "(cached) " >&6 6654 else 6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6656 /* end confdefs.h. */ 6657 6658 #include <features.h> 6659 #ifdef __GNU_LIBRARY__ 6660 #if (__GLIBC__ >= 2) && !defined __UCLIBC__ 6661 Lucky GNU user 6662 #endif 6663 #endif 6664 6665 _ACEOF 6666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6667 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 6668 ac_cv_gnu_library_2=yes 6669 else 6670 ac_cv_gnu_library_2=no 6671 fi 6672 rm -f conftest* 6673 6674 6675 6676 fi 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 6678 $as_echo "$ac_cv_gnu_library_2" >&6; } 6679 6680 GLIBC2="$ac_cv_gnu_library_2" 6681 6682 6683 if test -n "$ac_tool_prefix"; then 6684 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6685 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6687 $as_echo_n "checking for $ac_word... " >&6; } 6688 if ${ac_cv_prog_RANLIB+:} false; then : 6689 $as_echo_n "(cached) " >&6 6690 else 6691 if test -n "$RANLIB"; then 6692 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6693 else 6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6695 for as_dir in $PATH 6696 do 6697 IFS=$as_save_IFS 6698 test -z "$as_dir" && as_dir=. 6699 for ac_exec_ext in '' $ac_executable_extensions; do 6700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6701 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6703 break 2 6704 fi 6705 done 6706 done 6707 IFS=$as_save_IFS 6708 6709 fi 6710 fi 6711 RANLIB=$ac_cv_prog_RANLIB 6712 if test -n "$RANLIB"; then 6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6714 $as_echo "$RANLIB" >&6; } 6715 else 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6717 $as_echo "no" >&6; } 6718 fi 6719 6720 6721 fi 6722 if test -z "$ac_cv_prog_RANLIB"; then 6723 ac_ct_RANLIB=$RANLIB 6724 # Extract the first word of "ranlib", so it can be a program name with args. 6725 set dummy ranlib; ac_word=$2 6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6727 $as_echo_n "checking for $ac_word... " >&6; } 6728 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6729 $as_echo_n "(cached) " >&6 6730 else 6731 if test -n "$ac_ct_RANLIB"; then 6732 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6733 else 6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6735 for as_dir in $PATH 6736 do 6737 IFS=$as_save_IFS 6738 test -z "$as_dir" && as_dir=. 6739 for ac_exec_ext in '' $ac_executable_extensions; do 6740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6741 ac_cv_prog_ac_ct_RANLIB="ranlib" 6742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6743 break 2 6744 fi 6745 done 6746 done 6747 IFS=$as_save_IFS 6748 6749 fi 6750 fi 6751 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6752 if test -n "$ac_ct_RANLIB"; then 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6754 $as_echo "$ac_ct_RANLIB" >&6; } 6755 else 6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6757 $as_echo "no" >&6; } 6758 fi 6759 6760 if test "x$ac_ct_RANLIB" = x; then 6761 RANLIB=":" 6762 else 6763 case $cross_compiling:$ac_tool_warned in 6764 yes:) 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6766 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6767 ac_tool_warned=yes ;; 6768 esac 6769 RANLIB=$ac_ct_RANLIB 6770 fi 6771 else 6772 RANLIB="$ac_cv_prog_RANLIB" 6773 fi 6774 6775 6776 6777 CFLAG_VISIBILITY= 6778 HAVE_VISIBILITY=0 6779 if test -n "$GCC"; then 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 6781 $as_echo_n "checking whether the -Werror option is usable... " >&6; } 6782 if ${gl_cv_cc_vis_werror+:} false; then : 6783 $as_echo_n "(cached) " >&6 6784 else 6785 6786 gl_save_CFLAGS="$CFLAGS" 6787 CFLAGS="$CFLAGS -Werror" 6788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6789 /* end confdefs.h. */ 6790 6791 int 6792 main () 6793 { 6794 6795 ; 6796 return 0; 6797 } 6798 _ACEOF 6799 if ac_fn_c_try_compile "$LINENO"; then : 6800 gl_cv_cc_vis_werror=yes 6801 else 6802 gl_cv_cc_vis_werror=no 6803 fi 6804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6805 CFLAGS="$gl_save_CFLAGS" 6806 fi 6807 6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 6809 $as_echo "$gl_cv_cc_vis_werror" >&6; } 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 6811 $as_echo_n "checking for simple visibility declarations... " >&6; } 6812 if ${gl_cv_cc_visibility+:} false; then : 6813 $as_echo_n "(cached) " >&6 6814 else 6815 6816 gl_save_CFLAGS="$CFLAGS" 6817 CFLAGS="$CFLAGS -fvisibility=hidden" 6818 if test $gl_cv_cc_vis_werror = yes; then 6819 CFLAGS="$CFLAGS -Werror" 6820 fi 6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6822 /* end confdefs.h. */ 6823 extern __attribute__((__visibility__("hidden"))) int hiddenvar; 6824 extern __attribute__((__visibility__("default"))) int exportedvar; 6825 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 6826 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 6827 void dummyfunc (void) {} 6828 6829 int 6830 main () 6831 { 6832 6833 ; 6834 return 0; 6835 } 6836 _ACEOF 6837 if ac_fn_c_try_compile "$LINENO"; then : 6838 gl_cv_cc_visibility=yes 6839 else 6840 gl_cv_cc_visibility=no 6841 fi 6842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6843 CFLAGS="$gl_save_CFLAGS" 6844 fi 6845 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 6847 $as_echo "$gl_cv_cc_visibility" >&6; } 6848 if test $gl_cv_cc_visibility = yes; then 6849 CFLAG_VISIBILITY="-fvisibility=hidden" 6850 HAVE_VISIBILITY=1 6851 fi 6852 fi 6853 6854 6855 6856 cat >>confdefs.h <<_ACEOF 6857 #define HAVE_VISIBILITY $HAVE_VISIBILITY 6858 _ACEOF 6859 6860 6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 6862 $as_echo_n "checking for inline... " >&6; } 6863 if ${ac_cv_c_inline+:} false; then : 6864 $as_echo_n "(cached) " >&6 6865 else 6866 ac_cv_c_inline=no 6867 for ac_kw in inline __inline__ __inline; do 6868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6869 /* end confdefs.h. */ 6870 #ifndef __cplusplus 6871 typedef int foo_t; 6872 static $ac_kw foo_t static_foo () {return 0; } 6873 $ac_kw foo_t foo () {return 0; } 6874 #endif 6875 6876 _ACEOF 6877 if ac_fn_c_try_compile "$LINENO"; then : 6878 ac_cv_c_inline=$ac_kw 6879 fi 6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6881 test "$ac_cv_c_inline" != no && break 6882 done 6883 6884 fi 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 6886 $as_echo "$ac_cv_c_inline" >&6; } 6887 6888 case $ac_cv_c_inline in 6889 inline | yes) ;; 6890 *) 6891 case $ac_cv_c_inline in 6892 no) ac_val=;; 6893 *) ac_val=$ac_cv_c_inline;; 6894 esac 6895 cat >>confdefs.h <<_ACEOF 6896 #ifndef __cplusplus 6897 #define inline $ac_val 6898 #endif 6899 _ACEOF 6900 ;; 6901 esac 6902 6903 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 6904 if test "x$ac_cv_type_size_t" = xyes; then : 6905 6906 else 6907 6908 cat >>confdefs.h <<_ACEOF 6909 #define size_t unsigned int 6910 _ACEOF 6911 6912 fi 6913 6914 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 6916 $as_echo_n "checking for stdint.h... " >&6; } 6917 if ${gl_cv_header_stdint_h+:} false; then : 6918 $as_echo_n "(cached) " >&6 6919 else 6920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6921 /* end confdefs.h. */ 6922 #include <sys/types.h> 6923 #include <stdint.h> 6924 int 6925 main () 6926 { 6927 uintmax_t i = (uintmax_t) -1; return !i; 6928 ; 6929 return 0; 6930 } 6931 _ACEOF 6932 if ac_fn_c_try_compile "$LINENO"; then : 6933 gl_cv_header_stdint_h=yes 6934 else 6935 gl_cv_header_stdint_h=no 6936 fi 6937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6938 fi 6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 6940 $as_echo "$gl_cv_header_stdint_h" >&6; } 6941 if test $gl_cv_header_stdint_h = yes; then 6942 6943 cat >>confdefs.h <<_ACEOF 6944 #define HAVE_STDINT_H_WITH_UINTMAX 1 6945 _ACEOF 6946 6947 fi 6948 6949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 6950 # for constant arguments. Useless! 6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 6952 $as_echo_n "checking for working alloca.h... " >&6; } 6953 if ${ac_cv_working_alloca_h+:} false; then : 6954 $as_echo_n "(cached) " >&6 6955 else 6956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6957 /* end confdefs.h. */ 6958 #include <alloca.h> 6959 int 6960 main () 6961 { 6962 char *p = (char *) alloca (2 * sizeof (int)); 6963 if (p) return 0; 6964 ; 6965 return 0; 6966 } 6967 _ACEOF 6968 if ac_fn_c_try_link "$LINENO"; then : 6969 ac_cv_working_alloca_h=yes 6970 else 6971 ac_cv_working_alloca_h=no 6972 fi 6973 rm -f core conftest.err conftest.$ac_objext \ 6974 conftest$ac_exeext conftest.$ac_ext 6975 fi 6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 6977 $as_echo "$ac_cv_working_alloca_h" >&6; } 6978 if test $ac_cv_working_alloca_h = yes; then 6979 6980 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 6981 6982 fi 6983 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 6985 $as_echo_n "checking for alloca... " >&6; } 6986 if ${ac_cv_func_alloca_works+:} false; then : 6987 $as_echo_n "(cached) " >&6 6988 else 6989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6990 /* end confdefs.h. */ 6991 #ifdef __GNUC__ 6992 # define alloca __builtin_alloca 6993 #else 6994 # ifdef _MSC_VER 6995 # include <malloc.h> 6996 # define alloca _alloca 6997 # else 6998 # ifdef HAVE_ALLOCA_H 6999 # include <alloca.h> 7000 # else 7001 # ifdef _AIX 7002 #pragma alloca 7003 # else 7004 # ifndef alloca /* predefined by HP cc +Olibcalls */ 7005 void *alloca (size_t); 7006 # endif 7007 # endif 7008 # endif 7009 # endif 7010 #endif 7011 7012 int 7013 main () 7014 { 7015 char *p = (char *) alloca (1); 7016 if (p) return 0; 7017 ; 7018 return 0; 7019 } 7020 _ACEOF 7021 if ac_fn_c_try_link "$LINENO"; then : 7022 ac_cv_func_alloca_works=yes 7023 else 7024 ac_cv_func_alloca_works=no 7025 fi 7026 rm -f core conftest.err conftest.$ac_objext \ 7027 conftest$ac_exeext conftest.$ac_ext 7028 fi 7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 7030 $as_echo "$ac_cv_func_alloca_works" >&6; } 7031 7032 if test $ac_cv_func_alloca_works = yes; then 7033 7034 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 7035 7036 else 7037 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 7038 # that cause trouble. Some versions do not even contain alloca or 7039 # contain a buggy version. If you still want to use their alloca, 7040 # use ar to extract alloca.o from them instead of compiling alloca.c. 7041 7042 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 7043 7044 $as_echo "#define C_ALLOCA 1" >>confdefs.h 7045 7046 7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 7048 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 7049 if ${ac_cv_os_cray+:} false; then : 7050 $as_echo_n "(cached) " >&6 7051 else 7052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7053 /* end confdefs.h. */ 7054 #if defined CRAY && ! defined CRAY2 7055 webecray 7056 #else 7057 wenotbecray 7058 #endif 7059 7060 _ACEOF 7061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7062 $EGREP "webecray" >/dev/null 2>&1; then : 7063 ac_cv_os_cray=yes 7064 else 7065 ac_cv_os_cray=no 7066 fi 7067 rm -f conftest* 7068 7069 fi 7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 7071 $as_echo "$ac_cv_os_cray" >&6; } 7072 if test $ac_cv_os_cray = yes; then 7073 for ac_func in _getb67 GETB67 getb67; do 7074 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7075 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 7076 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 7077 7078 cat >>confdefs.h <<_ACEOF 7079 #define CRAY_STACKSEG_END $ac_func 7080 _ACEOF 7081 7082 break 7083 fi 7084 7085 done 7086 fi 7087 7088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 7089 $as_echo_n "checking stack direction for C alloca... " >&6; } 7090 if ${ac_cv_c_stack_direction+:} false; then : 7091 $as_echo_n "(cached) " >&6 7092 else 7093 if test "$cross_compiling" = yes; then : 7094 ac_cv_c_stack_direction=0 7095 else 7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7097 /* end confdefs.h. */ 7098 $ac_includes_default 7099 int 7100 find_stack_direction (int *addr, int depth) 7101 { 7102 int dir, dummy = 0; 7103 if (! addr) 7104 addr = &dummy; 7105 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 7106 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 7107 return dir + dummy; 7108 } 7109 7110 int 7111 main (int argc, char **argv) 7112 { 7113 return find_stack_direction (0, argc + !argv + 20) < 0; 7114 } 7115 _ACEOF 7116 if ac_fn_c_try_run "$LINENO"; then : 7117 ac_cv_c_stack_direction=1 7118 else 7119 ac_cv_c_stack_direction=-1 7120 fi 7121 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7122 conftest.$ac_objext conftest.beam conftest.$ac_ext 7123 fi 7124 7125 fi 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 7127 $as_echo "$ac_cv_c_stack_direction" >&6; } 7128 cat >>confdefs.h <<_ACEOF 7129 #define STACK_DIRECTION $ac_cv_c_stack_direction 7130 _ACEOF 7131 7132 7133 fi 7134 7135 7136 7137 7138 for ac_header in $ac_header_list 7139 do : 7140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7141 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7142 " 7143 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7144 cat >>confdefs.h <<_ACEOF 7145 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7146 _ACEOF 7147 7148 fi 7149 7150 done 7151 7152 7153 7154 7155 7156 7157 7158 7159 for ac_func in getpagesize 7160 do : 7161 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 7162 if test "x$ac_cv_func_getpagesize" = xyes; then : 7163 cat >>confdefs.h <<_ACEOF 7164 #define HAVE_GETPAGESIZE 1 7165 _ACEOF 7166 7167 fi 7168 done 7169 7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 7171 $as_echo_n "checking for working mmap... " >&6; } 7172 if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 7173 $as_echo_n "(cached) " >&6 7174 else 7175 if test "$cross_compiling" = yes; then : 7176 ac_cv_func_mmap_fixed_mapped=no 7177 else 7178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7179 /* end confdefs.h. */ 7180 $ac_includes_default 7181 /* malloc might have been renamed as rpl_malloc. */ 7182 #undef malloc 7183 7184 /* Thanks to Mike Haertel and Jim Avera for this test. 7185 Here is a matrix of mmap possibilities: 7186 mmap private not fixed 7187 mmap private fixed at somewhere currently unmapped 7188 mmap private fixed at somewhere already mapped 7189 mmap shared not fixed 7190 mmap shared fixed at somewhere currently unmapped 7191 mmap shared fixed at somewhere already mapped 7192 For private mappings, we should verify that changes cannot be read() 7193 back from the file, nor mmap's back from the file at a different 7194 address. (There have been systems where private was not correctly 7195 implemented like the infamous i386 svr4.0, and systems where the 7196 VM page cache was not coherent with the file system buffer cache 7197 like early versions of FreeBSD and possibly contemporary NetBSD.) 7198 For shared mappings, we should conversely verify that changes get 7199 propagated back to all the places they're supposed to be. 7200 7201 Grep wants private fixed already mapped. 7202 The main things grep needs to know about mmap are: 7203 * does it exist and is it safe to write into the mmap'd area 7204 * how to use it (BSD variants) */ 7205 7206 #include <fcntl.h> 7207 #include <sys/mman.h> 7208 7209 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 7210 char *malloc (); 7211 #endif 7212 7213 /* This mess was copied from the GNU getpagesize.h. */ 7214 #ifndef HAVE_GETPAGESIZE 7215 # ifdef _SC_PAGESIZE 7216 # define getpagesize() sysconf(_SC_PAGESIZE) 7217 # else /* no _SC_PAGESIZE */ 7218 # ifdef HAVE_SYS_PARAM_H 7219 # include <sys/param.h> 7220 # ifdef EXEC_PAGESIZE 7221 # define getpagesize() EXEC_PAGESIZE 7222 # else /* no EXEC_PAGESIZE */ 7223 # ifdef NBPG 7224 # define getpagesize() NBPG * CLSIZE 7225 # ifndef CLSIZE 7226 # define CLSIZE 1 7227 # endif /* no CLSIZE */ 7228 # else /* no NBPG */ 7229 # ifdef NBPC 7230 # define getpagesize() NBPC 7231 # else /* no NBPC */ 7232 # ifdef PAGESIZE 7233 # define getpagesize() PAGESIZE 7234 # endif /* PAGESIZE */ 7235 # endif /* no NBPC */ 7236 # endif /* no NBPG */ 7237 # endif /* no EXEC_PAGESIZE */ 7238 # else /* no HAVE_SYS_PARAM_H */ 7239 # define getpagesize() 8192 /* punt totally */ 7240 # endif /* no HAVE_SYS_PARAM_H */ 7241 # endif /* no _SC_PAGESIZE */ 7242 7243 #endif /* no HAVE_GETPAGESIZE */ 7244 7245 int 7246 main () 7247 { 7248 char *data, *data2, *data3; 7249 const char *cdata2; 7250 int i, pagesize; 7251 int fd, fd2; 7252 7253 pagesize = getpagesize (); 7254 7255 /* First, make a file with some known garbage in it. */ 7256 data = (char *) malloc (pagesize); 7257 if (!data) 7258 return 1; 7259 for (i = 0; i < pagesize; ++i) 7260 *(data + i) = rand (); 7261 umask (0); 7262 fd = creat ("conftest.mmap", 0600); 7263 if (fd < 0) 7264 return 2; 7265 if (write (fd, data, pagesize) != pagesize) 7266 return 3; 7267 close (fd); 7268 7269 /* Next, check that the tail of a page is zero-filled. File must have 7270 non-zero length, otherwise we risk SIGBUS for entire page. */ 7271 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 7272 if (fd2 < 0) 7273 return 4; 7274 cdata2 = ""; 7275 if (write (fd2, cdata2, 1) != 1) 7276 return 5; 7277 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 7278 if (data2 == MAP_FAILED) 7279 return 6; 7280 for (i = 0; i < pagesize; ++i) 7281 if (*(data2 + i)) 7282 return 7; 7283 close (fd2); 7284 if (munmap (data2, pagesize)) 7285 return 8; 7286 7287 /* Next, try to mmap the file at a fixed address which already has 7288 something else allocated at it. If we can, also make sure that 7289 we see the same garbage. */ 7290 fd = open ("conftest.mmap", O_RDWR); 7291 if (fd < 0) 7292 return 9; 7293 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 7294 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 7295 return 10; 7296 for (i = 0; i < pagesize; ++i) 7297 if (*(data + i) != *(data2 + i)) 7298 return 11; 7299 7300 /* Finally, make sure that changes to the mapped area do not 7301 percolate back to the file as seen by read(). (This is a bug on 7302 some variants of i386 svr4.0.) */ 7303 for (i = 0; i < pagesize; ++i) 7304 *(data2 + i) = *(data2 + i) + 1; 7305 data3 = (char *) malloc (pagesize); 7306 if (!data3) 7307 return 12; 7308 if (read (fd, data3, pagesize) != pagesize) 7309 return 13; 7310 for (i = 0; i < pagesize; ++i) 7311 if (*(data + i) != *(data3 + i)) 7312 return 14; 7313 close (fd); 7314 free (data); 7315 free (data3); 7316 return 0; 7317 } 7318 _ACEOF 7319 if ac_fn_c_try_run "$LINENO"; then : 7320 ac_cv_func_mmap_fixed_mapped=yes 7321 else 7322 ac_cv_func_mmap_fixed_mapped=no 7323 fi 7324 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7325 conftest.$ac_objext conftest.beam conftest.$ac_ext 7326 fi 7327 7328 fi 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 7330 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 7331 if test $ac_cv_func_mmap_fixed_mapped = yes; then 7332 7333 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 7334 7335 fi 7336 rm -f conftest.mmap conftest.txt 7337 7338 7339 7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 7341 $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 7342 if ${gt_cv_int_divbyzero_sigfpe+:} false; then : 7343 $as_echo_n "(cached) " >&6 7344 else 7345 7346 gt_cv_int_divbyzero_sigfpe= 7347 case "$host_os" in 7348 macos* | darwin[6-9]* | darwin[1-9][0-9]*) 7349 # On Mac OS X 10.2 or newer, just assume the same as when cross- 7350 # compiling. If we were to perform the real test, 1 Crash Report 7351 # dialog window would pop up. 7352 case "$host_cpu" in 7353 i[34567]86 | x86_64) 7354 gt_cv_int_divbyzero_sigfpe="guessing yes" ;; 7355 esac 7356 ;; 7357 esac 7358 if test -z "$gt_cv_int_divbyzero_sigfpe"; then 7359 if test "$cross_compiling" = yes; then : 7360 7361 # Guess based on the CPU. 7362 case "$host_cpu" in 7363 alpha* | i[34567]86 | x86_64 | m68k | s390*) 7364 gt_cv_int_divbyzero_sigfpe="guessing yes";; 7365 *) 7366 gt_cv_int_divbyzero_sigfpe="guessing no";; 7367 esac 7368 7369 else 7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7371 /* end confdefs.h. */ 7372 7373 #include <stdlib.h> 7374 #include <signal.h> 7375 7376 static void 7377 sigfpe_handler (int sig) 7378 { 7379 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 7380 exit (sig != SIGFPE); 7381 } 7382 7383 int x = 1; 7384 int y = 0; 7385 int z; 7386 int nan; 7387 7388 int main () 7389 { 7390 signal (SIGFPE, sigfpe_handler); 7391 /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 7392 #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 7393 signal (SIGTRAP, sigfpe_handler); 7394 #endif 7395 /* Linux/SPARC yields signal SIGILL. */ 7396 #if defined (__sparc__) && defined (__linux__) 7397 signal (SIGILL, sigfpe_handler); 7398 #endif 7399 7400 z = x / y; 7401 nan = y / y; 7402 exit (2); 7403 } 7404 7405 _ACEOF 7406 if ac_fn_c_try_run "$LINENO"; then : 7407 gt_cv_int_divbyzero_sigfpe=yes 7408 else 7409 gt_cv_int_divbyzero_sigfpe=no 7410 fi 7411 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7412 conftest.$ac_objext conftest.beam conftest.$ac_ext 7413 fi 7414 7415 fi 7416 7417 fi 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 7419 $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 7420 case "$gt_cv_int_divbyzero_sigfpe" in 7421 *yes) value=1;; 7422 *) value=0;; 7423 esac 7424 7425 cat >>confdefs.h <<_ACEOF 7426 #define INTDIV0_RAISES_SIGFPE $value 7427 _ACEOF 7428 7429 7430 7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 7432 $as_echo_n "checking for inttypes.h... " >&6; } 7433 if ${gl_cv_header_inttypes_h+:} false; then : 7434 $as_echo_n "(cached) " >&6 7435 else 7436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7437 /* end confdefs.h. */ 7438 7439 #include <sys/types.h> 7440 #include <inttypes.h> 7441 7442 int 7443 main () 7444 { 7445 uintmax_t i = (uintmax_t) -1; return !i; 7446 ; 7447 return 0; 7448 } 7449 _ACEOF 7450 if ac_fn_c_try_compile "$LINENO"; then : 7451 gl_cv_header_inttypes_h=yes 7452 else 7453 gl_cv_header_inttypes_h=no 7454 fi 7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7456 fi 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 7458 $as_echo "$gl_cv_header_inttypes_h" >&6; } 7459 if test $gl_cv_header_inttypes_h = yes; then 7460 7461 cat >>confdefs.h <<_ACEOF 7462 #define HAVE_INTTYPES_H_WITH_UINTMAX 1 7463 _ACEOF 7464 7465 fi 7466 7467 7468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 7469 $as_echo_n "checking for unsigned long long int... " >&6; } 7470 if ${ac_cv_type_unsigned_long_long_int+:} false; then : 7471 $as_echo_n "(cached) " >&6 7472 else 7473 ac_cv_type_unsigned_long_long_int=yes 7474 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 7475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7476 /* end confdefs.h. */ 7477 7478 /* For now, do not test the preprocessor; as of 2007 there are too many 7479 implementations with broken preprocessors. Perhaps this can 7480 be revisited in 2012. In the meantime, code should not expect 7481 #if to work with literals wider than 32 bits. */ 7482 /* Test literals. */ 7483 long long int ll = 9223372036854775807ll; 7484 long long int nll = -9223372036854775807LL; 7485 unsigned long long int ull = 18446744073709551615ULL; 7486 /* Test constant expressions. */ 7487 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 7488 ? 1 : -1)]; 7489 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 7490 ? 1 : -1)]; 7491 int i = 63; 7492 int 7493 main () 7494 { 7495 /* Test availability of runtime routines for shift and division. */ 7496 long long int llmax = 9223372036854775807ll; 7497 unsigned long long int ullmax = 18446744073709551615ull; 7498 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 7499 | (llmax / ll) | (llmax % ll) 7500 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 7501 | (ullmax / ull) | (ullmax % ull)); 7502 ; 7503 return 0; 7504 } 7505 7506 _ACEOF 7507 if ac_fn_c_try_link "$LINENO"; then : 7508 7509 else 7510 ac_cv_type_unsigned_long_long_int=no 7511 fi 7512 rm -f core conftest.err conftest.$ac_objext \ 7513 conftest$ac_exeext conftest.$ac_ext 7514 fi 7515 fi 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 7517 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 7518 if test $ac_cv_type_unsigned_long_long_int = yes; then 7519 7520 $as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 7521 7522 fi 7523 7524 7525 7526 7527 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 7528 7529 test $ac_cv_type_unsigned_long_long_int = yes \ 7530 && ac_type='unsigned long long' \ 7531 || ac_type='unsigned long' 7532 7533 cat >>confdefs.h <<_ACEOF 7534 #define uintmax_t $ac_type 7535 _ACEOF 7536 7537 else 7538 7539 $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 7540 7541 fi 7542 7543 7544 for ac_header in inttypes.h 7545 do : 7546 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 7547 if test "x$ac_cv_header_inttypes_h" = xyes; then : 7548 cat >>confdefs.h <<_ACEOF 7549 #define HAVE_INTTYPES_H 1 7550 _ACEOF 7551 7552 fi 7553 7554 done 7555 7556 if test $ac_cv_header_inttypes_h = yes; then 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 7558 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 7559 if ${gt_cv_inttypes_pri_broken+:} false; then : 7560 $as_echo_n "(cached) " >&6 7561 else 7562 7563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7564 /* end confdefs.h. */ 7565 7566 #include <inttypes.h> 7567 #ifdef PRId32 7568 char *p = PRId32; 7569 #endif 7570 7571 int 7572 main () 7573 { 7574 7575 ; 7576 return 0; 7577 } 7578 _ACEOF 7579 if ac_fn_c_try_compile "$LINENO"; then : 7580 gt_cv_inttypes_pri_broken=no 7581 else 7582 gt_cv_inttypes_pri_broken=yes 7583 fi 7584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7585 7586 fi 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 7588 $as_echo "$gt_cv_inttypes_pri_broken" >&6; } 7589 fi 7590 if test "$gt_cv_inttypes_pri_broken" = yes; then 7591 7592 cat >>confdefs.h <<_ACEOF 7593 #define PRI_MACROS_BROKEN 1 7594 _ACEOF 7595 7596 PRI_MACROS_BROKEN=1 7597 else 7598 PRI_MACROS_BROKEN=0 7599 fi 7600 7601 7602 7603 7604 7605 7606 7607 # Check whether --enable-threads was given. 7608 if test "${enable_threads+set}" = set; then : 7609 enableval=$enable_threads; gl_use_threads=$enableval 7610 else 7611 if test -n "$gl_use_threads_default"; then 7612 gl_use_threads="$gl_use_threads_default" 7613 else 7614 case "$host_os" in 7615 osf*) gl_use_threads=no ;; 7616 cygwin*) 7617 case `uname -r` in 7618 1.[0-5].*) gl_use_threads=no ;; 7619 *) gl_use_threads=yes ;; 7620 esac 7621 ;; 7622 *) gl_use_threads=yes ;; 7623 esac 7624 fi 7625 7626 fi 7627 7628 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 7629 # For using <pthread.h>: 7630 case "$host_os" in 7631 osf*) 7632 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 7633 # groks <pthread.h>. cc also understands the flag -pthread, but 7634 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 7635 # 2. putting a flag into CPPFLAGS that has an effect on the linker 7636 # causes the AC_LINK_IFELSE test below to succeed unexpectedly, 7637 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 7638 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 7639 ;; 7640 esac 7641 # Some systems optimize for single-threaded programs by default, and 7642 # need special flags to disable these optimizations. For example, the 7643 # definition of 'errno' in <errno.h>. 7644 case "$host_os" in 7645 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 7646 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 7647 esac 7648 fi 7649 7650 7651 7652 7653 7654 if test "X$prefix" = "XNONE"; then 7655 acl_final_prefix="$ac_default_prefix" 7656 else 7657 acl_final_prefix="$prefix" 7658 fi 7659 if test "X$exec_prefix" = "XNONE"; then 7660 acl_final_exec_prefix='${prefix}' 7661 else 7662 acl_final_exec_prefix="$exec_prefix" 7663 fi 7664 acl_save_prefix="$prefix" 7665 prefix="$acl_final_prefix" 7666 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 7667 prefix="$acl_save_prefix" 7668 7669 7670 7671 # Check whether --with-gnu-ld was given. 7672 if test "${with_gnu_ld+set}" = set; then : 7673 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 7674 else 7675 with_gnu_ld=no 7676 fi 7677 7678 # Prepare PATH_SEPARATOR. 7679 # The user is always right. 7680 if test "${PATH_SEPARATOR+set}" != set; then 7681 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 7682 # contains only /bin. Note that ksh looks also at the FPATH variable, 7683 # so we have to set that as well for the test. 7684 PATH_SEPARATOR=: 7685 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 7686 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 7687 || PATH_SEPARATOR=';' 7688 } 7689 fi 7690 7691 ac_prog=ld 7692 if test "$GCC" = yes; then 7693 # Check if gcc -print-prog-name=ld gives a path. 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 7695 $as_echo_n "checking for ld used by $CC... " >&6; } 7696 case $host in 7697 *-*-mingw*) 7698 # gcc leaves a trailing carriage return which upsets mingw 7699 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 7700 *) 7701 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 7702 esac 7703 case $ac_prog in 7704 # Accept absolute paths. 7705 [\\/]* | ?:[\\/]*) 7706 re_direlt='/[^/][^/]*/\.\./' 7707 # Canonicalize the pathname of ld 7708 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 7709 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 7710 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 7711 done 7712 test -z "$LD" && LD="$ac_prog" 7713 ;; 7714 "") 7715 # If it fails, then pretend we aren't using GCC. 7716 ac_prog=ld 7717 ;; 7718 *) 7719 # If it is relative, then search for the first ld in PATH. 7720 with_gnu_ld=unknown 7721 ;; 7722 esac 7723 elif test "$with_gnu_ld" = yes; then 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 7725 $as_echo_n "checking for GNU ld... " >&6; } 7726 else 7727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 7728 $as_echo_n "checking for non-GNU ld... " >&6; } 7729 fi 7730 if ${acl_cv_path_LD+:} false; then : 7731 $as_echo_n "(cached) " >&6 7732 else 7733 if test -z "$LD"; then 7734 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7735 for ac_dir in $PATH; do 7736 IFS="$acl_save_ifs" 7737 test -z "$ac_dir" && ac_dir=. 7738 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 7739 acl_cv_path_LD="$ac_dir/$ac_prog" 7740 # Check to see if the program is GNU ld. I'd rather use --version, 7741 # but apparently some variants of GNU ld only accept -v. 7742 # Break only if it was the GNU/non-GNU ld that we prefer. 7743 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 7744 *GNU* | *'with BFD'*) 7745 test "$with_gnu_ld" != no && break 7746 ;; 7747 *) 7748 test "$with_gnu_ld" != yes && break 7749 ;; 7750 esac 7751 fi 7752 done 7753 IFS="$acl_save_ifs" 7754 else 7755 acl_cv_path_LD="$LD" # Let the user override the test with a path. 7756 fi 7757 fi 7758 7759 LD="$acl_cv_path_LD" 7760 if test -n "$LD"; then 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 7762 $as_echo "$LD" >&6; } 7763 else 7764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7765 $as_echo "no" >&6; } 7766 fi 7767 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 7769 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 7770 if ${acl_cv_prog_gnu_ld+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772 else 7773 # I'd rather use --version here, but apparently some GNU lds only accept -v. 7774 case `$LD -v 2>&1 </dev/null` in 7775 *GNU* | *'with BFD'*) 7776 acl_cv_prog_gnu_ld=yes 7777 ;; 7778 *) 7779 acl_cv_prog_gnu_ld=no 7780 ;; 7781 esac 7782 fi 7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 7784 $as_echo "$acl_cv_prog_gnu_ld" >&6; } 7785 with_gnu_ld=$acl_cv_prog_gnu_ld 7786 7787 7788 7789 7790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 7791 $as_echo_n "checking for shared library run path origin... " >&6; } 7792 if ${acl_cv_rpath+:} false; then : 7793 $as_echo_n "(cached) " >&6 7794 else 7795 7796 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 7797 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 7798 . ./conftest.sh 7799 rm -f ./conftest.sh 7800 acl_cv_rpath=done 7801 7802 fi 7803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 7804 $as_echo "$acl_cv_rpath" >&6; } 7805 wl="$acl_cv_wl" 7806 acl_libext="$acl_cv_libext" 7807 acl_shlibext="$acl_cv_shlibext" 7808 acl_libname_spec="$acl_cv_libname_spec" 7809 acl_library_names_spec="$acl_cv_library_names_spec" 7810 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 7811 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 7812 acl_hardcode_direct="$acl_cv_hardcode_direct" 7813 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 7814 # Check whether --enable-rpath was given. 7815 if test "${enable_rpath+set}" = set; then : 7816 enableval=$enable_rpath; : 7817 else 7818 enable_rpath=yes 7819 fi 7820 7821 7822 7823 7824 acl_libdirstem=lib 7825 acl_libdirstem2= 7826 case "$host_os" in 7827 solaris*) 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 7829 $as_echo_n "checking for 64-bit host... " >&6; } 7830 if ${gl_cv_solaris_64bit+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832 else 7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7834 /* end confdefs.h. */ 7835 7836 #ifdef _LP64 7837 sixtyfour bits 7838 #endif 7839 7840 _ACEOF 7841 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7842 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 7843 gl_cv_solaris_64bit=yes 7844 else 7845 gl_cv_solaris_64bit=no 7846 fi 7847 rm -f conftest* 7848 7849 7850 fi 7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 7852 $as_echo "$gl_cv_solaris_64bit" >&6; } 7853 if test $gl_cv_solaris_64bit = yes; then 7854 acl_libdirstem=lib/64 7855 case "$host_cpu" in 7856 sparc*) acl_libdirstem2=lib/sparcv9 ;; 7857 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 7858 esac 7859 fi 7860 ;; 7861 *) 7862 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 7863 if test -n "$searchpath"; then 7864 acl_save_IFS="${IFS= }"; IFS=":" 7865 for searchdir in $searchpath; do 7866 if test -d "$searchdir"; then 7867 case "$searchdir" in 7868 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 7869 */../ | */.. ) 7870 # Better ignore directories of this form. They are misleading. 7871 ;; 7872 *) searchdir=`cd "$searchdir" && pwd` 7873 case "$searchdir" in 7874 */lib64 ) acl_libdirstem=lib64 ;; 7875 esac ;; 7876 esac 7877 fi 7878 done 7879 IFS="$acl_save_IFS" 7880 fi 7881 ;; 7882 esac 7883 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 7884 7885 7886 7887 gl_threads_api=none 7888 LIBTHREAD= 7889 LTLIBTHREAD= 7890 LIBMULTITHREAD= 7891 LTLIBMULTITHREAD= 7892 if test "$gl_use_threads" != no; then 7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 7894 $as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 7895 if ${gl_cv_have_weak+:} false; then : 7896 $as_echo_n "(cached) " >&6 7897 else 7898 gl_cv_have_weak=no 7899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7900 /* end confdefs.h. */ 7901 extern void xyzzy (); 7902 #pragma weak xyzzy 7903 int 7904 main () 7905 { 7906 xyzzy(); 7907 ; 7908 return 0; 7909 } 7910 _ACEOF 7911 if ac_fn_c_try_link "$LINENO"; then : 7912 gl_cv_have_weak=maybe 7913 fi 7914 rm -f core conftest.err conftest.$ac_objext \ 7915 conftest$ac_exeext conftest.$ac_ext 7916 if test $gl_cv_have_weak = maybe; then 7917 if test "$cross_compiling" = yes; then : 7918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7919 /* end confdefs.h. */ 7920 #ifdef __ELF__ 7921 Extensible Linking Format 7922 #endif 7923 7924 _ACEOF 7925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7926 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 7927 gl_cv_have_weak="guessing yes" 7928 else 7929 gl_cv_have_weak="guessing no" 7930 fi 7931 rm -f conftest* 7932 7933 7934 else 7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7936 /* end confdefs.h. */ 7937 7938 #include <stdio.h> 7939 #pragma weak fputs 7940 int main () 7941 { 7942 return (fputs == NULL); 7943 } 7944 _ACEOF 7945 if ac_fn_c_try_run "$LINENO"; then : 7946 gl_cv_have_weak=yes 7947 else 7948 gl_cv_have_weak=no 7949 fi 7950 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7951 conftest.$ac_objext conftest.beam conftest.$ac_ext 7952 fi 7953 7954 fi 7955 7956 fi 7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 7958 $as_echo "$gl_cv_have_weak" >&6; } 7959 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 7960 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 7961 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. 7962 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 7963 if test "x$ac_cv_header_pthread_h" = xyes; then : 7964 gl_have_pthread_h=yes 7965 else 7966 gl_have_pthread_h=no 7967 fi 7968 7969 7970 if test "$gl_have_pthread_h" = yes; then 7971 # Other possible tests: 7972 # -lpthreads (FSU threads, PCthreads) 7973 # -lgthreads 7974 gl_have_pthread= 7975 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 7976 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 7977 # the second one only in libpthread, and lock.c needs it. 7978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7979 /* end confdefs.h. */ 7980 #include <pthread.h> 7981 int 7982 main () 7983 { 7984 pthread_mutex_lock((pthread_mutex_t*)0); 7985 pthread_mutexattr_init((pthread_mutexattr_t*)0); 7986 ; 7987 return 0; 7988 } 7989 _ACEOF 7990 if ac_fn_c_try_link "$LINENO"; then : 7991 gl_have_pthread=yes 7992 fi 7993 rm -f core conftest.err conftest.$ac_objext \ 7994 conftest$ac_exeext conftest.$ac_ext 7995 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 7996 # since it is defined as a macro on OSF/1.) 7997 if test -n "$gl_have_pthread"; then 7998 # The program links fine without libpthread. But it may actually 7999 # need to link with libpthread in order to create multiple threads. 8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 8001 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 8002 if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 8003 $as_echo_n "(cached) " >&6 8004 else 8005 ac_check_lib_save_LIBS=$LIBS 8006 LIBS="-lpthread $LIBS" 8007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8008 /* end confdefs.h. */ 8009 8010 /* Override any GCC internal prototype to avoid an error. 8011 Use char because int might match the return type of a GCC 8012 builtin and then its argument prototype would still apply. */ 8013 #ifdef __cplusplus 8014 extern "C" 8015 #endif 8016 char pthread_kill (); 8017 int 8018 main () 8019 { 8020 return pthread_kill (); 8021 ; 8022 return 0; 8023 } 8024 _ACEOF 8025 if ac_fn_c_try_link "$LINENO"; then : 8026 ac_cv_lib_pthread_pthread_kill=yes 8027 else 8028 ac_cv_lib_pthread_pthread_kill=no 8029 fi 8030 rm -f core conftest.err conftest.$ac_objext \ 8031 conftest$ac_exeext conftest.$ac_ext 8032 LIBS=$ac_check_lib_save_LIBS 8033 fi 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 8035 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 8036 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 8037 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 8038 # On Solaris and HP-UX, most pthread functions exist also in libc. 8039 # Therefore pthread_in_use() needs to actually try to create a 8040 # thread: pthread_create from libc will fail, whereas 8041 # pthread_create will actually create a thread. 8042 case "$host_os" in 8043 solaris* | hpux*) 8044 8045 $as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 8046 8047 esac 8048 8049 fi 8050 8051 else 8052 # Some library is needed. Try libpthread and libc_r. 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 8054 $as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 8055 if ${ac_cv_lib_pthread_pthread_kill+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057 else 8058 ac_check_lib_save_LIBS=$LIBS 8059 LIBS="-lpthread $LIBS" 8060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8061 /* end confdefs.h. */ 8062 8063 /* Override any GCC internal prototype to avoid an error. 8064 Use char because int might match the return type of a GCC 8065 builtin and then its argument prototype would still apply. */ 8066 #ifdef __cplusplus 8067 extern "C" 8068 #endif 8069 char pthread_kill (); 8070 int 8071 main () 8072 { 8073 return pthread_kill (); 8074 ; 8075 return 0; 8076 } 8077 _ACEOF 8078 if ac_fn_c_try_link "$LINENO"; then : 8079 ac_cv_lib_pthread_pthread_kill=yes 8080 else 8081 ac_cv_lib_pthread_pthread_kill=no 8082 fi 8083 rm -f core conftest.err conftest.$ac_objext \ 8084 conftest$ac_exeext conftest.$ac_ext 8085 LIBS=$ac_check_lib_save_LIBS 8086 fi 8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 8088 $as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 8089 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then : 8090 gl_have_pthread=yes 8091 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread 8092 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 8093 fi 8094 8095 if test -z "$gl_have_pthread"; then 8096 # For FreeBSD 4. 8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 8098 $as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 8099 if ${ac_cv_lib_c_r_pthread_kill+:} false; then : 8100 $as_echo_n "(cached) " >&6 8101 else 8102 ac_check_lib_save_LIBS=$LIBS 8103 LIBS="-lc_r $LIBS" 8104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8105 /* end confdefs.h. */ 8106 8107 /* Override any GCC internal prototype to avoid an error. 8108 Use char because int might match the return type of a GCC 8109 builtin and then its argument prototype would still apply. */ 8110 #ifdef __cplusplus 8111 extern "C" 8112 #endif 8113 char pthread_kill (); 8114 int 8115 main () 8116 { 8117 return pthread_kill (); 8118 ; 8119 return 0; 8120 } 8121 _ACEOF 8122 if ac_fn_c_try_link "$LINENO"; then : 8123 ac_cv_lib_c_r_pthread_kill=yes 8124 else 8125 ac_cv_lib_c_r_pthread_kill=no 8126 fi 8127 rm -f core conftest.err conftest.$ac_objext \ 8128 conftest$ac_exeext conftest.$ac_ext 8129 LIBS=$ac_check_lib_save_LIBS 8130 fi 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 8132 $as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 8133 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then : 8134 gl_have_pthread=yes 8135 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r 8136 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r 8137 fi 8138 8139 fi 8140 fi 8141 if test -n "$gl_have_pthread"; then 8142 gl_threads_api=posix 8143 8144 $as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h 8145 8146 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 8147 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 8148 8149 $as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 8150 8151 LIBTHREAD= 8152 LTLIBTHREAD= 8153 fi 8154 fi 8155 fi 8156 fi 8157 fi 8158 if test -z "$gl_have_pthread"; then 8159 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then 8160 gl_have_solaristhread= 8161 gl_save_LIBS="$LIBS" 8162 LIBS="$LIBS -lthread" 8163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8164 /* end confdefs.h. */ 8165 8166 #include <thread.h> 8167 #include <synch.h> 8168 8169 int 8170 main () 8171 { 8172 thr_self(); 8173 ; 8174 return 0; 8175 } 8176 _ACEOF 8177 if ac_fn_c_try_link "$LINENO"; then : 8178 gl_have_solaristhread=yes 8179 fi 8180 rm -f core conftest.err conftest.$ac_objext \ 8181 conftest$ac_exeext conftest.$ac_ext 8182 LIBS="$gl_save_LIBS" 8183 if test -n "$gl_have_solaristhread"; then 8184 gl_threads_api=solaris 8185 LIBTHREAD=-lthread 8186 LTLIBTHREAD=-lthread 8187 LIBMULTITHREAD="$LIBTHREAD" 8188 LTLIBMULTITHREAD="$LTLIBTHREAD" 8189 8190 $as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h 8191 8192 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 8193 8194 $as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h 8195 8196 LIBTHREAD= 8197 LTLIBTHREAD= 8198 fi 8199 fi 8200 fi 8201 fi 8202 if test "$gl_use_threads" = pth; then 8203 gl_save_CPPFLAGS="$CPPFLAGS" 8204 8205 8206 8207 8208 8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 8210 $as_echo_n "checking how to link with libpth... " >&6; } 8211 if ${ac_cv_libpth_libs+:} false; then : 8212 $as_echo_n "(cached) " >&6 8213 else 8214 8215 8216 8217 8218 8219 8220 8221 8222 use_additional=yes 8223 8224 acl_save_prefix="$prefix" 8225 prefix="$acl_final_prefix" 8226 acl_save_exec_prefix="$exec_prefix" 8227 exec_prefix="$acl_final_exec_prefix" 8228 8229 eval additional_includedir=\"$includedir\" 8230 eval additional_libdir=\"$libdir\" 8231 8232 exec_prefix="$acl_save_exec_prefix" 8233 prefix="$acl_save_prefix" 8234 8235 8236 # Check whether --with-libpth-prefix was given. 8237 if test "${with_libpth_prefix+set}" = set; then : 8238 withval=$with_libpth_prefix; 8239 if test "X$withval" = "Xno"; then 8240 use_additional=no 8241 else 8242 if test "X$withval" = "X"; then 8243 8244 acl_save_prefix="$prefix" 8245 prefix="$acl_final_prefix" 8246 acl_save_exec_prefix="$exec_prefix" 8247 exec_prefix="$acl_final_exec_prefix" 8248 8249 eval additional_includedir=\"$includedir\" 8250 eval additional_libdir=\"$libdir\" 8251 8252 exec_prefix="$acl_save_exec_prefix" 8253 prefix="$acl_save_prefix" 8254 8255 else 8256 additional_includedir="$withval/include" 8257 additional_libdir="$withval/$acl_libdirstem" 8258 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 8259 && ! test -d "$withval/$acl_libdirstem"; then 8260 additional_libdir="$withval/$acl_libdirstem2" 8261 fi 8262 fi 8263 fi 8264 8265 fi 8266 8267 LIBPTH= 8268 LTLIBPTH= 8269 INCPTH= 8270 LIBPTH_PREFIX= 8271 HAVE_LIBPTH= 8272 rpathdirs= 8273 ltrpathdirs= 8274 names_already_handled= 8275 names_next_round='pth ' 8276 while test -n "$names_next_round"; do 8277 names_this_round="$names_next_round" 8278 names_next_round= 8279 for name in $names_this_round; do 8280 already_handled= 8281 for n in $names_already_handled; do 8282 if test "$n" = "$name"; then 8283 already_handled=yes 8284 break 8285 fi 8286 done 8287 if test -z "$already_handled"; then 8288 names_already_handled="$names_already_handled $name" 8289 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 8290 eval value=\"\$HAVE_LIB$uppername\" 8291 if test -n "$value"; then 8292 if test "$value" = yes; then 8293 eval value=\"\$LIB$uppername\" 8294 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" 8295 eval value=\"\$LTLIB$uppername\" 8296 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" 8297 else 8298 : 8299 fi 8300 else 8301 found_dir= 8302 found_la= 8303 found_so= 8304 found_a= 8305 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 8306 if test -n "$acl_shlibext"; then 8307 shrext=".$acl_shlibext" # typically: shrext=.so 8308 else 8309 shrext= 8310 fi 8311 if test $use_additional = yes; then 8312 dir="$additional_libdir" 8313 if test -n "$acl_shlibext"; then 8314 if test -f "$dir/$libname$shrext"; then 8315 found_dir="$dir" 8316 found_so="$dir/$libname$shrext" 8317 else 8318 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 8319 ver=`(cd "$dir" && \ 8320 for f in "$libname$shrext".*; do echo "$f"; done \ 8321 | sed -e "s,^$libname$shrext\\\\.,," \ 8322 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 8323 | sed 1q ) 2>/dev/null` 8324 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 8325 found_dir="$dir" 8326 found_so="$dir/$libname$shrext.$ver" 8327 fi 8328 else 8329 eval library_names=\"$acl_library_names_spec\" 8330 for f in $library_names; do 8331 if test -f "$dir/$f"; then 8332 found_dir="$dir" 8333 found_so="$dir/$f" 8334 break 8335 fi 8336 done 8337 fi 8338 fi 8339 fi 8340 if test "X$found_dir" = "X"; then 8341 if test -f "$dir/$libname.$acl_libext"; then 8342 found_dir="$dir" 8343 found_a="$dir/$libname.$acl_libext" 8344 fi 8345 fi 8346 if test "X$found_dir" != "X"; then 8347 if test -f "$dir/$libname.la"; then 8348 found_la="$dir/$libname.la" 8349 fi 8350 fi 8351 fi 8352 if test "X$found_dir" = "X"; then 8353 for x in $LDFLAGS $LTLIBPTH; do 8354 8355 acl_save_prefix="$prefix" 8356 prefix="$acl_final_prefix" 8357 acl_save_exec_prefix="$exec_prefix" 8358 exec_prefix="$acl_final_exec_prefix" 8359 eval x=\"$x\" 8360 exec_prefix="$acl_save_exec_prefix" 8361 prefix="$acl_save_prefix" 8362 8363 case "$x" in 8364 -L*) 8365 dir=`echo "X$x" | sed -e 's/^X-L//'` 8366 if test -n "$acl_shlibext"; then 8367 if test -f "$dir/$libname$shrext"; then 8368 found_dir="$dir" 8369 found_so="$dir/$libname$shrext" 8370 else 8371 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 8372 ver=`(cd "$dir" && \ 8373 for f in "$libname$shrext".*; do echo "$f"; done \ 8374 | sed -e "s,^$libname$shrext\\\\.,," \ 8375 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 8376 | sed 1q ) 2>/dev/null` 8377 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 8378 found_dir="$dir" 8379 found_so="$dir/$libname$shrext.$ver" 8380 fi 8381 else 8382 eval library_names=\"$acl_library_names_spec\" 8383 for f in $library_names; do 8384 if test -f "$dir/$f"; then 8385 found_dir="$dir" 8386 found_so="$dir/$f" 8387 break 8388 fi 8389 done 8390 fi 8391 fi 8392 fi 8393 if test "X$found_dir" = "X"; then 8394 if test -f "$dir/$libname.$acl_libext"; then 8395 found_dir="$dir" 8396 found_a="$dir/$libname.$acl_libext" 8397 fi 8398 fi 8399 if test "X$found_dir" != "X"; then 8400 if test -f "$dir/$libname.la"; then 8401 found_la="$dir/$libname.la" 8402 fi 8403 fi 8404 ;; 8405 esac 8406 if test "X$found_dir" != "X"; then 8407 break 8408 fi 8409 done 8410 fi 8411 if test "X$found_dir" != "X"; then 8412 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" 8413 if test "X$found_so" != "X"; then 8414 if test "$enable_rpath" = no \ 8415 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 8416 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 8417 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 8418 else 8419 haveit= 8420 for x in $ltrpathdirs; do 8421 if test "X$x" = "X$found_dir"; then 8422 haveit=yes 8423 break 8424 fi 8425 done 8426 if test -z "$haveit"; then 8427 ltrpathdirs="$ltrpathdirs $found_dir" 8428 fi 8429 if test "$acl_hardcode_direct" = yes; then 8430 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 8431 else 8432 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 8433 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 8434 haveit= 8435 for x in $rpathdirs; do 8436 if test "X$x" = "X$found_dir"; then 8437 haveit=yes 8438 break 8439 fi 8440 done 8441 if test -z "$haveit"; then 8442 rpathdirs="$rpathdirs $found_dir" 8443 fi 8444 else 8445 haveit= 8446 for x in $LDFLAGS $LIBPTH; do 8447 8448 acl_save_prefix="$prefix" 8449 prefix="$acl_final_prefix" 8450 acl_save_exec_prefix="$exec_prefix" 8451 exec_prefix="$acl_final_exec_prefix" 8452 eval x=\"$x\" 8453 exec_prefix="$acl_save_exec_prefix" 8454 prefix="$acl_save_prefix" 8455 8456 if test "X$x" = "X-L$found_dir"; then 8457 haveit=yes 8458 break 8459 fi 8460 done 8461 if test -z "$haveit"; then 8462 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" 8463 fi 8464 if test "$acl_hardcode_minus_L" != no; then 8465 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 8466 else 8467 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 8468 fi 8469 fi 8470 fi 8471 fi 8472 else 8473 if test "X$found_a" != "X"; then 8474 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" 8475 else 8476 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" 8477 fi 8478 fi 8479 additional_includedir= 8480 case "$found_dir" in 8481 */$acl_libdirstem | */$acl_libdirstem/) 8482 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 8483 if test "$name" = 'pth'; then 8484 LIBPTH_PREFIX="$basedir" 8485 fi 8486 additional_includedir="$basedir/include" 8487 ;; 8488 */$acl_libdirstem2 | */$acl_libdirstem2/) 8489 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 8490 if test "$name" = 'pth'; then 8491 LIBPTH_PREFIX="$basedir" 8492 fi 8493 additional_includedir="$basedir/include" 8494 ;; 8495 esac 8496 if test "X$additional_includedir" != "X"; then 8497 if test "X$additional_includedir" != "X/usr/include"; then 8498 haveit= 8499 if test "X$additional_includedir" = "X/usr/local/include"; then 8500 if test -n "$GCC"; then 8501 case $host_os in 8502 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8503 esac 8504 fi 8505 fi 8506 if test -z "$haveit"; then 8507 for x in $CPPFLAGS $INCPTH; do 8508 8509 acl_save_prefix="$prefix" 8510 prefix="$acl_final_prefix" 8511 acl_save_exec_prefix="$exec_prefix" 8512 exec_prefix="$acl_final_exec_prefix" 8513 eval x=\"$x\" 8514 exec_prefix="$acl_save_exec_prefix" 8515 prefix="$acl_save_prefix" 8516 8517 if test "X$x" = "X-I$additional_includedir"; then 8518 haveit=yes 8519 break 8520 fi 8521 done 8522 if test -z "$haveit"; then 8523 if test -d "$additional_includedir"; then 8524 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" 8525 fi 8526 fi 8527 fi 8528 fi 8529 fi 8530 if test -n "$found_la"; then 8531 save_libdir="$libdir" 8532 case "$found_la" in 8533 */* | *\\*) . "$found_la" ;; 8534 *) . "./$found_la" ;; 8535 esac 8536 libdir="$save_libdir" 8537 for dep in $dependency_libs; do 8538 case "$dep" in 8539 -L*) 8540 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 8541 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 8542 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 8543 haveit= 8544 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 8545 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 8546 if test -n "$GCC"; then 8547 case $host_os in 8548 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 8549 esac 8550 fi 8551 fi 8552 if test -z "$haveit"; then 8553 haveit= 8554 for x in $LDFLAGS $LIBPTH; do 8555 8556 acl_save_prefix="$prefix" 8557 prefix="$acl_final_prefix" 8558 acl_save_exec_prefix="$exec_prefix" 8559 exec_prefix="$acl_final_exec_prefix" 8560 eval x=\"$x\" 8561 exec_prefix="$acl_save_exec_prefix" 8562 prefix="$acl_save_prefix" 8563 8564 if test "X$x" = "X-L$additional_libdir"; then 8565 haveit=yes 8566 break 8567 fi 8568 done 8569 if test -z "$haveit"; then 8570 if test -d "$additional_libdir"; then 8571 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" 8572 fi 8573 fi 8574 haveit= 8575 for x in $LDFLAGS $LTLIBPTH; do 8576 8577 acl_save_prefix="$prefix" 8578 prefix="$acl_final_prefix" 8579 acl_save_exec_prefix="$exec_prefix" 8580 exec_prefix="$acl_final_exec_prefix" 8581 eval x=\"$x\" 8582 exec_prefix="$acl_save_exec_prefix" 8583 prefix="$acl_save_prefix" 8584 8585 if test "X$x" = "X-L$additional_libdir"; then 8586 haveit=yes 8587 break 8588 fi 8589 done 8590 if test -z "$haveit"; then 8591 if test -d "$additional_libdir"; then 8592 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" 8593 fi 8594 fi 8595 fi 8596 fi 8597 ;; 8598 -R*) 8599 dir=`echo "X$dep" | sed -e 's/^X-R//'` 8600 if test "$enable_rpath" != no; then 8601 haveit= 8602 for x in $rpathdirs; do 8603 if test "X$x" = "X$dir"; then 8604 haveit=yes 8605 break 8606 fi 8607 done 8608 if test -z "$haveit"; then 8609 rpathdirs="$rpathdirs $dir" 8610 fi 8611 haveit= 8612 for x in $ltrpathdirs; do 8613 if test "X$x" = "X$dir"; then 8614 haveit=yes 8615 break 8616 fi 8617 done 8618 if test -z "$haveit"; then 8619 ltrpathdirs="$ltrpathdirs $dir" 8620 fi 8621 fi 8622 ;; 8623 -l*) 8624 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 8625 ;; 8626 *.la) 8627 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 8628 ;; 8629 *) 8630 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" 8631 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" 8632 ;; 8633 esac 8634 done 8635 fi 8636 else 8637 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 8638 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" 8639 fi 8640 fi 8641 fi 8642 done 8643 done 8644 if test "X$rpathdirs" != "X"; then 8645 if test -n "$acl_hardcode_libdir_separator"; then 8646 alldirs= 8647 for found_dir in $rpathdirs; do 8648 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 8649 done 8650 acl_save_libdir="$libdir" 8651 libdir="$alldirs" 8652 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8653 libdir="$acl_save_libdir" 8654 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 8655 else 8656 for found_dir in $rpathdirs; do 8657 acl_save_libdir="$libdir" 8658 libdir="$found_dir" 8659 eval flag=\"$acl_hardcode_libdir_flag_spec\" 8660 libdir="$acl_save_libdir" 8661 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 8662 done 8663 fi 8664 fi 8665 if test "X$ltrpathdirs" != "X"; then 8666 for found_dir in $ltrpathdirs; do 8667 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" 8668 done 8669 fi 8670 8671 8672 8673 8674 8675 8676 ac_cv_libpth_libs="$LIBPTH" 8677 ac_cv_libpth_ltlibs="$LTLIBPTH" 8678 ac_cv_libpth_cppflags="$INCPTH" 8679 ac_cv_libpth_prefix="$LIBPTH_PREFIX" 8680 8681 fi 8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 8683 $as_echo "$ac_cv_libpth_libs" >&6; } 8684 LIBPTH="$ac_cv_libpth_libs" 8685 LTLIBPTH="$ac_cv_libpth_ltlibs" 8686 INCPTH="$ac_cv_libpth_cppflags" 8687 LIBPTH_PREFIX="$ac_cv_libpth_prefix" 8688 8689 for element in $INCPTH; do 8690 haveit= 8691 for x in $CPPFLAGS; do 8692 8693 acl_save_prefix="$prefix" 8694 prefix="$acl_final_prefix" 8695 acl_save_exec_prefix="$exec_prefix" 8696 exec_prefix="$acl_final_exec_prefix" 8697 eval x=\"$x\" 8698 exec_prefix="$acl_save_exec_prefix" 8699 prefix="$acl_save_prefix" 8700 8701 if test "X$x" = "X$element"; then 8702 haveit=yes 8703 break 8704 fi 8705 done 8706 if test -z "$haveit"; then 8707 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 8708 fi 8709 done 8710 8711 8712 8713 8714 HAVE_LIBPTH=yes 8715 8716 8717 8718 gl_have_pth= 8719 gl_save_LIBS="$LIBS" 8720 LIBS="$LIBS $LIBPTH" 8721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8722 /* end confdefs.h. */ 8723 #include <pth.h> 8724 int 8725 main () 8726 { 8727 pth_self(); 8728 ; 8729 return 0; 8730 } 8731 _ACEOF 8732 if ac_fn_c_try_link "$LINENO"; then : 8733 gl_have_pth=yes 8734 fi 8735 rm -f core conftest.err conftest.$ac_objext \ 8736 conftest$ac_exeext conftest.$ac_ext 8737 LIBS="$gl_save_LIBS" 8738 if test -n "$gl_have_pth"; then 8739 gl_threads_api=pth 8740 LIBTHREAD="$LIBPTH" 8741 LTLIBTHREAD="$LTLIBPTH" 8742 LIBMULTITHREAD="$LIBTHREAD" 8743 LTLIBMULTITHREAD="$LTLIBTHREAD" 8744 8745 $as_echo "#define USE_PTH_THREADS 1" >>confdefs.h 8746 8747 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 8748 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 8749 8750 $as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h 8751 8752 LIBTHREAD= 8753 LTLIBTHREAD= 8754 fi 8755 fi 8756 else 8757 CPPFLAGS="$gl_save_CPPFLAGS" 8758 fi 8759 fi 8760 if test -z "$gl_have_pthread"; then 8761 case "$gl_use_threads" in 8762 yes | windows | win32) # The 'win32' is for backward compatibility. 8763 if { case "$host_os" in 8764 mingw*) true;; 8765 *) false;; 8766 esac 8767 }; then 8768 gl_threads_api=windows 8769 8770 $as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h 8771 8772 fi 8773 ;; 8774 esac 8775 fi 8776 fi 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 8778 $as_echo_n "checking for multithread API to use... " >&6; } 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 8780 $as_echo "$gl_threads_api" >&6; } 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 if test "$gl_threads_api" = posix; then 8793 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the 8794 # pthread_rwlock_* functions. 8795 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 8796 " 8797 if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then : 8798 8799 $as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 8800 8801 fi 8802 8803 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 8804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8805 /* end confdefs.h. */ 8806 8807 #include <pthread.h> 8808 int 8809 main () 8810 { 8811 8812 #if __FreeBSD__ == 4 8813 error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 8814 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \ 8815 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070) 8816 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work." 8817 #else 8818 int x = (int)PTHREAD_MUTEX_RECURSIVE; 8819 return !x; 8820 #endif 8821 8822 ; 8823 return 0; 8824 } 8825 _ACEOF 8826 if ac_fn_c_try_compile "$LINENO"; then : 8827 8828 $as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 8829 8830 fi 8831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8832 fi 8833 : 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 use_additional=yes 8847 8848 acl_save_prefix="$prefix" 8849 prefix="$acl_final_prefix" 8850 acl_save_exec_prefix="$exec_prefix" 8851 exec_prefix="$acl_final_exec_prefix" 8852 8853 eval additional_includedir=\"$includedir\" 8854 eval additional_libdir=\"$libdir\" 8855 8856 exec_prefix="$acl_save_exec_prefix" 8857 prefix="$acl_save_prefix" 8858 8859 8860 # Check whether --with-libiconv-prefix was given. 8861 if test "${with_libiconv_prefix+set}" = set; then : 8862 withval=$with_libiconv_prefix; 8863 if test "X$withval" = "Xno"; then 8864 use_additional=no 8865 else 8866 if test "X$withval" = "X"; then 8867 8868 acl_save_prefix="$prefix" 8869 prefix="$acl_final_prefix" 8870 acl_save_exec_prefix="$exec_prefix" 8871 exec_prefix="$acl_final_exec_prefix" 8872 8873 eval additional_includedir=\"$includedir\" 8874 eval additional_libdir=\"$libdir\" 8875 8876 exec_prefix="$acl_save_exec_prefix" 8877 prefix="$acl_save_prefix" 8878 8879 else 8880 additional_includedir="$withval/include" 8881 additional_libdir="$withval/$acl_libdirstem" 8882 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 8883 && ! test -d "$withval/$acl_libdirstem"; then 8884 additional_libdir="$withval/$acl_libdirstem2" 8885 fi 8886 fi 8887 fi 8888 8889 fi 8890 8891 LIBICONV= 8892 LTLIBICONV= 8893 INCICONV= 8894 LIBICONV_PREFIX= 8895 HAVE_LIBICONV= 8896 rpathdirs= 8897 ltrpathdirs= 8898 names_already_handled= 8899 names_next_round='iconv ' 8900 while test -n "$names_next_round"; do 8901 names_this_round="$names_next_round" 8902 names_next_round= 8903 for name in $names_this_round; do 8904 already_handled= 8905 for n in $names_already_handled; do 8906 if test "$n" = "$name"; then 8907 already_handled=yes 8908 break 8909 fi 8910 done 8911 if test -z "$already_handled"; then 8912 names_already_handled="$names_already_handled $name" 8913 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 8914 eval value=\"\$HAVE_LIB$uppername\" 8915 if test -n "$value"; then 8916 if test "$value" = yes; then 8917 eval value=\"\$LIB$uppername\" 8918 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 8919 eval value=\"\$LTLIB$uppername\" 8920 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 8921 else 8922 : 8923 fi 8924 else 8925 found_dir= 8926 found_la= 8927 found_so= 8928 found_a= 8929 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 8930 if test -n "$acl_shlibext"; then 8931 shrext=".$acl_shlibext" # typically: shrext=.so 8932 else 8933 shrext= 8934 fi 8935 if test $use_additional = yes; then 8936 dir="$additional_libdir" 8937 if test -n "$acl_shlibext"; then 8938 if test -f "$dir/$libname$shrext"; then 8939 found_dir="$dir" 8940 found_so="$dir/$libname$shrext" 8941 else 8942 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 8943 ver=`(cd "$dir" && \ 8944 for f in "$libname$shrext".*; do echo "$f"; done \ 8945 | sed -e "s,^$libname$shrext\\\\.,," \ 8946 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 8947 | sed 1q ) 2>/dev/null` 8948 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 8949 found_dir="$dir" 8950 found_so="$dir/$libname$shrext.$ver" 8951 fi 8952 else 8953 eval library_names=\"$acl_library_names_spec\" 8954 for f in $library_names; do 8955 if test -f "$dir/$f"; then 8956 found_dir="$dir" 8957 found_so="$dir/$f" 8958 break 8959 fi 8960 done 8961 fi 8962 fi 8963 fi 8964 if test "X$found_dir" = "X"; then 8965 if test -f "$dir/$libname.$acl_libext"; then 8966 found_dir="$dir" 8967 found_a="$dir/$libname.$acl_libext" 8968 fi 8969 fi 8970 if test "X$found_dir" != "X"; then 8971 if test -f "$dir/$libname.la"; then 8972 found_la="$dir/$libname.la" 8973 fi 8974 fi 8975 fi 8976 if test "X$found_dir" = "X"; then 8977 for x in $LDFLAGS $LTLIBICONV; do 8978 8979 acl_save_prefix="$prefix" 8980 prefix="$acl_final_prefix" 8981 acl_save_exec_prefix="$exec_prefix" 8982 exec_prefix="$acl_final_exec_prefix" 8983 eval x=\"$x\" 8984 exec_prefix="$acl_save_exec_prefix" 8985 prefix="$acl_save_prefix" 8986 8987 case "$x" in 8988 -L*) 8989 dir=`echo "X$x" | sed -e 's/^X-L//'` 8990 if test -n "$acl_shlibext"; then 8991 if test -f "$dir/$libname$shrext"; then 8992 found_dir="$dir" 8993 found_so="$dir/$libname$shrext" 8994 else 8995 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 8996 ver=`(cd "$dir" && \ 8997 for f in "$libname$shrext".*; do echo "$f"; done \ 8998 | sed -e "s,^$libname$shrext\\\\.,," \ 8999 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 9000 | sed 1q ) 2>/dev/null` 9001 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 9002 found_dir="$dir" 9003 found_so="$dir/$libname$shrext.$ver" 9004 fi 9005 else 9006 eval library_names=\"$acl_library_names_spec\" 9007 for f in $library_names; do 9008 if test -f "$dir/$f"; then 9009 found_dir="$dir" 9010 found_so="$dir/$f" 9011 break 9012 fi 9013 done 9014 fi 9015 fi 9016 fi 9017 if test "X$found_dir" = "X"; then 9018 if test -f "$dir/$libname.$acl_libext"; then 9019 found_dir="$dir" 9020 found_a="$dir/$libname.$acl_libext" 9021 fi 9022 fi 9023 if test "X$found_dir" != "X"; then 9024 if test -f "$dir/$libname.la"; then 9025 found_la="$dir/$libname.la" 9026 fi 9027 fi 9028 ;; 9029 esac 9030 if test "X$found_dir" != "X"; then 9031 break 9032 fi 9033 done 9034 fi 9035 if test "X$found_dir" != "X"; then 9036 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 9037 if test "X$found_so" != "X"; then 9038 if test "$enable_rpath" = no \ 9039 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 9040 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 9041 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9042 else 9043 haveit= 9044 for x in $ltrpathdirs; do 9045 if test "X$x" = "X$found_dir"; then 9046 haveit=yes 9047 break 9048 fi 9049 done 9050 if test -z "$haveit"; then 9051 ltrpathdirs="$ltrpathdirs $found_dir" 9052 fi 9053 if test "$acl_hardcode_direct" = yes; then 9054 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9055 else 9056 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 9057 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9058 haveit= 9059 for x in $rpathdirs; do 9060 if test "X$x" = "X$found_dir"; then 9061 haveit=yes 9062 break 9063 fi 9064 done 9065 if test -z "$haveit"; then 9066 rpathdirs="$rpathdirs $found_dir" 9067 fi 9068 else 9069 haveit= 9070 for x in $LDFLAGS $LIBICONV; do 9071 9072 acl_save_prefix="$prefix" 9073 prefix="$acl_final_prefix" 9074 acl_save_exec_prefix="$exec_prefix" 9075 exec_prefix="$acl_final_exec_prefix" 9076 eval x=\"$x\" 9077 exec_prefix="$acl_save_exec_prefix" 9078 prefix="$acl_save_prefix" 9079 9080 if test "X$x" = "X-L$found_dir"; then 9081 haveit=yes 9082 break 9083 fi 9084 done 9085 if test -z "$haveit"; then 9086 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 9087 fi 9088 if test "$acl_hardcode_minus_L" != no; then 9089 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 9090 else 9091 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9092 fi 9093 fi 9094 fi 9095 fi 9096 else 9097 if test "X$found_a" != "X"; then 9098 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 9099 else 9100 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 9101 fi 9102 fi 9103 additional_includedir= 9104 case "$found_dir" in 9105 */$acl_libdirstem | */$acl_libdirstem/) 9106 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 9107 if test "$name" = 'iconv'; then 9108 LIBICONV_PREFIX="$basedir" 9109 fi 9110 additional_includedir="$basedir/include" 9111 ;; 9112 */$acl_libdirstem2 | */$acl_libdirstem2/) 9113 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 9114 if test "$name" = 'iconv'; then 9115 LIBICONV_PREFIX="$basedir" 9116 fi 9117 additional_includedir="$basedir/include" 9118 ;; 9119 esac 9120 if test "X$additional_includedir" != "X"; then 9121 if test "X$additional_includedir" != "X/usr/include"; then 9122 haveit= 9123 if test "X$additional_includedir" = "X/usr/local/include"; then 9124 if test -n "$GCC"; then 9125 case $host_os in 9126 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9127 esac 9128 fi 9129 fi 9130 if test -z "$haveit"; then 9131 for x in $CPPFLAGS $INCICONV; do 9132 9133 acl_save_prefix="$prefix" 9134 prefix="$acl_final_prefix" 9135 acl_save_exec_prefix="$exec_prefix" 9136 exec_prefix="$acl_final_exec_prefix" 9137 eval x=\"$x\" 9138 exec_prefix="$acl_save_exec_prefix" 9139 prefix="$acl_save_prefix" 9140 9141 if test "X$x" = "X-I$additional_includedir"; then 9142 haveit=yes 9143 break 9144 fi 9145 done 9146 if test -z "$haveit"; then 9147 if test -d "$additional_includedir"; then 9148 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 9149 fi 9150 fi 9151 fi 9152 fi 9153 fi 9154 if test -n "$found_la"; then 9155 save_libdir="$libdir" 9156 case "$found_la" in 9157 */* | *\\*) . "$found_la" ;; 9158 *) . "./$found_la" ;; 9159 esac 9160 libdir="$save_libdir" 9161 for dep in $dependency_libs; do 9162 case "$dep" in 9163 -L*) 9164 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 9165 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 9166 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 9167 haveit= 9168 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 9169 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 9170 if test -n "$GCC"; then 9171 case $host_os in 9172 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 9173 esac 9174 fi 9175 fi 9176 if test -z "$haveit"; then 9177 haveit= 9178 for x in $LDFLAGS $LIBICONV; do 9179 9180 acl_save_prefix="$prefix" 9181 prefix="$acl_final_prefix" 9182 acl_save_exec_prefix="$exec_prefix" 9183 exec_prefix="$acl_final_exec_prefix" 9184 eval x=\"$x\" 9185 exec_prefix="$acl_save_exec_prefix" 9186 prefix="$acl_save_prefix" 9187 9188 if test "X$x" = "X-L$additional_libdir"; then 9189 haveit=yes 9190 break 9191 fi 9192 done 9193 if test -z "$haveit"; then 9194 if test -d "$additional_libdir"; then 9195 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 9196 fi 9197 fi 9198 haveit= 9199 for x in $LDFLAGS $LTLIBICONV; do 9200 9201 acl_save_prefix="$prefix" 9202 prefix="$acl_final_prefix" 9203 acl_save_exec_prefix="$exec_prefix" 9204 exec_prefix="$acl_final_exec_prefix" 9205 eval x=\"$x\" 9206 exec_prefix="$acl_save_exec_prefix" 9207 prefix="$acl_save_prefix" 9208 9209 if test "X$x" = "X-L$additional_libdir"; then 9210 haveit=yes 9211 break 9212 fi 9213 done 9214 if test -z "$haveit"; then 9215 if test -d "$additional_libdir"; then 9216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 9217 fi 9218 fi 9219 fi 9220 fi 9221 ;; 9222 -R*) 9223 dir=`echo "X$dep" | sed -e 's/^X-R//'` 9224 if test "$enable_rpath" != no; then 9225 haveit= 9226 for x in $rpathdirs; do 9227 if test "X$x" = "X$dir"; then 9228 haveit=yes 9229 break 9230 fi 9231 done 9232 if test -z "$haveit"; then 9233 rpathdirs="$rpathdirs $dir" 9234 fi 9235 haveit= 9236 for x in $ltrpathdirs; do 9237 if test "X$x" = "X$dir"; then 9238 haveit=yes 9239 break 9240 fi 9241 done 9242 if test -z "$haveit"; then 9243 ltrpathdirs="$ltrpathdirs $dir" 9244 fi 9245 fi 9246 ;; 9247 -l*) 9248 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 9249 ;; 9250 *.la) 9251 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 9252 ;; 9253 *) 9254 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 9255 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 9256 ;; 9257 esac 9258 done 9259 fi 9260 else 9261 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 9262 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 9263 fi 9264 fi 9265 fi 9266 done 9267 done 9268 if test "X$rpathdirs" != "X"; then 9269 if test -n "$acl_hardcode_libdir_separator"; then 9270 alldirs= 9271 for found_dir in $rpathdirs; do 9272 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 9273 done 9274 acl_save_libdir="$libdir" 9275 libdir="$alldirs" 9276 eval flag=\"$acl_hardcode_libdir_flag_spec\" 9277 libdir="$acl_save_libdir" 9278 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9279 else 9280 for found_dir in $rpathdirs; do 9281 acl_save_libdir="$libdir" 9282 libdir="$found_dir" 9283 eval flag=\"$acl_hardcode_libdir_flag_spec\" 9284 libdir="$acl_save_libdir" 9285 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 9286 done 9287 fi 9288 fi 9289 if test "X$ltrpathdirs" != "X"; then 9290 for found_dir in $ltrpathdirs; do 9291 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 9292 done 9293 fi 9294 9295 9296 9297 9298 9299 9300 9301 9302 9303 9304 9305 9306 am_save_CPPFLAGS="$CPPFLAGS" 9307 9308 for element in $INCICONV; do 9309 haveit= 9310 for x in $CPPFLAGS; do 9311 9312 acl_save_prefix="$prefix" 9313 prefix="$acl_final_prefix" 9314 acl_save_exec_prefix="$exec_prefix" 9315 exec_prefix="$acl_final_exec_prefix" 9316 eval x=\"$x\" 9317 exec_prefix="$acl_save_exec_prefix" 9318 prefix="$acl_save_prefix" 9319 9320 if test "X$x" = "X$element"; then 9321 haveit=yes 9322 break 9323 fi 9324 done 9325 if test -z "$haveit"; then 9326 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 9327 fi 9328 done 9329 9330 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 9332 $as_echo_n "checking for iconv... " >&6; } 9333 if ${am_cv_func_iconv+:} false; then : 9334 $as_echo_n "(cached) " >&6 9335 else 9336 9337 am_cv_func_iconv="no, consider installing GNU libiconv" 9338 am_cv_lib_iconv=no 9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9340 /* end confdefs.h. */ 9341 9342 #include <stdlib.h> 9343 #include <iconv.h> 9344 9345 int 9346 main () 9347 { 9348 iconv_t cd = iconv_open("",""); 9349 iconv(cd,NULL,NULL,NULL,NULL); 9350 iconv_close(cd); 9351 ; 9352 return 0; 9353 } 9354 _ACEOF 9355 if ac_fn_c_try_link "$LINENO"; then : 9356 am_cv_func_iconv=yes 9357 fi 9358 rm -f core conftest.err conftest.$ac_objext \ 9359 conftest$ac_exeext conftest.$ac_ext 9360 if test "$am_cv_func_iconv" != yes; then 9361 am_save_LIBS="$LIBS" 9362 LIBS="$LIBS $LIBICONV" 9363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9364 /* end confdefs.h. */ 9365 9366 #include <stdlib.h> 9367 #include <iconv.h> 9368 9369 int 9370 main () 9371 { 9372 iconv_t cd = iconv_open("",""); 9373 iconv(cd,NULL,NULL,NULL,NULL); 9374 iconv_close(cd); 9375 ; 9376 return 0; 9377 } 9378 _ACEOF 9379 if ac_fn_c_try_link "$LINENO"; then : 9380 am_cv_lib_iconv=yes 9381 am_cv_func_iconv=yes 9382 fi 9383 rm -f core conftest.err conftest.$ac_objext \ 9384 conftest$ac_exeext conftest.$ac_ext 9385 LIBS="$am_save_LIBS" 9386 fi 9387 9388 fi 9389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 9390 $as_echo "$am_cv_func_iconv" >&6; } 9391 if test "$am_cv_func_iconv" = yes; then 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 9393 $as_echo_n "checking for working iconv... " >&6; } 9394 if ${am_cv_func_iconv_works+:} false; then : 9395 $as_echo_n "(cached) " >&6 9396 else 9397 9398 am_save_LIBS="$LIBS" 9399 if test $am_cv_lib_iconv = yes; then 9400 LIBS="$LIBS $LIBICONV" 9401 fi 9402 if test "$cross_compiling" = yes; then : 9403 9404 case "$host_os" in 9405 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 9406 *) am_cv_func_iconv_works="guessing yes" ;; 9407 esac 9408 9409 else 9410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9411 /* end confdefs.h. */ 9412 9413 #include <iconv.h> 9414 #include <string.h> 9415 int main () 9416 { 9417 int result = 0; 9418 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 9419 returns. */ 9420 { 9421 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 9422 if (cd_utf8_to_88591 != (iconv_t)(-1)) 9423 { 9424 static const char input[] = "\342\202\254"; /* EURO SIGN */ 9425 char buf[10]; 9426 const char *inptr = input; 9427 size_t inbytesleft = strlen (input); 9428 char *outptr = buf; 9429 size_t outbytesleft = sizeof (buf); 9430 size_t res = iconv (cd_utf8_to_88591, 9431 (char **) &inptr, &inbytesleft, 9432 &outptr, &outbytesleft); 9433 if (res == 0) 9434 result |= 1; 9435 iconv_close (cd_utf8_to_88591); 9436 } 9437 } 9438 /* Test against Solaris 10 bug: Failures are not distinguishable from 9439 successful returns. */ 9440 { 9441 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 9442 if (cd_ascii_to_88591 != (iconv_t)(-1)) 9443 { 9444 static const char input[] = "\263"; 9445 char buf[10]; 9446 const char *inptr = input; 9447 size_t inbytesleft = strlen (input); 9448 char *outptr = buf; 9449 size_t outbytesleft = sizeof (buf); 9450 size_t res = iconv (cd_ascii_to_88591, 9451 (char **) &inptr, &inbytesleft, 9452 &outptr, &outbytesleft); 9453 if (res == 0) 9454 result |= 2; 9455 iconv_close (cd_ascii_to_88591); 9456 } 9457 } 9458 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 9459 { 9460 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 9461 if (cd_88591_to_utf8 != (iconv_t)(-1)) 9462 { 9463 static const char input[] = "\304"; 9464 static char buf[2] = { (char)0xDE, (char)0xAD }; 9465 const char *inptr = input; 9466 size_t inbytesleft = 1; 9467 char *outptr = buf; 9468 size_t outbytesleft = 1; 9469 size_t res = iconv (cd_88591_to_utf8, 9470 (char **) &inptr, &inbytesleft, 9471 &outptr, &outbytesleft); 9472 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 9473 result |= 4; 9474 iconv_close (cd_88591_to_utf8); 9475 } 9476 } 9477 #if 0 /* This bug could be worked around by the caller. */ 9478 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 9479 { 9480 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 9481 if (cd_88591_to_utf8 != (iconv_t)(-1)) 9482 { 9483 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 9484 char buf[50]; 9485 const char *inptr = input; 9486 size_t inbytesleft = strlen (input); 9487 char *outptr = buf; 9488 size_t outbytesleft = sizeof (buf); 9489 size_t res = iconv (cd_88591_to_utf8, 9490 (char **) &inptr, &inbytesleft, 9491 &outptr, &outbytesleft); 9492 if ((int)res > 0) 9493 result |= 8; 9494 iconv_close (cd_88591_to_utf8); 9495 } 9496 } 9497 #endif 9498 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 9499 provided. */ 9500 if (/* Try standardized names. */ 9501 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 9502 /* Try IRIX, OSF/1 names. */ 9503 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 9504 /* Try AIX names. */ 9505 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 9506 /* Try HP-UX names. */ 9507 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 9508 result |= 16; 9509 return result; 9510 } 9511 _ACEOF 9512 if ac_fn_c_try_run "$LINENO"; then : 9513 am_cv_func_iconv_works=yes 9514 else 9515 am_cv_func_iconv_works=no 9516 fi 9517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9518 conftest.$ac_objext conftest.beam conftest.$ac_ext 9519 fi 9520 9521 LIBS="$am_save_LIBS" 9522 9523 fi 9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 9525 $as_echo "$am_cv_func_iconv_works" >&6; } 9526 case "$am_cv_func_iconv_works" in 9527 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 9528 *) am_func_iconv=yes ;; 9529 esac 9530 else 9531 am_func_iconv=no am_cv_lib_iconv=no 9532 fi 9533 if test "$am_func_iconv" = yes; then 9534 9535 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 9536 9537 fi 9538 if test "$am_cv_lib_iconv" = yes; then 9539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 9540 $as_echo_n "checking how to link with libiconv... " >&6; } 9541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 9542 $as_echo "$LIBICONV" >&6; } 9543 else 9544 CPPFLAGS="$am_save_CPPFLAGS" 9545 LIBICONV= 9546 LTLIBICONV= 9547 fi 9548 9549 9550 9551 if test "$am_cv_func_iconv" = yes; then 9552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 9553 $as_echo_n "checking for iconv declaration... " >&6; } 9554 if ${am_cv_proto_iconv+:} false; then : 9555 $as_echo_n "(cached) " >&6 9556 else 9557 9558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9559 /* end confdefs.h. */ 9560 9561 #include <stdlib.h> 9562 #include <iconv.h> 9563 extern 9564 #ifdef __cplusplus 9565 "C" 9566 #endif 9567 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) 9568 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 9569 #else 9570 size_t iconv(); 9571 #endif 9572 9573 int 9574 main () 9575 { 9576 9577 ; 9578 return 0; 9579 } 9580 _ACEOF 9581 if ac_fn_c_try_compile "$LINENO"; then : 9582 am_cv_proto_iconv_arg1="" 9583 else 9584 am_cv_proto_iconv_arg1="const" 9585 fi 9586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9587 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);" 9588 fi 9589 9590 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 9592 $am_cv_proto_iconv" >&5 9593 $as_echo " 9594 $am_cv_proto_iconv" >&6; } 9595 9596 cat >>confdefs.h <<_ACEOF 9597 #define ICONV_CONST $am_cv_proto_iconv_arg1 9598 _ACEOF 9599 9600 9601 fi 9602 9603 9604 9605 9606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9607 /* end confdefs.h. */ 9608 int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } 9609 int 9610 main () 9611 { 9612 9613 ; 9614 return 0; 9615 } 9616 _ACEOF 9617 if ac_fn_c_try_link "$LINENO"; then : 9618 9619 $as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h 9620 9621 fi 9622 rm -f core conftest.err conftest.$ac_objext \ 9623 conftest$ac_exeext conftest.$ac_ext 9624 9625 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h 9626 do : 9627 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9628 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9629 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9630 cat >>confdefs.h <<_ACEOF 9631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9632 _ACEOF 9633 9634 fi 9635 9636 done 9637 9638 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ 9639 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ 9640 argz_stringify argz_next __fsetlocking 9641 do : 9642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9643 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9644 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9645 cat >>confdefs.h <<_ACEOF 9646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9647 _ACEOF 9648 9649 fi 9650 done 9651 9652 9653 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h> 9654 " 9655 if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then : 9656 ac_have_decl=1 9657 else 9658 ac_have_decl=0 9659 fi 9660 9661 cat >>confdefs.h <<_ACEOF 9662 #define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl 9663 _ACEOF 9664 ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h> 9665 " 9666 if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then : 9667 ac_have_decl=1 9668 else 9669 ac_have_decl=0 9670 fi 9671 9672 cat >>confdefs.h <<_ACEOF 9673 #define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl 9674 _ACEOF 9675 9676 9677 9678 9679 for ac_prog in bison 9680 do 9681 # Extract the first word of "$ac_prog", so it can be a program name with args. 9682 set dummy $ac_prog; ac_word=$2 9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9684 $as_echo_n "checking for $ac_word... " >&6; } 9685 if ${ac_cv_prog_INTLBISON+:} false; then : 9686 $as_echo_n "(cached) " >&6 9687 else 9688 if test -n "$INTLBISON"; then 9689 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 9690 else 9691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9692 for as_dir in $PATH 9693 do 9694 IFS=$as_save_IFS 9695 test -z "$as_dir" && as_dir=. 9696 for ac_exec_ext in '' $ac_executable_extensions; do 9697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9698 ac_cv_prog_INTLBISON="$ac_prog" 9699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9700 break 2 9701 fi 9702 done 9703 done 9704 IFS=$as_save_IFS 9705 9706 fi 9707 fi 9708 INTLBISON=$ac_cv_prog_INTLBISON 9709 if test -n "$INTLBISON"; then 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 9711 $as_echo "$INTLBISON" >&6; } 9712 else 9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9714 $as_echo "no" >&6; } 9715 fi 9716 9717 9718 test -n "$INTLBISON" && break 9719 done 9720 9721 if test -z "$INTLBISON"; then 9722 ac_verc_fail=yes 9723 else 9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 9725 $as_echo_n "checking version of bison... " >&6; } 9726 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 9727 case $ac_prog_version in 9728 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 9729 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 9730 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 9731 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 9732 esac 9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 9734 $as_echo "$ac_prog_version" >&6; } 9735 fi 9736 if test $ac_verc_fail = yes; then 9737 INTLBISON=: 9738 fi 9739 9740 9741 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 9743 $as_echo_n "checking for long long int... " >&6; } 9744 if ${ac_cv_type_long_long_int+:} false; then : 9745 $as_echo_n "(cached) " >&6 9746 else 9747 ac_cv_type_long_long_int=yes 9748 if test "x${ac_cv_prog_cc_c99-no}" = xno; then 9749 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int 9750 if test $ac_cv_type_long_long_int = yes; then 9751 if test "$cross_compiling" = yes; then : 9752 : 9753 else 9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9755 /* end confdefs.h. */ 9756 #include <limits.h> 9757 #ifndef LLONG_MAX 9758 # define HALF \ 9759 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 9760 # define LLONG_MAX (HALF - 1 + HALF) 9761 #endif 9762 int 9763 main () 9764 { 9765 long long int n = 1; 9766 int i; 9767 for (i = 0; ; i++) 9768 { 9769 long long int m = n << i; 9770 if (m >> i != n) 9771 return 1; 9772 if (LLONG_MAX / 2 < m) 9773 break; 9774 } 9775 return 0; 9776 ; 9777 return 0; 9778 } 9779 _ACEOF 9780 if ac_fn_c_try_run "$LINENO"; then : 9781 9782 else 9783 ac_cv_type_long_long_int=no 9784 fi 9785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9786 conftest.$ac_objext conftest.beam conftest.$ac_ext 9787 fi 9788 9789 fi 9790 fi 9791 fi 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 9793 $as_echo "$ac_cv_type_long_long_int" >&6; } 9794 if test $ac_cv_type_long_long_int = yes; then 9795 9796 $as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 9797 9798 fi 9799 9800 9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 9802 $as_echo_n "checking for wchar_t... " >&6; } 9803 if ${gt_cv_c_wchar_t+:} false; then : 9804 $as_echo_n "(cached) " >&6 9805 else 9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9807 /* end confdefs.h. */ 9808 #include <stddef.h> 9809 wchar_t foo = (wchar_t)'\0'; 9810 int 9811 main () 9812 { 9813 9814 ; 9815 return 0; 9816 } 9817 _ACEOF 9818 if ac_fn_c_try_compile "$LINENO"; then : 9819 gt_cv_c_wchar_t=yes 9820 else 9821 gt_cv_c_wchar_t=no 9822 fi 9823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9824 fi 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 9826 $as_echo "$gt_cv_c_wchar_t" >&6; } 9827 if test $gt_cv_c_wchar_t = yes; then 9828 9829 $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 9830 9831 fi 9832 9833 9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 9835 $as_echo_n "checking for wint_t... " >&6; } 9836 if ${gt_cv_c_wint_t+:} false; then : 9837 $as_echo_n "(cached) " >&6 9838 else 9839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9840 /* end confdefs.h. */ 9841 9842 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 9843 <wchar.h>. 9844 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 9845 before <wchar.h>. */ 9846 #include <stddef.h> 9847 #include <stdio.h> 9848 #include <time.h> 9849 #include <wchar.h> 9850 wint_t foo = (wchar_t)'\0'; 9851 int 9852 main () 9853 { 9854 9855 ; 9856 return 0; 9857 } 9858 _ACEOF 9859 if ac_fn_c_try_compile "$LINENO"; then : 9860 gt_cv_c_wint_t=yes 9861 else 9862 gt_cv_c_wint_t=no 9863 fi 9864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9865 fi 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 9867 $as_echo "$gt_cv_c_wint_t" >&6; } 9868 if test $gt_cv_c_wint_t = yes; then 9869 9870 $as_echo "#define HAVE_WINT_T 1" >>confdefs.h 9871 9872 fi 9873 9874 9875 9876 9877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 9878 $as_echo_n "checking for intmax_t... " >&6; } 9879 if ${gt_cv_c_intmax_t+:} false; then : 9880 $as_echo_n "(cached) " >&6 9881 else 9882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9883 /* end confdefs.h. */ 9884 9885 #include <stddef.h> 9886 #include <stdlib.h> 9887 #if HAVE_STDINT_H_WITH_UINTMAX 9888 #include <stdint.h> 9889 #endif 9890 #if HAVE_INTTYPES_H_WITH_UINTMAX 9891 #include <inttypes.h> 9892 #endif 9893 9894 int 9895 main () 9896 { 9897 intmax_t x = -1; 9898 return !x; 9899 ; 9900 return 0; 9901 } 9902 _ACEOF 9903 if ac_fn_c_try_compile "$LINENO"; then : 9904 gt_cv_c_intmax_t=yes 9905 else 9906 gt_cv_c_intmax_t=no 9907 fi 9908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9909 fi 9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 9911 $as_echo "$gt_cv_c_intmax_t" >&6; } 9912 if test $gt_cv_c_intmax_t = yes; then 9913 9914 $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 9915 9916 fi 9917 9918 9919 9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 9921 $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 9922 if ${gt_cv_func_printf_posix+:} false; then : 9923 $as_echo_n "(cached) " >&6 9924 else 9925 9926 if test "$cross_compiling" = yes; then : 9927 9928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9929 /* end confdefs.h. */ 9930 9931 #if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 9932 notposix 9933 #endif 9934 9935 _ACEOF 9936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9937 $EGREP "notposix" >/dev/null 2>&1; then : 9938 gt_cv_func_printf_posix="guessing no" 9939 else 9940 gt_cv_func_printf_posix="guessing yes" 9941 fi 9942 rm -f conftest* 9943 9944 9945 else 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947 /* end confdefs.h. */ 9948 9949 #include <stdio.h> 9950 #include <string.h> 9951 /* The string "%2$d %1$d", with dollar characters protected from the shell's 9952 dollar expansion (possibly an autoconf bug). */ 9953 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 9954 static char buf[100]; 9955 int main () 9956 { 9957 sprintf (buf, format, 33, 55); 9958 return (strcmp (buf, "55 33") != 0); 9959 } 9960 _ACEOF 9961 if ac_fn_c_try_run "$LINENO"; then : 9962 gt_cv_func_printf_posix=yes 9963 else 9964 gt_cv_func_printf_posix=no 9965 fi 9966 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9967 conftest.$ac_objext conftest.beam conftest.$ac_ext 9968 fi 9969 9970 9971 fi 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 9973 $as_echo "$gt_cv_func_printf_posix" >&6; } 9974 case $gt_cv_func_printf_posix in 9975 *yes) 9976 9977 $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 9978 9979 ;; 9980 esac 9981 9982 9983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5 9984 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; } 9985 if ${ac_cv_gnu_library_2_1+:} false; then : 9986 $as_echo_n "(cached) " >&6 9987 else 9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9989 /* end confdefs.h. */ 9990 9991 #include <features.h> 9992 #ifdef __GNU_LIBRARY__ 9993 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 9994 Lucky GNU user 9995 #endif 9996 #endif 9997 #ifdef __UCLIBC__ 9998 Lucky user 9999 #endif 10000 10001 _ACEOF 10002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10003 $EGREP "Lucky" >/dev/null 2>&1; then : 10004 ac_cv_gnu_library_2_1=yes 10005 else 10006 ac_cv_gnu_library_2_1=no 10007 fi 10008 rm -f conftest* 10009 10010 10011 10012 fi 10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 10014 $as_echo "$ac_cv_gnu_library_2_1" >&6; } 10015 10016 GLIBC21="$ac_cv_gnu_library_2_1" 10017 10018 10019 10020 for ac_header in stdint.h 10021 do : 10022 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 10023 if test "x$ac_cv_header_stdint_h" = xyes; then : 10024 cat >>confdefs.h <<_ACEOF 10025 #define HAVE_STDINT_H 1 10026 _ACEOF 10027 10028 fi 10029 10030 done 10031 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 10033 $as_echo_n "checking for SIZE_MAX... " >&6; } 10034 if ${gl_cv_size_max+:} false; then : 10035 $as_echo_n "(cached) " >&6 10036 else 10037 10038 gl_cv_size_max= 10039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10040 /* end confdefs.h. */ 10041 10042 #include <limits.h> 10043 #if HAVE_STDINT_H 10044 #include <stdint.h> 10045 #endif 10046 #ifdef SIZE_MAX 10047 Found it 10048 #endif 10049 10050 _ACEOF 10051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10052 $EGREP "Found it" >/dev/null 2>&1; then : 10053 gl_cv_size_max=yes 10054 fi 10055 rm -f conftest* 10056 10057 if test -z "$gl_cv_size_max"; then 10058 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 10059 #include <limits.h>"; then : 10060 10061 else 10062 size_t_bits_minus_1= 10063 fi 10064 10065 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 10066 10067 else 10068 fits_in_uint= 10069 fi 10070 10071 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 10072 if test $fits_in_uint = 1; then 10073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10074 /* end confdefs.h. */ 10075 #include <stddef.h> 10076 extern size_t foo; 10077 extern unsigned long foo; 10078 10079 int 10080 main () 10081 { 10082 10083 ; 10084 return 0; 10085 } 10086 _ACEOF 10087 if ac_fn_c_try_compile "$LINENO"; then : 10088 fits_in_uint=0 10089 fi 10090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10091 fi 10092 if test $fits_in_uint = 1; then 10093 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 10094 else 10095 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 10096 fi 10097 else 10098 gl_cv_size_max='((size_t)~(size_t)0)' 10099 fi 10100 fi 10101 10102 fi 10103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 10104 $as_echo "$gl_cv_size_max" >&6; } 10105 if test "$gl_cv_size_max" != yes; then 10106 10107 cat >>confdefs.h <<_ACEOF 10108 #define SIZE_MAX $gl_cv_size_max 10109 _ACEOF 10110 10111 fi 10112 10113 10114 10115 10116 for ac_header in stdint.h 10117 do : 10118 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 10119 if test "x$ac_cv_header_stdint_h" = xyes; then : 10120 cat >>confdefs.h <<_ACEOF 10121 #define HAVE_STDINT_H 1 10122 _ACEOF 10123 10124 fi 10125 10126 done 10127 10128 10129 10130 10131 10132 for ac_func in $ac_func_list 10133 do : 10134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10135 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10136 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10137 cat >>confdefs.h <<_ACEOF 10138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10139 _ACEOF 10140 10141 fi 10142 done 10143 10144 10145 10146 10147 10148 10149 10150 10151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 10152 $as_echo_n "checking for working fcntl.h... " >&6; } 10153 if ${gl_cv_header_working_fcntl_h+:} false; then : 10154 $as_echo_n "(cached) " >&6 10155 else 10156 if test "$cross_compiling" = yes; then : 10157 gl_cv_header_working_fcntl_h=cross-compiling 10158 else 10159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10160 /* end confdefs.h. */ 10161 #include <sys/types.h> 10162 #include <sys/stat.h> 10163 #if HAVE_UNISTD_H 10164 # include <unistd.h> 10165 #else /* on Windows with MSVC */ 10166 # include <io.h> 10167 # include <stdlib.h> 10168 # defined sleep(n) _sleep ((n) * 1000) 10169 #endif 10170 #include <fcntl.h> 10171 #ifndef O_NOATIME 10172 #define O_NOATIME 0 10173 #endif 10174 #ifndef O_NOFOLLOW 10175 #define O_NOFOLLOW 0 10176 #endif 10177 static int const constants[] = 10178 { 10179 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 10180 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 10181 }; 10182 10183 int 10184 main () 10185 { 10186 10187 int result = !constants; 10188 #if HAVE_SYMLINK 10189 { 10190 static char const sym[] = "conftest.sym"; 10191 if (symlink ("/dev/null", sym) != 0) 10192 result |= 2; 10193 else 10194 { 10195 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0); 10196 if (fd >= 0) 10197 { 10198 close (fd); 10199 result |= 4; 10200 } 10201 } 10202 if (unlink (sym) != 0 || symlink (".", sym) != 0) 10203 result |= 2; 10204 else 10205 { 10206 int fd = open (sym, O_RDONLY | O_NOFOLLOW); 10207 if (fd >= 0) 10208 { 10209 close (fd); 10210 result |= 4; 10211 } 10212 } 10213 unlink (sym); 10214 } 10215 #endif 10216 { 10217 static char const file[] = "confdefs.h"; 10218 int fd = open (file, O_RDONLY | O_NOATIME); 10219 if (fd < 0) 10220 result |= 8; 10221 else 10222 { 10223 struct stat st0; 10224 if (fstat (fd, &st0) != 0) 10225 result |= 16; 10226 else 10227 { 10228 char c; 10229 sleep (1); 10230 if (read (fd, &c, 1) != 1) 10231 result |= 24; 10232 else 10233 { 10234 if (close (fd) != 0) 10235 result |= 32; 10236 else 10237 { 10238 struct stat st1; 10239 if (stat (file, &st1) != 0) 10240 result |= 40; 10241 else 10242 if (st0.st_atime != st1.st_atime) 10243 result |= 64; 10244 } 10245 } 10246 } 10247 } 10248 } 10249 return result; 10250 ; 10251 return 0; 10252 } 10253 _ACEOF 10254 if ac_fn_c_try_run "$LINENO"; then : 10255 gl_cv_header_working_fcntl_h=yes 10256 else 10257 case $? in #( 10258 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 10259 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 10260 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 10261 *) gl_cv_header_working_fcntl_h='no';; 10262 esac 10263 fi 10264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10265 conftest.$ac_objext conftest.beam conftest.$ac_ext 10266 fi 10267 10268 fi 10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 10270 $as_echo "$gl_cv_header_working_fcntl_h" >&6; } 10271 10272 case $gl_cv_header_working_fcntl_h in #( 10273 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 10274 *) ac_val=1;; 10275 esac 10276 10277 cat >>confdefs.h <<_ACEOF 10278 #define HAVE_WORKING_O_NOATIME $ac_val 10279 _ACEOF 10280 10281 10282 case $gl_cv_header_working_fcntl_h in #( 10283 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 10284 *) ac_val=1;; 10285 esac 10286 10287 cat >>confdefs.h <<_ACEOF 10288 #define HAVE_WORKING_O_NOFOLLOW $ac_val 10289 _ACEOF 10290 10291 10292 10293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 10294 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 10295 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 10296 $as_echo_n "(cached) " >&6 10297 else 10298 gt_save_LIBS="$LIBS" 10299 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 10300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10301 /* end confdefs.h. */ 10302 #include <CoreFoundation/CFPreferences.h> 10303 int 10304 main () 10305 { 10306 CFPreferencesCopyAppValue(NULL, NULL) 10307 ; 10308 return 0; 10309 } 10310 _ACEOF 10311 if ac_fn_c_try_link "$LINENO"; then : 10312 gt_cv_func_CFPreferencesCopyAppValue=yes 10313 else 10314 gt_cv_func_CFPreferencesCopyAppValue=no 10315 fi 10316 rm -f core conftest.err conftest.$ac_objext \ 10317 conftest$ac_exeext conftest.$ac_ext 10318 LIBS="$gt_save_LIBS" 10319 fi 10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 10321 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 10322 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 10323 10324 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 10325 10326 fi 10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 10328 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 10329 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 10330 $as_echo_n "(cached) " >&6 10331 else 10332 gt_save_LIBS="$LIBS" 10333 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 10334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10335 /* end confdefs.h. */ 10336 #include <CoreFoundation/CFLocale.h> 10337 int 10338 main () 10339 { 10340 CFLocaleCopyCurrent(); 10341 ; 10342 return 0; 10343 } 10344 _ACEOF 10345 if ac_fn_c_try_link "$LINENO"; then : 10346 gt_cv_func_CFLocaleCopyCurrent=yes 10347 else 10348 gt_cv_func_CFLocaleCopyCurrent=no 10349 fi 10350 rm -f core conftest.err conftest.$ac_objext \ 10351 conftest$ac_exeext conftest.$ac_ext 10352 LIBS="$gt_save_LIBS" 10353 fi 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 10355 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 10356 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 10357 10358 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 10359 10360 fi 10361 INTL_MACOSX_LIBS= 10362 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 10363 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 10364 fi 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 case "$enable_silent_rules" in 10376 yes) INTL_DEFAULT_VERBOSITY=0;; 10377 no) INTL_DEFAULT_VERBOSITY=1;; 10378 *) INTL_DEFAULT_VERBOSITY=1;; 10379 esac 10380 10381 10382 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 10383 if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 10384 10385 else 10386 10387 $as_echo "#define ptrdiff_t long" >>confdefs.h 10388 10389 10390 fi 10391 10392 for ac_header in features.h stddef.h stdlib.h string.h 10393 do : 10394 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10395 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10396 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10397 cat >>confdefs.h <<_ACEOF 10398 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10399 _ACEOF 10400 10401 fi 10402 10403 done 10404 10405 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ 10406 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb 10407 do : 10408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10409 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10410 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10411 cat >>confdefs.h <<_ACEOF 10412 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10413 _ACEOF 10414 10415 fi 10416 done 10417 10418 10419 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h> 10420 " 10421 if test "x$ac_cv_have_decl__snprintf" = xyes; then : 10422 ac_have_decl=1 10423 else 10424 ac_have_decl=0 10425 fi 10426 10427 cat >>confdefs.h <<_ACEOF 10428 #define HAVE_DECL__SNPRINTF $ac_have_decl 10429 _ACEOF 10430 ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h> 10431 " 10432 if test "x$ac_cv_have_decl__snwprintf" = xyes; then : 10433 ac_have_decl=1 10434 else 10435 ac_have_decl=0 10436 fi 10437 10438 cat >>confdefs.h <<_ACEOF 10439 #define HAVE_DECL__SNWPRINTF $ac_have_decl 10440 _ACEOF 10441 10442 10443 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h> 10444 " 10445 if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then : 10446 ac_have_decl=1 10447 else 10448 ac_have_decl=0 10449 fi 10450 10451 cat >>confdefs.h <<_ACEOF 10452 #define HAVE_DECL_GETC_UNLOCKED $ac_have_decl 10453 _ACEOF 10454 10455 10456 case $gt_cv_func_printf_posix in 10457 *yes) HAVE_POSIX_PRINTF=1 ;; 10458 *) HAVE_POSIX_PRINTF=0 ;; 10459 esac 10460 10461 if test "$ac_cv_func_asprintf" = yes; then 10462 HAVE_ASPRINTF=1 10463 else 10464 HAVE_ASPRINTF=0 10465 fi 10466 10467 if test "$ac_cv_func_snprintf" = yes; then 10468 HAVE_SNPRINTF=1 10469 else 10470 HAVE_SNPRINTF=0 10471 fi 10472 10473 if test "$ac_cv_func_newlocale" = yes; then 10474 HAVE_NEWLOCALE=1 10475 else 10476 HAVE_NEWLOCALE=0 10477 fi 10478 10479 if test "$ac_cv_func_wprintf" = yes; then 10480 HAVE_WPRINTF=1 10481 else 10482 HAVE_WPRINTF=0 10483 fi 10484 10485 10486 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 10488 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 10489 if ${am_cv_langinfo_codeset+:} false; then : 10490 $as_echo_n "(cached) " >&6 10491 else 10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10493 /* end confdefs.h. */ 10494 #include <langinfo.h> 10495 int 10496 main () 10497 { 10498 char* cs = nl_langinfo(CODESET); return !cs; 10499 ; 10500 return 0; 10501 } 10502 _ACEOF 10503 if ac_fn_c_try_link "$LINENO"; then : 10504 am_cv_langinfo_codeset=yes 10505 else 10506 am_cv_langinfo_codeset=no 10507 fi 10508 rm -f core conftest.err conftest.$ac_objext \ 10509 conftest$ac_exeext conftest.$ac_ext 10510 10511 fi 10512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 10513 $as_echo "$am_cv_langinfo_codeset" >&6; } 10514 if test $am_cv_langinfo_codeset = yes; then 10515 10516 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 10517 10518 fi 10519 10520 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 10522 $as_echo_n "checking for LC_MESSAGES... " >&6; } 10523 if ${gt_cv_val_LC_MESSAGES+:} false; then : 10524 $as_echo_n "(cached) " >&6 10525 else 10526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10527 /* end confdefs.h. */ 10528 #include <locale.h> 10529 int 10530 main () 10531 { 10532 return LC_MESSAGES 10533 ; 10534 return 0; 10535 } 10536 _ACEOF 10537 if ac_fn_c_try_link "$LINENO"; then : 10538 gt_cv_val_LC_MESSAGES=yes 10539 else 10540 gt_cv_val_LC_MESSAGES=no 10541 fi 10542 rm -f core conftest.err conftest.$ac_objext \ 10543 conftest$ac_exeext conftest.$ac_ext 10544 fi 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 10546 $as_echo "$gt_cv_val_LC_MESSAGES" >&6; } 10547 if test $gt_cv_val_LC_MESSAGES = yes; then 10548 10549 $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 10550 10551 fi 10552 10553 10554 if test "$enable_shared" = yes; then 10555 case "$host_os" in 10556 mingw* | cygwin*) is_woe32dll=yes ;; 10557 *) is_woe32dll=no ;; 10558 esac 10559 else 10560 is_woe32dll=no 10561 fi 10562 WOE32DLL=$is_woe32dll 10563 10564 10565 case "$host_os" in 10566 mingw* | cygwin*) is_woe32=yes ;; 10567 *) is_woe32=no ;; 10568 esac 10569 WOE32=$is_woe32 10570 10571 if test $WOE32 = yes; then 10572 if test -n "$ac_tool_prefix"; then 10573 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 10574 set dummy ${ac_tool_prefix}windres; ac_word=$2 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10576 $as_echo_n "checking for $ac_word... " >&6; } 10577 if ${ac_cv_prog_WINDRES+:} false; then : 10578 $as_echo_n "(cached) " >&6 10579 else 10580 if test -n "$WINDRES"; then 10581 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 10582 else 10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10584 for as_dir in $PATH 10585 do 10586 IFS=$as_save_IFS 10587 test -z "$as_dir" && as_dir=. 10588 for ac_exec_ext in '' $ac_executable_extensions; do 10589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10590 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 10591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10592 break 2 10593 fi 10594 done 10595 done 10596 IFS=$as_save_IFS 10597 10598 fi 10599 fi 10600 WINDRES=$ac_cv_prog_WINDRES 10601 if test -n "$WINDRES"; then 10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 10603 $as_echo "$WINDRES" >&6; } 10604 else 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10606 $as_echo "no" >&6; } 10607 fi 10608 10609 10610 fi 10611 if test -z "$ac_cv_prog_WINDRES"; then 10612 ac_ct_WINDRES=$WINDRES 10613 # Extract the first word of "windres", so it can be a program name with args. 10614 set dummy windres; ac_word=$2 10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10616 $as_echo_n "checking for $ac_word... " >&6; } 10617 if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 10618 $as_echo_n "(cached) " >&6 10619 else 10620 if test -n "$ac_ct_WINDRES"; then 10621 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 10622 else 10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10624 for as_dir in $PATH 10625 do 10626 IFS=$as_save_IFS 10627 test -z "$as_dir" && as_dir=. 10628 for ac_exec_ext in '' $ac_executable_extensions; do 10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10630 ac_cv_prog_ac_ct_WINDRES="windres" 10631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10632 break 2 10633 fi 10634 done 10635 done 10636 IFS=$as_save_IFS 10637 10638 fi 10639 fi 10640 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 10641 if test -n "$ac_ct_WINDRES"; then 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 10643 $as_echo "$ac_ct_WINDRES" >&6; } 10644 else 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10646 $as_echo "no" >&6; } 10647 fi 10648 10649 if test "x$ac_ct_WINDRES" = x; then 10650 WINDRES="" 10651 else 10652 case $cross_compiling:$ac_tool_warned in 10653 yes:) 10654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10655 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10656 ac_tool_warned=yes ;; 10657 esac 10658 WINDRES=$ac_ct_WINDRES 10659 fi 10660 else 10661 WINDRES="$ac_cv_prog_WINDRES" 10662 fi 10663 10664 fi 10665 10666 case "$host_os" in 10667 hpux*) LTLIBC="" ;; 10668 *) LTLIBC="-lc" ;; 10669 esac 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 10698 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 10699 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 10700 $as_echo_n "(cached) " >&6 10701 else 10702 gt_save_LIBS="$LIBS" 10703 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10705 /* end confdefs.h. */ 10706 #include <CoreFoundation/CFPreferences.h> 10707 int 10708 main () 10709 { 10710 CFPreferencesCopyAppValue(NULL, NULL) 10711 ; 10712 return 0; 10713 } 10714 _ACEOF 10715 if ac_fn_c_try_link "$LINENO"; then : 10716 gt_cv_func_CFPreferencesCopyAppValue=yes 10717 else 10718 gt_cv_func_CFPreferencesCopyAppValue=no 10719 fi 10720 rm -f core conftest.err conftest.$ac_objext \ 10721 conftest$ac_exeext conftest.$ac_ext 10722 LIBS="$gt_save_LIBS" 10723 fi 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 10725 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 10726 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 10727 10728 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 10729 10730 fi 10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 10732 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 10733 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 10734 $as_echo_n "(cached) " >&6 10735 else 10736 gt_save_LIBS="$LIBS" 10737 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 10738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10739 /* end confdefs.h. */ 10740 #include <CoreFoundation/CFLocale.h> 10741 int 10742 main () 10743 { 10744 CFLocaleCopyCurrent(); 10745 ; 10746 return 0; 10747 } 10748 _ACEOF 10749 if ac_fn_c_try_link "$LINENO"; then : 10750 gt_cv_func_CFLocaleCopyCurrent=yes 10751 else 10752 gt_cv_func_CFLocaleCopyCurrent=no 10753 fi 10754 rm -f core conftest.err conftest.$ac_objext \ 10755 conftest$ac_exeext conftest.$ac_ext 10756 LIBS="$gt_save_LIBS" 10757 fi 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 10759 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 10760 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 10761 10762 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 10763 10764 fi 10765 INTL_MACOSX_LIBS= 10766 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 10767 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 10768 fi 10769 10770 10771 10772 10773 10774 10775 BUILD_INCLUDED_LIBINTL=no 10776 USE_INCLUDED_LIBINTL=no 10777 10778 LIBINTL= 10779 LTLIBINTL= 10780 POSUB= 10781 10782 case " $gt_needs " in 10783 *" need-formatstring-macros "*) gt_api_version=3 ;; 10784 *" need-ngettext "*) gt_api_version=2 ;; 10785 *) gt_api_version=1 ;; 10786 esac 10787 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 10788 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 10789 10790 if test "$USE_NLS" = "yes"; then 10791 gt_use_preinstalled_gnugettext=no 10792 10793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 10794 $as_echo_n "checking whether included gettext is requested... " >&6; } 10795 10796 # Check whether --with-included-gettext was given. 10797 if test "${with_included_gettext+set}" = set; then : 10798 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 10799 else 10800 nls_cv_force_use_gnu_gettext=no 10801 fi 10802 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 10804 $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 10805 10806 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 10807 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 10808 10809 10810 if test $gt_api_version -ge 3; then 10811 gt_revision_test_code=' 10812 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION 10813 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 10814 #endif 10815 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 10816 ' 10817 else 10818 gt_revision_test_code= 10819 fi 10820 if test $gt_api_version -ge 2; then 10821 gt_expression_test_code=' + * ngettext ("", "", 0)' 10822 else 10823 gt_expression_test_code= 10824 fi 10825 10826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 10827 $as_echo_n "checking for GNU gettext in libc... " >&6; } 10828 if eval \${$gt_func_gnugettext_libc+:} false; then : 10829 $as_echo_n "(cached) " >&6 10830 else 10831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10832 /* end confdefs.h. */ 10833 10834 #include <libintl.h> 10835 $gt_revision_test_code 10836 extern int _nl_msg_cat_cntr; 10837 extern int *_nl_domain_bindings; 10838 10839 int 10840 main () 10841 { 10842 10843 bindtextdomain ("", ""); 10844 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 10845 10846 ; 10847 return 0; 10848 } 10849 _ACEOF 10850 if ac_fn_c_try_link "$LINENO"; then : 10851 eval "$gt_func_gnugettext_libc=yes" 10852 else 10853 eval "$gt_func_gnugettext_libc=no" 10854 fi 10855 rm -f core conftest.err conftest.$ac_objext \ 10856 conftest$ac_exeext conftest.$ac_ext 10857 fi 10858 eval ac_res=\$$gt_func_gnugettext_libc 10859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10860 $as_echo "$ac_res" >&6; } 10861 10862 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 10863 10864 10865 10866 10867 10868 10869 10870 10871 use_additional=yes 10872 10873 acl_save_prefix="$prefix" 10874 prefix="$acl_final_prefix" 10875 acl_save_exec_prefix="$exec_prefix" 10876 exec_prefix="$acl_final_exec_prefix" 10877 10878 eval additional_includedir=\"$includedir\" 10879 eval additional_libdir=\"$libdir\" 10880 10881 exec_prefix="$acl_save_exec_prefix" 10882 prefix="$acl_save_prefix" 10883 10884 10885 # Check whether --with-libintl-prefix was given. 10886 if test "${with_libintl_prefix+set}" = set; then : 10887 withval=$with_libintl_prefix; 10888 if test "X$withval" = "Xno"; then 10889 use_additional=no 10890 else 10891 if test "X$withval" = "X"; then 10892 10893 acl_save_prefix="$prefix" 10894 prefix="$acl_final_prefix" 10895 acl_save_exec_prefix="$exec_prefix" 10896 exec_prefix="$acl_final_exec_prefix" 10897 10898 eval additional_includedir=\"$includedir\" 10899 eval additional_libdir=\"$libdir\" 10900 10901 exec_prefix="$acl_save_exec_prefix" 10902 prefix="$acl_save_prefix" 10903 10904 else 10905 additional_includedir="$withval/include" 10906 additional_libdir="$withval/$acl_libdirstem" 10907 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 10908 && ! test -d "$withval/$acl_libdirstem"; then 10909 additional_libdir="$withval/$acl_libdirstem2" 10910 fi 10911 fi 10912 fi 10913 10914 fi 10915 10916 LIBINTL= 10917 LTLIBINTL= 10918 INCINTL= 10919 LIBINTL_PREFIX= 10920 HAVE_LIBINTL= 10921 rpathdirs= 10922 ltrpathdirs= 10923 names_already_handled= 10924 names_next_round='intl ' 10925 while test -n "$names_next_round"; do 10926 names_this_round="$names_next_round" 10927 names_next_round= 10928 for name in $names_this_round; do 10929 already_handled= 10930 for n in $names_already_handled; do 10931 if test "$n" = "$name"; then 10932 already_handled=yes 10933 break 10934 fi 10935 done 10936 if test -z "$already_handled"; then 10937 names_already_handled="$names_already_handled $name" 10938 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 10939 eval value=\"\$HAVE_LIB$uppername\" 10940 if test -n "$value"; then 10941 if test "$value" = yes; then 10942 eval value=\"\$LIB$uppername\" 10943 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 10944 eval value=\"\$LTLIB$uppername\" 10945 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 10946 else 10947 : 10948 fi 10949 else 10950 found_dir= 10951 found_la= 10952 found_so= 10953 found_a= 10954 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 10955 if test -n "$acl_shlibext"; then 10956 shrext=".$acl_shlibext" # typically: shrext=.so 10957 else 10958 shrext= 10959 fi 10960 if test $use_additional = yes; then 10961 dir="$additional_libdir" 10962 if test -n "$acl_shlibext"; then 10963 if test -f "$dir/$libname$shrext"; then 10964 found_dir="$dir" 10965 found_so="$dir/$libname$shrext" 10966 else 10967 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 10968 ver=`(cd "$dir" && \ 10969 for f in "$libname$shrext".*; do echo "$f"; done \ 10970 | sed -e "s,^$libname$shrext\\\\.,," \ 10971 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 10972 | sed 1q ) 2>/dev/null` 10973 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 10974 found_dir="$dir" 10975 found_so="$dir/$libname$shrext.$ver" 10976 fi 10977 else 10978 eval library_names=\"$acl_library_names_spec\" 10979 for f in $library_names; do 10980 if test -f "$dir/$f"; then 10981 found_dir="$dir" 10982 found_so="$dir/$f" 10983 break 10984 fi 10985 done 10986 fi 10987 fi 10988 fi 10989 if test "X$found_dir" = "X"; then 10990 if test -f "$dir/$libname.$acl_libext"; then 10991 found_dir="$dir" 10992 found_a="$dir/$libname.$acl_libext" 10993 fi 10994 fi 10995 if test "X$found_dir" != "X"; then 10996 if test -f "$dir/$libname.la"; then 10997 found_la="$dir/$libname.la" 10998 fi 10999 fi 11000 fi 11001 if test "X$found_dir" = "X"; then 11002 for x in $LDFLAGS $LTLIBINTL; do 11003 11004 acl_save_prefix="$prefix" 11005 prefix="$acl_final_prefix" 11006 acl_save_exec_prefix="$exec_prefix" 11007 exec_prefix="$acl_final_exec_prefix" 11008 eval x=\"$x\" 11009 exec_prefix="$acl_save_exec_prefix" 11010 prefix="$acl_save_prefix" 11011 11012 case "$x" in 11013 -L*) 11014 dir=`echo "X$x" | sed -e 's/^X-L//'` 11015 if test -n "$acl_shlibext"; then 11016 if test -f "$dir/$libname$shrext"; then 11017 found_dir="$dir" 11018 found_so="$dir/$libname$shrext" 11019 else 11020 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 11021 ver=`(cd "$dir" && \ 11022 for f in "$libname$shrext".*; do echo "$f"; done \ 11023 | sed -e "s,^$libname$shrext\\\\.,," \ 11024 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 11025 | sed 1q ) 2>/dev/null` 11026 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 11027 found_dir="$dir" 11028 found_so="$dir/$libname$shrext.$ver" 11029 fi 11030 else 11031 eval library_names=\"$acl_library_names_spec\" 11032 for f in $library_names; do 11033 if test -f "$dir/$f"; then 11034 found_dir="$dir" 11035 found_so="$dir/$f" 11036 break 11037 fi 11038 done 11039 fi 11040 fi 11041 fi 11042 if test "X$found_dir" = "X"; then 11043 if test -f "$dir/$libname.$acl_libext"; then 11044 found_dir="$dir" 11045 found_a="$dir/$libname.$acl_libext" 11046 fi 11047 fi 11048 if test "X$found_dir" != "X"; then 11049 if test -f "$dir/$libname.la"; then 11050 found_la="$dir/$libname.la" 11051 fi 11052 fi 11053 ;; 11054 esac 11055 if test "X$found_dir" != "X"; then 11056 break 11057 fi 11058 done 11059 fi 11060 if test "X$found_dir" != "X"; then 11061 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 11062 if test "X$found_so" != "X"; then 11063 if test "$enable_rpath" = no \ 11064 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 11065 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 11066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11067 else 11068 haveit= 11069 for x in $ltrpathdirs; do 11070 if test "X$x" = "X$found_dir"; then 11071 haveit=yes 11072 break 11073 fi 11074 done 11075 if test -z "$haveit"; then 11076 ltrpathdirs="$ltrpathdirs $found_dir" 11077 fi 11078 if test "$acl_hardcode_direct" = yes; then 11079 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11080 else 11081 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 11082 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11083 haveit= 11084 for x in $rpathdirs; do 11085 if test "X$x" = "X$found_dir"; then 11086 haveit=yes 11087 break 11088 fi 11089 done 11090 if test -z "$haveit"; then 11091 rpathdirs="$rpathdirs $found_dir" 11092 fi 11093 else 11094 haveit= 11095 for x in $LDFLAGS $LIBINTL; do 11096 11097 acl_save_prefix="$prefix" 11098 prefix="$acl_final_prefix" 11099 acl_save_exec_prefix="$exec_prefix" 11100 exec_prefix="$acl_final_exec_prefix" 11101 eval x=\"$x\" 11102 exec_prefix="$acl_save_exec_prefix" 11103 prefix="$acl_save_prefix" 11104 11105 if test "X$x" = "X-L$found_dir"; then 11106 haveit=yes 11107 break 11108 fi 11109 done 11110 if test -z "$haveit"; then 11111 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 11112 fi 11113 if test "$acl_hardcode_minus_L" != no; then 11114 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 11115 else 11116 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 11117 fi 11118 fi 11119 fi 11120 fi 11121 else 11122 if test "X$found_a" != "X"; then 11123 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 11124 else 11125 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 11126 fi 11127 fi 11128 additional_includedir= 11129 case "$found_dir" in 11130 */$acl_libdirstem | */$acl_libdirstem/) 11131 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 11132 if test "$name" = 'intl'; then 11133 LIBINTL_PREFIX="$basedir" 11134 fi 11135 additional_includedir="$basedir/include" 11136 ;; 11137 */$acl_libdirstem2 | */$acl_libdirstem2/) 11138 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 11139 if test "$name" = 'intl'; then 11140 LIBINTL_PREFIX="$basedir" 11141 fi 11142 additional_includedir="$basedir/include" 11143 ;; 11144 esac 11145 if test "X$additional_includedir" != "X"; then 11146 if test "X$additional_includedir" != "X/usr/include"; then 11147 haveit= 11148 if test "X$additional_includedir" = "X/usr/local/include"; then 11149 if test -n "$GCC"; then 11150 case $host_os in 11151 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11152 esac 11153 fi 11154 fi 11155 if test -z "$haveit"; then 11156 for x in $CPPFLAGS $INCINTL; do 11157 11158 acl_save_prefix="$prefix" 11159 prefix="$acl_final_prefix" 11160 acl_save_exec_prefix="$exec_prefix" 11161 exec_prefix="$acl_final_exec_prefix" 11162 eval x=\"$x\" 11163 exec_prefix="$acl_save_exec_prefix" 11164 prefix="$acl_save_prefix" 11165 11166 if test "X$x" = "X-I$additional_includedir"; then 11167 haveit=yes 11168 break 11169 fi 11170 done 11171 if test -z "$haveit"; then 11172 if test -d "$additional_includedir"; then 11173 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 11174 fi 11175 fi 11176 fi 11177 fi 11178 fi 11179 if test -n "$found_la"; then 11180 save_libdir="$libdir" 11181 case "$found_la" in 11182 */* | *\\*) . "$found_la" ;; 11183 *) . "./$found_la" ;; 11184 esac 11185 libdir="$save_libdir" 11186 for dep in $dependency_libs; do 11187 case "$dep" in 11188 -L*) 11189 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 11190 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 11191 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 11192 haveit= 11193 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 11194 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 11195 if test -n "$GCC"; then 11196 case $host_os in 11197 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 11198 esac 11199 fi 11200 fi 11201 if test -z "$haveit"; then 11202 haveit= 11203 for x in $LDFLAGS $LIBINTL; do 11204 11205 acl_save_prefix="$prefix" 11206 prefix="$acl_final_prefix" 11207 acl_save_exec_prefix="$exec_prefix" 11208 exec_prefix="$acl_final_exec_prefix" 11209 eval x=\"$x\" 11210 exec_prefix="$acl_save_exec_prefix" 11211 prefix="$acl_save_prefix" 11212 11213 if test "X$x" = "X-L$additional_libdir"; then 11214 haveit=yes 11215 break 11216 fi 11217 done 11218 if test -z "$haveit"; then 11219 if test -d "$additional_libdir"; then 11220 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 11221 fi 11222 fi 11223 haveit= 11224 for x in $LDFLAGS $LTLIBINTL; do 11225 11226 acl_save_prefix="$prefix" 11227 prefix="$acl_final_prefix" 11228 acl_save_exec_prefix="$exec_prefix" 11229 exec_prefix="$acl_final_exec_prefix" 11230 eval x=\"$x\" 11231 exec_prefix="$acl_save_exec_prefix" 11232 prefix="$acl_save_prefix" 11233 11234 if test "X$x" = "X-L$additional_libdir"; then 11235 haveit=yes 11236 break 11237 fi 11238 done 11239 if test -z "$haveit"; then 11240 if test -d "$additional_libdir"; then 11241 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 11242 fi 11243 fi 11244 fi 11245 fi 11246 ;; 11247 -R*) 11248 dir=`echo "X$dep" | sed -e 's/^X-R//'` 11249 if test "$enable_rpath" != no; then 11250 haveit= 11251 for x in $rpathdirs; do 11252 if test "X$x" = "X$dir"; then 11253 haveit=yes 11254 break 11255 fi 11256 done 11257 if test -z "$haveit"; then 11258 rpathdirs="$rpathdirs $dir" 11259 fi 11260 haveit= 11261 for x in $ltrpathdirs; do 11262 if test "X$x" = "X$dir"; then 11263 haveit=yes 11264 break 11265 fi 11266 done 11267 if test -z "$haveit"; then 11268 ltrpathdirs="$ltrpathdirs $dir" 11269 fi 11270 fi 11271 ;; 11272 -l*) 11273 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 11274 ;; 11275 *.la) 11276 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 11277 ;; 11278 *) 11279 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 11280 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 11281 ;; 11282 esac 11283 done 11284 fi 11285 else 11286 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 11287 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 11288 fi 11289 fi 11290 fi 11291 done 11292 done 11293 if test "X$rpathdirs" != "X"; then 11294 if test -n "$acl_hardcode_libdir_separator"; then 11295 alldirs= 11296 for found_dir in $rpathdirs; do 11297 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 11298 done 11299 acl_save_libdir="$libdir" 11300 libdir="$alldirs" 11301 eval flag=\"$acl_hardcode_libdir_flag_spec\" 11302 libdir="$acl_save_libdir" 11303 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 11304 else 11305 for found_dir in $rpathdirs; do 11306 acl_save_libdir="$libdir" 11307 libdir="$found_dir" 11308 eval flag=\"$acl_hardcode_libdir_flag_spec\" 11309 libdir="$acl_save_libdir" 11310 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 11311 done 11312 fi 11313 fi 11314 if test "X$ltrpathdirs" != "X"; then 11315 for found_dir in $ltrpathdirs; do 11316 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 11317 done 11318 fi 11319 11320 11321 11322 11323 11324 11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 11326 $as_echo_n "checking for GNU gettext in libintl... " >&6; } 11327 if eval \${$gt_func_gnugettext_libintl+:} false; then : 11328 $as_echo_n "(cached) " >&6 11329 else 11330 gt_save_CPPFLAGS="$CPPFLAGS" 11331 CPPFLAGS="$CPPFLAGS $INCINTL" 11332 gt_save_LIBS="$LIBS" 11333 LIBS="$LIBS $LIBINTL" 11334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11335 /* end confdefs.h. */ 11336 11337 #include <libintl.h> 11338 $gt_revision_test_code 11339 extern int _nl_msg_cat_cntr; 11340 extern 11341 #ifdef __cplusplus 11342 "C" 11343 #endif 11344 const char *_nl_expand_alias (const char *); 11345 11346 int 11347 main () 11348 { 11349 11350 bindtextdomain ("", ""); 11351 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 11352 11353 ; 11354 return 0; 11355 } 11356 _ACEOF 11357 if ac_fn_c_try_link "$LINENO"; then : 11358 eval "$gt_func_gnugettext_libintl=yes" 11359 else 11360 eval "$gt_func_gnugettext_libintl=no" 11361 fi 11362 rm -f core conftest.err conftest.$ac_objext \ 11363 conftest$ac_exeext conftest.$ac_ext 11364 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 11365 LIBS="$LIBS $LIBICONV" 11366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11367 /* end confdefs.h. */ 11368 11369 #include <libintl.h> 11370 $gt_revision_test_code 11371 extern int _nl_msg_cat_cntr; 11372 extern 11373 #ifdef __cplusplus 11374 "C" 11375 #endif 11376 const char *_nl_expand_alias (const char *); 11377 11378 int 11379 main () 11380 { 11381 11382 bindtextdomain ("", ""); 11383 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 11384 11385 ; 11386 return 0; 11387 } 11388 _ACEOF 11389 if ac_fn_c_try_link "$LINENO"; then : 11390 LIBINTL="$LIBINTL $LIBICONV" 11391 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 11392 eval "$gt_func_gnugettext_libintl=yes" 11393 11394 fi 11395 rm -f core conftest.err conftest.$ac_objext \ 11396 conftest$ac_exeext conftest.$ac_ext 11397 fi 11398 CPPFLAGS="$gt_save_CPPFLAGS" 11399 LIBS="$gt_save_LIBS" 11400 fi 11401 eval ac_res=\$$gt_func_gnugettext_libintl 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11403 $as_echo "$ac_res" >&6; } 11404 fi 11405 11406 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 11407 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 11408 && test "$PACKAGE" != gettext-runtime \ 11409 && test "$PACKAGE" != gettext-tools; }; then 11410 gt_use_preinstalled_gnugettext=yes 11411 else 11412 LIBINTL= 11413 LTLIBINTL= 11414 INCINTL= 11415 fi 11416 11417 11418 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 11419 nls_cv_use_gnu_gettext=yes 11420 fi 11421 fi 11422 11423 if test "$nls_cv_use_gnu_gettext" = "yes"; then 11424 BUILD_INCLUDED_LIBINTL=yes 11425 USE_INCLUDED_LIBINTL=yes 11426 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" 11427 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" 11428 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 11429 fi 11430 11431 CATOBJEXT= 11432 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 11433 || test "$nls_cv_use_gnu_gettext" = "yes"; then 11434 CATOBJEXT=.gmo 11435 fi 11436 11437 11438 if test -n "$INTL_MACOSX_LIBS"; then 11439 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 11440 || test "$nls_cv_use_gnu_gettext" = "yes"; then 11441 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 11442 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 11443 fi 11444 fi 11445 11446 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 11447 || test "$nls_cv_use_gnu_gettext" = "yes"; then 11448 11449 $as_echo "#define ENABLE_NLS 1" >>confdefs.h 11450 11451 else 11452 USE_NLS=no 11453 fi 11454 fi 11455 11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 11457 $as_echo_n "checking whether to use NLS... " >&6; } 11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 11459 $as_echo "$USE_NLS" >&6; } 11460 if test "$USE_NLS" = "yes"; then 11461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 11462 $as_echo_n "checking where the gettext function comes from... " >&6; } 11463 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 11464 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 11465 gt_source="external libintl" 11466 else 11467 gt_source="libc" 11468 fi 11469 else 11470 gt_source="included intl directory" 11471 fi 11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 11473 $as_echo "$gt_source" >&6; } 11474 fi 11475 11476 if test "$USE_NLS" = "yes"; then 11477 11478 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 11479 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 11481 $as_echo_n "checking how to link with libintl... " >&6; } 11482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 11483 $as_echo "$LIBINTL" >&6; } 11484 11485 for element in $INCINTL; do 11486 haveit= 11487 for x in $CPPFLAGS; do 11488 11489 acl_save_prefix="$prefix" 11490 prefix="$acl_final_prefix" 11491 acl_save_exec_prefix="$exec_prefix" 11492 exec_prefix="$acl_final_exec_prefix" 11493 eval x=\"$x\" 11494 exec_prefix="$acl_save_exec_prefix" 11495 prefix="$acl_save_prefix" 11496 11497 if test "X$x" = "X$element"; then 11498 haveit=yes 11499 break 11500 fi 11501 done 11502 if test -z "$haveit"; then 11503 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 11504 fi 11505 done 11506 11507 fi 11508 11509 11510 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 11511 11512 11513 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 11514 11515 fi 11516 11517 POSUB=po 11518 fi 11519 11520 11521 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 11522 BUILD_INCLUDED_LIBINTL=yes 11523 fi 11524 11525 11526 11527 11528 11529 nls_cv_header_intl= 11530 nls_cv_header_libgt= 11531 11532 DATADIRNAME=share 11533 11534 11535 INSTOBJEXT=.mo 11536 11537 11538 GENCAT=gencat 11539 11540 11541 INTLOBJS= 11542 if test "$USE_INCLUDED_LIBINTL" = yes; then 11543 INTLOBJS="\$(GETTOBJS)" 11544 fi 11545 11546 11547 INTL_LIBTOOL_SUFFIX_PREFIX= 11548 11549 11550 11551 INTLLIBS="$LIBINTL" 11552 11553 11554 11555 11556 11557 11558 11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11560 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11561 set x ${MAKE-make} 11562 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11563 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 11564 $as_echo_n "(cached) " >&6 11565 else 11566 cat >conftest.make <<\_ACEOF 11567 SHELL = /bin/sh 11568 all: 11569 @echo '@@@%%%=$(MAKE)=@@@%%%' 11570 _ACEOF 11571 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 11572 case `${MAKE-make} -f conftest.make 2>/dev/null` in 11573 *@@@%%%=?*=@@@%%%*) 11574 eval ac_cv_prog_make_${ac_make}_set=yes;; 11575 *) 11576 eval ac_cv_prog_make_${ac_make}_set=no;; 11577 esac 11578 rm -f conftest.make 11579 fi 11580 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11582 $as_echo "yes" >&6; } 11583 SET_MAKE= 11584 else 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11586 $as_echo "no" >&6; } 11587 SET_MAKE="MAKE=${MAKE-make}" 11588 fi 11589 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 11591 $as_echo_n "checking for GNU make... " >&6; } 11592 if ${_cv_gnu_make_command+:} false; then : 11593 $as_echo_n "(cached) " >&6 11594 else 11595 _cv_gnu_make_command='' ; 11596 if test -n "$FORCE_NATIVE_MAKE" ; then 11597 MAKES="make" 11598 else 11599 MAKES="make gmake gnumake" 11600 fi 11601 for a in "$MAKE" $MAKES ; do 11602 if test -z "$a" ; then continue ; fi ; 11603 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then 11604 _cv_gnu_make_command=$a ; 11605 break; 11606 fi 11607 done ; 11608 11609 fi 11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 11611 $as_echo "$_cv_gnu_make_command" >&6; } ; 11612 if test "x$_cv_gnu_make_command" != "x" ; then 11613 ifGNUmake='' ; 11614 ifNotGNUmake='#' ; 11615 else 11616 ifGNUmake='#' ; 11617 ifNotGNUmake='' ; 11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 11619 $as_echo "\"Not found\"" >&6; }; 11620 fi 11621 11622 11623 11624 # Extract the first word of "ln", so it can be a program name with args. 11625 set dummy ln; ac_word=$2 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11627 $as_echo_n "checking for $ac_word... " >&6; } 11628 if ${ac_cv_path_LN+:} false; then : 11629 $as_echo_n "(cached) " >&6 11630 else 11631 case $LN in 11632 [\\/]* | ?:[\\/]*) 11633 ac_cv_path_LN="$LN" # Let the user override the test with a path. 11634 ;; 11635 *) 11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11637 for as_dir in $PATH 11638 do 11639 IFS=$as_save_IFS 11640 test -z "$as_dir" && as_dir=. 11641 for ac_exec_ext in '' $ac_executable_extensions; do 11642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11643 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11645 break 2 11646 fi 11647 done 11648 done 11649 IFS=$as_save_IFS 11650 11651 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" 11652 ;; 11653 esac 11654 fi 11655 LN=$ac_cv_path_LN 11656 if test -n "$LN"; then 11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 11658 $as_echo "$LN" >&6; } 11659 else 11660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11661 $as_echo "no" >&6; } 11662 fi 11663 11664 11665 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11667 $as_echo_n "checking whether ln -s works... " >&6; } 11668 LN_S=$as_ln_s 11669 if test "$LN_S" = "ln -s"; then 11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11671 $as_echo "yes" >&6; } 11672 else 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11674 $as_echo "no, using $LN_S" >&6; } 11675 fi 11676 11677 # Extract the first word of "mv", so it can be a program name with args. 11678 set dummy mv; ac_word=$2 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11680 $as_echo_n "checking for $ac_word... " >&6; } 11681 if ${ac_cv_path_MV+:} false; then : 11682 $as_echo_n "(cached) " >&6 11683 else 11684 case $MV in 11685 [\\/]* | ?:[\\/]*) 11686 ac_cv_path_MV="$MV" # Let the user override the test with a path. 11687 ;; 11688 *) 11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11690 for as_dir in $PATH 11691 do 11692 IFS=$as_save_IFS 11693 test -z "$as_dir" && as_dir=. 11694 for ac_exec_ext in '' $ac_executable_extensions; do 11695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11696 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 11697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11698 break 2 11699 fi 11700 done 11701 done 11702 IFS=$as_save_IFS 11703 11704 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" 11705 ;; 11706 esac 11707 fi 11708 MV=$ac_cv_path_MV 11709 if test -n "$MV"; then 11710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 11711 $as_echo "$MV" >&6; } 11712 else 11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11714 $as_echo "no" >&6; } 11715 fi 11716 11717 11718 # Extract the first word of "cp", so it can be a program name with args. 11719 set dummy cp; ac_word=$2 11720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11721 $as_echo_n "checking for $ac_word... " >&6; } 11722 if ${ac_cv_path_CP+:} false; then : 11723 $as_echo_n "(cached) " >&6 11724 else 11725 case $CP in 11726 [\\/]* | ?:[\\/]*) 11727 ac_cv_path_CP="$CP" # Let the user override the test with a path. 11728 ;; 11729 *) 11730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11731 for as_dir in $PATH 11732 do 11733 IFS=$as_save_IFS 11734 test -z "$as_dir" && as_dir=. 11735 for ac_exec_ext in '' $ac_executable_extensions; do 11736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11737 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 11738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11739 break 2 11740 fi 11741 done 11742 done 11743 IFS=$as_save_IFS 11744 11745 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 11746 ;; 11747 esac 11748 fi 11749 CP=$ac_cv_path_CP 11750 if test -n "$CP"; then 11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 11752 $as_echo "$CP" >&6; } 11753 else 11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11755 $as_echo "no" >&6; } 11756 fi 11757 11758 11759 # Extract the first word of "rm", so it can be a program name with args. 11760 set dummy rm; ac_word=$2 11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11762 $as_echo_n "checking for $ac_word... " >&6; } 11763 if ${ac_cv_path_RM+:} false; then : 11764 $as_echo_n "(cached) " >&6 11765 else 11766 case $RM in 11767 [\\/]* | ?:[\\/]*) 11768 ac_cv_path_RM="$RM" # Let the user override the test with a path. 11769 ;; 11770 *) 11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11772 for as_dir in $PATH 11773 do 11774 IFS=$as_save_IFS 11775 test -z "$as_dir" && as_dir=. 11776 for ac_exec_ext in '' $ac_executable_extensions; do 11777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11778 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 11779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11780 break 2 11781 fi 11782 done 11783 done 11784 IFS=$as_save_IFS 11785 11786 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" 11787 ;; 11788 esac 11789 fi 11790 RM=$ac_cv_path_RM 11791 if test -n "$RM"; then 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 11793 $as_echo "$RM" >&6; } 11794 else 11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11796 $as_echo "no" >&6; } 11797 fi 11798 11799 11800 # Extract the first word of "chmod", so it can be a program name with args. 11801 set dummy chmod; ac_word=$2 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11803 $as_echo_n "checking for $ac_word... " >&6; } 11804 if ${ac_cv_path_CHMOD+:} false; then : 11805 $as_echo_n "(cached) " >&6 11806 else 11807 case $CHMOD in 11808 [\\/]* | ?:[\\/]*) 11809 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 11810 ;; 11811 *) 11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11813 for as_dir in $PATH 11814 do 11815 IFS=$as_save_IFS 11816 test -z "$as_dir" && as_dir=. 11817 for ac_exec_ext in '' $ac_executable_extensions; do 11818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11819 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 11820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11821 break 2 11822 fi 11823 done 11824 done 11825 IFS=$as_save_IFS 11826 11827 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" 11828 ;; 11829 esac 11830 fi 11831 CHMOD=$ac_cv_path_CHMOD 11832 if test -n "$CHMOD"; then 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 11834 $as_echo "$CHMOD" >&6; } 11835 else 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11837 $as_echo "no" >&6; } 11838 fi 11839 11840 11841 for ac_prog in gawk mawk nawk awk 11842 do 11843 # Extract the first word of "$ac_prog", so it can be a program name with args. 11844 set dummy $ac_prog; ac_word=$2 11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11846 $as_echo_n "checking for $ac_word... " >&6; } 11847 if ${ac_cv_prog_AWK+:} false; then : 11848 $as_echo_n "(cached) " >&6 11849 else 11850 if test -n "$AWK"; then 11851 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11852 else 11853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11854 for as_dir in $PATH 11855 do 11856 IFS=$as_save_IFS 11857 test -z "$as_dir" && as_dir=. 11858 for ac_exec_ext in '' $ac_executable_extensions; do 11859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11860 ac_cv_prog_AWK="$ac_prog" 11861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11862 break 2 11863 fi 11864 done 11865 done 11866 IFS=$as_save_IFS 11867 11868 fi 11869 fi 11870 AWK=$ac_cv_prog_AWK 11871 if test -n "$AWK"; then 11872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11873 $as_echo "$AWK" >&6; } 11874 else 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11876 $as_echo "no" >&6; } 11877 fi 11878 11879 11880 test -n "$AWK" && break 11881 done 11882 11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11884 $as_echo_n "checking for egrep... " >&6; } 11885 if ${ac_cv_path_EGREP+:} false; then : 11886 $as_echo_n "(cached) " >&6 11887 else 11888 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11889 then ac_cv_path_EGREP="$GREP -E" 11890 else 11891 if test -z "$EGREP"; then 11892 ac_path_EGREP_found=false 11893 # Loop through the user's path and test for each of PROGNAME-LIST 11894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11895 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11896 do 11897 IFS=$as_save_IFS 11898 test -z "$as_dir" && as_dir=. 11899 for ac_prog in egrep; do 11900 for ac_exec_ext in '' $ac_executable_extensions; do 11901 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11902 as_fn_executable_p "$ac_path_EGREP" || continue 11903 # Check for GNU ac_path_EGREP and select it if it is found. 11904 # Check for GNU $ac_path_EGREP 11905 case `"$ac_path_EGREP" --version 2>&1` in 11906 *GNU*) 11907 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11908 *) 11909 ac_count=0 11910 $as_echo_n 0123456789 >"conftest.in" 11911 while : 11912 do 11913 cat "conftest.in" "conftest.in" >"conftest.tmp" 11914 mv "conftest.tmp" "conftest.in" 11915 cp "conftest.in" "conftest.nl" 11916 $as_echo 'EGREP' >> "conftest.nl" 11917 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11918 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11919 as_fn_arith $ac_count + 1 && ac_count=$as_val 11920 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11921 # Best one so far, save it but keep looking for a better one 11922 ac_cv_path_EGREP="$ac_path_EGREP" 11923 ac_path_EGREP_max=$ac_count 11924 fi 11925 # 10*(2^10) chars as input seems more than enough 11926 test $ac_count -gt 10 && break 11927 done 11928 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11929 esac 11930 11931 $ac_path_EGREP_found && break 3 11932 done 11933 done 11934 done 11935 IFS=$as_save_IFS 11936 if test -z "$ac_cv_path_EGREP"; then 11937 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11938 fi 11939 else 11940 ac_cv_path_EGREP=$EGREP 11941 fi 11942 11943 fi 11944 fi 11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11946 $as_echo "$ac_cv_path_EGREP" >&6; } 11947 EGREP="$ac_cv_path_EGREP" 11948 11949 11950 # Extract the first word of "sed", so it can be a program name with args. 11951 set dummy sed; ac_word=$2 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11953 $as_echo_n "checking for $ac_word... " >&6; } 11954 if ${ac_cv_path_SED+:} false; then : 11955 $as_echo_n "(cached) " >&6 11956 else 11957 case $SED in 11958 [\\/]* | ?:[\\/]*) 11959 ac_cv_path_SED="$SED" # Let the user override the test with a path. 11960 ;; 11961 *) 11962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11963 for as_dir in $PATH 11964 do 11965 IFS=$as_save_IFS 11966 test -z "$as_dir" && as_dir=. 11967 for ac_exec_ext in '' $ac_executable_extensions; do 11968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11969 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 11970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11971 break 2 11972 fi 11973 done 11974 done 11975 IFS=$as_save_IFS 11976 11977 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" 11978 ;; 11979 esac 11980 fi 11981 SED=$ac_cv_path_SED 11982 if test -n "$SED"; then 11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 11984 $as_echo "$SED" >&6; } 11985 else 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11987 $as_echo "no" >&6; } 11988 fi 11989 11990 11991 # Extract the first word of "perl", so it can be a program name with args. 11992 set dummy perl; ac_word=$2 11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11994 $as_echo_n "checking for $ac_word... " >&6; } 11995 if ${ac_cv_path_PERL+:} false; then : 11996 $as_echo_n "(cached) " >&6 11997 else 11998 case $PERL in 11999 [\\/]* | ?:[\\/]*) 12000 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 12001 ;; 12002 *) 12003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12004 for as_dir in $PATH 12005 do 12006 IFS=$as_save_IFS 12007 test -z "$as_dir" && as_dir=. 12008 for ac_exec_ext in '' $ac_executable_extensions; do 12009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12010 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 12011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12012 break 2 12013 fi 12014 done 12015 done 12016 IFS=$as_save_IFS 12017 12018 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" 12019 ;; 12020 esac 12021 fi 12022 PERL=$ac_cv_path_PERL 12023 if test -n "$PERL"; then 12024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 12025 $as_echo "$PERL" >&6; } 12026 else 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12028 $as_echo "no" >&6; } 12029 fi 12030 12031 12032 # Extract the first word of "ldconfig", so it can be a program name with args. 12033 set dummy ldconfig; ac_word=$2 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12035 $as_echo_n "checking for $ac_word... " >&6; } 12036 if ${ac_cv_path_LDCONFIG+:} false; then : 12037 $as_echo_n "(cached) " >&6 12038 else 12039 case $LDCONFIG in 12040 [\\/]* | ?:[\\/]*) 12041 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. 12042 ;; 12043 *) 12044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12045 for as_dir in $PATH 12046 do 12047 IFS=$as_save_IFS 12048 test -z "$as_dir" && as_dir=. 12049 for ac_exec_ext in '' $ac_executable_extensions; do 12050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12051 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" 12052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12053 break 2 12054 fi 12055 done 12056 done 12057 IFS=$as_save_IFS 12058 12059 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" 12060 ;; 12061 esac 12062 fi 12063 LDCONFIG=$ac_cv_path_LDCONFIG 12064 if test -n "$LDCONFIG"; then 12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 12066 $as_echo "$LDCONFIG" >&6; } 12067 else 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12069 $as_echo "no" >&6; } 12070 fi 12071 12072 12073 if test -n "$ac_tool_prefix"; then 12074 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 12075 set dummy ${ac_tool_prefix}ar; ac_word=$2 12076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12077 $as_echo_n "checking for $ac_word... " >&6; } 12078 if ${ac_cv_prog_AR+:} false; then : 12079 $as_echo_n "(cached) " >&6 12080 else 12081 if test -n "$AR"; then 12082 ac_cv_prog_AR="$AR" # Let the user override the test. 12083 else 12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12085 for as_dir in $PATH 12086 do 12087 IFS=$as_save_IFS 12088 test -z "$as_dir" && as_dir=. 12089 for ac_exec_ext in '' $ac_executable_extensions; do 12090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12091 ac_cv_prog_AR="${ac_tool_prefix}ar" 12092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12093 break 2 12094 fi 12095 done 12096 done 12097 IFS=$as_save_IFS 12098 12099 fi 12100 fi 12101 AR=$ac_cv_prog_AR 12102 if test -n "$AR"; then 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 12104 $as_echo "$AR" >&6; } 12105 else 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12107 $as_echo "no" >&6; } 12108 fi 12109 12110 12111 fi 12112 if test -z "$ac_cv_prog_AR"; then 12113 ac_ct_AR=$AR 12114 # Extract the first word of "ar", so it can be a program name with args. 12115 set dummy ar; ac_word=$2 12116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12117 $as_echo_n "checking for $ac_word... " >&6; } 12118 if ${ac_cv_prog_ac_ct_AR+:} false; then : 12119 $as_echo_n "(cached) " >&6 12120 else 12121 if test -n "$ac_ct_AR"; then 12122 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 12123 else 12124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12125 for as_dir in $PATH 12126 do 12127 IFS=$as_save_IFS 12128 test -z "$as_dir" && as_dir=. 12129 for ac_exec_ext in '' $ac_executable_extensions; do 12130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12131 ac_cv_prog_ac_ct_AR="ar" 12132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12133 break 2 12134 fi 12135 done 12136 done 12137 IFS=$as_save_IFS 12138 12139 fi 12140 fi 12141 ac_ct_AR=$ac_cv_prog_ac_ct_AR 12142 if test -n "$ac_ct_AR"; then 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 12144 $as_echo "$ac_ct_AR" >&6; } 12145 else 12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12147 $as_echo "no" >&6; } 12148 fi 12149 12150 if test "x$ac_ct_AR" = x; then 12151 AR="ar" 12152 else 12153 case $cross_compiling:$ac_tool_warned in 12154 yes:) 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12157 ac_tool_warned=yes ;; 12158 esac 12159 AR=$ac_ct_AR 12160 fi 12161 else 12162 AR="$ac_cv_prog_AR" 12163 fi 12164 12165 if test -n "$ac_tool_prefix"; then 12166 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12167 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12169 $as_echo_n "checking for $ac_word... " >&6; } 12170 if ${ac_cv_prog_RANLIB+:} false; then : 12171 $as_echo_n "(cached) " >&6 12172 else 12173 if test -n "$RANLIB"; then 12174 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12175 else 12176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12177 for as_dir in $PATH 12178 do 12179 IFS=$as_save_IFS 12180 test -z "$as_dir" && as_dir=. 12181 for ac_exec_ext in '' $ac_executable_extensions; do 12182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12183 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12185 break 2 12186 fi 12187 done 12188 done 12189 IFS=$as_save_IFS 12190 12191 fi 12192 fi 12193 RANLIB=$ac_cv_prog_RANLIB 12194 if test -n "$RANLIB"; then 12195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12196 $as_echo "$RANLIB" >&6; } 12197 else 12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12199 $as_echo "no" >&6; } 12200 fi 12201 12202 12203 fi 12204 if test -z "$ac_cv_prog_RANLIB"; then 12205 ac_ct_RANLIB=$RANLIB 12206 # Extract the first word of "ranlib", so it can be a program name with args. 12207 set dummy ranlib; ac_word=$2 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12209 $as_echo_n "checking for $ac_word... " >&6; } 12210 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 12211 $as_echo_n "(cached) " >&6 12212 else 12213 if test -n "$ac_ct_RANLIB"; then 12214 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12215 else 12216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12217 for as_dir in $PATH 12218 do 12219 IFS=$as_save_IFS 12220 test -z "$as_dir" && as_dir=. 12221 for ac_exec_ext in '' $ac_executable_extensions; do 12222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12223 ac_cv_prog_ac_ct_RANLIB="ranlib" 12224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12225 break 2 12226 fi 12227 done 12228 done 12229 IFS=$as_save_IFS 12230 12231 fi 12232 fi 12233 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12234 if test -n "$ac_ct_RANLIB"; then 12235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12236 $as_echo "$ac_ct_RANLIB" >&6; } 12237 else 12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12239 $as_echo "no" >&6; } 12240 fi 12241 12242 if test "x$ac_ct_RANLIB" = x; then 12243 RANLIB=":" 12244 else 12245 case $cross_compiling:$ac_tool_warned in 12246 yes:) 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12248 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12249 ac_tool_warned=yes ;; 12250 esac 12251 RANLIB=$ac_ct_RANLIB 12252 fi 12253 else 12254 RANLIB="$ac_cv_prog_RANLIB" 12255 fi 12256 12257 if test -n "$ac_tool_prefix"; then 12258 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 12259 set dummy ${ac_tool_prefix}strip; ac_word=$2 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12261 $as_echo_n "checking for $ac_word... " >&6; } 12262 if ${ac_cv_prog_STRIP+:} false; then : 12263 $as_echo_n "(cached) " >&6 12264 else 12265 if test -n "$STRIP"; then 12266 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 12267 else 12268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12269 for as_dir in $PATH 12270 do 12271 IFS=$as_save_IFS 12272 test -z "$as_dir" && as_dir=. 12273 for ac_exec_ext in '' $ac_executable_extensions; do 12274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12275 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 12276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12277 break 2 12278 fi 12279 done 12280 done 12281 IFS=$as_save_IFS 12282 12283 fi 12284 fi 12285 STRIP=$ac_cv_prog_STRIP 12286 if test -n "$STRIP"; then 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 12288 $as_echo "$STRIP" >&6; } 12289 else 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12291 $as_echo "no" >&6; } 12292 fi 12293 12294 12295 fi 12296 if test -z "$ac_cv_prog_STRIP"; then 12297 ac_ct_STRIP=$STRIP 12298 # Extract the first word of "strip", so it can be a program name with args. 12299 set dummy strip; ac_word=$2 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12301 $as_echo_n "checking for $ac_word... " >&6; } 12302 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 12303 $as_echo_n "(cached) " >&6 12304 else 12305 if test -n "$ac_ct_STRIP"; then 12306 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 12307 else 12308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12309 for as_dir in $PATH 12310 do 12311 IFS=$as_save_IFS 12312 test -z "$as_dir" && as_dir=. 12313 for ac_exec_ext in '' $ac_executable_extensions; do 12314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12315 ac_cv_prog_ac_ct_STRIP="strip" 12316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12317 break 2 12318 fi 12319 done 12320 done 12321 IFS=$as_save_IFS 12322 12323 fi 12324 fi 12325 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 12326 if test -n "$ac_ct_STRIP"; then 12327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 12328 $as_echo "$ac_ct_STRIP" >&6; } 12329 else 12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12331 $as_echo "no" >&6; } 12332 fi 12333 12334 if test "x$ac_ct_STRIP" = x; then 12335 STRIP=":" 12336 else 12337 case $cross_compiling:$ac_tool_warned in 12338 yes:) 12339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12340 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12341 ac_tool_warned=yes ;; 12342 esac 12343 STRIP=$ac_ct_STRIP 12344 fi 12345 else 12346 STRIP="$ac_cv_prog_STRIP" 12347 fi 12348 12349 # Extract the first word of "makeinfo", so it can be a program name with args. 12350 set dummy makeinfo; ac_word=$2 12351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12352 $as_echo_n "checking for $ac_word... " >&6; } 12353 if ${ac_cv_prog_MAKEINFO+:} false; then : 12354 $as_echo_n "(cached) " >&6 12355 else 12356 if test -n "$MAKEINFO"; then 12357 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 12358 else 12359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12360 for as_dir in $PATH 12361 do 12362 IFS=$as_save_IFS 12363 test -z "$as_dir" && as_dir=. 12364 for ac_exec_ext in '' $ac_executable_extensions; do 12365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12366 ac_cv_prog_MAKEINFO="makeinfo" 12367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12368 break 2 12369 fi 12370 done 12371 done 12372 IFS=$as_save_IFS 12373 12374 fi 12375 fi 12376 MAKEINFO=$ac_cv_prog_MAKEINFO 12377 if test -n "$MAKEINFO"; then 12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 12379 $as_echo "$MAKEINFO" >&6; } 12380 else 12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12382 $as_echo "no" >&6; } 12383 fi 12384 12385 12386 if test "_$MAKEINFO" = "_"; then 12387 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built." 12388 else 12389 case "$MAKEINFO" in 12390 */missing.*) 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 12392 *** Makeinfo is missing. Info documentation will not be built." >&5 12393 $as_echo "$as_me: WARNING: 12394 *** Makeinfo is missing. Info documentation will not be built." >&2;} 12395 ;; 12396 *) 12397 ;; 12398 esac 12399 fi 12400 12401 12402 # See if we need a separate native compiler. 12403 if test $cross_compiling = no; then 12404 BUILD_CC="$CC" 12405 12406 else 12407 for ac_prog in gcc cc 12408 do 12409 # Extract the first word of "$ac_prog", so it can be a program name with args. 12410 set dummy $ac_prog; ac_word=$2 12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12412 $as_echo_n "checking for $ac_word... " >&6; } 12413 if ${ac_cv_prog_BUILD_CC+:} false; then : 12414 $as_echo_n "(cached) " >&6 12415 else 12416 if test -n "$BUILD_CC"; then 12417 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. 12418 else 12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12420 for as_dir in $PATH 12421 do 12422 IFS=$as_save_IFS 12423 test -z "$as_dir" && as_dir=. 12424 for ac_exec_ext in '' $ac_executable_extensions; do 12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12426 ac_cv_prog_BUILD_CC="$ac_prog" 12427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12428 break 2 12429 fi 12430 done 12431 done 12432 IFS=$as_save_IFS 12433 12434 fi 12435 fi 12436 BUILD_CC=$ac_cv_prog_BUILD_CC 12437 if test -n "$BUILD_CC"; then 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 12439 $as_echo "$BUILD_CC" >&6; } 12440 else 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12442 $as_echo "no" >&6; } 12443 fi 12444 12445 12446 test -n "$BUILD_CC" && break 12447 done 12448 12449 fi 12450 for 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 attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h 12451 do : 12452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12453 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12454 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12455 cat >>confdefs.h <<_ACEOF 12456 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12457 _ACEOF 12458 12459 fi 12460 12461 done 12462 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5 12464 $as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; } 12465 DD= 12466 for i in dd gdd ; do 12467 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then 12468 DD=$i 12469 break 12470 fi 12471 done 12472 if test -n "$DD" ; then 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5 12474 $as_echo "$DD" >&6; } 12475 else 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5 12477 $as_echo "not found, using dd" >&6; } 12478 DD=dd 12479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5 12480 $as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;} 12481 fi 12482 12483 12484 for ac_header in net/if.h 12485 do : 12486 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " 12487 #if HAVE_SYS_TYPES_H 12488 #include <sys/types.h> 12489 #endif 12490 #if HAVE_SYS_SOCKET 12491 #include <sys/socket.h> 12492 #endif 12493 12494 " 12495 if test "x$ac_cv_header_net_if_h" = xyes; then : 12496 cat >>confdefs.h <<_ACEOF 12497 #define HAVE_NET_IF_H 1 12498 _ACEOF 12499 12500 fi 12501 12502 done 12503 12504 for ac_func in vprintf 12505 do : 12506 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 12507 if test "x$ac_cv_func_vprintf" = xyes; then : 12508 cat >>confdefs.h <<_ACEOF 12509 #define HAVE_VPRINTF 1 12510 _ACEOF 12511 12512 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 12513 if test "x$ac_cv_func__doprnt" = xyes; then : 12514 12515 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 12516 12517 fi 12518 12519 fi 12520 done 12521 12522 12523 ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> 12524 " 12525 if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then : 12526 12527 $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h 12528 12529 fi 12530 12531 ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default" 12532 if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then : 12533 12534 cat >>confdefs.h <<_ACEOF 12535 #define HAVE_STRUCT_STAT_ST_ATIM 1 12536 _ACEOF 12537 12538 12539 fi 12540 12541 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> 12542 " 12543 if test "x$ac_cv_type_ssize_t" = xyes; then : 12544 12545 $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h 12546 12547 fi 12548 12549 ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> 12550 " 12551 if test "x$ac_cv_have_decl_llseek" = xyes; then : 12552 12553 $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h 12554 12555 fi 12556 12557 ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE 12558 #define _LARGEFILE64_SOURCE 12559 #include <unistd.h> 12560 " 12561 if test "x$ac_cv_have_decl_lseek64" = xyes; then : 12562 12563 $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h 12564 12565 fi 12566 12567 # The cast to long int works around a bug in the HP C Compiler 12568 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12569 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12570 # This bug is HP SR number 8606223364. 12571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 12572 $as_echo_n "checking size of short... " >&6; } 12573 if ${ac_cv_sizeof_short+:} false; then : 12574 $as_echo_n "(cached) " >&6 12575 else 12576 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : 12577 12578 else 12579 if test "$ac_cv_type_short" = yes; then 12580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12582 as_fn_error 77 "cannot compute sizeof (short) 12583 See \`config.log' for more details" "$LINENO" 5; } 12584 else 12585 ac_cv_sizeof_short=0 12586 fi 12587 fi 12588 12589 fi 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 12591 $as_echo "$ac_cv_sizeof_short" >&6; } 12592 12593 12594 12595 cat >>confdefs.h <<_ACEOF 12596 #define SIZEOF_SHORT $ac_cv_sizeof_short 12597 _ACEOF 12598 12599 12600 # The cast to long int works around a bug in the HP C Compiler 12601 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12602 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12603 # This bug is HP SR number 8606223364. 12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 12605 $as_echo_n "checking size of int... " >&6; } 12606 if ${ac_cv_sizeof_int+:} false; then : 12607 $as_echo_n "(cached) " >&6 12608 else 12609 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 12610 12611 else 12612 if test "$ac_cv_type_int" = yes; then 12613 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12614 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12615 as_fn_error 77 "cannot compute sizeof (int) 12616 See \`config.log' for more details" "$LINENO" 5; } 12617 else 12618 ac_cv_sizeof_int=0 12619 fi 12620 fi 12621 12622 fi 12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 12624 $as_echo "$ac_cv_sizeof_int" >&6; } 12625 12626 12627 12628 cat >>confdefs.h <<_ACEOF 12629 #define SIZEOF_INT $ac_cv_sizeof_int 12630 _ACEOF 12631 12632 12633 # The cast to long int works around a bug in the HP C Compiler 12634 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12635 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12636 # This bug is HP SR number 8606223364. 12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 12638 $as_echo_n "checking size of long... " >&6; } 12639 if ${ac_cv_sizeof_long+:} false; then : 12640 $as_echo_n "(cached) " >&6 12641 else 12642 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 12643 12644 else 12645 if test "$ac_cv_type_long" = yes; then 12646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12648 as_fn_error 77 "cannot compute sizeof (long) 12649 See \`config.log' for more details" "$LINENO" 5; } 12650 else 12651 ac_cv_sizeof_long=0 12652 fi 12653 fi 12654 12655 fi 12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 12657 $as_echo "$ac_cv_sizeof_long" >&6; } 12658 12659 12660 12661 cat >>confdefs.h <<_ACEOF 12662 #define SIZEOF_LONG $ac_cv_sizeof_long 12663 _ACEOF 12664 12665 12666 # The cast to long int works around a bug in the HP C Compiler 12667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12669 # This bug is HP SR number 8606223364. 12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 12671 $as_echo_n "checking size of long long... " >&6; } 12672 if ${ac_cv_sizeof_long_long+:} false; then : 12673 $as_echo_n "(cached) " >&6 12674 else 12675 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 12676 12677 else 12678 if test "$ac_cv_type_long_long" = yes; then 12679 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12680 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12681 as_fn_error 77 "cannot compute sizeof (long long) 12682 See \`config.log' for more details" "$LINENO" 5; } 12683 else 12684 ac_cv_sizeof_long_long=0 12685 fi 12686 fi 12687 12688 fi 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 12690 $as_echo "$ac_cv_sizeof_long_long" >&6; } 12691 12692 12693 12694 cat >>confdefs.h <<_ACEOF 12695 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 12696 _ACEOF 12697 12698 12699 # The cast to long int works around a bug in the HP C Compiler 12700 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12701 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12702 # This bug is HP SR number 8606223364. 12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 12704 $as_echo_n "checking size of off_t... " >&6; } 12705 if ${ac_cv_sizeof_off_t+:} false; then : 12706 $as_echo_n "(cached) " >&6 12707 else 12708 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 12709 12710 else 12711 if test "$ac_cv_type_off_t" = yes; then 12712 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12713 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12714 as_fn_error 77 "cannot compute sizeof (off_t) 12715 See \`config.log' for more details" "$LINENO" 5; } 12716 else 12717 ac_cv_sizeof_off_t=0 12718 fi 12719 fi 12720 12721 fi 12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 12723 $as_echo "$ac_cv_sizeof_off_t" >&6; } 12724 12725 12726 12727 cat >>confdefs.h <<_ACEOF 12728 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t 12729 _ACEOF 12730 12731 12732 # The cast to long int works around a bug in the HP C Compiler 12733 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 12734 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 12735 # This bug is HP SR number 8606223364. 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5 12737 $as_echo_n "checking size of time_t... " >&6; } 12738 if ${ac_cv_sizeof_time_t+:} false; then : 12739 $as_echo_n "(cached) " >&6 12740 else 12741 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then : 12742 12743 else 12744 if test "$ac_cv_type_time_t" = yes; then 12745 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12746 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12747 as_fn_error 77 "cannot compute sizeof (time_t) 12748 See \`config.log' for more details" "$LINENO" 5; } 12749 else 12750 ac_cv_sizeof_time_t=0 12751 fi 12752 fi 12753 12754 fi 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5 12756 $as_echo "$ac_cv_sizeof_time_t" >&6; } 12757 12758 12759 12760 cat >>confdefs.h <<_ACEOF 12761 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t 12762 _ACEOF 12763 12764 12765 SIZEOF_SHORT=$ac_cv_sizeof_short 12766 SIZEOF_INT=$ac_cv_sizeof_int 12767 SIZEOF_LONG=$ac_cv_sizeof_long 12768 SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long 12769 SIZEOF_OFF_T=$ac_cv_sizeof_off_t 12770 SIZEOF_TIME_T=$ac_cv_sizeof_time_t 12771 12772 12773 12774 12775 12776 12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 12778 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 12779 if ${ac_cv_c_bigendian+:} false; then : 12780 $as_echo_n "(cached) " >&6 12781 else 12782 ac_cv_c_bigendian=unknown 12783 # See if we're dealing with a universal compiler. 12784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12785 /* end confdefs.h. */ 12786 #ifndef __APPLE_CC__ 12787 not a universal capable compiler 12788 #endif 12789 typedef int dummy; 12790 12791 _ACEOF 12792 if ac_fn_c_try_compile "$LINENO"; then : 12793 12794 # Check for potential -arch flags. It is not universal unless 12795 # there are at least two -arch flags with different values. 12796 ac_arch= 12797 ac_prev= 12798 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 12799 if test -n "$ac_prev"; then 12800 case $ac_word in 12801 i?86 | x86_64 | ppc | ppc64) 12802 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 12803 ac_arch=$ac_word 12804 else 12805 ac_cv_c_bigendian=universal 12806 break 12807 fi 12808 ;; 12809 esac 12810 ac_prev= 12811 elif test "x$ac_word" = "x-arch"; then 12812 ac_prev=arch 12813 fi 12814 done 12815 fi 12816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12817 if test $ac_cv_c_bigendian = unknown; then 12818 # See if sys/param.h defines the BYTE_ORDER macro. 12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12820 /* end confdefs.h. */ 12821 #include <sys/types.h> 12822 #include <sys/param.h> 12823 12824 int 12825 main () 12826 { 12827 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 12828 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 12829 && LITTLE_ENDIAN) 12830 bogus endian macros 12831 #endif 12832 12833 ; 12834 return 0; 12835 } 12836 _ACEOF 12837 if ac_fn_c_try_compile "$LINENO"; then : 12838 # It does; now see whether it defined to BIG_ENDIAN or not. 12839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12840 /* end confdefs.h. */ 12841 #include <sys/types.h> 12842 #include <sys/param.h> 12843 12844 int 12845 main () 12846 { 12847 #if BYTE_ORDER != BIG_ENDIAN 12848 not big endian 12849 #endif 12850 12851 ; 12852 return 0; 12853 } 12854 _ACEOF 12855 if ac_fn_c_try_compile "$LINENO"; then : 12856 ac_cv_c_bigendian=yes 12857 else 12858 ac_cv_c_bigendian=no 12859 fi 12860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12861 fi 12862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12863 fi 12864 if test $ac_cv_c_bigendian = unknown; then 12865 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12867 /* end confdefs.h. */ 12868 #include <limits.h> 12869 12870 int 12871 main () 12872 { 12873 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 12874 bogus endian macros 12875 #endif 12876 12877 ; 12878 return 0; 12879 } 12880 _ACEOF 12881 if ac_fn_c_try_compile "$LINENO"; then : 12882 # It does; now see whether it defined to _BIG_ENDIAN or not. 12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12884 /* end confdefs.h. */ 12885 #include <limits.h> 12886 12887 int 12888 main () 12889 { 12890 #ifndef _BIG_ENDIAN 12891 not big endian 12892 #endif 12893 12894 ; 12895 return 0; 12896 } 12897 _ACEOF 12898 if ac_fn_c_try_compile "$LINENO"; then : 12899 ac_cv_c_bigendian=yes 12900 else 12901 ac_cv_c_bigendian=no 12902 fi 12903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12904 fi 12905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12906 fi 12907 if test $ac_cv_c_bigendian = unknown; then 12908 # Compile a test program. 12909 if test "$cross_compiling" = yes; then : 12910 # Try to guess by grepping values from an object file. 12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12912 /* end confdefs.h. */ 12913 short int ascii_mm[] = 12914 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 12915 short int ascii_ii[] = 12916 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 12917 int use_ascii (int i) { 12918 return ascii_mm[i] + ascii_ii[i]; 12919 } 12920 short int ebcdic_ii[] = 12921 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 12922 short int ebcdic_mm[] = 12923 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 12924 int use_ebcdic (int i) { 12925 return ebcdic_mm[i] + ebcdic_ii[i]; 12926 } 12927 extern int foo; 12928 12929 int 12930 main () 12931 { 12932 return use_ascii (foo) == use_ebcdic (foo); 12933 ; 12934 return 0; 12935 } 12936 _ACEOF 12937 if ac_fn_c_try_compile "$LINENO"; then : 12938 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 12939 ac_cv_c_bigendian=yes 12940 fi 12941 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 12942 if test "$ac_cv_c_bigendian" = unknown; then 12943 ac_cv_c_bigendian=no 12944 else 12945 # finding both strings is unlikely to happen, but who knows? 12946 ac_cv_c_bigendian=unknown 12947 fi 12948 fi 12949 fi 12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12951 else 12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12953 /* end confdefs.h. */ 12954 $ac_includes_default 12955 int 12956 main () 12957 { 12958 12959 /* Are we little or big endian? From Harbison&Steele. */ 12960 union 12961 { 12962 long int l; 12963 char c[sizeof (long int)]; 12964 } u; 12965 u.l = 1; 12966 return u.c[sizeof (long int) - 1] == 1; 12967 12968 ; 12969 return 0; 12970 } 12971 _ACEOF 12972 if ac_fn_c_try_run "$LINENO"; then : 12973 ac_cv_c_bigendian=no 12974 else 12975 ac_cv_c_bigendian=yes 12976 fi 12977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12978 conftest.$ac_objext conftest.beam conftest.$ac_ext 12979 fi 12980 12981 fi 12982 fi 12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 12984 $as_echo "$ac_cv_c_bigendian" >&6; } 12985 case $ac_cv_c_bigendian in #( 12986 yes) 12987 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 12988 ;; #( 12989 no) 12990 ;; #( 12991 universal) 12992 12993 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 12994 12995 ;; #( 12996 *) 12997 as_fn_error $? "unknown endianness 12998 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 12999 esac 13000 13001 if test $cross_compiling = no; then 13002 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh 13003 else 13004 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh 13005 fi 13006 ASM_TYPES_HEADER=./asm_types.h 13007 13008 echo "/* These defines are needed for the public ext2fs.h header file */" \ 13009 > public_config.h 13010 if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then 13011 uniq tmp_config.$$ >> public_config.h 13012 else 13013 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h 13014 fi 13015 if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then 13016 uniq tmp_config.$$ >> public_config.h 13017 else 13018 echo "#undef WORDS_BIGENDIAN" >> public_config.h 13019 fi 13020 rm -f tmp_config.$$ 13021 PUBLIC_CONFIG_HEADER=./public_config.h 13022 13023 for ac_header in inttypes.h 13024 do : 13025 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 13026 if test "x$ac_cv_header_inttypes_h" = xyes; then : 13027 cat >>confdefs.h <<_ACEOF 13028 #define HAVE_INTTYPES_H 1 13029 _ACEOF 13030 13031 fi 13032 13033 done 13034 13035 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 13036 if test "x$ac_cv_type_intptr_t" = xyes; then : 13037 13038 cat >>confdefs.h <<_ACEOF 13039 #define HAVE_INTPTR_T 1 13040 _ACEOF 13041 13042 13043 fi 13044 13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 13046 $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } 13047 if ${e2fsprogs_cv_struct_st_flags+:} false; then : 13048 $as_echo_n "(cached) " >&6 13049 else 13050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13051 /* end confdefs.h. */ 13052 #include <sys/stat.h> 13053 int 13054 main () 13055 { 13056 struct stat stat; stat.st_flags = 0; 13057 ; 13058 return 0; 13059 } 13060 _ACEOF 13061 if ac_fn_c_try_compile "$LINENO"; then : 13062 e2fsprogs_cv_struct_st_flags=yes 13063 else 13064 e2fsprogs_cv_struct_st_flags=no 13065 fi 13066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13067 fi 13068 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 13070 $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } 13071 if test "$e2fsprogs_cv_struct_st_flags" = yes; then 13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 13073 $as_echo_n "checking whether st_flags field is useful... " >&6; } 13074 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then : 13075 $as_echo_n "(cached) " >&6 13076 else 13077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13078 /* end confdefs.h. */ 13079 #include <sys/stat.h> 13080 int 13081 main () 13082 { 13083 struct stat stat; stat.st_flags |= UF_IMMUTABLE; 13084 ; 13085 return 0; 13086 } 13087 _ACEOF 13088 if ac_fn_c_try_compile "$LINENO"; then : 13089 e2fsprogs_cv_struct_st_flags_immut=yes 13090 else 13091 e2fsprogs_cv_struct_st_flags_immut=no 13092 fi 13093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13094 fi 13095 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 13097 $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } 13098 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then 13099 13100 $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h 13101 13102 fi 13103 fi 13104 ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> 13105 #include <sys/socket.h> 13106 " 13107 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then : 13108 13109 cat >>confdefs.h <<_ACEOF 13110 #define HAVE_SA_LEN 1 13111 _ACEOF 13112 13113 fi 13114 13115 if test -n "$BLKID_CMT"; then 13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 13117 $as_echo_n "checking for library containing blkid_probe_all... " >&6; } 13118 if ${ac_cv_search_blkid_probe_all+:} false; then : 13119 $as_echo_n "(cached) " >&6 13120 else 13121 ac_func_search_save_LIBS=$LIBS 13122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13123 /* end confdefs.h. */ 13124 13125 /* Override any GCC internal prototype to avoid an error. 13126 Use char because int might match the return type of a GCC 13127 builtin and then its argument prototype would still apply. */ 13128 #ifdef __cplusplus 13129 extern "C" 13130 #endif 13131 char blkid_probe_all (); 13132 int 13133 main () 13134 { 13135 return blkid_probe_all (); 13136 ; 13137 return 0; 13138 } 13139 _ACEOF 13140 for ac_lib in '' blkid; do 13141 if test -z "$ac_lib"; then 13142 ac_res="none required" 13143 else 13144 ac_res=-l$ac_lib 13145 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 13146 fi 13147 if ac_fn_c_try_link "$LINENO"; then : 13148 ac_cv_search_blkid_probe_all=$ac_res 13149 fi 13150 rm -f core conftest.err conftest.$ac_objext \ 13151 conftest$ac_exeext 13152 if ${ac_cv_search_blkid_probe_all+:} false; then : 13153 break 13154 fi 13155 done 13156 if ${ac_cv_search_blkid_probe_all+:} false; then : 13157 13158 else 13159 ac_cv_search_blkid_probe_all=no 13160 fi 13161 rm conftest.$ac_ext 13162 LIBS=$ac_func_search_save_LIBS 13163 fi 13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 13165 $as_echo "$ac_cv_search_blkid_probe_all" >&6; } 13166 ac_res=$ac_cv_search_blkid_probe_all 13167 if test "$ac_res" != no; then : 13168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 13169 13170 fi 13171 13172 fi 13173 if test -n "$DLOPEN_LIB" ; then 13174 ac_cv_func_dlopen=yes 13175 fi 13176 for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc 13177 do : 13178 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 13179 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 13180 if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 13181 cat >>confdefs.h <<_ACEOF 13182 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 13183 _ACEOF 13184 13185 fi 13186 done 13187 13188 SOCKET_LIB='' 13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 13190 $as_echo_n "checking for socket in -lsocket... " >&6; } 13191 if ${ac_cv_lib_socket_socket+:} false; then : 13192 $as_echo_n "(cached) " >&6 13193 else 13194 ac_check_lib_save_LIBS=$LIBS 13195 LIBS="-lsocket $LIBS" 13196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13197 /* end confdefs.h. */ 13198 13199 /* Override any GCC internal prototype to avoid an error. 13200 Use char because int might match the return type of a GCC 13201 builtin and then its argument prototype would still apply. */ 13202 #ifdef __cplusplus 13203 extern "C" 13204 #endif 13205 char socket (); 13206 int 13207 main () 13208 { 13209 return socket (); 13210 ; 13211 return 0; 13212 } 13213 _ACEOF 13214 if ac_fn_c_try_link "$LINENO"; then : 13215 ac_cv_lib_socket_socket=yes 13216 else 13217 ac_cv_lib_socket_socket=no 13218 fi 13219 rm -f core conftest.err conftest.$ac_objext \ 13220 conftest$ac_exeext conftest.$ac_ext 13221 LIBS=$ac_check_lib_save_LIBS 13222 fi 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 13224 $as_echo "$ac_cv_lib_socket_socket" >&6; } 13225 if test "x$ac_cv_lib_socket_socket" = xyes; then : 13226 SOCKET_LIB=-lsocket 13227 fi 13228 13229 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5 13231 $as_echo_n "checking for magic_file in -lmagic... " >&6; } 13232 if ${ac_cv_lib_magic_magic_file+:} false; then : 13233 $as_echo_n "(cached) " >&6 13234 else 13235 ac_check_lib_save_LIBS=$LIBS 13236 LIBS="-lmagic $LIBS" 13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13238 /* end confdefs.h. */ 13239 13240 /* Override any GCC internal prototype to avoid an error. 13241 Use char because int might match the return type of a GCC 13242 builtin and then its argument prototype would still apply. */ 13243 #ifdef __cplusplus 13244 extern "C" 13245 #endif 13246 char magic_file (); 13247 int 13248 main () 13249 { 13250 return magic_file (); 13251 ; 13252 return 0; 13253 } 13254 _ACEOF 13255 if ac_fn_c_try_link "$LINENO"; then : 13256 ac_cv_lib_magic_magic_file=yes 13257 else 13258 ac_cv_lib_magic_magic_file=no 13259 fi 13260 rm -f core conftest.err conftest.$ac_objext \ 13261 conftest$ac_exeext conftest.$ac_ext 13262 LIBS=$ac_check_lib_save_LIBS 13263 fi 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5 13265 $as_echo "$ac_cv_lib_magic_magic_file" >&6; } 13266 if test "x$ac_cv_lib_magic_magic_file" = xyes; then : 13267 MAGIC_LIB=-lmagic 13268 for ac_header in magic.h 13269 do : 13270 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 13271 if test "x$ac_cv_header_magic_h" = xyes; then : 13272 cat >>confdefs.h <<_ACEOF 13273 #define HAVE_MAGIC_H 1 13274 _ACEOF 13275 13276 fi 13277 13278 done 13279 13280 fi 13281 13282 if test "$ac_cv_func_dlopen" = yes ; then 13283 MAGIC_LIB=$DLOPEN_LIB 13284 fi 13285 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5 13287 $as_echo_n "checking for clock_gettime in -lrt... " >&6; } 13288 if ${ac_cv_lib_rt_clock_gettime+:} false; then : 13289 $as_echo_n "(cached) " >&6 13290 else 13291 ac_check_lib_save_LIBS=$LIBS 13292 LIBS="-lrt $LIBS" 13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13294 /* end confdefs.h. */ 13295 13296 /* Override any GCC internal prototype to avoid an error. 13297 Use char because int might match the return type of a GCC 13298 builtin and then its argument prototype would still apply. */ 13299 #ifdef __cplusplus 13300 extern "C" 13301 #endif 13302 char clock_gettime (); 13303 int 13304 main () 13305 { 13306 return clock_gettime (); 13307 ; 13308 return 0; 13309 } 13310 _ACEOF 13311 if ac_fn_c_try_link "$LINENO"; then : 13312 ac_cv_lib_rt_clock_gettime=yes 13313 else 13314 ac_cv_lib_rt_clock_gettime=no 13315 fi 13316 rm -f core conftest.err conftest.$ac_objext \ 13317 conftest$ac_exeext conftest.$ac_ext 13318 LIBS=$ac_check_lib_save_LIBS 13319 fi 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5 13321 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; } 13322 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then : 13323 CLOCK_GETTIME_LIB=-lrt 13324 fi 13325 13326 13327 FUSE_CMT= 13328 FUSE_LIB= 13329 # Check whether --enable-fuse2fs was given. 13330 if test "${enable_fuse2fs+set}" = set; then : 13331 enableval=$enable_fuse2fs; if test "$enableval" = "no" 13332 then 13333 FUSE_CMT="#" 13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5 13335 $as_echo "Disabling fuse2fs" >&6; } 13336 else 13337 for ac_header in pthread.h fuse.h 13338 do : 13339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13340 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 13341 #define FUSE_USE_VERSION 29 13342 " 13343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13344 cat >>confdefs.h <<_ACEOF 13345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13346 _ACEOF 13347 13348 else 13349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13351 as_fn_error $? "Cannot find fuse2fs headers. 13352 See \`config.log' for more details" "$LINENO" 5; } 13353 fi 13354 13355 done 13356 13357 13358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13359 /* end confdefs.h. */ 13360 #define FUSE_USE_VERSION 29 13361 #ifdef __linux__ 13362 #include <linux/fs.h> 13363 #include <linux/falloc.h> 13364 #include <linux/xattr.h> 13365 #endif 13366 13367 int 13368 main () 13369 { 13370 13371 ; 13372 return 0; 13373 } 13374 _ACEOF 13375 if ac_fn_c_try_cpp "$LINENO"; then : 13376 13377 else 13378 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13379 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13380 as_fn_error $? "Cannot find fuse2fs Linux headers. 13381 See \`config.log' for more details" "$LINENO" 5; } 13382 fi 13383 rm -f conftest.err conftest.i conftest.$ac_ext 13384 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 13386 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } 13387 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : 13388 $as_echo_n "(cached) " >&6 13389 else 13390 ac_check_lib_save_LIBS=$LIBS 13391 LIBS="-losxfuse $LIBS" 13392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13393 /* end confdefs.h. */ 13394 13395 /* Override any GCC internal prototype to avoid an error. 13396 Use char because int might match the return type of a GCC 13397 builtin and then its argument prototype would still apply. */ 13398 #ifdef __cplusplus 13399 extern "C" 13400 #endif 13401 char fuse_main (); 13402 int 13403 main () 13404 { 13405 return fuse_main (); 13406 ; 13407 return 0; 13408 } 13409 _ACEOF 13410 if ac_fn_c_try_link "$LINENO"; then : 13411 ac_cv_lib_osxfuse_fuse_main=yes 13412 else 13413 ac_cv_lib_osxfuse_fuse_main=no 13414 fi 13415 rm -f core conftest.err conftest.$ac_objext \ 13416 conftest$ac_exeext conftest.$ac_ext 13417 LIBS=$ac_check_lib_save_LIBS 13418 fi 13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 13420 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } 13421 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : 13422 FUSE_LIB=-losxfuse 13423 else 13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 13425 $as_echo_n "checking for fuse_main in -lfuse... " >&6; } 13426 if ${ac_cv_lib_fuse_fuse_main+:} false; then : 13427 $as_echo_n "(cached) " >&6 13428 else 13429 ac_check_lib_save_LIBS=$LIBS 13430 LIBS="-lfuse $LIBS" 13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13432 /* end confdefs.h. */ 13433 13434 /* Override any GCC internal prototype to avoid an error. 13435 Use char because int might match the return type of a GCC 13436 builtin and then its argument prototype would still apply. */ 13437 #ifdef __cplusplus 13438 extern "C" 13439 #endif 13440 char fuse_main (); 13441 int 13442 main () 13443 { 13444 return fuse_main (); 13445 ; 13446 return 0; 13447 } 13448 _ACEOF 13449 if ac_fn_c_try_link "$LINENO"; then : 13450 ac_cv_lib_fuse_fuse_main=yes 13451 else 13452 ac_cv_lib_fuse_fuse_main=no 13453 fi 13454 rm -f core conftest.err conftest.$ac_objext \ 13455 conftest$ac_exeext conftest.$ac_ext 13456 LIBS=$ac_check_lib_save_LIBS 13457 fi 13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 13459 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } 13460 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : 13461 FUSE_LIB=-lfuse 13462 else 13463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13465 as_fn_error $? "Cannot find fuse library. 13466 See \`config.log' for more details" "$LINENO" 5; } 13467 fi 13468 13469 fi 13470 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5 13472 $as_echo "Enabling fuse2fs" >&6; } 13473 fi 13474 13475 else 13476 for ac_header in pthread.h fuse.h 13477 do : 13478 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13479 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64 13480 #define FUSE_USE_VERSION 29 13481 #ifdef __linux__ 13482 # include <linux/fs.h> 13483 # include <linux/falloc.h> 13484 # include <linux/xattr.h> 13485 #endif 13486 " 13487 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13488 cat >>confdefs.h <<_ACEOF 13489 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13490 _ACEOF 13491 13492 else 13493 FUSE_CMT="#" 13494 fi 13495 13496 done 13497 13498 if test -z "$FUSE_CMT" 13499 then 13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5 13501 $as_echo_n "checking for fuse_main in -losxfuse... " >&6; } 13502 if ${ac_cv_lib_osxfuse_fuse_main+:} false; then : 13503 $as_echo_n "(cached) " >&6 13504 else 13505 ac_check_lib_save_LIBS=$LIBS 13506 LIBS="-losxfuse $LIBS" 13507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13508 /* end confdefs.h. */ 13509 13510 /* Override any GCC internal prototype to avoid an error. 13511 Use char because int might match the return type of a GCC 13512 builtin and then its argument prototype would still apply. */ 13513 #ifdef __cplusplus 13514 extern "C" 13515 #endif 13516 char fuse_main (); 13517 int 13518 main () 13519 { 13520 return fuse_main (); 13521 ; 13522 return 0; 13523 } 13524 _ACEOF 13525 if ac_fn_c_try_link "$LINENO"; then : 13526 ac_cv_lib_osxfuse_fuse_main=yes 13527 else 13528 ac_cv_lib_osxfuse_fuse_main=no 13529 fi 13530 rm -f core conftest.err conftest.$ac_objext \ 13531 conftest$ac_exeext conftest.$ac_ext 13532 LIBS=$ac_check_lib_save_LIBS 13533 fi 13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5 13535 $as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; } 13536 if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then : 13537 FUSE_LIB=-losxfuse 13538 else 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5 13540 $as_echo_n "checking for fuse_main in -lfuse... " >&6; } 13541 if ${ac_cv_lib_fuse_fuse_main+:} false; then : 13542 $as_echo_n "(cached) " >&6 13543 else 13544 ac_check_lib_save_LIBS=$LIBS 13545 LIBS="-lfuse $LIBS" 13546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13547 /* end confdefs.h. */ 13548 13549 /* Override any GCC internal prototype to avoid an error. 13550 Use char because int might match the return type of a GCC 13551 builtin and then its argument prototype would still apply. */ 13552 #ifdef __cplusplus 13553 extern "C" 13554 #endif 13555 char fuse_main (); 13556 int 13557 main () 13558 { 13559 return fuse_main (); 13560 ; 13561 return 0; 13562 } 13563 _ACEOF 13564 if ac_fn_c_try_link "$LINENO"; then : 13565 ac_cv_lib_fuse_fuse_main=yes 13566 else 13567 ac_cv_lib_fuse_fuse_main=no 13568 fi 13569 rm -f core conftest.err conftest.$ac_objext \ 13570 conftest$ac_exeext conftest.$ac_ext 13571 LIBS=$ac_check_lib_save_LIBS 13572 fi 13573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5 13574 $as_echo "$ac_cv_lib_fuse_fuse_main" >&6; } 13575 if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then : 13576 FUSE_LIB=-lfuse 13577 else 13578 FUSE_CMT="#" 13579 fi 13580 13581 fi 13582 13583 fi 13584 if test -z "$FUSE_CMT" 13585 then 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5 13587 $as_echo "Enabling fuse2fs by default." >&6; } 13588 fi 13589 13590 fi 13591 13592 13593 13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 13595 $as_echo_n "checking for optreset... " >&6; } 13596 if ${ac_cv_have_optreset+:} false; then : 13597 $as_echo_n "(cached) " >&6 13598 else 13599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13600 /* end confdefs.h. */ 13601 #include <unistd.h> 13602 13603 _ACEOF 13604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13605 $EGREP "optreset" >/dev/null 2>&1; then : 13606 ac_cv_have_optreset=yes 13607 else 13608 ac_cv_have_optreset=no 13609 fi 13610 rm -f conftest* 13611 13612 fi 13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 13614 $as_echo "$ac_cv_have_optreset" >&6; } 13615 if test $ac_cv_have_optreset = yes; then 13616 13617 $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h 13618 13619 fi 13620 13621 SEM_INIT_LIB='' 13622 echo GL_THREADS_API: ${gl_threads_api} 13623 if test "${gl_threads_api}" != none 13624 then 13625 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" 13626 if test "x$ac_cv_func_sem_init" = xyes; then : 13627 13628 else 13629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 13630 $as_echo_n "checking for sem_init in -lpthread... " >&6; } 13631 if ${ac_cv_lib_pthread_sem_init+:} false; then : 13632 $as_echo_n "(cached) " >&6 13633 else 13634 ac_check_lib_save_LIBS=$LIBS 13635 LIBS="-lpthread $LIBS" 13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13637 /* end confdefs.h. */ 13638 13639 /* Override any GCC internal prototype to avoid an error. 13640 Use char because int might match the return type of a GCC 13641 builtin and then its argument prototype would still apply. */ 13642 #ifdef __cplusplus 13643 extern "C" 13644 #endif 13645 char sem_init (); 13646 int 13647 main () 13648 { 13649 return sem_init (); 13650 ; 13651 return 0; 13652 } 13653 _ACEOF 13654 if ac_fn_c_try_link "$LINENO"; then : 13655 ac_cv_lib_pthread_sem_init=yes 13656 else 13657 ac_cv_lib_pthread_sem_init=no 13658 fi 13659 rm -f core conftest.err conftest.$ac_objext \ 13660 conftest$ac_exeext conftest.$ac_ext 13661 LIBS=$ac_check_lib_save_LIBS 13662 fi 13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 13664 $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } 13665 if test "x$ac_cv_lib_pthread_sem_init" = xyes; then : 13666 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h 13667 13668 SEM_INIT_LIB=-lpthread 13669 else 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 13671 $as_echo_n "checking for sem_init in -lrt... " >&6; } 13672 if ${ac_cv_lib_rt_sem_init+:} false; then : 13673 $as_echo_n "(cached) " >&6 13674 else 13675 ac_check_lib_save_LIBS=$LIBS 13676 LIBS="-lrt $LIBS" 13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13678 /* end confdefs.h. */ 13679 13680 /* Override any GCC internal prototype to avoid an error. 13681 Use char because int might match the return type of a GCC 13682 builtin and then its argument prototype would still apply. */ 13683 #ifdef __cplusplus 13684 extern "C" 13685 #endif 13686 char sem_init (); 13687 int 13688 main () 13689 { 13690 return sem_init (); 13691 ; 13692 return 0; 13693 } 13694 _ACEOF 13695 if ac_fn_c_try_link "$LINENO"; then : 13696 ac_cv_lib_rt_sem_init=yes 13697 else 13698 ac_cv_lib_rt_sem_init=no 13699 fi 13700 rm -f core conftest.err conftest.$ac_objext \ 13701 conftest$ac_exeext conftest.$ac_ext 13702 LIBS=$ac_check_lib_save_LIBS 13703 fi 13704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 13705 $as_echo "$ac_cv_lib_rt_sem_init" >&6; } 13706 if test "x$ac_cv_lib_rt_sem_init" = xyes; then : 13707 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h 13708 13709 SEM_INIT_LIB=-lrt 13710 else 13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 13712 $as_echo_n "checking for sem_init in -lposix4... " >&6; } 13713 if ${ac_cv_lib_posix4_sem_init+:} false; then : 13714 $as_echo_n "(cached) " >&6 13715 else 13716 ac_check_lib_save_LIBS=$LIBS 13717 LIBS="-lposix4 $LIBS" 13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13719 /* end confdefs.h. */ 13720 13721 /* Override any GCC internal prototype to avoid an error. 13722 Use char because int might match the return type of a GCC 13723 builtin and then its argument prototype would still apply. */ 13724 #ifdef __cplusplus 13725 extern "C" 13726 #endif 13727 char sem_init (); 13728 int 13729 main () 13730 { 13731 return sem_init (); 13732 ; 13733 return 0; 13734 } 13735 _ACEOF 13736 if ac_fn_c_try_link "$LINENO"; then : 13737 ac_cv_lib_posix4_sem_init=yes 13738 else 13739 ac_cv_lib_posix4_sem_init=no 13740 fi 13741 rm -f core conftest.err conftest.$ac_objext \ 13742 conftest$ac_exeext conftest.$ac_ext 13743 LIBS=$ac_check_lib_save_LIBS 13744 fi 13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 13746 $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } 13747 if test "x$ac_cv_lib_posix4_sem_init" = xyes; then : 13748 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h 13749 13750 SEM_INIT_LIB=-lposix4 13751 fi 13752 13753 fi 13754 13755 fi 13756 13757 fi 13758 fi 13759 13760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 13761 $as_echo_n "checking for unified diff option... " >&6; } 13762 if diff -u $0 $0 > /dev/null 2>&1 ; then 13763 UNI_DIFF_OPTS=-u 13764 else 13765 UNI_DIFF_OPTS=-c 13766 fi 13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 13768 $as_echo "$UNI_DIFF_OPTS" >&6; } 13769 13770 case "$host_os" in 13771 linux*) 13772 13773 $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h 13774 13775 ;; 13776 esac 13777 # Check whether --enable-lto was given. 13778 if test "${enable_lto+set}" = set; then : 13779 enableval=$enable_lto; 13780 else 13781 enable_lto=no 13782 fi 13783 13784 if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5 13786 $as_echo_n "checking if C compiler supports LTO... " >&6; } 13787 OLD_CFLAGS="$CFLAGS" 13788 OLD_LDFLAGS="$LDFLAGS" 13789 LTO_FLAGS="-g -flto -ffat-lto-objects" 13790 CFLAGS="$CFLAGS $LTO_FLAGS" 13791 LDFLAGS="$LDFLAGS $LTO_FLAGS" 13792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13793 /* end confdefs.h. */ 13794 13795 int 13796 main () 13797 { 13798 13799 ; 13800 return 0; 13801 } 13802 _ACEOF 13803 if ac_fn_c_try_link "$LINENO"; then : 13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13805 $as_echo "yes" >&6; } 13806 lto_cflags=$LTO_FLAGS 13807 lto_ldflags=$LTO_FLAGS 13808 # Extract the first word of "gcc-ar", so it can be a program name with args. 13809 set dummy gcc-ar; ac_word=$2 13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13811 $as_echo_n "checking for $ac_word... " >&6; } 13812 if ${ac_cv_path_gcc_ar+:} false; then : 13813 $as_echo_n "(cached) " >&6 13814 else 13815 case $gcc_ar in 13816 [\\/]* | ?:[\\/]*) 13817 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path. 13818 ;; 13819 *) 13820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13821 for as_dir in $PATH 13822 do 13823 IFS=$as_save_IFS 13824 test -z "$as_dir" && as_dir=. 13825 for ac_exec_ext in '' $ac_executable_extensions; do 13826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13827 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext" 13828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13829 break 2 13830 fi 13831 done 13832 done 13833 IFS=$as_save_IFS 13834 13835 ;; 13836 esac 13837 fi 13838 gcc_ar=$ac_cv_path_gcc_ar 13839 if test -n "$gcc_ar"; then 13840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5 13841 $as_echo "$gcc_ar" >&6; } 13842 else 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13844 $as_echo "no" >&6; } 13845 fi 13846 13847 13848 # Extract the first word of "gcc-ranlib", so it can be a program name with args. 13849 set dummy gcc-ranlib; ac_word=$2 13850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13851 $as_echo_n "checking for $ac_word... " >&6; } 13852 if ${ac_cv_path_gcc_ranlib+:} false; then : 13853 $as_echo_n "(cached) " >&6 13854 else 13855 case $gcc_ranlib in 13856 [\\/]* | ?:[\\/]*) 13857 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path. 13858 ;; 13859 *) 13860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13861 for as_dir in $PATH 13862 do 13863 IFS=$as_save_IFS 13864 test -z "$as_dir" && as_dir=. 13865 for ac_exec_ext in '' $ac_executable_extensions; do 13866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13867 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext" 13868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13869 break 2 13870 fi 13871 done 13872 done 13873 IFS=$as_save_IFS 13874 13875 ;; 13876 esac 13877 fi 13878 gcc_ranlib=$ac_cv_path_gcc_ranlib 13879 if test -n "$gcc_ranlib"; then 13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5 13881 $as_echo "$gcc_ranlib" >&6; } 13882 else 13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13884 $as_echo "no" >&6; } 13885 fi 13886 13887 13888 else 13889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13890 $as_echo "no" >&6; } 13891 fi 13892 rm -f core conftest.err conftest.$ac_objext \ 13893 conftest$ac_exeext conftest.$ac_ext 13894 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then 13895 have_lto=yes 13896 AR="${gcc_ar}" 13897 RANLIB="${gcc_ranlib}" 13898 fi 13899 CFLAGS="${OLD_CFLAGS}" 13900 LDFLAGS="${OLD_LDFLAGS}" 13901 13902 13903 13904 fi 13905 if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then 13906 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5 13907 fi 13908 # Check whether --enable-ubsan was given. 13909 if test "${enable_ubsan+set}" = set; then : 13910 enableval=$enable_ubsan; 13911 else 13912 enable_ubsan=no 13913 fi 13914 13915 if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then 13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5 13917 $as_echo_n "checking if C compiler supports UBSAN... " >&6; } 13918 OLD_CFLAGS="$CFLAGS" 13919 OLD_LDFLAGS="$LDFLAGS" 13920 UBSAN_FLAGS="-fsanitize=undefined" 13921 CFLAGS="$CFLAGS $UBSAN_FLAGS" 13922 LDFLAGS="$LDFLAGS $UBSAN_FLAGS" 13923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13924 /* end confdefs.h. */ 13925 13926 int 13927 main () 13928 { 13929 13930 ; 13931 return 0; 13932 } 13933 _ACEOF 13934 if ac_fn_c_try_link "$LINENO"; then : 13935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13936 $as_echo "yes" >&6; } 13937 ubsan_cflags=$UBSAN_FLAGS 13938 ubsan_ldflags=$UBSAN_FLAGS 13939 have_ubsan=yes 13940 else 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13942 $as_echo "no" >&6; } 13943 fi 13944 rm -f core conftest.err conftest.$ac_objext \ 13945 conftest$ac_exeext conftest.$ac_ext 13946 CFLAGS="${OLD_CFLAGS}" 13947 LDFLAGS="${OLD_LDFLAGS}" 13948 13949 13950 13951 fi 13952 if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then 13953 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5 13954 fi 13955 # Check whether --enable-addrsan was given. 13956 if test "${enable_addrsan+set}" = set; then : 13957 enableval=$enable_addrsan; 13958 else 13959 enable_addrsan=no 13960 fi 13961 13962 if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then 13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5 13964 $as_echo_n "checking if C compiler supports ADDRSAN... " >&6; } 13965 OLD_CFLAGS="$CFLAGS" 13966 OLD_LDFLAGS="$LDFLAGS" 13967 ADDRSAN_FLAGS="-fsanitize=address" 13968 CFLAGS="$CFLAGS $ADDRSAN_FLAGS" 13969 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS" 13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13971 /* end confdefs.h. */ 13972 13973 int 13974 main () 13975 { 13976 13977 ; 13978 return 0; 13979 } 13980 _ACEOF 13981 if ac_fn_c_try_link "$LINENO"; then : 13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13983 $as_echo "yes" >&6; } 13984 addrsan_cflags=$ADDRSAN_FLAGS 13985 addrsan_ldflags=$ADDRSAN_FLAGS 13986 have_addrsan=yes 13987 else 13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13989 $as_echo "no" >&6; } 13990 fi 13991 rm -f core conftest.err conftest.$ac_objext \ 13992 conftest$ac_exeext conftest.$ac_ext 13993 CFLAGS="${OLD_CFLAGS}" 13994 LDFLAGS="${OLD_LDFLAGS}" 13995 13996 13997 13998 fi 13999 if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then 14000 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5 14001 fi 14002 # Check whether --enable-threadsan was given. 14003 if test "${enable_threadsan+set}" = set; then : 14004 enableval=$enable_threadsan; 14005 else 14006 enable_threadsan=no 14007 fi 14008 14009 if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5 14011 $as_echo_n "checking if C compiler supports THREADSAN... " >&6; } 14012 OLD_CFLAGS="$CFLAGS" 14013 OLD_LDFLAGS="$LDFLAGS" 14014 THREADSAN_FLAGS="-fsanitize=thread" 14015 CFLAGS="$CFLAGS $THREADSAN_FLAGS" 14016 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS" 14017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14018 /* end confdefs.h. */ 14019 14020 int 14021 main () 14022 { 14023 14024 ; 14025 return 0; 14026 } 14027 _ACEOF 14028 if ac_fn_c_try_link "$LINENO"; then : 14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14030 $as_echo "yes" >&6; } 14031 threadsan_cflags=$THREADSAN_FLAGS 14032 threadsan_ldflags=$THREADSAN_FLAGS 14033 have_threadsan=yes 14034 else 14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14036 $as_echo "no" >&6; } 14037 fi 14038 rm -f core conftest.err conftest.$ac_objext \ 14039 conftest$ac_exeext conftest.$ac_ext 14040 CFLAGS="${OLD_CFLAGS}" 14041 LDFLAGS="${OLD_LDFLAGS}" 14042 14043 14044 14045 fi 14046 if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then 14047 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5 14048 fi 14049 if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then 14050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5 14051 $as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;} 14052 fi 14053 LINUX_CMT="#" 14054 CYGWIN_CMT="#" 14055 UNIX_CMT= 14056 case "$host_os" in 14057 linux*) 14058 LINUX_CMT= 14059 ;; 14060 cygwin) 14061 CYGWIN_CMT= 14062 UNIX_CMT="#" 14063 ;; 14064 esac 14065 14066 14067 14068 E2SCRUB_CMT="$LINUX_CMT" 14069 14070 case "$host_os" in 14071 linux* | gnu* | k*bsd*-gnu) 14072 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then 14073 root_prefix=""; 14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 14075 $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } 14076 fi 14077 ;; 14078 esac 14079 case "$host_os" in 14080 linux* | gnu* | k*bsd*-gnu) 14081 if test "$prefix" = NONE ; then 14082 prefix="/usr"; 14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 14084 $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } 14085 if test "$mandir" = '${prefix}/man' ; then 14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 14087 $as_echo "...and mandir defaults to /usr/share/man" >&6; } 14088 mandir=/usr/share/man 14089 fi 14090 fi 14091 ;; 14092 esac 14093 if test "$root_prefix" = NONE ; then 14094 if test "$prefix" = NONE ; then 14095 root_prefix="$ac_default_prefix" 14096 else 14097 root_prefix="$prefix" 14098 fi 14099 root_bindir=$bindir 14100 root_sbindir=$sbindir 14101 root_libdir=$libdir 14102 root_sysconfdir=$sysconfdir 14103 else 14104 root_bindir='${root_prefix}/bin' 14105 root_sbindir='${root_prefix}/sbin' 14106 root_libdir='${root_prefix}/lib' 14107 root_sysconfdir='${root_prefix}/etc' 14108 fi 14109 if test "$bindir" != '${exec_prefix}/bin'; then 14110 root_bindir=$bindir 14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 14112 $as_echo "Setting root_bindir to $root_bindir" >&6; } 14113 fi 14114 if test "$sbindir" != '${exec_prefix}/sbin'; then 14115 root_sbindir=$sbindir 14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 14117 $as_echo "Setting root_sbindir to $root_sbindir" >&6; } 14118 fi 14119 if test "$libdir" != '${exec_prefix}/lib'; then 14120 root_libdir=$libdir 14121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 14122 $as_echo "Setting root_libdir to $root_libdir" >&6; } 14123 fi 14124 if test "$sysconfdir" != '${prefix}/etc'; then 14125 root_sysconfdir=$sysconfdir 14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 14127 $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } 14128 fi 14129 14130 14131 14132 14133 14134 14135 # Check whether --with-multiarch was given. 14136 if test "${with_multiarch+set}" = set; then : 14137 withval=$with_multiarch; if test "$withval" = "lib64"; then 14138 libdir=/usr/lib64 14139 root_libdir=/lib64 14140 else 14141 libdir=$libdir/$withval 14142 root_libdir=$root_libdir/$withval 14143 fi 14144 14145 fi 14146 14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5 14148 $as_echo_n "checking whether we can link with -static... " >&6; } 14149 if ${ac_cv_e2fsprogs_use_static+:} false; then : 14150 $as_echo_n "(cached) " >&6 14151 else 14152 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static" 14153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14154 /* end confdefs.h. */ 14155 #include <stdio.h> 14156 int 14157 main () 14158 { 14159 fflush(stdout); 14160 ; 14161 return 0; 14162 } 14163 _ACEOF 14164 if ac_fn_c_try_link "$LINENO"; then : 14165 ac_cv_e2fsprogs_use_static=yes 14166 else 14167 ac_cv_e2fsprogs_use_static=no 14168 fi 14169 rm -f core conftest.err conftest.$ac_objext \ 14170 conftest$ac_exeext conftest.$ac_ext 14171 LDFLAGS=$SAVE_LDFLAGS 14172 fi 14173 14174 case "$host_os" in 14175 solaris2.*) 14176 ac_cv_e2fsprogs_use_static=no 14177 ;; 14178 esac 14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 14180 $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } 14181 if test $ac_cv_e2fsprogs_use_static = yes; then 14182 LDFLAGS_STATIC="$LDFLAGS_STATIC -static" 14183 fi 14184 14185 case "$host_os" in 14186 darwin*) 14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 14188 $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } 14189 14190 $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h 14191 14192 ;; 14193 esac 14194 if test "$cross_compiling" = yes ; then 14195 DO_TEST_SUITE= 14196 else 14197 DO_TEST_SUITE=check 14198 fi 14199 14200 INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' 14201 if test -n "$CPPFLAGS" ; then 14202 INCLUDES="$INCLUDES $CPPFLAGS" 14203 fi 14204 if test "$USE_INCLUDED_LIBINTL" = "yes" ; then 14205 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' 14206 fi 14207 if test -n "$WITH_DIET_LIBC" ; then 14208 INCLUDES="$INCLUDES -D_REENTRANT" 14209 fi 14210 14211 if test $cross_compiling = no; then 14212 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H" 14213 BUILD_LDFLAGS="$LDFLAGS" 14214 fi 14215 14216 14217 CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS} 14218 CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS} 14219 LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS} 14220 14221 14222 14223 14224 14225 # Check whether --with-udev_rules_dir was given. 14226 if test "${with_udev_rules_dir+set}" = set; then : 14227 withval=$with_udev_rules_dir; 14228 else 14229 with_udev_rules_dir=yes 14230 fi 14231 14232 if test "x${with_udev_rules_dir}" != "xno"; then : 14233 14234 if test "x${with_udev_rules_dir}" = "xyes"; then : 14235 14236 14237 pkg_failed=no 14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5 14239 $as_echo_n "checking for udev... " >&6; } 14240 14241 if test -n "$udev_CFLAGS"; then 14242 pkg_cv_udev_CFLAGS="$udev_CFLAGS" 14243 elif test -n "$PKG_CONFIG"; then 14244 if test -n "$PKG_CONFIG" && \ 14245 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 14246 ($PKG_CONFIG --exists --print-errors "udev") 2>&5 14247 ac_status=$? 14248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14249 test $ac_status = 0; }; then 14250 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null` 14251 test "x$?" != "x0" && pkg_failed=yes 14252 else 14253 pkg_failed=yes 14254 fi 14255 else 14256 pkg_failed=untried 14257 fi 14258 if test -n "$udev_LIBS"; then 14259 pkg_cv_udev_LIBS="$udev_LIBS" 14260 elif test -n "$PKG_CONFIG"; then 14261 if test -n "$PKG_CONFIG" && \ 14262 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5 14263 ($PKG_CONFIG --exists --print-errors "udev") 2>&5 14264 ac_status=$? 14265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14266 test $ac_status = 0; }; then 14267 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null` 14268 test "x$?" != "x0" && pkg_failed=yes 14269 else 14270 pkg_failed=yes 14271 fi 14272 else 14273 pkg_failed=untried 14274 fi 14275 14276 14277 14278 if test $pkg_failed = yes; then 14279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14280 $as_echo "no" >&6; } 14281 14282 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14283 _pkg_short_errors_supported=yes 14284 else 14285 _pkg_short_errors_supported=no 14286 fi 14287 if test $_pkg_short_errors_supported = yes; then 14288 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1` 14289 else 14290 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1` 14291 fi 14292 # Put the nasty error message in config.log where it belongs 14293 echo "$udev_PKG_ERRORS" >&5 14294 14295 14296 with_udev_rules_dir="" 14297 14298 elif test $pkg_failed = untried; then 14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14300 $as_echo "no" >&6; } 14301 14302 with_udev_rules_dir="" 14303 14304 else 14305 udev_CFLAGS=$pkg_cv_udev_CFLAGS 14306 udev_LIBS=$pkg_cv_udev_LIBS 14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14308 $as_echo "yes" >&6; } 14309 14310 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d" 14311 14312 fi 14313 14314 fi 14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5 14316 $as_echo_n "checking for udev rules dir... " >&6; } 14317 pkg_udev_rules_dir="${with_udev_rules_dir}" 14318 if test -n "${pkg_udev_rules_dir}"; then : 14319 14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5 14321 $as_echo "${pkg_udev_rules_dir}" >&6; } 14322 have_udev="yes" 14323 14324 else 14325 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14327 $as_echo "no" >&6; } 14328 have_udev="no" 14329 14330 fi 14331 14332 else 14333 14334 have_udev="disabled" 14335 14336 fi 14337 14338 14339 14340 14341 # Check whether --with-crond_dir was given. 14342 if test "${with_crond_dir+set}" = set; then : 14343 withval=$with_crond_dir; 14344 else 14345 with_crond_dir=yes 14346 fi 14347 14348 if test "x${with_crond_dir}" != "xno"; then : 14349 14350 if test "x${with_crond_dir}" = "xyes"; then : 14351 14352 if test -d "/etc/cron.d"; then : 14353 with_crond_dir="/etc/cron.d" 14354 fi 14355 14356 fi 14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5 14358 $as_echo_n "checking for system crontab dir... " >&6; } 14359 crond_dir="${with_crond_dir}" 14360 if test -n "${crond_dir}"; then : 14361 14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5 14363 $as_echo "${crond_dir}" >&6; } 14364 have_crond="yes" 14365 14366 else 14367 14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14369 $as_echo "no" >&6; } 14370 have_crond="no" 14371 14372 fi 14373 14374 else 14375 14376 have_crond="disabled" 14377 14378 fi 14379 14380 14381 14382 14383 # Check whether --with-systemd_unit_dir was given. 14384 if test "${with_systemd_unit_dir+set}" = set; then : 14385 withval=$with_systemd_unit_dir; 14386 else 14387 with_systemd_unit_dir=yes 14388 fi 14389 14390 if test "x${with_systemd_unit_dir}" != "xno"; then : 14391 14392 if test "x${with_systemd_unit_dir}" = "xyes"; then : 14393 14394 14395 pkg_failed=no 14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5 14397 $as_echo_n "checking for systemd... " >&6; } 14398 14399 if test -n "$systemd_CFLAGS"; then 14400 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS" 14401 elif test -n "$PKG_CONFIG"; then 14402 if test -n "$PKG_CONFIG" && \ 14403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 14404 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 14405 ac_status=$? 14406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14407 test $ac_status = 0; }; then 14408 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null` 14409 test "x$?" != "x0" && pkg_failed=yes 14410 else 14411 pkg_failed=yes 14412 fi 14413 else 14414 pkg_failed=untried 14415 fi 14416 if test -n "$systemd_LIBS"; then 14417 pkg_cv_systemd_LIBS="$systemd_LIBS" 14418 elif test -n "$PKG_CONFIG"; then 14419 if test -n "$PKG_CONFIG" && \ 14420 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5 14421 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5 14422 ac_status=$? 14423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14424 test $ac_status = 0; }; then 14425 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null` 14426 test "x$?" != "x0" && pkg_failed=yes 14427 else 14428 pkg_failed=yes 14429 fi 14430 else 14431 pkg_failed=untried 14432 fi 14433 14434 14435 14436 if test $pkg_failed = yes; then 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14438 $as_echo "no" >&6; } 14439 14440 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 14441 _pkg_short_errors_supported=yes 14442 else 14443 _pkg_short_errors_supported=no 14444 fi 14445 if test $_pkg_short_errors_supported = yes; then 14446 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1` 14447 else 14448 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1` 14449 fi 14450 # Put the nasty error message in config.log where it belongs 14451 echo "$systemd_PKG_ERRORS" >&5 14452 14453 14454 with_systemd_unit_dir="" 14455 14456 elif test $pkg_failed = untried; then 14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14458 $as_echo "no" >&6; } 14459 14460 with_systemd_unit_dir="" 14461 14462 else 14463 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS 14464 systemd_LIBS=$pkg_cv_systemd_LIBS 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14466 $as_echo "yes" >&6; } 14467 14468 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)" 14469 14470 fi 14471 14472 14473 fi 14474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5 14475 $as_echo_n "checking for systemd system unit dir... " >&6; } 14476 systemd_system_unit_dir="${with_systemd_unit_dir}" 14477 if test -n "${systemd_system_unit_dir}"; then : 14478 14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5 14480 $as_echo "${systemd_system_unit_dir}" >&6; } 14481 have_systemd="yes" 14482 14483 else 14484 14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14486 $as_echo "no" >&6; } 14487 have_systemd="no" 14488 14489 fi 14490 14491 else 14492 14493 have_systemd="disabled" 14494 14495 fi 14496 14497 14498 14499 test -d lib || mkdir lib 14500 test -d include || mkdir include 14501 test -d include/linux || mkdir include/linux 14502 test -d include/asm || mkdir include/asm 14503 if test -z "$UUID_CMT" ; then 14504 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \ 14505 lib/uuid/uuid_types.h" 14506 fi 14507 if test -z "$BLKID_CMT" ; then 14508 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \ 14509 lib/blkid/blkid_types.h" 14510 fi 14511 for i in MCONFIG Makefile \ 14512 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \ 14513 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ 14514 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ 14515 $uuid_out_list $blkid_out_list lib/support/Makefile \ 14516 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \ 14517 misc/Makefile ext2ed/Makefile e2fsck/Makefile \ 14518 debugfs/Makefile tests/Makefile tests/progs/Makefile \ 14519 resize/Makefile doc/Makefile intl/Makefile \ 14520 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do 14521 if test -d `dirname ${srcdir}/$i` ; then 14522 outlist="$outlist $i" 14523 fi 14524 done 14525 ac_config_files="$ac_config_files $outlist" 14526 14527 cat >confcache <<\_ACEOF 14528 # This file is a shell script that caches the results of configure 14529 # tests run on this system so they can be shared between configure 14530 # scripts and configure runs, see configure's option --config-cache. 14531 # It is not useful on other systems. If it contains results you don't 14532 # want to keep, you may remove or edit it. 14533 # 14534 # config.status only pays attention to the cache file if you give it 14535 # the --recheck option to rerun configure. 14536 # 14537 # `ac_cv_env_foo' variables (set or unset) will be overridden when 14538 # loading this file, other *unset* `ac_cv_foo' will be assigned the 14539 # following values. 14540 14541 _ACEOF 14542 14543 # The following way of writing the cache mishandles newlines in values, 14544 # but we know of no workaround that is simple, portable, and efficient. 14545 # So, we kill variables containing newlines. 14546 # Ultrix sh set writes to stderr and can't be redirected directly, 14547 # and sets the high bit in the cache file unless we assign to the vars. 14548 ( 14549 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 14550 eval ac_val=\$$ac_var 14551 case $ac_val in #( 14552 *${as_nl}*) 14553 case $ac_var in #( 14554 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 14555 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 14556 esac 14557 case $ac_var in #( 14558 _ | IFS | as_nl) ;; #( 14559 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 14560 *) { eval $ac_var=; unset $ac_var;} ;; 14561 esac ;; 14562 esac 14563 done 14564 14565 (set) 2>&1 | 14566 case $as_nl`(ac_space=' '; set) 2>&1` in #( 14567 *${as_nl}ac_space=\ *) 14568 # `set' does not quote correctly, so add quotes: double-quote 14569 # substitution turns \\\\ into \\, and sed turns \\ into \. 14570 sed -n \ 14571 "s/'/'\\\\''/g; 14572 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 14573 ;; #( 14574 *) 14575 # `set' quotes correctly as required by POSIX, so do not add quotes. 14576 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 14577 ;; 14578 esac | 14579 sort 14580 ) | 14581 sed ' 14582 /^ac_cv_env_/b end 14583 t clear 14584 :clear 14585 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 14586 t end 14587 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 14588 :end' >>confcache 14589 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 14590 if test -w "$cache_file"; then 14591 if test "x$cache_file" != "x/dev/null"; then 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 14593 $as_echo "$as_me: updating cache $cache_file" >&6;} 14594 if test ! -f "$cache_file" || test -h "$cache_file"; then 14595 cat confcache >"$cache_file" 14596 else 14597 case $cache_file in #( 14598 */* | ?:*) 14599 mv -f confcache "$cache_file"$$ && 14600 mv -f "$cache_file"$$ "$cache_file" ;; #( 14601 *) 14602 mv -f confcache "$cache_file" ;; 14603 esac 14604 fi 14605 fi 14606 else 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 14608 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 14609 fi 14610 fi 14611 rm -f confcache 14612 14613 test "x$prefix" = xNONE && prefix=$ac_default_prefix 14614 # Let make expand exec_prefix. 14615 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 14616 14617 DEFS=-DHAVE_CONFIG_H 14618 14619 ac_libobjs= 14620 ac_ltlibobjs= 14621 U= 14622 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 14623 # 1. Remove the extension, and $U if already installed. 14624 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 14625 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 14626 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 14627 # will be set to the directory where LIBOBJS objects are built. 14628 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 14629 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 14630 done 14631 LIBOBJS=$ac_libobjs 14632 14633 LTLIBOBJS=$ac_ltlibobjs 14634 14635 14636 14637 14638 : "${CONFIG_STATUS=./config.status}" 14639 ac_write_fail=0 14640 ac_clean_files_save=$ac_clean_files 14641 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 14642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 14643 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 14644 as_write_fail=0 14645 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 14646 #! $SHELL 14647 # Generated by $as_me. 14648 # Run this file to recreate the current configuration. 14649 # Compiler output produced by configure, useful for debugging 14650 # configure, is in config.log if it exists. 14651 14652 debug=false 14653 ac_cs_recheck=false 14654 ac_cs_silent=false 14655 14656 SHELL=\${CONFIG_SHELL-$SHELL} 14657 export SHELL 14658 _ASEOF 14659 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 14660 ## -------------------- ## 14661 ## M4sh Initialization. ## 14662 ## -------------------- ## 14663 14664 # Be more Bourne compatible 14665 DUALCASE=1; export DUALCASE # for MKS sh 14666 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 14667 emulate sh 14668 NULLCMD=: 14669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 14670 # is contrary to our usage. Disable this feature. 14671 alias -g '${1+"$@"}'='"$@"' 14672 setopt NO_GLOB_SUBST 14673 else 14674 case `(set -o) 2>/dev/null` in #( 14675 *posix*) : 14676 set -o posix ;; #( 14677 *) : 14678 ;; 14679 esac 14680 fi 14681 14682 14683 as_nl=' 14684 ' 14685 export as_nl 14686 # Printing a long string crashes Solaris 7 /usr/bin/printf. 14687 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 14688 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 14689 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 14690 # Prefer a ksh shell builtin over an external printf program on Solaris, 14691 # but without wasting forks for bash or zsh. 14692 if test -z "$BASH_VERSION$ZSH_VERSION" \ 14693 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 14694 as_echo='print -r --' 14695 as_echo_n='print -rn --' 14696 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 14697 as_echo='printf %s\n' 14698 as_echo_n='printf %s' 14699 else 14700 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 14701 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 14702 as_echo_n='/usr/ucb/echo -n' 14703 else 14704 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 14705 as_echo_n_body='eval 14706 arg=$1; 14707 case $arg in #( 14708 *"$as_nl"*) 14709 expr "X$arg" : "X\\(.*\\)$as_nl"; 14710 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 14711 esac; 14712 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 14713 ' 14714 export as_echo_n_body 14715 as_echo_n='sh -c $as_echo_n_body as_echo' 14716 fi 14717 export as_echo_body 14718 as_echo='sh -c $as_echo_body as_echo' 14719 fi 14720 14721 # The user is always right. 14722 if test "${PATH_SEPARATOR+set}" != set; then 14723 PATH_SEPARATOR=: 14724 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 14725 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 14726 PATH_SEPARATOR=';' 14727 } 14728 fi 14729 14730 14731 # IFS 14732 # We need space, tab and new line, in precisely that order. Quoting is 14733 # there to prevent editors from complaining about space-tab. 14734 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 14735 # splitting by setting IFS to empty value.) 14736 IFS=" "" $as_nl" 14737 14738 # Find who we are. Look in the path if we contain no directory separator. 14739 as_myself= 14740 case $0 in #(( 14741 *[\\/]* ) as_myself=$0 ;; 14742 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14743 for as_dir in $PATH 14744 do 14745 IFS=$as_save_IFS 14746 test -z "$as_dir" && as_dir=. 14747 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 14748 done 14749 IFS=$as_save_IFS 14750 14751 ;; 14752 esac 14753 # We did not find ourselves, most probably we were run as `sh COMMAND' 14754 # in which case we are not to be found in the path. 14755 if test "x$as_myself" = x; then 14756 as_myself=$0 14757 fi 14758 if test ! -f "$as_myself"; then 14759 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 14760 exit 1 14761 fi 14762 14763 # Unset variables that we do not need and which cause bugs (e.g. in 14764 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 14765 # suppresses any "Segmentation fault" message there. '((' could 14766 # trigger a bug in pdksh 5.2.14. 14767 for as_var in BASH_ENV ENV MAIL MAILPATH 14768 do eval test x\${$as_var+set} = xset \ 14769 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 14770 done 14771 PS1='$ ' 14772 PS2='> ' 14773 PS4='+ ' 14774 14775 # NLS nuisances. 14776 LC_ALL=C 14777 export LC_ALL 14778 LANGUAGE=C 14779 export LANGUAGE 14780 14781 # CDPATH. 14782 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14783 14784 14785 # as_fn_error STATUS ERROR [LINENO LOG_FD] 14786 # ---------------------------------------- 14787 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 14788 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 14789 # script with STATUS, using 1 if that was 0. 14790 as_fn_error () 14791 { 14792 as_status=$1; test $as_status -eq 0 && as_status=1 14793 if test "$4"; then 14794 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 14795 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 14796 fi 14797 $as_echo "$as_me: error: $2" >&2 14798 as_fn_exit $as_status 14799 } # as_fn_error 14800 14801 14802 # as_fn_set_status STATUS 14803 # ----------------------- 14804 # Set $? to STATUS, without forking. 14805 as_fn_set_status () 14806 { 14807 return $1 14808 } # as_fn_set_status 14809 14810 # as_fn_exit STATUS 14811 # ----------------- 14812 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 14813 as_fn_exit () 14814 { 14815 set +e 14816 as_fn_set_status $1 14817 exit $1 14818 } # as_fn_exit 14819 14820 # as_fn_unset VAR 14821 # --------------- 14822 # Portably unset VAR. 14823 as_fn_unset () 14824 { 14825 { eval $1=; unset $1;} 14826 } 14827 as_unset=as_fn_unset 14828 # as_fn_append VAR VALUE 14829 # ---------------------- 14830 # Append the text in VALUE to the end of the definition contained in VAR. Take 14831 # advantage of any shell optimizations that allow amortized linear growth over 14832 # repeated appends, instead of the typical quadratic growth present in naive 14833 # implementations. 14834 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14835 eval 'as_fn_append () 14836 { 14837 eval $1+=\$2 14838 }' 14839 else 14840 as_fn_append () 14841 { 14842 eval $1=\$$1\$2 14843 } 14844 fi # as_fn_append 14845 14846 # as_fn_arith ARG... 14847 # ------------------ 14848 # Perform arithmetic evaluation on the ARGs, and store the result in the 14849 # global $as_val. Take advantage of shells that can avoid forks. The arguments 14850 # must be portable across $(()) and expr. 14851 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14852 eval 'as_fn_arith () 14853 { 14854 as_val=$(( $* )) 14855 }' 14856 else 14857 as_fn_arith () 14858 { 14859 as_val=`expr "$@" || test $? -eq 1` 14860 } 14861 fi # as_fn_arith 14862 14863 14864 if expr a : '\(a\)' >/dev/null 2>&1 && 14865 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14866 as_expr=expr 14867 else 14868 as_expr=false 14869 fi 14870 14871 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14872 as_basename=basename 14873 else 14874 as_basename=false 14875 fi 14876 14877 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14878 as_dirname=dirname 14879 else 14880 as_dirname=false 14881 fi 14882 14883 as_me=`$as_basename -- "$0" || 14884 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14885 X"$0" : 'X\(//\)$' \| \ 14886 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14887 $as_echo X/"$0" | 14888 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14889 s//\1/ 14890 q 14891 } 14892 /^X\/\(\/\/\)$/{ 14893 s//\1/ 14894 q 14895 } 14896 /^X\/\(\/\).*/{ 14897 s//\1/ 14898 q 14899 } 14900 s/.*/./; q'` 14901 14902 # Avoid depending upon Character Ranges. 14903 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14904 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14905 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14906 as_cr_digits='0123456789' 14907 as_cr_alnum=$as_cr_Letters$as_cr_digits 14908 14909 ECHO_C= ECHO_N= ECHO_T= 14910 case `echo -n x` in #((((( 14911 -n*) 14912 case `echo 'xy\c'` in 14913 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14914 xy) ECHO_C='\c';; 14915 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14916 ECHO_T=' ';; 14917 esac;; 14918 *) 14919 ECHO_N='-n';; 14920 esac 14921 14922 rm -f conf$$ conf$$.exe conf$$.file 14923 if test -d conf$$.dir; then 14924 rm -f conf$$.dir/conf$$.file 14925 else 14926 rm -f conf$$.dir 14927 mkdir conf$$.dir 2>/dev/null 14928 fi 14929 if (echo >conf$$.file) 2>/dev/null; then 14930 if ln -s conf$$.file conf$$ 2>/dev/null; then 14931 as_ln_s='ln -s' 14932 # ... but there are two gotchas: 14933 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14934 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14935 # In both cases, we have to default to `cp -pR'. 14936 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14937 as_ln_s='cp -pR' 14938 elif ln conf$$.file conf$$ 2>/dev/null; then 14939 as_ln_s=ln 14940 else 14941 as_ln_s='cp -pR' 14942 fi 14943 else 14944 as_ln_s='cp -pR' 14945 fi 14946 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14947 rmdir conf$$.dir 2>/dev/null 14948 14949 14950 # as_fn_mkdir_p 14951 # ------------- 14952 # Create "$as_dir" as a directory, including parents if necessary. 14953 as_fn_mkdir_p () 14954 { 14955 14956 case $as_dir in #( 14957 -*) as_dir=./$as_dir;; 14958 esac 14959 test -d "$as_dir" || eval $as_mkdir_p || { 14960 as_dirs= 14961 while :; do 14962 case $as_dir in #( 14963 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14964 *) as_qdir=$as_dir;; 14965 esac 14966 as_dirs="'$as_qdir' $as_dirs" 14967 as_dir=`$as_dirname -- "$as_dir" || 14968 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14969 X"$as_dir" : 'X\(//\)[^/]' \| \ 14970 X"$as_dir" : 'X\(//\)$' \| \ 14971 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14972 $as_echo X"$as_dir" | 14973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14974 s//\1/ 14975 q 14976 } 14977 /^X\(\/\/\)[^/].*/{ 14978 s//\1/ 14979 q 14980 } 14981 /^X\(\/\/\)$/{ 14982 s//\1/ 14983 q 14984 } 14985 /^X\(\/\).*/{ 14986 s//\1/ 14987 q 14988 } 14989 s/.*/./; q'` 14990 test -d "$as_dir" && break 14991 done 14992 test -z "$as_dirs" || eval "mkdir $as_dirs" 14993 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14994 14995 14996 } # as_fn_mkdir_p 14997 if mkdir -p . 2>/dev/null; then 14998 as_mkdir_p='mkdir -p "$as_dir"' 14999 else 15000 test -d ./-p && rmdir ./-p 15001 as_mkdir_p=false 15002 fi 15003 15004 15005 # as_fn_executable_p FILE 15006 # ----------------------- 15007 # Test if FILE is an executable regular file. 15008 as_fn_executable_p () 15009 { 15010 test -f "$1" && test -x "$1" 15011 } # as_fn_executable_p 15012 as_test_x='test -x' 15013 as_executable_p=as_fn_executable_p 15014 15015 # Sed expression to map a string onto a valid CPP name. 15016 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 15017 15018 # Sed expression to map a string onto a valid variable name. 15019 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 15020 15021 15022 exec 6>&1 15023 ## ----------------------------------- ## 15024 ## Main body of $CONFIG_STATUS script. ## 15025 ## ----------------------------------- ## 15026 _ASEOF 15027 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 15028 15029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15030 # Save the log message, to keep $0 and so on meaningful, and to 15031 # report actual input values of CONFIG_FILES etc. instead of their 15032 # values after options handling. 15033 ac_log=" 15034 This file was extended by $as_me, which was 15035 generated by GNU Autoconf 2.69. Invocation command line was 15036 15037 CONFIG_FILES = $CONFIG_FILES 15038 CONFIG_HEADERS = $CONFIG_HEADERS 15039 CONFIG_LINKS = $CONFIG_LINKS 15040 CONFIG_COMMANDS = $CONFIG_COMMANDS 15041 $ $0 $@ 15042 15043 on `(hostname || uname -n) 2>/dev/null | sed 1q` 15044 " 15045 15046 _ACEOF 15047 15048 case $ac_config_files in *" 15049 "*) set x $ac_config_files; shift; ac_config_files=$*;; 15050 esac 15051 15052 case $ac_config_headers in *" 15053 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 15054 esac 15055 15056 15057 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15058 # Files that config.status was made for. 15059 config_files="$ac_config_files" 15060 config_headers="$ac_config_headers" 15061 config_commands="$ac_config_commands" 15062 15063 _ACEOF 15064 15065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15066 ac_cs_usage="\ 15067 \`$as_me' instantiates files and other configuration actions 15068 from templates according to the current configuration. Unless the files 15069 and actions are specified as TAGs, all are instantiated by default. 15070 15071 Usage: $0 [OPTION]... [TAG]... 15072 15073 -h, --help print this help, then exit 15074 -V, --version print version number and configuration settings, then exit 15075 --config print configuration, then exit 15076 -q, --quiet, --silent 15077 do not print progress messages 15078 -d, --debug don't remove temporary files 15079 --recheck update $as_me by reconfiguring in the same conditions 15080 --file=FILE[:TEMPLATE] 15081 instantiate the configuration file FILE 15082 --header=FILE[:TEMPLATE] 15083 instantiate the configuration header FILE 15084 15085 Configuration files: 15086 $config_files 15087 15088 Configuration headers: 15089 $config_headers 15090 15091 Configuration commands: 15092 $config_commands 15093 15094 Report bugs to the package provider." 15095 15096 _ACEOF 15097 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15098 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 15099 ac_cs_version="\\ 15100 config.status 15101 configured by $0, generated by GNU Autoconf 2.69, 15102 with options \\"\$ac_cs_config\\" 15103 15104 Copyright (C) 2012 Free Software Foundation, Inc. 15105 This config.status script is free software; the Free Software Foundation 15106 gives unlimited permission to copy, distribute and modify it." 15107 15108 ac_pwd='$ac_pwd' 15109 srcdir='$srcdir' 15110 INSTALL='$INSTALL' 15111 MKDIR_P='$MKDIR_P' 15112 AWK='$AWK' 15113 test -n "\$AWK" || AWK=awk 15114 _ACEOF 15115 15116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15117 # The default lists apply if the user does not specify any file. 15118 ac_need_defaults=: 15119 while test $# != 0 15120 do 15121 case $1 in 15122 --*=?*) 15123 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15124 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 15125 ac_shift=: 15126 ;; 15127 --*=) 15128 ac_option=`expr "X$1" : 'X\([^=]*\)='` 15129 ac_optarg= 15130 ac_shift=: 15131 ;; 15132 *) 15133 ac_option=$1 15134 ac_optarg=$2 15135 ac_shift=shift 15136 ;; 15137 esac 15138 15139 case $ac_option in 15140 # Handling of the options. 15141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 15142 ac_cs_recheck=: ;; 15143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 15144 $as_echo "$ac_cs_version"; exit ;; 15145 --config | --confi | --conf | --con | --co | --c ) 15146 $as_echo "$ac_cs_config"; exit ;; 15147 --debug | --debu | --deb | --de | --d | -d ) 15148 debug=: ;; 15149 --file | --fil | --fi | --f ) 15150 $ac_shift 15151 case $ac_optarg in 15152 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15153 '') as_fn_error $? "missing file argument" ;; 15154 esac 15155 as_fn_append CONFIG_FILES " '$ac_optarg'" 15156 ac_need_defaults=false;; 15157 --header | --heade | --head | --hea ) 15158 $ac_shift 15159 case $ac_optarg in 15160 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 15161 esac 15162 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 15163 ac_need_defaults=false;; 15164 --he | --h) 15165 # Conflict between --help and --header 15166 as_fn_error $? "ambiguous option: \`$1' 15167 Try \`$0 --help' for more information.";; 15168 --help | --hel | -h ) 15169 $as_echo "$ac_cs_usage"; exit ;; 15170 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 15171 | -silent | --silent | --silen | --sile | --sil | --si | --s) 15172 ac_cs_silent=: ;; 15173 15174 # This is an error. 15175 -*) as_fn_error $? "unrecognized option: \`$1' 15176 Try \`$0 --help' for more information." ;; 15177 15178 *) as_fn_append ac_config_targets " $1" 15179 ac_need_defaults=false ;; 15180 15181 esac 15182 shift 15183 done 15184 15185 ac_configure_extra_args= 15186 15187 if $ac_cs_silent; then 15188 exec 6>/dev/null 15189 ac_configure_extra_args="$ac_configure_extra_args --silent" 15190 fi 15191 15192 _ACEOF 15193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15194 if \$ac_cs_recheck; then 15195 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 15196 shift 15197 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 15198 CONFIG_SHELL='$SHELL' 15199 export CONFIG_SHELL 15200 exec "\$@" 15201 fi 15202 15203 _ACEOF 15204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15205 exec 5>>config.log 15206 { 15207 echo 15208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 15209 ## Running $as_me. ## 15210 _ASBOX 15211 $as_echo "$ac_log" 15212 } >&5 15213 15214 _ACEOF 15215 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15216 # 15217 # INIT-COMMANDS 15218 # 15219 # Capture the value of obsolete ALL_LINGUAS because we need it to compute 15220 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 15221 # from automake < 1.5. 15222 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 15223 # Capture the value of LINGUAS because we need it to compute CATALOGS. 15224 LINGUAS="${LINGUAS-%UNSET%}" 15225 15226 15227 _ACEOF 15228 15229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15230 15231 # Handling of arguments. 15232 for ac_config_target in $ac_config_targets 15233 do 15234 case $ac_config_target in 15235 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; 15236 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 15237 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; 15238 15239 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 15240 esac 15241 done 15242 15243 15244 # If the user did not use the arguments to specify the items to instantiate, 15245 # then the envvar interface is used. Set only those that are not. 15246 # We use the long form for the default assignment because of an extremely 15247 # bizarre bug on SunOS 4.1.3. 15248 if $ac_need_defaults; then 15249 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 15250 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 15251 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 15252 fi 15253 15254 # Have a temporary directory for convenience. Make it in the build tree 15255 # simply because there is no reason against having it here, and in addition, 15256 # creating and moving files from /tmp can sometimes cause problems. 15257 # Hook for its removal unless debugging. 15258 # Note that there is a small window in which the directory will not be cleaned: 15259 # after its creation but before its name has been assigned to `$tmp'. 15260 $debug || 15261 { 15262 tmp= ac_tmp= 15263 trap 'exit_status=$? 15264 : "${ac_tmp:=$tmp}" 15265 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 15266 ' 0 15267 trap 'as_fn_exit 1' 1 2 13 15 15268 } 15269 # Create a (secure) tmp directory for tmp files. 15270 15271 { 15272 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 15273 test -d "$tmp" 15274 } || 15275 { 15276 tmp=./conf$$-$RANDOM 15277 (umask 077 && mkdir "$tmp") 15278 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 15279 ac_tmp=$tmp 15280 15281 # Set up the scripts for CONFIG_FILES section. 15282 # No need to generate them if there are no CONFIG_FILES. 15283 # This happens for instance with `./config.status config.h'. 15284 if test -n "$CONFIG_FILES"; then 15285 15286 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then 15287 ac_cs_awk_getline=: 15288 ac_cs_awk_pipe_init= 15289 ac_cs_awk_read_file=' 15290 while ((getline aline < (F[key])) > 0) 15291 print(aline) 15292 close(F[key])' 15293 ac_cs_awk_pipe_fini= 15294 else 15295 ac_cs_awk_getline=false 15296 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" 15297 ac_cs_awk_read_file=' 15298 print "|#_!!_#|" 15299 print "cat " F[key] " &&" 15300 '$ac_cs_awk_pipe_init 15301 # The final `:' finishes the AND list. 15302 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' 15303 fi 15304 ac_cr=`echo X | tr X '\015'` 15305 # On cygwin, bash can eat \r inside `` if the user requested igncr. 15306 # But we know of no other shell where ac_cr would be empty at this 15307 # point, so we can use a bashism as a fallback. 15308 if test "x$ac_cr" = x; then 15309 eval ac_cr=\$\'\\r\' 15310 fi 15311 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 15312 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 15313 ac_cs_awk_cr='\\r' 15314 else 15315 ac_cs_awk_cr=$ac_cr 15316 fi 15317 15318 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 15319 _ACEOF 15320 15321 # Create commands to substitute file output variables. 15322 { 15323 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && 15324 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' && 15325 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && 15326 echo "_ACAWK" && 15327 echo "_ACEOF" 15328 } >conf$$files.sh && 15329 . ./conf$$files.sh || 15330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15331 rm -f conf$$files.sh 15332 15333 { 15334 echo "cat >conf$$subs.awk <<_ACEOF" && 15335 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 15336 echo "_ACEOF" 15337 } >conf$$subs.sh || 15338 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15339 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 15340 ac_delim='%!_!# ' 15341 for ac_last_try in false false false false false :; do 15342 . ./conf$$subs.sh || 15343 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15344 15345 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 15346 if test $ac_delim_n = $ac_delim_num; then 15347 break 15348 elif $ac_last_try; then 15349 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 15350 else 15351 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15352 fi 15353 done 15354 rm -f conf$$subs.sh 15355 15356 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15357 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 15358 _ACEOF 15359 sed -n ' 15360 h 15361 s/^/S["/; s/!.*/"]=/ 15362 p 15363 g 15364 s/^[^!]*!// 15365 :repl 15366 t repl 15367 s/'"$ac_delim"'$// 15368 t delim 15369 :nl 15370 h 15371 s/\(.\{148\}\)..*/\1/ 15372 t more1 15373 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 15374 p 15375 n 15376 b repl 15377 :more1 15378 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15379 p 15380 g 15381 s/.\{148\}// 15382 t nl 15383 :delim 15384 h 15385 s/\(.\{148\}\)..*/\1/ 15386 t more2 15387 s/["\\]/\\&/g; s/^/"/; s/$/"/ 15388 p 15389 b 15390 :more2 15391 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 15392 p 15393 g 15394 s/.\{148\}// 15395 t delim 15396 ' <conf$$subs.awk | sed ' 15397 /^[^""]/{ 15398 N 15399 s/\n// 15400 } 15401 ' >>$CONFIG_STATUS || ac_write_fail=1 15402 rm -f conf$$subs.awk 15403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15404 _ACAWK 15405 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 15406 for (key in S) S_is_set[key] = 1 15407 FS = "" 15408 \$ac_cs_awk_pipe_init 15409 } 15410 { 15411 line = $ 0 15412 nfields = split(line, field, "@") 15413 substed = 0 15414 len = length(field[1]) 15415 for (i = 2; i < nfields; i++) { 15416 key = field[i] 15417 keylen = length(key) 15418 if (S_is_set[key]) { 15419 value = S[key] 15420 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 15421 len += length(value) + length(field[++i]) 15422 substed = 1 15423 } else 15424 len += 1 + keylen 15425 } 15426 if (nfields == 3 && !substed) { 15427 key = field[2] 15428 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { 15429 \$ac_cs_awk_read_file 15430 next 15431 } 15432 } 15433 print line 15434 } 15435 \$ac_cs_awk_pipe_fini 15436 _ACAWK 15437 _ACEOF 15438 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15439 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 15440 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 15441 else 15442 cat 15443 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 15444 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 15445 _ACEOF 15446 15447 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 15448 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 15449 # trailing colons and then remove the whole line if VPATH becomes empty 15450 # (actually we leave an empty line to preserve line numbers). 15451 if test "x$srcdir" = x.; then 15452 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 15453 h 15454 s/// 15455 s/^/:/ 15456 s/[ ]*$/:/ 15457 s/:\$(srcdir):/:/g 15458 s/:\${srcdir}:/:/g 15459 s/:@srcdir@:/:/g 15460 s/^:*// 15461 s/:*$// 15462 x 15463 s/\(=[ ]*\).*/\1/ 15464 G 15465 s/\n// 15466 s/^[^=]*=[ ]*$// 15467 }' 15468 fi 15469 15470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15471 fi # test -n "$CONFIG_FILES" 15472 15473 # Set up the scripts for CONFIG_HEADERS section. 15474 # No need to generate them if there are no CONFIG_HEADERS. 15475 # This happens for instance with `./config.status Makefile'. 15476 if test -n "$CONFIG_HEADERS"; then 15477 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 15478 BEGIN { 15479 _ACEOF 15480 15481 # Transform confdefs.h into an awk script `defines.awk', embedded as 15482 # here-document in config.status, that substitutes the proper values into 15483 # config.h.in to produce config.h. 15484 15485 # Create a delimiter string that does not exist in confdefs.h, to ease 15486 # handling of long lines. 15487 ac_delim='%!_!# ' 15488 for ac_last_try in false false :; do 15489 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 15490 if test -z "$ac_tt"; then 15491 break 15492 elif $ac_last_try; then 15493 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 15494 else 15495 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 15496 fi 15497 done 15498 15499 # For the awk script, D is an array of macro values keyed by name, 15500 # likewise P contains macro parameters if any. Preserve backslash 15501 # newline sequences. 15502 15503 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 15504 sed -n ' 15505 s/.\{148\}/&'"$ac_delim"'/g 15506 t rset 15507 :rset 15508 s/^[ ]*#[ ]*define[ ][ ]*/ / 15509 t def 15510 d 15511 :def 15512 s/\\$// 15513 t bsnl 15514 s/["\\]/\\&/g 15515 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15516 D["\1"]=" \3"/p 15517 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 15518 d 15519 :bsnl 15520 s/["\\]/\\&/g 15521 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 15522 D["\1"]=" \3\\\\\\n"\\/p 15523 t cont 15524 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 15525 t cont 15526 d 15527 :cont 15528 n 15529 s/.\{148\}/&'"$ac_delim"'/g 15530 t clear 15531 :clear 15532 s/\\$// 15533 t bsnlc 15534 s/["\\]/\\&/g; s/^/"/; s/$/"/p 15535 d 15536 :bsnlc 15537 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 15538 b cont 15539 ' <confdefs.h | sed ' 15540 s/'"$ac_delim"'/"\\\ 15541 "/g' >>$CONFIG_STATUS || ac_write_fail=1 15542 15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15544 for (key in D) D_is_set[key] = 1 15545 FS = "" 15546 } 15547 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 15548 line = \$ 0 15549 split(line, arg, " ") 15550 if (arg[1] == "#") { 15551 defundef = arg[2] 15552 mac1 = arg[3] 15553 } else { 15554 defundef = substr(arg[1], 2) 15555 mac1 = arg[2] 15556 } 15557 split(mac1, mac2, "(") #) 15558 macro = mac2[1] 15559 prefix = substr(line, 1, index(line, defundef) - 1) 15560 if (D_is_set[macro]) { 15561 # Preserve the white space surrounding the "#". 15562 print prefix "define", macro P[macro] D[macro] 15563 next 15564 } else { 15565 # Replace #undef with comments. This is necessary, for example, 15566 # in the case of _POSIX_SOURCE, which is predefined and required 15567 # on some systems where configure will not decide to define it. 15568 if (defundef == "undef") { 15569 print "/*", prefix defundef, macro, "*/" 15570 next 15571 } 15572 } 15573 } 15574 { print } 15575 _ACAWK 15576 _ACEOF 15577 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15578 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15579 fi # test -n "$CONFIG_HEADERS" 15580 15581 15582 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15583 shift 15584 for ac_tag 15585 do 15586 case $ac_tag in 15587 :[FHLC]) ac_mode=$ac_tag; continue;; 15588 esac 15589 case $ac_mode$ac_tag in 15590 :[FHL]*:*);; 15591 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15592 :[FH]-) ac_tag=-:-;; 15593 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15594 esac 15595 ac_save_IFS=$IFS 15596 IFS=: 15597 set x $ac_tag 15598 IFS=$ac_save_IFS 15599 shift 15600 ac_file=$1 15601 shift 15602 15603 case $ac_mode in 15604 :L) ac_source=$1;; 15605 :[FH]) 15606 ac_file_inputs= 15607 for ac_f 15608 do 15609 case $ac_f in 15610 -) ac_f="$ac_tmp/stdin";; 15611 *) # Look for the file first in the build tree, then in the source tree 15612 # (if the path is not absolute). The absolute path cannot be DOS-style, 15613 # because $ac_f cannot contain `:'. 15614 test -f "$ac_f" || 15615 case $ac_f in 15616 [\\/$]*) false;; 15617 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15618 esac || 15619 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15620 esac 15621 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15622 as_fn_append ac_file_inputs " '$ac_f'" 15623 done 15624 15625 # Let's still pretend it is `configure' which instantiates (i.e., don't 15626 # use $as_me), people would be surprised to read: 15627 # /* config.h. Generated by config.status. */ 15628 configure_input='Generated from '` 15629 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15630 `' by configure.' 15631 if test x"$ac_file" != x-; then 15632 configure_input="$ac_file. $configure_input" 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15634 $as_echo "$as_me: creating $ac_file" >&6;} 15635 fi 15636 # Neutralize special characters interpreted by sed in replacement strings. 15637 case $configure_input in #( 15638 *\&* | *\|* | *\\* ) 15639 ac_sed_conf_input=`$as_echo "$configure_input" | 15640 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15641 *) ac_sed_conf_input=$configure_input;; 15642 esac 15643 15644 case $ac_tag in 15645 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15646 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15647 esac 15648 ;; 15649 esac 15650 15651 ac_dir=`$as_dirname -- "$ac_file" || 15652 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15653 X"$ac_file" : 'X\(//\)[^/]' \| \ 15654 X"$ac_file" : 'X\(//\)$' \| \ 15655 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15656 $as_echo X"$ac_file" | 15657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15658 s//\1/ 15659 q 15660 } 15661 /^X\(\/\/\)[^/].*/{ 15662 s//\1/ 15663 q 15664 } 15665 /^X\(\/\/\)$/{ 15666 s//\1/ 15667 q 15668 } 15669 /^X\(\/\).*/{ 15670 s//\1/ 15671 q 15672 } 15673 s/.*/./; q'` 15674 as_dir="$ac_dir"; as_fn_mkdir_p 15675 ac_builddir=. 15676 15677 case "$ac_dir" in 15678 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15679 *) 15680 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15681 # A ".." for each directory in $ac_dir_suffix. 15682 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15683 case $ac_top_builddir_sub in 15684 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15685 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15686 esac ;; 15687 esac 15688 ac_abs_top_builddir=$ac_pwd 15689 ac_abs_builddir=$ac_pwd$ac_dir_suffix 15690 # for backward compatibility: 15691 ac_top_builddir=$ac_top_build_prefix 15692 15693 case $srcdir in 15694 .) # We are building in place. 15695 ac_srcdir=. 15696 ac_top_srcdir=$ac_top_builddir_sub 15697 ac_abs_top_srcdir=$ac_pwd ;; 15698 [\\/]* | ?:[\\/]* ) # Absolute name. 15699 ac_srcdir=$srcdir$ac_dir_suffix; 15700 ac_top_srcdir=$srcdir 15701 ac_abs_top_srcdir=$srcdir ;; 15702 *) # Relative name. 15703 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15704 ac_top_srcdir=$ac_top_build_prefix$srcdir 15705 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15706 esac 15707 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15708 15709 15710 case $ac_mode in 15711 :F) 15712 # 15713 # CONFIG_FILE 15714 # 15715 15716 case $INSTALL in 15717 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15718 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15719 esac 15720 ac_MKDIR_P=$MKDIR_P 15721 case $MKDIR_P in 15722 [\\/$]* | ?:[\\/]* ) ;; 15723 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15724 esac 15725 _ACEOF 15726 15727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15728 # If the template does not know about datarootdir, expand it. 15729 # FIXME: This hack should be removed a few years after 2.60. 15730 ac_datarootdir_hack=; ac_datarootdir_seen= 15731 ac_sed_dataroot=' 15732 /datarootdir/ { 15733 p 15734 q 15735 } 15736 /@datadir@/p 15737 /@docdir@/p 15738 /@infodir@/p 15739 /@localedir@/p 15740 /@mandir@/p' 15741 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15742 *datarootdir*) ac_datarootdir_seen=yes;; 15743 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15745 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15746 _ACEOF 15747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15748 ac_datarootdir_hack=' 15749 s&@datadir@&$datadir&g 15750 s&@docdir@&$docdir&g 15751 s&@infodir@&$infodir&g 15752 s&@localedir@&$localedir&g 15753 s&@mandir@&$mandir&g 15754 s&\\\${datarootdir}&$datarootdir&g' ;; 15755 esac 15756 _ACEOF 15757 15758 # Neutralize VPATH when `$srcdir' = `.'. 15759 # Shell code in configure.ac might set extrasub. 15760 # FIXME: do we really want to maintain this feature? 15761 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15762 ac_sed_extra="$ac_vpsub 15763 $extrasub 15764 _ACEOF 15765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15766 :t 15767 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15768 s|@configure_input@|$ac_sed_conf_input|;t t 15769 s&@top_builddir@&$ac_top_builddir_sub&;t t 15770 s&@top_build_prefix@&$ac_top_build_prefix&;t t 15771 s&@srcdir@&$ac_srcdir&;t t 15772 s&@abs_srcdir@&$ac_abs_srcdir&;t t 15773 s&@top_srcdir@&$ac_top_srcdir&;t t 15774 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15775 s&@builddir@&$ac_builddir&;t t 15776 s&@abs_builddir@&$ac_abs_builddir&;t t 15777 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15778 s&@INSTALL@&$ac_INSTALL&;t t 15779 s&@MKDIR_P@&$ac_MKDIR_P&;t t 15780 $ac_datarootdir_hack 15781 " 15782 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | 15783 if $ac_cs_awk_getline; then 15784 $AWK -f "$ac_tmp/subs.awk" 15785 else 15786 $AWK -f "$ac_tmp/subs.awk" | $SHELL 15787 fi \ 15788 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15789 15790 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15791 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15792 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15793 "$ac_tmp/out"`; test -z "$ac_out"; } && 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15795 which seems to be undefined. Please make sure it is defined" >&5 15796 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15797 which seems to be undefined. Please make sure it is defined" >&2;} 15798 15799 rm -f "$ac_tmp/stdin" 15800 case $ac_file in 15801 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15802 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15803 esac \ 15804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15805 ;; 15806 :H) 15807 # 15808 # CONFIG_HEADER 15809 # 15810 if test x"$ac_file" != x-; then 15811 { 15812 $as_echo "/* $configure_input */" \ 15813 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15814 } >"$ac_tmp/config.h" \ 15815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15816 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15817 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15818 $as_echo "$as_me: $ac_file is unchanged" >&6;} 15819 else 15820 rm -f "$ac_file" 15821 mv "$ac_tmp/config.h" "$ac_file" \ 15822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15823 fi 15824 else 15825 $as_echo "/* $configure_input */" \ 15826 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15827 || as_fn_error $? "could not create -" "$LINENO" 5 15828 fi 15829 ;; 15830 15831 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15832 $as_echo "$as_me: executing $ac_file commands" >&6;} 15833 ;; 15834 esac 15835 15836 15837 case $ac_file$ac_mode in 15838 "po-directories":C) 15839 for ac_file in $CONFIG_FILES; do 15840 # Support "outfile[:infile[:infile...]]" 15841 case "$ac_file" in 15842 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 15843 esac 15844 # PO directories have a Makefile.in generated from Makefile.in.in. 15845 case "$ac_file" in */Makefile.in) 15846 # Adjust a relative srcdir. 15847 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 15848 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 15849 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 15850 # In autoconf-2.13 it is called $ac_given_srcdir. 15851 # In autoconf-2.50 it is called $srcdir. 15852 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 15853 case "$ac_given_srcdir" in 15854 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 15855 /*) top_srcdir="$ac_given_srcdir" ;; 15856 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 15857 esac 15858 # Treat a directory as a PO directory if and only if it has a 15859 # POTFILES.in file. This allows packages to have multiple PO 15860 # directories under different names or in different locations. 15861 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 15862 rm -f "$ac_dir/POTFILES" 15863 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 15864 gt_tab=`printf '\t'` 15865 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 15866 POMAKEFILEDEPS="POTFILES.in" 15867 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 15868 # on $ac_dir but don't depend on user-specified configuration 15869 # parameters. 15870 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 15871 # The LINGUAS file contains the set of available languages. 15872 if test -n "$OBSOLETE_ALL_LINGUAS"; then 15873 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 15874 fi 15875 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 15876 # Hide the ALL_LINGUAS assignment from automake < 1.5. 15877 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 15878 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 15879 else 15880 # The set of available languages was given in configure.in. 15881 # Hide the ALL_LINGUAS assignment from automake < 1.5. 15882 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 15883 fi 15884 # Compute POFILES 15885 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 15886 # Compute UPDATEPOFILES 15887 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 15888 # Compute DUMMYPOFILES 15889 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 15890 # Compute GMOFILES 15891 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 15892 case "$ac_given_srcdir" in 15893 .) srcdirpre= ;; 15894 *) srcdirpre='$(srcdir)/' ;; 15895 esac 15896 POFILES= 15897 UPDATEPOFILES= 15898 DUMMYPOFILES= 15899 GMOFILES= 15900 for lang in $ALL_LINGUAS; do 15901 POFILES="$POFILES $srcdirpre$lang.po" 15902 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 15903 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 15904 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 15905 done 15906 # CATALOGS depends on both $ac_dir and the user's LINGUAS 15907 # environment variable. 15908 INST_LINGUAS= 15909 if test -n "$ALL_LINGUAS"; then 15910 for presentlang in $ALL_LINGUAS; do 15911 useit=no 15912 if test "%UNSET%" != "$LINGUAS"; then 15913 desiredlanguages="$LINGUAS" 15914 else 15915 desiredlanguages="$ALL_LINGUAS" 15916 fi 15917 for desiredlang in $desiredlanguages; do 15918 # Use the presentlang catalog if desiredlang is 15919 # a. equal to presentlang, or 15920 # b. a variant of presentlang (because in this case, 15921 # presentlang can be used as a fallback for messages 15922 # which are not translated in the desiredlang catalog). 15923 case "$desiredlang" in 15924 "$presentlang"*) useit=yes;; 15925 esac 15926 done 15927 if test $useit = yes; then 15928 INST_LINGUAS="$INST_LINGUAS $presentlang" 15929 fi 15930 done 15931 fi 15932 CATALOGS= 15933 if test -n "$INST_LINGUAS"; then 15934 for lang in $INST_LINGUAS; do 15935 CATALOGS="$CATALOGS $lang.gmo" 15936 done 15937 fi 15938 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 15939 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" 15940 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 15941 if test -f "$f"; then 15942 case "$f" in 15943 *.orig | *.bak | *~) ;; 15944 *) cat "$f" >> "$ac_dir/Makefile" ;; 15945 esac 15946 fi 15947 done 15948 fi 15949 ;; 15950 esac 15951 done ;; 15952 15953 esac 15954 done # for ac_tag 15955 15956 15957 as_fn_exit 0 15958 _ACEOF 15959 ac_clean_files=$ac_clean_files_save 15960 15961 test $ac_write_fail = 0 || 15962 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 15963 15964 15965 # configure is writing to config.log, and then calls config.status. 15966 # config.status does its own redirection, appending to config.log. 15967 # Unfortunately, on DOS this fails, as config.log is still kept open 15968 # by configure, so config.status won't be able to write to it; its 15969 # output is simply discarded. So we exec the FD to /dev/null, 15970 # effectively closing config.log, so it can be properly (re)opened and 15971 # appended to by config.status. When coming back to configure, we 15972 # need to make the FD available again. 15973 if test "$no_create" != yes; then 15974 ac_cs_success=: 15975 ac_config_status_args= 15976 test "$silent" = yes && 15977 ac_config_status_args="$ac_config_status_args --quiet" 15978 exec 5>/dev/null 15979 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 15980 exec 5>>config.log 15981 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 15982 # would make configure fail if this is the last instruction. 15983 $ac_cs_success || as_fn_exit 1 15984 fi 15985 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 15987 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 15988 fi 15989 15990 if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi 15991