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