1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.71 for Haskell process package 1.0. 4# 5# Report bugs to <libraries@haskell.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation, 9# Inc. 10# 11# 12# This configure script is free software; the Free Software Foundation 13# gives unlimited permission to copy, distribute and modify it. 14## -------------------- ## 15## M4sh Initialization. ## 16## -------------------- ## 17 18# Be more Bourne compatible 19DUALCASE=1; export DUALCASE # for MKS sh 20as_nop=: 21if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 22then : 23 emulate sh 24 NULLCMD=: 25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26 # is contrary to our usage. Disable this feature. 27 alias -g '${1+"$@"}'='"$@"' 28 setopt NO_GLOB_SUBST 29else $as_nop 30 case `(set -o) 2>/dev/null` in #( 31 *posix*) : 32 set -o posix ;; #( 33 *) : 34 ;; 35esac 36fi 37 38 39 40# Reset variables that may have inherited troublesome values from 41# the environment. 42 43# IFS needs to be set, to space, tab, and newline, in precisely that order. 44# (If _AS_PATH_WALK were called with IFS unset, it would have the 45# side effect of setting IFS to empty, thus disabling word splitting.) 46# Quoting is to prevent editors from complaining about space-tab. 47as_nl=' 48' 49export as_nl 50IFS=" "" $as_nl" 51 52PS1='$ ' 53PS2='> ' 54PS4='+ ' 55 56# Ensure predictable behavior from utilities with locale-dependent output. 57LC_ALL=C 58export LC_ALL 59LANGUAGE=C 60export LANGUAGE 61 62# We cannot yet rely on "unset" to work, but we need these variables 63# to be unset--not just set to an empty or harmless value--now, to 64# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 65# also avoids known problems related to "unset" and subshell syntax 66# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 67for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 68do eval test \${$as_var+y} \ 69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 70done 71 72# Ensure that fds 0, 1, and 2 are open. 73if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 74if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 75if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 76 77# The user is always right. 78if ${PATH_SEPARATOR+false} :; then 79 PATH_SEPARATOR=: 80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 82 PATH_SEPARATOR=';' 83 } 84fi 85 86 87# Find who we are. Look in the path if we contain no directory separator. 88as_myself= 89case $0 in #(( 90 *[\\/]* ) as_myself=$0 ;; 91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 92for as_dir in $PATH 93do 94 IFS=$as_save_IFS 95 case $as_dir in #((( 96 '') as_dir=./ ;; 97 */) ;; 98 *) as_dir=$as_dir/ ;; 99 esac 100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116 117# Use a proper internal environment variable to ensure we don't fall 118 # into an infinite loop, continuously re-executing ourselves. 119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 120 _as_can_reexec=no; export _as_can_reexec; 121 # We cannot yet assume a decent shell, so we have to provide a 122# neutralization value for shells without unset; and this also 123# works around shells that cannot unset nonexistent variables. 124# Preserve -v and -x to the replacement shell. 125BASH_ENV=/dev/null 126ENV=/dev/null 127(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 128case $- in # (((( 129 *v*x* | *x*v* ) as_opts=-vx ;; 130 *v* ) as_opts=-v ;; 131 *x* ) as_opts=-x ;; 132 * ) as_opts= ;; 133esac 134exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 135# Admittedly, this is quite paranoid, since all the known shells bail 136# out after a failed `exec'. 137printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 138exit 255 139 fi 140 # We don't want this to propagate to other subprocesses. 141 { _as_can_reexec=; unset _as_can_reexec;} 142if test "x$CONFIG_SHELL" = x; then 143 as_bourne_compatible="as_nop=: 144if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 145then : 146 emulate sh 147 NULLCMD=: 148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 149 # is contrary to our usage. Disable this feature. 150 alias -g '\${1+\"\$@\"}'='\"\$@\"' 151 setopt NO_GLOB_SUBST 152else \$as_nop 153 case \`(set -o) 2>/dev/null\` in #( 154 *posix*) : 155 set -o posix ;; #( 156 *) : 157 ;; 158esac 159fi 160" 161 as_required="as_fn_return () { (exit \$1); } 162as_fn_success () { as_fn_return 0; } 163as_fn_failure () { as_fn_return 1; } 164as_fn_ret_success () { return 0; } 165as_fn_ret_failure () { return 1; } 166 167exitcode=0 168as_fn_success || { exitcode=1; echo as_fn_success failed.; } 169as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 170as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 171as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 172if ( set x; as_fn_ret_success y && test x = \"\$1\" ) 173then : 174 175else \$as_nop 176 exitcode=1; echo positional parameters were not saved. 177fi 178test x\$exitcode = x0 || exit 1 179blah=\$(echo \$(echo blah)) 180test x\"\$blah\" = xblah || exit 1 181test -x / || exit 1" 182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 186test \$(( 1 + 1 )) = 2 || exit 1" 187 if (eval "$as_required") 2>/dev/null 188then : 189 as_have_required=yes 190else $as_nop 191 as_have_required=no 192fi 193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null 194then : 195 196else $as_nop 197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 198as_found=false 199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 200do 201 IFS=$as_save_IFS 202 case $as_dir in #((( 203 '') as_dir=./ ;; 204 */) ;; 205 *) as_dir=$as_dir/ ;; 206 esac 207 as_found=: 208 case $as_dir in #( 209 /*) 210 for as_base in sh bash ksh sh5; do 211 # Try only shells that exist, to save several forks. 212 as_shell=$as_dir$as_base 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null 215then : 216 CONFIG_SHELL=$as_shell as_have_required=yes 217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null 218then : 219 break 2 220fi 221fi 222 done;; 223 esac 224 as_found=false 225done 226IFS=$as_save_IFS 227if $as_found 228then : 229 230else $as_nop 231 if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null 233then : 234 CONFIG_SHELL=$SHELL as_have_required=yes 235fi 236fi 237 238 239 if test "x$CONFIG_SHELL" != x 240then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno 263then : 264 printf "%s\n" "$0: This script requires a shell more modern than all" 265 printf "%s\n" "$0: the shells that I found on your system." 266 if test ${ZSH_VERSION+y} ; then 267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should" 268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later." 269 else 270 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and 271$0: libraries@haskell.org about your system, including any 272$0: error possibly output before this message. Then install 273$0: a modern shell, or manually run the script under such a 274$0: shell if you do have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298 299# as_fn_set_status STATUS 300# ----------------------- 301# Set $? to STATUS, without forking. 302as_fn_set_status () 303{ 304 return $1 305} # as_fn_set_status 306 307# as_fn_exit STATUS 308# ----------------- 309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 310as_fn_exit () 311{ 312 set +e 313 as_fn_set_status $1 314 exit $1 315} # as_fn_exit 316# as_fn_nop 317# --------- 318# Do nothing but, unlike ":", preserve the value of $?. 319as_fn_nop () 320{ 321 return $? 322} 323as_nop=as_fn_nop 324 325# as_fn_mkdir_p 326# ------------- 327# Create "$as_dir" as a directory, including parents if necessary. 328as_fn_mkdir_p () 329{ 330 331 case $as_dir in #( 332 -*) as_dir=./$as_dir;; 333 esac 334 test -d "$as_dir" || eval $as_mkdir_p || { 335 as_dirs= 336 while :; do 337 case $as_dir in #( 338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 339 *) as_qdir=$as_dir;; 340 esac 341 as_dirs="'$as_qdir' $as_dirs" 342 as_dir=`$as_dirname -- "$as_dir" || 343$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 344 X"$as_dir" : 'X\(//\)[^/]' \| \ 345 X"$as_dir" : 'X\(//\)$' \| \ 346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 347printf "%s\n" X"$as_dir" | 348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)[^/].*/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\/\)$/{ 357 s//\1/ 358 q 359 } 360 /^X\(\/\).*/{ 361 s//\1/ 362 q 363 } 364 s/.*/./; q'` 365 test -d "$as_dir" && break 366 done 367 test -z "$as_dirs" || eval "mkdir $as_dirs" 368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 369 370 371} # as_fn_mkdir_p 372 373# as_fn_executable_p FILE 374# ----------------------- 375# Test if FILE is an executable regular file. 376as_fn_executable_p () 377{ 378 test -f "$1" && test -x "$1" 379} # as_fn_executable_p 380# as_fn_append VAR VALUE 381# ---------------------- 382# Append the text in VALUE to the end of the definition contained in VAR. Take 383# advantage of any shell optimizations that allow amortized linear growth over 384# repeated appends, instead of the typical quadratic growth present in naive 385# implementations. 386if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 387then : 388 eval 'as_fn_append () 389 { 390 eval $1+=\$2 391 }' 392else $as_nop 393 as_fn_append () 394 { 395 eval $1=\$$1\$2 396 } 397fi # as_fn_append 398 399# as_fn_arith ARG... 400# ------------------ 401# Perform arithmetic evaluation on the ARGs, and store the result in the 402# global $as_val. Take advantage of shells that can avoid forks. The arguments 403# must be portable across $(()) and expr. 404if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 405then : 406 eval 'as_fn_arith () 407 { 408 as_val=$(( $* )) 409 }' 410else $as_nop 411 as_fn_arith () 412 { 413 as_val=`expr "$@" || test $? -eq 1` 414 } 415fi # as_fn_arith 416 417# as_fn_nop 418# --------- 419# Do nothing but, unlike ":", preserve the value of $?. 420as_fn_nop () 421{ 422 return $? 423} 424as_nop=as_fn_nop 425 426# as_fn_error STATUS ERROR [LINENO LOG_FD] 427# ---------------------------------------- 428# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 429# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 430# script with STATUS, using 1 if that was 0. 431as_fn_error () 432{ 433 as_status=$1; test $as_status -eq 0 && as_status=1 434 if test "$4"; then 435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 437 fi 438 printf "%s\n" "$as_me: error: $2" >&2 439 as_fn_exit $as_status 440} # as_fn_error 441 442if expr a : '\(a\)' >/dev/null 2>&1 && 443 test "X`expr 00001 : '.*\(...\)'`" = X001; then 444 as_expr=expr 445else 446 as_expr=false 447fi 448 449if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 450 as_basename=basename 451else 452 as_basename=false 453fi 454 455if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 456 as_dirname=dirname 457else 458 as_dirname=false 459fi 460 461as_me=`$as_basename -- "$0" || 462$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 463 X"$0" : 'X\(//\)$' \| \ 464 X"$0" : 'X\(/\)' \| . 2>/dev/null || 465printf "%s\n" X/"$0" | 466 sed '/^.*\/\([^/][^/]*\)\/*$/{ 467 s//\1/ 468 q 469 } 470 /^X\/\(\/\/\)$/{ 471 s//\1/ 472 q 473 } 474 /^X\/\(\/\).*/{ 475 s//\1/ 476 q 477 } 478 s/.*/./; q'` 479 480# Avoid depending upon Character Ranges. 481as_cr_letters='abcdefghijklmnopqrstuvwxyz' 482as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 483as_cr_Letters=$as_cr_letters$as_cr_LETTERS 484as_cr_digits='0123456789' 485as_cr_alnum=$as_cr_Letters$as_cr_digits 486 487 488 as_lineno_1=$LINENO as_lineno_1a=$LINENO 489 as_lineno_2=$LINENO as_lineno_2a=$LINENO 490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 493 sed -n ' 494 p 495 /[$]LINENO/= 496 ' <$as_myself | 497 sed ' 498 s/[$]LINENO.*/&-/ 499 t lineno 500 b 501 :lineno 502 N 503 :loop 504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 505 t loop 506 s/-\n.*// 507 ' >$as_me.lineno && 508 chmod +x "$as_me.lineno" || 509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 510 511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 512 # already done that, so ensure we don't try to do so again and fall 513 # in an infinite loop. This has already happened in practice. 514 _as_can_reexec=no; export _as_can_reexec 515 # Don't try to exec as it changes $[0], causing all sort of problems 516 # (the dirname of $[0] is not the place where we might find the 517 # original and so on. Autoconf is especially sensitive to this). 518 . "./$as_me.lineno" 519 # Exit status is that of the last command. 520 exit 521} 522 523 524# Determine whether it's possible to make 'echo' print without a newline. 525# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 526# for compatibility with existing Makefiles. 527ECHO_C= ECHO_N= ECHO_T= 528case `echo -n x` in #((((( 529-n*) 530 case `echo 'xy\c'` in 531 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 532 xy) ECHO_C='\c';; 533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 534 ECHO_T=' ';; 535 esac;; 536*) 537 ECHO_N='-n';; 538esac 539 540# For backward compatibility with old third-party macros, we provide 541# the shell variables $as_echo and $as_echo_n. New code should use 542# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 543as_echo='printf %s\n' 544as_echo_n='printf %s' 545 546 547rm -f conf$$ conf$$.exe conf$$.file 548if test -d conf$$.dir; then 549 rm -f conf$$.dir/conf$$.file 550else 551 rm -f conf$$.dir 552 mkdir conf$$.dir 2>/dev/null 553fi 554if (echo >conf$$.file) 2>/dev/null; then 555 if ln -s conf$$.file conf$$ 2>/dev/null; then 556 as_ln_s='ln -s' 557 # ... but there are two gotchas: 558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 560 # In both cases, we have to default to `cp -pR'. 561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 562 as_ln_s='cp -pR' 563 elif ln conf$$.file conf$$ 2>/dev/null; then 564 as_ln_s=ln 565 else 566 as_ln_s='cp -pR' 567 fi 568else 569 as_ln_s='cp -pR' 570fi 571rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 572rmdir conf$$.dir 2>/dev/null 573 574if mkdir -p . 2>/dev/null; then 575 as_mkdir_p='mkdir -p "$as_dir"' 576else 577 test -d ./-p && rmdir ./-p 578 as_mkdir_p=false 579fi 580 581as_test_x='test -x' 582as_executable_p=as_fn_executable_p 583 584# Sed expression to map a string onto a valid CPP name. 585as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 586 587# Sed expression to map a string onto a valid variable name. 588as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 589 590 591test -n "$DJDIR" || exec 7<&0 </dev/null 592exec 6>&1 593 594# Name of the host. 595# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 596# so uname gets run too. 597ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 598 599# 600# Initializations. 601# 602ac_default_prefix=/usr/local 603ac_clean_files= 604ac_config_libobj_dir=. 605LIBOBJS= 606cross_compiling=no 607subdirs= 608MFLAGS= 609MAKEFLAGS= 610 611# Identity of this package. 612PACKAGE_NAME='Haskell process package' 613PACKAGE_TARNAME='process' 614PACKAGE_VERSION='1.0' 615PACKAGE_STRING='Haskell process package 1.0' 616PACKAGE_BUGREPORT='libraries@haskell.org' 617PACKAGE_URL='' 618 619ac_unique_file="include/runProcess.h" 620# Factoring default headers for most tests. 621ac_includes_default="\ 622#include <stddef.h> 623#ifdef HAVE_STDIO_H 624# include <stdio.h> 625#endif 626#ifdef HAVE_STDLIB_H 627# include <stdlib.h> 628#endif 629#ifdef HAVE_STRING_H 630# include <string.h> 631#endif 632#ifdef HAVE_INTTYPES_H 633# include <inttypes.h> 634#endif 635#ifdef HAVE_STDINT_H 636# include <stdint.h> 637#endif 638#ifdef HAVE_STRINGS_H 639# include <strings.h> 640#endif 641#ifdef HAVE_SYS_TYPES_H 642# include <sys/types.h> 643#endif 644#ifdef HAVE_SYS_STAT_H 645# include <sys/stat.h> 646#endif 647#ifdef HAVE_UNISTD_H 648# include <unistd.h> 649#endif" 650 651ac_header_c_list= 652ac_func_c_list= 653ac_subst_vars='LTLIBOBJS 654LIBOBJS 655OBJEXT 656EXEEXT 657ac_ct_CC 658CPPFLAGS 659LDFLAGS 660CFLAGS 661CC 662target_alias 663host_alias 664build_alias 665LIBS 666ECHO_T 667ECHO_N 668ECHO_C 669DEFS 670mandir 671localedir 672libdir 673psdir 674pdfdir 675dvidir 676htmldir 677infodir 678docdir 679oldincludedir 680includedir 681runstatedir 682localstatedir 683sharedstatedir 684sysconfdir 685datadir 686datarootdir 687libexecdir 688sbindir 689bindir 690program_transform_name 691prefix 692exec_prefix 693PACKAGE_URL 694PACKAGE_BUGREPORT 695PACKAGE_STRING 696PACKAGE_VERSION 697PACKAGE_TARNAME 698PACKAGE_NAME 699PATH_SEPARATOR 700SHELL' 701ac_subst_files='' 702ac_user_opts=' 703enable_option_checking 704' 705 ac_precious_vars='build_alias 706host_alias 707target_alias 708CC 709CFLAGS 710LDFLAGS 711LIBS 712CPPFLAGS' 713 714 715# Initialize some variables set by options. 716ac_init_help= 717ac_init_version=false 718ac_unrecognized_opts= 719ac_unrecognized_sep= 720# The variables have the same names as the options, with 721# dashes changed to underlines. 722cache_file=/dev/null 723exec_prefix=NONE 724no_create= 725no_recursion= 726prefix=NONE 727program_prefix=NONE 728program_suffix=NONE 729program_transform_name=s,x,x, 730silent= 731site= 732srcdir= 733verbose= 734x_includes=NONE 735x_libraries=NONE 736 737# Installation directory options. 738# These are left unexpanded so users can "make install exec_prefix=/foo" 739# and all the variables that are supposed to be based on exec_prefix 740# by default will actually change. 741# Use braces instead of parens because sh, perl, etc. also accept them. 742# (The list follows the same order as the GNU Coding Standards.) 743bindir='${exec_prefix}/bin' 744sbindir='${exec_prefix}/sbin' 745libexecdir='${exec_prefix}/libexec' 746datarootdir='${prefix}/share' 747datadir='${datarootdir}' 748sysconfdir='${prefix}/etc' 749sharedstatedir='${prefix}/com' 750localstatedir='${prefix}/var' 751runstatedir='${localstatedir}/run' 752includedir='${prefix}/include' 753oldincludedir='/usr/include' 754docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 755infodir='${datarootdir}/info' 756htmldir='${docdir}' 757dvidir='${docdir}' 758pdfdir='${docdir}' 759psdir='${docdir}' 760libdir='${exec_prefix}/lib' 761localedir='${datarootdir}/locale' 762mandir='${datarootdir}/man' 763 764ac_prev= 765ac_dashdash= 766for ac_option 767do 768 # If the previous option needs an argument, assign it. 769 if test -n "$ac_prev"; then 770 eval $ac_prev=\$ac_option 771 ac_prev= 772 continue 773 fi 774 775 case $ac_option in 776 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 777 *=) ac_optarg= ;; 778 *) ac_optarg=yes ;; 779 esac 780 781 case $ac_dashdash$ac_option in 782 --) 783 ac_dashdash=yes ;; 784 785 -bindir | --bindir | --bindi | --bind | --bin | --bi) 786 ac_prev=bindir ;; 787 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 788 bindir=$ac_optarg ;; 789 790 -build | --build | --buil | --bui | --bu) 791 ac_prev=build_alias ;; 792 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 793 build_alias=$ac_optarg ;; 794 795 -cache-file | --cache-file | --cache-fil | --cache-fi \ 796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 797 ac_prev=cache_file ;; 798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 800 cache_file=$ac_optarg ;; 801 802 --config-cache | -C) 803 cache_file=config.cache ;; 804 805 -datadir | --datadir | --datadi | --datad) 806 ac_prev=datadir ;; 807 -datadir=* | --datadir=* | --datadi=* | --datad=*) 808 datadir=$ac_optarg ;; 809 810 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 811 | --dataroo | --dataro | --datar) 812 ac_prev=datarootdir ;; 813 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 814 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 815 datarootdir=$ac_optarg ;; 816 817 -disable-* | --disable-*) 818 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 819 # Reject names that are not valid shell variable names. 820 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 821 as_fn_error $? "invalid feature name: \`$ac_useropt'" 822 ac_useropt_orig=$ac_useropt 823 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 824 case $ac_user_opts in 825 *" 826"enable_$ac_useropt" 827"*) ;; 828 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 829 ac_unrecognized_sep=', ';; 830 esac 831 eval enable_$ac_useropt=no ;; 832 833 -docdir | --docdir | --docdi | --doc | --do) 834 ac_prev=docdir ;; 835 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 836 docdir=$ac_optarg ;; 837 838 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 839 ac_prev=dvidir ;; 840 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 841 dvidir=$ac_optarg ;; 842 843 -enable-* | --enable-*) 844 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 845 # Reject names that are not valid shell variable names. 846 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 847 as_fn_error $? "invalid feature name: \`$ac_useropt'" 848 ac_useropt_orig=$ac_useropt 849 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'` 850 case $ac_user_opts in 851 *" 852"enable_$ac_useropt" 853"*) ;; 854 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 855 ac_unrecognized_sep=', ';; 856 esac 857 eval enable_$ac_useropt=\$ac_optarg ;; 858 859 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 860 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 861 | --exec | --exe | --ex) 862 ac_prev=exec_prefix ;; 863 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 864 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 865 | --exec=* | --exe=* | --ex=*) 866 exec_prefix=$ac_optarg ;; 867 868 -gas | --gas | --ga | --g) 869 # Obsolete; use --with-gas. 870 with_gas=yes ;; 871 872 -help | --help | --hel | --he | -h) 873 ac_init_help=long ;; 874 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 875 ac_init_help=recursive ;; 876 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 877 ac_init_help=short ;; 878 879 -host | --host | --hos | --ho) 880 ac_prev=host_alias ;; 881 -host=* | --host=* | --hos=* | --ho=*) 882 host_alias=$ac_optarg ;; 883 884 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 885 ac_prev=htmldir ;; 886 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 887 | --ht=*) 888 htmldir=$ac_optarg ;; 889 890 -includedir | --includedir | --includedi | --included | --include \ 891 | --includ | --inclu | --incl | --inc) 892 ac_prev=includedir ;; 893 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 894 | --includ=* | --inclu=* | --incl=* | --inc=*) 895 includedir=$ac_optarg ;; 896 897 -infodir | --infodir | --infodi | --infod | --info | --inf) 898 ac_prev=infodir ;; 899 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 900 infodir=$ac_optarg ;; 901 902 -libdir | --libdir | --libdi | --libd) 903 ac_prev=libdir ;; 904 -libdir=* | --libdir=* | --libdi=* | --libd=*) 905 libdir=$ac_optarg ;; 906 907 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 908 | --libexe | --libex | --libe) 909 ac_prev=libexecdir ;; 910 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 911 | --libexe=* | --libex=* | --libe=*) 912 libexecdir=$ac_optarg ;; 913 914 -localedir | --localedir | --localedi | --localed | --locale) 915 ac_prev=localedir ;; 916 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 917 localedir=$ac_optarg ;; 918 919 -localstatedir | --localstatedir | --localstatedi | --localstated \ 920 | --localstate | --localstat | --localsta | --localst | --locals) 921 ac_prev=localstatedir ;; 922 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 923 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 924 localstatedir=$ac_optarg ;; 925 926 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 927 ac_prev=mandir ;; 928 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 929 mandir=$ac_optarg ;; 930 931 -nfp | --nfp | --nf) 932 # Obsolete; use --without-fp. 933 with_fp=no ;; 934 935 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 936 | --no-cr | --no-c | -n) 937 no_create=yes ;; 938 939 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 940 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 941 no_recursion=yes ;; 942 943 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 944 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 945 | --oldin | --oldi | --old | --ol | --o) 946 ac_prev=oldincludedir ;; 947 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 948 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 949 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 950 oldincludedir=$ac_optarg ;; 951 952 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 953 ac_prev=prefix ;; 954 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 955 prefix=$ac_optarg ;; 956 957 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 958 | --program-pre | --program-pr | --program-p) 959 ac_prev=program_prefix ;; 960 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 961 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 962 program_prefix=$ac_optarg ;; 963 964 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 965 | --program-suf | --program-su | --program-s) 966 ac_prev=program_suffix ;; 967 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 968 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 969 program_suffix=$ac_optarg ;; 970 971 -program-transform-name | --program-transform-name \ 972 | --program-transform-nam | --program-transform-na \ 973 | --program-transform-n | --program-transform- \ 974 | --program-transform | --program-transfor \ 975 | --program-transfo | --program-transf \ 976 | --program-trans | --program-tran \ 977 | --progr-tra | --program-tr | --program-t) 978 ac_prev=program_transform_name ;; 979 -program-transform-name=* | --program-transform-name=* \ 980 | --program-transform-nam=* | --program-transform-na=* \ 981 | --program-transform-n=* | --program-transform-=* \ 982 | --program-transform=* | --program-transfor=* \ 983 | --program-transfo=* | --program-transf=* \ 984 | --program-trans=* | --program-tran=* \ 985 | --progr-tra=* | --program-tr=* | --program-t=*) 986 program_transform_name=$ac_optarg ;; 987 988 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 989 ac_prev=pdfdir ;; 990 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 991 pdfdir=$ac_optarg ;; 992 993 -psdir | --psdir | --psdi | --psd | --ps) 994 ac_prev=psdir ;; 995 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 996 psdir=$ac_optarg ;; 997 998 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 999 | -silent | --silent | --silen | --sile | --sil) 1000 silent=yes ;; 1001 1002 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1003 | --runstate | --runstat | --runsta | --runst | --runs \ 1004 | --run | --ru | --r) 1005 ac_prev=runstatedir ;; 1006 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1007 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1008 | --run=* | --ru=* | --r=*) 1009 runstatedir=$ac_optarg ;; 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=`printf "%s\n" "$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=`printf "%s\n" "$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 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2 1123 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1124 printf "%s\n" "$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 *) printf "%s\n" "$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 runstatedir 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 || 1204printf "%s\n" 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 Haskell process package 1.0 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 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1302 --libdir=DIR object code libraries [EPREFIX/lib] 1303 --includedir=DIR C header files [PREFIX/include] 1304 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1305 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1306 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1307 --infodir=DIR info documentation [DATAROOTDIR/info] 1308 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1309 --mandir=DIR man documentation [DATAROOTDIR/man] 1310 --docdir=DIR documentation root [DATAROOTDIR/doc/process] 1311 --htmldir=DIR html documentation [DOCDIR] 1312 --dvidir=DIR dvi documentation [DOCDIR] 1313 --pdfdir=DIR pdf documentation [DOCDIR] 1314 --psdir=DIR ps documentation [DOCDIR] 1315_ACEOF 1316 1317 cat <<\_ACEOF 1318_ACEOF 1319fi 1320 1321if test -n "$ac_init_help"; then 1322 case $ac_init_help in 1323 short | recursive ) echo "Configuration of Haskell process package 1.0:";; 1324 esac 1325 cat <<\_ACEOF 1326 1327Some influential environment variables: 1328 CC C compiler command 1329 CFLAGS C compiler flags 1330 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1331 nonstandard directory <lib dir> 1332 LIBS libraries to pass to the linker, e.g. -l<library> 1333 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1334 you have headers in a nonstandard directory <include dir> 1335 1336Use these variables to override the choices made by `configure' or to help 1337it to find libraries and programs with nonstandard names/locations. 1338 1339Report bugs to <libraries@haskell.org>. 1340_ACEOF 1341ac_status=$? 1342fi 1343 1344if test "$ac_init_help" = "recursive"; then 1345 # If there are subdirs, report their specific --help. 1346 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1347 test -d "$ac_dir" || 1348 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1349 continue 1350 ac_builddir=. 1351 1352case "$ac_dir" in 1353.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1354*) 1355 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 1356 # A ".." for each directory in $ac_dir_suffix. 1357 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1358 case $ac_top_builddir_sub in 1359 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1360 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1361 esac ;; 1362esac 1363ac_abs_top_builddir=$ac_pwd 1364ac_abs_builddir=$ac_pwd$ac_dir_suffix 1365# for backward compatibility: 1366ac_top_builddir=$ac_top_build_prefix 1367 1368case $srcdir in 1369 .) # We are building in place. 1370 ac_srcdir=. 1371 ac_top_srcdir=$ac_top_builddir_sub 1372 ac_abs_top_srcdir=$ac_pwd ;; 1373 [\\/]* | ?:[\\/]* ) # Absolute name. 1374 ac_srcdir=$srcdir$ac_dir_suffix; 1375 ac_top_srcdir=$srcdir 1376 ac_abs_top_srcdir=$srcdir ;; 1377 *) # Relative name. 1378 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1379 ac_top_srcdir=$ac_top_build_prefix$srcdir 1380 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1381esac 1382ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1383 1384 cd "$ac_dir" || { ac_status=$?; continue; } 1385 # Check for configure.gnu first; this name is used for a wrapper for 1386 # Metaconfig's "Configure" on case-insensitive file systems. 1387 if test -f "$ac_srcdir/configure.gnu"; then 1388 echo && 1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1390 elif test -f "$ac_srcdir/configure"; then 1391 echo && 1392 $SHELL "$ac_srcdir/configure" --help=recursive 1393 else 1394 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1395 fi || ac_status=$? 1396 cd "$ac_pwd" || { ac_status=$?; break; } 1397 done 1398fi 1399 1400test -n "$ac_init_help" && exit $ac_status 1401if $ac_init_version; then 1402 cat <<\_ACEOF 1403Haskell process package configure 1.0 1404generated by GNU Autoconf 2.71 1405 1406Copyright (C) 2021 Free Software Foundation, Inc. 1407This configure script is free software; the Free Software Foundation 1408gives unlimited permission to copy, distribute and modify it. 1409_ACEOF 1410 exit 1411fi 1412 1413## ------------------------ ## 1414## Autoconf initialization. ## 1415## ------------------------ ## 1416 1417# ac_fn_c_try_compile LINENO 1418# -------------------------- 1419# Try to compile conftest.$ac_ext, and return whether this succeeded. 1420ac_fn_c_try_compile () 1421{ 1422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1423 rm -f conftest.$ac_objext conftest.beam 1424 if { { ac_try="$ac_compile" 1425case "(($ac_try" in 1426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1427 *) ac_try_echo=$ac_try;; 1428esac 1429eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1430printf "%s\n" "$ac_try_echo"; } >&5 1431 (eval "$ac_compile") 2>conftest.err 1432 ac_status=$? 1433 if test -s conftest.err; then 1434 grep -v '^ *+' conftest.err >conftest.er1 1435 cat conftest.er1 >&5 1436 mv -f conftest.er1 conftest.err 1437 fi 1438 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1439 test $ac_status = 0; } && { 1440 test -z "$ac_c_werror_flag" || 1441 test ! -s conftest.err 1442 } && test -s conftest.$ac_objext 1443then : 1444 ac_retval=0 1445else $as_nop 1446 printf "%s\n" "$as_me: failed program was:" >&5 1447sed 's/^/| /' conftest.$ac_ext >&5 1448 1449 ac_retval=1 1450fi 1451 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1452 as_fn_set_status $ac_retval 1453 1454} # ac_fn_c_try_compile 1455 1456# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1457# ------------------------------------------- 1458# Tests whether TYPE exists after having included INCLUDES, setting cache 1459# variable VAR accordingly. 1460ac_fn_c_check_type () 1461{ 1462 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1464printf %s "checking for $2... " >&6; } 1465if eval test \${$3+y} 1466then : 1467 printf %s "(cached) " >&6 1468else $as_nop 1469 eval "$3=no" 1470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1471/* end confdefs.h. */ 1472$4 1473int 1474main (void) 1475{ 1476if (sizeof ($2)) 1477 return 0; 1478 ; 1479 return 0; 1480} 1481_ACEOF 1482if ac_fn_c_try_compile "$LINENO" 1483then : 1484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1485/* end confdefs.h. */ 1486$4 1487int 1488main (void) 1489{ 1490if (sizeof (($2))) 1491 return 0; 1492 ; 1493 return 0; 1494} 1495_ACEOF 1496if ac_fn_c_try_compile "$LINENO" 1497then : 1498 1499else $as_nop 1500 eval "$3=yes" 1501fi 1502rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1503fi 1504rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1505fi 1506eval ac_res=\$$3 1507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1508printf "%s\n" "$ac_res" >&6; } 1509 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1510 1511} # ac_fn_c_check_type 1512 1513# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1514# ------------------------------------------------------- 1515# Tests whether HEADER exists and can be compiled using the include files in 1516# INCLUDES, setting the cache variable VAR accordingly. 1517ac_fn_c_check_header_compile () 1518{ 1519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1521printf %s "checking for $2... " >&6; } 1522if eval test \${$3+y} 1523then : 1524 printf %s "(cached) " >&6 1525else $as_nop 1526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1527/* end confdefs.h. */ 1528$4 1529#include <$2> 1530_ACEOF 1531if ac_fn_c_try_compile "$LINENO" 1532then : 1533 eval "$3=yes" 1534else $as_nop 1535 eval "$3=no" 1536fi 1537rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1538fi 1539eval ac_res=\$$3 1540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1541printf "%s\n" "$ac_res" >&6; } 1542 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1543 1544} # ac_fn_c_check_header_compile 1545 1546# ac_fn_c_try_link LINENO 1547# ----------------------- 1548# Try to link conftest.$ac_ext, and return whether this succeeded. 1549ac_fn_c_try_link () 1550{ 1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1552 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext 1553 if { { ac_try="$ac_link" 1554case "(($ac_try" in 1555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1556 *) ac_try_echo=$ac_try;; 1557esac 1558eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1559printf "%s\n" "$ac_try_echo"; } >&5 1560 (eval "$ac_link") 2>conftest.err 1561 ac_status=$? 1562 if test -s conftest.err; then 1563 grep -v '^ *+' conftest.err >conftest.er1 1564 cat conftest.er1 >&5 1565 mv -f conftest.er1 conftest.err 1566 fi 1567 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1568 test $ac_status = 0; } && { 1569 test -z "$ac_c_werror_flag" || 1570 test ! -s conftest.err 1571 } && test -s conftest$ac_exeext && { 1572 test "$cross_compiling" = yes || 1573 test -x conftest$ac_exeext 1574 } 1575then : 1576 ac_retval=0 1577else $as_nop 1578 printf "%s\n" "$as_me: failed program was:" >&5 1579sed 's/^/| /' conftest.$ac_ext >&5 1580 1581 ac_retval=1 1582fi 1583 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1584 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1585 # interfere with the next link command; also delete a directory that is 1586 # left behind by Apple's compiler. We do this before executing the actions. 1587 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1588 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1589 as_fn_set_status $ac_retval 1590 1591} # ac_fn_c_try_link 1592 1593# ac_fn_c_check_func LINENO FUNC VAR 1594# ---------------------------------- 1595# Tests whether FUNC exists, setting the cache variable VAR accordingly 1596ac_fn_c_check_func () 1597{ 1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1600printf %s "checking for $2... " >&6; } 1601if eval test \${$3+y} 1602then : 1603 printf %s "(cached) " >&6 1604else $as_nop 1605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1606/* end confdefs.h. */ 1607/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1608 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1609#define $2 innocuous_$2 1610 1611/* System header to define __stub macros and hopefully few prototypes, 1612 which can conflict with char $2 (); below. */ 1613 1614#include <limits.h> 1615#undef $2 1616 1617/* Override any GCC internal prototype to avoid an error. 1618 Use char because int might match the return type of a GCC 1619 builtin and then its argument prototype would still apply. */ 1620#ifdef __cplusplus 1621extern "C" 1622#endif 1623char $2 (); 1624/* The GNU C library defines this for functions which it implements 1625 to always fail with ENOSYS. Some functions are actually named 1626 something starting with __ and the normal name is an alias. */ 1627#if defined __stub_$2 || defined __stub___$2 1628choke me 1629#endif 1630 1631int 1632main (void) 1633{ 1634return $2 (); 1635 ; 1636 return 0; 1637} 1638_ACEOF 1639if ac_fn_c_try_link "$LINENO" 1640then : 1641 eval "$3=yes" 1642else $as_nop 1643 eval "$3=no" 1644fi 1645rm -f core conftest.err conftest.$ac_objext conftest.beam \ 1646 conftest$ac_exeext conftest.$ac_ext 1647fi 1648eval ac_res=\$$3 1649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1650printf "%s\n" "$ac_res" >&6; } 1651 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1652 1653} # ac_fn_c_check_func 1654 1655# ac_fn_c_try_run LINENO 1656# ---------------------- 1657# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that 1658# executables *can* be run. 1659ac_fn_c_try_run () 1660{ 1661 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1662 if { { ac_try="$ac_link" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668printf "%s\n" "$ac_try_echo"; } >&5 1669 (eval "$ac_link") 2>&5 1670 ac_status=$? 1671 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1672 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1673 { { case "(($ac_try" in 1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1675 *) ac_try_echo=$ac_try;; 1676esac 1677eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1678printf "%s\n" "$ac_try_echo"; } >&5 1679 (eval "$ac_try") 2>&5 1680 ac_status=$? 1681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1682 test $ac_status = 0; }; } 1683then : 1684 ac_retval=0 1685else $as_nop 1686 printf "%s\n" "$as_me: program exited with status $ac_status" >&5 1687 printf "%s\n" "$as_me: failed program was:" >&5 1688sed 's/^/| /' conftest.$ac_ext >&5 1689 1690 ac_retval=$ac_status 1691fi 1692 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 as_fn_set_status $ac_retval 1695 1696} # ac_fn_c_try_run 1697 1698# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR 1699# ------------------------------------------------------------------ 1700# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1701# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR. 1702ac_fn_check_decl () 1703{ 1704 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1705 as_decl_name=`echo $2|sed 's/ *(.*//'` 1706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1707printf %s "checking whether $as_decl_name is declared... " >&6; } 1708if eval test \${$3+y} 1709then : 1710 printf %s "(cached) " >&6 1711else $as_nop 1712 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1713 eval ac_save_FLAGS=\$$6 1714 as_fn_append $6 " $5" 1715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1716/* end confdefs.h. */ 1717$4 1718int 1719main (void) 1720{ 1721#ifndef $as_decl_name 1722#ifdef __cplusplus 1723 (void) $as_decl_use; 1724#else 1725 (void) $as_decl_name; 1726#endif 1727#endif 1728 1729 ; 1730 return 0; 1731} 1732_ACEOF 1733if ac_fn_c_try_compile "$LINENO" 1734then : 1735 eval "$3=yes" 1736else $as_nop 1737 eval "$3=no" 1738fi 1739rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1740 eval $6=\$ac_save_FLAGS 1741 1742fi 1743eval ac_res=\$$3 1744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1745printf "%s\n" "$ac_res" >&6; } 1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1747 1748} # ac_fn_check_decl 1749 1750# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1751# -------------------------------------------- 1752# Tries to find the compile-time value of EXPR in a program that includes 1753# INCLUDES, setting VAR accordingly. Returns whether the value could be 1754# computed 1755ac_fn_c_compute_int () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 if test "$cross_compiling" = yes; then 1759 # Depending upon the size, compute the lo and hi bounds. 1760cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1761/* end confdefs.h. */ 1762$4 1763int 1764main (void) 1765{ 1766static int test_array [1 - 2 * !(($2) >= 0)]; 1767test_array [0] = 0; 1768return test_array [0]; 1769 1770 ; 1771 return 0; 1772} 1773_ACEOF 1774if ac_fn_c_try_compile "$LINENO" 1775then : 1776 ac_lo=0 ac_mid=0 1777 while :; do 1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1779/* end confdefs.h. */ 1780$4 1781int 1782main (void) 1783{ 1784static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1785test_array [0] = 0; 1786return test_array [0]; 1787 1788 ; 1789 return 0; 1790} 1791_ACEOF 1792if ac_fn_c_try_compile "$LINENO" 1793then : 1794 ac_hi=$ac_mid; break 1795else $as_nop 1796 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 1797 if test $ac_lo -le $ac_mid; then 1798 ac_lo= ac_hi= 1799 break 1800 fi 1801 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 1802fi 1803rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1804 done 1805else $as_nop 1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1807/* end confdefs.h. */ 1808$4 1809int 1810main (void) 1811{ 1812static int test_array [1 - 2 * !(($2) < 0)]; 1813test_array [0] = 0; 1814return test_array [0]; 1815 1816 ; 1817 return 0; 1818} 1819_ACEOF 1820if ac_fn_c_try_compile "$LINENO" 1821then : 1822 ac_hi=-1 ac_mid=-1 1823 while :; do 1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1825/* end confdefs.h. */ 1826$4 1827int 1828main (void) 1829{ 1830static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 1831test_array [0] = 0; 1832return test_array [0]; 1833 1834 ; 1835 return 0; 1836} 1837_ACEOF 1838if ac_fn_c_try_compile "$LINENO" 1839then : 1840 ac_lo=$ac_mid; break 1841else $as_nop 1842 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 1843 if test $ac_mid -le $ac_hi; then 1844 ac_lo= ac_hi= 1845 break 1846 fi 1847 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 1848fi 1849rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1850 done 1851else $as_nop 1852 ac_lo= ac_hi= 1853fi 1854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1855fi 1856rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1857# Binary search between lo and hi bounds. 1858while test "x$ac_lo" != "x$ac_hi"; do 1859 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861/* end confdefs.h. */ 1862$4 1863int 1864main (void) 1865{ 1866static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1867test_array [0] = 0; 1868return test_array [0]; 1869 1870 ; 1871 return 0; 1872} 1873_ACEOF 1874if ac_fn_c_try_compile "$LINENO" 1875then : 1876 ac_hi=$ac_mid 1877else $as_nop 1878 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 1879fi 1880rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 1881done 1882case $ac_lo in #(( 1883?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 1884'') ac_retval=1 ;; 1885esac 1886 else 1887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1888/* end confdefs.h. */ 1889$4 1890static long int longval (void) { return $2; } 1891static unsigned long int ulongval (void) { return $2; } 1892#include <stdio.h> 1893#include <stdlib.h> 1894int 1895main (void) 1896{ 1897 1898 FILE *f = fopen ("conftest.val", "w"); 1899 if (! f) 1900 return 1; 1901 if (($2) < 0) 1902 { 1903 long int i = longval (); 1904 if (i != ($2)) 1905 return 1; 1906 fprintf (f, "%ld", i); 1907 } 1908 else 1909 { 1910 unsigned long int i = ulongval (); 1911 if (i != ($2)) 1912 return 1; 1913 fprintf (f, "%lu", i); 1914 } 1915 /* Do not output a trailing newline, as this causes \r\n confusion 1916 on some platforms. */ 1917 return ferror (f) || fclose (f) != 0; 1918 1919 ; 1920 return 0; 1921} 1922_ACEOF 1923if ac_fn_c_try_run "$LINENO" 1924then : 1925 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 1926else $as_nop 1927 ac_retval=1 1928fi 1929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 1930 conftest.$ac_objext conftest.beam conftest.$ac_ext 1931rm -f conftest.val 1932 1933 fi 1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1935 as_fn_set_status $ac_retval 1936 1937} # ac_fn_c_compute_int 1938ac_configure_args_raw= 1939for ac_arg 1940do 1941 case $ac_arg in 1942 *\'*) 1943 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1944 esac 1945 as_fn_append ac_configure_args_raw " '$ac_arg'" 1946done 1947 1948case $ac_configure_args_raw in 1949 *$as_nl*) 1950 ac_safe_unquote= ;; 1951 *) 1952 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab. 1953 ac_unsafe_a="$ac_unsafe_z#~" 1954 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g" 1955 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;; 1956esac 1957 1958cat >config.log <<_ACEOF 1959This file contains any messages produced by compilers while 1960running configure, to aid debugging if configure makes a mistake. 1961 1962It was created by Haskell process package $as_me 1.0, which was 1963generated by GNU Autoconf 2.71. Invocation command line was 1964 1965 $ $0$ac_configure_args_raw 1966 1967_ACEOF 1968exec 5>>config.log 1969{ 1970cat <<_ASUNAME 1971## --------- ## 1972## Platform. ## 1973## --------- ## 1974 1975hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1976uname -m = `(uname -m) 2>/dev/null || echo unknown` 1977uname -r = `(uname -r) 2>/dev/null || echo unknown` 1978uname -s = `(uname -s) 2>/dev/null || echo unknown` 1979uname -v = `(uname -v) 2>/dev/null || echo unknown` 1980 1981/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1982/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1983 1984/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1985/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1986/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1987/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1988/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1989/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1990/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1991 1992_ASUNAME 1993 1994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1995for as_dir in $PATH 1996do 1997 IFS=$as_save_IFS 1998 case $as_dir in #((( 1999 '') as_dir=./ ;; 2000 */) ;; 2001 *) as_dir=$as_dir/ ;; 2002 esac 2003 printf "%s\n" "PATH: $as_dir" 2004 done 2005IFS=$as_save_IFS 2006 2007} >&5 2008 2009cat >&5 <<_ACEOF 2010 2011 2012## ----------- ## 2013## Core tests. ## 2014## ----------- ## 2015 2016_ACEOF 2017 2018 2019# Keep a trace of the command line. 2020# Strip out --no-create and --no-recursion so they do not pile up. 2021# Strip out --silent because we don't want to record it for future runs. 2022# Also quote any args containing shell meta-characters. 2023# Make two passes to allow for proper duplicate-argument suppression. 2024ac_configure_args= 2025ac_configure_args0= 2026ac_configure_args1= 2027ac_must_keep_next=false 2028for ac_pass in 1 2 2029do 2030 for ac_arg 2031 do 2032 case $ac_arg in 2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2035 | -silent | --silent | --silen | --sile | --sil) 2036 continue ;; 2037 *\'*) 2038 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2039 esac 2040 case $ac_pass in 2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2042 2) 2043 as_fn_append ac_configure_args1 " '$ac_arg'" 2044 if test $ac_must_keep_next = true; then 2045 ac_must_keep_next=false # Got value, back to normal. 2046 else 2047 case $ac_arg in 2048 *=* | --config-cache | -C | -disable-* | --disable-* \ 2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2051 | -with-* | --with-* | -without-* | --without-* | --x) 2052 case "$ac_configure_args0 " in 2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2054 esac 2055 ;; 2056 -* ) ac_must_keep_next=true ;; 2057 esac 2058 fi 2059 as_fn_append ac_configure_args " '$ac_arg'" 2060 ;; 2061 esac 2062 done 2063done 2064{ ac_configure_args0=; unset ac_configure_args0;} 2065{ ac_configure_args1=; unset ac_configure_args1;} 2066 2067# When interrupted or exit'd, cleanup temporary files, and complete 2068# config.log. We remove comments because anyway the quotes in there 2069# would cause problems or look ugly. 2070# WARNING: Use '\'' to represent an apostrophe within the trap. 2071# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2072trap 'exit_status=$? 2073 # Sanitize IFS. 2074 IFS=" "" $as_nl" 2075 # Save into config.log some information that might help in debugging. 2076 { 2077 echo 2078 2079 printf "%s\n" "## ---------------- ## 2080## Cache variables. ## 2081## ---------------- ##" 2082 echo 2083 # The following way of writing the cache mishandles newlines in values, 2084( 2085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2086 eval ac_val=\$$ac_var 2087 case $ac_val in #( 2088 *${as_nl}*) 2089 case $ac_var in #( 2090 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2091printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2092 esac 2093 case $ac_var in #( 2094 _ | IFS | as_nl) ;; #( 2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2096 *) { eval $ac_var=; unset $ac_var;} ;; 2097 esac ;; 2098 esac 2099 done 2100 (set) 2>&1 | 2101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2102 *${as_nl}ac_space=\ *) 2103 sed -n \ 2104 "s/'\''/'\''\\\\'\'''\''/g; 2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2106 ;; #( 2107 *) 2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2109 ;; 2110 esac | 2111 sort 2112) 2113 echo 2114 2115 printf "%s\n" "## ----------------- ## 2116## Output variables. ## 2117## ----------------- ##" 2118 echo 2119 for ac_var in $ac_subst_vars 2120 do 2121 eval ac_val=\$$ac_var 2122 case $ac_val in 2123 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2124 esac 2125 printf "%s\n" "$ac_var='\''$ac_val'\''" 2126 done | sort 2127 echo 2128 2129 if test -n "$ac_subst_files"; then 2130 printf "%s\n" "## ------------------- ## 2131## File substitutions. ## 2132## ------------------- ##" 2133 echo 2134 for ac_var in $ac_subst_files 2135 do 2136 eval ac_val=\$$ac_var 2137 case $ac_val in 2138 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2139 esac 2140 printf "%s\n" "$ac_var='\''$ac_val'\''" 2141 done | sort 2142 echo 2143 fi 2144 2145 if test -s confdefs.h; then 2146 printf "%s\n" "## ----------- ## 2147## confdefs.h. ## 2148## ----------- ##" 2149 echo 2150 cat confdefs.h 2151 echo 2152 fi 2153 test "$ac_signal" != 0 && 2154 printf "%s\n" "$as_me: caught signal $ac_signal" 2155 printf "%s\n" "$as_me: exit $exit_status" 2156 } >&5 2157 rm -f core *.core core.conftest.* && 2158 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2159 exit $exit_status 2160' 0 2161for ac_signal in 1 2 13 15; do 2162 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2163done 2164ac_signal=0 2165 2166# confdefs.h avoids OS command line length limits that DEFS can exceed. 2167rm -f -r conftest* confdefs.h 2168 2169printf "%s\n" "/* confdefs.h */" > confdefs.h 2170 2171# Predefined preprocessor variables. 2172 2173printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h 2174 2175printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h 2176 2177printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h 2178 2179printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h 2180 2181printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h 2182 2183printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h 2184 2185 2186# Let the site file select an alternate cache file if it wants to. 2187# Prefer an explicitly selected file to automatically selected ones. 2188if test -n "$CONFIG_SITE"; then 2189 ac_site_files="$CONFIG_SITE" 2190elif test "x$prefix" != xNONE; then 2191 ac_site_files="$prefix/share/config.site $prefix/etc/config.site" 2192else 2193 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2194fi 2195 2196for ac_site_file in $ac_site_files 2197do 2198 case $ac_site_file in #( 2199 */*) : 2200 ;; #( 2201 *) : 2202 ac_site_file=./$ac_site_file ;; 2203esac 2204 if test -f "$ac_site_file" && test -r "$ac_site_file"; then 2205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2206printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;} 2207 sed 's/^/| /' "$ac_site_file" >&5 2208 . "$ac_site_file" \ 2209 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2210printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2211as_fn_error $? "failed to load site script $ac_site_file 2212See \`config.log' for more details" "$LINENO" 5; } 2213 fi 2214done 2215 2216if test -r "$cache_file"; then 2217 # Some versions of bash will fail to source /dev/null (special files 2218 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2219 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2221printf "%s\n" "$as_me: loading cache $cache_file" >&6;} 2222 case $cache_file in 2223 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2224 *) . "./$cache_file";; 2225 esac 2226 fi 2227else 2228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2229printf "%s\n" "$as_me: creating cache $cache_file" >&6;} 2230 >$cache_file 2231fi 2232 2233# Test code for whether the C compiler supports C89 (global declarations) 2234ac_c_conftest_c89_globals=' 2235/* Does the compiler advertise C89 conformance? 2236 Do not test the value of __STDC__, because some compilers set it to 0 2237 while being otherwise adequately conformant. */ 2238#if !defined __STDC__ 2239# error "Compiler does not advertise C89 conformance" 2240#endif 2241 2242#include <stddef.h> 2243#include <stdarg.h> 2244struct stat; 2245/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */ 2246struct buf { int x; }; 2247struct buf * (*rcsopen) (struct buf *, struct stat *, int); 2248static char *e (p, i) 2249 char **p; 2250 int i; 2251{ 2252 return p[i]; 2253} 2254static char *f (char * (*g) (char **, int), char **p, ...) 2255{ 2256 char *s; 2257 va_list v; 2258 va_start (v,p); 2259 s = g (p, va_arg (v,int)); 2260 va_end (v); 2261 return s; 2262} 2263 2264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2265 function prototypes and stuff, but not \xHH hex character constants. 2266 These do not provoke an error unfortunately, instead are silently treated 2267 as an "x". The following induces an error, until -std is added to get 2268 proper ANSI mode. Curiously \x00 != x always comes out true, for an 2269 array size at least. It is necessary to write \x00 == 0 to get something 2270 that is true only with -std. */ 2271int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1]; 2272 2273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2274 inside strings and character constants. */ 2275#define FOO(x) '\''x'\'' 2276int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1]; 2277 2278int test (int i, double x); 2279struct s1 {int (*f) (int a);}; 2280struct s2 {int (*f) (double a);}; 2281int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int), 2282 int, int);' 2283 2284# Test code for whether the C compiler supports C89 (body of main). 2285ac_c_conftest_c89_main=' 2286ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]); 2287' 2288 2289# Test code for whether the C compiler supports C99 (global declarations) 2290ac_c_conftest_c99_globals=' 2291// Does the compiler advertise C99 conformance? 2292#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L 2293# error "Compiler does not advertise C99 conformance" 2294#endif 2295 2296#include <stdbool.h> 2297extern int puts (const char *); 2298extern int printf (const char *, ...); 2299extern int dprintf (int, const char *, ...); 2300extern void *malloc (size_t); 2301 2302// Check varargs macros. These examples are taken from C99 6.10.3.5. 2303// dprintf is used instead of fprintf to avoid needing to declare 2304// FILE and stderr. 2305#define debug(...) dprintf (2, __VA_ARGS__) 2306#define showlist(...) puts (#__VA_ARGS__) 2307#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 2308static void 2309test_varargs_macros (void) 2310{ 2311 int x = 1234; 2312 int y = 5678; 2313 debug ("Flag"); 2314 debug ("X = %d\n", x); 2315 showlist (The first, second, and third items.); 2316 report (x>y, "x is %d but y is %d", x, y); 2317} 2318 2319// Check long long types. 2320#define BIG64 18446744073709551615ull 2321#define BIG32 4294967295ul 2322#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 2323#if !BIG_OK 2324 #error "your preprocessor is broken" 2325#endif 2326#if BIG_OK 2327#else 2328 #error "your preprocessor is broken" 2329#endif 2330static long long int bignum = -9223372036854775807LL; 2331static unsigned long long int ubignum = BIG64; 2332 2333struct incomplete_array 2334{ 2335 int datasize; 2336 double data[]; 2337}; 2338 2339struct named_init { 2340 int number; 2341 const wchar_t *name; 2342 double average; 2343}; 2344 2345typedef const char *ccp; 2346 2347static inline int 2348test_restrict (ccp restrict text) 2349{ 2350 // See if C++-style comments work. 2351 // Iterate through items via the restricted pointer. 2352 // Also check for declarations in for loops. 2353 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i) 2354 continue; 2355 return 0; 2356} 2357 2358// Check varargs and va_copy. 2359static bool 2360test_varargs (const char *format, ...) 2361{ 2362 va_list args; 2363 va_start (args, format); 2364 va_list args_copy; 2365 va_copy (args_copy, args); 2366 2367 const char *str = ""; 2368 int number = 0; 2369 float fnumber = 0; 2370 2371 while (*format) 2372 { 2373 switch (*format++) 2374 { 2375 case '\''s'\'': // string 2376 str = va_arg (args_copy, const char *); 2377 break; 2378 case '\''d'\'': // int 2379 number = va_arg (args_copy, int); 2380 break; 2381 case '\''f'\'': // float 2382 fnumber = va_arg (args_copy, double); 2383 break; 2384 default: 2385 break; 2386 } 2387 } 2388 va_end (args_copy); 2389 va_end (args); 2390 2391 return *str && number && fnumber; 2392} 2393' 2394 2395# Test code for whether the C compiler supports C99 (body of main). 2396ac_c_conftest_c99_main=' 2397 // Check bool. 2398 _Bool success = false; 2399 success |= (argc != 0); 2400 2401 // Check restrict. 2402 if (test_restrict ("String literal") == 0) 2403 success = true; 2404 char *restrict newvar = "Another string"; 2405 2406 // Check varargs. 2407 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234); 2408 test_varargs_macros (); 2409 2410 // Check flexible array members. 2411 struct incomplete_array *ia = 2412 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 2413 ia->datasize = 10; 2414 for (int i = 0; i < ia->datasize; ++i) 2415 ia->data[i] = i * 1.234; 2416 2417 // Check named initializers. 2418 struct named_init ni = { 2419 .number = 34, 2420 .name = L"Test wide string", 2421 .average = 543.34343, 2422 }; 2423 2424 ni.number = 58; 2425 2426 int dynamic_array[ni.number]; 2427 dynamic_array[0] = argv[0][0]; 2428 dynamic_array[ni.number - 1] = 543; 2429 2430 // work around unused variable warnings 2431 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' 2432 || dynamic_array[ni.number - 1] != 543); 2433' 2434 2435# Test code for whether the C compiler supports C11 (global declarations) 2436ac_c_conftest_c11_globals=' 2437// Does the compiler advertise C11 conformance? 2438#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L 2439# error "Compiler does not advertise C11 conformance" 2440#endif 2441 2442// Check _Alignas. 2443char _Alignas (double) aligned_as_double; 2444char _Alignas (0) no_special_alignment; 2445extern char aligned_as_int; 2446char _Alignas (0) _Alignas (int) aligned_as_int; 2447 2448// Check _Alignof. 2449enum 2450{ 2451 int_alignment = _Alignof (int), 2452 int_array_alignment = _Alignof (int[100]), 2453 char_alignment = _Alignof (char) 2454}; 2455_Static_assert (0 < -_Alignof (int), "_Alignof is signed"); 2456 2457// Check _Noreturn. 2458int _Noreturn does_not_return (void) { for (;;) continue; } 2459 2460// Check _Static_assert. 2461struct test_static_assert 2462{ 2463 int x; 2464 _Static_assert (sizeof (int) <= sizeof (long int), 2465 "_Static_assert does not work in struct"); 2466 long int y; 2467}; 2468 2469// Check UTF-8 literals. 2470#define u8 syntax error! 2471char const utf8_literal[] = u8"happens to be ASCII" "another string"; 2472 2473// Check duplicate typedefs. 2474typedef long *long_ptr; 2475typedef long int *long_ptr; 2476typedef long_ptr long_ptr; 2477 2478// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1. 2479struct anonymous 2480{ 2481 union { 2482 struct { int i; int j; }; 2483 struct { int k; long int l; } w; 2484 }; 2485 int m; 2486} v1; 2487' 2488 2489# Test code for whether the C compiler supports C11 (body of main). 2490ac_c_conftest_c11_main=' 2491 _Static_assert ((offsetof (struct anonymous, i) 2492 == offsetof (struct anonymous, w.k)), 2493 "Anonymous union alignment botch"); 2494 v1.i = 2; 2495 v1.w.k = 5; 2496 ok |= v1.i != 5; 2497' 2498 2499# Test code for whether the C compiler supports C11 (complete). 2500ac_c_conftest_c11_program="${ac_c_conftest_c89_globals} 2501${ac_c_conftest_c99_globals} 2502${ac_c_conftest_c11_globals} 2503 2504int 2505main (int argc, char **argv) 2506{ 2507 int ok = 0; 2508 ${ac_c_conftest_c89_main} 2509 ${ac_c_conftest_c99_main} 2510 ${ac_c_conftest_c11_main} 2511 return ok; 2512} 2513" 2514 2515# Test code for whether the C compiler supports C99 (complete). 2516ac_c_conftest_c99_program="${ac_c_conftest_c89_globals} 2517${ac_c_conftest_c99_globals} 2518 2519int 2520main (int argc, char **argv) 2521{ 2522 int ok = 0; 2523 ${ac_c_conftest_c89_main} 2524 ${ac_c_conftest_c99_main} 2525 return ok; 2526} 2527" 2528 2529# Test code for whether the C compiler supports C89 (complete). 2530ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} 2531 2532int 2533main (int argc, char **argv) 2534{ 2535 int ok = 0; 2536 ${ac_c_conftest_c89_main} 2537 return ok; 2538} 2539" 2540 2541as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H" 2542as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H" 2543as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H" 2544as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H" 2545as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H" 2546as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H" 2547as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H" 2548as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H" 2549as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H" 2550as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H" 2551as_fn_append ac_func_c_list " fork HAVE_FORK" 2552as_fn_append ac_func_c_list " vfork HAVE_VFORK" 2553# Check that the precious variables saved in the cache have kept the same 2554# value. 2555ac_cache_corrupted=false 2556for ac_var in $ac_precious_vars; do 2557 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2558 eval ac_new_set=\$ac_env_${ac_var}_set 2559 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2560 eval ac_new_val=\$ac_env_${ac_var}_value 2561 case $ac_old_set,$ac_new_set in 2562 set,) 2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2564printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2565 ac_cache_corrupted=: ;; 2566 ,set) 2567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2568printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2569 ac_cache_corrupted=: ;; 2570 ,);; 2571 *) 2572 if test "x$ac_old_val" != "x$ac_new_val"; then 2573 # differences in whitespace do not lead to failure. 2574 ac_old_val_w=`echo x $ac_old_val` 2575 ac_new_val_w=`echo x $ac_new_val` 2576 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2578printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2579 ac_cache_corrupted=: 2580 else 2581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2582printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2583 eval $ac_var=\$ac_old_val 2584 fi 2585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2586printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;} 2587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2588printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;} 2589 fi;; 2590 esac 2591 # Pass precious variables to config.status. 2592 if test "$ac_new_set" = set; then 2593 case $ac_new_val in 2594 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2595 *) ac_arg=$ac_var=$ac_new_val ;; 2596 esac 2597 case " $ac_configure_args " in 2598 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2599 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2600 esac 2601 fi 2602done 2603if $ac_cache_corrupted; then 2604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2605printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2607printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;} 2608 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file' 2609 and start over" "$LINENO" 5 2610fi 2611## -------------------- ## 2612## Main body of script. ## 2613## -------------------- ## 2614 2615ac_ext=c 2616ac_cpp='$CPP $CPPFLAGS' 2617ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2618ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2619ac_compiler_gnu=$ac_cv_c_compiler_gnu 2620 2621 2622 2623# Safety check: Ensure that we are in the correct source directory. 2624 2625 2626ac_config_headers="$ac_config_headers include/HsProcessConfig.h" 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638ac_ext=c 2639ac_cpp='$CPP $CPPFLAGS' 2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2642ac_compiler_gnu=$ac_cv_c_compiler_gnu 2643if test -n "$ac_tool_prefix"; then 2644 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2645set dummy ${ac_tool_prefix}gcc; ac_word=$2 2646{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2647printf %s "checking for $ac_word... " >&6; } 2648if test ${ac_cv_prog_CC+y} 2649then : 2650 printf %s "(cached) " >&6 2651else $as_nop 2652 if test -n "$CC"; then 2653 ac_cv_prog_CC="$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 case $as_dir in #((( 2660 '') as_dir=./ ;; 2661 */) ;; 2662 *) as_dir=$as_dir/ ;; 2663 esac 2664 for ac_exec_ext in '' $ac_executable_extensions; do 2665 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2666 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2667 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2668 break 2 2669 fi 2670done 2671 done 2672IFS=$as_save_IFS 2673 2674fi 2675fi 2676CC=$ac_cv_prog_CC 2677if test -n "$CC"; then 2678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2679printf "%s\n" "$CC" >&6; } 2680else 2681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2682printf "%s\n" "no" >&6; } 2683fi 2684 2685 2686fi 2687if test -z "$ac_cv_prog_CC"; then 2688 ac_ct_CC=$CC 2689 # Extract the first word of "gcc", so it can be a program name with args. 2690set dummy gcc; ac_word=$2 2691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2692printf %s "checking for $ac_word... " >&6; } 2693if test ${ac_cv_prog_ac_ct_CC+y} 2694then : 2695 printf %s "(cached) " >&6 2696else $as_nop 2697 if test -n "$ac_ct_CC"; then 2698 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2699else 2700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2701for as_dir in $PATH 2702do 2703 IFS=$as_save_IFS 2704 case $as_dir in #((( 2705 '') as_dir=./ ;; 2706 */) ;; 2707 *) as_dir=$as_dir/ ;; 2708 esac 2709 for ac_exec_ext in '' $ac_executable_extensions; do 2710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2711 ac_cv_prog_ac_ct_CC="gcc" 2712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2713 break 2 2714 fi 2715done 2716 done 2717IFS=$as_save_IFS 2718 2719fi 2720fi 2721ac_ct_CC=$ac_cv_prog_ac_ct_CC 2722if test -n "$ac_ct_CC"; then 2723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2724printf "%s\n" "$ac_ct_CC" >&6; } 2725else 2726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2727printf "%s\n" "no" >&6; } 2728fi 2729 2730 if test "x$ac_ct_CC" = x; then 2731 CC="" 2732 else 2733 case $cross_compiling:$ac_tool_warned in 2734yes:) 2735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2736printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2737ac_tool_warned=yes ;; 2738esac 2739 CC=$ac_ct_CC 2740 fi 2741else 2742 CC="$ac_cv_prog_CC" 2743fi 2744 2745if test -z "$CC"; then 2746 if test -n "$ac_tool_prefix"; then 2747 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2748set dummy ${ac_tool_prefix}cc; ac_word=$2 2749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2750printf %s "checking for $ac_word... " >&6; } 2751if test ${ac_cv_prog_CC+y} 2752then : 2753 printf %s "(cached) " >&6 2754else $as_nop 2755 if test -n "$CC"; then 2756 ac_cv_prog_CC="$CC" # Let the user override the test. 2757else 2758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2759for as_dir in $PATH 2760do 2761 IFS=$as_save_IFS 2762 case $as_dir in #((( 2763 '') as_dir=./ ;; 2764 */) ;; 2765 *) as_dir=$as_dir/ ;; 2766 esac 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2769 ac_cv_prog_CC="${ac_tool_prefix}cc" 2770 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2771 break 2 2772 fi 2773done 2774 done 2775IFS=$as_save_IFS 2776 2777fi 2778fi 2779CC=$ac_cv_prog_CC 2780if test -n "$CC"; then 2781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2782printf "%s\n" "$CC" >&6; } 2783else 2784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2785printf "%s\n" "no" >&6; } 2786fi 2787 2788 2789 fi 2790fi 2791if test -z "$CC"; then 2792 # Extract the first word of "cc", so it can be a program name with args. 2793set dummy cc; ac_word=$2 2794{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2795printf %s "checking for $ac_word... " >&6; } 2796if test ${ac_cv_prog_CC+y} 2797then : 2798 printf %s "(cached) " >&6 2799else $as_nop 2800 if test -n "$CC"; then 2801 ac_cv_prog_CC="$CC" # Let the user override the test. 2802else 2803 ac_prog_rejected=no 2804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2805for as_dir in $PATH 2806do 2807 IFS=$as_save_IFS 2808 case $as_dir in #((( 2809 '') as_dir=./ ;; 2810 */) ;; 2811 *) as_dir=$as_dir/ ;; 2812 esac 2813 for ac_exec_ext in '' $ac_executable_extensions; do 2814 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2815 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2816 ac_prog_rejected=yes 2817 continue 2818 fi 2819 ac_cv_prog_CC="cc" 2820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2821 break 2 2822 fi 2823done 2824 done 2825IFS=$as_save_IFS 2826 2827if test $ac_prog_rejected = yes; then 2828 # We found a bogon in the path, so make sure we never use it. 2829 set dummy $ac_cv_prog_CC 2830 shift 2831 if test $# != 0; then 2832 # We chose a different compiler from the bogus one. 2833 # However, it has the same basename, so the bogon will be chosen 2834 # first if we set CC to just the basename; use the full file name. 2835 shift 2836 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@" 2837 fi 2838fi 2839fi 2840fi 2841CC=$ac_cv_prog_CC 2842if test -n "$CC"; then 2843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2844printf "%s\n" "$CC" >&6; } 2845else 2846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2847printf "%s\n" "no" >&6; } 2848fi 2849 2850 2851fi 2852if test -z "$CC"; then 2853 if test -n "$ac_tool_prefix"; then 2854 for ac_prog in cl.exe 2855 do 2856 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2857set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2858{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2859printf %s "checking for $ac_word... " >&6; } 2860if test ${ac_cv_prog_CC+y} 2861then : 2862 printf %s "(cached) " >&6 2863else $as_nop 2864 if test -n "$CC"; then 2865 ac_cv_prog_CC="$CC" # Let the user override the test. 2866else 2867as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2868for as_dir in $PATH 2869do 2870 IFS=$as_save_IFS 2871 case $as_dir in #((( 2872 '') as_dir=./ ;; 2873 */) ;; 2874 *) as_dir=$as_dir/ ;; 2875 esac 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2878 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883 done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888CC=$ac_cv_prog_CC 2889if test -n "$CC"; then 2890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2891printf "%s\n" "$CC" >&6; } 2892else 2893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2894printf "%s\n" "no" >&6; } 2895fi 2896 2897 2898 test -n "$CC" && break 2899 done 2900fi 2901if test -z "$CC"; then 2902 ac_ct_CC=$CC 2903 for ac_prog in cl.exe 2904do 2905 # Extract the first word of "$ac_prog", so it can be a program name with args. 2906set dummy $ac_prog; ac_word=$2 2907{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2908printf %s "checking for $ac_word... " >&6; } 2909if test ${ac_cv_prog_ac_ct_CC+y} 2910then : 2911 printf %s "(cached) " >&6 2912else $as_nop 2913 if test -n "$ac_ct_CC"; then 2914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2915else 2916as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2917for as_dir in $PATH 2918do 2919 IFS=$as_save_IFS 2920 case $as_dir in #((( 2921 '') as_dir=./ ;; 2922 */) ;; 2923 *) as_dir=$as_dir/ ;; 2924 esac 2925 for ac_exec_ext in '' $ac_executable_extensions; do 2926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2927 ac_cv_prog_ac_ct_CC="$ac_prog" 2928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2929 break 2 2930 fi 2931done 2932 done 2933IFS=$as_save_IFS 2934 2935fi 2936fi 2937ac_ct_CC=$ac_cv_prog_ac_ct_CC 2938if test -n "$ac_ct_CC"; then 2939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2940printf "%s\n" "$ac_ct_CC" >&6; } 2941else 2942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 2943printf "%s\n" "no" >&6; } 2944fi 2945 2946 2947 test -n "$ac_ct_CC" && break 2948done 2949 2950 if test "x$ac_ct_CC" = x; then 2951 CC="" 2952 else 2953 case $cross_compiling:$ac_tool_warned in 2954yes:) 2955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2956printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2957ac_tool_warned=yes ;; 2958esac 2959 CC=$ac_ct_CC 2960 fi 2961fi 2962 2963fi 2964if test -z "$CC"; then 2965 if test -n "$ac_tool_prefix"; then 2966 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args. 2967set dummy ${ac_tool_prefix}clang; ac_word=$2 2968{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2969printf %s "checking for $ac_word... " >&6; } 2970if test ${ac_cv_prog_CC+y} 2971then : 2972 printf %s "(cached) " >&6 2973else $as_nop 2974 if test -n "$CC"; then 2975 ac_cv_prog_CC="$CC" # Let the user override the test. 2976else 2977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2978for as_dir in $PATH 2979do 2980 IFS=$as_save_IFS 2981 case $as_dir in #((( 2982 '') as_dir=./ ;; 2983 */) ;; 2984 *) as_dir=$as_dir/ ;; 2985 esac 2986 for ac_exec_ext in '' $ac_executable_extensions; do 2987 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 2988 ac_cv_prog_CC="${ac_tool_prefix}clang" 2989 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 2990 break 2 2991 fi 2992done 2993 done 2994IFS=$as_save_IFS 2995 2996fi 2997fi 2998CC=$ac_cv_prog_CC 2999if test -n "$CC"; then 3000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3001printf "%s\n" "$CC" >&6; } 3002else 3003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3004printf "%s\n" "no" >&6; } 3005fi 3006 3007 3008fi 3009if test -z "$ac_cv_prog_CC"; then 3010 ac_ct_CC=$CC 3011 # Extract the first word of "clang", so it can be a program name with args. 3012set dummy clang; ac_word=$2 3013{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3014printf %s "checking for $ac_word... " >&6; } 3015if test ${ac_cv_prog_ac_ct_CC+y} 3016then : 3017 printf %s "(cached) " >&6 3018else $as_nop 3019 if test -n "$ac_ct_CC"; then 3020 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3021else 3022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3023for as_dir in $PATH 3024do 3025 IFS=$as_save_IFS 3026 case $as_dir in #((( 3027 '') as_dir=./ ;; 3028 */) ;; 3029 *) as_dir=$as_dir/ ;; 3030 esac 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then 3033 ac_cv_prog_ac_ct_CC="clang" 3034 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 3035 break 2 3036 fi 3037done 3038 done 3039IFS=$as_save_IFS 3040 3041fi 3042fi 3043ac_ct_CC=$ac_cv_prog_ac_ct_CC 3044if test -n "$ac_ct_CC"; then 3045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3046printf "%s\n" "$ac_ct_CC" >&6; } 3047else 3048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3049printf "%s\n" "no" >&6; } 3050fi 3051 3052 if test "x$ac_ct_CC" = x; then 3053 CC="" 3054 else 3055 case $cross_compiling:$ac_tool_warned in 3056yes:) 3057{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3058printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3059ac_tool_warned=yes ;; 3060esac 3061 CC=$ac_ct_CC 3062 fi 3063else 3064 CC="$ac_cv_prog_CC" 3065fi 3066 3067fi 3068 3069 3070test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3071printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3072as_fn_error $? "no acceptable C compiler found in \$PATH 3073See \`config.log' for more details" "$LINENO" 5; } 3074 3075# Provide some information about the compiler. 3076printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3077set X $ac_compile 3078ac_compiler=$2 3079for ac_option in --version -v -V -qversion -version; do 3080 { { ac_try="$ac_compiler $ac_option >&5" 3081case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3086printf "%s\n" "$ac_try_echo"; } >&5 3087 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3088 ac_status=$? 3089 if test -s conftest.err; then 3090 sed '10a\ 3091... rest of stderr output deleted ... 3092 10q' conftest.err >conftest.er1 3093 cat conftest.er1 >&5 3094 fi 3095 rm -f conftest.er1 conftest.err 3096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3097 test $ac_status = 0; } 3098done 3099 3100cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3101/* end confdefs.h. */ 3102 3103int 3104main (void) 3105{ 3106 3107 ; 3108 return 0; 3109} 3110_ACEOF 3111ac_clean_files_save=$ac_clean_files 3112ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3113# Try to create an executable without -o first, disregard a.out. 3114# It will help us diagnose broken compilers, and finding out an intuition 3115# of exeext. 3116{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3117printf %s "checking whether the C compiler works... " >&6; } 3118ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3119 3120# The possible output files: 3121ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3122 3123ac_rmfiles= 3124for ac_file in $ac_files 3125do 3126 case $ac_file in 3127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3128 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3129 esac 3130done 3131rm -f $ac_rmfiles 3132 3133if { { ac_try="$ac_link_default" 3134case "(($ac_try" in 3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3136 *) ac_try_echo=$ac_try;; 3137esac 3138eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3139printf "%s\n" "$ac_try_echo"; } >&5 3140 (eval "$ac_link_default") 2>&5 3141 ac_status=$? 3142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3143 test $ac_status = 0; } 3144then : 3145 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3146# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3147# in a Makefile. We should not override ac_cv_exeext if it was cached, 3148# so that the user can short-circuit this test for compilers unknown to 3149# Autoconf. 3150for ac_file in $ac_files '' 3151do 3152 test -f "$ac_file" || continue 3153 case $ac_file in 3154 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3155 ;; 3156 [ab].out ) 3157 # We found the default executable, but exeext='' is most 3158 # certainly right. 3159 break;; 3160 *.* ) 3161 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; 3162 then :; else 3163 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3164 fi 3165 # We set ac_cv_exeext here because the later test for it is not 3166 # safe: cross compilers may not add the suffix if given an `-o' 3167 # argument, so we may need to know it at that point already. 3168 # Even if this section looks crufty: it has the advantage of 3169 # actually working. 3170 break;; 3171 * ) 3172 break;; 3173 esac 3174done 3175test "$ac_cv_exeext" = no && ac_cv_exeext= 3176 3177else $as_nop 3178 ac_file='' 3179fi 3180if test -z "$ac_file" 3181then : 3182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 3183printf "%s\n" "no" >&6; } 3184printf "%s\n" "$as_me: failed program was:" >&5 3185sed 's/^/| /' conftest.$ac_ext >&5 3186 3187{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3188printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3189as_fn_error 77 "C compiler cannot create executables 3190See \`config.log' for more details" "$LINENO" 5; } 3191else $as_nop 3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3193printf "%s\n" "yes" >&6; } 3194fi 3195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3196printf %s "checking for C compiler default output file name... " >&6; } 3197{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3198printf "%s\n" "$ac_file" >&6; } 3199ac_exeext=$ac_cv_exeext 3200 3201rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3202ac_clean_files=$ac_clean_files_save 3203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3204printf %s "checking for suffix of executables... " >&6; } 3205if { { ac_try="$ac_link" 3206case "(($ac_try" in 3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3208 *) ac_try_echo=$ac_try;; 3209esac 3210eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3211printf "%s\n" "$ac_try_echo"; } >&5 3212 (eval "$ac_link") 2>&5 3213 ac_status=$? 3214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3215 test $ac_status = 0; } 3216then : 3217 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3218# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3219# work properly (i.e., refer to `conftest.exe'), while it won't with 3220# `rm'. 3221for ac_file in conftest.exe conftest conftest.*; do 3222 test -f "$ac_file" || continue 3223 case $ac_file in 3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3225 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3226 break;; 3227 * ) break;; 3228 esac 3229done 3230else $as_nop 3231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3232printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3233as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3234See \`config.log' for more details" "$LINENO" 5; } 3235fi 3236rm -f conftest conftest$ac_cv_exeext 3237{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3238printf "%s\n" "$ac_cv_exeext" >&6; } 3239 3240rm -f conftest.$ac_ext 3241EXEEXT=$ac_cv_exeext 3242ac_exeext=$EXEEXT 3243cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3244/* end confdefs.h. */ 3245#include <stdio.h> 3246int 3247main (void) 3248{ 3249FILE *f = fopen ("conftest.out", "w"); 3250 return ferror (f) || fclose (f) != 0; 3251 3252 ; 3253 return 0; 3254} 3255_ACEOF 3256ac_clean_files="$ac_clean_files conftest.out" 3257# Check that the compiler produces executables we can run. If not, either 3258# the compiler is broken, or we cross compile. 3259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3260printf %s "checking whether we are cross compiling... " >&6; } 3261if test "$cross_compiling" != yes; then 3262 { { ac_try="$ac_link" 3263case "(($ac_try" in 3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3265 *) ac_try_echo=$ac_try;; 3266esac 3267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3268printf "%s\n" "$ac_try_echo"; } >&5 3269 (eval "$ac_link") 2>&5 3270 ac_status=$? 3271 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3272 test $ac_status = 0; } 3273 if { ac_try='./conftest$ac_cv_exeext' 3274 { { case "(($ac_try" in 3275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3276 *) ac_try_echo=$ac_try;; 3277esac 3278eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3279printf "%s\n" "$ac_try_echo"; } >&5 3280 (eval "$ac_try") 2>&5 3281 ac_status=$? 3282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3283 test $ac_status = 0; }; }; then 3284 cross_compiling=no 3285 else 3286 if test "$cross_compiling" = maybe; then 3287 cross_compiling=yes 3288 else 3289 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3290printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3291as_fn_error 77 "cannot run C compiled programs. 3292If you meant to cross compile, use \`--host'. 3293See \`config.log' for more details" "$LINENO" 5; } 3294 fi 3295 fi 3296fi 3297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3298printf "%s\n" "$cross_compiling" >&6; } 3299 3300rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3301ac_clean_files=$ac_clean_files_save 3302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3303printf %s "checking for suffix of object files... " >&6; } 3304if test ${ac_cv_objext+y} 3305then : 3306 printf %s "(cached) " >&6 3307else $as_nop 3308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3309/* end confdefs.h. */ 3310 3311int 3312main (void) 3313{ 3314 3315 ; 3316 return 0; 3317} 3318_ACEOF 3319rm -f conftest.o conftest.obj 3320if { { ac_try="$ac_compile" 3321case "(($ac_try" in 3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3323 *) ac_try_echo=$ac_try;; 3324esac 3325eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3326printf "%s\n" "$ac_try_echo"; } >&5 3327 (eval "$ac_compile") 2>&5 3328 ac_status=$? 3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3330 test $ac_status = 0; } 3331then : 3332 for ac_file in conftest.o conftest.obj conftest.*; do 3333 test -f "$ac_file" || continue; 3334 case $ac_file in 3335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3336 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3337 break;; 3338 esac 3339done 3340else $as_nop 3341 printf "%s\n" "$as_me: failed program was:" >&5 3342sed 's/^/| /' conftest.$ac_ext >&5 3343 3344{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3345printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 3346as_fn_error $? "cannot compute suffix of object files: cannot compile 3347See \`config.log' for more details" "$LINENO" 5; } 3348fi 3349rm -f conftest.$ac_cv_objext conftest.$ac_ext 3350fi 3351{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3352printf "%s\n" "$ac_cv_objext" >&6; } 3353OBJEXT=$ac_cv_objext 3354ac_objext=$OBJEXT 3355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5 3356printf %s "checking whether the compiler supports GNU C... " >&6; } 3357if test ${ac_cv_c_compiler_gnu+y} 3358then : 3359 printf %s "(cached) " >&6 3360else $as_nop 3361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3362/* end confdefs.h. */ 3363 3364int 3365main (void) 3366{ 3367#ifndef __GNUC__ 3368 choke me 3369#endif 3370 3371 ; 3372 return 0; 3373} 3374_ACEOF 3375if ac_fn_c_try_compile "$LINENO" 3376then : 3377 ac_compiler_gnu=yes 3378else $as_nop 3379 ac_compiler_gnu=no 3380fi 3381rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3382ac_cv_c_compiler_gnu=$ac_compiler_gnu 3383 3384fi 3385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3386printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; } 3387ac_compiler_gnu=$ac_cv_c_compiler_gnu 3388 3389if test $ac_compiler_gnu = yes; then 3390 GCC=yes 3391else 3392 GCC= 3393fi 3394ac_test_CFLAGS=${CFLAGS+y} 3395ac_save_CFLAGS=$CFLAGS 3396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3397printf %s "checking whether $CC accepts -g... " >&6; } 3398if test ${ac_cv_prog_cc_g+y} 3399then : 3400 printf %s "(cached) " >&6 3401else $as_nop 3402 ac_save_c_werror_flag=$ac_c_werror_flag 3403 ac_c_werror_flag=yes 3404 ac_cv_prog_cc_g=no 3405 CFLAGS="-g" 3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3407/* end confdefs.h. */ 3408 3409int 3410main (void) 3411{ 3412 3413 ; 3414 return 0; 3415} 3416_ACEOF 3417if ac_fn_c_try_compile "$LINENO" 3418then : 3419 ac_cv_prog_cc_g=yes 3420else $as_nop 3421 CFLAGS="" 3422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3423/* end confdefs.h. */ 3424 3425int 3426main (void) 3427{ 3428 3429 ; 3430 return 0; 3431} 3432_ACEOF 3433if ac_fn_c_try_compile "$LINENO" 3434then : 3435 3436else $as_nop 3437 ac_c_werror_flag=$ac_save_c_werror_flag 3438 CFLAGS="-g" 3439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3440/* end confdefs.h. */ 3441 3442int 3443main (void) 3444{ 3445 3446 ; 3447 return 0; 3448} 3449_ACEOF 3450if ac_fn_c_try_compile "$LINENO" 3451then : 3452 ac_cv_prog_cc_g=yes 3453fi 3454rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3455fi 3456rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3457fi 3458rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3459 ac_c_werror_flag=$ac_save_c_werror_flag 3460fi 3461{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3462printf "%s\n" "$ac_cv_prog_cc_g" >&6; } 3463if test $ac_test_CFLAGS; then 3464 CFLAGS=$ac_save_CFLAGS 3465elif test $ac_cv_prog_cc_g = yes; then 3466 if test "$GCC" = yes; then 3467 CFLAGS="-g -O2" 3468 else 3469 CFLAGS="-g" 3470 fi 3471else 3472 if test "$GCC" = yes; then 3473 CFLAGS="-O2" 3474 else 3475 CFLAGS= 3476 fi 3477fi 3478ac_prog_cc_stdc=no 3479if test x$ac_prog_cc_stdc = xno 3480then : 3481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5 3482printf %s "checking for $CC option to enable C11 features... " >&6; } 3483if test ${ac_cv_prog_cc_c11+y} 3484then : 3485 printf %s "(cached) " >&6 3486else $as_nop 3487 ac_cv_prog_cc_c11=no 3488ac_save_CC=$CC 3489cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3490/* end confdefs.h. */ 3491$ac_c_conftest_c11_program 3492_ACEOF 3493for ac_arg in '' -std=gnu11 3494do 3495 CC="$ac_save_CC $ac_arg" 3496 if ac_fn_c_try_compile "$LINENO" 3497then : 3498 ac_cv_prog_cc_c11=$ac_arg 3499fi 3500rm -f core conftest.err conftest.$ac_objext conftest.beam 3501 test "x$ac_cv_prog_cc_c11" != "xno" && break 3502done 3503rm -f conftest.$ac_ext 3504CC=$ac_save_CC 3505fi 3506 3507if test "x$ac_cv_prog_cc_c11" = xno 3508then : 3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3510printf "%s\n" "unsupported" >&6; } 3511else $as_nop 3512 if test "x$ac_cv_prog_cc_c11" = x 3513then : 3514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3515printf "%s\n" "none needed" >&6; } 3516else $as_nop 3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5 3518printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } 3519 CC="$CC $ac_cv_prog_cc_c11" 3520fi 3521 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11 3522 ac_prog_cc_stdc=c11 3523fi 3524fi 3525if test x$ac_prog_cc_stdc = xno 3526then : 3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5 3528printf %s "checking for $CC option to enable C99 features... " >&6; } 3529if test ${ac_cv_prog_cc_c99+y} 3530then : 3531 printf %s "(cached) " >&6 3532else $as_nop 3533 ac_cv_prog_cc_c99=no 3534ac_save_CC=$CC 3535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3536/* end confdefs.h. */ 3537$ac_c_conftest_c99_program 3538_ACEOF 3539for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99= 3540do 3541 CC="$ac_save_CC $ac_arg" 3542 if ac_fn_c_try_compile "$LINENO" 3543then : 3544 ac_cv_prog_cc_c99=$ac_arg 3545fi 3546rm -f core conftest.err conftest.$ac_objext conftest.beam 3547 test "x$ac_cv_prog_cc_c99" != "xno" && break 3548done 3549rm -f conftest.$ac_ext 3550CC=$ac_save_CC 3551fi 3552 3553if test "x$ac_cv_prog_cc_c99" = xno 3554then : 3555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3556printf "%s\n" "unsupported" >&6; } 3557else $as_nop 3558 if test "x$ac_cv_prog_cc_c99" = x 3559then : 3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3561printf "%s\n" "none needed" >&6; } 3562else $as_nop 3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3564printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } 3565 CC="$CC $ac_cv_prog_cc_c99" 3566fi 3567 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 3568 ac_prog_cc_stdc=c99 3569fi 3570fi 3571if test x$ac_prog_cc_stdc = xno 3572then : 3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5 3574printf %s "checking for $CC option to enable C89 features... " >&6; } 3575if test ${ac_cv_prog_cc_c89+y} 3576then : 3577 printf %s "(cached) " >&6 3578else $as_nop 3579 ac_cv_prog_cc_c89=no 3580ac_save_CC=$CC 3581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582/* end confdefs.h. */ 3583$ac_c_conftest_c89_program 3584_ACEOF 3585for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3586do 3587 CC="$ac_save_CC $ac_arg" 3588 if ac_fn_c_try_compile "$LINENO" 3589then : 3590 ac_cv_prog_cc_c89=$ac_arg 3591fi 3592rm -f core conftest.err conftest.$ac_objext conftest.beam 3593 test "x$ac_cv_prog_cc_c89" != "xno" && break 3594done 3595rm -f conftest.$ac_ext 3596CC=$ac_save_CC 3597fi 3598 3599if test "x$ac_cv_prog_cc_c89" = xno 3600then : 3601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3602printf "%s\n" "unsupported" >&6; } 3603else $as_nop 3604 if test "x$ac_cv_prog_cc_c89" = x 3605then : 3606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3607printf "%s\n" "none needed" >&6; } 3608else $as_nop 3609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3610printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } 3611 CC="$CC $ac_cv_prog_cc_c89" 3612fi 3613 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 3614 ac_prog_cc_stdc=c89 3615fi 3616fi 3617 3618ac_ext=c 3619ac_cpp='$CPP $CPPFLAGS' 3620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3622ac_compiler_gnu=$ac_cv_c_compiler_gnu 3623 3624 3625 3626ac_header= ac_cache= 3627for ac_item in $ac_header_c_list 3628do 3629 if test $ac_cache; then 3630 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default" 3631 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then 3632 printf "%s\n" "#define $ac_item 1" >> confdefs.h 3633 fi 3634 ac_header= ac_cache= 3635 elif test $ac_header; then 3636 ac_cache=$ac_item 3637 else 3638 ac_header=$ac_item 3639 fi 3640done 3641 3642 3643 3644 3645 3646 3647 3648 3649if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes 3650then : 3651 3652printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h 3653 3654fi 3655 3656 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default 3657" 3658if test "x$ac_cv_type_pid_t" = xyes 3659then : 3660 3661else $as_nop 3662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3663/* end confdefs.h. */ 3664 3665 #if defined _WIN64 && !defined __CYGWIN__ 3666 LLP64 3667 #endif 3668 3669int 3670main (void) 3671{ 3672 3673 ; 3674 return 0; 3675} 3676 3677_ACEOF 3678if ac_fn_c_try_compile "$LINENO" 3679then : 3680 ac_pid_type='int' 3681else $as_nop 3682 ac_pid_type='__int64' 3683fi 3684rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 3685 3686printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h 3687 3688 3689fi 3690 3691 3692 3693ac_func= 3694for ac_item in $ac_func_c_list 3695do 3696 if test $ac_func; then 3697 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func 3698 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then 3699 echo "#define $ac_item 1" >> confdefs.h 3700 fi 3701 ac_func= 3702 else 3703 ac_func=$ac_item 3704 fi 3705done 3706 3707 3708 3709if test "x$ac_cv_func_fork" = xyes; then 3710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 3711printf %s "checking for working fork... " >&6; } 3712if test ${ac_cv_func_fork_works+y} 3713then : 3714 printf %s "(cached) " >&6 3715else $as_nop 3716 if test "$cross_compiling" = yes 3717then : 3718 ac_cv_func_fork_works=cross 3719else $as_nop 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3721/* end confdefs.h. */ 3722$ac_includes_default 3723int 3724main (void) 3725{ 3726 3727 /* By Ruediger Kuhlmann. */ 3728 return fork () < 0; 3729 3730 ; 3731 return 0; 3732} 3733_ACEOF 3734if ac_fn_c_try_run "$LINENO" 3735then : 3736 ac_cv_func_fork_works=yes 3737else $as_nop 3738 ac_cv_func_fork_works=no 3739fi 3740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3741 conftest.$ac_objext conftest.beam conftest.$ac_ext 3742fi 3743 3744fi 3745{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 3746printf "%s\n" "$ac_cv_func_fork_works" >&6; } 3747 3748else 3749 ac_cv_func_fork_works=$ac_cv_func_fork 3750fi 3751if test "x$ac_cv_func_fork_works" = xcross; then 3752 case $host in 3753 *-*-amigaos* | *-*-msdosdjgpp*) 3754 # Override, as these systems have only a dummy fork() stub 3755 ac_cv_func_fork_works=no 3756 ;; 3757 *) 3758 ac_cv_func_fork_works=yes 3759 ;; 3760 esac 3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 3762printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 3763fi 3764ac_cv_func_vfork_works=$ac_cv_func_vfork 3765if test "x$ac_cv_func_vfork" = xyes; then 3766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 3767printf %s "checking for working vfork... " >&6; } 3768if test ${ac_cv_func_vfork_works+y} 3769then : 3770 printf %s "(cached) " >&6 3771else $as_nop 3772 if test "$cross_compiling" = yes 3773then : 3774 ac_cv_func_vfork_works=cross 3775else $as_nop 3776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3777/* end confdefs.h. */ 3778/* Thanks to Paul Eggert for this test. */ 3779$ac_includes_default 3780#include <signal.h> 3781#include <sys/wait.h> 3782#ifdef HAVE_VFORK_H 3783# include <vfork.h> 3784#endif 3785 3786static void 3787do_nothing (int sig) 3788{ 3789 (void) sig; 3790} 3791 3792/* On some sparc systems, changes by the child to local and incoming 3793 argument registers are propagated back to the parent. The compiler 3794 is told about this with #include <vfork.h>, but some compilers 3795 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 3796 static variable whose address is put into a register that is 3797 clobbered by the vfork. */ 3798static void 3799sparc_address_test (int arg) 3800{ 3801 static pid_t child; 3802 if (!child) { 3803 child = vfork (); 3804 if (child < 0) { 3805 perror ("vfork"); 3806 _exit(2); 3807 } 3808 if (!child) { 3809 arg = getpid(); 3810 write(-1, "", 0); 3811 _exit (arg); 3812 } 3813 } 3814} 3815 3816int 3817main (void) 3818{ 3819 pid_t parent = getpid (); 3820 pid_t child; 3821 3822 sparc_address_test (0); 3823 3824 /* On Solaris 2.4, changes by the child to the signal handler 3825 also munge signal handlers in the parent. To detect this, 3826 start by putting the parent's handler in a known state. */ 3827 signal (SIGTERM, SIG_DFL); 3828 3829 child = vfork (); 3830 3831 if (child == 0) { 3832 /* Here is another test for sparc vfork register problems. This 3833 test uses lots of local variables, at least as many local 3834 variables as main has allocated so far including compiler 3835 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 3836 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 3837 reuse the register of parent for one of the local variables, 3838 since it will think that parent can't possibly be used any more 3839 in this routine. Assigning to the local variable will thus 3840 munge parent in the parent process. */ 3841 pid_t 3842 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 3843 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 3844 /* Convince the compiler that p..p7 are live; otherwise, it might 3845 use the same hardware register for all 8 local variables. */ 3846 if (p != p1 || p != p2 || p != p3 || p != p4 3847 || p != p5 || p != p6 || p != p7) 3848 _exit(1); 3849 3850 /* Alter the child's signal handler. */ 3851 if (signal (SIGTERM, do_nothing) != SIG_DFL) 3852 _exit(1); 3853 3854 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 3855 from child file descriptors. If the child closes a descriptor 3856 before it execs or exits, this munges the parent's descriptor 3857 as well. Test for this by closing stdout in the child. */ 3858 _exit(close(fileno(stdout)) != 0); 3859 } else { 3860 int status; 3861 struct stat st; 3862 3863 while (wait(&status) != child) 3864 ; 3865 return ( 3866 /* Was there some problem with vforking? */ 3867 child < 0 3868 3869 /* Did the child munge the parent's signal handler? */ 3870 || signal (SIGTERM, SIG_DFL) != SIG_DFL 3871 3872 /* Did the child fail? (This shouldn't happen.) */ 3873 || status 3874 3875 /* Did the vfork/compiler bug occur? */ 3876 || parent != getpid() 3877 3878 /* Did the file descriptor bug occur? */ 3879 || fstat(fileno(stdout), &st) != 0 3880 ); 3881 } 3882} 3883_ACEOF 3884if ac_fn_c_try_run "$LINENO" 3885then : 3886 ac_cv_func_vfork_works=yes 3887else $as_nop 3888 ac_cv_func_vfork_works=no 3889fi 3890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3891 conftest.$ac_objext conftest.beam conftest.$ac_ext 3892fi 3893 3894fi 3895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 3896printf "%s\n" "$ac_cv_func_vfork_works" >&6; } 3897 3898fi; 3899if test "x$ac_cv_func_fork_works" = xcross; then 3900 ac_cv_func_vfork_works=$ac_cv_func_vfork 3901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 3902printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 3903fi 3904 3905if test "x$ac_cv_func_vfork_works" = xyes; then 3906 3907printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h 3908 3909else 3910 3911printf "%s\n" "#define vfork fork" >>confdefs.h 3912 3913fi 3914if test "x$ac_cv_func_fork_works" = xyes; then 3915 3916printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h 3917 3918fi 3919 3920 3921# check for specific header (.h) files that we are interested in 3922ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 3923if test "x$ac_cv_header_signal_h" = xyes 3924then : 3925 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h 3926 3927fi 3928ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default" 3929if test "x$ac_cv_header_sys_wait_h" = xyes 3930then : 3931 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 3932 3933fi 3934ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" 3935if test "x$ac_cv_header_fcntl_h" = xyes 3936then : 3937 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h 3938 3939fi 3940 3941 3942ac_fn_c_check_func "$LINENO" "setitimer" "ac_cv_func_setitimer" 3943if test "x$ac_cv_func_setitimer" = xyes 3944then : 3945 printf "%s\n" "#define HAVE_SETITIMER 1" >>confdefs.h 3946 3947fi 3948ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf" 3949if test "x$ac_cv_func_sysconf" = xyes 3950then : 3951 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h 3952 3953fi 3954 3955ac_fn_c_check_func "$LINENO" "execvpe" "ac_cv_func_execvpe" 3956if test "x$ac_cv_func_execvpe" = xyes 3957then : 3958 printf "%s\n" "#define HAVE_EXECVPE 1" >>confdefs.h 3959 3960fi 3961 3962 3963# posix_spawn checks 3964ac_fn_c_check_header_compile "$LINENO" "spawn.h" "ac_cv_header_spawn_h" "$ac_includes_default" 3965if test "x$ac_cv_header_spawn_h" = xyes 3966then : 3967 printf "%s\n" "#define HAVE_SPAWN_H 1" >>confdefs.h 3968 3969fi 3970 3971ac_fn_c_check_func "$LINENO" "posix_spawnp" "ac_cv_func_posix_spawnp" 3972if test "x$ac_cv_func_posix_spawnp" = xyes 3973then : 3974 printf "%s\n" "#define HAVE_POSIX_SPAWNP 1" >>confdefs.h 3975 3976fi 3977ac_fn_c_check_func "$LINENO" "posix_spawn_file_actions_addchdir" "ac_cv_func_posix_spawn_file_actions_addchdir" 3978if test "x$ac_cv_func_posix_spawn_file_actions_addchdir" = xyes 3979then : 3980 printf "%s\n" "#define HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR 1" >>confdefs.h 3981 3982fi 3983 3984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5 3985printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; } 3986if test ${ac_cv_c_undeclared_builtin_options+y} 3987then : 3988 printf %s "(cached) " >&6 3989else $as_nop 3990 ac_save_CFLAGS=$CFLAGS 3991 ac_cv_c_undeclared_builtin_options='cannot detect' 3992 for ac_arg in '' -fno-builtin; do 3993 CFLAGS="$ac_save_CFLAGS $ac_arg" 3994 # This test program should *not* compile successfully. 3995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3996/* end confdefs.h. */ 3997 3998int 3999main (void) 4000{ 4001(void) strchr; 4002 ; 4003 return 0; 4004} 4005_ACEOF 4006if ac_fn_c_try_compile "$LINENO" 4007then : 4008 4009else $as_nop 4010 # This test program should compile successfully. 4011 # No library function is consistently available on 4012 # freestanding implementations, so test against a dummy 4013 # declaration. Include always-available headers on the 4014 # off chance that they somehow elicit warnings. 4015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4016/* end confdefs.h. */ 4017#include <float.h> 4018#include <limits.h> 4019#include <stdarg.h> 4020#include <stddef.h> 4021extern void ac_decl (int, char *); 4022 4023int 4024main (void) 4025{ 4026(void) ac_decl (0, (char *) 0); 4027 (void) ac_decl; 4028 4029 ; 4030 return 0; 4031} 4032_ACEOF 4033if ac_fn_c_try_compile "$LINENO" 4034then : 4035 if test x"$ac_arg" = x 4036then : 4037 ac_cv_c_undeclared_builtin_options='none needed' 4038else $as_nop 4039 ac_cv_c_undeclared_builtin_options=$ac_arg 4040fi 4041 break 4042fi 4043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4044fi 4045rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext 4046 done 4047 CFLAGS=$ac_save_CFLAGS 4048 4049fi 4050{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5 4051printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; } 4052 case $ac_cv_c_undeclared_builtin_options in #( 4053 'cannot detect') : 4054 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4055printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;} 4056as_fn_error $? "cannot make $CC report undeclared builtins 4057See \`config.log' for more details" "$LINENO" 5; } ;; #( 4058 'none needed') : 4059 ac_c_undeclared_builtin_options='' ;; #( 4060 *) : 4061 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;; 4062esac 4063 4064ac_fn_check_decl "$LINENO" "POSIX_SPAWN_SETSID" "ac_cv_have_decl_POSIX_SPAWN_SETSID" " 4065 #define _GNU_SOURCE 4066 #include <spawn.h> 4067 4068" "$ac_c_undeclared_builtin_options" "CFLAGS" 4069if test "x$ac_cv_have_decl_POSIX_SPAWN_SETSID" = xyes 4070then : 4071 ac_have_decl=1 4072else $as_nop 4073 ac_have_decl=0 4074fi 4075printf "%s\n" "#define HAVE_DECL_POSIX_SPAWN_SETSID $ac_have_decl" >>confdefs.h 4076ac_fn_check_decl "$LINENO" "POSIX_SPAWN_SETSID_NP" "ac_cv_have_decl_POSIX_SPAWN_SETSID_NP" " 4077 #define _GNU_SOURCE 4078 #include <spawn.h> 4079 4080" "$ac_c_undeclared_builtin_options" "CFLAGS" 4081if test "x$ac_cv_have_decl_POSIX_SPAWN_SETSID_NP" = xyes 4082then : 4083 ac_have_decl=1 4084else $as_nop 4085 ac_have_decl=0 4086fi 4087printf "%s\n" "#define HAVE_DECL_POSIX_SPAWN_SETSID_NP $ac_have_decl" >>confdefs.h 4088 4089ac_fn_check_decl "$LINENO" "POSIX_SPAWN_SETPGROUP" "ac_cv_have_decl_POSIX_SPAWN_SETPGROUP" " 4090 #define _GNU_SOURCE 4091 #include <spawn.h> 4092 4093" "$ac_c_undeclared_builtin_options" "CFLAGS" 4094if test "x$ac_cv_have_decl_POSIX_SPAWN_SETPGROUP" = xyes 4095then : 4096 ac_have_decl=1 4097else $as_nop 4098 ac_have_decl=0 4099fi 4100printf "%s\n" "#define HAVE_DECL_POSIX_SPAWN_SETPGROUP $ac_have_decl" >>confdefs.h 4101 4102 4103for fp_const_name in SIG_DFL SIG_IGN 4104do 4105as_fp_Cache=`printf "%s\n" "fp_cv_const_$fp_const_name" | $as_tr_sh` 4106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking value of $fp_const_name" >&5 4107printf %s "checking value of $fp_const_name... " >&6; } 4108if eval test \${$as_fp_Cache+y} 4109then : 4110 printf %s "(cached) " >&6 4111else $as_nop 4112 if ac_fn_c_compute_int "$LINENO" "$fp_const_name" "fp_check_const_result" "$ac_includes_default" 4113then : 4114 4115else $as_nop 4116 fp_check_const_result='-1' 4117fi 4118 4119eval "$as_fp_Cache=\$fp_check_const_result" 4120fi 4121eval ac_res=\$$as_fp_Cache 4122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4123printf "%s\n" "$ac_res" >&6; } 4124cat >>confdefs.h <<_ACEOF 4125#define `printf "%s\n" "CONST_$fp_const_name" | $as_tr_cpp` `eval 'as_val=${'$as_fp_Cache'};printf "%s\n" "$as_val"'` 4126_ACEOF 4127 4128done 4129 4130 4131cat >confcache <<\_ACEOF 4132# This file is a shell script that caches the results of configure 4133# tests run on this system so they can be shared between configure 4134# scripts and configure runs, see configure's option --config-cache. 4135# It is not useful on other systems. If it contains results you don't 4136# want to keep, you may remove or edit it. 4137# 4138# config.status only pays attention to the cache file if you give it 4139# the --recheck option to rerun configure. 4140# 4141# `ac_cv_env_foo' variables (set or unset) will be overridden when 4142# loading this file, other *unset* `ac_cv_foo' will be assigned the 4143# following values. 4144 4145_ACEOF 4146 4147# The following way of writing the cache mishandles newlines in values, 4148# but we know of no workaround that is simple, portable, and efficient. 4149# So, we kill variables containing newlines. 4150# Ultrix sh set writes to stderr and can't be redirected directly, 4151# and sets the high bit in the cache file unless we assign to the vars. 4152( 4153 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 4154 eval ac_val=\$$ac_var 4155 case $ac_val in #( 4156 *${as_nl}*) 4157 case $ac_var in #( 4158 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 4159printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 4160 esac 4161 case $ac_var in #( 4162 _ | IFS | as_nl) ;; #( 4163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 4164 *) { eval $ac_var=; unset $ac_var;} ;; 4165 esac ;; 4166 esac 4167 done 4168 4169 (set) 2>&1 | 4170 case $as_nl`(ac_space=' '; set) 2>&1` in #( 4171 *${as_nl}ac_space=\ *) 4172 # `set' does not quote correctly, so add quotes: double-quote 4173 # substitution turns \\\\ into \\, and sed turns \\ into \. 4174 sed -n \ 4175 "s/'/'\\\\''/g; 4176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 4177 ;; #( 4178 *) 4179 # `set' quotes correctly as required by POSIX, so do not add quotes. 4180 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 4181 ;; 4182 esac | 4183 sort 4184) | 4185 sed ' 4186 /^ac_cv_env_/b end 4187 t clear 4188 :clear 4189 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/ 4190 t end 4191 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 4192 :end' >>confcache 4193if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 4194 if test -w "$cache_file"; then 4195 if test "x$cache_file" != "x/dev/null"; then 4196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 4197printf "%s\n" "$as_me: updating cache $cache_file" >&6;} 4198 if test ! -f "$cache_file" || test -h "$cache_file"; then 4199 cat confcache >"$cache_file" 4200 else 4201 case $cache_file in #( 4202 */* | ?:*) 4203 mv -f confcache "$cache_file"$$ && 4204 mv -f "$cache_file"$$ "$cache_file" ;; #( 4205 *) 4206 mv -f confcache "$cache_file" ;; 4207 esac 4208 fi 4209 fi 4210 else 4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 4212printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;} 4213 fi 4214fi 4215rm -f confcache 4216 4217test "x$prefix" = xNONE && prefix=$ac_default_prefix 4218# Let make expand exec_prefix. 4219test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 4220 4221DEFS=-DHAVE_CONFIG_H 4222 4223ac_libobjs= 4224ac_ltlibobjs= 4225U= 4226for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 4227 # 1. Remove the extension, and $U if already installed. 4228 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 4229 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"` 4230 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 4231 # will be set to the directory where LIBOBJS objects are built. 4232 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 4233 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 4234done 4235LIBOBJS=$ac_libobjs 4236 4237LTLIBOBJS=$ac_ltlibobjs 4238 4239 4240 4241: "${CONFIG_STATUS=./config.status}" 4242ac_write_fail=0 4243ac_clean_files_save=$ac_clean_files 4244ac_clean_files="$ac_clean_files $CONFIG_STATUS" 4245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 4246printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;} 4247as_write_fail=0 4248cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 4249#! $SHELL 4250# Generated by $as_me. 4251# Run this file to recreate the current configuration. 4252# Compiler output produced by configure, useful for debugging 4253# configure, is in config.log if it exists. 4254 4255debug=false 4256ac_cs_recheck=false 4257ac_cs_silent=false 4258 4259SHELL=\${CONFIG_SHELL-$SHELL} 4260export SHELL 4261_ASEOF 4262cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 4263## -------------------- ## 4264## M4sh Initialization. ## 4265## -------------------- ## 4266 4267# Be more Bourne compatible 4268DUALCASE=1; export DUALCASE # for MKS sh 4269as_nop=: 4270if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1 4271then : 4272 emulate sh 4273 NULLCMD=: 4274 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 4275 # is contrary to our usage. Disable this feature. 4276 alias -g '${1+"$@"}'='"$@"' 4277 setopt NO_GLOB_SUBST 4278else $as_nop 4279 case `(set -o) 2>/dev/null` in #( 4280 *posix*) : 4281 set -o posix ;; #( 4282 *) : 4283 ;; 4284esac 4285fi 4286 4287 4288 4289# Reset variables that may have inherited troublesome values from 4290# the environment. 4291 4292# IFS needs to be set, to space, tab, and newline, in precisely that order. 4293# (If _AS_PATH_WALK were called with IFS unset, it would have the 4294# side effect of setting IFS to empty, thus disabling word splitting.) 4295# Quoting is to prevent editors from complaining about space-tab. 4296as_nl=' 4297' 4298export as_nl 4299IFS=" "" $as_nl" 4300 4301PS1='$ ' 4302PS2='> ' 4303PS4='+ ' 4304 4305# Ensure predictable behavior from utilities with locale-dependent output. 4306LC_ALL=C 4307export LC_ALL 4308LANGUAGE=C 4309export LANGUAGE 4310 4311# We cannot yet rely on "unset" to work, but we need these variables 4312# to be unset--not just set to an empty or harmless value--now, to 4313# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct 4314# also avoids known problems related to "unset" and subshell syntax 4315# in other old shells (e.g. bash 2.01 and pdksh 5.2.14). 4316for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH 4317do eval test \${$as_var+y} \ 4318 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 4319done 4320 4321# Ensure that fds 0, 1, and 2 are open. 4322if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi 4323if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi 4324if (exec 3>&2) ; then :; else exec 2>/dev/null; fi 4325 4326# The user is always right. 4327if ${PATH_SEPARATOR+false} :; then 4328 PATH_SEPARATOR=: 4329 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 4330 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 4331 PATH_SEPARATOR=';' 4332 } 4333fi 4334 4335 4336# Find who we are. Look in the path if we contain no directory separator. 4337as_myself= 4338case $0 in #(( 4339 *[\\/]* ) as_myself=$0 ;; 4340 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4341for as_dir in $PATH 4342do 4343 IFS=$as_save_IFS 4344 case $as_dir in #((( 4345 '') as_dir=./ ;; 4346 */) ;; 4347 *) as_dir=$as_dir/ ;; 4348 esac 4349 test -r "$as_dir$0" && as_myself=$as_dir$0 && break 4350 done 4351IFS=$as_save_IFS 4352 4353 ;; 4354esac 4355# We did not find ourselves, most probably we were run as `sh COMMAND' 4356# in which case we are not to be found in the path. 4357if test "x$as_myself" = x; then 4358 as_myself=$0 4359fi 4360if test ! -f "$as_myself"; then 4361 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 4362 exit 1 4363fi 4364 4365 4366 4367# as_fn_error STATUS ERROR [LINENO LOG_FD] 4368# ---------------------------------------- 4369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 4370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 4371# script with STATUS, using 1 if that was 0. 4372as_fn_error () 4373{ 4374 as_status=$1; test $as_status -eq 0 && as_status=1 4375 if test "$4"; then 4376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 4377 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 4378 fi 4379 printf "%s\n" "$as_me: error: $2" >&2 4380 as_fn_exit $as_status 4381} # as_fn_error 4382 4383 4384 4385# as_fn_set_status STATUS 4386# ----------------------- 4387# Set $? to STATUS, without forking. 4388as_fn_set_status () 4389{ 4390 return $1 4391} # as_fn_set_status 4392 4393# as_fn_exit STATUS 4394# ----------------- 4395# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 4396as_fn_exit () 4397{ 4398 set +e 4399 as_fn_set_status $1 4400 exit $1 4401} # as_fn_exit 4402 4403# as_fn_unset VAR 4404# --------------- 4405# Portably unset VAR. 4406as_fn_unset () 4407{ 4408 { eval $1=; unset $1;} 4409} 4410as_unset=as_fn_unset 4411 4412# as_fn_append VAR VALUE 4413# ---------------------- 4414# Append the text in VALUE to the end of the definition contained in VAR. Take 4415# advantage of any shell optimizations that allow amortized linear growth over 4416# repeated appends, instead of the typical quadratic growth present in naive 4417# implementations. 4418if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null 4419then : 4420 eval 'as_fn_append () 4421 { 4422 eval $1+=\$2 4423 }' 4424else $as_nop 4425 as_fn_append () 4426 { 4427 eval $1=\$$1\$2 4428 } 4429fi # as_fn_append 4430 4431# as_fn_arith ARG... 4432# ------------------ 4433# Perform arithmetic evaluation on the ARGs, and store the result in the 4434# global $as_val. Take advantage of shells that can avoid forks. The arguments 4435# must be portable across $(()) and expr. 4436if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null 4437then : 4438 eval 'as_fn_arith () 4439 { 4440 as_val=$(( $* )) 4441 }' 4442else $as_nop 4443 as_fn_arith () 4444 { 4445 as_val=`expr "$@" || test $? -eq 1` 4446 } 4447fi # as_fn_arith 4448 4449 4450if expr a : '\(a\)' >/dev/null 2>&1 && 4451 test "X`expr 00001 : '.*\(...\)'`" = X001; then 4452 as_expr=expr 4453else 4454 as_expr=false 4455fi 4456 4457if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 4458 as_basename=basename 4459else 4460 as_basename=false 4461fi 4462 4463if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 4464 as_dirname=dirname 4465else 4466 as_dirname=false 4467fi 4468 4469as_me=`$as_basename -- "$0" || 4470$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 4471 X"$0" : 'X\(//\)$' \| \ 4472 X"$0" : 'X\(/\)' \| . 2>/dev/null || 4473printf "%s\n" X/"$0" | 4474 sed '/^.*\/\([^/][^/]*\)\/*$/{ 4475 s//\1/ 4476 q 4477 } 4478 /^X\/\(\/\/\)$/{ 4479 s//\1/ 4480 q 4481 } 4482 /^X\/\(\/\).*/{ 4483 s//\1/ 4484 q 4485 } 4486 s/.*/./; q'` 4487 4488# Avoid depending upon Character Ranges. 4489as_cr_letters='abcdefghijklmnopqrstuvwxyz' 4490as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 4491as_cr_Letters=$as_cr_letters$as_cr_LETTERS 4492as_cr_digits='0123456789' 4493as_cr_alnum=$as_cr_Letters$as_cr_digits 4494 4495 4496# Determine whether it's possible to make 'echo' print without a newline. 4497# These variables are no longer used directly by Autoconf, but are AC_SUBSTed 4498# for compatibility with existing Makefiles. 4499ECHO_C= ECHO_N= ECHO_T= 4500case `echo -n x` in #((((( 4501-n*) 4502 case `echo 'xy\c'` in 4503 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 4504 xy) ECHO_C='\c';; 4505 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 4506 ECHO_T=' ';; 4507 esac;; 4508*) 4509 ECHO_N='-n';; 4510esac 4511 4512# For backward compatibility with old third-party macros, we provide 4513# the shell variables $as_echo and $as_echo_n. New code should use 4514# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively. 4515as_echo='printf %s\n' 4516as_echo_n='printf %s' 4517 4518rm -f conf$$ conf$$.exe conf$$.file 4519if test -d conf$$.dir; then 4520 rm -f conf$$.dir/conf$$.file 4521else 4522 rm -f conf$$.dir 4523 mkdir conf$$.dir 2>/dev/null 4524fi 4525if (echo >conf$$.file) 2>/dev/null; then 4526 if ln -s conf$$.file conf$$ 2>/dev/null; then 4527 as_ln_s='ln -s' 4528 # ... but there are two gotchas: 4529 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 4530 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 4531 # In both cases, we have to default to `cp -pR'. 4532 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 4533 as_ln_s='cp -pR' 4534 elif ln conf$$.file conf$$ 2>/dev/null; then 4535 as_ln_s=ln 4536 else 4537 as_ln_s='cp -pR' 4538 fi 4539else 4540 as_ln_s='cp -pR' 4541fi 4542rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 4543rmdir conf$$.dir 2>/dev/null 4544 4545 4546# as_fn_mkdir_p 4547# ------------- 4548# Create "$as_dir" as a directory, including parents if necessary. 4549as_fn_mkdir_p () 4550{ 4551 4552 case $as_dir in #( 4553 -*) as_dir=./$as_dir;; 4554 esac 4555 test -d "$as_dir" || eval $as_mkdir_p || { 4556 as_dirs= 4557 while :; do 4558 case $as_dir in #( 4559 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 4560 *) as_qdir=$as_dir;; 4561 esac 4562 as_dirs="'$as_qdir' $as_dirs" 4563 as_dir=`$as_dirname -- "$as_dir" || 4564$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 4565 X"$as_dir" : 'X\(//\)[^/]' \| \ 4566 X"$as_dir" : 'X\(//\)$' \| \ 4567 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 4568printf "%s\n" X"$as_dir" | 4569 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 4570 s//\1/ 4571 q 4572 } 4573 /^X\(\/\/\)[^/].*/{ 4574 s//\1/ 4575 q 4576 } 4577 /^X\(\/\/\)$/{ 4578 s//\1/ 4579 q 4580 } 4581 /^X\(\/\).*/{ 4582 s//\1/ 4583 q 4584 } 4585 s/.*/./; q'` 4586 test -d "$as_dir" && break 4587 done 4588 test -z "$as_dirs" || eval "mkdir $as_dirs" 4589 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 4590 4591 4592} # as_fn_mkdir_p 4593if mkdir -p . 2>/dev/null; then 4594 as_mkdir_p='mkdir -p "$as_dir"' 4595else 4596 test -d ./-p && rmdir ./-p 4597 as_mkdir_p=false 4598fi 4599 4600 4601# as_fn_executable_p FILE 4602# ----------------------- 4603# Test if FILE is an executable regular file. 4604as_fn_executable_p () 4605{ 4606 test -f "$1" && test -x "$1" 4607} # as_fn_executable_p 4608as_test_x='test -x' 4609as_executable_p=as_fn_executable_p 4610 4611# Sed expression to map a string onto a valid CPP name. 4612as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 4613 4614# Sed expression to map a string onto a valid variable name. 4615as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 4616 4617 4618exec 6>&1 4619## ----------------------------------- ## 4620## Main body of $CONFIG_STATUS script. ## 4621## ----------------------------------- ## 4622_ASEOF 4623test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 4624 4625cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4626# Save the log message, to keep $0 and so on meaningful, and to 4627# report actual input values of CONFIG_FILES etc. instead of their 4628# values after options handling. 4629ac_log=" 4630This file was extended by Haskell process package $as_me 1.0, which was 4631generated by GNU Autoconf 2.71. Invocation command line was 4632 4633 CONFIG_FILES = $CONFIG_FILES 4634 CONFIG_HEADERS = $CONFIG_HEADERS 4635 CONFIG_LINKS = $CONFIG_LINKS 4636 CONFIG_COMMANDS = $CONFIG_COMMANDS 4637 $ $0 $@ 4638 4639on `(hostname || uname -n) 2>/dev/null | sed 1q` 4640" 4641 4642_ACEOF 4643 4644 4645case $ac_config_headers in *" 4646"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 4647esac 4648 4649 4650cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4651# Files that config.status was made for. 4652config_headers="$ac_config_headers" 4653 4654_ACEOF 4655 4656cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4657ac_cs_usage="\ 4658\`$as_me' instantiates files and other configuration actions 4659from templates according to the current configuration. Unless the files 4660and actions are specified as TAGs, all are instantiated by default. 4661 4662Usage: $0 [OPTION]... [TAG]... 4663 4664 -h, --help print this help, then exit 4665 -V, --version print version number and configuration settings, then exit 4666 --config print configuration, then exit 4667 -q, --quiet, --silent 4668 do not print progress messages 4669 -d, --debug don't remove temporary files 4670 --recheck update $as_me by reconfiguring in the same conditions 4671 --header=FILE[:TEMPLATE] 4672 instantiate the configuration header FILE 4673 4674Configuration headers: 4675$config_headers 4676 4677Report bugs to <libraries@haskell.org>." 4678 4679_ACEOF 4680ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"` 4681ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"` 4682cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4683ac_cs_config='$ac_cs_config_escaped' 4684ac_cs_version="\\ 4685Haskell process package config.status 1.0 4686configured by $0, generated by GNU Autoconf 2.71, 4687 with options \\"\$ac_cs_config\\" 4688 4689Copyright (C) 2021 Free Software Foundation, Inc. 4690This config.status script is free software; the Free Software Foundation 4691gives unlimited permission to copy, distribute and modify it." 4692 4693ac_pwd='$ac_pwd' 4694srcdir='$srcdir' 4695test -n "\$AWK" || AWK=awk 4696_ACEOF 4697 4698cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4699# The default lists apply if the user does not specify any file. 4700ac_need_defaults=: 4701while test $# != 0 4702do 4703 case $1 in 4704 --*=?*) 4705 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4706 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 4707 ac_shift=: 4708 ;; 4709 --*=) 4710 ac_option=`expr "X$1" : 'X\([^=]*\)='` 4711 ac_optarg= 4712 ac_shift=: 4713 ;; 4714 *) 4715 ac_option=$1 4716 ac_optarg=$2 4717 ac_shift=shift 4718 ;; 4719 esac 4720 4721 case $ac_option in 4722 # Handling of the options. 4723 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 4724 ac_cs_recheck=: ;; 4725 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 4726 printf "%s\n" "$ac_cs_version"; exit ;; 4727 --config | --confi | --conf | --con | --co | --c ) 4728 printf "%s\n" "$ac_cs_config"; exit ;; 4729 --debug | --debu | --deb | --de | --d | -d ) 4730 debug=: ;; 4731 --header | --heade | --head | --hea ) 4732 $ac_shift 4733 case $ac_optarg in 4734 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 4735 esac 4736 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 4737 ac_need_defaults=false;; 4738 --he | --h) 4739 # Conflict between --help and --header 4740 as_fn_error $? "ambiguous option: \`$1' 4741Try \`$0 --help' for more information.";; 4742 --help | --hel | -h ) 4743 printf "%s\n" "$ac_cs_usage"; exit ;; 4744 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 4745 | -silent | --silent | --silen | --sile | --sil | --si | --s) 4746 ac_cs_silent=: ;; 4747 4748 # This is an error. 4749 -*) as_fn_error $? "unrecognized option: \`$1' 4750Try \`$0 --help' for more information." ;; 4751 4752 *) as_fn_append ac_config_targets " $1" 4753 ac_need_defaults=false ;; 4754 4755 esac 4756 shift 4757done 4758 4759ac_configure_extra_args= 4760 4761if $ac_cs_silent; then 4762 exec 6>/dev/null 4763 ac_configure_extra_args="$ac_configure_extra_args --silent" 4764fi 4765 4766_ACEOF 4767cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4768if \$ac_cs_recheck; then 4769 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 4770 shift 4771 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6 4772 CONFIG_SHELL='$SHELL' 4773 export CONFIG_SHELL 4774 exec "\$@" 4775fi 4776 4777_ACEOF 4778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4779exec 5>>config.log 4780{ 4781 echo 4782 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 4783## Running $as_me. ## 4784_ASBOX 4785 printf "%s\n" "$ac_log" 4786} >&5 4787 4788_ACEOF 4789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4790_ACEOF 4791 4792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4793 4794# Handling of arguments. 4795for ac_config_target in $ac_config_targets 4796do 4797 case $ac_config_target in 4798 "include/HsProcessConfig.h") CONFIG_HEADERS="$CONFIG_HEADERS include/HsProcessConfig.h" ;; 4799 4800 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 4801 esac 4802done 4803 4804 4805# If the user did not use the arguments to specify the items to instantiate, 4806# then the envvar interface is used. Set only those that are not. 4807# We use the long form for the default assignment because of an extremely 4808# bizarre bug on SunOS 4.1.3. 4809if $ac_need_defaults; then 4810 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers 4811fi 4812 4813# Have a temporary directory for convenience. Make it in the build tree 4814# simply because there is no reason against having it here, and in addition, 4815# creating and moving files from /tmp can sometimes cause problems. 4816# Hook for its removal unless debugging. 4817# Note that there is a small window in which the directory will not be cleaned: 4818# after its creation but before its name has been assigned to `$tmp'. 4819$debug || 4820{ 4821 tmp= ac_tmp= 4822 trap 'exit_status=$? 4823 : "${ac_tmp:=$tmp}" 4824 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 4825' 0 4826 trap 'as_fn_exit 1' 1 2 13 15 4827} 4828# Create a (secure) tmp directory for tmp files. 4829 4830{ 4831 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 4832 test -d "$tmp" 4833} || 4834{ 4835 tmp=./conf$$-$RANDOM 4836 (umask 077 && mkdir "$tmp") 4837} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 4838ac_tmp=$tmp 4839 4840# Set up the scripts for CONFIG_HEADERS section. 4841# No need to generate them if there are no CONFIG_HEADERS. 4842# This happens for instance with `./config.status Makefile'. 4843if test -n "$CONFIG_HEADERS"; then 4844cat >"$ac_tmp/defines.awk" <<\_ACAWK || 4845BEGIN { 4846_ACEOF 4847 4848# Transform confdefs.h into an awk script `defines.awk', embedded as 4849# here-document in config.status, that substitutes the proper values into 4850# config.h.in to produce config.h. 4851 4852# Create a delimiter string that does not exist in confdefs.h, to ease 4853# handling of long lines. 4854ac_delim='%!_!# ' 4855for ac_last_try in false false :; do 4856 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 4857 if test -z "$ac_tt"; then 4858 break 4859 elif $ac_last_try; then 4860 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 4861 else 4862 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 4863 fi 4864done 4865 4866# For the awk script, D is an array of macro values keyed by name, 4867# likewise P contains macro parameters if any. Preserve backslash 4868# newline sequences. 4869 4870ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 4871sed -n ' 4872s/.\{148\}/&'"$ac_delim"'/g 4873t rset 4874:rset 4875s/^[ ]*#[ ]*define[ ][ ]*/ / 4876t def 4877d 4878:def 4879s/\\$// 4880t bsnl 4881s/["\\]/\\&/g 4882s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 4883D["\1"]=" \3"/p 4884s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 4885d 4886:bsnl 4887s/["\\]/\\&/g 4888s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 4889D["\1"]=" \3\\\\\\n"\\/p 4890t cont 4891s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 4892t cont 4893d 4894:cont 4895n 4896s/.\{148\}/&'"$ac_delim"'/g 4897t clear 4898:clear 4899s/\\$// 4900t bsnlc 4901s/["\\]/\\&/g; s/^/"/; s/$/"/p 4902d 4903:bsnlc 4904s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 4905b cont 4906' <confdefs.h | sed ' 4907s/'"$ac_delim"'/"\\\ 4908"/g' >>$CONFIG_STATUS || ac_write_fail=1 4909 4910cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 4911 for (key in D) D_is_set[key] = 1 4912 FS = "" 4913} 4914/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 4915 line = \$ 0 4916 split(line, arg, " ") 4917 if (arg[1] == "#") { 4918 defundef = arg[2] 4919 mac1 = arg[3] 4920 } else { 4921 defundef = substr(arg[1], 2) 4922 mac1 = arg[2] 4923 } 4924 split(mac1, mac2, "(") #) 4925 macro = mac2[1] 4926 prefix = substr(line, 1, index(line, defundef) - 1) 4927 if (D_is_set[macro]) { 4928 # Preserve the white space surrounding the "#". 4929 print prefix "define", macro P[macro] D[macro] 4930 next 4931 } else { 4932 # Replace #undef with comments. This is necessary, for example, 4933 # in the case of _POSIX_SOURCE, which is predefined and required 4934 # on some systems where configure will not decide to define it. 4935 if (defundef == "undef") { 4936 print "/*", prefix defundef, macro, "*/" 4937 next 4938 } 4939 } 4940} 4941{ print } 4942_ACAWK 4943_ACEOF 4944cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 4945 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 4946fi # test -n "$CONFIG_HEADERS" 4947 4948 4949eval set X " :H $CONFIG_HEADERS " 4950shift 4951for ac_tag 4952do 4953 case $ac_tag in 4954 :[FHLC]) ac_mode=$ac_tag; continue;; 4955 esac 4956 case $ac_mode$ac_tag in 4957 :[FHL]*:*);; 4958 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 4959 :[FH]-) ac_tag=-:-;; 4960 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 4961 esac 4962 ac_save_IFS=$IFS 4963 IFS=: 4964 set x $ac_tag 4965 IFS=$ac_save_IFS 4966 shift 4967 ac_file=$1 4968 shift 4969 4970 case $ac_mode in 4971 :L) ac_source=$1;; 4972 :[FH]) 4973 ac_file_inputs= 4974 for ac_f 4975 do 4976 case $ac_f in 4977 -) ac_f="$ac_tmp/stdin";; 4978 *) # Look for the file first in the build tree, then in the source tree 4979 # (if the path is not absolute). The absolute path cannot be DOS-style, 4980 # because $ac_f cannot contain `:'. 4981 test -f "$ac_f" || 4982 case $ac_f in 4983 [\\/$]*) false;; 4984 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 4985 esac || 4986 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 4987 esac 4988 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 4989 as_fn_append ac_file_inputs " '$ac_f'" 4990 done 4991 4992 # Let's still pretend it is `configure' which instantiates (i.e., don't 4993 # use $as_me), people would be surprised to read: 4994 # /* config.h. Generated by config.status. */ 4995 configure_input='Generated from '` 4996 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 4997 `' by configure.' 4998 if test x"$ac_file" != x-; then 4999 configure_input="$ac_file. $configure_input" 5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 5001printf "%s\n" "$as_me: creating $ac_file" >&6;} 5002 fi 5003 # Neutralize special characters interpreted by sed in replacement strings. 5004 case $configure_input in #( 5005 *\&* | *\|* | *\\* ) 5006 ac_sed_conf_input=`printf "%s\n" "$configure_input" | 5007 sed 's/[\\\\&|]/\\\\&/g'`;; #( 5008 *) ac_sed_conf_input=$configure_input;; 5009 esac 5010 5011 case $ac_tag in 5012 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 5013 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 5014 esac 5015 ;; 5016 esac 5017 5018 ac_dir=`$as_dirname -- "$ac_file" || 5019$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 5020 X"$ac_file" : 'X\(//\)[^/]' \| \ 5021 X"$ac_file" : 'X\(//\)$' \| \ 5022 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 5023printf "%s\n" X"$ac_file" | 5024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 5025 s//\1/ 5026 q 5027 } 5028 /^X\(\/\/\)[^/].*/{ 5029 s//\1/ 5030 q 5031 } 5032 /^X\(\/\/\)$/{ 5033 s//\1/ 5034 q 5035 } 5036 /^X\(\/\).*/{ 5037 s//\1/ 5038 q 5039 } 5040 s/.*/./; q'` 5041 as_dir="$ac_dir"; as_fn_mkdir_p 5042 ac_builddir=. 5043 5044case "$ac_dir" in 5045.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 5046*) 5047 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'` 5048 # A ".." for each directory in $ac_dir_suffix. 5049 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 5050 case $ac_top_builddir_sub in 5051 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 5052 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 5053 esac ;; 5054esac 5055ac_abs_top_builddir=$ac_pwd 5056ac_abs_builddir=$ac_pwd$ac_dir_suffix 5057# for backward compatibility: 5058ac_top_builddir=$ac_top_build_prefix 5059 5060case $srcdir in 5061 .) # We are building in place. 5062 ac_srcdir=. 5063 ac_top_srcdir=$ac_top_builddir_sub 5064 ac_abs_top_srcdir=$ac_pwd ;; 5065 [\\/]* | ?:[\\/]* ) # Absolute name. 5066 ac_srcdir=$srcdir$ac_dir_suffix; 5067 ac_top_srcdir=$srcdir 5068 ac_abs_top_srcdir=$srcdir ;; 5069 *) # Relative name. 5070 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 5071 ac_top_srcdir=$ac_top_build_prefix$srcdir 5072 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 5073esac 5074ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 5075 5076 5077 case $ac_mode in 5078 5079 :H) 5080 # 5081 # CONFIG_HEADER 5082 # 5083 if test x"$ac_file" != x-; then 5084 { 5085 printf "%s\n" "/* $configure_input */" >&1 \ 5086 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 5087 } >"$ac_tmp/config.h" \ 5088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5089 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 5090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 5091printf "%s\n" "$as_me: $ac_file is unchanged" >&6;} 5092 else 5093 rm -f "$ac_file" 5094 mv "$ac_tmp/config.h" "$ac_file" \ 5095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 5096 fi 5097 else 5098 printf "%s\n" "/* $configure_input */" >&1 \ 5099 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 5100 || as_fn_error $? "could not create -" "$LINENO" 5 5101 fi 5102 ;; 5103 5104 5105 esac 5106 5107done # for ac_tag 5108 5109 5110as_fn_exit 0 5111_ACEOF 5112ac_clean_files=$ac_clean_files_save 5113 5114test $ac_write_fail = 0 || 5115 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 5116 5117 5118# configure is writing to config.log, and then calls config.status. 5119# config.status does its own redirection, appending to config.log. 5120# Unfortunately, on DOS this fails, as config.log is still kept open 5121# by configure, so config.status won't be able to write to it; its 5122# output is simply discarded. So we exec the FD to /dev/null, 5123# effectively closing config.log, so it can be properly (re)opened and 5124# appended to by config.status. When coming back to configure, we 5125# need to make the FD available again. 5126if test "$no_create" != yes; then 5127 ac_cs_success=: 5128 ac_config_status_args= 5129 test "$silent" = yes && 5130 ac_config_status_args="$ac_config_status_args --quiet" 5131 exec 5>/dev/null 5132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 5133 exec 5>>config.log 5134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 5135 # would make configure fail if this is the last instruction. 5136 $ac_cs_success || as_fn_exit 1 5137fi 5138if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 5139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 5140printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 5141fi 5142 5143 5144