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