1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for nightfall 1.92. 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='nightfall' 579PACKAGE_TARNAME='nightfall' 580PACKAGE_VERSION='1.92' 581PACKAGE_STRING='nightfall 1.92' 582PACKAGE_BUGREPORT='' 583PACKAGE_URL='' 584 585ac_unique_file="Light.c" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_header_list= 623ac_subst_vars='LTLIBOBJS 624LIBOBJS 625mymanualdir 626mypixmapdir 627mylocaledir 628mygdocdir 629mydocdir 630mycfgdir 631mydatadir 632mydataroot 633GTKGL_LIBS 634GTKGL_CFLAGS 635X_EXTRA_LIBS 636X_LIBS 637X_PRE_LIBS 638X_CFLAGS 639XMKMF 640GTK_CONFIG 641GTK_LIBS 642GTK_CFLAGS 643PLIBS 644PROFILE 645PS_DRIVER 646MY_FOLD 647MY_FORTUNE 648GNOME_UNINSTALL 649GNOME_INSTALL 650GNOME_LIBS 651GNOME_CFLAGS 652PKG_CONFIG 653POSUB 654LTLIBINTL 655LIBINTL 656INTLLIBS 657INTL_LIBTOOL_SUFFIX_PREFIX 658GENCAT 659INSTOBJEXT 660DATADIRNAME 661INTLOBJS 662CATOBJEXT 663USE_INCLUDED_LIBINTL 664BUILD_INCLUDED_LIBINTL 665USE_NLS 666INTLBISON 667LTLIBICONV 668LIBICONV 669GLIBC21 670ALLOCA 671EGREP 672GREP 673CPP 674RANLIB 675host_os 676host_vendor 677host_cpu 678host 679build_os 680build_vendor 681build_cpu 682build 683MSGMERGE 684XGETTEXT 685GMSGFMT 686MSGFMT 687MKINSTALLDIRS 688MY_PERL 689AWK 690LN_S 691ac_ct_F77 692FFLAGS 693F77 694OBJEXT 695EXEEXT 696ac_ct_CC 697CPPFLAGS 698LDFLAGS 699CFLAGS 700CC 701SET_MAKE 702MAKEINFO 703AUTOHEADER 704AUTOMAKE 705AUTOCONF 706ACLOCAL 707VERSION 708PACKAGE 709INSTALL_DATA 710INSTALL_SCRIPT 711INSTALL_PROGRAM 712target_alias 713host_alias 714build_alias 715LIBS 716ECHO_T 717ECHO_N 718ECHO_C 719DEFS 720mandir 721localedir 722libdir 723psdir 724pdfdir 725dvidir 726htmldir 727infodir 728docdir 729oldincludedir 730includedir 731runstatedir 732localstatedir 733sharedstatedir 734sysconfdir 735datadir 736datarootdir 737libexecdir 738sbindir 739bindir 740program_transform_name 741prefix 742exec_prefix 743PACKAGE_URL 744PACKAGE_BUGREPORT 745PACKAGE_STRING 746PACKAGE_VERSION 747PACKAGE_TARNAME 748PACKAGE_NAME 749PATH_SEPARATOR 750SHELL' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754with_gnu_ld 755enable_rpath 756with_libiconv_prefix 757enable_nls 758with_included_gettext 759with_libintl_prefix 760enable_gnome 761enable_gcov 762enable_profiling 763enable_debug 764enable_gtk2 765with_gtk_prefix 766with_gtk_exec_prefix 767enable_gtktest 768with_x 769enable_disk 770enable_high_precision 771enable_opengl 772with_gl_prefix 773with_gtkgl_prefix 774with_lib_GL 775with_lib_MesaGL 776enable_openmp 777with_gnuplot 778with_pgplot_include 779with_pgplot_lib 780with_data_prefix 781with_cfg_prefix 782with_doc_prefix 783with_gnomedoc_prefix 784with_locale_prefix 785with_pixmap_prefix 786with_manual_prefix 787' 788 ac_precious_vars='build_alias 789host_alias 790target_alias 791CC 792CFLAGS 793LDFLAGS 794LIBS 795CPPFLAGS 796F77 797FFLAGS 798CPP 799XMKMF' 800 801 802# Initialize some variables set by options. 803ac_init_help= 804ac_init_version=false 805ac_unrecognized_opts= 806ac_unrecognized_sep= 807# The variables have the same names as the options, with 808# dashes changed to underlines. 809cache_file=/dev/null 810exec_prefix=NONE 811no_create= 812no_recursion= 813prefix=NONE 814program_prefix=NONE 815program_suffix=NONE 816program_transform_name=s,x,x, 817silent= 818site= 819srcdir= 820verbose= 821x_includes=NONE 822x_libraries=NONE 823 824# Installation directory options. 825# These are left unexpanded so users can "make install exec_prefix=/foo" 826# and all the variables that are supposed to be based on exec_prefix 827# by default will actually change. 828# Use braces instead of parens because sh, perl, etc. also accept them. 829# (The list follows the same order as the GNU Coding Standards.) 830bindir='${exec_prefix}/bin' 831sbindir='${exec_prefix}/sbin' 832libexecdir='${exec_prefix}/libexec' 833datarootdir='${prefix}/share' 834datadir='${datarootdir}' 835sysconfdir='${prefix}/etc' 836sharedstatedir='${prefix}/com' 837localstatedir='${prefix}/var' 838runstatedir='${localstatedir}/run' 839includedir='${prefix}/include' 840oldincludedir='/usr/include' 841docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 842infodir='${datarootdir}/info' 843htmldir='${docdir}' 844dvidir='${docdir}' 845pdfdir='${docdir}' 846psdir='${docdir}' 847libdir='${exec_prefix}/lib' 848localedir='${datarootdir}/locale' 849mandir='${datarootdir}/man' 850 851ac_prev= 852ac_dashdash= 853for ac_option 854do 855 # If the previous option needs an argument, assign it. 856 if test -n "$ac_prev"; then 857 eval $ac_prev=\$ac_option 858 ac_prev= 859 continue 860 fi 861 862 case $ac_option in 863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 864 *=) ac_optarg= ;; 865 *) ac_optarg=yes ;; 866 esac 867 868 # Accept the important Cygnus configure options, so we can diagnose typos. 869 870 case $ac_dashdash$ac_option in 871 --) 872 ac_dashdash=yes ;; 873 874 -bindir | --bindir | --bindi | --bind | --bin | --bi) 875 ac_prev=bindir ;; 876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 877 bindir=$ac_optarg ;; 878 879 -build | --build | --buil | --bui | --bu) 880 ac_prev=build_alias ;; 881 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 882 build_alias=$ac_optarg ;; 883 884 -cache-file | --cache-file | --cache-fil | --cache-fi \ 885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 886 ac_prev=cache_file ;; 887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 889 cache_file=$ac_optarg ;; 890 891 --config-cache | -C) 892 cache_file=config.cache ;; 893 894 -datadir | --datadir | --datadi | --datad) 895 ac_prev=datadir ;; 896 -datadir=* | --datadir=* | --datadi=* | --datad=*) 897 datadir=$ac_optarg ;; 898 899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 900 | --dataroo | --dataro | --datar) 901 ac_prev=datarootdir ;; 902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 904 datarootdir=$ac_optarg ;; 905 906 -disable-* | --disable-*) 907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 # Reject names that are not valid shell variable names. 909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 as_fn_error $? "invalid feature name: $ac_useropt" 911 ac_useropt_orig=$ac_useropt 912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 case $ac_user_opts in 914 *" 915"enable_$ac_useropt" 916"*) ;; 917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 918 ac_unrecognized_sep=', ';; 919 esac 920 eval enable_$ac_useropt=no ;; 921 922 -docdir | --docdir | --docdi | --doc | --do) 923 ac_prev=docdir ;; 924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 925 docdir=$ac_optarg ;; 926 927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 928 ac_prev=dvidir ;; 929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 930 dvidir=$ac_optarg ;; 931 932 -enable-* | --enable-*) 933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 # Reject names that are not valid shell variable names. 935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 as_fn_error $? "invalid feature name: $ac_useropt" 937 ac_useropt_orig=$ac_useropt 938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 case $ac_user_opts in 940 *" 941"enable_$ac_useropt" 942"*) ;; 943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 944 ac_unrecognized_sep=', ';; 945 esac 946 eval enable_$ac_useropt=\$ac_optarg ;; 947 948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 950 | --exec | --exe | --ex) 951 ac_prev=exec_prefix ;; 952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 954 | --exec=* | --exe=* | --ex=*) 955 exec_prefix=$ac_optarg ;; 956 957 -gas | --gas | --ga | --g) 958 # Obsolete; use --with-gas. 959 with_gas=yes ;; 960 961 -help | --help | --hel | --he | -h) 962 ac_init_help=long ;; 963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 964 ac_init_help=recursive ;; 965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 966 ac_init_help=short ;; 967 968 -host | --host | --hos | --ho) 969 ac_prev=host_alias ;; 970 -host=* | --host=* | --hos=* | --ho=*) 971 host_alias=$ac_optarg ;; 972 973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 974 ac_prev=htmldir ;; 975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 976 | --ht=*) 977 htmldir=$ac_optarg ;; 978 979 -includedir | --includedir | --includedi | --included | --include \ 980 | --includ | --inclu | --incl | --inc) 981 ac_prev=includedir ;; 982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 983 | --includ=* | --inclu=* | --incl=* | --inc=*) 984 includedir=$ac_optarg ;; 985 986 -infodir | --infodir | --infodi | --infod | --info | --inf) 987 ac_prev=infodir ;; 988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 989 infodir=$ac_optarg ;; 990 991 -libdir | --libdir | --libdi | --libd) 992 ac_prev=libdir ;; 993 -libdir=* | --libdir=* | --libdi=* | --libd=*) 994 libdir=$ac_optarg ;; 995 996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 997 | --libexe | --libex | --libe) 998 ac_prev=libexecdir ;; 999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1000 | --libexe=* | --libex=* | --libe=*) 1001 libexecdir=$ac_optarg ;; 1002 1003 -localedir | --localedir | --localedi | --localed | --locale) 1004 ac_prev=localedir ;; 1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1006 localedir=$ac_optarg ;; 1007 1008 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1009 | --localstate | --localstat | --localsta | --localst | --locals) 1010 ac_prev=localstatedir ;; 1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1013 localstatedir=$ac_optarg ;; 1014 1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1016 ac_prev=mandir ;; 1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1018 mandir=$ac_optarg ;; 1019 1020 -nfp | --nfp | --nf) 1021 # Obsolete; use --without-fp. 1022 with_fp=no ;; 1023 1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1025 | --no-cr | --no-c | -n) 1026 no_create=yes ;; 1027 1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1030 no_recursion=yes ;; 1031 1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1034 | --oldin | --oldi | --old | --ol | --o) 1035 ac_prev=oldincludedir ;; 1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1039 oldincludedir=$ac_optarg ;; 1040 1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1042 ac_prev=prefix ;; 1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1044 prefix=$ac_optarg ;; 1045 1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1047 | --program-pre | --program-pr | --program-p) 1048 ac_prev=program_prefix ;; 1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1051 program_prefix=$ac_optarg ;; 1052 1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1054 | --program-suf | --program-su | --program-s) 1055 ac_prev=program_suffix ;; 1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1058 program_suffix=$ac_optarg ;; 1059 1060 -program-transform-name | --program-transform-name \ 1061 | --program-transform-nam | --program-transform-na \ 1062 | --program-transform-n | --program-transform- \ 1063 | --program-transform | --program-transfor \ 1064 | --program-transfo | --program-transf \ 1065 | --program-trans | --program-tran \ 1066 | --progr-tra | --program-tr | --program-t) 1067 ac_prev=program_transform_name ;; 1068 -program-transform-name=* | --program-transform-name=* \ 1069 | --program-transform-nam=* | --program-transform-na=* \ 1070 | --program-transform-n=* | --program-transform-=* \ 1071 | --program-transform=* | --program-transfor=* \ 1072 | --program-transfo=* | --program-transf=* \ 1073 | --program-trans=* | --program-tran=* \ 1074 | --progr-tra=* | --program-tr=* | --program-t=*) 1075 program_transform_name=$ac_optarg ;; 1076 1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1078 ac_prev=pdfdir ;; 1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1080 pdfdir=$ac_optarg ;; 1081 1082 -psdir | --psdir | --psdi | --psd | --ps) 1083 ac_prev=psdir ;; 1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1085 psdir=$ac_optarg ;; 1086 1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1088 | -silent | --silent | --silen | --sile | --sil) 1089 silent=yes ;; 1090 1091 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1092 | --runstate | --runstat | --runsta | --runst | --runs \ 1093 | --run | --ru | --r) 1094 ac_prev=runstatedir ;; 1095 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1096 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1097 | --run=* | --ru=* | --r=*) 1098 runstatedir=$ac_optarg ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: $ac_useropt" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"with_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=\$ac_optarg ;; 1160 1161 -without-* | --without-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: $ac_useropt" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170"with_$ac_useropt" 1171"*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=no ;; 1176 1177 --x) 1178 # Obsolete; use --with-x. 1179 with_x=yes ;; 1180 1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1182 | --x-incl | --x-inc | --x-in | --x-i) 1183 ac_prev=x_includes ;; 1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1186 x_includes=$ac_optarg ;; 1187 1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1190 ac_prev=x_libraries ;; 1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1193 x_libraries=$ac_optarg ;; 1194 1195 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1196Try \`$0 --help' for more information" 1197 ;; 1198 1199 *=*) 1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1201 # Reject names that are not valid shell variable names. 1202 case $ac_envvar in #( 1203 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1205 esac 1206 eval $ac_envvar=\$ac_optarg 1207 export $ac_envvar ;; 1208 1209 *) 1210 # FIXME: should be removed in autoconf 3.0. 1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1214 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1215 ;; 1216 1217 esac 1218done 1219 1220if test -n "$ac_prev"; then 1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1222 as_fn_error $? "missing argument to $ac_option" 1223fi 1224 1225if test -n "$ac_unrecognized_opts"; then 1226 case $enable_option_checking in 1227 no) ;; 1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1230 esac 1231fi 1232 1233# Check all directory arguments for consistency. 1234for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1235 datadir sysconfdir sharedstatedir localstatedir includedir \ 1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1237 libdir localedir mandir runstatedir 1238do 1239 eval ac_val=\$$ac_var 1240 # Remove trailing slashes. 1241 case $ac_val in 1242 */ ) 1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1244 eval $ac_var=\$ac_val;; 1245 esac 1246 # Be sure to have absolute directory names. 1247 case $ac_val in 1248 [\\/$]* | ?:[\\/]* ) continue;; 1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1250 esac 1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1252done 1253 1254# There might be people who depend on the old broken behavior: `$host' 1255# used to hold the argument of --host etc. 1256# FIXME: To remove some day. 1257build=$build_alias 1258host=$host_alias 1259target=$target_alias 1260 1261# FIXME: To remove some day. 1262if test "x$host_alias" != x; then 1263 if test "x$build_alias" = x; then 1264 cross_compiling=maybe 1265 elif test "x$build_alias" != "x$host_alias"; then 1266 cross_compiling=yes 1267 fi 1268fi 1269 1270ac_tool_prefix= 1271test -n "$host_alias" && ac_tool_prefix=$host_alias- 1272 1273test "$silent" = yes && exec 6>/dev/null 1274 1275 1276ac_pwd=`pwd` && test -n "$ac_pwd" && 1277ac_ls_di=`ls -di .` && 1278ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1279 as_fn_error $? "working directory cannot be determined" 1280test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1281 as_fn_error $? "pwd does not report name of working directory" 1282 1283 1284# Find the source files, if location was not specified. 1285if test -z "$srcdir"; then 1286 ac_srcdir_defaulted=yes 1287 # Try the directory containing this script, then the parent directory. 1288 ac_confdir=`$as_dirname -- "$as_myself" || 1289$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1290 X"$as_myself" : 'X\(//\)[^/]' \| \ 1291 X"$as_myself" : 'X\(//\)$' \| \ 1292 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1293$as_echo X"$as_myself" | 1294 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1295 s//\1/ 1296 q 1297 } 1298 /^X\(\/\/\)[^/].*/{ 1299 s//\1/ 1300 q 1301 } 1302 /^X\(\/\/\)$/{ 1303 s//\1/ 1304 q 1305 } 1306 /^X\(\/\).*/{ 1307 s//\1/ 1308 q 1309 } 1310 s/.*/./; q'` 1311 srcdir=$ac_confdir 1312 if test ! -r "$srcdir/$ac_unique_file"; then 1313 srcdir=.. 1314 fi 1315else 1316 ac_srcdir_defaulted=no 1317fi 1318if test ! -r "$srcdir/$ac_unique_file"; then 1319 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1320 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1321fi 1322ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1323ac_abs_confdir=`( 1324 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1325 pwd)` 1326# When building in place, set srcdir=. 1327if test "$ac_abs_confdir" = "$ac_pwd"; then 1328 srcdir=. 1329fi 1330# Remove unnecessary trailing slashes from srcdir. 1331# Double slashes in file names in object file debugging info 1332# mess up M-x gdb in Emacs. 1333case $srcdir in 1334*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1335esac 1336for ac_var in $ac_precious_vars; do 1337 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1338 eval ac_env_${ac_var}_value=\$${ac_var} 1339 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1341done 1342 1343# 1344# Report the --help message. 1345# 1346if test "$ac_init_help" = "long"; then 1347 # Omit some internal or obsolete options to make the list less imposing. 1348 # This message is too long to be a string in the A/UX 3.1 sh. 1349 cat <<_ACEOF 1350\`configure' configures nightfall 1.92 to adapt to many kinds of systems. 1351 1352Usage: $0 [OPTION]... [VAR=VALUE]... 1353 1354To assign environment variables (e.g., CC, CFLAGS...), specify them as 1355VAR=VALUE. See below for descriptions of some of the useful variables. 1356 1357Defaults for the options are specified in brackets. 1358 1359Configuration: 1360 -h, --help display this help and exit 1361 --help=short display options specific to this package 1362 --help=recursive display the short help of all the included packages 1363 -V, --version display version information and exit 1364 -q, --quiet, --silent do not print \`checking ...' messages 1365 --cache-file=FILE cache test results in FILE [disabled] 1366 -C, --config-cache alias for \`--cache-file=config.cache' 1367 -n, --no-create do not create output files 1368 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1369 1370Installation directories: 1371 --prefix=PREFIX install architecture-independent files in PREFIX 1372 [$ac_default_prefix] 1373 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1374 [PREFIX] 1375 1376By default, \`make install' will install all the files in 1377\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1378an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1379for instance \`--prefix=\$HOME'. 1380 1381For better control, use the options below. 1382 1383Fine tuning of the installation directories: 1384 --bindir=DIR user executables [EPREFIX/bin] 1385 --sbindir=DIR system admin executables [EPREFIX/sbin] 1386 --libexecdir=DIR program executables [EPREFIX/libexec] 1387 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1388 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1389 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1390 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1391 --libdir=DIR object code libraries [EPREFIX/lib] 1392 --includedir=DIR C header files [PREFIX/include] 1393 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1394 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1395 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1396 --infodir=DIR info documentation [DATAROOTDIR/info] 1397 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1398 --mandir=DIR man documentation [DATAROOTDIR/man] 1399 --docdir=DIR documentation root [DATAROOTDIR/doc/nightfall] 1400 --htmldir=DIR html documentation [DOCDIR] 1401 --dvidir=DIR dvi documentation [DOCDIR] 1402 --pdfdir=DIR pdf documentation [DOCDIR] 1403 --psdir=DIR ps documentation [DOCDIR] 1404_ACEOF 1405 1406 cat <<\_ACEOF 1407 1408Program names: 1409 --program-prefix=PREFIX prepend PREFIX to installed program names 1410 --program-suffix=SUFFIX append SUFFIX to installed program names 1411 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1412 1413X features: 1414 --x-includes=DIR X include files are in DIR 1415 --x-libraries=DIR X library files are in DIR 1416 1417System types: 1418 --build=BUILD configure for building on BUILD [guessed] 1419 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1420_ACEOF 1421fi 1422 1423if test -n "$ac_init_help"; then 1424 case $ac_init_help in 1425 short | recursive ) echo "Configuration of nightfall 1.92:";; 1426 esac 1427 cat <<\_ACEOF 1428 1429Optional Features: 1430 --disable-option-checking ignore unrecognized --enable/--with options 1431 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1432 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1433 --disable-rpath do not hardcode runtime library paths 1434 --disable-nls do not use Native Language Support 1435 --disable-gnome Disable GNOME support 1436 --enable-gcov Enable gcov profiling 1437 --enable-profiling Enable profiling 1438 --enable-debug Enable debugging 1439 --disable-gtk2 Do not try to use GTK 2 1440 --disable-gtktest Do not try to compile and run a test GTK program 1441 --disable-disk Experimental and unfinished 1442 --enable-high-precision Reeaaal sloooow 1443 --disable-opengl Disable OpenGL support 1444 --enable-openmp Enable use of OpenMP for parallelization 1445 1446Optional Packages: 1447 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1448 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1449 --with-gnu-ld assume the C compiler uses GNU ld default=no 1450 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib 1451 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1452 --with-included-gettext use the GNU gettext library included here 1453 --with-libintl-prefix=DIR search for libintl in DIR/include and DIR/lib 1454 --without-libintl-prefix don't search for libintl in includedir and libdir 1455 --with-gtk-prefix=PFX Prefix where GTK is installed (optional) 1456 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional) 1457 --with-x use the X Window System 1458 --with-gl-prefix=PFX Prefix where OpenGL or Mesa is installed 1459 --with-gtkgl-prefix=PFX Prefix where GtkGLArea is installed 1460 --with-lib-GL use '-lGL' 1461 --with-lib-MesaGL use '-lMesaGL' 1462 --with-gnuplot Force using gnuplot, skip test 1463 --with-pgplot-include=PFX Prefix for PGPLOT include files 1464 --with-pgplot-lib=PFX Prefix for PGPLOT library files 1465 --with-data-prefix=PFX Set install dir for data files 1466 --with-cfg-prefix=PFX Set install dir for cfg files 1467 --with-doc-prefix=PFX Set install dir for doc files 1468 --with-gnomedoc-prefix=PFX Set install dir for gnome help files 1469 --with-locale-prefix=PFX Set install dir for locale files 1470 --with-pixmap-prefix=PFX Set install dir for pixmap files 1471 --with-manual-prefix=PFX Set install dir for user manual 1472 1473Some influential environment variables: 1474 CC C compiler command 1475 CFLAGS C compiler flags 1476 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1477 nonstandard directory <lib dir> 1478 LIBS libraries to pass to the linker, e.g. -l<library> 1479 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1480 you have headers in a nonstandard directory <include dir> 1481 F77 Fortran 77 compiler command 1482 FFLAGS Fortran 77 compiler flags 1483 CPP C preprocessor 1484 XMKMF Path to xmkmf, Makefile generator for X Window System 1485 1486Use these variables to override the choices made by `configure' or to help 1487it to find libraries and programs with nonstandard names/locations. 1488 1489Report bugs to the package provider. 1490_ACEOF 1491ac_status=$? 1492fi 1493 1494if test "$ac_init_help" = "recursive"; then 1495 # If there are subdirs, report their specific --help. 1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1497 test -d "$ac_dir" || 1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1499 continue 1500 ac_builddir=. 1501 1502case "$ac_dir" in 1503.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1504*) 1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1506 # A ".." for each directory in $ac_dir_suffix. 1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1508 case $ac_top_builddir_sub in 1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1511 esac ;; 1512esac 1513ac_abs_top_builddir=$ac_pwd 1514ac_abs_builddir=$ac_pwd$ac_dir_suffix 1515# for backward compatibility: 1516ac_top_builddir=$ac_top_build_prefix 1517 1518case $srcdir in 1519 .) # We are building in place. 1520 ac_srcdir=. 1521 ac_top_srcdir=$ac_top_builddir_sub 1522 ac_abs_top_srcdir=$ac_pwd ;; 1523 [\\/]* | ?:[\\/]* ) # Absolute name. 1524 ac_srcdir=$srcdir$ac_dir_suffix; 1525 ac_top_srcdir=$srcdir 1526 ac_abs_top_srcdir=$srcdir ;; 1527 *) # Relative name. 1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1529 ac_top_srcdir=$ac_top_build_prefix$srcdir 1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1531esac 1532ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1533 1534 cd "$ac_dir" || { ac_status=$?; continue; } 1535 # Check for guested configure. 1536 if test -f "$ac_srcdir/configure.gnu"; then 1537 echo && 1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1539 elif test -f "$ac_srcdir/configure"; then 1540 echo && 1541 $SHELL "$ac_srcdir/configure" --help=recursive 1542 else 1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1544 fi || ac_status=$? 1545 cd "$ac_pwd" || { ac_status=$?; break; } 1546 done 1547fi 1548 1549test -n "$ac_init_help" && exit $ac_status 1550if $ac_init_version; then 1551 cat <<\_ACEOF 1552nightfall configure 1.92 1553generated by GNU Autoconf 2.69 1554 1555Copyright (C) 2012 Free Software Foundation, Inc. 1556This configure script is free software; the Free Software Foundation 1557gives unlimited permission to copy, distribute and modify it. 1558_ACEOF 1559 exit 1560fi 1561 1562## ------------------------ ## 1563## Autoconf initialization. ## 1564## ------------------------ ## 1565 1566# ac_fn_c_try_compile LINENO 1567# -------------------------- 1568# Try to compile conftest.$ac_ext, and return whether this succeeded. 1569ac_fn_c_try_compile () 1570{ 1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1572 rm -f conftest.$ac_objext 1573 if { { ac_try="$ac_compile" 1574case "(($ac_try" in 1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1576 *) ac_try_echo=$ac_try;; 1577esac 1578eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1579$as_echo "$ac_try_echo"; } >&5 1580 (eval "$ac_compile") 2>conftest.err 1581 ac_status=$? 1582 if test -s conftest.err; then 1583 grep -v '^ *+' conftest.err >conftest.er1 1584 cat conftest.er1 >&5 1585 mv -f conftest.er1 conftest.err 1586 fi 1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1588 test $ac_status = 0; } && { 1589 test -z "$ac_c_werror_flag" || 1590 test ! -s conftest.err 1591 } && test -s conftest.$ac_objext; then : 1592 ac_retval=0 1593else 1594 $as_echo "$as_me: failed program was:" >&5 1595sed 's/^/| /' conftest.$ac_ext >&5 1596 1597 ac_retval=1 1598fi 1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1600 as_fn_set_status $ac_retval 1601 1602} # ac_fn_c_try_compile 1603 1604# ac_fn_c_try_link LINENO 1605# ----------------------- 1606# Try to link conftest.$ac_ext, and return whether this succeeded. 1607ac_fn_c_try_link () 1608{ 1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1610 rm -f conftest.$ac_objext conftest$ac_exeext 1611 if { { ac_try="$ac_link" 1612case "(($ac_try" in 1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1614 *) ac_try_echo=$ac_try;; 1615esac 1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1617$as_echo "$ac_try_echo"; } >&5 1618 (eval "$ac_link") 2>conftest.err 1619 ac_status=$? 1620 if test -s conftest.err; then 1621 grep -v '^ *+' conftest.err >conftest.er1 1622 cat conftest.er1 >&5 1623 mv -f conftest.er1 conftest.err 1624 fi 1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1626 test $ac_status = 0; } && { 1627 test -z "$ac_c_werror_flag" || 1628 test ! -s conftest.err 1629 } && test -s conftest$ac_exeext && { 1630 test "$cross_compiling" = yes || 1631 test -x conftest$ac_exeext 1632 }; then : 1633 ac_retval=0 1634else 1635 $as_echo "$as_me: failed program was:" >&5 1636sed 's/^/| /' conftest.$ac_ext >&5 1637 1638 ac_retval=1 1639fi 1640 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1641 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1642 # interfere with the next link command; also delete a directory that is 1643 # left behind by Apple's compiler. We do this before executing the actions. 1644 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1645 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1646 as_fn_set_status $ac_retval 1647 1648} # ac_fn_c_try_link 1649 1650# ac_fn_f77_try_compile LINENO 1651# ---------------------------- 1652# Try to compile conftest.$ac_ext, and return whether this succeeded. 1653ac_fn_f77_try_compile () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 rm -f conftest.$ac_objext 1657 if { { ac_try="$ac_compile" 1658case "(($ac_try" in 1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1660 *) ac_try_echo=$ac_try;; 1661esac 1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1663$as_echo "$ac_try_echo"; } >&5 1664 (eval "$ac_compile") 2>conftest.err 1665 ac_status=$? 1666 if test -s conftest.err; then 1667 grep -v '^ *+' conftest.err >conftest.er1 1668 cat conftest.er1 >&5 1669 mv -f conftest.er1 conftest.err 1670 fi 1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1672 test $ac_status = 0; } && { 1673 test -z "$ac_f77_werror_flag" || 1674 test ! -s conftest.err 1675 } && test -s conftest.$ac_objext; then : 1676 ac_retval=0 1677else 1678 $as_echo "$as_me: failed program was:" >&5 1679sed 's/^/| /' conftest.$ac_ext >&5 1680 1681 ac_retval=1 1682fi 1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1684 as_fn_set_status $ac_retval 1685 1686} # ac_fn_f77_try_compile 1687 1688# ac_fn_c_try_cpp LINENO 1689# ---------------------- 1690# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1691ac_fn_c_try_cpp () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 if { { ac_try="$ac_cpp conftest.$ac_ext" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700$as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } > conftest.i && { 1710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1711 test ! -s conftest.err 1712 }; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 1719fi 1720 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_c_try_cpp 1724 1725# ac_fn_c_try_run LINENO 1726# ---------------------- 1727# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1728# that executables *can* be run. 1729ac_fn_c_try_run () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 if { { ac_try="$ac_link" 1733case "(($ac_try" in 1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1735 *) ac_try_echo=$ac_try;; 1736esac 1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1738$as_echo "$ac_try_echo"; } >&5 1739 (eval "$ac_link") 2>&5 1740 ac_status=$? 1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1742 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1743 { { case "(($ac_try" in 1744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1745 *) ac_try_echo=$ac_try;; 1746esac 1747eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1748$as_echo "$ac_try_echo"; } >&5 1749 (eval "$ac_try") 2>&5 1750 ac_status=$? 1751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1752 test $ac_status = 0; }; }; then : 1753 ac_retval=0 1754else 1755 $as_echo "$as_me: program exited with status $ac_status" >&5 1756 $as_echo "$as_me: failed program was:" >&5 1757sed 's/^/| /' conftest.$ac_ext >&5 1758 1759 ac_retval=$ac_status 1760fi 1761 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1762 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1763 as_fn_set_status $ac_retval 1764 1765} # ac_fn_c_try_run 1766 1767# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1768# ------------------------------------------- 1769# Tests whether TYPE exists after having included INCLUDES, setting cache 1770# variable VAR accordingly. 1771ac_fn_c_check_type () 1772{ 1773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1775$as_echo_n "checking for $2... " >&6; } 1776if eval \${$3+:} false; then : 1777 $as_echo_n "(cached) " >&6 1778else 1779 eval "$3=no" 1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782$4 1783int 1784main () 1785{ 1786if (sizeof ($2)) 1787 return 0; 1788 ; 1789 return 0; 1790} 1791_ACEOF 1792if ac_fn_c_try_compile "$LINENO"; then : 1793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1794/* end confdefs.h. */ 1795$4 1796int 1797main () 1798{ 1799if (sizeof (($2))) 1800 return 0; 1801 ; 1802 return 0; 1803} 1804_ACEOF 1805if ac_fn_c_try_compile "$LINENO"; then : 1806 1807else 1808 eval "$3=yes" 1809fi 1810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1811fi 1812rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1813fi 1814eval ac_res=\$$3 1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1816$as_echo "$ac_res" >&6; } 1817 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1818 1819} # ac_fn_c_check_type 1820 1821# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1822# ------------------------------------------------------- 1823# Tests whether HEADER exists and can be compiled using the include files in 1824# INCLUDES, setting the cache variable VAR accordingly. 1825ac_fn_c_check_header_compile () 1826{ 1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1829$as_echo_n "checking for $2... " >&6; } 1830if eval \${$3+:} false; then : 1831 $as_echo_n "(cached) " >&6 1832else 1833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1834/* end confdefs.h. */ 1835$4 1836#include <$2> 1837_ACEOF 1838if ac_fn_c_try_compile "$LINENO"; then : 1839 eval "$3=yes" 1840else 1841 eval "$3=no" 1842fi 1843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1844fi 1845eval ac_res=\$$3 1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1847$as_echo "$ac_res" >&6; } 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 1850} # ac_fn_c_check_header_compile 1851 1852# ac_fn_c_check_func LINENO FUNC VAR 1853# ---------------------------------- 1854# Tests whether FUNC exists, setting the cache variable VAR accordingly 1855ac_fn_c_check_func () 1856{ 1857 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1859$as_echo_n "checking for $2... " >&6; } 1860if eval \${$3+:} false; then : 1861 $as_echo_n "(cached) " >&6 1862else 1863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1864/* end confdefs.h. */ 1865/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1866 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1867#define $2 innocuous_$2 1868 1869/* System header to define __stub macros and hopefully few prototypes, 1870 which can conflict with char $2 (); below. 1871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1872 <limits.h> exists even on freestanding compilers. */ 1873 1874#ifdef __STDC__ 1875# include <limits.h> 1876#else 1877# include <assert.h> 1878#endif 1879 1880#undef $2 1881 1882/* Override any GCC internal prototype to avoid an error. 1883 Use char because int might match the return type of a GCC 1884 builtin and then its argument prototype would still apply. */ 1885#ifdef __cplusplus 1886extern "C" 1887#endif 1888char $2 (); 1889/* The GNU C library defines this for functions which it implements 1890 to always fail with ENOSYS. Some functions are actually named 1891 something starting with __ and the normal name is an alias. */ 1892#if defined __stub_$2 || defined __stub___$2 1893choke me 1894#endif 1895 1896int 1897main () 1898{ 1899return $2 (); 1900 ; 1901 return 0; 1902} 1903_ACEOF 1904if ac_fn_c_try_link "$LINENO"; then : 1905 eval "$3=yes" 1906else 1907 eval "$3=no" 1908fi 1909rm -f core conftest.err conftest.$ac_objext \ 1910 conftest$ac_exeext conftest.$ac_ext 1911fi 1912eval ac_res=\$$3 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1914$as_echo "$ac_res" >&6; } 1915 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1916 1917} # ac_fn_c_check_func 1918 1919# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1920# ------------------------------------------------------- 1921# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1922# the include files in INCLUDES and setting the cache variable VAR 1923# accordingly. 1924ac_fn_c_check_header_mongrel () 1925{ 1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1927 if eval \${$3+:} false; then : 1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1929$as_echo_n "checking for $2... " >&6; } 1930if eval \${$3+:} false; then : 1931 $as_echo_n "(cached) " >&6 1932fi 1933eval ac_res=\$$3 1934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1935$as_echo "$ac_res" >&6; } 1936else 1937 # Is the header compilable? 1938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1939$as_echo_n "checking $2 usability... " >&6; } 1940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1941/* end confdefs.h. */ 1942$4 1943#include <$2> 1944_ACEOF 1945if ac_fn_c_try_compile "$LINENO"; then : 1946 ac_header_compiler=yes 1947else 1948 ac_header_compiler=no 1949fi 1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1952$as_echo "$ac_header_compiler" >&6; } 1953 1954# Is the header present? 1955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1956$as_echo_n "checking $2 presence... " >&6; } 1957cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1958/* end confdefs.h. */ 1959#include <$2> 1960_ACEOF 1961if ac_fn_c_try_cpp "$LINENO"; then : 1962 ac_header_preproc=yes 1963else 1964 ac_header_preproc=no 1965fi 1966rm -f conftest.err conftest.i conftest.$ac_ext 1967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1968$as_echo "$ac_header_preproc" >&6; } 1969 1970# So? What about this header? 1971case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1972 yes:no: ) 1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1974$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1976$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1977 ;; 1978 no:yes:* ) 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1980$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1982$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1984$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1986$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1988$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1989 ;; 1990esac 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1992$as_echo_n "checking for $2... " >&6; } 1993if eval \${$3+:} false; then : 1994 $as_echo_n "(cached) " >&6 1995else 1996 eval "$3=\$ac_header_compiler" 1997fi 1998eval ac_res=\$$3 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2000$as_echo "$ac_res" >&6; } 2001fi 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2003 2004} # ac_fn_c_check_header_mongrel 2005 2006# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2007# -------------------------------------------- 2008# Tries to find the compile-time value of EXPR in a program that includes 2009# INCLUDES, setting VAR accordingly. Returns whether the value could be 2010# computed 2011ac_fn_c_compute_int () 2012{ 2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2014 if test "$cross_compiling" = yes; then 2015 # Depending upon the size, compute the lo and hi bounds. 2016cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2017/* end confdefs.h. */ 2018$4 2019int 2020main () 2021{ 2022static int test_array [1 - 2 * !(($2) >= 0)]; 2023test_array [0] = 0; 2024return test_array [0]; 2025 2026 ; 2027 return 0; 2028} 2029_ACEOF 2030if ac_fn_c_try_compile "$LINENO"; then : 2031 ac_lo=0 ac_mid=0 2032 while :; do 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036int 2037main () 2038{ 2039static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2040test_array [0] = 0; 2041return test_array [0]; 2042 2043 ; 2044 return 0; 2045} 2046_ACEOF 2047if ac_fn_c_try_compile "$LINENO"; then : 2048 ac_hi=$ac_mid; break 2049else 2050 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2051 if test $ac_lo -le $ac_mid; then 2052 ac_lo= ac_hi= 2053 break 2054 fi 2055 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2056fi 2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2058 done 2059else 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062$4 2063int 2064main () 2065{ 2066static int test_array [1 - 2 * !(($2) < 0)]; 2067test_array [0] = 0; 2068return test_array [0]; 2069 2070 ; 2071 return 0; 2072} 2073_ACEOF 2074if ac_fn_c_try_compile "$LINENO"; then : 2075 ac_hi=-1 ac_mid=-1 2076 while :; do 2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2078/* end confdefs.h. */ 2079$4 2080int 2081main () 2082{ 2083static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2084test_array [0] = 0; 2085return test_array [0]; 2086 2087 ; 2088 return 0; 2089} 2090_ACEOF 2091if ac_fn_c_try_compile "$LINENO"; then : 2092 ac_lo=$ac_mid; break 2093else 2094 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2095 if test $ac_mid -le $ac_hi; then 2096 ac_lo= ac_hi= 2097 break 2098 fi 2099 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2100fi 2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2102 done 2103else 2104 ac_lo= ac_hi= 2105fi 2106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2107fi 2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2109# Binary search between lo and hi bounds. 2110while test "x$ac_lo" != "x$ac_hi"; do 2111 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2113/* end confdefs.h. */ 2114$4 2115int 2116main () 2117{ 2118static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2119test_array [0] = 0; 2120return test_array [0]; 2121 2122 ; 2123 return 0; 2124} 2125_ACEOF 2126if ac_fn_c_try_compile "$LINENO"; then : 2127 ac_hi=$ac_mid 2128else 2129 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2130fi 2131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2132done 2133case $ac_lo in #(( 2134?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2135'') ac_retval=1 ;; 2136esac 2137 else 2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2139/* end confdefs.h. */ 2140$4 2141static long int longval () { return $2; } 2142static unsigned long int ulongval () { return $2; } 2143#include <stdio.h> 2144#include <stdlib.h> 2145int 2146main () 2147{ 2148 2149 FILE *f = fopen ("conftest.val", "w"); 2150 if (! f) 2151 return 1; 2152 if (($2) < 0) 2153 { 2154 long int i = longval (); 2155 if (i != ($2)) 2156 return 1; 2157 fprintf (f, "%ld", i); 2158 } 2159 else 2160 { 2161 unsigned long int i = ulongval (); 2162 if (i != ($2)) 2163 return 1; 2164 fprintf (f, "%lu", i); 2165 } 2166 /* Do not output a trailing newline, as this causes \r\n confusion 2167 on some platforms. */ 2168 return ferror (f) || fclose (f) != 0; 2169 2170 ; 2171 return 0; 2172} 2173_ACEOF 2174if ac_fn_c_try_run "$LINENO"; then : 2175 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2176else 2177 ac_retval=1 2178fi 2179rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2180 conftest.$ac_objext conftest.beam conftest.$ac_ext 2181rm -f conftest.val 2182 2183 fi 2184 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2185 as_fn_set_status $ac_retval 2186 2187} # ac_fn_c_compute_int 2188cat >config.log <<_ACEOF 2189This file contains any messages produced by compilers while 2190running configure, to aid debugging if configure makes a mistake. 2191 2192It was created by nightfall $as_me 1.92, which was 2193generated by GNU Autoconf 2.69. Invocation command line was 2194 2195 $ $0 $@ 2196 2197_ACEOF 2198exec 5>>config.log 2199{ 2200cat <<_ASUNAME 2201## --------- ## 2202## Platform. ## 2203## --------- ## 2204 2205hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2206uname -m = `(uname -m) 2>/dev/null || echo unknown` 2207uname -r = `(uname -r) 2>/dev/null || echo unknown` 2208uname -s = `(uname -s) 2>/dev/null || echo unknown` 2209uname -v = `(uname -v) 2>/dev/null || echo unknown` 2210 2211/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2212/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2213 2214/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2215/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2216/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2217/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2218/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2219/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2220/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2221 2222_ASUNAME 2223 2224as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2225for as_dir in $PATH 2226do 2227 IFS=$as_save_IFS 2228 test -z "$as_dir" && as_dir=. 2229 $as_echo "PATH: $as_dir" 2230 done 2231IFS=$as_save_IFS 2232 2233} >&5 2234 2235cat >&5 <<_ACEOF 2236 2237 2238## ----------- ## 2239## Core tests. ## 2240## ----------- ## 2241 2242_ACEOF 2243 2244 2245# Keep a trace of the command line. 2246# Strip out --no-create and --no-recursion so they do not pile up. 2247# Strip out --silent because we don't want to record it for future runs. 2248# Also quote any args containing shell meta-characters. 2249# Make two passes to allow for proper duplicate-argument suppression. 2250ac_configure_args= 2251ac_configure_args0= 2252ac_configure_args1= 2253ac_must_keep_next=false 2254for ac_pass in 1 2 2255do 2256 for ac_arg 2257 do 2258 case $ac_arg in 2259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2261 | -silent | --silent | --silen | --sile | --sil) 2262 continue ;; 2263 *\'*) 2264 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2265 esac 2266 case $ac_pass in 2267 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2268 2) 2269 as_fn_append ac_configure_args1 " '$ac_arg'" 2270 if test $ac_must_keep_next = true; then 2271 ac_must_keep_next=false # Got value, back to normal. 2272 else 2273 case $ac_arg in 2274 *=* | --config-cache | -C | -disable-* | --disable-* \ 2275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2277 | -with-* | --with-* | -without-* | --without-* | --x) 2278 case "$ac_configure_args0 " in 2279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2280 esac 2281 ;; 2282 -* ) ac_must_keep_next=true ;; 2283 esac 2284 fi 2285 as_fn_append ac_configure_args " '$ac_arg'" 2286 ;; 2287 esac 2288 done 2289done 2290{ ac_configure_args0=; unset ac_configure_args0;} 2291{ ac_configure_args1=; unset ac_configure_args1;} 2292 2293# When interrupted or exit'd, cleanup temporary files, and complete 2294# config.log. We remove comments because anyway the quotes in there 2295# would cause problems or look ugly. 2296# WARNING: Use '\'' to represent an apostrophe within the trap. 2297# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2298trap 'exit_status=$? 2299 # Save into config.log some information that might help in debugging. 2300 { 2301 echo 2302 2303 $as_echo "## ---------------- ## 2304## Cache variables. ## 2305## ---------------- ##" 2306 echo 2307 # The following way of writing the cache mishandles newlines in values, 2308( 2309 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2310 eval ac_val=\$$ac_var 2311 case $ac_val in #( 2312 *${as_nl}*) 2313 case $ac_var in #( 2314 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2315$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2316 esac 2317 case $ac_var in #( 2318 _ | IFS | as_nl) ;; #( 2319 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2320 *) { eval $ac_var=; unset $ac_var;} ;; 2321 esac ;; 2322 esac 2323 done 2324 (set) 2>&1 | 2325 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2326 *${as_nl}ac_space=\ *) 2327 sed -n \ 2328 "s/'\''/'\''\\\\'\'''\''/g; 2329 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2330 ;; #( 2331 *) 2332 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2333 ;; 2334 esac | 2335 sort 2336) 2337 echo 2338 2339 $as_echo "## ----------------- ## 2340## Output variables. ## 2341## ----------------- ##" 2342 echo 2343 for ac_var in $ac_subst_vars 2344 do 2345 eval ac_val=\$$ac_var 2346 case $ac_val in 2347 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2348 esac 2349 $as_echo "$ac_var='\''$ac_val'\''" 2350 done | sort 2351 echo 2352 2353 if test -n "$ac_subst_files"; then 2354 $as_echo "## ------------------- ## 2355## File substitutions. ## 2356## ------------------- ##" 2357 echo 2358 for ac_var in $ac_subst_files 2359 do 2360 eval ac_val=\$$ac_var 2361 case $ac_val in 2362 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2363 esac 2364 $as_echo "$ac_var='\''$ac_val'\''" 2365 done | sort 2366 echo 2367 fi 2368 2369 if test -s confdefs.h; then 2370 $as_echo "## ----------- ## 2371## confdefs.h. ## 2372## ----------- ##" 2373 echo 2374 cat confdefs.h 2375 echo 2376 fi 2377 test "$ac_signal" != 0 && 2378 $as_echo "$as_me: caught signal $ac_signal" 2379 $as_echo "$as_me: exit $exit_status" 2380 } >&5 2381 rm -f core *.core core.conftest.* && 2382 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2383 exit $exit_status 2384' 0 2385for ac_signal in 1 2 13 15; do 2386 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2387done 2388ac_signal=0 2389 2390# confdefs.h avoids OS command line length limits that DEFS can exceed. 2391rm -f -r conftest* confdefs.h 2392 2393$as_echo "/* confdefs.h */" > confdefs.h 2394 2395# Predefined preprocessor variables. 2396 2397cat >>confdefs.h <<_ACEOF 2398#define PACKAGE_NAME "$PACKAGE_NAME" 2399_ACEOF 2400 2401cat >>confdefs.h <<_ACEOF 2402#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2403_ACEOF 2404 2405cat >>confdefs.h <<_ACEOF 2406#define PACKAGE_VERSION "$PACKAGE_VERSION" 2407_ACEOF 2408 2409cat >>confdefs.h <<_ACEOF 2410#define PACKAGE_STRING "$PACKAGE_STRING" 2411_ACEOF 2412 2413cat >>confdefs.h <<_ACEOF 2414#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2415_ACEOF 2416 2417cat >>confdefs.h <<_ACEOF 2418#define PACKAGE_URL "$PACKAGE_URL" 2419_ACEOF 2420 2421 2422# Let the site file select an alternate cache file if it wants to. 2423# Prefer an explicitly selected file to automatically selected ones. 2424ac_site_file1=NONE 2425ac_site_file2=NONE 2426if test -n "$CONFIG_SITE"; then 2427 # We do not want a PATH search for config.site. 2428 case $CONFIG_SITE in #(( 2429 -*) ac_site_file1=./$CONFIG_SITE;; 2430 */*) ac_site_file1=$CONFIG_SITE;; 2431 *) ac_site_file1=./$CONFIG_SITE;; 2432 esac 2433elif test "x$prefix" != xNONE; then 2434 ac_site_file1=$prefix/share/config.site 2435 ac_site_file2=$prefix/etc/config.site 2436else 2437 ac_site_file1=$ac_default_prefix/share/config.site 2438 ac_site_file2=$ac_default_prefix/etc/config.site 2439fi 2440for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2441do 2442 test "x$ac_site_file" = xNONE && continue 2443 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2445$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2446 sed 's/^/| /' "$ac_site_file" >&5 2447 . "$ac_site_file" \ 2448 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2450as_fn_error $? "failed to load site script $ac_site_file 2451See \`config.log' for more details" "$LINENO" 5; } 2452 fi 2453done 2454 2455if test -r "$cache_file"; then 2456 # Some versions of bash will fail to source /dev/null (special files 2457 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2458 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2459 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2460$as_echo "$as_me: loading cache $cache_file" >&6;} 2461 case $cache_file in 2462 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2463 *) . "./$cache_file";; 2464 esac 2465 fi 2466else 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2468$as_echo "$as_me: creating cache $cache_file" >&6;} 2469 >$cache_file 2470fi 2471 2472as_fn_append ac_header_list " stdlib.h" 2473as_fn_append ac_header_list " unistd.h" 2474as_fn_append ac_header_list " sys/param.h" 2475# Check that the precious variables saved in the cache have kept the same 2476# value. 2477ac_cache_corrupted=false 2478for ac_var in $ac_precious_vars; do 2479 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2480 eval ac_new_set=\$ac_env_${ac_var}_set 2481 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2482 eval ac_new_val=\$ac_env_${ac_var}_value 2483 case $ac_old_set,$ac_new_set in 2484 set,) 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2486$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2487 ac_cache_corrupted=: ;; 2488 ,set) 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2490$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2491 ac_cache_corrupted=: ;; 2492 ,);; 2493 *) 2494 if test "x$ac_old_val" != "x$ac_new_val"; then 2495 # differences in whitespace do not lead to failure. 2496 ac_old_val_w=`echo x $ac_old_val` 2497 ac_new_val_w=`echo x $ac_new_val` 2498 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2499 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2500$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2501 ac_cache_corrupted=: 2502 else 2503 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2504$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2505 eval $ac_var=\$ac_old_val 2506 fi 2507 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2508$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2509 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2510$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2511 fi;; 2512 esac 2513 # Pass precious variables to config.status. 2514 if test "$ac_new_set" = set; then 2515 case $ac_new_val in 2516 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2517 *) ac_arg=$ac_var=$ac_new_val ;; 2518 esac 2519 case " $ac_configure_args " in 2520 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2521 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2522 esac 2523 fi 2524done 2525if $ac_cache_corrupted; then 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2527$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2528 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2529$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2530 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2531fi 2532## -------------------- ## 2533## Main body of script. ## 2534## -------------------- ## 2535 2536ac_ext=c 2537ac_cpp='$CPP $CPPFLAGS' 2538ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2539ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2540ac_compiler_gnu=$ac_cv_c_compiler_gnu 2541 2542 2543 2544ac_aux_dir= 2545for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2546 if test -f "$ac_dir/install-sh"; then 2547 ac_aux_dir=$ac_dir 2548 ac_install_sh="$ac_aux_dir/install-sh -c" 2549 break 2550 elif test -f "$ac_dir/install.sh"; then 2551 ac_aux_dir=$ac_dir 2552 ac_install_sh="$ac_aux_dir/install.sh -c" 2553 break 2554 elif test -f "$ac_dir/shtool"; then 2555 ac_aux_dir=$ac_dir 2556 ac_install_sh="$ac_aux_dir/shtool install -c" 2557 break 2558 fi 2559done 2560if test -z "$ac_aux_dir"; then 2561 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2562fi 2563 2564# These three variables are undocumented and unsupported, 2565# and are intended to be withdrawn in a future Autoconf release. 2566# They can cause serious problems if a builder's source tree is in a directory 2567# whose full name contains unusual characters. 2568ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2569ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2570ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2571 2572 2573# Find a good install program. We prefer a C program (faster), 2574# so one script is as good as another. But avoid the broken or 2575# incompatible versions: 2576# SysV /etc/install, /usr/sbin/install 2577# SunOS /usr/etc/install 2578# IRIX /sbin/install 2579# AIX /bin/install 2580# AmigaOS /C/install, which installs bootblocks on floppy discs 2581# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2582# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2583# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2584# OS/2's system install, which has a completely different semantic 2585# ./install, which can be erroneously created by make from ./install.sh. 2586# Reject install programs that cannot install multiple files. 2587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2588$as_echo_n "checking for a BSD-compatible install... " >&6; } 2589if test -z "$INSTALL"; then 2590if ${ac_cv_path_install+:} false; then : 2591 $as_echo_n "(cached) " >&6 2592else 2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2594for as_dir in $PATH 2595do 2596 IFS=$as_save_IFS 2597 test -z "$as_dir" && as_dir=. 2598 # Account for people who put trailing slashes in PATH elements. 2599case $as_dir/ in #(( 2600 ./ | .// | /[cC]/* | \ 2601 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2602 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2603 /usr/ucb/* ) ;; 2604 *) 2605 # OSF1 and SCO ODT 3.0 have their own names for install. 2606 # Don't use installbsd from OSF since it installs stuff as root 2607 # by default. 2608 for ac_prog in ginstall scoinst install; do 2609 for ac_exec_ext in '' $ac_executable_extensions; do 2610 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2611 if test $ac_prog = install && 2612 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2613 # AIX install. It has an incompatible calling convention. 2614 : 2615 elif test $ac_prog = install && 2616 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2617 # program-specific install script used by HP pwplus--don't use. 2618 : 2619 else 2620 rm -rf conftest.one conftest.two conftest.dir 2621 echo one > conftest.one 2622 echo two > conftest.two 2623 mkdir conftest.dir 2624 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2625 test -s conftest.one && test -s conftest.two && 2626 test -s conftest.dir/conftest.one && 2627 test -s conftest.dir/conftest.two 2628 then 2629 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2630 break 3 2631 fi 2632 fi 2633 fi 2634 done 2635 done 2636 ;; 2637esac 2638 2639 done 2640IFS=$as_save_IFS 2641 2642rm -rf conftest.one conftest.two conftest.dir 2643 2644fi 2645 if test "${ac_cv_path_install+set}" = set; then 2646 INSTALL=$ac_cv_path_install 2647 else 2648 # As a last resort, use the slow shell script. Don't cache a 2649 # value for INSTALL within a source directory, because that will 2650 # break other packages using the cache if that directory is 2651 # removed, or if the value is a relative name. 2652 INSTALL=$ac_install_sh 2653 fi 2654fi 2655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2656$as_echo "$INSTALL" >&6; } 2657 2658# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2659# It thinks the first close brace ends the variable substitution. 2660test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2661 2662test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2663 2664test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2665 2666 2667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2668$as_echo_n "checking whether build environment is sane... " >&6; } 2669# Just in case 2670sleep 1 2671echo timestamp > conftestfile 2672# Do `set' in a subshell so we don't clobber the current shell's 2673# arguments. Must try -L first in case configure is actually a 2674# symlink; some systems play weird games with the mod time of symlinks 2675# (eg FreeBSD returns the mod time of the symlink's containing 2676# directory). 2677if ( 2678 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null` 2679 if test "$*" = "X"; then 2680 # -L didn't work. 2681 set X `ls -t $srcdir/configure conftestfile` 2682 fi 2683 if test "$*" != "X $srcdir/configure conftestfile" \ 2684 && test "$*" != "X conftestfile $srcdir/configure"; then 2685 2686 # If neither matched, then we have a broken ls. This can happen 2687 # if, for instance, CONFIG_SHELL is bash and it inherits a 2688 # broken ls alias from the environment. This has actually 2689 # happened. Such a system could not be considered "sane". 2690 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2691alias in your environment" "$LINENO" 5 2692 fi 2693 2694 test "$2" = conftestfile 2695 ) 2696then 2697 # Ok. 2698 : 2699else 2700 as_fn_error $? "newly created file is older than distributed files! 2701Check your system clock" "$LINENO" 5 2702fi 2703rm -f conftest* 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2705$as_echo "yes" >&6; } 2706test "$program_prefix" != NONE && 2707 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2708# Use a double $ so make ignores it. 2709test "$program_suffix" != NONE && 2710 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2711# Double any \ or $. 2712# By default was `s,x,x', remove it if useless. 2713ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2714program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2715 2716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2717$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2718set x ${MAKE-make} 2719ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2720if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2721 $as_echo_n "(cached) " >&6 2722else 2723 cat >conftest.make <<\_ACEOF 2724SHELL = /bin/sh 2725all: 2726 @echo '@@@%%%=$(MAKE)=@@@%%%' 2727_ACEOF 2728# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2729case `${MAKE-make} -f conftest.make 2>/dev/null` in 2730 *@@@%%%=?*=@@@%%%*) 2731 eval ac_cv_prog_make_${ac_make}_set=yes;; 2732 *) 2733 eval ac_cv_prog_make_${ac_make}_set=no;; 2734esac 2735rm -f conftest.make 2736fi 2737if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2739$as_echo "yes" >&6; } 2740 SET_MAKE= 2741else 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2743$as_echo "no" >&6; } 2744 SET_MAKE="MAKE=${MAKE-make}" 2745fi 2746 2747 2748PACKAGE=nightfall 2749 2750VERSION=1.92 2751 2752if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then 2753 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2754fi 2755 2756cat >>confdefs.h <<_ACEOF 2757#define PACKAGE "$PACKAGE" 2758_ACEOF 2759 2760 2761cat >>confdefs.h <<_ACEOF 2762#define VERSION "$VERSION" 2763_ACEOF 2764 2765 2766 2767missing_dir=`cd $ac_aux_dir && pwd` 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working aclocal" >&5 2769$as_echo_n "checking for working aclocal... " >&6; } 2770# Run test in a subshell; some versions of sh will print an error if 2771# an executable is not found, even if stderr is redirected. 2772# Redirect stdin to placate older versions of autoconf. Sigh. 2773if (aclocal --version) < /dev/null > /dev/null 2>&1; then 2774 ACLOCAL=aclocal 2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 2776$as_echo "found" >&6; } 2777else 2778 ACLOCAL="$missing_dir/missing aclocal" 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 2780$as_echo "missing" >&6; } 2781fi 2782 2783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoconf" >&5 2784$as_echo_n "checking for working autoconf... " >&6; } 2785# Run test in a subshell; some versions of sh will print an error if 2786# an executable is not found, even if stderr is redirected. 2787# Redirect stdin to placate older versions of autoconf. Sigh. 2788if (autoconf --version) < /dev/null > /dev/null 2>&1; then 2789 AUTOCONF=autoconf 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 2791$as_echo "found" >&6; } 2792else 2793 AUTOCONF="$missing_dir/missing autoconf" 2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 2795$as_echo "missing" >&6; } 2796fi 2797 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working automake" >&5 2799$as_echo_n "checking for working automake... " >&6; } 2800# Run test in a subshell; some versions of sh will print an error if 2801# an executable is not found, even if stderr is redirected. 2802# Redirect stdin to placate older versions of autoconf. Sigh. 2803if (automake --version) < /dev/null > /dev/null 2>&1; then 2804 AUTOMAKE=automake 2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 2806$as_echo "found" >&6; } 2807else 2808 AUTOMAKE="$missing_dir/missing automake" 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 2810$as_echo "missing" >&6; } 2811fi 2812 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working autoheader" >&5 2814$as_echo_n "checking for working autoheader... " >&6; } 2815# Run test in a subshell; some versions of sh will print an error if 2816# an executable is not found, even if stderr is redirected. 2817# Redirect stdin to placate older versions of autoconf. Sigh. 2818if (autoheader --version) < /dev/null > /dev/null 2>&1; then 2819 AUTOHEADER=autoheader 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 2821$as_echo "found" >&6; } 2822else 2823 AUTOHEADER="$missing_dir/missing autoheader" 2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 2825$as_echo "missing" >&6; } 2826fi 2827 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working makeinfo" >&5 2829$as_echo_n "checking for working makeinfo... " >&6; } 2830# Run test in a subshell; some versions of sh will print an error if 2831# an executable is not found, even if stderr is redirected. 2832# Redirect stdin to placate older versions of autoconf. Sigh. 2833if (makeinfo --version) < /dev/null > /dev/null 2>&1; then 2834 MAKEINFO=makeinfo 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5 2836$as_echo "found" >&6; } 2837else 2838 MAKEINFO="$missing_dir/missing makeinfo" 2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: missing" >&5 2840$as_echo "missing" >&6; } 2841fi 2842 2843 2844 2845ac_ext=c 2846ac_cpp='$CPP $CPPFLAGS' 2847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2849ac_compiler_gnu=$ac_cv_c_compiler_gnu 2850if test -n "$ac_tool_prefix"; then 2851 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2852set dummy ${ac_tool_prefix}gcc; ac_word=$2 2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2854$as_echo_n "checking for $ac_word... " >&6; } 2855if ${ac_cv_prog_CC+:} false; then : 2856 $as_echo_n "(cached) " >&6 2857else 2858 if test -n "$CC"; then 2859 ac_cv_prog_CC="$CC" # Let the user override the test. 2860else 2861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2862for as_dir in $PATH 2863do 2864 IFS=$as_save_IFS 2865 test -z "$as_dir" && as_dir=. 2866 for ac_exec_ext in '' $ac_executable_extensions; do 2867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2868 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2870 break 2 2871 fi 2872done 2873 done 2874IFS=$as_save_IFS 2875 2876fi 2877fi 2878CC=$ac_cv_prog_CC 2879if test -n "$CC"; then 2880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2881$as_echo "$CC" >&6; } 2882else 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2884$as_echo "no" >&6; } 2885fi 2886 2887 2888fi 2889if test -z "$ac_cv_prog_CC"; then 2890 ac_ct_CC=$CC 2891 # Extract the first word of "gcc", so it can be a program name with args. 2892set dummy gcc; ac_word=$2 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2894$as_echo_n "checking for $ac_word... " >&6; } 2895if ${ac_cv_prog_ac_ct_CC+:} false; then : 2896 $as_echo_n "(cached) " >&6 2897else 2898 if test -n "$ac_ct_CC"; then 2899 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2900else 2901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2902for as_dir in $PATH 2903do 2904 IFS=$as_save_IFS 2905 test -z "$as_dir" && as_dir=. 2906 for ac_exec_ext in '' $ac_executable_extensions; do 2907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2908 ac_cv_prog_ac_ct_CC="gcc" 2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2910 break 2 2911 fi 2912done 2913 done 2914IFS=$as_save_IFS 2915 2916fi 2917fi 2918ac_ct_CC=$ac_cv_prog_ac_ct_CC 2919if test -n "$ac_ct_CC"; then 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2921$as_echo "$ac_ct_CC" >&6; } 2922else 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2924$as_echo "no" >&6; } 2925fi 2926 2927 if test "x$ac_ct_CC" = x; then 2928 CC="" 2929 else 2930 case $cross_compiling:$ac_tool_warned in 2931yes:) 2932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2934ac_tool_warned=yes ;; 2935esac 2936 CC=$ac_ct_CC 2937 fi 2938else 2939 CC="$ac_cv_prog_CC" 2940fi 2941 2942if test -z "$CC"; then 2943 if test -n "$ac_tool_prefix"; then 2944 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2945set dummy ${ac_tool_prefix}cc; ac_word=$2 2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2947$as_echo_n "checking for $ac_word... " >&6; } 2948if ${ac_cv_prog_CC+:} false; then : 2949 $as_echo_n "(cached) " >&6 2950else 2951 if test -n "$CC"; then 2952 ac_cv_prog_CC="$CC" # Let the user override the test. 2953else 2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2955for as_dir in $PATH 2956do 2957 IFS=$as_save_IFS 2958 test -z "$as_dir" && as_dir=. 2959 for ac_exec_ext in '' $ac_executable_extensions; do 2960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2961 ac_cv_prog_CC="${ac_tool_prefix}cc" 2962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2963 break 2 2964 fi 2965done 2966 done 2967IFS=$as_save_IFS 2968 2969fi 2970fi 2971CC=$ac_cv_prog_CC 2972if test -n "$CC"; then 2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2974$as_echo "$CC" >&6; } 2975else 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2977$as_echo "no" >&6; } 2978fi 2979 2980 2981 fi 2982fi 2983if test -z "$CC"; then 2984 # Extract the first word of "cc", so it can be a program name with args. 2985set dummy cc; ac_word=$2 2986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2987$as_echo_n "checking for $ac_word... " >&6; } 2988if ${ac_cv_prog_CC+:} false; then : 2989 $as_echo_n "(cached) " >&6 2990else 2991 if test -n "$CC"; then 2992 ac_cv_prog_CC="$CC" # Let the user override the test. 2993else 2994 ac_prog_rejected=no 2995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2996for as_dir in $PATH 2997do 2998 IFS=$as_save_IFS 2999 test -z "$as_dir" && as_dir=. 3000 for ac_exec_ext in '' $ac_executable_extensions; do 3001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3002 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3003 ac_prog_rejected=yes 3004 continue 3005 fi 3006 ac_cv_prog_CC="cc" 3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3008 break 2 3009 fi 3010done 3011 done 3012IFS=$as_save_IFS 3013 3014if test $ac_prog_rejected = yes; then 3015 # We found a bogon in the path, so make sure we never use it. 3016 set dummy $ac_cv_prog_CC 3017 shift 3018 if test $# != 0; then 3019 # We chose a different compiler from the bogus one. 3020 # However, it has the same basename, so the bogon will be chosen 3021 # first if we set CC to just the basename; use the full file name. 3022 shift 3023 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3024 fi 3025fi 3026fi 3027fi 3028CC=$ac_cv_prog_CC 3029if test -n "$CC"; then 3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3031$as_echo "$CC" >&6; } 3032else 3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3034$as_echo "no" >&6; } 3035fi 3036 3037 3038fi 3039if test -z "$CC"; then 3040 if test -n "$ac_tool_prefix"; then 3041 for ac_prog in cl.exe 3042 do 3043 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3044set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3046$as_echo_n "checking for $ac_word... " >&6; } 3047if ${ac_cv_prog_CC+:} false; then : 3048 $as_echo_n "(cached) " >&6 3049else 3050 if test -n "$CC"; then 3051 ac_cv_prog_CC="$CC" # Let the user override the test. 3052else 3053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3054for as_dir in $PATH 3055do 3056 IFS=$as_save_IFS 3057 test -z "$as_dir" && as_dir=. 3058 for ac_exec_ext in '' $ac_executable_extensions; do 3059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3060 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3062 break 2 3063 fi 3064done 3065 done 3066IFS=$as_save_IFS 3067 3068fi 3069fi 3070CC=$ac_cv_prog_CC 3071if test -n "$CC"; then 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3073$as_echo "$CC" >&6; } 3074else 3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3076$as_echo "no" >&6; } 3077fi 3078 3079 3080 test -n "$CC" && break 3081 done 3082fi 3083if test -z "$CC"; then 3084 ac_ct_CC=$CC 3085 for ac_prog in cl.exe 3086do 3087 # Extract the first word of "$ac_prog", so it can be a program name with args. 3088set dummy $ac_prog; ac_word=$2 3089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3090$as_echo_n "checking for $ac_word... " >&6; } 3091if ${ac_cv_prog_ac_ct_CC+:} false; then : 3092 $as_echo_n "(cached) " >&6 3093else 3094 if test -n "$ac_ct_CC"; then 3095 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3096else 3097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3098for as_dir in $PATH 3099do 3100 IFS=$as_save_IFS 3101 test -z "$as_dir" && as_dir=. 3102 for ac_exec_ext in '' $ac_executable_extensions; do 3103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3104 ac_cv_prog_ac_ct_CC="$ac_prog" 3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3106 break 2 3107 fi 3108done 3109 done 3110IFS=$as_save_IFS 3111 3112fi 3113fi 3114ac_ct_CC=$ac_cv_prog_ac_ct_CC 3115if test -n "$ac_ct_CC"; then 3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3117$as_echo "$ac_ct_CC" >&6; } 3118else 3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3120$as_echo "no" >&6; } 3121fi 3122 3123 3124 test -n "$ac_ct_CC" && break 3125done 3126 3127 if test "x$ac_ct_CC" = x; then 3128 CC="" 3129 else 3130 case $cross_compiling:$ac_tool_warned in 3131yes:) 3132{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3134ac_tool_warned=yes ;; 3135esac 3136 CC=$ac_ct_CC 3137 fi 3138fi 3139 3140fi 3141 3142 3143test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3144$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3145as_fn_error $? "no acceptable C compiler found in \$PATH 3146See \`config.log' for more details" "$LINENO" 5; } 3147 3148# Provide some information about the compiler. 3149$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3150set X $ac_compile 3151ac_compiler=$2 3152for ac_option in --version -v -V -qversion; do 3153 { { ac_try="$ac_compiler $ac_option >&5" 3154case "(($ac_try" in 3155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3156 *) ac_try_echo=$ac_try;; 3157esac 3158eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3159$as_echo "$ac_try_echo"; } >&5 3160 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3161 ac_status=$? 3162 if test -s conftest.err; then 3163 sed '10a\ 3164... rest of stderr output deleted ... 3165 10q' conftest.err >conftest.er1 3166 cat conftest.er1 >&5 3167 fi 3168 rm -f conftest.er1 conftest.err 3169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3170 test $ac_status = 0; } 3171done 3172 3173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3174/* end confdefs.h. */ 3175 3176int 3177main () 3178{ 3179 3180 ; 3181 return 0; 3182} 3183_ACEOF 3184ac_clean_files_save=$ac_clean_files 3185ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3186# Try to create an executable without -o first, disregard a.out. 3187# It will help us diagnose broken compilers, and finding out an intuition 3188# of exeext. 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3190$as_echo_n "checking whether the C compiler works... " >&6; } 3191ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3192 3193# The possible output files: 3194ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3195 3196ac_rmfiles= 3197for ac_file in $ac_files 3198do 3199 case $ac_file in 3200 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3201 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3202 esac 3203done 3204rm -f $ac_rmfiles 3205 3206if { { ac_try="$ac_link_default" 3207case "(($ac_try" in 3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3209 *) ac_try_echo=$ac_try;; 3210esac 3211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3212$as_echo "$ac_try_echo"; } >&5 3213 (eval "$ac_link_default") 2>&5 3214 ac_status=$? 3215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3216 test $ac_status = 0; }; then : 3217 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3218# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3219# in a Makefile. We should not override ac_cv_exeext if it was cached, 3220# so that the user can short-circuit this test for compilers unknown to 3221# Autoconf. 3222for ac_file in $ac_files '' 3223do 3224 test -f "$ac_file" || continue 3225 case $ac_file in 3226 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3227 ;; 3228 [ab].out ) 3229 # We found the default executable, but exeext='' is most 3230 # certainly right. 3231 break;; 3232 *.* ) 3233 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3234 then :; else 3235 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3236 fi 3237 # We set ac_cv_exeext here because the later test for it is not 3238 # safe: cross compilers may not add the suffix if given an `-o' 3239 # argument, so we may need to know it at that point already. 3240 # Even if this section looks crufty: it has the advantage of 3241 # actually working. 3242 break;; 3243 * ) 3244 break;; 3245 esac 3246done 3247test "$ac_cv_exeext" = no && ac_cv_exeext= 3248 3249else 3250 ac_file='' 3251fi 3252if test -z "$ac_file"; then : 3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3254$as_echo "no" >&6; } 3255$as_echo "$as_me: failed program was:" >&5 3256sed 's/^/| /' conftest.$ac_ext >&5 3257 3258{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3260as_fn_error 77 "C compiler cannot create executables 3261See \`config.log' for more details" "$LINENO" 5; } 3262else 3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3264$as_echo "yes" >&6; } 3265fi 3266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3267$as_echo_n "checking for C compiler default output file name... " >&6; } 3268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3269$as_echo "$ac_file" >&6; } 3270ac_exeext=$ac_cv_exeext 3271 3272rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3273ac_clean_files=$ac_clean_files_save 3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3275$as_echo_n "checking for suffix of executables... " >&6; } 3276if { { ac_try="$ac_link" 3277case "(($ac_try" in 3278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3279 *) ac_try_echo=$ac_try;; 3280esac 3281eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3282$as_echo "$ac_try_echo"; } >&5 3283 (eval "$ac_link") 2>&5 3284 ac_status=$? 3285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3286 test $ac_status = 0; }; then : 3287 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3288# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3289# work properly (i.e., refer to `conftest.exe'), while it won't with 3290# `rm'. 3291for ac_file in conftest.exe conftest conftest.*; do 3292 test -f "$ac_file" || continue 3293 case $ac_file in 3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3295 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3296 break;; 3297 * ) break;; 3298 esac 3299done 3300else 3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3302$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3303as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3304See \`config.log' for more details" "$LINENO" 5; } 3305fi 3306rm -f conftest conftest$ac_cv_exeext 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3308$as_echo "$ac_cv_exeext" >&6; } 3309 3310rm -f conftest.$ac_ext 3311EXEEXT=$ac_cv_exeext 3312ac_exeext=$EXEEXT 3313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3314/* end confdefs.h. */ 3315#include <stdio.h> 3316int 3317main () 3318{ 3319FILE *f = fopen ("conftest.out", "w"); 3320 return ferror (f) || fclose (f) != 0; 3321 3322 ; 3323 return 0; 3324} 3325_ACEOF 3326ac_clean_files="$ac_clean_files conftest.out" 3327# Check that the compiler produces executables we can run. If not, either 3328# the compiler is broken, or we cross compile. 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3330$as_echo_n "checking whether we are cross compiling... " >&6; } 3331if test "$cross_compiling" != yes; then 3332 { { ac_try="$ac_link" 3333case "(($ac_try" in 3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3335 *) ac_try_echo=$ac_try;; 3336esac 3337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3338$as_echo "$ac_try_echo"; } >&5 3339 (eval "$ac_link") 2>&5 3340 ac_status=$? 3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3342 test $ac_status = 0; } 3343 if { ac_try='./conftest$ac_cv_exeext' 3344 { { case "(($ac_try" in 3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3346 *) ac_try_echo=$ac_try;; 3347esac 3348eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3349$as_echo "$ac_try_echo"; } >&5 3350 (eval "$ac_try") 2>&5 3351 ac_status=$? 3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3353 test $ac_status = 0; }; }; then 3354 cross_compiling=no 3355 else 3356 if test "$cross_compiling" = maybe; then 3357 cross_compiling=yes 3358 else 3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3361as_fn_error $? "cannot run C compiled programs. 3362If you meant to cross compile, use \`--host'. 3363See \`config.log' for more details" "$LINENO" 5; } 3364 fi 3365 fi 3366fi 3367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3368$as_echo "$cross_compiling" >&6; } 3369 3370rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3371ac_clean_files=$ac_clean_files_save 3372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3373$as_echo_n "checking for suffix of object files... " >&6; } 3374if ${ac_cv_objext+:} false; then : 3375 $as_echo_n "(cached) " >&6 3376else 3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3378/* end confdefs.h. */ 3379 3380int 3381main () 3382{ 3383 3384 ; 3385 return 0; 3386} 3387_ACEOF 3388rm -f conftest.o conftest.obj 3389if { { ac_try="$ac_compile" 3390case "(($ac_try" in 3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3392 *) ac_try_echo=$ac_try;; 3393esac 3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3395$as_echo "$ac_try_echo"; } >&5 3396 (eval "$ac_compile") 2>&5 3397 ac_status=$? 3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3399 test $ac_status = 0; }; then : 3400 for ac_file in conftest.o conftest.obj conftest.*; do 3401 test -f "$ac_file" || continue; 3402 case $ac_file in 3403 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3404 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3405 break;; 3406 esac 3407done 3408else 3409 $as_echo "$as_me: failed program was:" >&5 3410sed 's/^/| /' conftest.$ac_ext >&5 3411 3412{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3414as_fn_error $? "cannot compute suffix of object files: cannot compile 3415See \`config.log' for more details" "$LINENO" 5; } 3416fi 3417rm -f conftest.$ac_cv_objext conftest.$ac_ext 3418fi 3419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3420$as_echo "$ac_cv_objext" >&6; } 3421OBJEXT=$ac_cv_objext 3422ac_objext=$OBJEXT 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3424$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3425if ${ac_cv_c_compiler_gnu+:} false; then : 3426 $as_echo_n "(cached) " >&6 3427else 3428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430 3431int 3432main () 3433{ 3434#ifndef __GNUC__ 3435 choke me 3436#endif 3437 3438 ; 3439 return 0; 3440} 3441_ACEOF 3442if ac_fn_c_try_compile "$LINENO"; then : 3443 ac_compiler_gnu=yes 3444else 3445 ac_compiler_gnu=no 3446fi 3447rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3448ac_cv_c_compiler_gnu=$ac_compiler_gnu 3449 3450fi 3451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3452$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3453if test $ac_compiler_gnu = yes; then 3454 GCC=yes 3455else 3456 GCC= 3457fi 3458ac_test_CFLAGS=${CFLAGS+set} 3459ac_save_CFLAGS=$CFLAGS 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3461$as_echo_n "checking whether $CC accepts -g... " >&6; } 3462if ${ac_cv_prog_cc_g+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 ac_save_c_werror_flag=$ac_c_werror_flag 3466 ac_c_werror_flag=yes 3467 ac_cv_prog_cc_g=no 3468 CFLAGS="-g" 3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3470/* end confdefs.h. */ 3471 3472int 3473main () 3474{ 3475 3476 ; 3477 return 0; 3478} 3479_ACEOF 3480if ac_fn_c_try_compile "$LINENO"; then : 3481 ac_cv_prog_cc_g=yes 3482else 3483 CFLAGS="" 3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3485/* end confdefs.h. */ 3486 3487int 3488main () 3489{ 3490 3491 ; 3492 return 0; 3493} 3494_ACEOF 3495if ac_fn_c_try_compile "$LINENO"; then : 3496 3497else 3498 ac_c_werror_flag=$ac_save_c_werror_flag 3499 CFLAGS="-g" 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502 3503int 3504main () 3505{ 3506 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511if ac_fn_c_try_compile "$LINENO"; then : 3512 ac_cv_prog_cc_g=yes 3513fi 3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3515fi 3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3517fi 3518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3519 ac_c_werror_flag=$ac_save_c_werror_flag 3520fi 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3522$as_echo "$ac_cv_prog_cc_g" >&6; } 3523if test "$ac_test_CFLAGS" = set; then 3524 CFLAGS=$ac_save_CFLAGS 3525elif test $ac_cv_prog_cc_g = yes; then 3526 if test "$GCC" = yes; then 3527 CFLAGS="-g -O2" 3528 else 3529 CFLAGS="-g" 3530 fi 3531else 3532 if test "$GCC" = yes; then 3533 CFLAGS="-O2" 3534 else 3535 CFLAGS= 3536 fi 3537fi 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3539$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3540if ${ac_cv_prog_cc_c89+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 ac_cv_prog_cc_c89=no 3544ac_save_CC=$CC 3545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3546/* end confdefs.h. */ 3547#include <stdarg.h> 3548#include <stdio.h> 3549struct stat; 3550/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3551struct buf { int x; }; 3552FILE * (*rcsopen) (struct buf *, struct stat *, int); 3553static char *e (p, i) 3554 char **p; 3555 int i; 3556{ 3557 return p[i]; 3558} 3559static char *f (char * (*g) (char **, int), char **p, ...) 3560{ 3561 char *s; 3562 va_list v; 3563 va_start (v,p); 3564 s = g (p, va_arg (v,int)); 3565 va_end (v); 3566 return s; 3567} 3568 3569/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3570 function prototypes and stuff, but not '\xHH' hex character constants. 3571 These don't provoke an error unfortunately, instead are silently treated 3572 as 'x'. The following induces an error, until -std is added to get 3573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3574 array size at least. It's necessary to write '\x00'==0 to get something 3575 that's true only with -std. */ 3576int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3577 3578/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3579 inside strings and character constants. */ 3580#define FOO(x) 'x' 3581int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3582 3583int test (int i, double x); 3584struct s1 {int (*f) (int a);}; 3585struct s2 {int (*f) (double a);}; 3586int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3587int argc; 3588char **argv; 3589int 3590main () 3591{ 3592return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3593 ; 3594 return 0; 3595} 3596_ACEOF 3597for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3599do 3600 CC="$ac_save_CC $ac_arg" 3601 if ac_fn_c_try_compile "$LINENO"; then : 3602 ac_cv_prog_cc_c89=$ac_arg 3603fi 3604rm -f core conftest.err conftest.$ac_objext 3605 test "x$ac_cv_prog_cc_c89" != "xno" && break 3606done 3607rm -f conftest.$ac_ext 3608CC=$ac_save_CC 3609 3610fi 3611# AC_CACHE_VAL 3612case "x$ac_cv_prog_cc_c89" in 3613 x) 3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3615$as_echo "none needed" >&6; } ;; 3616 xno) 3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3618$as_echo "unsupported" >&6; } ;; 3619 *) 3620 CC="$CC $ac_cv_prog_cc_c89" 3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3622$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3623esac 3624if test "x$ac_cv_prog_cc_c89" != xno; then : 3625 3626fi 3627 3628ac_ext=c 3629ac_cpp='$CPP $CPPFLAGS' 3630ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3631ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3632ac_compiler_gnu=$ac_cv_c_compiler_gnu 3633 3634 3635 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 3637$as_echo_n "checking for strerror in -lcposix... " >&6; } 3638if ${ac_cv_lib_cposix_strerror+:} false; then : 3639 $as_echo_n "(cached) " >&6 3640else 3641 ac_check_lib_save_LIBS=$LIBS 3642LIBS="-lcposix $LIBS" 3643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3644/* end confdefs.h. */ 3645 3646/* Override any GCC internal prototype to avoid an error. 3647 Use char because int might match the return type of a GCC 3648 builtin and then its argument prototype would still apply. */ 3649#ifdef __cplusplus 3650extern "C" 3651#endif 3652char strerror (); 3653int 3654main () 3655{ 3656return strerror (); 3657 ; 3658 return 0; 3659} 3660_ACEOF 3661if ac_fn_c_try_link "$LINENO"; then : 3662 ac_cv_lib_cposix_strerror=yes 3663else 3664 ac_cv_lib_cposix_strerror=no 3665fi 3666rm -f core conftest.err conftest.$ac_objext \ 3667 conftest$ac_exeext conftest.$ac_ext 3668LIBS=$ac_check_lib_save_LIBS 3669fi 3670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 3671$as_echo "$ac_cv_lib_cposix_strerror" >&6; } 3672if test "x$ac_cv_lib_cposix_strerror" = xyes; then : 3673 LIBS="$LIBS -lcposix" 3674fi 3675 3676 3677 3678 3679 3680 3681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${CC-cc} option to accept ANSI C" >&5 3682$as_echo_n "checking for ${CC-cc} option to accept ANSI C... " >&6; } 3683if ${am_cv_prog_cc_stdc+:} false; then : 3684 $as_echo_n "(cached) " >&6 3685else 3686 am_cv_prog_cc_stdc=no 3687ac_save_CC="$CC" 3688# Don't try gcc -ansi; that turns off useful extensions and 3689# breaks some systems' header files. 3690# AIX -qlanglvl=ansi 3691# Ultrix and OSF/1 -std1 3692# HP-UX -Aa -D_HPUX_SOURCE 3693# SVR4 -Xc -D__EXTENSIONS__ 3694for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3695do 3696 CC="$ac_save_CC $ac_arg" 3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3698/* end confdefs.h. */ 3699#include <stdarg.h> 3700#include <stdio.h> 3701#include <sys/types.h> 3702#include <sys/stat.h> 3703/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3704struct buf { int x; }; 3705FILE * (*rcsopen) (struct buf *, struct stat *, int); 3706static char *e (p, i) 3707 char **p; 3708 int i; 3709{ 3710 return p[i]; 3711} 3712static char *f (char * (*g) (char **, int), char **p, ...) 3713{ 3714 char *s; 3715 va_list v; 3716 va_start (v,p); 3717 s = g (p, va_arg (v,int)); 3718 va_end (v); 3719 return s; 3720} 3721int test (int i, double x); 3722struct s1 {int (*f) (int a);}; 3723struct s2 {int (*f) (double a);}; 3724int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3725int argc; 3726char **argv; 3727 3728int 3729main () 3730{ 3731 3732return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3733 3734 ; 3735 return 0; 3736} 3737_ACEOF 3738if ac_fn_c_try_compile "$LINENO"; then : 3739 am_cv_prog_cc_stdc="$ac_arg"; break 3740fi 3741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3742done 3743CC="$ac_save_CC" 3744 3745fi 3746 3747if test -z "$am_cv_prog_cc_stdc"; then 3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3749$as_echo "none needed" >&6; } 3750else 3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_stdc" >&5 3752$as_echo "$am_cv_prog_cc_stdc" >&6; } 3753fi 3754case "x$am_cv_prog_cc_stdc" in 3755 x|xno) ;; 3756 *) CC="$CC $am_cv_prog_cc_stdc" ;; 3757esac 3758 3759ac_ext=f 3760ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 3761ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3762ac_compiler_gnu=$ac_cv_f77_compiler_gnu 3763if test -n "$ac_tool_prefix"; then 3764 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 3765 do 3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3767set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3769$as_echo_n "checking for $ac_word... " >&6; } 3770if ${ac_cv_prog_F77+:} false; then : 3771 $as_echo_n "(cached) " >&6 3772else 3773 if test -n "$F77"; then 3774 ac_cv_prog_F77="$F77" # Let the user override the test. 3775else 3776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3777for as_dir in $PATH 3778do 3779 IFS=$as_save_IFS 3780 test -z "$as_dir" && as_dir=. 3781 for ac_exec_ext in '' $ac_executable_extensions; do 3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3783 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3785 break 2 3786 fi 3787done 3788 done 3789IFS=$as_save_IFS 3790 3791fi 3792fi 3793F77=$ac_cv_prog_F77 3794if test -n "$F77"; then 3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5 3796$as_echo "$F77" >&6; } 3797else 3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3799$as_echo "no" >&6; } 3800fi 3801 3802 3803 test -n "$F77" && break 3804 done 3805fi 3806if test -z "$F77"; then 3807 ac_ct_F77=$F77 3808 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor 3809do 3810 # Extract the first word of "$ac_prog", so it can be a program name with args. 3811set dummy $ac_prog; ac_word=$2 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3813$as_echo_n "checking for $ac_word... " >&6; } 3814if ${ac_cv_prog_ac_ct_F77+:} false; then : 3815 $as_echo_n "(cached) " >&6 3816else 3817 if test -n "$ac_ct_F77"; then 3818 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 3819else 3820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3821for as_dir in $PATH 3822do 3823 IFS=$as_save_IFS 3824 test -z "$as_dir" && as_dir=. 3825 for ac_exec_ext in '' $ac_executable_extensions; do 3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3827 ac_cv_prog_ac_ct_F77="$ac_prog" 3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3829 break 2 3830 fi 3831done 3832 done 3833IFS=$as_save_IFS 3834 3835fi 3836fi 3837ac_ct_F77=$ac_cv_prog_ac_ct_F77 3838if test -n "$ac_ct_F77"; then 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5 3840$as_echo "$ac_ct_F77" >&6; } 3841else 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3843$as_echo "no" >&6; } 3844fi 3845 3846 3847 test -n "$ac_ct_F77" && break 3848done 3849 3850 if test "x$ac_ct_F77" = x; then 3851 F77="" 3852 else 3853 case $cross_compiling:$ac_tool_warned in 3854yes:) 3855{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3856$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3857ac_tool_warned=yes ;; 3858esac 3859 F77=$ac_ct_F77 3860 fi 3861fi 3862 3863 3864# Provide some information about the compiler. 3865$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5 3866set X $ac_compile 3867ac_compiler=$2 3868for ac_option in --version -v -V -qversion; do 3869 { { ac_try="$ac_compiler $ac_option >&5" 3870case "(($ac_try" in 3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3872 *) ac_try_echo=$ac_try;; 3873esac 3874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3875$as_echo "$ac_try_echo"; } >&5 3876 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3877 ac_status=$? 3878 if test -s conftest.err; then 3879 sed '10a\ 3880... rest of stderr output deleted ... 3881 10q' conftest.err >conftest.er1 3882 cat conftest.er1 >&5 3883 fi 3884 rm -f conftest.er1 conftest.err 3885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3886 test $ac_status = 0; } 3887done 3888rm -f a.out 3889 3890# If we don't use `.F' as extension, the preprocessor is not run on the 3891# input file. (Note that this only needs to work for GNU compilers.) 3892ac_save_ext=$ac_ext 3893ac_ext=F 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5 3895$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; } 3896if ${ac_cv_f77_compiler_gnu+:} false; then : 3897 $as_echo_n "(cached) " >&6 3898else 3899 cat > conftest.$ac_ext <<_ACEOF 3900 program main 3901#ifndef __GNUC__ 3902 choke me 3903#endif 3904 3905 end 3906_ACEOF 3907if ac_fn_f77_try_compile "$LINENO"; then : 3908 ac_compiler_gnu=yes 3909else 3910 ac_compiler_gnu=no 3911fi 3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3913ac_cv_f77_compiler_gnu=$ac_compiler_gnu 3914 3915fi 3916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5 3917$as_echo "$ac_cv_f77_compiler_gnu" >&6; } 3918ac_ext=$ac_save_ext 3919ac_test_FFLAGS=${FFLAGS+set} 3920ac_save_FFLAGS=$FFLAGS 3921FFLAGS= 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5 3923$as_echo_n "checking whether $F77 accepts -g... " >&6; } 3924if ${ac_cv_prog_f77_g+:} false; then : 3925 $as_echo_n "(cached) " >&6 3926else 3927 FFLAGS=-g 3928cat > conftest.$ac_ext <<_ACEOF 3929 program main 3930 3931 end 3932_ACEOF 3933if ac_fn_f77_try_compile "$LINENO"; then : 3934 ac_cv_prog_f77_g=yes 3935else 3936 ac_cv_prog_f77_g=no 3937fi 3938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3939 3940fi 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5 3942$as_echo "$ac_cv_prog_f77_g" >&6; } 3943if test "$ac_test_FFLAGS" = set; then 3944 FFLAGS=$ac_save_FFLAGS 3945elif test $ac_cv_prog_f77_g = yes; then 3946 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 3947 FFLAGS="-g -O2" 3948 else 3949 FFLAGS="-g" 3950 fi 3951else 3952 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 3953 FFLAGS="-O2" 3954 else 3955 FFLAGS= 3956 fi 3957fi 3958 3959if test $ac_compiler_gnu = yes; then 3960 G77=yes 3961else 3962 G77= 3963fi 3964ac_ext=c 3965ac_cpp='$CPP $CPPFLAGS' 3966ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3967ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3968ac_compiler_gnu=$ac_cv_c_compiler_gnu 3969 3970 3971 3972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 3973$as_echo_n "checking whether ln -s works... " >&6; } 3974LN_S=$as_ln_s 3975if test "$LN_S" = "ln -s"; then 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3977$as_echo "yes" >&6; } 3978else 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 3980$as_echo "no, using $LN_S" >&6; } 3981fi 3982 3983for ac_prog in gawk mawk nawk awk 3984do 3985 # Extract the first word of "$ac_prog", so it can be a program name with args. 3986set dummy $ac_prog; ac_word=$2 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3988$as_echo_n "checking for $ac_word... " >&6; } 3989if ${ac_cv_prog_AWK+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 if test -n "$AWK"; then 3993 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3994else 3995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3996for as_dir in $PATH 3997do 3998 IFS=$as_save_IFS 3999 test -z "$as_dir" && as_dir=. 4000 for ac_exec_ext in '' $ac_executable_extensions; do 4001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4002 ac_cv_prog_AWK="$ac_prog" 4003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4004 break 2 4005 fi 4006done 4007 done 4008IFS=$as_save_IFS 4009 4010fi 4011fi 4012AWK=$ac_cv_prog_AWK 4013if test -n "$AWK"; then 4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 4015$as_echo "$AWK" >&6; } 4016else 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4018$as_echo "no" >&6; } 4019fi 4020 4021 4022 test -n "$AWK" && break 4023done 4024 4025# Extract the first word of "perl", so it can be a program name with args. 4026set dummy perl; ac_word=$2 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4028$as_echo_n "checking for $ac_word... " >&6; } 4029if ${ac_cv_path_MY_PERL+:} false; then : 4030 $as_echo_n "(cached) " >&6 4031else 4032 case $MY_PERL in 4033 [\\/]* | ?:[\\/]*) 4034 ac_cv_path_MY_PERL="$MY_PERL" # Let the user override the test with a path. 4035 ;; 4036 *) 4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4038for as_dir in $PATH 4039do 4040 IFS=$as_save_IFS 4041 test -z "$as_dir" && as_dir=. 4042 for ac_exec_ext in '' $ac_executable_extensions; do 4043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4044 ac_cv_path_MY_PERL="$as_dir/$ac_word$ac_exec_ext" 4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4046 break 2 4047 fi 4048done 4049 done 4050IFS=$as_save_IFS 4051 4052 test -z "$ac_cv_path_MY_PERL" && ac_cv_path_MY_PERL="no" 4053 ;; 4054esac 4055fi 4056MY_PERL=$ac_cv_path_MY_PERL 4057if test -n "$MY_PERL"; then 4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MY_PERL" >&5 4059$as_echo "$MY_PERL" >&6; } 4060else 4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4062$as_echo "no" >&6; } 4063fi 4064 4065 4066if test x${MY_PERL} != xno ; then 4067 cat ${srcdir}/colormake.pl.in | sed s%FOOBAR%${MY_PERL}%g > colormake.pl 4068 chmod +x colormake.pl 4069else 4070 echo "No perl found" 4071fi 4072 4073 4074ALL_LINGUAS="de it" 4075 4076 4077 MKINSTALLDIRS= 4078 if test -n "$ac_aux_dir"; then 4079 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 4080 fi 4081 if test -z "$MKINSTALLDIRS"; then 4082 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 4083 fi 4084 4085 4086 4087 4088 4089 # Extract the first word of "msgfmt", so it can be a program name with args. 4090set dummy msgfmt; ac_word=$2 4091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4092$as_echo_n "checking for $ac_word... " >&6; } 4093if ${ac_cv_path_MSGFMT+:} false; then : 4094 $as_echo_n "(cached) " >&6 4095else 4096 case "$MSGFMT" in 4097 /*) 4098 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 4099 ;; 4100 *) 4101 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 4102 for ac_dir in $PATH; do 4103 test -z "$ac_dir" && ac_dir=. 4104 if test -f $ac_dir/$ac_word; then 4105 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 4106 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4107 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 4108 break 4109 fi 4110 fi 4111 done 4112 IFS="$ac_save_ifs" 4113 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 4114 ;; 4115esac 4116fi 4117MSGFMT="$ac_cv_path_MSGFMT" 4118if test "$MSGFMT" != ":"; then 4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 4120$as_echo "$MSGFMT" >&6; } 4121else 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4123$as_echo "no" >&6; } 4124fi 4125 4126 # Extract the first word of "gmsgfmt", so it can be a program name with args. 4127set dummy gmsgfmt; ac_word=$2 4128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4129$as_echo_n "checking for $ac_word... " >&6; } 4130if ${ac_cv_path_GMSGFMT+:} false; then : 4131 $as_echo_n "(cached) " >&6 4132else 4133 case $GMSGFMT in 4134 [\\/]* | ?:[\\/]*) 4135 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 4136 ;; 4137 *) 4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4139for as_dir in $PATH 4140do 4141 IFS=$as_save_IFS 4142 test -z "$as_dir" && as_dir=. 4143 for ac_exec_ext in '' $ac_executable_extensions; do 4144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4145 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 4146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4147 break 2 4148 fi 4149done 4150 done 4151IFS=$as_save_IFS 4152 4153 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 4154 ;; 4155esac 4156fi 4157GMSGFMT=$ac_cv_path_GMSGFMT 4158if test -n "$GMSGFMT"; then 4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 4160$as_echo "$GMSGFMT" >&6; } 4161else 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4163$as_echo "no" >&6; } 4164fi 4165 4166 4167 4168 # Extract the first word of "xgettext", so it can be a program name with args. 4169set dummy xgettext; ac_word=$2 4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4171$as_echo_n "checking for $ac_word... " >&6; } 4172if ${ac_cv_path_XGETTEXT+:} false; then : 4173 $as_echo_n "(cached) " >&6 4174else 4175 case "$XGETTEXT" in 4176 /*) 4177 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 4178 ;; 4179 *) 4180 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 4181 for ac_dir in $PATH; do 4182 test -z "$ac_dir" && ac_dir=. 4183 if test -f $ac_dir/$ac_word; then 4184 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 4185 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4186 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 4187 break 4188 fi 4189 fi 4190 done 4191 IFS="$ac_save_ifs" 4192 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 4193 ;; 4194esac 4195fi 4196XGETTEXT="$ac_cv_path_XGETTEXT" 4197if test "$XGETTEXT" != ":"; then 4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 4199$as_echo "$XGETTEXT" >&6; } 4200else 4201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4202$as_echo "no" >&6; } 4203fi 4204 4205 rm -f messages.po 4206 4207 # Extract the first word of "msgmerge", so it can be a program name with args. 4208set dummy msgmerge; ac_word=$2 4209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4210$as_echo_n "checking for $ac_word... " >&6; } 4211if ${ac_cv_path_MSGMERGE+:} false; then : 4212 $as_echo_n "(cached) " >&6 4213else 4214 case "$MSGMERGE" in 4215 /*) 4216 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 4217 ;; 4218 *) 4219 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 4220 for ac_dir in $PATH; do 4221 test -z "$ac_dir" && ac_dir=. 4222 if test -f $ac_dir/$ac_word; then 4223 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 4224 ac_cv_path_MSGMERGE="$ac_dir/$ac_word" 4225 break 4226 fi 4227 fi 4228 done 4229 IFS="$ac_save_ifs" 4230 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 4231 ;; 4232esac 4233fi 4234MSGMERGE="$ac_cv_path_MSGMERGE" 4235if test "$MSGMERGE" != ":"; then 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 4237$as_echo "$MSGMERGE" >&6; } 4238else 4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4240$as_echo "no" >&6; } 4241fi 4242 4243 4244 if test "$GMSGFMT" != ":"; then 4245 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 4246 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4247 : ; 4248 else 4249 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 4251$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 4252 GMSGFMT=":" 4253 fi 4254 fi 4255 4256 if test "$XGETTEXT" != ":"; then 4257 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 4258 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 4259 : ; 4260 else 4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 4262$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 4263 XGETTEXT=":" 4264 fi 4265 rm -f messages.po 4266 fi 4267 4268 ac_config_commands="$ac_config_commands default-1" 4269 4270 4271# Make sure we can run config.sub. 4272$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4273 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4274 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4276$as_echo_n "checking build system type... " >&6; } 4277if ${ac_cv_build+:} false; then : 4278 $as_echo_n "(cached) " >&6 4279else 4280 ac_build_alias=$build_alias 4281test "x$ac_build_alias" = x && 4282 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4283test "x$ac_build_alias" = x && 4284 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4285ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4286 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4287 4288fi 4289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4290$as_echo "$ac_cv_build" >&6; } 4291case $ac_cv_build in 4292*-*-*) ;; 4293*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4294esac 4295build=$ac_cv_build 4296ac_save_IFS=$IFS; IFS='-' 4297set x $ac_cv_build 4298shift 4299build_cpu=$1 4300build_vendor=$2 4301shift; shift 4302# Remember, the first character of IFS is used to create $*, 4303# except with old shells: 4304build_os=$* 4305IFS=$ac_save_IFS 4306case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4307 4308 4309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4310$as_echo_n "checking host system type... " >&6; } 4311if ${ac_cv_host+:} false; then : 4312 $as_echo_n "(cached) " >&6 4313else 4314 if test "x$host_alias" = x; then 4315 ac_cv_host=$ac_cv_build 4316else 4317 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4318 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4319fi 4320 4321fi 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4323$as_echo "$ac_cv_host" >&6; } 4324case $ac_cv_host in 4325*-*-*) ;; 4326*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4327esac 4328host=$ac_cv_host 4329ac_save_IFS=$IFS; IFS='-' 4330set x $ac_cv_host 4331shift 4332host_cpu=$1 4333host_vendor=$2 4334shift; shift 4335# Remember, the first character of IFS is used to create $*, 4336# except with old shells: 4337host_os=$* 4338IFS=$ac_save_IFS 4339case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4340 4341 4342if test -n "$ac_tool_prefix"; then 4343 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4344set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4346$as_echo_n "checking for $ac_word... " >&6; } 4347if ${ac_cv_prog_RANLIB+:} false; then : 4348 $as_echo_n "(cached) " >&6 4349else 4350 if test -n "$RANLIB"; then 4351 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4352else 4353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4354for as_dir in $PATH 4355do 4356 IFS=$as_save_IFS 4357 test -z "$as_dir" && as_dir=. 4358 for ac_exec_ext in '' $ac_executable_extensions; do 4359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4360 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4362 break 2 4363 fi 4364done 4365 done 4366IFS=$as_save_IFS 4367 4368fi 4369fi 4370RANLIB=$ac_cv_prog_RANLIB 4371if test -n "$RANLIB"; then 4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 4373$as_echo "$RANLIB" >&6; } 4374else 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4376$as_echo "no" >&6; } 4377fi 4378 4379 4380fi 4381if test -z "$ac_cv_prog_RANLIB"; then 4382 ac_ct_RANLIB=$RANLIB 4383 # Extract the first word of "ranlib", so it can be a program name with args. 4384set dummy ranlib; ac_word=$2 4385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4386$as_echo_n "checking for $ac_word... " >&6; } 4387if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389else 4390 if test -n "$ac_ct_RANLIB"; then 4391 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4392else 4393as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4394for as_dir in $PATH 4395do 4396 IFS=$as_save_IFS 4397 test -z "$as_dir" && as_dir=. 4398 for ac_exec_ext in '' $ac_executable_extensions; do 4399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4400 ac_cv_prog_ac_ct_RANLIB="ranlib" 4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4402 break 2 4403 fi 4404done 4405 done 4406IFS=$as_save_IFS 4407 4408fi 4409fi 4410ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4411if test -n "$ac_ct_RANLIB"; then 4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 4413$as_echo "$ac_ct_RANLIB" >&6; } 4414else 4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4416$as_echo "no" >&6; } 4417fi 4418 4419 if test "x$ac_ct_RANLIB" = x; then 4420 RANLIB=":" 4421 else 4422 case $cross_compiling:$ac_tool_warned in 4423yes:) 4424{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4425$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4426ac_tool_warned=yes ;; 4427esac 4428 RANLIB=$ac_ct_RANLIB 4429 fi 4430else 4431 RANLIB="$ac_cv_prog_RANLIB" 4432fi 4433 4434ac_ext=c 4435ac_cpp='$CPP $CPPFLAGS' 4436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4438ac_compiler_gnu=$ac_cv_c_compiler_gnu 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4440$as_echo_n "checking how to run the C preprocessor... " >&6; } 4441# On Suns, sometimes $CPP names a directory. 4442if test -n "$CPP" && test -d "$CPP"; then 4443 CPP= 4444fi 4445if test -z "$CPP"; then 4446 if ${ac_cv_prog_CPP+:} false; then : 4447 $as_echo_n "(cached) " >&6 4448else 4449 # Double quotes because CPP needs to be expanded 4450 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4451 do 4452 ac_preproc_ok=false 4453for ac_c_preproc_warn_flag in '' yes 4454do 4455 # Use a header file that comes with gcc, so configuring glibc 4456 # with a fresh cross-compiler works. 4457 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4458 # <limits.h> exists even on freestanding compilers. 4459 # On the NeXT, cc -E runs the code through the compiler's parser, 4460 # not just through cpp. "Syntax error" is here to catch this case. 4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4462/* end confdefs.h. */ 4463#ifdef __STDC__ 4464# include <limits.h> 4465#else 4466# include <assert.h> 4467#endif 4468 Syntax error 4469_ACEOF 4470if ac_fn_c_try_cpp "$LINENO"; then : 4471 4472else 4473 # Broken: fails on valid input. 4474continue 4475fi 4476rm -f conftest.err conftest.i conftest.$ac_ext 4477 4478 # OK, works on sane cases. Now check whether nonexistent headers 4479 # can be detected and how. 4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4481/* end confdefs.h. */ 4482#include <ac_nonexistent.h> 4483_ACEOF 4484if ac_fn_c_try_cpp "$LINENO"; then : 4485 # Broken: success on invalid input. 4486continue 4487else 4488 # Passes both tests. 4489ac_preproc_ok=: 4490break 4491fi 4492rm -f conftest.err conftest.i conftest.$ac_ext 4493 4494done 4495# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4496rm -f conftest.i conftest.err conftest.$ac_ext 4497if $ac_preproc_ok; then : 4498 break 4499fi 4500 4501 done 4502 ac_cv_prog_CPP=$CPP 4503 4504fi 4505 CPP=$ac_cv_prog_CPP 4506else 4507 ac_cv_prog_CPP=$CPP 4508fi 4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4510$as_echo "$CPP" >&6; } 4511ac_preproc_ok=false 4512for ac_c_preproc_warn_flag in '' yes 4513do 4514 # Use a header file that comes with gcc, so configuring glibc 4515 # with a fresh cross-compiler works. 4516 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4517 # <limits.h> exists even on freestanding compilers. 4518 # On the NeXT, cc -E runs the code through the compiler's parser, 4519 # not just through cpp. "Syntax error" is here to catch this case. 4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4521/* end confdefs.h. */ 4522#ifdef __STDC__ 4523# include <limits.h> 4524#else 4525# include <assert.h> 4526#endif 4527 Syntax error 4528_ACEOF 4529if ac_fn_c_try_cpp "$LINENO"; then : 4530 4531else 4532 # Broken: fails on valid input. 4533continue 4534fi 4535rm -f conftest.err conftest.i conftest.$ac_ext 4536 4537 # OK, works on sane cases. Now check whether nonexistent headers 4538 # can be detected and how. 4539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4540/* end confdefs.h. */ 4541#include <ac_nonexistent.h> 4542_ACEOF 4543if ac_fn_c_try_cpp "$LINENO"; then : 4544 # Broken: success on invalid input. 4545continue 4546else 4547 # Passes both tests. 4548ac_preproc_ok=: 4549break 4550fi 4551rm -f conftest.err conftest.i conftest.$ac_ext 4552 4553done 4554# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4555rm -f conftest.i conftest.err conftest.$ac_ext 4556if $ac_preproc_ok; then : 4557 4558else 4559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4560$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4561as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4562See \`config.log' for more details" "$LINENO" 5; } 4563fi 4564 4565ac_ext=c 4566ac_cpp='$CPP $CPPFLAGS' 4567ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4568ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4569ac_compiler_gnu=$ac_cv_c_compiler_gnu 4570 4571 4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4573$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4574if ${ac_cv_path_GREP+:} false; then : 4575 $as_echo_n "(cached) " >&6 4576else 4577 if test -z "$GREP"; then 4578 ac_path_GREP_found=false 4579 # Loop through the user's path and test for each of PROGNAME-LIST 4580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4581for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4582do 4583 IFS=$as_save_IFS 4584 test -z "$as_dir" && as_dir=. 4585 for ac_prog in grep ggrep; do 4586 for ac_exec_ext in '' $ac_executable_extensions; do 4587 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4588 as_fn_executable_p "$ac_path_GREP" || continue 4589# Check for GNU ac_path_GREP and select it if it is found. 4590 # Check for GNU $ac_path_GREP 4591case `"$ac_path_GREP" --version 2>&1` in 4592*GNU*) 4593 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4594*) 4595 ac_count=0 4596 $as_echo_n 0123456789 >"conftest.in" 4597 while : 4598 do 4599 cat "conftest.in" "conftest.in" >"conftest.tmp" 4600 mv "conftest.tmp" "conftest.in" 4601 cp "conftest.in" "conftest.nl" 4602 $as_echo 'GREP' >> "conftest.nl" 4603 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4604 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4605 as_fn_arith $ac_count + 1 && ac_count=$as_val 4606 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4607 # Best one so far, save it but keep looking for a better one 4608 ac_cv_path_GREP="$ac_path_GREP" 4609 ac_path_GREP_max=$ac_count 4610 fi 4611 # 10*(2^10) chars as input seems more than enough 4612 test $ac_count -gt 10 && break 4613 done 4614 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4615esac 4616 4617 $ac_path_GREP_found && break 3 4618 done 4619 done 4620 done 4621IFS=$as_save_IFS 4622 if test -z "$ac_cv_path_GREP"; then 4623 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4624 fi 4625else 4626 ac_cv_path_GREP=$GREP 4627fi 4628 4629fi 4630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4631$as_echo "$ac_cv_path_GREP" >&6; } 4632 GREP="$ac_cv_path_GREP" 4633 4634 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4636$as_echo_n "checking for egrep... " >&6; } 4637if ${ac_cv_path_EGREP+:} false; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4641 then ac_cv_path_EGREP="$GREP -E" 4642 else 4643 if test -z "$EGREP"; then 4644 ac_path_EGREP_found=false 4645 # Loop through the user's path and test for each of PROGNAME-LIST 4646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4647for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4648do 4649 IFS=$as_save_IFS 4650 test -z "$as_dir" && as_dir=. 4651 for ac_prog in egrep; do 4652 for ac_exec_ext in '' $ac_executable_extensions; do 4653 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4654 as_fn_executable_p "$ac_path_EGREP" || continue 4655# Check for GNU ac_path_EGREP and select it if it is found. 4656 # Check for GNU $ac_path_EGREP 4657case `"$ac_path_EGREP" --version 2>&1` in 4658*GNU*) 4659 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4660*) 4661 ac_count=0 4662 $as_echo_n 0123456789 >"conftest.in" 4663 while : 4664 do 4665 cat "conftest.in" "conftest.in" >"conftest.tmp" 4666 mv "conftest.tmp" "conftest.in" 4667 cp "conftest.in" "conftest.nl" 4668 $as_echo 'EGREP' >> "conftest.nl" 4669 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4670 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4671 as_fn_arith $ac_count + 1 && ac_count=$as_val 4672 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4673 # Best one so far, save it but keep looking for a better one 4674 ac_cv_path_EGREP="$ac_path_EGREP" 4675 ac_path_EGREP_max=$ac_count 4676 fi 4677 # 10*(2^10) chars as input seems more than enough 4678 test $ac_count -gt 10 && break 4679 done 4680 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4681esac 4682 4683 $ac_path_EGREP_found && break 3 4684 done 4685 done 4686 done 4687IFS=$as_save_IFS 4688 if test -z "$ac_cv_path_EGREP"; then 4689 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4690 fi 4691else 4692 ac_cv_path_EGREP=$EGREP 4693fi 4694 4695 fi 4696fi 4697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4698$as_echo "$ac_cv_path_EGREP" >&6; } 4699 EGREP="$ac_cv_path_EGREP" 4700 4701 4702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4703$as_echo_n "checking for ANSI C header files... " >&6; } 4704if ${ac_cv_header_stdc+:} false; then : 4705 $as_echo_n "(cached) " >&6 4706else 4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4708/* end confdefs.h. */ 4709#include <stdlib.h> 4710#include <stdarg.h> 4711#include <string.h> 4712#include <float.h> 4713 4714int 4715main () 4716{ 4717 4718 ; 4719 return 0; 4720} 4721_ACEOF 4722if ac_fn_c_try_compile "$LINENO"; then : 4723 ac_cv_header_stdc=yes 4724else 4725 ac_cv_header_stdc=no 4726fi 4727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4728 4729if test $ac_cv_header_stdc = yes; then 4730 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4732/* end confdefs.h. */ 4733#include <string.h> 4734 4735_ACEOF 4736if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4737 $EGREP "memchr" >/dev/null 2>&1; then : 4738 4739else 4740 ac_cv_header_stdc=no 4741fi 4742rm -f conftest* 4743 4744fi 4745 4746if test $ac_cv_header_stdc = yes; then 4747 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4749/* end confdefs.h. */ 4750#include <stdlib.h> 4751 4752_ACEOF 4753if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4754 $EGREP "free" >/dev/null 2>&1; then : 4755 4756else 4757 ac_cv_header_stdc=no 4758fi 4759rm -f conftest* 4760 4761fi 4762 4763if test $ac_cv_header_stdc = yes; then 4764 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4765 if test "$cross_compiling" = yes; then : 4766 : 4767else 4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4769/* end confdefs.h. */ 4770#include <ctype.h> 4771#include <stdlib.h> 4772#if ((' ' & 0x0FF) == 0x020) 4773# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4774# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4775#else 4776# define ISLOWER(c) \ 4777 (('a' <= (c) && (c) <= 'i') \ 4778 || ('j' <= (c) && (c) <= 'r') \ 4779 || ('s' <= (c) && (c) <= 'z')) 4780# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4781#endif 4782 4783#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4784int 4785main () 4786{ 4787 int i; 4788 for (i = 0; i < 256; i++) 4789 if (XOR (islower (i), ISLOWER (i)) 4790 || toupper (i) != TOUPPER (i)) 4791 return 2; 4792 return 0; 4793} 4794_ACEOF 4795if ac_fn_c_try_run "$LINENO"; then : 4796 4797else 4798 ac_cv_header_stdc=no 4799fi 4800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4801 conftest.$ac_objext conftest.beam conftest.$ac_ext 4802fi 4803 4804fi 4805fi 4806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4807$as_echo "$ac_cv_header_stdc" >&6; } 4808if test $ac_cv_header_stdc = yes; then 4809 4810$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4811 4812fi 4813 4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 4815$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 4816if ${ac_cv_c_const+:} false; then : 4817 $as_echo_n "(cached) " >&6 4818else 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4820/* end confdefs.h. */ 4821 4822int 4823main () 4824{ 4825 4826#ifndef __cplusplus 4827 /* Ultrix mips cc rejects this sort of thing. */ 4828 typedef int charset[2]; 4829 const charset cs = { 0, 0 }; 4830 /* SunOS 4.1.1 cc rejects this. */ 4831 char const *const *pcpcc; 4832 char **ppc; 4833 /* NEC SVR4.0.2 mips cc rejects this. */ 4834 struct point {int x, y;}; 4835 static struct point const zero = {0,0}; 4836 /* AIX XL C 1.02.0.0 rejects this. 4837 It does not let you subtract one const X* pointer from another in 4838 an arm of an if-expression whose if-part is not a constant 4839 expression */ 4840 const char *g = "string"; 4841 pcpcc = &g + (g ? g-g : 0); 4842 /* HPUX 7.0 cc rejects these. */ 4843 ++pcpcc; 4844 ppc = (char**) pcpcc; 4845 pcpcc = (char const *const *) ppc; 4846 { /* SCO 3.2v4 cc rejects this sort of thing. */ 4847 char tx; 4848 char *t = &tx; 4849 char const *s = 0 ? (char *) 0 : (char const *) 0; 4850 4851 *t++ = 0; 4852 if (s) return 0; 4853 } 4854 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 4855 int x[] = {25, 17}; 4856 const int *foo = &x[0]; 4857 ++foo; 4858 } 4859 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 4860 typedef const int *iptr; 4861 iptr p = 0; 4862 ++p; 4863 } 4864 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 4865 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 4866 struct s { int j; const int *ap[3]; } bx; 4867 struct s *b = &bx; b->j = 5; 4868 } 4869 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 4870 const int foo = 10; 4871 if (!foo) return 0; 4872 } 4873 return !cs[0] && !zero.x; 4874#endif 4875 4876 ; 4877 return 0; 4878} 4879_ACEOF 4880if ac_fn_c_try_compile "$LINENO"; then : 4881 ac_cv_c_const=yes 4882else 4883 ac_cv_c_const=no 4884fi 4885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4886fi 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 4888$as_echo "$ac_cv_c_const" >&6; } 4889if test $ac_cv_c_const = no; then 4890 4891$as_echo "#define const /**/" >>confdefs.h 4892 4893fi 4894 4895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 4896$as_echo_n "checking for inline... " >&6; } 4897if ${ac_cv_c_inline+:} false; then : 4898 $as_echo_n "(cached) " >&6 4899else 4900 ac_cv_c_inline=no 4901for ac_kw in inline __inline__ __inline; do 4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4903/* end confdefs.h. */ 4904#ifndef __cplusplus 4905typedef int foo_t; 4906static $ac_kw foo_t static_foo () {return 0; } 4907$ac_kw foo_t foo () {return 0; } 4908#endif 4909 4910_ACEOF 4911if ac_fn_c_try_compile "$LINENO"; then : 4912 ac_cv_c_inline=$ac_kw 4913fi 4914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4915 test "$ac_cv_c_inline" != no && break 4916done 4917 4918fi 4919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 4920$as_echo "$ac_cv_c_inline" >&6; } 4921 4922case $ac_cv_c_inline in 4923 inline | yes) ;; 4924 *) 4925 case $ac_cv_c_inline in 4926 no) ac_val=;; 4927 *) ac_val=$ac_cv_c_inline;; 4928 esac 4929 cat >>confdefs.h <<_ACEOF 4930#ifndef __cplusplus 4931#define inline $ac_val 4932#endif 4933_ACEOF 4934 ;; 4935esac 4936 4937# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4938for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4939 inttypes.h stdint.h unistd.h 4940do : 4941 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4942ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4943" 4944if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4945 cat >>confdefs.h <<_ACEOF 4946#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4947_ACEOF 4948 4949fi 4950 4951done 4952 4953 4954ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 4955if test "x$ac_cv_type_off_t" = xyes; then : 4956 4957else 4958 4959cat >>confdefs.h <<_ACEOF 4960#define off_t long int 4961_ACEOF 4962 4963fi 4964 4965ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 4966if test "x$ac_cv_type_size_t" = xyes; then : 4967 4968else 4969 4970cat >>confdefs.h <<_ACEOF 4971#define size_t unsigned int 4972_ACEOF 4973 4974fi 4975 4976# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 4977# for constant arguments. Useless! 4978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 4979$as_echo_n "checking for working alloca.h... " >&6; } 4980if ${ac_cv_working_alloca_h+:} false; then : 4981 $as_echo_n "(cached) " >&6 4982else 4983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4984/* end confdefs.h. */ 4985#include <alloca.h> 4986int 4987main () 4988{ 4989char *p = (char *) alloca (2 * sizeof (int)); 4990 if (p) return 0; 4991 ; 4992 return 0; 4993} 4994_ACEOF 4995if ac_fn_c_try_link "$LINENO"; then : 4996 ac_cv_working_alloca_h=yes 4997else 4998 ac_cv_working_alloca_h=no 4999fi 5000rm -f core conftest.err conftest.$ac_objext \ 5001 conftest$ac_exeext conftest.$ac_ext 5002fi 5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 5004$as_echo "$ac_cv_working_alloca_h" >&6; } 5005if test $ac_cv_working_alloca_h = yes; then 5006 5007$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 5008 5009fi 5010 5011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 5012$as_echo_n "checking for alloca... " >&6; } 5013if ${ac_cv_func_alloca_works+:} false; then : 5014 $as_echo_n "(cached) " >&6 5015else 5016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5017/* end confdefs.h. */ 5018#ifdef __GNUC__ 5019# define alloca __builtin_alloca 5020#else 5021# ifdef _MSC_VER 5022# include <malloc.h> 5023# define alloca _alloca 5024# else 5025# ifdef HAVE_ALLOCA_H 5026# include <alloca.h> 5027# else 5028# ifdef _AIX 5029 #pragma alloca 5030# else 5031# ifndef alloca /* predefined by HP cc +Olibcalls */ 5032void *alloca (size_t); 5033# endif 5034# endif 5035# endif 5036# endif 5037#endif 5038 5039int 5040main () 5041{ 5042char *p = (char *) alloca (1); 5043 if (p) return 0; 5044 ; 5045 return 0; 5046} 5047_ACEOF 5048if ac_fn_c_try_link "$LINENO"; then : 5049 ac_cv_func_alloca_works=yes 5050else 5051 ac_cv_func_alloca_works=no 5052fi 5053rm -f core conftest.err conftest.$ac_objext \ 5054 conftest$ac_exeext conftest.$ac_ext 5055fi 5056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 5057$as_echo "$ac_cv_func_alloca_works" >&6; } 5058 5059if test $ac_cv_func_alloca_works = yes; then 5060 5061$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 5062 5063else 5064 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 5065# that cause trouble. Some versions do not even contain alloca or 5066# contain a buggy version. If you still want to use their alloca, 5067# use ar to extract alloca.o from them instead of compiling alloca.c. 5068 5069ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 5070 5071$as_echo "#define C_ALLOCA 1" >>confdefs.h 5072 5073 5074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 5075$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 5076if ${ac_cv_os_cray+:} false; then : 5077 $as_echo_n "(cached) " >&6 5078else 5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5080/* end confdefs.h. */ 5081#if defined CRAY && ! defined CRAY2 5082webecray 5083#else 5084wenotbecray 5085#endif 5086 5087_ACEOF 5088if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5089 $EGREP "webecray" >/dev/null 2>&1; then : 5090 ac_cv_os_cray=yes 5091else 5092 ac_cv_os_cray=no 5093fi 5094rm -f conftest* 5095 5096fi 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 5098$as_echo "$ac_cv_os_cray" >&6; } 5099if test $ac_cv_os_cray = yes; then 5100 for ac_func in _getb67 GETB67 getb67; do 5101 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5102ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5103if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5104 5105cat >>confdefs.h <<_ACEOF 5106#define CRAY_STACKSEG_END $ac_func 5107_ACEOF 5108 5109 break 5110fi 5111 5112 done 5113fi 5114 5115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 5116$as_echo_n "checking stack direction for C alloca... " >&6; } 5117if ${ac_cv_c_stack_direction+:} false; then : 5118 $as_echo_n "(cached) " >&6 5119else 5120 if test "$cross_compiling" = yes; then : 5121 ac_cv_c_stack_direction=0 5122else 5123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5124/* end confdefs.h. */ 5125$ac_includes_default 5126int 5127find_stack_direction (int *addr, int depth) 5128{ 5129 int dir, dummy = 0; 5130 if (! addr) 5131 addr = &dummy; 5132 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 5133 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 5134 return dir + dummy; 5135} 5136 5137int 5138main (int argc, char **argv) 5139{ 5140 return find_stack_direction (0, argc + !argv + 20) < 0; 5141} 5142_ACEOF 5143if ac_fn_c_try_run "$LINENO"; then : 5144 ac_cv_c_stack_direction=1 5145else 5146 ac_cv_c_stack_direction=-1 5147fi 5148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5149 conftest.$ac_objext conftest.beam conftest.$ac_ext 5150fi 5151 5152fi 5153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 5154$as_echo "$ac_cv_c_stack_direction" >&6; } 5155cat >>confdefs.h <<_ACEOF 5156#define STACK_DIRECTION $ac_cv_c_stack_direction 5157_ACEOF 5158 5159 5160fi 5161 5162 5163 5164 5165 for ac_header in $ac_header_list 5166do : 5167 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5168ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5169" 5170if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5171 cat >>confdefs.h <<_ACEOF 5172#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5173_ACEOF 5174 5175fi 5176 5177done 5178 5179 5180 5181 5182 5183 5184 5185 5186for ac_func in getpagesize 5187do : 5188 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 5189if test "x$ac_cv_func_getpagesize" = xyes; then : 5190 cat >>confdefs.h <<_ACEOF 5191#define HAVE_GETPAGESIZE 1 5192_ACEOF 5193 5194fi 5195done 5196 5197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 5198$as_echo_n "checking for working mmap... " >&6; } 5199if ${ac_cv_func_mmap_fixed_mapped+:} false; then : 5200 $as_echo_n "(cached) " >&6 5201else 5202 if test "$cross_compiling" = yes; then : 5203 ac_cv_func_mmap_fixed_mapped=no 5204else 5205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5206/* end confdefs.h. */ 5207$ac_includes_default 5208/* malloc might have been renamed as rpl_malloc. */ 5209#undef malloc 5210 5211/* Thanks to Mike Haertel and Jim Avera for this test. 5212 Here is a matrix of mmap possibilities: 5213 mmap private not fixed 5214 mmap private fixed at somewhere currently unmapped 5215 mmap private fixed at somewhere already mapped 5216 mmap shared not fixed 5217 mmap shared fixed at somewhere currently unmapped 5218 mmap shared fixed at somewhere already mapped 5219 For private mappings, we should verify that changes cannot be read() 5220 back from the file, nor mmap's back from the file at a different 5221 address. (There have been systems where private was not correctly 5222 implemented like the infamous i386 svr4.0, and systems where the 5223 VM page cache was not coherent with the file system buffer cache 5224 like early versions of FreeBSD and possibly contemporary NetBSD.) 5225 For shared mappings, we should conversely verify that changes get 5226 propagated back to all the places they're supposed to be. 5227 5228 Grep wants private fixed already mapped. 5229 The main things grep needs to know about mmap are: 5230 * does it exist and is it safe to write into the mmap'd area 5231 * how to use it (BSD variants) */ 5232 5233#include <fcntl.h> 5234#include <sys/mman.h> 5235 5236#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 5237char *malloc (); 5238#endif 5239 5240/* This mess was copied from the GNU getpagesize.h. */ 5241#ifndef HAVE_GETPAGESIZE 5242# ifdef _SC_PAGESIZE 5243# define getpagesize() sysconf(_SC_PAGESIZE) 5244# else /* no _SC_PAGESIZE */ 5245# ifdef HAVE_SYS_PARAM_H 5246# include <sys/param.h> 5247# ifdef EXEC_PAGESIZE 5248# define getpagesize() EXEC_PAGESIZE 5249# else /* no EXEC_PAGESIZE */ 5250# ifdef NBPG 5251# define getpagesize() NBPG * CLSIZE 5252# ifndef CLSIZE 5253# define CLSIZE 1 5254# endif /* no CLSIZE */ 5255# else /* no NBPG */ 5256# ifdef NBPC 5257# define getpagesize() NBPC 5258# else /* no NBPC */ 5259# ifdef PAGESIZE 5260# define getpagesize() PAGESIZE 5261# endif /* PAGESIZE */ 5262# endif /* no NBPC */ 5263# endif /* no NBPG */ 5264# endif /* no EXEC_PAGESIZE */ 5265# else /* no HAVE_SYS_PARAM_H */ 5266# define getpagesize() 8192 /* punt totally */ 5267# endif /* no HAVE_SYS_PARAM_H */ 5268# endif /* no _SC_PAGESIZE */ 5269 5270#endif /* no HAVE_GETPAGESIZE */ 5271 5272int 5273main () 5274{ 5275 char *data, *data2, *data3; 5276 const char *cdata2; 5277 int i, pagesize; 5278 int fd, fd2; 5279 5280 pagesize = getpagesize (); 5281 5282 /* First, make a file with some known garbage in it. */ 5283 data = (char *) malloc (pagesize); 5284 if (!data) 5285 return 1; 5286 for (i = 0; i < pagesize; ++i) 5287 *(data + i) = rand (); 5288 umask (0); 5289 fd = creat ("conftest.mmap", 0600); 5290 if (fd < 0) 5291 return 2; 5292 if (write (fd, data, pagesize) != pagesize) 5293 return 3; 5294 close (fd); 5295 5296 /* Next, check that the tail of a page is zero-filled. File must have 5297 non-zero length, otherwise we risk SIGBUS for entire page. */ 5298 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 5299 if (fd2 < 0) 5300 return 4; 5301 cdata2 = ""; 5302 if (write (fd2, cdata2, 1) != 1) 5303 return 5; 5304 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 5305 if (data2 == MAP_FAILED) 5306 return 6; 5307 for (i = 0; i < pagesize; ++i) 5308 if (*(data2 + i)) 5309 return 7; 5310 close (fd2); 5311 if (munmap (data2, pagesize)) 5312 return 8; 5313 5314 /* Next, try to mmap the file at a fixed address which already has 5315 something else allocated at it. If we can, also make sure that 5316 we see the same garbage. */ 5317 fd = open ("conftest.mmap", O_RDWR); 5318 if (fd < 0) 5319 return 9; 5320 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 5321 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 5322 return 10; 5323 for (i = 0; i < pagesize; ++i) 5324 if (*(data + i) != *(data2 + i)) 5325 return 11; 5326 5327 /* Finally, make sure that changes to the mapped area do not 5328 percolate back to the file as seen by read(). (This is a bug on 5329 some variants of i386 svr4.0.) */ 5330 for (i = 0; i < pagesize; ++i) 5331 *(data2 + i) = *(data2 + i) + 1; 5332 data3 = (char *) malloc (pagesize); 5333 if (!data3) 5334 return 12; 5335 if (read (fd, data3, pagesize) != pagesize) 5336 return 13; 5337 for (i = 0; i < pagesize; ++i) 5338 if (*(data + i) != *(data3 + i)) 5339 return 14; 5340 close (fd); 5341 return 0; 5342} 5343_ACEOF 5344if ac_fn_c_try_run "$LINENO"; then : 5345 ac_cv_func_mmap_fixed_mapped=yes 5346else 5347 ac_cv_func_mmap_fixed_mapped=no 5348fi 5349rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5350 conftest.$ac_objext conftest.beam conftest.$ac_ext 5351fi 5352 5353fi 5354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 5355$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 5356if test $ac_cv_func_mmap_fixed_mapped = yes; then 5357 5358$as_echo "#define HAVE_MMAP 1" >>confdefs.h 5359 5360fi 5361rm -f conftest.mmap conftest.txt 5362 5363 5364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 5365$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 5366if ${ac_cv_gnu_library_2_1+:} false; then : 5367 $as_echo_n "(cached) " >&6 5368else 5369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5370/* end confdefs.h. */ 5371 5372#include <features.h> 5373#ifdef __GNU_LIBRARY__ 5374 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 5375 Lucky GNU user 5376 #endif 5377#endif 5378 5379_ACEOF 5380if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5381 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 5382 ac_cv_gnu_library_2_1=yes 5383else 5384 ac_cv_gnu_library_2_1=no 5385fi 5386rm -f conftest* 5387 5388 5389 5390fi 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 5392$as_echo "$ac_cv_gnu_library_2_1" >&6; } 5393 5394 GLIBC21="$ac_cv_gnu_library_2_1" 5395 5396 5397 5398 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 5400$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 5401if ${gt_cv_int_divbyzero_sigfpe+:} false; then : 5402 $as_echo_n "(cached) " >&6 5403else 5404 5405 if test "$cross_compiling" = yes; then : 5406 5407 # Guess based on the CPU. 5408 case "$host_cpu" in 5409 alpha* | i3456786 | m68k | s390*) 5410 gt_cv_int_divbyzero_sigfpe="guessing yes";; 5411 *) 5412 gt_cv_int_divbyzero_sigfpe="guessing no";; 5413 esac 5414 5415else 5416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5417/* end confdefs.h. */ 5418 5419#include <stdlib.h> 5420#include <signal.h> 5421 5422static void 5423#ifdef __cplusplus 5424sigfpe_handler (int sig) 5425#else 5426sigfpe_handler (sig) int sig; 5427#endif 5428{ 5429 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 5430 exit (sig != SIGFPE); 5431} 5432 5433int x = 1; 5434int y = 0; 5435int z; 5436int nan; 5437 5438int main () 5439{ 5440 signal (SIGFPE, sigfpe_handler); 5441/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 5442#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 5443 signal (SIGTRAP, sigfpe_handler); 5444#endif 5445/* Linux/SPARC yields signal SIGILL. */ 5446#if defined (__sparc__) && defined (__linux__) 5447 signal (SIGILL, sigfpe_handler); 5448#endif 5449 5450 z = x / y; 5451 nan = y / y; 5452 exit (1); 5453} 5454 5455_ACEOF 5456if ac_fn_c_try_run "$LINENO"; then : 5457 gt_cv_int_divbyzero_sigfpe=yes 5458else 5459 gt_cv_int_divbyzero_sigfpe=no 5460fi 5461rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5462 conftest.$ac_objext conftest.beam conftest.$ac_ext 5463fi 5464 5465 5466fi 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 5468$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 5469 case "$gt_cv_int_divbyzero_sigfpe" in 5470 *yes) value=1;; 5471 *) value=0;; 5472 esac 5473 5474cat >>confdefs.h <<_ACEOF 5475#define INTDIV0_RAISES_SIGFPE $value 5476_ACEOF 5477 5478 5479 5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 5481$as_echo_n "checking for inttypes.h... " >&6; } 5482if ${jm_ac_cv_header_inttypes_h+:} false; then : 5483 $as_echo_n "(cached) " >&6 5484else 5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5486/* end confdefs.h. */ 5487#include <sys/types.h> 5488#include <inttypes.h> 5489int 5490main () 5491{ 5492uintmax_t i = (uintmax_t) -1; 5493 ; 5494 return 0; 5495} 5496_ACEOF 5497if ac_fn_c_try_compile "$LINENO"; then : 5498 jm_ac_cv_header_inttypes_h=yes 5499else 5500 jm_ac_cv_header_inttypes_h=no 5501fi 5502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5503fi 5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 5505$as_echo "$jm_ac_cv_header_inttypes_h" >&6; } 5506 if test $jm_ac_cv_header_inttypes_h = yes; then 5507 5508cat >>confdefs.h <<_ACEOF 5509#define HAVE_INTTYPES_H_WITH_UINTMAX 1 5510_ACEOF 5511 5512 fi 5513 5514 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 5516$as_echo_n "checking for stdint.h... " >&6; } 5517if ${jm_ac_cv_header_stdint_h+:} false; then : 5518 $as_echo_n "(cached) " >&6 5519else 5520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5521/* end confdefs.h. */ 5522#include <sys/types.h> 5523#include <stdint.h> 5524int 5525main () 5526{ 5527uintmax_t i = (uintmax_t) -1; 5528 ; 5529 return 0; 5530} 5531_ACEOF 5532if ac_fn_c_try_compile "$LINENO"; then : 5533 jm_ac_cv_header_stdint_h=yes 5534else 5535 jm_ac_cv_header_stdint_h=no 5536fi 5537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5538fi 5539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 5540$as_echo "$jm_ac_cv_header_stdint_h" >&6; } 5541 if test $jm_ac_cv_header_stdint_h = yes; then 5542 5543cat >>confdefs.h <<_ACEOF 5544#define HAVE_STDINT_H_WITH_UINTMAX 1 5545_ACEOF 5546 5547 fi 5548 5549 5550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 5551$as_echo_n "checking for unsigned long long... " >&6; } 5552if ${ac_cv_type_unsigned_long_long+:} false; then : 5553 $as_echo_n "(cached) " >&6 5554else 5555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5556/* end confdefs.h. */ 5557unsigned long long ull = 1; int i = 63; 5558int 5559main () 5560{ 5561unsigned long long ullmax = (unsigned long long) -1; 5562 return ull << i | ull >> i | ullmax / ull | ullmax % ull; 5563 ; 5564 return 0; 5565} 5566_ACEOF 5567if ac_fn_c_try_link "$LINENO"; then : 5568 ac_cv_type_unsigned_long_long=yes 5569else 5570 ac_cv_type_unsigned_long_long=no 5571fi 5572rm -f core conftest.err conftest.$ac_objext \ 5573 conftest$ac_exeext conftest.$ac_ext 5574fi 5575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 5576$as_echo "$ac_cv_type_unsigned_long_long" >&6; } 5577 if test $ac_cv_type_unsigned_long_long = yes; then 5578 5579$as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h 5580 5581 fi 5582 5583 5584 5585 5586 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then 5587 5588 test $ac_cv_type_unsigned_long_long = yes \ 5589 && ac_type='unsigned long long' \ 5590 || ac_type='unsigned long' 5591 5592cat >>confdefs.h <<_ACEOF 5593#define uintmax_t $ac_type 5594_ACEOF 5595 5596 fi 5597 5598 5599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 5600$as_echo_n "checking for inttypes.h... " >&6; } 5601if ${gt_cv_header_inttypes_h+:} false; then : 5602 $as_echo_n "(cached) " >&6 5603else 5604 5605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5606/* end confdefs.h. */ 5607#include <sys/types.h> 5608#include <inttypes.h> 5609int 5610main () 5611{ 5612 5613 ; 5614 return 0; 5615} 5616_ACEOF 5617if ac_fn_c_try_compile "$LINENO"; then : 5618 gt_cv_header_inttypes_h=yes 5619else 5620 gt_cv_header_inttypes_h=no 5621fi 5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5623 5624fi 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 5626$as_echo "$gt_cv_header_inttypes_h" >&6; } 5627 if test $gt_cv_header_inttypes_h = yes; then 5628 5629cat >>confdefs.h <<_ACEOF 5630#define HAVE_INTTYPES_H 1 5631_ACEOF 5632 5633 fi 5634 5635 5636 5637 if test $gt_cv_header_inttypes_h = yes; then 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 5639$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 5640if ${gt_cv_inttypes_pri_broken+:} false; then : 5641 $as_echo_n "(cached) " >&6 5642else 5643 5644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5645/* end confdefs.h. */ 5646#include <inttypes.h> 5647#ifdef PRId32 5648char *p = PRId32; 5649#endif 5650 5651int 5652main () 5653{ 5654 5655 ; 5656 return 0; 5657} 5658_ACEOF 5659if ac_fn_c_try_compile "$LINENO"; then : 5660 gt_cv_inttypes_pri_broken=no 5661else 5662 gt_cv_inttypes_pri_broken=yes 5663fi 5664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5665 5666fi 5667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 5668$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 5669 fi 5670 if test "$gt_cv_inttypes_pri_broken" = yes; then 5671 5672cat >>confdefs.h <<_ACEOF 5673#define PRI_MACROS_BROKEN 1 5674_ACEOF 5675 5676 fi 5677 5678 5679 if test "X$prefix" = "XNONE"; then 5680 acl_final_prefix="$ac_default_prefix" 5681 else 5682 acl_final_prefix="$prefix" 5683 fi 5684 if test "X$exec_prefix" = "XNONE"; then 5685 acl_final_exec_prefix='${prefix}' 5686 else 5687 acl_final_exec_prefix="$exec_prefix" 5688 fi 5689 acl_save_prefix="$prefix" 5690 prefix="$acl_final_prefix" 5691 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 5692 prefix="$acl_save_prefix" 5693 5694 5695# Check whether --with-gnu-ld was given. 5696if test "${with_gnu_ld+set}" = set; then : 5697 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5698else 5699 with_gnu_ld=no 5700fi 5701 5702ac_prog=ld 5703if test "$GCC" = yes; then 5704 # Check if gcc -print-prog-name=ld gives a path. 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 5706$as_echo_n "checking for ld used by GCC... " >&6; } 5707 case $host in 5708 *-*-mingw*) 5709 # gcc leaves a trailing carriage return which upsets mingw 5710 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5711 *) 5712 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5713 esac 5714 case $ac_prog in 5715 # Accept absolute paths. 5716 [\\/]* | [A-Za-z]:[\\/]*) 5717 re_direlt='/[^/][^/]*/\.\./' 5718 # Canonicalize the path of ld 5719 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 5720 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 5721 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 5722 done 5723 test -z "$LD" && LD="$ac_prog" 5724 ;; 5725 "") 5726 # If it fails, then pretend we aren't using GCC. 5727 ac_prog=ld 5728 ;; 5729 *) 5730 # If it is relative, then search for the first ld in PATH. 5731 with_gnu_ld=unknown 5732 ;; 5733 esac 5734elif test "$with_gnu_ld" = yes; then 5735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5736$as_echo_n "checking for GNU ld... " >&6; } 5737else 5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5739$as_echo_n "checking for non-GNU ld... " >&6; } 5740fi 5741if ${acl_cv_path_LD+:} false; then : 5742 $as_echo_n "(cached) " >&6 5743else 5744 if test -z "$LD"; then 5745 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 5746 for ac_dir in $PATH; do 5747 test -z "$ac_dir" && ac_dir=. 5748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5749 acl_cv_path_LD="$ac_dir/$ac_prog" 5750 # Check to see if the program is GNU ld. I'd rather use --version, 5751 # but apparently some GNU ld's only accept -v. 5752 # Break only if it was the GNU/non-GNU ld that we prefer. 5753 if "$acl_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then 5754 test "$with_gnu_ld" != no && break 5755 else 5756 test "$with_gnu_ld" != yes && break 5757 fi 5758 fi 5759 done 5760 IFS="$ac_save_ifs" 5761else 5762 acl_cv_path_LD="$LD" # Let the user override the test with a path. 5763fi 5764fi 5765 5766LD="$acl_cv_path_LD" 5767if test -n "$LD"; then 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5769$as_echo "$LD" >&6; } 5770else 5771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5772$as_echo "no" >&6; } 5773fi 5774test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5776$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5777if ${acl_cv_prog_gnu_ld+:} false; then : 5778 $as_echo_n "(cached) " >&6 5779else 5780 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 5781if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then 5782 acl_cv_prog_gnu_ld=yes 5783else 5784 acl_cv_prog_gnu_ld=no 5785fi 5786fi 5787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 5788$as_echo "$acl_cv_prog_gnu_ld" >&6; } 5789with_gnu_ld=$acl_cv_prog_gnu_ld 5790 5791 5792 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 5794$as_echo_n "checking for shared library run path origin... " >&6; } 5795if ${acl_cv_rpath+:} false; then : 5796 $as_echo_n "(cached) " >&6 5797else 5798 5799 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 5800 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 5801 . ./conftest.sh 5802 rm -f ./conftest.sh 5803 acl_cv_rpath=done 5804 5805fi 5806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 5807$as_echo "$acl_cv_rpath" >&6; } 5808 wl="$acl_cv_wl" 5809 libext="$acl_cv_libext" 5810 shlibext="$acl_cv_shlibext" 5811 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 5812 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 5813 hardcode_direct="$acl_cv_hardcode_direct" 5814 hardcode_minus_L="$acl_cv_hardcode_minus_L" 5815 sys_lib_search_path_spec="$acl_cv_sys_lib_search_path_spec" 5816 sys_lib_dlsearch_path_spec="$acl_cv_sys_lib_dlsearch_path_spec" 5817 # Check whether --enable-rpath was given. 5818if test "${enable_rpath+set}" = set; then : 5819 enableval=$enable_rpath; : 5820else 5821 enable_rpath=yes 5822fi 5823 5824 5825 5826 5827 5828 5829 5830 5831 use_additional=yes 5832 5833 acl_save_prefix="$prefix" 5834 prefix="$acl_final_prefix" 5835 acl_save_exec_prefix="$exec_prefix" 5836 exec_prefix="$acl_final_exec_prefix" 5837 5838 eval additional_includedir=\"$includedir\" 5839 eval additional_libdir=\"$libdir\" 5840 5841 exec_prefix="$acl_save_exec_prefix" 5842 prefix="$acl_save_prefix" 5843 5844 5845# Check whether --with-libiconv-prefix was given. 5846if test "${with_libiconv_prefix+set}" = set; then : 5847 withval=$with_libiconv_prefix; 5848 if test "X$withval" = "Xno"; then 5849 use_additional=no 5850 else 5851 if test "X$withval" = "X"; then 5852 5853 acl_save_prefix="$prefix" 5854 prefix="$acl_final_prefix" 5855 acl_save_exec_prefix="$exec_prefix" 5856 exec_prefix="$acl_final_exec_prefix" 5857 5858 eval additional_includedir=\"$includedir\" 5859 eval additional_libdir=\"$libdir\" 5860 5861 exec_prefix="$acl_save_exec_prefix" 5862 prefix="$acl_save_prefix" 5863 5864 else 5865 additional_includedir="$withval/include" 5866 additional_libdir="$withval/lib" 5867 fi 5868 fi 5869 5870fi 5871 5872 LIBICONV= 5873 LTLIBICONV= 5874 INCICONV= 5875 rpathdirs= 5876 ltrpathdirs= 5877 names_already_handled= 5878 names_next_round='iconv ' 5879 while test -n "$names_next_round"; do 5880 names_this_round="$names_next_round" 5881 names_next_round= 5882 for name in $names_this_round; do 5883 already_handled= 5884 for n in $names_already_handled; do 5885 if test "$n" = "$name"; then 5886 already_handled=yes 5887 break 5888 fi 5889 done 5890 if test -z "$already_handled"; then 5891 names_already_handled="$names_already_handled $name" 5892 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 5893 eval value=\"\$HAVE_LIB$uppername\" 5894 if test -n "$value"; then 5895 if test "$value" = yes; then 5896 eval value=\"\$LIB$uppername\" 5897 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 5898 eval value=\"\$LTLIB$uppername\" 5899 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 5900 else 5901 : 5902 fi 5903 else 5904 found_dir= 5905 found_la= 5906 found_so= 5907 found_a= 5908 if test $use_additional = yes; then 5909 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 5910 found_dir="$additional_libdir" 5911 found_so="$additional_libdir/lib$name.$shlibext" 5912 if test -f "$additional_libdir/lib$name.la"; then 5913 found_la="$additional_libdir/lib$name.la" 5914 fi 5915 else 5916 if test -f "$additional_libdir/lib$name.$libext"; then 5917 found_dir="$additional_libdir" 5918 found_a="$additional_libdir/lib$name.$libext" 5919 if test -f "$additional_libdir/lib$name.la"; then 5920 found_la="$additional_libdir/lib$name.la" 5921 fi 5922 fi 5923 fi 5924 fi 5925 if test "X$found_dir" = "X"; then 5926 for x in $LDFLAGS $LTLIBICONV; do 5927 5928 acl_save_prefix="$prefix" 5929 prefix="$acl_final_prefix" 5930 acl_save_exec_prefix="$exec_prefix" 5931 exec_prefix="$acl_final_exec_prefix" 5932 eval x=\"$x\" 5933 exec_prefix="$acl_save_exec_prefix" 5934 prefix="$acl_save_prefix" 5935 5936 case "$x" in 5937 -L*) 5938 dir=`echo "X$x" | sed -e 's/^X-L//'` 5939 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 5940 found_dir="$dir" 5941 found_so="$dir/lib$name.$shlibext" 5942 if test -f "$dir/lib$name.la"; then 5943 found_la="$dir/lib$name.la" 5944 fi 5945 else 5946 if test -f "$dir/lib$name.$libext"; then 5947 found_dir="$dir" 5948 found_a="$dir/lib$name.$libext" 5949 if test -f "$dir/lib$name.la"; then 5950 found_la="$dir/lib$name.la" 5951 fi 5952 fi 5953 fi 5954 ;; 5955 esac 5956 if test "X$found_dir" != "X"; then 5957 break 5958 fi 5959 done 5960 fi 5961 if test "X$found_dir" != "X"; then 5962 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 5963 if test "X$found_so" != "X"; then 5964 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 5965 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5966 else 5967 haveit= 5968 for x in $ltrpathdirs; do 5969 if test "X$x" = "X$found_dir"; then 5970 haveit=yes 5971 break 5972 fi 5973 done 5974 if test -z "$haveit"; then 5975 ltrpathdirs="$ltrpathdirs $found_dir" 5976 fi 5977 if test "$hardcode_direct" = yes; then 5978 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5979 else 5980 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 5981 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 5982 haveit= 5983 for x in $rpathdirs; do 5984 if test "X$x" = "X$found_dir"; then 5985 haveit=yes 5986 break 5987 fi 5988 done 5989 if test -z "$haveit"; then 5990 rpathdirs="$rpathdirs $found_dir" 5991 fi 5992 else 5993 haveit= 5994 for x in $LDFLAGS $LIBICONV; do 5995 5996 acl_save_prefix="$prefix" 5997 prefix="$acl_final_prefix" 5998 acl_save_exec_prefix="$exec_prefix" 5999 exec_prefix="$acl_final_exec_prefix" 6000 eval x=\"$x\" 6001 exec_prefix="$acl_save_exec_prefix" 6002 prefix="$acl_save_prefix" 6003 6004 if test "X$x" = "X-L$found_dir"; then 6005 haveit=yes 6006 break 6007 fi 6008 done 6009 if test -z "$haveit"; then 6010 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 6011 fi 6012 if test "$hardcode_minus_L" != no; then 6013 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 6014 else 6015 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6016 fi 6017 fi 6018 fi 6019 fi 6020 else 6021 if test "X$found_a" != "X"; then 6022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 6023 else 6024 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 6025 fi 6026 fi 6027 additional_includedir= 6028 case "$found_dir" in 6029 */lib | */lib/) 6030 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 6031 additional_includedir="$basedir/include" 6032 ;; 6033 esac 6034 if test "X$additional_includedir" != "X"; then 6035 if test "X$additional_includedir" != "X/usr/include"; then 6036 haveit= 6037 if test "X$additional_includedir" = "X/usr/local/include"; then 6038 if test -n "$GCC"; then 6039 case $host_os in 6040 linux*) haveit=yes;; 6041 esac 6042 fi 6043 fi 6044 if test -z "$haveit"; then 6045 for x in $CPPFLAGS $INCICONV; do 6046 6047 acl_save_prefix="$prefix" 6048 prefix="$acl_final_prefix" 6049 acl_save_exec_prefix="$exec_prefix" 6050 exec_prefix="$acl_final_exec_prefix" 6051 eval x=\"$x\" 6052 exec_prefix="$acl_save_exec_prefix" 6053 prefix="$acl_save_prefix" 6054 6055 if test "X$x" = "X-I$additional_includedir"; then 6056 haveit=yes 6057 break 6058 fi 6059 done 6060 if test -z "$haveit"; then 6061 if test -d "$additional_includedir"; then 6062 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 6063 fi 6064 fi 6065 fi 6066 fi 6067 fi 6068 if test -n "$found_la"; then 6069 save_libdir="$libdir" 6070 case "$found_la" in 6071 */* | *\\*) . "$found_la" ;; 6072 *) . "./$found_la" ;; 6073 esac 6074 libdir="$save_libdir" 6075 for dep in $dependency_libs; do 6076 case "$dep" in 6077 -L*) 6078 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6079 if test "X$additional_libdir" != "X/usr/lib"; then 6080 haveit= 6081 if test "X$additional_libdir" = "X/usr/local/lib"; then 6082 if test -n "$GCC"; then 6083 case $host_os in 6084 linux*) haveit=yes;; 6085 esac 6086 fi 6087 fi 6088 if test -z "$haveit"; then 6089 haveit= 6090 for x in $LDFLAGS $LIBICONV; do 6091 6092 acl_save_prefix="$prefix" 6093 prefix="$acl_final_prefix" 6094 acl_save_exec_prefix="$exec_prefix" 6095 exec_prefix="$acl_final_exec_prefix" 6096 eval x=\"$x\" 6097 exec_prefix="$acl_save_exec_prefix" 6098 prefix="$acl_save_prefix" 6099 6100 if test "X$x" = "X-L$additional_libdir"; then 6101 haveit=yes 6102 break 6103 fi 6104 done 6105 if test -z "$haveit"; then 6106 if test -d "$additional_libdir"; then 6107 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 6108 fi 6109 fi 6110 haveit= 6111 for x in $LDFLAGS $LTLIBICONV; do 6112 6113 acl_save_prefix="$prefix" 6114 prefix="$acl_final_prefix" 6115 acl_save_exec_prefix="$exec_prefix" 6116 exec_prefix="$acl_final_exec_prefix" 6117 eval x=\"$x\" 6118 exec_prefix="$acl_save_exec_prefix" 6119 prefix="$acl_save_prefix" 6120 6121 if test "X$x" = "X-L$additional_libdir"; then 6122 haveit=yes 6123 break 6124 fi 6125 done 6126 if test -z "$haveit"; then 6127 if test -d "$additional_libdir"; then 6128 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 6129 fi 6130 fi 6131 fi 6132 fi 6133 ;; 6134 -R*) 6135 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6136 if test "$enable_rpath" != no; then 6137 haveit= 6138 for x in $rpathdirs; do 6139 if test "X$x" = "X$dir"; then 6140 haveit=yes 6141 break 6142 fi 6143 done 6144 if test -z "$haveit"; then 6145 rpathdirs="$rpathdirs $dir" 6146 fi 6147 haveit= 6148 for x in $ltrpathdirs; do 6149 if test "X$x" = "X$dir"; then 6150 haveit=yes 6151 break 6152 fi 6153 done 6154 if test -z "$haveit"; then 6155 ltrpathdirs="$ltrpathdirs $dir" 6156 fi 6157 fi 6158 ;; 6159 -l*) 6160 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6161 ;; 6162 *.la) 6163 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6164 ;; 6165 *) 6166 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 6167 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 6168 ;; 6169 esac 6170 done 6171 fi 6172 else 6173 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 6174 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 6175 fi 6176 fi 6177 fi 6178 done 6179 done 6180 if test "X$rpathdirs" != "X"; then 6181 if test -n "$hardcode_libdir_separator"; then 6182 alldirs= 6183 for found_dir in $rpathdirs; do 6184 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 6185 done 6186 acl_save_libdir="$libdir" 6187 libdir="$alldirs" 6188 eval flag=\"$hardcode_libdir_flag_spec\" 6189 libdir="$acl_save_libdir" 6190 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6191 else 6192 for found_dir in $rpathdirs; do 6193 acl_save_libdir="$libdir" 6194 libdir="$found_dir" 6195 eval flag=\"$hardcode_libdir_flag_spec\" 6196 libdir="$acl_save_libdir" 6197 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 6198 done 6199 fi 6200 fi 6201 if test "X$ltrpathdirs" != "X"; then 6202 for found_dir in $ltrpathdirs; do 6203 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 6204 done 6205 fi 6206 6207 6208 6209 6210 for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ 6211stdlib.h string.h unistd.h sys/param.h 6212do : 6213 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6214ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6215if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6216 cat >>confdefs.h <<_ACEOF 6217#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6218_ACEOF 6219 6220fi 6221 6222done 6223 6224 for ac_func in feof_unlocked fgets_unlocked getc_unlocked getcwd getegid \ 6225geteuid getgid getuid mempcpy munmap putenv setenv setlocale stpcpy \ 6226strcasecmp strdup strtoul tsearch __argz_count __argz_stringify __argz_next 6227do : 6228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 6229ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 6230if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 6231 cat >>confdefs.h <<_ACEOF 6232#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 6233_ACEOF 6234 6235fi 6236done 6237 6238 6239 6240 6241 6242 6243 6244 am_save_CPPFLAGS="$CPPFLAGS" 6245 6246 for element in $INCICONV; do 6247 haveit= 6248 for x in $CPPFLAGS; do 6249 6250 acl_save_prefix="$prefix" 6251 prefix="$acl_final_prefix" 6252 acl_save_exec_prefix="$exec_prefix" 6253 exec_prefix="$acl_final_exec_prefix" 6254 eval x=\"$x\" 6255 exec_prefix="$acl_save_exec_prefix" 6256 prefix="$acl_save_prefix" 6257 6258 if test "X$x" = "X$element"; then 6259 haveit=yes 6260 break 6261 fi 6262 done 6263 if test -z "$haveit"; then 6264 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 6265 fi 6266 done 6267 6268 6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 6270$as_echo_n "checking for iconv... " >&6; } 6271if ${am_cv_func_iconv+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 6275 am_cv_func_iconv="no, consider installing GNU libiconv" 6276 am_cv_lib_iconv=no 6277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6278/* end confdefs.h. */ 6279#include <stdlib.h> 6280#include <iconv.h> 6281int 6282main () 6283{ 6284iconv_t cd = iconv_open("",""); 6285 iconv(cd,NULL,NULL,NULL,NULL); 6286 iconv_close(cd); 6287 ; 6288 return 0; 6289} 6290_ACEOF 6291if ac_fn_c_try_link "$LINENO"; then : 6292 am_cv_func_iconv=yes 6293fi 6294rm -f core conftest.err conftest.$ac_objext \ 6295 conftest$ac_exeext conftest.$ac_ext 6296 if test "$am_cv_func_iconv" != yes; then 6297 am_save_LIBS="$LIBS" 6298 LIBS="$LIBS $LIBICONV" 6299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6300/* end confdefs.h. */ 6301#include <stdlib.h> 6302#include <iconv.h> 6303int 6304main () 6305{ 6306iconv_t cd = iconv_open("",""); 6307 iconv(cd,NULL,NULL,NULL,NULL); 6308 iconv_close(cd); 6309 ; 6310 return 0; 6311} 6312_ACEOF 6313if ac_fn_c_try_link "$LINENO"; then : 6314 am_cv_lib_iconv=yes 6315 am_cv_func_iconv=yes 6316fi 6317rm -f core conftest.err conftest.$ac_objext \ 6318 conftest$ac_exeext conftest.$ac_ext 6319 LIBS="$am_save_LIBS" 6320 fi 6321 6322fi 6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 6324$as_echo "$am_cv_func_iconv" >&6; } 6325 if test "$am_cv_func_iconv" = yes; then 6326 6327$as_echo "#define HAVE_ICONV 1" >>confdefs.h 6328 6329 fi 6330 if test "$am_cv_lib_iconv" = yes; then 6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 6332$as_echo_n "checking how to link with libiconv... " >&6; } 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 6334$as_echo "$LIBICONV" >&6; } 6335 else 6336 CPPFLAGS="$am_save_CPPFLAGS" 6337 LIBICONV= 6338 LTLIBICONV= 6339 fi 6340 6341 6342 6343 if test "$am_cv_func_iconv" = yes; then 6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 6345$as_echo_n "checking for iconv declaration... " >&6; } 6346 if ${am_cv_proto_iconv+:} false; then : 6347 $as_echo_n "(cached) " >&6 6348else 6349 6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6351/* end confdefs.h. */ 6352 6353#include <stdlib.h> 6354#include <iconv.h> 6355extern 6356#ifdef __cplusplus 6357"C" 6358#endif 6359#if defined(__STDC__) || defined(__cplusplus) 6360size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 6361#else 6362size_t iconv(); 6363#endif 6364 6365int 6366main () 6367{ 6368 6369 ; 6370 return 0; 6371} 6372_ACEOF 6373if ac_fn_c_try_compile "$LINENO"; then : 6374 am_cv_proto_iconv_arg1="" 6375else 6376 am_cv_proto_iconv_arg1="const" 6377fi 6378rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6379 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 6380fi 6381 6382 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- 6384 }$am_cv_proto_iconv" >&5 6385$as_echo "${ac_t:- 6386 }$am_cv_proto_iconv" >&6; } 6387 6388cat >>confdefs.h <<_ACEOF 6389#define ICONV_CONST $am_cv_proto_iconv_arg1 6390_ACEOF 6391 6392 fi 6393 6394 6395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 6396$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 6397if ${am_cv_langinfo_codeset+:} false; then : 6398 $as_echo_n "(cached) " >&6 6399else 6400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6401/* end confdefs.h. */ 6402#include <langinfo.h> 6403int 6404main () 6405{ 6406char* cs = nl_langinfo(CODESET); 6407 ; 6408 return 0; 6409} 6410_ACEOF 6411if ac_fn_c_try_link "$LINENO"; then : 6412 am_cv_langinfo_codeset=yes 6413else 6414 am_cv_langinfo_codeset=no 6415fi 6416rm -f core conftest.err conftest.$ac_objext \ 6417 conftest$ac_exeext conftest.$ac_ext 6418 6419fi 6420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 6421$as_echo "$am_cv_langinfo_codeset" >&6; } 6422 if test $am_cv_langinfo_codeset = yes; then 6423 6424$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 6425 6426 fi 6427 6428 if test $ac_cv_header_locale_h = yes; then 6429 6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 6431$as_echo_n "checking for LC_MESSAGES... " >&6; } 6432if ${am_cv_val_LC_MESSAGES+:} false; then : 6433 $as_echo_n "(cached) " >&6 6434else 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437#include <locale.h> 6438int 6439main () 6440{ 6441return LC_MESSAGES 6442 ; 6443 return 0; 6444} 6445_ACEOF 6446if ac_fn_c_try_link "$LINENO"; then : 6447 am_cv_val_LC_MESSAGES=yes 6448else 6449 am_cv_val_LC_MESSAGES=no 6450fi 6451rm -f core conftest.err conftest.$ac_objext \ 6452 conftest$ac_exeext conftest.$ac_ext 6453fi 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 6455$as_echo "$am_cv_val_LC_MESSAGES" >&6; } 6456 if test $am_cv_val_LC_MESSAGES = yes; then 6457 6458$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 6459 6460 fi 6461 6462 fi 6463 6464 for ac_prog in bison 6465do 6466 # Extract the first word of "$ac_prog", so it can be a program name with args. 6467set dummy $ac_prog; ac_word=$2 6468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6469$as_echo_n "checking for $ac_word... " >&6; } 6470if ${ac_cv_prog_INTLBISON+:} false; then : 6471 $as_echo_n "(cached) " >&6 6472else 6473 if test -n "$INTLBISON"; then 6474 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 6475else 6476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6477for as_dir in $PATH 6478do 6479 IFS=$as_save_IFS 6480 test -z "$as_dir" && as_dir=. 6481 for ac_exec_ext in '' $ac_executable_extensions; do 6482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6483 ac_cv_prog_INTLBISON="$ac_prog" 6484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6485 break 2 6486 fi 6487done 6488 done 6489IFS=$as_save_IFS 6490 6491fi 6492fi 6493INTLBISON=$ac_cv_prog_INTLBISON 6494if test -n "$INTLBISON"; then 6495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 6496$as_echo "$INTLBISON" >&6; } 6497else 6498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6499$as_echo "no" >&6; } 6500fi 6501 6502 6503 test -n "$INTLBISON" && break 6504done 6505 6506 if test -z "$INTLBISON"; then 6507 ac_verc_fail=yes 6508 else 6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 6510$as_echo_n "checking version of bison... " >&6; } 6511 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 6512 case $ac_prog_version in 6513 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 6514 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 6515 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 6516 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 6517 esac 6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 6519$as_echo "$ac_prog_version" >&6; } 6520 fi 6521 if test $ac_verc_fail = yes; then 6522 INTLBISON=: 6523 fi 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 6540$as_echo_n "checking whether NLS is requested... " >&6; } 6541 # Check whether --enable-nls was given. 6542if test "${enable_nls+set}" = set; then : 6543 enableval=$enable_nls; USE_NLS=$enableval 6544else 6545 USE_NLS=yes 6546fi 6547 6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 6549$as_echo "$USE_NLS" >&6; } 6550 6551 6552 6553 BUILD_INCLUDED_LIBINTL=no 6554 USE_INCLUDED_LIBINTL=no 6555 6556 LIBINTL= 6557 LTLIBINTL= 6558 POSUB= 6559 6560 if test "$USE_NLS" = "yes"; then 6561 gt_use_preinstalled_gnugettext=no 6562 6563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 6564$as_echo_n "checking whether included gettext is requested... " >&6; } 6565 6566# Check whether --with-included-gettext was given. 6567if test "${with_included_gettext+set}" = set; then : 6568 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 6569else 6570 nls_cv_force_use_gnu_gettext=no 6571fi 6572 6573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 6574$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 6575 6576 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 6577 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 6578 6579 6580 6581 6582 6583 6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 6585$as_echo_n "checking for GNU gettext in libc... " >&6; } 6586if ${gt_cv_func_gnugettext1_libc+:} false; then : 6587 $as_echo_n "(cached) " >&6 6588else 6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6590/* end confdefs.h. */ 6591#include <libintl.h> 6592extern int _nl_msg_cat_cntr; 6593extern int *_nl_domain_bindings; 6594int 6595main () 6596{ 6597bindtextdomain ("", ""); 6598return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings 6599 ; 6600 return 0; 6601} 6602_ACEOF 6603if ac_fn_c_try_link "$LINENO"; then : 6604 gt_cv_func_gnugettext1_libc=yes 6605else 6606 gt_cv_func_gnugettext1_libc=no 6607fi 6608rm -f core conftest.err conftest.$ac_objext \ 6609 conftest$ac_exeext conftest.$ac_ext 6610fi 6611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 6612$as_echo "$gt_cv_func_gnugettext1_libc" >&6; } 6613 6614 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 6615 6616 6617 6618 use_additional=yes 6619 6620 acl_save_prefix="$prefix" 6621 prefix="$acl_final_prefix" 6622 acl_save_exec_prefix="$exec_prefix" 6623 exec_prefix="$acl_final_exec_prefix" 6624 6625 eval additional_includedir=\"$includedir\" 6626 eval additional_libdir=\"$libdir\" 6627 6628 exec_prefix="$acl_save_exec_prefix" 6629 prefix="$acl_save_prefix" 6630 6631 6632# Check whether --with-libintl-prefix was given. 6633if test "${with_libintl_prefix+set}" = set; then : 6634 withval=$with_libintl_prefix; 6635 if test "X$withval" = "Xno"; then 6636 use_additional=no 6637 else 6638 if test "X$withval" = "X"; then 6639 6640 acl_save_prefix="$prefix" 6641 prefix="$acl_final_prefix" 6642 acl_save_exec_prefix="$exec_prefix" 6643 exec_prefix="$acl_final_exec_prefix" 6644 6645 eval additional_includedir=\"$includedir\" 6646 eval additional_libdir=\"$libdir\" 6647 6648 exec_prefix="$acl_save_exec_prefix" 6649 prefix="$acl_save_prefix" 6650 6651 else 6652 additional_includedir="$withval/include" 6653 additional_libdir="$withval/lib" 6654 fi 6655 fi 6656 6657fi 6658 6659 LIBINTL= 6660 LTLIBINTL= 6661 INCINTL= 6662 rpathdirs= 6663 ltrpathdirs= 6664 names_already_handled= 6665 names_next_round='intl ' 6666 while test -n "$names_next_round"; do 6667 names_this_round="$names_next_round" 6668 names_next_round= 6669 for name in $names_this_round; do 6670 already_handled= 6671 for n in $names_already_handled; do 6672 if test "$n" = "$name"; then 6673 already_handled=yes 6674 break 6675 fi 6676 done 6677 if test -z "$already_handled"; then 6678 names_already_handled="$names_already_handled $name" 6679 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 6680 eval value=\"\$HAVE_LIB$uppername\" 6681 if test -n "$value"; then 6682 if test "$value" = yes; then 6683 eval value=\"\$LIB$uppername\" 6684 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 6685 eval value=\"\$LTLIB$uppername\" 6686 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 6687 else 6688 : 6689 fi 6690 else 6691 found_dir= 6692 found_la= 6693 found_so= 6694 found_a= 6695 if test $use_additional = yes; then 6696 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then 6697 found_dir="$additional_libdir" 6698 found_so="$additional_libdir/lib$name.$shlibext" 6699 if test -f "$additional_libdir/lib$name.la"; then 6700 found_la="$additional_libdir/lib$name.la" 6701 fi 6702 else 6703 if test -f "$additional_libdir/lib$name.$libext"; then 6704 found_dir="$additional_libdir" 6705 found_a="$additional_libdir/lib$name.$libext" 6706 if test -f "$additional_libdir/lib$name.la"; then 6707 found_la="$additional_libdir/lib$name.la" 6708 fi 6709 fi 6710 fi 6711 fi 6712 if test "X$found_dir" = "X"; then 6713 for x in $LDFLAGS $LTLIBINTL; do 6714 6715 acl_save_prefix="$prefix" 6716 prefix="$acl_final_prefix" 6717 acl_save_exec_prefix="$exec_prefix" 6718 exec_prefix="$acl_final_exec_prefix" 6719 eval x=\"$x\" 6720 exec_prefix="$acl_save_exec_prefix" 6721 prefix="$acl_save_prefix" 6722 6723 case "$x" in 6724 -L*) 6725 dir=`echo "X$x" | sed -e 's/^X-L//'` 6726 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then 6727 found_dir="$dir" 6728 found_so="$dir/lib$name.$shlibext" 6729 if test -f "$dir/lib$name.la"; then 6730 found_la="$dir/lib$name.la" 6731 fi 6732 else 6733 if test -f "$dir/lib$name.$libext"; then 6734 found_dir="$dir" 6735 found_a="$dir/lib$name.$libext" 6736 if test -f "$dir/lib$name.la"; then 6737 found_la="$dir/lib$name.la" 6738 fi 6739 fi 6740 fi 6741 ;; 6742 esac 6743 if test "X$found_dir" != "X"; then 6744 break 6745 fi 6746 done 6747 fi 6748 if test "X$found_dir" != "X"; then 6749 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 6750 if test "X$found_so" != "X"; then 6751 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then 6752 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6753 else 6754 haveit= 6755 for x in $ltrpathdirs; do 6756 if test "X$x" = "X$found_dir"; then 6757 haveit=yes 6758 break 6759 fi 6760 done 6761 if test -z "$haveit"; then 6762 ltrpathdirs="$ltrpathdirs $found_dir" 6763 fi 6764 if test "$hardcode_direct" = yes; then 6765 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6766 else 6767 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then 6768 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6769 haveit= 6770 for x in $rpathdirs; do 6771 if test "X$x" = "X$found_dir"; then 6772 haveit=yes 6773 break 6774 fi 6775 done 6776 if test -z "$haveit"; then 6777 rpathdirs="$rpathdirs $found_dir" 6778 fi 6779 else 6780 haveit= 6781 for x in $LDFLAGS $LIBINTL; do 6782 6783 acl_save_prefix="$prefix" 6784 prefix="$acl_final_prefix" 6785 acl_save_exec_prefix="$exec_prefix" 6786 exec_prefix="$acl_final_exec_prefix" 6787 eval x=\"$x\" 6788 exec_prefix="$acl_save_exec_prefix" 6789 prefix="$acl_save_prefix" 6790 6791 if test "X$x" = "X-L$found_dir"; then 6792 haveit=yes 6793 break 6794 fi 6795 done 6796 if test -z "$haveit"; then 6797 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 6798 fi 6799 if test "$hardcode_minus_L" != no; then 6800 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 6801 else 6802 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 6803 fi 6804 fi 6805 fi 6806 fi 6807 else 6808 if test "X$found_a" != "X"; then 6809 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 6810 else 6811 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 6812 fi 6813 fi 6814 additional_includedir= 6815 case "$found_dir" in 6816 */lib | */lib/) 6817 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` 6818 additional_includedir="$basedir/include" 6819 ;; 6820 esac 6821 if test "X$additional_includedir" != "X"; then 6822 if test "X$additional_includedir" != "X/usr/include"; then 6823 haveit= 6824 if test "X$additional_includedir" = "X/usr/local/include"; then 6825 if test -n "$GCC"; then 6826 case $host_os in 6827 linux*) haveit=yes;; 6828 esac 6829 fi 6830 fi 6831 if test -z "$haveit"; then 6832 for x in $CPPFLAGS $INCINTL; do 6833 6834 acl_save_prefix="$prefix" 6835 prefix="$acl_final_prefix" 6836 acl_save_exec_prefix="$exec_prefix" 6837 exec_prefix="$acl_final_exec_prefix" 6838 eval x=\"$x\" 6839 exec_prefix="$acl_save_exec_prefix" 6840 prefix="$acl_save_prefix" 6841 6842 if test "X$x" = "X-I$additional_includedir"; then 6843 haveit=yes 6844 break 6845 fi 6846 done 6847 if test -z "$haveit"; then 6848 if test -d "$additional_includedir"; then 6849 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 6850 fi 6851 fi 6852 fi 6853 fi 6854 fi 6855 if test -n "$found_la"; then 6856 save_libdir="$libdir" 6857 case "$found_la" in 6858 */* | *\\*) . "$found_la" ;; 6859 *) . "./$found_la" ;; 6860 esac 6861 libdir="$save_libdir" 6862 for dep in $dependency_libs; do 6863 case "$dep" in 6864 -L*) 6865 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 6866 if test "X$additional_libdir" != "X/usr/lib"; then 6867 haveit= 6868 if test "X$additional_libdir" = "X/usr/local/lib"; then 6869 if test -n "$GCC"; then 6870 case $host_os in 6871 linux*) haveit=yes;; 6872 esac 6873 fi 6874 fi 6875 if test -z "$haveit"; then 6876 haveit= 6877 for x in $LDFLAGS $LIBINTL; do 6878 6879 acl_save_prefix="$prefix" 6880 prefix="$acl_final_prefix" 6881 acl_save_exec_prefix="$exec_prefix" 6882 exec_prefix="$acl_final_exec_prefix" 6883 eval x=\"$x\" 6884 exec_prefix="$acl_save_exec_prefix" 6885 prefix="$acl_save_prefix" 6886 6887 if test "X$x" = "X-L$additional_libdir"; then 6888 haveit=yes 6889 break 6890 fi 6891 done 6892 if test -z "$haveit"; then 6893 if test -d "$additional_libdir"; then 6894 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 6895 fi 6896 fi 6897 haveit= 6898 for x in $LDFLAGS $LTLIBINTL; do 6899 6900 acl_save_prefix="$prefix" 6901 prefix="$acl_final_prefix" 6902 acl_save_exec_prefix="$exec_prefix" 6903 exec_prefix="$acl_final_exec_prefix" 6904 eval x=\"$x\" 6905 exec_prefix="$acl_save_exec_prefix" 6906 prefix="$acl_save_prefix" 6907 6908 if test "X$x" = "X-L$additional_libdir"; then 6909 haveit=yes 6910 break 6911 fi 6912 done 6913 if test -z "$haveit"; then 6914 if test -d "$additional_libdir"; then 6915 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 6916 fi 6917 fi 6918 fi 6919 fi 6920 ;; 6921 -R*) 6922 dir=`echo "X$dep" | sed -e 's/^X-R//'` 6923 if test "$enable_rpath" != no; then 6924 haveit= 6925 for x in $rpathdirs; do 6926 if test "X$x" = "X$dir"; then 6927 haveit=yes 6928 break 6929 fi 6930 done 6931 if test -z "$haveit"; then 6932 rpathdirs="$rpathdirs $dir" 6933 fi 6934 haveit= 6935 for x in $ltrpathdirs; do 6936 if test "X$x" = "X$dir"; then 6937 haveit=yes 6938 break 6939 fi 6940 done 6941 if test -z "$haveit"; then 6942 ltrpathdirs="$ltrpathdirs $dir" 6943 fi 6944 fi 6945 ;; 6946 -l*) 6947 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 6948 ;; 6949 *.la) 6950 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 6951 ;; 6952 *) 6953 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 6954 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 6955 ;; 6956 esac 6957 done 6958 fi 6959 else 6960 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 6961 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 6962 fi 6963 fi 6964 fi 6965 done 6966 done 6967 if test "X$rpathdirs" != "X"; then 6968 if test -n "$hardcode_libdir_separator"; then 6969 alldirs= 6970 for found_dir in $rpathdirs; do 6971 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" 6972 done 6973 acl_save_libdir="$libdir" 6974 libdir="$alldirs" 6975 eval flag=\"$hardcode_libdir_flag_spec\" 6976 libdir="$acl_save_libdir" 6977 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 6978 else 6979 for found_dir in $rpathdirs; do 6980 acl_save_libdir="$libdir" 6981 libdir="$found_dir" 6982 eval flag=\"$hardcode_libdir_flag_spec\" 6983 libdir="$acl_save_libdir" 6984 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 6985 done 6986 fi 6987 fi 6988 if test "X$ltrpathdirs" != "X"; then 6989 for found_dir in $ltrpathdirs; do 6990 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 6991 done 6992 fi 6993 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 6995$as_echo_n "checking for GNU gettext in libintl... " >&6; } 6996if ${gt_cv_func_gnugettext1_libintl+:} false; then : 6997 $as_echo_n "(cached) " >&6 6998else 6999 gt_save_CPPFLAGS="$CPPFLAGS" 7000 CPPFLAGS="$CPPFLAGS $INCINTL" 7001 gt_save_LIBS="$LIBS" 7002 LIBS="$LIBS $LIBINTL" 7003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7004/* end confdefs.h. */ 7005#include <libintl.h> 7006extern int _nl_msg_cat_cntr; 7007extern 7008#ifdef __cplusplus 7009"C" 7010#endif 7011const char *_nl_expand_alias (); 7012int 7013main () 7014{ 7015bindtextdomain ("", ""); 7016return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 7017 ; 7018 return 0; 7019} 7020_ACEOF 7021if ac_fn_c_try_link "$LINENO"; then : 7022 gt_cv_func_gnugettext1_libintl=yes 7023else 7024 gt_cv_func_gnugettext1_libintl=no 7025fi 7026rm -f core conftest.err conftest.$ac_objext \ 7027 conftest$ac_exeext conftest.$ac_ext 7028 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then 7029 LIBS="$LIBS $LIBICONV" 7030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7031/* end confdefs.h. */ 7032#include <libintl.h> 7033extern int _nl_msg_cat_cntr; 7034extern 7035#ifdef __cplusplus 7036"C" 7037#endif 7038const char *_nl_expand_alias (); 7039int 7040main () 7041{ 7042bindtextdomain ("", ""); 7043return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) 7044 ; 7045 return 0; 7046} 7047_ACEOF 7048if ac_fn_c_try_link "$LINENO"; then : 7049 LIBINTL="$LIBINTL $LIBICONV" 7050 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 7051 gt_cv_func_gnugettext1_libintl=yes 7052 7053fi 7054rm -f core conftest.err conftest.$ac_objext \ 7055 conftest$ac_exeext conftest.$ac_ext 7056 fi 7057 CPPFLAGS="$gt_save_CPPFLAGS" 7058 LIBS="$gt_save_LIBS" 7059fi 7060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 7061$as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } 7062 fi 7063 7064 if test "$gt_cv_func_gnugettext1_libc" = "yes" \ 7065 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ 7066 && test "$PACKAGE" != gettext; }; then 7067 gt_use_preinstalled_gnugettext=yes 7068 else 7069 LIBINTL= 7070 LTLIBINTL= 7071 INCINTL= 7072 fi 7073 7074 7075 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 7076 nls_cv_use_gnu_gettext=yes 7077 fi 7078 fi 7079 7080 if test "$nls_cv_use_gnu_gettext" = "yes"; then 7081 INTLOBJS="\$(GETTOBJS)" 7082 BUILD_INCLUDED_LIBINTL=yes 7083 USE_INCLUDED_LIBINTL=yes 7084 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" 7085 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" 7086 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 7087 fi 7088 7089 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7090 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7091 CATOBJEXT=.gmo 7092 fi 7093 7094 7095 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 7096 || test "$nls_cv_use_gnu_gettext" = "yes"; then 7097 7098$as_echo "#define ENABLE_NLS 1" >>confdefs.h 7099 7100 else 7101 USE_NLS=no 7102 fi 7103 fi 7104 7105 if test "$USE_NLS" = "yes"; then 7106 7107 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 7108 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then 7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 7110$as_echo_n "checking how to link with libintl... " >&6; } 7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 7112$as_echo "$LIBINTL" >&6; } 7113 7114 for element in $INCINTL; do 7115 haveit= 7116 for x in $CPPFLAGS; do 7117 7118 acl_save_prefix="$prefix" 7119 prefix="$acl_final_prefix" 7120 acl_save_exec_prefix="$exec_prefix" 7121 exec_prefix="$acl_final_exec_prefix" 7122 eval x=\"$x\" 7123 exec_prefix="$acl_save_exec_prefix" 7124 prefix="$acl_save_prefix" 7125 7126 if test "X$x" = "X$element"; then 7127 haveit=yes 7128 break 7129 fi 7130 done 7131 if test -z "$haveit"; then 7132 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 7133 fi 7134 done 7135 7136 fi 7137 7138 7139$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 7140 7141 7142$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 7143 7144 fi 7145 7146 POSUB=po 7147 fi 7148 7149 7150 if test "$PACKAGE" = gettext; then 7151 BUILD_INCLUDED_LIBINTL=yes 7152 fi 7153 7154 7155 7156 7157 7158 7159 nls_cv_header_intl= 7160 nls_cv_header_libgt= 7161 7162 DATADIRNAME=share 7163 7164 7165 INSTOBJEXT=.mo 7166 7167 7168 GENCAT=gencat 7169 7170 7171 INTL_LIBTOOL_SUFFIX_PREFIX= 7172 7173 7174 7175 INTLLIBS="$LIBINTL" 7176 7177 7178 7179 7180 7181 7182 7183# The cast to long int works around a bug in the HP C Compiler 7184# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7185# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7186# This bug is HP SR number 8606223364. 7187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 7188$as_echo_n "checking size of unsigned long... " >&6; } 7189if ${ac_cv_sizeof_unsigned_long+:} false; then : 7190 $as_echo_n "(cached) " >&6 7191else 7192 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 7193 7194else 7195 if test "$ac_cv_type_unsigned_long" = yes; then 7196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7198as_fn_error 77 "cannot compute sizeof (unsigned long) 7199See \`config.log' for more details" "$LINENO" 5; } 7200 else 7201 ac_cv_sizeof_unsigned_long=0 7202 fi 7203fi 7204 7205fi 7206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 7207$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 7208 7209 7210 7211cat >>confdefs.h <<_ACEOF 7212#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 7213_ACEOF 7214 7215 7216# The cast to long int works around a bug in the HP C Compiler 7217# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7218# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7219# This bug is HP SR number 8606223364. 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5 7221$as_echo_n "checking size of unsigned int... " >&6; } 7222if ${ac_cv_sizeof_unsigned_int+:} false; then : 7223 $as_echo_n "(cached) " >&6 7224else 7225 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then : 7226 7227else 7228 if test "$ac_cv_type_unsigned_int" = yes; then 7229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7230$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7231as_fn_error 77 "cannot compute sizeof (unsigned int) 7232See \`config.log' for more details" "$LINENO" 5; } 7233 else 7234 ac_cv_sizeof_unsigned_int=0 7235 fi 7236fi 7237 7238fi 7239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5 7240$as_echo "$ac_cv_sizeof_unsigned_int" >&6; } 7241 7242 7243 7244cat >>confdefs.h <<_ACEOF 7245#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int 7246_ACEOF 7247 7248 7249 7250 7251have_gnome="no" 7252GNOME_INSTALL= 7253GNOME_UNINSTALL= 7254# Check whether --enable-gnome was given. 7255if test "${enable_gnome+set}" = set; then : 7256 enableval=$enable_gnome; 7257 if test "x${enable_gnome}" = "xno"; then 7258 : 7259 fi 7260 7261else 7262 7263 7264 succeeded=no 7265 7266 if test -z "$PKG_CONFIG"; then 7267 # Extract the first word of "pkg-config", so it can be a program name with args. 7268set dummy pkg-config; ac_word=$2 7269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7270$as_echo_n "checking for $ac_word... " >&6; } 7271if ${ac_cv_path_PKG_CONFIG+:} false; then : 7272 $as_echo_n "(cached) " >&6 7273else 7274 case $PKG_CONFIG in 7275 [\\/]* | ?:[\\/]*) 7276 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7277 ;; 7278 *) 7279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7280for as_dir in $PATH 7281do 7282 IFS=$as_save_IFS 7283 test -z "$as_dir" && as_dir=. 7284 for ac_exec_ext in '' $ac_executable_extensions; do 7285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7286 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7288 break 2 7289 fi 7290done 7291 done 7292IFS=$as_save_IFS 7293 7294 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7295 ;; 7296esac 7297fi 7298PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7299if test -n "$PKG_CONFIG"; then 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7301$as_echo "$PKG_CONFIG" >&6; } 7302else 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7304$as_echo "no" >&6; } 7305fi 7306 7307 7308 fi 7309 7310 if test "$PKG_CONFIG" = "no" ; then 7311 echo "*** The pkg-config script could not be found. Make sure it is" 7312 echo "*** in your path, or set the PKG_CONFIG environment variable" 7313 echo "*** to the full path to pkg-config." 7314 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 7315 else 7316 PKG_CONFIG_MIN_VERSION=0.9.0 7317 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 7318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libgnomeui-2.0 >= 2.0 gtk+-2.0 >= 2.6" >&5 7319$as_echo_n "checking for libgnomeui-2.0 >= 2.0 gtk+-2.0 >= 2.6... " >&6; } 7320 7321 if $PKG_CONFIG --exists "libgnomeui-2.0 >= 2.0 gtk+-2.0 >= 2.6" ; then 7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7323$as_echo "yes" >&6; } 7324 succeeded=yes 7325 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GNOME_CFLAGS" >&5 7327$as_echo_n "checking GNOME_CFLAGS... " >&6; } 7328 GNOME_CFLAGS=`$PKG_CONFIG --cflags "libgnomeui-2.0 >= 2.0 gtk+-2.0 >= 2.6"` 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNOME_CFLAGS" >&5 7330$as_echo "$GNOME_CFLAGS" >&6; } 7331 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GNOME_LIBS" >&5 7333$as_echo_n "checking GNOME_LIBS... " >&6; } 7334 GNOME_LIBS=`$PKG_CONFIG --libs "libgnomeui-2.0 >= 2.0 gtk+-2.0 >= 2.6"` 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNOME_LIBS" >&5 7336$as_echo "$GNOME_LIBS" >&6; } 7337 else 7338 GNOME_CFLAGS="" 7339 GNOME_LIBS="" 7340 ## If we have a custom action on failure, don't print errors, but 7341 ## do set a variable so people can do so. 7342 GNOME_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeui-2.0 >= 2.0 gtk+-2.0 >= 2.6"` 7343 7344 fi 7345 7346 7347 7348 else 7349 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 7350 echo "*** See http://www.freedesktop.org/software/pkgconfig" 7351 fi 7352 fi 7353 7354 if test $succeeded = yes; then 7355 7356 have_gnome="yes" 7357 7358$as_echo "#define HAVE_GNOME 1" >>confdefs.h 7359 7360 GNOME_INSTALL="install-nobinGNOME" 7361 GNOME_UNINSTALL="uninstall-nobinGNOME" 7362 7363 else 7364 7365 echo "*** Cannot find libgnomeui-2 on your system" 7366 echo "*** (or gtk+-2 >= 2.6)" 7367 7368 fi 7369 7370 7371 7372fi 7373 7374 7375 7376 7377MY_FOLD= 7378MY_FORTUNE= 7379# Extract the first word of "fortune", so it can be a program name with args. 7380set dummy fortune; ac_word=$2 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7382$as_echo_n "checking for $ac_word... " >&6; } 7383if ${ac_cv_prog_MY_FORTUNE+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 if test -n "$MY_FORTUNE"; then 7387 ac_cv_prog_MY_FORTUNE="$MY_FORTUNE" # Let the user override the test. 7388else 7389as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7390for as_dir in $PATH 7391do 7392 IFS=$as_save_IFS 7393 test -z "$as_dir" && as_dir=. 7394 for ac_exec_ext in '' $ac_executable_extensions; do 7395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7396 ac_cv_prog_MY_FORTUNE="yes" 7397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7398 break 2 7399 fi 7400done 7401 done 7402IFS=$as_save_IFS 7403 7404 test -z "$ac_cv_prog_MY_FORTUNE" && ac_cv_prog_MY_FORTUNE="no" 7405fi 7406fi 7407MY_FORTUNE=$ac_cv_prog_MY_FORTUNE 7408if test -n "$MY_FORTUNE"; then 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MY_FORTUNE" >&5 7410$as_echo "$MY_FORTUNE" >&6; } 7411else 7412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7413$as_echo "no" >&6; } 7414fi 7415 7416 7417# Extract the first word of "fold", so it can be a program name with args. 7418set dummy fold; ac_word=$2 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7420$as_echo_n "checking for $ac_word... " >&6; } 7421if ${ac_cv_prog_MY_FOLD+:} false; then : 7422 $as_echo_n "(cached) " >&6 7423else 7424 if test -n "$MY_FOLD"; then 7425 ac_cv_prog_MY_FOLD="$MY_FOLD" # Let the user override the test. 7426else 7427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7428for as_dir in $PATH 7429do 7430 IFS=$as_save_IFS 7431 test -z "$as_dir" && as_dir=. 7432 for ac_exec_ext in '' $ac_executable_extensions; do 7433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7434 ac_cv_prog_MY_FOLD="yes" 7435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7436 break 2 7437 fi 7438done 7439 done 7440IFS=$as_save_IFS 7441 7442 test -z "$ac_cv_prog_MY_FOLD" && ac_cv_prog_MY_FOLD="no" 7443fi 7444fi 7445MY_FOLD=$ac_cv_prog_MY_FOLD 7446if test -n "$MY_FOLD"; then 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MY_FOLD" >&5 7448$as_echo "$MY_FOLD" >&6; } 7449else 7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7451$as_echo "no" >&6; } 7452fi 7453 7454 7455if test ${MY_FOLD} = yes ; then 7456 if test $MY_FORTUNE = yes ; then 7457 7458$as_echo "#define HAVE_FORTUNE 1" >>confdefs.h 7459 7460 fi 7461fi 7462 7463PS_DRIVER= 7464# Extract the first word of "a2ps", so it can be a program name with args. 7465set dummy a2ps; ac_word=$2 7466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7467$as_echo_n "checking for $ac_word... " >&6; } 7468if ${ac_cv_prog_PS_DRIVER+:} false; then : 7469 $as_echo_n "(cached) " >&6 7470else 7471 if test -n "$PS_DRIVER"; then 7472 ac_cv_prog_PS_DRIVER="$PS_DRIVER" # Let the user override the test. 7473else 7474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7475for as_dir in $PATH 7476do 7477 IFS=$as_save_IFS 7478 test -z "$as_dir" && as_dir=. 7479 for ac_exec_ext in '' $ac_executable_extensions; do 7480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7481 ac_cv_prog_PS_DRIVER="yes" 7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7483 break 2 7484 fi 7485done 7486 done 7487IFS=$as_save_IFS 7488 7489 test -z "$ac_cv_prog_PS_DRIVER" && ac_cv_prog_PS_DRIVER="no" 7490fi 7491fi 7492PS_DRIVER=$ac_cv_prog_PS_DRIVER 7493if test -n "$PS_DRIVER"; then 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PS_DRIVER" >&5 7495$as_echo "$PS_DRIVER" >&6; } 7496else 7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7498$as_echo "no" >&6; } 7499fi 7500 7501 7502if test ${PS_DRIVER} = yes ; then 7503 7504$as_echo "#define HAVE_A2PS 1" >>confdefs.h 7505 7506fi 7507 7508PROFILE= 7509# Check whether --enable-gcov was given. 7510if test "${enable_gcov+set}" = set; then : 7511 enableval=$enable_gcov; PROFILE="-fprofile-arcs -ftest-coverage" 7512else 7513 PROFILE="" 7514fi 7515 7516# Check whether --enable-profiling was given. 7517if test "${enable_profiling+set}" = set; then : 7518 enableval=$enable_profiling; PROFILE="-pg" 7519else 7520 PROFILE="$PROFILE" 7521fi 7522 7523# Check whether --enable-debug was given. 7524if test "${enable_debug+set}" = set; then : 7525 enableval=$enable_debug; PROFILE="-g" 7526else 7527 PROFILE="$PROFILE -DNDEBUG=1" 7528fi 7529 7530 7531 7532 7533 7534for ac_header in unistd.h sys/timers.h 7535do : 7536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7537ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 7538if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7539 cat >>confdefs.h <<_ACEOF 7540#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7541_ACEOF 7542 7543fi 7544 7545done 7546 7547 7548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 7549$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 7550if ${ac_cv_c_const+:} false; then : 7551 $as_echo_n "(cached) " >&6 7552else 7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7554/* end confdefs.h. */ 7555 7556int 7557main () 7558{ 7559 7560#ifndef __cplusplus 7561 /* Ultrix mips cc rejects this sort of thing. */ 7562 typedef int charset[2]; 7563 const charset cs = { 0, 0 }; 7564 /* SunOS 4.1.1 cc rejects this. */ 7565 char const *const *pcpcc; 7566 char **ppc; 7567 /* NEC SVR4.0.2 mips cc rejects this. */ 7568 struct point {int x, y;}; 7569 static struct point const zero = {0,0}; 7570 /* AIX XL C 1.02.0.0 rejects this. 7571 It does not let you subtract one const X* pointer from another in 7572 an arm of an if-expression whose if-part is not a constant 7573 expression */ 7574 const char *g = "string"; 7575 pcpcc = &g + (g ? g-g : 0); 7576 /* HPUX 7.0 cc rejects these. */ 7577 ++pcpcc; 7578 ppc = (char**) pcpcc; 7579 pcpcc = (char const *const *) ppc; 7580 { /* SCO 3.2v4 cc rejects this sort of thing. */ 7581 char tx; 7582 char *t = &tx; 7583 char const *s = 0 ? (char *) 0 : (char const *) 0; 7584 7585 *t++ = 0; 7586 if (s) return 0; 7587 } 7588 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 7589 int x[] = {25, 17}; 7590 const int *foo = &x[0]; 7591 ++foo; 7592 } 7593 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 7594 typedef const int *iptr; 7595 iptr p = 0; 7596 ++p; 7597 } 7598 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 7599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 7600 struct s { int j; const int *ap[3]; } bx; 7601 struct s *b = &bx; b->j = 5; 7602 } 7603 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 7604 const int foo = 10; 7605 if (!foo) return 0; 7606 } 7607 return !cs[0] && !zero.x; 7608#endif 7609 7610 ; 7611 return 0; 7612} 7613_ACEOF 7614if ac_fn_c_try_compile "$LINENO"; then : 7615 ac_cv_c_const=yes 7616else 7617 ac_cv_c_const=no 7618fi 7619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7620fi 7621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 7622$as_echo "$ac_cv_c_const" >&6; } 7623if test $ac_cv_c_const = no; then 7624 7625$as_echo "#define const /**/" >>confdefs.h 7626 7627fi 7628 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 7630$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 7631if ${ac_cv_struct_tm+:} false; then : 7632 $as_echo_n "(cached) " >&6 7633else 7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7635/* end confdefs.h. */ 7636#include <sys/types.h> 7637#include <time.h> 7638 7639int 7640main () 7641{ 7642struct tm tm; 7643 int *p = &tm.tm_sec; 7644 return !p; 7645 ; 7646 return 0; 7647} 7648_ACEOF 7649if ac_fn_c_try_compile "$LINENO"; then : 7650 ac_cv_struct_tm=time.h 7651else 7652 ac_cv_struct_tm=sys/time.h 7653fi 7654rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7655fi 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 7657$as_echo "$ac_cv_struct_tm" >&6; } 7658if test $ac_cv_struct_tm = sys/time.h; then 7659 7660$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 7661 7662fi 7663 7664 7665for ac_func in mkfifo 7666do : 7667 ac_fn_c_check_func "$LINENO" "mkfifo" "ac_cv_func_mkfifo" 7668if test "x$ac_cv_func_mkfifo" = xyes; then : 7669 cat >>confdefs.h <<_ACEOF 7670#define HAVE_MKFIFO 1 7671_ACEOF 7672 7673fi 7674done 7675 7676for ac_func in putenv 7677do : 7678 ac_fn_c_check_func "$LINENO" "putenv" "ac_cv_func_putenv" 7679if test "x$ac_cv_func_putenv" = xyes; then : 7680 cat >>confdefs.h <<_ACEOF 7681#define HAVE_PUTENV 1 7682_ACEOF 7683 7684fi 7685done 7686 7687 7688 7689if test "x$GCC" = "xyes"; then 7690 if test ! -z "`echo " $CFLAGS" | grep ' \-g ' 2> /dev/null`" ; then 7691 CFLAGS=`echo " $CFLAGS" | sed 's% \-g %%' ` 7692 fi 7693 if test ! -z "`echo "$CFLAGS" | grep "\-O2" 2> /dev/null`" ; then 7694 CFLAGS=`echo $CFLAGS | sed 's%\-O2%%' ` 7695 fi 7696 if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then 7697 CFLAGS="$CFLAGS -Wall" 7698 fi 7699 if test -z "`echo "$CFLAGS" | grep "\-O3" 2> /dev/null`" ; then 7700 CFLAGS="$CFLAGS" 7701 fi 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fforce-addr" >&5 7703$as_echo_n "checking whether ${CC} accepts -fforce-addr... " >&6; } 7704if ${ffa_cv_cc+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706else 7707 ffa_old_cflags="$CFLAGS" 7708 CFLAGS="$CFLAGS -fforce-addr" 7709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7710/* end confdefs.h. */ 7711 7712int 7713main () 7714{ 7715 7716 ; 7717 return 0; 7718} 7719_ACEOF 7720if ac_fn_c_try_compile "$LINENO"; then : 7721 ffa_cv_cc=yes 7722else 7723 ffa_cv_cc=no 7724fi 7725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7726 CFLAGS="$ffa_old_cflags" 7727 7728fi 7729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ffa_cv_cc" >&5 7730$as_echo "$ffa_cv_cc" >&6; } 7731 if test "x$ffa_cv_cc" = xyes; then 7732 if test -z "`echo "$CFLAGS" | grep "\-fforce\-addr" 2> /dev/null`" ; then 7733 CFLAGS="$CFLAGS -fforce-addr" 7734 fi 7735 fi 7736fi 7737 7738if test x"$have_gnome" = "xyes" 7739then 7740 GTK_LIBS=${GNOME_LIBS} 7741 GTK_CFLAGS=${GNOME_CFLAGS} 7742 my_have_gtk2="yes" 7743else 7744 GTK_LIBS= 7745 GTK_CFLAGS= 7746 # Check whether --enable-gtk2 was given. 7747if test "${enable_gtk2+set}" = set; then : 7748 enableval=$enable_gtk2; gtk_try_v2="$enableval" 7749else 7750 gtk_try_v2="yes" 7751fi 7752 7753 7754 my_have_gtk2="no" 7755 7756 if test "x${gtk_try_v2}" = xyes 7757 then 7758 7759 succeeded=no 7760 7761 if test -z "$PKG_CONFIG"; then 7762 # Extract the first word of "pkg-config", so it can be a program name with args. 7763set dummy pkg-config; ac_word=$2 7764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7765$as_echo_n "checking for $ac_word... " >&6; } 7766if ${ac_cv_path_PKG_CONFIG+:} false; then : 7767 $as_echo_n "(cached) " >&6 7768else 7769 case $PKG_CONFIG in 7770 [\\/]* | ?:[\\/]*) 7771 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7772 ;; 7773 *) 7774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7775for as_dir in $PATH 7776do 7777 IFS=$as_save_IFS 7778 test -z "$as_dir" && as_dir=. 7779 for ac_exec_ext in '' $ac_executable_extensions; do 7780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7781 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7783 break 2 7784 fi 7785done 7786 done 7787IFS=$as_save_IFS 7788 7789 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7790 ;; 7791esac 7792fi 7793PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7794if test -n "$PKG_CONFIG"; then 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7796$as_echo "$PKG_CONFIG" >&6; } 7797else 7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7799$as_echo "no" >&6; } 7800fi 7801 7802 7803 fi 7804 7805 if test "$PKG_CONFIG" = "no" ; then 7806 echo "*** The pkg-config script could not be found. Make sure it is" 7807 echo "*** in your path, or set the PKG_CONFIG environment variable" 7808 echo "*** to the full path to pkg-config." 7809 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 7810 else 7811 PKG_CONFIG_MIN_VERSION=0.9.0 7812 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 7813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.6 glib-2.0 >= 2.0" >&5 7814$as_echo_n "checking for gtk+-2.0 >= 2.6 glib-2.0 >= 2.0... " >&6; } 7815 7816 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.6 glib-2.0 >= 2.0" ; then 7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7818$as_echo "yes" >&6; } 7819 succeeded=yes 7820 7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 7822$as_echo_n "checking GTK_CFLAGS... " >&6; } 7823 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.6 glib-2.0 >= 2.0"` 7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 7825$as_echo "$GTK_CFLAGS" >&6; } 7826 7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 7828$as_echo_n "checking GTK_LIBS... " >&6; } 7829 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.6 glib-2.0 >= 2.0"` 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 7831$as_echo "$GTK_LIBS" >&6; } 7832 else 7833 GTK_CFLAGS="" 7834 GTK_LIBS="" 7835 ## If we have a custom action on failure, don't print errors, but 7836 ## do set a variable so people can do so. 7837 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.6 glib-2.0 >= 2.0"` 7838 7839 fi 7840 7841 7842 7843 else 7844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 7845 echo "*** See http://www.freedesktop.org/software/pkgconfig" 7846 fi 7847 fi 7848 7849 if test $succeeded = yes; then 7850 my_have_gtk2="yes" 7851 else 7852 7853 echo "*** Cannot find gtk+-2 >= 2.6 on your system" 7854 echo "*** Continue searching for gtk+ >= 1.1.0" 7855 7856 fi 7857 7858 fi 7859fi 7860 7861 7862if test "x${GTK_LIBS}" = x 7863then 7864 7865# Check whether --with-gtk-prefix was given. 7866if test "${with_gtk_prefix+set}" = set; then : 7867 withval=$with_gtk_prefix; gtk_config_prefix="$withval" 7868else 7869 gtk_config_prefix="" 7870fi 7871 7872 7873# Check whether --with-gtk-exec-prefix was given. 7874if test "${with_gtk_exec_prefix+set}" = set; then : 7875 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" 7876else 7877 gtk_config_exec_prefix="" 7878fi 7879 7880# Check whether --enable-gtktest was given. 7881if test "${enable_gtktest+set}" = set; then : 7882 enableval=$enable_gtktest; 7883else 7884 enable_gtktest=yes 7885fi 7886 7887 7888 if test x$gtk_config_exec_prefix != x ; then 7889 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 7890 if test x${GTK_CONFIG+set} != xset ; then 7891 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 7892 fi 7893 fi 7894 if test x$gtk_config_prefix != x ; then 7895 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 7896 if test x${GTK_CONFIG+set} != xset ; then 7897 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 7898 fi 7899 fi 7900 7901 # Extract the first word of "gtk-config", so it can be a program name with args. 7902set dummy gtk-config; ac_word=$2 7903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7904$as_echo_n "checking for $ac_word... " >&6; } 7905if ${ac_cv_path_GTK_CONFIG+:} false; then : 7906 $as_echo_n "(cached) " >&6 7907else 7908 case $GTK_CONFIG in 7909 [\\/]* | ?:[\\/]*) 7910 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 7911 ;; 7912 *) 7913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7914for as_dir in $PATH 7915do 7916 IFS=$as_save_IFS 7917 test -z "$as_dir" && as_dir=. 7918 for ac_exec_ext in '' $ac_executable_extensions; do 7919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7920 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7922 break 2 7923 fi 7924done 7925 done 7926IFS=$as_save_IFS 7927 7928 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 7929 ;; 7930esac 7931fi 7932GTK_CONFIG=$ac_cv_path_GTK_CONFIG 7933if test -n "$GTK_CONFIG"; then 7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5 7935$as_echo "$GTK_CONFIG" >&6; } 7936else 7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7938$as_echo "no" >&6; } 7939fi 7940 7941 7942 min_gtk_version=1.2.0 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 7944$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 7945 no_gtk="" 7946 if test "$GTK_CONFIG" = "no" ; then 7947 no_gtk=yes 7948 else 7949 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 7950 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 7951 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 7952 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 7953 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 7954 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 7955 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 7956 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 7957 if test "x$enable_gtktest" = "xyes" ; then 7958 ac_save_CFLAGS="$CFLAGS" 7959 ac_save_LIBS="$LIBS" 7960 CFLAGS="$CFLAGS $GTK_CFLAGS" 7961 LIBS="$LIBS $GTK_LIBS" 7962 rm -f conf.gtktest 7963 if test "$cross_compiling" = yes; then : 7964 echo $ac_n "cross compiling; assumed OK... $ac_c" 7965else 7966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7967/* end confdefs.h. */ 7968 7969#include <gtk/gtk.h> 7970#include <stdio.h> 7971 7972int 7973main () 7974{ 7975 int major, minor, micro; 7976 char *tmp_version; 7977 7978 system ("touch conf.gtktest"); 7979 7980 /* HP/UX 9 (%@#!) writes to sscanf strings */ 7981 tmp_version = g_strdup("$min_gtk_version"); 7982 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 7983 printf("%s, bad version string\n", "$min_gtk_version"); 7984 exit(1); 7985 } 7986 7987 if ((gtk_major_version != $gtk_config_major_version) || 7988 (gtk_minor_version != $gtk_config_minor_version) || 7989 (gtk_micro_version != $gtk_config_micro_version)) 7990 { 7991 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 7992 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 7993 gtk_major_version, gtk_minor_version, gtk_micro_version); 7994 printf ("*** was found! If gtk-config was correct, then it is best\n"); 7995 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 7996 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); 7997 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 7998 printf("*** required on your system.\n"); 7999 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 8000 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 8001 printf("*** before re-running configure\n"); 8002 } 8003 else 8004 { 8005 if ((gtk_major_version > major) || 8006 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 8007 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 8008 { 8009 return 0; 8010 } 8011 else 8012 { 8013 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 8014 gtk_major_version, gtk_minor_version, gtk_micro_version); 8015 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 8016 major, minor, micro); 8017 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 8018 printf("***\n"); 8019 printf("*** If you have already installed a sufficiently new version, this error\n"); 8020 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 8021 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 8022 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 8023 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 8024 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); 8025 printf("*** so that the correct libraries are found at run-time))\n"); 8026 } 8027 } 8028 return 1; 8029} 8030 8031_ACEOF 8032if ac_fn_c_try_run "$LINENO"; then : 8033 8034else 8035 no_gtk=yes 8036fi 8037rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8038 conftest.$ac_objext conftest.beam conftest.$ac_ext 8039fi 8040 8041 CFLAGS="$ac_save_CFLAGS" 8042 LIBS="$ac_save_LIBS" 8043 fi 8044 fi 8045 if test "x$no_gtk" = x ; then 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8047$as_echo "yes" >&6; } 8048 8049 #LIBS="$LIBS $GTK_LIBS" 8050 #CFLAGS="$CFLAGS $GTK_CFLAGS" 8051 8052$as_echo "#define _WITH_GTK 1" >>confdefs.h 8053 8054 8055$as_echo "#define GTK_DISABLE_COMPAT_H 1" >>confdefs.h 8056 8057 my_gtk_test="yes" 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 8059$as_echo_n "checking for X... " >&6; } 8060 8061 8062# Check whether --with-x was given. 8063if test "${with_x+set}" = set; then : 8064 withval=$with_x; 8065fi 8066 8067# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8068if test "x$with_x" = xno; then 8069 # The user explicitly disabled X. 8070 have_x=disabled 8071else 8072 case $x_includes,$x_libraries in #( 8073 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 8074 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 8075 $as_echo_n "(cached) " >&6 8076else 8077 # One or both of the vars are not set, and there is no cached value. 8078ac_x_includes=no ac_x_libraries=no 8079rm -f -r conftest.dir 8080if mkdir conftest.dir; then 8081 cd conftest.dir 8082 cat >Imakefile <<'_ACEOF' 8083incroot: 8084 @echo incroot='${INCROOT}' 8085usrlibdir: 8086 @echo usrlibdir='${USRLIBDIR}' 8087libdir: 8088 @echo libdir='${LIBDIR}' 8089_ACEOF 8090 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 8091 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8092 for ac_var in incroot usrlibdir libdir; do 8093 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 8094 done 8095 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8096 for ac_extension in a so sl dylib la dll; do 8097 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 8098 test -f "$ac_im_libdir/libX11.$ac_extension"; then 8099 ac_im_usrlibdir=$ac_im_libdir; break 8100 fi 8101 done 8102 # Screen out bogus values from the imake configuration. They are 8103 # bogus both because they are the default anyway, and because 8104 # using them would break gcc on systems where it needs fixed includes. 8105 case $ac_im_incroot in 8106 /usr/include) ac_x_includes= ;; 8107 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 8108 esac 8109 case $ac_im_usrlibdir in 8110 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 8111 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 8112 esac 8113 fi 8114 cd .. 8115 rm -f -r conftest.dir 8116fi 8117 8118# Standard set of common directories for X headers. 8119# Check X11 before X11Rn because it is often a symlink to the current release. 8120ac_x_header_dirs=' 8121/usr/X11/include 8122/usr/X11R7/include 8123/usr/X11R6/include 8124/usr/X11R5/include 8125/usr/X11R4/include 8126 8127/usr/include/X11 8128/usr/include/X11R7 8129/usr/include/X11R6 8130/usr/include/X11R5 8131/usr/include/X11R4 8132 8133/usr/local/X11/include 8134/usr/local/X11R7/include 8135/usr/local/X11R6/include 8136/usr/local/X11R5/include 8137/usr/local/X11R4/include 8138 8139/usr/local/include/X11 8140/usr/local/include/X11R7 8141/usr/local/include/X11R6 8142/usr/local/include/X11R5 8143/usr/local/include/X11R4 8144 8145/usr/X386/include 8146/usr/x386/include 8147/usr/XFree86/include/X11 8148 8149/usr/include 8150/usr/local/include 8151/usr/unsupported/include 8152/usr/athena/include 8153/usr/local/x11r5/include 8154/usr/lpp/Xamples/include 8155 8156/usr/openwin/include 8157/usr/openwin/share/include' 8158 8159if test "$ac_x_includes" = no; then 8160 # Guess where to find include files, by looking for Xlib.h. 8161 # First, try using that file with no special directory specified. 8162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8163/* end confdefs.h. */ 8164#include <X11/Xlib.h> 8165_ACEOF 8166if ac_fn_c_try_cpp "$LINENO"; then : 8167 # We can compile using X headers with no special include directory. 8168ac_x_includes= 8169else 8170 for ac_dir in $ac_x_header_dirs; do 8171 if test -r "$ac_dir/X11/Xlib.h"; then 8172 ac_x_includes=$ac_dir 8173 break 8174 fi 8175done 8176fi 8177rm -f conftest.err conftest.i conftest.$ac_ext 8178fi # $ac_x_includes = no 8179 8180if test "$ac_x_libraries" = no; then 8181 # Check for the libraries. 8182 # See if we find them without any special options. 8183 # Don't add to $LIBS permanently. 8184 ac_save_LIBS=$LIBS 8185 LIBS="-lX11 $LIBS" 8186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8187/* end confdefs.h. */ 8188#include <X11/Xlib.h> 8189int 8190main () 8191{ 8192XrmInitialize () 8193 ; 8194 return 0; 8195} 8196_ACEOF 8197if ac_fn_c_try_link "$LINENO"; then : 8198 LIBS=$ac_save_LIBS 8199# We can link X programs with no special library path. 8200ac_x_libraries= 8201else 8202 LIBS=$ac_save_LIBS 8203for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 8204do 8205 # Don't even attempt the hair of trying to link an X program! 8206 for ac_extension in a so sl dylib la dll; do 8207 if test -r "$ac_dir/libX11.$ac_extension"; then 8208 ac_x_libraries=$ac_dir 8209 break 2 8210 fi 8211 done 8212done 8213fi 8214rm -f core conftest.err conftest.$ac_objext \ 8215 conftest$ac_exeext conftest.$ac_ext 8216fi # $ac_x_libraries = no 8217 8218case $ac_x_includes,$ac_x_libraries in #( 8219 no,* | *,no | *\'*) 8220 # Didn't find X, or a directory has "'" in its name. 8221 ac_cv_have_x="have_x=no";; #( 8222 *) 8223 # Record where we found X for the cache. 8224 ac_cv_have_x="have_x=yes\ 8225 ac_x_includes='$ac_x_includes'\ 8226 ac_x_libraries='$ac_x_libraries'" 8227esac 8228fi 8229;; #( 8230 *) have_x=yes;; 8231 esac 8232 eval "$ac_cv_have_x" 8233fi # $with_x != no 8234 8235if test "$have_x" != yes; then 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 8237$as_echo "$have_x" >&6; } 8238 no_x=yes 8239else 8240 # If each of the values was on the command line, it overrides each guess. 8241 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 8242 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 8243 # Update the cache value to reflect the command line values. 8244 ac_cv_have_x="have_x=yes\ 8245 ac_x_includes='$x_includes'\ 8246 ac_x_libraries='$x_libraries'" 8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 8248$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 8249fi 8250 8251 if test "$no_x" = yes; then 8252 # Not all programs may use this symbol, but it does not hurt to define it. 8253 8254$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 8255 8256 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 8257else 8258 if test -n "$x_includes"; then 8259 X_CFLAGS="$X_CFLAGS -I$x_includes" 8260 fi 8261 8262 # It would also be nice to do this for all -L options, not just this one. 8263 if test -n "$x_libraries"; then 8264 X_LIBS="$X_LIBS -L$x_libraries" 8265 # For Solaris; some versions of Sun CC require a space after -R and 8266 # others require no space. Words are not sufficient . . . . 8267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 8268$as_echo_n "checking whether -R must be followed by a space... " >&6; } 8269 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 8270 ac_xsave_c_werror_flag=$ac_c_werror_flag 8271 ac_c_werror_flag=yes 8272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8273/* end confdefs.h. */ 8274 8275int 8276main () 8277{ 8278 8279 ; 8280 return 0; 8281} 8282_ACEOF 8283if ac_fn_c_try_link "$LINENO"; then : 8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8285$as_echo "no" >&6; } 8286 X_LIBS="$X_LIBS -R$x_libraries" 8287else 8288 LIBS="$ac_xsave_LIBS -R $x_libraries" 8289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8290/* end confdefs.h. */ 8291 8292int 8293main () 8294{ 8295 8296 ; 8297 return 0; 8298} 8299_ACEOF 8300if ac_fn_c_try_link "$LINENO"; then : 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8302$as_echo "yes" >&6; } 8303 X_LIBS="$X_LIBS -R $x_libraries" 8304else 8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 8306$as_echo "neither works" >&6; } 8307fi 8308rm -f core conftest.err conftest.$ac_objext \ 8309 conftest$ac_exeext conftest.$ac_ext 8310fi 8311rm -f core conftest.err conftest.$ac_objext \ 8312 conftest$ac_exeext conftest.$ac_ext 8313 ac_c_werror_flag=$ac_xsave_c_werror_flag 8314 LIBS=$ac_xsave_LIBS 8315 fi 8316 8317 # Check for system-dependent libraries X programs must link with. 8318 # Do this before checking for the system-independent R6 libraries 8319 # (-lICE), since we may need -lsocket or whatever for X linking. 8320 8321 if test "$ISC" = yes; then 8322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 8323 else 8324 # Martyn Johnson says this is needed for Ultrix, if the X 8325 # libraries were built with DECnet support. And Karl Berry says 8326 # the Alpha needs dnet_stub (dnet does not exist). 8327 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8329/* end confdefs.h. */ 8330 8331/* Override any GCC internal prototype to avoid an error. 8332 Use char because int might match the return type of a GCC 8333 builtin and then its argument prototype would still apply. */ 8334#ifdef __cplusplus 8335extern "C" 8336#endif 8337char XOpenDisplay (); 8338int 8339main () 8340{ 8341return XOpenDisplay (); 8342 ; 8343 return 0; 8344} 8345_ACEOF 8346if ac_fn_c_try_link "$LINENO"; then : 8347 8348else 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 8350$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 8351if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 8352 $as_echo_n "(cached) " >&6 8353else 8354 ac_check_lib_save_LIBS=$LIBS 8355LIBS="-ldnet $LIBS" 8356cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8357/* end confdefs.h. */ 8358 8359/* Override any GCC internal prototype to avoid an error. 8360 Use char because int might match the return type of a GCC 8361 builtin and then its argument prototype would still apply. */ 8362#ifdef __cplusplus 8363extern "C" 8364#endif 8365char dnet_ntoa (); 8366int 8367main () 8368{ 8369return dnet_ntoa (); 8370 ; 8371 return 0; 8372} 8373_ACEOF 8374if ac_fn_c_try_link "$LINENO"; then : 8375 ac_cv_lib_dnet_dnet_ntoa=yes 8376else 8377 ac_cv_lib_dnet_dnet_ntoa=no 8378fi 8379rm -f core conftest.err conftest.$ac_objext \ 8380 conftest$ac_exeext conftest.$ac_ext 8381LIBS=$ac_check_lib_save_LIBS 8382fi 8383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 8384$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 8385if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 8386 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 8387fi 8388 8389 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 8391$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 8392if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 8393 $as_echo_n "(cached) " >&6 8394else 8395 ac_check_lib_save_LIBS=$LIBS 8396LIBS="-ldnet_stub $LIBS" 8397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8398/* end confdefs.h. */ 8399 8400/* Override any GCC internal prototype to avoid an error. 8401 Use char because int might match the return type of a GCC 8402 builtin and then its argument prototype would still apply. */ 8403#ifdef __cplusplus 8404extern "C" 8405#endif 8406char dnet_ntoa (); 8407int 8408main () 8409{ 8410return dnet_ntoa (); 8411 ; 8412 return 0; 8413} 8414_ACEOF 8415if ac_fn_c_try_link "$LINENO"; then : 8416 ac_cv_lib_dnet_stub_dnet_ntoa=yes 8417else 8418 ac_cv_lib_dnet_stub_dnet_ntoa=no 8419fi 8420rm -f core conftest.err conftest.$ac_objext \ 8421 conftest$ac_exeext conftest.$ac_ext 8422LIBS=$ac_check_lib_save_LIBS 8423fi 8424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 8425$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 8426if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 8427 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 8428fi 8429 8430 fi 8431fi 8432rm -f core conftest.err conftest.$ac_objext \ 8433 conftest$ac_exeext conftest.$ac_ext 8434 LIBS="$ac_xsave_LIBS" 8435 8436 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 8437 # to get the SysV transport functions. 8438 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 8439 # needs -lnsl. 8440 # The nsl library prevents programs from opening the X display 8441 # on Irix 5.2, according to T.E. Dickey. 8442 # The functions gethostbyname, getservbyname, and inet_addr are 8443 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 8444 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 8445if test "x$ac_cv_func_gethostbyname" = xyes; then : 8446 8447fi 8448 8449 if test $ac_cv_func_gethostbyname = no; then 8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 8451$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 8452if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 8453 $as_echo_n "(cached) " >&6 8454else 8455 ac_check_lib_save_LIBS=$LIBS 8456LIBS="-lnsl $LIBS" 8457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8458/* end confdefs.h. */ 8459 8460/* Override any GCC internal prototype to avoid an error. 8461 Use char because int might match the return type of a GCC 8462 builtin and then its argument prototype would still apply. */ 8463#ifdef __cplusplus 8464extern "C" 8465#endif 8466char gethostbyname (); 8467int 8468main () 8469{ 8470return gethostbyname (); 8471 ; 8472 return 0; 8473} 8474_ACEOF 8475if ac_fn_c_try_link "$LINENO"; then : 8476 ac_cv_lib_nsl_gethostbyname=yes 8477else 8478 ac_cv_lib_nsl_gethostbyname=no 8479fi 8480rm -f core conftest.err conftest.$ac_objext \ 8481 conftest$ac_exeext conftest.$ac_ext 8482LIBS=$ac_check_lib_save_LIBS 8483fi 8484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 8485$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 8486if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 8487 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 8488fi 8489 8490 if test $ac_cv_lib_nsl_gethostbyname = no; then 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 8492$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 8493if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 8494 $as_echo_n "(cached) " >&6 8495else 8496 ac_check_lib_save_LIBS=$LIBS 8497LIBS="-lbsd $LIBS" 8498cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8499/* end confdefs.h. */ 8500 8501/* Override any GCC internal prototype to avoid an error. 8502 Use char because int might match the return type of a GCC 8503 builtin and then its argument prototype would still apply. */ 8504#ifdef __cplusplus 8505extern "C" 8506#endif 8507char gethostbyname (); 8508int 8509main () 8510{ 8511return gethostbyname (); 8512 ; 8513 return 0; 8514} 8515_ACEOF 8516if ac_fn_c_try_link "$LINENO"; then : 8517 ac_cv_lib_bsd_gethostbyname=yes 8518else 8519 ac_cv_lib_bsd_gethostbyname=no 8520fi 8521rm -f core conftest.err conftest.$ac_objext \ 8522 conftest$ac_exeext conftest.$ac_ext 8523LIBS=$ac_check_lib_save_LIBS 8524fi 8525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 8526$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 8527if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 8528 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 8529fi 8530 8531 fi 8532 fi 8533 8534 # lieder@skyler.mavd.honeywell.com says without -lsocket, 8535 # socket/setsockopt and other routines are undefined under SCO ODT 8536 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 8537 # on later versions), says Simon Leinen: it contains gethostby* 8538 # variants that don't use the name server (or something). -lsocket 8539 # must be given before -lnsl if both are needed. We assume that 8540 # if connect needs -lnsl, so does gethostbyname. 8541 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 8542if test "x$ac_cv_func_connect" = xyes; then : 8543 8544fi 8545 8546 if test $ac_cv_func_connect = no; then 8547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 8548$as_echo_n "checking for connect in -lsocket... " >&6; } 8549if ${ac_cv_lib_socket_connect+:} false; then : 8550 $as_echo_n "(cached) " >&6 8551else 8552 ac_check_lib_save_LIBS=$LIBS 8553LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 8554cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8555/* end confdefs.h. */ 8556 8557/* Override any GCC internal prototype to avoid an error. 8558 Use char because int might match the return type of a GCC 8559 builtin and then its argument prototype would still apply. */ 8560#ifdef __cplusplus 8561extern "C" 8562#endif 8563char connect (); 8564int 8565main () 8566{ 8567return connect (); 8568 ; 8569 return 0; 8570} 8571_ACEOF 8572if ac_fn_c_try_link "$LINENO"; then : 8573 ac_cv_lib_socket_connect=yes 8574else 8575 ac_cv_lib_socket_connect=no 8576fi 8577rm -f core conftest.err conftest.$ac_objext \ 8578 conftest$ac_exeext conftest.$ac_ext 8579LIBS=$ac_check_lib_save_LIBS 8580fi 8581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 8582$as_echo "$ac_cv_lib_socket_connect" >&6; } 8583if test "x$ac_cv_lib_socket_connect" = xyes; then : 8584 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 8585fi 8586 8587 fi 8588 8589 # Guillermo Gomez says -lposix is necessary on A/UX. 8590 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 8591if test "x$ac_cv_func_remove" = xyes; then : 8592 8593fi 8594 8595 if test $ac_cv_func_remove = no; then 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 8597$as_echo_n "checking for remove in -lposix... " >&6; } 8598if ${ac_cv_lib_posix_remove+:} false; then : 8599 $as_echo_n "(cached) " >&6 8600else 8601 ac_check_lib_save_LIBS=$LIBS 8602LIBS="-lposix $LIBS" 8603cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8604/* end confdefs.h. */ 8605 8606/* Override any GCC internal prototype to avoid an error. 8607 Use char because int might match the return type of a GCC 8608 builtin and then its argument prototype would still apply. */ 8609#ifdef __cplusplus 8610extern "C" 8611#endif 8612char remove (); 8613int 8614main () 8615{ 8616return remove (); 8617 ; 8618 return 0; 8619} 8620_ACEOF 8621if ac_fn_c_try_link "$LINENO"; then : 8622 ac_cv_lib_posix_remove=yes 8623else 8624 ac_cv_lib_posix_remove=no 8625fi 8626rm -f core conftest.err conftest.$ac_objext \ 8627 conftest$ac_exeext conftest.$ac_ext 8628LIBS=$ac_check_lib_save_LIBS 8629fi 8630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 8631$as_echo "$ac_cv_lib_posix_remove" >&6; } 8632if test "x$ac_cv_lib_posix_remove" = xyes; then : 8633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 8634fi 8635 8636 fi 8637 8638 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 8639 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 8640if test "x$ac_cv_func_shmat" = xyes; then : 8641 8642fi 8643 8644 if test $ac_cv_func_shmat = no; then 8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 8646$as_echo_n "checking for shmat in -lipc... " >&6; } 8647if ${ac_cv_lib_ipc_shmat+:} false; then : 8648 $as_echo_n "(cached) " >&6 8649else 8650 ac_check_lib_save_LIBS=$LIBS 8651LIBS="-lipc $LIBS" 8652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8653/* end confdefs.h. */ 8654 8655/* Override any GCC internal prototype to avoid an error. 8656 Use char because int might match the return type of a GCC 8657 builtin and then its argument prototype would still apply. */ 8658#ifdef __cplusplus 8659extern "C" 8660#endif 8661char shmat (); 8662int 8663main () 8664{ 8665return shmat (); 8666 ; 8667 return 0; 8668} 8669_ACEOF 8670if ac_fn_c_try_link "$LINENO"; then : 8671 ac_cv_lib_ipc_shmat=yes 8672else 8673 ac_cv_lib_ipc_shmat=no 8674fi 8675rm -f core conftest.err conftest.$ac_objext \ 8676 conftest$ac_exeext conftest.$ac_ext 8677LIBS=$ac_check_lib_save_LIBS 8678fi 8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 8680$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 8681if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 8682 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 8683fi 8684 8685 fi 8686 fi 8687 8688 # Check for libraries that X11R6 Xt/Xaw programs need. 8689 ac_save_LDFLAGS=$LDFLAGS 8690 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 8691 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 8692 # check for ICE first), but we must link in the order -lSM -lICE or 8693 # we get undefined symbols. So assume we have SM if we have ICE. 8694 # These have to be linked with before -lX11, unlike the other 8695 # libraries we check for below, so use a different variable. 8696 # John Interrante, Karl Berry 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 8698$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 8699if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 8700 $as_echo_n "(cached) " >&6 8701else 8702 ac_check_lib_save_LIBS=$LIBS 8703LIBS="-lICE $X_EXTRA_LIBS $LIBS" 8704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8705/* end confdefs.h. */ 8706 8707/* Override any GCC internal prototype to avoid an error. 8708 Use char because int might match the return type of a GCC 8709 builtin and then its argument prototype would still apply. */ 8710#ifdef __cplusplus 8711extern "C" 8712#endif 8713char IceConnectionNumber (); 8714int 8715main () 8716{ 8717return IceConnectionNumber (); 8718 ; 8719 return 0; 8720} 8721_ACEOF 8722if ac_fn_c_try_link "$LINENO"; then : 8723 ac_cv_lib_ICE_IceConnectionNumber=yes 8724else 8725 ac_cv_lib_ICE_IceConnectionNumber=no 8726fi 8727rm -f core conftest.err conftest.$ac_objext \ 8728 conftest$ac_exeext conftest.$ac_ext 8729LIBS=$ac_check_lib_save_LIBS 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 8732$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 8733if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 8734 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 8735fi 8736 8737 LDFLAGS=$ac_save_LDFLAGS 8738 8739fi 8740 8741 8742 else 8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8744$as_echo "no" >&6; } 8745 if test "$GTK_CONFIG" = "no" ; then 8746 echo "*** The gtk-config script installed by GTK could not be found" 8747 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 8748 echo "*** your path, or set the GTK_CONFIG environment variable to the" 8749 echo "*** full path to gtk-config." 8750 else 8751 if test -f conf.gtktest ; then 8752 : 8753 else 8754 echo "*** Could not run GTK test program, checking why..." 8755 CFLAGS="$CFLAGS $GTK_CFLAGS" 8756 LIBS="$LIBS $GTK_LIBS" 8757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8758/* end confdefs.h. */ 8759 8760#include <gtk/gtk.h> 8761#include <stdio.h> 8762 8763int 8764main () 8765{ 8766 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 8767 ; 8768 return 0; 8769} 8770_ACEOF 8771if ac_fn_c_try_link "$LINENO"; then : 8772 echo "*** The test program compiled, but did not run. This usually means" 8773 echo "*** that the run-time linker is not finding GTK or finding the wrong" 8774 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 8775 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 8776 echo "*** to the installed location Also, make sure you have run ldconfig if that" 8777 echo "*** is required on your system" 8778 echo "***" 8779 echo "*** If you have an old version installed, it is best to remove it, although" 8780 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 8781 echo "***" 8782 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 8783 echo "*** came with the system with the command" 8784 echo "***" 8785 echo "*** rpm --erase --nodeps gtk gtk-devel" 8786else 8787 echo "*** The test program failed to compile or link. See the file config.log for the" 8788 echo "*** exact error that occured. This usually means GTK was incorrectly installed" 8789 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 8790 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 8791fi 8792rm -f core conftest.err conftest.$ac_objext \ 8793 conftest$ac_exeext conftest.$ac_ext 8794 CFLAGS="$ac_save_CFLAGS" 8795 LIBS="$ac_save_LIBS" 8796 fi 8797 fi 8798 GTK_CFLAGS="" 8799 GTK_LIBS="" 8800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find GTK: Is gtk-config in path?" >&5 8801$as_echo "$as_me: WARNING: Cannot find GTK: Is gtk-config in path?" >&2;} 8802 fi 8803 8804 8805 rm -f conf.gtktest 8806 8807else 8808 my_gtk_test="yes" 8809 8810$as_echo "#define _WITH_GTK 1" >>confdefs.h 8811 8812 8813$as_echo "#define USING_GTK2 1" >>confdefs.h 8814 8815 8816 8817$as_echo "#define GTK_DISABLE_COMPAT_H 1" >>confdefs.h 8818 8819 8820$as_echo "#define GDK_DISABLE_DEPRECATED 1" >>confdefs.h 8821 8822 8823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 8824$as_echo_n "checking for X... " >&6; } 8825 8826 8827# Check whether --with-x was given. 8828if test "${with_x+set}" = set; then : 8829 withval=$with_x; 8830fi 8831 8832# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 8833if test "x$with_x" = xno; then 8834 # The user explicitly disabled X. 8835 have_x=disabled 8836else 8837 case $x_includes,$x_libraries in #( 8838 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 8839 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 8840 $as_echo_n "(cached) " >&6 8841else 8842 # One or both of the vars are not set, and there is no cached value. 8843ac_x_includes=no ac_x_libraries=no 8844rm -f -r conftest.dir 8845if mkdir conftest.dir; then 8846 cd conftest.dir 8847 cat >Imakefile <<'_ACEOF' 8848incroot: 8849 @echo incroot='${INCROOT}' 8850usrlibdir: 8851 @echo usrlibdir='${USRLIBDIR}' 8852libdir: 8853 @echo libdir='${LIBDIR}' 8854_ACEOF 8855 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 8856 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 8857 for ac_var in incroot usrlibdir libdir; do 8858 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 8859 done 8860 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 8861 for ac_extension in a so sl dylib la dll; do 8862 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 8863 test -f "$ac_im_libdir/libX11.$ac_extension"; then 8864 ac_im_usrlibdir=$ac_im_libdir; break 8865 fi 8866 done 8867 # Screen out bogus values from the imake configuration. They are 8868 # bogus both because they are the default anyway, and because 8869 # using them would break gcc on systems where it needs fixed includes. 8870 case $ac_im_incroot in 8871 /usr/include) ac_x_includes= ;; 8872 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 8873 esac 8874 case $ac_im_usrlibdir in 8875 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 8876 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 8877 esac 8878 fi 8879 cd .. 8880 rm -f -r conftest.dir 8881fi 8882 8883# Standard set of common directories for X headers. 8884# Check X11 before X11Rn because it is often a symlink to the current release. 8885ac_x_header_dirs=' 8886/usr/X11/include 8887/usr/X11R7/include 8888/usr/X11R6/include 8889/usr/X11R5/include 8890/usr/X11R4/include 8891 8892/usr/include/X11 8893/usr/include/X11R7 8894/usr/include/X11R6 8895/usr/include/X11R5 8896/usr/include/X11R4 8897 8898/usr/local/X11/include 8899/usr/local/X11R7/include 8900/usr/local/X11R6/include 8901/usr/local/X11R5/include 8902/usr/local/X11R4/include 8903 8904/usr/local/include/X11 8905/usr/local/include/X11R7 8906/usr/local/include/X11R6 8907/usr/local/include/X11R5 8908/usr/local/include/X11R4 8909 8910/usr/X386/include 8911/usr/x386/include 8912/usr/XFree86/include/X11 8913 8914/usr/include 8915/usr/local/include 8916/usr/unsupported/include 8917/usr/athena/include 8918/usr/local/x11r5/include 8919/usr/lpp/Xamples/include 8920 8921/usr/openwin/include 8922/usr/openwin/share/include' 8923 8924if test "$ac_x_includes" = no; then 8925 # Guess where to find include files, by looking for Xlib.h. 8926 # First, try using that file with no special directory specified. 8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8928/* end confdefs.h. */ 8929#include <X11/Xlib.h> 8930_ACEOF 8931if ac_fn_c_try_cpp "$LINENO"; then : 8932 # We can compile using X headers with no special include directory. 8933ac_x_includes= 8934else 8935 for ac_dir in $ac_x_header_dirs; do 8936 if test -r "$ac_dir/X11/Xlib.h"; then 8937 ac_x_includes=$ac_dir 8938 break 8939 fi 8940done 8941fi 8942rm -f conftest.err conftest.i conftest.$ac_ext 8943fi # $ac_x_includes = no 8944 8945if test "$ac_x_libraries" = no; then 8946 # Check for the libraries. 8947 # See if we find them without any special options. 8948 # Don't add to $LIBS permanently. 8949 ac_save_LIBS=$LIBS 8950 LIBS="-lX11 $LIBS" 8951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8952/* end confdefs.h. */ 8953#include <X11/Xlib.h> 8954int 8955main () 8956{ 8957XrmInitialize () 8958 ; 8959 return 0; 8960} 8961_ACEOF 8962if ac_fn_c_try_link "$LINENO"; then : 8963 LIBS=$ac_save_LIBS 8964# We can link X programs with no special library path. 8965ac_x_libraries= 8966else 8967 LIBS=$ac_save_LIBS 8968for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 8969do 8970 # Don't even attempt the hair of trying to link an X program! 8971 for ac_extension in a so sl dylib la dll; do 8972 if test -r "$ac_dir/libX11.$ac_extension"; then 8973 ac_x_libraries=$ac_dir 8974 break 2 8975 fi 8976 done 8977done 8978fi 8979rm -f core conftest.err conftest.$ac_objext \ 8980 conftest$ac_exeext conftest.$ac_ext 8981fi # $ac_x_libraries = no 8982 8983case $ac_x_includes,$ac_x_libraries in #( 8984 no,* | *,no | *\'*) 8985 # Didn't find X, or a directory has "'" in its name. 8986 ac_cv_have_x="have_x=no";; #( 8987 *) 8988 # Record where we found X for the cache. 8989 ac_cv_have_x="have_x=yes\ 8990 ac_x_includes='$ac_x_includes'\ 8991 ac_x_libraries='$ac_x_libraries'" 8992esac 8993fi 8994;; #( 8995 *) have_x=yes;; 8996 esac 8997 eval "$ac_cv_have_x" 8998fi # $with_x != no 8999 9000if test "$have_x" != yes; then 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 9002$as_echo "$have_x" >&6; } 9003 no_x=yes 9004else 9005 # If each of the values was on the command line, it overrides each guess. 9006 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9007 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9008 # Update the cache value to reflect the command line values. 9009 ac_cv_have_x="have_x=yes\ 9010 ac_x_includes='$x_includes'\ 9011 ac_x_libraries='$x_libraries'" 9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 9013$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 9014fi 9015 9016 if test "$no_x" = yes; then 9017 # Not all programs may use this symbol, but it does not hurt to define it. 9018 9019$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 9020 9021 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 9022else 9023 if test -n "$x_includes"; then 9024 X_CFLAGS="$X_CFLAGS -I$x_includes" 9025 fi 9026 9027 # It would also be nice to do this for all -L options, not just this one. 9028 if test -n "$x_libraries"; then 9029 X_LIBS="$X_LIBS -L$x_libraries" 9030 # For Solaris; some versions of Sun CC require a space after -R and 9031 # others require no space. Words are not sufficient . . . . 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 9033$as_echo_n "checking whether -R must be followed by a space... " >&6; } 9034 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 9035 ac_xsave_c_werror_flag=$ac_c_werror_flag 9036 ac_c_werror_flag=yes 9037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9038/* end confdefs.h. */ 9039 9040int 9041main () 9042{ 9043 9044 ; 9045 return 0; 9046} 9047_ACEOF 9048if ac_fn_c_try_link "$LINENO"; then : 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9050$as_echo "no" >&6; } 9051 X_LIBS="$X_LIBS -R$x_libraries" 9052else 9053 LIBS="$ac_xsave_LIBS -R $x_libraries" 9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055/* end confdefs.h. */ 9056 9057int 9058main () 9059{ 9060 9061 ; 9062 return 0; 9063} 9064_ACEOF 9065if ac_fn_c_try_link "$LINENO"; then : 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9067$as_echo "yes" >&6; } 9068 X_LIBS="$X_LIBS -R $x_libraries" 9069else 9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 9071$as_echo "neither works" >&6; } 9072fi 9073rm -f core conftest.err conftest.$ac_objext \ 9074 conftest$ac_exeext conftest.$ac_ext 9075fi 9076rm -f core conftest.err conftest.$ac_objext \ 9077 conftest$ac_exeext conftest.$ac_ext 9078 ac_c_werror_flag=$ac_xsave_c_werror_flag 9079 LIBS=$ac_xsave_LIBS 9080 fi 9081 9082 # Check for system-dependent libraries X programs must link with. 9083 # Do this before checking for the system-independent R6 libraries 9084 # (-lICE), since we may need -lsocket or whatever for X linking. 9085 9086 if test "$ISC" = yes; then 9087 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 9088 else 9089 # Martyn Johnson says this is needed for Ultrix, if the X 9090 # libraries were built with DECnet support. And Karl Berry says 9091 # the Alpha needs dnet_stub (dnet does not exist). 9092 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094/* end confdefs.h. */ 9095 9096/* Override any GCC internal prototype to avoid an error. 9097 Use char because int might match the return type of a GCC 9098 builtin and then its argument prototype would still apply. */ 9099#ifdef __cplusplus 9100extern "C" 9101#endif 9102char XOpenDisplay (); 9103int 9104main () 9105{ 9106return XOpenDisplay (); 9107 ; 9108 return 0; 9109} 9110_ACEOF 9111if ac_fn_c_try_link "$LINENO"; then : 9112 9113else 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 9115$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 9116if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 9117 $as_echo_n "(cached) " >&6 9118else 9119 ac_check_lib_save_LIBS=$LIBS 9120LIBS="-ldnet $LIBS" 9121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9122/* end confdefs.h. */ 9123 9124/* Override any GCC internal prototype to avoid an error. 9125 Use char because int might match the return type of a GCC 9126 builtin and then its argument prototype would still apply. */ 9127#ifdef __cplusplus 9128extern "C" 9129#endif 9130char dnet_ntoa (); 9131int 9132main () 9133{ 9134return dnet_ntoa (); 9135 ; 9136 return 0; 9137} 9138_ACEOF 9139if ac_fn_c_try_link "$LINENO"; then : 9140 ac_cv_lib_dnet_dnet_ntoa=yes 9141else 9142 ac_cv_lib_dnet_dnet_ntoa=no 9143fi 9144rm -f core conftest.err conftest.$ac_objext \ 9145 conftest$ac_exeext conftest.$ac_ext 9146LIBS=$ac_check_lib_save_LIBS 9147fi 9148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 9149$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 9150if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 9151 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 9152fi 9153 9154 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 9155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 9156$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 9157if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 9158 $as_echo_n "(cached) " >&6 9159else 9160 ac_check_lib_save_LIBS=$LIBS 9161LIBS="-ldnet_stub $LIBS" 9162cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9163/* end confdefs.h. */ 9164 9165/* Override any GCC internal prototype to avoid an error. 9166 Use char because int might match the return type of a GCC 9167 builtin and then its argument prototype would still apply. */ 9168#ifdef __cplusplus 9169extern "C" 9170#endif 9171char dnet_ntoa (); 9172int 9173main () 9174{ 9175return dnet_ntoa (); 9176 ; 9177 return 0; 9178} 9179_ACEOF 9180if ac_fn_c_try_link "$LINENO"; then : 9181 ac_cv_lib_dnet_stub_dnet_ntoa=yes 9182else 9183 ac_cv_lib_dnet_stub_dnet_ntoa=no 9184fi 9185rm -f core conftest.err conftest.$ac_objext \ 9186 conftest$ac_exeext conftest.$ac_ext 9187LIBS=$ac_check_lib_save_LIBS 9188fi 9189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 9190$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 9191if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 9192 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 9193fi 9194 9195 fi 9196fi 9197rm -f core conftest.err conftest.$ac_objext \ 9198 conftest$ac_exeext conftest.$ac_ext 9199 LIBS="$ac_xsave_LIBS" 9200 9201 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 9202 # to get the SysV transport functions. 9203 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 9204 # needs -lnsl. 9205 # The nsl library prevents programs from opening the X display 9206 # on Irix 5.2, according to T.E. Dickey. 9207 # The functions gethostbyname, getservbyname, and inet_addr are 9208 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 9209 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 9210if test "x$ac_cv_func_gethostbyname" = xyes; then : 9211 9212fi 9213 9214 if test $ac_cv_func_gethostbyname = no; then 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 9216$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 9217if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 9218 $as_echo_n "(cached) " >&6 9219else 9220 ac_check_lib_save_LIBS=$LIBS 9221LIBS="-lnsl $LIBS" 9222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9223/* end confdefs.h. */ 9224 9225/* Override any GCC internal prototype to avoid an error. 9226 Use char because int might match the return type of a GCC 9227 builtin and then its argument prototype would still apply. */ 9228#ifdef __cplusplus 9229extern "C" 9230#endif 9231char gethostbyname (); 9232int 9233main () 9234{ 9235return gethostbyname (); 9236 ; 9237 return 0; 9238} 9239_ACEOF 9240if ac_fn_c_try_link "$LINENO"; then : 9241 ac_cv_lib_nsl_gethostbyname=yes 9242else 9243 ac_cv_lib_nsl_gethostbyname=no 9244fi 9245rm -f core conftest.err conftest.$ac_objext \ 9246 conftest$ac_exeext conftest.$ac_ext 9247LIBS=$ac_check_lib_save_LIBS 9248fi 9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 9250$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 9251if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 9252 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 9253fi 9254 9255 if test $ac_cv_lib_nsl_gethostbyname = no; then 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 9257$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 9258if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 9259 $as_echo_n "(cached) " >&6 9260else 9261 ac_check_lib_save_LIBS=$LIBS 9262LIBS="-lbsd $LIBS" 9263cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9264/* end confdefs.h. */ 9265 9266/* Override any GCC internal prototype to avoid an error. 9267 Use char because int might match the return type of a GCC 9268 builtin and then its argument prototype would still apply. */ 9269#ifdef __cplusplus 9270extern "C" 9271#endif 9272char gethostbyname (); 9273int 9274main () 9275{ 9276return gethostbyname (); 9277 ; 9278 return 0; 9279} 9280_ACEOF 9281if ac_fn_c_try_link "$LINENO"; then : 9282 ac_cv_lib_bsd_gethostbyname=yes 9283else 9284 ac_cv_lib_bsd_gethostbyname=no 9285fi 9286rm -f core conftest.err conftest.$ac_objext \ 9287 conftest$ac_exeext conftest.$ac_ext 9288LIBS=$ac_check_lib_save_LIBS 9289fi 9290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 9291$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 9292if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 9293 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 9294fi 9295 9296 fi 9297 fi 9298 9299 # lieder@skyler.mavd.honeywell.com says without -lsocket, 9300 # socket/setsockopt and other routines are undefined under SCO ODT 9301 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 9302 # on later versions), says Simon Leinen: it contains gethostby* 9303 # variants that don't use the name server (or something). -lsocket 9304 # must be given before -lnsl if both are needed. We assume that 9305 # if connect needs -lnsl, so does gethostbyname. 9306 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 9307if test "x$ac_cv_func_connect" = xyes; then : 9308 9309fi 9310 9311 if test $ac_cv_func_connect = no; then 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 9313$as_echo_n "checking for connect in -lsocket... " >&6; } 9314if ${ac_cv_lib_socket_connect+:} false; then : 9315 $as_echo_n "(cached) " >&6 9316else 9317 ac_check_lib_save_LIBS=$LIBS 9318LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 9319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9320/* end confdefs.h. */ 9321 9322/* Override any GCC internal prototype to avoid an error. 9323 Use char because int might match the return type of a GCC 9324 builtin and then its argument prototype would still apply. */ 9325#ifdef __cplusplus 9326extern "C" 9327#endif 9328char connect (); 9329int 9330main () 9331{ 9332return connect (); 9333 ; 9334 return 0; 9335} 9336_ACEOF 9337if ac_fn_c_try_link "$LINENO"; then : 9338 ac_cv_lib_socket_connect=yes 9339else 9340 ac_cv_lib_socket_connect=no 9341fi 9342rm -f core conftest.err conftest.$ac_objext \ 9343 conftest$ac_exeext conftest.$ac_ext 9344LIBS=$ac_check_lib_save_LIBS 9345fi 9346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 9347$as_echo "$ac_cv_lib_socket_connect" >&6; } 9348if test "x$ac_cv_lib_socket_connect" = xyes; then : 9349 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 9350fi 9351 9352 fi 9353 9354 # Guillermo Gomez says -lposix is necessary on A/UX. 9355 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 9356if test "x$ac_cv_func_remove" = xyes; then : 9357 9358fi 9359 9360 if test $ac_cv_func_remove = no; then 9361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 9362$as_echo_n "checking for remove in -lposix... " >&6; } 9363if ${ac_cv_lib_posix_remove+:} false; then : 9364 $as_echo_n "(cached) " >&6 9365else 9366 ac_check_lib_save_LIBS=$LIBS 9367LIBS="-lposix $LIBS" 9368cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9369/* end confdefs.h. */ 9370 9371/* Override any GCC internal prototype to avoid an error. 9372 Use char because int might match the return type of a GCC 9373 builtin and then its argument prototype would still apply. */ 9374#ifdef __cplusplus 9375extern "C" 9376#endif 9377char remove (); 9378int 9379main () 9380{ 9381return remove (); 9382 ; 9383 return 0; 9384} 9385_ACEOF 9386if ac_fn_c_try_link "$LINENO"; then : 9387 ac_cv_lib_posix_remove=yes 9388else 9389 ac_cv_lib_posix_remove=no 9390fi 9391rm -f core conftest.err conftest.$ac_objext \ 9392 conftest$ac_exeext conftest.$ac_ext 9393LIBS=$ac_check_lib_save_LIBS 9394fi 9395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 9396$as_echo "$ac_cv_lib_posix_remove" >&6; } 9397if test "x$ac_cv_lib_posix_remove" = xyes; then : 9398 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 9399fi 9400 9401 fi 9402 9403 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 9404 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 9405if test "x$ac_cv_func_shmat" = xyes; then : 9406 9407fi 9408 9409 if test $ac_cv_func_shmat = no; then 9410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 9411$as_echo_n "checking for shmat in -lipc... " >&6; } 9412if ${ac_cv_lib_ipc_shmat+:} false; then : 9413 $as_echo_n "(cached) " >&6 9414else 9415 ac_check_lib_save_LIBS=$LIBS 9416LIBS="-lipc $LIBS" 9417cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9418/* end confdefs.h. */ 9419 9420/* Override any GCC internal prototype to avoid an error. 9421 Use char because int might match the return type of a GCC 9422 builtin and then its argument prototype would still apply. */ 9423#ifdef __cplusplus 9424extern "C" 9425#endif 9426char shmat (); 9427int 9428main () 9429{ 9430return shmat (); 9431 ; 9432 return 0; 9433} 9434_ACEOF 9435if ac_fn_c_try_link "$LINENO"; then : 9436 ac_cv_lib_ipc_shmat=yes 9437else 9438 ac_cv_lib_ipc_shmat=no 9439fi 9440rm -f core conftest.err conftest.$ac_objext \ 9441 conftest$ac_exeext conftest.$ac_ext 9442LIBS=$ac_check_lib_save_LIBS 9443fi 9444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 9445$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 9446if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 9447 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 9448fi 9449 9450 fi 9451 fi 9452 9453 # Check for libraries that X11R6 Xt/Xaw programs need. 9454 ac_save_LDFLAGS=$LDFLAGS 9455 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 9456 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 9457 # check for ICE first), but we must link in the order -lSM -lICE or 9458 # we get undefined symbols. So assume we have SM if we have ICE. 9459 # These have to be linked with before -lX11, unlike the other 9460 # libraries we check for below, so use a different variable. 9461 # John Interrante, Karl Berry 9462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 9463$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 9464if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 9465 $as_echo_n "(cached) " >&6 9466else 9467 ac_check_lib_save_LIBS=$LIBS 9468LIBS="-lICE $X_EXTRA_LIBS $LIBS" 9469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9470/* end confdefs.h. */ 9471 9472/* Override any GCC internal prototype to avoid an error. 9473 Use char because int might match the return type of a GCC 9474 builtin and then its argument prototype would still apply. */ 9475#ifdef __cplusplus 9476extern "C" 9477#endif 9478char IceConnectionNumber (); 9479int 9480main () 9481{ 9482return IceConnectionNumber (); 9483 ; 9484 return 0; 9485} 9486_ACEOF 9487if ac_fn_c_try_link "$LINENO"; then : 9488 ac_cv_lib_ICE_IceConnectionNumber=yes 9489else 9490 ac_cv_lib_ICE_IceConnectionNumber=no 9491fi 9492rm -f core conftest.err conftest.$ac_objext \ 9493 conftest$ac_exeext conftest.$ac_ext 9494LIBS=$ac_check_lib_save_LIBS 9495fi 9496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 9497$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 9498if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 9499 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 9500fi 9501 9502 LDFLAGS=$ac_save_LDFLAGS 9503 9504fi 9505 9506 9507 9508 9509 9510 #LIBS="$LIBS ${X_LIBS} ${GTK_LIBS}" 9511 #CFLAGS="$CFLAGS ${X_CFLAGS} ${GTK_CFLAGS}" 9512fi 9513 9514 9515my_usedisk=yes 9516# Check whether --enable-disk was given. 9517if test "${enable_disk+set}" = set; then : 9518 enableval=$enable_disk; 9519 if test "x${enable_disk}" = "xno"; then 9520 my_usedisk=no 9521 fi 9522 9523 9524fi 9525 9526if test "x${my_usedisk}" = "xyes"; then 9527 9528$as_echo "#define HAVE_DISK 1" >>confdefs.h 9529 9530fi 9531 9532# Check whether --enable-high-precision was given. 9533if test "${enable_high_precision+set}" = set; then : 9534 enableval=$enable_high_precision; 9535 if test "x${enable_high_precision}" = "xyes"; then 9536 9537$as_echo "#define HIGH_PRECISION 1" >>confdefs.h 9538 9539 fi 9540 9541 9542fi 9543 9544 9545# Check whether --enable-opengl was given. 9546if test "${enable_opengl+set}" = set; then : 9547 enableval=$enable_opengl; 9548 if test "x${enable_opengl}" = "xno"; then 9549 my_opengl="no" 9550 fi 9551 9552 9553fi 9554 9555 9556 9557# Check whether --with-gl-prefix was given. 9558if test "${with_gl_prefix+set}" = set; then : 9559 withval=$with_gl_prefix; gl_prefix="$withval" 9560else 9561 gl_prefix="" 9562fi 9563 9564 9565 9566# Check whether --with-gtkgl-prefix was given. 9567if test "${with_gtkgl_prefix+set}" = set; then : 9568 withval=$with_gtkgl_prefix; gtkgl_prefix="$withval" 9569else 9570 gtkgl_prefix="" 9571fi 9572 9573 9574 9575# Check whether --with-lib-GL was given. 9576if test "${with_lib_GL+set}" = set; then : 9577 withval=$with_lib_GL; 9578fi 9579 9580 9581# Check whether --with-lib-MesaGL was given. 9582if test "${with_lib_MesaGL+set}" = set; then : 9583 withval=$with_lib_MesaGL; 9584fi 9585 9586 9587GL_LIBS="" 9588 9589## tests for OpenGL 9590if test x$gl_prefix != x ; then 9591 GL_CFLAGS="-I$gl_prefix/include" 9592 GL_LDOPTS="-L$gl_prefix/lib" 9593else 9594 GL_CFLAGS="" 9595 GL_LDOPTS="" 9596fi 9597 9598saved_LIBS="$LIBS" 9599saved_CFLAGS="$CFLAGS" 9600 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenGL" >&5 9602$as_echo_n "checking OpenGL... " >&6; } 9603LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lGLU -lGL" 9604cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9605/* end confdefs.h. */ 9606 9607int 9608main () 9609{ 9610 char glBegin(); glBegin(); 9611 ; 9612 return 0; 9613} 9614_ACEOF 9615if ac_fn_c_try_link "$LINENO"; then : 9616 have_GL=yes 9617else 9618 have_GL=no 9619fi 9620rm -f core conftest.err conftest.$ac_objext \ 9621 conftest$ac_exeext conftest.$ac_ext 9622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_GL" >&5 9623$as_echo "$have_GL" >&6; } 9624 9625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Mesa" >&5 9626$as_echo_n "checking Mesa... " >&6; } 9627LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL" 9628cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629/* end confdefs.h. */ 9630 9631int 9632main () 9633{ 9634 char glBegin(); glBegin(); 9635 ; 9636 return 0; 9637} 9638_ACEOF 9639if ac_fn_c_try_link "$LINENO"; then : 9640 have_MesaGL=yes 9641else 9642 have_MesaGL=no 9643fi 9644rm -f core conftest.err conftest.$ac_objext \ 9645 conftest$ac_exeext conftest.$ac_ext 9646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_MesaGL" >&5 9647$as_echo "$have_MesaGL" >&6; } 9648 9649if test "x$have_MesaGL" = "xno"; then 9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mesa with pthreads" >&5 9651$as_echo_n "checking Mesa with pthreads... " >&6; } 9652 LIBS="$saved_LIBS $GTK_LIBS $GL_LDOPTS -lMesaGLU -lMesaGL -lpthread" 9653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9654/* end confdefs.h. */ 9655 9656int 9657main () 9658{ 9659 char glBegin(); glBegin(); 9660 ; 9661 return 0; 9662} 9663_ACEOF 9664if ac_fn_c_try_link "$LINENO"; then : 9665 have_MesaGL_pthread=yes 9666else 9667 have_MesaGL_pthread=no 9668fi 9669rm -f core conftest.err conftest.$ac_objext \ 9670 conftest$ac_exeext conftest.$ac_ext 9671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_MesaGL_pthread" >&5 9672$as_echo "$have_MesaGL_pthread" >&6; } 9673fi 9674 9675LIBS="$saved_LIBS" 9676 9677if test "x$with_lib_MesaGL" = "xyes"; then 9678 9679 if test "x$have_MesaGL" = "xyes"; then 9680 GL_LIBS="$GL_LDOPTS -lglut -lMesaGLU -lMesaGL -lXmu" 9681 echo " -- using MesaGL" 9682 elif test "x$have_MesaGL_pthread" = "xyes"; then 9683 GL_LIBS="$GL_LDOPTS -lglut -lMesaGLU -lMesaGL -lXmu -lpthread" 9684 echo " -- using MesaGL with pthreads" 9685 else 9686 as_fn_error $? "MesaGL not available" "$LINENO" 5 9687 fi 9688 9689elif test "x$with_lib_GL" = "xyes"; then 9690 9691 if test "x$have_GL" = "xyes"; then 9692 GL_LIBS="$GL_LDOPTS -lglut -lGLU -lGL" 9693 echo " -- using OpenGL" 9694 else 9695 as_fn_error $? "OpenGL not available" "$LINENO" 5 9696 fi 9697 9698else 9699 9700 if test "x$have_GL" = "xyes"; then 9701 GL_LIBS="$GL_LDOPTS -lglut -lGLU -lGL" 9702 echo " -- using OpenGL" 9703 elif test "x$have_MesaGL" = "xyes"; then 9704 GL_LIBS="$GL_LDOPTS -lglut -lMesaGLU -lMesaGL -lXmu" 9705 echo " -- using MesaGL" 9706 elif test "x$have_MesaGL_pthread" = "xyes"; then 9707 GL_LIBS="$GL_LDOPTS -lglut -lMesaGLU -lMesaGL -lpthread -lXmu" 9708 echo " -- using MesaGL with pthreads" 9709 fi 9710 9711fi 9712 9713 9714## tests for GtkGLArea 9715 9716have_gtkgl="no" 9717 9718if test x"$my_have_gtk2" = "xyes" 9719then 9720 9721 succeeded=no 9722 9723 if test -z "$PKG_CONFIG"; then 9724 # Extract the first word of "pkg-config", so it can be a program name with args. 9725set dummy pkg-config; ac_word=$2 9726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9727$as_echo_n "checking for $ac_word... " >&6; } 9728if ${ac_cv_path_PKG_CONFIG+:} false; then : 9729 $as_echo_n "(cached) " >&6 9730else 9731 case $PKG_CONFIG in 9732 [\\/]* | ?:[\\/]*) 9733 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9734 ;; 9735 *) 9736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9737for as_dir in $PATH 9738do 9739 IFS=$as_save_IFS 9740 test -z "$as_dir" && as_dir=. 9741 for ac_exec_ext in '' $ac_executable_extensions; do 9742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9743 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9745 break 2 9746 fi 9747done 9748 done 9749IFS=$as_save_IFS 9750 9751 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9752 ;; 9753esac 9754fi 9755PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9756if test -n "$PKG_CONFIG"; then 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9758$as_echo "$PKG_CONFIG" >&6; } 9759else 9760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9761$as_echo "no" >&6; } 9762fi 9763 9764 9765 fi 9766 9767 if test "$PKG_CONFIG" = "no" ; then 9768 echo "*** The pkg-config script could not be found. Make sure it is" 9769 echo "*** in your path, or set the PKG_CONFIG environment variable" 9770 echo "*** to the full path to pkg-config." 9771 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 9772 else 9773 PKG_CONFIG_MIN_VERSION=0.9.0 9774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkgl-2.0 >= 1.0" >&5 9776$as_echo_n "checking for gtkgl-2.0 >= 1.0... " >&6; } 9777 9778 if $PKG_CONFIG --exists "gtkgl-2.0 >= 1.0" ; then 9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9780$as_echo "yes" >&6; } 9781 succeeded=yes 9782 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTKGL_CFLAGS" >&5 9784$as_echo_n "checking GTKGL_CFLAGS... " >&6; } 9785 GTKGL_CFLAGS=`$PKG_CONFIG --cflags "gtkgl-2.0 >= 1.0"` 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKGL_CFLAGS" >&5 9787$as_echo "$GTKGL_CFLAGS" >&6; } 9788 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTKGL_LIBS" >&5 9790$as_echo_n "checking GTKGL_LIBS... " >&6; } 9791 GTKGL_LIBS=`$PKG_CONFIG --libs "gtkgl-2.0 >= 1.0"` 9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKGL_LIBS" >&5 9793$as_echo "$GTKGL_LIBS" >&6; } 9794 else 9795 GTKGL_CFLAGS="" 9796 GTKGL_LIBS="" 9797 ## If we have a custom action on failure, don't print errors, but 9798 ## do set a variable so people can do so. 9799 GTKGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkgl-2.0 >= 1.0"` 9800 9801 fi 9802 9803 9804 9805 else 9806 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 9807 echo "*** See http://www.freedesktop.org/software/pkgconfig" 9808 fi 9809 fi 9810 9811 if test $succeeded = yes; then 9812 9813 have_gtkgl="yes" 9814 9815 else 9816 9817 have_gtkgl="no" 9818 echo "*** Cannot find gtkgl-2 on your system" 9819 9820 fi 9821 9822else 9823 9824if test x"$have_gtkgl" = "xno" 9825then 9826 9827 succeeded=no 9828 9829 if test -z "$PKG_CONFIG"; then 9830 # Extract the first word of "pkg-config", so it can be a program name with args. 9831set dummy pkg-config; ac_word=$2 9832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9833$as_echo_n "checking for $ac_word... " >&6; } 9834if ${ac_cv_path_PKG_CONFIG+:} false; then : 9835 $as_echo_n "(cached) " >&6 9836else 9837 case $PKG_CONFIG in 9838 [\\/]* | ?:[\\/]*) 9839 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9840 ;; 9841 *) 9842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9843for as_dir in $PATH 9844do 9845 IFS=$as_save_IFS 9846 test -z "$as_dir" && as_dir=. 9847 for ac_exec_ext in '' $ac_executable_extensions; do 9848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9849 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9851 break 2 9852 fi 9853done 9854 done 9855IFS=$as_save_IFS 9856 9857 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9858 ;; 9859esac 9860fi 9861PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9862if test -n "$PKG_CONFIG"; then 9863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9864$as_echo "$PKG_CONFIG" >&6; } 9865else 9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9867$as_echo "no" >&6; } 9868fi 9869 9870 9871 fi 9872 9873 if test "$PKG_CONFIG" = "no" ; then 9874 echo "*** The pkg-config script could not be found. Make sure it is" 9875 echo "*** in your path, or set the PKG_CONFIG environment variable" 9876 echo "*** to the full path to pkg-config." 9877 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." 9878 else 9879 PKG_CONFIG_MIN_VERSION=0.9.0 9880 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtkgl >= 1.2" >&5 9882$as_echo_n "checking for gtkgl >= 1.2... " >&6; } 9883 9884 if $PKG_CONFIG --exists "gtkgl >= 1.2" ; then 9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9886$as_echo "yes" >&6; } 9887 succeeded=yes 9888 9889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTKGL_CFLAGS" >&5 9890$as_echo_n "checking GTKGL_CFLAGS... " >&6; } 9891 GTKGL_CFLAGS=`$PKG_CONFIG --cflags "gtkgl >= 1.2"` 9892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKGL_CFLAGS" >&5 9893$as_echo "$GTKGL_CFLAGS" >&6; } 9894 9895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTKGL_LIBS" >&5 9896$as_echo_n "checking GTKGL_LIBS... " >&6; } 9897 GTKGL_LIBS=`$PKG_CONFIG --libs "gtkgl >= 1.2"` 9898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKGL_LIBS" >&5 9899$as_echo "$GTKGL_LIBS" >&6; } 9900 else 9901 GTKGL_CFLAGS="" 9902 GTKGL_LIBS="" 9903 ## If we have a custom action on failure, don't print errors, but 9904 ## do set a variable so people can do so. 9905 GTKGL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtkgl >= 1.2"` 9906 9907 fi 9908 9909 9910 9911 else 9912 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer." 9913 echo "*** See http://www.freedesktop.org/software/pkgconfig" 9914 fi 9915 fi 9916 9917 if test $succeeded = yes; then 9918 9919 have_gtkgl="yes" 9920 9921 else 9922 9923 have_gtkgl="no" 9924 echo "*** Cannot find gtkgl with pkg-config" 9925 echo "*** Continue searching for gtkgl >= 1.2" 9926 9927 fi 9928 9929fi 9930 9931if test x"$have_gtkgl" = "xno" 9932then 9933 if test x$gtkgl_prefix != x; then 9934 GTKGL_CFLAGS="-I$gtkgl_prefix/include" 9935 GTKGL_LIBS="-L$gtkgl_prefix/lib -lgtkgl" 9936 else 9937 GTKGL_CFLAGS="" 9938 GTKGL_LIBS="-lgtkgl" 9939 fi 9940 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GtkGLArea" >&5 9942$as_echo_n "checking GtkGLArea... " >&6; } 9943 LIBS="$saved_LIBS $X_LIBS $X_EXTRA_LIBS $GTKGL_LIBS $GTK_LIBS $GL_LDOPTS $GL_LIBS" 9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9945/* end confdefs.h. */ 9946 9947int 9948main () 9949{ 9950 char gtk_gl_area_new(); gtk_gl_area_new(); 9951 ; 9952 return 0; 9953} 9954_ACEOF 9955if ac_fn_c_try_link "$LINENO"; then : 9956 have_gtkgl=yes 9957else 9958 have_gtkgl=no 9959fi 9960rm -f core conftest.err conftest.$ac_objext \ 9961 conftest$ac_exeext conftest.$ac_ext 9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_gtkgl" >&5 9963$as_echo "$have_gtkgl" >&6; } 9964fi 9965fi 9966 9967if test "x${my_opengl}" != "xno" -a "x${have_gtkgl}" = xyes; then 9968 9969 LIBS="$saved_LIBS" 9970 CFLAGS="$saved_CFLAGS" 9971 GTKGL_CFLAGS="$X_CFLAGS $GTKGL_CFLAGS $GTK_CFLAGS $GL_CFLAGS" 9972 GTKGL_LIBS="$X_LIBS $X_EXTRA_LIBS $GTKGL_LIBS $GTK_LIBS $GL_LDOPTS $GL_LIBS" 9973 9974else 9975 9976 LIBS="$saved_LIBS $X_LIBS $X_EXTRA_LIBS $GTK_LIBS" 9977 CFLAGS="$saved_CFLAGS $X_CFLAGS $GTK_CFLAGS" 9978 GTKGL_LIBS="" 9979 GTKGL_CFLAGS="" 9980 9981fi 9982 9983 9984 9985 9986my_jpeg="no" 9987ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 9988if test "x$ac_cv_header_jpeglib_h" = xyes; then : 9989 my_jpeg="yes" 9990fi 9991 9992 9993 9994if test "x${my_opengl}" != "xno"; then 9995 if test x$have_gtkgl = xyes; then 9996 if test "x$my_jpeg" != "xno"; then 9997 if test "x$my_gtkgl" != "xno"; then 9998 CFLAGS="$CFLAGS $GTKGL_CFLAGS" 9999 LIBS="$LIBS $GTKGL_LIBS -ljpeg" 10000 # LIBS="$LIBS $GL_LIBS -lgtkgl -ljpeg" 10001 10002$as_echo "#define _WITH_OPENGL 1" >>confdefs.h 10003 10004 fi 10005 else 10006 echo " -- OpenGL disabled (jpeglib not found)" 10007 fi 10008 else 10009 echo " -- OpenGL disabled (gtkgl not found)" 10010 fi 10011else 10012 echo " -- OpenGL disabled" 10013fi 10014 10015# Check whether --enable-openmp was given. 10016if test "${enable_openmp+set}" = set; then : 10017 enableval=$enable_openmp; 10018 if test "x${enable_openmp}" = "xyes"; then 10019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler flag to enable OpenMP" >&5 10020$as_echo_n "checking compiler flag to enable OpenMP... " >&6; } 10021 have_openmp= 10022 if test "x$GCC" = "xyes"; then 10023 CFLAGS="$CFLAGS -fopenmp" 10024 LIBS="$LIBS -lgomp" 10025 have_openmp="-fopenmp" 10026 else 10027 have_openmp="unknown" 10028 fi 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_openmp" >&5 10030$as_echo "$have_openmp" >&6; } 10031 fi 10032 10033fi 10034 10035 10036 10037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to plot output" >&5 10038$as_echo_n "checking how to plot output... " >&6; } 10039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: let's see" >&5 10040$as_echo "let's see" >&6; } 10041graphtype=no 10042 10043 10044 10045# Check whether --with-gnuplot was given. 10046if test "${with_gnuplot+set}" = set; then : 10047 withval=$with_gnuplot; 10048$as_echo "#define _WITH_PGPLOT 1" >>confdefs.h 10049 10050 10051$as_echo "#define _WITH_GNUPLOT 1" >>confdefs.h 10052 10053 F77="$CC" 10054 fortran="no" 10055 graphtype="gnuplot" 10056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: build with gnuplot support enforced ... no testing done" >&5 10057$as_echo "$as_me: WARNING: build with gnuplot support enforced ... no testing done" >&2;} 10058fi 10059 10060 10061 10062if test x$F77 = x ; then 10063 F77="$CC" 10064 fortran="no" 10065else 10066 if test "x$GCC" = "x"; then 10067 10068 case $host_os in 10069 ultrix*) 10070 CC="$CC -Dmain=MAIN_" 10071 ;; 10072 osf*) 10073 CC="$CC -Dmain=MAIN__" 10074 ;; 10075 sunos*) 10076 CC="$CC -Dmain=MAIN_" 10077 ;; 10078 esac 10079 fi 10080fi 10081 10082if test x$fortran != xno ; then 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PGPLOT" >&5 10084$as_echo_n "checking for PGPLOT... " >&6; } 10085 10086# Check whether --with-pgplot-include was given. 10087if test "${with_pgplot_include+set}" = set; then : 10088 withval=$with_pgplot_include; pgplot_include="$withval" 10089else 10090 pgplot_include="/usr/include" 10091 if test -f ${pgplot_include}/cpgplot.h; then 10092 : 10093 else 10094 pgplot_include="/usr/local/include" 10095 fi 10096 if test -f ${pgplot_include}/cpgplot.h; then 10097 : 10098 else 10099 pgplot_include="/usr/local/pgplot" 10100 fi 10101 10102fi 10103 10104 10105# Check whether --with-pgplot-lib was given. 10106if test "${with_pgplot_lib+set}" = set; then : 10107 withval=$with_pgplot_lib; pgplot_lib="$withval" 10108else 10109 pgplot_lib="/usr/lib" 10110 if test -f ${pgplot_lib}/libcpgplot.a; then 10111 : 10112 else 10113 pgplot_lib="/usr/local/lib" 10114 fi 10115 if test -f ${pgplot_lib}/libcpgplot.a; then 10116 : 10117 else 10118 pgplot_lib="/usr/local/pgplot" 10119 fi 10120 10121fi 10122 10123 if test x$pgplot_include != x; then 10124 if test -f ${pgplot_include}/cpgplot.h ; then 10125 my_back_flags="$CFLAGS" 10126 my_back_libs="$LIBS" 10127 PGPLOT_INCLUDE="-I$pgplot_include" 10128 PGPLOT_LIB="-L$pgplot_lib" 10129 PGPLOT_LIB="$PGPLOT_LIB -lcpgplot -lpgplot" 10130 PGPLOT_LIB="$PGPLOT_LIB -L/usr/X11R6/lib -lX11" 10131 CFLAGS="$PGPLOT_INCLUDE $CFLAGS" 10132 LIBS="$PGPLOT_LIB $LIBS" 10133 if test -z "`echo "$FFLAGS" | grep "\-O2" 2>/dev/null`"; then 10134 CFLAGS=`echo $CFLAGS | sed 's%\-O2%%' ` 10135 fi 10136 ac_ext=c 10137# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. 10138ac_cpp='$CPP $CPPFLAGS' 10139ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' 10140ac_link='${F77-f77} -o conftest${ac_exeext} $CFLAGS $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' 10141cross_compiling=$ac_cv_prog_cc_cross 10142 10143 err1msg=" tried compile with ${CC-cc} -c $CFLAGS $CPPFLAGS" 10144 err2msg=" tried link with ${F77-f77} -o conftest${ac_exeext} $CFLAGS $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS" 10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10146/* end confdefs.h. */ 10147#include "cpgplot.h" 10148int 10149main () 10150{ 10151cpgopen("/NULL"); /* open NULL device */ 10152 cpgscf(2); /* set colour */ 10153 cpgend(); /* end plot */ 10154 ; 10155 return 0; 10156} 10157_ACEOF 10158if ac_fn_c_try_link "$LINENO"; then : 10159 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: compiles and links" >&5 10161$as_echo "compiles and links" >&6; } 10162 10163$as_echo "#define _WITH_PGPLOT 1" >>confdefs.h 10164 10165 graphtype="pgplot" 10166 echo " -- using files in ${pgplot_include}, ${pgplot_lib}" 10167 10168else 10169 10170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not work properly" >&5 10171$as_echo "does not work properly" >&6; } 10172 echo "$err1msg" 10173 echo "$err2msg" 10174 F77="$CC" 10175 CFLAGS="$my_back_flags" 10176 LIBS="$my_back_libs" 10177 10178fi 10179rm -f core conftest.err conftest.$ac_objext \ 10180 conftest$ac_exeext conftest.$ac_ext 10181 else 10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10183$as_echo "no" >&6; } 10184 FF="$CC" 10185 fi 10186 fi 10187else 10188 if test x$graphtype = xno; then 10189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skip search for PGPLOT ... no Fortran compiler for linking" >&5 10190$as_echo "$as_me: WARNING: skip search for PGPLOT ... no Fortran compiler for linking" >&2;} 10191 fi 10192fi 10193 10194 10195 10196# if not PGPLOT, test for GNUPLOT 10197if test x$graphtype = xno; then 10198 F77="$CC" 10199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUPLOT" >&5 10200$as_echo_n "checking for GNUPLOT... " >&6; } 10201 echo "set bkbkhkjhk" > conftest_test ; 10202 gnuplot conftest_test 2> conftest_res ; 10203 GPL_TEST=`grep "multiplot" conftest_res` ; 10204# if "multiplot" is in the list of options 10205 if test "${GPL_TEST}blah" != blah ; then 10206 10207$as_echo "#define _WITH_PGPLOT 1" >>confdefs.h 10208 10209 10210$as_echo "#define _WITH_GNUPLOT 1" >>confdefs.h 10211 10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10213$as_echo "yes" >&6; } 10214 else 10215 echo "set multiplot" > conftest_test ; 10216 gnuplot conftest_test 2> /dev/null ; 10217 if test x$? = x0; then 10218 10219$as_echo "#define _WITH_PGPLOT 1" >>confdefs.h 10220 10221 10222$as_echo "#define _WITH_GNUPLOT 1" >>confdefs.h 10223 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10225$as_echo "yes" >&6; } 10226 else 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10228$as_echo "no" >&6; } 10229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNUPLOT is not in path or version too old" >&5 10230$as_echo "$as_me: WARNING: GNUPLOT is not in path or version too old" >&2;} 10231 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no plotting program found" >&5 10232$as_echo "$as_me: WARNING: no plotting program found" >&2;} 10233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no graphic output will be possible" >&5 10234$as_echo "$as_me: WARNING: no graphic output will be possible" >&2;} 10235 fi 10236 fi 10237 rm -rf conftest* 10238fi 10239 10240mydataroot="${datarootdir}/${PACKAGE}" 10241# mydataroot=`eval echo ${mydataroot}` 10242# mydataroot=`eval echo ${mydataroot}` 10243 10244 10245 10246# Check whether --with-data-prefix was given. 10247if test "${with_data_prefix+set}" = set; then : 10248 withval=$with_data_prefix; mydatadir="$withval" 10249else 10250 mydatadir="${mydataroot}/data" 10251fi 10252 10253 10254 10255 10256# Check whether --with-cfg-prefix was given. 10257if test "${with_cfg_prefix+set}" = set; then : 10258 withval=$with_cfg_prefix; mycfgdir="$withval" 10259else 10260 mycfgdir="${mydataroot}/cfg" 10261fi 10262 10263 10264 10265 10266# Check whether --with-doc-prefix was given. 10267if test "${with_doc_prefix+set}" = set; then : 10268 withval=$with_doc_prefix; mydocdir="$withval" 10269else 10270 mydocdir="${mydataroot}/doc" 10271fi 10272 10273 10274 10275 10276# Check whether --with-gnomedoc-prefix was given. 10277if test "${with_gnomedoc_prefix+set}" = set; then : 10278 withval=$with_gnomedoc_prefix; mygdocdir="$withval" 10279else 10280 mygdocdir="${mydataroot}" 10281fi 10282 10283 10284 10285 10286# Check whether --with-locale-prefix was given. 10287if test "${with_locale_prefix+set}" = set; then : 10288 withval=$with_locale_prefix; mylocaledir="$withval" 10289else 10290 mylocaledir="${mydataroot}/locale" 10291fi 10292 10293 10294 10295 10296# Check whether --with-pixmap-prefix was given. 10297if test "${with_pixmap_prefix+set}" = set; then : 10298 withval=$with_pixmap_prefix; mypixmapdir="$withval" 10299else 10300 mypixmapdir="${mydataroot}/pixmaps" 10301fi 10302 10303 10304 10305 10306# Check whether --with-manual-prefix was given. 10307if test "${with_manual_prefix+set}" = set; then : 10308 withval=$with_manual_prefix; mymanualdir="$withval" 10309else 10310 mymanualdir="${mydataroot}/doc" 10311fi 10312 10313 10314 10315my_save_prefix="${prefix}" 10316if test "X$prefix" = "XNONE"; then 10317 prefix="$ac_default_prefix" 10318else 10319 prefix="$prefix" 10320fi 10321PREFIX=`eval echo ${prefix}` ; PREFIX=`eval echo ${PREFIX}` 10322 10323cat >>confdefs.h <<_ACEOF 10324#define PREFIX "$PREFIX" 10325_ACEOF 10326 10327SYSCONFDIR=`eval echo ${sysconfdir}` ; SYSCONFDIR=`eval echo ${SYSCONFDIR}` 10328 10329cat >>confdefs.h <<_ACEOF 10330#define SYSCONFDIR "$SYSCONFDIR" 10331_ACEOF 10332 10333DATADIR=`eval echo ${mydataroot}` ; DATADIR=`eval echo ${DATADIR}` 10334 10335cat >>confdefs.h <<_ACEOF 10336#define DATADIR "$DATADIR" 10337_ACEOF 10338 10339LIBDIR=`eval echo ${libdir}` ; LIBDIR=`eval echo ${LIBDIR}` 10340 10341cat >>confdefs.h <<_ACEOF 10342#define LIBDIR "$LIBDIR" 10343_ACEOF 10344 10345GDOCDIR=`eval echo ${mygdocdir}` ; GDOCDIR=`eval echo ${GDOCDIR}` 10346 10347cat >>confdefs.h <<_ACEOF 10348#define GDOCDIR "$GDOCDIR" 10349_ACEOF 10350 10351prefix="${my_save_prefix}" 10352 10353ac_config_headers="$ac_config_headers config.h" 10354 10355 10356ac_config_files="$ac_config_files Makefile intl/Makefile po/Makefile.in nightfall.spec" 10357 10358cat >confcache <<\_ACEOF 10359# This file is a shell script that caches the results of configure 10360# tests run on this system so they can be shared between configure 10361# scripts and configure runs, see configure's option --config-cache. 10362# It is not useful on other systems. If it contains results you don't 10363# want to keep, you may remove or edit it. 10364# 10365# config.status only pays attention to the cache file if you give it 10366# the --recheck option to rerun configure. 10367# 10368# `ac_cv_env_foo' variables (set or unset) will be overridden when 10369# loading this file, other *unset* `ac_cv_foo' will be assigned the 10370# following values. 10371 10372_ACEOF 10373 10374# The following way of writing the cache mishandles newlines in values, 10375# but we know of no workaround that is simple, portable, and efficient. 10376# So, we kill variables containing newlines. 10377# Ultrix sh set writes to stderr and can't be redirected directly, 10378# and sets the high bit in the cache file unless we assign to the vars. 10379( 10380 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10381 eval ac_val=\$$ac_var 10382 case $ac_val in #( 10383 *${as_nl}*) 10384 case $ac_var in #( 10385 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10386$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10387 esac 10388 case $ac_var in #( 10389 _ | IFS | as_nl) ;; #( 10390 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10391 *) { eval $ac_var=; unset $ac_var;} ;; 10392 esac ;; 10393 esac 10394 done 10395 10396 (set) 2>&1 | 10397 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10398 *${as_nl}ac_space=\ *) 10399 # `set' does not quote correctly, so add quotes: double-quote 10400 # substitution turns \\\\ into \\, and sed turns \\ into \. 10401 sed -n \ 10402 "s/'/'\\\\''/g; 10403 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10404 ;; #( 10405 *) 10406 # `set' quotes correctly as required by POSIX, so do not add quotes. 10407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10408 ;; 10409 esac | 10410 sort 10411) | 10412 sed ' 10413 /^ac_cv_env_/b end 10414 t clear 10415 :clear 10416 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10417 t end 10418 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10419 :end' >>confcache 10420if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10421 if test -w "$cache_file"; then 10422 if test "x$cache_file" != "x/dev/null"; then 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10424$as_echo "$as_me: updating cache $cache_file" >&6;} 10425 if test ! -f "$cache_file" || test -h "$cache_file"; then 10426 cat confcache >"$cache_file" 10427 else 10428 case $cache_file in #( 10429 */* | ?:*) 10430 mv -f confcache "$cache_file"$$ && 10431 mv -f "$cache_file"$$ "$cache_file" ;; #( 10432 *) 10433 mv -f confcache "$cache_file" ;; 10434 esac 10435 fi 10436 fi 10437 else 10438 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10439$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10440 fi 10441fi 10442rm -f confcache 10443 10444test "x$prefix" = xNONE && prefix=$ac_default_prefix 10445# Let make expand exec_prefix. 10446test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 10447 10448DEFS=-DHAVE_CONFIG_H 10449 10450ac_libobjs= 10451ac_ltlibobjs= 10452U= 10453for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 10454 # 1. Remove the extension, and $U if already installed. 10455 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 10456 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 10457 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 10458 # will be set to the directory where LIBOBJS objects are built. 10459 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 10460 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 10461done 10462LIBOBJS=$ac_libobjs 10463 10464LTLIBOBJS=$ac_ltlibobjs 10465 10466 10467 10468: "${CONFIG_STATUS=./config.status}" 10469ac_write_fail=0 10470ac_clean_files_save=$ac_clean_files 10471ac_clean_files="$ac_clean_files $CONFIG_STATUS" 10472{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 10473$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 10474as_write_fail=0 10475cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 10476#! $SHELL 10477# Generated by $as_me. 10478# Run this file to recreate the current configuration. 10479# Compiler output produced by configure, useful for debugging 10480# configure, is in config.log if it exists. 10481 10482debug=false 10483ac_cs_recheck=false 10484ac_cs_silent=false 10485 10486SHELL=\${CONFIG_SHELL-$SHELL} 10487export SHELL 10488_ASEOF 10489cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 10490## -------------------- ## 10491## M4sh Initialization. ## 10492## -------------------- ## 10493 10494# Be more Bourne compatible 10495DUALCASE=1; export DUALCASE # for MKS sh 10496if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 10497 emulate sh 10498 NULLCMD=: 10499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 10500 # is contrary to our usage. Disable this feature. 10501 alias -g '${1+"$@"}'='"$@"' 10502 setopt NO_GLOB_SUBST 10503else 10504 case `(set -o) 2>/dev/null` in #( 10505 *posix*) : 10506 set -o posix ;; #( 10507 *) : 10508 ;; 10509esac 10510fi 10511 10512 10513as_nl=' 10514' 10515export as_nl 10516# Printing a long string crashes Solaris 7 /usr/bin/printf. 10517as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 10518as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 10519as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 10520# Prefer a ksh shell builtin over an external printf program on Solaris, 10521# but without wasting forks for bash or zsh. 10522if test -z "$BASH_VERSION$ZSH_VERSION" \ 10523 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 10524 as_echo='print -r --' 10525 as_echo_n='print -rn --' 10526elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 10527 as_echo='printf %s\n' 10528 as_echo_n='printf %s' 10529else 10530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 10531 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 10532 as_echo_n='/usr/ucb/echo -n' 10533 else 10534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 10535 as_echo_n_body='eval 10536 arg=$1; 10537 case $arg in #( 10538 *"$as_nl"*) 10539 expr "X$arg" : "X\\(.*\\)$as_nl"; 10540 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 10541 esac; 10542 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 10543 ' 10544 export as_echo_n_body 10545 as_echo_n='sh -c $as_echo_n_body as_echo' 10546 fi 10547 export as_echo_body 10548 as_echo='sh -c $as_echo_body as_echo' 10549fi 10550 10551# The user is always right. 10552if test "${PATH_SEPARATOR+set}" != set; then 10553 PATH_SEPARATOR=: 10554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 10555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 10556 PATH_SEPARATOR=';' 10557 } 10558fi 10559 10560 10561# IFS 10562# We need space, tab and new line, in precisely that order. Quoting is 10563# there to prevent editors from complaining about space-tab. 10564# (If _AS_PATH_WALK were called with IFS unset, it would disable word 10565# splitting by setting IFS to empty value.) 10566IFS=" "" $as_nl" 10567 10568# Find who we are. Look in the path if we contain no directory separator. 10569as_myself= 10570case $0 in #(( 10571 *[\\/]* ) as_myself=$0 ;; 10572 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10573for as_dir in $PATH 10574do 10575 IFS=$as_save_IFS 10576 test -z "$as_dir" && as_dir=. 10577 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 10578 done 10579IFS=$as_save_IFS 10580 10581 ;; 10582esac 10583# We did not find ourselves, most probably we were run as `sh COMMAND' 10584# in which case we are not to be found in the path. 10585if test "x$as_myself" = x; then 10586 as_myself=$0 10587fi 10588if test ! -f "$as_myself"; then 10589 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 10590 exit 1 10591fi 10592 10593# Unset variables that we do not need and which cause bugs (e.g. in 10594# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 10595# suppresses any "Segmentation fault" message there. '((' could 10596# trigger a bug in pdksh 5.2.14. 10597for as_var in BASH_ENV ENV MAIL MAILPATH 10598do eval test x\${$as_var+set} = xset \ 10599 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 10600done 10601PS1='$ ' 10602PS2='> ' 10603PS4='+ ' 10604 10605# NLS nuisances. 10606LC_ALL=C 10607export LC_ALL 10608LANGUAGE=C 10609export LANGUAGE 10610 10611# CDPATH. 10612(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 10613 10614 10615# as_fn_error STATUS ERROR [LINENO LOG_FD] 10616# ---------------------------------------- 10617# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 10618# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 10619# script with STATUS, using 1 if that was 0. 10620as_fn_error () 10621{ 10622 as_status=$1; test $as_status -eq 0 && as_status=1 10623 if test "$4"; then 10624 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 10625 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 10626 fi 10627 $as_echo "$as_me: error: $2" >&2 10628 as_fn_exit $as_status 10629} # as_fn_error 10630 10631 10632# as_fn_set_status STATUS 10633# ----------------------- 10634# Set $? to STATUS, without forking. 10635as_fn_set_status () 10636{ 10637 return $1 10638} # as_fn_set_status 10639 10640# as_fn_exit STATUS 10641# ----------------- 10642# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 10643as_fn_exit () 10644{ 10645 set +e 10646 as_fn_set_status $1 10647 exit $1 10648} # as_fn_exit 10649 10650# as_fn_unset VAR 10651# --------------- 10652# Portably unset VAR. 10653as_fn_unset () 10654{ 10655 { eval $1=; unset $1;} 10656} 10657as_unset=as_fn_unset 10658# as_fn_append VAR VALUE 10659# ---------------------- 10660# Append the text in VALUE to the end of the definition contained in VAR. Take 10661# advantage of any shell optimizations that allow amortized linear growth over 10662# repeated appends, instead of the typical quadratic growth present in naive 10663# implementations. 10664if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 10665 eval 'as_fn_append () 10666 { 10667 eval $1+=\$2 10668 }' 10669else 10670 as_fn_append () 10671 { 10672 eval $1=\$$1\$2 10673 } 10674fi # as_fn_append 10675 10676# as_fn_arith ARG... 10677# ------------------ 10678# Perform arithmetic evaluation on the ARGs, and store the result in the 10679# global $as_val. Take advantage of shells that can avoid forks. The arguments 10680# must be portable across $(()) and expr. 10681if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 10682 eval 'as_fn_arith () 10683 { 10684 as_val=$(( $* )) 10685 }' 10686else 10687 as_fn_arith () 10688 { 10689 as_val=`expr "$@" || test $? -eq 1` 10690 } 10691fi # as_fn_arith 10692 10693 10694if expr a : '\(a\)' >/dev/null 2>&1 && 10695 test "X`expr 00001 : '.*\(...\)'`" = X001; then 10696 as_expr=expr 10697else 10698 as_expr=false 10699fi 10700 10701if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 10702 as_basename=basename 10703else 10704 as_basename=false 10705fi 10706 10707if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 10708 as_dirname=dirname 10709else 10710 as_dirname=false 10711fi 10712 10713as_me=`$as_basename -- "$0" || 10714$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 10715 X"$0" : 'X\(//\)$' \| \ 10716 X"$0" : 'X\(/\)' \| . 2>/dev/null || 10717$as_echo X/"$0" | 10718 sed '/^.*\/\([^/][^/]*\)\/*$/{ 10719 s//\1/ 10720 q 10721 } 10722 /^X\/\(\/\/\)$/{ 10723 s//\1/ 10724 q 10725 } 10726 /^X\/\(\/\).*/{ 10727 s//\1/ 10728 q 10729 } 10730 s/.*/./; q'` 10731 10732# Avoid depending upon Character Ranges. 10733as_cr_letters='abcdefghijklmnopqrstuvwxyz' 10734as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 10735as_cr_Letters=$as_cr_letters$as_cr_LETTERS 10736as_cr_digits='0123456789' 10737as_cr_alnum=$as_cr_Letters$as_cr_digits 10738 10739ECHO_C= ECHO_N= ECHO_T= 10740case `echo -n x` in #((((( 10741-n*) 10742 case `echo 'xy\c'` in 10743 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 10744 xy) ECHO_C='\c';; 10745 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 10746 ECHO_T=' ';; 10747 esac;; 10748*) 10749 ECHO_N='-n';; 10750esac 10751 10752rm -f conf$$ conf$$.exe conf$$.file 10753if test -d conf$$.dir; then 10754 rm -f conf$$.dir/conf$$.file 10755else 10756 rm -f conf$$.dir 10757 mkdir conf$$.dir 2>/dev/null 10758fi 10759if (echo >conf$$.file) 2>/dev/null; then 10760 if ln -s conf$$.file conf$$ 2>/dev/null; then 10761 as_ln_s='ln -s' 10762 # ... but there are two gotchas: 10763 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 10764 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 10765 # In both cases, we have to default to `cp -pR'. 10766 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 10767 as_ln_s='cp -pR' 10768 elif ln conf$$.file conf$$ 2>/dev/null; then 10769 as_ln_s=ln 10770 else 10771 as_ln_s='cp -pR' 10772 fi 10773else 10774 as_ln_s='cp -pR' 10775fi 10776rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 10777rmdir conf$$.dir 2>/dev/null 10778 10779 10780# as_fn_mkdir_p 10781# ------------- 10782# Create "$as_dir" as a directory, including parents if necessary. 10783as_fn_mkdir_p () 10784{ 10785 10786 case $as_dir in #( 10787 -*) as_dir=./$as_dir;; 10788 esac 10789 test -d "$as_dir" || eval $as_mkdir_p || { 10790 as_dirs= 10791 while :; do 10792 case $as_dir in #( 10793 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 10794 *) as_qdir=$as_dir;; 10795 esac 10796 as_dirs="'$as_qdir' $as_dirs" 10797 as_dir=`$as_dirname -- "$as_dir" || 10798$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 10799 X"$as_dir" : 'X\(//\)[^/]' \| \ 10800 X"$as_dir" : 'X\(//\)$' \| \ 10801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 10802$as_echo X"$as_dir" | 10803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 10804 s//\1/ 10805 q 10806 } 10807 /^X\(\/\/\)[^/].*/{ 10808 s//\1/ 10809 q 10810 } 10811 /^X\(\/\/\)$/{ 10812 s//\1/ 10813 q 10814 } 10815 /^X\(\/\).*/{ 10816 s//\1/ 10817 q 10818 } 10819 s/.*/./; q'` 10820 test -d "$as_dir" && break 10821 done 10822 test -z "$as_dirs" || eval "mkdir $as_dirs" 10823 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 10824 10825 10826} # as_fn_mkdir_p 10827if mkdir -p . 2>/dev/null; then 10828 as_mkdir_p='mkdir -p "$as_dir"' 10829else 10830 test -d ./-p && rmdir ./-p 10831 as_mkdir_p=false 10832fi 10833 10834 10835# as_fn_executable_p FILE 10836# ----------------------- 10837# Test if FILE is an executable regular file. 10838as_fn_executable_p () 10839{ 10840 test -f "$1" && test -x "$1" 10841} # as_fn_executable_p 10842as_test_x='test -x' 10843as_executable_p=as_fn_executable_p 10844 10845# Sed expression to map a string onto a valid CPP name. 10846as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 10847 10848# Sed expression to map a string onto a valid variable name. 10849as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 10850 10851 10852exec 6>&1 10853## ----------------------------------- ## 10854## Main body of $CONFIG_STATUS script. ## 10855## ----------------------------------- ## 10856_ASEOF 10857test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 10858 10859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10860# Save the log message, to keep $0 and so on meaningful, and to 10861# report actual input values of CONFIG_FILES etc. instead of their 10862# values after options handling. 10863ac_log=" 10864This file was extended by nightfall $as_me 1.92, which was 10865generated by GNU Autoconf 2.69. Invocation command line was 10866 10867 CONFIG_FILES = $CONFIG_FILES 10868 CONFIG_HEADERS = $CONFIG_HEADERS 10869 CONFIG_LINKS = $CONFIG_LINKS 10870 CONFIG_COMMANDS = $CONFIG_COMMANDS 10871 $ $0 $@ 10872 10873on `(hostname || uname -n) 2>/dev/null | sed 1q` 10874" 10875 10876_ACEOF 10877 10878case $ac_config_files in *" 10879"*) set x $ac_config_files; shift; ac_config_files=$*;; 10880esac 10881 10882case $ac_config_headers in *" 10883"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 10884esac 10885 10886 10887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10888# Files that config.status was made for. 10889config_files="$ac_config_files" 10890config_headers="$ac_config_headers" 10891config_commands="$ac_config_commands" 10892 10893_ACEOF 10894 10895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10896ac_cs_usage="\ 10897\`$as_me' instantiates files and other configuration actions 10898from templates according to the current configuration. Unless the files 10899and actions are specified as TAGs, all are instantiated by default. 10900 10901Usage: $0 [OPTION]... [TAG]... 10902 10903 -h, --help print this help, then exit 10904 -V, --version print version number and configuration settings, then exit 10905 --config print configuration, then exit 10906 -q, --quiet, --silent 10907 do not print progress messages 10908 -d, --debug don't remove temporary files 10909 --recheck update $as_me by reconfiguring in the same conditions 10910 --file=FILE[:TEMPLATE] 10911 instantiate the configuration file FILE 10912 --header=FILE[:TEMPLATE] 10913 instantiate the configuration header FILE 10914 10915Configuration files: 10916$config_files 10917 10918Configuration headers: 10919$config_headers 10920 10921Configuration commands: 10922$config_commands 10923 10924Report bugs to the package provider." 10925 10926_ACEOF 10927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 10928ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 10929ac_cs_version="\\ 10930nightfall config.status 1.92 10931configured by $0, generated by GNU Autoconf 2.69, 10932 with options \\"\$ac_cs_config\\" 10933 10934Copyright (C) 2012 Free Software Foundation, Inc. 10935This config.status script is free software; the Free Software Foundation 10936gives unlimited permission to copy, distribute and modify it." 10937 10938ac_pwd='$ac_pwd' 10939srcdir='$srcdir' 10940INSTALL='$INSTALL' 10941AWK='$AWK' 10942test -n "\$AWK" || AWK=awk 10943_ACEOF 10944 10945cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 10946# The default lists apply if the user does not specify any file. 10947ac_need_defaults=: 10948while test $# != 0 10949do 10950 case $1 in 10951 --*=?*) 10952 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10953 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 10954 ac_shift=: 10955 ;; 10956 --*=) 10957 ac_option=`expr "X$1" : 'X\([^=]*\)='` 10958 ac_optarg= 10959 ac_shift=: 10960 ;; 10961 *) 10962 ac_option=$1 10963 ac_optarg=$2 10964 ac_shift=shift 10965 ;; 10966 esac 10967 10968 case $ac_option in 10969 # Handling of the options. 10970 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 10971 ac_cs_recheck=: ;; 10972 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 10973 $as_echo "$ac_cs_version"; exit ;; 10974 --config | --confi | --conf | --con | --co | --c ) 10975 $as_echo "$ac_cs_config"; exit ;; 10976 --debug | --debu | --deb | --de | --d | -d ) 10977 debug=: ;; 10978 --file | --fil | --fi | --f ) 10979 $ac_shift 10980 case $ac_optarg in 10981 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10982 '') as_fn_error $? "missing file argument" ;; 10983 esac 10984 as_fn_append CONFIG_FILES " '$ac_optarg'" 10985 ac_need_defaults=false;; 10986 --header | --heade | --head | --hea ) 10987 $ac_shift 10988 case $ac_optarg in 10989 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 10990 esac 10991 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 10992 ac_need_defaults=false;; 10993 --he | --h) 10994 # Conflict between --help and --header 10995 as_fn_error $? "ambiguous option: \`$1' 10996Try \`$0 --help' for more information.";; 10997 --help | --hel | -h ) 10998 $as_echo "$ac_cs_usage"; exit ;; 10999 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11000 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11001 ac_cs_silent=: ;; 11002 11003 # This is an error. 11004 -*) as_fn_error $? "unrecognized option: \`$1' 11005Try \`$0 --help' for more information." ;; 11006 11007 *) as_fn_append ac_config_targets " $1" 11008 ac_need_defaults=false ;; 11009 11010 esac 11011 shift 11012done 11013 11014ac_configure_extra_args= 11015 11016if $ac_cs_silent; then 11017 exec 6>/dev/null 11018 ac_configure_extra_args="$ac_configure_extra_args --silent" 11019fi 11020 11021_ACEOF 11022cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11023if \$ac_cs_recheck; then 11024 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11025 shift 11026 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11027 CONFIG_SHELL='$SHELL' 11028 export CONFIG_SHELL 11029 exec "\$@" 11030fi 11031 11032_ACEOF 11033cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11034exec 5>>config.log 11035{ 11036 echo 11037 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11038## Running $as_me. ## 11039_ASBOX 11040 $as_echo "$ac_log" 11041} >&5 11042 11043_ACEOF 11044cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11045# 11046# INIT-COMMANDS 11047# 11048# Capture the value of obsolete ALL_LINGUAS because we need it to compute 11049 # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it 11050 # from automake. 11051 eval 'ALL_LINGUAS''="$ALL_LINGUAS"' 11052 # Capture the value of LINGUAS because we need it to compute CATALOGS. 11053 LINGUAS="${LINGUAS-%UNSET%}" 11054 11055 11056_ACEOF 11057 11058cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11059 11060# Handling of arguments. 11061for ac_config_target in $ac_config_targets 11062do 11063 case $ac_config_target in 11064 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 11065 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11066 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11067 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 11068 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 11069 "nightfall.spec") CONFIG_FILES="$CONFIG_FILES nightfall.spec" ;; 11070 11071 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11072 esac 11073done 11074 11075 11076# If the user did not use the arguments to specify the items to instantiate, 11077# then the envvar interface is used. Set only those that are not. 11078# We use the long form for the default assignment because of an extremely 11079# bizarre bug on SunOS 4.1.3. 11080if $ac_need_defaults; then 11081 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11082 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11083 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11084fi 11085 11086# Have a temporary directory for convenience. Make it in the build tree 11087# simply because there is no reason against having it here, and in addition, 11088# creating and moving files from /tmp can sometimes cause problems. 11089# Hook for its removal unless debugging. 11090# Note that there is a small window in which the directory will not be cleaned: 11091# after its creation but before its name has been assigned to `$tmp'. 11092$debug || 11093{ 11094 tmp= ac_tmp= 11095 trap 'exit_status=$? 11096 : "${ac_tmp:=$tmp}" 11097 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11098' 0 11099 trap 'as_fn_exit 1' 1 2 13 15 11100} 11101# Create a (secure) tmp directory for tmp files. 11102 11103{ 11104 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11105 test -d "$tmp" 11106} || 11107{ 11108 tmp=./conf$$-$RANDOM 11109 (umask 077 && mkdir "$tmp") 11110} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11111ac_tmp=$tmp 11112 11113# Set up the scripts for CONFIG_FILES section. 11114# No need to generate them if there are no CONFIG_FILES. 11115# This happens for instance with `./config.status config.h'. 11116if test -n "$CONFIG_FILES"; then 11117 11118 11119ac_cr=`echo X | tr X '\015'` 11120# On cygwin, bash can eat \r inside `` if the user requested igncr. 11121# But we know of no other shell where ac_cr would be empty at this 11122# point, so we can use a bashism as a fallback. 11123if test "x$ac_cr" = x; then 11124 eval ac_cr=\$\'\\r\' 11125fi 11126ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11127if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11128 ac_cs_awk_cr='\\r' 11129else 11130 ac_cs_awk_cr=$ac_cr 11131fi 11132 11133echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11134_ACEOF 11135 11136 11137{ 11138 echo "cat >conf$$subs.awk <<_ACEOF" && 11139 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11140 echo "_ACEOF" 11141} >conf$$subs.sh || 11142 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11143ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11144ac_delim='%!_!# ' 11145for ac_last_try in false false false false false :; do 11146 . ./conf$$subs.sh || 11147 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11148 11149 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11150 if test $ac_delim_n = $ac_delim_num; then 11151 break 11152 elif $ac_last_try; then 11153 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11154 else 11155 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11156 fi 11157done 11158rm -f conf$$subs.sh 11159 11160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11161cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11162_ACEOF 11163sed -n ' 11164h 11165s/^/S["/; s/!.*/"]=/ 11166p 11167g 11168s/^[^!]*!// 11169:repl 11170t repl 11171s/'"$ac_delim"'$// 11172t delim 11173:nl 11174h 11175s/\(.\{148\}\)..*/\1/ 11176t more1 11177s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11178p 11179n 11180b repl 11181:more1 11182s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11183p 11184g 11185s/.\{148\}// 11186t nl 11187:delim 11188h 11189s/\(.\{148\}\)..*/\1/ 11190t more2 11191s/["\\]/\\&/g; s/^/"/; s/$/"/ 11192p 11193b 11194:more2 11195s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11196p 11197g 11198s/.\{148\}// 11199t delim 11200' <conf$$subs.awk | sed ' 11201/^[^""]/{ 11202 N 11203 s/\n// 11204} 11205' >>$CONFIG_STATUS || ac_write_fail=1 11206rm -f conf$$subs.awk 11207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11208_ACAWK 11209cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11210 for (key in S) S_is_set[key] = 1 11211 FS = "" 11212 11213} 11214{ 11215 line = $ 0 11216 nfields = split(line, field, "@") 11217 substed = 0 11218 len = length(field[1]) 11219 for (i = 2; i < nfields; i++) { 11220 key = field[i] 11221 keylen = length(key) 11222 if (S_is_set[key]) { 11223 value = S[key] 11224 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11225 len += length(value) + length(field[++i]) 11226 substed = 1 11227 } else 11228 len += 1 + keylen 11229 } 11230 11231 print line 11232} 11233 11234_ACAWK 11235_ACEOF 11236cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11237if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11238 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11239else 11240 cat 11241fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11242 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11243_ACEOF 11244 11245# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11246# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11247# trailing colons and then remove the whole line if VPATH becomes empty 11248# (actually we leave an empty line to preserve line numbers). 11249if test "x$srcdir" = x.; then 11250 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11251h 11252s/// 11253s/^/:/ 11254s/[ ]*$/:/ 11255s/:\$(srcdir):/:/g 11256s/:\${srcdir}:/:/g 11257s/:@srcdir@:/:/g 11258s/^:*// 11259s/:*$// 11260x 11261s/\(=[ ]*\).*/\1/ 11262G 11263s/\n// 11264s/^[^=]*=[ ]*$// 11265}' 11266fi 11267 11268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11269fi # test -n "$CONFIG_FILES" 11270 11271# Set up the scripts for CONFIG_HEADERS section. 11272# No need to generate them if there are no CONFIG_HEADERS. 11273# This happens for instance with `./config.status Makefile'. 11274if test -n "$CONFIG_HEADERS"; then 11275cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11276BEGIN { 11277_ACEOF 11278 11279# Transform confdefs.h into an awk script `defines.awk', embedded as 11280# here-document in config.status, that substitutes the proper values into 11281# config.h.in to produce config.h. 11282 11283# Create a delimiter string that does not exist in confdefs.h, to ease 11284# handling of long lines. 11285ac_delim='%!_!# ' 11286for ac_last_try in false false :; do 11287 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11288 if test -z "$ac_tt"; then 11289 break 11290 elif $ac_last_try; then 11291 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11292 else 11293 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11294 fi 11295done 11296 11297# For the awk script, D is an array of macro values keyed by name, 11298# likewise P contains macro parameters if any. Preserve backslash 11299# newline sequences. 11300 11301ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11302sed -n ' 11303s/.\{148\}/&'"$ac_delim"'/g 11304t rset 11305:rset 11306s/^[ ]*#[ ]*define[ ][ ]*/ / 11307t def 11308d 11309:def 11310s/\\$// 11311t bsnl 11312s/["\\]/\\&/g 11313s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11314D["\1"]=" \3"/p 11315s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11316d 11317:bsnl 11318s/["\\]/\\&/g 11319s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11320D["\1"]=" \3\\\\\\n"\\/p 11321t cont 11322s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11323t cont 11324d 11325:cont 11326n 11327s/.\{148\}/&'"$ac_delim"'/g 11328t clear 11329:clear 11330s/\\$// 11331t bsnlc 11332s/["\\]/\\&/g; s/^/"/; s/$/"/p 11333d 11334:bsnlc 11335s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11336b cont 11337' <confdefs.h | sed ' 11338s/'"$ac_delim"'/"\\\ 11339"/g' >>$CONFIG_STATUS || ac_write_fail=1 11340 11341cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11342 for (key in D) D_is_set[key] = 1 11343 FS = "" 11344} 11345/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11346 line = \$ 0 11347 split(line, arg, " ") 11348 if (arg[1] == "#") { 11349 defundef = arg[2] 11350 mac1 = arg[3] 11351 } else { 11352 defundef = substr(arg[1], 2) 11353 mac1 = arg[2] 11354 } 11355 split(mac1, mac2, "(") #) 11356 macro = mac2[1] 11357 prefix = substr(line, 1, index(line, defundef) - 1) 11358 if (D_is_set[macro]) { 11359 # Preserve the white space surrounding the "#". 11360 print prefix "define", macro P[macro] D[macro] 11361 next 11362 } else { 11363 # Replace #undef with comments. This is necessary, for example, 11364 # in the case of _POSIX_SOURCE, which is predefined and required 11365 # on some systems where configure will not decide to define it. 11366 if (defundef == "undef") { 11367 print "/*", prefix defundef, macro, "*/" 11368 next 11369 } 11370 } 11371} 11372{ print } 11373_ACAWK 11374_ACEOF 11375cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11376 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11377fi # test -n "$CONFIG_HEADERS" 11378 11379 11380eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11381shift 11382for ac_tag 11383do 11384 case $ac_tag in 11385 :[FHLC]) ac_mode=$ac_tag; continue;; 11386 esac 11387 case $ac_mode$ac_tag in 11388 :[FHL]*:*);; 11389 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11390 :[FH]-) ac_tag=-:-;; 11391 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11392 esac 11393 ac_save_IFS=$IFS 11394 IFS=: 11395 set x $ac_tag 11396 IFS=$ac_save_IFS 11397 shift 11398 ac_file=$1 11399 shift 11400 11401 case $ac_mode in 11402 :L) ac_source=$1;; 11403 :[FH]) 11404 ac_file_inputs= 11405 for ac_f 11406 do 11407 case $ac_f in 11408 -) ac_f="$ac_tmp/stdin";; 11409 *) # Look for the file first in the build tree, then in the source tree 11410 # (if the path is not absolute). The absolute path cannot be DOS-style, 11411 # because $ac_f cannot contain `:'. 11412 test -f "$ac_f" || 11413 case $ac_f in 11414 [\\/$]*) false;; 11415 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11416 esac || 11417 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11418 esac 11419 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11420 as_fn_append ac_file_inputs " '$ac_f'" 11421 done 11422 11423 # Let's still pretend it is `configure' which instantiates (i.e., don't 11424 # use $as_me), people would be surprised to read: 11425 # /* config.h. Generated by config.status. */ 11426 configure_input='Generated from '` 11427 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 11428 `' by configure.' 11429 if test x"$ac_file" != x-; then 11430 configure_input="$ac_file. $configure_input" 11431 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 11432$as_echo "$as_me: creating $ac_file" >&6;} 11433 fi 11434 # Neutralize special characters interpreted by sed in replacement strings. 11435 case $configure_input in #( 11436 *\&* | *\|* | *\\* ) 11437 ac_sed_conf_input=`$as_echo "$configure_input" | 11438 sed 's/[\\\\&|]/\\\\&/g'`;; #( 11439 *) ac_sed_conf_input=$configure_input;; 11440 esac 11441 11442 case $ac_tag in 11443 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 11444 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 11445 esac 11446 ;; 11447 esac 11448 11449 ac_dir=`$as_dirname -- "$ac_file" || 11450$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11451 X"$ac_file" : 'X\(//\)[^/]' \| \ 11452 X"$ac_file" : 'X\(//\)$' \| \ 11453 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 11454$as_echo X"$ac_file" | 11455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11456 s//\1/ 11457 q 11458 } 11459 /^X\(\/\/\)[^/].*/{ 11460 s//\1/ 11461 q 11462 } 11463 /^X\(\/\/\)$/{ 11464 s//\1/ 11465 q 11466 } 11467 /^X\(\/\).*/{ 11468 s//\1/ 11469 q 11470 } 11471 s/.*/./; q'` 11472 as_dir="$ac_dir"; as_fn_mkdir_p 11473 ac_builddir=. 11474 11475case "$ac_dir" in 11476.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 11477*) 11478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 11479 # A ".." for each directory in $ac_dir_suffix. 11480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 11481 case $ac_top_builddir_sub in 11482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 11483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 11484 esac ;; 11485esac 11486ac_abs_top_builddir=$ac_pwd 11487ac_abs_builddir=$ac_pwd$ac_dir_suffix 11488# for backward compatibility: 11489ac_top_builddir=$ac_top_build_prefix 11490 11491case $srcdir in 11492 .) # We are building in place. 11493 ac_srcdir=. 11494 ac_top_srcdir=$ac_top_builddir_sub 11495 ac_abs_top_srcdir=$ac_pwd ;; 11496 [\\/]* | ?:[\\/]* ) # Absolute name. 11497 ac_srcdir=$srcdir$ac_dir_suffix; 11498 ac_top_srcdir=$srcdir 11499 ac_abs_top_srcdir=$srcdir ;; 11500 *) # Relative name. 11501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 11502 ac_top_srcdir=$ac_top_build_prefix$srcdir 11503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 11504esac 11505ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 11506 11507 11508 case $ac_mode in 11509 :F) 11510 # 11511 # CONFIG_FILE 11512 # 11513 11514 case $INSTALL in 11515 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 11516 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 11517 esac 11518_ACEOF 11519 11520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11521# If the template does not know about datarootdir, expand it. 11522# FIXME: This hack should be removed a few years after 2.60. 11523ac_datarootdir_hack=; ac_datarootdir_seen= 11524ac_sed_dataroot=' 11525/datarootdir/ { 11526 p 11527 q 11528} 11529/@datadir@/p 11530/@docdir@/p 11531/@infodir@/p 11532/@localedir@/p 11533/@mandir@/p' 11534case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 11535*datarootdir*) ac_datarootdir_seen=yes;; 11536*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 11537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 11538$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 11539_ACEOF 11540cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11541 ac_datarootdir_hack=' 11542 s&@datadir@&$datadir&g 11543 s&@docdir@&$docdir&g 11544 s&@infodir@&$infodir&g 11545 s&@localedir@&$localedir&g 11546 s&@mandir@&$mandir&g 11547 s&\\\${datarootdir}&$datarootdir&g' ;; 11548esac 11549_ACEOF 11550 11551# Neutralize VPATH when `$srcdir' = `.'. 11552# Shell code in configure.ac might set extrasub. 11553# FIXME: do we really want to maintain this feature? 11554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11555ac_sed_extra="$ac_vpsub 11556$extrasub 11557_ACEOF 11558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11559:t 11560/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 11561s|@configure_input@|$ac_sed_conf_input|;t t 11562s&@top_builddir@&$ac_top_builddir_sub&;t t 11563s&@top_build_prefix@&$ac_top_build_prefix&;t t 11564s&@srcdir@&$ac_srcdir&;t t 11565s&@abs_srcdir@&$ac_abs_srcdir&;t t 11566s&@top_srcdir@&$ac_top_srcdir&;t t 11567s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 11568s&@builddir@&$ac_builddir&;t t 11569s&@abs_builddir@&$ac_abs_builddir&;t t 11570s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 11571s&@INSTALL@&$ac_INSTALL&;t t 11572$ac_datarootdir_hack 11573" 11574eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 11575 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11576 11577test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 11578 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 11579 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 11580 "$ac_tmp/out"`; test -z "$ac_out"; } && 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11582which seems to be undefined. Please make sure it is defined" >&5 11583$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 11584which seems to be undefined. Please make sure it is defined" >&2;} 11585 11586 rm -f "$ac_tmp/stdin" 11587 case $ac_file in 11588 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 11589 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 11590 esac \ 11591 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11592 ;; 11593 :H) 11594 # 11595 # CONFIG_HEADER 11596 # 11597 if test x"$ac_file" != x-; then 11598 { 11599 $as_echo "/* $configure_input */" \ 11600 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 11601 } >"$ac_tmp/config.h" \ 11602 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11603 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 11605$as_echo "$as_me: $ac_file is unchanged" >&6;} 11606 else 11607 rm -f "$ac_file" 11608 mv "$ac_tmp/config.h" "$ac_file" \ 11609 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 11610 fi 11611 else 11612 $as_echo "/* $configure_input */" \ 11613 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 11614 || as_fn_error $? "could not create -" "$LINENO" 5 11615 fi 11616 ;; 11617 11618 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 11619$as_echo "$as_me: executing $ac_file commands" >&6;} 11620 ;; 11621 esac 11622 11623 11624 case $ac_file$ac_mode in 11625 "default-1":C) 11626 for ac_file in $CONFIG_FILES; do 11627 # Support "outfile[:infile[:infile...]]" 11628 case "$ac_file" in 11629 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 11630 esac 11631 # PO directories have a Makefile.in generated from Makefile.in.in. 11632 case "$ac_file" in */Makefile.in) 11633 # Adjust a relative srcdir. 11634 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 11635 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 11636 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 11637 # In autoconf-2.13 it is called $ac_given_srcdir. 11638 # In autoconf-2.50 it is called $srcdir. 11639 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 11640 case "$ac_given_srcdir" in 11641 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 11642 /*) top_srcdir="$ac_given_srcdir" ;; 11643 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 11644 esac 11645 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 11646 rm -f "$ac_dir/POTFILES" 11647 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 11648 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 11649 # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend 11650 # on $ac_dir but don't depend on user-specified configuration 11651 # parameters. 11652 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 11653 # The LINGUAS file contains the set of available languages. 11654 if test -n "$ALL_LINGUAS"; then 11655 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 11656 fi 11657 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` 11658 # Hide the ALL_LINGUAS assigment from automake. 11659 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 11660 fi 11661 case "$ac_given_srcdir" in 11662 .) srcdirpre= ;; 11663 *) srcdirpre='$(srcdir)/' ;; 11664 esac 11665 POFILES= 11666 GMOFILES= 11667 UPDATEPOFILES= 11668 DUMMYPOFILES= 11669 for lang in $ALL_LINGUAS; do 11670 POFILES="$POFILES $srcdirpre$lang.po" 11671 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 11672 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 11673 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 11674 done 11675 # CATALOGS depends on both $ac_dir and the user's LINGUAS 11676 # environment variable. 11677 INST_LINGUAS= 11678 if test -n "$ALL_LINGUAS"; then 11679 for presentlang in $ALL_LINGUAS; do 11680 useit=no 11681 if test "%UNSET%" != "$LINGUAS"; then 11682 desiredlanguages="$LINGUAS" 11683 else 11684 desiredlanguages="$ALL_LINGUAS" 11685 fi 11686 for desiredlang in $desiredlanguages; do 11687 # Use the presentlang catalog if desiredlang is 11688 # a. equal to presentlang, or 11689 # b. a variant of presentlang (because in this case, 11690 # presentlang can be used as a fallback for messages 11691 # which are not translated in the desiredlang catalog). 11692 case "$desiredlang" in 11693 "$presentlang"*) useit=yes;; 11694 esac 11695 done 11696 if test $useit = yes; then 11697 INST_LINGUAS="$INST_LINGUAS $presentlang" 11698 fi 11699 done 11700 fi 11701 CATALOGS= 11702 if test -n "$INST_LINGUAS"; then 11703 for lang in $INST_LINGUAS; do 11704 CATALOGS="$CATALOGS $lang.gmo" 11705 done 11706 fi 11707 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 11708 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 11709 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 11710 if test -f "$f"; then 11711 case "$f" in 11712 *.orig | *.bak | *~) ;; 11713 *) cat "$f" >> "$ac_dir/Makefile" ;; 11714 esac 11715 fi 11716 done 11717 fi 11718 ;; 11719 esac 11720 done ;; 11721 11722 esac 11723done # for ac_tag 11724 11725 11726as_fn_exit 0 11727_ACEOF 11728ac_clean_files=$ac_clean_files_save 11729 11730test $ac_write_fail = 0 || 11731 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 11732 11733 11734# configure is writing to config.log, and then calls config.status. 11735# config.status does its own redirection, appending to config.log. 11736# Unfortunately, on DOS this fails, as config.log is still kept open 11737# by configure, so config.status won't be able to write to it; its 11738# output is simply discarded. So we exec the FD to /dev/null, 11739# effectively closing config.log, so it can be properly (re)opened and 11740# appended to by config.status. When coming back to configure, we 11741# need to make the FD available again. 11742if test "$no_create" != yes; then 11743 ac_cs_success=: 11744 ac_config_status_args= 11745 test "$silent" = yes && 11746 ac_config_status_args="$ac_config_status_args --quiet" 11747 exec 5>/dev/null 11748 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 11749 exec 5>>config.log 11750 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 11751 # would make configure fail if this is the last instruction. 11752 $ac_cs_success || as_fn_exit 1 11753fi 11754if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 11756$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 11757fi 11758 11759 11760echo 11761echo configure complete, now type \'make\', or \'./cmake\' for colourized output 11762echo 11763 11764 11765A=`eval echo ${bindir}` ; A=`eval echo ${A}` 11766B=`eval echo ${mymanualdir}` ; B=`eval echo ${B}` 11767C=`eval echo ${mandir}` ; C=`eval echo ${C}` 11768D=`eval echo ${mylocaledir}` ; D=`eval echo ${D}` 11769E=`eval echo ${mydocdir}` ; E=`eval echo ${E}` 11770F=`eval echo ${mydatadir}` ; F=`eval echo ${F}` 11771G=`eval echo ${mypixmapdir}` ; G=`eval echo ${G}` 11772H=`eval echo ${mycfgdir}` ; H=`eval echo ${H}` 11773 11774 11775echo " 11776Configuration: 11777 11778 Source code location: ${srcdir} 11779 Compiler: ${CC} 11780 Compiler flags: ${CFLAGS} 11781 Linker flags: ${LDFLAGS} 11782 Libraries: ${LIBS} 11783 Executable: ${A} 11784 User Manual: ${B} 11785 Manpage: ${C} 11786 Localization: ${D} 11787 Help files: ${E} 11788 Data files: ${F} 11789 Pixmaps: ${G} 11790 Star configurations: ${H}" 11791 11792if test -n "$xv_bindir"; then 11793echo " XView version install path: ${xv_bindir}" 11794fi 11795echo "" 11796 11797