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