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