1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for FOXTESTS 1.4.21. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME='FOXTESTS' 579PACKAGE_TARNAME='foxtests' 580PACKAGE_VERSION='1.4.21' 581PACKAGE_STRING='FOXTESTS 1.4.21' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585ac_unique_file="scribble.cpp" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_header_list= 623ac_subst_vars='am__EXEEXT_FALSE 624am__EXEEXT_TRUE 625LTLIBOBJS 626CYGPATH 627FOXDEPS 628FOXLIB 629LIBOBJS 630ALLOCA 631LN_S 632EGREP 633GREP 634FREETYPE_CONFIG 635XFT_CONFIG 636CXXCPP 637am__fastdepCXX_FALSE 638am__fastdepCXX_TRUE 639CXXDEPMODE 640ac_ct_CXX 641CXXFLAGS 642CPP 643am__fastdepCC_FALSE 644am__fastdepCC_TRUE 645CCDEPMODE 646am__nodep 647AMDEPBACKSLASH 648AMDEP_FALSE 649AMDEP_TRUE 650am__quote 651am__include 652DEPDIR 653OBJEXT 654EXEEXT 655ac_ct_CC 656CPPFLAGS 657LDFLAGS 658CFLAGS 659CXX 660CC 661WINDRES 662SED 663AR 664MAKE 665DLL_CFLAGS 666host_os 667host_vendor 668host_cpu 669host 670build_os 671build_vendor 672build_cpu 673build 674AM_BACKSLASH 675AM_DEFAULT_VERBOSITY 676AM_DEFAULT_V 677AM_V 678am__untar 679am__tar 680AMTAR 681am__leading_dot 682SET_MAKE 683AWK 684mkdir_p 685MKDIR_P 686INSTALL_STRIP_PROGRAM 687STRIP 688install_sh 689MAKEINFO 690AUTOHEADER 691AUTOMAKE 692AUTOCONF 693ACLOCAL 694VERSION 695PACKAGE 696CYGPATH_W 697am__isrc 698INSTALL_DATA 699INSTALL_SCRIPT 700INSTALL_PROGRAM 701target_alias 702host_alias 703build_alias 704LIBS 705ECHO_T 706ECHO_N 707ECHO_C 708DEFS 709mandir 710localedir 711libdir 712psdir 713pdfdir 714dvidir 715htmldir 716infodir 717docdir 718oldincludedir 719includedir 720localstatedir 721sharedstatedir 722sysconfdir 723datadir 724datarootdir 725libexecdir 726sbindir 727bindir 728program_transform_name 729prefix 730exec_prefix 731PACKAGE_URL 732PACKAGE_BUGREPORT 733PACKAGE_STRING 734PACKAGE_VERSION 735PACKAGE_TARNAME 736PACKAGE_NAME 737PATH_SEPARATOR 738SHELL' 739ac_subst_files='' 740ac_user_opts=' 741enable_option_checking 742enable_silent_rules 743with_csl 744with_psl 745with_mingw64 746with_build 747with_pslbuild 748with_cygbuild 749with_cygbuild64 750with_force 751with_crlibm 752with_cygwin 753with_fox 754with_fox_pending 755enable_debug 756enable_dependency_tracking 757with_xim 758with_xft 759' 760 ac_precious_vars='build_alias 761host_alias 762target_alias 763CC 764CFLAGS 765LDFLAGS 766LIBS 767CPPFLAGS 768CPP 769CXX 770CXXFLAGS 771CCC 772CXXCPP' 773 774 775# Initialize some variables set by options. 776ac_init_help= 777ac_init_version=false 778ac_unrecognized_opts= 779ac_unrecognized_sep= 780# The variables have the same names as the options, with 781# dashes changed to underlines. 782cache_file=/dev/null 783exec_prefix=NONE 784no_create= 785no_recursion= 786prefix=NONE 787program_prefix=NONE 788program_suffix=NONE 789program_transform_name=s,x,x, 790silent= 791site= 792srcdir= 793verbose= 794x_includes=NONE 795x_libraries=NONE 796 797# Installation directory options. 798# These are left unexpanded so users can "make install exec_prefix=/foo" 799# and all the variables that are supposed to be based on exec_prefix 800# by default will actually change. 801# Use braces instead of parens because sh, perl, etc. also accept them. 802# (The list follows the same order as the GNU Coding Standards.) 803bindir='${exec_prefix}/bin' 804sbindir='${exec_prefix}/sbin' 805libexecdir='${exec_prefix}/libexec' 806datarootdir='${prefix}/share' 807datadir='${datarootdir}' 808sysconfdir='${prefix}/etc' 809sharedstatedir='${prefix}/com' 810localstatedir='${prefix}/var' 811includedir='${prefix}/include' 812oldincludedir='/usr/include' 813docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 814infodir='${datarootdir}/info' 815htmldir='${docdir}' 816dvidir='${docdir}' 817pdfdir='${docdir}' 818psdir='${docdir}' 819libdir='${exec_prefix}/lib' 820localedir='${datarootdir}/locale' 821mandir='${datarootdir}/man' 822 823ac_prev= 824ac_dashdash= 825for ac_option 826do 827 # If the previous option needs an argument, assign it. 828 if test -n "$ac_prev"; then 829 eval $ac_prev=\$ac_option 830 ac_prev= 831 continue 832 fi 833 834 case $ac_option in 835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 836 *=) ac_optarg= ;; 837 *) ac_optarg=yes ;; 838 esac 839 840 # Accept the important Cygnus configure options, so we can diagnose typos. 841 842 case $ac_dashdash$ac_option in 843 --) 844 ac_dashdash=yes ;; 845 846 -bindir | --bindir | --bindi | --bind | --bin | --bi) 847 ac_prev=bindir ;; 848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 849 bindir=$ac_optarg ;; 850 851 -build | --build | --buil | --bui | --bu) 852 ac_prev=build_alias ;; 853 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 854 build_alias=$ac_optarg ;; 855 856 -cache-file | --cache-file | --cache-fil | --cache-fi \ 857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 858 ac_prev=cache_file ;; 859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 861 cache_file=$ac_optarg ;; 862 863 --config-cache | -C) 864 cache_file=config.cache ;; 865 866 -datadir | --datadir | --datadi | --datad) 867 ac_prev=datadir ;; 868 -datadir=* | --datadir=* | --datadi=* | --datad=*) 869 datadir=$ac_optarg ;; 870 871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 872 | --dataroo | --dataro | --datar) 873 ac_prev=datarootdir ;; 874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 876 datarootdir=$ac_optarg ;; 877 878 -disable-* | --disable-*) 879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 880 # Reject names that are not valid shell variable names. 881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 882 as_fn_error $? "invalid feature name: $ac_useropt" 883 ac_useropt_orig=$ac_useropt 884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 885 case $ac_user_opts in 886 *" 887"enable_$ac_useropt" 888"*) ;; 889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 890 ac_unrecognized_sep=', ';; 891 esac 892 eval enable_$ac_useropt=no ;; 893 894 -docdir | --docdir | --docdi | --doc | --do) 895 ac_prev=docdir ;; 896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 897 docdir=$ac_optarg ;; 898 899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 900 ac_prev=dvidir ;; 901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 902 dvidir=$ac_optarg ;; 903 904 -enable-* | --enable-*) 905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 906 # Reject names that are not valid shell variable names. 907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 908 as_fn_error $? "invalid feature name: $ac_useropt" 909 ac_useropt_orig=$ac_useropt 910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 911 case $ac_user_opts in 912 *" 913"enable_$ac_useropt" 914"*) ;; 915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 916 ac_unrecognized_sep=', ';; 917 esac 918 eval enable_$ac_useropt=\$ac_optarg ;; 919 920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 922 | --exec | --exe | --ex) 923 ac_prev=exec_prefix ;; 924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 926 | --exec=* | --exe=* | --ex=*) 927 exec_prefix=$ac_optarg ;; 928 929 -gas | --gas | --ga | --g) 930 # Obsolete; use --with-gas. 931 with_gas=yes ;; 932 933 -help | --help | --hel | --he | -h) 934 ac_init_help=long ;; 935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 936 ac_init_help=recursive ;; 937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 938 ac_init_help=short ;; 939 940 -host | --host | --hos | --ho) 941 ac_prev=host_alias ;; 942 -host=* | --host=* | --hos=* | --ho=*) 943 host_alias=$ac_optarg ;; 944 945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 946 ac_prev=htmldir ;; 947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 948 | --ht=*) 949 htmldir=$ac_optarg ;; 950 951 -includedir | --includedir | --includedi | --included | --include \ 952 | --includ | --inclu | --incl | --inc) 953 ac_prev=includedir ;; 954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 955 | --includ=* | --inclu=* | --incl=* | --inc=*) 956 includedir=$ac_optarg ;; 957 958 -infodir | --infodir | --infodi | --infod | --info | --inf) 959 ac_prev=infodir ;; 960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 961 infodir=$ac_optarg ;; 962 963 -libdir | --libdir | --libdi | --libd) 964 ac_prev=libdir ;; 965 -libdir=* | --libdir=* | --libdi=* | --libd=*) 966 libdir=$ac_optarg ;; 967 968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 969 | --libexe | --libex | --libe) 970 ac_prev=libexecdir ;; 971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 972 | --libexe=* | --libex=* | --libe=*) 973 libexecdir=$ac_optarg ;; 974 975 -localedir | --localedir | --localedi | --localed | --locale) 976 ac_prev=localedir ;; 977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 978 localedir=$ac_optarg ;; 979 980 -localstatedir | --localstatedir | --localstatedi | --localstated \ 981 | --localstate | --localstat | --localsta | --localst | --locals) 982 ac_prev=localstatedir ;; 983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 985 localstatedir=$ac_optarg ;; 986 987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 988 ac_prev=mandir ;; 989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 990 mandir=$ac_optarg ;; 991 992 -nfp | --nfp | --nf) 993 # Obsolete; use --without-fp. 994 with_fp=no ;; 995 996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 997 | --no-cr | --no-c | -n) 998 no_create=yes ;; 999 1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1002 no_recursion=yes ;; 1003 1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1006 | --oldin | --oldi | --old | --ol | --o) 1007 ac_prev=oldincludedir ;; 1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1011 oldincludedir=$ac_optarg ;; 1012 1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1014 ac_prev=prefix ;; 1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1016 prefix=$ac_optarg ;; 1017 1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1019 | --program-pre | --program-pr | --program-p) 1020 ac_prev=program_prefix ;; 1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1023 program_prefix=$ac_optarg ;; 1024 1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1026 | --program-suf | --program-su | --program-s) 1027 ac_prev=program_suffix ;; 1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1030 program_suffix=$ac_optarg ;; 1031 1032 -program-transform-name | --program-transform-name \ 1033 | --program-transform-nam | --program-transform-na \ 1034 | --program-transform-n | --program-transform- \ 1035 | --program-transform | --program-transfor \ 1036 | --program-transfo | --program-transf \ 1037 | --program-trans | --program-tran \ 1038 | --progr-tra | --program-tr | --program-t) 1039 ac_prev=program_transform_name ;; 1040 -program-transform-name=* | --program-transform-name=* \ 1041 | --program-transform-nam=* | --program-transform-na=* \ 1042 | --program-transform-n=* | --program-transform-=* \ 1043 | --program-transform=* | --program-transfor=* \ 1044 | --program-transfo=* | --program-transf=* \ 1045 | --program-trans=* | --program-tran=* \ 1046 | --progr-tra=* | --program-tr=* | --program-t=*) 1047 program_transform_name=$ac_optarg ;; 1048 1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1050 ac_prev=pdfdir ;; 1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1052 pdfdir=$ac_optarg ;; 1053 1054 -psdir | --psdir | --psdi | --psd | --ps) 1055 ac_prev=psdir ;; 1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1057 psdir=$ac_optarg ;; 1058 1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1060 | -silent | --silent | --silen | --sile | --sil) 1061 silent=yes ;; 1062 1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1064 ac_prev=sbindir ;; 1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1066 | --sbi=* | --sb=*) 1067 sbindir=$ac_optarg ;; 1068 1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1071 | --sharedst | --shareds | --shared | --share | --shar \ 1072 | --sha | --sh) 1073 ac_prev=sharedstatedir ;; 1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1077 | --sha=* | --sh=*) 1078 sharedstatedir=$ac_optarg ;; 1079 1080 -site | --site | --sit) 1081 ac_prev=site ;; 1082 -site=* | --site=* | --sit=*) 1083 site=$ac_optarg ;; 1084 1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1086 ac_prev=srcdir ;; 1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1088 srcdir=$ac_optarg ;; 1089 1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1091 | --syscon | --sysco | --sysc | --sys | --sy) 1092 ac_prev=sysconfdir ;; 1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1095 sysconfdir=$ac_optarg ;; 1096 1097 -target | --target | --targe | --targ | --tar | --ta | --t) 1098 ac_prev=target_alias ;; 1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1100 target_alias=$ac_optarg ;; 1101 1102 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1103 verbose=yes ;; 1104 1105 -version | --version | --versio | --versi | --vers | -V) 1106 ac_init_version=: ;; 1107 1108 -with-* | --with-*) 1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1110 # Reject names that are not valid shell variable names. 1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1112 as_fn_error $? "invalid package name: $ac_useropt" 1113 ac_useropt_orig=$ac_useropt 1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1115 case $ac_user_opts in 1116 *" 1117"with_$ac_useropt" 1118"*) ;; 1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1120 ac_unrecognized_sep=', ';; 1121 esac 1122 eval with_$ac_useropt=\$ac_optarg ;; 1123 1124 -without-* | --without-*) 1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1126 # Reject names that are not valid shell variable names. 1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1128 as_fn_error $? "invalid package name: $ac_useropt" 1129 ac_useropt_orig=$ac_useropt 1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1131 case $ac_user_opts in 1132 *" 1133"with_$ac_useropt" 1134"*) ;; 1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1136 ac_unrecognized_sep=', ';; 1137 esac 1138 eval with_$ac_useropt=no ;; 1139 1140 --x) 1141 # Obsolete; use --with-x. 1142 with_x=yes ;; 1143 1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1145 | --x-incl | --x-inc | --x-in | --x-i) 1146 ac_prev=x_includes ;; 1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1149 x_includes=$ac_optarg ;; 1150 1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1153 ac_prev=x_libraries ;; 1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1156 x_libraries=$ac_optarg ;; 1157 1158 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1159Try \`$0 --help' for more information" 1160 ;; 1161 1162 *=*) 1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1164 # Reject names that are not valid shell variable names. 1165 case $ac_envvar in #( 1166 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1167 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1168 esac 1169 eval $ac_envvar=\$ac_optarg 1170 export $ac_envvar ;; 1171 1172 *) 1173 # FIXME: should be removed in autoconf 3.0. 1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1178 ;; 1179 1180 esac 1181done 1182 1183if test -n "$ac_prev"; then 1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1185 as_fn_error $? "missing argument to $ac_option" 1186fi 1187 1188if test -n "$ac_unrecognized_opts"; then 1189 case $enable_option_checking in 1190 no) ;; 1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1193 esac 1194fi 1195 1196# Check all directory arguments for consistency. 1197for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1198 datadir sysconfdir sharedstatedir localstatedir includedir \ 1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1200 libdir localedir mandir 1201do 1202 eval ac_val=\$$ac_var 1203 # Remove trailing slashes. 1204 case $ac_val in 1205 */ ) 1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1207 eval $ac_var=\$ac_val;; 1208 esac 1209 # Be sure to have absolute directory names. 1210 case $ac_val in 1211 [\\/$]* | ?:[\\/]* ) continue;; 1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1213 esac 1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1215done 1216 1217# There might be people who depend on the old broken behavior: `$host' 1218# used to hold the argument of --host etc. 1219# FIXME: To remove some day. 1220build=$build_alias 1221host=$host_alias 1222target=$target_alias 1223 1224# FIXME: To remove some day. 1225if test "x$host_alias" != x; then 1226 if test "x$build_alias" = x; then 1227 cross_compiling=maybe 1228 elif test "x$build_alias" != "x$host_alias"; then 1229 cross_compiling=yes 1230 fi 1231fi 1232 1233ac_tool_prefix= 1234test -n "$host_alias" && ac_tool_prefix=$host_alias- 1235 1236test "$silent" = yes && exec 6>/dev/null 1237 1238 1239ac_pwd=`pwd` && test -n "$ac_pwd" && 1240ac_ls_di=`ls -di .` && 1241ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1242 as_fn_error $? "working directory cannot be determined" 1243test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1244 as_fn_error $? "pwd does not report name of working directory" 1245 1246 1247# Find the source files, if location was not specified. 1248if test -z "$srcdir"; then 1249 ac_srcdir_defaulted=yes 1250 # Try the directory containing this script, then the parent directory. 1251 ac_confdir=`$as_dirname -- "$as_myself" || 1252$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1253 X"$as_myself" : 'X\(//\)[^/]' \| \ 1254 X"$as_myself" : 'X\(//\)$' \| \ 1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1256$as_echo X"$as_myself" | 1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1258 s//\1/ 1259 q 1260 } 1261 /^X\(\/\/\)[^/].*/{ 1262 s//\1/ 1263 q 1264 } 1265 /^X\(\/\/\)$/{ 1266 s//\1/ 1267 q 1268 } 1269 /^X\(\/\).*/{ 1270 s//\1/ 1271 q 1272 } 1273 s/.*/./; q'` 1274 srcdir=$ac_confdir 1275 if test ! -r "$srcdir/$ac_unique_file"; then 1276 srcdir=.. 1277 fi 1278else 1279 ac_srcdir_defaulted=no 1280fi 1281if test ! -r "$srcdir/$ac_unique_file"; then 1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1284fi 1285ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1286ac_abs_confdir=`( 1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1288 pwd)` 1289# When building in place, set srcdir=. 1290if test "$ac_abs_confdir" = "$ac_pwd"; then 1291 srcdir=. 1292fi 1293# Remove unnecessary trailing slashes from srcdir. 1294# Double slashes in file names in object file debugging info 1295# mess up M-x gdb in Emacs. 1296case $srcdir in 1297*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1298esac 1299for ac_var in $ac_precious_vars; do 1300 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1301 eval ac_env_${ac_var}_value=\$${ac_var} 1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1303 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1304done 1305 1306# 1307# Report the --help message. 1308# 1309if test "$ac_init_help" = "long"; then 1310 # Omit some internal or obsolete options to make the list less imposing. 1311 # This message is too long to be a string in the A/UX 3.1 sh. 1312 cat <<_ACEOF 1313\`configure' configures FOXTESTS 1.4.21 to adapt to many kinds of systems. 1314 1315Usage: $0 [OPTION]... [VAR=VALUE]... 1316 1317To assign environment variables (e.g., CC, CFLAGS...), specify them as 1318VAR=VALUE. See below for descriptions of some of the useful variables. 1319 1320Defaults for the options are specified in brackets. 1321 1322Configuration: 1323 -h, --help display this help and exit 1324 --help=short display options specific to this package 1325 --help=recursive display the short help of all the included packages 1326 -V, --version display version information and exit 1327 -q, --quiet, --silent do not print \`checking ...' messages 1328 --cache-file=FILE cache test results in FILE [disabled] 1329 -C, --config-cache alias for \`--cache-file=config.cache' 1330 -n, --no-create do not create output files 1331 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1332 1333Installation directories: 1334 --prefix=PREFIX install architecture-independent files in PREFIX 1335 [$ac_default_prefix] 1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1337 [PREFIX] 1338 1339By default, \`make install' will install all the files in 1340\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1341an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1342for instance \`--prefix=\$HOME'. 1343 1344For better control, use the options below. 1345 1346Fine tuning of the installation directories: 1347 --bindir=DIR user executables [EPREFIX/bin] 1348 --sbindir=DIR system admin executables [EPREFIX/sbin] 1349 --libexecdir=DIR program executables [EPREFIX/libexec] 1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1353 --libdir=DIR object code libraries [EPREFIX/lib] 1354 --includedir=DIR C header files [PREFIX/include] 1355 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1358 --infodir=DIR info documentation [DATAROOTDIR/info] 1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1360 --mandir=DIR man documentation [DATAROOTDIR/man] 1361 --docdir=DIR documentation root [DATAROOTDIR/doc/foxtests] 1362 --htmldir=DIR html documentation [DOCDIR] 1363 --dvidir=DIR dvi documentation [DOCDIR] 1364 --pdfdir=DIR pdf documentation [DOCDIR] 1365 --psdir=DIR ps documentation [DOCDIR] 1366_ACEOF 1367 1368 cat <<\_ACEOF 1369 1370Program names: 1371 --program-prefix=PREFIX prepend PREFIX to installed program names 1372 --program-suffix=SUFFIX append SUFFIX to installed program names 1373 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1374 1375System types: 1376 --build=BUILD configure for building on BUILD [guessed] 1377 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1378_ACEOF 1379fi 1380 1381if test -n "$ac_init_help"; then 1382 case $ac_init_help in 1383 short | recursive ) echo "Configuration of FOXTESTS 1.4.21:";; 1384 esac 1385 cat <<\_ACEOF 1386 1387Optional Features: 1388 --disable-option-checking ignore unrecognized --enable/--with options 1389 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1390 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1391 --enable-silent-rules less verbose build output (undo: "make V=1") 1392 --disable-silent-rules verbose build output (undo: "make V=0") 1393 --enable-debug compile for debugging 1394 --enable-dependency-tracking 1395 do not reject slow dependency extractors 1396 --disable-dependency-tracking 1397 speeds up one-time build 1398 1399Optional Packages: 1400 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1401 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1402 --with-csl Use the CSL Lisp system 1403 --with-psl Use the PSL Lisp system 1404 --with-mingw64 Use internally with CSL 1405 --with-build Used internally to control build directory 1406 --with-pslbuild Used internally to control build directory 1407 --with-cygbuild Used internally to control build directory 1408 --with-cygbuild64 Used internally to control build directory 1409 --with-force Used internally 1410 --with-crlibm Used internally 1411 --with-cygwin Force use of raw cywgin (note GPL) 1412 --with-fox=DIR FOX installation location 1413 --with-fox-pending do not check dir from --with-fox 1414 --with-xim Can be used to control use of XIM 1415 --with-xft Can be used to disable use of XFT 1416 1417Some influential environment variables: 1418 CC C compiler command 1419 CFLAGS C compiler flags 1420 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1421 nonstandard directory <lib dir> 1422 LIBS libraries to pass to the linker, e.g. -l<library> 1423 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1424 you have headers in a nonstandard directory <include dir> 1425 CPP C preprocessor 1426 CXX C++ compiler command 1427 CXXFLAGS C++ compiler flags 1428 CXXCPP C++ preprocessor 1429 1430Use these variables to override the choices made by `configure' or to help 1431it to find libraries and programs with nonstandard names/locations. 1432 1433Report bugs to the package provider. 1434_ACEOF 1435ac_status=$? 1436fi 1437 1438if test "$ac_init_help" = "recursive"; then 1439 # If there are subdirs, report their specific --help. 1440 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1441 test -d "$ac_dir" || 1442 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1443 continue 1444 ac_builddir=. 1445 1446case "$ac_dir" in 1447.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1448*) 1449 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1450 # A ".." for each directory in $ac_dir_suffix. 1451 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1452 case $ac_top_builddir_sub in 1453 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1454 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1455 esac ;; 1456esac 1457ac_abs_top_builddir=$ac_pwd 1458ac_abs_builddir=$ac_pwd$ac_dir_suffix 1459# for backward compatibility: 1460ac_top_builddir=$ac_top_build_prefix 1461 1462case $srcdir in 1463 .) # We are building in place. 1464 ac_srcdir=. 1465 ac_top_srcdir=$ac_top_builddir_sub 1466 ac_abs_top_srcdir=$ac_pwd ;; 1467 [\\/]* | ?:[\\/]* ) # Absolute name. 1468 ac_srcdir=$srcdir$ac_dir_suffix; 1469 ac_top_srcdir=$srcdir 1470 ac_abs_top_srcdir=$srcdir ;; 1471 *) # Relative name. 1472 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1473 ac_top_srcdir=$ac_top_build_prefix$srcdir 1474 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1475esac 1476ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1477 1478 cd "$ac_dir" || { ac_status=$?; continue; } 1479 # Check for guested configure. 1480 if test -f "$ac_srcdir/configure.gnu"; then 1481 echo && 1482 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1483 elif test -f "$ac_srcdir/configure"; then 1484 echo && 1485 $SHELL "$ac_srcdir/configure" --help=recursive 1486 else 1487 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1488 fi || ac_status=$? 1489 cd "$ac_pwd" || { ac_status=$?; break; } 1490 done 1491fi 1492 1493test -n "$ac_init_help" && exit $ac_status 1494if $ac_init_version; then 1495 cat <<\_ACEOF 1496FOXTESTS configure 1.4.21 1497generated by GNU Autoconf 2.69 1498 1499Copyright (C) 2012 Free Software Foundation, Inc. 1500This configure script is free software; the Free Software Foundation 1501gives unlimited permission to copy, distribute and modify it. 1502_ACEOF 1503 exit 1504fi 1505 1506## ------------------------ ## 1507## Autoconf initialization. ## 1508## ------------------------ ## 1509 1510# ac_fn_c_try_compile LINENO 1511# -------------------------- 1512# Try to compile conftest.$ac_ext, and return whether this succeeded. 1513ac_fn_c_try_compile () 1514{ 1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1516 rm -f conftest.$ac_objext 1517 if { { ac_try="$ac_compile" 1518case "(($ac_try" in 1519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1520 *) ac_try_echo=$ac_try;; 1521esac 1522eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1523$as_echo "$ac_try_echo"; } >&5 1524 (eval "$ac_compile") 2>conftest.err 1525 ac_status=$? 1526 if test -s conftest.err; then 1527 grep -v '^ *+' conftest.err >conftest.er1 1528 cat conftest.er1 >&5 1529 mv -f conftest.er1 conftest.err 1530 fi 1531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1532 test $ac_status = 0; } && { 1533 test -z "$ac_c_werror_flag" || 1534 test ! -s conftest.err 1535 } && test -s conftest.$ac_objext; then : 1536 ac_retval=0 1537else 1538 $as_echo "$as_me: failed program was:" >&5 1539sed 's/^/| /' conftest.$ac_ext >&5 1540 1541 ac_retval=1 1542fi 1543 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1544 as_fn_set_status $ac_retval 1545 1546} # ac_fn_c_try_compile 1547 1548# ac_fn_c_try_cpp LINENO 1549# ---------------------- 1550# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1551ac_fn_c_try_cpp () 1552{ 1553 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1554 if { { ac_try="$ac_cpp conftest.$ac_ext" 1555case "(($ac_try" in 1556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1557 *) ac_try_echo=$ac_try;; 1558esac 1559eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1560$as_echo "$ac_try_echo"; } >&5 1561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1562 ac_status=$? 1563 if test -s conftest.err; then 1564 grep -v '^ *+' conftest.err >conftest.er1 1565 cat conftest.er1 >&5 1566 mv -f conftest.er1 conftest.err 1567 fi 1568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1569 test $ac_status = 0; } > conftest.i && { 1570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1571 test ! -s conftest.err 1572 }; then : 1573 ac_retval=0 1574else 1575 $as_echo "$as_me: failed program was:" >&5 1576sed 's/^/| /' conftest.$ac_ext >&5 1577 1578 ac_retval=1 1579fi 1580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1581 as_fn_set_status $ac_retval 1582 1583} # ac_fn_c_try_cpp 1584 1585# ac_fn_cxx_try_compile LINENO 1586# ---------------------------- 1587# Try to compile conftest.$ac_ext, and return whether this succeeded. 1588ac_fn_cxx_try_compile () 1589{ 1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1591 rm -f conftest.$ac_objext 1592 if { { ac_try="$ac_compile" 1593case "(($ac_try" in 1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1595 *) ac_try_echo=$ac_try;; 1596esac 1597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1598$as_echo "$ac_try_echo"; } >&5 1599 (eval "$ac_compile") 2>conftest.err 1600 ac_status=$? 1601 if test -s conftest.err; then 1602 grep -v '^ *+' conftest.err >conftest.er1 1603 cat conftest.er1 >&5 1604 mv -f conftest.er1 conftest.err 1605 fi 1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1607 test $ac_status = 0; } && { 1608 test -z "$ac_cxx_werror_flag" || 1609 test ! -s conftest.err 1610 } && test -s conftest.$ac_objext; then : 1611 ac_retval=0 1612else 1613 $as_echo "$as_me: failed program was:" >&5 1614sed 's/^/| /' conftest.$ac_ext >&5 1615 1616 ac_retval=1 1617fi 1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1619 as_fn_set_status $ac_retval 1620 1621} # ac_fn_cxx_try_compile 1622 1623# ac_fn_cxx_try_cpp LINENO 1624# ------------------------ 1625# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1626ac_fn_cxx_try_cpp () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 if { { ac_try="$ac_cpp conftest.$ac_ext" 1630case "(($ac_try" in 1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1632 *) ac_try_echo=$ac_try;; 1633esac 1634eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1635$as_echo "$ac_try_echo"; } >&5 1636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1637 ac_status=$? 1638 if test -s conftest.err; then 1639 grep -v '^ *+' conftest.err >conftest.er1 1640 cat conftest.er1 >&5 1641 mv -f conftest.er1 conftest.err 1642 fi 1643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1644 test $ac_status = 0; } > conftest.i && { 1645 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1646 test ! -s conftest.err 1647 }; then : 1648 ac_retval=0 1649else 1650 $as_echo "$as_me: failed program was:" >&5 1651sed 's/^/| /' conftest.$ac_ext >&5 1652 1653 ac_retval=1 1654fi 1655 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1656 as_fn_set_status $ac_retval 1657 1658} # ac_fn_cxx_try_cpp 1659 1660# ac_fn_c_try_link LINENO 1661# ----------------------- 1662# Try to link conftest.$ac_ext, and return whether this succeeded. 1663ac_fn_c_try_link () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 rm -f conftest.$ac_objext conftest$ac_exeext 1667 if { { ac_try="$ac_link" 1668case "(($ac_try" in 1669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1670 *) ac_try_echo=$ac_try;; 1671esac 1672eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1673$as_echo "$ac_try_echo"; } >&5 1674 (eval "$ac_link") 2>conftest.err 1675 ac_status=$? 1676 if test -s conftest.err; then 1677 grep -v '^ *+' conftest.err >conftest.er1 1678 cat conftest.er1 >&5 1679 mv -f conftest.er1 conftest.err 1680 fi 1681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; } && { 1683 test -z "$ac_c_werror_flag" || 1684 test ! -s conftest.err 1685 } && test -s conftest$ac_exeext && { 1686 test "$cross_compiling" = yes || 1687 test -x conftest$ac_exeext 1688 }; then : 1689 ac_retval=0 1690else 1691 $as_echo "$as_me: failed program was:" >&5 1692sed 's/^/| /' conftest.$ac_ext >&5 1693 1694 ac_retval=1 1695fi 1696 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1697 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1698 # interfere with the next link command; also delete a directory that is 1699 # left behind by Apple's compiler. We do this before executing the actions. 1700 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1702 as_fn_set_status $ac_retval 1703 1704} # ac_fn_c_try_link 1705 1706# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1707# ------------------------------------------------------- 1708# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1709# the include files in INCLUDES and setting the cache variable VAR 1710# accordingly. 1711ac_fn_c_check_header_mongrel () 1712{ 1713 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1714 if eval \${$3+:} false; then : 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716$as_echo_n "checking for $2... " >&6; } 1717if eval \${$3+:} false; then : 1718 $as_echo_n "(cached) " >&6 1719fi 1720eval ac_res=\$$3 1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1722$as_echo "$ac_res" >&6; } 1723else 1724 # Is the header compilable? 1725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1726$as_echo_n "checking $2 usability... " >&6; } 1727cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1728/* end confdefs.h. */ 1729$4 1730#include <$2> 1731_ACEOF 1732if ac_fn_c_try_compile "$LINENO"; then : 1733 ac_header_compiler=yes 1734else 1735 ac_header_compiler=no 1736fi 1737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1739$as_echo "$ac_header_compiler" >&6; } 1740 1741# Is the header present? 1742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1743$as_echo_n "checking $2 presence... " >&6; } 1744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1745/* end confdefs.h. */ 1746#include <$2> 1747_ACEOF 1748if ac_fn_c_try_cpp "$LINENO"; then : 1749 ac_header_preproc=yes 1750else 1751 ac_header_preproc=no 1752fi 1753rm -f conftest.err conftest.i conftest.$ac_ext 1754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1755$as_echo "$ac_header_preproc" >&6; } 1756 1757# So? What about this header? 1758case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1759 yes:no: ) 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1761$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1763$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1764 ;; 1765 no:yes:* ) 1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1767$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1769$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1771$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1773$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1775$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1776 ;; 1777esac 1778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1779$as_echo_n "checking for $2... " >&6; } 1780if eval \${$3+:} false; then : 1781 $as_echo_n "(cached) " >&6 1782else 1783 eval "$3=\$ac_header_compiler" 1784fi 1785eval ac_res=\$$3 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1787$as_echo "$ac_res" >&6; } 1788fi 1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1790 1791} # ac_fn_c_check_header_mongrel 1792 1793# ac_fn_c_try_run LINENO 1794# ---------------------- 1795# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1796# that executables *can* be run. 1797ac_fn_c_try_run () 1798{ 1799 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1800 if { { ac_try="$ac_link" 1801case "(($ac_try" in 1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1803 *) ac_try_echo=$ac_try;; 1804esac 1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1806$as_echo "$ac_try_echo"; } >&5 1807 (eval "$ac_link") 2>&5 1808 ac_status=$? 1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1810 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1811 { { case "(($ac_try" in 1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1813 *) ac_try_echo=$ac_try;; 1814esac 1815eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1816$as_echo "$ac_try_echo"; } >&5 1817 (eval "$ac_try") 2>&5 1818 ac_status=$? 1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1820 test $ac_status = 0; }; }; then : 1821 ac_retval=0 1822else 1823 $as_echo "$as_me: program exited with status $ac_status" >&5 1824 $as_echo "$as_me: failed program was:" >&5 1825sed 's/^/| /' conftest.$ac_ext >&5 1826 1827 ac_retval=$ac_status 1828fi 1829 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1831 as_fn_set_status $ac_retval 1832 1833} # ac_fn_c_try_run 1834 1835# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1836# ------------------------------------------------------- 1837# Tests whether HEADER exists and can be compiled using the include files in 1838# INCLUDES, setting the cache variable VAR accordingly. 1839ac_fn_c_check_header_compile () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1843$as_echo_n "checking for $2... " >&6; } 1844if eval \${$3+:} false; then : 1845 $as_echo_n "(cached) " >&6 1846else 1847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1848/* end confdefs.h. */ 1849$4 1850#include <$2> 1851_ACEOF 1852if ac_fn_c_try_compile "$LINENO"; then : 1853 eval "$3=yes" 1854else 1855 eval "$3=no" 1856fi 1857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1858fi 1859eval ac_res=\$$3 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1861$as_echo "$ac_res" >&6; } 1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1863 1864} # ac_fn_c_check_header_compile 1865 1866# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1867# ------------------------------------------- 1868# Tests whether TYPE exists after having included INCLUDES, setting cache 1869# variable VAR accordingly. 1870ac_fn_c_check_type () 1871{ 1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1874$as_echo_n "checking for $2... " >&6; } 1875if eval \${$3+:} false; then : 1876 $as_echo_n "(cached) " >&6 1877else 1878 eval "$3=no" 1879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1880/* end confdefs.h. */ 1881$4 1882int 1883main () 1884{ 1885if (sizeof ($2)) 1886 return 0; 1887 ; 1888 return 0; 1889} 1890_ACEOF 1891if ac_fn_c_try_compile "$LINENO"; then : 1892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1893/* end confdefs.h. */ 1894$4 1895int 1896main () 1897{ 1898if (sizeof (($2))) 1899 return 0; 1900 ; 1901 return 0; 1902} 1903_ACEOF 1904if ac_fn_c_try_compile "$LINENO"; then : 1905 1906else 1907 eval "$3=yes" 1908fi 1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1910fi 1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1912fi 1913eval ac_res=\$$3 1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1915$as_echo "$ac_res" >&6; } 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 1918} # ac_fn_c_check_type 1919 1920# ac_fn_c_check_func LINENO FUNC VAR 1921# ---------------------------------- 1922# Tests whether FUNC exists, setting the cache variable VAR accordingly 1923ac_fn_c_check_func () 1924{ 1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1927$as_echo_n "checking for $2... " >&6; } 1928if eval \${$3+:} false; then : 1929 $as_echo_n "(cached) " >&6 1930else 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1934 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1935#define $2 innocuous_$2 1936 1937/* System header to define __stub macros and hopefully few prototypes, 1938 which can conflict with char $2 (); below. 1939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1940 <limits.h> exists even on freestanding compilers. */ 1941 1942#ifdef __STDC__ 1943# include <limits.h> 1944#else 1945# include <assert.h> 1946#endif 1947 1948#undef $2 1949 1950/* Override any GCC internal prototype to avoid an error. 1951 Use char because int might match the return type of a GCC 1952 builtin and then its argument prototype would still apply. */ 1953#ifdef __cplusplus 1954extern "C" 1955#endif 1956char $2 (); 1957/* The GNU C library defines this for functions which it implements 1958 to always fail with ENOSYS. Some functions are actually named 1959 something starting with __ and the normal name is an alias. */ 1960#if defined __stub_$2 || defined __stub___$2 1961choke me 1962#endif 1963 1964int 1965main () 1966{ 1967return $2 (); 1968 ; 1969 return 0; 1970} 1971_ACEOF 1972if ac_fn_c_try_link "$LINENO"; then : 1973 eval "$3=yes" 1974else 1975 eval "$3=no" 1976fi 1977rm -f core conftest.err conftest.$ac_objext \ 1978 conftest$ac_exeext conftest.$ac_ext 1979fi 1980eval ac_res=\$$3 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1982$as_echo "$ac_res" >&6; } 1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1984 1985} # ac_fn_c_check_func 1986 1987# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1988# -------------------------------------------- 1989# Tries to find the compile-time value of EXPR in a program that includes 1990# INCLUDES, setting VAR accordingly. Returns whether the value could be 1991# computed 1992ac_fn_c_compute_int () 1993{ 1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1995 if test "$cross_compiling" = yes; then 1996 # Depending upon the size, compute the lo and hi bounds. 1997cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1998/* end confdefs.h. */ 1999$4 2000int 2001main () 2002{ 2003static int test_array [1 - 2 * !(($2) >= 0)]; 2004test_array [0] = 0; 2005return test_array [0]; 2006 2007 ; 2008 return 0; 2009} 2010_ACEOF 2011if ac_fn_c_try_compile "$LINENO"; then : 2012 ac_lo=0 ac_mid=0 2013 while :; do 2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2015/* end confdefs.h. */ 2016$4 2017int 2018main () 2019{ 2020static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2021test_array [0] = 0; 2022return test_array [0]; 2023 2024 ; 2025 return 0; 2026} 2027_ACEOF 2028if ac_fn_c_try_compile "$LINENO"; then : 2029 ac_hi=$ac_mid; break 2030else 2031 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2032 if test $ac_lo -le $ac_mid; then 2033 ac_lo= ac_hi= 2034 break 2035 fi 2036 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2037fi 2038rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2039 done 2040else 2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2042/* end confdefs.h. */ 2043$4 2044int 2045main () 2046{ 2047static int test_array [1 - 2 * !(($2) < 0)]; 2048test_array [0] = 0; 2049return test_array [0]; 2050 2051 ; 2052 return 0; 2053} 2054_ACEOF 2055if ac_fn_c_try_compile "$LINENO"; then : 2056 ac_hi=-1 ac_mid=-1 2057 while :; do 2058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2059/* end confdefs.h. */ 2060$4 2061int 2062main () 2063{ 2064static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2065test_array [0] = 0; 2066return test_array [0]; 2067 2068 ; 2069 return 0; 2070} 2071_ACEOF 2072if ac_fn_c_try_compile "$LINENO"; then : 2073 ac_lo=$ac_mid; break 2074else 2075 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2076 if test $ac_mid -le $ac_hi; then 2077 ac_lo= ac_hi= 2078 break 2079 fi 2080 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2081fi 2082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2083 done 2084else 2085 ac_lo= ac_hi= 2086fi 2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2088fi 2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2090# Binary search between lo and hi bounds. 2091while test "x$ac_lo" != "x$ac_hi"; do 2092 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2094/* end confdefs.h. */ 2095$4 2096int 2097main () 2098{ 2099static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2100test_array [0] = 0; 2101return test_array [0]; 2102 2103 ; 2104 return 0; 2105} 2106_ACEOF 2107if ac_fn_c_try_compile "$LINENO"; then : 2108 ac_hi=$ac_mid 2109else 2110 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2111fi 2112rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2113done 2114case $ac_lo in #(( 2115?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2116'') ac_retval=1 ;; 2117esac 2118 else 2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2120/* end confdefs.h. */ 2121$4 2122static long int longval () { return $2; } 2123static unsigned long int ulongval () { return $2; } 2124#include <stdio.h> 2125#include <stdlib.h> 2126int 2127main () 2128{ 2129 2130 FILE *f = fopen ("conftest.val", "w"); 2131 if (! f) 2132 return 1; 2133 if (($2) < 0) 2134 { 2135 long int i = longval (); 2136 if (i != ($2)) 2137 return 1; 2138 fprintf (f, "%ld", i); 2139 } 2140 else 2141 { 2142 unsigned long int i = ulongval (); 2143 if (i != ($2)) 2144 return 1; 2145 fprintf (f, "%lu", i); 2146 } 2147 /* Do not output a trailing newline, as this causes \r\n confusion 2148 on some platforms. */ 2149 return ferror (f) || fclose (f) != 0; 2150 2151 ; 2152 return 0; 2153} 2154_ACEOF 2155if ac_fn_c_try_run "$LINENO"; then : 2156 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2157else 2158 ac_retval=1 2159fi 2160rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2161 conftest.$ac_objext conftest.beam conftest.$ac_ext 2162rm -f conftest.val 2163 2164 fi 2165 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2166 as_fn_set_status $ac_retval 2167 2168} # ac_fn_c_compute_int 2169 2170# ac_fn_cxx_try_link LINENO 2171# ------------------------- 2172# Try to link conftest.$ac_ext, and return whether this succeeded. 2173ac_fn_cxx_try_link () 2174{ 2175 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2176 rm -f conftest.$ac_objext conftest$ac_exeext 2177 if { { ac_try="$ac_link" 2178case "(($ac_try" in 2179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2180 *) ac_try_echo=$ac_try;; 2181esac 2182eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2183$as_echo "$ac_try_echo"; } >&5 2184 (eval "$ac_link") 2>conftest.err 2185 ac_status=$? 2186 if test -s conftest.err; then 2187 grep -v '^ *+' conftest.err >conftest.er1 2188 cat conftest.er1 >&5 2189 mv -f conftest.er1 conftest.err 2190 fi 2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2192 test $ac_status = 0; } && { 2193 test -z "$ac_cxx_werror_flag" || 2194 test ! -s conftest.err 2195 } && test -s conftest$ac_exeext && { 2196 test "$cross_compiling" = yes || 2197 test -x conftest$ac_exeext 2198 }; then : 2199 ac_retval=0 2200else 2201 $as_echo "$as_me: failed program was:" >&5 2202sed 's/^/| /' conftest.$ac_ext >&5 2203 2204 ac_retval=1 2205fi 2206 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2207 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2208 # interfere with the next link command; also delete a directory that is 2209 # left behind by Apple's compiler. We do this before executing the actions. 2210 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2212 as_fn_set_status $ac_retval 2213 2214} # ac_fn_cxx_try_link 2215cat >config.log <<_ACEOF 2216This file contains any messages produced by compilers while 2217running configure, to aid debugging if configure makes a mistake. 2218 2219It was created by FOXTESTS $as_me 1.4.21, which was 2220generated by GNU Autoconf 2.69. Invocation command line was 2221 2222 $ $0 $@ 2223 2224_ACEOF 2225exec 5>>config.log 2226{ 2227cat <<_ASUNAME 2228## --------- ## 2229## Platform. ## 2230## --------- ## 2231 2232hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2233uname -m = `(uname -m) 2>/dev/null || echo unknown` 2234uname -r = `(uname -r) 2>/dev/null || echo unknown` 2235uname -s = `(uname -s) 2>/dev/null || echo unknown` 2236uname -v = `(uname -v) 2>/dev/null || echo unknown` 2237 2238/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2239/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2240 2241/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2242/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2243/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2244/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2245/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2246/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2247/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2248 2249_ASUNAME 2250 2251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2252for as_dir in $PATH 2253do 2254 IFS=$as_save_IFS 2255 test -z "$as_dir" && as_dir=. 2256 $as_echo "PATH: $as_dir" 2257 done 2258IFS=$as_save_IFS 2259 2260} >&5 2261 2262cat >&5 <<_ACEOF 2263 2264 2265## ----------- ## 2266## Core tests. ## 2267## ----------- ## 2268 2269_ACEOF 2270 2271 2272# Keep a trace of the command line. 2273# Strip out --no-create and --no-recursion so they do not pile up. 2274# Strip out --silent because we don't want to record it for future runs. 2275# Also quote any args containing shell meta-characters. 2276# Make two passes to allow for proper duplicate-argument suppression. 2277ac_configure_args= 2278ac_configure_args0= 2279ac_configure_args1= 2280ac_must_keep_next=false 2281for ac_pass in 1 2 2282do 2283 for ac_arg 2284 do 2285 case $ac_arg in 2286 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2287 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2288 | -silent | --silent | --silen | --sile | --sil) 2289 continue ;; 2290 *\'*) 2291 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2292 esac 2293 case $ac_pass in 2294 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2295 2) 2296 as_fn_append ac_configure_args1 " '$ac_arg'" 2297 if test $ac_must_keep_next = true; then 2298 ac_must_keep_next=false # Got value, back to normal. 2299 else 2300 case $ac_arg in 2301 *=* | --config-cache | -C | -disable-* | --disable-* \ 2302 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2303 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2304 | -with-* | --with-* | -without-* | --without-* | --x) 2305 case "$ac_configure_args0 " in 2306 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2307 esac 2308 ;; 2309 -* ) ac_must_keep_next=true ;; 2310 esac 2311 fi 2312 as_fn_append ac_configure_args " '$ac_arg'" 2313 ;; 2314 esac 2315 done 2316done 2317{ ac_configure_args0=; unset ac_configure_args0;} 2318{ ac_configure_args1=; unset ac_configure_args1;} 2319 2320# When interrupted or exit'd, cleanup temporary files, and complete 2321# config.log. We remove comments because anyway the quotes in there 2322# would cause problems or look ugly. 2323# WARNING: Use '\'' to represent an apostrophe within the trap. 2324# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2325trap 'exit_status=$? 2326 # Save into config.log some information that might help in debugging. 2327 { 2328 echo 2329 2330 $as_echo "## ---------------- ## 2331## Cache variables. ## 2332## ---------------- ##" 2333 echo 2334 # The following way of writing the cache mishandles newlines in values, 2335( 2336 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2337 eval ac_val=\$$ac_var 2338 case $ac_val in #( 2339 *${as_nl}*) 2340 case $ac_var in #( 2341 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2342$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2343 esac 2344 case $ac_var in #( 2345 _ | IFS | as_nl) ;; #( 2346 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2347 *) { eval $ac_var=; unset $ac_var;} ;; 2348 esac ;; 2349 esac 2350 done 2351 (set) 2>&1 | 2352 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2353 *${as_nl}ac_space=\ *) 2354 sed -n \ 2355 "s/'\''/'\''\\\\'\'''\''/g; 2356 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2357 ;; #( 2358 *) 2359 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2360 ;; 2361 esac | 2362 sort 2363) 2364 echo 2365 2366 $as_echo "## ----------------- ## 2367## Output variables. ## 2368## ----------------- ##" 2369 echo 2370 for ac_var in $ac_subst_vars 2371 do 2372 eval ac_val=\$$ac_var 2373 case $ac_val in 2374 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2375 esac 2376 $as_echo "$ac_var='\''$ac_val'\''" 2377 done | sort 2378 echo 2379 2380 if test -n "$ac_subst_files"; then 2381 $as_echo "## ------------------- ## 2382## File substitutions. ## 2383## ------------------- ##" 2384 echo 2385 for ac_var in $ac_subst_files 2386 do 2387 eval ac_val=\$$ac_var 2388 case $ac_val in 2389 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2390 esac 2391 $as_echo "$ac_var='\''$ac_val'\''" 2392 done | sort 2393 echo 2394 fi 2395 2396 if test -s confdefs.h; then 2397 $as_echo "## ----------- ## 2398## confdefs.h. ## 2399## ----------- ##" 2400 echo 2401 cat confdefs.h 2402 echo 2403 fi 2404 test "$ac_signal" != 0 && 2405 $as_echo "$as_me: caught signal $ac_signal" 2406 $as_echo "$as_me: exit $exit_status" 2407 } >&5 2408 rm -f core *.core core.conftest.* && 2409 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2410 exit $exit_status 2411' 0 2412for ac_signal in 1 2 13 15; do 2413 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2414done 2415ac_signal=0 2416 2417# confdefs.h avoids OS command line length limits that DEFS can exceed. 2418rm -f -r conftest* confdefs.h 2419 2420$as_echo "/* confdefs.h */" > confdefs.h 2421 2422# Predefined preprocessor variables. 2423 2424cat >>confdefs.h <<_ACEOF 2425#define PACKAGE_NAME "$PACKAGE_NAME" 2426_ACEOF 2427 2428cat >>confdefs.h <<_ACEOF 2429#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2430_ACEOF 2431 2432cat >>confdefs.h <<_ACEOF 2433#define PACKAGE_VERSION "$PACKAGE_VERSION" 2434_ACEOF 2435 2436cat >>confdefs.h <<_ACEOF 2437#define PACKAGE_STRING "$PACKAGE_STRING" 2438_ACEOF 2439 2440cat >>confdefs.h <<_ACEOF 2441#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2442_ACEOF 2443 2444cat >>confdefs.h <<_ACEOF 2445#define PACKAGE_URL "$PACKAGE_URL" 2446_ACEOF 2447 2448 2449# Let the site file select an alternate cache file if it wants to. 2450# Prefer an explicitly selected file to automatically selected ones. 2451ac_site_file1=NONE 2452ac_site_file2=NONE 2453if test -n "$CONFIG_SITE"; then 2454 # We do not want a PATH search for config.site. 2455 case $CONFIG_SITE in #(( 2456 -*) ac_site_file1=./$CONFIG_SITE;; 2457 */*) ac_site_file1=$CONFIG_SITE;; 2458 *) ac_site_file1=./$CONFIG_SITE;; 2459 esac 2460elif test "x$prefix" != xNONE; then 2461 ac_site_file1=$prefix/share/config.site 2462 ac_site_file2=$prefix/etc/config.site 2463else 2464 ac_site_file1=$ac_default_prefix/share/config.site 2465 ac_site_file2=$ac_default_prefix/etc/config.site 2466fi 2467for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2468do 2469 test "x$ac_site_file" = xNONE && continue 2470 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2471 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2472$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2473 sed 's/^/| /' "$ac_site_file" >&5 2474 . "$ac_site_file" \ 2475 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2477as_fn_error $? "failed to load site script $ac_site_file 2478See \`config.log' for more details" "$LINENO" 5; } 2479 fi 2480done 2481 2482if test -r "$cache_file"; then 2483 # Some versions of bash will fail to source /dev/null (special files 2484 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2485 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2487$as_echo "$as_me: loading cache $cache_file" >&6;} 2488 case $cache_file in 2489 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2490 *) . "./$cache_file";; 2491 esac 2492 fi 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2495$as_echo "$as_me: creating cache $cache_file" >&6;} 2496 >$cache_file 2497fi 2498 2499as_fn_append ac_header_list " utime.h" 2500# Check that the precious variables saved in the cache have kept the same 2501# value. 2502ac_cache_corrupted=false 2503for ac_var in $ac_precious_vars; do 2504 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2505 eval ac_new_set=\$ac_env_${ac_var}_set 2506 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2507 eval ac_new_val=\$ac_env_${ac_var}_value 2508 case $ac_old_set,$ac_new_set in 2509 set,) 2510 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2511$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2512 ac_cache_corrupted=: ;; 2513 ,set) 2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2515$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2516 ac_cache_corrupted=: ;; 2517 ,);; 2518 *) 2519 if test "x$ac_old_val" != "x$ac_new_val"; then 2520 # differences in whitespace do not lead to failure. 2521 ac_old_val_w=`echo x $ac_old_val` 2522 ac_new_val_w=`echo x $ac_new_val` 2523 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2525$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2526 ac_cache_corrupted=: 2527 else 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2529$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2530 eval $ac_var=\$ac_old_val 2531 fi 2532 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2533$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2534 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2535$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2536 fi;; 2537 esac 2538 # Pass precious variables to config.status. 2539 if test "$ac_new_set" = set; then 2540 case $ac_new_val in 2541 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2542 *) ac_arg=$ac_var=$ac_new_val ;; 2543 esac 2544 case " $ac_configure_args " in 2545 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2546 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2547 esac 2548 fi 2549done 2550if $ac_cache_corrupted; then 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2554$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2555 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2556fi 2557## -------------------- ## 2558## Main body of script. ## 2559## -------------------- ## 2560 2561ac_ext=c 2562ac_cpp='$CPP $CPPFLAGS' 2563ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2564ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2565ac_compiler_gnu=$ac_cv_c_compiler_gnu 2566 2567 2568am__api_version='1.14' 2569 2570ac_aux_dir= 2571for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2572 if test -f "$ac_dir/install-sh"; then 2573 ac_aux_dir=$ac_dir 2574 ac_install_sh="$ac_aux_dir/install-sh -c" 2575 break 2576 elif test -f "$ac_dir/install.sh"; then 2577 ac_aux_dir=$ac_dir 2578 ac_install_sh="$ac_aux_dir/install.sh -c" 2579 break 2580 elif test -f "$ac_dir/shtool"; then 2581 ac_aux_dir=$ac_dir 2582 ac_install_sh="$ac_aux_dir/shtool install -c" 2583 break 2584 fi 2585done 2586if test -z "$ac_aux_dir"; then 2587 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2588fi 2589 2590# These three variables are undocumented and unsupported, 2591# and are intended to be withdrawn in a future Autoconf release. 2592# They can cause serious problems if a builder's source tree is in a directory 2593# whose full name contains unusual characters. 2594ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2595ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2596ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2597 2598 2599# Find a good install program. We prefer a C program (faster), 2600# so one script is as good as another. But avoid the broken or 2601# incompatible versions: 2602# SysV /etc/install, /usr/sbin/install 2603# SunOS /usr/etc/install 2604# IRIX /sbin/install 2605# AIX /bin/install 2606# AmigaOS /C/install, which installs bootblocks on floppy discs 2607# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2608# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2609# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2610# OS/2's system install, which has a completely different semantic 2611# ./install, which can be erroneously created by make from ./install.sh. 2612# Reject install programs that cannot install multiple files. 2613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2614$as_echo_n "checking for a BSD-compatible install... " >&6; } 2615if test -z "$INSTALL"; then 2616if ${ac_cv_path_install+:} false; then : 2617 $as_echo_n "(cached) " >&6 2618else 2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2620for as_dir in $PATH 2621do 2622 IFS=$as_save_IFS 2623 test -z "$as_dir" && as_dir=. 2624 # Account for people who put trailing slashes in PATH elements. 2625case $as_dir/ in #(( 2626 ./ | .// | /[cC]/* | \ 2627 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2628 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2629 /usr/ucb/* ) ;; 2630 *) 2631 # OSF1 and SCO ODT 3.0 have their own names for install. 2632 # Don't use installbsd from OSF since it installs stuff as root 2633 # by default. 2634 for ac_prog in ginstall scoinst install; do 2635 for ac_exec_ext in '' $ac_executable_extensions; do 2636 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2637 if test $ac_prog = install && 2638 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2639 # AIX install. It has an incompatible calling convention. 2640 : 2641 elif test $ac_prog = install && 2642 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2643 # program-specific install script used by HP pwplus--don't use. 2644 : 2645 else 2646 rm -rf conftest.one conftest.two conftest.dir 2647 echo one > conftest.one 2648 echo two > conftest.two 2649 mkdir conftest.dir 2650 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2651 test -s conftest.one && test -s conftest.two && 2652 test -s conftest.dir/conftest.one && 2653 test -s conftest.dir/conftest.two 2654 then 2655 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2656 break 3 2657 fi 2658 fi 2659 fi 2660 done 2661 done 2662 ;; 2663esac 2664 2665 done 2666IFS=$as_save_IFS 2667 2668rm -rf conftest.one conftest.two conftest.dir 2669 2670fi 2671 if test "${ac_cv_path_install+set}" = set; then 2672 INSTALL=$ac_cv_path_install 2673 else 2674 # As a last resort, use the slow shell script. Don't cache a 2675 # value for INSTALL within a source directory, because that will 2676 # break other packages using the cache if that directory is 2677 # removed, or if the value is a relative name. 2678 INSTALL=$ac_install_sh 2679 fi 2680fi 2681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2682$as_echo "$INSTALL" >&6; } 2683 2684# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2685# It thinks the first close brace ends the variable substitution. 2686test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2687 2688test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2689 2690test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2691 2692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2693$as_echo_n "checking whether build environment is sane... " >&6; } 2694# Reject unsafe characters in $srcdir or the absolute working directory 2695# name. Accept space and tab only in the latter. 2696am_lf=' 2697' 2698case `pwd` in 2699 *[\\\"\#\$\&\'\`$am_lf]*) 2700 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2701esac 2702case $srcdir in 2703 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2704 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2705esac 2706 2707# Do 'set' in a subshell so we don't clobber the current shell's 2708# arguments. Must try -L first in case configure is actually a 2709# symlink; some systems play weird games with the mod time of symlinks 2710# (eg FreeBSD returns the mod time of the symlink's containing 2711# directory). 2712if ( 2713 am_has_slept=no 2714 for am_try in 1 2; do 2715 echo "timestamp, slept: $am_has_slept" > conftest.file 2716 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2717 if test "$*" = "X"; then 2718 # -L didn't work. 2719 set X `ls -t "$srcdir/configure" conftest.file` 2720 fi 2721 if test "$*" != "X $srcdir/configure conftest.file" \ 2722 && test "$*" != "X conftest.file $srcdir/configure"; then 2723 2724 # If neither matched, then we have a broken ls. This can happen 2725 # if, for instance, CONFIG_SHELL is bash and it inherits a 2726 # broken ls alias from the environment. This has actually 2727 # happened. Such a system could not be considered "sane". 2728 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2729 alias in your environment" "$LINENO" 5 2730 fi 2731 if test "$2" = conftest.file || test $am_try -eq 2; then 2732 break 2733 fi 2734 # Just in case. 2735 sleep 1 2736 am_has_slept=yes 2737 done 2738 test "$2" = conftest.file 2739 ) 2740then 2741 # Ok. 2742 : 2743else 2744 as_fn_error $? "newly created file is older than distributed files! 2745Check your system clock" "$LINENO" 5 2746fi 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2748$as_echo "yes" >&6; } 2749# If we didn't sleep, we still need to ensure time stamps of config.status and 2750# generated files are strictly newer. 2751am_sleep_pid= 2752if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2753 ( sleep 1 ) & 2754 am_sleep_pid=$! 2755fi 2756 2757rm -f conftest.file 2758 2759test "$program_prefix" != NONE && 2760 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2761# Use a double $ so make ignores it. 2762test "$program_suffix" != NONE && 2763 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2764# Double any \ or $. 2765# By default was `s,x,x', remove it if useless. 2766ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2767program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2768 2769# expand $ac_aux_dir to an absolute path 2770am_aux_dir=`cd $ac_aux_dir && pwd` 2771 2772if test x"${MISSING+set}" != xset; then 2773 case $am_aux_dir in 2774 *\ * | *\ *) 2775 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2776 *) 2777 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2778 esac 2779fi 2780# Use eval to expand $SHELL 2781if eval "$MISSING --is-lightweight"; then 2782 am_missing_run="$MISSING " 2783else 2784 am_missing_run= 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2786$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2787fi 2788 2789if test x"${install_sh}" != xset; then 2790 case $am_aux_dir in 2791 *\ * | *\ *) 2792 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2793 *) 2794 install_sh="\${SHELL} $am_aux_dir/install-sh" 2795 esac 2796fi 2797 2798# Installed binaries are usually stripped using 'strip' when the user 2799# run "make install-strip". However 'strip' might not be the right 2800# tool to use in cross-compilation environments, therefore Automake 2801# will honor the 'STRIP' environment variable to overrule this program. 2802if test "$cross_compiling" != no; then 2803 if test -n "$ac_tool_prefix"; then 2804 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2805set dummy ${ac_tool_prefix}strip; ac_word=$2 2806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2807$as_echo_n "checking for $ac_word... " >&6; } 2808if ${ac_cv_prog_STRIP+:} false; then : 2809 $as_echo_n "(cached) " >&6 2810else 2811 if test -n "$STRIP"; then 2812 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2813else 2814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2815for as_dir in $PATH 2816do 2817 IFS=$as_save_IFS 2818 test -z "$as_dir" && as_dir=. 2819 for ac_exec_ext in '' $ac_executable_extensions; do 2820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2821 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2823 break 2 2824 fi 2825done 2826 done 2827IFS=$as_save_IFS 2828 2829fi 2830fi 2831STRIP=$ac_cv_prog_STRIP 2832if test -n "$STRIP"; then 2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2834$as_echo "$STRIP" >&6; } 2835else 2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2837$as_echo "no" >&6; } 2838fi 2839 2840 2841fi 2842if test -z "$ac_cv_prog_STRIP"; then 2843 ac_ct_STRIP=$STRIP 2844 # Extract the first word of "strip", so it can be a program name with args. 2845set dummy strip; ac_word=$2 2846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2847$as_echo_n "checking for $ac_word... " >&6; } 2848if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2849 $as_echo_n "(cached) " >&6 2850else 2851 if test -n "$ac_ct_STRIP"; then 2852 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2853else 2854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2855for as_dir in $PATH 2856do 2857 IFS=$as_save_IFS 2858 test -z "$as_dir" && as_dir=. 2859 for ac_exec_ext in '' $ac_executable_extensions; do 2860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2861 ac_cv_prog_ac_ct_STRIP="strip" 2862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2863 break 2 2864 fi 2865done 2866 done 2867IFS=$as_save_IFS 2868 2869fi 2870fi 2871ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2872if test -n "$ac_ct_STRIP"; then 2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2874$as_echo "$ac_ct_STRIP" >&6; } 2875else 2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2877$as_echo "no" >&6; } 2878fi 2879 2880 if test "x$ac_ct_STRIP" = x; then 2881 STRIP=":" 2882 else 2883 case $cross_compiling:$ac_tool_warned in 2884yes:) 2885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2887ac_tool_warned=yes ;; 2888esac 2889 STRIP=$ac_ct_STRIP 2890 fi 2891else 2892 STRIP="$ac_cv_prog_STRIP" 2893fi 2894 2895fi 2896INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2897 2898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2899$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2900if test -z "$MKDIR_P"; then 2901 if ${ac_cv_path_mkdir+:} false; then : 2902 $as_echo_n "(cached) " >&6 2903else 2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2905for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2906do 2907 IFS=$as_save_IFS 2908 test -z "$as_dir" && as_dir=. 2909 for ac_prog in mkdir gmkdir; do 2910 for ac_exec_ext in '' $ac_executable_extensions; do 2911 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2912 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2913 'mkdir (GNU coreutils) '* | \ 2914 'mkdir (coreutils) '* | \ 2915 'mkdir (fileutils) '4.1*) 2916 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2917 break 3;; 2918 esac 2919 done 2920 done 2921 done 2922IFS=$as_save_IFS 2923 2924fi 2925 2926 test -d ./--version && rmdir ./--version 2927 if test "${ac_cv_path_mkdir+set}" = set; then 2928 MKDIR_P="$ac_cv_path_mkdir -p" 2929 else 2930 # As a last resort, use the slow shell script. Don't cache a 2931 # value for MKDIR_P within a source directory, because that will 2932 # break other packages using the cache if that directory is 2933 # removed, or if the value is a relative name. 2934 MKDIR_P="$ac_install_sh -d" 2935 fi 2936fi 2937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2938$as_echo "$MKDIR_P" >&6; } 2939 2940for ac_prog in gawk mawk nawk awk 2941do 2942 # Extract the first word of "$ac_prog", so it can be a program name with args. 2943set dummy $ac_prog; ac_word=$2 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2945$as_echo_n "checking for $ac_word... " >&6; } 2946if ${ac_cv_prog_AWK+:} false; then : 2947 $as_echo_n "(cached) " >&6 2948else 2949 if test -n "$AWK"; then 2950 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2951else 2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2953for as_dir in $PATH 2954do 2955 IFS=$as_save_IFS 2956 test -z "$as_dir" && as_dir=. 2957 for ac_exec_ext in '' $ac_executable_extensions; do 2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2959 ac_cv_prog_AWK="$ac_prog" 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2961 break 2 2962 fi 2963done 2964 done 2965IFS=$as_save_IFS 2966 2967fi 2968fi 2969AWK=$ac_cv_prog_AWK 2970if test -n "$AWK"; then 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2972$as_echo "$AWK" >&6; } 2973else 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2975$as_echo "no" >&6; } 2976fi 2977 2978 2979 test -n "$AWK" && break 2980done 2981 2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2983$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2984set x ${MAKE-make} 2985ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2986if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2987 $as_echo_n "(cached) " >&6 2988else 2989 cat >conftest.make <<\_ACEOF 2990SHELL = /bin/sh 2991all: 2992 @echo '@@@%%%=$(MAKE)=@@@%%%' 2993_ACEOF 2994# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2995case `${MAKE-make} -f conftest.make 2>/dev/null` in 2996 *@@@%%%=?*=@@@%%%*) 2997 eval ac_cv_prog_make_${ac_make}_set=yes;; 2998 *) 2999 eval ac_cv_prog_make_${ac_make}_set=no;; 3000esac 3001rm -f conftest.make 3002fi 3003if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3005$as_echo "yes" >&6; } 3006 SET_MAKE= 3007else 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3009$as_echo "no" >&6; } 3010 SET_MAKE="MAKE=${MAKE-make}" 3011fi 3012 3013rm -rf .tst 2>/dev/null 3014mkdir .tst 2>/dev/null 3015if test -d .tst; then 3016 am__leading_dot=. 3017else 3018 am__leading_dot=_ 3019fi 3020rmdir .tst 2>/dev/null 3021 3022# Check whether --enable-silent-rules was given. 3023if test "${enable_silent_rules+set}" = set; then : 3024 enableval=$enable_silent_rules; 3025fi 3026 3027case $enable_silent_rules in # ((( 3028 yes) AM_DEFAULT_VERBOSITY=0;; 3029 no) AM_DEFAULT_VERBOSITY=1;; 3030 *) AM_DEFAULT_VERBOSITY=1;; 3031esac 3032am_make=${MAKE-make} 3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3034$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3035if ${am_cv_make_support_nested_variables+:} false; then : 3036 $as_echo_n "(cached) " >&6 3037else 3038 if $as_echo 'TRUE=$(BAR$(V)) 3039BAR0=false 3040BAR1=true 3041V=1 3042am__doit: 3043 @$(TRUE) 3044.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3045 am_cv_make_support_nested_variables=yes 3046else 3047 am_cv_make_support_nested_variables=no 3048fi 3049fi 3050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3051$as_echo "$am_cv_make_support_nested_variables" >&6; } 3052if test $am_cv_make_support_nested_variables = yes; then 3053 AM_V='$(V)' 3054 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3055else 3056 AM_V=$AM_DEFAULT_VERBOSITY 3057 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3058fi 3059AM_BACKSLASH='\' 3060 3061if test "`cd $srcdir && pwd`" != "`pwd`"; then 3062 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3063 # is not polluted with repeated "-I." 3064 am__isrc=' -I$(srcdir)' 3065 # test to see if srcdir already configured 3066 if test -f $srcdir/config.status; then 3067 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3068 fi 3069fi 3070 3071# test whether we have cygpath 3072if test -z "$CYGPATH_W"; then 3073 if (cygpath --version) >/dev/null 2>/dev/null; then 3074 CYGPATH_W='cygpath -w' 3075 else 3076 CYGPATH_W=echo 3077 fi 3078fi 3079 3080 3081# Define the identity of the package. 3082 PACKAGE='foxtests' 3083 VERSION='1.4.21' 3084 3085 3086cat >>confdefs.h <<_ACEOF 3087#define PACKAGE "$PACKAGE" 3088_ACEOF 3089 3090 3091cat >>confdefs.h <<_ACEOF 3092#define VERSION "$VERSION" 3093_ACEOF 3094 3095# Some tools Automake needs. 3096 3097ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3098 3099 3100AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3101 3102 3103AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3104 3105 3106AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3107 3108 3109MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3110 3111# For better backward compatibility. To be removed once Automake 1.9.x 3112# dies out for good. For more background, see: 3113# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3114# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3115mkdir_p='$(MKDIR_P)' 3116 3117# We need awk for the "check" target. The system "awk" is bad on 3118# some platforms. 3119# Always define AMTAR for backward compatibility. Yes, it's still used 3120# in the wild :-( We should find a proper way to deprecate it ... 3121AMTAR='$${TAR-tar}' 3122 3123 3124# We'll loop over all known methods to create a tar archive until one works. 3125_am_tools='gnutar pax cpio none' 3126 3127am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3128 3129 3130 3131 3132 3133 3134# POSIX will say in a future version that running "rm -f" with no argument 3135# is OK; and we want to be able to make that assumption in our Makefile 3136# recipes. So use an aggressive probe to check that the usage we want is 3137# actually supported "in the wild" to an acceptable degree. 3138# See automake bug#10828. 3139# To make any issue more visible, cause the running configure to be aborted 3140# by default if the 'rm' program in use doesn't match our expectations; the 3141# user can still override this though. 3142if rm -f && rm -fr && rm -rf; then : OK; else 3143 cat >&2 <<'END' 3144Oops! 3145 3146Your 'rm' program seems unable to run without file operands specified 3147on the command line, even when the '-f' option is present. This is contrary 3148to the behaviour of most rm programs out there, and not conforming with 3149the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3150 3151Please tell bug-automake@gnu.org about your system, including the value 3152of your $PATH and any error possibly output before this message. This 3153can help us improve future automake versions. 3154 3155END 3156 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3157 echo 'Configuration will proceed anyway, since you have set the' >&2 3158 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3159 echo >&2 3160 else 3161 cat >&2 <<'END' 3162Aborting the configuration process, to ensure you take notice of the issue. 3163 3164You can download and install GNU coreutils to get an 'rm' implementation 3165that behaves properly: <http://www.gnu.org/software/coreutils/>. 3166 3167If you want to complete the configuration process using your problematic 3168'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3169to "yes", and re-run configure. 3170 3171END 3172 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3173 fi 3174fi 3175 3176# This seemed to work with 2.57 so despite other parts of the code needing 3177# a yet newer version I will leave this here. 3178 3179 3180here=`pwd` 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: +++ Configuring FOX tests in directory $here +++" >&5 3182$as_echo "$as_me: +++ Configuring FOX tests in directory $here +++" >&6;} 3183 3184 3185ac_config_files="$ac_config_files Makefile" 3186 3187 3188# aclocal.m4: configure.ac 3189# aclocal 3190# config.h.in: configure.ac 3191# autoheader 3192# helpers = COPYING INSTALL install-sh missing mkinstalldirs config.sub 3193# Makefile.in $(helpers): configure.ac Makefile.am aclocal.m4 3194# automake 3195 3196need="no" 3197 3198if ! test $srcdir/Makefile.in -nt $srcdir/configure.ac 3199then 3200 printf "Makefile.in depends on configure.ac\n" 3201 need="yes" 3202fi 3203if ! test $srcdir/Makefile.in -nt $srcdir/Makefile.am 3204then 3205 printf "Makefile.in depends on Makefile.am\n" 3206 need="yes" 3207fi 3208if ! test $srcdir/configure -nt $srcdir/configure.ac 3209then 3210 printf "configure depends on configure.ac\n" 3211 need="yes" 3212fi 3213 3214if test "x$need" = "xyes\n" 3215then 3216 printf "autoreconf necessary (args: $ac_configure_args)\n" 3217 3218 here=`pwd` 3219 cd $srcdir 3220 printf "autoreconf in the FOX tests directory\n" 3221 autoreconf -f -i -v 3222 3223 cd $here 3224# Because autoconf might not be available or might fail and because I 3225# believe I have observed cases where it has not reset timestamps in the 3226# way I expected I will reset timestamps explicitly here... 3227 3228 touch $srcdir/Makefile.am $srcdir/configure 3229 3230 printf "Restart: $srcdir/configure $ac_configure_args\n" 3231 exec /bin/sh -c "$srcdir/configure $ac_configure_args" 3232fi 3233 3234# What host am I on? 3235# Make sure we can run config.sub. 3236$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3237 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3238 3239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3240$as_echo_n "checking build system type... " >&6; } 3241if ${ac_cv_build+:} false; then : 3242 $as_echo_n "(cached) " >&6 3243else 3244 ac_build_alias=$build_alias 3245test "x$ac_build_alias" = x && 3246 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3247test "x$ac_build_alias" = x && 3248 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3249ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3250 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3251 3252fi 3253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3254$as_echo "$ac_cv_build" >&6; } 3255case $ac_cv_build in 3256*-*-*) ;; 3257*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3258esac 3259build=$ac_cv_build 3260ac_save_IFS=$IFS; IFS='-' 3261set x $ac_cv_build 3262shift 3263build_cpu=$1 3264build_vendor=$2 3265shift; shift 3266# Remember, the first character of IFS is used to create $*, 3267# except with old shells: 3268build_os=$* 3269IFS=$ac_save_IFS 3270case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3271 3272 3273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3274$as_echo_n "checking host system type... " >&6; } 3275if ${ac_cv_host+:} false; then : 3276 $as_echo_n "(cached) " >&6 3277else 3278 if test "x$host_alias" = x; then 3279 ac_cv_host=$ac_cv_build 3280else 3281 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3282 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3283fi 3284 3285fi 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3287$as_echo "$ac_cv_host" >&6; } 3288case $ac_cv_host in 3289*-*-*) ;; 3290*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 3291esac 3292host=$ac_cv_host 3293ac_save_IFS=$IFS; IFS='-' 3294set x $ac_cv_host 3295shift 3296host_cpu=$1 3297host_vendor=$2 3298shift; shift 3299# Remember, the first character of IFS is used to create $*, 3300# except with old shells: 3301host_os=$* 3302IFS=$ac_save_IFS 3303case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3304 3305 3306 3307 3308 3309# The following are always to be defined when I go through this route 3310 3311 3312cat >>confdefs.h <<_ACEOF 3313#define HOST_CPU "$host_cpu" 3314_ACEOF 3315 3316 3317cat >>confdefs.h <<_ACEOF 3318#define HOST_VENDOR "$host_vendor" 3319_ACEOF 3320 3321 3322cat >>confdefs.h <<_ACEOF 3323#define HOST_OS "$host_os" 3324_ACEOF 3325 3326 3327foxdir="$host" 3328 3329 3330 3331# Check whether --with-csl was given. 3332if test "${with_csl+set}" = set; then : 3333 withval=$with_csl; 3334else 3335 with_csl="no" 3336fi 3337 3338 3339 3340# Check whether --with-psl was given. 3341if test "${with_psl+set}" = set; then : 3342 withval=$with_psl; 3343else 3344 with_psl="no" 3345fi 3346 3347 3348 3349# Check whether --with-mingw64 was given. 3350if test "${with_mingw64+set}" = set; then : 3351 withval=$with_mingw64; 3352else 3353 with_mingw64="no" 3354fi 3355 3356 3357 3358# Check whether --with-build was given. 3359if test "${with_build+set}" = set; then : 3360 withval=$with_build; 3361else 3362 with_build="unknown" 3363fi 3364 3365 3366 3367# Check whether --with-pslbuild was given. 3368if test "${with_pslbuild+set}" = set; then : 3369 withval=$with_pslbuild; 3370else 3371 with_pslbuild="unknown" 3372fi 3373 3374 3375 3376# Check whether --with-cygbuild was given. 3377if test "${with_cygbuild+set}" = set; then : 3378 withval=$with_cygbuild; 3379else 3380 with_cygbuild="unknown" 3381fi 3382 3383 3384 3385# Check whether --with-cygbuild64 was given. 3386if test "${with_cygbuild64+set}" = set; then : 3387 withval=$with_cygbuild64; 3388else 3389 with_cygbuild64="unknown" 3390fi 3391 3392 3393 3394# Check whether --with-force was given. 3395if test "${with_force+set}" = set; then : 3396 withval=$with_force; 3397fi 3398 3399 3400 3401# Check whether --with-crlibm was given. 3402if test "${with_crlibm+set}" = set; then : 3403 withval=$with_crlibm; 3404fi 3405 3406 3407 3408 3409 3410 3411 3412 3413if test "x$WINDRES" = "x" 3414then 3415 if test -n "$ac_tool_prefix"; then 3416 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 3417set dummy ${ac_tool_prefix}windres; ac_word=$2 3418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3419$as_echo_n "checking for $ac_word... " >&6; } 3420if ${ac_cv_prog_WINDRES+:} false; then : 3421 $as_echo_n "(cached) " >&6 3422else 3423 if test -n "$WINDRES"; then 3424 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 3425else 3426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3427for as_dir in $PATH 3428do 3429 IFS=$as_save_IFS 3430 test -z "$as_dir" && as_dir=. 3431 for ac_exec_ext in '' $ac_executable_extensions; do 3432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3433 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3435 break 2 3436 fi 3437done 3438 done 3439IFS=$as_save_IFS 3440 3441fi 3442fi 3443WINDRES=$ac_cv_prog_WINDRES 3444if test -n "$WINDRES"; then 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 3446$as_echo "$WINDRES" >&6; } 3447else 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3449$as_echo "no" >&6; } 3450fi 3451 3452 3453fi 3454if test -z "$ac_cv_prog_WINDRES"; then 3455 ac_ct_WINDRES=$WINDRES 3456 # Extract the first word of "windres", so it can be a program name with args. 3457set dummy windres; ac_word=$2 3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3459$as_echo_n "checking for $ac_word... " >&6; } 3460if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : 3461 $as_echo_n "(cached) " >&6 3462else 3463 if test -n "$ac_ct_WINDRES"; then 3464 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 3465else 3466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3467for as_dir in $PATH 3468do 3469 IFS=$as_save_IFS 3470 test -z "$as_dir" && as_dir=. 3471 for ac_exec_ext in '' $ac_executable_extensions; do 3472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3473 ac_cv_prog_ac_ct_WINDRES="windres" 3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3475 break 2 3476 fi 3477done 3478 done 3479IFS=$as_save_IFS 3480 3481fi 3482fi 3483ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 3484if test -n "$ac_ct_WINDRES"; then 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 3486$as_echo "$ac_ct_WINDRES" >&6; } 3487else 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3489$as_echo "no" >&6; } 3490fi 3491 3492 if test "x$ac_ct_WINDRES" = x; then 3493 WINDRES="windres" 3494 else 3495 case $cross_compiling:$ac_tool_warned in 3496yes:) 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3498$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3499ac_tool_warned=yes ;; 3500esac 3501 WINDRES=$ac_ct_WINDRES 3502 fi 3503else 3504 WINDRES="$ac_cv_prog_WINDRES" 3505fi 3506 3507fi 3508 3509case $host in 3510x86_64-w64-*) 3511 3512$as_echo "#define WIN32 1" >>confdefs.h 3513 3514 3515$as_echo "#define WIN64 1" >>confdefs.h 3516 3517 CPPFLAGS="$CPPFLAGS" 3518 CFLAGS="$CFLAGS -funsigned-char" 3519 CXXFLAGS="$CXXFLAGS -funsigned-char" 3520 DLL_CFLAGS="$CFLAGS -shared" 3521 windows_build="yes" 3522 exeext="yes" 3523 X_BASE_LIBS="" 3524 ;; 3525*-*-cygwin* | *mingw*) 3526 { $as_echo "$as_me:${as_lineno-$LINENO}: Building under cygwin" >&5 3527$as_echo "$as_me: Building under cygwin" >&6;} 3528 3529# Check whether --with-cygwin was given. 3530if test "${with_cygwin+set}" = set; then : 3531 withval=$with_cygwin; really_use_cygwin="yes" 3532fi 3533 3534 x86="yes" 3535 if test "x$really_use_cygwin" = "xyes" 3536 then 3537 CFLAGS="$CFLAGS -funsigned-char" 3538 CXXFLAGS="$CXXFLAGS -funsigned-char" 3539 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" 3540 DLL_CFLAGS="$CFLAGS -shared" 3541 XLIBS="-lXext -lX11" 3542 cygwin_build="yes" 3543 exeext="yes" 3544# Here is the normal situation where cygwin is the BUILD environment. Mostly 3545# that means mingw-style usage. 3546 else 3547 3548$as_echo "#define WIN32 1" >>confdefs.h 3549 3550 CPPFLAGS="$CPPFLAGS " 3551 CFLAGS="$CFLAGS -funsigned-char" 3552 CXXFLAGS="$CXXFLAGS -funsigned-char" 3553 LDFLAGS="$LDFLAGS " 3554# In this case I make the machine appear to be "i686-pc-windows" or some 3555# such to distinguish it from the case where cygwin1.dll might be involved. 3556 foxdir=`echo $foxdir | sed -e 's/cygwin/windows/'` 3557 fi 3558 windows_build="yes" 3559 exeext="yes" 3560 X_BASE_LIBS="" 3561 ;; 3562*-*-msdos* | *-*-go32* | *-*-windows*) 3563 as_fn_error $? "For Windows you are expected to use cygwin/mingw32" "$LINENO" 5 3564 ;; 3565*-*solaris*) 3566 { $as_echo "$as_me:${as_lineno-$LINENO}: Building for Solaris" >&5 3567$as_echo "$as_me: Building for Solaris" >&6;} 3568# I USED to somewhat encourage the use of the Sun compiler "cc" here but now 3569# I am testing using Solaris 10 x86 and gcc seems available and adequate. 3570# Note that by setting CC and CXX before using "configure" you can select 3571# the compiler of your choice. However there is a risk that I need to 3572# specify explicit paths so if they are not set by the user I will force 3573# something here! The paths shown here are the ones I find installed on 3574# Solaris 10 x86 from the Software Companion DVD. This all seems pretty 3575# HORRID to me! 3576 if test "x$CC" = "x" 3577 then 3578 for ac_prog in gcc 3579do 3580 # Extract the first word of "$ac_prog", so it can be a program name with args. 3581set dummy $ac_prog; ac_word=$2 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3583$as_echo_n "checking for $ac_word... " >&6; } 3584if ${ac_cv_path_CC+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 case $CC in 3588 [\\/]* | ?:[\\/]*) 3589 ac_cv_path_CC="$CC" # Let the user override the test with a path. 3590 ;; 3591 *) 3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3593as_dummy="/usr/sfw/bin:$PATH" 3594for as_dir in $as_dummy 3595do 3596 IFS=$as_save_IFS 3597 test -z "$as_dir" && as_dir=. 3598 for ac_exec_ext in '' $ac_executable_extensions; do 3599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3600 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext" 3601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3602 break 2 3603 fi 3604done 3605 done 3606IFS=$as_save_IFS 3607 3608 ;; 3609esac 3610fi 3611CC=$ac_cv_path_CC 3612if test -n "$CC"; then 3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3614$as_echo "$CC" >&6; } 3615else 3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3617$as_echo "no" >&6; } 3618fi 3619 3620 3621 test -n "$CC" && break 3622done 3623test -n "$CC" || CC="gcc" 3624 3625 fi 3626 if test "x$CXX" = "x" 3627 then 3628 for ac_prog in g++ 3629do 3630 # Extract the first word of "$ac_prog", so it can be a program name with args. 3631set dummy $ac_prog; ac_word=$2 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3633$as_echo_n "checking for $ac_word... " >&6; } 3634if ${ac_cv_path_CXX+:} false; then : 3635 $as_echo_n "(cached) " >&6 3636else 3637 case $CXX in 3638 [\\/]* | ?:[\\/]*) 3639 ac_cv_path_CXX="$CXX" # Let the user override the test with a path. 3640 ;; 3641 *) 3642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3643as_dummy="/usr/sfw/bin:$PATH" 3644for as_dir in $as_dummy 3645do 3646 IFS=$as_save_IFS 3647 test -z "$as_dir" && as_dir=. 3648 for ac_exec_ext in '' $ac_executable_extensions; do 3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3650 ac_cv_path_CXX="$as_dir/$ac_word$ac_exec_ext" 3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3652 break 2 3653 fi 3654done 3655 done 3656IFS=$as_save_IFS 3657 3658 ;; 3659esac 3660fi 3661CXX=$ac_cv_path_CXX 3662if test -n "$CXX"; then 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 3664$as_echo "$CXX" >&6; } 3665else 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3667$as_echo "no" >&6; } 3668fi 3669 3670 3671 test -n "$CXX" && break 3672done 3673test -n "$CXX" || CXX="g++" 3674 3675 fi 3676 if test "x$MAKE" = "x" 3677 then 3678 for ac_prog in gmake make 3679do 3680 # Extract the first word of "$ac_prog", so it can be a program name with args. 3681set dummy $ac_prog; ac_word=$2 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3683$as_echo_n "checking for $ac_word... " >&6; } 3684if ${ac_cv_path_MAKE+:} false; then : 3685 $as_echo_n "(cached) " >&6 3686else 3687 case $MAKE in 3688 [\\/]* | ?:[\\/]*) 3689 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path. 3690 ;; 3691 *) 3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3693as_dummy="/usr/sfw/bin:$PATH" 3694for as_dir in $as_dummy 3695do 3696 IFS=$as_save_IFS 3697 test -z "$as_dir" && as_dir=. 3698 for ac_exec_ext in '' $ac_executable_extensions; do 3699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3700 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext" 3701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3702 break 2 3703 fi 3704done 3705 done 3706IFS=$as_save_IFS 3707 3708 ;; 3709esac 3710fi 3711MAKE=$ac_cv_path_MAKE 3712if test -n "$MAKE"; then 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 3714$as_echo "$MAKE" >&6; } 3715else 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3717$as_echo "no" >&6; } 3718fi 3719 3720 3721 test -n "$MAKE" && break 3722done 3723test -n "$MAKE" || MAKE="make" 3724 3725 fi 3726 if test "x$AR" = "x" 3727 then 3728 for ac_prog in gar ar 3729do 3730 # Extract the first word of "$ac_prog", so it can be a program name with args. 3731set dummy $ac_prog; ac_word=$2 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3733$as_echo_n "checking for $ac_word... " >&6; } 3734if ${ac_cv_path_AR+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 case $AR in 3738 [\\/]* | ?:[\\/]*) 3739 ac_cv_path_AR="$AR" # Let the user override the test with a path. 3740 ;; 3741 *) 3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3743as_dummy="/usr/sfw/bin:$PATH" 3744for as_dir in $as_dummy 3745do 3746 IFS=$as_save_IFS 3747 test -z "$as_dir" && as_dir=. 3748 for ac_exec_ext in '' $ac_executable_extensions; do 3749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3750 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 3751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3752 break 2 3753 fi 3754done 3755 done 3756IFS=$as_save_IFS 3757 3758 ;; 3759esac 3760fi 3761AR=$ac_cv_path_AR 3762if test -n "$AR"; then 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 3764$as_echo "$AR" >&6; } 3765else 3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3767$as_echo "no" >&6; } 3768fi 3769 3770 3771 test -n "$AR" && break 3772done 3773test -n "$AR" || AR="ar" 3774 3775 fi 3776 if test "x$STRIP" = "x" 3777 then 3778 for ac_prog in gstrip strip 3779do 3780 # Extract the first word of "$ac_prog", so it can be a program name with args. 3781set dummy $ac_prog; ac_word=$2 3782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3783$as_echo_n "checking for $ac_word... " >&6; } 3784if ${ac_cv_path_STRIP+:} false; then : 3785 $as_echo_n "(cached) " >&6 3786else 3787 case $STRIP in 3788 [\\/]* | ?:[\\/]*) 3789 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 3790 ;; 3791 *) 3792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3793as_dummy="/usr/sfw/bin:$PATH" 3794for as_dir in $as_dummy 3795do 3796 IFS=$as_save_IFS 3797 test -z "$as_dir" && as_dir=. 3798 for ac_exec_ext in '' $ac_executable_extensions; do 3799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3800 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 3801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3802 break 2 3803 fi 3804done 3805 done 3806IFS=$as_save_IFS 3807 3808 ;; 3809esac 3810fi 3811STRIP=$ac_cv_path_STRIP 3812if test -n "$STRIP"; then 3813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3814$as_echo "$STRIP" >&6; } 3815else 3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3817$as_echo "no" >&6; } 3818fi 3819 3820 3821 test -n "$STRIP" && break 3822done 3823test -n "$STRIP" || STRIP="strip" 3824 3825 fi 3826 if test "x$SED" = "x" 3827 then 3828 for ac_prog in gsed sed 3829do 3830 # Extract the first word of "$ac_prog", so it can be a program name with args. 3831set dummy $ac_prog; ac_word=$2 3832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3833$as_echo_n "checking for $ac_word... " >&6; } 3834if ${ac_cv_path_SED+:} false; then : 3835 $as_echo_n "(cached) " >&6 3836else 3837 case $SED in 3838 [\\/]* | ?:[\\/]*) 3839 ac_cv_path_SED="$SED" # Let the user override the test with a path. 3840 ;; 3841 *) 3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3843as_dummy="/usr/sfw/bin:$PATH" 3844for as_dir in $as_dummy 3845do 3846 IFS=$as_save_IFS 3847 test -z "$as_dir" && as_dir=. 3848 for ac_exec_ext in '' $ac_executable_extensions; do 3849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3850 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 3851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3852 break 2 3853 fi 3854done 3855 done 3856IFS=$as_save_IFS 3857 3858 ;; 3859esac 3860fi 3861SED=$ac_cv_path_SED 3862if test -n "$SED"; then 3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 3864$as_echo "$SED" >&6; } 3865else 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3867$as_echo "no" >&6; } 3868fi 3869 3870 3871 test -n "$SED" && break 3872done 3873test -n "$SED" || SED="sed" 3874 3875 fi 3876 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib" 3877 XLIBS="-lXext -lX11" 3878 DLL_CFLAGS="$CFLAGS -shared" 3879 3880$as_echo "#define SOLARIS 1" >>confdefs.h 3881 3882 solaris="yes" 3883 ;; 3884*darwin*) 3885 { $as_echo "$as_me:${as_lineno-$LINENO}: Building for Macintosh/Darwin with X11" >&5 3886$as_echo "$as_me: Building for Macintosh/Darwin with X11" >&6;} 3887 macintosh_build="yes" 3888 darwin_build="yes" 3889 XLIBS="-lXext -lX11 -lXft -lfontconfig" 3890 3891$as_echo "#define MACINTOSH 1" >>confdefs.h 3892 3893 if test "x$CC$CXX" == "x" || (test "x$CC" == "xgcc" && test "x$CXX" == "xg++") 3894 then 3895# The following line was suggested by the libEDIT configuration files. 3896# Even though I no longer use libEDIT I will keep it! 3897# 3898# OK. -fno-common causes C programs to lead to a linker error if you have 3899# declarations of variables in several files. It may thus count as 3900# and extra safety measure. 3901 CFLAGS="$CFLAGS -fno-common" 3902 CXXFLAGS="$CXXFLAGS -fno-common" 3903# At least maybe MacOS 10.2 may not put X11 headers on the standard include 3904# path by default, so I help it out here. In later releases it should be 3905# present already, but an extra chance to scan ought not to hurt anybody. 3906 CPPFLAGS="$CPPFLAGS -fno-common -I/usr/X11R6/include" 3907 DLL_CFLAGS="$CFLAGS -bundle -undefined suppress" 3908 3909$as_echo "#define UNIX 1" >>confdefs.h 3910 3911 LDFLAGS="$LDFLAGS -L/usr/X11R6/lib -L/opt/local/lib -L/opt/X11/lib" 3912 LDFLAGS="$LDFLAGS -framework Carbon -framework CoreServices -framework ApplicationServices" 3913 fi 3914 ;; 3915*-freebsd*) 3916 { $as_echo "$as_me:${as_lineno-$LINENO}: Building on FreeBSD" >&5 3917$as_echo "$as_me: Building on FreeBSD" >&6;} 3918 3919$as_echo "#define UNIX 1" >>confdefs.h 3920 3921 if test "x$target" = "x" 3922 then 3923 xtarget="$host" 3924 else 3925 xtarget="$target" 3926 fi 3927 case $xtarget in 3928 *i386* | *i486* | *i586* | *i686* | *x86* | *amd64*) 3929 x86="yes" 3930 ;; 3931 esac 3932# To survive 64-bit Linux the next line seems needed. I will leave it for 3933# BSD since is a /usr/X11R6/lib64 directory does not exist no harm will 3934# be done. 3935 if test "x$cross_compiling" != "xyes" 3936 then 3937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/X11R6/lib64" >&5 3938$as_echo_n "checking for /usr/X11R6/lib64... " >&6; } 3939if ${ac_cv_file__usr_X11R6_lib64+:} false; then : 3940 $as_echo_n "(cached) " >&6 3941else 3942 test "$cross_compiling" = yes && 3943 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 3944if test -r "/usr/X11R6/lib64"; then 3945 ac_cv_file__usr_X11R6_lib64=yes 3946else 3947 ac_cv_file__usr_X11R6_lib64=no 3948fi 3949fi 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_X11R6_lib64" >&5 3951$as_echo "$ac_cv_file__usr_X11R6_lib64" >&6; } 3952if test "x$ac_cv_file__usr_X11R6_lib64" = xyes; then : 3953 XLL=lib64 3954else 3955 XLL=lib 3956fi 3957 3958 else 3959 XLL=lib 3960 fi 3961 LDFLAGS="$LDFLAGS -L/usr/X11R6/$XLL -pthread" 3962 DLL_CFLAGS="$CFLAGS -shared" 3963 XLIBS="-lXext -lX11" 3964 ;; 3965*) 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: Assuming a Unix-like environment, including Linux" >&5 3967$as_echo "$as_me: Assuming a Unix-like environment, including Linux" >&6;} 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: host=$host, target=$target" >&5 3969$as_echo "$as_me: host=$host, target=$target" >&6;} 3970 3971$as_echo "#define UNIX 1" >>confdefs.h 3972 3973 if test "x$target" = "x" 3974 then 3975 xtarget="$host" 3976 else 3977 xtarget="$target" 3978 fi 3979 case $xtarget in 3980 *i386* | *i486* | *i586* | *i686* | *x86* | *amd64*) 3981 x86="yes" 3982 ;; 3983 esac 3984# To survive 64-bit Linux the next line seems needed. 3985 if test "x$cross_compiling" != "xyes" 3986 then 3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/X11R6/lib64" >&5 3988$as_echo_n "checking for /usr/X11R6/lib64... " >&6; } 3989if ${ac_cv_file__usr_X11R6_lib64+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 test "$cross_compiling" = yes && 3993 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 3994if test -r "/usr/X11R6/lib64"; then 3995 ac_cv_file__usr_X11R6_lib64=yes 3996else 3997 ac_cv_file__usr_X11R6_lib64=no 3998fi 3999fi 4000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_X11R6_lib64" >&5 4001$as_echo "$ac_cv_file__usr_X11R6_lib64" >&6; } 4002if test "x$ac_cv_file__usr_X11R6_lib64" = xyes; then : 4003 XLL=lib64 4004else 4005 XLL=lib 4006fi 4007 4008 else 4009 XLL=lib 4010 fi 4011 LDFLAGS="$LDFLAGS -L/usr/X11R6/$XLL" 4012 DLL_CFLAGS="$CFLAGS -shared" 4013 XLIBS="-lXext -lX11" 4014 ;; 4015esac 4016 4017# In some cases there may be explicitly GNU versions of various utilities, 4018# and I will perhaps use them if I find them. 4019 4020if test "x$MAKE" = "x" 4021then 4022 for ac_prog in gmake make 4023do 4024 # Extract the first word of "$ac_prog", so it can be a program name with args. 4025set dummy $ac_prog; ac_word=$2 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4027$as_echo_n "checking for $ac_word... " >&6; } 4028if ${ac_cv_prog_MAKE+:} false; then : 4029 $as_echo_n "(cached) " >&6 4030else 4031 if test -n "$MAKE"; then 4032 ac_cv_prog_MAKE="$MAKE" # Let the user override the test. 4033else 4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4035for as_dir in $PATH 4036do 4037 IFS=$as_save_IFS 4038 test -z "$as_dir" && as_dir=. 4039 for ac_exec_ext in '' $ac_executable_extensions; do 4040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4041 ac_cv_prog_MAKE="$ac_prog" 4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4043 break 2 4044 fi 4045done 4046 done 4047IFS=$as_save_IFS 4048 4049fi 4050fi 4051MAKE=$ac_cv_prog_MAKE 4052if test -n "$MAKE"; then 4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5 4054$as_echo "$MAKE" >&6; } 4055else 4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4057$as_echo "no" >&6; } 4058fi 4059 4060 4061 test -n "$MAKE" && break 4062done 4063test -n "$MAKE" || MAKE="make" 4064 4065fi 4066if test "x$AR" = "x" 4067then 4068 for ac_prog in gar ar 4069do 4070 # Extract the first word of "$ac_prog", so it can be a program name with args. 4071set dummy $ac_prog; ac_word=$2 4072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4073$as_echo_n "checking for $ac_word... " >&6; } 4074if ${ac_cv_prog_AR+:} false; then : 4075 $as_echo_n "(cached) " >&6 4076else 4077 if test -n "$AR"; then 4078 ac_cv_prog_AR="$AR" # Let the user override the test. 4079else 4080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4081for as_dir in $PATH 4082do 4083 IFS=$as_save_IFS 4084 test -z "$as_dir" && as_dir=. 4085 for ac_exec_ext in '' $ac_executable_extensions; do 4086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4087 ac_cv_prog_AR="$ac_prog" 4088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4089 break 2 4090 fi 4091done 4092 done 4093IFS=$as_save_IFS 4094 4095fi 4096fi 4097AR=$ac_cv_prog_AR 4098if test -n "$AR"; then 4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4100$as_echo "$AR" >&6; } 4101else 4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4103$as_echo "no" >&6; } 4104fi 4105 4106 4107 test -n "$AR" && break 4108done 4109test -n "$AR" || AR="ar" 4110 4111fi 4112if test "x$STRIP" = "x" 4113then 4114 for ac_prog in gstrip strip 4115do 4116 # Extract the first word of "$ac_prog", so it can be a program name with args. 4117set dummy $ac_prog; ac_word=$2 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4119$as_echo_n "checking for $ac_word... " >&6; } 4120if ${ac_cv_prog_STRIP+:} false; then : 4121 $as_echo_n "(cached) " >&6 4122else 4123 if test -n "$STRIP"; then 4124 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4125else 4126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4127for as_dir in $PATH 4128do 4129 IFS=$as_save_IFS 4130 test -z "$as_dir" && as_dir=. 4131 for ac_exec_ext in '' $ac_executable_extensions; do 4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4133 ac_cv_prog_STRIP="$ac_prog" 4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4135 break 2 4136 fi 4137done 4138 done 4139IFS=$as_save_IFS 4140 4141fi 4142fi 4143STRIP=$ac_cv_prog_STRIP 4144if test -n "$STRIP"; then 4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 4146$as_echo "$STRIP" >&6; } 4147else 4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4149$as_echo "no" >&6; } 4150fi 4151 4152 4153 test -n "$STRIP" && break 4154done 4155test -n "$STRIP" || STRIP="echo" 4156 4157fi 4158if test "x$SED" = "x" 4159then 4160 for ac_prog in gsed sed 4161do 4162 # Extract the first word of "$ac_prog", so it can be a program name with args. 4163set dummy $ac_prog; ac_word=$2 4164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4165$as_echo_n "checking for $ac_word... " >&6; } 4166if ${ac_cv_prog_SED+:} false; then : 4167 $as_echo_n "(cached) " >&6 4168else 4169 if test -n "$SED"; then 4170 ac_cv_prog_SED="$SED" # Let the user override the test. 4171else 4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4173for as_dir in $PATH 4174do 4175 IFS=$as_save_IFS 4176 test -z "$as_dir" && as_dir=. 4177 for ac_exec_ext in '' $ac_executable_extensions; do 4178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4179 ac_cv_prog_SED="$ac_prog" 4180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4181 break 2 4182 fi 4183done 4184 done 4185IFS=$as_save_IFS 4186 4187fi 4188fi 4189SED=$ac_cv_prog_SED 4190if test -n "$SED"; then 4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 4192$as_echo "$SED" >&6; } 4193else 4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4195$as_echo "no" >&6; } 4196fi 4197 4198 4199 test -n "$SED" && break 4200done 4201test -n "$SED" || SED="sed" 4202 4203fi 4204 4205 4206 4207# Check whether --with-fox was given. 4208if test "${with_fox+set}" = set; then : 4209 withval=$with_fox; 4210fi 4211 4212 4213# Check whether --with-fox-pending was given. 4214if test "${with_fox_pending+set}" = set; then : 4215 withval=$with_fox_pending; 4216fi 4217 4218 4219 4220# Here I will adjust foxdir to mention the Linux distribution involved 4221# in case that I can discover that. The effect is that my (adjusted) 4222# "triple" will be something like say 4223# i686-pc-fedora_6 OR powerpc-macos_10.4_tiger-darwin8.8.0 4224# rather than 4225# i686-pc=linux-gnu OR powerpc-apple-darwin8.8.0 4226 4227distrib=`"$srcdir/../../scripts/findos.sh"` 4228{ $as_echo "$as_me:${as_lineno-$LINENO}: distrib = $distrib" >&5 4229$as_echo "$as_me: distrib = $distrib" >&6;} 4230 4231if test "x$distrib" != "xunknown" 4232then 4233 foxdir=`echo $foxdir | sed -e s/linux-gnu/$distrib/` 4234 foxdir=`echo $foxdir | sed -e s/apple/$distrib/` 4235fi 4236 4237# Debugging turned on? 4238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for debugging" >&5 4239$as_echo_n "checking for debugging... " >&6; } 4240# Check whether --enable-debug was given. 4241if test "${enable_debug+set}" = set; then : 4242 enableval=$enable_debug; 4243fi 4244 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5 4246$as_echo "$enable_debug" >&6; } 4247 4248if test "x$enable_debug" = "xyes" 4249then 4250 foxdir="$foxdir-debug" 4251fi 4252 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: foxdir = $foxdir" >&5 4254$as_echo "$as_me: foxdir = $foxdir" >&6;} 4255 4256# Checks for programs. 4257 4258# 4259# AC_PROG_CC sets CFLAGS to "-g -O2" if it was not already set to 4260# something else and if gcc was in use. I view that as not what I want! 4261# so I try to preserve CFLAGS here 4262# 4263 4264# find C compiler & preprocessor 4265# I will not need C++ unless FOX is available and I try to build a GUI 4266# version, but maybe it does not hurt a lot to look for it regardless. 4267 4268old_CFLAGS="$CFLAGS" 4269old_CXXFLAGS="$CXXFLAGS" 4270{ $as_echo "$as_me:${as_lineno-$LINENO}: Looking for C pre-processor" >&5 4271$as_echo "$as_me: Looking for C pre-processor" >&6;} 4272DEPDIR="${am__leading_dot}deps" 4273 4274ac_config_commands="$ac_config_commands depfiles" 4275 4276 4277am_make=${MAKE-make} 4278cat > confinc << 'END' 4279am__doit: 4280 @echo this is the am__doit target 4281.PHONY: am__doit 4282END 4283# If we don't find an include directive, just comment out the code. 4284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4285$as_echo_n "checking for style of include used by $am_make... " >&6; } 4286am__include="#" 4287am__quote= 4288_am_result=none 4289# First try GNU make style include. 4290echo "include confinc" > confmf 4291# Ignore all kinds of additional output from 'make'. 4292case `$am_make -s -f confmf 2> /dev/null` in #( 4293*the\ am__doit\ target*) 4294 am__include=include 4295 am__quote= 4296 _am_result=GNU 4297 ;; 4298esac 4299# Now try BSD make style include. 4300if test "$am__include" = "#"; then 4301 echo '.include "confinc"' > confmf 4302 case `$am_make -s -f confmf 2> /dev/null` in #( 4303 *the\ am__doit\ target*) 4304 am__include=.include 4305 am__quote="\"" 4306 _am_result=BSD 4307 ;; 4308 esac 4309fi 4310 4311 4312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4313$as_echo "$_am_result" >&6; } 4314rm -f confinc confmf 4315 4316# Check whether --enable-dependency-tracking was given. 4317if test "${enable_dependency_tracking+set}" = set; then : 4318 enableval=$enable_dependency_tracking; 4319fi 4320 4321if test "x$enable_dependency_tracking" != xno; then 4322 am_depcomp="$ac_aux_dir/depcomp" 4323 AMDEPBACKSLASH='\' 4324 am__nodep='_no' 4325fi 4326 if test "x$enable_dependency_tracking" != xno; then 4327 AMDEP_TRUE= 4328 AMDEP_FALSE='#' 4329else 4330 AMDEP_TRUE='#' 4331 AMDEP_FALSE= 4332fi 4333 4334 4335ac_ext=c 4336ac_cpp='$CPP $CPPFLAGS' 4337ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4338ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4339ac_compiler_gnu=$ac_cv_c_compiler_gnu 4340if test -n "$ac_tool_prefix"; then 4341 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4342set dummy ${ac_tool_prefix}gcc; ac_word=$2 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4344$as_echo_n "checking for $ac_word... " >&6; } 4345if ${ac_cv_prog_CC+:} false; then : 4346 $as_echo_n "(cached) " >&6 4347else 4348 if test -n "$CC"; then 4349 ac_cv_prog_CC="$CC" # Let the user override the test. 4350else 4351as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4352for as_dir in $PATH 4353do 4354 IFS=$as_save_IFS 4355 test -z "$as_dir" && as_dir=. 4356 for ac_exec_ext in '' $ac_executable_extensions; do 4357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4358 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4360 break 2 4361 fi 4362done 4363 done 4364IFS=$as_save_IFS 4365 4366fi 4367fi 4368CC=$ac_cv_prog_CC 4369if test -n "$CC"; then 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4371$as_echo "$CC" >&6; } 4372else 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4374$as_echo "no" >&6; } 4375fi 4376 4377 4378fi 4379if test -z "$ac_cv_prog_CC"; then 4380 ac_ct_CC=$CC 4381 # Extract the first word of "gcc", so it can be a program name with args. 4382set dummy gcc; ac_word=$2 4383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4384$as_echo_n "checking for $ac_word... " >&6; } 4385if ${ac_cv_prog_ac_ct_CC+:} false; then : 4386 $as_echo_n "(cached) " >&6 4387else 4388 if test -n "$ac_ct_CC"; then 4389 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4390else 4391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4392for as_dir in $PATH 4393do 4394 IFS=$as_save_IFS 4395 test -z "$as_dir" && as_dir=. 4396 for ac_exec_ext in '' $ac_executable_extensions; do 4397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4398 ac_cv_prog_ac_ct_CC="gcc" 4399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4400 break 2 4401 fi 4402done 4403 done 4404IFS=$as_save_IFS 4405 4406fi 4407fi 4408ac_ct_CC=$ac_cv_prog_ac_ct_CC 4409if test -n "$ac_ct_CC"; then 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4411$as_echo "$ac_ct_CC" >&6; } 4412else 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4414$as_echo "no" >&6; } 4415fi 4416 4417 if test "x$ac_ct_CC" = x; then 4418 CC="" 4419 else 4420 case $cross_compiling:$ac_tool_warned in 4421yes:) 4422{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4423$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4424ac_tool_warned=yes ;; 4425esac 4426 CC=$ac_ct_CC 4427 fi 4428else 4429 CC="$ac_cv_prog_CC" 4430fi 4431 4432if test -z "$CC"; then 4433 if test -n "$ac_tool_prefix"; then 4434 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4435set dummy ${ac_tool_prefix}cc; ac_word=$2 4436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4437$as_echo_n "checking for $ac_word... " >&6; } 4438if ${ac_cv_prog_CC+:} false; then : 4439 $as_echo_n "(cached) " >&6 4440else 4441 if test -n "$CC"; then 4442 ac_cv_prog_CC="$CC" # Let the user override the test. 4443else 4444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4445for as_dir in $PATH 4446do 4447 IFS=$as_save_IFS 4448 test -z "$as_dir" && as_dir=. 4449 for ac_exec_ext in '' $ac_executable_extensions; do 4450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4451 ac_cv_prog_CC="${ac_tool_prefix}cc" 4452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4453 break 2 4454 fi 4455done 4456 done 4457IFS=$as_save_IFS 4458 4459fi 4460fi 4461CC=$ac_cv_prog_CC 4462if test -n "$CC"; then 4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4464$as_echo "$CC" >&6; } 4465else 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4467$as_echo "no" >&6; } 4468fi 4469 4470 4471 fi 4472fi 4473if test -z "$CC"; then 4474 # Extract the first word of "cc", so it can be a program name with args. 4475set dummy cc; ac_word=$2 4476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4477$as_echo_n "checking for $ac_word... " >&6; } 4478if ${ac_cv_prog_CC+:} false; then : 4479 $as_echo_n "(cached) " >&6 4480else 4481 if test -n "$CC"; then 4482 ac_cv_prog_CC="$CC" # Let the user override the test. 4483else 4484 ac_prog_rejected=no 4485as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4486for as_dir in $PATH 4487do 4488 IFS=$as_save_IFS 4489 test -z "$as_dir" && as_dir=. 4490 for ac_exec_ext in '' $ac_executable_extensions; do 4491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4492 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4493 ac_prog_rejected=yes 4494 continue 4495 fi 4496 ac_cv_prog_CC="cc" 4497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4498 break 2 4499 fi 4500done 4501 done 4502IFS=$as_save_IFS 4503 4504if test $ac_prog_rejected = yes; then 4505 # We found a bogon in the path, so make sure we never use it. 4506 set dummy $ac_cv_prog_CC 4507 shift 4508 if test $# != 0; then 4509 # We chose a different compiler from the bogus one. 4510 # However, it has the same basename, so the bogon will be chosen 4511 # first if we set CC to just the basename; use the full file name. 4512 shift 4513 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4514 fi 4515fi 4516fi 4517fi 4518CC=$ac_cv_prog_CC 4519if test -n "$CC"; then 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4521$as_echo "$CC" >&6; } 4522else 4523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4524$as_echo "no" >&6; } 4525fi 4526 4527 4528fi 4529if test -z "$CC"; then 4530 if test -n "$ac_tool_prefix"; then 4531 for ac_prog in cl.exe 4532 do 4533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4534set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4536$as_echo_n "checking for $ac_word... " >&6; } 4537if ${ac_cv_prog_CC+:} false; then : 4538 $as_echo_n "(cached) " >&6 4539else 4540 if test -n "$CC"; then 4541 ac_cv_prog_CC="$CC" # Let the user override the test. 4542else 4543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4544for as_dir in $PATH 4545do 4546 IFS=$as_save_IFS 4547 test -z "$as_dir" && as_dir=. 4548 for ac_exec_ext in '' $ac_executable_extensions; do 4549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4550 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4552 break 2 4553 fi 4554done 4555 done 4556IFS=$as_save_IFS 4557 4558fi 4559fi 4560CC=$ac_cv_prog_CC 4561if test -n "$CC"; then 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4563$as_echo "$CC" >&6; } 4564else 4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4566$as_echo "no" >&6; } 4567fi 4568 4569 4570 test -n "$CC" && break 4571 done 4572fi 4573if test -z "$CC"; then 4574 ac_ct_CC=$CC 4575 for ac_prog in cl.exe 4576do 4577 # Extract the first word of "$ac_prog", so it can be a program name with args. 4578set dummy $ac_prog; ac_word=$2 4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4580$as_echo_n "checking for $ac_word... " >&6; } 4581if ${ac_cv_prog_ac_ct_CC+:} false; then : 4582 $as_echo_n "(cached) " >&6 4583else 4584 if test -n "$ac_ct_CC"; then 4585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4586else 4587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4588for as_dir in $PATH 4589do 4590 IFS=$as_save_IFS 4591 test -z "$as_dir" && as_dir=. 4592 for ac_exec_ext in '' $ac_executable_extensions; do 4593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4594 ac_cv_prog_ac_ct_CC="$ac_prog" 4595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4596 break 2 4597 fi 4598done 4599 done 4600IFS=$as_save_IFS 4601 4602fi 4603fi 4604ac_ct_CC=$ac_cv_prog_ac_ct_CC 4605if test -n "$ac_ct_CC"; then 4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4607$as_echo "$ac_ct_CC" >&6; } 4608else 4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4610$as_echo "no" >&6; } 4611fi 4612 4613 4614 test -n "$ac_ct_CC" && break 4615done 4616 4617 if test "x$ac_ct_CC" = x; then 4618 CC="" 4619 else 4620 case $cross_compiling:$ac_tool_warned in 4621yes:) 4622{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4623$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4624ac_tool_warned=yes ;; 4625esac 4626 CC=$ac_ct_CC 4627 fi 4628fi 4629 4630fi 4631 4632 4633test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4634$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4635as_fn_error $? "no acceptable C compiler found in \$PATH 4636See \`config.log' for more details" "$LINENO" 5; } 4637 4638# Provide some information about the compiler. 4639$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4640set X $ac_compile 4641ac_compiler=$2 4642for ac_option in --version -v -V -qversion; do 4643 { { ac_try="$ac_compiler $ac_option >&5" 4644case "(($ac_try" in 4645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4646 *) ac_try_echo=$ac_try;; 4647esac 4648eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4649$as_echo "$ac_try_echo"; } >&5 4650 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4651 ac_status=$? 4652 if test -s conftest.err; then 4653 sed '10a\ 4654... rest of stderr output deleted ... 4655 10q' conftest.err >conftest.er1 4656 cat conftest.er1 >&5 4657 fi 4658 rm -f conftest.er1 conftest.err 4659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4660 test $ac_status = 0; } 4661done 4662 4663cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4664/* end confdefs.h. */ 4665 4666int 4667main () 4668{ 4669 4670 ; 4671 return 0; 4672} 4673_ACEOF 4674ac_clean_files_save=$ac_clean_files 4675ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4676# Try to create an executable without -o first, disregard a.out. 4677# It will help us diagnose broken compilers, and finding out an intuition 4678# of exeext. 4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4680$as_echo_n "checking whether the C compiler works... " >&6; } 4681ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4682 4683# The possible output files: 4684ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4685 4686ac_rmfiles= 4687for ac_file in $ac_files 4688do 4689 case $ac_file in 4690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4691 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4692 esac 4693done 4694rm -f $ac_rmfiles 4695 4696if { { ac_try="$ac_link_default" 4697case "(($ac_try" in 4698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4699 *) ac_try_echo=$ac_try;; 4700esac 4701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4702$as_echo "$ac_try_echo"; } >&5 4703 (eval "$ac_link_default") 2>&5 4704 ac_status=$? 4705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4706 test $ac_status = 0; }; then : 4707 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4708# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4709# in a Makefile. We should not override ac_cv_exeext if it was cached, 4710# so that the user can short-circuit this test for compilers unknown to 4711# Autoconf. 4712for ac_file in $ac_files '' 4713do 4714 test -f "$ac_file" || continue 4715 case $ac_file in 4716 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4717 ;; 4718 [ab].out ) 4719 # We found the default executable, but exeext='' is most 4720 # certainly right. 4721 break;; 4722 *.* ) 4723 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4724 then :; else 4725 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4726 fi 4727 # We set ac_cv_exeext here because the later test for it is not 4728 # safe: cross compilers may not add the suffix if given an `-o' 4729 # argument, so we may need to know it at that point already. 4730 # Even if this section looks crufty: it has the advantage of 4731 # actually working. 4732 break;; 4733 * ) 4734 break;; 4735 esac 4736done 4737test "$ac_cv_exeext" = no && ac_cv_exeext= 4738 4739else 4740 ac_file='' 4741fi 4742if test -z "$ac_file"; then : 4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4744$as_echo "no" >&6; } 4745$as_echo "$as_me: failed program was:" >&5 4746sed 's/^/| /' conftest.$ac_ext >&5 4747 4748{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4750as_fn_error 77 "C compiler cannot create executables 4751See \`config.log' for more details" "$LINENO" 5; } 4752else 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4754$as_echo "yes" >&6; } 4755fi 4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4757$as_echo_n "checking for C compiler default output file name... " >&6; } 4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4759$as_echo "$ac_file" >&6; } 4760ac_exeext=$ac_cv_exeext 4761 4762rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4763ac_clean_files=$ac_clean_files_save 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4765$as_echo_n "checking for suffix of executables... " >&6; } 4766if { { ac_try="$ac_link" 4767case "(($ac_try" in 4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4769 *) ac_try_echo=$ac_try;; 4770esac 4771eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4772$as_echo "$ac_try_echo"; } >&5 4773 (eval "$ac_link") 2>&5 4774 ac_status=$? 4775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4776 test $ac_status = 0; }; then : 4777 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4778# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4779# work properly (i.e., refer to `conftest.exe'), while it won't with 4780# `rm'. 4781for ac_file in conftest.exe conftest conftest.*; do 4782 test -f "$ac_file" || continue 4783 case $ac_file in 4784 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4785 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4786 break;; 4787 * ) break;; 4788 esac 4789done 4790else 4791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4792$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4793as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4794See \`config.log' for more details" "$LINENO" 5; } 4795fi 4796rm -f conftest conftest$ac_cv_exeext 4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4798$as_echo "$ac_cv_exeext" >&6; } 4799 4800rm -f conftest.$ac_ext 4801EXEEXT=$ac_cv_exeext 4802ac_exeext=$EXEEXT 4803cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4804/* end confdefs.h. */ 4805#include <stdio.h> 4806int 4807main () 4808{ 4809FILE *f = fopen ("conftest.out", "w"); 4810 return ferror (f) || fclose (f) != 0; 4811 4812 ; 4813 return 0; 4814} 4815_ACEOF 4816ac_clean_files="$ac_clean_files conftest.out" 4817# Check that the compiler produces executables we can run. If not, either 4818# the compiler is broken, or we cross compile. 4819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4820$as_echo_n "checking whether we are cross compiling... " >&6; } 4821if test "$cross_compiling" != yes; then 4822 { { ac_try="$ac_link" 4823case "(($ac_try" in 4824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4825 *) ac_try_echo=$ac_try;; 4826esac 4827eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4828$as_echo "$ac_try_echo"; } >&5 4829 (eval "$ac_link") 2>&5 4830 ac_status=$? 4831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4832 test $ac_status = 0; } 4833 if { ac_try='./conftest$ac_cv_exeext' 4834 { { case "(($ac_try" in 4835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4836 *) ac_try_echo=$ac_try;; 4837esac 4838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4839$as_echo "$ac_try_echo"; } >&5 4840 (eval "$ac_try") 2>&5 4841 ac_status=$? 4842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4843 test $ac_status = 0; }; }; then 4844 cross_compiling=no 4845 else 4846 if test "$cross_compiling" = maybe; then 4847 cross_compiling=yes 4848 else 4849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4850$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4851as_fn_error $? "cannot run C compiled programs. 4852If you meant to cross compile, use \`--host'. 4853See \`config.log' for more details" "$LINENO" 5; } 4854 fi 4855 fi 4856fi 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4858$as_echo "$cross_compiling" >&6; } 4859 4860rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4861ac_clean_files=$ac_clean_files_save 4862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4863$as_echo_n "checking for suffix of object files... " >&6; } 4864if ${ac_cv_objext+:} false; then : 4865 $as_echo_n "(cached) " >&6 4866else 4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4868/* end confdefs.h. */ 4869 4870int 4871main () 4872{ 4873 4874 ; 4875 return 0; 4876} 4877_ACEOF 4878rm -f conftest.o conftest.obj 4879if { { ac_try="$ac_compile" 4880case "(($ac_try" in 4881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4882 *) ac_try_echo=$ac_try;; 4883esac 4884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4885$as_echo "$ac_try_echo"; } >&5 4886 (eval "$ac_compile") 2>&5 4887 ac_status=$? 4888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4889 test $ac_status = 0; }; then : 4890 for ac_file in conftest.o conftest.obj conftest.*; do 4891 test -f "$ac_file" || continue; 4892 case $ac_file in 4893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4894 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4895 break;; 4896 esac 4897done 4898else 4899 $as_echo "$as_me: failed program was:" >&5 4900sed 's/^/| /' conftest.$ac_ext >&5 4901 4902{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4903$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4904as_fn_error $? "cannot compute suffix of object files: cannot compile 4905See \`config.log' for more details" "$LINENO" 5; } 4906fi 4907rm -f conftest.$ac_cv_objext conftest.$ac_ext 4908fi 4909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4910$as_echo "$ac_cv_objext" >&6; } 4911OBJEXT=$ac_cv_objext 4912ac_objext=$OBJEXT 4913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4914$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4915if ${ac_cv_c_compiler_gnu+:} false; then : 4916 $as_echo_n "(cached) " >&6 4917else 4918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4919/* end confdefs.h. */ 4920 4921int 4922main () 4923{ 4924#ifndef __GNUC__ 4925 choke me 4926#endif 4927 4928 ; 4929 return 0; 4930} 4931_ACEOF 4932if ac_fn_c_try_compile "$LINENO"; then : 4933 ac_compiler_gnu=yes 4934else 4935 ac_compiler_gnu=no 4936fi 4937rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4938ac_cv_c_compiler_gnu=$ac_compiler_gnu 4939 4940fi 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4942$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4943if test $ac_compiler_gnu = yes; then 4944 GCC=yes 4945else 4946 GCC= 4947fi 4948ac_test_CFLAGS=${CFLAGS+set} 4949ac_save_CFLAGS=$CFLAGS 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4951$as_echo_n "checking whether $CC accepts -g... " >&6; } 4952if ${ac_cv_prog_cc_g+:} false; then : 4953 $as_echo_n "(cached) " >&6 4954else 4955 ac_save_c_werror_flag=$ac_c_werror_flag 4956 ac_c_werror_flag=yes 4957 ac_cv_prog_cc_g=no 4958 CFLAGS="-g" 4959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4960/* end confdefs.h. */ 4961 4962int 4963main () 4964{ 4965 4966 ; 4967 return 0; 4968} 4969_ACEOF 4970if ac_fn_c_try_compile "$LINENO"; then : 4971 ac_cv_prog_cc_g=yes 4972else 4973 CFLAGS="" 4974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4975/* end confdefs.h. */ 4976 4977int 4978main () 4979{ 4980 4981 ; 4982 return 0; 4983} 4984_ACEOF 4985if ac_fn_c_try_compile "$LINENO"; then : 4986 4987else 4988 ac_c_werror_flag=$ac_save_c_werror_flag 4989 CFLAGS="-g" 4990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4991/* end confdefs.h. */ 4992 4993int 4994main () 4995{ 4996 4997 ; 4998 return 0; 4999} 5000_ACEOF 5001if ac_fn_c_try_compile "$LINENO"; then : 5002 ac_cv_prog_cc_g=yes 5003fi 5004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5005fi 5006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5007fi 5008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5009 ac_c_werror_flag=$ac_save_c_werror_flag 5010fi 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5012$as_echo "$ac_cv_prog_cc_g" >&6; } 5013if test "$ac_test_CFLAGS" = set; then 5014 CFLAGS=$ac_save_CFLAGS 5015elif test $ac_cv_prog_cc_g = yes; then 5016 if test "$GCC" = yes; then 5017 CFLAGS="-g -O2" 5018 else 5019 CFLAGS="-g" 5020 fi 5021else 5022 if test "$GCC" = yes; then 5023 CFLAGS="-O2" 5024 else 5025 CFLAGS= 5026 fi 5027fi 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5029$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5030if ${ac_cv_prog_cc_c89+:} false; then : 5031 $as_echo_n "(cached) " >&6 5032else 5033 ac_cv_prog_cc_c89=no 5034ac_save_CC=$CC 5035cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5036/* end confdefs.h. */ 5037#include <stdarg.h> 5038#include <stdio.h> 5039struct stat; 5040/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5041struct buf { int x; }; 5042FILE * (*rcsopen) (struct buf *, struct stat *, int); 5043static char *e (p, i) 5044 char **p; 5045 int i; 5046{ 5047 return p[i]; 5048} 5049static char *f (char * (*g) (char **, int), char **p, ...) 5050{ 5051 char *s; 5052 va_list v; 5053 va_start (v,p); 5054 s = g (p, va_arg (v,int)); 5055 va_end (v); 5056 return s; 5057} 5058 5059/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5060 function prototypes and stuff, but not '\xHH' hex character constants. 5061 These don't provoke an error unfortunately, instead are silently treated 5062 as 'x'. The following induces an error, until -std is added to get 5063 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5064 array size at least. It's necessary to write '\x00'==0 to get something 5065 that's true only with -std. */ 5066int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5067 5068/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5069 inside strings and character constants. */ 5070#define FOO(x) 'x' 5071int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5072 5073int test (int i, double x); 5074struct s1 {int (*f) (int a);}; 5075struct s2 {int (*f) (double a);}; 5076int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5077int argc; 5078char **argv; 5079int 5080main () 5081{ 5082return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5083 ; 5084 return 0; 5085} 5086_ACEOF 5087for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5088 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5089do 5090 CC="$ac_save_CC $ac_arg" 5091 if ac_fn_c_try_compile "$LINENO"; then : 5092 ac_cv_prog_cc_c89=$ac_arg 5093fi 5094rm -f core conftest.err conftest.$ac_objext 5095 test "x$ac_cv_prog_cc_c89" != "xno" && break 5096done 5097rm -f conftest.$ac_ext 5098CC=$ac_save_CC 5099 5100fi 5101# AC_CACHE_VAL 5102case "x$ac_cv_prog_cc_c89" in 5103 x) 5104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5105$as_echo "none needed" >&6; } ;; 5106 xno) 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5108$as_echo "unsupported" >&6; } ;; 5109 *) 5110 CC="$CC $ac_cv_prog_cc_c89" 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5112$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5113esac 5114if test "x$ac_cv_prog_cc_c89" != xno; then : 5115 5116fi 5117 5118ac_ext=c 5119ac_cpp='$CPP $CPPFLAGS' 5120ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5121ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5122ac_compiler_gnu=$ac_cv_c_compiler_gnu 5123 5124ac_ext=c 5125ac_cpp='$CPP $CPPFLAGS' 5126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5128ac_compiler_gnu=$ac_cv_c_compiler_gnu 5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5130$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5131if ${am_cv_prog_cc_c_o+:} false; then : 5132 $as_echo_n "(cached) " >&6 5133else 5134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5135/* end confdefs.h. */ 5136 5137int 5138main () 5139{ 5140 5141 ; 5142 return 0; 5143} 5144_ACEOF 5145 # Make sure it works both with $CC and with simple cc. 5146 # Following AC_PROG_CC_C_O, we do the test twice because some 5147 # compilers refuse to overwrite an existing .o file with -o, 5148 # though they will create one. 5149 am_cv_prog_cc_c_o=yes 5150 for am_i in 1 2; do 5151 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 5152 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 5153 ac_status=$? 5154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5155 (exit $ac_status); } \ 5156 && test -f conftest2.$ac_objext; then 5157 : OK 5158 else 5159 am_cv_prog_cc_c_o=no 5160 break 5161 fi 5162 done 5163 rm -f core conftest* 5164 unset am_i 5165fi 5166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 5167$as_echo "$am_cv_prog_cc_c_o" >&6; } 5168if test "$am_cv_prog_cc_c_o" != yes; then 5169 # Losing compiler, so override with the script. 5170 # FIXME: It is wrong to rewrite CC. 5171 # But if we don't then we get into trouble of one sort or another. 5172 # A longer-term fix would be to have automake use am__CC in this case, 5173 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 5174 CC="$am_aux_dir/compile $CC" 5175fi 5176ac_ext=c 5177ac_cpp='$CPP $CPPFLAGS' 5178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5180ac_compiler_gnu=$ac_cv_c_compiler_gnu 5181 5182 5183depcc="$CC" am_compiler_list= 5184 5185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5186$as_echo_n "checking dependency style of $depcc... " >&6; } 5187if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5188 $as_echo_n "(cached) " >&6 5189else 5190 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5191 # We make a subdir and do the tests there. Otherwise we can end up 5192 # making bogus files that we don't know about and never remove. For 5193 # instance it was reported that on HP-UX the gcc test will end up 5194 # making a dummy file named 'D' -- because '-MD' means "put the output 5195 # in D". 5196 rm -rf conftest.dir 5197 mkdir conftest.dir 5198 # Copy depcomp to subdir because otherwise we won't find it if we're 5199 # using a relative directory. 5200 cp "$am_depcomp" conftest.dir 5201 cd conftest.dir 5202 # We will build objects and dependencies in a subdirectory because 5203 # it helps to detect inapplicable dependency modes. For instance 5204 # both Tru64's cc and ICC support -MD to output dependencies as a 5205 # side effect of compilation, but ICC will put the dependencies in 5206 # the current directory while Tru64 will put them in the object 5207 # directory. 5208 mkdir sub 5209 5210 am_cv_CC_dependencies_compiler_type=none 5211 if test "$am_compiler_list" = ""; then 5212 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5213 fi 5214 am__universal=false 5215 case " $depcc " in #( 5216 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5217 esac 5218 5219 for depmode in $am_compiler_list; do 5220 # Setup a source with many dependencies, because some compilers 5221 # like to wrap large dependency lists on column 80 (with \), and 5222 # we should not choose a depcomp mode which is confused by this. 5223 # 5224 # We need to recreate these files for each test, as the compiler may 5225 # overwrite some of them when testing with obscure command lines. 5226 # This happens at least with the AIX C compiler. 5227 : > sub/conftest.c 5228 for i in 1 2 3 4 5 6; do 5229 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5230 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 5231 # Solaris 10 /bin/sh. 5232 echo '/* dummy */' > sub/conftst$i.h 5233 done 5234 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5235 5236 # We check with '-c' and '-o' for the sake of the "dashmstdout" 5237 # mode. It turns out that the SunPro C++ compiler does not properly 5238 # handle '-M -o', and we need to detect this. Also, some Intel 5239 # versions had trouble with output in subdirs. 5240 am__obj=sub/conftest.${OBJEXT-o} 5241 am__minus_obj="-o $am__obj" 5242 case $depmode in 5243 gcc) 5244 # This depmode causes a compiler race in universal mode. 5245 test "$am__universal" = false || continue 5246 ;; 5247 nosideeffect) 5248 # After this tag, mechanisms are not by side-effect, so they'll 5249 # only be used when explicitly requested. 5250 if test "x$enable_dependency_tracking" = xyes; then 5251 continue 5252 else 5253 break 5254 fi 5255 ;; 5256 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 5257 # This compiler won't grok '-c -o', but also, the minuso test has 5258 # not run yet. These depmodes are late enough in the game, and 5259 # so weak that their functioning should not be impacted. 5260 am__obj=conftest.${OBJEXT-o} 5261 am__minus_obj= 5262 ;; 5263 none) break ;; 5264 esac 5265 if depmode=$depmode \ 5266 source=sub/conftest.c object=$am__obj \ 5267 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5268 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5269 >/dev/null 2>conftest.err && 5270 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5271 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5272 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5273 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5274 # icc doesn't choke on unknown options, it will just issue warnings 5275 # or remarks (even with -Werror). So we grep stderr for any message 5276 # that says an option was ignored or not supported. 5277 # When given -MP, icc 7.0 and 7.1 complain thusly: 5278 # icc: Command line warning: ignoring option '-M'; no argument required 5279 # The diagnosis changed in icc 8.0: 5280 # icc: Command line remark: option '-MP' not supported 5281 if (grep 'ignoring option' conftest.err || 5282 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5283 am_cv_CC_dependencies_compiler_type=$depmode 5284 break 5285 fi 5286 fi 5287 done 5288 5289 cd .. 5290 rm -rf conftest.dir 5291else 5292 am_cv_CC_dependencies_compiler_type=none 5293fi 5294 5295fi 5296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5297$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5298CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5299 5300 if 5301 test "x$enable_dependency_tracking" != xno \ 5302 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5303 am__fastdepCC_TRUE= 5304 am__fastdepCC_FALSE='#' 5305else 5306 am__fastdepCC_TRUE='#' 5307 am__fastdepCC_FALSE= 5308fi 5309 5310 5311ac_ext=c 5312ac_cpp='$CPP $CPPFLAGS' 5313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5315ac_compiler_gnu=$ac_cv_c_compiler_gnu 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5317$as_echo_n "checking how to run the C preprocessor... " >&6; } 5318# On Suns, sometimes $CPP names a directory. 5319if test -n "$CPP" && test -d "$CPP"; then 5320 CPP= 5321fi 5322if test -z "$CPP"; then 5323 if ${ac_cv_prog_CPP+:} false; then : 5324 $as_echo_n "(cached) " >&6 5325else 5326 # Double quotes because CPP needs to be expanded 5327 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5328 do 5329 ac_preproc_ok=false 5330for ac_c_preproc_warn_flag in '' yes 5331do 5332 # Use a header file that comes with gcc, so configuring glibc 5333 # with a fresh cross-compiler works. 5334 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5335 # <limits.h> exists even on freestanding compilers. 5336 # On the NeXT, cc -E runs the code through the compiler's parser, 5337 # not just through cpp. "Syntax error" is here to catch this case. 5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5339/* end confdefs.h. */ 5340#ifdef __STDC__ 5341# include <limits.h> 5342#else 5343# include <assert.h> 5344#endif 5345 Syntax error 5346_ACEOF 5347if ac_fn_c_try_cpp "$LINENO"; then : 5348 5349else 5350 # Broken: fails on valid input. 5351continue 5352fi 5353rm -f conftest.err conftest.i conftest.$ac_ext 5354 5355 # OK, works on sane cases. Now check whether nonexistent headers 5356 # can be detected and how. 5357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5358/* end confdefs.h. */ 5359#include <ac_nonexistent.h> 5360_ACEOF 5361if ac_fn_c_try_cpp "$LINENO"; then : 5362 # Broken: success on invalid input. 5363continue 5364else 5365 # Passes both tests. 5366ac_preproc_ok=: 5367break 5368fi 5369rm -f conftest.err conftest.i conftest.$ac_ext 5370 5371done 5372# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5373rm -f conftest.i conftest.err conftest.$ac_ext 5374if $ac_preproc_ok; then : 5375 break 5376fi 5377 5378 done 5379 ac_cv_prog_CPP=$CPP 5380 5381fi 5382 CPP=$ac_cv_prog_CPP 5383else 5384 ac_cv_prog_CPP=$CPP 5385fi 5386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5387$as_echo "$CPP" >&6; } 5388ac_preproc_ok=false 5389for ac_c_preproc_warn_flag in '' yes 5390do 5391 # Use a header file that comes with gcc, so configuring glibc 5392 # with a fresh cross-compiler works. 5393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5394 # <limits.h> exists even on freestanding compilers. 5395 # On the NeXT, cc -E runs the code through the compiler's parser, 5396 # not just through cpp. "Syntax error" is here to catch this case. 5397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5398/* end confdefs.h. */ 5399#ifdef __STDC__ 5400# include <limits.h> 5401#else 5402# include <assert.h> 5403#endif 5404 Syntax error 5405_ACEOF 5406if ac_fn_c_try_cpp "$LINENO"; then : 5407 5408else 5409 # Broken: fails on valid input. 5410continue 5411fi 5412rm -f conftest.err conftest.i conftest.$ac_ext 5413 5414 # OK, works on sane cases. Now check whether nonexistent headers 5415 # can be detected and how. 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418#include <ac_nonexistent.h> 5419_ACEOF 5420if ac_fn_c_try_cpp "$LINENO"; then : 5421 # Broken: success on invalid input. 5422continue 5423else 5424 # Passes both tests. 5425ac_preproc_ok=: 5426break 5427fi 5428rm -f conftest.err conftest.i conftest.$ac_ext 5429 5430done 5431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5432rm -f conftest.i conftest.err conftest.$ac_ext 5433if $ac_preproc_ok; then : 5434 5435else 5436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5437$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5438as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5439See \`config.log' for more details" "$LINENO" 5; } 5440fi 5441 5442ac_ext=c 5443ac_cpp='$CPP $CPPFLAGS' 5444ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5445ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5446ac_compiler_gnu=$ac_cv_c_compiler_gnu 5447 5448{ $as_echo "$as_me:${as_lineno-$LINENO}: Looking for C compiler" >&5 5449$as_echo "$as_me: Looking for C compiler" >&6;} 5450ac_ext=c 5451ac_cpp='$CPP $CPPFLAGS' 5452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5454ac_compiler_gnu=$ac_cv_c_compiler_gnu 5455if test -n "$ac_tool_prefix"; then 5456 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5457set dummy ${ac_tool_prefix}gcc; ac_word=$2 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5459$as_echo_n "checking for $ac_word... " >&6; } 5460if ${ac_cv_prog_CC+:} false; then : 5461 $as_echo_n "(cached) " >&6 5462else 5463 if test -n "$CC"; then 5464 ac_cv_prog_CC="$CC" # Let the user override the test. 5465else 5466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5467for as_dir in $PATH 5468do 5469 IFS=$as_save_IFS 5470 test -z "$as_dir" && as_dir=. 5471 for ac_exec_ext in '' $ac_executable_extensions; do 5472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5473 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5475 break 2 5476 fi 5477done 5478 done 5479IFS=$as_save_IFS 5480 5481fi 5482fi 5483CC=$ac_cv_prog_CC 5484if test -n "$CC"; then 5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5486$as_echo "$CC" >&6; } 5487else 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5489$as_echo "no" >&6; } 5490fi 5491 5492 5493fi 5494if test -z "$ac_cv_prog_CC"; then 5495 ac_ct_CC=$CC 5496 # Extract the first word of "gcc", so it can be a program name with args. 5497set dummy gcc; ac_word=$2 5498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499$as_echo_n "checking for $ac_word... " >&6; } 5500if ${ac_cv_prog_ac_ct_CC+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502else 5503 if test -n "$ac_ct_CC"; then 5504 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5505else 5506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5507for as_dir in $PATH 5508do 5509 IFS=$as_save_IFS 5510 test -z "$as_dir" && as_dir=. 5511 for ac_exec_ext in '' $ac_executable_extensions; do 5512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5513 ac_cv_prog_ac_ct_CC="gcc" 5514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5515 break 2 5516 fi 5517done 5518 done 5519IFS=$as_save_IFS 5520 5521fi 5522fi 5523ac_ct_CC=$ac_cv_prog_ac_ct_CC 5524if test -n "$ac_ct_CC"; then 5525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5526$as_echo "$ac_ct_CC" >&6; } 5527else 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5529$as_echo "no" >&6; } 5530fi 5531 5532 if test "x$ac_ct_CC" = x; then 5533 CC="" 5534 else 5535 case $cross_compiling:$ac_tool_warned in 5536yes:) 5537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5539ac_tool_warned=yes ;; 5540esac 5541 CC=$ac_ct_CC 5542 fi 5543else 5544 CC="$ac_cv_prog_CC" 5545fi 5546 5547if test -z "$CC"; then 5548 if test -n "$ac_tool_prefix"; then 5549 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5550set dummy ${ac_tool_prefix}cc; ac_word=$2 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5552$as_echo_n "checking for $ac_word... " >&6; } 5553if ${ac_cv_prog_CC+:} false; then : 5554 $as_echo_n "(cached) " >&6 5555else 5556 if test -n "$CC"; then 5557 ac_cv_prog_CC="$CC" # Let the user override the test. 5558else 5559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5560for as_dir in $PATH 5561do 5562 IFS=$as_save_IFS 5563 test -z "$as_dir" && as_dir=. 5564 for ac_exec_ext in '' $ac_executable_extensions; do 5565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5566 ac_cv_prog_CC="${ac_tool_prefix}cc" 5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5568 break 2 5569 fi 5570done 5571 done 5572IFS=$as_save_IFS 5573 5574fi 5575fi 5576CC=$ac_cv_prog_CC 5577if test -n "$CC"; then 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5579$as_echo "$CC" >&6; } 5580else 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5582$as_echo "no" >&6; } 5583fi 5584 5585 5586 fi 5587fi 5588if test -z "$CC"; then 5589 # Extract the first word of "cc", so it can be a program name with args. 5590set dummy cc; ac_word=$2 5591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5592$as_echo_n "checking for $ac_word... " >&6; } 5593if ${ac_cv_prog_CC+:} false; then : 5594 $as_echo_n "(cached) " >&6 5595else 5596 if test -n "$CC"; then 5597 ac_cv_prog_CC="$CC" # Let the user override the test. 5598else 5599 ac_prog_rejected=no 5600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5601for as_dir in $PATH 5602do 5603 IFS=$as_save_IFS 5604 test -z "$as_dir" && as_dir=. 5605 for ac_exec_ext in '' $ac_executable_extensions; do 5606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5607 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5608 ac_prog_rejected=yes 5609 continue 5610 fi 5611 ac_cv_prog_CC="cc" 5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5613 break 2 5614 fi 5615done 5616 done 5617IFS=$as_save_IFS 5618 5619if test $ac_prog_rejected = yes; then 5620 # We found a bogon in the path, so make sure we never use it. 5621 set dummy $ac_cv_prog_CC 5622 shift 5623 if test $# != 0; then 5624 # We chose a different compiler from the bogus one. 5625 # However, it has the same basename, so the bogon will be chosen 5626 # first if we set CC to just the basename; use the full file name. 5627 shift 5628 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5629 fi 5630fi 5631fi 5632fi 5633CC=$ac_cv_prog_CC 5634if test -n "$CC"; then 5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5636$as_echo "$CC" >&6; } 5637else 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5639$as_echo "no" >&6; } 5640fi 5641 5642 5643fi 5644if test -z "$CC"; then 5645 if test -n "$ac_tool_prefix"; then 5646 for ac_prog in cl.exe 5647 do 5648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5649set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5651$as_echo_n "checking for $ac_word... " >&6; } 5652if ${ac_cv_prog_CC+:} false; then : 5653 $as_echo_n "(cached) " >&6 5654else 5655 if test -n "$CC"; then 5656 ac_cv_prog_CC="$CC" # Let the user override the test. 5657else 5658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5659for as_dir in $PATH 5660do 5661 IFS=$as_save_IFS 5662 test -z "$as_dir" && as_dir=. 5663 for ac_exec_ext in '' $ac_executable_extensions; do 5664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5665 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5667 break 2 5668 fi 5669done 5670 done 5671IFS=$as_save_IFS 5672 5673fi 5674fi 5675CC=$ac_cv_prog_CC 5676if test -n "$CC"; then 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5678$as_echo "$CC" >&6; } 5679else 5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5681$as_echo "no" >&6; } 5682fi 5683 5684 5685 test -n "$CC" && break 5686 done 5687fi 5688if test -z "$CC"; then 5689 ac_ct_CC=$CC 5690 for ac_prog in cl.exe 5691do 5692 # Extract the first word of "$ac_prog", so it can be a program name with args. 5693set dummy $ac_prog; ac_word=$2 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5695$as_echo_n "checking for $ac_word... " >&6; } 5696if ${ac_cv_prog_ac_ct_CC+:} false; then : 5697 $as_echo_n "(cached) " >&6 5698else 5699 if test -n "$ac_ct_CC"; then 5700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5701else 5702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5703for as_dir in $PATH 5704do 5705 IFS=$as_save_IFS 5706 test -z "$as_dir" && as_dir=. 5707 for ac_exec_ext in '' $ac_executable_extensions; do 5708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5709 ac_cv_prog_ac_ct_CC="$ac_prog" 5710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5711 break 2 5712 fi 5713done 5714 done 5715IFS=$as_save_IFS 5716 5717fi 5718fi 5719ac_ct_CC=$ac_cv_prog_ac_ct_CC 5720if test -n "$ac_ct_CC"; then 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5722$as_echo "$ac_ct_CC" >&6; } 5723else 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5725$as_echo "no" >&6; } 5726fi 5727 5728 5729 test -n "$ac_ct_CC" && break 5730done 5731 5732 if test "x$ac_ct_CC" = x; then 5733 CC="" 5734 else 5735 case $cross_compiling:$ac_tool_warned in 5736yes:) 5737{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5738$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5739ac_tool_warned=yes ;; 5740esac 5741 CC=$ac_ct_CC 5742 fi 5743fi 5744 5745fi 5746 5747 5748test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5749$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5750as_fn_error $? "no acceptable C compiler found in \$PATH 5751See \`config.log' for more details" "$LINENO" 5; } 5752 5753# Provide some information about the compiler. 5754$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5755set X $ac_compile 5756ac_compiler=$2 5757for ac_option in --version -v -V -qversion; do 5758 { { ac_try="$ac_compiler $ac_option >&5" 5759case "(($ac_try" in 5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5761 *) ac_try_echo=$ac_try;; 5762esac 5763eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5764$as_echo "$ac_try_echo"; } >&5 5765 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5766 ac_status=$? 5767 if test -s conftest.err; then 5768 sed '10a\ 5769... rest of stderr output deleted ... 5770 10q' conftest.err >conftest.er1 5771 cat conftest.er1 >&5 5772 fi 5773 rm -f conftest.er1 conftest.err 5774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5775 test $ac_status = 0; } 5776done 5777 5778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5779$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5780if ${ac_cv_c_compiler_gnu+:} false; then : 5781 $as_echo_n "(cached) " >&6 5782else 5783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5784/* end confdefs.h. */ 5785 5786int 5787main () 5788{ 5789#ifndef __GNUC__ 5790 choke me 5791#endif 5792 5793 ; 5794 return 0; 5795} 5796_ACEOF 5797if ac_fn_c_try_compile "$LINENO"; then : 5798 ac_compiler_gnu=yes 5799else 5800 ac_compiler_gnu=no 5801fi 5802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5803ac_cv_c_compiler_gnu=$ac_compiler_gnu 5804 5805fi 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5807$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5808if test $ac_compiler_gnu = yes; then 5809 GCC=yes 5810else 5811 GCC= 5812fi 5813ac_test_CFLAGS=${CFLAGS+set} 5814ac_save_CFLAGS=$CFLAGS 5815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5816$as_echo_n "checking whether $CC accepts -g... " >&6; } 5817if ${ac_cv_prog_cc_g+:} false; then : 5818 $as_echo_n "(cached) " >&6 5819else 5820 ac_save_c_werror_flag=$ac_c_werror_flag 5821 ac_c_werror_flag=yes 5822 ac_cv_prog_cc_g=no 5823 CFLAGS="-g" 5824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5825/* end confdefs.h. */ 5826 5827int 5828main () 5829{ 5830 5831 ; 5832 return 0; 5833} 5834_ACEOF 5835if ac_fn_c_try_compile "$LINENO"; then : 5836 ac_cv_prog_cc_g=yes 5837else 5838 CFLAGS="" 5839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5840/* end confdefs.h. */ 5841 5842int 5843main () 5844{ 5845 5846 ; 5847 return 0; 5848} 5849_ACEOF 5850if ac_fn_c_try_compile "$LINENO"; then : 5851 5852else 5853 ac_c_werror_flag=$ac_save_c_werror_flag 5854 CFLAGS="-g" 5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856/* end confdefs.h. */ 5857 5858int 5859main () 5860{ 5861 5862 ; 5863 return 0; 5864} 5865_ACEOF 5866if ac_fn_c_try_compile "$LINENO"; then : 5867 ac_cv_prog_cc_g=yes 5868fi 5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5870fi 5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5872fi 5873rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5874 ac_c_werror_flag=$ac_save_c_werror_flag 5875fi 5876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5877$as_echo "$ac_cv_prog_cc_g" >&6; } 5878if test "$ac_test_CFLAGS" = set; then 5879 CFLAGS=$ac_save_CFLAGS 5880elif test $ac_cv_prog_cc_g = yes; then 5881 if test "$GCC" = yes; then 5882 CFLAGS="-g -O2" 5883 else 5884 CFLAGS="-g" 5885 fi 5886else 5887 if test "$GCC" = yes; then 5888 CFLAGS="-O2" 5889 else 5890 CFLAGS= 5891 fi 5892fi 5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5894$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5895if ${ac_cv_prog_cc_c89+:} false; then : 5896 $as_echo_n "(cached) " >&6 5897else 5898 ac_cv_prog_cc_c89=no 5899ac_save_CC=$CC 5900cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5901/* end confdefs.h. */ 5902#include <stdarg.h> 5903#include <stdio.h> 5904struct stat; 5905/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5906struct buf { int x; }; 5907FILE * (*rcsopen) (struct buf *, struct stat *, int); 5908static char *e (p, i) 5909 char **p; 5910 int i; 5911{ 5912 return p[i]; 5913} 5914static char *f (char * (*g) (char **, int), char **p, ...) 5915{ 5916 char *s; 5917 va_list v; 5918 va_start (v,p); 5919 s = g (p, va_arg (v,int)); 5920 va_end (v); 5921 return s; 5922} 5923 5924/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5925 function prototypes and stuff, but not '\xHH' hex character constants. 5926 These don't provoke an error unfortunately, instead are silently treated 5927 as 'x'. The following induces an error, until -std is added to get 5928 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5929 array size at least. It's necessary to write '\x00'==0 to get something 5930 that's true only with -std. */ 5931int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5932 5933/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5934 inside strings and character constants. */ 5935#define FOO(x) 'x' 5936int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5937 5938int test (int i, double x); 5939struct s1 {int (*f) (int a);}; 5940struct s2 {int (*f) (double a);}; 5941int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5942int argc; 5943char **argv; 5944int 5945main () 5946{ 5947return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5948 ; 5949 return 0; 5950} 5951_ACEOF 5952for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5953 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5954do 5955 CC="$ac_save_CC $ac_arg" 5956 if ac_fn_c_try_compile "$LINENO"; then : 5957 ac_cv_prog_cc_c89=$ac_arg 5958fi 5959rm -f core conftest.err conftest.$ac_objext 5960 test "x$ac_cv_prog_cc_c89" != "xno" && break 5961done 5962rm -f conftest.$ac_ext 5963CC=$ac_save_CC 5964 5965fi 5966# AC_CACHE_VAL 5967case "x$ac_cv_prog_cc_c89" in 5968 x) 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5970$as_echo "none needed" >&6; } ;; 5971 xno) 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5973$as_echo "unsupported" >&6; } ;; 5974 *) 5975 CC="$CC $ac_cv_prog_cc_c89" 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5977$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5978esac 5979if test "x$ac_cv_prog_cc_c89" != xno; then : 5980 5981fi 5982 5983ac_ext=c 5984ac_cpp='$CPP $CPPFLAGS' 5985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5987ac_compiler_gnu=$ac_cv_c_compiler_gnu 5988 5989ac_ext=c 5990ac_cpp='$CPP $CPPFLAGS' 5991ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5992ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5993ac_compiler_gnu=$ac_cv_c_compiler_gnu 5994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 5995$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 5996if ${am_cv_prog_cc_c_o+:} false; then : 5997 $as_echo_n "(cached) " >&6 5998else 5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6000/* end confdefs.h. */ 6001 6002int 6003main () 6004{ 6005 6006 ; 6007 return 0; 6008} 6009_ACEOF 6010 # Make sure it works both with $CC and with simple cc. 6011 # Following AC_PROG_CC_C_O, we do the test twice because some 6012 # compilers refuse to overwrite an existing .o file with -o, 6013 # though they will create one. 6014 am_cv_prog_cc_c_o=yes 6015 for am_i in 1 2; do 6016 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6017 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6018 ac_status=$? 6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6020 (exit $ac_status); } \ 6021 && test -f conftest2.$ac_objext; then 6022 : OK 6023 else 6024 am_cv_prog_cc_c_o=no 6025 break 6026 fi 6027 done 6028 rm -f core conftest* 6029 unset am_i 6030fi 6031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6032$as_echo "$am_cv_prog_cc_c_o" >&6; } 6033if test "$am_cv_prog_cc_c_o" != yes; then 6034 # Losing compiler, so override with the script. 6035 # FIXME: It is wrong to rewrite CC. 6036 # But if we don't then we get into trouble of one sort or another. 6037 # A longer-term fix would be to have automake use am__CC in this case, 6038 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6039 CC="$am_aux_dir/compile $CC" 6040fi 6041ac_ext=c 6042ac_cpp='$CPP $CPPFLAGS' 6043ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6044ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6045ac_compiler_gnu=$ac_cv_c_compiler_gnu 6046 6047 6048depcc="$CC" am_compiler_list= 6049 6050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6051$as_echo_n "checking dependency style of $depcc... " >&6; } 6052if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6053 $as_echo_n "(cached) " >&6 6054else 6055 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6056 # We make a subdir and do the tests there. Otherwise we can end up 6057 # making bogus files that we don't know about and never remove. For 6058 # instance it was reported that on HP-UX the gcc test will end up 6059 # making a dummy file named 'D' -- because '-MD' means "put the output 6060 # in D". 6061 rm -rf conftest.dir 6062 mkdir conftest.dir 6063 # Copy depcomp to subdir because otherwise we won't find it if we're 6064 # using a relative directory. 6065 cp "$am_depcomp" conftest.dir 6066 cd conftest.dir 6067 # We will build objects and dependencies in a subdirectory because 6068 # it helps to detect inapplicable dependency modes. For instance 6069 # both Tru64's cc and ICC support -MD to output dependencies as a 6070 # side effect of compilation, but ICC will put the dependencies in 6071 # the current directory while Tru64 will put them in the object 6072 # directory. 6073 mkdir sub 6074 6075 am_cv_CC_dependencies_compiler_type=none 6076 if test "$am_compiler_list" = ""; then 6077 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6078 fi 6079 am__universal=false 6080 case " $depcc " in #( 6081 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6082 esac 6083 6084 for depmode in $am_compiler_list; do 6085 # Setup a source with many dependencies, because some compilers 6086 # like to wrap large dependency lists on column 80 (with \), and 6087 # we should not choose a depcomp mode which is confused by this. 6088 # 6089 # We need to recreate these files for each test, as the compiler may 6090 # overwrite some of them when testing with obscure command lines. 6091 # This happens at least with the AIX C compiler. 6092 : > sub/conftest.c 6093 for i in 1 2 3 4 5 6; do 6094 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6095 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6096 # Solaris 10 /bin/sh. 6097 echo '/* dummy */' > sub/conftst$i.h 6098 done 6099 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6100 6101 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6102 # mode. It turns out that the SunPro C++ compiler does not properly 6103 # handle '-M -o', and we need to detect this. Also, some Intel 6104 # versions had trouble with output in subdirs. 6105 am__obj=sub/conftest.${OBJEXT-o} 6106 am__minus_obj="-o $am__obj" 6107 case $depmode in 6108 gcc) 6109 # This depmode causes a compiler race in universal mode. 6110 test "$am__universal" = false || continue 6111 ;; 6112 nosideeffect) 6113 # After this tag, mechanisms are not by side-effect, so they'll 6114 # only be used when explicitly requested. 6115 if test "x$enable_dependency_tracking" = xyes; then 6116 continue 6117 else 6118 break 6119 fi 6120 ;; 6121 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6122 # This compiler won't grok '-c -o', but also, the minuso test has 6123 # not run yet. These depmodes are late enough in the game, and 6124 # so weak that their functioning should not be impacted. 6125 am__obj=conftest.${OBJEXT-o} 6126 am__minus_obj= 6127 ;; 6128 none) break ;; 6129 esac 6130 if depmode=$depmode \ 6131 source=sub/conftest.c object=$am__obj \ 6132 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6133 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6134 >/dev/null 2>conftest.err && 6135 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6136 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6137 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6138 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6139 # icc doesn't choke on unknown options, it will just issue warnings 6140 # or remarks (even with -Werror). So we grep stderr for any message 6141 # that says an option was ignored or not supported. 6142 # When given -MP, icc 7.0 and 7.1 complain thusly: 6143 # icc: Command line warning: ignoring option '-M'; no argument required 6144 # The diagnosis changed in icc 8.0: 6145 # icc: Command line remark: option '-MP' not supported 6146 if (grep 'ignoring option' conftest.err || 6147 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6148 am_cv_CC_dependencies_compiler_type=$depmode 6149 break 6150 fi 6151 fi 6152 done 6153 6154 cd .. 6155 rm -rf conftest.dir 6156else 6157 am_cv_CC_dependencies_compiler_type=none 6158fi 6159 6160fi 6161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6162$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6163CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6164 6165 if 6166 test "x$enable_dependency_tracking" != xno \ 6167 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6168 am__fastdepCC_TRUE= 6169 am__fastdepCC_FALSE='#' 6170else 6171 am__fastdepCC_TRUE='#' 6172 am__fastdepCC_FALSE= 6173fi 6174 6175 6176{ $as_echo "$as_me:${as_lineno-$LINENO}: Looking for C++ pre-processor" >&5 6177$as_echo "$as_me: Looking for C++ pre-processor" >&6;} 6178ac_ext=cpp 6179ac_cpp='$CXXCPP $CPPFLAGS' 6180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6183if test -z "$CXX"; then 6184 if test -n "$CCC"; then 6185 CXX=$CCC 6186 else 6187 if test -n "$ac_tool_prefix"; then 6188 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6189 do 6190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6191set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6193$as_echo_n "checking for $ac_word... " >&6; } 6194if ${ac_cv_prog_CXX+:} false; then : 6195 $as_echo_n "(cached) " >&6 6196else 6197 if test -n "$CXX"; then 6198 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6199else 6200as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6201for as_dir in $PATH 6202do 6203 IFS=$as_save_IFS 6204 test -z "$as_dir" && as_dir=. 6205 for ac_exec_ext in '' $ac_executable_extensions; do 6206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6207 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6209 break 2 6210 fi 6211done 6212 done 6213IFS=$as_save_IFS 6214 6215fi 6216fi 6217CXX=$ac_cv_prog_CXX 6218if test -n "$CXX"; then 6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6220$as_echo "$CXX" >&6; } 6221else 6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6223$as_echo "no" >&6; } 6224fi 6225 6226 6227 test -n "$CXX" && break 6228 done 6229fi 6230if test -z "$CXX"; then 6231 ac_ct_CXX=$CXX 6232 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6233do 6234 # Extract the first word of "$ac_prog", so it can be a program name with args. 6235set dummy $ac_prog; ac_word=$2 6236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6237$as_echo_n "checking for $ac_word... " >&6; } 6238if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 if test -n "$ac_ct_CXX"; then 6242 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6243else 6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6245for as_dir in $PATH 6246do 6247 IFS=$as_save_IFS 6248 test -z "$as_dir" && as_dir=. 6249 for ac_exec_ext in '' $ac_executable_extensions; do 6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6251 ac_cv_prog_ac_ct_CXX="$ac_prog" 6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6253 break 2 6254 fi 6255done 6256 done 6257IFS=$as_save_IFS 6258 6259fi 6260fi 6261ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6262if test -n "$ac_ct_CXX"; then 6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6264$as_echo "$ac_ct_CXX" >&6; } 6265else 6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6267$as_echo "no" >&6; } 6268fi 6269 6270 6271 test -n "$ac_ct_CXX" && break 6272done 6273 6274 if test "x$ac_ct_CXX" = x; then 6275 CXX="g++" 6276 else 6277 case $cross_compiling:$ac_tool_warned in 6278yes:) 6279{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6280$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6281ac_tool_warned=yes ;; 6282esac 6283 CXX=$ac_ct_CXX 6284 fi 6285fi 6286 6287 fi 6288fi 6289# Provide some information about the compiler. 6290$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6291set X $ac_compile 6292ac_compiler=$2 6293for ac_option in --version -v -V -qversion; do 6294 { { ac_try="$ac_compiler $ac_option >&5" 6295case "(($ac_try" in 6296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6297 *) ac_try_echo=$ac_try;; 6298esac 6299eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6300$as_echo "$ac_try_echo"; } >&5 6301 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6302 ac_status=$? 6303 if test -s conftest.err; then 6304 sed '10a\ 6305... rest of stderr output deleted ... 6306 10q' conftest.err >conftest.er1 6307 cat conftest.er1 >&5 6308 fi 6309 rm -f conftest.er1 conftest.err 6310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6311 test $ac_status = 0; } 6312done 6313 6314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6315$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6316if ${ac_cv_cxx_compiler_gnu+:} false; then : 6317 $as_echo_n "(cached) " >&6 6318else 6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6320/* end confdefs.h. */ 6321 6322int 6323main () 6324{ 6325#ifndef __GNUC__ 6326 choke me 6327#endif 6328 6329 ; 6330 return 0; 6331} 6332_ACEOF 6333if ac_fn_cxx_try_compile "$LINENO"; then : 6334 ac_compiler_gnu=yes 6335else 6336 ac_compiler_gnu=no 6337fi 6338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6339ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6340 6341fi 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6343$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6344if test $ac_compiler_gnu = yes; then 6345 GXX=yes 6346else 6347 GXX= 6348fi 6349ac_test_CXXFLAGS=${CXXFLAGS+set} 6350ac_save_CXXFLAGS=$CXXFLAGS 6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6352$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6353if ${ac_cv_prog_cxx_g+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355else 6356 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6357 ac_cxx_werror_flag=yes 6358 ac_cv_prog_cxx_g=no 6359 CXXFLAGS="-g" 6360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6361/* end confdefs.h. */ 6362 6363int 6364main () 6365{ 6366 6367 ; 6368 return 0; 6369} 6370_ACEOF 6371if ac_fn_cxx_try_compile "$LINENO"; then : 6372 ac_cv_prog_cxx_g=yes 6373else 6374 CXXFLAGS="" 6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6376/* end confdefs.h. */ 6377 6378int 6379main () 6380{ 6381 6382 ; 6383 return 0; 6384} 6385_ACEOF 6386if ac_fn_cxx_try_compile "$LINENO"; then : 6387 6388else 6389 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6390 CXXFLAGS="-g" 6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6392/* end confdefs.h. */ 6393 6394int 6395main () 6396{ 6397 6398 ; 6399 return 0; 6400} 6401_ACEOF 6402if ac_fn_cxx_try_compile "$LINENO"; then : 6403 ac_cv_prog_cxx_g=yes 6404fi 6405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6406fi 6407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6408fi 6409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6410 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6411fi 6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6413$as_echo "$ac_cv_prog_cxx_g" >&6; } 6414if test "$ac_test_CXXFLAGS" = set; then 6415 CXXFLAGS=$ac_save_CXXFLAGS 6416elif test $ac_cv_prog_cxx_g = yes; then 6417 if test "$GXX" = yes; then 6418 CXXFLAGS="-g -O2" 6419 else 6420 CXXFLAGS="-g" 6421 fi 6422else 6423 if test "$GXX" = yes; then 6424 CXXFLAGS="-O2" 6425 else 6426 CXXFLAGS= 6427 fi 6428fi 6429ac_ext=c 6430ac_cpp='$CPP $CPPFLAGS' 6431ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6432ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6433ac_compiler_gnu=$ac_cv_c_compiler_gnu 6434 6435depcc="$CXX" am_compiler_list= 6436 6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6438$as_echo_n "checking dependency style of $depcc... " >&6; } 6439if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6440 $as_echo_n "(cached) " >&6 6441else 6442 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6443 # We make a subdir and do the tests there. Otherwise we can end up 6444 # making bogus files that we don't know about and never remove. For 6445 # instance it was reported that on HP-UX the gcc test will end up 6446 # making a dummy file named 'D' -- because '-MD' means "put the output 6447 # in D". 6448 rm -rf conftest.dir 6449 mkdir conftest.dir 6450 # Copy depcomp to subdir because otherwise we won't find it if we're 6451 # using a relative directory. 6452 cp "$am_depcomp" conftest.dir 6453 cd conftest.dir 6454 # We will build objects and dependencies in a subdirectory because 6455 # it helps to detect inapplicable dependency modes. For instance 6456 # both Tru64's cc and ICC support -MD to output dependencies as a 6457 # side effect of compilation, but ICC will put the dependencies in 6458 # the current directory while Tru64 will put them in the object 6459 # directory. 6460 mkdir sub 6461 6462 am_cv_CXX_dependencies_compiler_type=none 6463 if test "$am_compiler_list" = ""; then 6464 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6465 fi 6466 am__universal=false 6467 case " $depcc " in #( 6468 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6469 esac 6470 6471 for depmode in $am_compiler_list; do 6472 # Setup a source with many dependencies, because some compilers 6473 # like to wrap large dependency lists on column 80 (with \), and 6474 # we should not choose a depcomp mode which is confused by this. 6475 # 6476 # We need to recreate these files for each test, as the compiler may 6477 # overwrite some of them when testing with obscure command lines. 6478 # This happens at least with the AIX C compiler. 6479 : > sub/conftest.c 6480 for i in 1 2 3 4 5 6; do 6481 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6482 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6483 # Solaris 10 /bin/sh. 6484 echo '/* dummy */' > sub/conftst$i.h 6485 done 6486 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6487 6488 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6489 # mode. It turns out that the SunPro C++ compiler does not properly 6490 # handle '-M -o', and we need to detect this. Also, some Intel 6491 # versions had trouble with output in subdirs. 6492 am__obj=sub/conftest.${OBJEXT-o} 6493 am__minus_obj="-o $am__obj" 6494 case $depmode in 6495 gcc) 6496 # This depmode causes a compiler race in universal mode. 6497 test "$am__universal" = false || continue 6498 ;; 6499 nosideeffect) 6500 # After this tag, mechanisms are not by side-effect, so they'll 6501 # only be used when explicitly requested. 6502 if test "x$enable_dependency_tracking" = xyes; then 6503 continue 6504 else 6505 break 6506 fi 6507 ;; 6508 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6509 # This compiler won't grok '-c -o', but also, the minuso test has 6510 # not run yet. These depmodes are late enough in the game, and 6511 # so weak that their functioning should not be impacted. 6512 am__obj=conftest.${OBJEXT-o} 6513 am__minus_obj= 6514 ;; 6515 none) break ;; 6516 esac 6517 if depmode=$depmode \ 6518 source=sub/conftest.c object=$am__obj \ 6519 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6520 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6521 >/dev/null 2>conftest.err && 6522 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6523 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6524 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6525 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6526 # icc doesn't choke on unknown options, it will just issue warnings 6527 # or remarks (even with -Werror). So we grep stderr for any message 6528 # that says an option was ignored or not supported. 6529 # When given -MP, icc 7.0 and 7.1 complain thusly: 6530 # icc: Command line warning: ignoring option '-M'; no argument required 6531 # The diagnosis changed in icc 8.0: 6532 # icc: Command line remark: option '-MP' not supported 6533 if (grep 'ignoring option' conftest.err || 6534 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6535 am_cv_CXX_dependencies_compiler_type=$depmode 6536 break 6537 fi 6538 fi 6539 done 6540 6541 cd .. 6542 rm -rf conftest.dir 6543else 6544 am_cv_CXX_dependencies_compiler_type=none 6545fi 6546 6547fi 6548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 6549$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 6550CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 6551 6552 if 6553 test "x$enable_dependency_tracking" != xno \ 6554 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 6555 am__fastdepCXX_TRUE= 6556 am__fastdepCXX_FALSE='#' 6557else 6558 am__fastdepCXX_TRUE='#' 6559 am__fastdepCXX_FALSE= 6560fi 6561 6562 6563ac_ext=cpp 6564ac_cpp='$CXXCPP $CPPFLAGS' 6565ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6566ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6567ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 6569$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 6570if test -z "$CXXCPP"; then 6571 if ${ac_cv_prog_CXXCPP+:} false; then : 6572 $as_echo_n "(cached) " >&6 6573else 6574 # Double quotes because CXXCPP needs to be expanded 6575 for CXXCPP in "$CXX -E" "/lib/cpp" 6576 do 6577 ac_preproc_ok=false 6578for ac_cxx_preproc_warn_flag in '' yes 6579do 6580 # Use a header file that comes with gcc, so configuring glibc 6581 # with a fresh cross-compiler works. 6582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6583 # <limits.h> exists even on freestanding compilers. 6584 # On the NeXT, cc -E runs the code through the compiler's parser, 6585 # not just through cpp. "Syntax error" is here to catch this case. 6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6587/* end confdefs.h. */ 6588#ifdef __STDC__ 6589# include <limits.h> 6590#else 6591# include <assert.h> 6592#endif 6593 Syntax error 6594_ACEOF 6595if ac_fn_cxx_try_cpp "$LINENO"; then : 6596 6597else 6598 # Broken: fails on valid input. 6599continue 6600fi 6601rm -f conftest.err conftest.i conftest.$ac_ext 6602 6603 # OK, works on sane cases. Now check whether nonexistent headers 6604 # can be detected and how. 6605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6606/* end confdefs.h. */ 6607#include <ac_nonexistent.h> 6608_ACEOF 6609if ac_fn_cxx_try_cpp "$LINENO"; then : 6610 # Broken: success on invalid input. 6611continue 6612else 6613 # Passes both tests. 6614ac_preproc_ok=: 6615break 6616fi 6617rm -f conftest.err conftest.i conftest.$ac_ext 6618 6619done 6620# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6621rm -f conftest.i conftest.err conftest.$ac_ext 6622if $ac_preproc_ok; then : 6623 break 6624fi 6625 6626 done 6627 ac_cv_prog_CXXCPP=$CXXCPP 6628 6629fi 6630 CXXCPP=$ac_cv_prog_CXXCPP 6631else 6632 ac_cv_prog_CXXCPP=$CXXCPP 6633fi 6634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 6635$as_echo "$CXXCPP" >&6; } 6636ac_preproc_ok=false 6637for ac_cxx_preproc_warn_flag in '' yes 6638do 6639 # Use a header file that comes with gcc, so configuring glibc 6640 # with a fresh cross-compiler works. 6641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6642 # <limits.h> exists even on freestanding compilers. 6643 # On the NeXT, cc -E runs the code through the compiler's parser, 6644 # not just through cpp. "Syntax error" is here to catch this case. 6645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6646/* end confdefs.h. */ 6647#ifdef __STDC__ 6648# include <limits.h> 6649#else 6650# include <assert.h> 6651#endif 6652 Syntax error 6653_ACEOF 6654if ac_fn_cxx_try_cpp "$LINENO"; then : 6655 6656else 6657 # Broken: fails on valid input. 6658continue 6659fi 6660rm -f conftest.err conftest.i conftest.$ac_ext 6661 6662 # OK, works on sane cases. Now check whether nonexistent headers 6663 # can be detected and how. 6664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6665/* end confdefs.h. */ 6666#include <ac_nonexistent.h> 6667_ACEOF 6668if ac_fn_cxx_try_cpp "$LINENO"; then : 6669 # Broken: success on invalid input. 6670continue 6671else 6672 # Passes both tests. 6673ac_preproc_ok=: 6674break 6675fi 6676rm -f conftest.err conftest.i conftest.$ac_ext 6677 6678done 6679# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6680rm -f conftest.i conftest.err conftest.$ac_ext 6681if $ac_preproc_ok; then : 6682 6683else 6684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6686as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 6687See \`config.log' for more details" "$LINENO" 5; } 6688fi 6689 6690ac_ext=c 6691ac_cpp='$CPP $CPPFLAGS' 6692ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6693ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6694ac_compiler_gnu=$ac_cv_c_compiler_gnu 6695 6696{ $as_echo "$as_me:${as_lineno-$LINENO}: Looking for C++ compiler" >&5 6697$as_echo "$as_me: Looking for C++ compiler" >&6;} 6698ac_ext=cpp 6699ac_cpp='$CXXCPP $CPPFLAGS' 6700ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6701ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6702ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6703if test -z "$CXX"; then 6704 if test -n "$CCC"; then 6705 CXX=$CCC 6706 else 6707 if test -n "$ac_tool_prefix"; then 6708 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6709 do 6710 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6711set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6713$as_echo_n "checking for $ac_word... " >&6; } 6714if ${ac_cv_prog_CXX+:} false; then : 6715 $as_echo_n "(cached) " >&6 6716else 6717 if test -n "$CXX"; then 6718 ac_cv_prog_CXX="$CXX" # Let the user override the test. 6719else 6720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6721for as_dir in $PATH 6722do 6723 IFS=$as_save_IFS 6724 test -z "$as_dir" && as_dir=. 6725 for ac_exec_ext in '' $ac_executable_extensions; do 6726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6727 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 6728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6729 break 2 6730 fi 6731done 6732 done 6733IFS=$as_save_IFS 6734 6735fi 6736fi 6737CXX=$ac_cv_prog_CXX 6738if test -n "$CXX"; then 6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 6740$as_echo "$CXX" >&6; } 6741else 6742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6743$as_echo "no" >&6; } 6744fi 6745 6746 6747 test -n "$CXX" && break 6748 done 6749fi 6750if test -z "$CXX"; then 6751 ac_ct_CXX=$CXX 6752 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 6753do 6754 # Extract the first word of "$ac_prog", so it can be a program name with args. 6755set dummy $ac_prog; ac_word=$2 6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6757$as_echo_n "checking for $ac_word... " >&6; } 6758if ${ac_cv_prog_ac_ct_CXX+:} false; then : 6759 $as_echo_n "(cached) " >&6 6760else 6761 if test -n "$ac_ct_CXX"; then 6762 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 6763else 6764as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6765for as_dir in $PATH 6766do 6767 IFS=$as_save_IFS 6768 test -z "$as_dir" && as_dir=. 6769 for ac_exec_ext in '' $ac_executable_extensions; do 6770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6771 ac_cv_prog_ac_ct_CXX="$ac_prog" 6772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6773 break 2 6774 fi 6775done 6776 done 6777IFS=$as_save_IFS 6778 6779fi 6780fi 6781ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 6782if test -n "$ac_ct_CXX"; then 6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 6784$as_echo "$ac_ct_CXX" >&6; } 6785else 6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6787$as_echo "no" >&6; } 6788fi 6789 6790 6791 test -n "$ac_ct_CXX" && break 6792done 6793 6794 if test "x$ac_ct_CXX" = x; then 6795 CXX="g++" 6796 else 6797 case $cross_compiling:$ac_tool_warned in 6798yes:) 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6800$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6801ac_tool_warned=yes ;; 6802esac 6803 CXX=$ac_ct_CXX 6804 fi 6805fi 6806 6807 fi 6808fi 6809# Provide some information about the compiler. 6810$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 6811set X $ac_compile 6812ac_compiler=$2 6813for ac_option in --version -v -V -qversion; do 6814 { { ac_try="$ac_compiler $ac_option >&5" 6815case "(($ac_try" in 6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6817 *) ac_try_echo=$ac_try;; 6818esac 6819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 6820$as_echo "$ac_try_echo"; } >&5 6821 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 6822 ac_status=$? 6823 if test -s conftest.err; then 6824 sed '10a\ 6825... rest of stderr output deleted ... 6826 10q' conftest.err >conftest.er1 6827 cat conftest.er1 >&5 6828 fi 6829 rm -f conftest.er1 conftest.err 6830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6831 test $ac_status = 0; } 6832done 6833 6834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 6835$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 6836if ${ac_cv_cxx_compiler_gnu+:} false; then : 6837 $as_echo_n "(cached) " >&6 6838else 6839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6840/* end confdefs.h. */ 6841 6842int 6843main () 6844{ 6845#ifndef __GNUC__ 6846 choke me 6847#endif 6848 6849 ; 6850 return 0; 6851} 6852_ACEOF 6853if ac_fn_cxx_try_compile "$LINENO"; then : 6854 ac_compiler_gnu=yes 6855else 6856 ac_compiler_gnu=no 6857fi 6858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6859ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 6860 6861fi 6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 6863$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 6864if test $ac_compiler_gnu = yes; then 6865 GXX=yes 6866else 6867 GXX= 6868fi 6869ac_test_CXXFLAGS=${CXXFLAGS+set} 6870ac_save_CXXFLAGS=$CXXFLAGS 6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 6872$as_echo_n "checking whether $CXX accepts -g... " >&6; } 6873if ${ac_cv_prog_cxx_g+:} false; then : 6874 $as_echo_n "(cached) " >&6 6875else 6876 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 6877 ac_cxx_werror_flag=yes 6878 ac_cv_prog_cxx_g=no 6879 CXXFLAGS="-g" 6880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6881/* end confdefs.h. */ 6882 6883int 6884main () 6885{ 6886 6887 ; 6888 return 0; 6889} 6890_ACEOF 6891if ac_fn_cxx_try_compile "$LINENO"; then : 6892 ac_cv_prog_cxx_g=yes 6893else 6894 CXXFLAGS="" 6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6896/* end confdefs.h. */ 6897 6898int 6899main () 6900{ 6901 6902 ; 6903 return 0; 6904} 6905_ACEOF 6906if ac_fn_cxx_try_compile "$LINENO"; then : 6907 6908else 6909 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6910 CXXFLAGS="-g" 6911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6912/* end confdefs.h. */ 6913 6914int 6915main () 6916{ 6917 6918 ; 6919 return 0; 6920} 6921_ACEOF 6922if ac_fn_cxx_try_compile "$LINENO"; then : 6923 ac_cv_prog_cxx_g=yes 6924fi 6925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6926fi 6927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6928fi 6929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6930 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 6931fi 6932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 6933$as_echo "$ac_cv_prog_cxx_g" >&6; } 6934if test "$ac_test_CXXFLAGS" = set; then 6935 CXXFLAGS=$ac_save_CXXFLAGS 6936elif test $ac_cv_prog_cxx_g = yes; then 6937 if test "$GXX" = yes; then 6938 CXXFLAGS="-g -O2" 6939 else 6940 CXXFLAGS="-g" 6941 fi 6942else 6943 if test "$GXX" = yes; then 6944 CXXFLAGS="-O2" 6945 else 6946 CXXFLAGS= 6947 fi 6948fi 6949ac_ext=c 6950ac_cpp='$CPP $CPPFLAGS' 6951ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6952ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6953ac_compiler_gnu=$ac_cv_c_compiler_gnu 6954 6955depcc="$CXX" am_compiler_list= 6956 6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6958$as_echo_n "checking dependency style of $depcc... " >&6; } 6959if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 6960 $as_echo_n "(cached) " >&6 6961else 6962 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6963 # We make a subdir and do the tests there. Otherwise we can end up 6964 # making bogus files that we don't know about and never remove. For 6965 # instance it was reported that on HP-UX the gcc test will end up 6966 # making a dummy file named 'D' -- because '-MD' means "put the output 6967 # in D". 6968 rm -rf conftest.dir 6969 mkdir conftest.dir 6970 # Copy depcomp to subdir because otherwise we won't find it if we're 6971 # using a relative directory. 6972 cp "$am_depcomp" conftest.dir 6973 cd conftest.dir 6974 # We will build objects and dependencies in a subdirectory because 6975 # it helps to detect inapplicable dependency modes. For instance 6976 # both Tru64's cc and ICC support -MD to output dependencies as a 6977 # side effect of compilation, but ICC will put the dependencies in 6978 # the current directory while Tru64 will put them in the object 6979 # directory. 6980 mkdir sub 6981 6982 am_cv_CXX_dependencies_compiler_type=none 6983 if test "$am_compiler_list" = ""; then 6984 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6985 fi 6986 am__universal=false 6987 case " $depcc " in #( 6988 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6989 esac 6990 6991 for depmode in $am_compiler_list; do 6992 # Setup a source with many dependencies, because some compilers 6993 # like to wrap large dependency lists on column 80 (with \), and 6994 # we should not choose a depcomp mode which is confused by this. 6995 # 6996 # We need to recreate these files for each test, as the compiler may 6997 # overwrite some of them when testing with obscure command lines. 6998 # This happens at least with the AIX C compiler. 6999 : > sub/conftest.c 7000 for i in 1 2 3 4 5 6; do 7001 echo '#include "conftst'$i'.h"' >> sub/conftest.c 7002 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 7003 # Solaris 10 /bin/sh. 7004 echo '/* dummy */' > sub/conftst$i.h 7005 done 7006 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 7007 7008 # We check with '-c' and '-o' for the sake of the "dashmstdout" 7009 # mode. It turns out that the SunPro C++ compiler does not properly 7010 # handle '-M -o', and we need to detect this. Also, some Intel 7011 # versions had trouble with output in subdirs. 7012 am__obj=sub/conftest.${OBJEXT-o} 7013 am__minus_obj="-o $am__obj" 7014 case $depmode in 7015 gcc) 7016 # This depmode causes a compiler race in universal mode. 7017 test "$am__universal" = false || continue 7018 ;; 7019 nosideeffect) 7020 # After this tag, mechanisms are not by side-effect, so they'll 7021 # only be used when explicitly requested. 7022 if test "x$enable_dependency_tracking" = xyes; then 7023 continue 7024 else 7025 break 7026 fi 7027 ;; 7028 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 7029 # This compiler won't grok '-c -o', but also, the minuso test has 7030 # not run yet. These depmodes are late enough in the game, and 7031 # so weak that their functioning should not be impacted. 7032 am__obj=conftest.${OBJEXT-o} 7033 am__minus_obj= 7034 ;; 7035 none) break ;; 7036 esac 7037 if depmode=$depmode \ 7038 source=sub/conftest.c object=$am__obj \ 7039 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 7040 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 7041 >/dev/null 2>conftest.err && 7042 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 7043 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 7044 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 7045 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 7046 # icc doesn't choke on unknown options, it will just issue warnings 7047 # or remarks (even with -Werror). So we grep stderr for any message 7048 # that says an option was ignored or not supported. 7049 # When given -MP, icc 7.0 and 7.1 complain thusly: 7050 # icc: Command line warning: ignoring option '-M'; no argument required 7051 # The diagnosis changed in icc 8.0: 7052 # icc: Command line remark: option '-MP' not supported 7053 if (grep 'ignoring option' conftest.err || 7054 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 7055 am_cv_CXX_dependencies_compiler_type=$depmode 7056 break 7057 fi 7058 fi 7059 done 7060 7061 cd .. 7062 rm -rf conftest.dir 7063else 7064 am_cv_CXX_dependencies_compiler_type=none 7065fi 7066 7067fi 7068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 7069$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 7070CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 7071 7072 if 7073 test "x$enable_dependency_tracking" != xno \ 7074 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 7075 am__fastdepCXX_TRUE= 7076 am__fastdepCXX_FALSE='#' 7077else 7078 am__fastdepCXX_TRUE='#' 7079 am__fastdepCXX_FALSE= 7080fi 7081 7082 7083CFLAGS="$old_CFLAGS" 7084CXXFLAGS="$old_CXXFLAGS" 7085 7086 7087# Some newer versions of gcc support a new gnu (rather then sysv) format 7088# of part of object files. The effect of this new format it to speed up 7089# dynamic linking, perhaps by a factor of 2. That is good! But an object 7090# made using only the new scheme fails with a floating point exception 7091# when you try to run it on an older system. That is it fails while being 7092# loaded, not while being run. Fedora Core 6 (at least) by default 7093# uses just the new format, and so generates VERY non-portable executables. 7094# Enabling the "both" option here should soften the impact... 7095 7096{ $as_echo "$as_me:${as_lineno-$LINENO}: Checking for \"--hash-style=both\"" >&5 7097$as_echo "$as_me: Checking for \"--hash-style=both\"" >&6;} 7098if test "x$GCC" = "xyes" 7099then 7100 OLDLDFLAGS="$LDFLAGS" 7101 LDFLAGS="$LDFLAGS -Wl,--hash-style=both" 7102 7103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7104/* end confdefs.h. */ 7105#include <stdio.h> 7106int 7107main () 7108{ 7109printf("Hello\n"); 7110 ; 7111 return 0; 7112} 7113_ACEOF 7114if ac_fn_c_try_link "$LINENO"; then : 7115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use --hash-style=both" >&5 7116$as_echo "$as_me: Will use --hash-style=both" >&6;} 7117else 7118 LDFLAGS="$OLDLDFLAGS" 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: --hash-style=both not available" >&5 7120$as_echo "$as_me: --hash-style=both not available" >&6;} 7121fi 7122rm -f core conftest.err conftest.$ac_objext \ 7123 conftest$ac_exeext conftest.$ac_ext 7124fi 7125 7126if test "x$darwin_build" = "xyes" 7127then 7128# I COULD be trying to build on raw Darwin without MacOS present, and in that 7129# case Carbon etc will not be available. 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for \"-framework\"" >&5 7131$as_echo "$as_me: Checking for \"-framework\"" >&6;} 7132 if test "x$GCC" = "xyes" 7133 then 7134 OLDLDFLAGS="$LDFLAGS" 7135 LDFLAGS="$LDFLAGS -framework Carbon -framework CoreServices -framework ApplicationServices" 7136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7137/* end confdefs.h. */ 7138#include <stdio.h> 7139int 7140main () 7141{ 7142printf("Hello\n"); 7143 ; 7144 return 0; 7145} 7146_ACEOF 7147if ac_fn_c_try_link "$LINENO"; then : 7148 framework_available="yes" 7149else 7150 LDFLAGS="$OLDLDFLAGS" 7151 framework_available="no" 7152fi 7153rm -f core conftest.err conftest.$ac_objext \ 7154 conftest$ac_exeext conftest.$ac_ext 7155 else 7156 framework_available="no" 7157 fi 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: framework=$framework_available" >&5 7159$as_echo "$as_me: framework=$framework_available" >&6;} 7160 if test "x$framework_available" = "xyes" 7161 then 7162 7163$as_echo "#define MAC_FRAMEWORK 1" >>confdefs.h 7164 7165 fi 7166fi 7167 7168# I might like to be able to force generation of position-independent 7169# code, and GCC has a directive -fPIC. This checks if it is accepted. 7170# Specifically when I am generating a loadable module this can be needed. 7171# However for Windows the option does not cause GCC to fail but it does 7172# load to a warning that it has no effect, so I will avoid even trying to 7173# activate it then (for x86 all case is position independent anyway). 7174 7175if test "x$windows_build" != "xyes" 7176then 7177 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for \"-fPIC\"" >&5 7178$as_echo "$as_me: Checking for \"-fPIC\"" >&6;} 7179 if test "x$GCC" = "xyes" 7180 then 7181 OLDCFLAGS="$CFLAGS" 7182 CFLAGS="$CFLAGS -fPIC" 7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7184/* end confdefs.h. */ 7185#include <stdio.h> 7186int 7187main () 7188{ 7189printf("Hello\n"); 7190 ; 7191 return 0; 7192} 7193_ACEOF 7194if ac_fn_c_try_compile "$LINENO"; then : 7195 fpic_available="yes" 7196else 7197 fpic_available="no" 7198fi 7199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7200 CFLAGS="$OLDCFLAGS" 7201 else 7202 fpic_available="no" 7203 fi 7204 { $as_echo "$as_me:${as_lineno-$LINENO}: -fPIC=$fpic_available" >&5 7205$as_echo "$as_me: -fPIC=$fpic_available" >&6;} 7206 7207 if test "x$fpic_available" = "xyes" 7208 then 7209 DLL_CFLAGS="$DLL_CFLAGS -fPIC" 7210 fi 7211fi 7212 7213if test "x$solaris" = "xyes" 7214then 7215# I believe that the Sun C compilers need a "-mt" flag so here I check if 7216# such a flag is accepted and if so I will use it. 7217 OLDCFLAGS="$CFLAGS" 7218 CFLAGS="$CFLAGS -mt" 7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7220/* end confdefs.h. */ 7221#include <stdio.h> 7222int 7223main () 7224{ 7225printf("Hello\n"); 7226 ; 7227 return 0; 7228} 7229_ACEOF 7230if ac_fn_c_try_compile "$LINENO"; then : 7231 CXXFLAGS="$CXXFLAGS -mt" 7232else 7233 CFLAGS="$OLDCFLAGS" 7234fi 7235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7236fi 7237 7238if (test "x$windows_build" != "xyes" || test "x$with_cygwin" = "xyes") 7239then 7240 7241# Check whether --with-xim was given. 7242if test "${with_xim+set}" = set; then : 7243 withval=$with_xim; 7244fi 7245 7246# I will not even look for Xft if I am building for win32 not X. 7247# 7248# Furthermore I will not try xft-config if I am cross-compiling. This may 7249# be a mess if I ever try to cross compile towards a machine that needs it. 7250# 7251# All of the above is more of a worry now I am starting to assume that 7252# Xft is available... 7253 7254# Check whether --with-xft was given. 7255if test "${with_xft+set}" = set; then : 7256 withval=$with_xft; 7257fi 7258 7259 if test "x$with_xft" != "xno" && test "x$cross_compiling" != "xyes" 7260 then 7261 for ac_prog in xft-config 7262do 7263 # Extract the first word of "$ac_prog", so it can be a program name with args. 7264set dummy $ac_prog; ac_word=$2 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7266$as_echo_n "checking for $ac_word... " >&6; } 7267if ${ac_cv_path_XFT_CONFIG+:} false; then : 7268 $as_echo_n "(cached) " >&6 7269else 7270 case $XFT_CONFIG in 7271 [\\/]* | ?:[\\/]*) 7272 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 7273 ;; 7274 *) 7275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7276as_dummy="/usr/local/bin:/usr/X11R6/bin:/usr/sfw/bin:$PATH" 7277for as_dir in $as_dummy 7278do 7279 IFS=$as_save_IFS 7280 test -z "$as_dir" && as_dir=. 7281 for ac_exec_ext in '' $ac_executable_extensions; do 7282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7283 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7285 break 2 7286 fi 7287done 7288 done 7289IFS=$as_save_IFS 7290 7291 ;; 7292esac 7293fi 7294XFT_CONFIG=$ac_cv_path_XFT_CONFIG 7295if test -n "$XFT_CONFIG"; then 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 7297$as_echo "$XFT_CONFIG" >&6; } 7298else 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7300$as_echo "no" >&6; } 7301fi 7302 7303 7304 test -n "$XFT_CONFIG" && break 7305done 7306test -n "$XFT_CONFIG" || XFT_CONFIG="no" 7307 7308 if test "$XFT_CONFIG" != "no" 7309 then 7310# I will add to CFLAGS and XLIBS if xft-config is found 7311 xft_cflags=`$XFT_CONFIG --cflags` 7312 CFLAGS="$CFLAGS $xft_cflags" 7313 CXXFLAGS="$CXXFLAGS $xft_cflags" 7314 CPPFLAGS="$CPPFLAGS $xft_cflags" 7315 xft_libs=`$XFT_CONFIG --libs` 7316 XLIBS="$XLIBS $xft_libs" 7317# NB that xft-config hands back some stuff that I might believe should 7318# perhaps be in LDFLAGS not LIBS, but never mind! Also done this way we 7319# may get some libraries mentioned more than once in LIBS - I hope that 7320# will not cause pain. 7321 7322$as_echo "#define HAVE_LIBXFT 1" >>confdefs.h 7323 7324 { $as_echo "$as_me:${as_lineno-$LINENO}: xft-config found, so Xft should be available" >&5 7325$as_echo "$as_me: xft-config found, so Xft should be available" >&6;} 7326 else 7327# here xft-config is NOT present, but it may be that xft headers and 7328# libraries are nevertheless available. I will look for freetype-config 7329# which may also help me... 7330 for ac_prog in freetype-config 7331do 7332 # Extract the first word of "$ac_prog", so it can be a program name with args. 7333set dummy $ac_prog; ac_word=$2 7334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7335$as_echo_n "checking for $ac_word... " >&6; } 7336if ${ac_cv_path_FREETYPE_CONFIG+:} false; then : 7337 $as_echo_n "(cached) " >&6 7338else 7339 case $FREETYPE_CONFIG in 7340 [\\/]* | ?:[\\/]*) 7341 ac_cv_path_FREETYPE_CONFIG="$FREETYPE_CONFIG" # Let the user override the test with a path. 7342 ;; 7343 *) 7344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7345as_dummy="/usr/local/bin:/usr/sfw/bin:$PATH" 7346for as_dir in $as_dummy 7347do 7348 IFS=$as_save_IFS 7349 test -z "$as_dir" && as_dir=. 7350 for ac_exec_ext in '' $ac_executable_extensions; do 7351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7352 ac_cv_path_FREETYPE_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7354 break 2 7355 fi 7356done 7357 done 7358IFS=$as_save_IFS 7359 7360 ;; 7361esac 7362fi 7363FREETYPE_CONFIG=$ac_cv_path_FREETYPE_CONFIG 7364if test -n "$FREETYPE_CONFIG"; then 7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CONFIG" >&5 7366$as_echo "$FREETYPE_CONFIG" >&6; } 7367else 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7369$as_echo "no" >&6; } 7370fi 7371 7372 7373 test -n "$FREETYPE_CONFIG" && break 7374done 7375test -n "$FREETYPE_CONFIG" || FREETYPE_CONFIG="no" 7376 7377 if test "$FREETYPE_CONFIG" != "no" 7378 then 7379# I will add to CFLAGS and XLIBS if freetype-config is found, an in fact I 7380# will then leave them there even if then Xft is not found. That is perhaps 7381# slightly untidy. 7382 freetype_cflags=`$FREETYPE_CONFIG --cflags` 7383 CFLAGS="$CFLAGS $freetype_cflags" 7384 CXXFLAGS="$CXXFLAGS $freetype_cflags" 7385 CPPFLAGS="$CPPFLAGS $freetype_cflags" 7386 freetype_libs=`$FREETYPE_CONFIG --libs` 7387 XLIBS="$XLIBS $freetype_libs" 7388 xft_found="yes" 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcConfigCreate in -lfontconfig" >&5 7390$as_echo_n "checking for FcConfigCreate in -lfontconfig... " >&6; } 7391if ${ac_cv_lib_fontconfig_FcConfigCreate+:} false; then : 7392 $as_echo_n "(cached) " >&6 7393else 7394 ac_check_lib_save_LIBS=$LIBS 7395LIBS="-lfontconfig $LIBS" 7396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7397/* end confdefs.h. */ 7398 7399/* Override any GCC internal prototype to avoid an error. 7400 Use char because int might match the return type of a GCC 7401 builtin and then its argument prototype would still apply. */ 7402#ifdef __cplusplus 7403extern "C" 7404#endif 7405char FcConfigCreate (); 7406int 7407main () 7408{ 7409return FcConfigCreate (); 7410 ; 7411 return 0; 7412} 7413_ACEOF 7414if ac_fn_c_try_link "$LINENO"; then : 7415 ac_cv_lib_fontconfig_FcConfigCreate=yes 7416else 7417 ac_cv_lib_fontconfig_FcConfigCreate=no 7418fi 7419rm -f core conftest.err conftest.$ac_objext \ 7420 conftest$ac_exeext conftest.$ac_ext 7421LIBS=$ac_check_lib_save_LIBS 7422fi 7423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcConfigCreate" >&5 7424$as_echo "$ac_cv_lib_fontconfig_FcConfigCreate" >&6; } 7425if test "x$ac_cv_lib_fontconfig_FcConfigCreate" = xyes; then : 7426 cat >>confdefs.h <<_ACEOF 7427#define HAVE_LIBFONTCONFIG 1 7428_ACEOF 7429 7430 LIBS="-lfontconfig $LIBS" 7431 7432fi 7433 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 7435$as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 7436if ${ac_cv_lib_Xft_XftFontOpen+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438else 7439 ac_check_lib_save_LIBS=$LIBS 7440LIBS="-lXft $LIBS" 7441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442/* end confdefs.h. */ 7443 7444/* Override any GCC internal prototype to avoid an error. 7445 Use char because int might match the return type of a GCC 7446 builtin and then its argument prototype would still apply. */ 7447#ifdef __cplusplus 7448extern "C" 7449#endif 7450char XftFontOpen (); 7451int 7452main () 7453{ 7454return XftFontOpen (); 7455 ; 7456 return 0; 7457} 7458_ACEOF 7459if ac_fn_c_try_link "$LINENO"; then : 7460 ac_cv_lib_Xft_XftFontOpen=yes 7461else 7462 ac_cv_lib_Xft_XftFontOpen=no 7463fi 7464rm -f core conftest.err conftest.$ac_objext \ 7465 conftest$ac_exeext conftest.$ac_ext 7466LIBS=$ac_check_lib_save_LIBS 7467fi 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 7469$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 7470if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then : 7471 cat >>confdefs.h <<_ACEOF 7472#define HAVE_LIBXFT 1 7473_ACEOF 7474 7475 LIBS="-lXft $LIBS" 7476 7477else 7478 xft_found="no" 7479fi 7480 7481 7482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 7483$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 7484if ${ac_cv_path_GREP+:} false; then : 7485 $as_echo_n "(cached) " >&6 7486else 7487 if test -z "$GREP"; then 7488 ac_path_GREP_found=false 7489 # Loop through the user's path and test for each of PROGNAME-LIST 7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7491for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7492do 7493 IFS=$as_save_IFS 7494 test -z "$as_dir" && as_dir=. 7495 for ac_prog in grep ggrep; do 7496 for ac_exec_ext in '' $ac_executable_extensions; do 7497 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 7498 as_fn_executable_p "$ac_path_GREP" || continue 7499# Check for GNU ac_path_GREP and select it if it is found. 7500 # Check for GNU $ac_path_GREP 7501case `"$ac_path_GREP" --version 2>&1` in 7502*GNU*) 7503 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 7504*) 7505 ac_count=0 7506 $as_echo_n 0123456789 >"conftest.in" 7507 while : 7508 do 7509 cat "conftest.in" "conftest.in" >"conftest.tmp" 7510 mv "conftest.tmp" "conftest.in" 7511 cp "conftest.in" "conftest.nl" 7512 $as_echo 'GREP' >> "conftest.nl" 7513 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7514 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7515 as_fn_arith $ac_count + 1 && ac_count=$as_val 7516 if test $ac_count -gt ${ac_path_GREP_max-0}; then 7517 # Best one so far, save it but keep looking for a better one 7518 ac_cv_path_GREP="$ac_path_GREP" 7519 ac_path_GREP_max=$ac_count 7520 fi 7521 # 10*(2^10) chars as input seems more than enough 7522 test $ac_count -gt 10 && break 7523 done 7524 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7525esac 7526 7527 $ac_path_GREP_found && break 3 7528 done 7529 done 7530 done 7531IFS=$as_save_IFS 7532 if test -z "$ac_cv_path_GREP"; then 7533 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7534 fi 7535else 7536 ac_cv_path_GREP=$GREP 7537fi 7538 7539fi 7540{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 7541$as_echo "$ac_cv_path_GREP" >&6; } 7542 GREP="$ac_cv_path_GREP" 7543 7544 7545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 7546$as_echo_n "checking for egrep... " >&6; } 7547if ${ac_cv_path_EGREP+:} false; then : 7548 $as_echo_n "(cached) " >&6 7549else 7550 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 7551 then ac_cv_path_EGREP="$GREP -E" 7552 else 7553 if test -z "$EGREP"; then 7554 ac_path_EGREP_found=false 7555 # Loop through the user's path and test for each of PROGNAME-LIST 7556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7557for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 7558do 7559 IFS=$as_save_IFS 7560 test -z "$as_dir" && as_dir=. 7561 for ac_prog in egrep; do 7562 for ac_exec_ext in '' $ac_executable_extensions; do 7563 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 7564 as_fn_executable_p "$ac_path_EGREP" || continue 7565# Check for GNU ac_path_EGREP and select it if it is found. 7566 # Check for GNU $ac_path_EGREP 7567case `"$ac_path_EGREP" --version 2>&1` in 7568*GNU*) 7569 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 7570*) 7571 ac_count=0 7572 $as_echo_n 0123456789 >"conftest.in" 7573 while : 7574 do 7575 cat "conftest.in" "conftest.in" >"conftest.tmp" 7576 mv "conftest.tmp" "conftest.in" 7577 cp "conftest.in" "conftest.nl" 7578 $as_echo 'EGREP' >> "conftest.nl" 7579 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 7580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 7581 as_fn_arith $ac_count + 1 && ac_count=$as_val 7582 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 7583 # Best one so far, save it but keep looking for a better one 7584 ac_cv_path_EGREP="$ac_path_EGREP" 7585 ac_path_EGREP_max=$ac_count 7586 fi 7587 # 10*(2^10) chars as input seems more than enough 7588 test $ac_count -gt 10 && break 7589 done 7590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 7591esac 7592 7593 $ac_path_EGREP_found && break 3 7594 done 7595 done 7596 done 7597IFS=$as_save_IFS 7598 if test -z "$ac_cv_path_EGREP"; then 7599 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 7600 fi 7601else 7602 ac_cv_path_EGREP=$EGREP 7603fi 7604 7605 fi 7606fi 7607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 7608$as_echo "$ac_cv_path_EGREP" >&6; } 7609 EGREP="$ac_cv_path_EGREP" 7610 7611 7612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7613$as_echo_n "checking for ANSI C header files... " >&6; } 7614if ${ac_cv_header_stdc+:} false; then : 7615 $as_echo_n "(cached) " >&6 7616else 7617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7618/* end confdefs.h. */ 7619#include <stdlib.h> 7620#include <stdarg.h> 7621#include <string.h> 7622#include <float.h> 7623 7624int 7625main () 7626{ 7627 7628 ; 7629 return 0; 7630} 7631_ACEOF 7632if ac_fn_c_try_compile "$LINENO"; then : 7633 ac_cv_header_stdc=yes 7634else 7635 ac_cv_header_stdc=no 7636fi 7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7638 7639if test $ac_cv_header_stdc = yes; then 7640 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7642/* end confdefs.h. */ 7643#include <string.h> 7644 7645_ACEOF 7646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7647 $EGREP "memchr" >/dev/null 2>&1; then : 7648 7649else 7650 ac_cv_header_stdc=no 7651fi 7652rm -f conftest* 7653 7654fi 7655 7656if test $ac_cv_header_stdc = yes; then 7657 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7659/* end confdefs.h. */ 7660#include <stdlib.h> 7661 7662_ACEOF 7663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7664 $EGREP "free" >/dev/null 2>&1; then : 7665 7666else 7667 ac_cv_header_stdc=no 7668fi 7669rm -f conftest* 7670 7671fi 7672 7673if test $ac_cv_header_stdc = yes; then 7674 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7675 if test "$cross_compiling" = yes; then : 7676 : 7677else 7678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7679/* end confdefs.h. */ 7680#include <ctype.h> 7681#include <stdlib.h> 7682#if ((' ' & 0x0FF) == 0x020) 7683# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7684# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7685#else 7686# define ISLOWER(c) \ 7687 (('a' <= (c) && (c) <= 'i') \ 7688 || ('j' <= (c) && (c) <= 'r') \ 7689 || ('s' <= (c) && (c) <= 'z')) 7690# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7691#endif 7692 7693#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7694int 7695main () 7696{ 7697 int i; 7698 for (i = 0; i < 256; i++) 7699 if (XOR (islower (i), ISLOWER (i)) 7700 || toupper (i) != TOUPPER (i)) 7701 return 2; 7702 return 0; 7703} 7704_ACEOF 7705if ac_fn_c_try_run "$LINENO"; then : 7706 7707else 7708 ac_cv_header_stdc=no 7709fi 7710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7711 conftest.$ac_objext conftest.beam conftest.$ac_ext 7712fi 7713 7714fi 7715fi 7716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7717$as_echo "$ac_cv_header_stdc" >&6; } 7718if test $ac_cv_header_stdc = yes; then 7719 7720$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7721 7722fi 7723 7724# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7725for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7726 inttypes.h stdint.h unistd.h 7727do : 7728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7729ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7730" 7731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7732 cat >>confdefs.h <<_ACEOF 7733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7734_ACEOF 7735 7736fi 7737 7738done 7739 7740 7741ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 7742if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then : 7743 7744else 7745 xft_found="no" 7746fi 7747 7748 7749 if test "$xft_found" = "yes" 7750 then 7751 7752$as_echo "#define HAVE_LIBXFT 1" >>confdefs.h 7753 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: freetype-config found, and Xft should be available" >&5 7755$as_echo "$as_me: freetype-config found, and Xft should be available" >&6;} 7756 fi 7757 fi 7758 fi 7759 fi 7760fi 7761 7762for ac_header in X11/extensions/Xrandr.h 7763do : 7764 ac_fn_c_check_header_mongrel "$LINENO" "X11/extensions/Xrandr.h" "ac_cv_header_X11_extensions_Xrandr_h" "$ac_includes_default" 7765if test "x$ac_cv_header_X11_extensions_Xrandr_h" = xyes; then : 7766 cat >>confdefs.h <<_ACEOF 7767#define HAVE_X11_EXTENSIONS_XRANDR_H 1 7768_ACEOF 7769 7770fi 7771 7772done 7773 7774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5 7775$as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; } 7776if ${ac_cv_lib_Xrandr_XRRQueryExtension+:} false; then : 7777 $as_echo_n "(cached) " >&6 7778else 7779 ac_check_lib_save_LIBS=$LIBS 7780LIBS="-lXrandr $LIBS" 7781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7782/* end confdefs.h. */ 7783 7784/* Override any GCC internal prototype to avoid an error. 7785 Use char because int might match the return type of a GCC 7786 builtin and then its argument prototype would still apply. */ 7787#ifdef __cplusplus 7788extern "C" 7789#endif 7790char XRRQueryExtension (); 7791int 7792main () 7793{ 7794return XRRQueryExtension (); 7795 ; 7796 return 0; 7797} 7798_ACEOF 7799if ac_fn_c_try_link "$LINENO"; then : 7800 ac_cv_lib_Xrandr_XRRQueryExtension=yes 7801else 7802 ac_cv_lib_Xrandr_XRRQueryExtension=no 7803fi 7804rm -f core conftest.err conftest.$ac_objext \ 7805 conftest$ac_exeext conftest.$ac_ext 7806LIBS=$ac_check_lib_save_LIBS 7807fi 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5 7809$as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; } 7810if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = xyes; then : 7811 cat >>confdefs.h <<_ACEOF 7812#define HAVE_LIBXRANDR 1 7813_ACEOF 7814 7815 LIBS="-lXrandr $LIBS" 7816 7817fi 7818 7819 7820# find command to do best approx to "ln -s" and set LN_S 7821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 7822$as_echo_n "checking whether ln -s works... " >&6; } 7823LN_S=$as_ln_s 7824if test "$LN_S" = "ln -s"; then 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7826$as_echo "yes" >&6; } 7827else 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 7829$as_echo "no, using $LN_S" >&6; } 7830fi 7831 7832 7833 7834# In lots of cases I will be using gcc. In that case I will use -O2 for 7835# release code, but -O0 when debugging. I also stick in -Wall so I get 7836# loads of comments about code style etc. For other C compilers I do 7837# not set any optimisation flags but I do expect "-g" to be available 7838# to enable debugging. 7839 7840# 7841# Well as of late 2003/early 2004 some versions of gcc appears to compile 7842# some of my code at -O3 in ways that hurt me, but at -O2 mostly things seem 7843# better behaved. At one stage I believed that my trouble might have been 7844# to do with "Strict Aliasing" but I am less convinced of that now - however 7845# to be cautious I switch off that aspect of gcc. I really want this code 7846# to compile and run first-time on as many systems as I can and so tuning 7847# down the optimisation level from -O3 to -O2 is probably worthwhile even 7848# though it hits performance a little. Furthermore in 2008 I found that 7849# some things behaved in ways I did not understand with "-O1 -g" hence I 7850# drop back to "-O0 -g". 7851# 7852 7853LOWOPT="-O0" 7854HIGHOPT="-O2" 7855 7856case $CC in 7857x86_64-w64-*) 7858 7859$as_echo "#define WIN64 1" >>confdefs.h 7860 7861 ;; 7862esac 7863 7864if test "x$GCC" = "xyes" 7865then 7866 if test "x$enable_debug" = "xyes" 7867 then 7868 CFLAGS="${CFLAGS} -fno-strict-aliasing ${LOWOPT} -g -DDEBUG=1 -Wall" 7869 CXXFLAGS="${CXXFLAGS} -fno-strict-aliasing ${LOWOPT} -g -DDEBUG=1 -Wall" 7870 DLL_CFLAGS="${DLL_CFLAGS} -fno-strict-aliasing ${LOWOPT} -g -DDEBUG=1 -Wall" 7871 LDFLAGS="${LDFLAGS} -g" 7872 else 7873 CFLAGS="$CFLAGS -fno-strict-aliasing ${HIGHOPT} -Wall" 7874 CXXFLAGS="$CXXFLAGS -fno-strict-aliasing ${HIGHOPT} -Wall" 7875 DLL_CFLAGS="${DLL_CFLAGS} -fno-strict-aliasing ${HIGHOPT}" 7876 fi 7877 if test "x$enable_static" = "xyes" 7878 then 7879 LDFLAGS="${LDFLAGS} -static" 7880 fi 7881else 7882# 7883# BEWARE any other C compilers that take an enthusiastic view on Strict 7884# Aliasing! It causes real problems with the way that Lisp data is mapped onto 7885# machine resources. Actually my current reading of the standard makes it feel 7886# perhaps less horrid than I had at one stage thought... 7887# I am 7888 if test "x$enable_debug" = "xyes" 7889 then 7890 CFLAGS="${CFLAGS} -g -DDEBUG=1" 7891 CXXFLAGS="${CXXFLAGS} -g -DDEBUG=1" 7892 DLL_CFLAGS="${DLL_CFLAGS} -g -DDEBUG=1" 7893 LDFLAGS="${LDFLAGS} -g" 7894 fi 7895fi 7896 7897# On at least some systems static linking against X11 needs -ldl 7898# Also I will use dlopen (and friends) for dynamic loading of stuff 7899# compiled via C. 7900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 7901$as_echo_n "checking for dlopen in -ldl... " >&6; } 7902if ${ac_cv_lib_dl_dlopen+:} false; then : 7903 $as_echo_n "(cached) " >&6 7904else 7905 ac_check_lib_save_LIBS=$LIBS 7906LIBS="-ldl $LIBS" 7907cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7908/* end confdefs.h. */ 7909 7910/* Override any GCC internal prototype to avoid an error. 7911 Use char because int might match the return type of a GCC 7912 builtin and then its argument prototype would still apply. */ 7913#ifdef __cplusplus 7914extern "C" 7915#endif 7916char dlopen (); 7917int 7918main () 7919{ 7920return dlopen (); 7921 ; 7922 return 0; 7923} 7924_ACEOF 7925if ac_fn_c_try_link "$LINENO"; then : 7926 ac_cv_lib_dl_dlopen=yes 7927else 7928 ac_cv_lib_dl_dlopen=no 7929fi 7930rm -f core conftest.err conftest.$ac_objext \ 7931 conftest$ac_exeext conftest.$ac_ext 7932LIBS=$ac_check_lib_save_LIBS 7933fi 7934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 7935$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 7936if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 7937 cat >>confdefs.h <<_ACEOF 7938#define HAVE_LIBDL 1 7939_ACEOF 7940 7941 LIBS="-ldl $LIBS" 7942 7943fi 7944 7945 7946# Fox 1.6 seems to use nanosleep in FXThread and on some systems at least 7947# the means I must link against librt. 7948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_nanosleep in -lrt" >&5 7949$as_echo_n "checking for clock_nanosleep in -lrt... " >&6; } 7950if ${ac_cv_lib_rt_clock_nanosleep+:} false; then : 7951 $as_echo_n "(cached) " >&6 7952else 7953 ac_check_lib_save_LIBS=$LIBS 7954LIBS="-lrt $LIBS" 7955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7956/* end confdefs.h. */ 7957 7958/* Override any GCC internal prototype to avoid an error. 7959 Use char because int might match the return type of a GCC 7960 builtin and then its argument prototype would still apply. */ 7961#ifdef __cplusplus 7962extern "C" 7963#endif 7964char clock_nanosleep (); 7965int 7966main () 7967{ 7968return clock_nanosleep (); 7969 ; 7970 return 0; 7971} 7972_ACEOF 7973if ac_fn_c_try_link "$LINENO"; then : 7974 ac_cv_lib_rt_clock_nanosleep=yes 7975else 7976 ac_cv_lib_rt_clock_nanosleep=no 7977fi 7978rm -f core conftest.err conftest.$ac_objext \ 7979 conftest$ac_exeext conftest.$ac_ext 7980LIBS=$ac_check_lib_save_LIBS 7981fi 7982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_nanosleep" >&5 7983$as_echo "$ac_cv_lib_rt_clock_nanosleep" >&6; } 7984if test "x$ac_cv_lib_rt_clock_nanosleep" = xyes; then : 7985 cat >>confdefs.h <<_ACEOF 7986#define HAVE_LIBRT 1 7987_ACEOF 7988 7989 LIBS="-lrt $LIBS" 7990 7991fi 7992 7993 7994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 7995$as_echo_n "checking for pthread_create in -lpthread... " >&6; } 7996if ${ac_cv_lib_pthread_pthread_create+:} false; then : 7997 $as_echo_n "(cached) " >&6 7998else 7999 ac_check_lib_save_LIBS=$LIBS 8000LIBS="-lpthread $LIBS" 8001cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8002/* end confdefs.h. */ 8003 8004/* Override any GCC internal prototype to avoid an error. 8005 Use char because int might match the return type of a GCC 8006 builtin and then its argument prototype would still apply. */ 8007#ifdef __cplusplus 8008extern "C" 8009#endif 8010char pthread_create (); 8011int 8012main () 8013{ 8014return pthread_create (); 8015 ; 8016 return 0; 8017} 8018_ACEOF 8019if ac_fn_c_try_link "$LINENO"; then : 8020 ac_cv_lib_pthread_pthread_create=yes 8021else 8022 ac_cv_lib_pthread_pthread_create=no 8023fi 8024rm -f core conftest.err conftest.$ac_objext \ 8025 conftest$ac_exeext conftest.$ac_ext 8026LIBS=$ac_check_lib_save_LIBS 8027fi 8028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 8029$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } 8030if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : 8031 cat >>confdefs.h <<_ACEOF 8032#define HAVE_LIBPTHREAD 1 8033_ACEOF 8034 8035 LIBS="-lpthread $LIBS" 8036 8037fi 8038 8039 8040LIBS="$XLIBS $LIBS" 8041 8042# Some platforms appear to require the Xcursor library. The next line 8043# should arrange that it gets scanned if it is available. This test 8044# does not make a lot of sense on Windows, but in that case it will 8045# just harmlessly fail. And sometimes (especially for static linking) 8046# a Xrender library is needed too... However Solarix 10 x86 seems to 8047# misdetect Xrender when in 64-bit mode so I fudge that away here. 8048 8049if test "x$solaris" != "xyes" 8050then 8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateCursor in -lXrender" >&5 8052$as_echo_n "checking for XRenderCreateCursor in -lXrender... " >&6; } 8053if ${ac_cv_lib_Xrender_XRenderCreateCursor+:} false; then : 8054 $as_echo_n "(cached) " >&6 8055else 8056 ac_check_lib_save_LIBS=$LIBS 8057LIBS="-lXrender $LIBS" 8058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8059/* end confdefs.h. */ 8060 8061/* Override any GCC internal prototype to avoid an error. 8062 Use char because int might match the return type of a GCC 8063 builtin and then its argument prototype would still apply. */ 8064#ifdef __cplusplus 8065extern "C" 8066#endif 8067char XRenderCreateCursor (); 8068int 8069main () 8070{ 8071return XRenderCreateCursor (); 8072 ; 8073 return 0; 8074} 8075_ACEOF 8076if ac_fn_c_try_link "$LINENO"; then : 8077 ac_cv_lib_Xrender_XRenderCreateCursor=yes 8078else 8079 ac_cv_lib_Xrender_XRenderCreateCursor=no 8080fi 8081rm -f core conftest.err conftest.$ac_objext \ 8082 conftest$ac_exeext conftest.$ac_ext 8083LIBS=$ac_check_lib_save_LIBS 8084fi 8085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateCursor" >&5 8086$as_echo "$ac_cv_lib_Xrender_XRenderCreateCursor" >&6; } 8087if test "x$ac_cv_lib_Xrender_XRenderCreateCursor" = xyes; then : 8088 cat >>confdefs.h <<_ACEOF 8089#define HAVE_LIBXRENDER 1 8090_ACEOF 8091 8092 LIBS="-lXrender $LIBS" 8093 8094fi 8095 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageCreate in -lXcursor" >&5 8097$as_echo_n "checking for XcursorImageCreate in -lXcursor... " >&6; } 8098if ${ac_cv_lib_Xcursor_XcursorImageCreate+:} false; then : 8099 $as_echo_n "(cached) " >&6 8100else 8101 ac_check_lib_save_LIBS=$LIBS 8102LIBS="-lXcursor $LIBS" 8103cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8104/* end confdefs.h. */ 8105 8106/* Override any GCC internal prototype to avoid an error. 8107 Use char because int might match the return type of a GCC 8108 builtin and then its argument prototype would still apply. */ 8109#ifdef __cplusplus 8110extern "C" 8111#endif 8112char XcursorImageCreate (); 8113int 8114main () 8115{ 8116return XcursorImageCreate (); 8117 ; 8118 return 0; 8119} 8120_ACEOF 8121if ac_fn_c_try_link "$LINENO"; then : 8122 ac_cv_lib_Xcursor_XcursorImageCreate=yes 8123else 8124 ac_cv_lib_Xcursor_XcursorImageCreate=no 8125fi 8126rm -f core conftest.err conftest.$ac_objext \ 8127 conftest$ac_exeext conftest.$ac_ext 8128LIBS=$ac_check_lib_save_LIBS 8129fi 8130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageCreate" >&5 8131$as_echo "$ac_cv_lib_Xcursor_XcursorImageCreate" >&6; } 8132if test "x$ac_cv_lib_Xcursor_XcursorImageCreate" = xyes; then : 8133 cat >>confdefs.h <<_ACEOF 8134#define HAVE_LIBXCURSOR 1 8135_ACEOF 8136 8137 LIBS="-lXcursor $LIBS" 8138 8139fi 8140 8141fi 8142 8143# Checks for header files. 8144ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8145if test "x$ac_cv_type_size_t" = xyes; then : 8146 8147else 8148 8149cat >>confdefs.h <<_ACEOF 8150#define size_t unsigned int 8151_ACEOF 8152 8153fi 8154 8155# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 8156# for constant arguments. Useless! 8157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 8158$as_echo_n "checking for working alloca.h... " >&6; } 8159if ${ac_cv_working_alloca_h+:} false; then : 8160 $as_echo_n "(cached) " >&6 8161else 8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8163/* end confdefs.h. */ 8164#include <alloca.h> 8165int 8166main () 8167{ 8168char *p = (char *) alloca (2 * sizeof (int)); 8169 if (p) return 0; 8170 ; 8171 return 0; 8172} 8173_ACEOF 8174if ac_fn_c_try_link "$LINENO"; then : 8175 ac_cv_working_alloca_h=yes 8176else 8177 ac_cv_working_alloca_h=no 8178fi 8179rm -f core conftest.err conftest.$ac_objext \ 8180 conftest$ac_exeext conftest.$ac_ext 8181fi 8182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 8183$as_echo "$ac_cv_working_alloca_h" >&6; } 8184if test $ac_cv_working_alloca_h = yes; then 8185 8186$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 8187 8188fi 8189 8190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 8191$as_echo_n "checking for alloca... " >&6; } 8192if ${ac_cv_func_alloca_works+:} false; then : 8193 $as_echo_n "(cached) " >&6 8194else 8195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8196/* end confdefs.h. */ 8197#ifdef __GNUC__ 8198# define alloca __builtin_alloca 8199#else 8200# ifdef _MSC_VER 8201# include <malloc.h> 8202# define alloca _alloca 8203# else 8204# ifdef HAVE_ALLOCA_H 8205# include <alloca.h> 8206# else 8207# ifdef _AIX 8208 #pragma alloca 8209# else 8210# ifndef alloca /* predefined by HP cc +Olibcalls */ 8211void *alloca (size_t); 8212# endif 8213# endif 8214# endif 8215# endif 8216#endif 8217 8218int 8219main () 8220{ 8221char *p = (char *) alloca (1); 8222 if (p) return 0; 8223 ; 8224 return 0; 8225} 8226_ACEOF 8227if ac_fn_c_try_link "$LINENO"; then : 8228 ac_cv_func_alloca_works=yes 8229else 8230 ac_cv_func_alloca_works=no 8231fi 8232rm -f core conftest.err conftest.$ac_objext \ 8233 conftest$ac_exeext conftest.$ac_ext 8234fi 8235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 8236$as_echo "$ac_cv_func_alloca_works" >&6; } 8237 8238if test $ac_cv_func_alloca_works = yes; then 8239 8240$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 8241 8242else 8243 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 8244# that cause trouble. Some versions do not even contain alloca or 8245# contain a buggy version. If you still want to use their alloca, 8246# use ar to extract alloca.o from them instead of compiling alloca.c. 8247 8248ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 8249 8250$as_echo "#define C_ALLOCA 1" >>confdefs.h 8251 8252 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 8254$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 8255if ${ac_cv_os_cray+:} false; then : 8256 $as_echo_n "(cached) " >&6 8257else 8258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8259/* end confdefs.h. */ 8260#if defined CRAY && ! defined CRAY2 8261webecray 8262#else 8263wenotbecray 8264#endif 8265 8266_ACEOF 8267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 8268 $EGREP "webecray" >/dev/null 2>&1; then : 8269 ac_cv_os_cray=yes 8270else 8271 ac_cv_os_cray=no 8272fi 8273rm -f conftest* 8274 8275fi 8276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 8277$as_echo "$ac_cv_os_cray" >&6; } 8278if test $ac_cv_os_cray = yes; then 8279 for ac_func in _getb67 GETB67 getb67; do 8280 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8281ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 8282if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8283 8284cat >>confdefs.h <<_ACEOF 8285#define CRAY_STACKSEG_END $ac_func 8286_ACEOF 8287 8288 break 8289fi 8290 8291 done 8292fi 8293 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 8295$as_echo_n "checking stack direction for C alloca... " >&6; } 8296if ${ac_cv_c_stack_direction+:} false; then : 8297 $as_echo_n "(cached) " >&6 8298else 8299 if test "$cross_compiling" = yes; then : 8300 ac_cv_c_stack_direction=0 8301else 8302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8303/* end confdefs.h. */ 8304$ac_includes_default 8305int 8306find_stack_direction (int *addr, int depth) 8307{ 8308 int dir, dummy = 0; 8309 if (! addr) 8310 addr = &dummy; 8311 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 8312 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 8313 return dir + dummy; 8314} 8315 8316int 8317main (int argc, char **argv) 8318{ 8319 return find_stack_direction (0, argc + !argv + 20) < 0; 8320} 8321_ACEOF 8322if ac_fn_c_try_run "$LINENO"; then : 8323 ac_cv_c_stack_direction=1 8324else 8325 ac_cv_c_stack_direction=-1 8326fi 8327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8328 conftest.$ac_objext conftest.beam conftest.$ac_ext 8329fi 8330 8331fi 8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 8333$as_echo "$ac_cv_c_stack_direction" >&6; } 8334cat >>confdefs.h <<_ACEOF 8335#define STACK_DIRECTION $ac_cv_c_stack_direction 8336_ACEOF 8337 8338 8339fi 8340 8341ac_header_dirent=no 8342for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 8343 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 8345$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 8346if eval \${$as_ac_Header+:} false; then : 8347 $as_echo_n "(cached) " >&6 8348else 8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8350/* end confdefs.h. */ 8351#include <sys/types.h> 8352#include <$ac_hdr> 8353 8354int 8355main () 8356{ 8357if ((DIR *) 0) 8358return 0; 8359 ; 8360 return 0; 8361} 8362_ACEOF 8363if ac_fn_c_try_compile "$LINENO"; then : 8364 eval "$as_ac_Header=yes" 8365else 8366 eval "$as_ac_Header=no" 8367fi 8368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8369fi 8370eval ac_res=\$$as_ac_Header 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 8372$as_echo "$ac_res" >&6; } 8373if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8374 cat >>confdefs.h <<_ACEOF 8375#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 8376_ACEOF 8377 8378ac_header_dirent=$ac_hdr; break 8379fi 8380 8381done 8382# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 8383if test $ac_header_dirent = dirent.h; then 8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8385$as_echo_n "checking for library containing opendir... " >&6; } 8386if ${ac_cv_search_opendir+:} false; then : 8387 $as_echo_n "(cached) " >&6 8388else 8389 ac_func_search_save_LIBS=$LIBS 8390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8391/* end confdefs.h. */ 8392 8393/* Override any GCC internal prototype to avoid an error. 8394 Use char because int might match the return type of a GCC 8395 builtin and then its argument prototype would still apply. */ 8396#ifdef __cplusplus 8397extern "C" 8398#endif 8399char opendir (); 8400int 8401main () 8402{ 8403return opendir (); 8404 ; 8405 return 0; 8406} 8407_ACEOF 8408for ac_lib in '' dir; do 8409 if test -z "$ac_lib"; then 8410 ac_res="none required" 8411 else 8412 ac_res=-l$ac_lib 8413 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8414 fi 8415 if ac_fn_c_try_link "$LINENO"; then : 8416 ac_cv_search_opendir=$ac_res 8417fi 8418rm -f core conftest.err conftest.$ac_objext \ 8419 conftest$ac_exeext 8420 if ${ac_cv_search_opendir+:} false; then : 8421 break 8422fi 8423done 8424if ${ac_cv_search_opendir+:} false; then : 8425 8426else 8427 ac_cv_search_opendir=no 8428fi 8429rm conftest.$ac_ext 8430LIBS=$ac_func_search_save_LIBS 8431fi 8432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8433$as_echo "$ac_cv_search_opendir" >&6; } 8434ac_res=$ac_cv_search_opendir 8435if test "$ac_res" != no; then : 8436 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8437 8438fi 8439 8440else 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 8442$as_echo_n "checking for library containing opendir... " >&6; } 8443if ${ac_cv_search_opendir+:} false; then : 8444 $as_echo_n "(cached) " >&6 8445else 8446 ac_func_search_save_LIBS=$LIBS 8447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8448/* end confdefs.h. */ 8449 8450/* Override any GCC internal prototype to avoid an error. 8451 Use char because int might match the return type of a GCC 8452 builtin and then its argument prototype would still apply. */ 8453#ifdef __cplusplus 8454extern "C" 8455#endif 8456char opendir (); 8457int 8458main () 8459{ 8460return opendir (); 8461 ; 8462 return 0; 8463} 8464_ACEOF 8465for ac_lib in '' x; do 8466 if test -z "$ac_lib"; then 8467 ac_res="none required" 8468 else 8469 ac_res=-l$ac_lib 8470 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 8471 fi 8472 if ac_fn_c_try_link "$LINENO"; then : 8473 ac_cv_search_opendir=$ac_res 8474fi 8475rm -f core conftest.err conftest.$ac_objext \ 8476 conftest$ac_exeext 8477 if ${ac_cv_search_opendir+:} false; then : 8478 break 8479fi 8480done 8481if ${ac_cv_search_opendir+:} false; then : 8482 8483else 8484 ac_cv_search_opendir=no 8485fi 8486rm conftest.$ac_ext 8487LIBS=$ac_func_search_save_LIBS 8488fi 8489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 8490$as_echo "$ac_cv_search_opendir" >&6; } 8491ac_res=$ac_cv_search_opendir 8492if test "$ac_res" != no; then : 8493 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 8494 8495fi 8496 8497fi 8498 8499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 8500$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 8501if ${ac_cv_header_sys_wait_h+:} false; then : 8502 $as_echo_n "(cached) " >&6 8503else 8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8505/* end confdefs.h. */ 8506#include <sys/types.h> 8507#include <sys/wait.h> 8508#ifndef WEXITSTATUS 8509# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 8510#endif 8511#ifndef WIFEXITED 8512# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 8513#endif 8514 8515int 8516main () 8517{ 8518 int s; 8519 wait (&s); 8520 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 8521 ; 8522 return 0; 8523} 8524_ACEOF 8525if ac_fn_c_try_compile "$LINENO"; then : 8526 ac_cv_header_sys_wait_h=yes 8527else 8528 ac_cv_header_sys_wait_h=no 8529fi 8530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8531fi 8532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 8533$as_echo "$ac_cv_header_sys_wait_h" >&6; } 8534if test $ac_cv_header_sys_wait_h = yes; then 8535 8536$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 8537 8538fi 8539 8540 8541for ac_header in fcntl.h float.h malloc.h memory.h 8542do : 8543 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8544ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8545if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8546 cat >>confdefs.h <<_ACEOF 8547#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8548_ACEOF 8549 8550fi 8551 8552done 8553 8554for ac_header in stddef.h stdlib.h string.h stdint.h 8555do : 8556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8557ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8558if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8559 cat >>confdefs.h <<_ACEOF 8560#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8561_ACEOF 8562 8563fi 8564 8565done 8566 8567for ac_header in sys/param.h sys/time.h sys/times.h unistd.h utime.h 8568do : 8569 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8570ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8571if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8572 cat >>confdefs.h <<_ACEOF 8573#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8574_ACEOF 8575 8576fi 8577 8578done 8579 8580for ac_header in arpa/inet.h netdb.h netinet/in.h sys/socket.h sys/stat.h 8581do : 8582 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8583ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8584if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8585 cat >>confdefs.h <<_ACEOF 8586#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8587_ACEOF 8588 8589fi 8590 8591done 8592 8593for ac_header in sys/types.h sys/wait.h sys/shm.h sys/ipc.h signal.h 8594do : 8595 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8596ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8597if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8598 cat >>confdefs.h <<_ACEOF 8599#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8600_ACEOF 8601 8602fi 8603 8604done 8605 8606 8607# Checks for typedefs, structures, and compiler characteristics. 8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5 8609$as_echo_n "checking whether stat file-mode macros are broken... " >&6; } 8610if ${ac_cv_header_stat_broken+:} false; then : 8611 $as_echo_n "(cached) " >&6 8612else 8613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8614/* end confdefs.h. */ 8615#include <sys/types.h> 8616#include <sys/stat.h> 8617 8618#if defined S_ISBLK && defined S_IFDIR 8619extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1]; 8620#endif 8621 8622#if defined S_ISBLK && defined S_IFCHR 8623extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1]; 8624#endif 8625 8626#if defined S_ISLNK && defined S_IFREG 8627extern char c3[S_ISLNK (S_IFREG) ? -1 : 1]; 8628#endif 8629 8630#if defined S_ISSOCK && defined S_IFREG 8631extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1]; 8632#endif 8633 8634_ACEOF 8635if ac_fn_c_try_compile "$LINENO"; then : 8636 ac_cv_header_stat_broken=no 8637else 8638 ac_cv_header_stat_broken=yes 8639fi 8640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8641fi 8642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5 8643$as_echo "$ac_cv_header_stat_broken" >&6; } 8644if test $ac_cv_header_stat_broken = yes; then 8645 8646$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h 8647 8648fi 8649 8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 8651$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8652if ${ac_cv_c_const+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654else 8655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8656/* end confdefs.h. */ 8657 8658int 8659main () 8660{ 8661 8662#ifndef __cplusplus 8663 /* Ultrix mips cc rejects this sort of thing. */ 8664 typedef int charset[2]; 8665 const charset cs = { 0, 0 }; 8666 /* SunOS 4.1.1 cc rejects this. */ 8667 char const *const *pcpcc; 8668 char **ppc; 8669 /* NEC SVR4.0.2 mips cc rejects this. */ 8670 struct point {int x, y;}; 8671 static struct point const zero = {0,0}; 8672 /* AIX XL C 1.02.0.0 rejects this. 8673 It does not let you subtract one const X* pointer from another in 8674 an arm of an if-expression whose if-part is not a constant 8675 expression */ 8676 const char *g = "string"; 8677 pcpcc = &g + (g ? g-g : 0); 8678 /* HPUX 7.0 cc rejects these. */ 8679 ++pcpcc; 8680 ppc = (char**) pcpcc; 8681 pcpcc = (char const *const *) ppc; 8682 { /* SCO 3.2v4 cc rejects this sort of thing. */ 8683 char tx; 8684 char *t = &tx; 8685 char const *s = 0 ? (char *) 0 : (char const *) 0; 8686 8687 *t++ = 0; 8688 if (s) return 0; 8689 } 8690 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8691 int x[] = {25, 17}; 8692 const int *foo = &x[0]; 8693 ++foo; 8694 } 8695 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8696 typedef const int *iptr; 8697 iptr p = 0; 8698 ++p; 8699 } 8700 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 8701 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8702 struct s { int j; const int *ap[3]; } bx; 8703 struct s *b = &bx; b->j = 5; 8704 } 8705 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8706 const int foo = 10; 8707 if (!foo) return 0; 8708 } 8709 return !cs[0] && !zero.x; 8710#endif 8711 8712 ; 8713 return 0; 8714} 8715_ACEOF 8716if ac_fn_c_try_compile "$LINENO"; then : 8717 ac_cv_c_const=yes 8718else 8719 ac_cv_c_const=no 8720fi 8721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8722fi 8723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 8724$as_echo "$ac_cv_c_const" >&6; } 8725if test $ac_cv_c_const = no; then 8726 8727$as_echo "#define const /**/" >>confdefs.h 8728 8729fi 8730 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 8732$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 8733if ${ac_cv_struct_tm+:} false; then : 8734 $as_echo_n "(cached) " >&6 8735else 8736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8737/* end confdefs.h. */ 8738#include <sys/types.h> 8739#include <time.h> 8740 8741int 8742main () 8743{ 8744struct tm tm; 8745 int *p = &tm.tm_sec; 8746 return !p; 8747 ; 8748 return 0; 8749} 8750_ACEOF 8751if ac_fn_c_try_compile "$LINENO"; then : 8752 ac_cv_struct_tm=time.h 8753else 8754 ac_cv_struct_tm=sys/time.h 8755fi 8756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8757fi 8758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8759$as_echo "$ac_cv_struct_tm" >&6; } 8760if test $ac_cv_struct_tm = sys/time.h; then 8761 8762$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8763 8764fi 8765 8766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 8767$as_echo_n "checking for working volatile... " >&6; } 8768if ${ac_cv_c_volatile+:} false; then : 8769 $as_echo_n "(cached) " >&6 8770else 8771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8772/* end confdefs.h. */ 8773 8774int 8775main () 8776{ 8777 8778volatile int x; 8779int * volatile y = (int *) 0; 8780return !x && !y; 8781 ; 8782 return 0; 8783} 8784_ACEOF 8785if ac_fn_c_try_compile "$LINENO"; then : 8786 ac_cv_c_volatile=yes 8787else 8788 ac_cv_c_volatile=no 8789fi 8790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8791fi 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 8793$as_echo "$ac_cv_c_volatile" >&6; } 8794if test $ac_cv_c_volatile = no; then 8795 8796$as_echo "#define volatile /**/" >>confdefs.h 8797 8798fi 8799 8800 8801ac_fn_c_check_type "$LINENO" "int8_t" "ac_cv_type_int8_t" "#ifdef HAVE_STDINT_H 8802 #include <stdint.h> 8803 #endif 8804" 8805if test "x$ac_cv_type_int8_t" = xyes; then : 8806 8807cat >>confdefs.h <<_ACEOF 8808#define HAVE_INT8_T 1 8809_ACEOF 8810 8811 8812fi 8813ac_fn_c_check_type "$LINENO" "int16_t" "ac_cv_type_int16_t" "#ifdef HAVE_STDINT_H 8814 #include <stdint.h> 8815 #endif 8816" 8817if test "x$ac_cv_type_int16_t" = xyes; then : 8818 8819cat >>confdefs.h <<_ACEOF 8820#define HAVE_INT16_T 1 8821_ACEOF 8822 8823 8824fi 8825ac_fn_c_check_type "$LINENO" "int32_t" "ac_cv_type_int32_t" "#ifdef HAVE_STDINT_H 8826 #include <stdint.h> 8827 #endif 8828" 8829if test "x$ac_cv_type_int32_t" = xyes; then : 8830 8831cat >>confdefs.h <<_ACEOF 8832#define HAVE_INT32_T 1 8833_ACEOF 8834 8835 8836fi 8837ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "#ifdef HAVE_STDINT_H 8838 #include <stdint.h> 8839 #endif 8840" 8841if test "x$ac_cv_type_int64_t" = xyes; then : 8842 8843cat >>confdefs.h <<_ACEOF 8844#define HAVE_INT64_T 1 8845_ACEOF 8846 8847 8848fi 8849ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "#ifdef HAVE_STDINT_H 8850 #include <stdint.h> 8851 #endif 8852" 8853if test "x$ac_cv_type_intptr_t" = xyes; then : 8854 8855cat >>confdefs.h <<_ACEOF 8856#define HAVE_INTPTR_T 1 8857_ACEOF 8858 8859 8860fi 8861 8862ac_fn_c_check_type "$LINENO" "uint8_t" "ac_cv_type_uint8_t" "#ifdef HAVE_STDINT_H 8863 #include <stdint.h> 8864 #endif 8865" 8866if test "x$ac_cv_type_uint8_t" = xyes; then : 8867 8868cat >>confdefs.h <<_ACEOF 8869#define HAVE_UINT8_T 1 8870_ACEOF 8871 8872 8873fi 8874ac_fn_c_check_type "$LINENO" "uint16_t" "ac_cv_type_uint16_t" "#ifdef HAVE_STDINT_H 8875 #include <stdint.h> 8876 #endif 8877" 8878if test "x$ac_cv_type_uint16_t" = xyes; then : 8879 8880cat >>confdefs.h <<_ACEOF 8881#define HAVE_UINT16_T 1 8882_ACEOF 8883 8884 8885fi 8886ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#ifdef HAVE_STDINT_H 8887 #include <stdint.h> 8888 #endif 8889" 8890if test "x$ac_cv_type_uint32_t" = xyes; then : 8891 8892cat >>confdefs.h <<_ACEOF 8893#define HAVE_UINT32_T 1 8894_ACEOF 8895 8896 8897fi 8898ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#ifdef HAVE_STDINT_H 8899 #include <stdint.h> 8900 #endif 8901" 8902if test "x$ac_cv_type_uint64_t" = xyes; then : 8903 8904cat >>confdefs.h <<_ACEOF 8905#define HAVE_UINT64_T 1 8906_ACEOF 8907 8908 8909fi 8910ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#ifdef HAVE_STDINT_H 8911 #include <stdint.h> 8912 #endif 8913" 8914if test "x$ac_cv_type_uintptr_t" = xyes; then : 8915 8916cat >>confdefs.h <<_ACEOF 8917#define HAVE_UINTPTR_T 1 8918_ACEOF 8919 8920 8921fi 8922 8923ac_fn_c_check_type "$LINENO" "u_int8_t" "ac_cv_type_u_int8_t" "#ifdef HAVE_STDINT_H 8924 #include <stdint.h> 8925 #endif 8926" 8927if test "x$ac_cv_type_u_int8_t" = xyes; then : 8928 8929cat >>confdefs.h <<_ACEOF 8930#define HAVE_U_INT8_T 1 8931_ACEOF 8932 8933 8934fi 8935ac_fn_c_check_type "$LINENO" "u_int16_t" "ac_cv_type_u_int16_t" "#ifdef HAVE_STDINT_H 8936 #include <stdint.h> 8937 #endif 8938" 8939if test "x$ac_cv_type_u_int16_t" = xyes; then : 8940 8941cat >>confdefs.h <<_ACEOF 8942#define HAVE_U_INT16_T 1 8943_ACEOF 8944 8945 8946fi 8947ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#ifdef HAVE_STDINT_H 8948 #include <stdint.h> 8949 #endif 8950" 8951if test "x$ac_cv_type_u_int32_t" = xyes; then : 8952 8953cat >>confdefs.h <<_ACEOF 8954#define HAVE_U_INT32_T 1 8955_ACEOF 8956 8957 8958fi 8959ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#ifdef HAVE_STDINT_H 8960 #include <stdint.h> 8961 #endif 8962" 8963if test "x$ac_cv_type_u_int64_t" = xyes; then : 8964 8965cat >>confdefs.h <<_ACEOF 8966#define HAVE_U_INT64_T 1 8967_ACEOF 8968 8969 8970fi 8971ac_fn_c_check_type "$LINENO" "u_intptr_t" "ac_cv_type_u_intptr_t" "#ifdef HAVE_STDINT_H 8972 #include <stdint.h> 8973 #endif 8974" 8975if test "x$ac_cv_type_u_intptr_t" = xyes; then : 8976 8977cat >>confdefs.h <<_ACEOF 8978#define HAVE_U_INTPTR_T 1 8979_ACEOF 8980 8981 8982fi 8983 8984 8985# With luck the above types from newer C standards will ba available. If 8986# they are I can rely on them an I then do not need to worry about 8987# the sized of the older-style native types such as "long". And for 8988# cross compilation and multi-architecture builds it can be delicate to 8989# work out the size of types at configure time! But I will do so now and 8990# use what I find as a fall-back for when (mostly) intptr_t is not 8991# available. 8992 8993# The cast to long int works around a bug in the HP C Compiler 8994# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 8995# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 8996# This bug is HP SR number 8606223364. 8997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 8998$as_echo_n "checking size of void *... " >&6; } 8999if ${ac_cv_sizeof_void_p+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 9003 9004else 9005 if test "$ac_cv_type_void_p" = yes; then 9006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9007$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9008as_fn_error 77 "cannot compute sizeof (void *) 9009See \`config.log' for more details" "$LINENO" 5; } 9010 else 9011 ac_cv_sizeof_void_p=0 9012 fi 9013fi 9014 9015fi 9016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 9017$as_echo "$ac_cv_sizeof_void_p" >&6; } 9018 9019 9020 9021cat >>confdefs.h <<_ACEOF 9022#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 9023_ACEOF 9024 9025 9026# The cast to long int works around a bug in the HP C Compiler 9027# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9028# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9029# This bug is HP SR number 8606223364. 9030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short int" >&5 9031$as_echo_n "checking size of short int... " >&6; } 9032if ${ac_cv_sizeof_short_int+:} false; then : 9033 $as_echo_n "(cached) " >&6 9034else 9035 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short int))" "ac_cv_sizeof_short_int" "$ac_includes_default"; then : 9036 9037else 9038 if test "$ac_cv_type_short_int" = yes; then 9039 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9041as_fn_error 77 "cannot compute sizeof (short int) 9042See \`config.log' for more details" "$LINENO" 5; } 9043 else 9044 ac_cv_sizeof_short_int=0 9045 fi 9046fi 9047 9048fi 9049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short_int" >&5 9050$as_echo "$ac_cv_sizeof_short_int" >&6; } 9051 9052 9053 9054cat >>confdefs.h <<_ACEOF 9055#define SIZEOF_SHORT_INT $ac_cv_sizeof_short_int 9056_ACEOF 9057 9058 9059# The cast to long int works around a bug in the HP C Compiler 9060# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9061# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9062# This bug is HP SR number 8606223364. 9063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 9064$as_echo_n "checking size of int... " >&6; } 9065if ${ac_cv_sizeof_int+:} false; then : 9066 $as_echo_n "(cached) " >&6 9067else 9068 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 9069 9070else 9071 if test "$ac_cv_type_int" = yes; then 9072 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9073$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9074as_fn_error 77 "cannot compute sizeof (int) 9075See \`config.log' for more details" "$LINENO" 5; } 9076 else 9077 ac_cv_sizeof_int=0 9078 fi 9079fi 9080 9081fi 9082{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 9083$as_echo "$ac_cv_sizeof_int" >&6; } 9084 9085 9086 9087cat >>confdefs.h <<_ACEOF 9088#define SIZEOF_INT $ac_cv_sizeof_int 9089_ACEOF 9090 9091 9092# The cast to long int works around a bug in the HP C Compiler 9093# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9094# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9095# This bug is HP SR number 8606223364. 9096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 9097$as_echo_n "checking size of long... " >&6; } 9098if ${ac_cv_sizeof_long+:} false; then : 9099 $as_echo_n "(cached) " >&6 9100else 9101 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 9102 9103else 9104 if test "$ac_cv_type_long" = yes; then 9105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9107as_fn_error 77 "cannot compute sizeof (long) 9108See \`config.log' for more details" "$LINENO" 5; } 9109 else 9110 ac_cv_sizeof_long=0 9111 fi 9112fi 9113 9114fi 9115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 9116$as_echo "$ac_cv_sizeof_long" >&6; } 9117 9118 9119 9120cat >>confdefs.h <<_ACEOF 9121#define SIZEOF_LONG $ac_cv_sizeof_long 9122_ACEOF 9123 9124 9125# The cast to long int works around a bug in the HP C Compiler 9126# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 9127# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 9128# This bug is HP SR number 8606223364. 9129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 9130$as_echo_n "checking size of long long... " >&6; } 9131if ${ac_cv_sizeof_long_long+:} false; then : 9132 $as_echo_n "(cached) " >&6 9133else 9134 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 9135 9136else 9137 if test "$ac_cv_type_long_long" = yes; then 9138 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9139$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9140as_fn_error 77 "cannot compute sizeof (long long) 9141See \`config.log' for more details" "$LINENO" 5; } 9142 else 9143 ac_cv_sizeof_long_long=0 9144 fi 9145fi 9146 9147fi 9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 9149$as_echo "$ac_cv_sizeof_long_long" >&6; } 9150 9151 9152 9153cat >>confdefs.h <<_ACEOF 9154#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 9155_ACEOF 9156 9157 9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9159$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9160if ${ac_cv_c_bigendian+:} false; then : 9161 $as_echo_n "(cached) " >&6 9162else 9163 ac_cv_c_bigendian=unknown 9164 # See if we're dealing with a universal compiler. 9165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9166/* end confdefs.h. */ 9167#ifndef __APPLE_CC__ 9168 not a universal capable compiler 9169 #endif 9170 typedef int dummy; 9171 9172_ACEOF 9173if ac_fn_c_try_compile "$LINENO"; then : 9174 9175 # Check for potential -arch flags. It is not universal unless 9176 # there are at least two -arch flags with different values. 9177 ac_arch= 9178 ac_prev= 9179 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9180 if test -n "$ac_prev"; then 9181 case $ac_word in 9182 i?86 | x86_64 | ppc | ppc64) 9183 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9184 ac_arch=$ac_word 9185 else 9186 ac_cv_c_bigendian=universal 9187 break 9188 fi 9189 ;; 9190 esac 9191 ac_prev= 9192 elif test "x$ac_word" = "x-arch"; then 9193 ac_prev=arch 9194 fi 9195 done 9196fi 9197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9198 if test $ac_cv_c_bigendian = unknown; then 9199 # See if sys/param.h defines the BYTE_ORDER macro. 9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9201/* end confdefs.h. */ 9202#include <sys/types.h> 9203 #include <sys/param.h> 9204 9205int 9206main () 9207{ 9208#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9209 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9210 && LITTLE_ENDIAN) 9211 bogus endian macros 9212 #endif 9213 9214 ; 9215 return 0; 9216} 9217_ACEOF 9218if ac_fn_c_try_compile "$LINENO"; then : 9219 # It does; now see whether it defined to BIG_ENDIAN or not. 9220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9221/* end confdefs.h. */ 9222#include <sys/types.h> 9223 #include <sys/param.h> 9224 9225int 9226main () 9227{ 9228#if BYTE_ORDER != BIG_ENDIAN 9229 not big endian 9230 #endif 9231 9232 ; 9233 return 0; 9234} 9235_ACEOF 9236if ac_fn_c_try_compile "$LINENO"; then : 9237 ac_cv_c_bigendian=yes 9238else 9239 ac_cv_c_bigendian=no 9240fi 9241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9242fi 9243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9244 fi 9245 if test $ac_cv_c_bigendian = unknown; then 9246 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9248/* end confdefs.h. */ 9249#include <limits.h> 9250 9251int 9252main () 9253{ 9254#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9255 bogus endian macros 9256 #endif 9257 9258 ; 9259 return 0; 9260} 9261_ACEOF 9262if ac_fn_c_try_compile "$LINENO"; then : 9263 # It does; now see whether it defined to _BIG_ENDIAN or not. 9264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9265/* end confdefs.h. */ 9266#include <limits.h> 9267 9268int 9269main () 9270{ 9271#ifndef _BIG_ENDIAN 9272 not big endian 9273 #endif 9274 9275 ; 9276 return 0; 9277} 9278_ACEOF 9279if ac_fn_c_try_compile "$LINENO"; then : 9280 ac_cv_c_bigendian=yes 9281else 9282 ac_cv_c_bigendian=no 9283fi 9284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9285fi 9286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9287 fi 9288 if test $ac_cv_c_bigendian = unknown; then 9289 # Compile a test program. 9290 if test "$cross_compiling" = yes; then : 9291 # Try to guess by grepping values from an object file. 9292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9293/* end confdefs.h. */ 9294short int ascii_mm[] = 9295 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9296 short int ascii_ii[] = 9297 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9298 int use_ascii (int i) { 9299 return ascii_mm[i] + ascii_ii[i]; 9300 } 9301 short int ebcdic_ii[] = 9302 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9303 short int ebcdic_mm[] = 9304 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9305 int use_ebcdic (int i) { 9306 return ebcdic_mm[i] + ebcdic_ii[i]; 9307 } 9308 extern int foo; 9309 9310int 9311main () 9312{ 9313return use_ascii (foo) == use_ebcdic (foo); 9314 ; 9315 return 0; 9316} 9317_ACEOF 9318if ac_fn_c_try_compile "$LINENO"; then : 9319 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9320 ac_cv_c_bigendian=yes 9321 fi 9322 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9323 if test "$ac_cv_c_bigendian" = unknown; then 9324 ac_cv_c_bigendian=no 9325 else 9326 # finding both strings is unlikely to happen, but who knows? 9327 ac_cv_c_bigendian=unknown 9328 fi 9329 fi 9330fi 9331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9332else 9333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9334/* end confdefs.h. */ 9335$ac_includes_default 9336int 9337main () 9338{ 9339 9340 /* Are we little or big endian? From Harbison&Steele. */ 9341 union 9342 { 9343 long int l; 9344 char c[sizeof (long int)]; 9345 } u; 9346 u.l = 1; 9347 return u.c[sizeof (long int) - 1] == 1; 9348 9349 ; 9350 return 0; 9351} 9352_ACEOF 9353if ac_fn_c_try_run "$LINENO"; then : 9354 ac_cv_c_bigendian=no 9355else 9356 ac_cv_c_bigendian=yes 9357fi 9358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9359 conftest.$ac_objext conftest.beam conftest.$ac_ext 9360fi 9361 9362 fi 9363fi 9364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9365$as_echo "$ac_cv_c_bigendian" >&6; } 9366 case $ac_cv_c_bigendian in #( 9367 yes) 9368 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9369;; #( 9370 no) 9371 ;; #( 9372 universal) 9373 9374$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9375 9376 ;; #( 9377 *) 9378 as_fn_error $? "unknown endianness 9379 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9380 esac 9381 9382 9383ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h> 9384" 9385if test "x$ac_cv_type_socklen_t" = xyes; then : 9386 9387cat >>confdefs.h <<_ACEOF 9388#define HAVE_SOCKLEN_T 1 9389_ACEOF 9390 9391 9392fi 9393 9394 9395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 9396$as_echo_n "checking for socket in -lsocket... " >&6; } 9397if ${ac_cv_lib_socket_socket+:} false; then : 9398 $as_echo_n "(cached) " >&6 9399else 9400 ac_check_lib_save_LIBS=$LIBS 9401LIBS="-lsocket $LIBS" 9402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9403/* end confdefs.h. */ 9404 9405/* Override any GCC internal prototype to avoid an error. 9406 Use char because int might match the return type of a GCC 9407 builtin and then its argument prototype would still apply. */ 9408#ifdef __cplusplus 9409extern "C" 9410#endif 9411char socket (); 9412int 9413main () 9414{ 9415return socket (); 9416 ; 9417 return 0; 9418} 9419_ACEOF 9420if ac_fn_c_try_link "$LINENO"; then : 9421 ac_cv_lib_socket_socket=yes 9422else 9423 ac_cv_lib_socket_socket=no 9424fi 9425rm -f core conftest.err conftest.$ac_objext \ 9426 conftest$ac_exeext conftest.$ac_ext 9427LIBS=$ac_check_lib_save_LIBS 9428fi 9429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 9430$as_echo "$ac_cv_lib_socket_socket" >&6; } 9431if test "x$ac_cv_lib_socket_socket" = xyes; then : 9432 cat >>confdefs.h <<_ACEOF 9433#define HAVE_LIBSOCKET 1 9434_ACEOF 9435 9436 LIBS="-lsocket $LIBS" 9437 9438fi 9439 9440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 9441$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 9442if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 9443 $as_echo_n "(cached) " >&6 9444else 9445 ac_check_lib_save_LIBS=$LIBS 9446LIBS="-lnsl $LIBS" 9447cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9448/* end confdefs.h. */ 9449 9450/* Override any GCC internal prototype to avoid an error. 9451 Use char because int might match the return type of a GCC 9452 builtin and then its argument prototype would still apply. */ 9453#ifdef __cplusplus 9454extern "C" 9455#endif 9456char gethostbyname (); 9457int 9458main () 9459{ 9460return gethostbyname (); 9461 ; 9462 return 0; 9463} 9464_ACEOF 9465if ac_fn_c_try_link "$LINENO"; then : 9466 ac_cv_lib_nsl_gethostbyname=yes 9467else 9468 ac_cv_lib_nsl_gethostbyname=no 9469fi 9470rm -f core conftest.err conftest.$ac_objext \ 9471 conftest$ac_exeext conftest.$ac_ext 9472LIBS=$ac_check_lib_save_LIBS 9473fi 9474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 9475$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 9476if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 9477 cat >>confdefs.h <<_ACEOF 9478#define HAVE_LIBNSL 1 9479_ACEOF 9480 9481 LIBS="-lnsl $LIBS" 9482 9483fi 9484 9485 9486# Checks for library functions. 9487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5 9488$as_echo_n "checking whether closedir returns void... " >&6; } 9489if ${ac_cv_func_closedir_void+:} false; then : 9490 $as_echo_n "(cached) " >&6 9491else 9492 if test "$cross_compiling" = yes; then : 9493 ac_cv_func_closedir_void=yes 9494else 9495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9496/* end confdefs.h. */ 9497$ac_includes_default 9498#include <$ac_header_dirent> 9499#ifndef __cplusplus 9500int closedir (); 9501#endif 9502 9503int 9504main () 9505{ 9506return closedir (opendir (".")) != 0; 9507 ; 9508 return 0; 9509} 9510_ACEOF 9511if ac_fn_c_try_run "$LINENO"; then : 9512 ac_cv_func_closedir_void=no 9513else 9514 ac_cv_func_closedir_void=yes 9515fi 9516rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9517 conftest.$ac_objext conftest.beam conftest.$ac_ext 9518fi 9519 9520fi 9521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5 9522$as_echo "$ac_cv_func_closedir_void" >&6; } 9523if test $ac_cv_func_closedir_void = yes; then 9524 9525$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h 9526 9527fi 9528 9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 9530$as_echo_n "checking for error_at_line... " >&6; } 9531if ${ac_cv_lib_error_at_line+:} false; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9535/* end confdefs.h. */ 9536#include <error.h> 9537int 9538main () 9539{ 9540error_at_line (0, 0, "", 0, "an error occurred"); 9541 ; 9542 return 0; 9543} 9544_ACEOF 9545if ac_fn_c_try_link "$LINENO"; then : 9546 ac_cv_lib_error_at_line=yes 9547else 9548 ac_cv_lib_error_at_line=no 9549fi 9550rm -f core conftest.err conftest.$ac_objext \ 9551 conftest$ac_exeext conftest.$ac_ext 9552fi 9553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 9554$as_echo "$ac_cv_lib_error_at_line" >&6; } 9555if test $ac_cv_lib_error_at_line = no; then 9556 case " $LIBOBJS " in 9557 *" error.$ac_objext "* ) ;; 9558 *) LIBOBJS="$LIBOBJS error.$ac_objext" 9559 ;; 9560esac 9561 9562fi 9563 9564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 9565$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 9566if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 9567 $as_echo_n "(cached) " >&6 9568else 9569 rm -f conftest.sym conftest.file 9570echo >conftest.file 9571if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 9572 if test "$cross_compiling" = yes; then : 9573 ac_cv_func_lstat_dereferences_slashed_symlink=no 9574else 9575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9576/* end confdefs.h. */ 9577$ac_includes_default 9578int 9579main () 9580{ 9581struct stat sbuf; 9582 /* Linux will dereference the symlink and fail, as required by POSIX. 9583 That is better in the sense that it means we will not 9584 have to compile and use the lstat wrapper. */ 9585 return lstat ("conftest.sym/", &sbuf) == 0; 9586 ; 9587 return 0; 9588} 9589_ACEOF 9590if ac_fn_c_try_run "$LINENO"; then : 9591 ac_cv_func_lstat_dereferences_slashed_symlink=yes 9592else 9593 ac_cv_func_lstat_dereferences_slashed_symlink=no 9594fi 9595rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9596 conftest.$ac_objext conftest.beam conftest.$ac_ext 9597fi 9598 9599else 9600 # If the `ln -s' command failed, then we probably don't even 9601 # have an lstat function. 9602 ac_cv_func_lstat_dereferences_slashed_symlink=no 9603fi 9604rm -f conftest.sym conftest.file 9605 9606fi 9607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 9608$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 9609 9610test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 9611 9612cat >>confdefs.h <<_ACEOF 9613#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 9614_ACEOF 9615 9616 9617if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 9618 case " $LIBOBJS " in 9619 *" lstat.$ac_objext "* ) ;; 9620 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 9621 ;; 9622esac 9623 9624fi 9625 9626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5 9627$as_echo_n "checking whether lstat accepts an empty string... " >&6; } 9628if ${ac_cv_func_lstat_empty_string_bug+:} false; then : 9629 $as_echo_n "(cached) " >&6 9630else 9631 if test "$cross_compiling" = yes; then : 9632 ac_cv_func_lstat_empty_string_bug=yes 9633else 9634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9635/* end confdefs.h. */ 9636$ac_includes_default 9637int 9638main () 9639{ 9640struct stat sbuf; 9641 return lstat ("", &sbuf) == 0; 9642 ; 9643 return 0; 9644} 9645_ACEOF 9646if ac_fn_c_try_run "$LINENO"; then : 9647 ac_cv_func_lstat_empty_string_bug=no 9648else 9649 ac_cv_func_lstat_empty_string_bug=yes 9650fi 9651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9652 conftest.$ac_objext conftest.beam conftest.$ac_ext 9653fi 9654 9655fi 9656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5 9657$as_echo "$ac_cv_func_lstat_empty_string_bug" >&6; } 9658if test $ac_cv_func_lstat_empty_string_bug = yes; then 9659 case " $LIBOBJS " in 9660 *" lstat.$ac_objext "* ) ;; 9661 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 9662 ;; 9663esac 9664 9665 9666cat >>confdefs.h <<_ACEOF 9667#define HAVE_LSTAT_EMPTY_STRING_BUG 1 9668_ACEOF 9669 9670fi 9671 9672{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5 9673$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; } 9674if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then : 9675 $as_echo_n "(cached) " >&6 9676else 9677 rm -f conftest.sym conftest.file 9678echo >conftest.file 9679if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then 9680 if test "$cross_compiling" = yes; then : 9681 ac_cv_func_lstat_dereferences_slashed_symlink=no 9682else 9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9684/* end confdefs.h. */ 9685$ac_includes_default 9686int 9687main () 9688{ 9689struct stat sbuf; 9690 /* Linux will dereference the symlink and fail, as required by POSIX. 9691 That is better in the sense that it means we will not 9692 have to compile and use the lstat wrapper. */ 9693 return lstat ("conftest.sym/", &sbuf) == 0; 9694 ; 9695 return 0; 9696} 9697_ACEOF 9698if ac_fn_c_try_run "$LINENO"; then : 9699 ac_cv_func_lstat_dereferences_slashed_symlink=yes 9700else 9701 ac_cv_func_lstat_dereferences_slashed_symlink=no 9702fi 9703rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9704 conftest.$ac_objext conftest.beam conftest.$ac_ext 9705fi 9706 9707else 9708 # If the `ln -s' command failed, then we probably don't even 9709 # have an lstat function. 9710 ac_cv_func_lstat_dereferences_slashed_symlink=no 9711fi 9712rm -f conftest.sym conftest.file 9713 9714fi 9715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 9716$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } 9717 9718test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && 9719 9720cat >>confdefs.h <<_ACEOF 9721#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 9722_ACEOF 9723 9724 9725if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then 9726 case " $LIBOBJS " in 9727 *" lstat.$ac_objext "* ) ;; 9728 *) LIBOBJS="$LIBOBJS lstat.$ac_objext" 9729 ;; 9730esac 9731 9732fi 9733 9734# AC_FUNC_MALLOC this seems unduly fussy? 9735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5 9736$as_echo_n "checking for working memcmp... " >&6; } 9737if ${ac_cv_func_memcmp_working+:} false; then : 9738 $as_echo_n "(cached) " >&6 9739else 9740 if test "$cross_compiling" = yes; then : 9741 ac_cv_func_memcmp_working=no 9742else 9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9744/* end confdefs.h. */ 9745$ac_includes_default 9746int 9747main () 9748{ 9749 9750 /* Some versions of memcmp are not 8-bit clean. */ 9751 char c0 = '\100', c1 = '\200', c2 = '\201'; 9752 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) 9753 return 1; 9754 9755 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes 9756 or more and with at least one buffer not starting on a 4-byte boundary. 9757 William Lewis provided this test program. */ 9758 { 9759 char foo[21]; 9760 char bar[21]; 9761 int i; 9762 for (i = 0; i < 4; i++) 9763 { 9764 char *a = foo + i; 9765 char *b = bar + i; 9766 strcpy (a, "--------01111111"); 9767 strcpy (b, "--------10000000"); 9768 if (memcmp (a, b, 16) >= 0) 9769 return 1; 9770 } 9771 return 0; 9772 } 9773 9774 ; 9775 return 0; 9776} 9777_ACEOF 9778if ac_fn_c_try_run "$LINENO"; then : 9779 ac_cv_func_memcmp_working=yes 9780else 9781 ac_cv_func_memcmp_working=no 9782fi 9783rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9784 conftest.$ac_objext conftest.beam conftest.$ac_ext 9785fi 9786 9787fi 9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5 9789$as_echo "$ac_cv_func_memcmp_working" >&6; } 9790test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in 9791 *" memcmp.$ac_objext "* ) ;; 9792 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" 9793 ;; 9794esac 9795 9796 9797# AC_FUNC_MKTIME causes a hang in on some systems! 9798# AC_FUNC_REALLOC 9799if ${ac_cv_func_setvbuf_reversed+:} false; then : 9800 $as_echo_n "(cached) " >&6 9801else 9802 ac_cv_func_setvbuf_reversed=no 9803fi 9804 9805 9806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 9807$as_echo_n "checking return type of signal handlers... " >&6; } 9808if ${ac_cv_type_signal+:} false; then : 9809 $as_echo_n "(cached) " >&6 9810else 9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9812/* end confdefs.h. */ 9813#include <sys/types.h> 9814#include <signal.h> 9815 9816int 9817main () 9818{ 9819return *(signal (0, 0)) (0) == 1; 9820 ; 9821 return 0; 9822} 9823_ACEOF 9824if ac_fn_c_try_compile "$LINENO"; then : 9825 ac_cv_type_signal=int 9826else 9827 ac_cv_type_signal=void 9828fi 9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9830fi 9831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 9832$as_echo "$ac_cv_type_signal" >&6; } 9833 9834cat >>confdefs.h <<_ACEOF 9835#define RETSIGTYPE $ac_cv_type_signal 9836_ACEOF 9837 9838 9839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5 9840$as_echo_n "checking whether stat accepts an empty string... " >&6; } 9841if ${ac_cv_func_stat_empty_string_bug+:} false; then : 9842 $as_echo_n "(cached) " >&6 9843else 9844 if test "$cross_compiling" = yes; then : 9845 ac_cv_func_stat_empty_string_bug=yes 9846else 9847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9848/* end confdefs.h. */ 9849$ac_includes_default 9850int 9851main () 9852{ 9853struct stat sbuf; 9854 return stat ("", &sbuf) == 0; 9855 ; 9856 return 0; 9857} 9858_ACEOF 9859if ac_fn_c_try_run "$LINENO"; then : 9860 ac_cv_func_stat_empty_string_bug=no 9861else 9862 ac_cv_func_stat_empty_string_bug=yes 9863fi 9864rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9865 conftest.$ac_objext conftest.beam conftest.$ac_ext 9866fi 9867 9868fi 9869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5 9870$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; } 9871if test $ac_cv_func_stat_empty_string_bug = yes; then 9872 case " $LIBOBJS " in 9873 *" stat.$ac_objext "* ) ;; 9874 *) LIBOBJS="$LIBOBJS stat.$ac_objext" 9875 ;; 9876esac 9877 9878 9879cat >>confdefs.h <<_ACEOF 9880#define HAVE_STAT_EMPTY_STRING_BUG 1 9881_ACEOF 9882 9883fi 9884 9885 9886 9887 9888 for ac_header in $ac_header_list 9889do : 9890 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9891ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9892" 9893if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9894 cat >>confdefs.h <<_ACEOF 9895#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9896_ACEOF 9897 9898fi 9899 9900done 9901 9902 9903 9904 9905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether utime accepts a null argument" >&5 9906$as_echo_n "checking whether utime accepts a null argument... " >&6; } 9907if ${ac_cv_func_utime_null+:} false; then : 9908 $as_echo_n "(cached) " >&6 9909else 9910 rm -f conftest.data; >conftest.data 9911# Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. 9912if test "$cross_compiling" = yes; then : 9913 ac_cv_func_utime_null='guessing yes' 9914else 9915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9916/* end confdefs.h. */ 9917$ac_includes_default 9918 #ifdef HAVE_UTIME_H 9919 # include <utime.h> 9920 #endif 9921int 9922main () 9923{ 9924struct stat s, t; 9925 return ! (stat ("conftest.data", &s) == 0 9926 && utime ("conftest.data", 0) == 0 9927 && stat ("conftest.data", &t) == 0 9928 && t.st_mtime >= s.st_mtime 9929 && t.st_mtime - s.st_mtime < 120); 9930 ; 9931 return 0; 9932} 9933_ACEOF 9934if ac_fn_c_try_run "$LINENO"; then : 9935 ac_cv_func_utime_null=yes 9936else 9937 ac_cv_func_utime_null=no 9938fi 9939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9940 conftest.$ac_objext conftest.beam conftest.$ac_ext 9941fi 9942 9943fi 9944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_utime_null" >&5 9945$as_echo "$ac_cv_func_utime_null" >&6; } 9946if test "x$ac_cv_func_utime_null" != xno; then 9947 ac_cv_func_utime_null=yes 9948 9949$as_echo "#define HAVE_UTIME_NULL 1" >>confdefs.h 9950 9951fi 9952rm -f conftest.data 9953 9954for ac_func in vprintf 9955do : 9956 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" 9957if test "x$ac_cv_func_vprintf" = xyes; then : 9958 cat >>confdefs.h <<_ACEOF 9959#define HAVE_VPRINTF 1 9960_ACEOF 9961 9962ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" 9963if test "x$ac_cv_func__doprnt" = xyes; then : 9964 9965$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h 9966 9967fi 9968 9969fi 9970done 9971 9972 9973for ac_func in atexit ftruncate getcwd gethostbyaddr gethostbyname inet_ntoa 9974do : 9975 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9976ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9977if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9978 cat >>confdefs.h <<_ACEOF 9979#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9980_ACEOF 9981 9982fi 9983done 9984 9985for ac_func in memmove memset mkdir pow rmdir socket sqrt strchr strdup 9986do : 9987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 9988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 9989if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 9990 cat >>confdefs.h <<_ACEOF 9991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 9992_ACEOF 9993 9994fi 9995done 9996 9997for ac_func in strrchr strstr utime popen 9998do : 9999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10001if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10002 cat >>confdefs.h <<_ACEOF 10003#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10004_ACEOF 10005 10006fi 10007done 10008 10009for ac_func in fork wait waitpid shmget shmat shmdt shmctl 10010do : 10011 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10012ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 10013if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 10014 cat >>confdefs.h <<_ACEOF 10015#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10016_ACEOF 10017 10018fi 10019done 10020 10021for ac_func in vsnprintf 10022do : 10023 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 10024if test "x$ac_cv_func_vsnprintf" = xyes; then : 10025 cat >>confdefs.h <<_ACEOF 10026#define HAVE_VSNPRINTF 1 10027_ACEOF 10028 10029fi 10030done 10031 10032 10033if test "x$with_fox" = "xno" 10034then 10035 { $as_echo "$as_me:${as_lineno-$LINENO}: \"Will not even attempt to look for FOX\"" >&5 10036$as_echo "$as_me: \"Will not even attempt to look for FOX\"" >&6;} 10037else 10038 10039 if test "x$with_fox_pending" != "xno" 10040 then 10041 fox_present="yes" 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: Will expect FOX to be in $with_fox" >&5 10043$as_echo "$as_me: Will expect FOX to be in $with_fox" >&6;} 10044 CPPFLAGS="$CPPFLAGS -I \"$with_fox/include/fox-1.6\"" 10045 LDFLAGS="$LDFLAGS -L \"$with_fox/lib\"" 10046 10047 FOXLIB="$with_fox/lib/libFOX*" 10048 LIBS="-lFOX-1.6 $LIBS" 10049 10050 FOXDEPS="$with_fox/lib/libFOX-1.6.a" 10051 10052$as_echo "#define HAVE_LIBFOX 1" >>confdefs.h 10053 10054# Display FOX level (ie minor version number) if actually present 10055 if test -f "$with_fox/include/fox-1.6/fxver.h" 10056 then 10057 grep LEVEL "$with_fox/include/fox-1.6/fxver.h" 10058 fi 10059 else 10060 if test "x$with_fox" = "x" 10061 then 10062 with_fox="/usr/local" 10063 else if test "x$with_fox" = "xyes" 10064 then 10065 with_fox="/usr/local" 10066 fi 10067 fi 10068 10069 if test -d "$with_fox/$foxdir" 10070 then 10071 with_fox="$with_fox/$foxdir" 10072 fi 10073 10074 { $as_echo "$as_me:${as_lineno-$LINENO}: \"Will look for FOX in $with_fox\"" >&5 10075$as_echo "$as_me: \"Will look for FOX in $with_fox\"" >&6;} 10076 10077# FOX is unhappy if you try to link (or even compile) in C 10078# mode so set C++ usage here. Because some other things get confused in 10079# C++ mode I make this test happen here at the end of my configure script. 10080 10081# Also I will not even want to try using C++ for anything unless FOX is 10082# goin to be used. Another reason to put this stuff late her. 10083 10084 ac_ext=cpp 10085ac_cpp='$CXXCPP $CPPFLAGS' 10086ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10087ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10088ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10089 10090 10091 cppflags_save="$CPPFLAGS" 10092 ldflags_save="$LDFLAGS" 10093 libs_save="$LIBS" 10094 10095# NB that for FOX I am going to expect the library to be in 10096# $with_fox/lib 10097# and $with_fox has had a subdir tagged on its end to reflect a 10098# modified GNU-style triple, as in i686-pc-linux. So if the 10099# user says --with-fox=/homes/myself/foxplace and the build is for 10100# Windows-64 the location inspected will end up 10101# /homes/myself/foxplace/x86_64-w64-windows64. Etc etc. 10102 10103# Only look for FOX 1.6. That is because at present the changes 10104# introduced since then are not important to me but the additional licensing 10105# constraints are ones I am unwilling to accept. 10106 10107 10108 CPPFLAGS="$CPPFLAGS -I \"$with_fox/include/fox-1.6\"" 10109 LDFLAGS="$LDFLAGS -L \"$with_fox/lib\"" 10110 FOXLIB="$with_fox/lib/libFOX*" 10111 LIBS="-lFOX-1.6 $LIBS" 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: FOX libraries probably as $FOXLIB" >&5 10113$as_echo "$as_me: FOX libraries probably as $FOXLIB" >&6;} 10114 10115 10116cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10117/* end confdefs.h. */ 10118#define exit(x) acnexit(x) 10119 #include "fx.h" 10120 extern "C" char fxfindfox(); 10121int 10122main () 10123{ 10124fxfindfox(); 10125 ; 10126 return 0; 10127} 10128_ACEOF 10129if ac_fn_cxx_try_link "$LINENO"; then : 10130 10131$as_echo "#define HAVE_LIBFOX 1" >>confdefs.h 10132 10133 { $as_echo "$as_me:${as_lineno-$LINENO}: Found FOX version 1.6" >&5 10134$as_echo "$as_me: Found FOX version 1.6" >&6;} 10135else 10136 fox_not_found=1 10137fi 10138rm -f core conftest.err conftest.$ac_objext \ 10139 conftest$ac_exeext conftest.$ac_ext 10140 10141 if test "x$fox_not_found" != "x" 10142 then 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: FOX libraries not found: will not build GUI code" >&5 10144$as_echo "$as_me: FOX libraries not found: will not build GUI code" >&6;} 10145 CPPFLAGS="$cppflags_save" 10146 LDFLAGS="$ldflags_save" 10147 LIBS="$libs_save" 10148 else 10149 fox_present="yes" 10150# Display FOX level (ie minor version number) 10151 grep LEVEL "$with_fox/include/fox-1.6/fxver.h" 10152 fi 10153 10154 fi 10155 10156fi 10157 10158# 10159# The extra libraries listed here seem to need to be scanned last. 10160# 10161 10162if test "x$windows_build" = "xyes" 10163then 10164 case $CC in 10165 x86_64-w64-*) 10166 LIBS="$LIBS -ladvapi32 -lshell32 -lcomctl32 -lgdi32 -lws2_32 -lmswsock -lwinspool -lmpr -luser32" 10167 ;; 10168 *) 10169 LIBS="$LIBS -lcomctl32 -lgdi32 -lws2_32 -lwsock32 -lwinspool -lmpr" 10170 ;; 10171 esac 10172fi 10173 10174if test "x$macintosh_build" = "xyes" 10175then 10176 ENVP=MACOSX_DEPLOYMENT_TARGET=10.10 10177 CC="$ENVP $CC" 10178 CXX="$ENVP $CXX" 10179fi 10180 10181for ac_prog in cygpath 10182do 10183 # Extract the first word of "$ac_prog", so it can be a program name with args. 10184set dummy $ac_prog; ac_word=$2 10185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10186$as_echo_n "checking for $ac_word... " >&6; } 10187if ${ac_cv_prog_CYGPATH+:} false; then : 10188 $as_echo_n "(cached) " >&6 10189else 10190 if test -n "$CYGPATH"; then 10191 ac_cv_prog_CYGPATH="$CYGPATH" # Let the user override the test. 10192else 10193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10194for as_dir in $PATH 10195do 10196 IFS=$as_save_IFS 10197 test -z "$as_dir" && as_dir=. 10198 for ac_exec_ext in '' $ac_executable_extensions; do 10199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10200 ac_cv_prog_CYGPATH="$ac_prog" 10201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10202 break 2 10203 fi 10204done 10205 done 10206IFS=$as_save_IFS 10207 10208fi 10209fi 10210CYGPATH=$ac_cv_prog_CYGPATH 10211if test -n "$CYGPATH"; then 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 10213$as_echo "$CYGPATH" >&6; } 10214else 10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10216$as_echo "no" >&6; } 10217fi 10218 10219 10220 test -n "$CYGPATH" && break 10221done 10222test -n "$CYGPATH" || CYGPATH="no" 10223 10224 10225# The following two lines are a (further) attempt to arrange that the 10226# rebuilding of Makefile (and before that Makefile.in and the like) 10227# is less sensitive to exactly which version of automake happens to 10228# be installed... 10229 10230AUTOMAKE="automake -f -a -v" 10231 10232cat >confcache <<\_ACEOF 10233# This file is a shell script that caches the results of configure 10234# tests run on this system so they can be shared between configure 10235# scripts and configure runs, see configure's option --config-cache. 10236# It is not useful on other systems. If it contains results you don't 10237# want to keep, you may remove or edit it. 10238# 10239# config.status only pays attention to the cache file if you give it 10240# the --recheck option to rerun configure. 10241# 10242# `ac_cv_env_foo' variables (set or unset) will be overridden when 10243# loading this file, other *unset* `ac_cv_foo' will be assigned the 10244# following values. 10245 10246_ACEOF 10247 10248# The following way of writing the cache mishandles newlines in values, 10249# but we know of no workaround that is simple, portable, and efficient. 10250# So, we kill variables containing newlines. 10251# Ultrix sh set writes to stderr and can't be redirected directly, 10252# and sets the high bit in the cache file unless we assign to the vars. 10253( 10254 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10255 eval ac_val=\$$ac_var 10256 case $ac_val in #( 10257 *${as_nl}*) 10258 case $ac_var in #( 10259 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10260$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10261 esac 10262 case $ac_var in #( 10263 _ | IFS | as_nl) ;; #( 10264 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10265 *) { eval $ac_var=; unset $ac_var;} ;; 10266 esac ;; 10267 esac 10268 done 10269 10270 (set) 2>&1 | 10271 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10272 *${as_nl}ac_space=\ *) 10273 # `set' does not quote correctly, so add quotes: double-quote 10274 # substitution turns \\\\ into \\, and sed turns \\ into \. 10275 sed -n \ 10276 "s/'/'\\\\''/g; 10277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10278 ;; #( 10279 *) 10280 # `set' quotes correctly as required by POSIX, so do not add quotes. 10281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10282 ;; 10283 esac | 10284 sort 10285) | 10286 sed ' 10287 /^ac_cv_env_/b end 10288 t clear 10289 :clear 10290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10291 t end 10292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10293 :end' >>confcache 10294if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10295 if test -w "$cache_file"; then 10296 if test "x$cache_file" != "x/dev/null"; then 10297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10298$as_echo "$as_me: updating cache $cache_file" >&6;} 10299 if test ! -f "$cache_file" || test -h "$cache_file"; then 10300 cat confcache >"$cache_file" 10301 else 10302 case $cache_file in #( 10303 */* | ?:*) 10304 mv -f confcache "$cache_file"$$ && 10305 mv -f "$cache_file"$$ "$cache_file" ;; #( 10306 *) 10307 mv -f confcache "$cache_file" ;; 10308 esac 10309 fi 10310 fi 10311 else 10312 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10313$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10314 fi 10315fi 10316rm -f confcache 10317 10318test "x$prefix" = xNONE && prefix=$ac_default_prefix 10319# Let make expand exec_prefix. 10320test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10321 10322# Transform confdefs.h into DEFS. 10323# Protect against shell expansion while executing Makefile rules. 10324# Protect against Makefile macro expansion. 10325# 10326# If the first sed substitution is executed (which looks for macros that 10327# take arguments), then branch to the quote section. Otherwise, 10328# look for a macro that doesn't take arguments. 10329ac_script=' 10330:mline 10331/\\$/{ 10332 N 10333 s,\\\n,, 10334 b mline 10335} 10336t clear 10337:clear 10338s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 10339t quote 10340s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 10341t quote 10342b any 10343:quote 10344s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 10345s/\[/\\&/g 10346s/\]/\\&/g 10347s/\$/$$/g 10348H 10349:any 10350${ 10351 g 10352 s/^\n// 10353 s/\n/ /g 10354 p 10355} 10356' 10357DEFS=`sed -n "$ac_script" confdefs.h` 10358 10359 10360ac_libobjs= 10361ac_ltlibobjs= 10362U= 10363for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10364 # 1. Remove the extension, and $U if already installed. 10365 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10366 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10367 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10368 # will be set to the directory where LIBOBJS objects are built. 10369 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10370 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10371done 10372LIBOBJS=$ac_libobjs 10373 10374LTLIBOBJS=$ac_ltlibobjs 10375 10376 10377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 10378$as_echo_n "checking that generated files are newer than configure... " >&6; } 10379 if test -n "$am_sleep_pid"; then 10380 # Hide warnings about reused PIDs. 10381 wait $am_sleep_pid 2>/dev/null 10382 fi 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 10384$as_echo "done" >&6; } 10385 if test -n "$EXEEXT"; then 10386 am__EXEEXT_TRUE= 10387 am__EXEEXT_FALSE='#' 10388else 10389 am__EXEEXT_TRUE='#' 10390 am__EXEEXT_FALSE= 10391fi 10392 10393if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 10394 as_fn_error $? "conditional \"AMDEP\" was never defined. 10395Usually this means the macro was only invoked conditionally." "$LINENO" 5 10396fi 10397if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10398 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10399Usually this means the macro was only invoked conditionally." "$LINENO" 5 10400fi 10401if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 10402 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 10403Usually this means the macro was only invoked conditionally." "$LINENO" 5 10404fi 10405if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 10406 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 10407Usually this means the macro was only invoked conditionally." "$LINENO" 5 10408fi 10409if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 10410 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 10411Usually this means the macro was only invoked conditionally." "$LINENO" 5 10412fi 10413 10414 10415: "${CONFIG_STATUS=./config.status}" 10416ac_write_fail=0 10417ac_clean_files_save=$ac_clean_files 10418ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10419{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10420$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10421as_write_fail=0 10422cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10423#! $SHELL 10424# Generated by $as_me. 10425# Run this file to recreate the current configuration. 10426# Compiler output produced by configure, useful for debugging 10427# configure, is in config.log if it exists. 10428 10429debug=false 10430ac_cs_recheck=false 10431ac_cs_silent=false 10432 10433SHELL=\${CONFIG_SHELL-$SHELL} 10434export SHELL 10435_ASEOF 10436cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10437## -------------------- ## 10438## M4sh Initialization. ## 10439## -------------------- ## 10440 10441# Be more Bourne compatible 10442DUALCASE=1; export DUALCASE # for MKS sh 10443if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10444 emulate sh 10445 NULLCMD=: 10446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10447 # is contrary to our usage. Disable this feature. 10448 alias -g '${1+"$@"}'='"$@"' 10449 setopt NO_GLOB_SUBST 10450else 10451 case `(set -o) 2>/dev/null` in #( 10452 *posix*) : 10453 set -o posix ;; #( 10454 *) : 10455 ;; 10456esac 10457fi 10458 10459 10460as_nl=' 10461' 10462export as_nl 10463# Printing a long string crashes Solaris 7 /usr/bin/printf. 10464as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10465as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10466as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10467# Prefer a ksh shell builtin over an external printf program on Solaris, 10468# but without wasting forks for bash or zsh. 10469if test -z "$BASH_VERSION$ZSH_VERSION" \ 10470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10471 as_echo='print -r --' 10472 as_echo_n='print -rn --' 10473elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10474 as_echo='printf %s\n' 10475 as_echo_n='printf %s' 10476else 10477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10479 as_echo_n='/usr/ucb/echo -n' 10480 else 10481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10482 as_echo_n_body='eval 10483 arg=$1; 10484 case $arg in #( 10485 *"$as_nl"*) 10486 expr "X$arg" : "X\\(.*\\)$as_nl"; 10487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10488 esac; 10489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10490 ' 10491 export as_echo_n_body 10492 as_echo_n='sh -c $as_echo_n_body as_echo' 10493 fi 10494 export as_echo_body 10495 as_echo='sh -c $as_echo_body as_echo' 10496fi 10497 10498# The user is always right. 10499if test "${PATH_SEPARATOR+set}" != set; then 10500 PATH_SEPARATOR=: 10501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10503 PATH_SEPARATOR=';' 10504 } 10505fi 10506 10507 10508# IFS 10509# We need space, tab and new line, in precisely that order. Quoting is 10510# there to prevent editors from complaining about space-tab. 10511# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10512# splitting by setting IFS to empty value.) 10513IFS=" "" $as_nl" 10514 10515# Find who we are. Look in the path if we contain no directory separator. 10516as_myself= 10517case $0 in #(( 10518 *[\\/]* ) as_myself=$0 ;; 10519 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10520for as_dir in $PATH 10521do 10522 IFS=$as_save_IFS 10523 test -z "$as_dir" && as_dir=. 10524 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10525 done 10526IFS=$as_save_IFS 10527 10528 ;; 10529esac 10530# We did not find ourselves, most probably we were run as `sh COMMAND' 10531# in which case we are not to be found in the path. 10532if test "x$as_myself" = x; then 10533 as_myself=$0 10534fi 10535if test ! -f "$as_myself"; then 10536 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10537 exit 1 10538fi 10539 10540# Unset variables that we do not need and which cause bugs (e.g. in 10541# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10542# suppresses any "Segmentation fault" message there. '((' could 10543# trigger a bug in pdksh 5.2.14. 10544for as_var in BASH_ENV ENV MAIL MAILPATH 10545do eval test x\${$as_var+set} = xset \ 10546 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10547done 10548PS1='$ ' 10549PS2='> ' 10550PS4='+ ' 10551 10552# NLS nuisances. 10553LC_ALL=C 10554export LC_ALL 10555LANGUAGE=C 10556export LANGUAGE 10557 10558# CDPATH. 10559(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10560 10561 10562# as_fn_error STATUS ERROR [LINENO LOG_FD] 10563# ---------------------------------------- 10564# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10565# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10566# script with STATUS, using 1 if that was 0. 10567as_fn_error () 10568{ 10569 as_status=$1; test $as_status -eq 0 && as_status=1 10570 if test "$4"; then 10571 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10572 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10573 fi 10574 $as_echo "$as_me: error: $2" >&2 10575 as_fn_exit $as_status 10576} # as_fn_error 10577 10578 10579# as_fn_set_status STATUS 10580# ----------------------- 10581# Set $? to STATUS, without forking. 10582as_fn_set_status () 10583{ 10584 return $1 10585} # as_fn_set_status 10586 10587# as_fn_exit STATUS 10588# ----------------- 10589# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10590as_fn_exit () 10591{ 10592 set +e 10593 as_fn_set_status $1 10594 exit $1 10595} # as_fn_exit 10596 10597# as_fn_unset VAR 10598# --------------- 10599# Portably unset VAR. 10600as_fn_unset () 10601{ 10602 { eval $1=; unset $1;} 10603} 10604as_unset=as_fn_unset 10605# as_fn_append VAR VALUE 10606# ---------------------- 10607# Append the text in VALUE to the end of the definition contained in VAR. Take 10608# advantage of any shell optimizations that allow amortized linear growth over 10609# repeated appends, instead of the typical quadratic growth present in naive 10610# implementations. 10611if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10612 eval 'as_fn_append () 10613 { 10614 eval $1+=\$2 10615 }' 10616else 10617 as_fn_append () 10618 { 10619 eval $1=\$$1\$2 10620 } 10621fi # as_fn_append 10622 10623# as_fn_arith ARG... 10624# ------------------ 10625# Perform arithmetic evaluation on the ARGs, and store the result in the 10626# global $as_val. Take advantage of shells that can avoid forks. The arguments 10627# must be portable across $(()) and expr. 10628if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10629 eval 'as_fn_arith () 10630 { 10631 as_val=$(( $* )) 10632 }' 10633else 10634 as_fn_arith () 10635 { 10636 as_val=`expr "$@" || test $? -eq 1` 10637 } 10638fi # as_fn_arith 10639 10640 10641if expr a : '\(a\)' >/dev/null 2>&1 && 10642 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10643 as_expr=expr 10644else 10645 as_expr=false 10646fi 10647 10648if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10649 as_basename=basename 10650else 10651 as_basename=false 10652fi 10653 10654if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10655 as_dirname=dirname 10656else 10657 as_dirname=false 10658fi 10659 10660as_me=`$as_basename -- "$0" || 10661$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10662 X"$0" : 'X\(//\)$' \| \ 10663 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10664$as_echo X/"$0" | 10665 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10666 s//\1/ 10667 q 10668 } 10669 /^X\/\(\/\/\)$/{ 10670 s//\1/ 10671 q 10672 } 10673 /^X\/\(\/\).*/{ 10674 s//\1/ 10675 q 10676 } 10677 s/.*/./; q'` 10678 10679# Avoid depending upon Character Ranges. 10680as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10681as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10682as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10683as_cr_digits='0123456789' 10684as_cr_alnum=$as_cr_Letters$as_cr_digits 10685 10686ECHO_C= ECHO_N= ECHO_T= 10687case `echo -n x` in #((((( 10688-n*) 10689 case `echo 'xy\c'` in 10690 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10691 xy) ECHO_C='\c';; 10692 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10693 ECHO_T=' ';; 10694 esac;; 10695*) 10696 ECHO_N='-n';; 10697esac 10698 10699rm -f conf$$ conf$$.exe conf$$.file 10700if test -d conf$$.dir; then 10701 rm -f conf$$.dir/conf$$.file 10702else 10703 rm -f conf$$.dir 10704 mkdir conf$$.dir 2>/dev/null 10705fi 10706if (echo >conf$$.file) 2>/dev/null; then 10707 if ln -s conf$$.file conf$$ 2>/dev/null; then 10708 as_ln_s='ln -s' 10709 # ... but there are two gotchas: 10710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10712 # In both cases, we have to default to `cp -pR'. 10713 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10714 as_ln_s='cp -pR' 10715 elif ln conf$$.file conf$$ 2>/dev/null; then 10716 as_ln_s=ln 10717 else 10718 as_ln_s='cp -pR' 10719 fi 10720else 10721 as_ln_s='cp -pR' 10722fi 10723rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10724rmdir conf$$.dir 2>/dev/null 10725 10726 10727# as_fn_mkdir_p 10728# ------------- 10729# Create "$as_dir" as a directory, including parents if necessary. 10730as_fn_mkdir_p () 10731{ 10732 10733 case $as_dir in #( 10734 -*) as_dir=./$as_dir;; 10735 esac 10736 test -d "$as_dir" || eval $as_mkdir_p || { 10737 as_dirs= 10738 while :; do 10739 case $as_dir in #( 10740 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10741 *) as_qdir=$as_dir;; 10742 esac 10743 as_dirs="'$as_qdir' $as_dirs" 10744 as_dir=`$as_dirname -- "$as_dir" || 10745$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10746 X"$as_dir" : 'X\(//\)[^/]' \| \ 10747 X"$as_dir" : 'X\(//\)$' \| \ 10748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10749$as_echo X"$as_dir" | 10750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10751 s//\1/ 10752 q 10753 } 10754 /^X\(\/\/\)[^/].*/{ 10755 s//\1/ 10756 q 10757 } 10758 /^X\(\/\/\)$/{ 10759 s//\1/ 10760 q 10761 } 10762 /^X\(\/\).*/{ 10763 s//\1/ 10764 q 10765 } 10766 s/.*/./; q'` 10767 test -d "$as_dir" && break 10768 done 10769 test -z "$as_dirs" || eval "mkdir $as_dirs" 10770 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10771 10772 10773} # as_fn_mkdir_p 10774if mkdir -p . 2>/dev/null; then 10775 as_mkdir_p='mkdir -p "$as_dir"' 10776else 10777 test -d ./-p && rmdir ./-p 10778 as_mkdir_p=false 10779fi 10780 10781 10782# as_fn_executable_p FILE 10783# ----------------------- 10784# Test if FILE is an executable regular file. 10785as_fn_executable_p () 10786{ 10787 test -f "$1" && test -x "$1" 10788} # as_fn_executable_p 10789as_test_x='test -x' 10790as_executable_p=as_fn_executable_p 10791 10792# Sed expression to map a string onto a valid CPP name. 10793as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10794 10795# Sed expression to map a string onto a valid variable name. 10796as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10797 10798 10799exec 6>&1 10800## ----------------------------------- ## 10801## Main body of $CONFIG_STATUS script. ## 10802## ----------------------------------- ## 10803_ASEOF 10804test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10805 10806cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10807# Save the log message, to keep $0 and so on meaningful, and to 10808# report actual input values of CONFIG_FILES etc. instead of their 10809# values after options handling. 10810ac_log=" 10811This file was extended by FOXTESTS $as_me 1.4.21, which was 10812generated by GNU Autoconf 2.69. Invocation command line was 10813 10814 CONFIG_FILES = $CONFIG_FILES 10815 CONFIG_HEADERS = $CONFIG_HEADERS 10816 CONFIG_LINKS = $CONFIG_LINKS 10817 CONFIG_COMMANDS = $CONFIG_COMMANDS 10818 $ $0 $@ 10819 10820on `(hostname || uname -n) 2>/dev/null | sed 1q` 10821" 10822 10823_ACEOF 10824 10825case $ac_config_files in *" 10826"*) set x $ac_config_files; shift; ac_config_files=$*;; 10827esac 10828 10829 10830 10831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10832# Files that config.status was made for. 10833config_files="$ac_config_files" 10834config_commands="$ac_config_commands" 10835 10836_ACEOF 10837 10838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10839ac_cs_usage="\ 10840\`$as_me' instantiates files and other configuration actions 10841from templates according to the current configuration. Unless the files 10842and actions are specified as TAGs, all are instantiated by default. 10843 10844Usage: $0 [OPTION]... [TAG]... 10845 10846 -h, --help print this help, then exit 10847 -V, --version print version number and configuration settings, then exit 10848 --config print configuration, then exit 10849 -q, --quiet, --silent 10850 do not print progress messages 10851 -d, --debug don't remove temporary files 10852 --recheck update $as_me by reconfiguring in the same conditions 10853 --file=FILE[:TEMPLATE] 10854 instantiate the configuration file FILE 10855 10856Configuration files: 10857$config_files 10858 10859Configuration commands: 10860$config_commands 10861 10862Report bugs to the package provider." 10863 10864_ACEOF 10865cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10866ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10867ac_cs_version="\\ 10868FOXTESTS config.status 1.4.21 10869configured by $0, generated by GNU Autoconf 2.69, 10870 with options \\"\$ac_cs_config\\" 10871 10872Copyright (C) 2012 Free Software Foundation, Inc. 10873This config.status script is free software; the Free Software Foundation 10874gives unlimited permission to copy, distribute and modify it." 10875 10876ac_pwd='$ac_pwd' 10877srcdir='$srcdir' 10878INSTALL='$INSTALL' 10879MKDIR_P='$MKDIR_P' 10880AWK='$AWK' 10881test -n "\$AWK" || AWK=awk 10882_ACEOF 10883 10884cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10885# The default lists apply if the user does not specify any file. 10886ac_need_defaults=: 10887while test $# != 0 10888do 10889 case $1 in 10890 --*=?*) 10891 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10892 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10893 ac_shift=: 10894 ;; 10895 --*=) 10896 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10897 ac_optarg= 10898 ac_shift=: 10899 ;; 10900 *) 10901 ac_option=$1 10902 ac_optarg=$2 10903 ac_shift=shift 10904 ;; 10905 esac 10906 10907 case $ac_option in 10908 # Handling of the options. 10909 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10910 ac_cs_recheck=: ;; 10911 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10912 $as_echo "$ac_cs_version"; exit ;; 10913 --config | --confi | --conf | --con | --co | --c ) 10914 $as_echo "$ac_cs_config"; exit ;; 10915 --debug | --debu | --deb | --de | --d | -d ) 10916 debug=: ;; 10917 --file | --fil | --fi | --f ) 10918 $ac_shift 10919 case $ac_optarg in 10920 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10921 '') as_fn_error $? "missing file argument" ;; 10922 esac 10923 as_fn_append CONFIG_FILES " '$ac_optarg'" 10924 ac_need_defaults=false;; 10925 --he | --h | --help | --hel | -h ) 10926 $as_echo "$ac_cs_usage"; exit ;; 10927 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 10928 | -silent | --silent | --silen | --sile | --sil | --si | --s) 10929 ac_cs_silent=: ;; 10930 10931 # This is an error. 10932 -*) as_fn_error $? "unrecognized option: \`$1' 10933Try \`$0 --help' for more information." ;; 10934 10935 *) as_fn_append ac_config_targets " $1" 10936 ac_need_defaults=false ;; 10937 10938 esac 10939 shift 10940done 10941 10942ac_configure_extra_args= 10943 10944if $ac_cs_silent; then 10945 exec 6>/dev/null 10946 ac_configure_extra_args="$ac_configure_extra_args --silent" 10947fi 10948 10949_ACEOF 10950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10951if \$ac_cs_recheck; then 10952 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 10953 shift 10954 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 10955 CONFIG_SHELL='$SHELL' 10956 export CONFIG_SHELL 10957 exec "\$@" 10958fi 10959 10960_ACEOF 10961cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10962exec 5>>config.log 10963{ 10964 echo 10965 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 10966## Running $as_me. ## 10967_ASBOX 10968 $as_echo "$ac_log" 10969} >&5 10970 10971_ACEOF 10972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10973# 10974# INIT-COMMANDS 10975# 10976AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 10977 10978_ACEOF 10979 10980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10981 10982# Handling of arguments. 10983for ac_config_target in $ac_config_targets 10984do 10985 case $ac_config_target in 10986 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 10987 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 10988 10989 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 10990 esac 10991done 10992 10993 10994# If the user did not use the arguments to specify the items to instantiate, 10995# then the envvar interface is used. Set only those that are not. 10996# We use the long form for the default assignment because of an extremely 10997# bizarre bug on SunOS 4.1.3. 10998if $ac_need_defaults; then 10999 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11000 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11001fi 11002 11003# Have a temporary directory for convenience. Make it in the build tree 11004# simply because there is no reason against having it here, and in addition, 11005# creating and moving files from /tmp can sometimes cause problems. 11006# Hook for its removal unless debugging. 11007# Note that there is a small window in which the directory will not be cleaned: 11008# after its creation but before its name has been assigned to `$tmp'. 11009$debug || 11010{ 11011 tmp= ac_tmp= 11012 trap 'exit_status=$? 11013 : "${ac_tmp:=$tmp}" 11014 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11015' 0 11016 trap 'as_fn_exit 1' 1 2 13 15 11017} 11018# Create a (secure) tmp directory for tmp files. 11019 11020{ 11021 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11022 test -d "$tmp" 11023} || 11024{ 11025 tmp=./conf$$-$RANDOM 11026 (umask 077 && mkdir "$tmp") 11027} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11028ac_tmp=$tmp 11029 11030# Set up the scripts for CONFIG_FILES section. 11031# No need to generate them if there are no CONFIG_FILES. 11032# This happens for instance with `./config.status config.h'. 11033if test -n "$CONFIG_FILES"; then 11034 11035 11036ac_cr=`echo X | tr X '\015'` 11037# On cygwin, bash can eat \r inside `` if the user requested igncr. 11038# But we know of no other shell where ac_cr would be empty at this 11039# point, so we can use a bashism as a fallback. 11040if test "x$ac_cr" = x; then 11041 eval ac_cr=\$\'\\r\' 11042fi 11043ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11044if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11045 ac_cs_awk_cr='\\r' 11046else 11047 ac_cs_awk_cr=$ac_cr 11048fi 11049 11050echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11051_ACEOF 11052 11053 11054{ 11055 echo "cat >conf$$subs.awk <<_ACEOF" && 11056 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11057 echo "_ACEOF" 11058} >conf$$subs.sh || 11059 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11060ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11061ac_delim='%!_!# ' 11062for ac_last_try in false false false false false :; do 11063 . ./conf$$subs.sh || 11064 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11065 11066 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11067 if test $ac_delim_n = $ac_delim_num; then 11068 break 11069 elif $ac_last_try; then 11070 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11071 else 11072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11073 fi 11074done 11075rm -f conf$$subs.sh 11076 11077cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11078cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11079_ACEOF 11080sed -n ' 11081h 11082s/^/S["/; s/!.*/"]=/ 11083p 11084g 11085s/^[^!]*!// 11086:repl 11087t repl 11088s/'"$ac_delim"'$// 11089t delim 11090:nl 11091h 11092s/\(.\{148\}\)..*/\1/ 11093t more1 11094s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11095p 11096n 11097b repl 11098:more1 11099s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11100p 11101g 11102s/.\{148\}// 11103t nl 11104:delim 11105h 11106s/\(.\{148\}\)..*/\1/ 11107t more2 11108s/["\\]/\\&/g; s/^/"/; s/$/"/ 11109p 11110b 11111:more2 11112s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11113p 11114g 11115s/.\{148\}// 11116t delim 11117' <conf$$subs.awk | sed ' 11118/^[^""]/{ 11119 N 11120 s/\n// 11121} 11122' >>$CONFIG_STATUS || ac_write_fail=1 11123rm -f conf$$subs.awk 11124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11125_ACAWK 11126cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11127 for (key in S) S_is_set[key] = 1 11128 FS = "" 11129 11130} 11131{ 11132 line = $ 0 11133 nfields = split(line, field, "@") 11134 substed = 0 11135 len = length(field[1]) 11136 for (i = 2; i < nfields; i++) { 11137 key = field[i] 11138 keylen = length(key) 11139 if (S_is_set[key]) { 11140 value = S[key] 11141 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11142 len += length(value) + length(field[++i]) 11143 substed = 1 11144 } else 11145 len += 1 + keylen 11146 } 11147 11148 print line 11149} 11150 11151_ACAWK 11152_ACEOF 11153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11154if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11155 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11156else 11157 cat 11158fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11159 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11160_ACEOF 11161 11162# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11163# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11164# trailing colons and then remove the whole line if VPATH becomes empty 11165# (actually we leave an empty line to preserve line numbers). 11166if test "x$srcdir" = x.; then 11167 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11168h 11169s/// 11170s/^/:/ 11171s/[ ]*$/:/ 11172s/:\$(srcdir):/:/g 11173s/:\${srcdir}:/:/g 11174s/:@srcdir@:/:/g 11175s/^:*// 11176s/:*$// 11177x 11178s/\(=[ ]*\).*/\1/ 11179G 11180s/\n// 11181s/^[^=]*=[ ]*$// 11182}' 11183fi 11184 11185cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11186fi # test -n "$CONFIG_FILES" 11187 11188 11189eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 11190shift 11191for ac_tag 11192do 11193 case $ac_tag in 11194 :[FHLC]) ac_mode=$ac_tag; continue;; 11195 esac 11196 case $ac_mode$ac_tag in 11197 :[FHL]*:*);; 11198 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11199 :[FH]-) ac_tag=-:-;; 11200 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11201 esac 11202 ac_save_IFS=$IFS 11203 IFS=: 11204 set x $ac_tag 11205 IFS=$ac_save_IFS 11206 shift 11207 ac_file=$1 11208 shift 11209 11210 case $ac_mode in 11211 :L) ac_source=$1;; 11212 :[FH]) 11213 ac_file_inputs= 11214 for ac_f 11215 do 11216 case $ac_f in 11217 -) ac_f="$ac_tmp/stdin";; 11218 *) # Look for the file first in the build tree, then in the source tree 11219 # (if the path is not absolute). The absolute path cannot be DOS-style, 11220 # because $ac_f cannot contain `:'. 11221 test -f "$ac_f" || 11222 case $ac_f in 11223 [\\/$]*) false;; 11224 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11225 esac || 11226 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11227 esac 11228 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11229 as_fn_append ac_file_inputs " '$ac_f'" 11230 done 11231 11232 # Let's still pretend it is `configure' which instantiates (i.e., don't 11233 # use $as_me), people would be surprised to read: 11234 # /* config.h. Generated by config.status. */ 11235 configure_input='Generated from '` 11236 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11237 `' by configure.' 11238 if test x"$ac_file" != x-; then 11239 configure_input="$ac_file. $configure_input" 11240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11241$as_echo "$as_me: creating $ac_file" >&6;} 11242 fi 11243 # Neutralize special characters interpreted by sed in replacement strings. 11244 case $configure_input in #( 11245 *\&* | *\|* | *\\* ) 11246 ac_sed_conf_input=`$as_echo "$configure_input" | 11247 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11248 *) ac_sed_conf_input=$configure_input;; 11249 esac 11250 11251 case $ac_tag in 11252 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11253 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11254 esac 11255 ;; 11256 esac 11257 11258 ac_dir=`$as_dirname -- "$ac_file" || 11259$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11260 X"$ac_file" : 'X\(//\)[^/]' \| \ 11261 X"$ac_file" : 'X\(//\)$' \| \ 11262 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11263$as_echo X"$ac_file" | 11264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11265 s//\1/ 11266 q 11267 } 11268 /^X\(\/\/\)[^/].*/{ 11269 s//\1/ 11270 q 11271 } 11272 /^X\(\/\/\)$/{ 11273 s//\1/ 11274 q 11275 } 11276 /^X\(\/\).*/{ 11277 s//\1/ 11278 q 11279 } 11280 s/.*/./; q'` 11281 as_dir="$ac_dir"; as_fn_mkdir_p 11282 ac_builddir=. 11283 11284case "$ac_dir" in 11285.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11286*) 11287 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11288 # A ".." for each directory in $ac_dir_suffix. 11289 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11290 case $ac_top_builddir_sub in 11291 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11292 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11293 esac ;; 11294esac 11295ac_abs_top_builddir=$ac_pwd 11296ac_abs_builddir=$ac_pwd$ac_dir_suffix 11297# for backward compatibility: 11298ac_top_builddir=$ac_top_build_prefix 11299 11300case $srcdir in 11301 .) # We are building in place. 11302 ac_srcdir=. 11303 ac_top_srcdir=$ac_top_builddir_sub 11304 ac_abs_top_srcdir=$ac_pwd ;; 11305 [\\/]* | ?:[\\/]* ) # Absolute name. 11306 ac_srcdir=$srcdir$ac_dir_suffix; 11307 ac_top_srcdir=$srcdir 11308 ac_abs_top_srcdir=$srcdir ;; 11309 *) # Relative name. 11310 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11311 ac_top_srcdir=$ac_top_build_prefix$srcdir 11312 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11313esac 11314ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11315 11316 11317 case $ac_mode in 11318 :F) 11319 # 11320 # CONFIG_FILE 11321 # 11322 11323 case $INSTALL in 11324 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11325 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11326 esac 11327 ac_MKDIR_P=$MKDIR_P 11328 case $MKDIR_P in 11329 [\\/$]* | ?:[\\/]* ) ;; 11330 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 11331 esac 11332_ACEOF 11333 11334cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11335# If the template does not know about datarootdir, expand it. 11336# FIXME: This hack should be removed a few years after 2.60. 11337ac_datarootdir_hack=; ac_datarootdir_seen= 11338ac_sed_dataroot=' 11339/datarootdir/ { 11340 p 11341 q 11342} 11343/@datadir@/p 11344/@docdir@/p 11345/@infodir@/p 11346/@localedir@/p 11347/@mandir@/p' 11348case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11349*datarootdir*) ac_datarootdir_seen=yes;; 11350*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11352$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11353_ACEOF 11354cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11355 ac_datarootdir_hack=' 11356 s&@datadir@&$datadir&g 11357 s&@docdir@&$docdir&g 11358 s&@infodir@&$infodir&g 11359 s&@localedir@&$localedir&g 11360 s&@mandir@&$mandir&g 11361 s&\\\${datarootdir}&$datarootdir&g' ;; 11362esac 11363_ACEOF 11364 11365# Neutralize VPATH when `$srcdir' = `.'. 11366# Shell code in configure.ac might set extrasub. 11367# FIXME: do we really want to maintain this feature? 11368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11369ac_sed_extra="$ac_vpsub 11370$extrasub 11371_ACEOF 11372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11373:t 11374/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11375s|@configure_input@|$ac_sed_conf_input|;t t 11376s&@top_builddir@&$ac_top_builddir_sub&;t t 11377s&@top_build_prefix@&$ac_top_build_prefix&;t t 11378s&@srcdir@&$ac_srcdir&;t t 11379s&@abs_srcdir@&$ac_abs_srcdir&;t t 11380s&@top_srcdir@&$ac_top_srcdir&;t t 11381s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11382s&@builddir@&$ac_builddir&;t t 11383s&@abs_builddir@&$ac_abs_builddir&;t t 11384s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11385s&@INSTALL@&$ac_INSTALL&;t t 11386s&@MKDIR_P@&$ac_MKDIR_P&;t t 11387$ac_datarootdir_hack 11388" 11389eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11390 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11391 11392test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11393 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11394 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11395 "$ac_tmp/out"`; test -z "$ac_out"; } && 11396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11397which seems to be undefined. Please make sure it is defined" >&5 11398$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11399which seems to be undefined. Please make sure it is defined" >&2;} 11400 11401 rm -f "$ac_tmp/stdin" 11402 case $ac_file in 11403 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11404 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11405 esac \ 11406 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11407 ;; 11408 11409 11410 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11411$as_echo "$as_me: executing $ac_file commands" >&6;} 11412 ;; 11413 esac 11414 11415 11416 case $ac_file$ac_mode in 11417 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 11418 # Older Autoconf quotes --file arguments for eval, but not when files 11419 # are listed without --file. Let's play safe and only enable the eval 11420 # if we detect the quoting. 11421 case $CONFIG_FILES in 11422 *\'*) eval set x "$CONFIG_FILES" ;; 11423 *) set x $CONFIG_FILES ;; 11424 esac 11425 shift 11426 for mf 11427 do 11428 # Strip MF so we end up with the name of the file. 11429 mf=`echo "$mf" | sed -e 's/:.*$//'` 11430 # Check whether this is an Automake generated Makefile or not. 11431 # We used to match only the files named 'Makefile.in', but 11432 # some people rename them; so instead we look at the file content. 11433 # Grep'ing the first line is not enough: some people post-process 11434 # each Makefile.in and add a new line on top of each file to say so. 11435 # Grep'ing the whole file is not good either: AIX grep has a line 11436 # limit of 2048, but all sed's we know have understand at least 4000. 11437 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 11438 dirpart=`$as_dirname -- "$mf" || 11439$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11440 X"$mf" : 'X\(//\)[^/]' \| \ 11441 X"$mf" : 'X\(//\)$' \| \ 11442 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 11443$as_echo X"$mf" | 11444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11445 s//\1/ 11446 q 11447 } 11448 /^X\(\/\/\)[^/].*/{ 11449 s//\1/ 11450 q 11451 } 11452 /^X\(\/\/\)$/{ 11453 s//\1/ 11454 q 11455 } 11456 /^X\(\/\).*/{ 11457 s//\1/ 11458 q 11459 } 11460 s/.*/./; q'` 11461 else 11462 continue 11463 fi 11464 # Extract the definition of DEPDIR, am__include, and am__quote 11465 # from the Makefile without running 'make'. 11466 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 11467 test -z "$DEPDIR" && continue 11468 am__include=`sed -n 's/^am__include = //p' < "$mf"` 11469 test -z "$am__include" && continue 11470 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 11471 # Find all dependency output files, they are included files with 11472 # $(DEPDIR) in their names. We invoke sed twice because it is the 11473 # simplest approach to changing $(DEPDIR) to its actual value in the 11474 # expansion. 11475 for file in `sed -n " 11476 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 11477 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 11478 # Make sure the directory exists. 11479 test -f "$dirpart/$file" && continue 11480 fdir=`$as_dirname -- "$file" || 11481$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11482 X"$file" : 'X\(//\)[^/]' \| \ 11483 X"$file" : 'X\(//\)$' \| \ 11484 X"$file" : 'X\(/\)' \| . 2>/dev/null || 11485$as_echo X"$file" | 11486 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11487 s//\1/ 11488 q 11489 } 11490 /^X\(\/\/\)[^/].*/{ 11491 s//\1/ 11492 q 11493 } 11494 /^X\(\/\/\)$/{ 11495 s//\1/ 11496 q 11497 } 11498 /^X\(\/\).*/{ 11499 s//\1/ 11500 q 11501 } 11502 s/.*/./; q'` 11503 as_dir=$dirpart/$fdir; as_fn_mkdir_p 11504 # echo "creating $dirpart/$file" 11505 echo '# dummy' > "$dirpart/$file" 11506 done 11507 done 11508} 11509 ;; 11510 11511 esac 11512done # for ac_tag 11513 11514 11515as_fn_exit 0 11516_ACEOF 11517ac_clean_files=$ac_clean_files_save 11518 11519test $ac_write_fail = 0 || 11520 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11521 11522 11523# configure is writing to config.log, and then calls config.status. 11524# config.status does its own redirection, appending to config.log. 11525# Unfortunately, on DOS this fails, as config.log is still kept open 11526# by configure, so config.status won't be able to write to it; its 11527# output is simply discarded. So we exec the FD to /dev/null, 11528# effectively closing config.log, so it can be properly (re)opened and 11529# appended to by config.status. When coming back to configure, we 11530# need to make the FD available again. 11531if test "$no_create" != yes; then 11532 ac_cs_success=: 11533 ac_config_status_args= 11534 test "$silent" = yes && 11535 ac_config_status_args="$ac_config_status_args --quiet" 11536 exec 5>/dev/null 11537 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11538 exec 5>>config.log 11539 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11540 # would make configure fail if this is the last instruction. 11541 $ac_cs_success || as_fn_exit 1 11542fi 11543if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11545$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11546fi 11547 11548 11549# end of "configure.ac" 11550 11551