1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for Asymptote 2.67. 4# 5# Report bugs to <http://sourceforge.net/projects/asymptote>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: http://sourceforge.net/projects/asymptote about your 271$0: system, including any error possibly output before this 272$0: message. Then install a modern shell, or manually run 273$0: the script under such a shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='Asymptote' 582PACKAGE_TARNAME='asymptote' 583PACKAGE_VERSION='2.67' 584PACKAGE_STRING='Asymptote 2.67' 585PACKAGE_BUGREPORT='http://sourceforge.net/projects/asymptote' 586PACKAGE_URL='' 587 588# Factoring default headers for most tests. 589ac_includes_default="\ 590#include <stdio.h> 591#ifdef HAVE_SYS_TYPES_H 592# include <sys/types.h> 593#endif 594#ifdef HAVE_SYS_STAT_H 595# include <sys/stat.h> 596#endif 597#ifdef STDC_HEADERS 598# include <stdlib.h> 599# include <stddef.h> 600#else 601# ifdef HAVE_STDLIB_H 602# include <stdlib.h> 603# endif 604#endif 605#ifdef HAVE_STRING_H 606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 607# include <memory.h> 608# endif 609# include <string.h> 610#endif 611#ifdef HAVE_STRINGS_H 612# include <strings.h> 613#endif 614#ifdef HAVE_INTTYPES_H 615# include <inttypes.h> 616#endif 617#ifdef HAVE_STDINT_H 618# include <stdint.h> 619#endif 620#ifdef HAVE_UNISTD_H 621# include <unistd.h> 622#endif" 623 624ac_unique_file="absyn.cc" 625ac_subst_vars='LTLIBOBJS 626LIBOBJS 627PTHREAD_CFLAGS 628PTHREAD_LIBS 629PTHREAD_CC 630ax_pthread_config 631GLEW 632OPTIONS 633INCL 634GCPPLIB 635GCLIB 636GCOPTIONS 637ATOMICVERSION 638ASYGLVERSION 639GCVERSION 640getopt 641CXXCPP 642YFLAGS 643YACC 644SET_MAKE 645INSTALL_DATA 646INSTALL_SCRIPT 647INSTALL_PROGRAM 648LEXLIB 649ac_ct_CXX 650CXXFLAGS 651CXX 652LEX_OUTPUT_ROOT 653LEX 654contextdir 655latexdir 656TEXI2DVI 657kpsewhich 658Datadir 659host_os 660host_vendor 661host_cpu 662host 663build_os 664build_vendor 665build_cpu 666build 667EGREP 668GREP 669CPP 670OBJEXT 671EXEEXT 672ac_ct_CC 673CPPFLAGS 674LDFLAGS 675CFLAGS 676CC 677VERSION 678target_alias 679host_alias 680build_alias 681LIBS 682ECHO_T 683ECHO_N 684ECHO_C 685DEFS 686mandir 687localedir 688libdir 689psdir 690pdfdir 691dvidir 692htmldir 693infodir 694docdir 695oldincludedir 696includedir 697localstatedir 698sharedstatedir 699sysconfdir 700datadir 701datarootdir 702libexecdir 703sbindir 704bindir 705program_transform_name 706prefix 707exec_prefix 708PACKAGE_URL 709PACKAGE_BUGREPORT 710PACKAGE_STRING 711PACKAGE_VERSION 712PACKAGE_TARNAME 713PACKAGE_NAME 714PATH_SEPARATOR 715SHELL' 716ac_subst_files='' 717ac_user_opts=' 718enable_option_checking 719with_latex 720with_context 721with_docdir 722enable_texlive_build 723enable_gc 724enable_gc_debug 725enable_gc_full_debug 726enable_sigsegv 727enable_readline 728enable_static 729enable_fftw 730enable_gsl 731enable_gl 732enable_offscreen 733enable_OpenImageIO 734' 735 ac_precious_vars='build_alias 736host_alias 737target_alias 738CC 739CFLAGS 740LDFLAGS 741LIBS 742CPPFLAGS 743CPP 744CXX 745CXXFLAGS 746CCC 747YACC 748YFLAGS 749CXXCPP' 750 751 752# Initialize some variables set by options. 753ac_init_help= 754ac_init_version=false 755ac_unrecognized_opts= 756ac_unrecognized_sep= 757# The variables have the same names as the options, with 758# dashes changed to underlines. 759cache_file=/dev/null 760exec_prefix=NONE 761no_create= 762no_recursion= 763prefix=NONE 764program_prefix=NONE 765program_suffix=NONE 766program_transform_name=s,x,x, 767silent= 768site= 769srcdir= 770verbose= 771x_includes=NONE 772x_libraries=NONE 773 774# Installation directory options. 775# These are left unexpanded so users can "make install exec_prefix=/foo" 776# and all the variables that are supposed to be based on exec_prefix 777# by default will actually change. 778# Use braces instead of parens because sh, perl, etc. also accept them. 779# (The list follows the same order as the GNU Coding Standards.) 780bindir='${exec_prefix}/bin' 781sbindir='${exec_prefix}/sbin' 782libexecdir='${exec_prefix}/libexec' 783datarootdir='${prefix}/share' 784datadir='${datarootdir}' 785sysconfdir='${prefix}/etc' 786sharedstatedir='${prefix}/com' 787localstatedir='${prefix}/var' 788includedir='${prefix}/include' 789oldincludedir='/usr/include' 790docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 791infodir='${datarootdir}/info' 792htmldir='${docdir}' 793dvidir='${docdir}' 794pdfdir='${docdir}' 795psdir='${docdir}' 796libdir='${exec_prefix}/lib' 797localedir='${datarootdir}/locale' 798mandir='${datarootdir}/man' 799 800ac_prev= 801ac_dashdash= 802for ac_option 803do 804 # If the previous option needs an argument, assign it. 805 if test -n "$ac_prev"; then 806 eval $ac_prev=\$ac_option 807 ac_prev= 808 continue 809 fi 810 811 case $ac_option in 812 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 813 *=) ac_optarg= ;; 814 *) ac_optarg=yes ;; 815 esac 816 817 # Accept the important Cygnus configure options, so we can diagnose typos. 818 819 case $ac_dashdash$ac_option in 820 --) 821 ac_dashdash=yes ;; 822 823 -bindir | --bindir | --bindi | --bind | --bin | --bi) 824 ac_prev=bindir ;; 825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 826 bindir=$ac_optarg ;; 827 828 -build | --build | --buil | --bui | --bu) 829 ac_prev=build_alias ;; 830 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 831 build_alias=$ac_optarg ;; 832 833 -cache-file | --cache-file | --cache-fil | --cache-fi \ 834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 835 ac_prev=cache_file ;; 836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 838 cache_file=$ac_optarg ;; 839 840 --config-cache | -C) 841 cache_file=config.cache ;; 842 843 -datadir | --datadir | --datadi | --datad) 844 ac_prev=datadir ;; 845 -datadir=* | --datadir=* | --datadi=* | --datad=*) 846 datadir=$ac_optarg ;; 847 848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 849 | --dataroo | --dataro | --datar) 850 ac_prev=datarootdir ;; 851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 853 datarootdir=$ac_optarg ;; 854 855 -disable-* | --disable-*) 856 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 857 # Reject names that are not valid shell variable names. 858 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 859 as_fn_error $? "invalid feature name: $ac_useropt" 860 ac_useropt_orig=$ac_useropt 861 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 862 case $ac_user_opts in 863 *" 864"enable_$ac_useropt" 865"*) ;; 866 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 867 ac_unrecognized_sep=', ';; 868 esac 869 eval enable_$ac_useropt=no ;; 870 871 -docdir | --docdir | --docdi | --doc | --do) 872 ac_prev=docdir ;; 873 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 874 docdir=$ac_optarg ;; 875 876 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 877 ac_prev=dvidir ;; 878 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 879 dvidir=$ac_optarg ;; 880 881 -enable-* | --enable-*) 882 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 883 # Reject names that are not valid shell variable names. 884 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 885 as_fn_error $? "invalid feature name: $ac_useropt" 886 ac_useropt_orig=$ac_useropt 887 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 888 case $ac_user_opts in 889 *" 890"enable_$ac_useropt" 891"*) ;; 892 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 893 ac_unrecognized_sep=', ';; 894 esac 895 eval enable_$ac_useropt=\$ac_optarg ;; 896 897 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 898 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 899 | --exec | --exe | --ex) 900 ac_prev=exec_prefix ;; 901 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 902 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 903 | --exec=* | --exe=* | --ex=*) 904 exec_prefix=$ac_optarg ;; 905 906 -gas | --gas | --ga | --g) 907 # Obsolete; use --with-gas. 908 with_gas=yes ;; 909 910 -help | --help | --hel | --he | -h) 911 ac_init_help=long ;; 912 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 913 ac_init_help=recursive ;; 914 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 915 ac_init_help=short ;; 916 917 -host | --host | --hos | --ho) 918 ac_prev=host_alias ;; 919 -host=* | --host=* | --hos=* | --ho=*) 920 host_alias=$ac_optarg ;; 921 922 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 923 ac_prev=htmldir ;; 924 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 925 | --ht=*) 926 htmldir=$ac_optarg ;; 927 928 -includedir | --includedir | --includedi | --included | --include \ 929 | --includ | --inclu | --incl | --inc) 930 ac_prev=includedir ;; 931 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 932 | --includ=* | --inclu=* | --incl=* | --inc=*) 933 includedir=$ac_optarg ;; 934 935 -infodir | --infodir | --infodi | --infod | --info | --inf) 936 ac_prev=infodir ;; 937 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 938 infodir=$ac_optarg ;; 939 940 -libdir | --libdir | --libdi | --libd) 941 ac_prev=libdir ;; 942 -libdir=* | --libdir=* | --libdi=* | --libd=*) 943 libdir=$ac_optarg ;; 944 945 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 946 | --libexe | --libex | --libe) 947 ac_prev=libexecdir ;; 948 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 949 | --libexe=* | --libex=* | --libe=*) 950 libexecdir=$ac_optarg ;; 951 952 -localedir | --localedir | --localedi | --localed | --locale) 953 ac_prev=localedir ;; 954 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 955 localedir=$ac_optarg ;; 956 957 -localstatedir | --localstatedir | --localstatedi | --localstated \ 958 | --localstate | --localstat | --localsta | --localst | --locals) 959 ac_prev=localstatedir ;; 960 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 961 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 962 localstatedir=$ac_optarg ;; 963 964 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 965 ac_prev=mandir ;; 966 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 967 mandir=$ac_optarg ;; 968 969 -nfp | --nfp | --nf) 970 # Obsolete; use --without-fp. 971 with_fp=no ;; 972 973 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 974 | --no-cr | --no-c | -n) 975 no_create=yes ;; 976 977 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 978 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 979 no_recursion=yes ;; 980 981 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 982 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 983 | --oldin | --oldi | --old | --ol | --o) 984 ac_prev=oldincludedir ;; 985 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 986 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 987 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 988 oldincludedir=$ac_optarg ;; 989 990 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 991 ac_prev=prefix ;; 992 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 993 prefix=$ac_optarg ;; 994 995 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 996 | --program-pre | --program-pr | --program-p) 997 ac_prev=program_prefix ;; 998 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 999 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1000 program_prefix=$ac_optarg ;; 1001 1002 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1003 | --program-suf | --program-su | --program-s) 1004 ac_prev=program_suffix ;; 1005 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1006 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1007 program_suffix=$ac_optarg ;; 1008 1009 -program-transform-name | --program-transform-name \ 1010 | --program-transform-nam | --program-transform-na \ 1011 | --program-transform-n | --program-transform- \ 1012 | --program-transform | --program-transfor \ 1013 | --program-transfo | --program-transf \ 1014 | --program-trans | --program-tran \ 1015 | --progr-tra | --program-tr | --program-t) 1016 ac_prev=program_transform_name ;; 1017 -program-transform-name=* | --program-transform-name=* \ 1018 | --program-transform-nam=* | --program-transform-na=* \ 1019 | --program-transform-n=* | --program-transform-=* \ 1020 | --program-transform=* | --program-transfor=* \ 1021 | --program-transfo=* | --program-transf=* \ 1022 | --program-trans=* | --program-tran=* \ 1023 | --progr-tra=* | --program-tr=* | --program-t=*) 1024 program_transform_name=$ac_optarg ;; 1025 1026 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1027 ac_prev=pdfdir ;; 1028 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1029 pdfdir=$ac_optarg ;; 1030 1031 -psdir | --psdir | --psdi | --psd | --ps) 1032 ac_prev=psdir ;; 1033 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1034 psdir=$ac_optarg ;; 1035 1036 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1037 | -silent | --silent | --silen | --sile | --sil) 1038 silent=yes ;; 1039 1040 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1041 ac_prev=sbindir ;; 1042 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1043 | --sbi=* | --sb=*) 1044 sbindir=$ac_optarg ;; 1045 1046 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1047 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1048 | --sharedst | --shareds | --shared | --share | --shar \ 1049 | --sha | --sh) 1050 ac_prev=sharedstatedir ;; 1051 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1052 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1053 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1054 | --sha=* | --sh=*) 1055 sharedstatedir=$ac_optarg ;; 1056 1057 -site | --site | --sit) 1058 ac_prev=site ;; 1059 -site=* | --site=* | --sit=*) 1060 site=$ac_optarg ;; 1061 1062 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1063 ac_prev=srcdir ;; 1064 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1065 srcdir=$ac_optarg ;; 1066 1067 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1068 | --syscon | --sysco | --sysc | --sys | --sy) 1069 ac_prev=sysconfdir ;; 1070 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1071 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1072 sysconfdir=$ac_optarg ;; 1073 1074 -target | --target | --targe | --targ | --tar | --ta | --t) 1075 ac_prev=target_alias ;; 1076 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1077 target_alias=$ac_optarg ;; 1078 1079 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1080 verbose=yes ;; 1081 1082 -version | --version | --versio | --versi | --vers | -V) 1083 ac_init_version=: ;; 1084 1085 -with-* | --with-*) 1086 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1087 # Reject names that are not valid shell variable names. 1088 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1089 as_fn_error $? "invalid package name: $ac_useropt" 1090 ac_useropt_orig=$ac_useropt 1091 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1092 case $ac_user_opts in 1093 *" 1094"with_$ac_useropt" 1095"*) ;; 1096 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1097 ac_unrecognized_sep=', ';; 1098 esac 1099 eval with_$ac_useropt=\$ac_optarg ;; 1100 1101 -without-* | --without-*) 1102 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1103 # Reject names that are not valid shell variable names. 1104 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1105 as_fn_error $? "invalid package name: $ac_useropt" 1106 ac_useropt_orig=$ac_useropt 1107 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1108 case $ac_user_opts in 1109 *" 1110"with_$ac_useropt" 1111"*) ;; 1112 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1113 ac_unrecognized_sep=', ';; 1114 esac 1115 eval with_$ac_useropt=no ;; 1116 1117 --x) 1118 # Obsolete; use --with-x. 1119 with_x=yes ;; 1120 1121 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1122 | --x-incl | --x-inc | --x-in | --x-i) 1123 ac_prev=x_includes ;; 1124 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1125 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1126 x_includes=$ac_optarg ;; 1127 1128 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1129 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1130 ac_prev=x_libraries ;; 1131 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1132 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1133 x_libraries=$ac_optarg ;; 1134 1135 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1136Try \`$0 --help' for more information" 1137 ;; 1138 1139 *=*) 1140 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1141 # Reject names that are not valid shell variable names. 1142 case $ac_envvar in #( 1143 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1144 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1145 esac 1146 eval $ac_envvar=\$ac_optarg 1147 export $ac_envvar ;; 1148 1149 *) 1150 # FIXME: should be removed in autoconf 3.0. 1151 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1152 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1153 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1154 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1155 ;; 1156 1157 esac 1158done 1159 1160if test -n "$ac_prev"; then 1161 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1162 as_fn_error $? "missing argument to $ac_option" 1163fi 1164 1165if test -n "$ac_unrecognized_opts"; then 1166 case $enable_option_checking in 1167 no) ;; 1168 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1169 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1170 esac 1171fi 1172 1173# Check all directory arguments for consistency. 1174for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1175 datadir sysconfdir sharedstatedir localstatedir includedir \ 1176 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1177 libdir localedir mandir 1178do 1179 eval ac_val=\$$ac_var 1180 # Remove trailing slashes. 1181 case $ac_val in 1182 */ ) 1183 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1184 eval $ac_var=\$ac_val;; 1185 esac 1186 # Be sure to have absolute directory names. 1187 case $ac_val in 1188 [\\/$]* | ?:[\\/]* ) continue;; 1189 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1190 esac 1191 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1192done 1193 1194# There might be people who depend on the old broken behavior: `$host' 1195# used to hold the argument of --host etc. 1196# FIXME: To remove some day. 1197build=$build_alias 1198host=$host_alias 1199target=$target_alias 1200 1201# FIXME: To remove some day. 1202if test "x$host_alias" != x; then 1203 if test "x$build_alias" = x; then 1204 cross_compiling=maybe 1205 elif test "x$build_alias" != "x$host_alias"; then 1206 cross_compiling=yes 1207 fi 1208fi 1209 1210ac_tool_prefix= 1211test -n "$host_alias" && ac_tool_prefix=$host_alias- 1212 1213test "$silent" = yes && exec 6>/dev/null 1214 1215 1216ac_pwd=`pwd` && test -n "$ac_pwd" && 1217ac_ls_di=`ls -di .` && 1218ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1219 as_fn_error $? "working directory cannot be determined" 1220test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1221 as_fn_error $? "pwd does not report name of working directory" 1222 1223 1224# Find the source files, if location was not specified. 1225if test -z "$srcdir"; then 1226 ac_srcdir_defaulted=yes 1227 # Try the directory containing this script, then the parent directory. 1228 ac_confdir=`$as_dirname -- "$as_myself" || 1229$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1230 X"$as_myself" : 'X\(//\)[^/]' \| \ 1231 X"$as_myself" : 'X\(//\)$' \| \ 1232 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1233$as_echo X"$as_myself" | 1234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1235 s//\1/ 1236 q 1237 } 1238 /^X\(\/\/\)[^/].*/{ 1239 s//\1/ 1240 q 1241 } 1242 /^X\(\/\/\)$/{ 1243 s//\1/ 1244 q 1245 } 1246 /^X\(\/\).*/{ 1247 s//\1/ 1248 q 1249 } 1250 s/.*/./; q'` 1251 srcdir=$ac_confdir 1252 if test ! -r "$srcdir/$ac_unique_file"; then 1253 srcdir=.. 1254 fi 1255else 1256 ac_srcdir_defaulted=no 1257fi 1258if test ! -r "$srcdir/$ac_unique_file"; then 1259 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1260 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1261fi 1262ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1263ac_abs_confdir=`( 1264 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1265 pwd)` 1266# When building in place, set srcdir=. 1267if test "$ac_abs_confdir" = "$ac_pwd"; then 1268 srcdir=. 1269fi 1270# Remove unnecessary trailing slashes from srcdir. 1271# Double slashes in file names in object file debugging info 1272# mess up M-x gdb in Emacs. 1273case $srcdir in 1274*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1275esac 1276for ac_var in $ac_precious_vars; do 1277 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1278 eval ac_env_${ac_var}_value=\$${ac_var} 1279 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1280 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1281done 1282 1283# 1284# Report the --help message. 1285# 1286if test "$ac_init_help" = "long"; then 1287 # Omit some internal or obsolete options to make the list less imposing. 1288 # This message is too long to be a string in the A/UX 3.1 sh. 1289 cat <<_ACEOF 1290\`configure' configures Asymptote 2.67 to adapt to many kinds of systems. 1291 1292Usage: $0 [OPTION]... [VAR=VALUE]... 1293 1294To assign environment variables (e.g., CC, CFLAGS...), specify them as 1295VAR=VALUE. See below for descriptions of some of the useful variables. 1296 1297Defaults for the options are specified in brackets. 1298 1299Configuration: 1300 -h, --help display this help and exit 1301 --help=short display options specific to this package 1302 --help=recursive display the short help of all the included packages 1303 -V, --version display version information and exit 1304 -q, --quiet, --silent do not print \`checking ...' messages 1305 --cache-file=FILE cache test results in FILE [disabled] 1306 -C, --config-cache alias for \`--cache-file=config.cache' 1307 -n, --no-create do not create output files 1308 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1309 1310Installation directories: 1311 --prefix=PREFIX install architecture-independent files in PREFIX 1312 [$ac_default_prefix] 1313 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1314 [PREFIX] 1315 1316By default, \`make install' will install all the files in 1317\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1318an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1319for instance \`--prefix=\$HOME'. 1320 1321For better control, use the options below. 1322 1323Fine tuning of the installation directories: 1324 --bindir=DIR user executables [EPREFIX/bin] 1325 --sbindir=DIR system admin executables [EPREFIX/sbin] 1326 --libexecdir=DIR program executables [EPREFIX/libexec] 1327 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1328 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1329 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1330 --libdir=DIR object code libraries [EPREFIX/lib] 1331 --includedir=DIR C header files [PREFIX/include] 1332 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1335 --infodir=DIR info documentation [DATAROOTDIR/info] 1336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1337 --mandir=DIR man documentation [DATAROOTDIR/man] 1338 --docdir=DIR documentation root [DATAROOTDIR/doc/asymptote] 1339 --htmldir=DIR html documentation [DOCDIR] 1340 --dvidir=DIR dvi documentation [DOCDIR] 1341 --pdfdir=DIR pdf documentation [DOCDIR] 1342 --psdir=DIR ps documentation [DOCDIR] 1343_ACEOF 1344 1345 cat <<\_ACEOF 1346 1347System types: 1348 --build=BUILD configure for building on BUILD [guessed] 1349 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1350_ACEOF 1351fi 1352 1353if test -n "$ac_init_help"; then 1354 case $ac_init_help in 1355 short | recursive ) echo "Configuration of Asymptote 2.67:";; 1356 esac 1357 cat <<\_ACEOF 1358 1359Optional Features: 1360 --disable-option-checking ignore unrecognized --enable/--with options 1361 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1362 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1363 --enable-texlive-build automatically determine sysdir from kpsewhich 1364 --enable-gc[=system] enable system Boehm garbage collector 1365 [=VERSION] enable local VERSION of Boehm garbage collector 1366 [=PREFIX] use Boehm garbage collector installed in PREFIX 1367 --enable-gc-debug enable (slow) garbage collector debugging 1368 --enable-gc-full-debug enable (very slow) garbage collector backtrace 1369 --enable-sigsegv[=yes] enable GNU Stack Overflow Handler 1370 --enable-readline[=yes] enable GNU Readline Library 1371 --enable-static[=no] link against static libraries 1372 --enable-fftw[=yes] enable FFTW Library 1373 --enable-gsl[=yes] enable GNU Scientific Library 1374 --enable-gl[=yes] enable OpenGL Library 1375 --enable-offscreen[=no] use OSMesa library to implement offscreen rendering 1376 --enable-openimageio[=no] 1377 enable experimental OpenImageIO Library 1378 1379Optional Packages: 1380 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1381 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1382 --with-latex=PATH specify path to LaTeX installation 1383 --with-context=PATH specify path to ConTeXt installation 1384 --with-docdir=PATH alternate documentation installation directory 1385 1386Some influential environment variables: 1387 CC C compiler command 1388 CFLAGS C compiler flags 1389 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1390 nonstandard directory <lib dir> 1391 LIBS libraries to pass to the linker, e.g. -l<library> 1392 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1393 you have headers in a nonstandard directory <include dir> 1394 CPP C preprocessor 1395 CXX C++ compiler command 1396 CXXFLAGS C++ compiler flags 1397 YACC The `Yet Another Compiler Compiler' implementation to use. 1398 Defaults to the first program found out of: `bison -y', `byacc', 1399 `yacc'. 1400 YFLAGS The list of arguments that will be passed by default to $YACC. 1401 This script will default YFLAGS to the empty string to avoid a 1402 default value of `-d' given by some make applications. 1403 CXXCPP C++ preprocessor 1404 1405Use these variables to override the choices made by `configure' or to help 1406it to find libraries and programs with nonstandard names/locations. 1407 1408Report bugs to <http://sourceforge.net/projects/asymptote>. 1409_ACEOF 1410ac_status=$? 1411fi 1412 1413if test "$ac_init_help" = "recursive"; then 1414 # If there are subdirs, report their specific --help. 1415 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1416 test -d "$ac_dir" || 1417 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1418 continue 1419 ac_builddir=. 1420 1421case "$ac_dir" in 1422.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1423*) 1424 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1425 # A ".." for each directory in $ac_dir_suffix. 1426 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1427 case $ac_top_builddir_sub in 1428 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1429 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1430 esac ;; 1431esac 1432ac_abs_top_builddir=$ac_pwd 1433ac_abs_builddir=$ac_pwd$ac_dir_suffix 1434# for backward compatibility: 1435ac_top_builddir=$ac_top_build_prefix 1436 1437case $srcdir in 1438 .) # We are building in place. 1439 ac_srcdir=. 1440 ac_top_srcdir=$ac_top_builddir_sub 1441 ac_abs_top_srcdir=$ac_pwd ;; 1442 [\\/]* | ?:[\\/]* ) # Absolute name. 1443 ac_srcdir=$srcdir$ac_dir_suffix; 1444 ac_top_srcdir=$srcdir 1445 ac_abs_top_srcdir=$srcdir ;; 1446 *) # Relative name. 1447 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1448 ac_top_srcdir=$ac_top_build_prefix$srcdir 1449 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1450esac 1451ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1452 1453 cd "$ac_dir" || { ac_status=$?; continue; } 1454 # Check for guested configure. 1455 if test -f "$ac_srcdir/configure.gnu"; then 1456 echo && 1457 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1458 elif test -f "$ac_srcdir/configure"; then 1459 echo && 1460 $SHELL "$ac_srcdir/configure" --help=recursive 1461 else 1462 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1463 fi || ac_status=$? 1464 cd "$ac_pwd" || { ac_status=$?; break; } 1465 done 1466fi 1467 1468test -n "$ac_init_help" && exit $ac_status 1469if $ac_init_version; then 1470 cat <<\_ACEOF 1471Asymptote configure 2.67 1472generated by GNU Autoconf 2.69 1473 1474Copyright (C) 2012 Free Software Foundation, Inc. 1475This configure script is free software; the Free Software Foundation 1476gives unlimited permission to copy, distribute and modify it. 1477_ACEOF 1478 exit 1479fi 1480 1481## ------------------------ ## 1482## Autoconf initialization. ## 1483## ------------------------ ## 1484 1485# ac_fn_c_try_compile LINENO 1486# -------------------------- 1487# Try to compile conftest.$ac_ext, and return whether this succeeded. 1488ac_fn_c_try_compile () 1489{ 1490 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1491 rm -f conftest.$ac_objext 1492 if { { ac_try="$ac_compile" 1493case "(($ac_try" in 1494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1495 *) ac_try_echo=$ac_try;; 1496esac 1497eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1498$as_echo "$ac_try_echo"; } >&5 1499 (eval "$ac_compile") 2>conftest.err 1500 ac_status=$? 1501 if test -s conftest.err; then 1502 grep -v '^ *+' conftest.err >conftest.er1 1503 cat conftest.er1 >&5 1504 mv -f conftest.er1 conftest.err 1505 fi 1506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1507 test $ac_status = 0; } && { 1508 test -z "$ac_c_werror_flag" || 1509 test ! -s conftest.err 1510 } && test -s conftest.$ac_objext; then : 1511 ac_retval=0 1512else 1513 $as_echo "$as_me: failed program was:" >&5 1514sed 's/^/| /' conftest.$ac_ext >&5 1515 1516 ac_retval=1 1517fi 1518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1519 as_fn_set_status $ac_retval 1520 1521} # ac_fn_c_try_compile 1522 1523# ac_fn_c_try_run LINENO 1524# ---------------------- 1525# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1526# that executables *can* be run. 1527ac_fn_c_try_run () 1528{ 1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1530 if { { ac_try="$ac_link" 1531case "(($ac_try" in 1532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1533 *) ac_try_echo=$ac_try;; 1534esac 1535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1536$as_echo "$ac_try_echo"; } >&5 1537 (eval "$ac_link") 2>&5 1538 ac_status=$? 1539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1540 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1541 { { case "(($ac_try" in 1542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1543 *) ac_try_echo=$ac_try;; 1544esac 1545eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1546$as_echo "$ac_try_echo"; } >&5 1547 (eval "$ac_try") 2>&5 1548 ac_status=$? 1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1550 test $ac_status = 0; }; }; then : 1551 ac_retval=0 1552else 1553 $as_echo "$as_me: program exited with status $ac_status" >&5 1554 $as_echo "$as_me: failed program was:" >&5 1555sed 's/^/| /' conftest.$ac_ext >&5 1556 1557 ac_retval=$ac_status 1558fi 1559 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1560 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1561 as_fn_set_status $ac_retval 1562 1563} # ac_fn_c_try_run 1564 1565# ac_fn_c_try_cpp LINENO 1566# ---------------------- 1567# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1568ac_fn_c_try_cpp () 1569{ 1570 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1571 if { { ac_try="$ac_cpp conftest.$ac_ext" 1572case "(($ac_try" in 1573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1574 *) ac_try_echo=$ac_try;; 1575esac 1576eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1577$as_echo "$ac_try_echo"; } >&5 1578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1579 ac_status=$? 1580 if test -s conftest.err; then 1581 grep -v '^ *+' conftest.err >conftest.er1 1582 cat conftest.er1 >&5 1583 mv -f conftest.er1 conftest.err 1584 fi 1585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1586 test $ac_status = 0; } > conftest.i && { 1587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1588 test ! -s conftest.err 1589 }; then : 1590 ac_retval=0 1591else 1592 $as_echo "$as_me: failed program was:" >&5 1593sed 's/^/| /' conftest.$ac_ext >&5 1594 1595 ac_retval=1 1596fi 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1598 as_fn_set_status $ac_retval 1599 1600} # ac_fn_c_try_cpp 1601 1602# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1603# ------------------------------------------------------- 1604# Tests whether HEADER exists and can be compiled using the include files in 1605# INCLUDES, setting the cache variable VAR accordingly. 1606ac_fn_c_check_header_compile () 1607{ 1608 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1610$as_echo_n "checking for $2... " >&6; } 1611if eval \${$3+:} false; then : 1612 $as_echo_n "(cached) " >&6 1613else 1614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1615/* end confdefs.h. */ 1616$4 1617#include <$2> 1618_ACEOF 1619if ac_fn_c_try_compile "$LINENO"; then : 1620 eval "$3=yes" 1621else 1622 eval "$3=no" 1623fi 1624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1625fi 1626eval ac_res=\$$3 1627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1628$as_echo "$ac_res" >&6; } 1629 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1630 1631} # ac_fn_c_check_header_compile 1632 1633# ac_fn_cxx_try_compile LINENO 1634# ---------------------------- 1635# Try to compile conftest.$ac_ext, and return whether this succeeded. 1636ac_fn_cxx_try_compile () 1637{ 1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1639 rm -f conftest.$ac_objext 1640 if { { ac_try="$ac_compile" 1641case "(($ac_try" in 1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1643 *) ac_try_echo=$ac_try;; 1644esac 1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1646$as_echo "$ac_try_echo"; } >&5 1647 (eval "$ac_compile") 2>conftest.err 1648 ac_status=$? 1649 if test -s conftest.err; then 1650 grep -v '^ *+' conftest.err >conftest.er1 1651 cat conftest.er1 >&5 1652 mv -f conftest.er1 conftest.err 1653 fi 1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; } && { 1656 test -z "$ac_cxx_werror_flag" || 1657 test ! -s conftest.err 1658 } && test -s conftest.$ac_objext; then : 1659 ac_retval=0 1660else 1661 $as_echo "$as_me: failed program was:" >&5 1662sed 's/^/| /' conftest.$ac_ext >&5 1663 1664 ac_retval=1 1665fi 1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1667 as_fn_set_status $ac_retval 1668 1669} # ac_fn_cxx_try_compile 1670 1671# ac_fn_cxx_try_link LINENO 1672# ------------------------- 1673# Try to link conftest.$ac_ext, and return whether this succeeded. 1674ac_fn_cxx_try_link () 1675{ 1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1677 rm -f conftest.$ac_objext conftest$ac_exeext 1678 if { { ac_try="$ac_link" 1679case "(($ac_try" in 1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1681 *) ac_try_echo=$ac_try;; 1682esac 1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1684$as_echo "$ac_try_echo"; } >&5 1685 (eval "$ac_link") 2>conftest.err 1686 ac_status=$? 1687 if test -s conftest.err; then 1688 grep -v '^ *+' conftest.err >conftest.er1 1689 cat conftest.er1 >&5 1690 mv -f conftest.er1 conftest.err 1691 fi 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; } && { 1694 test -z "$ac_cxx_werror_flag" || 1695 test ! -s conftest.err 1696 } && test -s conftest$ac_exeext && { 1697 test "$cross_compiling" = yes || 1698 test -x conftest$ac_exeext 1699 }; then : 1700 ac_retval=0 1701else 1702 $as_echo "$as_me: failed program was:" >&5 1703sed 's/^/| /' conftest.$ac_ext >&5 1704 1705 ac_retval=1 1706fi 1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1709 # interfere with the next link command; also delete a directory that is 1710 # left behind by Apple's compiler. We do this before executing the actions. 1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1713 as_fn_set_status $ac_retval 1714 1715} # ac_fn_cxx_try_link 1716 1717# ac_fn_cxx_try_cpp LINENO 1718# ------------------------ 1719# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1720ac_fn_cxx_try_cpp () 1721{ 1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1723 if { { ac_try="$ac_cpp conftest.$ac_ext" 1724case "(($ac_try" in 1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1726 *) ac_try_echo=$ac_try;; 1727esac 1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1729$as_echo "$ac_try_echo"; } >&5 1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1731 ac_status=$? 1732 if test -s conftest.err; then 1733 grep -v '^ *+' conftest.err >conftest.er1 1734 cat conftest.er1 >&5 1735 mv -f conftest.er1 conftest.err 1736 fi 1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1738 test $ac_status = 0; } > conftest.i && { 1739 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1740 test ! -s conftest.err 1741 }; then : 1742 ac_retval=0 1743else 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=1 1748fi 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1750 as_fn_set_status $ac_retval 1751 1752} # ac_fn_cxx_try_cpp 1753 1754# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 1755# --------------------------------------------------------- 1756# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1757# the include files in INCLUDES and setting the cache variable VAR 1758# accordingly. 1759ac_fn_cxx_check_header_mongrel () 1760{ 1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1762 if eval \${$3+:} false; then : 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1764$as_echo_n "checking for $2... " >&6; } 1765if eval \${$3+:} false; then : 1766 $as_echo_n "(cached) " >&6 1767fi 1768eval ac_res=\$$3 1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1770$as_echo "$ac_res" >&6; } 1771else 1772 # Is the header compilable? 1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1774$as_echo_n "checking $2 usability... " >&6; } 1775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1776/* end confdefs.h. */ 1777$4 1778#include <$2> 1779_ACEOF 1780if ac_fn_cxx_try_compile "$LINENO"; then : 1781 ac_header_compiler=yes 1782else 1783 ac_header_compiler=no 1784fi 1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1787$as_echo "$ac_header_compiler" >&6; } 1788 1789# Is the header present? 1790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1791$as_echo_n "checking $2 presence... " >&6; } 1792cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1793/* end confdefs.h. */ 1794#include <$2> 1795_ACEOF 1796if ac_fn_cxx_try_cpp "$LINENO"; then : 1797 ac_header_preproc=yes 1798else 1799 ac_header_preproc=no 1800fi 1801rm -f conftest.err conftest.i conftest.$ac_ext 1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1803$as_echo "$ac_header_preproc" >&6; } 1804 1805# So? What about this header? 1806case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 1807 yes:no: ) 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1809$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1812 ;; 1813 no:yes:* ) 1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1815$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1817$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1819$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1821$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1823$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1824( $as_echo "## -------------------------------------------------------- ## 1825## Report this to http://sourceforge.net/projects/asymptote ## 1826## -------------------------------------------------------- ##" 1827 ) | sed "s/^/$as_me: WARNING: /" >&2 1828 ;; 1829esac 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1831$as_echo_n "checking for $2... " >&6; } 1832if eval \${$3+:} false; then : 1833 $as_echo_n "(cached) " >&6 1834else 1835 eval "$3=\$ac_header_compiler" 1836fi 1837eval ac_res=\$$3 1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1839$as_echo "$ac_res" >&6; } 1840fi 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 1843} # ac_fn_cxx_check_header_mongrel 1844 1845# ac_fn_cxx_check_func LINENO FUNC VAR 1846# ------------------------------------ 1847# Tests whether FUNC exists, setting the cache variable VAR accordingly 1848ac_fn_cxx_check_func () 1849{ 1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1852$as_echo_n "checking for $2... " >&6; } 1853if eval \${$3+:} false; then : 1854 $as_echo_n "(cached) " >&6 1855else 1856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1857/* end confdefs.h. */ 1858/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1859 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1860#define $2 innocuous_$2 1861 1862/* System header to define __stub macros and hopefully few prototypes, 1863 which can conflict with char $2 (); below. 1864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1865 <limits.h> exists even on freestanding compilers. */ 1866 1867#ifdef __STDC__ 1868# include <limits.h> 1869#else 1870# include <assert.h> 1871#endif 1872 1873#undef $2 1874 1875/* Override any GCC internal prototype to avoid an error. 1876 Use char because int might match the return type of a GCC 1877 builtin and then its argument prototype would still apply. */ 1878#ifdef __cplusplus 1879extern "C" 1880#endif 1881char $2 (); 1882/* The GNU C library defines this for functions which it implements 1883 to always fail with ENOSYS. Some functions are actually named 1884 something starting with __ and the normal name is an alias. */ 1885#if defined __stub_$2 || defined __stub___$2 1886choke me 1887#endif 1888 1889int 1890main () 1891{ 1892return $2 (); 1893 ; 1894 return 0; 1895} 1896_ACEOF 1897if ac_fn_cxx_try_link "$LINENO"; then : 1898 eval "$3=yes" 1899else 1900 eval "$3=no" 1901fi 1902rm -f core conftest.err conftest.$ac_objext \ 1903 conftest$ac_exeext conftest.$ac_ext 1904fi 1905eval ac_res=\$$3 1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1907$as_echo "$ac_res" >&6; } 1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1909 1910} # ac_fn_cxx_check_func 1911 1912# ac_fn_c_try_link LINENO 1913# ----------------------- 1914# Try to link conftest.$ac_ext, and return whether this succeeded. 1915ac_fn_c_try_link () 1916{ 1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1918 rm -f conftest.$ac_objext conftest$ac_exeext 1919 if { { ac_try="$ac_link" 1920case "(($ac_try" in 1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1922 *) ac_try_echo=$ac_try;; 1923esac 1924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1925$as_echo "$ac_try_echo"; } >&5 1926 (eval "$ac_link") 2>conftest.err 1927 ac_status=$? 1928 if test -s conftest.err; then 1929 grep -v '^ *+' conftest.err >conftest.er1 1930 cat conftest.er1 >&5 1931 mv -f conftest.er1 conftest.err 1932 fi 1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1934 test $ac_status = 0; } && { 1935 test -z "$ac_c_werror_flag" || 1936 test ! -s conftest.err 1937 } && test -s conftest$ac_exeext && { 1938 test "$cross_compiling" = yes || 1939 test -x conftest$ac_exeext 1940 }; then : 1941 ac_retval=0 1942else 1943 $as_echo "$as_me: failed program was:" >&5 1944sed 's/^/| /' conftest.$ac_ext >&5 1945 1946 ac_retval=1 1947fi 1948 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1949 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1950 # interfere with the next link command; also delete a directory that is 1951 # left behind by Apple's compiler. We do this before executing the actions. 1952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1953 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1954 as_fn_set_status $ac_retval 1955 1956} # ac_fn_c_try_link 1957 1958# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 1959# --------------------------------------------- 1960# Tests whether TYPE exists after having included INCLUDES, setting cache 1961# variable VAR accordingly. 1962ac_fn_cxx_check_type () 1963{ 1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1966$as_echo_n "checking for $2... " >&6; } 1967if eval \${$3+:} false; then : 1968 $as_echo_n "(cached) " >&6 1969else 1970 eval "$3=no" 1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1972/* end confdefs.h. */ 1973$4 1974int 1975main () 1976{ 1977if (sizeof ($2)) 1978 return 0; 1979 ; 1980 return 0; 1981} 1982_ACEOF 1983if ac_fn_cxx_try_compile "$LINENO"; then : 1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1985/* end confdefs.h. */ 1986$4 1987int 1988main () 1989{ 1990if (sizeof (($2))) 1991 return 0; 1992 ; 1993 return 0; 1994} 1995_ACEOF 1996if ac_fn_cxx_try_compile "$LINENO"; then : 1997 1998else 1999 eval "$3=yes" 2000fi 2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2002fi 2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2004fi 2005eval ac_res=\$$3 2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2007$as_echo "$ac_res" >&6; } 2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2009 2010} # ac_fn_cxx_check_type 2011 2012# ac_fn_cxx_try_run LINENO 2013# ------------------------ 2014# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2015# that executables *can* be run. 2016ac_fn_cxx_try_run () 2017{ 2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2019 if { { ac_try="$ac_link" 2020case "(($ac_try" in 2021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2022 *) ac_try_echo=$ac_try;; 2023esac 2024eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2025$as_echo "$ac_try_echo"; } >&5 2026 (eval "$ac_link") 2>&5 2027 ac_status=$? 2028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2029 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2030 { { case "(($ac_try" in 2031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2032 *) ac_try_echo=$ac_try;; 2033esac 2034eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2035$as_echo "$ac_try_echo"; } >&5 2036 (eval "$ac_try") 2>&5 2037 ac_status=$? 2038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2039 test $ac_status = 0; }; }; then : 2040 ac_retval=0 2041else 2042 $as_echo "$as_me: program exited with status $ac_status" >&5 2043 $as_echo "$as_me: failed program was:" >&5 2044sed 's/^/| /' conftest.$ac_ext >&5 2045 2046 ac_retval=$ac_status 2047fi 2048 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2049 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2050 as_fn_set_status $ac_retval 2051 2052} # ac_fn_cxx_try_run 2053cat >config.log <<_ACEOF 2054This file contains any messages produced by compilers while 2055running configure, to aid debugging if configure makes a mistake. 2056 2057It was created by Asymptote $as_me 2.67, which was 2058generated by GNU Autoconf 2.69. Invocation command line was 2059 2060 $ $0 $@ 2061 2062_ACEOF 2063exec 5>>config.log 2064{ 2065cat <<_ASUNAME 2066## --------- ## 2067## Platform. ## 2068## --------- ## 2069 2070hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2071uname -m = `(uname -m) 2>/dev/null || echo unknown` 2072uname -r = `(uname -r) 2>/dev/null || echo unknown` 2073uname -s = `(uname -s) 2>/dev/null || echo unknown` 2074uname -v = `(uname -v) 2>/dev/null || echo unknown` 2075 2076/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2077/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2078 2079/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2080/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2081/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2082/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2083/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2084/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2085/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2086 2087_ASUNAME 2088 2089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2090for as_dir in $PATH 2091do 2092 IFS=$as_save_IFS 2093 test -z "$as_dir" && as_dir=. 2094 $as_echo "PATH: $as_dir" 2095 done 2096IFS=$as_save_IFS 2097 2098} >&5 2099 2100cat >&5 <<_ACEOF 2101 2102 2103## ----------- ## 2104## Core tests. ## 2105## ----------- ## 2106 2107_ACEOF 2108 2109 2110# Keep a trace of the command line. 2111# Strip out --no-create and --no-recursion so they do not pile up. 2112# Strip out --silent because we don't want to record it for future runs. 2113# Also quote any args containing shell meta-characters. 2114# Make two passes to allow for proper duplicate-argument suppression. 2115ac_configure_args= 2116ac_configure_args0= 2117ac_configure_args1= 2118ac_must_keep_next=false 2119for ac_pass in 1 2 2120do 2121 for ac_arg 2122 do 2123 case $ac_arg in 2124 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2125 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2126 | -silent | --silent | --silen | --sile | --sil) 2127 continue ;; 2128 *\'*) 2129 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2130 esac 2131 case $ac_pass in 2132 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2133 2) 2134 as_fn_append ac_configure_args1 " '$ac_arg'" 2135 if test $ac_must_keep_next = true; then 2136 ac_must_keep_next=false # Got value, back to normal. 2137 else 2138 case $ac_arg in 2139 *=* | --config-cache | -C | -disable-* | --disable-* \ 2140 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2141 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2142 | -with-* | --with-* | -without-* | --without-* | --x) 2143 case "$ac_configure_args0 " in 2144 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2145 esac 2146 ;; 2147 -* ) ac_must_keep_next=true ;; 2148 esac 2149 fi 2150 as_fn_append ac_configure_args " '$ac_arg'" 2151 ;; 2152 esac 2153 done 2154done 2155{ ac_configure_args0=; unset ac_configure_args0;} 2156{ ac_configure_args1=; unset ac_configure_args1;} 2157 2158# When interrupted or exit'd, cleanup temporary files, and complete 2159# config.log. We remove comments because anyway the quotes in there 2160# would cause problems or look ugly. 2161# WARNING: Use '\'' to represent an apostrophe within the trap. 2162# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2163trap 'exit_status=$? 2164 # Save into config.log some information that might help in debugging. 2165 { 2166 echo 2167 2168 $as_echo "## ---------------- ## 2169## Cache variables. ## 2170## ---------------- ##" 2171 echo 2172 # The following way of writing the cache mishandles newlines in values, 2173( 2174 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2175 eval ac_val=\$$ac_var 2176 case $ac_val in #( 2177 *${as_nl}*) 2178 case $ac_var in #( 2179 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2180$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2181 esac 2182 case $ac_var in #( 2183 _ | IFS | as_nl) ;; #( 2184 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2185 *) { eval $ac_var=; unset $ac_var;} ;; 2186 esac ;; 2187 esac 2188 done 2189 (set) 2>&1 | 2190 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2191 *${as_nl}ac_space=\ *) 2192 sed -n \ 2193 "s/'\''/'\''\\\\'\'''\''/g; 2194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2195 ;; #( 2196 *) 2197 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2198 ;; 2199 esac | 2200 sort 2201) 2202 echo 2203 2204 $as_echo "## ----------------- ## 2205## Output variables. ## 2206## ----------------- ##" 2207 echo 2208 for ac_var in $ac_subst_vars 2209 do 2210 eval ac_val=\$$ac_var 2211 case $ac_val in 2212 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2213 esac 2214 $as_echo "$ac_var='\''$ac_val'\''" 2215 done | sort 2216 echo 2217 2218 if test -n "$ac_subst_files"; then 2219 $as_echo "## ------------------- ## 2220## File substitutions. ## 2221## ------------------- ##" 2222 echo 2223 for ac_var in $ac_subst_files 2224 do 2225 eval ac_val=\$$ac_var 2226 case $ac_val in 2227 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2228 esac 2229 $as_echo "$ac_var='\''$ac_val'\''" 2230 done | sort 2231 echo 2232 fi 2233 2234 if test -s confdefs.h; then 2235 $as_echo "## ----------- ## 2236## confdefs.h. ## 2237## ----------- ##" 2238 echo 2239 cat confdefs.h 2240 echo 2241 fi 2242 test "$ac_signal" != 0 && 2243 $as_echo "$as_me: caught signal $ac_signal" 2244 $as_echo "$as_me: exit $exit_status" 2245 } >&5 2246 rm -f core *.core core.conftest.* && 2247 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2248 exit $exit_status 2249' 0 2250for ac_signal in 1 2 13 15; do 2251 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2252done 2253ac_signal=0 2254 2255# confdefs.h avoids OS command line length limits that DEFS can exceed. 2256rm -f -r conftest* confdefs.h 2257 2258$as_echo "/* confdefs.h */" > confdefs.h 2259 2260# Predefined preprocessor variables. 2261 2262cat >>confdefs.h <<_ACEOF 2263#define PACKAGE_NAME "$PACKAGE_NAME" 2264_ACEOF 2265 2266cat >>confdefs.h <<_ACEOF 2267#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2268_ACEOF 2269 2270cat >>confdefs.h <<_ACEOF 2271#define PACKAGE_VERSION "$PACKAGE_VERSION" 2272_ACEOF 2273 2274cat >>confdefs.h <<_ACEOF 2275#define PACKAGE_STRING "$PACKAGE_STRING" 2276_ACEOF 2277 2278cat >>confdefs.h <<_ACEOF 2279#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2280_ACEOF 2281 2282cat >>confdefs.h <<_ACEOF 2283#define PACKAGE_URL "$PACKAGE_URL" 2284_ACEOF 2285 2286 2287# Let the site file select an alternate cache file if it wants to. 2288# Prefer an explicitly selected file to automatically selected ones. 2289ac_site_file1=NONE 2290ac_site_file2=NONE 2291if test -n "$CONFIG_SITE"; then 2292 # We do not want a PATH search for config.site. 2293 case $CONFIG_SITE in #(( 2294 -*) ac_site_file1=./$CONFIG_SITE;; 2295 */*) ac_site_file1=$CONFIG_SITE;; 2296 *) ac_site_file1=./$CONFIG_SITE;; 2297 esac 2298elif test "x$prefix" != xNONE; then 2299 ac_site_file1=$prefix/share/config.site 2300 ac_site_file2=$prefix/etc/config.site 2301else 2302 ac_site_file1=$ac_default_prefix/share/config.site 2303 ac_site_file2=$ac_default_prefix/etc/config.site 2304fi 2305for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2306do 2307 test "x$ac_site_file" = xNONE && continue 2308 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2309 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2310$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2311 sed 's/^/| /' "$ac_site_file" >&5 2312 . "$ac_site_file" \ 2313 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2315as_fn_error $? "failed to load site script $ac_site_file 2316See \`config.log' for more details" "$LINENO" 5; } 2317 fi 2318done 2319 2320if test -r "$cache_file"; then 2321 # Some versions of bash will fail to source /dev/null (special files 2322 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2323 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2324 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2325$as_echo "$as_me: loading cache $cache_file" >&6;} 2326 case $cache_file in 2327 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2328 *) . "./$cache_file";; 2329 esac 2330 fi 2331else 2332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2333$as_echo "$as_me: creating cache $cache_file" >&6;} 2334 >$cache_file 2335fi 2336 2337# Check that the precious variables saved in the cache have kept the same 2338# value. 2339ac_cache_corrupted=false 2340for ac_var in $ac_precious_vars; do 2341 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2342 eval ac_new_set=\$ac_env_${ac_var}_set 2343 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2344 eval ac_new_val=\$ac_env_${ac_var}_value 2345 case $ac_old_set,$ac_new_set in 2346 set,) 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2348$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2349 ac_cache_corrupted=: ;; 2350 ,set) 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2352$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2353 ac_cache_corrupted=: ;; 2354 ,);; 2355 *) 2356 if test "x$ac_old_val" != "x$ac_new_val"; then 2357 # differences in whitespace do not lead to failure. 2358 ac_old_val_w=`echo x $ac_old_val` 2359 ac_new_val_w=`echo x $ac_new_val` 2360 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2362$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2363 ac_cache_corrupted=: 2364 else 2365 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2366$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2367 eval $ac_var=\$ac_old_val 2368 fi 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2370$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2372$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2373 fi;; 2374 esac 2375 # Pass precious variables to config.status. 2376 if test "$ac_new_set" = set; then 2377 case $ac_new_val in 2378 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2379 *) ac_arg=$ac_var=$ac_new_val ;; 2380 esac 2381 case " $ac_configure_args " in 2382 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2383 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2384 esac 2385 fi 2386done 2387if $ac_cache_corrupted; then 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2389$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2391$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2392 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2393fi 2394## -------------------- ## 2395## Main body of script. ## 2396## -------------------- ## 2397 2398ac_ext=c 2399ac_cpp='$CPP $CPPFLAGS' 2400ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2401ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2402ac_compiler_gnu=$ac_cv_c_compiler_gnu 2403 2404 2405VERSION=$PACKAGE_VERSION 2406 2407# =========================================================================== 2408# http://www.gnu.org/software/autoconf-archive/ax_pthread.html 2409# =========================================================================== 2410# 2411# SYNOPSIS 2412# 2413# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 2414# 2415# DESCRIPTION 2416# 2417# This macro figures out how to build C programs using POSIX threads. It 2418# sets the PTHREAD_LIBS output variable to the threads library and linker 2419# flags, and the PTHREAD_CFLAGS output variable to any special C compiler 2420# flags that are needed. (The user can also force certain compiler 2421# flags/libs to be tested by setting these environment variables.) 2422# 2423# Also sets PTHREAD_CC to any special C compiler that is needed for 2424# multi-threaded programs (defaults to the value of CC otherwise). (This 2425# is necessary on AIX to use the special cc_r compiler alias.) 2426# 2427# NOTE: You are assumed to not only compile your program with these flags, 2428# but also link it with them as well. e.g. you should link with 2429# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS 2430# 2431# If you are only building threads programs, you may wish to use these 2432# variables in your default LIBS, CFLAGS, and CC: 2433# 2434# LIBS="$PTHREAD_LIBS $LIBS" 2435# CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 2436# CC="$PTHREAD_CC" 2437# 2438# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant 2439# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name 2440# (e.g. PTHREAD_CREATE_UNDETACHED on AIX). 2441# 2442# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the 2443# PTHREAD_PRIO_INHERIT symbol is defined when compiling with 2444# PTHREAD_CFLAGS. 2445# 2446# ACTION-IF-FOUND is a list of shell commands to run if a threads library 2447# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it 2448# is not found. If ACTION-IF-FOUND is not specified, the default action 2449# will define HAVE_PTHREAD. 2450# 2451# Please let the authors know if this macro fails on any platform, or if 2452# you have any other suggestions or comments. This macro was based on work 2453# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help 2454# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by 2455# Alejandro Forero Cuervo to the autoconf macro repository. We are also 2456# grateful for the helpful feedback of numerous users. 2457# 2458# Updated for Autoconf 2.68 by Daniel Richard G. 2459# 2460# LICENSE 2461# 2462# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> 2463# Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG> 2464# 2465# This program is free software: you can redistribute it and/or modify it 2466# under the terms of the GNU General Public License as published by the 2467# Free Software Foundation, either version 3 of the License, or (at your 2468# option) any later version. 2469# 2470# This program is distributed in the hope that it will be useful, but 2471# WITHOUT ANY WARRANTY; without even the implied warranty of 2472# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 2473# Public License for more details. 2474# 2475# You should have received a copy of the GNU General Public License along 2476# with this program. If not, see <http://www.gnu.org/licenses/>. 2477# 2478# As a special exception, the respective Autoconf Macro's copyright owner 2479# gives unlimited permission to copy, distribute and modify the configure 2480# scripts that are the output of Autoconf when processing the Macro. You 2481# need not follow the terms of the GNU General Public License when using 2482# or distributing such scripts, even though portions of the text of the 2483# Macro appear in them. The GNU General Public License (GPL) does govern 2484# all other use of the material that constitutes the Autoconf Macro. 2485# 2486# This special exception to the GPL applies to versions of the Autoconf 2487# Macro released by the Autoconf Archive. When you make and distribute a 2488# modified version of the Autoconf Macro, you may extend this special 2489# exception to the GPL to apply to your modified version as well. 2490 2491#serial 18 2492 2493# This is what autoupdate's m4 run will expand. It fires 2494# the warning (with _au_warn_XXX), outputs it into the 2495# updated configure.ac (with AC_DIAGNOSE), and then outputs 2496# the replacement expansion. 2497 2498 2499# This is an auxiliary macro that is also run when 2500# autoupdate runs m4. It simply calls m4_warning, but 2501# we need a wrapper so that each warning is emitted only 2502# once. We break the quoting in m4_warning's argument in 2503# order to expand this macro's arguments, not AU_DEFUN's. 2504 2505 2506# Finally, this is the expansion that is picked up by 2507# autoconf. It tells the user to run autoupdate, and 2508# then outputs the replacement expansion. We do not care 2509# about autoupdate's warning because that contains 2510# information on what to do *after* running autoupdate. 2511 2512 2513 2514test "$CXXFLAGS" || CXXFLAGS="-std=c++11" 2515 2516test "$CFLAGS" || CFLAGS="-g -O3" 2517 2518ac_ext=c 2519ac_cpp='$CPP $CPPFLAGS' 2520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2522ac_compiler_gnu=$ac_cv_c_compiler_gnu 2523if test -n "$ac_tool_prefix"; then 2524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2525set dummy ${ac_tool_prefix}gcc; ac_word=$2 2526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2527$as_echo_n "checking for $ac_word... " >&6; } 2528if ${ac_cv_prog_CC+:} false; then : 2529 $as_echo_n "(cached) " >&6 2530else 2531 if test -n "$CC"; then 2532 ac_cv_prog_CC="$CC" # Let the user override the test. 2533else 2534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2535for as_dir in $PATH 2536do 2537 IFS=$as_save_IFS 2538 test -z "$as_dir" && as_dir=. 2539 for ac_exec_ext in '' $ac_executable_extensions; do 2540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2541 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2543 break 2 2544 fi 2545done 2546 done 2547IFS=$as_save_IFS 2548 2549fi 2550fi 2551CC=$ac_cv_prog_CC 2552if test -n "$CC"; then 2553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2554$as_echo "$CC" >&6; } 2555else 2556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2557$as_echo "no" >&6; } 2558fi 2559 2560 2561fi 2562if test -z "$ac_cv_prog_CC"; then 2563 ac_ct_CC=$CC 2564 # Extract the first word of "gcc", so it can be a program name with args. 2565set dummy gcc; ac_word=$2 2566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2567$as_echo_n "checking for $ac_word... " >&6; } 2568if ${ac_cv_prog_ac_ct_CC+:} false; then : 2569 $as_echo_n "(cached) " >&6 2570else 2571 if test -n "$ac_ct_CC"; then 2572 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2573else 2574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2575for as_dir in $PATH 2576do 2577 IFS=$as_save_IFS 2578 test -z "$as_dir" && as_dir=. 2579 for ac_exec_ext in '' $ac_executable_extensions; do 2580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2581 ac_cv_prog_ac_ct_CC="gcc" 2582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2583 break 2 2584 fi 2585done 2586 done 2587IFS=$as_save_IFS 2588 2589fi 2590fi 2591ac_ct_CC=$ac_cv_prog_ac_ct_CC 2592if test -n "$ac_ct_CC"; then 2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2594$as_echo "$ac_ct_CC" >&6; } 2595else 2596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2597$as_echo "no" >&6; } 2598fi 2599 2600 if test "x$ac_ct_CC" = x; then 2601 CC="" 2602 else 2603 case $cross_compiling:$ac_tool_warned in 2604yes:) 2605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2607ac_tool_warned=yes ;; 2608esac 2609 CC=$ac_ct_CC 2610 fi 2611else 2612 CC="$ac_cv_prog_CC" 2613fi 2614 2615if test -z "$CC"; then 2616 if test -n "$ac_tool_prefix"; then 2617 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2618set dummy ${ac_tool_prefix}cc; ac_word=$2 2619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2620$as_echo_n "checking for $ac_word... " >&6; } 2621if ${ac_cv_prog_CC+:} false; then : 2622 $as_echo_n "(cached) " >&6 2623else 2624 if test -n "$CC"; then 2625 ac_cv_prog_CC="$CC" # Let the user override the test. 2626else 2627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2628for as_dir in $PATH 2629do 2630 IFS=$as_save_IFS 2631 test -z "$as_dir" && as_dir=. 2632 for ac_exec_ext in '' $ac_executable_extensions; do 2633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2634 ac_cv_prog_CC="${ac_tool_prefix}cc" 2635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2636 break 2 2637 fi 2638done 2639 done 2640IFS=$as_save_IFS 2641 2642fi 2643fi 2644CC=$ac_cv_prog_CC 2645if test -n "$CC"; then 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2647$as_echo "$CC" >&6; } 2648else 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2650$as_echo "no" >&6; } 2651fi 2652 2653 2654 fi 2655fi 2656if test -z "$CC"; then 2657 # Extract the first word of "cc", so it can be a program name with args. 2658set dummy cc; ac_word=$2 2659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2660$as_echo_n "checking for $ac_word... " >&6; } 2661if ${ac_cv_prog_CC+:} false; then : 2662 $as_echo_n "(cached) " >&6 2663else 2664 if test -n "$CC"; then 2665 ac_cv_prog_CC="$CC" # Let the user override the test. 2666else 2667 ac_prog_rejected=no 2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2669for as_dir in $PATH 2670do 2671 IFS=$as_save_IFS 2672 test -z "$as_dir" && as_dir=. 2673 for ac_exec_ext in '' $ac_executable_extensions; do 2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2675 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2676 ac_prog_rejected=yes 2677 continue 2678 fi 2679 ac_cv_prog_CC="cc" 2680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2681 break 2 2682 fi 2683done 2684 done 2685IFS=$as_save_IFS 2686 2687if test $ac_prog_rejected = yes; then 2688 # We found a bogon in the path, so make sure we never use it. 2689 set dummy $ac_cv_prog_CC 2690 shift 2691 if test $# != 0; then 2692 # We chose a different compiler from the bogus one. 2693 # However, it has the same basename, so the bogon will be chosen 2694 # first if we set CC to just the basename; use the full file name. 2695 shift 2696 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2697 fi 2698fi 2699fi 2700fi 2701CC=$ac_cv_prog_CC 2702if test -n "$CC"; then 2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2704$as_echo "$CC" >&6; } 2705else 2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2707$as_echo "no" >&6; } 2708fi 2709 2710 2711fi 2712if test -z "$CC"; then 2713 if test -n "$ac_tool_prefix"; then 2714 for ac_prog in cl.exe 2715 do 2716 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2717set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2719$as_echo_n "checking for $ac_word... " >&6; } 2720if ${ac_cv_prog_CC+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 if test -n "$CC"; then 2724 ac_cv_prog_CC="$CC" # Let the user override the test. 2725else 2726as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2727for as_dir in $PATH 2728do 2729 IFS=$as_save_IFS 2730 test -z "$as_dir" && as_dir=. 2731 for ac_exec_ext in '' $ac_executable_extensions; do 2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2733 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2735 break 2 2736 fi 2737done 2738 done 2739IFS=$as_save_IFS 2740 2741fi 2742fi 2743CC=$ac_cv_prog_CC 2744if test -n "$CC"; then 2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2746$as_echo "$CC" >&6; } 2747else 2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2749$as_echo "no" >&6; } 2750fi 2751 2752 2753 test -n "$CC" && break 2754 done 2755fi 2756if test -z "$CC"; then 2757 ac_ct_CC=$CC 2758 for ac_prog in cl.exe 2759do 2760 # Extract the first word of "$ac_prog", so it can be a program name with args. 2761set dummy $ac_prog; ac_word=$2 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2763$as_echo_n "checking for $ac_word... " >&6; } 2764if ${ac_cv_prog_ac_ct_CC+:} false; then : 2765 $as_echo_n "(cached) " >&6 2766else 2767 if test -n "$ac_ct_CC"; then 2768 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2769else 2770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2771for as_dir in $PATH 2772do 2773 IFS=$as_save_IFS 2774 test -z "$as_dir" && as_dir=. 2775 for ac_exec_ext in '' $ac_executable_extensions; do 2776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2777 ac_cv_prog_ac_ct_CC="$ac_prog" 2778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2779 break 2 2780 fi 2781done 2782 done 2783IFS=$as_save_IFS 2784 2785fi 2786fi 2787ac_ct_CC=$ac_cv_prog_ac_ct_CC 2788if test -n "$ac_ct_CC"; then 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2790$as_echo "$ac_ct_CC" >&6; } 2791else 2792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2793$as_echo "no" >&6; } 2794fi 2795 2796 2797 test -n "$ac_ct_CC" && break 2798done 2799 2800 if test "x$ac_ct_CC" = x; then 2801 CC="" 2802 else 2803 case $cross_compiling:$ac_tool_warned in 2804yes:) 2805{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2806$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2807ac_tool_warned=yes ;; 2808esac 2809 CC=$ac_ct_CC 2810 fi 2811fi 2812 2813fi 2814 2815 2816test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2817$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2818as_fn_error $? "no acceptable C compiler found in \$PATH 2819See \`config.log' for more details" "$LINENO" 5; } 2820 2821# Provide some information about the compiler. 2822$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2823set X $ac_compile 2824ac_compiler=$2 2825for ac_option in --version -v -V -qversion; do 2826 { { ac_try="$ac_compiler $ac_option >&5" 2827case "(($ac_try" in 2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2829 *) ac_try_echo=$ac_try;; 2830esac 2831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2832$as_echo "$ac_try_echo"; } >&5 2833 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2834 ac_status=$? 2835 if test -s conftest.err; then 2836 sed '10a\ 2837... rest of stderr output deleted ... 2838 10q' conftest.err >conftest.er1 2839 cat conftest.er1 >&5 2840 fi 2841 rm -f conftest.er1 conftest.err 2842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2843 test $ac_status = 0; } 2844done 2845 2846cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2847/* end confdefs.h. */ 2848 2849int 2850main () 2851{ 2852 2853 ; 2854 return 0; 2855} 2856_ACEOF 2857ac_clean_files_save=$ac_clean_files 2858ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2859# Try to create an executable without -o first, disregard a.out. 2860# It will help us diagnose broken compilers, and finding out an intuition 2861# of exeext. 2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2863$as_echo_n "checking whether the C compiler works... " >&6; } 2864ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2865 2866# The possible output files: 2867ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2868 2869ac_rmfiles= 2870for ac_file in $ac_files 2871do 2872 case $ac_file in 2873 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2874 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2875 esac 2876done 2877rm -f $ac_rmfiles 2878 2879if { { ac_try="$ac_link_default" 2880case "(($ac_try" in 2881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2882 *) ac_try_echo=$ac_try;; 2883esac 2884eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2885$as_echo "$ac_try_echo"; } >&5 2886 (eval "$ac_link_default") 2>&5 2887 ac_status=$? 2888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2889 test $ac_status = 0; }; then : 2890 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2891# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2892# in a Makefile. We should not override ac_cv_exeext if it was cached, 2893# so that the user can short-circuit this test for compilers unknown to 2894# Autoconf. 2895for ac_file in $ac_files '' 2896do 2897 test -f "$ac_file" || continue 2898 case $ac_file in 2899 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2900 ;; 2901 [ab].out ) 2902 # We found the default executable, but exeext='' is most 2903 # certainly right. 2904 break;; 2905 *.* ) 2906 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2907 then :; else 2908 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2909 fi 2910 # We set ac_cv_exeext here because the later test for it is not 2911 # safe: cross compilers may not add the suffix if given an `-o' 2912 # argument, so we may need to know it at that point already. 2913 # Even if this section looks crufty: it has the advantage of 2914 # actually working. 2915 break;; 2916 * ) 2917 break;; 2918 esac 2919done 2920test "$ac_cv_exeext" = no && ac_cv_exeext= 2921 2922else 2923 ac_file='' 2924fi 2925if test -z "$ac_file"; then : 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927$as_echo "no" >&6; } 2928$as_echo "$as_me: failed program was:" >&5 2929sed 's/^/| /' conftest.$ac_ext >&5 2930 2931{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2932$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2933as_fn_error 77 "C compiler cannot create executables 2934See \`config.log' for more details" "$LINENO" 5; } 2935else 2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2937$as_echo "yes" >&6; } 2938fi 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2940$as_echo_n "checking for C compiler default output file name... " >&6; } 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2942$as_echo "$ac_file" >&6; } 2943ac_exeext=$ac_cv_exeext 2944 2945rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2946ac_clean_files=$ac_clean_files_save 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2948$as_echo_n "checking for suffix of executables... " >&6; } 2949if { { ac_try="$ac_link" 2950case "(($ac_try" in 2951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2952 *) ac_try_echo=$ac_try;; 2953esac 2954eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2955$as_echo "$ac_try_echo"; } >&5 2956 (eval "$ac_link") 2>&5 2957 ac_status=$? 2958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2959 test $ac_status = 0; }; then : 2960 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2961# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2962# work properly (i.e., refer to `conftest.exe'), while it won't with 2963# `rm'. 2964for ac_file in conftest.exe conftest conftest.*; do 2965 test -f "$ac_file" || continue 2966 case $ac_file in 2967 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2968 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2969 break;; 2970 * ) break;; 2971 esac 2972done 2973else 2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2975$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2976as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2977See \`config.log' for more details" "$LINENO" 5; } 2978fi 2979rm -f conftest conftest$ac_cv_exeext 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2981$as_echo "$ac_cv_exeext" >&6; } 2982 2983rm -f conftest.$ac_ext 2984EXEEXT=$ac_cv_exeext 2985ac_exeext=$EXEEXT 2986cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2987/* end confdefs.h. */ 2988#include <stdio.h> 2989int 2990main () 2991{ 2992FILE *f = fopen ("conftest.out", "w"); 2993 return ferror (f) || fclose (f) != 0; 2994 2995 ; 2996 return 0; 2997} 2998_ACEOF 2999ac_clean_files="$ac_clean_files conftest.out" 3000# Check that the compiler produces executables we can run. If not, either 3001# the compiler is broken, or we cross compile. 3002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3003$as_echo_n "checking whether we are cross compiling... " >&6; } 3004if test "$cross_compiling" != yes; then 3005 { { ac_try="$ac_link" 3006case "(($ac_try" in 3007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3008 *) ac_try_echo=$ac_try;; 3009esac 3010eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3011$as_echo "$ac_try_echo"; } >&5 3012 (eval "$ac_link") 2>&5 3013 ac_status=$? 3014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3015 test $ac_status = 0; } 3016 if { ac_try='./conftest$ac_cv_exeext' 3017 { { case "(($ac_try" in 3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3019 *) ac_try_echo=$ac_try;; 3020esac 3021eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3022$as_echo "$ac_try_echo"; } >&5 3023 (eval "$ac_try") 2>&5 3024 ac_status=$? 3025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3026 test $ac_status = 0; }; }; then 3027 cross_compiling=no 3028 else 3029 if test "$cross_compiling" = maybe; then 3030 cross_compiling=yes 3031 else 3032 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3033$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3034as_fn_error $? "cannot run C compiled programs. 3035If you meant to cross compile, use \`--host'. 3036See \`config.log' for more details" "$LINENO" 5; } 3037 fi 3038 fi 3039fi 3040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3041$as_echo "$cross_compiling" >&6; } 3042 3043rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3044ac_clean_files=$ac_clean_files_save 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3046$as_echo_n "checking for suffix of object files... " >&6; } 3047if ${ac_cv_objext+:} false; then : 3048 $as_echo_n "(cached) " >&6 3049else 3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3051/* end confdefs.h. */ 3052 3053int 3054main () 3055{ 3056 3057 ; 3058 return 0; 3059} 3060_ACEOF 3061rm -f conftest.o conftest.obj 3062if { { ac_try="$ac_compile" 3063case "(($ac_try" in 3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3065 *) ac_try_echo=$ac_try;; 3066esac 3067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3068$as_echo "$ac_try_echo"; } >&5 3069 (eval "$ac_compile") 2>&5 3070 ac_status=$? 3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3072 test $ac_status = 0; }; then : 3073 for ac_file in conftest.o conftest.obj conftest.*; do 3074 test -f "$ac_file" || continue; 3075 case $ac_file in 3076 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3077 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3078 break;; 3079 esac 3080done 3081else 3082 $as_echo "$as_me: failed program was:" >&5 3083sed 's/^/| /' conftest.$ac_ext >&5 3084 3085{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3086$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3087as_fn_error $? "cannot compute suffix of object files: cannot compile 3088See \`config.log' for more details" "$LINENO" 5; } 3089fi 3090rm -f conftest.$ac_cv_objext conftest.$ac_ext 3091fi 3092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3093$as_echo "$ac_cv_objext" >&6; } 3094OBJEXT=$ac_cv_objext 3095ac_objext=$OBJEXT 3096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3097$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3098if ${ac_cv_c_compiler_gnu+:} false; then : 3099 $as_echo_n "(cached) " >&6 3100else 3101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3102/* end confdefs.h. */ 3103 3104int 3105main () 3106{ 3107#ifndef __GNUC__ 3108 choke me 3109#endif 3110 3111 ; 3112 return 0; 3113} 3114_ACEOF 3115if ac_fn_c_try_compile "$LINENO"; then : 3116 ac_compiler_gnu=yes 3117else 3118 ac_compiler_gnu=no 3119fi 3120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3121ac_cv_c_compiler_gnu=$ac_compiler_gnu 3122 3123fi 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3125$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3126if test $ac_compiler_gnu = yes; then 3127 GCC=yes 3128else 3129 GCC= 3130fi 3131ac_test_CFLAGS=${CFLAGS+set} 3132ac_save_CFLAGS=$CFLAGS 3133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3134$as_echo_n "checking whether $CC accepts -g... " >&6; } 3135if ${ac_cv_prog_cc_g+:} false; then : 3136 $as_echo_n "(cached) " >&6 3137else 3138 ac_save_c_werror_flag=$ac_c_werror_flag 3139 ac_c_werror_flag=yes 3140 ac_cv_prog_cc_g=no 3141 CFLAGS="-g" 3142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3143/* end confdefs.h. */ 3144 3145int 3146main () 3147{ 3148 3149 ; 3150 return 0; 3151} 3152_ACEOF 3153if ac_fn_c_try_compile "$LINENO"; then : 3154 ac_cv_prog_cc_g=yes 3155else 3156 CFLAGS="" 3157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3158/* end confdefs.h. */ 3159 3160int 3161main () 3162{ 3163 3164 ; 3165 return 0; 3166} 3167_ACEOF 3168if ac_fn_c_try_compile "$LINENO"; then : 3169 3170else 3171 ac_c_werror_flag=$ac_save_c_werror_flag 3172 CFLAGS="-g" 3173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3174/* end confdefs.h. */ 3175 3176int 3177main () 3178{ 3179 3180 ; 3181 return 0; 3182} 3183_ACEOF 3184if ac_fn_c_try_compile "$LINENO"; then : 3185 ac_cv_prog_cc_g=yes 3186fi 3187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3188fi 3189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3190fi 3191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3192 ac_c_werror_flag=$ac_save_c_werror_flag 3193fi 3194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3195$as_echo "$ac_cv_prog_cc_g" >&6; } 3196if test "$ac_test_CFLAGS" = set; then 3197 CFLAGS=$ac_save_CFLAGS 3198elif test $ac_cv_prog_cc_g = yes; then 3199 if test "$GCC" = yes; then 3200 CFLAGS="-g -O2" 3201 else 3202 CFLAGS="-g" 3203 fi 3204else 3205 if test "$GCC" = yes; then 3206 CFLAGS="-O2" 3207 else 3208 CFLAGS= 3209 fi 3210fi 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3212$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3213if ${ac_cv_prog_cc_c89+:} false; then : 3214 $as_echo_n "(cached) " >&6 3215else 3216 ac_cv_prog_cc_c89=no 3217ac_save_CC=$CC 3218cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3219/* end confdefs.h. */ 3220#include <stdarg.h> 3221#include <stdio.h> 3222struct stat; 3223/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3224struct buf { int x; }; 3225FILE * (*rcsopen) (struct buf *, struct stat *, int); 3226static char *e (p, i) 3227 char **p; 3228 int i; 3229{ 3230 return p[i]; 3231} 3232static char *f (char * (*g) (char **, int), char **p, ...) 3233{ 3234 char *s; 3235 va_list v; 3236 va_start (v,p); 3237 s = g (p, va_arg (v,int)); 3238 va_end (v); 3239 return s; 3240} 3241 3242/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3243 function prototypes and stuff, but not '\xHH' hex character constants. 3244 These don't provoke an error unfortunately, instead are silently treated 3245 as 'x'. The following induces an error, until -std is added to get 3246 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3247 array size at least. It's necessary to write '\x00'==0 to get something 3248 that's true only with -std. */ 3249int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3250 3251/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3252 inside strings and character constants. */ 3253#define FOO(x) 'x' 3254int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3255 3256int test (int i, double x); 3257struct s1 {int (*f) (int a);}; 3258struct s2 {int (*f) (double a);}; 3259int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3260int argc; 3261char **argv; 3262int 3263main () 3264{ 3265return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3266 ; 3267 return 0; 3268} 3269_ACEOF 3270for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3271 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3272do 3273 CC="$ac_save_CC $ac_arg" 3274 if ac_fn_c_try_compile "$LINENO"; then : 3275 ac_cv_prog_cc_c89=$ac_arg 3276fi 3277rm -f core conftest.err conftest.$ac_objext 3278 test "x$ac_cv_prog_cc_c89" != "xno" && break 3279done 3280rm -f conftest.$ac_ext 3281CC=$ac_save_CC 3282 3283fi 3284# AC_CACHE_VAL 3285case "x$ac_cv_prog_cc_c89" in 3286 x) 3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3288$as_echo "none needed" >&6; } ;; 3289 xno) 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3291$as_echo "unsupported" >&6; } ;; 3292 *) 3293 CC="$CC $ac_cv_prog_cc_c89" 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3295$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3296esac 3297if test "x$ac_cv_prog_cc_c89" != xno; then : 3298 3299fi 3300 3301ac_ext=c 3302ac_cpp='$CPP $CPPFLAGS' 3303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3305ac_compiler_gnu=$ac_cv_c_compiler_gnu 3306 3307 3308ac_ext=c 3309ac_cpp='$CPP $CPPFLAGS' 3310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3312ac_compiler_gnu=$ac_cv_c_compiler_gnu 3313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3314$as_echo_n "checking how to run the C preprocessor... " >&6; } 3315# On Suns, sometimes $CPP names a directory. 3316if test -n "$CPP" && test -d "$CPP"; then 3317 CPP= 3318fi 3319if test -z "$CPP"; then 3320 if ${ac_cv_prog_CPP+:} false; then : 3321 $as_echo_n "(cached) " >&6 3322else 3323 # Double quotes because CPP needs to be expanded 3324 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3325 do 3326 ac_preproc_ok=false 3327for ac_c_preproc_warn_flag in '' yes 3328do 3329 # Use a header file that comes with gcc, so configuring glibc 3330 # with a fresh cross-compiler works. 3331 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3332 # <limits.h> exists even on freestanding compilers. 3333 # On the NeXT, cc -E runs the code through the compiler's parser, 3334 # not just through cpp. "Syntax error" is here to catch this case. 3335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3336/* end confdefs.h. */ 3337#ifdef __STDC__ 3338# include <limits.h> 3339#else 3340# include <assert.h> 3341#endif 3342 Syntax error 3343_ACEOF 3344if ac_fn_c_try_cpp "$LINENO"; then : 3345 3346else 3347 # Broken: fails on valid input. 3348continue 3349fi 3350rm -f conftest.err conftest.i conftest.$ac_ext 3351 3352 # OK, works on sane cases. Now check whether nonexistent headers 3353 # can be detected and how. 3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3355/* end confdefs.h. */ 3356#include <ac_nonexistent.h> 3357_ACEOF 3358if ac_fn_c_try_cpp "$LINENO"; then : 3359 # Broken: success on invalid input. 3360continue 3361else 3362 # Passes both tests. 3363ac_preproc_ok=: 3364break 3365fi 3366rm -f conftest.err conftest.i conftest.$ac_ext 3367 3368done 3369# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3370rm -f conftest.i conftest.err conftest.$ac_ext 3371if $ac_preproc_ok; then : 3372 break 3373fi 3374 3375 done 3376 ac_cv_prog_CPP=$CPP 3377 3378fi 3379 CPP=$ac_cv_prog_CPP 3380else 3381 ac_cv_prog_CPP=$CPP 3382fi 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3384$as_echo "$CPP" >&6; } 3385ac_preproc_ok=false 3386for ac_c_preproc_warn_flag in '' yes 3387do 3388 # Use a header file that comes with gcc, so configuring glibc 3389 # with a fresh cross-compiler works. 3390 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3391 # <limits.h> exists even on freestanding compilers. 3392 # On the NeXT, cc -E runs the code through the compiler's parser, 3393 # not just through cpp. "Syntax error" is here to catch this case. 3394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3395/* end confdefs.h. */ 3396#ifdef __STDC__ 3397# include <limits.h> 3398#else 3399# include <assert.h> 3400#endif 3401 Syntax error 3402_ACEOF 3403if ac_fn_c_try_cpp "$LINENO"; then : 3404 3405else 3406 # Broken: fails on valid input. 3407continue 3408fi 3409rm -f conftest.err conftest.i conftest.$ac_ext 3410 3411 # OK, works on sane cases. Now check whether nonexistent headers 3412 # can be detected and how. 3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3414/* end confdefs.h. */ 3415#include <ac_nonexistent.h> 3416_ACEOF 3417if ac_fn_c_try_cpp "$LINENO"; then : 3418 # Broken: success on invalid input. 3419continue 3420else 3421 # Passes both tests. 3422ac_preproc_ok=: 3423break 3424fi 3425rm -f conftest.err conftest.i conftest.$ac_ext 3426 3427done 3428# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3429rm -f conftest.i conftest.err conftest.$ac_ext 3430if $ac_preproc_ok; then : 3431 3432else 3433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3435as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3436See \`config.log' for more details" "$LINENO" 5; } 3437fi 3438 3439ac_ext=c 3440ac_cpp='$CPP $CPPFLAGS' 3441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3443ac_compiler_gnu=$ac_cv_c_compiler_gnu 3444 3445 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3447$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3448if ${ac_cv_path_GREP+:} false; then : 3449 $as_echo_n "(cached) " >&6 3450else 3451 if test -z "$GREP"; then 3452 ac_path_GREP_found=false 3453 # Loop through the user's path and test for each of PROGNAME-LIST 3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3455for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3456do 3457 IFS=$as_save_IFS 3458 test -z "$as_dir" && as_dir=. 3459 for ac_prog in grep ggrep; do 3460 for ac_exec_ext in '' $ac_executable_extensions; do 3461 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3462 as_fn_executable_p "$ac_path_GREP" || continue 3463# Check for GNU ac_path_GREP and select it if it is found. 3464 # Check for GNU $ac_path_GREP 3465case `"$ac_path_GREP" --version 2>&1` in 3466*GNU*) 3467 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3468*) 3469 ac_count=0 3470 $as_echo_n 0123456789 >"conftest.in" 3471 while : 3472 do 3473 cat "conftest.in" "conftest.in" >"conftest.tmp" 3474 mv "conftest.tmp" "conftest.in" 3475 cp "conftest.in" "conftest.nl" 3476 $as_echo 'GREP' >> "conftest.nl" 3477 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3478 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3479 as_fn_arith $ac_count + 1 && ac_count=$as_val 3480 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3481 # Best one so far, save it but keep looking for a better one 3482 ac_cv_path_GREP="$ac_path_GREP" 3483 ac_path_GREP_max=$ac_count 3484 fi 3485 # 10*(2^10) chars as input seems more than enough 3486 test $ac_count -gt 10 && break 3487 done 3488 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3489esac 3490 3491 $ac_path_GREP_found && break 3 3492 done 3493 done 3494 done 3495IFS=$as_save_IFS 3496 if test -z "$ac_cv_path_GREP"; then 3497 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3498 fi 3499else 3500 ac_cv_path_GREP=$GREP 3501fi 3502 3503fi 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3505$as_echo "$ac_cv_path_GREP" >&6; } 3506 GREP="$ac_cv_path_GREP" 3507 3508 3509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3510$as_echo_n "checking for egrep... " >&6; } 3511if ${ac_cv_path_EGREP+:} false; then : 3512 $as_echo_n "(cached) " >&6 3513else 3514 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3515 then ac_cv_path_EGREP="$GREP -E" 3516 else 3517 if test -z "$EGREP"; then 3518 ac_path_EGREP_found=false 3519 # Loop through the user's path and test for each of PROGNAME-LIST 3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3521for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3522do 3523 IFS=$as_save_IFS 3524 test -z "$as_dir" && as_dir=. 3525 for ac_prog in egrep; do 3526 for ac_exec_ext in '' $ac_executable_extensions; do 3527 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3528 as_fn_executable_p "$ac_path_EGREP" || continue 3529# Check for GNU ac_path_EGREP and select it if it is found. 3530 # Check for GNU $ac_path_EGREP 3531case `"$ac_path_EGREP" --version 2>&1` in 3532*GNU*) 3533 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3534*) 3535 ac_count=0 3536 $as_echo_n 0123456789 >"conftest.in" 3537 while : 3538 do 3539 cat "conftest.in" "conftest.in" >"conftest.tmp" 3540 mv "conftest.tmp" "conftest.in" 3541 cp "conftest.in" "conftest.nl" 3542 $as_echo 'EGREP' >> "conftest.nl" 3543 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3545 as_fn_arith $ac_count + 1 && ac_count=$as_val 3546 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3547 # Best one so far, save it but keep looking for a better one 3548 ac_cv_path_EGREP="$ac_path_EGREP" 3549 ac_path_EGREP_max=$ac_count 3550 fi 3551 # 10*(2^10) chars as input seems more than enough 3552 test $ac_count -gt 10 && break 3553 done 3554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3555esac 3556 3557 $ac_path_EGREP_found && break 3 3558 done 3559 done 3560 done 3561IFS=$as_save_IFS 3562 if test -z "$ac_cv_path_EGREP"; then 3563 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3564 fi 3565else 3566 ac_cv_path_EGREP=$EGREP 3567fi 3568 3569 fi 3570fi 3571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3572$as_echo "$ac_cv_path_EGREP" >&6; } 3573 EGREP="$ac_cv_path_EGREP" 3574 3575 3576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3577$as_echo_n "checking for ANSI C header files... " >&6; } 3578if ${ac_cv_header_stdc+:} false; then : 3579 $as_echo_n "(cached) " >&6 3580else 3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3582/* end confdefs.h. */ 3583#include <stdlib.h> 3584#include <stdarg.h> 3585#include <string.h> 3586#include <float.h> 3587 3588int 3589main () 3590{ 3591 3592 ; 3593 return 0; 3594} 3595_ACEOF 3596if ac_fn_c_try_compile "$LINENO"; then : 3597 ac_cv_header_stdc=yes 3598else 3599 ac_cv_header_stdc=no 3600fi 3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3602 3603if test $ac_cv_header_stdc = yes; then 3604 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3606/* end confdefs.h. */ 3607#include <string.h> 3608 3609_ACEOF 3610if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3611 $EGREP "memchr" >/dev/null 2>&1; then : 3612 3613else 3614 ac_cv_header_stdc=no 3615fi 3616rm -f conftest* 3617 3618fi 3619 3620if test $ac_cv_header_stdc = yes; then 3621 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3623/* end confdefs.h. */ 3624#include <stdlib.h> 3625 3626_ACEOF 3627if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3628 $EGREP "free" >/dev/null 2>&1; then : 3629 3630else 3631 ac_cv_header_stdc=no 3632fi 3633rm -f conftest* 3634 3635fi 3636 3637if test $ac_cv_header_stdc = yes; then 3638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3639 if test "$cross_compiling" = yes; then : 3640 : 3641else 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644#include <ctype.h> 3645#include <stdlib.h> 3646#if ((' ' & 0x0FF) == 0x020) 3647# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3648# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3649#else 3650# define ISLOWER(c) \ 3651 (('a' <= (c) && (c) <= 'i') \ 3652 || ('j' <= (c) && (c) <= 'r') \ 3653 || ('s' <= (c) && (c) <= 'z')) 3654# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3655#endif 3656 3657#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3658int 3659main () 3660{ 3661 int i; 3662 for (i = 0; i < 256; i++) 3663 if (XOR (islower (i), ISLOWER (i)) 3664 || toupper (i) != TOUPPER (i)) 3665 return 2; 3666 return 0; 3667} 3668_ACEOF 3669if ac_fn_c_try_run "$LINENO"; then : 3670 3671else 3672 ac_cv_header_stdc=no 3673fi 3674rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3675 conftest.$ac_objext conftest.beam conftest.$ac_ext 3676fi 3677 3678fi 3679fi 3680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3681$as_echo "$ac_cv_header_stdc" >&6; } 3682if test $ac_cv_header_stdc = yes; then 3683 3684$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3685 3686fi 3687 3688# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3689for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3690 inttypes.h stdint.h unistd.h 3691do : 3692 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3693ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3694" 3695if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3696 cat >>confdefs.h <<_ACEOF 3697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3698_ACEOF 3699 3700fi 3701 3702done 3703 3704 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 3706$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 3707if ${ac_cv_c_bigendian+:} false; then : 3708 $as_echo_n "(cached) " >&6 3709else 3710 ac_cv_c_bigendian=unknown 3711 # See if we're dealing with a universal compiler. 3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3713/* end confdefs.h. */ 3714#ifndef __APPLE_CC__ 3715 not a universal capable compiler 3716 #endif 3717 typedef int dummy; 3718 3719_ACEOF 3720if ac_fn_c_try_compile "$LINENO"; then : 3721 3722 # Check for potential -arch flags. It is not universal unless 3723 # there are at least two -arch flags with different values. 3724 ac_arch= 3725 ac_prev= 3726 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 3727 if test -n "$ac_prev"; then 3728 case $ac_word in 3729 i?86 | x86_64 | ppc | ppc64) 3730 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 3731 ac_arch=$ac_word 3732 else 3733 ac_cv_c_bigendian=universal 3734 break 3735 fi 3736 ;; 3737 esac 3738 ac_prev= 3739 elif test "x$ac_word" = "x-arch"; then 3740 ac_prev=arch 3741 fi 3742 done 3743fi 3744rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3745 if test $ac_cv_c_bigendian = unknown; then 3746 # See if sys/param.h defines the BYTE_ORDER macro. 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3748/* end confdefs.h. */ 3749#include <sys/types.h> 3750 #include <sys/param.h> 3751 3752int 3753main () 3754{ 3755#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 3756 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 3757 && LITTLE_ENDIAN) 3758 bogus endian macros 3759 #endif 3760 3761 ; 3762 return 0; 3763} 3764_ACEOF 3765if ac_fn_c_try_compile "$LINENO"; then : 3766 # It does; now see whether it defined to BIG_ENDIAN or not. 3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3768/* end confdefs.h. */ 3769#include <sys/types.h> 3770 #include <sys/param.h> 3771 3772int 3773main () 3774{ 3775#if BYTE_ORDER != BIG_ENDIAN 3776 not big endian 3777 #endif 3778 3779 ; 3780 return 0; 3781} 3782_ACEOF 3783if ac_fn_c_try_compile "$LINENO"; then : 3784 ac_cv_c_bigendian=yes 3785else 3786 ac_cv_c_bigendian=no 3787fi 3788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3789fi 3790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3791 fi 3792 if test $ac_cv_c_bigendian = unknown; then 3793 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3795/* end confdefs.h. */ 3796#include <limits.h> 3797 3798int 3799main () 3800{ 3801#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 3802 bogus endian macros 3803 #endif 3804 3805 ; 3806 return 0; 3807} 3808_ACEOF 3809if ac_fn_c_try_compile "$LINENO"; then : 3810 # It does; now see whether it defined to _BIG_ENDIAN or not. 3811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3812/* end confdefs.h. */ 3813#include <limits.h> 3814 3815int 3816main () 3817{ 3818#ifndef _BIG_ENDIAN 3819 not big endian 3820 #endif 3821 3822 ; 3823 return 0; 3824} 3825_ACEOF 3826if ac_fn_c_try_compile "$LINENO"; then : 3827 ac_cv_c_bigendian=yes 3828else 3829 ac_cv_c_bigendian=no 3830fi 3831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3832fi 3833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3834 fi 3835 if test $ac_cv_c_bigendian = unknown; then 3836 # Compile a test program. 3837 if test "$cross_compiling" = yes; then : 3838 # Try to guess by grepping values from an object file. 3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840/* end confdefs.h. */ 3841short int ascii_mm[] = 3842 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 3843 short int ascii_ii[] = 3844 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 3845 int use_ascii (int i) { 3846 return ascii_mm[i] + ascii_ii[i]; 3847 } 3848 short int ebcdic_ii[] = 3849 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 3850 short int ebcdic_mm[] = 3851 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 3852 int use_ebcdic (int i) { 3853 return ebcdic_mm[i] + ebcdic_ii[i]; 3854 } 3855 extern int foo; 3856 3857int 3858main () 3859{ 3860return use_ascii (foo) == use_ebcdic (foo); 3861 ; 3862 return 0; 3863} 3864_ACEOF 3865if ac_fn_c_try_compile "$LINENO"; then : 3866 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 3867 ac_cv_c_bigendian=yes 3868 fi 3869 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 3870 if test "$ac_cv_c_bigendian" = unknown; then 3871 ac_cv_c_bigendian=no 3872 else 3873 # finding both strings is unlikely to happen, but who knows? 3874 ac_cv_c_bigendian=unknown 3875 fi 3876 fi 3877fi 3878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3879else 3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3881/* end confdefs.h. */ 3882$ac_includes_default 3883int 3884main () 3885{ 3886 3887 /* Are we little or big endian? From Harbison&Steele. */ 3888 union 3889 { 3890 long int l; 3891 char c[sizeof (long int)]; 3892 } u; 3893 u.l = 1; 3894 return u.c[sizeof (long int) - 1] == 1; 3895 3896 ; 3897 return 0; 3898} 3899_ACEOF 3900if ac_fn_c_try_run "$LINENO"; then : 3901 ac_cv_c_bigendian=no 3902else 3903 ac_cv_c_bigendian=yes 3904fi 3905rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3906 conftest.$ac_objext conftest.beam conftest.$ac_ext 3907fi 3908 3909 fi 3910fi 3911{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 3912$as_echo "$ac_cv_c_bigendian" >&6; } 3913 case $ac_cv_c_bigendian in #( 3914 yes) 3915 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 3916;; #( 3917 no) 3918 ;; #( 3919 universal) 3920 3921$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 3922 3923 ;; #( 3924 *) 3925 as_fn_error $? "unknown endianness 3926 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 3927 esac 3928 3929ac_aux_dir= 3930for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3931 if test -f "$ac_dir/install-sh"; then 3932 ac_aux_dir=$ac_dir 3933 ac_install_sh="$ac_aux_dir/install-sh -c" 3934 break 3935 elif test -f "$ac_dir/install.sh"; then 3936 ac_aux_dir=$ac_dir 3937 ac_install_sh="$ac_aux_dir/install.sh -c" 3938 break 3939 elif test -f "$ac_dir/shtool"; then 3940 ac_aux_dir=$ac_dir 3941 ac_install_sh="$ac_aux_dir/shtool install -c" 3942 break 3943 fi 3944done 3945if test -z "$ac_aux_dir"; then 3946 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3947fi 3948 3949# These three variables are undocumented and unsupported, 3950# and are intended to be withdrawn in a future Autoconf release. 3951# They can cause serious problems if a builder's source tree is in a directory 3952# whose full name contains unusual characters. 3953ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3954ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3955ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3956 3957 3958# Make sure we can run config.sub. 3959$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3960 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3961 3962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3963$as_echo_n "checking build system type... " >&6; } 3964if ${ac_cv_build+:} false; then : 3965 $as_echo_n "(cached) " >&6 3966else 3967 ac_build_alias=$build_alias 3968test "x$ac_build_alias" = x && 3969 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3970test "x$ac_build_alias" = x && 3971 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 3972ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3973 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3974 3975fi 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3977$as_echo "$ac_cv_build" >&6; } 3978case $ac_cv_build in 3979*-*-*) ;; 3980*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 3981esac 3982build=$ac_cv_build 3983ac_save_IFS=$IFS; IFS='-' 3984set x $ac_cv_build 3985shift 3986build_cpu=$1 3987build_vendor=$2 3988shift; shift 3989# Remember, the first character of IFS is used to create $*, 3990# except with old shells: 3991build_os=$* 3992IFS=$ac_save_IFS 3993case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3994 3995 3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3997$as_echo_n "checking host system type... " >&6; } 3998if ${ac_cv_host+:} false; then : 3999 $as_echo_n "(cached) " >&6 4000else 4001 if test "x$host_alias" = x; then 4002 ac_cv_host=$ac_cv_build 4003else 4004 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4005 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4006fi 4007 4008fi 4009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4010$as_echo "$ac_cv_host" >&6; } 4011case $ac_cv_host in 4012*-*-*) ;; 4013*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4014esac 4015host=$ac_cv_host 4016ac_save_IFS=$IFS; IFS='-' 4017set x $ac_cv_host 4018shift 4019host_cpu=$1 4020host_vendor=$2 4021shift; shift 4022# Remember, the first character of IFS is used to create $*, 4023# except with old shells: 4024host_os=$* 4025IFS=$ac_save_IFS 4026case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4027 4028 4029 4030test "$prefix" = NONE && prefix=/usr/local 4031Datadir=$datadir 4032test "$Datadir" = '${datarootdir}' && Datadir=$datarootdir 4033test "$Datadir" = '${prefix}/share' && Datadir=$prefix/share 4034 4035 4036 4037# Check whether --with-latex was given. 4038if test "${with_latex+set}" = set; then : 4039 withval=$with_latex; if test "x$withval" != "x" ; then 4040 latexdir=$withval 4041 fi 4042 4043else 4044 4045# Extract the first word of "kpsewhich", so it can be a program name with args. 4046set dummy kpsewhich; ac_word=$2 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4048$as_echo_n "checking for $ac_word... " >&6; } 4049if ${ac_cv_prog_kpsewhich+:} false; then : 4050 $as_echo_n "(cached) " >&6 4051else 4052 if test -n "$kpsewhich"; then 4053 ac_cv_prog_kpsewhich="$kpsewhich" # Let the user override the test. 4054else 4055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4056for as_dir in $PATH 4057do 4058 IFS=$as_save_IFS 4059 test -z "$as_dir" && as_dir=. 4060 for ac_exec_ext in '' $ac_executable_extensions; do 4061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4062 ac_cv_prog_kpsewhich="true" 4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4064 break 2 4065 fi 4066done 4067 done 4068IFS=$as_save_IFS 4069 4070fi 4071fi 4072kpsewhich=$ac_cv_prog_kpsewhich 4073if test -n "$kpsewhich"; then 4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpsewhich" >&5 4075$as_echo "$kpsewhich" >&6; } 4076else 4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4078$as_echo "no" >&6; } 4079fi 4080 4081 4082if test "x$kpsewhich" = "xtrue"; then 4083 latexdir=`kpsewhich -expand-var='$TEXMFLOCAL'/tex/latex` 4084else 4085 latexdir=$prefix/share/texmf/tex/latex 4086 as_ac_File=`$as_echo "ac_cv_file_$latexdir/base/latex.ltx" | $as_tr_sh` 4087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $latexdir/base/latex.ltx" >&5 4088$as_echo_n "checking for $latexdir/base/latex.ltx... " >&6; } 4089if eval \${$as_ac_File+:} false; then : 4090 $as_echo_n "(cached) " >&6 4091else 4092 test "$cross_compiling" = yes && 4093 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 4094if test -r "$latexdir/base/latex.ltx"; then 4095 eval "$as_ac_File=yes" 4096else 4097 eval "$as_ac_File=no" 4098fi 4099fi 4100eval ac_res=\$$as_ac_File 4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4102$as_echo "$ac_res" >&6; } 4103if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 4104 4105else 4106 latexdir=/usr/share/texmf/tex/latex 4107 as_ac_File=`$as_echo "ac_cv_file_$latexdir/base/latex.ltx" | $as_tr_sh` 4108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $latexdir/base/latex.ltx" >&5 4109$as_echo_n "checking for $latexdir/base/latex.ltx... " >&6; } 4110if eval \${$as_ac_File+:} false; then : 4111 $as_echo_n "(cached) " >&6 4112else 4113 test "$cross_compiling" = yes && 4114 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 4115if test -r "$latexdir/base/latex.ltx"; then 4116 eval "$as_ac_File=yes" 4117else 4118 eval "$as_ac_File=no" 4119fi 4120fi 4121eval ac_res=\$$as_ac_File 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 4123$as_echo "$ac_res" >&6; } 4124if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 4125 4126fi 4127 4128fi 4129 4130fi 4131 4132fi 4133 4134 4135 4136# Check whether --with-context was given. 4137if test "${with_context+set}" = set; then : 4138 withval=$with_context; if test "x$withval" != "x" ; then 4139 contextdir=$withval 4140 fi 4141 4142else 4143 4144# Extract the first word of "kpsewhich", so it can be a program name with args. 4145set dummy kpsewhich; ac_word=$2 4146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4147$as_echo_n "checking for $ac_word... " >&6; } 4148if ${ac_cv_prog_kpsewhich+:} false; then : 4149 $as_echo_n "(cached) " >&6 4150else 4151 if test -n "$kpsewhich"; then 4152 ac_cv_prog_kpsewhich="$kpsewhich" # Let the user override the test. 4153else 4154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4155for as_dir in $PATH 4156do 4157 IFS=$as_save_IFS 4158 test -z "$as_dir" && as_dir=. 4159 for ac_exec_ext in '' $ac_executable_extensions; do 4160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4161 ac_cv_prog_kpsewhich="true" 4162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4163 break 2 4164 fi 4165done 4166 done 4167IFS=$as_save_IFS 4168 4169fi 4170fi 4171kpsewhich=$ac_cv_prog_kpsewhich 4172if test -n "$kpsewhich"; then 4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kpsewhich" >&5 4174$as_echo "$kpsewhich" >&6; } 4175else 4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4177$as_echo "no" >&6; } 4178fi 4179 4180 4181if test "x$kpsewhich" = "xtrue"; then 4182 contextdir=`kpsewhich -expand-var='$TEXMFLOCAL'/tex/context/third` 4183else 4184 contextdir=$prefix/share/texmf/tex/context/third 4185fi 4186 4187fi 4188 4189 4190for ac_prog in texi2dvi 4191do 4192 # Extract the first word of "$ac_prog", so it can be a program name with args. 4193set dummy $ac_prog; ac_word=$2 4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4195$as_echo_n "checking for $ac_word... " >&6; } 4196if ${ac_cv_prog_TEXI2DVI+:} false; then : 4197 $as_echo_n "(cached) " >&6 4198else 4199 if test -n "$TEXI2DVI"; then 4200 ac_cv_prog_TEXI2DVI="$TEXI2DVI" # Let the user override the test. 4201else 4202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4203for as_dir in $PATH 4204do 4205 IFS=$as_save_IFS 4206 test -z "$as_dir" && as_dir=. 4207 for ac_exec_ext in '' $ac_executable_extensions; do 4208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4209 ac_cv_prog_TEXI2DVI="$ac_prog" 4210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4211 break 2 4212 fi 4213done 4214 done 4215IFS=$as_save_IFS 4216 4217fi 4218fi 4219TEXI2DVI=$ac_cv_prog_TEXI2DVI 4220if test -n "$TEXI2DVI"; then 4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5 4222$as_echo "$TEXI2DVI" >&6; } 4223else 4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4225$as_echo "no" >&6; } 4226fi 4227 4228 4229 test -n "$TEXI2DVI" && break 4230done 4231test -n "$TEXI2DVI" || TEXI2DVI="@echo \*\*\*\*\*\*\*\*\*\* Please install texi2dvi or put http://asymptote.sourceforge.net/asymptote.pdf in the doc directory: cannot execute texi2dvi" 4232 4233 4234 4235 4236latexdir=$latexdir/asymptote 4237contextdir=$contextdir/asymptote 4238 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: Using $latexdir for LaTeX style file" >&5 4240$as_echo "$as_me: Using $latexdir for LaTeX style file" >&6;} 4241{ $as_echo "$as_me:${as_lineno-$LINENO}: Using $contextdir for ConTeXT style file" >&5 4242$as_echo "$as_me: Using $contextdir for ConTeXT style file" >&6;} 4243 4244 4245 4246 4247docdir=$Datadir/doc/asymptote 4248 4249 4250# Check whether --with-docdir was given. 4251if test "${with_docdir+set}" = set; then : 4252 withval=$with_docdir; if test "x$withval" != "x" ; then 4253 docdir=$withval 4254 fi 4255 4256fi 4257 4258 4259 4260sysdir=$Datadir/asymptote 4261 4262# Check whether --enable-texlive-build was given. 4263if test "${enable_texlive_build+set}" = set; then : 4264 enableval=$enable_texlive_build; if test "x$enableval" = "xyes" ; then 4265 sysdir="" 4266 fi 4267 4268fi 4269 4270 4271 4272cat >>confdefs.h <<_ACEOF 4273#define ASYMPTOTE_SYSDIR "$sysdir" 4274_ACEOF 4275 4276 4277cat >>confdefs.h <<_ACEOF 4278#define ASYMPTOTE_DOCDIR "$docdir" 4279_ACEOF 4280 4281 4282 4283 4284ac_ext=cpp 4285ac_cpp='$CXXCPP $CPPFLAGS' 4286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4289 4290 4291# Checks for programs. 4292ac_ext=cpp 4293ac_cpp='$CXXCPP $CPPFLAGS' 4294ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4295ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4296ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4297if test -z "$CXX"; then 4298 if test -n "$CCC"; then 4299 CXX=$CCC 4300 else 4301 if test -n "$ac_tool_prefix"; then 4302 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4303 do 4304 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4305set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4307$as_echo_n "checking for $ac_word... " >&6; } 4308if ${ac_cv_prog_CXX+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 if test -n "$CXX"; then 4312 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4313else 4314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4315for as_dir in $PATH 4316do 4317 IFS=$as_save_IFS 4318 test -z "$as_dir" && as_dir=. 4319 for ac_exec_ext in '' $ac_executable_extensions; do 4320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4321 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4323 break 2 4324 fi 4325done 4326 done 4327IFS=$as_save_IFS 4328 4329fi 4330fi 4331CXX=$ac_cv_prog_CXX 4332if test -n "$CXX"; then 4333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4334$as_echo "$CXX" >&6; } 4335else 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4337$as_echo "no" >&6; } 4338fi 4339 4340 4341 test -n "$CXX" && break 4342 done 4343fi 4344if test -z "$CXX"; then 4345 ac_ct_CXX=$CXX 4346 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4347do 4348 # Extract the first word of "$ac_prog", so it can be a program name with args. 4349set dummy $ac_prog; ac_word=$2 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4351$as_echo_n "checking for $ac_word... " >&6; } 4352if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 if test -n "$ac_ct_CXX"; then 4356 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4357else 4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_exec_ext in '' $ac_executable_extensions; do 4364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4365 ac_cv_prog_ac_ct_CXX="$ac_prog" 4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4367 break 2 4368 fi 4369done 4370 done 4371IFS=$as_save_IFS 4372 4373fi 4374fi 4375ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4376if test -n "$ac_ct_CXX"; then 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4378$as_echo "$ac_ct_CXX" >&6; } 4379else 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4381$as_echo "no" >&6; } 4382fi 4383 4384 4385 test -n "$ac_ct_CXX" && break 4386done 4387 4388 if test "x$ac_ct_CXX" = x; then 4389 CXX="g++" 4390 else 4391 case $cross_compiling:$ac_tool_warned in 4392yes:) 4393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4395ac_tool_warned=yes ;; 4396esac 4397 CXX=$ac_ct_CXX 4398 fi 4399fi 4400 4401 fi 4402fi 4403# Provide some information about the compiler. 4404$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4405set X $ac_compile 4406ac_compiler=$2 4407for ac_option in --version -v -V -qversion; do 4408 { { ac_try="$ac_compiler $ac_option >&5" 4409case "(($ac_try" in 4410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4411 *) ac_try_echo=$ac_try;; 4412esac 4413eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4414$as_echo "$ac_try_echo"; } >&5 4415 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4416 ac_status=$? 4417 if test -s conftest.err; then 4418 sed '10a\ 4419... rest of stderr output deleted ... 4420 10q' conftest.err >conftest.er1 4421 cat conftest.er1 >&5 4422 fi 4423 rm -f conftest.er1 conftest.err 4424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4425 test $ac_status = 0; } 4426done 4427 4428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4429$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4430if ${ac_cv_cxx_compiler_gnu+:} false; then : 4431 $as_echo_n "(cached) " >&6 4432else 4433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4434/* end confdefs.h. */ 4435 4436int 4437main () 4438{ 4439#ifndef __GNUC__ 4440 choke me 4441#endif 4442 4443 ; 4444 return 0; 4445} 4446_ACEOF 4447if ac_fn_cxx_try_compile "$LINENO"; then : 4448 ac_compiler_gnu=yes 4449else 4450 ac_compiler_gnu=no 4451fi 4452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4453ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4454 4455fi 4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4457$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4458if test $ac_compiler_gnu = yes; then 4459 GXX=yes 4460else 4461 GXX= 4462fi 4463ac_test_CXXFLAGS=${CXXFLAGS+set} 4464ac_save_CXXFLAGS=$CXXFLAGS 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4466$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4467if ${ac_cv_prog_cxx_g+:} false; then : 4468 $as_echo_n "(cached) " >&6 4469else 4470 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4471 ac_cxx_werror_flag=yes 4472 ac_cv_prog_cxx_g=no 4473 CXXFLAGS="-g" 4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4475/* end confdefs.h. */ 4476 4477int 4478main () 4479{ 4480 4481 ; 4482 return 0; 4483} 4484_ACEOF 4485if ac_fn_cxx_try_compile "$LINENO"; then : 4486 ac_cv_prog_cxx_g=yes 4487else 4488 CXXFLAGS="" 4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4490/* end confdefs.h. */ 4491 4492int 4493main () 4494{ 4495 4496 ; 4497 return 0; 4498} 4499_ACEOF 4500if ac_fn_cxx_try_compile "$LINENO"; then : 4501 4502else 4503 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4504 CXXFLAGS="-g" 4505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4506/* end confdefs.h. */ 4507 4508int 4509main () 4510{ 4511 4512 ; 4513 return 0; 4514} 4515_ACEOF 4516if ac_fn_cxx_try_compile "$LINENO"; then : 4517 ac_cv_prog_cxx_g=yes 4518fi 4519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4520fi 4521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4522fi 4523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4524 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4525fi 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4527$as_echo "$ac_cv_prog_cxx_g" >&6; } 4528if test "$ac_test_CXXFLAGS" = set; then 4529 CXXFLAGS=$ac_save_CXXFLAGS 4530elif test $ac_cv_prog_cxx_g = yes; then 4531 if test "$GXX" = yes; then 4532 CXXFLAGS="-g -O2" 4533 else 4534 CXXFLAGS="-g" 4535 fi 4536else 4537 if test "$GXX" = yes; then 4538 CXXFLAGS="-O2" 4539 else 4540 CXXFLAGS= 4541 fi 4542fi 4543ac_ext=cpp 4544ac_cpp='$CXXCPP $CPPFLAGS' 4545ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4546ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4547ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4548 4549 4550for ac_prog in flex lex 4551do 4552 # Extract the first word of "$ac_prog", so it can be a program name with args. 4553set dummy $ac_prog; ac_word=$2 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4555$as_echo_n "checking for $ac_word... " >&6; } 4556if ${ac_cv_prog_LEX+:} false; then : 4557 $as_echo_n "(cached) " >&6 4558else 4559 if test -n "$LEX"; then 4560 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4561else 4562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4563for as_dir in $PATH 4564do 4565 IFS=$as_save_IFS 4566 test -z "$as_dir" && as_dir=. 4567 for ac_exec_ext in '' $ac_executable_extensions; do 4568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4569 ac_cv_prog_LEX="$ac_prog" 4570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4571 break 2 4572 fi 4573done 4574 done 4575IFS=$as_save_IFS 4576 4577fi 4578fi 4579LEX=$ac_cv_prog_LEX 4580if test -n "$LEX"; then 4581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4582$as_echo "$LEX" >&6; } 4583else 4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4585$as_echo "no" >&6; } 4586fi 4587 4588 4589 test -n "$LEX" && break 4590done 4591test -n "$LEX" || LEX=":" 4592 4593if test "x$LEX" != "x:"; then 4594 cat >conftest.l <<_ACEOF 4595%% 4596a { ECHO; } 4597b { REJECT; } 4598c { yymore (); } 4599d { yyless (1); } 4600e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 4601 yyless ((input () != 0)); } 4602f { unput (yytext[0]); } 4603. { BEGIN INITIAL; } 4604%% 4605#ifdef YYTEXT_POINTER 4606extern char *yytext; 4607#endif 4608int 4609main (void) 4610{ 4611 return ! yylex () + ! yywrap (); 4612} 4613_ACEOF 4614{ { ac_try="$LEX conftest.l" 4615case "(($ac_try" in 4616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4617 *) ac_try_echo=$ac_try;; 4618esac 4619eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4620$as_echo "$ac_try_echo"; } >&5 4621 (eval "$LEX conftest.l") 2>&5 4622 ac_status=$? 4623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4624 test $ac_status = 0; } 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 4626$as_echo_n "checking lex output file root... " >&6; } 4627if ${ac_cv_prog_lex_root+:} false; then : 4628 $as_echo_n "(cached) " >&6 4629else 4630 4631if test -f lex.yy.c; then 4632 ac_cv_prog_lex_root=lex.yy 4633elif test -f lexyy.c; then 4634 ac_cv_prog_lex_root=lexyy 4635else 4636 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 4637fi 4638fi 4639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 4640$as_echo "$ac_cv_prog_lex_root" >&6; } 4641LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 4642 4643if test -z "${LEXLIB+set}"; then 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 4645$as_echo_n "checking lex library... " >&6; } 4646if ${ac_cv_lib_lex+:} false; then : 4647 $as_echo_n "(cached) " >&6 4648else 4649 4650 ac_save_LIBS=$LIBS 4651 ac_cv_lib_lex='none needed' 4652 for ac_lib in '' -lfl -ll; do 4653 LIBS="$ac_lib $ac_save_LIBS" 4654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4655/* end confdefs.h. */ 4656`cat $LEX_OUTPUT_ROOT.c` 4657_ACEOF 4658if ac_fn_cxx_try_link "$LINENO"; then : 4659 ac_cv_lib_lex=$ac_lib 4660fi 4661rm -f core conftest.err conftest.$ac_objext \ 4662 conftest$ac_exeext conftest.$ac_ext 4663 test "$ac_cv_lib_lex" != 'none needed' && break 4664 done 4665 LIBS=$ac_save_LIBS 4666 4667fi 4668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 4669$as_echo "$ac_cv_lib_lex" >&6; } 4670 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 4671fi 4672 4673 4674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 4675$as_echo_n "checking whether yytext is a pointer... " >&6; } 4676if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 4677 $as_echo_n "(cached) " >&6 4678else 4679 # POSIX says lex can declare yytext either as a pointer or an array; the 4680# default is implementation-dependent. Figure out which it is, since 4681# not all implementations provide the %pointer and %array declarations. 4682ac_cv_prog_lex_yytext_pointer=no 4683ac_save_LIBS=$LIBS 4684LIBS="$LEXLIB $ac_save_LIBS" 4685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4686/* end confdefs.h. */ 4687 4688 #define YYTEXT_POINTER 1 4689`cat $LEX_OUTPUT_ROOT.c` 4690_ACEOF 4691if ac_fn_cxx_try_link "$LINENO"; then : 4692 ac_cv_prog_lex_yytext_pointer=yes 4693fi 4694rm -f core conftest.err conftest.$ac_objext \ 4695 conftest$ac_exeext conftest.$ac_ext 4696LIBS=$ac_save_LIBS 4697 4698fi 4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 4700$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 4701if test $ac_cv_prog_lex_yytext_pointer = yes; then 4702 4703$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 4704 4705fi 4706rm -f conftest.l $LEX_OUTPUT_ROOT.c 4707 4708fi 4709ac_ext=cpp 4710ac_cpp='$CXXCPP $CPPFLAGS' 4711ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4712ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4713ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4714if test -z "$CXX"; then 4715 if test -n "$CCC"; then 4716 CXX=$CCC 4717 else 4718 if test -n "$ac_tool_prefix"; then 4719 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4720 do 4721 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4722set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4724$as_echo_n "checking for $ac_word... " >&6; } 4725if ${ac_cv_prog_CXX+:} false; then : 4726 $as_echo_n "(cached) " >&6 4727else 4728 if test -n "$CXX"; then 4729 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4730else 4731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4732for as_dir in $PATH 4733do 4734 IFS=$as_save_IFS 4735 test -z "$as_dir" && as_dir=. 4736 for ac_exec_ext in '' $ac_executable_extensions; do 4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4738 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4740 break 2 4741 fi 4742done 4743 done 4744IFS=$as_save_IFS 4745 4746fi 4747fi 4748CXX=$ac_cv_prog_CXX 4749if test -n "$CXX"; then 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4751$as_echo "$CXX" >&6; } 4752else 4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4754$as_echo "no" >&6; } 4755fi 4756 4757 4758 test -n "$CXX" && break 4759 done 4760fi 4761if test -z "$CXX"; then 4762 ac_ct_CXX=$CXX 4763 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4764do 4765 # Extract the first word of "$ac_prog", so it can be a program name with args. 4766set dummy $ac_prog; ac_word=$2 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4768$as_echo_n "checking for $ac_word... " >&6; } 4769if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4770 $as_echo_n "(cached) " >&6 4771else 4772 if test -n "$ac_ct_CXX"; then 4773 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4774else 4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776for as_dir in $PATH 4777do 4778 IFS=$as_save_IFS 4779 test -z "$as_dir" && as_dir=. 4780 for ac_exec_ext in '' $ac_executable_extensions; do 4781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4782 ac_cv_prog_ac_ct_CXX="$ac_prog" 4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4784 break 2 4785 fi 4786done 4787 done 4788IFS=$as_save_IFS 4789 4790fi 4791fi 4792ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4793if test -n "$ac_ct_CXX"; then 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4795$as_echo "$ac_ct_CXX" >&6; } 4796else 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4798$as_echo "no" >&6; } 4799fi 4800 4801 4802 test -n "$ac_ct_CXX" && break 4803done 4804 4805 if test "x$ac_ct_CXX" = x; then 4806 CXX="g++" 4807 else 4808 case $cross_compiling:$ac_tool_warned in 4809yes:) 4810{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4811$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4812ac_tool_warned=yes ;; 4813esac 4814 CXX=$ac_ct_CXX 4815 fi 4816fi 4817 4818 fi 4819fi 4820# Provide some information about the compiler. 4821$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4822set X $ac_compile 4823ac_compiler=$2 4824for ac_option in --version -v -V -qversion; do 4825 { { ac_try="$ac_compiler $ac_option >&5" 4826case "(($ac_try" in 4827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4828 *) ac_try_echo=$ac_try;; 4829esac 4830eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4831$as_echo "$ac_try_echo"; } >&5 4832 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4833 ac_status=$? 4834 if test -s conftest.err; then 4835 sed '10a\ 4836... rest of stderr output deleted ... 4837 10q' conftest.err >conftest.er1 4838 cat conftest.er1 >&5 4839 fi 4840 rm -f conftest.er1 conftest.err 4841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4842 test $ac_status = 0; } 4843done 4844 4845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4846$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4847if ${ac_cv_cxx_compiler_gnu+:} false; then : 4848 $as_echo_n "(cached) " >&6 4849else 4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4851/* end confdefs.h. */ 4852 4853int 4854main () 4855{ 4856#ifndef __GNUC__ 4857 choke me 4858#endif 4859 4860 ; 4861 return 0; 4862} 4863_ACEOF 4864if ac_fn_cxx_try_compile "$LINENO"; then : 4865 ac_compiler_gnu=yes 4866else 4867 ac_compiler_gnu=no 4868fi 4869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4870ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4871 4872fi 4873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4874$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4875if test $ac_compiler_gnu = yes; then 4876 GXX=yes 4877else 4878 GXX= 4879fi 4880ac_test_CXXFLAGS=${CXXFLAGS+set} 4881ac_save_CXXFLAGS=$CXXFLAGS 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4883$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4884if ${ac_cv_prog_cxx_g+:} false; then : 4885 $as_echo_n "(cached) " >&6 4886else 4887 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4888 ac_cxx_werror_flag=yes 4889 ac_cv_prog_cxx_g=no 4890 CXXFLAGS="-g" 4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4892/* end confdefs.h. */ 4893 4894int 4895main () 4896{ 4897 4898 ; 4899 return 0; 4900} 4901_ACEOF 4902if ac_fn_cxx_try_compile "$LINENO"; then : 4903 ac_cv_prog_cxx_g=yes 4904else 4905 CXXFLAGS="" 4906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4907/* end confdefs.h. */ 4908 4909int 4910main () 4911{ 4912 4913 ; 4914 return 0; 4915} 4916_ACEOF 4917if ac_fn_cxx_try_compile "$LINENO"; then : 4918 4919else 4920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4921 CXXFLAGS="-g" 4922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4923/* end confdefs.h. */ 4924 4925int 4926main () 4927{ 4928 4929 ; 4930 return 0; 4931} 4932_ACEOF 4933if ac_fn_cxx_try_compile "$LINENO"; then : 4934 ac_cv_prog_cxx_g=yes 4935fi 4936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4937fi 4938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4939fi 4940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4941 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4942fi 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4944$as_echo "$ac_cv_prog_cxx_g" >&6; } 4945if test "$ac_test_CXXFLAGS" = set; then 4946 CXXFLAGS=$ac_save_CXXFLAGS 4947elif test $ac_cv_prog_cxx_g = yes; then 4948 if test "$GXX" = yes; then 4949 CXXFLAGS="-g -O2" 4950 else 4951 CXXFLAGS="-g" 4952 fi 4953else 4954 if test "$GXX" = yes; then 4955 CXXFLAGS="-O2" 4956 else 4957 CXXFLAGS= 4958 fi 4959fi 4960ac_ext=cpp 4961ac_cpp='$CXXCPP $CPPFLAGS' 4962ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4963ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4964ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4965 4966# Find a good install program. We prefer a C program (faster), 4967# so one script is as good as another. But avoid the broken or 4968# incompatible versions: 4969# SysV /etc/install, /usr/sbin/install 4970# SunOS /usr/etc/install 4971# IRIX /sbin/install 4972# AIX /bin/install 4973# AmigaOS /C/install, which installs bootblocks on floppy discs 4974# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 4975# AFS /usr/afsws/bin/install, which mishandles nonexistent args 4976# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4977# OS/2's system install, which has a completely different semantic 4978# ./install, which can be erroneously created by make from ./install.sh. 4979# Reject install programs that cannot install multiple files. 4980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 4981$as_echo_n "checking for a BSD-compatible install... " >&6; } 4982if test -z "$INSTALL"; then 4983if ${ac_cv_path_install+:} false; then : 4984 $as_echo_n "(cached) " >&6 4985else 4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4987for as_dir in $PATH 4988do 4989 IFS=$as_save_IFS 4990 test -z "$as_dir" && as_dir=. 4991 # Account for people who put trailing slashes in PATH elements. 4992case $as_dir/ in #(( 4993 ./ | .// | /[cC]/* | \ 4994 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4995 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 4996 /usr/ucb/* ) ;; 4997 *) 4998 # OSF1 and SCO ODT 3.0 have their own names for install. 4999 # Don't use installbsd from OSF since it installs stuff as root 5000 # by default. 5001 for ac_prog in ginstall scoinst install; do 5002 for ac_exec_ext in '' $ac_executable_extensions; do 5003 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5004 if test $ac_prog = install && 5005 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5006 # AIX install. It has an incompatible calling convention. 5007 : 5008 elif test $ac_prog = install && 5009 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5010 # program-specific install script used by HP pwplus--don't use. 5011 : 5012 else 5013 rm -rf conftest.one conftest.two conftest.dir 5014 echo one > conftest.one 5015 echo two > conftest.two 5016 mkdir conftest.dir 5017 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5018 test -s conftest.one && test -s conftest.two && 5019 test -s conftest.dir/conftest.one && 5020 test -s conftest.dir/conftest.two 5021 then 5022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5023 break 3 5024 fi 5025 fi 5026 fi 5027 done 5028 done 5029 ;; 5030esac 5031 5032 done 5033IFS=$as_save_IFS 5034 5035rm -rf conftest.one conftest.two conftest.dir 5036 5037fi 5038 if test "${ac_cv_path_install+set}" = set; then 5039 INSTALL=$ac_cv_path_install 5040 else 5041 # As a last resort, use the slow shell script. Don't cache a 5042 # value for INSTALL within a source directory, because that will 5043 # break other packages using the cache if that directory is 5044 # removed, or if the value is a relative name. 5045 INSTALL=$ac_install_sh 5046 fi 5047fi 5048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5049$as_echo "$INSTALL" >&6; } 5050 5051# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5052# It thinks the first close brace ends the variable substitution. 5053test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5054 5055test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5056 5057test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5058 5059ac_ext=c 5060ac_cpp='$CPP $CPPFLAGS' 5061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5063ac_compiler_gnu=$ac_cv_c_compiler_gnu 5064if test -n "$ac_tool_prefix"; then 5065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5066set dummy ${ac_tool_prefix}gcc; ac_word=$2 5067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5068$as_echo_n "checking for $ac_word... " >&6; } 5069if ${ac_cv_prog_CC+:} false; then : 5070 $as_echo_n "(cached) " >&6 5071else 5072 if test -n "$CC"; then 5073 ac_cv_prog_CC="$CC" # Let the user override the test. 5074else 5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5076for as_dir in $PATH 5077do 5078 IFS=$as_save_IFS 5079 test -z "$as_dir" && as_dir=. 5080 for ac_exec_ext in '' $ac_executable_extensions; do 5081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5082 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5084 break 2 5085 fi 5086done 5087 done 5088IFS=$as_save_IFS 5089 5090fi 5091fi 5092CC=$ac_cv_prog_CC 5093if test -n "$CC"; then 5094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5095$as_echo "$CC" >&6; } 5096else 5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5098$as_echo "no" >&6; } 5099fi 5100 5101 5102fi 5103if test -z "$ac_cv_prog_CC"; then 5104 ac_ct_CC=$CC 5105 # Extract the first word of "gcc", so it can be a program name with args. 5106set dummy gcc; ac_word=$2 5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5108$as_echo_n "checking for $ac_word... " >&6; } 5109if ${ac_cv_prog_ac_ct_CC+:} false; then : 5110 $as_echo_n "(cached) " >&6 5111else 5112 if test -n "$ac_ct_CC"; then 5113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5114else 5115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5116for as_dir in $PATH 5117do 5118 IFS=$as_save_IFS 5119 test -z "$as_dir" && as_dir=. 5120 for ac_exec_ext in '' $ac_executable_extensions; do 5121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5122 ac_cv_prog_ac_ct_CC="gcc" 5123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5124 break 2 5125 fi 5126done 5127 done 5128IFS=$as_save_IFS 5129 5130fi 5131fi 5132ac_ct_CC=$ac_cv_prog_ac_ct_CC 5133if test -n "$ac_ct_CC"; then 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5135$as_echo "$ac_ct_CC" >&6; } 5136else 5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5138$as_echo "no" >&6; } 5139fi 5140 5141 if test "x$ac_ct_CC" = x; then 5142 CC="" 5143 else 5144 case $cross_compiling:$ac_tool_warned in 5145yes:) 5146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5148ac_tool_warned=yes ;; 5149esac 5150 CC=$ac_ct_CC 5151 fi 5152else 5153 CC="$ac_cv_prog_CC" 5154fi 5155 5156if test -z "$CC"; then 5157 if test -n "$ac_tool_prefix"; then 5158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5159set dummy ${ac_tool_prefix}cc; ac_word=$2 5160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5161$as_echo_n "checking for $ac_word... " >&6; } 5162if ${ac_cv_prog_CC+:} false; then : 5163 $as_echo_n "(cached) " >&6 5164else 5165 if test -n "$CC"; then 5166 ac_cv_prog_CC="$CC" # Let the user override the test. 5167else 5168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5169for as_dir in $PATH 5170do 5171 IFS=$as_save_IFS 5172 test -z "$as_dir" && as_dir=. 5173 for ac_exec_ext in '' $ac_executable_extensions; do 5174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5175 ac_cv_prog_CC="${ac_tool_prefix}cc" 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5177 break 2 5178 fi 5179done 5180 done 5181IFS=$as_save_IFS 5182 5183fi 5184fi 5185CC=$ac_cv_prog_CC 5186if test -n "$CC"; then 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5188$as_echo "$CC" >&6; } 5189else 5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5191$as_echo "no" >&6; } 5192fi 5193 5194 5195 fi 5196fi 5197if test -z "$CC"; then 5198 # Extract the first word of "cc", so it can be a program name with args. 5199set dummy cc; ac_word=$2 5200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5201$as_echo_n "checking for $ac_word... " >&6; } 5202if ${ac_cv_prog_CC+:} false; then : 5203 $as_echo_n "(cached) " >&6 5204else 5205 if test -n "$CC"; then 5206 ac_cv_prog_CC="$CC" # Let the user override the test. 5207else 5208 ac_prog_rejected=no 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5217 ac_prog_rejected=yes 5218 continue 5219 fi 5220 ac_cv_prog_CC="cc" 5221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5222 break 2 5223 fi 5224done 5225 done 5226IFS=$as_save_IFS 5227 5228if test $ac_prog_rejected = yes; then 5229 # We found a bogon in the path, so make sure we never use it. 5230 set dummy $ac_cv_prog_CC 5231 shift 5232 if test $# != 0; then 5233 # We chose a different compiler from the bogus one. 5234 # However, it has the same basename, so the bogon will be chosen 5235 # first if we set CC to just the basename; use the full file name. 5236 shift 5237 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5238 fi 5239fi 5240fi 5241fi 5242CC=$ac_cv_prog_CC 5243if test -n "$CC"; then 5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5245$as_echo "$CC" >&6; } 5246else 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5248$as_echo "no" >&6; } 5249fi 5250 5251 5252fi 5253if test -z "$CC"; then 5254 if test -n "$ac_tool_prefix"; then 5255 for ac_prog in cl.exe 5256 do 5257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5258set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5260$as_echo_n "checking for $ac_word... " >&6; } 5261if ${ac_cv_prog_CC+:} false; then : 5262 $as_echo_n "(cached) " >&6 5263else 5264 if test -n "$CC"; then 5265 ac_cv_prog_CC="$CC" # Let the user override the test. 5266else 5267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5268for as_dir in $PATH 5269do 5270 IFS=$as_save_IFS 5271 test -z "$as_dir" && as_dir=. 5272 for ac_exec_ext in '' $ac_executable_extensions; do 5273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5276 break 2 5277 fi 5278done 5279 done 5280IFS=$as_save_IFS 5281 5282fi 5283fi 5284CC=$ac_cv_prog_CC 5285if test -n "$CC"; then 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5287$as_echo "$CC" >&6; } 5288else 5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5290$as_echo "no" >&6; } 5291fi 5292 5293 5294 test -n "$CC" && break 5295 done 5296fi 5297if test -z "$CC"; then 5298 ac_ct_CC=$CC 5299 for ac_prog in cl.exe 5300do 5301 # Extract the first word of "$ac_prog", so it can be a program name with args. 5302set dummy $ac_prog; ac_word=$2 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5304$as_echo_n "checking for $ac_word... " >&6; } 5305if ${ac_cv_prog_ac_ct_CC+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307else 5308 if test -n "$ac_ct_CC"; then 5309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5310else 5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5312for as_dir in $PATH 5313do 5314 IFS=$as_save_IFS 5315 test -z "$as_dir" && as_dir=. 5316 for ac_exec_ext in '' $ac_executable_extensions; do 5317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5318 ac_cv_prog_ac_ct_CC="$ac_prog" 5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5320 break 2 5321 fi 5322done 5323 done 5324IFS=$as_save_IFS 5325 5326fi 5327fi 5328ac_ct_CC=$ac_cv_prog_ac_ct_CC 5329if test -n "$ac_ct_CC"; then 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5331$as_echo "$ac_ct_CC" >&6; } 5332else 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5334$as_echo "no" >&6; } 5335fi 5336 5337 5338 test -n "$ac_ct_CC" && break 5339done 5340 5341 if test "x$ac_ct_CC" = x; then 5342 CC="" 5343 else 5344 case $cross_compiling:$ac_tool_warned in 5345yes:) 5346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5348ac_tool_warned=yes ;; 5349esac 5350 CC=$ac_ct_CC 5351 fi 5352fi 5353 5354fi 5355 5356 5357test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5359as_fn_error $? "no acceptable C compiler found in \$PATH 5360See \`config.log' for more details" "$LINENO" 5; } 5361 5362# Provide some information about the compiler. 5363$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5364set X $ac_compile 5365ac_compiler=$2 5366for ac_option in --version -v -V -qversion; do 5367 { { ac_try="$ac_compiler $ac_option >&5" 5368case "(($ac_try" in 5369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5370 *) ac_try_echo=$ac_try;; 5371esac 5372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5373$as_echo "$ac_try_echo"; } >&5 5374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5375 ac_status=$? 5376 if test -s conftest.err; then 5377 sed '10a\ 5378... rest of stderr output deleted ... 5379 10q' conftest.err >conftest.er1 5380 cat conftest.er1 >&5 5381 fi 5382 rm -f conftest.er1 conftest.err 5383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5384 test $ac_status = 0; } 5385done 5386 5387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5388$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5389if ${ac_cv_c_compiler_gnu+:} false; then : 5390 $as_echo_n "(cached) " >&6 5391else 5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5393/* end confdefs.h. */ 5394 5395int 5396main () 5397{ 5398#ifndef __GNUC__ 5399 choke me 5400#endif 5401 5402 ; 5403 return 0; 5404} 5405_ACEOF 5406if ac_fn_c_try_compile "$LINENO"; then : 5407 ac_compiler_gnu=yes 5408else 5409 ac_compiler_gnu=no 5410fi 5411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5412ac_cv_c_compiler_gnu=$ac_compiler_gnu 5413 5414fi 5415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5416$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5417if test $ac_compiler_gnu = yes; then 5418 GCC=yes 5419else 5420 GCC= 5421fi 5422ac_test_CFLAGS=${CFLAGS+set} 5423ac_save_CFLAGS=$CFLAGS 5424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5425$as_echo_n "checking whether $CC accepts -g... " >&6; } 5426if ${ac_cv_prog_cc_g+:} false; then : 5427 $as_echo_n "(cached) " >&6 5428else 5429 ac_save_c_werror_flag=$ac_c_werror_flag 5430 ac_c_werror_flag=yes 5431 ac_cv_prog_cc_g=no 5432 CFLAGS="-g" 5433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5434/* end confdefs.h. */ 5435 5436int 5437main () 5438{ 5439 5440 ; 5441 return 0; 5442} 5443_ACEOF 5444if ac_fn_c_try_compile "$LINENO"; then : 5445 ac_cv_prog_cc_g=yes 5446else 5447 CFLAGS="" 5448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5449/* end confdefs.h. */ 5450 5451int 5452main () 5453{ 5454 5455 ; 5456 return 0; 5457} 5458_ACEOF 5459if ac_fn_c_try_compile "$LINENO"; then : 5460 5461else 5462 ac_c_werror_flag=$ac_save_c_werror_flag 5463 CFLAGS="-g" 5464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5465/* end confdefs.h. */ 5466 5467int 5468main () 5469{ 5470 5471 ; 5472 return 0; 5473} 5474_ACEOF 5475if ac_fn_c_try_compile "$LINENO"; then : 5476 ac_cv_prog_cc_g=yes 5477fi 5478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5479fi 5480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5481fi 5482rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5483 ac_c_werror_flag=$ac_save_c_werror_flag 5484fi 5485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5486$as_echo "$ac_cv_prog_cc_g" >&6; } 5487if test "$ac_test_CFLAGS" = set; then 5488 CFLAGS=$ac_save_CFLAGS 5489elif test $ac_cv_prog_cc_g = yes; then 5490 if test "$GCC" = yes; then 5491 CFLAGS="-g -O2" 5492 else 5493 CFLAGS="-g" 5494 fi 5495else 5496 if test "$GCC" = yes; then 5497 CFLAGS="-O2" 5498 else 5499 CFLAGS= 5500 fi 5501fi 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5503$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5504if ${ac_cv_prog_cc_c89+:} false; then : 5505 $as_echo_n "(cached) " >&6 5506else 5507 ac_cv_prog_cc_c89=no 5508ac_save_CC=$CC 5509cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5510/* end confdefs.h. */ 5511#include <stdarg.h> 5512#include <stdio.h> 5513struct stat; 5514/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5515struct buf { int x; }; 5516FILE * (*rcsopen) (struct buf *, struct stat *, int); 5517static char *e (p, i) 5518 char **p; 5519 int i; 5520{ 5521 return p[i]; 5522} 5523static char *f (char * (*g) (char **, int), char **p, ...) 5524{ 5525 char *s; 5526 va_list v; 5527 va_start (v,p); 5528 s = g (p, va_arg (v,int)); 5529 va_end (v); 5530 return s; 5531} 5532 5533/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5534 function prototypes and stuff, but not '\xHH' hex character constants. 5535 These don't provoke an error unfortunately, instead are silently treated 5536 as 'x'. The following induces an error, until -std is added to get 5537 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5538 array size at least. It's necessary to write '\x00'==0 to get something 5539 that's true only with -std. */ 5540int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5541 5542/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5543 inside strings and character constants. */ 5544#define FOO(x) 'x' 5545int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5546 5547int test (int i, double x); 5548struct s1 {int (*f) (int a);}; 5549struct s2 {int (*f) (double a);}; 5550int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5551int argc; 5552char **argv; 5553int 5554main () 5555{ 5556return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5557 ; 5558 return 0; 5559} 5560_ACEOF 5561for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5562 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5563do 5564 CC="$ac_save_CC $ac_arg" 5565 if ac_fn_c_try_compile "$LINENO"; then : 5566 ac_cv_prog_cc_c89=$ac_arg 5567fi 5568rm -f core conftest.err conftest.$ac_objext 5569 test "x$ac_cv_prog_cc_c89" != "xno" && break 5570done 5571rm -f conftest.$ac_ext 5572CC=$ac_save_CC 5573 5574fi 5575# AC_CACHE_VAL 5576case "x$ac_cv_prog_cc_c89" in 5577 x) 5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5579$as_echo "none needed" >&6; } ;; 5580 xno) 5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5582$as_echo "unsupported" >&6; } ;; 5583 *) 5584 CC="$CC $ac_cv_prog_cc_c89" 5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5586$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5587esac 5588if test "x$ac_cv_prog_cc_c89" != xno; then : 5589 5590fi 5591 5592ac_ext=cpp 5593ac_cpp='$CXXCPP $CPPFLAGS' 5594ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5595ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5596ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5597 5598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5599$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5600set x ${MAKE-make} 5601ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5602if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5603 $as_echo_n "(cached) " >&6 5604else 5605 cat >conftest.make <<\_ACEOF 5606SHELL = /bin/sh 5607all: 5608 @echo '@@@%%%=$(MAKE)=@@@%%%' 5609_ACEOF 5610# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5611case `${MAKE-make} -f conftest.make 2>/dev/null` in 5612 *@@@%%%=?*=@@@%%%*) 5613 eval ac_cv_prog_make_${ac_make}_set=yes;; 5614 *) 5615 eval ac_cv_prog_make_${ac_make}_set=no;; 5616esac 5617rm -f conftest.make 5618fi 5619if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5621$as_echo "yes" >&6; } 5622 SET_MAKE= 5623else 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5625$as_echo "no" >&6; } 5626 SET_MAKE="MAKE=${MAKE-make}" 5627fi 5628 5629for ac_prog in 'bison -y' byacc 5630do 5631 # Extract the first word of "$ac_prog", so it can be a program name with args. 5632set dummy $ac_prog; ac_word=$2 5633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5634$as_echo_n "checking for $ac_word... " >&6; } 5635if ${ac_cv_prog_YACC+:} false; then : 5636 $as_echo_n "(cached) " >&6 5637else 5638 if test -n "$YACC"; then 5639 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5640else 5641as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5642for as_dir in $PATH 5643do 5644 IFS=$as_save_IFS 5645 test -z "$as_dir" && as_dir=. 5646 for ac_exec_ext in '' $ac_executable_extensions; do 5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5648 ac_cv_prog_YACC="$ac_prog" 5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5650 break 2 5651 fi 5652done 5653 done 5654IFS=$as_save_IFS 5655 5656fi 5657fi 5658YACC=$ac_cv_prog_YACC 5659if test -n "$YACC"; then 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 5661$as_echo "$YACC" >&6; } 5662else 5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5664$as_echo "no" >&6; } 5665fi 5666 5667 5668 test -n "$YACC" && break 5669done 5670test -n "$YACC" || YACC="yacc" 5671 5672 5673if test "$GXX" = yes ; then 5674 ac_gcc_version=`echo __GNUC__ | $CC -E - | grep -v ^\#` 5675 ac_clang=`echo __clang__ | $CC -E - | grep -v ^\#` 5676 if test "$ac_gcc_version" -lt 4; then 5677 CFLAGS=$CFLAGS" -finline-limit=400" 5678 else 5679 if test "$ac_clang" != 1; then 5680 CFLAGS=$CFLAGS" -fno-var-tracking" 5681 fi 5682 fi 5683fi 5684 5685 5686 5687 5688 5689ac_ext=cpp 5690ac_cpp='$CXXCPP $CPPFLAGS' 5691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 5695$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 5696if test -z "$CXXCPP"; then 5697 if ${ac_cv_prog_CXXCPP+:} false; then : 5698 $as_echo_n "(cached) " >&6 5699else 5700 # Double quotes because CXXCPP needs to be expanded 5701 for CXXCPP in "$CXX -E" "/lib/cpp" 5702 do 5703 ac_preproc_ok=false 5704for ac_cxx_preproc_warn_flag in '' yes 5705do 5706 # Use a header file that comes with gcc, so configuring glibc 5707 # with a fresh cross-compiler works. 5708 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5709 # <limits.h> exists even on freestanding compilers. 5710 # On the NeXT, cc -E runs the code through the compiler's parser, 5711 # not just through cpp. "Syntax error" is here to catch this case. 5712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5713/* end confdefs.h. */ 5714#ifdef __STDC__ 5715# include <limits.h> 5716#else 5717# include <assert.h> 5718#endif 5719 Syntax error 5720_ACEOF 5721if ac_fn_cxx_try_cpp "$LINENO"; then : 5722 5723else 5724 # Broken: fails on valid input. 5725continue 5726fi 5727rm -f conftest.err conftest.i conftest.$ac_ext 5728 5729 # OK, works on sane cases. Now check whether nonexistent headers 5730 # can be detected and how. 5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5732/* end confdefs.h. */ 5733#include <ac_nonexistent.h> 5734_ACEOF 5735if ac_fn_cxx_try_cpp "$LINENO"; then : 5736 # Broken: success on invalid input. 5737continue 5738else 5739 # Passes both tests. 5740ac_preproc_ok=: 5741break 5742fi 5743rm -f conftest.err conftest.i conftest.$ac_ext 5744 5745done 5746# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5747rm -f conftest.i conftest.err conftest.$ac_ext 5748if $ac_preproc_ok; then : 5749 break 5750fi 5751 5752 done 5753 ac_cv_prog_CXXCPP=$CXXCPP 5754 5755fi 5756 CXXCPP=$ac_cv_prog_CXXCPP 5757else 5758 ac_cv_prog_CXXCPP=$CXXCPP 5759fi 5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 5761$as_echo "$CXXCPP" >&6; } 5762ac_preproc_ok=false 5763for ac_cxx_preproc_warn_flag in '' yes 5764do 5765 # Use a header file that comes with gcc, so configuring glibc 5766 # with a fresh cross-compiler works. 5767 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5768 # <limits.h> exists even on freestanding compilers. 5769 # On the NeXT, cc -E runs the code through the compiler's parser, 5770 # not just through cpp. "Syntax error" is here to catch this case. 5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772/* end confdefs.h. */ 5773#ifdef __STDC__ 5774# include <limits.h> 5775#else 5776# include <assert.h> 5777#endif 5778 Syntax error 5779_ACEOF 5780if ac_fn_cxx_try_cpp "$LINENO"; then : 5781 5782else 5783 # Broken: fails on valid input. 5784continue 5785fi 5786rm -f conftest.err conftest.i conftest.$ac_ext 5787 5788 # OK, works on sane cases. Now check whether nonexistent headers 5789 # can be detected and how. 5790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5791/* end confdefs.h. */ 5792#include <ac_nonexistent.h> 5793_ACEOF 5794if ac_fn_cxx_try_cpp "$LINENO"; then : 5795 # Broken: success on invalid input. 5796continue 5797else 5798 # Passes both tests. 5799ac_preproc_ok=: 5800break 5801fi 5802rm -f conftest.err conftest.i conftest.$ac_ext 5803 5804done 5805# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5806rm -f conftest.i conftest.err conftest.$ac_ext 5807if $ac_preproc_ok; then : 5808 5809else 5810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5812as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 5813See \`config.log' for more details" "$LINENO" 5; } 5814fi 5815 5816ac_ext=cpp 5817ac_cpp='$CXXCPP $CPPFLAGS' 5818ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5819ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5820ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5821 5822 5823ac_fn_cxx_check_header_mongrel "$LINENO" "tr1/unordered_map" "ac_cv_header_tr1_unordered_map" "$ac_includes_default" 5824if test "x$ac_cv_header_tr1_unordered_map" = xyes; then : 5825 5826fi 5827 5828 5829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5830/* end confdefs.h. */ 5831#include <tr1/unordered_map> 5832 std::tr1::unordered_map<int,int> map; 5833 5834int 5835main () 5836{ 5837 5838 ; 5839 return 0; 5840} 5841_ACEOF 5842if ac_fn_cxx_try_compile "$LINENO"; then : 5843 5844$as_echo "#define HAVE_TR1_UNORDERED_MAP 1" >>confdefs.h 5845 5846else 5847 5848 ac_fn_cxx_check_header_mongrel "$LINENO" "unordered_map" "ac_cv_header_unordered_map" "$ac_includes_default" 5849if test "x$ac_cv_header_unordered_map" = xyes; then : 5850 5851$as_echo "#define HAVE_UNORDERED_MAP 1" >>confdefs.h 5852 5853else 5854 ac_fn_cxx_check_header_mongrel "$LINENO" "ext/hash_map" "ac_cv_header_ext_hash_map" "$ac_includes_default" 5855if test "x$ac_cv_header_ext_hash_map" = xyes; then : 5856 5857else 5858 OPTIONS=$OPTIONS"-DNOHASH " 5859fi 5860 5861 5862fi 5863 5864 5865fi 5866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5867 5868ASYGLVERSION=1.00 5869 5870GCVERSION=8.0.4 5871ATOMICVERSION=7.6.10 5872 5873GCFILE=gc-$GCVERSION 5874ac_cv_use_gc="system" 5875 5876as_ac_File=`$as_echo "ac_cv_file_$GCFILE.tar.gz" | $as_tr_sh` 5877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GCFILE.tar.gz" >&5 5878$as_echo_n "checking for $GCFILE.tar.gz... " >&6; } 5879if eval \${$as_ac_File+:} false; then : 5880 $as_echo_n "(cached) " >&6 5881else 5882 test "$cross_compiling" = yes && 5883 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 5884if test -r "$GCFILE.tar.gz"; then 5885 eval "$as_ac_File=yes" 5886else 5887 eval "$as_ac_File=no" 5888fi 5889fi 5890eval ac_res=\$$as_ac_File 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 5892$as_echo "$ac_res" >&6; } 5893if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 5894 ac_cv_use_gc=$GCVERSION 5895fi 5896 5897# Check whether --enable-gc was given. 5898if test "${enable_gc+set}" = set; then : 5899 enableval=$enable_gc; 5900 if test "x$enableval" != "xyes" ; then 5901 ac_cv_use_gc=$enableval 5902 fi 5903 5904fi 5905 5906 5907OPTIONS="-D_FILE_OFFSET_BITS=64 " 5908GCLIB= 5909GCPPLIB= 5910INCL="-I." 5911GCNAME="Boehm Garbage Collector" 5912GCOPTIONS="--disable-shared" 5913if test "x$ac_cv_use_gc" != "xno" ; then 5914 OPTIONS=$OPTIONS"-DUSEGC " 5915 case _$ac_cv_use_gc in 5916 _|_system|_*[\\/]*) 5917 if test "x$ac_cv_use_gc" = "xsystem" ; then 5918 INCL="-I. -I$prefix/include/gc -I/usr/include/gc" 5919 LIBS=$LIBS"-L$prefix/lib " 5920 else 5921 INCL="-I$ac_cv_use_gc/include/gc" 5922 LIBS=$LIBS"-L$ac_cv_use_gc/lib " 5923 fi 5924 CPPFLAGS_SAVE=$CPPFLAGS 5925 CPPFLAGS=$CPPFLAGS" $INCL" 5926 ac_fn_cxx_check_header_mongrel "$LINENO" "gc.h" "ac_cv_header_gc_h" "$ac_includes_default" 5927if test "x$ac_cv_header_gc_h" = xyes; then : 5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_malloc in -lgc-threaded" >&5 5929$as_echo_n "checking for GC_malloc in -lgc-threaded... " >&6; } 5930if ${ac_cv_lib_gc_GC_malloc+:} false; then : 5931 $as_echo_n "(cached) " >&6 5932else 5933 ac_check_lib_save_LIBS=$LIBS 5934LIBS="-lgc-threaded $LIBS" 5935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5936/* end confdefs.h. */ 5937 5938/* Override any GCC internal prototype to avoid an error. 5939 Use char because int might match the return type of a GCC 5940 builtin and then its argument prototype would still apply. */ 5941#ifdef __cplusplus 5942extern "C" 5943#endif 5944char GC_malloc (); 5945int 5946main () 5947{ 5948return GC_malloc (); 5949 ; 5950 return 0; 5951} 5952_ACEOF 5953if ac_fn_cxx_try_link "$LINENO"; then : 5954 ac_cv_lib_gc_GC_malloc=yes 5955else 5956 ac_cv_lib_gc_GC_malloc=no 5957fi 5958rm -f core conftest.err conftest.$ac_objext \ 5959 conftest$ac_exeext conftest.$ac_ext 5960LIBS=$ac_check_lib_save_LIBS 5961fi 5962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gc_GC_malloc" >&5 5963$as_echo "$ac_cv_lib_gc_GC_malloc" >&6; } 5964if test "x$ac_cv_lib_gc_GC_malloc" = xyes; then : 5965 5966 LIBS=$LIBS"-lgc-threaded " 5967 { $as_echo "$as_me:${as_lineno-$LINENO}: enabling system $GCNAME" >&5 5968$as_echo "$as_me: enabling system $GCNAME" >&6;} 5969else 5970 5971 GCDIR=$GCFILE 5972 INCL="-I. -I\$(GC)/include" 5973 GCLIB="\$(GC)/.libs/libgc.a" 5974 { $as_echo "$as_me:${as_lineno-$LINENO}: $GCNAME library not found" >&5 5975$as_echo "$as_me: $GCNAME library not found" >&6;} 5976fi 5977 5978else 5979 GCDIR=$GCFILE 5980 GCLIB="\$(GC)/.libs/libgc.a" 5981 INCL="-I. -I\$(GC)/include" 5982 { $as_echo "$as_me:${as_lineno-$LINENO}: $GCNAME header file not found" >&5 5983$as_echo "$as_me: $GCNAME header file not found" >&6;} 5984fi 5985 5986 5987 CPPFLAGS=$CPPFLAGS_SAVE 5988 ;; 5989 *) 5990 GCVERSION=$ac_cv_use_gc 5991 GCFILE=gc-$GCVERSION 5992 GCDIR=$GCFILE 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: enabling local $GCNAME $GCDIR" >&5 5994$as_echo "$as_me: enabling local $GCNAME $GCDIR" >&6;} 5995 GCLIB="\$(GC)/.libs/libgc.a" 5996 INCL="-I. -I\$(GC)/include" 5997 ;; 5998 esac 5999else 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: disabling the $GCNAME" >&5 6001$as_echo "$as_me: disabling the $GCNAME" >&6;} 6002fi 6003 6004# Check whether --enable-gc-debug was given. 6005if test "${enable_gc_debug+set}" = set; then : 6006 enableval=$enable_gc_debug; if test "x$ac_cv_use_gc" != "xno" ; then 6007 if test "x$enableval" = "xyes" ; then 6008 OPTIONS=$OPTIONS"-DGC_DEBUG " 6009 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Enabling GC debugging: remember to make clean ***" >&5 6010$as_echo "$as_me: *** Enabling GC debugging: remember to make clean ***" >&6;} 6011 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Set the environment variable GC_FIND_LEAK at runtime ***" >&5 6012$as_echo "$as_me: *** Set the environment variable GC_FIND_LEAK at runtime ***" >&6;} 6013 fi 6014 fi 6015 6016fi 6017 6018 6019# Check whether --enable-gc-full-debug was given. 6020if test "${enable_gc_full_debug+set}" = set; then : 6021 enableval=$enable_gc_full_debug; if test "x$ac_cv_use_gc" != "xno" ; then 6022 if test "x$enableval" = "xyes" ; then 6023 OPTIONS=$OPTIONS"-DGC_DEBUG -DGC_BACKTRACE " 6024 GCOPTIONS=$GCOPTIONS"--enable-gc-debug " 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Enabling GC backtrace debugging; remember to make gc-clean ***" >&5 6026$as_echo "$as_me: *** Enabling GC backtrace debugging; remember to make gc-clean ***" >&6;} 6027 fi 6028 fi 6029 6030fi 6031 6032 6033INCL=$INCL" -I/usr/include/tirpc" 6034 6035if test "$OSTYPE" = "msdos"; then 6036CPPFLAGS=$CPPFLAGS" -D__MSDOS__ -I/usr/include/w32api -I/usr/include -DCALLBACK=__stdcall $INCL" 6037else 6038CPPFLAGS=$CPPFLAGS" $INCL" 6039fi 6040 6041ac_fn_cxx_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 6042if test "x$ac_cv_func_getopt_long_only" = xyes; then : 6043 6044$as_echo "#define HAVE_GNU_GETOPT_H 1" >>confdefs.h 6045 6046else 6047 getopt="getopt getopt1" 6048fi 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061# Checks for libraries. 6062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing lgamma" >&5 6063$as_echo_n "checking for library containing lgamma... " >&6; } 6064if ${ac_cv_search_lgamma+:} false; then : 6065 $as_echo_n "(cached) " >&6 6066else 6067 ac_func_search_save_LIBS=$LIBS 6068cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6069/* end confdefs.h. */ 6070 6071/* Override any GCC internal prototype to avoid an error. 6072 Use char because int might match the return type of a GCC 6073 builtin and then its argument prototype would still apply. */ 6074#ifdef __cplusplus 6075extern "C" 6076#endif 6077char lgamma (); 6078int 6079main () 6080{ 6081return lgamma (); 6082 ; 6083 return 0; 6084} 6085_ACEOF 6086for ac_lib in '' m c; do 6087 if test -z "$ac_lib"; then 6088 ac_res="none required" 6089 else 6090 ac_res=-l$ac_lib 6091 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6092 fi 6093 if ac_fn_cxx_try_link "$LINENO"; then : 6094 ac_cv_search_lgamma=$ac_res 6095fi 6096rm -f core conftest.err conftest.$ac_objext \ 6097 conftest$ac_exeext 6098 if ${ac_cv_search_lgamma+:} false; then : 6099 break 6100fi 6101done 6102if ${ac_cv_search_lgamma+:} false; then : 6103 6104else 6105 ac_cv_search_lgamma=no 6106fi 6107rm conftest.$ac_ext 6108LIBS=$ac_func_search_save_LIBS 6109fi 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_lgamma" >&5 6111$as_echo "$ac_cv_search_lgamma" >&6; } 6112ac_res=$ac_cv_search_lgamma 6113if test "$ac_res" != no; then : 6114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6115 6116else 6117 as_fn_error $? "*** Please install libm on your system ***" "$LINENO" 5 6118fi 6119 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5 6121$as_echo_n "checking for deflate in -lz... " >&6; } 6122if ${ac_cv_lib_z_deflate+:} false; then : 6123 $as_echo_n "(cached) " >&6 6124else 6125 ac_check_lib_save_LIBS=$LIBS 6126LIBS="-lz $LIBS" 6127cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6128/* end confdefs.h. */ 6129 6130/* Override any GCC internal prototype to avoid an error. 6131 Use char because int might match the return type of a GCC 6132 builtin and then its argument prototype would still apply. */ 6133#ifdef __cplusplus 6134extern "C" 6135#endif 6136char deflate (); 6137int 6138main () 6139{ 6140return deflate (); 6141 ; 6142 return 0; 6143} 6144_ACEOF 6145if ac_fn_cxx_try_link "$LINENO"; then : 6146 ac_cv_lib_z_deflate=yes 6147else 6148 ac_cv_lib_z_deflate=no 6149fi 6150rm -f core conftest.err conftest.$ac_objext \ 6151 conftest$ac_exeext conftest.$ac_ext 6152LIBS=$ac_check_lib_save_LIBS 6153fi 6154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5 6155$as_echo "$ac_cv_lib_z_deflate" >&6; } 6156if test "x$ac_cv_lib_z_deflate" = xyes; then : 6157 cat >>confdefs.h <<_ACEOF 6158#define HAVE_LIBZ 1 6159_ACEOF 6160 6161 LIBS="-lz $LIBS" 6162 6163else 6164 as_fn_error $? "*** Please install libz or zlib-devel on your system ***" "$LINENO" 5 6165fi 6166 6167 6168 6169ac_ext=c 6170ac_cpp='$CPP $CPPFLAGS' 6171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6173ac_compiler_gnu=$ac_cv_c_compiler_gnu 6174 6175ax_pthread_ok=no 6176 6177# We used to check for pthread.h first, but this fails if pthread.h 6178# requires special compiler flags (e.g. on True64 or Sequent). 6179# It gets checked for in the link test anyway. 6180 6181# First of all, check if the user has set any of the PTHREAD_LIBS, 6182# etcetera environment variables, and if threads linking works using 6183# them: 6184if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 6185 save_CFLAGS="$CFLAGS" 6186 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6187 save_LIBS="$LIBS" 6188 LIBS="$PTHREAD_LIBS $LIBS" 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 6190$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 6191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6192/* end confdefs.h. */ 6193 6194/* Override any GCC internal prototype to avoid an error. 6195 Use char because int might match the return type of a GCC 6196 builtin and then its argument prototype would still apply. */ 6197#ifdef __cplusplus 6198extern "C" 6199#endif 6200char pthread_join (); 6201int 6202main () 6203{ 6204return pthread_join (); 6205 ; 6206 return 0; 6207} 6208_ACEOF 6209if ac_fn_c_try_link "$LINENO"; then : 6210 ax_pthread_ok=yes 6211fi 6212rm -f core conftest.err conftest.$ac_objext \ 6213 conftest$ac_exeext conftest.$ac_ext 6214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 6215$as_echo "$ax_pthread_ok" >&6; } 6216 if test x"$ax_pthread_ok" = xno; then 6217 PTHREAD_LIBS="" 6218 PTHREAD_CFLAGS="" 6219 fi 6220 LIBS="$save_LIBS" 6221 CFLAGS="$save_CFLAGS" 6222fi 6223 6224# We must check for the threads library under a number of different 6225# names; the ordering is very important because some systems 6226# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 6227# libraries is broken (non-POSIX). 6228 6229# Create a list of thread flags to try. Items starting with a "-" are 6230# C compiler flags, and other items are library names, except for "none" 6231# which indicates that we try without any flags at all, and "pthread-config" 6232# which is a program returning the flags for the Pth emulation library. 6233 6234ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 6235 6236# The ordering *is* (sometimes) important. Some notes on the 6237# individual items follow: 6238 6239# pthreads: AIX (must check this before -lpthread) 6240# none: in case threads are in libc; should be tried before -Kthread and 6241# other compiler flags to prevent continual compiler warnings 6242# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 6243# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 6244# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 6245# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 6246# -pthreads: Solaris/gcc 6247# -mthreads: Mingw32/gcc, Lynx/gcc 6248# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 6249# doesn't hurt to check since this sometimes defines pthreads too; 6250# also defines -D_REENTRANT) 6251# ... -mt is also the pthreads flag for HP/aCC 6252# pthread: Linux, etcetera 6253# --thread-safe: KAI C++ 6254# pthread-config: use pthread-config program (for GNU Pth library) 6255 6256case ${host_os} in 6257 solaris*) 6258 6259 # On Solaris (at least, for some versions), libc contains stubbed 6260 # (non-functional) versions of the pthreads routines, so link-based 6261 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 6262 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 6263 # a function called by this macro, so we could check for that, but 6264 # who knows whether they'll stub that too in a future libc.) So, 6265 # we'll just look for -pthreads and -lpthread first: 6266 6267 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 6268 ;; 6269 6270 darwin*) 6271 ax_pthread_flags="-pthread $ax_pthread_flags" 6272 ;; 6273esac 6274 6275if test x"$ax_pthread_ok" = xno; then 6276for flag in $ax_pthread_flags; do 6277 6278 case $flag in 6279 none) 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 6281$as_echo_n "checking whether pthreads work without any flags... " >&6; } 6282 ;; 6283 6284 -*) 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 6286$as_echo_n "checking whether pthreads work with $flag... " >&6; } 6287 PTHREAD_CFLAGS="$flag" 6288 ;; 6289 6290 pthread-config) 6291 # Extract the first word of "pthread-config", so it can be a program name with args. 6292set dummy pthread-config; ac_word=$2 6293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6294$as_echo_n "checking for $ac_word... " >&6; } 6295if ${ac_cv_prog_ax_pthread_config+:} false; then : 6296 $as_echo_n "(cached) " >&6 6297else 6298 if test -n "$ax_pthread_config"; then 6299 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 6300else 6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6302for as_dir in $PATH 6303do 6304 IFS=$as_save_IFS 6305 test -z "$as_dir" && as_dir=. 6306 for ac_exec_ext in '' $ac_executable_extensions; do 6307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6308 ac_cv_prog_ax_pthread_config="yes" 6309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6310 break 2 6311 fi 6312done 6313 done 6314IFS=$as_save_IFS 6315 6316 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 6317fi 6318fi 6319ax_pthread_config=$ac_cv_prog_ax_pthread_config 6320if test -n "$ax_pthread_config"; then 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 6322$as_echo "$ax_pthread_config" >&6; } 6323else 6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6325$as_echo "no" >&6; } 6326fi 6327 6328 6329 if test x"$ax_pthread_config" = xno; then continue; fi 6330 PTHREAD_CFLAGS="`pthread-config --cflags`" 6331 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 6332 ;; 6333 6334 *) 6335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 6336$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 6337 PTHREAD_LIBS="-l$flag" 6338 ;; 6339 esac 6340 6341 save_LIBS="$LIBS" 6342 save_CFLAGS="$CFLAGS" 6343 LIBS="$PTHREAD_LIBS $LIBS" 6344 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6345 6346 # Check for various functions. We must include pthread.h, 6347 # since some functions may be macros. (On the Sequent, we 6348 # need a special flag -Kthread to make this header compile.) 6349 # We check for pthread_join because it is in -lpthread on IRIX 6350 # while pthread_create is in libc. We check for pthread_attr_init 6351 # due to DEC craziness with -lpthreads. We check for 6352 # pthread_cleanup_push because it is one of the few pthread 6353 # functions on Solaris that doesn't have a non-functional libc stub. 6354 # We try pthread_create on general principles. 6355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6356/* end confdefs.h. */ 6357#include <pthread.h> 6358 static void routine(void *a) { a = 0; } 6359 static void *start_routine(void *a) { return a; } 6360int 6361main () 6362{ 6363pthread_t th; pthread_attr_t attr; 6364 pthread_create(&th, 0, start_routine, 0); 6365 pthread_join(th, 0); 6366 pthread_attr_init(&attr); 6367 pthread_cleanup_push(routine, 0); 6368 pthread_cleanup_pop(0) /* ; */ 6369 ; 6370 return 0; 6371} 6372_ACEOF 6373if ac_fn_c_try_link "$LINENO"; then : 6374 ax_pthread_ok=yes 6375fi 6376rm -f core conftest.err conftest.$ac_objext \ 6377 conftest$ac_exeext conftest.$ac_ext 6378 6379 LIBS="$save_LIBS" 6380 CFLAGS="$save_CFLAGS" 6381 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 6383$as_echo "$ax_pthread_ok" >&6; } 6384 if test "x$ax_pthread_ok" = xyes; then 6385 break; 6386 fi 6387 6388 PTHREAD_LIBS="" 6389 PTHREAD_CFLAGS="" 6390done 6391fi 6392 6393# Various other checks: 6394if test "x$ax_pthread_ok" = xyes; then 6395 save_LIBS="$LIBS" 6396 LIBS="$PTHREAD_LIBS $LIBS" 6397 save_CFLAGS="$CFLAGS" 6398 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 6399 6400 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 6401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 6402$as_echo_n "checking for joinable pthread attribute... " >&6; } 6403 attr_name=unknown 6404 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 6405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6406/* end confdefs.h. */ 6407#include <pthread.h> 6408int 6409main () 6410{ 6411int attr = $attr; return attr /* ; */ 6412 ; 6413 return 0; 6414} 6415_ACEOF 6416if ac_fn_c_try_link "$LINENO"; then : 6417 attr_name=$attr; break 6418fi 6419rm -f core conftest.err conftest.$ac_objext \ 6420 conftest$ac_exeext conftest.$ac_ext 6421 done 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 6423$as_echo "$attr_name" >&6; } 6424 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 6425 6426cat >>confdefs.h <<_ACEOF 6427#define PTHREAD_CREATE_JOINABLE $attr_name 6428_ACEOF 6429 6430 fi 6431 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 6433$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 6434 flag=no 6435 case ${host_os} in 6436 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 6437 osf* | hpux*) flag="-D_REENTRANT";; 6438 solaris*) 6439 if test "$GCC" = "yes"; then 6440 flag="-D_REENTRANT" 6441 else 6442 flag="-mt -D_REENTRANT" 6443 fi 6444 ;; 6445 esac 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5 6447$as_echo "${flag}" >&6; } 6448 if test "x$flag" != xno; then 6449 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 6450 fi 6451 6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 6453$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 6454if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 6455 $as_echo_n "(cached) " >&6 6456else 6457 6458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6459/* end confdefs.h. */ 6460 6461 #include <pthread.h> 6462int 6463main () 6464{ 6465int i = PTHREAD_PRIO_INHERIT; 6466 ; 6467 return 0; 6468} 6469_ACEOF 6470if ac_fn_c_try_link "$LINENO"; then : 6471 ax_cv_PTHREAD_PRIO_INHERIT=yes 6472else 6473 ax_cv_PTHREAD_PRIO_INHERIT=no 6474fi 6475rm -f core conftest.err conftest.$ac_objext \ 6476 conftest$ac_exeext conftest.$ac_ext 6477 6478fi 6479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 6480$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 6481 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 6482 6483$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 6484 6485fi 6486 6487 LIBS="$save_LIBS" 6488 CFLAGS="$save_CFLAGS" 6489 6490 # More AIX lossage: must compile with xlc_r or cc_r 6491 if test x"$GCC" != xyes; then 6492 for ac_prog in xlc_r cc_r 6493do 6494 # Extract the first word of "$ac_prog", so it can be a program name with args. 6495set dummy $ac_prog; ac_word=$2 6496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6497$as_echo_n "checking for $ac_word... " >&6; } 6498if ${ac_cv_prog_PTHREAD_CC+:} false; then : 6499 $as_echo_n "(cached) " >&6 6500else 6501 if test -n "$PTHREAD_CC"; then 6502 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 6503else 6504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6505for as_dir in $PATH 6506do 6507 IFS=$as_save_IFS 6508 test -z "$as_dir" && as_dir=. 6509 for ac_exec_ext in '' $ac_executable_extensions; do 6510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6511 ac_cv_prog_PTHREAD_CC="$ac_prog" 6512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6513 break 2 6514 fi 6515done 6516 done 6517IFS=$as_save_IFS 6518 6519fi 6520fi 6521PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 6522if test -n "$PTHREAD_CC"; then 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 6524$as_echo "$PTHREAD_CC" >&6; } 6525else 6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6527$as_echo "no" >&6; } 6528fi 6529 6530 6531 test -n "$PTHREAD_CC" && break 6532done 6533test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}" 6534 6535 else 6536 PTHREAD_CC=$CC 6537 fi 6538else 6539 PTHREAD_CC="$CC" 6540fi 6541 6542 6543 6544 6545 6546# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 6547if test x"$ax_pthread_ok" = xyes; then 6548 6549$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 6550 6551 : 6552else 6553 ax_pthread_ok=no 6554 6555fi 6556ac_ext=cpp 6557ac_cpp='$CXXCPP $CPPFLAGS' 6558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 6561 6562 6563 6564# Check whether --enable-sigsegv was given. 6565if test "${enable_sigsegv+set}" = set; then : 6566 enableval=$enable_sigsegv; 6567fi 6568 6569 6570if test "x$enable_sigsegv" != "xno"; then 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stackoverflow_install_handler in -lsigsegv" >&5 6572$as_echo_n "checking for stackoverflow_install_handler in -lsigsegv... " >&6; } 6573if ${ac_cv_lib_sigsegv_stackoverflow_install_handler+:} false; then : 6574 $as_echo_n "(cached) " >&6 6575else 6576 ac_check_lib_save_LIBS=$LIBS 6577LIBS="-lsigsegv $LIBS" 6578cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6579/* end confdefs.h. */ 6580 6581/* Override any GCC internal prototype to avoid an error. 6582 Use char because int might match the return type of a GCC 6583 builtin and then its argument prototype would still apply. */ 6584#ifdef __cplusplus 6585extern "C" 6586#endif 6587char stackoverflow_install_handler (); 6588int 6589main () 6590{ 6591return stackoverflow_install_handler (); 6592 ; 6593 return 0; 6594} 6595_ACEOF 6596if ac_fn_cxx_try_link "$LINENO"; then : 6597 ac_cv_lib_sigsegv_stackoverflow_install_handler=yes 6598else 6599 ac_cv_lib_sigsegv_stackoverflow_install_handler=no 6600fi 6601rm -f core conftest.err conftest.$ac_objext \ 6602 conftest$ac_exeext conftest.$ac_ext 6603LIBS=$ac_check_lib_save_LIBS 6604fi 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sigsegv_stackoverflow_install_handler" >&5 6606$as_echo "$ac_cv_lib_sigsegv_stackoverflow_install_handler" >&6; } 6607if test "x$ac_cv_lib_sigsegv_stackoverflow_install_handler" = xyes; then : 6608 cat >>confdefs.h <<_ACEOF 6609#define HAVE_LIBSIGSEGV 1 6610_ACEOF 6611 6612 LIBS="-lsigsegv $LIBS" 6613 6614fi 6615 6616fi 6617 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_yield in -lrt" >&5 6619$as_echo_n "checking for sched_yield in -lrt... " >&6; } 6620if ${ac_cv_lib_rt_sched_yield+:} false; then : 6621 $as_echo_n "(cached) " >&6 6622else 6623 ac_check_lib_save_LIBS=$LIBS 6624LIBS="-lrt $LIBS" 6625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6626/* end confdefs.h. */ 6627 6628/* Override any GCC internal prototype to avoid an error. 6629 Use char because int might match the return type of a GCC 6630 builtin and then its argument prototype would still apply. */ 6631#ifdef __cplusplus 6632extern "C" 6633#endif 6634char sched_yield (); 6635int 6636main () 6637{ 6638return sched_yield (); 6639 ; 6640 return 0; 6641} 6642_ACEOF 6643if ac_fn_cxx_try_link "$LINENO"; then : 6644 ac_cv_lib_rt_sched_yield=yes 6645else 6646 ac_cv_lib_rt_sched_yield=no 6647fi 6648rm -f core conftest.err conftest.$ac_objext \ 6649 conftest$ac_exeext conftest.$ac_ext 6650LIBS=$ac_check_lib_save_LIBS 6651fi 6652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sched_yield" >&5 6653$as_echo "$ac_cv_lib_rt_sched_yield" >&6; } 6654if test "x$ac_cv_lib_rt_sched_yield" = xyes; then : 6655 cat >>confdefs.h <<_ACEOF 6656#define HAVE_LIBRT 1 6657_ACEOF 6658 6659 LIBS="-lrt $LIBS" 6660 6661fi 6662 6663 6664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5 6665$as_echo_n "checking for curl_easy_init in -lcurl... " >&6; } 6666if ${ac_cv_lib_curl_curl_easy_init+:} false; then : 6667 $as_echo_n "(cached) " >&6 6668else 6669 ac_check_lib_save_LIBS=$LIBS 6670LIBS="-lcurl $LIBS" 6671cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6672/* end confdefs.h. */ 6673 6674/* Override any GCC internal prototype to avoid an error. 6675 Use char because int might match the return type of a GCC 6676 builtin and then its argument prototype would still apply. */ 6677#ifdef __cplusplus 6678extern "C" 6679#endif 6680char curl_easy_init (); 6681int 6682main () 6683{ 6684return curl_easy_init (); 6685 ; 6686 return 0; 6687} 6688_ACEOF 6689if ac_fn_cxx_try_link "$LINENO"; then : 6690 ac_cv_lib_curl_curl_easy_init=yes 6691else 6692 ac_cv_lib_curl_curl_easy_init=no 6693fi 6694rm -f core conftest.err conftest.$ac_objext \ 6695 conftest$ac_exeext conftest.$ac_ext 6696LIBS=$ac_check_lib_save_LIBS 6697fi 6698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5 6699$as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; } 6700if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then : 6701 cat >>confdefs.h <<_ACEOF 6702#define HAVE_LIBCURL 1 6703_ACEOF 6704 6705 LIBS="-lcurl $LIBS" 6706 6707else 6708 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libcurl: will compile without optional URL support. ***" >&5 6709$as_echo "$as_me: *** Could not find libcurl: will compile without optional URL support. ***" >&6;} 6710fi 6711 6712 6713# Check whether --enable-readline was given. 6714if test "${enable_readline+set}" = set; then : 6715 enableval=$enable_readline; 6716fi 6717 6718 6719# Check whether --enable-static was given. 6720if test "${enable_static+set}" = set; then : 6721 enableval=$enable_static; 6722fi 6723 6724 6725LDSTATIC="" 6726STATIC="" 6727DYNAMIC="" 6728if test "x$enable_static" = "xyes"; then 6729 LDSTATIC="-static " 6730 STATIC="-Wl,-Bstatic " 6731 DYNAMIC="-Wl,-Bdynamic " 6732fi 6733 6734 6735 6736 6737 6738 6739 6740if test "x$enable_readline" != "xno"; then 6741cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6742/* end confdefs.h. */ 6743 6744 6745#include <stdio.h> 6746#include <unistd.h> 6747#include <readline/readline.h> 6748 6749int 6750main () 6751{ 6752 6753#ifndef RL_READLINE_VERSION 6754abort 6755#endif 6756 6757 ; 6758 return 0; 6759} 6760_ACEOF 6761if ac_fn_cxx_try_compile "$LINENO"; then : 6762 6763LDFLAGS0=$LDFLAGS 6764LDFLAGS=$LDFLAGS$LDSTATIC 6765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for history_list in -lreadline" >&5 6766$as_echo_n "checking for history_list in -lreadline... " >&6; } 6767if ${ac_cv_lib_readline_history_list+:} false; then : 6768 $as_echo_n "(cached) " >&6 6769else 6770 ac_check_lib_save_LIBS=$LIBS 6771LIBS="-lreadline $LIBS" 6772cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6773/* end confdefs.h. */ 6774 6775/* Override any GCC internal prototype to avoid an error. 6776 Use char because int might match the return type of a GCC 6777 builtin and then its argument prototype would still apply. */ 6778#ifdef __cplusplus 6779extern "C" 6780#endif 6781char history_list (); 6782int 6783main () 6784{ 6785return history_list (); 6786 ; 6787 return 0; 6788} 6789_ACEOF 6790if ac_fn_cxx_try_link "$LINENO"; then : 6791 ac_cv_lib_readline_history_list=yes 6792else 6793 ac_cv_lib_readline_history_list=no 6794fi 6795rm -f core conftest.err conftest.$ac_objext \ 6796 conftest$ac_exeext conftest.$ac_ext 6797LIBS=$ac_check_lib_save_LIBS 6798fi 6799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history_list" >&5 6800$as_echo "$ac_cv_lib_readline_history_list" >&6; } 6801if test "x$ac_cv_lib_readline_history_list" = xyes; then : 6802 6803 6804$as_echo "#define HAVE_LIBREADLINE 1" >>confdefs.h 6805 6806LIBS=$LIBS$STATIC"-lreadline "$DYNAMIC 6807 6808else 6809 if test "x$enable_static" = "xyes"; then 6810 6811{ ac_cv_lib_readline_history_list=; unset ac_cv_lib_readline_history_list;} 6812LDFLAGS=$LDFLAGS0 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for history_list in -lreadline" >&5 6814$as_echo_n "checking for history_list in -lreadline... " >&6; } 6815if ${ac_cv_lib_readline_history_list+:} false; then : 6816 $as_echo_n "(cached) " >&6 6817else 6818 ac_check_lib_save_LIBS=$LIBS 6819LIBS="-lreadline $LIBS" 6820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6821/* end confdefs.h. */ 6822 6823/* Override any GCC internal prototype to avoid an error. 6824 Use char because int might match the return type of a GCC 6825 builtin and then its argument prototype would still apply. */ 6826#ifdef __cplusplus 6827extern "C" 6828#endif 6829char history_list (); 6830int 6831main () 6832{ 6833return history_list (); 6834 ; 6835 return 0; 6836} 6837_ACEOF 6838if ac_fn_cxx_try_link "$LINENO"; then : 6839 ac_cv_lib_readline_history_list=yes 6840else 6841 ac_cv_lib_readline_history_list=no 6842fi 6843rm -f core conftest.err conftest.$ac_objext \ 6844 conftest$ac_exeext conftest.$ac_ext 6845LIBS=$ac_check_lib_save_LIBS 6846fi 6847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_history_list" >&5 6848$as_echo "$ac_cv_lib_readline_history_list" >&6; } 6849if test "x$ac_cv_lib_readline_history_list" = xyes; then : 6850 cat >>confdefs.h <<_ACEOF 6851#define HAVE_LIBREADLINE 1 6852_ACEOF 6853 6854 LIBS="-lreadline $LIBS" 6855 6856else 6857 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&5 6858$as_echo "$as_me: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&6;} 6859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 6860$as_echo_n "checking for readline in -ledit... " >&6; } 6861if ${ac_cv_lib_edit_readline+:} false; then : 6862 $as_echo_n "(cached) " >&6 6863else 6864 ac_check_lib_save_LIBS=$LIBS 6865LIBS="-ledit $LIBS" 6866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6867/* end confdefs.h. */ 6868 6869/* Override any GCC internal prototype to avoid an error. 6870 Use char because int might match the return type of a GCC 6871 builtin and then its argument prototype would still apply. */ 6872#ifdef __cplusplus 6873extern "C" 6874#endif 6875char readline (); 6876int 6877main () 6878{ 6879return readline (); 6880 ; 6881 return 0; 6882} 6883_ACEOF 6884if ac_fn_cxx_try_link "$LINENO"; then : 6885 ac_cv_lib_edit_readline=yes 6886else 6887 ac_cv_lib_edit_readline=no 6888fi 6889rm -f core conftest.err conftest.$ac_objext \ 6890 conftest$ac_exeext conftest.$ac_ext 6891LIBS=$ac_check_lib_save_LIBS 6892fi 6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 6894$as_echo "$ac_cv_lib_edit_readline" >&6; } 6895if test "x$ac_cv_lib_edit_readline" = xyes; then : 6896 cat >>confdefs.h <<_ACEOF 6897#define HAVE_LIBEDIT 1 6898_ACEOF 6899 6900 LIBS="-ledit $LIBS" 6901 6902fi 6903 6904for ac_header in editline/readline.h 6905do : 6906 ac_fn_cxx_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 6907if test "x$ac_cv_header_editline_readline_h" = xyes; then : 6908 cat >>confdefs.h <<_ACEOF 6909#define HAVE_EDITLINE_READLINE_H 1 6910_ACEOF 6911 6912fi 6913 6914done 6915 6916 6917fi 6918 6919 6920else 6921 6922{ $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&5 6923$as_echo "$as_me: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&6;} 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 6925$as_echo_n "checking for readline in -ledit... " >&6; } 6926if ${ac_cv_lib_edit_readline+:} false; then : 6927 $as_echo_n "(cached) " >&6 6928else 6929 ac_check_lib_save_LIBS=$LIBS 6930LIBS="-ledit $LIBS" 6931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933 6934/* Override any GCC internal prototype to avoid an error. 6935 Use char because int might match the return type of a GCC 6936 builtin and then its argument prototype would still apply. */ 6937#ifdef __cplusplus 6938extern "C" 6939#endif 6940char readline (); 6941int 6942main () 6943{ 6944return readline (); 6945 ; 6946 return 0; 6947} 6948_ACEOF 6949if ac_fn_cxx_try_link "$LINENO"; then : 6950 ac_cv_lib_edit_readline=yes 6951else 6952 ac_cv_lib_edit_readline=no 6953fi 6954rm -f core conftest.err conftest.$ac_objext \ 6955 conftest$ac_exeext conftest.$ac_ext 6956LIBS=$ac_check_lib_save_LIBS 6957fi 6958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 6959$as_echo "$ac_cv_lib_edit_readline" >&6; } 6960if test "x$ac_cv_lib_edit_readline" = xyes; then : 6961 cat >>confdefs.h <<_ACEOF 6962#define HAVE_LIBEDIT 1 6963_ACEOF 6964 6965 LIBS="-ledit $LIBS" 6966 6967fi 6968 6969for ac_header in editline/readline.h 6970do : 6971 ac_fn_cxx_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 6972if test "x$ac_cv_header_editline_readline_h" = xyes; then : 6973 cat >>confdefs.h <<_ACEOF 6974#define HAVE_EDITLINE_READLINE_H 1 6975_ACEOF 6976 6977fi 6978 6979done 6980 6981 6982fi 6983 6984fi 6985 6986LDFLAGS=$LDFLAGS0 6987 6988else 6989 6990{ $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&5 6991$as_echo "$as_me: *** Could not find GNU readline 4.3 or later: will compile without readline support ***" >&6;} 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -ledit" >&5 6993$as_echo_n "checking for readline in -ledit... " >&6; } 6994if ${ac_cv_lib_edit_readline+:} false; then : 6995 $as_echo_n "(cached) " >&6 6996else 6997 ac_check_lib_save_LIBS=$LIBS 6998LIBS="-ledit $LIBS" 6999cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7000/* end confdefs.h. */ 7001 7002/* Override any GCC internal prototype to avoid an error. 7003 Use char because int might match the return type of a GCC 7004 builtin and then its argument prototype would still apply. */ 7005#ifdef __cplusplus 7006extern "C" 7007#endif 7008char readline (); 7009int 7010main () 7011{ 7012return readline (); 7013 ; 7014 return 0; 7015} 7016_ACEOF 7017if ac_fn_cxx_try_link "$LINENO"; then : 7018 ac_cv_lib_edit_readline=yes 7019else 7020 ac_cv_lib_edit_readline=no 7021fi 7022rm -f core conftest.err conftest.$ac_objext \ 7023 conftest$ac_exeext conftest.$ac_ext 7024LIBS=$ac_check_lib_save_LIBS 7025fi 7026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_edit_readline" >&5 7027$as_echo "$ac_cv_lib_edit_readline" >&6; } 7028if test "x$ac_cv_lib_edit_readline" = xyes; then : 7029 cat >>confdefs.h <<_ACEOF 7030#define HAVE_LIBEDIT 1 7031_ACEOF 7032 7033 LIBS="-ledit $LIBS" 7034 7035fi 7036 7037for ac_header in editline/readline.h 7038do : 7039 ac_fn_cxx_check_header_mongrel "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default" 7040if test "x$ac_cv_header_editline_readline_h" = xyes; then : 7041 cat >>confdefs.h <<_ACEOF 7042#define HAVE_EDITLINE_READLINE_H 1 7043_ACEOF 7044 7045fi 7046 7047done 7048 7049 7050fi 7051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7052 7053 7054LDFLAGS0=$LDFLAGS 7055LDFLAGS=$LDFLAGS$LDSTATIC 7056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 7057$as_echo_n "checking for tgetent in -ltinfo... " >&6; } 7058if ${ac_cv_lib_tinfo_tgetent+:} false; then : 7059 $as_echo_n "(cached) " >&6 7060else 7061 ac_check_lib_save_LIBS=$LIBS 7062LIBS="-ltinfo $LIBS" 7063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7064/* end confdefs.h. */ 7065 7066/* Override any GCC internal prototype to avoid an error. 7067 Use char because int might match the return type of a GCC 7068 builtin and then its argument prototype would still apply. */ 7069#ifdef __cplusplus 7070extern "C" 7071#endif 7072char tgetent (); 7073int 7074main () 7075{ 7076return tgetent (); 7077 ; 7078 return 0; 7079} 7080_ACEOF 7081if ac_fn_cxx_try_link "$LINENO"; then : 7082 ac_cv_lib_tinfo_tgetent=yes 7083else 7084 ac_cv_lib_tinfo_tgetent=no 7085fi 7086rm -f core conftest.err conftest.$ac_objext \ 7087 conftest$ac_exeext conftest.$ac_ext 7088LIBS=$ac_check_lib_save_LIBS 7089fi 7090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 7091$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } 7092if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : 7093 7094 7095$as_echo "#define HAVE_LIBTINFO 1" >>confdefs.h 7096 7097LIBS=$LIBS$STATIC"-ltinfo "$DYNAMIC 7098 7099else 7100 if test "x$enable_static" = "xyes"; then 7101 7102{ ac_cv_lib_tinfo_tgetent=; unset ac_cv_lib_tinfo_tgetent;} 7103LDFLAGS=$LDFLAGS0 7104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5 7105$as_echo_n "checking for tgetent in -ltinfo... " >&6; } 7106if ${ac_cv_lib_tinfo_tgetent+:} false; then : 7107 $as_echo_n "(cached) " >&6 7108else 7109 ac_check_lib_save_LIBS=$LIBS 7110LIBS="-ltinfo $LIBS" 7111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7112/* end confdefs.h. */ 7113 7114/* Override any GCC internal prototype to avoid an error. 7115 Use char because int might match the return type of a GCC 7116 builtin and then its argument prototype would still apply. */ 7117#ifdef __cplusplus 7118extern "C" 7119#endif 7120char tgetent (); 7121int 7122main () 7123{ 7124return tgetent (); 7125 ; 7126 return 0; 7127} 7128_ACEOF 7129if ac_fn_cxx_try_link "$LINENO"; then : 7130 ac_cv_lib_tinfo_tgetent=yes 7131else 7132 ac_cv_lib_tinfo_tgetent=no 7133fi 7134rm -f core conftest.err conftest.$ac_objext \ 7135 conftest$ac_exeext conftest.$ac_ext 7136LIBS=$ac_check_lib_save_LIBS 7137fi 7138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5 7139$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; } 7140if test "x$ac_cv_lib_tinfo_tgetent" = xyes; then : 7141 cat >>confdefs.h <<_ACEOF 7142#define HAVE_LIBTINFO 1 7143_ACEOF 7144 7145 LIBS="-ltinfo $LIBS" 7146 7147else 7148 { $as_echo "$as_me:${as_lineno-$LINENO}: perhaps tgetent is in -lncurses" >&5 7149$as_echo "$as_me: perhaps tgetent is in -lncurses" >&6;} 7150fi 7151 7152 7153else 7154{ $as_echo "$as_me:${as_lineno-$LINENO}: perhaps tgetent is in -lncurses" >&5 7155$as_echo "$as_me: perhaps tgetent is in -lncurses" >&6;} 7156fi 7157 7158fi 7159 7160LDFLAGS=$LDFLAGS0 7161 7162 7163for ac_header in ncurses/curses.h ncurses.h curses.h 7164do : 7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7166ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7167if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7168 cat >>confdefs.h <<_ACEOF 7169#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7170_ACEOF 7171 break 7172fi 7173 7174done 7175 7176 7177LDFLAGS0=$LDFLAGS 7178LDFLAGS=$LDFLAGS$LDSTATIC 7179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5 7180$as_echo_n "checking for setupterm in -lncurses... " >&6; } 7181if ${ac_cv_lib_ncurses_setupterm+:} false; then : 7182 $as_echo_n "(cached) " >&6 7183else 7184 ac_check_lib_save_LIBS=$LIBS 7185LIBS="-lncurses $LIBS" 7186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7187/* end confdefs.h. */ 7188 7189/* Override any GCC internal prototype to avoid an error. 7190 Use char because int might match the return type of a GCC 7191 builtin and then its argument prototype would still apply. */ 7192#ifdef __cplusplus 7193extern "C" 7194#endif 7195char setupterm (); 7196int 7197main () 7198{ 7199return setupterm (); 7200 ; 7201 return 0; 7202} 7203_ACEOF 7204if ac_fn_cxx_try_link "$LINENO"; then : 7205 ac_cv_lib_ncurses_setupterm=yes 7206else 7207 ac_cv_lib_ncurses_setupterm=no 7208fi 7209rm -f core conftest.err conftest.$ac_objext \ 7210 conftest$ac_exeext conftest.$ac_ext 7211LIBS=$ac_check_lib_save_LIBS 7212fi 7213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5 7214$as_echo "$ac_cv_lib_ncurses_setupterm" >&6; } 7215if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then : 7216 7217 7218$as_echo "#define HAVE_LIBCURSES 1" >>confdefs.h 7219 7220LIBS=$LIBS$STATIC"-lncurses "$DYNAMIC 7221 7222else 7223 if test "x$enable_static" = "xyes"; then 7224 7225{ ac_cv_lib_ncurses_setupterm=; unset ac_cv_lib_ncurses_setupterm;} 7226LDFLAGS=$LDFLAGS0 7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lncurses" >&5 7228$as_echo_n "checking for setupterm in -lncurses... " >&6; } 7229if ${ac_cv_lib_ncurses_setupterm+:} false; then : 7230 $as_echo_n "(cached) " >&6 7231else 7232 ac_check_lib_save_LIBS=$LIBS 7233LIBS="-lncurses $LIBS" 7234cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7235/* end confdefs.h. */ 7236 7237/* Override any GCC internal prototype to avoid an error. 7238 Use char because int might match the return type of a GCC 7239 builtin and then its argument prototype would still apply. */ 7240#ifdef __cplusplus 7241extern "C" 7242#endif 7243char setupterm (); 7244int 7245main () 7246{ 7247return setupterm (); 7248 ; 7249 return 0; 7250} 7251_ACEOF 7252if ac_fn_cxx_try_link "$LINENO"; then : 7253 ac_cv_lib_ncurses_setupterm=yes 7254else 7255 ac_cv_lib_ncurses_setupterm=no 7256fi 7257rm -f core conftest.err conftest.$ac_objext \ 7258 conftest$ac_exeext conftest.$ac_ext 7259LIBS=$ac_check_lib_save_LIBS 7260fi 7261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_setupterm" >&5 7262$as_echo "$ac_cv_lib_ncurses_setupterm" >&6; } 7263if test "x$ac_cv_lib_ncurses_setupterm" = xyes; then : 7264 cat >>confdefs.h <<_ACEOF 7265#define HAVE_LIBNCURSES 1 7266_ACEOF 7267 7268 LIBS="-lncurses $LIBS" 7269 7270else 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5 7272$as_echo_n "checking for setupterm in -lcurses... " >&6; } 7273if ${ac_cv_lib_curses_setupterm+:} false; then : 7274 $as_echo_n "(cached) " >&6 7275else 7276 ac_check_lib_save_LIBS=$LIBS 7277LIBS="-lcurses $LIBS" 7278cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7279/* end confdefs.h. */ 7280 7281/* Override any GCC internal prototype to avoid an error. 7282 Use char because int might match the return type of a GCC 7283 builtin and then its argument prototype would still apply. */ 7284#ifdef __cplusplus 7285extern "C" 7286#endif 7287char setupterm (); 7288int 7289main () 7290{ 7291return setupterm (); 7292 ; 7293 return 0; 7294} 7295_ACEOF 7296if ac_fn_cxx_try_link "$LINENO"; then : 7297 ac_cv_lib_curses_setupterm=yes 7298else 7299 ac_cv_lib_curses_setupterm=no 7300fi 7301rm -f core conftest.err conftest.$ac_objext \ 7302 conftest$ac_exeext conftest.$ac_ext 7303LIBS=$ac_check_lib_save_LIBS 7304fi 7305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5 7306$as_echo "$ac_cv_lib_curses_setupterm" >&6; } 7307if test "x$ac_cv_lib_curses_setupterm" = xyes; then : 7308 cat >>confdefs.h <<_ACEOF 7309#define HAVE_LIBCURSES 1 7310_ACEOF 7311 7312 LIBS="-lcurses $LIBS" 7313 7314fi 7315 7316fi 7317 7318 7319else 7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for setupterm in -lcurses" >&5 7321$as_echo_n "checking for setupterm in -lcurses... " >&6; } 7322if ${ac_cv_lib_curses_setupterm+:} false; then : 7323 $as_echo_n "(cached) " >&6 7324else 7325 ac_check_lib_save_LIBS=$LIBS 7326LIBS="-lcurses $LIBS" 7327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7328/* end confdefs.h. */ 7329 7330/* Override any GCC internal prototype to avoid an error. 7331 Use char because int might match the return type of a GCC 7332 builtin and then its argument prototype would still apply. */ 7333#ifdef __cplusplus 7334extern "C" 7335#endif 7336char setupterm (); 7337int 7338main () 7339{ 7340return setupterm (); 7341 ; 7342 return 0; 7343} 7344_ACEOF 7345if ac_fn_cxx_try_link "$LINENO"; then : 7346 ac_cv_lib_curses_setupterm=yes 7347else 7348 ac_cv_lib_curses_setupterm=no 7349fi 7350rm -f core conftest.err conftest.$ac_objext \ 7351 conftest$ac_exeext conftest.$ac_ext 7352LIBS=$ac_check_lib_save_LIBS 7353fi 7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_setupterm" >&5 7355$as_echo "$ac_cv_lib_curses_setupterm" >&6; } 7356if test "x$ac_cv_lib_curses_setupterm" = xyes; then : 7357 cat >>confdefs.h <<_ACEOF 7358#define HAVE_LIBCURSES 1 7359_ACEOF 7360 7361 LIBS="-lcurses $LIBS" 7362 7363fi 7364 7365fi 7366 7367fi 7368 7369LDFLAGS=$LDFLAGS0 7370 7371fi 7372 7373# Check whether --enable-fftw was given. 7374if test "${enable_fftw+set}" = set; then : 7375 enableval=$enable_fftw; 7376fi 7377 7378 7379if test "x$enable_fftw" != "xno"; then 7380 7381ac_fn_cxx_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default" 7382if test "x$ac_cv_header_fftw3_h" = xyes; then : 7383 7384LDFLAGS0=$LDFLAGS 7385LDFLAGS=$LDFLAGS$LDSTATIC 7386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 7387$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } 7388if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : 7389 $as_echo_n "(cached) " >&6 7390else 7391 ac_check_lib_save_LIBS=$LIBS 7392LIBS="-lfftw3 $LIBS" 7393cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7394/* end confdefs.h. */ 7395 7396/* Override any GCC internal prototype to avoid an error. 7397 Use char because int might match the return type of a GCC 7398 builtin and then its argument prototype would still apply. */ 7399#ifdef __cplusplus 7400extern "C" 7401#endif 7402char fftw_execute (); 7403int 7404main () 7405{ 7406return fftw_execute (); 7407 ; 7408 return 0; 7409} 7410_ACEOF 7411if ac_fn_cxx_try_link "$LINENO"; then : 7412 ac_cv_lib_fftw3_fftw_execute=yes 7413else 7414 ac_cv_lib_fftw3_fftw_execute=no 7415fi 7416rm -f core conftest.err conftest.$ac_objext \ 7417 conftest$ac_exeext conftest.$ac_ext 7418LIBS=$ac_check_lib_save_LIBS 7419fi 7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 7421$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } 7422if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : 7423 7424 7425$as_echo "#define HAVE_LIBFFTW3 1" >>confdefs.h 7426 7427LIBS=$LIBS$STATIC"-lfftw3 "$DYNAMIC 7428 7429else 7430 if test "x$enable_static" = "xyes"; then 7431 7432{ ac_cv_lib_fftw3_fftw_execute=; unset ac_cv_lib_fftw3_fftw_execute;} 7433LDFLAGS=$LDFLAGS0 7434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5 7435$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; } 7436if ${ac_cv_lib_fftw3_fftw_execute+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438else 7439 ac_check_lib_save_LIBS=$LIBS 7440LIBS="-lfftw3 $LIBS" 7441cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7442/* end confdefs.h. */ 7443 7444/* Override any GCC internal prototype to avoid an error. 7445 Use char because int might match the return type of a GCC 7446 builtin and then its argument prototype would still apply. */ 7447#ifdef __cplusplus 7448extern "C" 7449#endif 7450char fftw_execute (); 7451int 7452main () 7453{ 7454return fftw_execute (); 7455 ; 7456 return 0; 7457} 7458_ACEOF 7459if ac_fn_cxx_try_link "$LINENO"; then : 7460 ac_cv_lib_fftw3_fftw_execute=yes 7461else 7462 ac_cv_lib_fftw3_fftw_execute=no 7463fi 7464rm -f core conftest.err conftest.$ac_objext \ 7465 conftest$ac_exeext conftest.$ac_ext 7466LIBS=$ac_check_lib_save_LIBS 7467fi 7468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5 7469$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; } 7470if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then : 7471 cat >>confdefs.h <<_ACEOF 7472#define HAVE_LIBFFTW3 1 7473_ACEOF 7474 7475 LIBS="-lfftw3 $LIBS" 7476 7477else 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libfftw3: will compile without optional fast Fourier transforms. ***" >&5 7479$as_echo "$as_me: *** Could not find libfftw3: will compile without optional fast Fourier transforms. ***" >&6;} 7480fi 7481 7482 7483else 7484{ $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libfftw3: will compile without optional fast Fourier transforms. ***" >&5 7485$as_echo "$as_me: *** Could not find libfftw3: will compile without optional fast Fourier transforms. ***" >&6;} 7486fi 7487 7488fi 7489 7490LDFLAGS=$LDFLAGS0 7491 7492else 7493 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Header file fftw3.h not found: will compile without optional fast Fourier transforms. ***" >&5 7494$as_echo "$as_me: *** Header file fftw3.h not found: will compile without optional fast Fourier transforms. ***" >&6;} 7495fi 7496 7497 7498fi 7499 7500# Checks for header files. 7501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7502$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7503if ${ac_cv_header_sys_wait_h+:} false; then : 7504 $as_echo_n "(cached) " >&6 7505else 7506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7507/* end confdefs.h. */ 7508#include <sys/types.h> 7509#include <sys/wait.h> 7510#ifndef WEXITSTATUS 7511# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 7512#endif 7513#ifndef WIFEXITED 7514# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 7515#endif 7516 7517int 7518main () 7519{ 7520 int s; 7521 wait (&s); 7522 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7523 ; 7524 return 0; 7525} 7526_ACEOF 7527if ac_fn_cxx_try_compile "$LINENO"; then : 7528 ac_cv_header_sys_wait_h=yes 7529else 7530 ac_cv_header_sys_wait_h=no 7531fi 7532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7533fi 7534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7535$as_echo "$ac_cv_header_sys_wait_h" >&6; } 7536if test $ac_cv_header_sys_wait_h = yes; then 7537 7538$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7539 7540fi 7541 7542for ac_header in fenv.h stddef.h libintl.h 7543do : 7544 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7545ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7546if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7547 cat >>confdefs.h <<_ACEOF 7548#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7549_ACEOF 7550 7551fi 7552 7553done 7554 7555for ac_header in fpu_control.h 7556do : 7557 ac_fn_cxx_check_header_mongrel "$LINENO" "fpu_control.h" "ac_cv_header_fpu_control_h" "$ac_includes_default" 7558if test "x$ac_cv_header_fpu_control_h" = xyes; then : 7559 cat >>confdefs.h <<_ACEOF 7560#define HAVE_FPU_CONTROL_H 1 7561_ACEOF 7562 7563fi 7564 7565done 7566 7567for ac_func in feenableexcept 7568do : 7569 ac_fn_cxx_check_func "$LINENO" "feenableexcept" "ac_cv_func_feenableexcept" 7570if test "x$ac_cv_func_feenableexcept" = xyes; then : 7571 cat >>confdefs.h <<_ACEOF 7572#define HAVE_FEENABLEEXCEPT 1 7573_ACEOF 7574 7575fi 7576done 7577 7578 7579 7580cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7581/* end confdefs.h. */ 7582#include "xstream.h" 7583int 7584main () 7585{ 7586 7587 ; 7588 return 0; 7589} 7590_ACEOF 7591if ac_fn_cxx_try_compile "$LINENO"; then : 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrstdio_create" >&5 7593$as_echo_n "checking for library containing xdrstdio_create... " >&6; } 7594if ${ac_cv_search_xdrstdio_create+:} false; then : 7595 $as_echo_n "(cached) " >&6 7596else 7597 ac_func_search_save_LIBS=$LIBS 7598cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7599/* end confdefs.h. */ 7600 7601/* Override any GCC internal prototype to avoid an error. 7602 Use char because int might match the return type of a GCC 7603 builtin and then its argument prototype would still apply. */ 7604#ifdef __cplusplus 7605extern "C" 7606#endif 7607char xdrstdio_create (); 7608int 7609main () 7610{ 7611return xdrstdio_create (); 7612 ; 7613 return 0; 7614} 7615_ACEOF 7616for ac_lib in '' nsl tirpc; do 7617 if test -z "$ac_lib"; then 7618 ac_res="none required" 7619 else 7620 ac_res=-l$ac_lib 7621 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 7622 fi 7623 if ac_fn_cxx_try_link "$LINENO"; then : 7624 ac_cv_search_xdrstdio_create=$ac_res 7625fi 7626rm -f core conftest.err conftest.$ac_objext \ 7627 conftest$ac_exeext 7628 if ${ac_cv_search_xdrstdio_create+:} false; then : 7629 break 7630fi 7631done 7632if ${ac_cv_search_xdrstdio_create+:} false; then : 7633 7634else 7635 ac_cv_search_xdrstdio_create=no 7636fi 7637rm conftest.$ac_ext 7638LIBS=$ac_func_search_save_LIBS 7639fi 7640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrstdio_create" >&5 7641$as_echo "$ac_cv_search_xdrstdio_create" >&6; } 7642ac_res=$ac_cv_search_xdrstdio_create 7643if test "$ac_res" != no; then : 7644 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 7645 7646fi 7647 7648 7649$as_echo "#define HAVE_RPC_RPC_H 1" >>confdefs.h 7650 7651else 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Broken rpc headers; XDR support disabled ***" >&5 7653$as_echo "$as_me: WARNING: *** Broken rpc headers; XDR support disabled ***" >&2;} 7654fi 7655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7656 7657# Check whether --enable-gsl was given. 7658if test "${enable_gsl+set}" = set; then : 7659 enableval=$enable_gsl; 7660fi 7661 7662 7663if test "x$enable_gsl" != "xno"; then 7664 ac_fn_cxx_check_header_mongrel "$LINENO" "gsl/gsl_sf.h" "ac_cv_header_gsl_gsl_sf_h" "$ac_includes_default" 7665if test "x$ac_cv_header_gsl_gsl_sf_h" = xyes; then : 7666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsl_sf_debye_6 in -lgsl" >&5 7667$as_echo_n "checking for gsl_sf_debye_6 in -lgsl... " >&6; } 7668if ${ac_cv_lib_gsl_gsl_sf_debye_6+:} false; then : 7669 $as_echo_n "(cached) " >&6 7670else 7671 ac_check_lib_save_LIBS=$LIBS 7672LIBS="-lgsl -lgslcblas $LIBS" 7673cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7674/* end confdefs.h. */ 7675 7676/* Override any GCC internal prototype to avoid an error. 7677 Use char because int might match the return type of a GCC 7678 builtin and then its argument prototype would still apply. */ 7679#ifdef __cplusplus 7680extern "C" 7681#endif 7682char gsl_sf_debye_6 (); 7683int 7684main () 7685{ 7686return gsl_sf_debye_6 (); 7687 ; 7688 return 0; 7689} 7690_ACEOF 7691if ac_fn_cxx_try_link "$LINENO"; then : 7692 ac_cv_lib_gsl_gsl_sf_debye_6=yes 7693else 7694 ac_cv_lib_gsl_gsl_sf_debye_6=no 7695fi 7696rm -f core conftest.err conftest.$ac_objext \ 7697 conftest$ac_exeext conftest.$ac_ext 7698LIBS=$ac_check_lib_save_LIBS 7699fi 7700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gsl_gsl_sf_debye_6" >&5 7701$as_echo "$ac_cv_lib_gsl_gsl_sf_debye_6" >&6; } 7702if test "x$ac_cv_lib_gsl_gsl_sf_debye_6" = xyes; then : 7703 7704$as_echo "#define HAVE_LIBGSL 1" >>confdefs.h 7705 LIBS=$LIBS"-lgsl -lgslcblas " 7706else 7707 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libgsl: will compile without optional special functions. ***" >&5 7708$as_echo "$as_me: *** Could not find libgsl: will compile without optional special functions. ***" >&6;} 7709fi 7710 7711else 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Header file gsl_sf.h not found: will compile without optional special functions. ***" >&5 7713$as_echo "$as_me: *** Header file gsl_sf.h not found: will compile without optional special functions. ***" >&6;} 7714fi 7715 7716 7717fi 7718 7719# Check whether --enable-gl was given. 7720if test "${enable_gl+set}" = set; then : 7721 enableval=$enable_gl; 7722fi 7723 7724 7725# Check whether --enable-offscreen was given. 7726if test "${enable_offscreen+set}" = set; then : 7727 enableval=$enable_offscreen; 7728fi 7729 7730 7731# Check whether --enable-OpenImageIO was given. 7732if test "${enable_OpenImageIO+set}" = set; then : 7733 enableval=$enable_OpenImageIO; 7734fi 7735 7736 7737 ac_fn_cxx_check_header_mongrel "$LINENO" "glm/glm.hpp" "ac_cv_header_glm_glm_hpp" "$ac_includes_default" 7738if test "x$ac_cv_header_glm_glm_hpp" = xyes; then : 7739 7740$as_echo "#define HAVE_LIBGLM 1" >>confdefs.h 7741 7742else 7743 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find glm header files: will compile without WebGL or OpenGL support ***" >&5 7744$as_echo "$as_me: *** Could not find glm header files: will compile without WebGL or OpenGL support ***" >&6;} 7745fi 7746 7747 7748 7749if test "x$enable_gl" != "xno"; then 7750 for ac_header in ncurses/curses.h ncurses.h curses.h 7751do : 7752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7753ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7754if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7755 cat >>confdefs.h <<_ACEOF 7756#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7757_ACEOF 7758 break 7759fi 7760 7761done 7762 7763if test "x$enable_openimageio" = "xyes"; then 7764 ac_fn_cxx_check_header_mongrel "$LINENO" "OpenEXR/ImathVec.h" "ac_cv_header_OpenEXR_ImathVec_h" "$ac_includes_default" 7765if test "x$ac_cv_header_OpenEXR_ImathVec_h" = xyes; then : 7766 ac_fn_cxx_check_header_mongrel "$LINENO" "OpenImageIO/imageio.h" "ac_cv_header_OpenImageIO_imageio_h" "$ac_includes_default" 7767if test "x$ac_cv_header_OpenImageIO_imageio_h" = xyes; then : 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lOpenImageIO" >&5 7769$as_echo_n "checking for open in -lOpenImageIO... " >&6; } 7770if ${ac_cv_lib_OpenImageIO_open+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772else 7773 ac_check_lib_save_LIBS=$LIBS 7774LIBS="-lOpenImageIO $LIBS" 7775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7776/* end confdefs.h. */ 7777 7778/* Override any GCC internal prototype to avoid an error. 7779 Use char because int might match the return type of a GCC 7780 builtin and then its argument prototype would still apply. */ 7781#ifdef __cplusplus 7782extern "C" 7783#endif 7784char open (); 7785int 7786main () 7787{ 7788return open (); 7789 ; 7790 return 0; 7791} 7792_ACEOF 7793if ac_fn_cxx_try_link "$LINENO"; then : 7794 ac_cv_lib_OpenImageIO_open=yes 7795else 7796 ac_cv_lib_OpenImageIO_open=no 7797fi 7798rm -f core conftest.err conftest.$ac_objext \ 7799 conftest$ac_exeext conftest.$ac_ext 7800LIBS=$ac_check_lib_save_LIBS 7801fi 7802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenImageIO_open" >&5 7803$as_echo "$ac_cv_lib_OpenImageIO_open" >&6; } 7804if test "x$ac_cv_lib_OpenImageIO_open" = xyes; then : 7805 cat >>confdefs.h <<_ACEOF 7806#define HAVE_LIBOPENIMAGEIO 1 7807_ACEOF 7808 7809 LIBS="-lOpenImageIO $LIBS" 7810 7811fi 7812 7813fi 7814 7815 7816fi 7817 7818 7819fi 7820 7821case "$OSTYPE" in 7822 msdos) 7823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_throw_bad_alloc in -lgc-threadedcpp" >&5 7824$as_echo_n "checking for GC_throw_bad_alloc in -lgc-threadedcpp... " >&6; } 7825if ${ac_cv_lib_gccpp_GC_throw_bad_alloc+:} false; then : 7826 $as_echo_n "(cached) " >&6 7827else 7828 ac_check_lib_save_LIBS=$LIBS 7829LIBS="-lgc-threadedcpp $LIBS" 7830cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7831/* end confdefs.h. */ 7832 7833/* Override any GCC internal prototype to avoid an error. 7834 Use char because int might match the return type of a GCC 7835 builtin and then its argument prototype would still apply. */ 7836#ifdef __cplusplus 7837extern "C" 7838#endif 7839char GC_throw_bad_alloc (); 7840int 7841main () 7842{ 7843return GC_throw_bad_alloc (); 7844 ; 7845 return 0; 7846} 7847_ACEOF 7848if ac_fn_cxx_try_link "$LINENO"; then : 7849 ac_cv_lib_gccpp_GC_throw_bad_alloc=yes 7850else 7851 ac_cv_lib_gccpp_GC_throw_bad_alloc=no 7852fi 7853rm -f core conftest.err conftest.$ac_objext \ 7854 conftest$ac_exeext conftest.$ac_ext 7855LIBS=$ac_check_lib_save_LIBS 7856fi 7857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gccpp_GC_throw_bad_alloc" >&5 7858$as_echo "$ac_cv_lib_gccpp_GC_throw_bad_alloc" >&6; } 7859if test "x$ac_cv_lib_gccpp_GC_throw_bad_alloc" = xyes; then : 7860 cat >>confdefs.h <<_ACEOF 7861#define HAVE_LIBGCCPP 1 7862_ACEOF 7863 7864 LIBS="-lgc-threadedcpp $LIBS" 7865 7866fi 7867 7868 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/glut.h" "ac_cv_header_GL_glut_h" "$ac_includes_default" 7869if test "x$ac_cv_header_GL_glut_h" = xyes; then : 7870 7871$as_echo "#define HAVE_LIBGLUT 1" >>confdefs.h 7872 7873 LIBS=$LIBS"-lfreeglut " 7874else 7875 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libfreeglut: will compile without OpenGL support ***" >&5 7876$as_echo "$as_me: *** Could not find libfreeglut: will compile without OpenGL support ***" >&6;} 7877fi 7878 7879 7880 ac_fn_cxx_check_header_mongrel "$LINENO" "GL/gl.h" "ac_cv_header_GL_gl_h" "$ac_includes_default" 7881if test "x$ac_cv_header_GL_gl_h" = xyes; then : 7882 7883$as_echo "#define HAVE_LIBGL 1" >>confdefs.h 7884 7885 LIBS=$LIBS"-lopengl32 " 7886 GLEW="glew.o " 7887else 7888 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libopengl32: will compile without OpenGL support ***" >&5 7889$as_echo "$as_me: *** Could not find libopengl32: will compile without OpenGL support ***" >&6;} 7890fi 7891 7892 7893 ;; 7894 darwin*) 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_throw_bad_alloc in -lgc-threadedcpp" >&5 7896$as_echo_n "checking for GC_throw_bad_alloc in -lgc-threadedcpp... " >&6; } 7897if ${ac_cv_lib_gccpp_GC_throw_bad_alloc+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899else 7900 ac_check_lib_save_LIBS=$LIBS 7901LIBS="-lgc-threadedcpp $LIBS" 7902cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7903/* end confdefs.h. */ 7904 7905/* Override any GCC internal prototype to avoid an error. 7906 Use char because int might match the return type of a GCC 7907 builtin and then its argument prototype would still apply. */ 7908#ifdef __cplusplus 7909extern "C" 7910#endif 7911char GC_throw_bad_alloc (); 7912int 7913main () 7914{ 7915return GC_throw_bad_alloc (); 7916 ; 7917 return 0; 7918} 7919_ACEOF 7920if ac_fn_cxx_try_link "$LINENO"; then : 7921 ac_cv_lib_gccpp_GC_throw_bad_alloc=yes 7922else 7923 ac_cv_lib_gccpp_GC_throw_bad_alloc=no 7924fi 7925rm -f core conftest.err conftest.$ac_objext \ 7926 conftest$ac_exeext conftest.$ac_ext 7927LIBS=$ac_check_lib_save_LIBS 7928fi 7929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gccpp_GC_throw_bad_alloc" >&5 7930$as_echo "$ac_cv_lib_gccpp_GC_throw_bad_alloc" >&6; } 7931if test "x$ac_cv_lib_gccpp_GC_throw_bad_alloc" = xyes; then : 7932 cat >>confdefs.h <<_ACEOF 7933#define HAVE_LIBGCCPP 1 7934_ACEOF 7935 7936 LIBS="-lgc-threadedcpp $LIBS" 7937 7938fi 7939 7940 ac_fn_cxx_check_header_mongrel "$LINENO" "OpenGL/gl.h" "ac_cv_header_OpenGL_gl_h" "$ac_includes_default" 7941if test "x$ac_cv_header_OpenGL_gl_h" = xyes; then : 7942 7943$as_echo "#define HAVE_LIBGL 1" >>confdefs.h 7944 7945fi 7946 7947 7948 ac_fn_cxx_check_header_mongrel "$LINENO" "GLUT/glut.h" "ac_cv_header_GLUT_glut_h" "$ac_includes_default" 7949if test "x$ac_cv_header_GLUT_glut_h" = xyes; then : 7950 7951$as_echo "#define HAVE_LIBGLUT 1" >>confdefs.h 7952 7953 LIBS=$LIBS"-framework GLUT -framework OpenGL -framework Cocoa " 7954 GLEW="glew.o " 7955else 7956 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find GLUT: will compile without OpenGLLUT support ***" >&5 7957$as_echo "$as_me: *** Could not find GLUT: will compile without OpenGLLUT support ***" >&6;} 7958fi 7959 7960 7961 ;; 7962 *) 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GC_throw_bad_alloc in -lgc-threadedcpp" >&5 7964$as_echo_n "checking for GC_throw_bad_alloc in -lgc-threadedcpp... " >&6; } 7965if ${ac_cv_lib_gccpp_GC_throw_bad_alloc+:} false; then : 7966 $as_echo_n "(cached) " >&6 7967else 7968 ac_check_lib_save_LIBS=$LIBS 7969LIBS="-lgc-threadedcpp $LIBS" 7970cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7971/* end confdefs.h. */ 7972 7973/* Override any GCC internal prototype to avoid an error. 7974 Use char because int might match the return type of a GCC 7975 builtin and then its argument prototype would still apply. */ 7976#ifdef __cplusplus 7977extern "C" 7978#endif 7979char GC_throw_bad_alloc (); 7980int 7981main () 7982{ 7983return GC_throw_bad_alloc (); 7984 ; 7985 return 0; 7986} 7987_ACEOF 7988if ac_fn_cxx_try_link "$LINENO"; then : 7989 ac_cv_lib_gccpp_GC_throw_bad_alloc=yes 7990else 7991 ac_cv_lib_gccpp_GC_throw_bad_alloc=no 7992fi 7993rm -f core conftest.err conftest.$ac_objext \ 7994 conftest$ac_exeext conftest.$ac_ext 7995LIBS=$ac_check_lib_save_LIBS 7996fi 7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gccpp_GC_throw_bad_alloc" >&5 7998$as_echo "$ac_cv_lib_gccpp_GC_throw_bad_alloc" >&6; } 7999if test "x$ac_cv_lib_gccpp_GC_throw_bad_alloc" = xyes; then : 8000 cat >>confdefs.h <<_ACEOF 8001#define HAVE_LIBGCCPP 1 8002_ACEOF 8003 8004 LIBS="-lgc-threadedcpp $LIBS" 8005 8006fi 8007 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glutMainLoop in -lglut" >&5 8009$as_echo_n "checking for glutMainLoop in -lglut... " >&6; } 8010if ${ac_cv_lib_glut_glutMainLoop+:} false; then : 8011 $as_echo_n "(cached) " >&6 8012else 8013 ac_check_lib_save_LIBS=$LIBS 8014LIBS="-lglut $LIBS" 8015cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8016/* end confdefs.h. */ 8017 8018/* Override any GCC internal prototype to avoid an error. 8019 Use char because int might match the return type of a GCC 8020 builtin and then its argument prototype would still apply. */ 8021#ifdef __cplusplus 8022extern "C" 8023#endif 8024char glutMainLoop (); 8025int 8026main () 8027{ 8028return glutMainLoop (); 8029 ; 8030 return 0; 8031} 8032_ACEOF 8033if ac_fn_cxx_try_link "$LINENO"; then : 8034 ac_cv_lib_glut_glutMainLoop=yes 8035else 8036 ac_cv_lib_glut_glutMainLoop=no 8037fi 8038rm -f core conftest.err conftest.$ac_objext \ 8039 conftest$ac_exeext conftest.$ac_ext 8040LIBS=$ac_check_lib_save_LIBS 8041fi 8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_glut_glutMainLoop" >&5 8043$as_echo "$ac_cv_lib_glut_glutMainLoop" >&6; } 8044if test "x$ac_cv_lib_glut_glutMainLoop" = xyes; then : 8045 cat >>confdefs.h <<_ACEOF 8046#define HAVE_LIBGLUT 1 8047_ACEOF 8048 8049 LIBS="-lglut $LIBS" 8050 8051else 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libglut: will compile without OpenGL support ***" >&5 8053$as_echo "$as_me: *** Could not find libglut: will compile without OpenGL support ***" >&6;} 8054fi 8055 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glDepthMask in -lGL" >&5 8057$as_echo_n "checking for glDepthMask in -lGL... " >&6; } 8058if ${ac_cv_lib_GL_glDepthMask+:} false; then : 8059 $as_echo_n "(cached) " >&6 8060else 8061 ac_check_lib_save_LIBS=$LIBS 8062LIBS="-lGL $LIBS" 8063cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8064/* end confdefs.h. */ 8065 8066/* Override any GCC internal prototype to avoid an error. 8067 Use char because int might match the return type of a GCC 8068 builtin and then its argument prototype would still apply. */ 8069#ifdef __cplusplus 8070extern "C" 8071#endif 8072char glDepthMask (); 8073int 8074main () 8075{ 8076return glDepthMask (); 8077 ; 8078 return 0; 8079} 8080_ACEOF 8081if ac_fn_cxx_try_link "$LINENO"; then : 8082 ac_cv_lib_GL_glDepthMask=yes 8083else 8084 ac_cv_lib_GL_glDepthMask=no 8085fi 8086rm -f core conftest.err conftest.$ac_objext \ 8087 conftest$ac_exeext conftest.$ac_ext 8088LIBS=$ac_check_lib_save_LIBS 8089fi 8090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GL_glDepthMask" >&5 8091$as_echo "$ac_cv_lib_GL_glDepthMask" >&6; } 8092if test "x$ac_cv_lib_GL_glDepthMask" = xyes; then : 8093 8094$as_echo "#define HAVE_LIBGL 1" >>confdefs.h 8095 8096 LIBS=$LIBS"-lGL " 8097 GLEW="glew.o " 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glXGetProcAddressARB in -lGLX" >&5 8099$as_echo_n "checking for glXGetProcAddressARB in -lGLX... " >&6; } 8100if ${ac_cv_lib_GLX_glXGetProcAddressARB+:} false; then : 8101 $as_echo_n "(cached) " >&6 8102else 8103 ac_check_lib_save_LIBS=$LIBS 8104LIBS="-lGLX $LIBS" 8105cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8106/* end confdefs.h. */ 8107 8108/* Override any GCC internal prototype to avoid an error. 8109 Use char because int might match the return type of a GCC 8110 builtin and then its argument prototype would still apply. */ 8111#ifdef __cplusplus 8112extern "C" 8113#endif 8114char glXGetProcAddressARB (); 8115int 8116main () 8117{ 8118return glXGetProcAddressARB (); 8119 ; 8120 return 0; 8121} 8122_ACEOF 8123if ac_fn_cxx_try_link "$LINENO"; then : 8124 ac_cv_lib_GLX_glXGetProcAddressARB=yes 8125else 8126 ac_cv_lib_GLX_glXGetProcAddressARB=no 8127fi 8128rm -f core conftest.err conftest.$ac_objext \ 8129 conftest$ac_exeext conftest.$ac_ext 8130LIBS=$ac_check_lib_save_LIBS 8131fi 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_GLX_glXGetProcAddressARB" >&5 8133$as_echo "$ac_cv_lib_GLX_glXGetProcAddressARB" >&6; } 8134if test "x$ac_cv_lib_GLX_glXGetProcAddressARB" = xyes; then : 8135 GLEW=$GLEW"-lGLX " 8136fi 8137 8138else 8139 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libGL: will compile without OpenGL support ***" >&5 8140$as_echo "$as_me: *** Could not find libGL: will compile without OpenGL support ***" >&6;} 8141fi 8142 8143esac 8144 if test "x$enable_offscreen" = "xyes"; then 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OSMesaCreateContext in -lOSMesa" >&5 8146$as_echo_n "checking for OSMesaCreateContext in -lOSMesa... " >&6; } 8147if ${ac_cv_lib_OSMesa_OSMesaCreateContext+:} false; then : 8148 $as_echo_n "(cached) " >&6 8149else 8150 ac_check_lib_save_LIBS=$LIBS 8151LIBS="-lOSMesa $LIBS" 8152cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8153/* end confdefs.h. */ 8154 8155/* Override any GCC internal prototype to avoid an error. 8156 Use char because int might match the return type of a GCC 8157 builtin and then its argument prototype would still apply. */ 8158#ifdef __cplusplus 8159extern "C" 8160#endif 8161char OSMesaCreateContext (); 8162int 8163main () 8164{ 8165return OSMesaCreateContext (); 8166 ; 8167 return 0; 8168} 8169_ACEOF 8170if ac_fn_cxx_try_link "$LINENO"; then : 8171 ac_cv_lib_OSMesa_OSMesaCreateContext=yes 8172else 8173 ac_cv_lib_OSMesa_OSMesaCreateContext=no 8174fi 8175rm -f core conftest.err conftest.$ac_objext \ 8176 conftest$ac_exeext conftest.$ac_ext 8177LIBS=$ac_check_lib_save_LIBS 8178fi 8179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OSMesa_OSMesaCreateContext" >&5 8180$as_echo "$ac_cv_lib_OSMesa_OSMesaCreateContext" >&6; } 8181if test "x$ac_cv_lib_OSMesa_OSMesaCreateContext" = xyes; then : 8182 cat >>confdefs.h <<_ACEOF 8183#define HAVE_LIBOSMESA 1 8184_ACEOF 8185 8186 LIBS="-lOSMesa $LIBS" 8187 8188else 8189 { $as_echo "$as_me:${as_lineno-$LINENO}: *** Could not find libOSMesa: will compile without offscreen rendering support ***" >&5 8190$as_echo "$as_me: *** Could not find libOSMesa: will compile without offscreen rendering support ***" >&6;} 8191fi 8192 8193 fi 8194fi 8195 8196# Checks for typedefs, structures, and compiler characteristics. 8197ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 8198if test "x$ac_cv_type_pid_t" = xyes; then : 8199 8200else 8201 8202cat >>confdefs.h <<_ACEOF 8203#define pid_t int 8204_ACEOF 8205 8206fi 8207 8208ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 8209if test "x$ac_cv_type_size_t" = xyes; then : 8210 8211else 8212 8213cat >>confdefs.h <<_ACEOF 8214#define size_t unsigned int 8215_ACEOF 8216 8217fi 8218 8219ac_fn_cxx_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 8220if test "x$ac_cv_type_ptrdiff_t" = xyes; then : 8221 8222cat >>confdefs.h <<_ACEOF 8223#define HAVE_PTRDIFF_T 1 8224_ACEOF 8225 8226 8227fi 8228 8229ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 8230if test "x$ac_cv_type_long_long" = xyes; then : 8231 8232cat >>confdefs.h <<_ACEOF 8233#define HAVE_LONG_LONG 1 8234_ACEOF 8235 8236 8237fi 8238 8239ac_fn_cxx_check_type "$LINENO" "long" "ac_cv_type_long" "$ac_includes_default" 8240if test "x$ac_cv_type_long" = xyes; then : 8241 8242cat >>confdefs.h <<_ACEOF 8243#define HAVE_LONG 1 8244_ACEOF 8245 8246 8247fi 8248 8249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 8250$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 8251if ${ac_cv_c_const+:} false; then : 8252 $as_echo_n "(cached) " >&6 8253else 8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8255/* end confdefs.h. */ 8256 8257int 8258main () 8259{ 8260 8261#ifndef __cplusplus 8262 /* Ultrix mips cc rejects this sort of thing. */ 8263 typedef int charset[2]; 8264 const charset cs = { 0, 0 }; 8265 /* SunOS 4.1.1 cc rejects this. */ 8266 char const *const *pcpcc; 8267 char **ppc; 8268 /* NEC SVR4.0.2 mips cc rejects this. */ 8269 struct point {int x, y;}; 8270 static struct point const zero = {0,0}; 8271 /* AIX XL C 1.02.0.0 rejects this. 8272 It does not let you subtract one const X* pointer from another in 8273 an arm of an if-expression whose if-part is not a constant 8274 expression */ 8275 const char *g = "string"; 8276 pcpcc = &g + (g ? g-g : 0); 8277 /* HPUX 7.0 cc rejects these. */ 8278 ++pcpcc; 8279 ppc = (char**) pcpcc; 8280 pcpcc = (char const *const *) ppc; 8281 { /* SCO 3.2v4 cc rejects this sort of thing. */ 8282 char tx; 8283 char *t = &tx; 8284 char const *s = 0 ? (char *) 0 : (char const *) 0; 8285 8286 *t++ = 0; 8287 if (s) return 0; 8288 } 8289 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 8290 int x[] = {25, 17}; 8291 const int *foo = &x[0]; 8292 ++foo; 8293 } 8294 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 8295 typedef const int *iptr; 8296 iptr p = 0; 8297 ++p; 8298 } 8299 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 8300 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 8301 struct s { int j; const int *ap[3]; } bx; 8302 struct s *b = &bx; b->j = 5; 8303 } 8304 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 8305 const int foo = 10; 8306 if (!foo) return 0; 8307 } 8308 return !cs[0] && !zero.x; 8309#endif 8310 8311 ; 8312 return 0; 8313} 8314_ACEOF 8315if ac_fn_cxx_try_compile "$LINENO"; then : 8316 ac_cv_c_const=yes 8317else 8318 ac_cv_c_const=no 8319fi 8320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8321fi 8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 8323$as_echo "$ac_cv_c_const" >&6; } 8324if test $ac_cv_c_const = no; then 8325 8326$as_echo "#define const /**/" >>confdefs.h 8327 8328fi 8329 8330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 8331$as_echo_n "checking for inline... " >&6; } 8332if ${ac_cv_c_inline+:} false; then : 8333 $as_echo_n "(cached) " >&6 8334else 8335 ac_cv_c_inline=no 8336for ac_kw in inline __inline__ __inline; do 8337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8338/* end confdefs.h. */ 8339#ifndef __cplusplus 8340typedef int foo_t; 8341static $ac_kw foo_t static_foo () {return 0; } 8342$ac_kw foo_t foo () {return 0; } 8343#endif 8344 8345_ACEOF 8346if ac_fn_cxx_try_compile "$LINENO"; then : 8347 ac_cv_c_inline=$ac_kw 8348fi 8349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8350 test "$ac_cv_c_inline" != no && break 8351done 8352 8353fi 8354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 8355$as_echo "$ac_cv_c_inline" >&6; } 8356 8357case $ac_cv_c_inline in 8358 inline | yes) ;; 8359 *) 8360 case $ac_cv_c_inline in 8361 no) ac_val=;; 8362 *) ac_val=$ac_cv_c_inline;; 8363 esac 8364 cat >>confdefs.h <<_ACEOF 8365#ifndef __cplusplus 8366#define inline $ac_val 8367#endif 8368_ACEOF 8369 ;; 8370esac 8371 8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 8373$as_echo_n "checking return type of signal handlers... " >&6; } 8374if ${ac_cv_type_signal+:} false; then : 8375 $as_echo_n "(cached) " >&6 8376else 8377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8378/* end confdefs.h. */ 8379#include <sys/types.h> 8380#include <signal.h> 8381 8382int 8383main () 8384{ 8385return *(signal (0, 0)) (0) == 1; 8386 ; 8387 return 0; 8388} 8389_ACEOF 8390if ac_fn_cxx_try_compile "$LINENO"; then : 8391 ac_cv_type_signal=int 8392else 8393 ac_cv_type_signal=void 8394fi 8395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8396fi 8397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 8398$as_echo "$ac_cv_type_signal" >&6; } 8399 8400cat >>confdefs.h <<_ACEOF 8401#define RETSIGTYPE $ac_cv_type_signal 8402_ACEOF 8403 8404 8405 8406 8407 8408# Checks for library functions. 8409for ac_header in vfork.h 8410do : 8411 ac_fn_cxx_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 8412if test "x$ac_cv_header_vfork_h" = xyes; then : 8413 cat >>confdefs.h <<_ACEOF 8414#define HAVE_VFORK_H 1 8415_ACEOF 8416 8417fi 8418 8419done 8420 8421for ac_func in fork vfork 8422do : 8423 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8424ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 8425if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8426 cat >>confdefs.h <<_ACEOF 8427#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8428_ACEOF 8429 8430fi 8431done 8432 8433if test "x$ac_cv_func_fork" = xyes; then 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 8435$as_echo_n "checking for working fork... " >&6; } 8436if ${ac_cv_func_fork_works+:} false; then : 8437 $as_echo_n "(cached) " >&6 8438else 8439 if test "$cross_compiling" = yes; then : 8440 ac_cv_func_fork_works=cross 8441else 8442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8443/* end confdefs.h. */ 8444$ac_includes_default 8445int 8446main () 8447{ 8448 8449 /* By Ruediger Kuhlmann. */ 8450 return fork () < 0; 8451 8452 ; 8453 return 0; 8454} 8455_ACEOF 8456if ac_fn_cxx_try_run "$LINENO"; then : 8457 ac_cv_func_fork_works=yes 8458else 8459 ac_cv_func_fork_works=no 8460fi 8461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8462 conftest.$ac_objext conftest.beam conftest.$ac_ext 8463fi 8464 8465fi 8466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 8467$as_echo "$ac_cv_func_fork_works" >&6; } 8468 8469else 8470 ac_cv_func_fork_works=$ac_cv_func_fork 8471fi 8472if test "x$ac_cv_func_fork_works" = xcross; then 8473 case $host in 8474 *-*-amigaos* | *-*-msdosdjgpp*) 8475 # Override, as these systems have only a dummy fork() stub 8476 ac_cv_func_fork_works=no 8477 ;; 8478 *) 8479 ac_cv_func_fork_works=yes 8480 ;; 8481 esac 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 8483$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 8484fi 8485ac_cv_func_vfork_works=$ac_cv_func_vfork 8486if test "x$ac_cv_func_vfork" = xyes; then 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 8488$as_echo_n "checking for working vfork... " >&6; } 8489if ${ac_cv_func_vfork_works+:} false; then : 8490 $as_echo_n "(cached) " >&6 8491else 8492 if test "$cross_compiling" = yes; then : 8493 ac_cv_func_vfork_works=cross 8494else 8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8496/* end confdefs.h. */ 8497/* Thanks to Paul Eggert for this test. */ 8498$ac_includes_default 8499#include <sys/wait.h> 8500#ifdef HAVE_VFORK_H 8501# include <vfork.h> 8502#endif 8503/* On some sparc systems, changes by the child to local and incoming 8504 argument registers are propagated back to the parent. The compiler 8505 is told about this with #include <vfork.h>, but some compilers 8506 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 8507 static variable whose address is put into a register that is 8508 clobbered by the vfork. */ 8509static void 8510#ifdef __cplusplus 8511sparc_address_test (int arg) 8512# else 8513sparc_address_test (arg) int arg; 8514#endif 8515{ 8516 static pid_t child; 8517 if (!child) { 8518 child = vfork (); 8519 if (child < 0) { 8520 perror ("vfork"); 8521 _exit(2); 8522 } 8523 if (!child) { 8524 arg = getpid(); 8525 write(-1, "", 0); 8526 _exit (arg); 8527 } 8528 } 8529} 8530 8531int 8532main () 8533{ 8534 pid_t parent = getpid (); 8535 pid_t child; 8536 8537 sparc_address_test (0); 8538 8539 child = vfork (); 8540 8541 if (child == 0) { 8542 /* Here is another test for sparc vfork register problems. This 8543 test uses lots of local variables, at least as many local 8544 variables as main has allocated so far including compiler 8545 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 8546 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 8547 reuse the register of parent for one of the local variables, 8548 since it will think that parent can't possibly be used any more 8549 in this routine. Assigning to the local variable will thus 8550 munge parent in the parent process. */ 8551 pid_t 8552 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 8553 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 8554 /* Convince the compiler that p..p7 are live; otherwise, it might 8555 use the same hardware register for all 8 local variables. */ 8556 if (p != p1 || p != p2 || p != p3 || p != p4 8557 || p != p5 || p != p6 || p != p7) 8558 _exit(1); 8559 8560 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 8561 from child file descriptors. If the child closes a descriptor 8562 before it execs or exits, this munges the parent's descriptor 8563 as well. Test for this by closing stdout in the child. */ 8564 _exit(close(fileno(stdout)) != 0); 8565 } else { 8566 int status; 8567 struct stat st; 8568 8569 while (wait(&status) != child) 8570 ; 8571 return ( 8572 /* Was there some problem with vforking? */ 8573 child < 0 8574 8575 /* Did the child fail? (This shouldn't happen.) */ 8576 || status 8577 8578 /* Did the vfork/compiler bug occur? */ 8579 || parent != getpid() 8580 8581 /* Did the file descriptor bug occur? */ 8582 || fstat(fileno(stdout), &st) != 0 8583 ); 8584 } 8585} 8586_ACEOF 8587if ac_fn_cxx_try_run "$LINENO"; then : 8588 ac_cv_func_vfork_works=yes 8589else 8590 ac_cv_func_vfork_works=no 8591fi 8592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8593 conftest.$ac_objext conftest.beam conftest.$ac_ext 8594fi 8595 8596fi 8597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 8598$as_echo "$ac_cv_func_vfork_works" >&6; } 8599 8600fi; 8601if test "x$ac_cv_func_fork_works" = xcross; then 8602 ac_cv_func_vfork_works=$ac_cv_func_vfork 8603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 8604$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 8605fi 8606 8607if test "x$ac_cv_func_vfork_works" = xyes; then 8608 8609$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 8610 8611else 8612 8613$as_echo "#define vfork fork" >>confdefs.h 8614 8615fi 8616if test "x$ac_cv_func_fork_works" = xyes; then 8617 8618$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 8619 8620fi 8621 8622for ac_func in dup2 floor memset strchr tgamma lgamma memrchr popcount 8623do : 8624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8625ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 8626if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 8627 cat >>confdefs.h <<_ACEOF 8628#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8629_ACEOF 8630 8631fi 8632done 8633 8634for ac_func in strftime 8635do : 8636 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 8637if test "x$ac_cv_func_strftime" = xyes; then : 8638 cat >>confdefs.h <<_ACEOF 8639#define HAVE_STRFTIME 1 8640_ACEOF 8641 8642else 8643 # strftime is in -lintl on SCO UNIX. 8644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 8645$as_echo_n "checking for strftime in -lintl... " >&6; } 8646if ${ac_cv_lib_intl_strftime+:} false; then : 8647 $as_echo_n "(cached) " >&6 8648else 8649 ac_check_lib_save_LIBS=$LIBS 8650LIBS="-lintl $LIBS" 8651cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8652/* end confdefs.h. */ 8653 8654/* Override any GCC internal prototype to avoid an error. 8655 Use char because int might match the return type of a GCC 8656 builtin and then its argument prototype would still apply. */ 8657#ifdef __cplusplus 8658extern "C" 8659#endif 8660char strftime (); 8661int 8662main () 8663{ 8664return strftime (); 8665 ; 8666 return 0; 8667} 8668_ACEOF 8669if ac_fn_cxx_try_link "$LINENO"; then : 8670 ac_cv_lib_intl_strftime=yes 8671else 8672 ac_cv_lib_intl_strftime=no 8673fi 8674rm -f core conftest.err conftest.$ac_objext \ 8675 conftest$ac_exeext conftest.$ac_ext 8676LIBS=$ac_check_lib_save_LIBS 8677fi 8678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 8679$as_echo "$ac_cv_lib_intl_strftime" >&6; } 8680if test "x$ac_cv_lib_intl_strftime" = xyes; then : 8681 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 8682 8683LIBS="-lintl $LIBS" 8684fi 8685 8686fi 8687done 8688 8689 8690 for ac_func in strptime 8691do : 8692 ac_fn_cxx_check_func "$LINENO" "strptime" "ac_cv_func_strptime" 8693if test "x$ac_cv_func_strptime" = xyes; then : 8694 cat >>confdefs.h <<_ACEOF 8695#define HAVE_STRPTIME 1 8696_ACEOF 8697 8698fi 8699done 8700 8701 8702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5 8703$as_echo_n "checking for error_at_line... " >&6; } 8704if ${ac_cv_lib_error_at_line+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706else 8707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8708/* end confdefs.h. */ 8709#include <error.h> 8710int 8711main () 8712{ 8713error_at_line (0, 0, "", 0, "an error occurred"); 8714 ; 8715 return 0; 8716} 8717_ACEOF 8718if ac_fn_cxx_try_link "$LINENO"; then : 8719 ac_cv_lib_error_at_line=yes 8720else 8721 ac_cv_lib_error_at_line=no 8722fi 8723rm -f core conftest.err conftest.$ac_objext \ 8724 conftest$ac_exeext conftest.$ac_ext 8725fi 8726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5 8727$as_echo "$ac_cv_lib_error_at_line" >&6; } 8728if test $ac_cv_lib_error_at_line = no; then 8729 case " $LIBOBJS " in 8730 *" error.$ac_objext "* ) ;; 8731 *) LIBOBJS="$LIBOBJS error.$ac_objext" 8732 ;; 8733esac 8734 8735fi 8736 8737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 8738$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 8739if ${ac_cv_sys_largefile_source+:} false; then : 8740 $as_echo_n "(cached) " >&6 8741else 8742 while :; do 8743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8744/* end confdefs.h. */ 8745#include <sys/types.h> /* for off_t */ 8746 #include <stdio.h> 8747int 8748main () 8749{ 8750int (*fp) (FILE *, off_t, int) = fseeko; 8751 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 8752 ; 8753 return 0; 8754} 8755_ACEOF 8756if ac_fn_cxx_try_link "$LINENO"; then : 8757 ac_cv_sys_largefile_source=no; break 8758fi 8759rm -f core conftest.err conftest.$ac_objext \ 8760 conftest$ac_exeext conftest.$ac_ext 8761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8762/* end confdefs.h. */ 8763#define _LARGEFILE_SOURCE 1 8764#include <sys/types.h> /* for off_t */ 8765 #include <stdio.h> 8766int 8767main () 8768{ 8769int (*fp) (FILE *, off_t, int) = fseeko; 8770 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 8771 ; 8772 return 0; 8773} 8774_ACEOF 8775if ac_fn_cxx_try_link "$LINENO"; then : 8776 ac_cv_sys_largefile_source=1; break 8777fi 8778rm -f core conftest.err conftest.$ac_objext \ 8779 conftest$ac_exeext conftest.$ac_ext 8780 ac_cv_sys_largefile_source=unknown 8781 break 8782done 8783fi 8784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 8785$as_echo "$ac_cv_sys_largefile_source" >&6; } 8786case $ac_cv_sys_largefile_source in #( 8787 no | unknown) ;; 8788 *) 8789cat >>confdefs.h <<_ACEOF 8790#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source 8791_ACEOF 8792;; 8793esac 8794rm -rf conftest* 8795 8796# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 8797# in glibc 2.1.3, but that breaks too many other things. 8798# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 8799if test $ac_cv_sys_largefile_source != unknown; then 8800 8801$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 8802 8803fi 8804 8805 8806ac_config_headers="$ac_config_headers config.h" 8807 8808 8809ac_config_files="$ac_config_files Makefile doc/Makefile doc/png/Makefile" 8810 8811cat >confcache <<\_ACEOF 8812# This file is a shell script that caches the results of configure 8813# tests run on this system so they can be shared between configure 8814# scripts and configure runs, see configure's option --config-cache. 8815# It is not useful on other systems. If it contains results you don't 8816# want to keep, you may remove or edit it. 8817# 8818# config.status only pays attention to the cache file if you give it 8819# the --recheck option to rerun configure. 8820# 8821# `ac_cv_env_foo' variables (set or unset) will be overridden when 8822# loading this file, other *unset* `ac_cv_foo' will be assigned the 8823# following values. 8824 8825_ACEOF 8826 8827# The following way of writing the cache mishandles newlines in values, 8828# but we know of no workaround that is simple, portable, and efficient. 8829# So, we kill variables containing newlines. 8830# Ultrix sh set writes to stderr and can't be redirected directly, 8831# and sets the high bit in the cache file unless we assign to the vars. 8832( 8833 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8834 eval ac_val=\$$ac_var 8835 case $ac_val in #( 8836 *${as_nl}*) 8837 case $ac_var in #( 8838 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 8839$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 8840 esac 8841 case $ac_var in #( 8842 _ | IFS | as_nl) ;; #( 8843 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 8844 *) { eval $ac_var=; unset $ac_var;} ;; 8845 esac ;; 8846 esac 8847 done 8848 8849 (set) 2>&1 | 8850 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8851 *${as_nl}ac_space=\ *) 8852 # `set' does not quote correctly, so add quotes: double-quote 8853 # substitution turns \\\\ into \\, and sed turns \\ into \. 8854 sed -n \ 8855 "s/'/'\\\\''/g; 8856 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8857 ;; #( 8858 *) 8859 # `set' quotes correctly as required by POSIX, so do not add quotes. 8860 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 8861 ;; 8862 esac | 8863 sort 8864) | 8865 sed ' 8866 /^ac_cv_env_/b end 8867 t clear 8868 :clear 8869 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8870 t end 8871 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8872 :end' >>confcache 8873if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8874 if test -w "$cache_file"; then 8875 if test "x$cache_file" != "x/dev/null"; then 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 8877$as_echo "$as_me: updating cache $cache_file" >&6;} 8878 if test ! -f "$cache_file" || test -h "$cache_file"; then 8879 cat confcache >"$cache_file" 8880 else 8881 case $cache_file in #( 8882 */* | ?:*) 8883 mv -f confcache "$cache_file"$$ && 8884 mv -f "$cache_file"$$ "$cache_file" ;; #( 8885 *) 8886 mv -f confcache "$cache_file" ;; 8887 esac 8888 fi 8889 fi 8890 else 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 8892$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8893 fi 8894fi 8895rm -f confcache 8896 8897test "x$prefix" = xNONE && prefix=$ac_default_prefix 8898# Let make expand exec_prefix. 8899test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8900 8901DEFS=-DHAVE_CONFIG_H 8902 8903ac_libobjs= 8904ac_ltlibobjs= 8905U= 8906for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8907 # 1. Remove the extension, and $U if already installed. 8908 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8909 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 8910 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8911 # will be set to the directory where LIBOBJS objects are built. 8912 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8913 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 8914done 8915LIBOBJS=$ac_libobjs 8916 8917LTLIBOBJS=$ac_ltlibobjs 8918 8919 8920 8921 8922: "${CONFIG_STATUS=./config.status}" 8923ac_write_fail=0 8924ac_clean_files_save=$ac_clean_files 8925ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8926{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 8927$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 8928as_write_fail=0 8929cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 8930#! $SHELL 8931# Generated by $as_me. 8932# Run this file to recreate the current configuration. 8933# Compiler output produced by configure, useful for debugging 8934# configure, is in config.log if it exists. 8935 8936debug=false 8937ac_cs_recheck=false 8938ac_cs_silent=false 8939 8940SHELL=\${CONFIG_SHELL-$SHELL} 8941export SHELL 8942_ASEOF 8943cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 8944## -------------------- ## 8945## M4sh Initialization. ## 8946## -------------------- ## 8947 8948# Be more Bourne compatible 8949DUALCASE=1; export DUALCASE # for MKS sh 8950if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 8951 emulate sh 8952 NULLCMD=: 8953 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 8954 # is contrary to our usage. Disable this feature. 8955 alias -g '${1+"$@"}'='"$@"' 8956 setopt NO_GLOB_SUBST 8957else 8958 case `(set -o) 2>/dev/null` in #( 8959 *posix*) : 8960 set -o posix ;; #( 8961 *) : 8962 ;; 8963esac 8964fi 8965 8966 8967as_nl=' 8968' 8969export as_nl 8970# Printing a long string crashes Solaris 7 /usr/bin/printf. 8971as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 8972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 8973as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 8974# Prefer a ksh shell builtin over an external printf program on Solaris, 8975# but without wasting forks for bash or zsh. 8976if test -z "$BASH_VERSION$ZSH_VERSION" \ 8977 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 8978 as_echo='print -r --' 8979 as_echo_n='print -rn --' 8980elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 8981 as_echo='printf %s\n' 8982 as_echo_n='printf %s' 8983else 8984 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 8985 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 8986 as_echo_n='/usr/ucb/echo -n' 8987 else 8988 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 8989 as_echo_n_body='eval 8990 arg=$1; 8991 case $arg in #( 8992 *"$as_nl"*) 8993 expr "X$arg" : "X\\(.*\\)$as_nl"; 8994 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 8995 esac; 8996 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 8997 ' 8998 export as_echo_n_body 8999 as_echo_n='sh -c $as_echo_n_body as_echo' 9000 fi 9001 export as_echo_body 9002 as_echo='sh -c $as_echo_body as_echo' 9003fi 9004 9005# The user is always right. 9006if test "${PATH_SEPARATOR+set}" != set; then 9007 PATH_SEPARATOR=: 9008 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 9009 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 9010 PATH_SEPARATOR=';' 9011 } 9012fi 9013 9014 9015# IFS 9016# We need space, tab and new line, in precisely that order. Quoting is 9017# there to prevent editors from complaining about space-tab. 9018# (If _AS_PATH_WALK were called with IFS unset, it would disable word 9019# splitting by setting IFS to empty value.) 9020IFS=" "" $as_nl" 9021 9022# Find who we are. Look in the path if we contain no directory separator. 9023as_myself= 9024case $0 in #(( 9025 *[\\/]* ) as_myself=$0 ;; 9026 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9027for as_dir in $PATH 9028do 9029 IFS=$as_save_IFS 9030 test -z "$as_dir" && as_dir=. 9031 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 9032 done 9033IFS=$as_save_IFS 9034 9035 ;; 9036esac 9037# We did not find ourselves, most probably we were run as `sh COMMAND' 9038# in which case we are not to be found in the path. 9039if test "x$as_myself" = x; then 9040 as_myself=$0 9041fi 9042if test ! -f "$as_myself"; then 9043 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 9044 exit 1 9045fi 9046 9047# Unset variables that we do not need and which cause bugs (e.g. in 9048# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 9049# suppresses any "Segmentation fault" message there. '((' could 9050# trigger a bug in pdksh 5.2.14. 9051for as_var in BASH_ENV ENV MAIL MAILPATH 9052do eval test x\${$as_var+set} = xset \ 9053 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 9054done 9055PS1='$ ' 9056PS2='> ' 9057PS4='+ ' 9058 9059# NLS nuisances. 9060LC_ALL=C 9061export LC_ALL 9062LANGUAGE=C 9063export LANGUAGE 9064 9065# CDPATH. 9066(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 9067 9068 9069# as_fn_error STATUS ERROR [LINENO LOG_FD] 9070# ---------------------------------------- 9071# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 9072# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 9073# script with STATUS, using 1 if that was 0. 9074as_fn_error () 9075{ 9076 as_status=$1; test $as_status -eq 0 && as_status=1 9077 if test "$4"; then 9078 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 9079 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 9080 fi 9081 $as_echo "$as_me: error: $2" >&2 9082 as_fn_exit $as_status 9083} # as_fn_error 9084 9085 9086# as_fn_set_status STATUS 9087# ----------------------- 9088# Set $? to STATUS, without forking. 9089as_fn_set_status () 9090{ 9091 return $1 9092} # as_fn_set_status 9093 9094# as_fn_exit STATUS 9095# ----------------- 9096# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 9097as_fn_exit () 9098{ 9099 set +e 9100 as_fn_set_status $1 9101 exit $1 9102} # as_fn_exit 9103 9104# as_fn_unset VAR 9105# --------------- 9106# Portably unset VAR. 9107as_fn_unset () 9108{ 9109 { eval $1=; unset $1;} 9110} 9111as_unset=as_fn_unset 9112# as_fn_append VAR VALUE 9113# ---------------------- 9114# Append the text in VALUE to the end of the definition contained in VAR. Take 9115# advantage of any shell optimizations that allow amortized linear growth over 9116# repeated appends, instead of the typical quadratic growth present in naive 9117# implementations. 9118if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 9119 eval 'as_fn_append () 9120 { 9121 eval $1+=\$2 9122 }' 9123else 9124 as_fn_append () 9125 { 9126 eval $1=\$$1\$2 9127 } 9128fi # as_fn_append 9129 9130# as_fn_arith ARG... 9131# ------------------ 9132# Perform arithmetic evaluation on the ARGs, and store the result in the 9133# global $as_val. Take advantage of shells that can avoid forks. The arguments 9134# must be portable across $(()) and expr. 9135if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 9136 eval 'as_fn_arith () 9137 { 9138 as_val=$(( $* )) 9139 }' 9140else 9141 as_fn_arith () 9142 { 9143 as_val=`expr "$@" || test $? -eq 1` 9144 } 9145fi # as_fn_arith 9146 9147 9148if expr a : '\(a\)' >/dev/null 2>&1 && 9149 test "X`expr 00001 : '.*\(...\)'`" = X001; then 9150 as_expr=expr 9151else 9152 as_expr=false 9153fi 9154 9155if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 9156 as_basename=basename 9157else 9158 as_basename=false 9159fi 9160 9161if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 9162 as_dirname=dirname 9163else 9164 as_dirname=false 9165fi 9166 9167as_me=`$as_basename -- "$0" || 9168$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 9169 X"$0" : 'X\(//\)$' \| \ 9170 X"$0" : 'X\(/\)' \| . 2>/dev/null || 9171$as_echo X/"$0" | 9172 sed '/^.*\/\([^/][^/]*\)\/*$/{ 9173 s//\1/ 9174 q 9175 } 9176 /^X\/\(\/\/\)$/{ 9177 s//\1/ 9178 q 9179 } 9180 /^X\/\(\/\).*/{ 9181 s//\1/ 9182 q 9183 } 9184 s/.*/./; q'` 9185 9186# Avoid depending upon Character Ranges. 9187as_cr_letters='abcdefghijklmnopqrstuvwxyz' 9188as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 9189as_cr_Letters=$as_cr_letters$as_cr_LETTERS 9190as_cr_digits='0123456789' 9191as_cr_alnum=$as_cr_Letters$as_cr_digits 9192 9193ECHO_C= ECHO_N= ECHO_T= 9194case `echo -n x` in #((((( 9195-n*) 9196 case `echo 'xy\c'` in 9197 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 9198 xy) ECHO_C='\c';; 9199 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 9200 ECHO_T=' ';; 9201 esac;; 9202*) 9203 ECHO_N='-n';; 9204esac 9205 9206rm -f conf$$ conf$$.exe conf$$.file 9207if test -d conf$$.dir; then 9208 rm -f conf$$.dir/conf$$.file 9209else 9210 rm -f conf$$.dir 9211 mkdir conf$$.dir 2>/dev/null 9212fi 9213if (echo >conf$$.file) 2>/dev/null; then 9214 if ln -s conf$$.file conf$$ 2>/dev/null; then 9215 as_ln_s='ln -s' 9216 # ... but there are two gotchas: 9217 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 9218 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 9219 # In both cases, we have to default to `cp -pR'. 9220 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 9221 as_ln_s='cp -pR' 9222 elif ln conf$$.file conf$$ 2>/dev/null; then 9223 as_ln_s=ln 9224 else 9225 as_ln_s='cp -pR' 9226 fi 9227else 9228 as_ln_s='cp -pR' 9229fi 9230rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 9231rmdir conf$$.dir 2>/dev/null 9232 9233 9234# as_fn_mkdir_p 9235# ------------- 9236# Create "$as_dir" as a directory, including parents if necessary. 9237as_fn_mkdir_p () 9238{ 9239 9240 case $as_dir in #( 9241 -*) as_dir=./$as_dir;; 9242 esac 9243 test -d "$as_dir" || eval $as_mkdir_p || { 9244 as_dirs= 9245 while :; do 9246 case $as_dir in #( 9247 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 9248 *) as_qdir=$as_dir;; 9249 esac 9250 as_dirs="'$as_qdir' $as_dirs" 9251 as_dir=`$as_dirname -- "$as_dir" || 9252$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9253 X"$as_dir" : 'X\(//\)[^/]' \| \ 9254 X"$as_dir" : 'X\(//\)$' \| \ 9255 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 9256$as_echo X"$as_dir" | 9257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9258 s//\1/ 9259 q 9260 } 9261 /^X\(\/\/\)[^/].*/{ 9262 s//\1/ 9263 q 9264 } 9265 /^X\(\/\/\)$/{ 9266 s//\1/ 9267 q 9268 } 9269 /^X\(\/\).*/{ 9270 s//\1/ 9271 q 9272 } 9273 s/.*/./; q'` 9274 test -d "$as_dir" && break 9275 done 9276 test -z "$as_dirs" || eval "mkdir $as_dirs" 9277 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 9278 9279 9280} # as_fn_mkdir_p 9281if mkdir -p . 2>/dev/null; then 9282 as_mkdir_p='mkdir -p "$as_dir"' 9283else 9284 test -d ./-p && rmdir ./-p 9285 as_mkdir_p=false 9286fi 9287 9288 9289# as_fn_executable_p FILE 9290# ----------------------- 9291# Test if FILE is an executable regular file. 9292as_fn_executable_p () 9293{ 9294 test -f "$1" && test -x "$1" 9295} # as_fn_executable_p 9296as_test_x='test -x' 9297as_executable_p=as_fn_executable_p 9298 9299# Sed expression to map a string onto a valid CPP name. 9300as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 9301 9302# Sed expression to map a string onto a valid variable name. 9303as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 9304 9305 9306exec 6>&1 9307## ----------------------------------- ## 9308## Main body of $CONFIG_STATUS script. ## 9309## ----------------------------------- ## 9310_ASEOF 9311test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 9312 9313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9314# Save the log message, to keep $0 and so on meaningful, and to 9315# report actual input values of CONFIG_FILES etc. instead of their 9316# values after options handling. 9317ac_log=" 9318This file was extended by Asymptote $as_me 2.67, which was 9319generated by GNU Autoconf 2.69. Invocation command line was 9320 9321 CONFIG_FILES = $CONFIG_FILES 9322 CONFIG_HEADERS = $CONFIG_HEADERS 9323 CONFIG_LINKS = $CONFIG_LINKS 9324 CONFIG_COMMANDS = $CONFIG_COMMANDS 9325 $ $0 $@ 9326 9327on `(hostname || uname -n) 2>/dev/null | sed 1q` 9328" 9329 9330_ACEOF 9331 9332case $ac_config_files in *" 9333"*) set x $ac_config_files; shift; ac_config_files=$*;; 9334esac 9335 9336case $ac_config_headers in *" 9337"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 9338esac 9339 9340 9341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9342# Files that config.status was made for. 9343config_files="$ac_config_files" 9344config_headers="$ac_config_headers" 9345 9346_ACEOF 9347 9348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9349ac_cs_usage="\ 9350\`$as_me' instantiates files and other configuration actions 9351from templates according to the current configuration. Unless the files 9352and actions are specified as TAGs, all are instantiated by default. 9353 9354Usage: $0 [OPTION]... [TAG]... 9355 9356 -h, --help print this help, then exit 9357 -V, --version print version number and configuration settings, then exit 9358 --config print configuration, then exit 9359 -q, --quiet, --silent 9360 do not print progress messages 9361 -d, --debug don't remove temporary files 9362 --recheck update $as_me by reconfiguring in the same conditions 9363 --file=FILE[:TEMPLATE] 9364 instantiate the configuration file FILE 9365 --header=FILE[:TEMPLATE] 9366 instantiate the configuration header FILE 9367 9368Configuration files: 9369$config_files 9370 9371Configuration headers: 9372$config_headers 9373 9374Report bugs to <http://sourceforge.net/projects/asymptote>." 9375 9376_ACEOF 9377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9378ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 9379ac_cs_version="\\ 9380Asymptote config.status 2.67 9381configured by $0, generated by GNU Autoconf 2.69, 9382 with options \\"\$ac_cs_config\\" 9383 9384Copyright (C) 2012 Free Software Foundation, Inc. 9385This config.status script is free software; the Free Software Foundation 9386gives unlimited permission to copy, distribute and modify it." 9387 9388ac_pwd='$ac_pwd' 9389srcdir='$srcdir' 9390INSTALL='$INSTALL' 9391test -n "\$AWK" || AWK=awk 9392_ACEOF 9393 9394cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9395# The default lists apply if the user does not specify any file. 9396ac_need_defaults=: 9397while test $# != 0 9398do 9399 case $1 in 9400 --*=?*) 9401 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9402 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 9403 ac_shift=: 9404 ;; 9405 --*=) 9406 ac_option=`expr "X$1" : 'X\([^=]*\)='` 9407 ac_optarg= 9408 ac_shift=: 9409 ;; 9410 *) 9411 ac_option=$1 9412 ac_optarg=$2 9413 ac_shift=shift 9414 ;; 9415 esac 9416 9417 case $ac_option in 9418 # Handling of the options. 9419 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 9420 ac_cs_recheck=: ;; 9421 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 9422 $as_echo "$ac_cs_version"; exit ;; 9423 --config | --confi | --conf | --con | --co | --c ) 9424 $as_echo "$ac_cs_config"; exit ;; 9425 --debug | --debu | --deb | --de | --d | -d ) 9426 debug=: ;; 9427 --file | --fil | --fi | --f ) 9428 $ac_shift 9429 case $ac_optarg in 9430 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9431 '') as_fn_error $? "missing file argument" ;; 9432 esac 9433 as_fn_append CONFIG_FILES " '$ac_optarg'" 9434 ac_need_defaults=false;; 9435 --header | --heade | --head | --hea ) 9436 $ac_shift 9437 case $ac_optarg in 9438 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 9439 esac 9440 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 9441 ac_need_defaults=false;; 9442 --he | --h) 9443 # Conflict between --help and --header 9444 as_fn_error $? "ambiguous option: \`$1' 9445Try \`$0 --help' for more information.";; 9446 --help | --hel | -h ) 9447 $as_echo "$ac_cs_usage"; exit ;; 9448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 9449 | -silent | --silent | --silen | --sile | --sil | --si | --s) 9450 ac_cs_silent=: ;; 9451 9452 # This is an error. 9453 -*) as_fn_error $? "unrecognized option: \`$1' 9454Try \`$0 --help' for more information." ;; 9455 9456 *) as_fn_append ac_config_targets " $1" 9457 ac_need_defaults=false ;; 9458 9459 esac 9460 shift 9461done 9462 9463ac_configure_extra_args= 9464 9465if $ac_cs_silent; then 9466 exec 6>/dev/null 9467 ac_configure_extra_args="$ac_configure_extra_args --silent" 9468fi 9469 9470_ACEOF 9471cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9472if \$ac_cs_recheck; then 9473 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 9474 shift 9475 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 9476 CONFIG_SHELL='$SHELL' 9477 export CONFIG_SHELL 9478 exec "\$@" 9479fi 9480 9481_ACEOF 9482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9483exec 5>>config.log 9484{ 9485 echo 9486 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 9487## Running $as_me. ## 9488_ASBOX 9489 $as_echo "$ac_log" 9490} >&5 9491 9492_ACEOF 9493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9494_ACEOF 9495 9496cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9497 9498# Handling of arguments. 9499for ac_config_target in $ac_config_targets 9500do 9501 case $ac_config_target in 9502 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 9503 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 9504 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 9505 "doc/png/Makefile") CONFIG_FILES="$CONFIG_FILES doc/png/Makefile" ;; 9506 9507 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 9508 esac 9509done 9510 9511 9512# If the user did not use the arguments to specify the items to instantiate, 9513# then the envvar interface is used. Set only those that are not. 9514# We use the long form for the default assignment because of an extremely 9515# bizarre bug on SunOS 4.1.3. 9516if $ac_need_defaults; then 9517 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 9518 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 9519fi 9520 9521# Have a temporary directory for convenience. Make it in the build tree 9522# simply because there is no reason against having it here, and in addition, 9523# creating and moving files from /tmp can sometimes cause problems. 9524# Hook for its removal unless debugging. 9525# Note that there is a small window in which the directory will not be cleaned: 9526# after its creation but before its name has been assigned to `$tmp'. 9527$debug || 9528{ 9529 tmp= ac_tmp= 9530 trap 'exit_status=$? 9531 : "${ac_tmp:=$tmp}" 9532 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 9533' 0 9534 trap 'as_fn_exit 1' 1 2 13 15 9535} 9536# Create a (secure) tmp directory for tmp files. 9537 9538{ 9539 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 9540 test -d "$tmp" 9541} || 9542{ 9543 tmp=./conf$$-$RANDOM 9544 (umask 077 && mkdir "$tmp") 9545} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 9546ac_tmp=$tmp 9547 9548# Set up the scripts for CONFIG_FILES section. 9549# No need to generate them if there are no CONFIG_FILES. 9550# This happens for instance with `./config.status config.h'. 9551if test -n "$CONFIG_FILES"; then 9552 9553 9554ac_cr=`echo X | tr X '\015'` 9555# On cygwin, bash can eat \r inside `` if the user requested igncr. 9556# But we know of no other shell where ac_cr would be empty at this 9557# point, so we can use a bashism as a fallback. 9558if test "x$ac_cr" = x; then 9559 eval ac_cr=\$\'\\r\' 9560fi 9561ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 9562if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 9563 ac_cs_awk_cr='\\r' 9564else 9565 ac_cs_awk_cr=$ac_cr 9566fi 9567 9568echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 9569_ACEOF 9570 9571 9572{ 9573 echo "cat >conf$$subs.awk <<_ACEOF" && 9574 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 9575 echo "_ACEOF" 9576} >conf$$subs.sh || 9577 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9578ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 9579ac_delim='%!_!# ' 9580for ac_last_try in false false false false false :; do 9581 . ./conf$$subs.sh || 9582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9583 9584 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 9585 if test $ac_delim_n = $ac_delim_num; then 9586 break 9587 elif $ac_last_try; then 9588 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 9589 else 9590 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9591 fi 9592done 9593rm -f conf$$subs.sh 9594 9595cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9596cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 9597_ACEOF 9598sed -n ' 9599h 9600s/^/S["/; s/!.*/"]=/ 9601p 9602g 9603s/^[^!]*!// 9604:repl 9605t repl 9606s/'"$ac_delim"'$// 9607t delim 9608:nl 9609h 9610s/\(.\{148\}\)..*/\1/ 9611t more1 9612s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 9613p 9614n 9615b repl 9616:more1 9617s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9618p 9619g 9620s/.\{148\}// 9621t nl 9622:delim 9623h 9624s/\(.\{148\}\)..*/\1/ 9625t more2 9626s/["\\]/\\&/g; s/^/"/; s/$/"/ 9627p 9628b 9629:more2 9630s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 9631p 9632g 9633s/.\{148\}// 9634t delim 9635' <conf$$subs.awk | sed ' 9636/^[^""]/{ 9637 N 9638 s/\n// 9639} 9640' >>$CONFIG_STATUS || ac_write_fail=1 9641rm -f conf$$subs.awk 9642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9643_ACAWK 9644cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 9645 for (key in S) S_is_set[key] = 1 9646 FS = "" 9647 9648} 9649{ 9650 line = $ 0 9651 nfields = split(line, field, "@") 9652 substed = 0 9653 len = length(field[1]) 9654 for (i = 2; i < nfields; i++) { 9655 key = field[i] 9656 keylen = length(key) 9657 if (S_is_set[key]) { 9658 value = S[key] 9659 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 9660 len += length(value) + length(field[++i]) 9661 substed = 1 9662 } else 9663 len += 1 + keylen 9664 } 9665 9666 print line 9667} 9668 9669_ACAWK 9670_ACEOF 9671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9672if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 9673 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 9674else 9675 cat 9676fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 9677 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 9678_ACEOF 9679 9680# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 9681# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 9682# trailing colons and then remove the whole line if VPATH becomes empty 9683# (actually we leave an empty line to preserve line numbers). 9684if test "x$srcdir" = x.; then 9685 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 9686h 9687s/// 9688s/^/:/ 9689s/[ ]*$/:/ 9690s/:\$(srcdir):/:/g 9691s/:\${srcdir}:/:/g 9692s/:@srcdir@:/:/g 9693s/^:*// 9694s/:*$// 9695x 9696s/\(=[ ]*\).*/\1/ 9697G 9698s/\n// 9699s/^[^=]*=[ ]*$// 9700}' 9701fi 9702 9703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9704fi # test -n "$CONFIG_FILES" 9705 9706# Set up the scripts for CONFIG_HEADERS section. 9707# No need to generate them if there are no CONFIG_HEADERS. 9708# This happens for instance with `./config.status Makefile'. 9709if test -n "$CONFIG_HEADERS"; then 9710cat >"$ac_tmp/defines.awk" <<\_ACAWK || 9711BEGIN { 9712_ACEOF 9713 9714# Transform confdefs.h into an awk script `defines.awk', embedded as 9715# here-document in config.status, that substitutes the proper values into 9716# config.h.in to produce config.h. 9717 9718# Create a delimiter string that does not exist in confdefs.h, to ease 9719# handling of long lines. 9720ac_delim='%!_!# ' 9721for ac_last_try in false false :; do 9722 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 9723 if test -z "$ac_tt"; then 9724 break 9725 elif $ac_last_try; then 9726 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 9727 else 9728 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 9729 fi 9730done 9731 9732# For the awk script, D is an array of macro values keyed by name, 9733# likewise P contains macro parameters if any. Preserve backslash 9734# newline sequences. 9735 9736ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 9737sed -n ' 9738s/.\{148\}/&'"$ac_delim"'/g 9739t rset 9740:rset 9741s/^[ ]*#[ ]*define[ ][ ]*/ / 9742t def 9743d 9744:def 9745s/\\$// 9746t bsnl 9747s/["\\]/\\&/g 9748s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9749D["\1"]=" \3"/p 9750s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 9751d 9752:bsnl 9753s/["\\]/\\&/g 9754s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 9755D["\1"]=" \3\\\\\\n"\\/p 9756t cont 9757s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 9758t cont 9759d 9760:cont 9761n 9762s/.\{148\}/&'"$ac_delim"'/g 9763t clear 9764:clear 9765s/\\$// 9766t bsnlc 9767s/["\\]/\\&/g; s/^/"/; s/$/"/p 9768d 9769:bsnlc 9770s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 9771b cont 9772' <confdefs.h | sed ' 9773s/'"$ac_delim"'/"\\\ 9774"/g' >>$CONFIG_STATUS || ac_write_fail=1 9775 9776cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9777 for (key in D) D_is_set[key] = 1 9778 FS = "" 9779} 9780/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 9781 line = \$ 0 9782 split(line, arg, " ") 9783 if (arg[1] == "#") { 9784 defundef = arg[2] 9785 mac1 = arg[3] 9786 } else { 9787 defundef = substr(arg[1], 2) 9788 mac1 = arg[2] 9789 } 9790 split(mac1, mac2, "(") #) 9791 macro = mac2[1] 9792 prefix = substr(line, 1, index(line, defundef) - 1) 9793 if (D_is_set[macro]) { 9794 # Preserve the white space surrounding the "#". 9795 print prefix "define", macro P[macro] D[macro] 9796 next 9797 } else { 9798 # Replace #undef with comments. This is necessary, for example, 9799 # in the case of _POSIX_SOURCE, which is predefined and required 9800 # on some systems where configure will not decide to define it. 9801 if (defundef == "undef") { 9802 print "/*", prefix defundef, macro, "*/" 9803 next 9804 } 9805 } 9806} 9807{ print } 9808_ACAWK 9809_ACEOF 9810cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9811 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 9812fi # test -n "$CONFIG_HEADERS" 9813 9814 9815eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 9816shift 9817for ac_tag 9818do 9819 case $ac_tag in 9820 :[FHLC]) ac_mode=$ac_tag; continue;; 9821 esac 9822 case $ac_mode$ac_tag in 9823 :[FHL]*:*);; 9824 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 9825 :[FH]-) ac_tag=-:-;; 9826 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 9827 esac 9828 ac_save_IFS=$IFS 9829 IFS=: 9830 set x $ac_tag 9831 IFS=$ac_save_IFS 9832 shift 9833 ac_file=$1 9834 shift 9835 9836 case $ac_mode in 9837 :L) ac_source=$1;; 9838 :[FH]) 9839 ac_file_inputs= 9840 for ac_f 9841 do 9842 case $ac_f in 9843 -) ac_f="$ac_tmp/stdin";; 9844 *) # Look for the file first in the build tree, then in the source tree 9845 # (if the path is not absolute). The absolute path cannot be DOS-style, 9846 # because $ac_f cannot contain `:'. 9847 test -f "$ac_f" || 9848 case $ac_f in 9849 [\\/$]*) false;; 9850 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 9851 esac || 9852 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 9853 esac 9854 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 9855 as_fn_append ac_file_inputs " '$ac_f'" 9856 done 9857 9858 # Let's still pretend it is `configure' which instantiates (i.e., don't 9859 # use $as_me), people would be surprised to read: 9860 # /* config.h. Generated by config.status. */ 9861 configure_input='Generated from '` 9862 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 9863 `' by configure.' 9864 if test x"$ac_file" != x-; then 9865 configure_input="$ac_file. $configure_input" 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 9867$as_echo "$as_me: creating $ac_file" >&6;} 9868 fi 9869 # Neutralize special characters interpreted by sed in replacement strings. 9870 case $configure_input in #( 9871 *\&* | *\|* | *\\* ) 9872 ac_sed_conf_input=`$as_echo "$configure_input" | 9873 sed 's/[\\\\&|]/\\\\&/g'`;; #( 9874 *) ac_sed_conf_input=$configure_input;; 9875 esac 9876 9877 case $ac_tag in 9878 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 9879 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 9880 esac 9881 ;; 9882 esac 9883 9884 ac_dir=`$as_dirname -- "$ac_file" || 9885$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9886 X"$ac_file" : 'X\(//\)[^/]' \| \ 9887 X"$ac_file" : 'X\(//\)$' \| \ 9888 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 9889$as_echo X"$ac_file" | 9890 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 9891 s//\1/ 9892 q 9893 } 9894 /^X\(\/\/\)[^/].*/{ 9895 s//\1/ 9896 q 9897 } 9898 /^X\(\/\/\)$/{ 9899 s//\1/ 9900 q 9901 } 9902 /^X\(\/\).*/{ 9903 s//\1/ 9904 q 9905 } 9906 s/.*/./; q'` 9907 as_dir="$ac_dir"; as_fn_mkdir_p 9908 ac_builddir=. 9909 9910case "$ac_dir" in 9911.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9912*) 9913 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 9914 # A ".." for each directory in $ac_dir_suffix. 9915 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 9916 case $ac_top_builddir_sub in 9917 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9918 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9919 esac ;; 9920esac 9921ac_abs_top_builddir=$ac_pwd 9922ac_abs_builddir=$ac_pwd$ac_dir_suffix 9923# for backward compatibility: 9924ac_top_builddir=$ac_top_build_prefix 9925 9926case $srcdir in 9927 .) # We are building in place. 9928 ac_srcdir=. 9929 ac_top_srcdir=$ac_top_builddir_sub 9930 ac_abs_top_srcdir=$ac_pwd ;; 9931 [\\/]* | ?:[\\/]* ) # Absolute name. 9932 ac_srcdir=$srcdir$ac_dir_suffix; 9933 ac_top_srcdir=$srcdir 9934 ac_abs_top_srcdir=$srcdir ;; 9935 *) # Relative name. 9936 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 9937 ac_top_srcdir=$ac_top_build_prefix$srcdir 9938 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 9939esac 9940ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 9941 9942 9943 case $ac_mode in 9944 :F) 9945 # 9946 # CONFIG_FILE 9947 # 9948 9949 case $INSTALL in 9950 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9951 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9952 esac 9953_ACEOF 9954 9955cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9956# If the template does not know about datarootdir, expand it. 9957# FIXME: This hack should be removed a few years after 2.60. 9958ac_datarootdir_hack=; ac_datarootdir_seen= 9959ac_sed_dataroot=' 9960/datarootdir/ { 9961 p 9962 q 9963} 9964/@datadir@/p 9965/@docdir@/p 9966/@infodir@/p 9967/@localedir@/p 9968/@mandir@/p' 9969case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 9970*datarootdir*) ac_datarootdir_seen=yes;; 9971*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9973$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9974_ACEOF 9975cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9976 ac_datarootdir_hack=' 9977 s&@datadir@&$datadir&g 9978 s&@docdir@&$docdir&g 9979 s&@infodir@&$infodir&g 9980 s&@localedir@&$localedir&g 9981 s&@mandir@&$mandir&g 9982 s&\\\${datarootdir}&$datarootdir&g' ;; 9983esac 9984_ACEOF 9985 9986# Neutralize VPATH when `$srcdir' = `.'. 9987# Shell code in configure.ac might set extrasub. 9988# FIXME: do we really want to maintain this feature? 9989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 9990ac_sed_extra="$ac_vpsub 9991$extrasub 9992_ACEOF 9993cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 9994:t 9995/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9996s|@configure_input@|$ac_sed_conf_input|;t t 9997s&@top_builddir@&$ac_top_builddir_sub&;t t 9998s&@top_build_prefix@&$ac_top_build_prefix&;t t 9999s&@srcdir@&$ac_srcdir&;t t 10000s&@abs_srcdir@&$ac_abs_srcdir&;t t 10001s&@top_srcdir@&$ac_top_srcdir&;t t 10002s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 10003s&@builddir@&$ac_builddir&;t t 10004s&@abs_builddir@&$ac_abs_builddir&;t t 10005s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 10006s&@INSTALL@&$ac_INSTALL&;t t 10007$ac_datarootdir_hack 10008" 10009eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 10010 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10011 10012test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 10013 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 10014 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 10015 "$ac_tmp/out"`; test -z "$ac_out"; } && 10016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10017which seems to be undefined. Please make sure it is defined" >&5 10018$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 10019which seems to be undefined. Please make sure it is defined" >&2;} 10020 10021 rm -f "$ac_tmp/stdin" 10022 case $ac_file in 10023 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 10024 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 10025 esac \ 10026 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10027 ;; 10028 :H) 10029 # 10030 # CONFIG_HEADER 10031 # 10032 if test x"$ac_file" != x-; then 10033 { 10034 $as_echo "/* $configure_input */" \ 10035 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 10036 } >"$ac_tmp/config.h" \ 10037 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10038 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 10039 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 10040$as_echo "$as_me: $ac_file is unchanged" >&6;} 10041 else 10042 rm -f "$ac_file" 10043 mv "$ac_tmp/config.h" "$ac_file" \ 10044 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 10045 fi 10046 else 10047 $as_echo "/* $configure_input */" \ 10048 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 10049 || as_fn_error $? "could not create -" "$LINENO" 5 10050 fi 10051 ;; 10052 10053 10054 esac 10055 10056done # for ac_tag 10057 10058 10059as_fn_exit 0 10060_ACEOF 10061ac_clean_files=$ac_clean_files_save 10062 10063test $ac_write_fail = 0 || 10064 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 10065 10066 10067# configure is writing to config.log, and then calls config.status. 10068# config.status does its own redirection, appending to config.log. 10069# Unfortunately, on DOS this fails, as config.log is still kept open 10070# by configure, so config.status won't be able to write to it; its 10071# output is simply discarded. So we exec the FD to /dev/null, 10072# effectively closing config.log, so it can be properly (re)opened and 10073# appended to by config.status. When coming back to configure, we 10074# need to make the FD available again. 10075if test "$no_create" != yes; then 10076 ac_cs_success=: 10077 ac_config_status_args= 10078 test "$silent" = yes && 10079 ac_config_status_args="$ac_config_status_args --quiet" 10080 exec 5>/dev/null 10081 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 10082 exec 5>>config.log 10083 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 10084 # would make configure fail if this is the last instruction. 10085 $ac_cs_success || as_fn_exit 1 10086fi 10087if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 10088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 10089$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 10090fi 10091 10092 10093if test "x$GCDIR" != "x" ; then 10094 as_ac_File=`$as_echo "ac_cv_file_$GCDIR.tar.gz" | $as_tr_sh` 10095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GCDIR.tar.gz" >&5 10096$as_echo_n "checking for $GCDIR.tar.gz... " >&6; } 10097if eval \${$as_ac_File+:} false; then : 10098 $as_echo_n "(cached) " >&6 10099else 10100 test "$cross_compiling" = yes && 10101 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5 10102if test -r "$GCDIR.tar.gz"; then 10103 eval "$as_ac_File=yes" 10104else 10105 eval "$as_ac_File=no" 10106fi 10107fi 10108eval ac_res=\$$as_ac_File 10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 10110$as_echo "$ac_res" >&6; } 10111if eval test \"x\$"$as_ac_File"\" = x"yes"; then : 10112 10113else 10114 10115 echo 10116 echo Please put the Boehm garbage collector tar.gz files in the asymptote directory. 10117 echo FOR EXAMPLE, USE THE COMMANDS: 10118 echo 10119 echo wget https://github.com/ivmai/bdwgc/releases/download/v$GCVERSION/$GCFILE.tar.gz 10120 echo wget http://www.ivmaisoft.com/_bin/atomic_ops/libatomic_ops-$ATOMICVERSION.tar.gz 10121 10122 echo 10123 exit 1 10124 10125fi 10126 10127fi 10128