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