A hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.
1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for jq 1.6. 4 # 5 # Report bugs to <https://github.com/stedolan/jq/issues>. 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 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209 test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212 else 213 as_have_required=no 214 fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217 else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219 as_found=false 220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221 do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235 fi 236 fi 237 done;; 238 esac 239 as_found=false 240 done 241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244 fi; } 245 IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251 # neutralization value for shells without unset; and this also 252 # works around shells that cannot unset nonexistent variables. 253 # Preserve -v and -x to the replacement shell. 254 BASH_ENV=/dev/null 255 ENV=/dev/null 256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257 case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262 esac 263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264 # Admittedly, this is quite paranoid, since all the known shells bail 265 # out after a failed `exec'. 266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267 exit 255 268 fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278 $0: https://github.com/stedolan/jq/issues about your 279 $0: system, including any error possibly output before this 280 $0: message. Then install a modern shell, or manually run 281 $0: the script under such a shell if you do have one." 282 fi 283 exit 1 284 fi 285 fi 286 fi 287 SHELL=${CONFIG_SHELL-/bin/sh} 288 export SHELL 289 # Unset more variables known to interfere with behavior of common tools. 290 CLICOLOR_FORCE= GREP_OPTIONS= 291 unset CLICOLOR_FORCE GREP_OPTIONS 292 293 ## --------------------- ## 294 ## M4sh Shell Functions. ## 295 ## --------------------- ## 296 # as_fn_unset VAR 297 # --------------- 298 # Portably unset VAR. 299 as_fn_unset () 300 { 301 { eval $1=; unset $1;} 302 } 303 as_unset=as_fn_unset 304 305 # as_fn_set_status STATUS 306 # ----------------------- 307 # Set $? to STATUS, without forking. 308 as_fn_set_status () 309 { 310 return $1 311 } # as_fn_set_status 312 313 # as_fn_exit STATUS 314 # ----------------- 315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316 as_fn_exit () 317 { 318 set +e 319 as_fn_set_status $1 320 exit $1 321 } # as_fn_exit 322 323 # as_fn_mkdir_p 324 # ------------- 325 # Create "$as_dir" as a directory, including parents if necessary. 326 as_fn_mkdir_p () 327 { 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345 $as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369 } # as_fn_mkdir_p 370 371 # as_fn_executable_p FILE 372 # ----------------------- 373 # Test if FILE is an executable regular file. 374 as_fn_executable_p () 375 { 376 test -f "$1" && test -x "$1" 377 } # as_fn_executable_p 378 # as_fn_append VAR VALUE 379 # ---------------------- 380 # Append the text in VALUE to the end of the definition contained in VAR. Take 381 # advantage of any shell optimizations that allow amortized linear growth over 382 # repeated appends, instead of the typical quadratic growth present in naive 383 # implementations. 384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389 else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394 fi # as_fn_append 395 396 # as_fn_arith ARG... 397 # ------------------ 398 # Perform arithmetic evaluation on the ARGs, and store the result in the 399 # global $as_val. Take advantage of shells that can avoid forks. The arguments 400 # must be portable across $(()) and expr. 401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406 else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411 fi # as_fn_arith 412 413 414 # as_fn_error STATUS ERROR [LINENO LOG_FD] 415 # ---------------------------------------- 416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418 # script with STATUS, using 1 if that was 0. 419 as_fn_error () 420 { 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428 } # as_fn_error 429 430 if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433 else 434 as_expr=false 435 fi 436 437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439 else 440 as_basename=false 441 fi 442 443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445 else 446 as_dirname=false 447 fi 448 449 as_me=`$as_basename -- "$0" || 450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453 $as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468 # Avoid depending upon Character Ranges. 469 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472 as_cr_digits='0123456789' 473 as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509 } 510 511 ECHO_C= ECHO_N= ECHO_T= 512 case `echo -n x` in #((((( 513 -n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520 *) 521 ECHO_N='-n';; 522 esac 523 524 rm -f conf$$ conf$$.exe conf$$.file 525 if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527 else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530 fi 531 if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545 else 546 as_ln_s='cp -pR' 547 fi 548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549 rmdir conf$$.dir 2>/dev/null 550 551 if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553 else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556 fi 557 558 as_test_x='test -x' 559 as_executable_p=as_fn_executable_p 560 561 # Sed expression to map a string onto a valid CPP name. 562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564 # Sed expression to map a string onto a valid variable name. 565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567 SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570 test -n "$DJDIR" || exec 7<&0 </dev/null 571 exec 6>&1 572 573 # Name of the host. 574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575 # so uname gets run too. 576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578 # 579 # Initializations. 580 # 581 ac_default_prefix=/usr/local 582 ac_clean_files= 583 ac_config_libobj_dir=. 584 LIBOBJS= 585 cross_compiling=no 586 subdirs= 587 MFLAGS= 588 MAKEFLAGS= 589 590 # Identity of this package. 591 PACKAGE_NAME='jq' 592 PACKAGE_TARNAME='jq' 593 PACKAGE_VERSION='1.6' 594 PACKAGE_STRING='jq 1.6' 595 PACKAGE_BUGREPORT='https://github.com/stedolan/jq/issues' 596 PACKAGE_URL='https://stedolan.github.io/jq' 597 598 # Factoring default headers for most tests. 599 ac_includes_default="\ 600 #include <stdio.h> 601 #ifdef HAVE_SYS_TYPES_H 602 # include <sys/types.h> 603 #endif 604 #ifdef HAVE_SYS_STAT_H 605 # include <sys/stat.h> 606 #endif 607 #ifdef STDC_HEADERS 608 # include <stdlib.h> 609 # include <stddef.h> 610 #else 611 # ifdef HAVE_STDLIB_H 612 # include <stdlib.h> 613 # endif 614 #endif 615 #ifdef HAVE_STRING_H 616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 617 # include <memory.h> 618 # endif 619 # include <string.h> 620 #endif 621 #ifdef HAVE_STRINGS_H 622 # include <strings.h> 623 #endif 624 #ifdef HAVE_INTTYPES_H 625 # include <inttypes.h> 626 #endif 627 #ifdef HAVE_STDINT_H 628 # include <stdint.h> 629 #endif 630 #ifdef HAVE_UNISTD_H 631 # include <unistd.h> 632 #endif" 633 634 enable_option_checking=no 635 ac_subst_vars='am__EXEEXT_FALSE 636 am__EXEEXT_TRUE 637 LTLIBOBJS 638 LIBOBJS 639 BUNDLER 640 BUILD_ONIGURUMA_FALSE 641 BUILD_ONIGURUMA_TRUE 642 onig_LDFLAGS 643 onig_CFLAGS 644 subdirs 645 LIB_atexit 646 LIB_pthread_once 647 LIB_pthread_key_create 648 LIB_gettimeofday 649 LIB_localtime 650 LIB_localtime_r 651 LIB_gmtime 652 LIB_gmtime_r 653 LIB_timegm 654 LIB_strftime 655 LIB_strptime 656 LIB__isatty 657 LIB_isatty 658 ALLOCA 659 ENABLE_ALL_STATIC_FALSE 660 ENABLE_ALL_STATIC_TRUE 661 ENABLE_ERROR_INJECTION_FALSE 662 ENABLE_ERROR_INJECTION_TRUE 663 ENABLE_DOCS_FALSE 664 ENABLE_DOCS_TRUE 665 ENABLE_GCOV_FALSE 666 ENABLE_GCOV_TRUE 667 ENABLE_UBSAN_FALSE 668 ENABLE_UBSAN_TRUE 669 ENABLE_ASAN_FALSE 670 ENABLE_ASAN_TRUE 671 ENABLE_VALGRIND_FALSE 672 ENABLE_VALGRIND_TRUE 673 bundle_cmd 674 WIN32_FALSE 675 WIN32_TRUE 676 valgrind_cmd 677 LEX 678 BISON_VERSION 679 LT_SYS_LIBRARY_PATH 680 OTOOL64 681 OTOOL 682 LIPO 683 NMEDIT 684 DSYMUTIL 685 MANIFEST_TOOL 686 RANLIB 687 LN_S 688 NM 689 ac_ct_DUMPBIN 690 DUMPBIN 691 LD 692 FGREP 693 EGREP 694 GREP 695 SED 696 host_os 697 host_vendor 698 host_cpu 699 host 700 build_os 701 build_vendor 702 build_cpu 703 build 704 LIBTOOL 705 OBJDUMP 706 DLLTOOL 707 AS 708 YFLAGS 709 YACC 710 CPP 711 MAINT 712 MAINTAINER_MODE_FALSE 713 MAINTAINER_MODE_TRUE 714 am__fastdepCC_FALSE 715 am__fastdepCC_TRUE 716 CCDEPMODE 717 am__nodep 718 AMDEPBACKSLASH 719 AMDEP_FALSE 720 AMDEP_TRUE 721 am__quote 722 am__include 723 DEPDIR 724 OBJEXT 725 EXEEXT 726 ac_ct_CC 727 CPPFLAGS 728 LDFLAGS 729 CFLAGS 730 CC 731 ac_ct_AR 732 AR 733 AM_BACKSLASH 734 AM_DEFAULT_VERBOSITY 735 AM_DEFAULT_V 736 AM_V 737 am__untar 738 am__tar 739 AMTAR 740 am__leading_dot 741 SET_MAKE 742 AWK 743 mkdir_p 744 MKDIR_P 745 INSTALL_STRIP_PROGRAM 746 STRIP 747 install_sh 748 MAKEINFO 749 AUTOHEADER 750 AUTOMAKE 751 AUTOCONF 752 ACLOCAL 753 VERSION 754 PACKAGE 755 CYGPATH_W 756 am__isrc 757 INSTALL_DATA 758 INSTALL_SCRIPT 759 INSTALL_PROGRAM 760 target_alias 761 host_alias 762 build_alias 763 LIBS 764 ECHO_T 765 ECHO_N 766 ECHO_C 767 DEFS 768 mandir 769 localedir 770 libdir 771 psdir 772 pdfdir 773 dvidir 774 htmldir 775 infodir 776 docdir 777 oldincludedir 778 includedir 779 localstatedir 780 sharedstatedir 781 sysconfdir 782 datadir 783 datarootdir 784 libexecdir 785 sbindir 786 bindir 787 program_transform_name 788 prefix 789 exec_prefix 790 PACKAGE_URL 791 PACKAGE_BUGREPORT 792 PACKAGE_STRING 793 PACKAGE_VERSION 794 PACKAGE_TARNAME 795 PACKAGE_NAME 796 PATH_SEPARATOR 797 SHELL' 798 ac_subst_files='' 799 ac_user_opts=' 800 enable_option_checking 801 enable_silent_rules 802 enable_dependency_tracking 803 enable_maintainer_mode 804 enable_shared 805 enable_static 806 with_pic 807 enable_fast_install 808 with_aix_soname 809 with_gnu_ld 810 with_sysroot 811 enable_libtool_lock 812 enable_valgrind 813 enable_asan 814 enable_ubsan 815 enable_gcov 816 enable_docs 817 enable_error_injection 818 enable_all_static 819 enable_pthread_tls 820 with_oniguruma 821 ' 822 ac_precious_vars='build_alias 823 host_alias 824 target_alias 825 CC 826 CFLAGS 827 LDFLAGS 828 LIBS 829 CPPFLAGS 830 CPP 831 YACC 832 YFLAGS 833 LT_SYS_LIBRARY_PATH' 834 ac_subdirs_all='modules/oniguruma' 835 836 # Initialize some variables set by options. 837 ac_init_help= 838 ac_init_version=false 839 ac_unrecognized_opts= 840 ac_unrecognized_sep= 841 # The variables have the same names as the options, with 842 # dashes changed to underlines. 843 cache_file=/dev/null 844 exec_prefix=NONE 845 no_create= 846 no_recursion= 847 prefix=NONE 848 program_prefix=NONE 849 program_suffix=NONE 850 program_transform_name=s,x,x, 851 silent= 852 site= 853 srcdir= 854 verbose= 855 x_includes=NONE 856 x_libraries=NONE 857 858 # Installation directory options. 859 # These are left unexpanded so users can "make install exec_prefix=/foo" 860 # and all the variables that are supposed to be based on exec_prefix 861 # by default will actually change. 862 # Use braces instead of parens because sh, perl, etc. also accept them. 863 # (The list follows the same order as the GNU Coding Standards.) 864 bindir='${exec_prefix}/bin' 865 sbindir='${exec_prefix}/sbin' 866 libexecdir='${exec_prefix}/libexec' 867 datarootdir='${prefix}/share' 868 datadir='${datarootdir}' 869 sysconfdir='${prefix}/etc' 870 sharedstatedir='${prefix}/com' 871 localstatedir='${prefix}/var' 872 includedir='${prefix}/include' 873 oldincludedir='/usr/include' 874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875 infodir='${datarootdir}/info' 876 htmldir='${docdir}' 877 dvidir='${docdir}' 878 pdfdir='${docdir}' 879 psdir='${docdir}' 880 libdir='${exec_prefix}/lib' 881 localedir='${datarootdir}/locale' 882 mandir='${datarootdir}/man' 883 884 ac_prev= 885 ac_dashdash= 886 for ac_option 887 do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *=) ac_optarg= ;; 898 *) ac_optarg=yes ;; 899 esac 900 901 # Accept the important Cygnus configure options, so we can diagnose typos. 902 903 case $ac_dashdash$ac_option in 904 --) 905 ac_dashdash=yes ;; 906 907 -bindir | --bindir | --bindi | --bind | --bin | --bi) 908 ac_prev=bindir ;; 909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 910 bindir=$ac_optarg ;; 911 912 -build | --build | --buil | --bui | --bu) 913 ac_prev=build_alias ;; 914 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 915 build_alias=$ac_optarg ;; 916 917 -cache-file | --cache-file | --cache-fil | --cache-fi \ 918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 919 ac_prev=cache_file ;; 920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 922 cache_file=$ac_optarg ;; 923 924 --config-cache | -C) 925 cache_file=config.cache ;; 926 927 -datadir | --datadir | --datadi | --datad) 928 ac_prev=datadir ;; 929 -datadir=* | --datadir=* | --datadi=* | --datad=*) 930 datadir=$ac_optarg ;; 931 932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 933 | --dataroo | --dataro | --datar) 934 ac_prev=datarootdir ;; 935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 937 datarootdir=$ac_optarg ;; 938 939 -disable-* | --disable-*) 940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 941 # Reject names that are not valid shell variable names. 942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 as_fn_error $? "invalid feature name: $ac_useropt" 944 ac_useropt_orig=$ac_useropt 945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 case $ac_user_opts in 947 *" 948 "enable_$ac_useropt" 949 "*) ;; 950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 951 ac_unrecognized_sep=', ';; 952 esac 953 eval enable_$ac_useropt=no ;; 954 955 -docdir | --docdir | --docdi | --doc | --do) 956 ac_prev=docdir ;; 957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 958 docdir=$ac_optarg ;; 959 960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 961 ac_prev=dvidir ;; 962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 963 dvidir=$ac_optarg ;; 964 965 -enable-* | --enable-*) 966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 967 # Reject names that are not valid shell variable names. 968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 969 as_fn_error $? "invalid feature name: $ac_useropt" 970 ac_useropt_orig=$ac_useropt 971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 972 case $ac_user_opts in 973 *" 974 "enable_$ac_useropt" 975 "*) ;; 976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 977 ac_unrecognized_sep=', ';; 978 esac 979 eval enable_$ac_useropt=\$ac_optarg ;; 980 981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 983 | --exec | --exe | --ex) 984 ac_prev=exec_prefix ;; 985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 987 | --exec=* | --exe=* | --ex=*) 988 exec_prefix=$ac_optarg ;; 989 990 -gas | --gas | --ga | --g) 991 # Obsolete; use --with-gas. 992 with_gas=yes ;; 993 994 -help | --help | --hel | --he | -h) 995 ac_init_help=long ;; 996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 997 ac_init_help=recursive ;; 998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 999 ac_init_help=short ;; 1000 1001 -host | --host | --hos | --ho) 1002 ac_prev=host_alias ;; 1003 -host=* | --host=* | --hos=* | --ho=*) 1004 host_alias=$ac_optarg ;; 1005 1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1007 ac_prev=htmldir ;; 1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1009 | --ht=*) 1010 htmldir=$ac_optarg ;; 1011 1012 -includedir | --includedir | --includedi | --included | --include \ 1013 | --includ | --inclu | --incl | --inc) 1014 ac_prev=includedir ;; 1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1016 | --includ=* | --inclu=* | --incl=* | --inc=*) 1017 includedir=$ac_optarg ;; 1018 1019 -infodir | --infodir | --infodi | --infod | --info | --inf) 1020 ac_prev=infodir ;; 1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1022 infodir=$ac_optarg ;; 1023 1024 -libdir | --libdir | --libdi | --libd) 1025 ac_prev=libdir ;; 1026 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1027 libdir=$ac_optarg ;; 1028 1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1030 | --libexe | --libex | --libe) 1031 ac_prev=libexecdir ;; 1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1033 | --libexe=* | --libex=* | --libe=*) 1034 libexecdir=$ac_optarg ;; 1035 1036 -localedir | --localedir | --localedi | --localed | --locale) 1037 ac_prev=localedir ;; 1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1039 localedir=$ac_optarg ;; 1040 1041 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1042 | --localstate | --localstat | --localsta | --localst | --locals) 1043 ac_prev=localstatedir ;; 1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1046 localstatedir=$ac_optarg ;; 1047 1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1049 ac_prev=mandir ;; 1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1051 mandir=$ac_optarg ;; 1052 1053 -nfp | --nfp | --nf) 1054 # Obsolete; use --without-fp. 1055 with_fp=no ;; 1056 1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1058 | --no-cr | --no-c | -n) 1059 no_create=yes ;; 1060 1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1063 no_recursion=yes ;; 1064 1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1067 | --oldin | --oldi | --old | --ol | --o) 1068 ac_prev=oldincludedir ;; 1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1072 oldincludedir=$ac_optarg ;; 1073 1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1075 ac_prev=prefix ;; 1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1077 prefix=$ac_optarg ;; 1078 1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1080 | --program-pre | --program-pr | --program-p) 1081 ac_prev=program_prefix ;; 1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1084 program_prefix=$ac_optarg ;; 1085 1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1087 | --program-suf | --program-su | --program-s) 1088 ac_prev=program_suffix ;; 1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1091 program_suffix=$ac_optarg ;; 1092 1093 -program-transform-name | --program-transform-name \ 1094 | --program-transform-nam | --program-transform-na \ 1095 | --program-transform-n | --program-transform- \ 1096 | --program-transform | --program-transfor \ 1097 | --program-transfo | --program-transf \ 1098 | --program-trans | --program-tran \ 1099 | --progr-tra | --program-tr | --program-t) 1100 ac_prev=program_transform_name ;; 1101 -program-transform-name=* | --program-transform-name=* \ 1102 | --program-transform-nam=* | --program-transform-na=* \ 1103 | --program-transform-n=* | --program-transform-=* \ 1104 | --program-transform=* | --program-transfor=* \ 1105 | --program-transfo=* | --program-transf=* \ 1106 | --program-trans=* | --program-tran=* \ 1107 | --progr-tra=* | --program-tr=* | --program-t=*) 1108 program_transform_name=$ac_optarg ;; 1109 1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1111 ac_prev=pdfdir ;; 1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1113 pdfdir=$ac_optarg ;; 1114 1115 -psdir | --psdir | --psdi | --psd | --ps) 1116 ac_prev=psdir ;; 1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1118 psdir=$ac_optarg ;; 1119 1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1121 | -silent | --silent | --silen | --sile | --sil) 1122 silent=yes ;; 1123 1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1125 ac_prev=sbindir ;; 1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1127 | --sbi=* | --sb=*) 1128 sbindir=$ac_optarg ;; 1129 1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1132 | --sharedst | --shareds | --shared | --share | --shar \ 1133 | --sha | --sh) 1134 ac_prev=sharedstatedir ;; 1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1138 | --sha=* | --sh=*) 1139 sharedstatedir=$ac_optarg ;; 1140 1141 -site | --site | --sit) 1142 ac_prev=site ;; 1143 -site=* | --site=* | --sit=*) 1144 site=$ac_optarg ;; 1145 1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1147 ac_prev=srcdir ;; 1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1149 srcdir=$ac_optarg ;; 1150 1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1152 | --syscon | --sysco | --sysc | --sys | --sy) 1153 ac_prev=sysconfdir ;; 1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1156 sysconfdir=$ac_optarg ;; 1157 1158 -target | --target | --targe | --targ | --tar | --ta | --t) 1159 ac_prev=target_alias ;; 1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1161 target_alias=$ac_optarg ;; 1162 1163 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1164 verbose=yes ;; 1165 1166 -version | --version | --versio | --versi | --vers | -V) 1167 ac_init_version=: ;; 1168 1169 -with-* | --with-*) 1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1171 # Reject names that are not valid shell variable names. 1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1173 as_fn_error $? "invalid package name: $ac_useropt" 1174 ac_useropt_orig=$ac_useropt 1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1176 case $ac_user_opts in 1177 *" 1178 "with_$ac_useropt" 1179 "*) ;; 1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1181 ac_unrecognized_sep=', ';; 1182 esac 1183 eval with_$ac_useropt=\$ac_optarg ;; 1184 1185 -without-* | --without-*) 1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1187 # Reject names that are not valid shell variable names. 1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1189 as_fn_error $? "invalid package name: $ac_useropt" 1190 ac_useropt_orig=$ac_useropt 1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1192 case $ac_user_opts in 1193 *" 1194 "with_$ac_useropt" 1195 "*) ;; 1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1197 ac_unrecognized_sep=', ';; 1198 esac 1199 eval with_$ac_useropt=no ;; 1200 1201 --x) 1202 # Obsolete; use --with-x. 1203 with_x=yes ;; 1204 1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1206 | --x-incl | --x-inc | --x-in | --x-i) 1207 ac_prev=x_includes ;; 1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1210 x_includes=$ac_optarg ;; 1211 1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1214 ac_prev=x_libraries ;; 1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1217 x_libraries=$ac_optarg ;; 1218 1219 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1220 Try \`$0 --help' for more information" 1221 ;; 1222 1223 *=*) 1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1225 # Reject names that are not valid shell variable names. 1226 case $ac_envvar in #( 1227 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1229 esac 1230 eval $ac_envvar=\$ac_optarg 1231 export $ac_envvar ;; 1232 1233 *) 1234 # FIXME: should be removed in autoconf 3.0. 1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1239 ;; 1240 1241 esac 1242 done 1243 1244 if test -n "$ac_prev"; then 1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1246 as_fn_error $? "missing argument to $ac_option" 1247 fi 1248 1249 if test -n "$ac_unrecognized_opts"; then 1250 case $enable_option_checking in 1251 no) ;; 1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1254 esac 1255 fi 1256 1257 # Check all directory arguments for consistency. 1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1259 datadir sysconfdir sharedstatedir localstatedir includedir \ 1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1261 libdir localedir mandir 1262 do 1263 eval ac_val=\$$ac_var 1264 # Remove trailing slashes. 1265 case $ac_val in 1266 */ ) 1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1268 eval $ac_var=\$ac_val;; 1269 esac 1270 # Be sure to have absolute directory names. 1271 case $ac_val in 1272 [\\/$]* | ?:[\\/]* ) continue;; 1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1274 esac 1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1276 done 1277 1278 # There might be people who depend on the old broken behavior: `$host' 1279 # used to hold the argument of --host etc. 1280 # FIXME: To remove some day. 1281 build=$build_alias 1282 host=$host_alias 1283 target=$target_alias 1284 1285 # FIXME: To remove some day. 1286 if test "x$host_alias" != x; then 1287 if test "x$build_alias" = x; then 1288 cross_compiling=maybe 1289 elif test "x$build_alias" != "x$host_alias"; then 1290 cross_compiling=yes 1291 fi 1292 fi 1293 1294 ac_tool_prefix= 1295 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1296 1297 test "$silent" = yes && exec 6>/dev/null 1298 1299 1300 ac_pwd=`pwd` && test -n "$ac_pwd" && 1301 ac_ls_di=`ls -di .` && 1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1303 as_fn_error $? "working directory cannot be determined" 1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1305 as_fn_error $? "pwd does not report name of working directory" 1306 1307 1308 # Find the source files, if location was not specified. 1309 if test -z "$srcdir"; then 1310 ac_srcdir_defaulted=yes 1311 # Try the directory containing this script, then the parent directory. 1312 ac_confdir=`$as_dirname -- "$as_myself" || 1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1314 X"$as_myself" : 'X\(//\)[^/]' \| \ 1315 X"$as_myself" : 'X\(//\)$' \| \ 1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1317 $as_echo X"$as_myself" | 1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1319 s//\1/ 1320 q 1321 } 1322 /^X\(\/\/\)[^/].*/{ 1323 s//\1/ 1324 q 1325 } 1326 /^X\(\/\/\)$/{ 1327 s//\1/ 1328 q 1329 } 1330 /^X\(\/\).*/{ 1331 s//\1/ 1332 q 1333 } 1334 s/.*/./; q'` 1335 srcdir=$ac_confdir 1336 if test ! -r "$srcdir/$ac_unique_file"; then 1337 srcdir=.. 1338 fi 1339 else 1340 ac_srcdir_defaulted=no 1341 fi 1342 if test ! -r "$srcdir/$ac_unique_file"; then 1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1345 fi 1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1347 ac_abs_confdir=`( 1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1349 pwd)` 1350 # When building in place, set srcdir=. 1351 if test "$ac_abs_confdir" = "$ac_pwd"; then 1352 srcdir=. 1353 fi 1354 # Remove unnecessary trailing slashes from srcdir. 1355 # Double slashes in file names in object file debugging info 1356 # mess up M-x gdb in Emacs. 1357 case $srcdir in 1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1359 esac 1360 for ac_var in $ac_precious_vars; do 1361 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1362 eval ac_env_${ac_var}_value=\$${ac_var} 1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1364 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1365 done 1366 1367 # 1368 # Report the --help message. 1369 # 1370 if test "$ac_init_help" = "long"; then 1371 # Omit some internal or obsolete options to make the list less imposing. 1372 # This message is too long to be a string in the A/UX 3.1 sh. 1373 cat <<_ACEOF 1374 \`configure' configures jq 1.6 to adapt to many kinds of systems. 1375 1376 Usage: $0 [OPTION]... [VAR=VALUE]... 1377 1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1379 VAR=VALUE. See below for descriptions of some of the useful variables. 1380 1381 Defaults for the options are specified in brackets. 1382 1383 Configuration: 1384 -h, --help display this help and exit 1385 --help=short display options specific to this package 1386 --help=recursive display the short help of all the included packages 1387 -V, --version display version information and exit 1388 -q, --quiet, --silent do not print \`checking ...' messages 1389 --cache-file=FILE cache test results in FILE [disabled] 1390 -C, --config-cache alias for \`--cache-file=config.cache' 1391 -n, --no-create do not create output files 1392 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1393 1394 Installation directories: 1395 --prefix=PREFIX install architecture-independent files in PREFIX 1396 [$ac_default_prefix] 1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1398 [PREFIX] 1399 1400 By default, \`make install' will install all the files in 1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1403 for instance \`--prefix=\$HOME'. 1404 1405 For better control, use the options below. 1406 1407 Fine tuning of the installation directories: 1408 --bindir=DIR user executables [EPREFIX/bin] 1409 --sbindir=DIR system admin executables [EPREFIX/sbin] 1410 --libexecdir=DIR program executables [EPREFIX/libexec] 1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1414 --libdir=DIR object code libraries [EPREFIX/lib] 1415 --includedir=DIR C header files [PREFIX/include] 1416 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1419 --infodir=DIR info documentation [DATAROOTDIR/info] 1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1421 --mandir=DIR man documentation [DATAROOTDIR/man] 1422 --docdir=DIR documentation root [DATAROOTDIR/doc/jq] 1423 --htmldir=DIR html documentation [DOCDIR] 1424 --dvidir=DIR dvi documentation [DOCDIR] 1425 --pdfdir=DIR pdf documentation [DOCDIR] 1426 --psdir=DIR ps documentation [DOCDIR] 1427 _ACEOF 1428 1429 cat <<\_ACEOF 1430 1431 Program names: 1432 --program-prefix=PREFIX prepend PREFIX to installed program names 1433 --program-suffix=SUFFIX append SUFFIX to installed program names 1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1435 1436 System types: 1437 --build=BUILD configure for building on BUILD [guessed] 1438 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1439 _ACEOF 1440 fi 1441 1442 if test -n "$ac_init_help"; then 1443 case $ac_init_help in 1444 short | recursive ) echo "Configuration of jq 1.6:";; 1445 esac 1446 cat <<\_ACEOF 1447 1448 Optional Features: 1449 --disable-option-checking ignore unrecognized --enable/--with options 1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1452 --enable-silent-rules less verbose build output (undo: "make V=1") 1453 --disable-silent-rules verbose build output (undo: "make V=0") 1454 --enable-dependency-tracking 1455 do not reject slow dependency extractors 1456 --disable-dependency-tracking 1457 speeds up one-time build 1458 --disable-maintainer-mode 1459 disable make rules and dependencies not useful (and 1460 sometimes confusing) to the casual installer 1461 --enable-shared[=PKGS] build shared libraries [default=yes] 1462 --enable-static[=PKGS] build static libraries [default=yes] 1463 --enable-fast-install[=PKGS] 1464 optimize for fast installation [default=yes] 1465 --disable-libtool-lock avoid locking (might break parallel builds) 1466 --disable-valgrind do not run tests under Valgrind 1467 --enable-asan enable address sanitizer 1468 --enable-ubsan enable undefined behavior sanitizer 1469 --enable-gcov enable gcov code coverage tool 1470 --disable-docs don't build docs 1471 --enable-error-injection 1472 build and test with error injection 1473 --enable-all-static link jq with static libraries only 1474 --enable-pthread-tls Enable use of pthread thread local storage 1475 1476 Optional Packages: 1477 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1478 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1480 both] 1481 --with-aix-soname=aix|svr4|both 1482 shared library versioning (aka "SONAME") variant to 1483 provide on AIX, [default=aix]. 1484 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1485 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1486 compiler's sysroot if not specified). 1487 --with-oniguruma=prefix try this for a non-standard install prefix of the 1488 oniguruma library 1489 1490 Some influential environment variables: 1491 CC C compiler command 1492 CFLAGS C compiler flags 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1494 nonstandard directory <lib dir> 1495 LIBS libraries to pass to the linker, e.g. -l<library> 1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1497 you have headers in a nonstandard directory <include dir> 1498 CPP C preprocessor 1499 YACC The `Yet Another Compiler Compiler' implementation to use. 1500 Defaults to the first program found out of: `bison -y', `byacc', 1501 `yacc'. 1502 YFLAGS The list of arguments that will be passed by default to $YACC. 1503 This script will default YFLAGS to the empty string to avoid a 1504 default value of `-d' given by some make applications. 1505 LT_SYS_LIBRARY_PATH 1506 User-defined run-time library search path. 1507 1508 Use these variables to override the choices made by `configure' or to help 1509 it to find libraries and programs with nonstandard names/locations. 1510 1511 Report bugs to <https://github.com/stedolan/jq/issues>. 1512 jq home page: <https://stedolan.github.io/jq>. 1513 _ACEOF 1514 ac_status=$? 1515 fi 1516 1517 if test "$ac_init_help" = "recursive"; then 1518 # If there are subdirs, report their specific --help. 1519 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1520 test -d "$ac_dir" || 1521 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1522 continue 1523 ac_builddir=. 1524 1525 case "$ac_dir" in 1526 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1527 *) 1528 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1529 # A ".." for each directory in $ac_dir_suffix. 1530 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1531 case $ac_top_builddir_sub in 1532 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1533 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1534 esac ;; 1535 esac 1536 ac_abs_top_builddir=$ac_pwd 1537 ac_abs_builddir=$ac_pwd$ac_dir_suffix 1538 # for backward compatibility: 1539 ac_top_builddir=$ac_top_build_prefix 1540 1541 case $srcdir in 1542 .) # We are building in place. 1543 ac_srcdir=. 1544 ac_top_srcdir=$ac_top_builddir_sub 1545 ac_abs_top_srcdir=$ac_pwd ;; 1546 [\\/]* | ?:[\\/]* ) # Absolute name. 1547 ac_srcdir=$srcdir$ac_dir_suffix; 1548 ac_top_srcdir=$srcdir 1549 ac_abs_top_srcdir=$srcdir ;; 1550 *) # Relative name. 1551 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1552 ac_top_srcdir=$ac_top_build_prefix$srcdir 1553 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1554 esac 1555 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1556 1557 cd "$ac_dir" || { ac_status=$?; continue; } 1558 # Check for guested configure. 1559 if test -f "$ac_srcdir/configure.gnu"; then 1560 echo && 1561 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1562 elif test -f "$ac_srcdir/configure"; then 1563 echo && 1564 $SHELL "$ac_srcdir/configure" --help=recursive 1565 else 1566 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1567 fi || ac_status=$? 1568 cd "$ac_pwd" || { ac_status=$?; break; } 1569 done 1570 fi 1571 1572 test -n "$ac_init_help" && exit $ac_status 1573 if $ac_init_version; then 1574 cat <<\_ACEOF 1575 jq configure 1.6 1576 generated by GNU Autoconf 2.69 1577 1578 Copyright (C) 2012 Free Software Foundation, Inc. 1579 This configure script is free software; the Free Software Foundation 1580 gives unlimited permission to copy, distribute and modify it. 1581 _ACEOF 1582 exit 1583 fi 1584 1585 ## ------------------------ ## 1586 ## Autoconf initialization. ## 1587 ## ------------------------ ## 1588 1589 # ac_fn_c_try_compile LINENO 1590 # -------------------------- 1591 # Try to compile conftest.$ac_ext, and return whether this succeeded. 1592 ac_fn_c_try_compile () 1593 { 1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1595 rm -f conftest.$ac_objext 1596 if { { ac_try="$ac_compile" 1597 case "(($ac_try" in 1598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1599 *) ac_try_echo=$ac_try;; 1600 esac 1601 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1602 $as_echo "$ac_try_echo"; } >&5 1603 (eval "$ac_compile") 2>conftest.err 1604 ac_status=$? 1605 if test -s conftest.err; then 1606 grep -v '^ *+' conftest.err >conftest.er1 1607 cat conftest.er1 >&5 1608 mv -f conftest.er1 conftest.err 1609 fi 1610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1611 test $ac_status = 0; } && { 1612 test -z "$ac_c_werror_flag" || 1613 test ! -s conftest.err 1614 } && test -s conftest.$ac_objext; then : 1615 ac_retval=0 1616 else 1617 $as_echo "$as_me: failed program was:" >&5 1618 sed 's/^/| /' conftest.$ac_ext >&5 1619 1620 ac_retval=1 1621 fi 1622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1623 as_fn_set_status $ac_retval 1624 1625 } # ac_fn_c_try_compile 1626 1627 # ac_fn_c_try_cpp LINENO 1628 # ---------------------- 1629 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1630 ac_fn_c_try_cpp () 1631 { 1632 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1633 if { { ac_try="$ac_cpp conftest.$ac_ext" 1634 case "(($ac_try" in 1635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1636 *) ac_try_echo=$ac_try;; 1637 esac 1638 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1639 $as_echo "$ac_try_echo"; } >&5 1640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1641 ac_status=$? 1642 if test -s conftest.err; then 1643 grep -v '^ *+' conftest.err >conftest.er1 1644 cat conftest.er1 >&5 1645 mv -f conftest.er1 conftest.err 1646 fi 1647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1648 test $ac_status = 0; } > conftest.i && { 1649 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1650 test ! -s conftest.err 1651 }; then : 1652 ac_retval=0 1653 else 1654 $as_echo "$as_me: failed program was:" >&5 1655 sed 's/^/| /' conftest.$ac_ext >&5 1656 1657 ac_retval=1 1658 fi 1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1660 as_fn_set_status $ac_retval 1661 1662 } # ac_fn_c_try_cpp 1663 1664 # ac_fn_c_try_link LINENO 1665 # ----------------------- 1666 # Try to link conftest.$ac_ext, and return whether this succeeded. 1667 ac_fn_c_try_link () 1668 { 1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1670 rm -f conftest.$ac_objext conftest$ac_exeext 1671 if { { ac_try="$ac_link" 1672 case "(($ac_try" in 1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1674 *) ac_try_echo=$ac_try;; 1675 esac 1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1677 $as_echo "$ac_try_echo"; } >&5 1678 (eval "$ac_link") 2>conftest.err 1679 ac_status=$? 1680 if test -s conftest.err; then 1681 grep -v '^ *+' conftest.err >conftest.er1 1682 cat conftest.er1 >&5 1683 mv -f conftest.er1 conftest.err 1684 fi 1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1686 test $ac_status = 0; } && { 1687 test -z "$ac_c_werror_flag" || 1688 test ! -s conftest.err 1689 } && test -s conftest$ac_exeext && { 1690 test "$cross_compiling" = yes || 1691 test -x conftest$ac_exeext 1692 }; then : 1693 ac_retval=0 1694 else 1695 $as_echo "$as_me: failed program was:" >&5 1696 sed 's/^/| /' conftest.$ac_ext >&5 1697 1698 ac_retval=1 1699 fi 1700 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1701 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1702 # interfere with the next link command; also delete a directory that is 1703 # left behind by Apple's compiler. We do this before executing the actions. 1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1706 as_fn_set_status $ac_retval 1707 1708 } # ac_fn_c_try_link 1709 1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1711 # ------------------------------------------------------- 1712 # Tests whether HEADER exists and can be compiled using the include files in 1713 # INCLUDES, setting the cache variable VAR accordingly. 1714 ac_fn_c_check_header_compile () 1715 { 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1718 $as_echo_n "checking for $2... " >&6; } 1719 if eval \${$3+:} false; then : 1720 $as_echo_n "(cached) " >&6 1721 else 1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1723 /* end confdefs.h. */ 1724 $4 1725 #include <$2> 1726 _ACEOF 1727 if ac_fn_c_try_compile "$LINENO"; then : 1728 eval "$3=yes" 1729 else 1730 eval "$3=no" 1731 fi 1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1733 fi 1734 eval ac_res=\$$3 1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1736 $as_echo "$ac_res" >&6; } 1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1738 1739 } # ac_fn_c_check_header_compile 1740 1741 # ac_fn_c_try_run LINENO 1742 # ---------------------- 1743 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1744 # that executables *can* be run. 1745 ac_fn_c_try_run () 1746 { 1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1748 if { { ac_try="$ac_link" 1749 case "(($ac_try" in 1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1751 *) ac_try_echo=$ac_try;; 1752 esac 1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1754 $as_echo "$ac_try_echo"; } >&5 1755 (eval "$ac_link") 2>&5 1756 ac_status=$? 1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1758 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1759 { { case "(($ac_try" in 1760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1761 *) ac_try_echo=$ac_try;; 1762 esac 1763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1764 $as_echo "$ac_try_echo"; } >&5 1765 (eval "$ac_try") 2>&5 1766 ac_status=$? 1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1768 test $ac_status = 0; }; }; then : 1769 ac_retval=0 1770 else 1771 $as_echo "$as_me: program exited with status $ac_status" >&5 1772 $as_echo "$as_me: failed program was:" >&5 1773 sed 's/^/| /' conftest.$ac_ext >&5 1774 1775 ac_retval=$ac_status 1776 fi 1777 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1779 as_fn_set_status $ac_retval 1780 1781 } # ac_fn_c_try_run 1782 1783 # ac_fn_c_check_func LINENO FUNC VAR 1784 # ---------------------------------- 1785 # Tests whether FUNC exists, setting the cache variable VAR accordingly 1786 ac_fn_c_check_func () 1787 { 1788 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1790 $as_echo_n "checking for $2... " >&6; } 1791 if eval \${$3+:} false; then : 1792 $as_echo_n "(cached) " >&6 1793 else 1794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1795 /* end confdefs.h. */ 1796 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1797 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1798 #define $2 innocuous_$2 1799 1800 /* System header to define __stub macros and hopefully few prototypes, 1801 which can conflict with char $2 (); below. 1802 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1803 <limits.h> exists even on freestanding compilers. */ 1804 1805 #ifdef __STDC__ 1806 # include <limits.h> 1807 #else 1808 # include <assert.h> 1809 #endif 1810 1811 #undef $2 1812 1813 /* Override any GCC internal prototype to avoid an error. 1814 Use char because int might match the return type of a GCC 1815 builtin and then its argument prototype would still apply. */ 1816 #ifdef __cplusplus 1817 extern "C" 1818 #endif 1819 char $2 (); 1820 /* The GNU C library defines this for functions which it implements 1821 to always fail with ENOSYS. Some functions are actually named 1822 something starting with __ and the normal name is an alias. */ 1823 #if defined __stub_$2 || defined __stub___$2 1824 choke me 1825 #endif 1826 1827 int 1828 main () 1829 { 1830 return $2 (); 1831 ; 1832 return 0; 1833 } 1834 _ACEOF 1835 if ac_fn_c_try_link "$LINENO"; then : 1836 eval "$3=yes" 1837 else 1838 eval "$3=no" 1839 fi 1840 rm -f core conftest.err conftest.$ac_objext \ 1841 conftest$ac_exeext conftest.$ac_ext 1842 fi 1843 eval ac_res=\$$3 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1845 $as_echo "$ac_res" >&6; } 1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1847 1848 } # ac_fn_c_check_func 1849 1850 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1851 # ------------------------------------------------------- 1852 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 1853 # the include files in INCLUDES and setting the cache variable VAR 1854 # accordingly. 1855 ac_fn_c_check_header_mongrel () 1856 { 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 if eval \${$3+:} false; then : 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1860 $as_echo_n "checking for $2... " >&6; } 1861 if eval \${$3+:} false; then : 1862 $as_echo_n "(cached) " >&6 1863 fi 1864 eval ac_res=\$$3 1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1866 $as_echo "$ac_res" >&6; } 1867 else 1868 # Is the header compilable? 1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1870 $as_echo_n "checking $2 usability... " >&6; } 1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1872 /* end confdefs.h. */ 1873 $4 1874 #include <$2> 1875 _ACEOF 1876 if ac_fn_c_try_compile "$LINENO"; then : 1877 ac_header_compiler=yes 1878 else 1879 ac_header_compiler=no 1880 fi 1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1883 $as_echo "$ac_header_compiler" >&6; } 1884 1885 # Is the header present? 1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1887 $as_echo_n "checking $2 presence... " >&6; } 1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1889 /* end confdefs.h. */ 1890 #include <$2> 1891 _ACEOF 1892 if ac_fn_c_try_cpp "$LINENO"; then : 1893 ac_header_preproc=yes 1894 else 1895 ac_header_preproc=no 1896 fi 1897 rm -f conftest.err conftest.i conftest.$ac_ext 1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1899 $as_echo "$ac_header_preproc" >&6; } 1900 1901 # So? What about this header? 1902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1903 yes:no: ) 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1905 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1908 ;; 1909 no:yes:* ) 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1911 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1913 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1915 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1917 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1920 ( $as_echo "## ---------------------------------------------------- ## 1921 ## Report this to https://github.com/stedolan/jq/issues ## 1922 ## ---------------------------------------------------- ##" 1923 ) | sed "s/^/$as_me: WARNING: /" >&2 1924 ;; 1925 esac 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1927 $as_echo_n "checking for $2... " >&6; } 1928 if eval \${$3+:} false; then : 1929 $as_echo_n "(cached) " >&6 1930 else 1931 eval "$3=\$ac_header_compiler" 1932 fi 1933 eval ac_res=\$$3 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1935 $as_echo "$ac_res" >&6; } 1936 fi 1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1938 1939 } # ac_fn_c_check_header_mongrel 1940 1941 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1942 # ------------------------------------------- 1943 # Tests whether TYPE exists after having included INCLUDES, setting cache 1944 # variable VAR accordingly. 1945 ac_fn_c_check_type () 1946 { 1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1949 $as_echo_n "checking for $2... " >&6; } 1950 if eval \${$3+:} false; then : 1951 $as_echo_n "(cached) " >&6 1952 else 1953 eval "$3=no" 1954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1955 /* end confdefs.h. */ 1956 $4 1957 int 1958 main () 1959 { 1960 if (sizeof ($2)) 1961 return 0; 1962 ; 1963 return 0; 1964 } 1965 _ACEOF 1966 if ac_fn_c_try_compile "$LINENO"; then : 1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1968 /* end confdefs.h. */ 1969 $4 1970 int 1971 main () 1972 { 1973 if (sizeof (($2))) 1974 return 0; 1975 ; 1976 return 0; 1977 } 1978 _ACEOF 1979 if ac_fn_c_try_compile "$LINENO"; then : 1980 1981 else 1982 eval "$3=yes" 1983 fi 1984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1985 fi 1986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1987 fi 1988 eval ac_res=\$$3 1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1990 $as_echo "$ac_res" >&6; } 1991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1992 1993 } # ac_fn_c_check_type 1994 1995 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 1996 # ---------------------------------------------------- 1997 # Tries to find if the field MEMBER exists in type AGGR, after including 1998 # INCLUDES, setting cache variable VAR accordingly. 1999 ac_fn_c_check_member () 2000 { 2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2003 $as_echo_n "checking for $2.$3... " >&6; } 2004 if eval \${$4+:} false; then : 2005 $as_echo_n "(cached) " >&6 2006 else 2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2008 /* end confdefs.h. */ 2009 $5 2010 int 2011 main () 2012 { 2013 static $2 ac_aggr; 2014 if (ac_aggr.$3) 2015 return 0; 2016 ; 2017 return 0; 2018 } 2019 _ACEOF 2020 if ac_fn_c_try_compile "$LINENO"; then : 2021 eval "$4=yes" 2022 else 2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2024 /* end confdefs.h. */ 2025 $5 2026 int 2027 main () 2028 { 2029 static $2 ac_aggr; 2030 if (sizeof ac_aggr.$3) 2031 return 0; 2032 ; 2033 return 0; 2034 } 2035 _ACEOF 2036 if ac_fn_c_try_compile "$LINENO"; then : 2037 eval "$4=yes" 2038 else 2039 eval "$4=no" 2040 fi 2041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2042 fi 2043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2044 fi 2045 eval ac_res=\$$4 2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2047 $as_echo "$ac_res" >&6; } 2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2049 2050 } # ac_fn_c_check_member 2051 cat >config.log <<_ACEOF 2052 This file contains any messages produced by compilers while 2053 running configure, to aid debugging if configure makes a mistake. 2054 2055 It was created by jq $as_me 1.6, which was 2056 generated by GNU Autoconf 2.69. Invocation command line was 2057 2058 $ $0 $@ 2059 2060 _ACEOF 2061 exec 5>>config.log 2062 { 2063 cat <<_ASUNAME 2064 ## --------- ## 2065 ## Platform. ## 2066 ## --------- ## 2067 2068 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2069 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2070 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2071 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2072 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2073 2074 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2075 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2076 2077 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2078 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2079 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2080 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2081 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2082 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2083 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2084 2085 _ASUNAME 2086 2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2088 for as_dir in $PATH 2089 do 2090 IFS=$as_save_IFS 2091 test -z "$as_dir" && as_dir=. 2092 $as_echo "PATH: $as_dir" 2093 done 2094 IFS=$as_save_IFS 2095 2096 } >&5 2097 2098 cat >&5 <<_ACEOF 2099 2100 2101 ## ----------- ## 2102 ## Core tests. ## 2103 ## ----------- ## 2104 2105 _ACEOF 2106 2107 2108 # Keep a trace of the command line. 2109 # Strip out --no-create and --no-recursion so they do not pile up. 2110 # Strip out --silent because we don't want to record it for future runs. 2111 # Also quote any args containing shell meta-characters. 2112 # Make two passes to allow for proper duplicate-argument suppression. 2113 ac_configure_args= 2114 ac_configure_args0= 2115 ac_configure_args1= 2116 ac_must_keep_next=false 2117 for ac_pass in 1 2 2118 do 2119 for ac_arg 2120 do 2121 case $ac_arg in 2122 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2123 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2124 | -silent | --silent | --silen | --sile | --sil) 2125 continue ;; 2126 *\'*) 2127 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2128 esac 2129 case $ac_pass in 2130 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2131 2) 2132 as_fn_append ac_configure_args1 " '$ac_arg'" 2133 if test $ac_must_keep_next = true; then 2134 ac_must_keep_next=false # Got value, back to normal. 2135 else 2136 case $ac_arg in 2137 *=* | --config-cache | -C | -disable-* | --disable-* \ 2138 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2139 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2140 | -with-* | --with-* | -without-* | --without-* | --x) 2141 case "$ac_configure_args0 " in 2142 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2143 esac 2144 ;; 2145 -* ) ac_must_keep_next=true ;; 2146 esac 2147 fi 2148 as_fn_append ac_configure_args " '$ac_arg'" 2149 ;; 2150 esac 2151 done 2152 done 2153 { ac_configure_args0=; unset ac_configure_args0;} 2154 { ac_configure_args1=; unset ac_configure_args1;} 2155 2156 # When interrupted or exit'd, cleanup temporary files, and complete 2157 # config.log. We remove comments because anyway the quotes in there 2158 # would cause problems or look ugly. 2159 # WARNING: Use '\'' to represent an apostrophe within the trap. 2160 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2161 trap 'exit_status=$? 2162 # Save into config.log some information that might help in debugging. 2163 { 2164 echo 2165 2166 $as_echo "## ---------------- ## 2167 ## Cache variables. ## 2168 ## ---------------- ##" 2169 echo 2170 # The following way of writing the cache mishandles newlines in values, 2171 ( 2172 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2173 eval ac_val=\$$ac_var 2174 case $ac_val in #( 2175 *${as_nl}*) 2176 case $ac_var in #( 2177 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2178 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2179 esac 2180 case $ac_var in #( 2181 _ | IFS | as_nl) ;; #( 2182 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2183 *) { eval $ac_var=; unset $ac_var;} ;; 2184 esac ;; 2185 esac 2186 done 2187 (set) 2>&1 | 2188 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2189 *${as_nl}ac_space=\ *) 2190 sed -n \ 2191 "s/'\''/'\''\\\\'\'''\''/g; 2192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2193 ;; #( 2194 *) 2195 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2196 ;; 2197 esac | 2198 sort 2199 ) 2200 echo 2201 2202 $as_echo "## ----------------- ## 2203 ## Output variables. ## 2204 ## ----------------- ##" 2205 echo 2206 for ac_var in $ac_subst_vars 2207 do 2208 eval ac_val=\$$ac_var 2209 case $ac_val in 2210 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2211 esac 2212 $as_echo "$ac_var='\''$ac_val'\''" 2213 done | sort 2214 echo 2215 2216 if test -n "$ac_subst_files"; then 2217 $as_echo "## ------------------- ## 2218 ## File substitutions. ## 2219 ## ------------------- ##" 2220 echo 2221 for ac_var in $ac_subst_files 2222 do 2223 eval ac_val=\$$ac_var 2224 case $ac_val in 2225 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2226 esac 2227 $as_echo "$ac_var='\''$ac_val'\''" 2228 done | sort 2229 echo 2230 fi 2231 2232 if test -s confdefs.h; then 2233 $as_echo "## ----------- ## 2234 ## confdefs.h. ## 2235 ## ----------- ##" 2236 echo 2237 cat confdefs.h 2238 echo 2239 fi 2240 test "$ac_signal" != 0 && 2241 $as_echo "$as_me: caught signal $ac_signal" 2242 $as_echo "$as_me: exit $exit_status" 2243 } >&5 2244 rm -f core *.core core.conftest.* && 2245 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2246 exit $exit_status 2247 ' 0 2248 for ac_signal in 1 2 13 15; do 2249 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2250 done 2251 ac_signal=0 2252 2253 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2254 rm -f -r conftest* confdefs.h 2255 2256 $as_echo "/* confdefs.h */" > confdefs.h 2257 2258 # Predefined preprocessor variables. 2259 2260 cat >>confdefs.h <<_ACEOF 2261 #define PACKAGE_NAME "$PACKAGE_NAME" 2262 _ACEOF 2263 2264 cat >>confdefs.h <<_ACEOF 2265 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2266 _ACEOF 2267 2268 cat >>confdefs.h <<_ACEOF 2269 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2270 _ACEOF 2271 2272 cat >>confdefs.h <<_ACEOF 2273 #define PACKAGE_STRING "$PACKAGE_STRING" 2274 _ACEOF 2275 2276 cat >>confdefs.h <<_ACEOF 2277 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2278 _ACEOF 2279 2280 cat >>confdefs.h <<_ACEOF 2281 #define PACKAGE_URL "$PACKAGE_URL" 2282 _ACEOF 2283 2284 2285 # Let the site file select an alternate cache file if it wants to. 2286 # Prefer an explicitly selected file to automatically selected ones. 2287 ac_site_file1=NONE 2288 ac_site_file2=NONE 2289 if test -n "$CONFIG_SITE"; then 2290 # We do not want a PATH search for config.site. 2291 case $CONFIG_SITE in #(( 2292 -*) ac_site_file1=./$CONFIG_SITE;; 2293 */*) ac_site_file1=$CONFIG_SITE;; 2294 *) ac_site_file1=./$CONFIG_SITE;; 2295 esac 2296 elif test "x$prefix" != xNONE; then 2297 ac_site_file1=$prefix/share/config.site 2298 ac_site_file2=$prefix/etc/config.site 2299 else 2300 ac_site_file1=$ac_default_prefix/share/config.site 2301 ac_site_file2=$ac_default_prefix/etc/config.site 2302 fi 2303 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2304 do 2305 test "x$ac_site_file" = xNONE && continue 2306 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2307 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2308 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2309 sed 's/^/| /' "$ac_site_file" >&5 2310 . "$ac_site_file" \ 2311 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2313 as_fn_error $? "failed to load site script $ac_site_file 2314 See \`config.log' for more details" "$LINENO" 5; } 2315 fi 2316 done 2317 2318 if test -r "$cache_file"; then 2319 # Some versions of bash will fail to source /dev/null (special files 2320 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2321 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2322 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2323 $as_echo "$as_me: loading cache $cache_file" >&6;} 2324 case $cache_file in 2325 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2326 *) . "./$cache_file";; 2327 esac 2328 fi 2329 else 2330 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2331 $as_echo "$as_me: creating cache $cache_file" >&6;} 2332 >$cache_file 2333 fi 2334 2335 # Check that the precious variables saved in the cache have kept the same 2336 # value. 2337 ac_cache_corrupted=false 2338 for ac_var in $ac_precious_vars; do 2339 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2340 eval ac_new_set=\$ac_env_${ac_var}_set 2341 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2342 eval ac_new_val=\$ac_env_${ac_var}_value 2343 case $ac_old_set,$ac_new_set in 2344 set,) 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2346 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2347 ac_cache_corrupted=: ;; 2348 ,set) 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2350 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2351 ac_cache_corrupted=: ;; 2352 ,);; 2353 *) 2354 if test "x$ac_old_val" != "x$ac_new_val"; then 2355 # differences in whitespace do not lead to failure. 2356 ac_old_val_w=`echo x $ac_old_val` 2357 ac_new_val_w=`echo x $ac_new_val` 2358 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2360 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2361 ac_cache_corrupted=: 2362 else 2363 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2364 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2365 eval $ac_var=\$ac_old_val 2366 fi 2367 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2368 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2370 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2371 fi;; 2372 esac 2373 # Pass precious variables to config.status. 2374 if test "$ac_new_set" = set; then 2375 case $ac_new_val in 2376 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2377 *) ac_arg=$ac_var=$ac_new_val ;; 2378 esac 2379 case " $ac_configure_args " in 2380 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2381 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2382 esac 2383 fi 2384 done 2385 if $ac_cache_corrupted; then 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2389 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2390 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2391 fi 2392 ## -------------------- ## 2393 ## Main body of script. ## 2394 ## -------------------- ## 2395 2396 ac_ext=c 2397 ac_cpp='$CPP $CPPFLAGS' 2398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2400 ac_compiler_gnu=$ac_cv_c_compiler_gnu 2401 2402 2403 2404 # =========================================================================== 2405 # http://www.gnu.org/software/autoconf-archive/ax_compare_version.html 2406 # =========================================================================== 2407 # 2408 # SYNOPSIS 2409 # 2410 # AX_COMPARE_VERSION(VERSION_A, OP, VERSION_B, [ACTION-IF-TRUE], [ACTION-IF-FALSE]) 2411 # 2412 # DESCRIPTION 2413 # 2414 # This macro compares two version strings. Due to the various number of 2415 # minor-version numbers that can exist, and the fact that string 2416 # comparisons are not compatible with numeric comparisons, this is not 2417 # necessarily trivial to do in a autoconf script. This macro makes doing 2418 # these comparisons easy. 2419 # 2420 # The six basic comparisons are available, as well as checking equality 2421 # limited to a certain number of minor-version levels. 2422 # 2423 # The operator OP determines what type of comparison to do, and can be one 2424 # of: 2425 # 2426 # eq - equal (test A == B) 2427 # ne - not equal (test A != B) 2428 # le - less than or equal (test A <= B) 2429 # ge - greater than or equal (test A >= B) 2430 # lt - less than (test A < B) 2431 # gt - greater than (test A > B) 2432 # 2433 # Additionally, the eq and ne operator can have a number after it to limit 2434 # the test to that number of minor versions. 2435 # 2436 # eq0 - equal up to the length of the shorter version 2437 # ne0 - not equal up to the length of the shorter version 2438 # eqN - equal up to N sub-version levels 2439 # neN - not equal up to N sub-version levels 2440 # 2441 # When the condition is true, shell commands ACTION-IF-TRUE are run, 2442 # otherwise shell commands ACTION-IF-FALSE are run. The environment 2443 # variable 'ax_compare_version' is always set to either 'true' or 'false' 2444 # as well. 2445 # 2446 # Examples: 2447 # 2448 # AX_COMPARE_VERSION([3.15.7],[lt],[3.15.8]) 2449 # AX_COMPARE_VERSION([3.15],[lt],[3.15.8]) 2450 # 2451 # would both be true. 2452 # 2453 # AX_COMPARE_VERSION([3.15.7],[eq],[3.15.8]) 2454 # AX_COMPARE_VERSION([3.15],[gt],[3.15.8]) 2455 # 2456 # would both be false. 2457 # 2458 # AX_COMPARE_VERSION([3.15.7],[eq2],[3.15.8]) 2459 # 2460 # would be true because it is only comparing two minor versions. 2461 # 2462 # AX_COMPARE_VERSION([3.15.7],[eq0],[3.15]) 2463 # 2464 # would be true because it is only comparing the lesser number of minor 2465 # versions of the two values. 2466 # 2467 # Note: The characters that separate the version numbers do not matter. An 2468 # empty string is the same as version 0. OP is evaluated by autoconf, not 2469 # configure, so must be a string, not a variable. 2470 # 2471 # The author would like to acknowledge Guido Draheim whose advice about 2472 # the m4_case and m4_ifvaln functions make this macro only include the 2473 # portions necessary to perform the specific comparison specified by the 2474 # OP argument in the final configure script. 2475 # 2476 # LICENSE 2477 # 2478 # Copyright (c) 2008 Tim Toolan <toolan@ele.uri.edu> 2479 # 2480 # Copying and distribution of this file, with or without modification, are 2481 # permitted in any medium without royalty provided the copyright notice 2482 # and this notice are preserved. This file is offered as-is, without any 2483 # warranty. 2484 2485 #serial 11 2486 2487 2488 # =========================================================================== 2489 # Modified from 2490 # http://www.gnu.org/software/autoconf-archive/ax_prog_perl_version.html 2491 # =========================================================================== 2492 # 2493 # SYNOPSIS 2494 # 2495 # AX_PROG_BISON_VERSION([VERSION],[ACTION-IF-TRUE],[ACTION-IF-FALSE]) 2496 # 2497 # DESCRIPTION 2498 # 2499 # Makes sure that bison supports the version indicated. If true the shell 2500 # commands in ACTION-IF-TRUE are executed. If not the shell commands in 2501 # ACTION-IF-FALSE are run. Note if $PERL is not set the macro will fail. 2502 # 2503 # Example: 2504 # 2505 # AC_PROG_YACC 2506 # AX_PROG_BISON_VERSION([3.0.0],[ ... ],[ ... ]) 2507 # 2508 # This will check to make sure that the bison you have supports at least 2509 # version 3.0.0. 2510 # 2511 # NOTE: This macro uses the $YACC variable to perform the check. 2512 # AX_WITH_YACC can be used to set that variable prior to running this 2513 # macro. The $BISON_VERSION variable will be set with the detected 2514 # version. 2515 # 2516 # LICENSE 2517 # 2518 # Copyright (c) 2009 Francesco Salvestrini <salvestrini@users.sourceforge.net> 2519 # 2520 # Copying and distribution of this file, with or without modification, are 2521 # permitted in any medium without royalty provided the copyright notice 2522 # and this notice are preserved. This file is offered as-is, without any 2523 # warranty. 2524 2525 #serial 12 2526 2527 2528 2529 2530 2531 ac_aux_dir= 2532 for ac_dir in config "$srcdir"/config; do 2533 if test -f "$ac_dir/install-sh"; then 2534 ac_aux_dir=$ac_dir 2535 ac_install_sh="$ac_aux_dir/install-sh -c" 2536 break 2537 elif test -f "$ac_dir/install.sh"; then 2538 ac_aux_dir=$ac_dir 2539 ac_install_sh="$ac_aux_dir/install.sh -c" 2540 break 2541 elif test -f "$ac_dir/shtool"; then 2542 ac_aux_dir=$ac_dir 2543 ac_install_sh="$ac_aux_dir/shtool install -c" 2544 break 2545 fi 2546 done 2547 if test -z "$ac_aux_dir"; then 2548 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 2549 fi 2550 2551 # These three variables are undocumented and unsupported, 2552 # and are intended to be withdrawn in a future Autoconf release. 2553 # They can cause serious problems if a builder's source tree is in a directory 2554 # whose full name contains unusual characters. 2555 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2556 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2557 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2558 2559 2560 am__api_version='1.15' 2561 2562 # Find a good install program. We prefer a C program (faster), 2563 # so one script is as good as another. But avoid the broken or 2564 # incompatible versions: 2565 # SysV /etc/install, /usr/sbin/install 2566 # SunOS /usr/etc/install 2567 # IRIX /sbin/install 2568 # AIX /bin/install 2569 # AmigaOS /C/install, which installs bootblocks on floppy discs 2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2573 # OS/2's system install, which has a completely different semantic 2574 # ./install, which can be erroneously created by make from ./install.sh. 2575 # Reject install programs that cannot install multiple files. 2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2577 $as_echo_n "checking for a BSD-compatible install... " >&6; } 2578 if test -z "$INSTALL"; then 2579 if ${ac_cv_path_install+:} false; then : 2580 $as_echo_n "(cached) " >&6 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 # Account for people who put trailing slashes in PATH elements. 2588 case $as_dir/ in #(( 2589 ./ | .// | /[cC]/* | \ 2590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2592 /usr/ucb/* ) ;; 2593 *) 2594 # OSF1 and SCO ODT 3.0 have their own names for install. 2595 # Don't use installbsd from OSF since it installs stuff as root 2596 # by default. 2597 for ac_prog in ginstall scoinst install; do 2598 for ac_exec_ext in '' $ac_executable_extensions; do 2599 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2600 if test $ac_prog = install && 2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2602 # AIX install. It has an incompatible calling convention. 2603 : 2604 elif test $ac_prog = install && 2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2606 # program-specific install script used by HP pwplus--don't use. 2607 : 2608 else 2609 rm -rf conftest.one conftest.two conftest.dir 2610 echo one > conftest.one 2611 echo two > conftest.two 2612 mkdir conftest.dir 2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2614 test -s conftest.one && test -s conftest.two && 2615 test -s conftest.dir/conftest.one && 2616 test -s conftest.dir/conftest.two 2617 then 2618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2619 break 3 2620 fi 2621 fi 2622 fi 2623 done 2624 done 2625 ;; 2626 esac 2627 2628 done 2629 IFS=$as_save_IFS 2630 2631 rm -rf conftest.one conftest.two conftest.dir 2632 2633 fi 2634 if test "${ac_cv_path_install+set}" = set; then 2635 INSTALL=$ac_cv_path_install 2636 else 2637 # As a last resort, use the slow shell script. Don't cache a 2638 # value for INSTALL within a source directory, because that will 2639 # break other packages using the cache if that directory is 2640 # removed, or if the value is a relative name. 2641 INSTALL=$ac_install_sh 2642 fi 2643 fi 2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2645 $as_echo "$INSTALL" >&6; } 2646 2647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2648 # It thinks the first close brace ends the variable substitution. 2649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2650 2651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2652 2653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2654 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2656 $as_echo_n "checking whether build environment is sane... " >&6; } 2657 # Reject unsafe characters in $srcdir or the absolute working directory 2658 # name. Accept space and tab only in the latter. 2659 am_lf=' 2660 ' 2661 case `pwd` in 2662 *[\\\"\#\$\&\'\`$am_lf]*) 2663 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2664 esac 2665 case $srcdir in 2666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2667 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2668 esac 2669 2670 # Do 'set' in a subshell so we don't clobber the current shell's 2671 # arguments. Must try -L first in case configure is actually a 2672 # symlink; some systems play weird games with the mod time of symlinks 2673 # (eg FreeBSD returns the mod time of the symlink's containing 2674 # directory). 2675 if ( 2676 am_has_slept=no 2677 for am_try in 1 2; do 2678 echo "timestamp, slept: $am_has_slept" > conftest.file 2679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2680 if test "$*" = "X"; then 2681 # -L didn't work. 2682 set X `ls -t "$srcdir/configure" conftest.file` 2683 fi 2684 if test "$*" != "X $srcdir/configure conftest.file" \ 2685 && test "$*" != "X conftest.file $srcdir/configure"; then 2686 2687 # If neither matched, then we have a broken ls. This can happen 2688 # if, for instance, CONFIG_SHELL is bash and it inherits a 2689 # broken ls alias from the environment. This has actually 2690 # happened. Such a system could not be considered "sane". 2691 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2692 alias in your environment" "$LINENO" 5 2693 fi 2694 if test "$2" = conftest.file || test $am_try -eq 2; then 2695 break 2696 fi 2697 # Just in case. 2698 sleep 1 2699 am_has_slept=yes 2700 done 2701 test "$2" = conftest.file 2702 ) 2703 then 2704 # Ok. 2705 : 2706 else 2707 as_fn_error $? "newly created file is older than distributed files! 2708 Check your system clock" "$LINENO" 5 2709 fi 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2711 $as_echo "yes" >&6; } 2712 # If we didn't sleep, we still need to ensure time stamps of config.status and 2713 # generated files are strictly newer. 2714 am_sleep_pid= 2715 if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2716 ( sleep 1 ) & 2717 am_sleep_pid=$! 2718 fi 2719 2720 rm -f conftest.file 2721 2722 test "$program_prefix" != NONE && 2723 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2724 # Use a double $ so make ignores it. 2725 test "$program_suffix" != NONE && 2726 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2727 # Double any \ or $. 2728 # By default was `s,x,x', remove it if useless. 2729 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2730 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2731 2732 # Expand $ac_aux_dir to an absolute path. 2733 am_aux_dir=`cd "$ac_aux_dir" && pwd` 2734 2735 if test x"${MISSING+set}" != xset; then 2736 case $am_aux_dir in 2737 *\ * | *\ *) 2738 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2739 *) 2740 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2741 esac 2742 fi 2743 # Use eval to expand $SHELL 2744 if eval "$MISSING --is-lightweight"; then 2745 am_missing_run="$MISSING " 2746 else 2747 am_missing_run= 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2749 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2750 fi 2751 2752 if test x"${install_sh+set}" != xset; then 2753 case $am_aux_dir in 2754 *\ * | *\ *) 2755 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2756 *) 2757 install_sh="\${SHELL} $am_aux_dir/install-sh" 2758 esac 2759 fi 2760 2761 # Installed binaries are usually stripped using 'strip' when the user 2762 # run "make install-strip". However 'strip' might not be the right 2763 # tool to use in cross-compilation environments, therefore Automake 2764 # will honor the 'STRIP' environment variable to overrule this program. 2765 if test "$cross_compiling" != no; then 2766 if test -n "$ac_tool_prefix"; then 2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2768 set dummy ${ac_tool_prefix}strip; ac_word=$2 2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2770 $as_echo_n "checking for $ac_word... " >&6; } 2771 if ${ac_cv_prog_STRIP+:} false; then : 2772 $as_echo_n "(cached) " >&6 2773 else 2774 if test -n "$STRIP"; then 2775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2776 else 2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2778 for as_dir in $PATH 2779 do 2780 IFS=$as_save_IFS 2781 test -z "$as_dir" && as_dir=. 2782 for ac_exec_ext in '' $ac_executable_extensions; do 2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2784 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2786 break 2 2787 fi 2788 done 2789 done 2790 IFS=$as_save_IFS 2791 2792 fi 2793 fi 2794 STRIP=$ac_cv_prog_STRIP 2795 if test -n "$STRIP"; then 2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2797 $as_echo "$STRIP" >&6; } 2798 else 2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2800 $as_echo "no" >&6; } 2801 fi 2802 2803 2804 fi 2805 if test -z "$ac_cv_prog_STRIP"; then 2806 ac_ct_STRIP=$STRIP 2807 # Extract the first word of "strip", so it can be a program name with args. 2808 set dummy strip; ac_word=$2 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2810 $as_echo_n "checking for $ac_word... " >&6; } 2811 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2812 $as_echo_n "(cached) " >&6 2813 else 2814 if test -n "$ac_ct_STRIP"; then 2815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2816 else 2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818 for as_dir in $PATH 2819 do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_exec_ext in '' $ac_executable_extensions; do 2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2824 ac_cv_prog_ac_ct_STRIP="strip" 2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2826 break 2 2827 fi 2828 done 2829 done 2830 IFS=$as_save_IFS 2831 2832 fi 2833 fi 2834 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2835 if test -n "$ac_ct_STRIP"; then 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2837 $as_echo "$ac_ct_STRIP" >&6; } 2838 else 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2840 $as_echo "no" >&6; } 2841 fi 2842 2843 if test "x$ac_ct_STRIP" = x; then 2844 STRIP=":" 2845 else 2846 case $cross_compiling:$ac_tool_warned in 2847 yes:) 2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2850 ac_tool_warned=yes ;; 2851 esac 2852 STRIP=$ac_ct_STRIP 2853 fi 2854 else 2855 STRIP="$ac_cv_prog_STRIP" 2856 fi 2857 2858 fi 2859 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2860 2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2862 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2863 if test -z "$MKDIR_P"; then 2864 if ${ac_cv_path_mkdir+:} false; then : 2865 $as_echo_n "(cached) " >&6 2866 else 2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2868 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2869 do 2870 IFS=$as_save_IFS 2871 test -z "$as_dir" && as_dir=. 2872 for ac_prog in mkdir gmkdir; do 2873 for ac_exec_ext in '' $ac_executable_extensions; do 2874 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2875 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2876 'mkdir (GNU coreutils) '* | \ 2877 'mkdir (coreutils) '* | \ 2878 'mkdir (fileutils) '4.1*) 2879 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2880 break 3;; 2881 esac 2882 done 2883 done 2884 done 2885 IFS=$as_save_IFS 2886 2887 fi 2888 2889 test -d ./--version && rmdir ./--version 2890 if test "${ac_cv_path_mkdir+set}" = set; then 2891 MKDIR_P="$ac_cv_path_mkdir -p" 2892 else 2893 # As a last resort, use the slow shell script. Don't cache a 2894 # value for MKDIR_P within a source directory, because that will 2895 # break other packages using the cache if that directory is 2896 # removed, or if the value is a relative name. 2897 MKDIR_P="$ac_install_sh -d" 2898 fi 2899 fi 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2901 $as_echo "$MKDIR_P" >&6; } 2902 2903 for ac_prog in gawk mawk nawk awk 2904 do 2905 # Extract the first word of "$ac_prog", so it can be a program name with args. 2906 set dummy $ac_prog; ac_word=$2 2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908 $as_echo_n "checking for $ac_word... " >&6; } 2909 if ${ac_cv_prog_AWK+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911 else 2912 if test -n "$AWK"; then 2913 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2914 else 2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2916 for as_dir in $PATH 2917 do 2918 IFS=$as_save_IFS 2919 test -z "$as_dir" && as_dir=. 2920 for ac_exec_ext in '' $ac_executable_extensions; do 2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2922 ac_cv_prog_AWK="$ac_prog" 2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2924 break 2 2925 fi 2926 done 2927 done 2928 IFS=$as_save_IFS 2929 2930 fi 2931 fi 2932 AWK=$ac_cv_prog_AWK 2933 if test -n "$AWK"; then 2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2935 $as_echo "$AWK" >&6; } 2936 else 2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2938 $as_echo "no" >&6; } 2939 fi 2940 2941 2942 test -n "$AWK" && break 2943 done 2944 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2946 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2947 set x ${MAKE-make} 2948 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2949 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2950 $as_echo_n "(cached) " >&6 2951 else 2952 cat >conftest.make <<\_ACEOF 2953 SHELL = /bin/sh 2954 all: 2955 @echo '@@@%%%=$(MAKE)=@@@%%%' 2956 _ACEOF 2957 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2958 case `${MAKE-make} -f conftest.make 2>/dev/null` in 2959 *@@@%%%=?*=@@@%%%*) 2960 eval ac_cv_prog_make_${ac_make}_set=yes;; 2961 *) 2962 eval ac_cv_prog_make_${ac_make}_set=no;; 2963 esac 2964 rm -f conftest.make 2965 fi 2966 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2968 $as_echo "yes" >&6; } 2969 SET_MAKE= 2970 else 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2972 $as_echo "no" >&6; } 2973 SET_MAKE="MAKE=${MAKE-make}" 2974 fi 2975 2976 rm -rf .tst 2>/dev/null 2977 mkdir .tst 2>/dev/null 2978 if test -d .tst; then 2979 am__leading_dot=. 2980 else 2981 am__leading_dot=_ 2982 fi 2983 rmdir .tst 2>/dev/null 2984 2985 # Check whether --enable-silent-rules was given. 2986 if test "${enable_silent_rules+set}" = set; then : 2987 enableval=$enable_silent_rules; 2988 fi 2989 2990 case $enable_silent_rules in # ((( 2991 yes) AM_DEFAULT_VERBOSITY=0;; 2992 no) AM_DEFAULT_VERBOSITY=1;; 2993 *) AM_DEFAULT_VERBOSITY=1;; 2994 esac 2995 am_make=${MAKE-make} 2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 2997 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 2998 if ${am_cv_make_support_nested_variables+:} false; then : 2999 $as_echo_n "(cached) " >&6 3000 else 3001 if $as_echo 'TRUE=$(BAR$(V)) 3002 BAR0=false 3003 BAR1=true 3004 V=1 3005 am__doit: 3006 @$(TRUE) 3007 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3008 am_cv_make_support_nested_variables=yes 3009 else 3010 am_cv_make_support_nested_variables=no 3011 fi 3012 fi 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3014 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3015 if test $am_cv_make_support_nested_variables = yes; then 3016 AM_V='$(V)' 3017 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3018 else 3019 AM_V=$AM_DEFAULT_VERBOSITY 3020 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3021 fi 3022 AM_BACKSLASH='\' 3023 3024 if test "`cd $srcdir && pwd`" != "`pwd`"; then 3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3026 # is not polluted with repeated "-I." 3027 am__isrc=' -I$(srcdir)' 3028 # test to see if srcdir already configured 3029 if test -f $srcdir/config.status; then 3030 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3031 fi 3032 fi 3033 3034 # test whether we have cygpath 3035 if test -z "$CYGPATH_W"; then 3036 if (cygpath --version) >/dev/null 2>/dev/null; then 3037 CYGPATH_W='cygpath -w' 3038 else 3039 CYGPATH_W=echo 3040 fi 3041 fi 3042 3043 3044 # Define the identity of the package. 3045 PACKAGE='jq' 3046 VERSION='1.6' 3047 3048 3049 cat >>confdefs.h <<_ACEOF 3050 #define PACKAGE "$PACKAGE" 3051 _ACEOF 3052 3053 3054 cat >>confdefs.h <<_ACEOF 3055 #define VERSION "$VERSION" 3056 _ACEOF 3057 3058 # Some tools Automake needs. 3059 3060 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3061 3062 3063 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3064 3065 3066 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3067 3068 3069 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3070 3071 3072 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3073 3074 # For better backward compatibility. To be removed once Automake 1.9.x 3075 # dies out for good. For more background, see: 3076 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3077 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3078 mkdir_p='$(MKDIR_P)' 3079 3080 # We need awk for the "check" target (and possibly the TAP driver). The 3081 # system "awk" is bad on some platforms. 3082 # Always define AMTAR for backward compatibility. Yes, it's still used 3083 # in the wild :-( We should find a proper way to deprecate it ... 3084 AMTAR='$${TAR-tar}' 3085 3086 3087 # We'll loop over all known methods to create a tar archive until one works. 3088 _am_tools='gnutar pax cpio none' 3089 3090 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3091 3092 3093 3094 3095 3096 3097 # POSIX will say in a future version that running "rm -f" with no argument 3098 # is OK; and we want to be able to make that assumption in our Makefile 3099 # recipes. So use an aggressive probe to check that the usage we want is 3100 # actually supported "in the wild" to an acceptable degree. 3101 # See automake bug#10828. 3102 # To make any issue more visible, cause the running configure to be aborted 3103 # by default if the 'rm' program in use doesn't match our expectations; the 3104 # user can still override this though. 3105 if rm -f && rm -fr && rm -rf; then : OK; else 3106 cat >&2 <<'END' 3107 Oops! 3108 3109 Your 'rm' program seems unable to run without file operands specified 3110 on the command line, even when the '-f' option is present. This is contrary 3111 to the behaviour of most rm programs out there, and not conforming with 3112 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3113 3114 Please tell bug-automake@gnu.org about your system, including the value 3115 of your $PATH and any error possibly output before this message. This 3116 can help us improve future automake versions. 3117 3118 END 3119 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3120 echo 'Configuration will proceed anyway, since you have set the' >&2 3121 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3122 echo >&2 3123 else 3124 cat >&2 <<'END' 3125 Aborting the configuration process, to ensure you take notice of the issue. 3126 3127 You can download and install GNU coreutils to get an 'rm' implementation 3128 that behaves properly: <http://www.gnu.org/software/coreutils/>. 3129 3130 If you want to complete the configuration process using your problematic 3131 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3132 to "yes", and re-run configure. 3133 3134 END 3135 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3136 fi 3137 fi 3138 3139 # Check whether --enable-silent-rules was given. 3140 if test "${enable_silent_rules+set}" = set; then : 3141 enableval=$enable_silent_rules; 3142 fi 3143 3144 case $enable_silent_rules in # ((( 3145 yes) AM_DEFAULT_VERBOSITY=0;; 3146 no) AM_DEFAULT_VERBOSITY=1;; 3147 *) AM_DEFAULT_VERBOSITY=0;; 3148 esac 3149 am_make=${MAKE-make} 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3151 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3152 if ${am_cv_make_support_nested_variables+:} false; then : 3153 $as_echo_n "(cached) " >&6 3154 else 3155 if $as_echo 'TRUE=$(BAR$(V)) 3156 BAR0=false 3157 BAR1=true 3158 V=1 3159 am__doit: 3160 @$(TRUE) 3161 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3162 am_cv_make_support_nested_variables=yes 3163 else 3164 am_cv_make_support_nested_variables=no 3165 fi 3166 fi 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3168 $as_echo "$am_cv_make_support_nested_variables" >&6; } 3169 if test $am_cv_make_support_nested_variables = yes; then 3170 AM_V='$(V)' 3171 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3172 else 3173 AM_V=$AM_DEFAULT_VERBOSITY 3174 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3175 fi 3176 AM_BACKSLASH='\' 3177 3178 DEPDIR="${am__leading_dot}deps" 3179 3180 ac_config_commands="$ac_config_commands depfiles" 3181 3182 3183 am_make=${MAKE-make} 3184 cat > confinc << 'END' 3185 am__doit: 3186 @echo this is the am__doit target 3187 .PHONY: am__doit 3188 END 3189 # If we don't find an include directive, just comment out the code. 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3191 $as_echo_n "checking for style of include used by $am_make... " >&6; } 3192 am__include="#" 3193 am__quote= 3194 _am_result=none 3195 # First try GNU make style include. 3196 echo "include confinc" > confmf 3197 # Ignore all kinds of additional output from 'make'. 3198 case `$am_make -s -f confmf 2> /dev/null` in #( 3199 *the\ am__doit\ target*) 3200 am__include=include 3201 am__quote= 3202 _am_result=GNU 3203 ;; 3204 esac 3205 # Now try BSD make style include. 3206 if test "$am__include" = "#"; then 3207 echo '.include "confinc"' > confmf 3208 case `$am_make -s -f confmf 2> /dev/null` in #( 3209 *the\ am__doit\ target*) 3210 am__include=.include 3211 am__quote="\"" 3212 _am_result=BSD 3213 ;; 3214 esac 3215 fi 3216 3217 3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3219 $as_echo "$_am_result" >&6; } 3220 rm -f confinc confmf 3221 3222 # Check whether --enable-dependency-tracking was given. 3223 if test "${enable_dependency_tracking+set}" = set; then : 3224 enableval=$enable_dependency_tracking; 3225 fi 3226 3227 if test "x$enable_dependency_tracking" != xno; then 3228 am_depcomp="$ac_aux_dir/depcomp" 3229 AMDEPBACKSLASH='\' 3230 am__nodep='_no' 3231 fi 3232 if test "x$enable_dependency_tracking" != xno; then 3233 AMDEP_TRUE= 3234 AMDEP_FALSE='#' 3235 else 3236 AMDEP_TRUE='#' 3237 AMDEP_FALSE= 3238 fi 3239 3240 3241 ac_ext=c 3242 ac_cpp='$CPP $CPPFLAGS' 3243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3245 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3246 if test -n "$ac_tool_prefix"; then 3247 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3248 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3250 $as_echo_n "checking for $ac_word... " >&6; } 3251 if ${ac_cv_prog_CC+:} false; then : 3252 $as_echo_n "(cached) " >&6 3253 else 3254 if test -n "$CC"; then 3255 ac_cv_prog_CC="$CC" # Let the user override the test. 3256 else 3257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3258 for as_dir in $PATH 3259 do 3260 IFS=$as_save_IFS 3261 test -z "$as_dir" && as_dir=. 3262 for ac_exec_ext in '' $ac_executable_extensions; do 3263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3264 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3266 break 2 3267 fi 3268 done 3269 done 3270 IFS=$as_save_IFS 3271 3272 fi 3273 fi 3274 CC=$ac_cv_prog_CC 3275 if test -n "$CC"; then 3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3277 $as_echo "$CC" >&6; } 3278 else 3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3280 $as_echo "no" >&6; } 3281 fi 3282 3283 3284 fi 3285 if test -z "$ac_cv_prog_CC"; then 3286 ac_ct_CC=$CC 3287 # Extract the first word of "gcc", so it can be a program name with args. 3288 set dummy gcc; ac_word=$2 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3290 $as_echo_n "checking for $ac_word... " >&6; } 3291 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3292 $as_echo_n "(cached) " >&6 3293 else 3294 if test -n "$ac_ct_CC"; then 3295 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3296 else 3297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3298 for as_dir in $PATH 3299 do 3300 IFS=$as_save_IFS 3301 test -z "$as_dir" && as_dir=. 3302 for ac_exec_ext in '' $ac_executable_extensions; do 3303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3304 ac_cv_prog_ac_ct_CC="gcc" 3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3306 break 2 3307 fi 3308 done 3309 done 3310 IFS=$as_save_IFS 3311 3312 fi 3313 fi 3314 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3315 if test -n "$ac_ct_CC"; then 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3317 $as_echo "$ac_ct_CC" >&6; } 3318 else 3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3320 $as_echo "no" >&6; } 3321 fi 3322 3323 if test "x$ac_ct_CC" = x; then 3324 CC="" 3325 else 3326 case $cross_compiling:$ac_tool_warned in 3327 yes:) 3328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3330 ac_tool_warned=yes ;; 3331 esac 3332 CC=$ac_ct_CC 3333 fi 3334 else 3335 CC="$ac_cv_prog_CC" 3336 fi 3337 3338 if test -z "$CC"; then 3339 if test -n "$ac_tool_prefix"; then 3340 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3341 set dummy ${ac_tool_prefix}cc; ac_word=$2 3342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3343 $as_echo_n "checking for $ac_word... " >&6; } 3344 if ${ac_cv_prog_CC+:} false; then : 3345 $as_echo_n "(cached) " >&6 3346 else 3347 if test -n "$CC"; then 3348 ac_cv_prog_CC="$CC" # Let the user override the test. 3349 else 3350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3351 for as_dir in $PATH 3352 do 3353 IFS=$as_save_IFS 3354 test -z "$as_dir" && as_dir=. 3355 for ac_exec_ext in '' $ac_executable_extensions; do 3356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3357 ac_cv_prog_CC="${ac_tool_prefix}cc" 3358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3359 break 2 3360 fi 3361 done 3362 done 3363 IFS=$as_save_IFS 3364 3365 fi 3366 fi 3367 CC=$ac_cv_prog_CC 3368 if test -n "$CC"; then 3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3370 $as_echo "$CC" >&6; } 3371 else 3372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3373 $as_echo "no" >&6; } 3374 fi 3375 3376 3377 fi 3378 fi 3379 if test -z "$CC"; then 3380 # Extract the first word of "cc", so it can be a program name with args. 3381 set dummy cc; ac_word=$2 3382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3383 $as_echo_n "checking for $ac_word... " >&6; } 3384 if ${ac_cv_prog_CC+:} false; then : 3385 $as_echo_n "(cached) " >&6 3386 else 3387 if test -n "$CC"; then 3388 ac_cv_prog_CC="$CC" # Let the user override the test. 3389 else 3390 ac_prog_rejected=no 3391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3392 for as_dir in $PATH 3393 do 3394 IFS=$as_save_IFS 3395 test -z "$as_dir" && as_dir=. 3396 for ac_exec_ext in '' $ac_executable_extensions; do 3397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3398 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3399 ac_prog_rejected=yes 3400 continue 3401 fi 3402 ac_cv_prog_CC="cc" 3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3404 break 2 3405 fi 3406 done 3407 done 3408 IFS=$as_save_IFS 3409 3410 if test $ac_prog_rejected = yes; then 3411 # We found a bogon in the path, so make sure we never use it. 3412 set dummy $ac_cv_prog_CC 3413 shift 3414 if test $# != 0; then 3415 # We chose a different compiler from the bogus one. 3416 # However, it has the same basename, so the bogon will be chosen 3417 # first if we set CC to just the basename; use the full file name. 3418 shift 3419 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3420 fi 3421 fi 3422 fi 3423 fi 3424 CC=$ac_cv_prog_CC 3425 if test -n "$CC"; then 3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3427 $as_echo "$CC" >&6; } 3428 else 3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3430 $as_echo "no" >&6; } 3431 fi 3432 3433 3434 fi 3435 if test -z "$CC"; then 3436 if test -n "$ac_tool_prefix"; then 3437 for ac_prog in cl.exe 3438 do 3439 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3440 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3442 $as_echo_n "checking for $ac_word... " >&6; } 3443 if ${ac_cv_prog_CC+:} false; then : 3444 $as_echo_n "(cached) " >&6 3445 else 3446 if test -n "$CC"; then 3447 ac_cv_prog_CC="$CC" # Let the user override the test. 3448 else 3449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3450 for as_dir in $PATH 3451 do 3452 IFS=$as_save_IFS 3453 test -z "$as_dir" && as_dir=. 3454 for ac_exec_ext in '' $ac_executable_extensions; do 3455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3456 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3458 break 2 3459 fi 3460 done 3461 done 3462 IFS=$as_save_IFS 3463 3464 fi 3465 fi 3466 CC=$ac_cv_prog_CC 3467 if test -n "$CC"; then 3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3469 $as_echo "$CC" >&6; } 3470 else 3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3472 $as_echo "no" >&6; } 3473 fi 3474 3475 3476 test -n "$CC" && break 3477 done 3478 fi 3479 if test -z "$CC"; then 3480 ac_ct_CC=$CC 3481 for ac_prog in cl.exe 3482 do 3483 # Extract the first word of "$ac_prog", so it can be a program name with args. 3484 set dummy $ac_prog; ac_word=$2 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3486 $as_echo_n "checking for $ac_word... " >&6; } 3487 if ${ac_cv_prog_ac_ct_CC+:} false; then : 3488 $as_echo_n "(cached) " >&6 3489 else 3490 if test -n "$ac_ct_CC"; then 3491 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3492 else 3493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3494 for as_dir in $PATH 3495 do 3496 IFS=$as_save_IFS 3497 test -z "$as_dir" && as_dir=. 3498 for ac_exec_ext in '' $ac_executable_extensions; do 3499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3500 ac_cv_prog_ac_ct_CC="$ac_prog" 3501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3502 break 2 3503 fi 3504 done 3505 done 3506 IFS=$as_save_IFS 3507 3508 fi 3509 fi 3510 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3511 if test -n "$ac_ct_CC"; then 3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3513 $as_echo "$ac_ct_CC" >&6; } 3514 else 3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3516 $as_echo "no" >&6; } 3517 fi 3518 3519 3520 test -n "$ac_ct_CC" && break 3521 done 3522 3523 if test "x$ac_ct_CC" = x; then 3524 CC="" 3525 else 3526 case $cross_compiling:$ac_tool_warned in 3527 yes:) 3528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3530 ac_tool_warned=yes ;; 3531 esac 3532 CC=$ac_ct_CC 3533 fi 3534 fi 3535 3536 fi 3537 3538 3539 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3540 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3541 as_fn_error $? "no acceptable C compiler found in \$PATH 3542 See \`config.log' for more details" "$LINENO" 5; } 3543 3544 # Provide some information about the compiler. 3545 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3546 set X $ac_compile 3547 ac_compiler=$2 3548 for ac_option in --version -v -V -qversion; do 3549 { { ac_try="$ac_compiler $ac_option >&5" 3550 case "(($ac_try" in 3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3552 *) ac_try_echo=$ac_try;; 3553 esac 3554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3555 $as_echo "$ac_try_echo"; } >&5 3556 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3557 ac_status=$? 3558 if test -s conftest.err; then 3559 sed '10a\ 3560 ... rest of stderr output deleted ... 3561 10q' conftest.err >conftest.er1 3562 cat conftest.er1 >&5 3563 fi 3564 rm -f conftest.er1 conftest.err 3565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3566 test $ac_status = 0; } 3567 done 3568 3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3570 /* end confdefs.h. */ 3571 3572 int 3573 main () 3574 { 3575 3576 ; 3577 return 0; 3578 } 3579 _ACEOF 3580 ac_clean_files_save=$ac_clean_files 3581 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3582 # Try to create an executable without -o first, disregard a.out. 3583 # It will help us diagnose broken compilers, and finding out an intuition 3584 # of exeext. 3585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3586 $as_echo_n "checking whether the C compiler works... " >&6; } 3587 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3588 3589 # The possible output files: 3590 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3591 3592 ac_rmfiles= 3593 for ac_file in $ac_files 3594 do 3595 case $ac_file in 3596 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3597 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3598 esac 3599 done 3600 rm -f $ac_rmfiles 3601 3602 if { { ac_try="$ac_link_default" 3603 case "(($ac_try" in 3604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3605 *) ac_try_echo=$ac_try;; 3606 esac 3607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3608 $as_echo "$ac_try_echo"; } >&5 3609 (eval "$ac_link_default") 2>&5 3610 ac_status=$? 3611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3612 test $ac_status = 0; }; then : 3613 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3614 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3615 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3616 # so that the user can short-circuit this test for compilers unknown to 3617 # Autoconf. 3618 for ac_file in $ac_files '' 3619 do 3620 test -f "$ac_file" || continue 3621 case $ac_file in 3622 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3623 ;; 3624 [ab].out ) 3625 # We found the default executable, but exeext='' is most 3626 # certainly right. 3627 break;; 3628 *.* ) 3629 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3630 then :; else 3631 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3632 fi 3633 # We set ac_cv_exeext here because the later test for it is not 3634 # safe: cross compilers may not add the suffix if given an `-o' 3635 # argument, so we may need to know it at that point already. 3636 # Even if this section looks crufty: it has the advantage of 3637 # actually working. 3638 break;; 3639 * ) 3640 break;; 3641 esac 3642 done 3643 test "$ac_cv_exeext" = no && ac_cv_exeext= 3644 3645 else 3646 ac_file='' 3647 fi 3648 if test -z "$ac_file"; then : 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3650 $as_echo "no" >&6; } 3651 $as_echo "$as_me: failed program was:" >&5 3652 sed 's/^/| /' conftest.$ac_ext >&5 3653 3654 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3655 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3656 as_fn_error 77 "C compiler cannot create executables 3657 See \`config.log' for more details" "$LINENO" 5; } 3658 else 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3660 $as_echo "yes" >&6; } 3661 fi 3662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3663 $as_echo_n "checking for C compiler default output file name... " >&6; } 3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3665 $as_echo "$ac_file" >&6; } 3666 ac_exeext=$ac_cv_exeext 3667 3668 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3669 ac_clean_files=$ac_clean_files_save 3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3671 $as_echo_n "checking for suffix of executables... " >&6; } 3672 if { { ac_try="$ac_link" 3673 case "(($ac_try" in 3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3675 *) ac_try_echo=$ac_try;; 3676 esac 3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3678 $as_echo "$ac_try_echo"; } >&5 3679 (eval "$ac_link") 2>&5 3680 ac_status=$? 3681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3682 test $ac_status = 0; }; then : 3683 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3684 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3685 # work properly (i.e., refer to `conftest.exe'), while it won't with 3686 # `rm'. 3687 for ac_file in conftest.exe conftest conftest.*; do 3688 test -f "$ac_file" || continue 3689 case $ac_file in 3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3691 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3692 break;; 3693 * ) break;; 3694 esac 3695 done 3696 else 3697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3699 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3700 See \`config.log' for more details" "$LINENO" 5; } 3701 fi 3702 rm -f conftest conftest$ac_cv_exeext 3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3704 $as_echo "$ac_cv_exeext" >&6; } 3705 3706 rm -f conftest.$ac_ext 3707 EXEEXT=$ac_cv_exeext 3708 ac_exeext=$EXEEXT 3709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3710 /* end confdefs.h. */ 3711 #include <stdio.h> 3712 int 3713 main () 3714 { 3715 FILE *f = fopen ("conftest.out", "w"); 3716 return ferror (f) || fclose (f) != 0; 3717 3718 ; 3719 return 0; 3720 } 3721 _ACEOF 3722 ac_clean_files="$ac_clean_files conftest.out" 3723 # Check that the compiler produces executables we can run. If not, either 3724 # the compiler is broken, or we cross compile. 3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3726 $as_echo_n "checking whether we are cross compiling... " >&6; } 3727 if test "$cross_compiling" != yes; then 3728 { { ac_try="$ac_link" 3729 case "(($ac_try" in 3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3731 *) ac_try_echo=$ac_try;; 3732 esac 3733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3734 $as_echo "$ac_try_echo"; } >&5 3735 (eval "$ac_link") 2>&5 3736 ac_status=$? 3737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3738 test $ac_status = 0; } 3739 if { ac_try='./conftest$ac_cv_exeext' 3740 { { case "(($ac_try" in 3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3742 *) ac_try_echo=$ac_try;; 3743 esac 3744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3745 $as_echo "$ac_try_echo"; } >&5 3746 (eval "$ac_try") 2>&5 3747 ac_status=$? 3748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3749 test $ac_status = 0; }; }; then 3750 cross_compiling=no 3751 else 3752 if test "$cross_compiling" = maybe; then 3753 cross_compiling=yes 3754 else 3755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3756 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3757 as_fn_error $? "cannot run C compiled programs. 3758 If you meant to cross compile, use \`--host'. 3759 See \`config.log' for more details" "$LINENO" 5; } 3760 fi 3761 fi 3762 fi 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3764 $as_echo "$cross_compiling" >&6; } 3765 3766 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3767 ac_clean_files=$ac_clean_files_save 3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3769 $as_echo_n "checking for suffix of object files... " >&6; } 3770 if ${ac_cv_objext+:} false; then : 3771 $as_echo_n "(cached) " >&6 3772 else 3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3774 /* end confdefs.h. */ 3775 3776 int 3777 main () 3778 { 3779 3780 ; 3781 return 0; 3782 } 3783 _ACEOF 3784 rm -f conftest.o conftest.obj 3785 if { { ac_try="$ac_compile" 3786 case "(($ac_try" in 3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3788 *) ac_try_echo=$ac_try;; 3789 esac 3790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3791 $as_echo "$ac_try_echo"; } >&5 3792 (eval "$ac_compile") 2>&5 3793 ac_status=$? 3794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3795 test $ac_status = 0; }; then : 3796 for ac_file in conftest.o conftest.obj conftest.*; do 3797 test -f "$ac_file" || continue; 3798 case $ac_file in 3799 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3800 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3801 break;; 3802 esac 3803 done 3804 else 3805 $as_echo "$as_me: failed program was:" >&5 3806 sed 's/^/| /' conftest.$ac_ext >&5 3807 3808 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3809 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3810 as_fn_error $? "cannot compute suffix of object files: cannot compile 3811 See \`config.log' for more details" "$LINENO" 5; } 3812 fi 3813 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3814 fi 3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3816 $as_echo "$ac_cv_objext" >&6; } 3817 OBJEXT=$ac_cv_objext 3818 ac_objext=$OBJEXT 3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3820 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3821 if ${ac_cv_c_compiler_gnu+:} false; then : 3822 $as_echo_n "(cached) " >&6 3823 else 3824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3825 /* end confdefs.h. */ 3826 3827 int 3828 main () 3829 { 3830 #ifndef __GNUC__ 3831 choke me 3832 #endif 3833 3834 ; 3835 return 0; 3836 } 3837 _ACEOF 3838 if ac_fn_c_try_compile "$LINENO"; then : 3839 ac_compiler_gnu=yes 3840 else 3841 ac_compiler_gnu=no 3842 fi 3843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3844 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3845 3846 fi 3847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3848 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3849 if test $ac_compiler_gnu = yes; then 3850 GCC=yes 3851 else 3852 GCC= 3853 fi 3854 ac_test_CFLAGS=${CFLAGS+set} 3855 ac_save_CFLAGS=$CFLAGS 3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3857 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3858 if ${ac_cv_prog_cc_g+:} false; then : 3859 $as_echo_n "(cached) " >&6 3860 else 3861 ac_save_c_werror_flag=$ac_c_werror_flag 3862 ac_c_werror_flag=yes 3863 ac_cv_prog_cc_g=no 3864 CFLAGS="-g" 3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3866 /* end confdefs.h. */ 3867 3868 int 3869 main () 3870 { 3871 3872 ; 3873 return 0; 3874 } 3875 _ACEOF 3876 if ac_fn_c_try_compile "$LINENO"; then : 3877 ac_cv_prog_cc_g=yes 3878 else 3879 CFLAGS="" 3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3881 /* end confdefs.h. */ 3882 3883 int 3884 main () 3885 { 3886 3887 ; 3888 return 0; 3889 } 3890 _ACEOF 3891 if ac_fn_c_try_compile "$LINENO"; then : 3892 3893 else 3894 ac_c_werror_flag=$ac_save_c_werror_flag 3895 CFLAGS="-g" 3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3897 /* end confdefs.h. */ 3898 3899 int 3900 main () 3901 { 3902 3903 ; 3904 return 0; 3905 } 3906 _ACEOF 3907 if ac_fn_c_try_compile "$LINENO"; then : 3908 ac_cv_prog_cc_g=yes 3909 fi 3910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3911 fi 3912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3913 fi 3914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3915 ac_c_werror_flag=$ac_save_c_werror_flag 3916 fi 3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3918 $as_echo "$ac_cv_prog_cc_g" >&6; } 3919 if test "$ac_test_CFLAGS" = set; then 3920 CFLAGS=$ac_save_CFLAGS 3921 elif test $ac_cv_prog_cc_g = yes; then 3922 if test "$GCC" = yes; then 3923 CFLAGS="-g -O2" 3924 else 3925 CFLAGS="-g" 3926 fi 3927 else 3928 if test "$GCC" = yes; then 3929 CFLAGS="-O2" 3930 else 3931 CFLAGS= 3932 fi 3933 fi 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3935 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3936 if ${ac_cv_prog_cc_c89+:} false; then : 3937 $as_echo_n "(cached) " >&6 3938 else 3939 ac_cv_prog_cc_c89=no 3940 ac_save_CC=$CC 3941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3942 /* end confdefs.h. */ 3943 #include <stdarg.h> 3944 #include <stdio.h> 3945 struct stat; 3946 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3947 struct buf { int x; }; 3948 FILE * (*rcsopen) (struct buf *, struct stat *, int); 3949 static char *e (p, i) 3950 char **p; 3951 int i; 3952 { 3953 return p[i]; 3954 } 3955 static char *f (char * (*g) (char **, int), char **p, ...) 3956 { 3957 char *s; 3958 va_list v; 3959 va_start (v,p); 3960 s = g (p, va_arg (v,int)); 3961 va_end (v); 3962 return s; 3963 } 3964 3965 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3966 function prototypes and stuff, but not '\xHH' hex character constants. 3967 These don't provoke an error unfortunately, instead are silently treated 3968 as 'x'. The following induces an error, until -std is added to get 3969 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3970 array size at least. It's necessary to write '\x00'==0 to get something 3971 that's true only with -std. */ 3972 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3973 3974 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3975 inside strings and character constants. */ 3976 #define FOO(x) 'x' 3977 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3978 3979 int test (int i, double x); 3980 struct s1 {int (*f) (int a);}; 3981 struct s2 {int (*f) (double a);}; 3982 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3983 int argc; 3984 char **argv; 3985 int 3986 main () 3987 { 3988 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3989 ; 3990 return 0; 3991 } 3992 _ACEOF 3993 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3994 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3995 do 3996 CC="$ac_save_CC $ac_arg" 3997 if ac_fn_c_try_compile "$LINENO"; then : 3998 ac_cv_prog_cc_c89=$ac_arg 3999 fi 4000 rm -f core conftest.err conftest.$ac_objext 4001 test "x$ac_cv_prog_cc_c89" != "xno" && break 4002 done 4003 rm -f conftest.$ac_ext 4004 CC=$ac_save_CC 4005 4006 fi 4007 # AC_CACHE_VAL 4008 case "x$ac_cv_prog_cc_c89" in 4009 x) 4010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4011 $as_echo "none needed" >&6; } ;; 4012 xno) 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4014 $as_echo "unsupported" >&6; } ;; 4015 *) 4016 CC="$CC $ac_cv_prog_cc_c89" 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4018 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4019 esac 4020 if test "x$ac_cv_prog_cc_c89" != xno; then : 4021 4022 fi 4023 4024 ac_ext=c 4025 ac_cpp='$CPP $CPPFLAGS' 4026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4028 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4029 4030 ac_ext=c 4031 ac_cpp='$CPP $CPPFLAGS' 4032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4034 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4036 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4037 if ${am_cv_prog_cc_c_o+:} false; then : 4038 $as_echo_n "(cached) " >&6 4039 else 4040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4041 /* end confdefs.h. */ 4042 4043 int 4044 main () 4045 { 4046 4047 ; 4048 return 0; 4049 } 4050 _ACEOF 4051 # Make sure it works both with $CC and with simple cc. 4052 # Following AC_PROG_CC_C_O, we do the test twice because some 4053 # compilers refuse to overwrite an existing .o file with -o, 4054 # though they will create one. 4055 am_cv_prog_cc_c_o=yes 4056 for am_i in 1 2; do 4057 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4058 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4059 ac_status=$? 4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4061 (exit $ac_status); } \ 4062 && test -f conftest2.$ac_objext; then 4063 : OK 4064 else 4065 am_cv_prog_cc_c_o=no 4066 break 4067 fi 4068 done 4069 rm -f core conftest* 4070 unset am_i 4071 fi 4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4073 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4074 if test "$am_cv_prog_cc_c_o" != yes; then 4075 # Losing compiler, so override with the script. 4076 # FIXME: It is wrong to rewrite CC. 4077 # But if we don't then we get into trouble of one sort or another. 4078 # A longer-term fix would be to have automake use am__CC in this case, 4079 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4080 CC="$am_aux_dir/compile $CC" 4081 fi 4082 ac_ext=c 4083 ac_cpp='$CPP $CPPFLAGS' 4084 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4085 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4086 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4087 4088 4089 depcc="$CC" am_compiler_list= 4090 4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4092 $as_echo_n "checking dependency style of $depcc... " >&6; } 4093 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4094 $as_echo_n "(cached) " >&6 4095 else 4096 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4097 # We make a subdir and do the tests there. Otherwise we can end up 4098 # making bogus files that we don't know about and never remove. For 4099 # instance it was reported that on HP-UX the gcc test will end up 4100 # making a dummy file named 'D' -- because '-MD' means "put the output 4101 # in D". 4102 rm -rf conftest.dir 4103 mkdir conftest.dir 4104 # Copy depcomp to subdir because otherwise we won't find it if we're 4105 # using a relative directory. 4106 cp "$am_depcomp" conftest.dir 4107 cd conftest.dir 4108 # We will build objects and dependencies in a subdirectory because 4109 # it helps to detect inapplicable dependency modes. For instance 4110 # both Tru64's cc and ICC support -MD to output dependencies as a 4111 # side effect of compilation, but ICC will put the dependencies in 4112 # the current directory while Tru64 will put them in the object 4113 # directory. 4114 mkdir sub 4115 4116 am_cv_CC_dependencies_compiler_type=none 4117 if test "$am_compiler_list" = ""; then 4118 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4119 fi 4120 am__universal=false 4121 case " $depcc " in #( 4122 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4123 esac 4124 4125 for depmode in $am_compiler_list; do 4126 # Setup a source with many dependencies, because some compilers 4127 # like to wrap large dependency lists on column 80 (with \), and 4128 # we should not choose a depcomp mode which is confused by this. 4129 # 4130 # We need to recreate these files for each test, as the compiler may 4131 # overwrite some of them when testing with obscure command lines. 4132 # This happens at least with the AIX C compiler. 4133 : > sub/conftest.c 4134 for i in 1 2 3 4 5 6; do 4135 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4136 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4137 # Solaris 10 /bin/sh. 4138 echo '/* dummy */' > sub/conftst$i.h 4139 done 4140 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4141 4142 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4143 # mode. It turns out that the SunPro C++ compiler does not properly 4144 # handle '-M -o', and we need to detect this. Also, some Intel 4145 # versions had trouble with output in subdirs. 4146 am__obj=sub/conftest.${OBJEXT-o} 4147 am__minus_obj="-o $am__obj" 4148 case $depmode in 4149 gcc) 4150 # This depmode causes a compiler race in universal mode. 4151 test "$am__universal" = false || continue 4152 ;; 4153 nosideeffect) 4154 # After this tag, mechanisms are not by side-effect, so they'll 4155 # only be used when explicitly requested. 4156 if test "x$enable_dependency_tracking" = xyes; then 4157 continue 4158 else 4159 break 4160 fi 4161 ;; 4162 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4163 # This compiler won't grok '-c -o', but also, the minuso test has 4164 # not run yet. These depmodes are late enough in the game, and 4165 # so weak that their functioning should not be impacted. 4166 am__obj=conftest.${OBJEXT-o} 4167 am__minus_obj= 4168 ;; 4169 none) break ;; 4170 esac 4171 if depmode=$depmode \ 4172 source=sub/conftest.c object=$am__obj \ 4173 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4174 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4175 >/dev/null 2>conftest.err && 4176 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4177 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4178 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4179 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4180 # icc doesn't choke on unknown options, it will just issue warnings 4181 # or remarks (even with -Werror). So we grep stderr for any message 4182 # that says an option was ignored or not supported. 4183 # When given -MP, icc 7.0 and 7.1 complain thusly: 4184 # icc: Command line warning: ignoring option '-M'; no argument required 4185 # The diagnosis changed in icc 8.0: 4186 # icc: Command line remark: option '-MP' not supported 4187 if (grep 'ignoring option' conftest.err || 4188 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4189 am_cv_CC_dependencies_compiler_type=$depmode 4190 break 4191 fi 4192 fi 4193 done 4194 4195 cd .. 4196 rm -rf conftest.dir 4197 else 4198 am_cv_CC_dependencies_compiler_type=none 4199 fi 4200 4201 fi 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4203 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4204 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4205 4206 if 4207 test "x$enable_dependency_tracking" != xno \ 4208 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4209 am__fastdepCC_TRUE= 4210 am__fastdepCC_FALSE='#' 4211 else 4212 am__fastdepCC_TRUE='#' 4213 am__fastdepCC_FALSE= 4214 fi 4215 4216 4217 4218 if test -n "$ac_tool_prefix"; then 4219 for ac_prog in ar lib "link -lib" 4220 do 4221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4224 $as_echo_n "checking for $ac_word... " >&6; } 4225 if ${ac_cv_prog_AR+:} false; then : 4226 $as_echo_n "(cached) " >&6 4227 else 4228 if test -n "$AR"; then 4229 ac_cv_prog_AR="$AR" # Let the user override the test. 4230 else 4231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4232 for as_dir in $PATH 4233 do 4234 IFS=$as_save_IFS 4235 test -z "$as_dir" && as_dir=. 4236 for ac_exec_ext in '' $ac_executable_extensions; do 4237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4238 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4240 break 2 4241 fi 4242 done 4243 done 4244 IFS=$as_save_IFS 4245 4246 fi 4247 fi 4248 AR=$ac_cv_prog_AR 4249 if test -n "$AR"; then 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4251 $as_echo "$AR" >&6; } 4252 else 4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4254 $as_echo "no" >&6; } 4255 fi 4256 4257 4258 test -n "$AR" && break 4259 done 4260 fi 4261 if test -z "$AR"; then 4262 ac_ct_AR=$AR 4263 for ac_prog in ar lib "link -lib" 4264 do 4265 # Extract the first word of "$ac_prog", so it can be a program name with args. 4266 set dummy $ac_prog; ac_word=$2 4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4268 $as_echo_n "checking for $ac_word... " >&6; } 4269 if ${ac_cv_prog_ac_ct_AR+:} false; then : 4270 $as_echo_n "(cached) " >&6 4271 else 4272 if test -n "$ac_ct_AR"; then 4273 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4274 else 4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4276 for as_dir in $PATH 4277 do 4278 IFS=$as_save_IFS 4279 test -z "$as_dir" && as_dir=. 4280 for ac_exec_ext in '' $ac_executable_extensions; do 4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4282 ac_cv_prog_ac_ct_AR="$ac_prog" 4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4284 break 2 4285 fi 4286 done 4287 done 4288 IFS=$as_save_IFS 4289 4290 fi 4291 fi 4292 ac_ct_AR=$ac_cv_prog_ac_ct_AR 4293 if test -n "$ac_ct_AR"; then 4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4295 $as_echo "$ac_ct_AR" >&6; } 4296 else 4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4298 $as_echo "no" >&6; } 4299 fi 4300 4301 4302 test -n "$ac_ct_AR" && break 4303 done 4304 4305 if test "x$ac_ct_AR" = x; then 4306 AR="false" 4307 else 4308 case $cross_compiling:$ac_tool_warned in 4309 yes:) 4310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4312 ac_tool_warned=yes ;; 4313 esac 4314 AR=$ac_ct_AR 4315 fi 4316 fi 4317 4318 : ${AR=ar} 4319 4320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5 4321 $as_echo_n "checking the archiver ($AR) interface... " >&6; } 4322 if ${am_cv_ar_interface+:} false; then : 4323 $as_echo_n "(cached) " >&6 4324 else 4325 ac_ext=c 4326 ac_cpp='$CPP $CPPFLAGS' 4327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4329 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4330 4331 am_cv_ar_interface=ar 4332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4333 /* end confdefs.h. */ 4334 int some_variable = 0; 4335 _ACEOF 4336 if ac_fn_c_try_compile "$LINENO"; then : 4337 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5' 4338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4339 (eval $am_ar_try) 2>&5 4340 ac_status=$? 4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4342 test $ac_status = 0; } 4343 if test "$ac_status" -eq 0; then 4344 am_cv_ar_interface=ar 4345 else 4346 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5' 4347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5 4348 (eval $am_ar_try) 2>&5 4349 ac_status=$? 4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4351 test $ac_status = 0; } 4352 if test "$ac_status" -eq 0; then 4353 am_cv_ar_interface=lib 4354 else 4355 am_cv_ar_interface=unknown 4356 fi 4357 fi 4358 rm -f conftest.lib libconftest.a 4359 4360 fi 4361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4362 ac_ext=c 4363 ac_cpp='$CPP $CPPFLAGS' 4364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4366 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4367 4368 fi 4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5 4370 $as_echo "$am_cv_ar_interface" >&6; } 4371 4372 case $am_cv_ar_interface in 4373 ar) 4374 ;; 4375 lib) 4376 # Microsoft lib, so override with the ar-lib wrapper script. 4377 # FIXME: It is wrong to rewrite AR. 4378 # But if we don't then we get into trouble of one sort or another. 4379 # A longer-term fix would be to have automake use am__AR in this case, 4380 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something 4381 # similar. 4382 AR="$am_aux_dir/ar-lib $AR" 4383 ;; 4384 unknown) 4385 as_fn_error $? "could not determine $AR interface" "$LINENO" 5 4386 ;; 4387 esac 4388 4389 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 4391 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 4392 # Check whether --enable-maintainer-mode was given. 4393 if test "${enable_maintainer_mode+set}" = set; then : 4394 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 4395 else 4396 USE_MAINTAINER_MODE=yes 4397 fi 4398 4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 4400 $as_echo "$USE_MAINTAINER_MODE" >&6; } 4401 if test $USE_MAINTAINER_MODE = yes; then 4402 MAINTAINER_MODE_TRUE= 4403 MAINTAINER_MODE_FALSE='#' 4404 else 4405 MAINTAINER_MODE_TRUE='#' 4406 MAINTAINER_MODE_FALSE= 4407 fi 4408 4409 MAINT=$MAINTAINER_MODE_TRUE 4410 4411 4412 ac_ext=c 4413 ac_cpp='$CPP $CPPFLAGS' 4414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4416 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4417 if test -n "$ac_tool_prefix"; then 4418 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4419 set dummy ${ac_tool_prefix}gcc; ac_word=$2 4420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4421 $as_echo_n "checking for $ac_word... " >&6; } 4422 if ${ac_cv_prog_CC+:} false; then : 4423 $as_echo_n "(cached) " >&6 4424 else 4425 if test -n "$CC"; then 4426 ac_cv_prog_CC="$CC" # Let the user override the test. 4427 else 4428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4429 for as_dir in $PATH 4430 do 4431 IFS=$as_save_IFS 4432 test -z "$as_dir" && as_dir=. 4433 for ac_exec_ext in '' $ac_executable_extensions; do 4434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4435 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4437 break 2 4438 fi 4439 done 4440 done 4441 IFS=$as_save_IFS 4442 4443 fi 4444 fi 4445 CC=$ac_cv_prog_CC 4446 if test -n "$CC"; then 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4448 $as_echo "$CC" >&6; } 4449 else 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4451 $as_echo "no" >&6; } 4452 fi 4453 4454 4455 fi 4456 if test -z "$ac_cv_prog_CC"; then 4457 ac_ct_CC=$CC 4458 # Extract the first word of "gcc", so it can be a program name with args. 4459 set dummy gcc; ac_word=$2 4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4461 $as_echo_n "checking for $ac_word... " >&6; } 4462 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4463 $as_echo_n "(cached) " >&6 4464 else 4465 if test -n "$ac_ct_CC"; then 4466 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4467 else 4468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469 for as_dir in $PATH 4470 do 4471 IFS=$as_save_IFS 4472 test -z "$as_dir" && as_dir=. 4473 for ac_exec_ext in '' $ac_executable_extensions; do 4474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4475 ac_cv_prog_ac_ct_CC="gcc" 4476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4477 break 2 4478 fi 4479 done 4480 done 4481 IFS=$as_save_IFS 4482 4483 fi 4484 fi 4485 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4486 if test -n "$ac_ct_CC"; then 4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4488 $as_echo "$ac_ct_CC" >&6; } 4489 else 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4491 $as_echo "no" >&6; } 4492 fi 4493 4494 if test "x$ac_ct_CC" = x; then 4495 CC="" 4496 else 4497 case $cross_compiling:$ac_tool_warned in 4498 yes:) 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4500 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4501 ac_tool_warned=yes ;; 4502 esac 4503 CC=$ac_ct_CC 4504 fi 4505 else 4506 CC="$ac_cv_prog_CC" 4507 fi 4508 4509 if test -z "$CC"; then 4510 if test -n "$ac_tool_prefix"; then 4511 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4512 set dummy ${ac_tool_prefix}cc; ac_word=$2 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4514 $as_echo_n "checking for $ac_word... " >&6; } 4515 if ${ac_cv_prog_CC+:} false; then : 4516 $as_echo_n "(cached) " >&6 4517 else 4518 if test -n "$CC"; then 4519 ac_cv_prog_CC="$CC" # Let the user override the test. 4520 else 4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4522 for as_dir in $PATH 4523 do 4524 IFS=$as_save_IFS 4525 test -z "$as_dir" && as_dir=. 4526 for ac_exec_ext in '' $ac_executable_extensions; do 4527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4528 ac_cv_prog_CC="${ac_tool_prefix}cc" 4529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4530 break 2 4531 fi 4532 done 4533 done 4534 IFS=$as_save_IFS 4535 4536 fi 4537 fi 4538 CC=$ac_cv_prog_CC 4539 if test -n "$CC"; then 4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4541 $as_echo "$CC" >&6; } 4542 else 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4544 $as_echo "no" >&6; } 4545 fi 4546 4547 4548 fi 4549 fi 4550 if test -z "$CC"; then 4551 # Extract the first word of "cc", so it can be a program name with args. 4552 set dummy cc; ac_word=$2 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4554 $as_echo_n "checking for $ac_word... " >&6; } 4555 if ${ac_cv_prog_CC+:} false; then : 4556 $as_echo_n "(cached) " >&6 4557 else 4558 if test -n "$CC"; then 4559 ac_cv_prog_CC="$CC" # Let the user override the test. 4560 else 4561 ac_prog_rejected=no 4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563 for as_dir in $PATH 4564 do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4569 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4570 ac_prog_rejected=yes 4571 continue 4572 fi 4573 ac_cv_prog_CC="cc" 4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4575 break 2 4576 fi 4577 done 4578 done 4579 IFS=$as_save_IFS 4580 4581 if test $ac_prog_rejected = yes; then 4582 # We found a bogon in the path, so make sure we never use it. 4583 set dummy $ac_cv_prog_CC 4584 shift 4585 if test $# != 0; then 4586 # We chose a different compiler from the bogus one. 4587 # However, it has the same basename, so the bogon will be chosen 4588 # first if we set CC to just the basename; use the full file name. 4589 shift 4590 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4591 fi 4592 fi 4593 fi 4594 fi 4595 CC=$ac_cv_prog_CC 4596 if test -n "$CC"; then 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4598 $as_echo "$CC" >&6; } 4599 else 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4601 $as_echo "no" >&6; } 4602 fi 4603 4604 4605 fi 4606 if test -z "$CC"; then 4607 if test -n "$ac_tool_prefix"; then 4608 for ac_prog in cl.exe 4609 do 4610 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4611 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4613 $as_echo_n "checking for $ac_word... " >&6; } 4614 if ${ac_cv_prog_CC+:} false; then : 4615 $as_echo_n "(cached) " >&6 4616 else 4617 if test -n "$CC"; then 4618 ac_cv_prog_CC="$CC" # Let the user override the test. 4619 else 4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4621 for as_dir in $PATH 4622 do 4623 IFS=$as_save_IFS 4624 test -z "$as_dir" && as_dir=. 4625 for ac_exec_ext in '' $ac_executable_extensions; do 4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4627 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4629 break 2 4630 fi 4631 done 4632 done 4633 IFS=$as_save_IFS 4634 4635 fi 4636 fi 4637 CC=$ac_cv_prog_CC 4638 if test -n "$CC"; then 4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4640 $as_echo "$CC" >&6; } 4641 else 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4643 $as_echo "no" >&6; } 4644 fi 4645 4646 4647 test -n "$CC" && break 4648 done 4649 fi 4650 if test -z "$CC"; then 4651 ac_ct_CC=$CC 4652 for ac_prog in cl.exe 4653 do 4654 # Extract the first word of "$ac_prog", so it can be a program name with args. 4655 set dummy $ac_prog; ac_word=$2 4656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4657 $as_echo_n "checking for $ac_word... " >&6; } 4658 if ${ac_cv_prog_ac_ct_CC+:} false; then : 4659 $as_echo_n "(cached) " >&6 4660 else 4661 if test -n "$ac_ct_CC"; then 4662 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4663 else 4664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4665 for as_dir in $PATH 4666 do 4667 IFS=$as_save_IFS 4668 test -z "$as_dir" && as_dir=. 4669 for ac_exec_ext in '' $ac_executable_extensions; do 4670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4671 ac_cv_prog_ac_ct_CC="$ac_prog" 4672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4673 break 2 4674 fi 4675 done 4676 done 4677 IFS=$as_save_IFS 4678 4679 fi 4680 fi 4681 ac_ct_CC=$ac_cv_prog_ac_ct_CC 4682 if test -n "$ac_ct_CC"; then 4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4684 $as_echo "$ac_ct_CC" >&6; } 4685 else 4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4687 $as_echo "no" >&6; } 4688 fi 4689 4690 4691 test -n "$ac_ct_CC" && break 4692 done 4693 4694 if test "x$ac_ct_CC" = x; then 4695 CC="" 4696 else 4697 case $cross_compiling:$ac_tool_warned in 4698 yes:) 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4701 ac_tool_warned=yes ;; 4702 esac 4703 CC=$ac_ct_CC 4704 fi 4705 fi 4706 4707 fi 4708 4709 4710 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4712 as_fn_error $? "no acceptable C compiler found in \$PATH 4713 See \`config.log' for more details" "$LINENO" 5; } 4714 4715 # Provide some information about the compiler. 4716 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4717 set X $ac_compile 4718 ac_compiler=$2 4719 for ac_option in --version -v -V -qversion; do 4720 { { ac_try="$ac_compiler $ac_option >&5" 4721 case "(($ac_try" in 4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4723 *) ac_try_echo=$ac_try;; 4724 esac 4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4726 $as_echo "$ac_try_echo"; } >&5 4727 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4728 ac_status=$? 4729 if test -s conftest.err; then 4730 sed '10a\ 4731 ... rest of stderr output deleted ... 4732 10q' conftest.err >conftest.er1 4733 cat conftest.er1 >&5 4734 fi 4735 rm -f conftest.er1 conftest.err 4736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4737 test $ac_status = 0; } 4738 done 4739 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4741 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4742 if ${ac_cv_c_compiler_gnu+:} false; then : 4743 $as_echo_n "(cached) " >&6 4744 else 4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4746 /* end confdefs.h. */ 4747 4748 int 4749 main () 4750 { 4751 #ifndef __GNUC__ 4752 choke me 4753 #endif 4754 4755 ; 4756 return 0; 4757 } 4758 _ACEOF 4759 if ac_fn_c_try_compile "$LINENO"; then : 4760 ac_compiler_gnu=yes 4761 else 4762 ac_compiler_gnu=no 4763 fi 4764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4765 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4766 4767 fi 4768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4769 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4770 if test $ac_compiler_gnu = yes; then 4771 GCC=yes 4772 else 4773 GCC= 4774 fi 4775 ac_test_CFLAGS=${CFLAGS+set} 4776 ac_save_CFLAGS=$CFLAGS 4777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4778 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4779 if ${ac_cv_prog_cc_g+:} false; then : 4780 $as_echo_n "(cached) " >&6 4781 else 4782 ac_save_c_werror_flag=$ac_c_werror_flag 4783 ac_c_werror_flag=yes 4784 ac_cv_prog_cc_g=no 4785 CFLAGS="-g" 4786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4787 /* end confdefs.h. */ 4788 4789 int 4790 main () 4791 { 4792 4793 ; 4794 return 0; 4795 } 4796 _ACEOF 4797 if ac_fn_c_try_compile "$LINENO"; then : 4798 ac_cv_prog_cc_g=yes 4799 else 4800 CFLAGS="" 4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4802 /* end confdefs.h. */ 4803 4804 int 4805 main () 4806 { 4807 4808 ; 4809 return 0; 4810 } 4811 _ACEOF 4812 if ac_fn_c_try_compile "$LINENO"; then : 4813 4814 else 4815 ac_c_werror_flag=$ac_save_c_werror_flag 4816 CFLAGS="-g" 4817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4818 /* end confdefs.h. */ 4819 4820 int 4821 main () 4822 { 4823 4824 ; 4825 return 0; 4826 } 4827 _ACEOF 4828 if ac_fn_c_try_compile "$LINENO"; then : 4829 ac_cv_prog_cc_g=yes 4830 fi 4831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4832 fi 4833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4834 fi 4835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4836 ac_c_werror_flag=$ac_save_c_werror_flag 4837 fi 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4839 $as_echo "$ac_cv_prog_cc_g" >&6; } 4840 if test "$ac_test_CFLAGS" = set; then 4841 CFLAGS=$ac_save_CFLAGS 4842 elif test $ac_cv_prog_cc_g = yes; then 4843 if test "$GCC" = yes; then 4844 CFLAGS="-g -O2" 4845 else 4846 CFLAGS="-g" 4847 fi 4848 else 4849 if test "$GCC" = yes; then 4850 CFLAGS="-O2" 4851 else 4852 CFLAGS= 4853 fi 4854 fi 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4856 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4857 if ${ac_cv_prog_cc_c89+:} false; then : 4858 $as_echo_n "(cached) " >&6 4859 else 4860 ac_cv_prog_cc_c89=no 4861 ac_save_CC=$CC 4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4863 /* end confdefs.h. */ 4864 #include <stdarg.h> 4865 #include <stdio.h> 4866 struct stat; 4867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4868 struct buf { int x; }; 4869 FILE * (*rcsopen) (struct buf *, struct stat *, int); 4870 static char *e (p, i) 4871 char **p; 4872 int i; 4873 { 4874 return p[i]; 4875 } 4876 static char *f (char * (*g) (char **, int), char **p, ...) 4877 { 4878 char *s; 4879 va_list v; 4880 va_start (v,p); 4881 s = g (p, va_arg (v,int)); 4882 va_end (v); 4883 return s; 4884 } 4885 4886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4887 function prototypes and stuff, but not '\xHH' hex character constants. 4888 These don't provoke an error unfortunately, instead are silently treated 4889 as 'x'. The following induces an error, until -std is added to get 4890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4891 array size at least. It's necessary to write '\x00'==0 to get something 4892 that's true only with -std. */ 4893 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4894 4895 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4896 inside strings and character constants. */ 4897 #define FOO(x) 'x' 4898 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4899 4900 int test (int i, double x); 4901 struct s1 {int (*f) (int a);}; 4902 struct s2 {int (*f) (double a);}; 4903 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4904 int argc; 4905 char **argv; 4906 int 4907 main () 4908 { 4909 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4910 ; 4911 return 0; 4912 } 4913 _ACEOF 4914 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4915 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4916 do 4917 CC="$ac_save_CC $ac_arg" 4918 if ac_fn_c_try_compile "$LINENO"; then : 4919 ac_cv_prog_cc_c89=$ac_arg 4920 fi 4921 rm -f core conftest.err conftest.$ac_objext 4922 test "x$ac_cv_prog_cc_c89" != "xno" && break 4923 done 4924 rm -f conftest.$ac_ext 4925 CC=$ac_save_CC 4926 4927 fi 4928 # AC_CACHE_VAL 4929 case "x$ac_cv_prog_cc_c89" in 4930 x) 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4932 $as_echo "none needed" >&6; } ;; 4933 xno) 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4935 $as_echo "unsupported" >&6; } ;; 4936 *) 4937 CC="$CC $ac_cv_prog_cc_c89" 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4939 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4940 esac 4941 if test "x$ac_cv_prog_cc_c89" != xno; then : 4942 4943 fi 4944 4945 ac_ext=c 4946 ac_cpp='$CPP $CPPFLAGS' 4947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4949 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4950 4951 ac_ext=c 4952 ac_cpp='$CPP $CPPFLAGS' 4953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4955 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4957 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4958 if ${am_cv_prog_cc_c_o+:} false; then : 4959 $as_echo_n "(cached) " >&6 4960 else 4961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4962 /* end confdefs.h. */ 4963 4964 int 4965 main () 4966 { 4967 4968 ; 4969 return 0; 4970 } 4971 _ACEOF 4972 # Make sure it works both with $CC and with simple cc. 4973 # Following AC_PROG_CC_C_O, we do the test twice because some 4974 # compilers refuse to overwrite an existing .o file with -o, 4975 # though they will create one. 4976 am_cv_prog_cc_c_o=yes 4977 for am_i in 1 2; do 4978 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4979 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4980 ac_status=$? 4981 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4982 (exit $ac_status); } \ 4983 && test -f conftest2.$ac_objext; then 4984 : OK 4985 else 4986 am_cv_prog_cc_c_o=no 4987 break 4988 fi 4989 done 4990 rm -f core conftest* 4991 unset am_i 4992 fi 4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4994 $as_echo "$am_cv_prog_cc_c_o" >&6; } 4995 if test "$am_cv_prog_cc_c_o" != yes; then 4996 # Losing compiler, so override with the script. 4997 # FIXME: It is wrong to rewrite CC. 4998 # But if we don't then we get into trouble of one sort or another. 4999 # A longer-term fix would be to have automake use am__CC in this case, 5000 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5001 CC="$am_aux_dir/compile $CC" 5002 fi 5003 ac_ext=c 5004 ac_cpp='$CPP $CPPFLAGS' 5005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5007 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5008 5009 5010 depcc="$CC" am_compiler_list= 5011 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5013 $as_echo_n "checking dependency style of $depcc... " >&6; } 5014 if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5015 $as_echo_n "(cached) " >&6 5016 else 5017 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5018 # We make a subdir and do the tests there. Otherwise we can end up 5019 # making bogus files that we don't know about and never remove. For 5020 # instance it was reported that on HP-UX the gcc test will end up 5021 # making a dummy file named 'D' -- because '-MD' means "put the output 5022 # in D". 5023 rm -rf conftest.dir 5024 mkdir conftest.dir 5025 # Copy depcomp to subdir because otherwise we won't find it if we're 5026 # using a relative directory. 5027 cp "$am_depcomp" conftest.dir 5028 cd conftest.dir 5029 # We will build objects and dependencies in a subdirectory because 5030 # it helps to detect inapplicable dependency modes. For instance 5031 # both Tru64's cc and ICC support -MD to output dependencies as a 5032 # side effect of compilation, but ICC will put the dependencies in 5033 # the current directory while Tru64 will put them in the object 5034 # directory. 5035 mkdir sub 5036 5037 am_cv_CC_dependencies_compiler_type=none 5038 if test "$am_compiler_list" = ""; then 5039 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5040 fi 5041 am__universal=false 5042 case " $depcc " in #( 5043 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5044 esac 5045 5046 for depmode in $am_compiler_list; do 5047 # Setup a source with many dependencies, because some compilers 5048 # like to wrap large dependency lists on column 80 (with \), and 5049 # we should not choose a depcomp mode which is confused by this. 5050 # 5051 # We need to recreate these files for each test, as the compiler may 5052 # overwrite some of them when testing with obscure command lines. 5053 # This happens at least with the AIX C compiler. 5054 : > sub/conftest.c 5055 for i in 1 2 3 4 5 6; do 5056 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5057 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5058 # Solaris 10 /bin/sh. 5059 echo '/* dummy */' > sub/conftst$i.h 5060 done 5061 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5062 5063 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5064 # mode. It turns out that the SunPro C++ compiler does not properly 5065 # handle '-M -o', and we need to detect this. Also, some Intel 5066 # versions had trouble with output in subdirs. 5067 am__obj=sub/conftest.${OBJEXT-o} 5068 am__minus_obj="-o $am__obj" 5069 case $depmode in 5070 gcc) 5071 # This depmode causes a compiler race in universal mode. 5072 test "$am__universal" = false || continue 5073 ;; 5074 nosideeffect) 5075 # After this tag, mechanisms are not by side-effect, so they'll 5076 # only be used when explicitly requested. 5077 if test "x$enable_dependency_tracking" = xyes; then 5078 continue 5079 else 5080 break 5081 fi 5082 ;; 5083 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5084 # This compiler won't grok '-c -o', but also, the minuso test has 5085 # not run yet. These depmodes are late enough in the game, and 5086 # so weak that their functioning should not be impacted. 5087 am__obj=conftest.${OBJEXT-o} 5088 am__minus_obj= 5089 ;; 5090 none) break ;; 5091 esac 5092 if depmode=$depmode \ 5093 source=sub/conftest.c object=$am__obj \ 5094 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5095 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5096 >/dev/null 2>conftest.err && 5097 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5098 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5099 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5100 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5101 # icc doesn't choke on unknown options, it will just issue warnings 5102 # or remarks (even with -Werror). So we grep stderr for any message 5103 # that says an option was ignored or not supported. 5104 # When given -MP, icc 7.0 and 7.1 complain thusly: 5105 # icc: Command line warning: ignoring option '-M'; no argument required 5106 # The diagnosis changed in icc 8.0: 5107 # icc: Command line remark: option '-MP' not supported 5108 if (grep 'ignoring option' conftest.err || 5109 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5110 am_cv_CC_dependencies_compiler_type=$depmode 5111 break 5112 fi 5113 fi 5114 done 5115 5116 cd .. 5117 rm -rf conftest.dir 5118 else 5119 am_cv_CC_dependencies_compiler_type=none 5120 fi 5121 5122 fi 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5124 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5125 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5126 5127 if 5128 test "x$enable_dependency_tracking" != xno \ 5129 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5130 am__fastdepCC_TRUE= 5131 am__fastdepCC_FALSE='#' 5132 else 5133 am__fastdepCC_TRUE='#' 5134 am__fastdepCC_FALSE= 5135 fi 5136 5137 5138 case $ac_cv_prog_cc_stdc in #( 5139 no) : 5140 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 5141 *) : 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 5143 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 5144 if ${ac_cv_prog_cc_c99+:} false; then : 5145 $as_echo_n "(cached) " >&6 5146 else 5147 ac_cv_prog_cc_c99=no 5148 ac_save_CC=$CC 5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5150 /* end confdefs.h. */ 5151 #include <stdarg.h> 5152 #include <stdbool.h> 5153 #include <stdlib.h> 5154 #include <wchar.h> 5155 #include <stdio.h> 5156 5157 // Check varargs macros. These examples are taken from C99 6.10.3.5. 5158 #define debug(...) fprintf (stderr, __VA_ARGS__) 5159 #define showlist(...) puts (#__VA_ARGS__) 5160 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 5161 static void 5162 test_varargs_macros (void) 5163 { 5164 int x = 1234; 5165 int y = 5678; 5166 debug ("Flag"); 5167 debug ("X = %d\n", x); 5168 showlist (The first, second, and third items.); 5169 report (x>y, "x is %d but y is %d", x, y); 5170 } 5171 5172 // Check long long types. 5173 #define BIG64 18446744073709551615ull 5174 #define BIG32 4294967295ul 5175 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 5176 #if !BIG_OK 5177 your preprocessor is broken; 5178 #endif 5179 #if BIG_OK 5180 #else 5181 your preprocessor is broken; 5182 #endif 5183 static long long int bignum = -9223372036854775807LL; 5184 static unsigned long long int ubignum = BIG64; 5185 5186 struct incomplete_array 5187 { 5188 int datasize; 5189 double data[]; 5190 }; 5191 5192 struct named_init { 5193 int number; 5194 const wchar_t *name; 5195 double average; 5196 }; 5197 5198 typedef const char *ccp; 5199 5200 static inline int 5201 test_restrict (ccp restrict text) 5202 { 5203 // See if C++-style comments work. 5204 // Iterate through items via the restricted pointer. 5205 // Also check for declarations in for loops. 5206 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 5207 continue; 5208 return 0; 5209 } 5210 5211 // Check varargs and va_copy. 5212 static void 5213 test_varargs (const char *format, ...) 5214 { 5215 va_list args; 5216 va_start (args, format); 5217 va_list args_copy; 5218 va_copy (args_copy, args); 5219 5220 const char *str; 5221 int number; 5222 float fnumber; 5223 5224 while (*format) 5225 { 5226 switch (*format++) 5227 { 5228 case 's': // string 5229 str = va_arg (args_copy, const char *); 5230 break; 5231 case 'd': // int 5232 number = va_arg (args_copy, int); 5233 break; 5234 case 'f': // float 5235 fnumber = va_arg (args_copy, double); 5236 break; 5237 default: 5238 break; 5239 } 5240 } 5241 va_end (args_copy); 5242 va_end (args); 5243 } 5244 5245 int 5246 main () 5247 { 5248 5249 // Check bool. 5250 _Bool success = false; 5251 5252 // Check restrict. 5253 if (test_restrict ("String literal") == 0) 5254 success = true; 5255 char *restrict newvar = "Another string"; 5256 5257 // Check varargs. 5258 test_varargs ("s, d' f .", "string", 65, 34.234); 5259 test_varargs_macros (); 5260 5261 // Check flexible array members. 5262 struct incomplete_array *ia = 5263 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 5264 ia->datasize = 10; 5265 for (int i = 0; i < ia->datasize; ++i) 5266 ia->data[i] = i * 1.234; 5267 5268 // Check named initializers. 5269 struct named_init ni = { 5270 .number = 34, 5271 .name = L"Test wide string", 5272 .average = 543.34343, 5273 }; 5274 5275 ni.number = 58; 5276 5277 int dynamic_array[ni.number]; 5278 dynamic_array[ni.number - 1] = 543; 5279 5280 // work around unused variable warnings 5281 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 5282 || dynamic_array[ni.number - 1] != 543); 5283 5284 ; 5285 return 0; 5286 } 5287 _ACEOF 5288 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 5289 do 5290 CC="$ac_save_CC $ac_arg" 5291 if ac_fn_c_try_compile "$LINENO"; then : 5292 ac_cv_prog_cc_c99=$ac_arg 5293 fi 5294 rm -f core conftest.err conftest.$ac_objext 5295 test "x$ac_cv_prog_cc_c99" != "xno" && break 5296 done 5297 rm -f conftest.$ac_ext 5298 CC=$ac_save_CC 5299 5300 fi 5301 # AC_CACHE_VAL 5302 case "x$ac_cv_prog_cc_c99" in 5303 x) 5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5305 $as_echo "none needed" >&6; } ;; 5306 xno) 5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5308 $as_echo "unsupported" >&6; } ;; 5309 *) 5310 CC="$CC $ac_cv_prog_cc_c99" 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 5312 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 5313 esac 5314 if test "x$ac_cv_prog_cc_c99" != xno; then : 5315 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 5316 else 5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5318 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5319 if ${ac_cv_prog_cc_c89+:} false; then : 5320 $as_echo_n "(cached) " >&6 5321 else 5322 ac_cv_prog_cc_c89=no 5323 ac_save_CC=$CC 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5325 /* end confdefs.h. */ 5326 #include <stdarg.h> 5327 #include <stdio.h> 5328 struct stat; 5329 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5330 struct buf { int x; }; 5331 FILE * (*rcsopen) (struct buf *, struct stat *, int); 5332 static char *e (p, i) 5333 char **p; 5334 int i; 5335 { 5336 return p[i]; 5337 } 5338 static char *f (char * (*g) (char **, int), char **p, ...) 5339 { 5340 char *s; 5341 va_list v; 5342 va_start (v,p); 5343 s = g (p, va_arg (v,int)); 5344 va_end (v); 5345 return s; 5346 } 5347 5348 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5349 function prototypes and stuff, but not '\xHH' hex character constants. 5350 These don't provoke an error unfortunately, instead are silently treated 5351 as 'x'. The following induces an error, until -std is added to get 5352 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5353 array size at least. It's necessary to write '\x00'==0 to get something 5354 that's true only with -std. */ 5355 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5356 5357 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5358 inside strings and character constants. */ 5359 #define FOO(x) 'x' 5360 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5361 5362 int test (int i, double x); 5363 struct s1 {int (*f) (int a);}; 5364 struct s2 {int (*f) (double a);}; 5365 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5366 int argc; 5367 char **argv; 5368 int 5369 main () 5370 { 5371 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5372 ; 5373 return 0; 5374 } 5375 _ACEOF 5376 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5377 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5378 do 5379 CC="$ac_save_CC $ac_arg" 5380 if ac_fn_c_try_compile "$LINENO"; then : 5381 ac_cv_prog_cc_c89=$ac_arg 5382 fi 5383 rm -f core conftest.err conftest.$ac_objext 5384 test "x$ac_cv_prog_cc_c89" != "xno" && break 5385 done 5386 rm -f conftest.$ac_ext 5387 CC=$ac_save_CC 5388 5389 fi 5390 # AC_CACHE_VAL 5391 case "x$ac_cv_prog_cc_c89" in 5392 x) 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5394 $as_echo "none needed" >&6; } ;; 5395 xno) 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5397 $as_echo "unsupported" >&6; } ;; 5398 *) 5399 CC="$CC $ac_cv_prog_cc_c89" 5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5401 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5402 esac 5403 if test "x$ac_cv_prog_cc_c89" != xno; then : 5404 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 5405 else 5406 ac_cv_prog_cc_stdc=no 5407 fi 5408 5409 fi 5410 ;; 5411 esac 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 5413 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 5414 if ${ac_cv_prog_cc_stdc+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416 fi 5417 5418 case $ac_cv_prog_cc_stdc in #( 5419 no) : 5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5421 $as_echo "unsupported" >&6; } ;; #( 5422 '') : 5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5424 $as_echo "none needed" >&6; } ;; #( 5425 *) : 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 5427 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 5428 esac 5429 5430 ac_ext=c 5431 ac_cpp='$CPP $CPPFLAGS' 5432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5434 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5436 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5437 # On Suns, sometimes $CPP names a directory. 5438 if test -n "$CPP" && test -d "$CPP"; then 5439 CPP= 5440 fi 5441 if test -z "$CPP"; then 5442 if ${ac_cv_prog_CPP+:} false; then : 5443 $as_echo_n "(cached) " >&6 5444 else 5445 # Double quotes because CPP needs to be expanded 5446 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5447 do 5448 ac_preproc_ok=false 5449 for ac_c_preproc_warn_flag in '' yes 5450 do 5451 # Use a header file that comes with gcc, so configuring glibc 5452 # with a fresh cross-compiler works. 5453 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5454 # <limits.h> exists even on freestanding compilers. 5455 # On the NeXT, cc -E runs the code through the compiler's parser, 5456 # not just through cpp. "Syntax error" is here to catch this case. 5457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5458 /* end confdefs.h. */ 5459 #ifdef __STDC__ 5460 # include <limits.h> 5461 #else 5462 # include <assert.h> 5463 #endif 5464 Syntax error 5465 _ACEOF 5466 if ac_fn_c_try_cpp "$LINENO"; then : 5467 5468 else 5469 # Broken: fails on valid input. 5470 continue 5471 fi 5472 rm -f conftest.err conftest.i conftest.$ac_ext 5473 5474 # OK, works on sane cases. Now check whether nonexistent headers 5475 # can be detected and how. 5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5477 /* end confdefs.h. */ 5478 #include <ac_nonexistent.h> 5479 _ACEOF 5480 if ac_fn_c_try_cpp "$LINENO"; then : 5481 # Broken: success on invalid input. 5482 continue 5483 else 5484 # Passes both tests. 5485 ac_preproc_ok=: 5486 break 5487 fi 5488 rm -f conftest.err conftest.i conftest.$ac_ext 5489 5490 done 5491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5492 rm -f conftest.i conftest.err conftest.$ac_ext 5493 if $ac_preproc_ok; then : 5494 break 5495 fi 5496 5497 done 5498 ac_cv_prog_CPP=$CPP 5499 5500 fi 5501 CPP=$ac_cv_prog_CPP 5502 else 5503 ac_cv_prog_CPP=$CPP 5504 fi 5505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5506 $as_echo "$CPP" >&6; } 5507 ac_preproc_ok=false 5508 for ac_c_preproc_warn_flag in '' yes 5509 do 5510 # Use a header file that comes with gcc, so configuring glibc 5511 # with a fresh cross-compiler works. 5512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5513 # <limits.h> exists even on freestanding compilers. 5514 # On the NeXT, cc -E runs the code through the compiler's parser, 5515 # not just through cpp. "Syntax error" is here to catch this case. 5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5517 /* end confdefs.h. */ 5518 #ifdef __STDC__ 5519 # include <limits.h> 5520 #else 5521 # include <assert.h> 5522 #endif 5523 Syntax error 5524 _ACEOF 5525 if ac_fn_c_try_cpp "$LINENO"; then : 5526 5527 else 5528 # Broken: fails on valid input. 5529 continue 5530 fi 5531 rm -f conftest.err conftest.i conftest.$ac_ext 5532 5533 # OK, works on sane cases. Now check whether nonexistent headers 5534 # can be detected and how. 5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536 /* end confdefs.h. */ 5537 #include <ac_nonexistent.h> 5538 _ACEOF 5539 if ac_fn_c_try_cpp "$LINENO"; then : 5540 # Broken: success on invalid input. 5541 continue 5542 else 5543 # Passes both tests. 5544 ac_preproc_ok=: 5545 break 5546 fi 5547 rm -f conftest.err conftest.i conftest.$ac_ext 5548 5549 done 5550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5551 rm -f conftest.i conftest.err conftest.$ac_ext 5552 if $ac_preproc_ok; then : 5553 5554 else 5555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5557 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5558 See \`config.log' for more details" "$LINENO" 5; } 5559 fi 5560 5561 ac_ext=c 5562 ac_cpp='$CPP $CPPFLAGS' 5563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5565 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5566 5567 ac_c_preproc_warn_flag=yes 5568 for ac_prog in 'bison -y' byacc 5569 do 5570 # Extract the first word of "$ac_prog", so it can be a program name with args. 5571 set dummy $ac_prog; ac_word=$2 5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5573 $as_echo_n "checking for $ac_word... " >&6; } 5574 if ${ac_cv_prog_YACC+:} false; then : 5575 $as_echo_n "(cached) " >&