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