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