1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1" 200 if (eval "$as_required") 2>/dev/null; then : 201 as_have_required=yes 202else 203 as_have_required=no 204fi 205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 206 207else 208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 209as_found=false 210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 211do 212 IFS=$as_save_IFS 213 test -z "$as_dir" && as_dir=. 214 as_found=: 215 case $as_dir in #( 216 /*) 217 for as_base in sh bash ksh sh5; do 218 # Try only shells that exist, to save several forks. 219 as_shell=$as_dir/$as_base 220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 222 CONFIG_SHELL=$as_shell as_have_required=yes 223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 break 2 225fi 226fi 227 done;; 228 esac 229 as_found=false 230done 231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 233 CONFIG_SHELL=$SHELL as_have_required=yes 234fi; } 235IFS=$as_save_IFS 236 237 238 if test "x$CONFIG_SHELL" != x; then : 239 export CONFIG_SHELL 240 # We cannot yet assume a decent shell, so we have to provide a 241# neutralization value for shells without unset; and this also 242# works around shells that cannot unset nonexistent variables. 243# Preserve -v and -x to the replacement shell. 244BASH_ENV=/dev/null 245ENV=/dev/null 246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 247case $- in # (((( 248 *v*x* | *x*v* ) as_opts=-vx ;; 249 *v* ) as_opts=-v ;; 250 *x* ) as_opts=-x ;; 251 * ) as_opts= ;; 252esac 253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 254# Admittedly, this is quite paranoid, since all the known shells bail 255# out after a failed `exec'. 256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 257exit 255 258fi 259 260 if test x$as_have_required = xno; then : 261 $as_echo "$0: This script requires a shell more modern than all" 262 $as_echo "$0: the shells that I found on your system." 263 if test x${ZSH_VERSION+set} = xset ; then 264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 265 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 266 else 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 268$0: including any error possibly output before this 269$0: message. Then install a modern shell, or manually run 270$0: the script under such a shell if you do have one." 271 fi 272 exit 1 273fi 274fi 275fi 276SHELL=${CONFIG_SHELL-/bin/sh} 277export SHELL 278# Unset more variables known to interfere with behavior of common tools. 279CLICOLOR_FORCE= GREP_OPTIONS= 280unset CLICOLOR_FORCE GREP_OPTIONS 281 282## --------------------- ## 283## M4sh Shell Functions. ## 284## --------------------- ## 285# as_fn_unset VAR 286# --------------- 287# Portably unset VAR. 288as_fn_unset () 289{ 290 { eval $1=; unset $1;} 291} 292as_unset=as_fn_unset 293 294# as_fn_set_status STATUS 295# ----------------------- 296# Set $? to STATUS, without forking. 297as_fn_set_status () 298{ 299 return $1 300} # as_fn_set_status 301 302# as_fn_exit STATUS 303# ----------------- 304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 305as_fn_exit () 306{ 307 set +e 308 as_fn_set_status $1 309 exit $1 310} # as_fn_exit 311 312# as_fn_mkdir_p 313# ------------- 314# Create "$as_dir" as a directory, including parents if necessary. 315as_fn_mkdir_p () 316{ 317 318 case $as_dir in #( 319 -*) as_dir=./$as_dir;; 320 esac 321 test -d "$as_dir" || eval $as_mkdir_p || { 322 as_dirs= 323 while :; do 324 case $as_dir in #( 325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 326 *) as_qdir=$as_dir;; 327 esac 328 as_dirs="'$as_qdir' $as_dirs" 329 as_dir=`$as_dirname -- "$as_dir" || 330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 331 X"$as_dir" : 'X\(//\)[^/]' \| \ 332 X"$as_dir" : 'X\(//\)$' \| \ 333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 334$as_echo X"$as_dir" | 335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 336 s//\1/ 337 q 338 } 339 /^X\(\/\/\)[^/].*/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\).*/{ 348 s//\1/ 349 q 350 } 351 s/.*/./; q'` 352 test -d "$as_dir" && break 353 done 354 test -z "$as_dirs" || eval "mkdir $as_dirs" 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 356 357 358} # as_fn_mkdir_p 359 360# as_fn_executable_p FILE 361# ----------------------- 362# Test if FILE is an executable regular file. 363as_fn_executable_p () 364{ 365 test -f "$1" && test -x "$1" 366} # as_fn_executable_p 367# as_fn_append VAR VALUE 368# ---------------------- 369# Append the text in VALUE to the end of the definition contained in VAR. Take 370# advantage of any shell optimizations that allow amortized linear growth over 371# repeated appends, instead of the typical quadratic growth present in naive 372# implementations. 373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 374 eval 'as_fn_append () 375 { 376 eval $1+=\$2 377 }' 378else 379 as_fn_append () 380 { 381 eval $1=\$$1\$2 382 } 383fi # as_fn_append 384 385# as_fn_arith ARG... 386# ------------------ 387# Perform arithmetic evaluation on the ARGs, and store the result in the 388# global $as_val. Take advantage of shells that can avoid forks. The arguments 389# must be portable across $(()) and expr. 390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 391 eval 'as_fn_arith () 392 { 393 as_val=$(( $* )) 394 }' 395else 396 as_fn_arith () 397 { 398 as_val=`expr "$@" || test $? -eq 1` 399 } 400fi # as_fn_arith 401 402 403# as_fn_error STATUS ERROR [LINENO LOG_FD] 404# ---------------------------------------- 405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 407# script with STATUS, using 1 if that was 0. 408as_fn_error () 409{ 410 as_status=$1; test $as_status -eq 0 && as_status=1 411 if test "$4"; then 412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 414 fi 415 $as_echo "$as_me: error: $2" >&2 416 as_fn_exit $as_status 417} # as_fn_error 418 419if expr a : '\(a\)' >/dev/null 2>&1 && 420 test "X`expr 00001 : '.*\(...\)'`" = X001; then 421 as_expr=expr 422else 423 as_expr=false 424fi 425 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 427 as_basename=basename 428else 429 as_basename=false 430fi 431 432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 433 as_dirname=dirname 434else 435 as_dirname=false 436fi 437 438as_me=`$as_basename -- "$0" || 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 440 X"$0" : 'X\(//\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null || 442$as_echo X/"$0" | 443 sed '/^.*\/\([^/][^/]*\)\/*$/{ 444 s//\1/ 445 q 446 } 447 /^X\/\(\/\/\)$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\).*/{ 452 s//\1/ 453 q 454 } 455 s/.*/./; q'` 456 457# Avoid depending upon Character Ranges. 458as_cr_letters='abcdefghijklmnopqrstuvwxyz' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS 461as_cr_digits='0123456789' 462as_cr_alnum=$as_cr_Letters$as_cr_digits 463 464 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 470 sed -n ' 471 p 472 /[$]LINENO/= 473 ' <$as_myself | 474 sed ' 475 s/[$]LINENO.*/&-/ 476 t lineno 477 b 478 :lineno 479 N 480 :loop 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 482 t loop 483 s/-\n.*// 484 ' >$as_me.lineno && 485 chmod +x "$as_me.lineno" || 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 487 488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 489 # already done that, so ensure we don't try to do so again and fall 490 # in an infinite loop. This has already happened in practice. 491 _as_can_reexec=no; export _as_can_reexec 492 # Don't try to exec as it changes $[0], causing all sort of problems 493 # (the dirname of $[0] is not the place where we might find the 494 # original and so on. Autoconf is especially sensitive to this). 495 . "./$as_me.lineno" 496 # Exit status is that of the last command. 497 exit 498} 499 500ECHO_C= ECHO_N= ECHO_T= 501case `echo -n x` in #((((( 502-n*) 503 case `echo 'xy\c'` in 504 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 505 xy) ECHO_C='\c';; 506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 507 ECHO_T=' ';; 508 esac;; 509*) 510 ECHO_N='-n';; 511esac 512 513rm -f conf$$ conf$$.exe conf$$.file 514if test -d conf$$.dir; then 515 rm -f conf$$.dir/conf$$.file 516else 517 rm -f conf$$.dir 518 mkdir conf$$.dir 2>/dev/null 519fi 520if (echo >conf$$.file) 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then 522 as_ln_s='ln -s' 523 # ... but there are two gotchas: 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 526 # In both cases, we have to default to `cp -pR'. 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 528 as_ln_s='cp -pR' 529 elif ln conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s=ln 531 else 532 as_ln_s='cp -pR' 533 fi 534else 535 as_ln_s='cp -pR' 536fi 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 538rmdir conf$$.dir 2>/dev/null 539 540if mkdir -p . 2>/dev/null; then 541 as_mkdir_p='mkdir -p "$as_dir"' 542else 543 test -d ./-p && rmdir ./-p 544 as_mkdir_p=false 545fi 546 547as_test_x='test -x' 548as_executable_p=as_fn_executable_p 549 550# Sed expression to map a string onto a valid CPP name. 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 552 553# Sed expression to map a string onto a valid variable name. 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 555 556 557test -n "$DJDIR" || exec 7<&0 </dev/null 558exec 6>&1 559 560# Name of the host. 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 562# so uname gets run too. 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 564 565# 566# Initializations. 567# 568ac_default_prefix=/usr/local 569ac_clean_files= 570ac_config_libobj_dir=. 571LIBOBJS= 572cross_compiling=no 573subdirs= 574MFLAGS= 575MAKEFLAGS= 576 577# Identity of this package. 578PACKAGE_NAME= 579PACKAGE_TARNAME= 580PACKAGE_VERSION= 581PACKAGE_STRING= 582PACKAGE_BUGREPORT= 583PACKAGE_URL= 584 585ac_unique_file="config.h.in" 586# Factoring default headers for most tests. 587ac_includes_default="\ 588#include <stdio.h> 589#ifdef HAVE_SYS_TYPES_H 590# include <sys/types.h> 591#endif 592#ifdef HAVE_SYS_STAT_H 593# include <sys/stat.h> 594#endif 595#ifdef STDC_HEADERS 596# include <stdlib.h> 597# include <stddef.h> 598#else 599# ifdef HAVE_STDLIB_H 600# include <stdlib.h> 601# endif 602#endif 603#ifdef HAVE_STRING_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 605# include <memory.h> 606# endif 607# include <string.h> 608#endif 609#ifdef HAVE_STRINGS_H 610# include <strings.h> 611#endif 612#ifdef HAVE_INTTYPES_H 613# include <inttypes.h> 614#endif 615#ifdef HAVE_STDINT_H 616# include <stdint.h> 617#endif 618#ifdef HAVE_UNISTD_H 619# include <unistd.h> 620#endif" 621 622ac_subst_vars='LTLIBOBJS 623LIBOBJS 624NOPLAY 625FORTUNE_PATH 626FORTUNE 627NOMODULES 628MODULES 629CCC 630DEPEND_DEFINES 631DEPEND_FLAGS 632DEPEND 633UNSTABLE 634INTERACTIVE 635BOMB 636FTGL 637GLTT 638GL 639XPM 640PURIFY 641CHECK 642LINT 643APPDEFAULTS 644UNINSTALL_XGLOCK 645UNINSTALL_XMLOCK 646INSTALL_XGLOCK 647INSTALL_XMLOCK 648XGLOCKDIR 649XGLOCK 650XMLOCK 651XGLOCKLIBS 652XMLOCKLIBS 653XLOCKLIBS 654PIXMAPDIR 655BITMAPDIR 656PIXMAPTYPE 657BITMAPTYPE 658XLIBS 659XGLOCKINC 660XMLOCKINC 661XLOCKINC 662MODULEFLAGS 663INSTPGMFLAGS 664XGLOCKLDFLAGS 665XMLOCKLDFLAGS 666XLOCKLDFLAGS 667krb5_config 668OSF1_ENH_SEC 669GTK_LIBS 670GTK_CFLAGS 671GTK_CONFIG 672pkg_config 673X_EXTRA_LIBS 674X_LIBS 675X_PRE_LIBS 676X_CFLAGS 677XMKMF 678SET_MAKE 679INSTALL_DATA 680INSTALL_SCRIPT 681INSTALL_PROGRAM 682LN_S 683VERSION 684PACKAGE 685ac_ct_CXX 686CXXFLAGS 687CXX 688PTHREAD_CFLAGS 689PTHREAD_LIBS 690PTHREAD_CC 691ax_pthread_config 692EGREP 693GREP 694CPP 695SED 696OBJEXT 697EXEEXT 698ac_ct_CC 699CPPFLAGS 700LDFLAGS 701CFLAGS 702CC 703host_os 704host_vendor 705host_cpu 706host 707build_os 708build_vendor 709build_cpu 710build 711target_alias 712host_alias 713build_alias 714LIBS 715ECHO_T 716ECHO_N 717ECHO_C 718DEFS 719mandir 720localedir 721libdir 722psdir 723pdfdir 724dvidir 725htmldir 726infodir 727docdir 728oldincludedir 729includedir 730runstatedir 731localstatedir 732sharedstatedir 733sysconfdir 734datadir 735datarootdir 736libexecdir 737sbindir 738bindir 739program_transform_name 740prefix 741exec_prefix 742PACKAGE_URL 743PACKAGE_BUGREPORT 744PACKAGE_STRING 745PACKAGE_VERSION 746PACKAGE_TARNAME 747PACKAGE_NAME 748PATH_SEPARATOR 749SHELL' 750ac_subst_files='' 751ac_user_opts=' 752enable_option_checking 753with_pthread 754with_purify 755with_x 756with_includes 757with_libraries 758with_motif 759with_editres 760with_xpm 761with_libpng 762with_magick 763with_magick_config 764with_magick_prefix 765with_magick_includes 766with_magick_libraries 767with_gltt 768with_ttf 769with_ftgl 770with_freetype 771with_opengl 772with_mesa 773with_dtsaver 774with_ext 775with_dpms 776with_xinerama 777enable_def_play 778with_rplay 779with_esound 780with_esound_config 781with_esound_prefix 782with_esound_includes 783with_esound_libraries 784with_nas 785with_crypt 786with_gtk2 787with_gtk 788with_gtk_prefix 789with_gtk_exec_prefix 790enable_gtktest 791enable_bitmapdir 792enable_bitmaptype 793enable_pixmapdir 794enable_pixmaptype 795enable_mapdir 796enable_maptype 797enable_vroot 798enable_allow_root 799enable_vtlock 800enable_syslog 801enable_multiple_user 802enable_multiple_root 803enable_xlock_group 804enable_window_visibility 805enable_old_event_loop 806enable_xlockrc 807enable_auto_logout 808enable_default_auto_logout 809enable_button_logout 810enable_default_button_logout 811enable_bomb 812enable_interactive 813enable_unstable 814enable_negative_logout 815enable_closedown_logout 816enable_session_logout 817enable_staff_file 818enable_staff_netgroup 819enable_kerberos4 820enable_kerberos5 821with_krb5_config 822enable_write_krb5 823enable_dce_passwd 824enable_pam 825enable_bad_pam 826enable_good_pam 827enable_afs 828enable_sia 829enable_sunos_adjunct_passwd 830with_passwd_helper 831enable_mb 832enable_customization 833enable_modules 834enable_blank_only 835enable_nice_only 836enable_check 837with_lang 838enable_orig_xpm_patch 839enable_appdefaultdir 840enable_setuid 841' 842 ac_precious_vars='build_alias 843host_alias 844target_alias 845CC 846CFLAGS 847LDFLAGS 848LIBS 849CPPFLAGS 850CPP 851CXX 852CXXFLAGS 853CCC 854XMKMF' 855 856 857# Initialize some variables set by options. 858ac_init_help= 859ac_init_version=false 860ac_unrecognized_opts= 861ac_unrecognized_sep= 862# The variables have the same names as the options, with 863# dashes changed to underlines. 864cache_file=/dev/null 865exec_prefix=NONE 866no_create= 867no_recursion= 868prefix=NONE 869program_prefix=NONE 870program_suffix=NONE 871program_transform_name=s,x,x, 872silent= 873site= 874srcdir= 875verbose= 876x_includes=NONE 877x_libraries=NONE 878 879# Installation directory options. 880# These are left unexpanded so users can "make install exec_prefix=/foo" 881# and all the variables that are supposed to be based on exec_prefix 882# by default will actually change. 883# Use braces instead of parens because sh, perl, etc. also accept them. 884# (The list follows the same order as the GNU Coding Standards.) 885bindir='${exec_prefix}/bin' 886sbindir='${exec_prefix}/sbin' 887libexecdir='${exec_prefix}/libexec' 888datarootdir='${prefix}/share' 889datadir='${datarootdir}' 890sysconfdir='${prefix}/etc' 891sharedstatedir='${prefix}/com' 892localstatedir='${prefix}/var' 893runstatedir='${localstatedir}/run' 894includedir='${prefix}/include' 895oldincludedir='/usr/include' 896docdir='${datarootdir}/doc/${PACKAGE}' 897infodir='${datarootdir}/info' 898htmldir='${docdir}' 899dvidir='${docdir}' 900pdfdir='${docdir}' 901psdir='${docdir}' 902libdir='${exec_prefix}/lib' 903localedir='${datarootdir}/locale' 904mandir='${datarootdir}/man' 905 906ac_prev= 907ac_dashdash= 908for ac_option 909do 910 # If the previous option needs an argument, assign it. 911 if test -n "$ac_prev"; then 912 eval $ac_prev=\$ac_option 913 ac_prev= 914 continue 915 fi 916 917 case $ac_option in 918 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 919 *=) ac_optarg= ;; 920 *) ac_optarg=yes ;; 921 esac 922 923 # Accept the important Cygnus configure options, so we can diagnose typos. 924 925 case $ac_dashdash$ac_option in 926 --) 927 ac_dashdash=yes ;; 928 929 -bindir | --bindir | --bindi | --bind | --bin | --bi) 930 ac_prev=bindir ;; 931 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 932 bindir=$ac_optarg ;; 933 934 -build | --build | --buil | --bui | --bu) 935 ac_prev=build_alias ;; 936 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 937 build_alias=$ac_optarg ;; 938 939 -cache-file | --cache-file | --cache-fil | --cache-fi \ 940 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 941 ac_prev=cache_file ;; 942 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 943 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 944 cache_file=$ac_optarg ;; 945 946 --config-cache | -C) 947 cache_file=config.cache ;; 948 949 -datadir | --datadir | --datadi | --datad) 950 ac_prev=datadir ;; 951 -datadir=* | --datadir=* | --datadi=* | --datad=*) 952 datadir=$ac_optarg ;; 953 954 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 955 | --dataroo | --dataro | --datar) 956 ac_prev=datarootdir ;; 957 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 958 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 959 datarootdir=$ac_optarg ;; 960 961 -disable-* | --disable-*) 962 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 963 # Reject names that are not valid shell variable names. 964 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 965 as_fn_error $? "invalid feature name: $ac_useropt" 966 ac_useropt_orig=$ac_useropt 967 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 968 case $ac_user_opts in 969 *" 970"enable_$ac_useropt" 971"*) ;; 972 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 973 ac_unrecognized_sep=', ';; 974 esac 975 eval enable_$ac_useropt=no ;; 976 977 -docdir | --docdir | --docdi | --doc | --do) 978 ac_prev=docdir ;; 979 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 980 docdir=$ac_optarg ;; 981 982 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 983 ac_prev=dvidir ;; 984 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 985 dvidir=$ac_optarg ;; 986 987 -enable-* | --enable-*) 988 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 989 # Reject names that are not valid shell variable names. 990 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 991 as_fn_error $? "invalid feature name: $ac_useropt" 992 ac_useropt_orig=$ac_useropt 993 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 994 case $ac_user_opts in 995 *" 996"enable_$ac_useropt" 997"*) ;; 998 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 999 ac_unrecognized_sep=', ';; 1000 esac 1001 eval enable_$ac_useropt=\$ac_optarg ;; 1002 1003 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1004 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1005 | --exec | --exe | --ex) 1006 ac_prev=exec_prefix ;; 1007 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1008 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1009 | --exec=* | --exe=* | --ex=*) 1010 exec_prefix=$ac_optarg ;; 1011 1012 -gas | --gas | --ga | --g) 1013 # Obsolete; use --with-gas. 1014 with_gas=yes ;; 1015 1016 -help | --help | --hel | --he | -h) 1017 ac_init_help=long ;; 1018 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1019 ac_init_help=recursive ;; 1020 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1021 ac_init_help=short ;; 1022 1023 -host | --host | --hos | --ho) 1024 ac_prev=host_alias ;; 1025 -host=* | --host=* | --hos=* | --ho=*) 1026 host_alias=$ac_optarg ;; 1027 1028 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1029 ac_prev=htmldir ;; 1030 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1031 | --ht=*) 1032 htmldir=$ac_optarg ;; 1033 1034 -includedir | --includedir | --includedi | --included | --include \ 1035 | --includ | --inclu | --incl | --inc) 1036 ac_prev=includedir ;; 1037 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1038 | --includ=* | --inclu=* | --incl=* | --inc=*) 1039 includedir=$ac_optarg ;; 1040 1041 -infodir | --infodir | --infodi | --infod | --info | --inf) 1042 ac_prev=infodir ;; 1043 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1044 infodir=$ac_optarg ;; 1045 1046 -libdir | --libdir | --libdi | --libd) 1047 ac_prev=libdir ;; 1048 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1049 libdir=$ac_optarg ;; 1050 1051 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1052 | --libexe | --libex | --libe) 1053 ac_prev=libexecdir ;; 1054 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1055 | --libexe=* | --libex=* | --libe=*) 1056 libexecdir=$ac_optarg ;; 1057 1058 -localedir | --localedir | --localedi | --localed | --locale) 1059 ac_prev=localedir ;; 1060 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1061 localedir=$ac_optarg ;; 1062 1063 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1064 | --localstate | --localstat | --localsta | --localst | --locals) 1065 ac_prev=localstatedir ;; 1066 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1067 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1068 localstatedir=$ac_optarg ;; 1069 1070 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1071 ac_prev=mandir ;; 1072 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1073 mandir=$ac_optarg ;; 1074 1075 -nfp | --nfp | --nf) 1076 # Obsolete; use --without-fp. 1077 with_fp=no ;; 1078 1079 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1080 | --no-cr | --no-c | -n) 1081 no_create=yes ;; 1082 1083 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1084 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1085 no_recursion=yes ;; 1086 1087 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1088 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1089 | --oldin | --oldi | --old | --ol | --o) 1090 ac_prev=oldincludedir ;; 1091 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1092 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1093 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1094 oldincludedir=$ac_optarg ;; 1095 1096 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1097 ac_prev=prefix ;; 1098 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1099 prefix=$ac_optarg ;; 1100 1101 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1102 | --program-pre | --program-pr | --program-p) 1103 ac_prev=program_prefix ;; 1104 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1105 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1106 program_prefix=$ac_optarg ;; 1107 1108 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1109 | --program-suf | --program-su | --program-s) 1110 ac_prev=program_suffix ;; 1111 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1112 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1113 program_suffix=$ac_optarg ;; 1114 1115 -program-transform-name | --program-transform-name \ 1116 | --program-transform-nam | --program-transform-na \ 1117 | --program-transform-n | --program-transform- \ 1118 | --program-transform | --program-transfor \ 1119 | --program-transfo | --program-transf \ 1120 | --program-trans | --program-tran \ 1121 | --progr-tra | --program-tr | --program-t) 1122 ac_prev=program_transform_name ;; 1123 -program-transform-name=* | --program-transform-name=* \ 1124 | --program-transform-nam=* | --program-transform-na=* \ 1125 | --program-transform-n=* | --program-transform-=* \ 1126 | --program-transform=* | --program-transfor=* \ 1127 | --program-transfo=* | --program-transf=* \ 1128 | --program-trans=* | --program-tran=* \ 1129 | --progr-tra=* | --program-tr=* | --program-t=*) 1130 program_transform_name=$ac_optarg ;; 1131 1132 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1133 ac_prev=pdfdir ;; 1134 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1135 pdfdir=$ac_optarg ;; 1136 1137 -psdir | --psdir | --psdi | --psd | --ps) 1138 ac_prev=psdir ;; 1139 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1140 psdir=$ac_optarg ;; 1141 1142 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1143 | -silent | --silent | --silen | --sile | --sil) 1144 silent=yes ;; 1145 1146 -runstatedir | --runstatedir | --runstatedi | --runstated \ 1147 | --runstate | --runstat | --runsta | --runst | --runs \ 1148 | --run | --ru | --r) 1149 ac_prev=runstatedir ;; 1150 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ 1151 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ 1152 | --run=* | --ru=* | --r=*) 1153 runstatedir=$ac_optarg ;; 1154 1155 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1156 ac_prev=sbindir ;; 1157 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1158 | --sbi=* | --sb=*) 1159 sbindir=$ac_optarg ;; 1160 1161 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1162 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1163 | --sharedst | --shareds | --shared | --share | --shar \ 1164 | --sha | --sh) 1165 ac_prev=sharedstatedir ;; 1166 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1167 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1168 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1169 | --sha=* | --sh=*) 1170 sharedstatedir=$ac_optarg ;; 1171 1172 -site | --site | --sit) 1173 ac_prev=site ;; 1174 -site=* | --site=* | --sit=*) 1175 site=$ac_optarg ;; 1176 1177 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1178 ac_prev=srcdir ;; 1179 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1180 srcdir=$ac_optarg ;; 1181 1182 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1183 | --syscon | --sysco | --sysc | --sys | --sy) 1184 ac_prev=sysconfdir ;; 1185 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1186 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1187 sysconfdir=$ac_optarg ;; 1188 1189 -target | --target | --targe | --targ | --tar | --ta | --t) 1190 ac_prev=target_alias ;; 1191 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1192 target_alias=$ac_optarg ;; 1193 1194 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1195 verbose=yes ;; 1196 1197 -version | --version | --versio | --versi | --vers | -V) 1198 ac_init_version=: ;; 1199 1200 -with-* | --with-*) 1201 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1202 # Reject names that are not valid shell variable names. 1203 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1204 as_fn_error $? "invalid package name: $ac_useropt" 1205 ac_useropt_orig=$ac_useropt 1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1207 case $ac_user_opts in 1208 *" 1209"with_$ac_useropt" 1210"*) ;; 1211 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1212 ac_unrecognized_sep=', ';; 1213 esac 1214 eval with_$ac_useropt=\$ac_optarg ;; 1215 1216 -without-* | --without-*) 1217 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1218 # Reject names that are not valid shell variable names. 1219 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1220 as_fn_error $? "invalid package name: $ac_useropt" 1221 ac_useropt_orig=$ac_useropt 1222 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1223 case $ac_user_opts in 1224 *" 1225"with_$ac_useropt" 1226"*) ;; 1227 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1228 ac_unrecognized_sep=', ';; 1229 esac 1230 eval with_$ac_useropt=no ;; 1231 1232 --x) 1233 # Obsolete; use --with-x. 1234 with_x=yes ;; 1235 1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1237 | --x-incl | --x-inc | --x-in | --x-i) 1238 ac_prev=x_includes ;; 1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1241 x_includes=$ac_optarg ;; 1242 1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1245 ac_prev=x_libraries ;; 1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1248 x_libraries=$ac_optarg ;; 1249 1250 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1251Try \`$0 --help' for more information" 1252 ;; 1253 1254 *=*) 1255 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1256 # Reject names that are not valid shell variable names. 1257 case $ac_envvar in #( 1258 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1259 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1260 esac 1261 eval $ac_envvar=\$ac_optarg 1262 export $ac_envvar ;; 1263 1264 *) 1265 # FIXME: should be removed in autoconf 3.0. 1266 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1268 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1269 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1270 ;; 1271 1272 esac 1273done 1274 1275if test -n "$ac_prev"; then 1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1277 as_fn_error $? "missing argument to $ac_option" 1278fi 1279 1280if test -n "$ac_unrecognized_opts"; then 1281 case $enable_option_checking in 1282 no) ;; 1283 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1284 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1285 esac 1286fi 1287 1288# Check all directory arguments for consistency. 1289for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1290 datadir sysconfdir sharedstatedir localstatedir includedir \ 1291 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1292 libdir localedir mandir runstatedir 1293do 1294 eval ac_val=\$$ac_var 1295 # Remove trailing slashes. 1296 case $ac_val in 1297 */ ) 1298 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1299 eval $ac_var=\$ac_val;; 1300 esac 1301 # Be sure to have absolute directory names. 1302 case $ac_val in 1303 [\\/$]* | ?:[\\/]* ) continue;; 1304 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1305 esac 1306 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1307done 1308 1309# There might be people who depend on the old broken behavior: `$host' 1310# used to hold the argument of --host etc. 1311# FIXME: To remove some day. 1312build=$build_alias 1313host=$host_alias 1314target=$target_alias 1315 1316# FIXME: To remove some day. 1317if test "x$host_alias" != x; then 1318 if test "x$build_alias" = x; then 1319 cross_compiling=maybe 1320 elif test "x$build_alias" != "x$host_alias"; then 1321 cross_compiling=yes 1322 fi 1323fi 1324 1325ac_tool_prefix= 1326test -n "$host_alias" && ac_tool_prefix=$host_alias- 1327 1328test "$silent" = yes && exec 6>/dev/null 1329 1330 1331ac_pwd=`pwd` && test -n "$ac_pwd" && 1332ac_ls_di=`ls -di .` && 1333ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1334 as_fn_error $? "working directory cannot be determined" 1335test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1336 as_fn_error $? "pwd does not report name of working directory" 1337 1338 1339# Find the source files, if location was not specified. 1340if test -z "$srcdir"; then 1341 ac_srcdir_defaulted=yes 1342 # Try the directory containing this script, then the parent directory. 1343 ac_confdir=`$as_dirname -- "$as_myself" || 1344$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1345 X"$as_myself" : 'X\(//\)[^/]' \| \ 1346 X"$as_myself" : 'X\(//\)$' \| \ 1347 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1348$as_echo X"$as_myself" | 1349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\/\)[^/].*/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\/\)$/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\).*/{ 1362 s//\1/ 1363 q 1364 } 1365 s/.*/./; q'` 1366 srcdir=$ac_confdir 1367 if test ! -r "$srcdir/$ac_unique_file"; then 1368 srcdir=.. 1369 fi 1370else 1371 ac_srcdir_defaulted=no 1372fi 1373if test ! -r "$srcdir/$ac_unique_file"; then 1374 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1375 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1376fi 1377ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1378ac_abs_confdir=`( 1379 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1380 pwd)` 1381# When building in place, set srcdir=. 1382if test "$ac_abs_confdir" = "$ac_pwd"; then 1383 srcdir=. 1384fi 1385# Remove unnecessary trailing slashes from srcdir. 1386# Double slashes in file names in object file debugging info 1387# mess up M-x gdb in Emacs. 1388case $srcdir in 1389*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1390esac 1391for ac_var in $ac_precious_vars; do 1392 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1393 eval ac_env_${ac_var}_value=\$${ac_var} 1394 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1395 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1396done 1397 1398# 1399# Report the --help message. 1400# 1401if test "$ac_init_help" = "long"; then 1402 # Omit some internal or obsolete options to make the list less imposing. 1403 # This message is too long to be a string in the A/UX 3.1 sh. 1404 cat <<_ACEOF 1405\`configure' configures this package to adapt to many kinds of systems. 1406 1407Usage: $0 [OPTION]... [VAR=VALUE]... 1408 1409To assign environment variables (e.g., CC, CFLAGS...), specify them as 1410VAR=VALUE. See below for descriptions of some of the useful variables. 1411 1412Defaults for the options are specified in brackets. 1413 1414Configuration: 1415 -h, --help display this help and exit 1416 --help=short display options specific to this package 1417 --help=recursive display the short help of all the included packages 1418 -V, --version display version information and exit 1419 -q, --quiet, --silent do not print \`checking ...' messages 1420 --cache-file=FILE cache test results in FILE [disabled] 1421 -C, --config-cache alias for \`--cache-file=config.cache' 1422 -n, --no-create do not create output files 1423 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1424 1425Installation directories: 1426 --prefix=PREFIX install architecture-independent files in PREFIX 1427 [$ac_default_prefix] 1428 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1429 [PREFIX] 1430 1431By default, \`make install' will install all the files in 1432\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1433an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1434for instance \`--prefix=\$HOME'. 1435 1436For better control, use the options below. 1437 1438Fine tuning of the installation directories: 1439 --bindir=DIR user executables [EPREFIX/bin] 1440 --sbindir=DIR system admin executables [EPREFIX/sbin] 1441 --libexecdir=DIR program executables [EPREFIX/libexec] 1442 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1443 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1444 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1445 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] 1446 --libdir=DIR object code libraries [EPREFIX/lib] 1447 --includedir=DIR C header files [PREFIX/include] 1448 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1449 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1450 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1451 --infodir=DIR info documentation [DATAROOTDIR/info] 1452 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1453 --mandir=DIR man documentation [DATAROOTDIR/man] 1454 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1455 --htmldir=DIR html documentation [DOCDIR] 1456 --dvidir=DIR dvi documentation [DOCDIR] 1457 --pdfdir=DIR pdf documentation [DOCDIR] 1458 --psdir=DIR ps documentation [DOCDIR] 1459_ACEOF 1460 1461 cat <<\_ACEOF 1462 1463X features: 1464 --x-includes=DIR X include files are in DIR 1465 --x-libraries=DIR X library files are in DIR 1466 1467System types: 1468 --build=BUILD configure for building on BUILD [guessed] 1469 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1470_ACEOF 1471fi 1472 1473if test -n "$ac_init_help"; then 1474 1475 cat <<\_ACEOF 1476 1477Optional Features: 1478 --disable-option-checking ignore unrecognized --enable/--with options 1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1481 --disable-def-play=program 1482 set def-play to program that plays sounds 1483 --disable-gtktest do not try to compile and run a test GTK program 1484 --enable-bitmapdir=DIR set directory for bitmaps, default is ./bitmaps 1485 --enable-bitmaptype=name 1486 set name for bitmap type 1487 --enable-pixmapdir=DIR set directory for pixmaps, default is ./pixmaps 1488 --enable-pixmaptype=name 1489 set name for pixmap type 1490 --enable-mapdir=DIR set directory for bitmaps and pixmaps 1491 --enable-maptype=name set name for bitmap and pixmap type 1492 --disable-vroot disables xlock from being able to run in root window 1493 (some window managers have problems) 1494 --disable-allow-root allows users to turn off allowroot (default is to 1495 always allow root to be able to unlock xlock) 1496 --enable-vtlock allows to turn on VT switch lock (default is to be 1497 able to switch to another VT) 1498 --enable-syslog enable syslog logging 1499 --enable-multiple-user enable multiple users 1500 --enable-multiple-root enable multiple root users 1501 --enable-xlock-group enable all in xlock group to unlock 1502 --enable-window-visibility 1503 allow a window to be displayed over xlock 1504 --enable-old-event-loop some machines may still need this 1505 (fd_set errors may be a sign) 1506 --enable-xlockrc for unknown shadow passwd algorithm 1507 --enable-auto-logout=time 1508 enable auto-logout code for lab use (time in minutes) 1509 --enable-default-auto-logout=time 1510 set default-auto-logout (time in minutes) 1511 --enable-button-logout=time 1512 enable button logout for lab use (time in minutes) 1513 --enable-default-button-logout=time 1514 set default-button-logout (time in minutes) 1515 --disable-bomb disable automatic logout mode 1516 --disable-interactive disables interactive modes (useful for prod env) 1517 --enable-unstable enables unstable (alpha) modes 1518 --disable-negative-logout 1519 allows users to deny logout button and autologout 1520 --enable-closedown-logout 1521 define this one or next, with enable-auto-logout 1522 --enable-session-logout enable-button-logout, and/or enable-bomb, for xdm 1523 --enable-staff-file=filename 1524 set file of staff who are exempt from auto-logout 1525 --enable-staff-netgroup=netgroup 1526 set netgroup of staff who are exempt from auto-logout 1527 --enable-kerberos4 enable Kerberos 4 1528 --enable-kerberos5 enable Kerberos 5 1529 --enable-write-krb5 write new krb5 credentials to credential cache 1530 --enable-dce-passwd enable DCE passwording 1531 --enable-pam enable PAM 1532 --enable-bad-pam enable BAD_PAM 1533 --enable-good-pam enable GOOD_PAM 1534 --enable-afs enable AFS 1535 --enable-sia enable SIA 1536 --enable-sunos-adjunct-passwd 1537 enable SUNOS Adjunct passwording 1538 --disable-mb disable Xmb function series so will only display ASCII 1539 --enable-customization enable customization of XResource 1540 --enable-modules enable modules (better to use xmkmf for this) 1541 --enable-blank-only enable blank mode only (boring) 1542 --enable-nice-only enable only low cpu modes 1543 --enable-check enable check (experimental) 1544 --enable-orig-xpm-patch use the original pixmap patch for mail icon 1545 (have colormap problems in 8 bits depth visuals) 1546 --enable-appdefaultdir=DIR 1547 set directory installation of appdefaults, 1548 default is where X is installed 1549 --disable-setuid disables setuid installation if automatically chosen 1550 1551Optional Packages: 1552 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1553 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1554 --without-pthread do not use POSIX threads 1555 --with-purify configure to postprocess with purify 1556 --with-x use the X Window System 1557 --with-includes=DIR search include DIR for optional packages below 1558 --with-libraries=DIR search library DIR for optional packages below 1559 --without-motif disable Motif (for xmlock) 1560 --without-editres disable debugger (for x?lock) 1561 --without-xpm disable color pixmap XPM mode(s) 1562 --without-libpng disable color pixmap LIBPNG mode(s) 1563 --without-magick disable ImageMagick 1564 --with-magick-config use this configator for ImageMagick 1565 --with-magick-prefix use this prefix for ImageMagick 1566 --with-magick-includes use this dir for ImageMagick headers 1567 --with-magick-libraries use this dir for ImageMagick libs 1568 --without-gltt disable GL True Text library 1569 --without-ttf disable True Text Font mode(s) 1570 --without-ftgl disable GL font rendering library 1571 --without-freetype disable Freetype2 mode(s) 1572 --without-opengl disable 3D OpenGL (for GL modes) 1573 --without-mesa disable Mesa 3D (for GL modes) 1574 --without-dtsaver disable -dtsaver option 1575 --without-ext disable EXT 1576 --without-dpms disable DPMS 1577 --without-xinerama disable Xinerama support 1578 --without-rplay disable RPLAY sounds 1579 --with-esound enable Enlightenment Sound Daemon sounds 1580 --with-esound-config use this configator for Enlightenment Sound Daemon 1581 --with-esound-prefix use this prefix for Enlightenment Sound Daemon 1582 --with-esound-includes use this dir for Enlightenment Sound Daemon headers 1583 --with-esound-libraries use this dir for Enlightenment Sound Daemon libs 1584 --without-nas disable NAS sounds 1585 --without-crypt disable CRYPT 1586 --without-gtk2 disable GTK2 (no xglock build) 1587 --without-gtk disable GTK (no xglock build) 1588 --with-gtk-prefix=DIR Prefix where GTK is installed (optional) 1589 --with-gtk-exec-prefix=DIR 1590 Exec prefix where GTK is installed (optional) 1591 --with-krb5-config=PATH Location of krb5-config script 1592 --with-passwd-helper=/path Use external helper program for authentication 1593 --with-lang=lang use a foreign language (nl/fr/de/ja) 1594 1595Some influential environment variables: 1596 CC C compiler command 1597 CFLAGS C compiler flags 1598 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1599 nonstandard directory <lib dir> 1600 LIBS libraries to pass to the linker, e.g. -l<library> 1601 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1602 you have headers in a nonstandard directory <include dir> 1603 CPP C preprocessor 1604 CXX C++ compiler command 1605 CXXFLAGS C++ compiler flags 1606 XMKMF Path to xmkmf, Makefile generator for X Window System 1607 1608Use these variables to override the choices made by `configure' or to help 1609it to find libraries and programs with nonstandard names/locations. 1610 1611Report bugs to the package provider. 1612_ACEOF 1613ac_status=$? 1614fi 1615 1616if test "$ac_init_help" = "recursive"; then 1617 # If there are subdirs, report their specific --help. 1618 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1619 test -d "$ac_dir" || 1620 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1621 continue 1622 ac_builddir=. 1623 1624case "$ac_dir" in 1625.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1626*) 1627 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1628 # A ".." for each directory in $ac_dir_suffix. 1629 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1630 case $ac_top_builddir_sub in 1631 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1632 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1633 esac ;; 1634esac 1635ac_abs_top_builddir=$ac_pwd 1636ac_abs_builddir=$ac_pwd$ac_dir_suffix 1637# for backward compatibility: 1638ac_top_builddir=$ac_top_build_prefix 1639 1640case $srcdir in 1641 .) # We are building in place. 1642 ac_srcdir=. 1643 ac_top_srcdir=$ac_top_builddir_sub 1644 ac_abs_top_srcdir=$ac_pwd ;; 1645 [\\/]* | ?:[\\/]* ) # Absolute name. 1646 ac_srcdir=$srcdir$ac_dir_suffix; 1647 ac_top_srcdir=$srcdir 1648 ac_abs_top_srcdir=$srcdir ;; 1649 *) # Relative name. 1650 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1651 ac_top_srcdir=$ac_top_build_prefix$srcdir 1652 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1653esac 1654ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1655 1656 cd "$ac_dir" || { ac_status=$?; continue; } 1657 # Check for guested configure. 1658 if test -f "$ac_srcdir/configure.gnu"; then 1659 echo && 1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1661 elif test -f "$ac_srcdir/configure"; then 1662 echo && 1663 $SHELL "$ac_srcdir/configure" --help=recursive 1664 else 1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1666 fi || ac_status=$? 1667 cd "$ac_pwd" || { ac_status=$?; break; } 1668 done 1669fi 1670 1671test -n "$ac_init_help" && exit $ac_status 1672if $ac_init_version; then 1673 cat <<\_ACEOF 1674configure 1675generated by GNU Autoconf 2.69 1676 1677Copyright (C) 2012 Free Software Foundation, Inc. 1678This configure script is free software; the Free Software Foundation 1679gives unlimited permission to copy, distribute and modify it. 1680_ACEOF 1681 exit 1682fi 1683 1684## ------------------------ ## 1685## Autoconf initialization. ## 1686## ------------------------ ## 1687 1688# ac_fn_c_try_compile LINENO 1689# -------------------------- 1690# Try to compile conftest.$ac_ext, and return whether this succeeded. 1691ac_fn_c_try_compile () 1692{ 1693 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1694 rm -f conftest.$ac_objext 1695 if { { ac_try="$ac_compile" 1696case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701$as_echo "$ac_try_echo"; } >&5 1702 (eval "$ac_compile") 2>conftest.err 1703 ac_status=$? 1704 if test -s conftest.err; then 1705 grep -v '^ *+' conftest.err >conftest.er1 1706 cat conftest.er1 >&5 1707 mv -f conftest.er1 conftest.err 1708 fi 1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1710 test $ac_status = 0; } && { 1711 test -z "$ac_c_werror_flag" || 1712 test ! -s conftest.err 1713 } && test -s conftest.$ac_objext; then : 1714 ac_retval=0 1715else 1716 $as_echo "$as_me: failed program was:" >&5 1717sed 's/^/| /' conftest.$ac_ext >&5 1718 1719 ac_retval=1 1720fi 1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1722 as_fn_set_status $ac_retval 1723 1724} # ac_fn_c_try_compile 1725 1726# ac_fn_c_try_link LINENO 1727# ----------------------- 1728# Try to link conftest.$ac_ext, and return whether this succeeded. 1729ac_fn_c_try_link () 1730{ 1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1732 rm -f conftest.$ac_objext conftest$ac_exeext 1733 if { { ac_try="$ac_link" 1734case "(($ac_try" in 1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1736 *) ac_try_echo=$ac_try;; 1737esac 1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1739$as_echo "$ac_try_echo"; } >&5 1740 (eval "$ac_link") 2>conftest.err 1741 ac_status=$? 1742 if test -s conftest.err; then 1743 grep -v '^ *+' conftest.err >conftest.er1 1744 cat conftest.er1 >&5 1745 mv -f conftest.er1 conftest.err 1746 fi 1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1748 test $ac_status = 0; } && { 1749 test -z "$ac_c_werror_flag" || 1750 test ! -s conftest.err 1751 } && test -s conftest$ac_exeext && { 1752 test "$cross_compiling" = yes || 1753 test -x conftest$ac_exeext 1754 }; then : 1755 ac_retval=0 1756else 1757 $as_echo "$as_me: failed program was:" >&5 1758sed 's/^/| /' conftest.$ac_ext >&5 1759 1760 ac_retval=1 1761fi 1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1764 # interfere with the next link command; also delete a directory that is 1765 # left behind by Apple's compiler. We do this before executing the actions. 1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1768 as_fn_set_status $ac_retval 1769 1770} # ac_fn_c_try_link 1771 1772# ac_fn_c_try_cpp LINENO 1773# ---------------------- 1774# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1775ac_fn_c_try_cpp () 1776{ 1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1778 if { { ac_try="$ac_cpp conftest.$ac_ext" 1779case "(($ac_try" in 1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1781 *) ac_try_echo=$ac_try;; 1782esac 1783eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1784$as_echo "$ac_try_echo"; } >&5 1785 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1786 ac_status=$? 1787 if test -s conftest.err; then 1788 grep -v '^ *+' conftest.err >conftest.er1 1789 cat conftest.er1 >&5 1790 mv -f conftest.er1 conftest.err 1791 fi 1792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1793 test $ac_status = 0; } > conftest.i && { 1794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1795 test ! -s conftest.err 1796 }; then : 1797 ac_retval=0 1798else 1799 $as_echo "$as_me: failed program was:" >&5 1800sed 's/^/| /' conftest.$ac_ext >&5 1801 1802 ac_retval=1 1803fi 1804 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1805 as_fn_set_status $ac_retval 1806 1807} # ac_fn_c_try_cpp 1808 1809# ac_fn_cxx_try_compile LINENO 1810# ---------------------------- 1811# Try to compile conftest.$ac_ext, and return whether this succeeded. 1812ac_fn_cxx_try_compile () 1813{ 1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1815 rm -f conftest.$ac_objext 1816 if { { ac_try="$ac_compile" 1817case "(($ac_try" in 1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1819 *) ac_try_echo=$ac_try;; 1820esac 1821eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1822$as_echo "$ac_try_echo"; } >&5 1823 (eval "$ac_compile") 2>conftest.err 1824 ac_status=$? 1825 if test -s conftest.err; then 1826 grep -v '^ *+' conftest.err >conftest.er1 1827 cat conftest.er1 >&5 1828 mv -f conftest.er1 conftest.err 1829 fi 1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1831 test $ac_status = 0; } && { 1832 test -z "$ac_cxx_werror_flag" || 1833 test ! -s conftest.err 1834 } && test -s conftest.$ac_objext; then : 1835 ac_retval=0 1836else 1837 $as_echo "$as_me: failed program was:" >&5 1838sed 's/^/| /' conftest.$ac_ext >&5 1839 1840 ac_retval=1 1841fi 1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1843 as_fn_set_status $ac_retval 1844 1845} # ac_fn_cxx_try_compile 1846 1847# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1848# ------------------------------------------------------- 1849# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1850# the include files in INCLUDES and setting the cache variable VAR 1851# accordingly. 1852ac_fn_c_check_header_mongrel () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 if eval \${$3+:} false; then : 1856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1857$as_echo_n "checking for $2... " >&6; } 1858if eval \${$3+:} false; then : 1859 $as_echo_n "(cached) " >&6 1860fi 1861eval ac_res=\$$3 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1863$as_echo "$ac_res" >&6; } 1864else 1865 # Is the header compilable? 1866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1867$as_echo_n "checking $2 usability... " >&6; } 1868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1869/* end confdefs.h. */ 1870$4 1871#include <$2> 1872_ACEOF 1873if ac_fn_c_try_compile "$LINENO"; then : 1874 ac_header_compiler=yes 1875else 1876 ac_header_compiler=no 1877fi 1878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1880$as_echo "$ac_header_compiler" >&6; } 1881 1882# Is the header present? 1883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1884$as_echo_n "checking $2 presence... " >&6; } 1885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1886/* end confdefs.h. */ 1887#include <$2> 1888_ACEOF 1889if ac_fn_c_try_cpp "$LINENO"; then : 1890 ac_header_preproc=yes 1891else 1892 ac_header_preproc=no 1893fi 1894rm -f conftest.err conftest.i conftest.$ac_ext 1895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1896$as_echo "$ac_header_preproc" >&6; } 1897 1898# So? What about this header? 1899case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1900 yes:no: ) 1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1902$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1904$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1905 ;; 1906 no:yes:* ) 1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1908$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1910$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1912$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1914$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1916$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1917 ;; 1918esac 1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1920$as_echo_n "checking for $2... " >&6; } 1921if eval \${$3+:} false; then : 1922 $as_echo_n "(cached) " >&6 1923else 1924 eval "$3=\$ac_header_compiler" 1925fi 1926eval ac_res=\$$3 1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1928$as_echo "$ac_res" >&6; } 1929fi 1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1931 1932} # ac_fn_c_check_header_mongrel 1933 1934# ac_fn_c_try_run LINENO 1935# ---------------------- 1936# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1937# that executables *can* be run. 1938ac_fn_c_try_run () 1939{ 1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1941 if { { ac_try="$ac_link" 1942case "(($ac_try" in 1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1944 *) ac_try_echo=$ac_try;; 1945esac 1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1947$as_echo "$ac_try_echo"; } >&5 1948 (eval "$ac_link") 2>&5 1949 ac_status=$? 1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1951 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1952 { { case "(($ac_try" in 1953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1954 *) ac_try_echo=$ac_try;; 1955esac 1956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1957$as_echo "$ac_try_echo"; } >&5 1958 (eval "$ac_try") 2>&5 1959 ac_status=$? 1960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1961 test $ac_status = 0; }; }; then : 1962 ac_retval=0 1963else 1964 $as_echo "$as_me: program exited with status $ac_status" >&5 1965 $as_echo "$as_me: failed program was:" >&5 1966sed 's/^/| /' conftest.$ac_ext >&5 1967 1968 ac_retval=$ac_status 1969fi 1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1972 as_fn_set_status $ac_retval 1973 1974} # ac_fn_c_try_run 1975 1976# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1977# ------------------------------------------------------- 1978# Tests whether HEADER exists and can be compiled using the include files in 1979# INCLUDES, setting the cache variable VAR accordingly. 1980ac_fn_c_check_header_compile () 1981{ 1982 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1984$as_echo_n "checking for $2... " >&6; } 1985if eval \${$3+:} false; then : 1986 $as_echo_n "(cached) " >&6 1987else 1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1989/* end confdefs.h. */ 1990$4 1991#include <$2> 1992_ACEOF 1993if ac_fn_c_try_compile "$LINENO"; then : 1994 eval "$3=yes" 1995else 1996 eval "$3=no" 1997fi 1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1999fi 2000eval ac_res=\$$3 2001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2002$as_echo "$ac_res" >&6; } 2003 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2004 2005} # ac_fn_c_check_header_compile 2006 2007# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2008# ------------------------------------------- 2009# Tests whether TYPE exists after having included INCLUDES, setting cache 2010# variable VAR accordingly. 2011ac_fn_c_check_type () 2012{ 2013 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2015$as_echo_n "checking for $2... " >&6; } 2016if eval \${$3+:} false; then : 2017 $as_echo_n "(cached) " >&6 2018else 2019 eval "$3=no" 2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2021/* end confdefs.h. */ 2022$4 2023int 2024main () 2025{ 2026if (sizeof ($2)) 2027 return 0; 2028 ; 2029 return 0; 2030} 2031_ACEOF 2032if ac_fn_c_try_compile "$LINENO"; then : 2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2034/* end confdefs.h. */ 2035$4 2036int 2037main () 2038{ 2039if (sizeof (($2))) 2040 return 0; 2041 ; 2042 return 0; 2043} 2044_ACEOF 2045if ac_fn_c_try_compile "$LINENO"; then : 2046 2047else 2048 eval "$3=yes" 2049fi 2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2051fi 2052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2053fi 2054eval ac_res=\$$3 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2056$as_echo "$ac_res" >&6; } 2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2058 2059} # ac_fn_c_check_type 2060 2061# ac_fn_c_check_func LINENO FUNC VAR 2062# ---------------------------------- 2063# Tests whether FUNC exists, setting the cache variable VAR accordingly 2064ac_fn_c_check_func () 2065{ 2066 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2068$as_echo_n "checking for $2... " >&6; } 2069if eval \${$3+:} false; then : 2070 $as_echo_n "(cached) " >&6 2071else 2072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2073/* end confdefs.h. */ 2074/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2075 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2076#define $2 innocuous_$2 2077 2078/* System header to define __stub macros and hopefully few prototypes, 2079 which can conflict with char $2 (); below. 2080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2081 <limits.h> exists even on freestanding compilers. */ 2082 2083#ifdef __STDC__ 2084# include <limits.h> 2085#else 2086# include <assert.h> 2087#endif 2088 2089#undef $2 2090 2091/* Override any GCC internal prototype to avoid an error. 2092 Use char because int might match the return type of a GCC 2093 builtin and then its argument prototype would still apply. */ 2094#ifdef __cplusplus 2095extern "C" 2096#endif 2097char $2 (); 2098/* The GNU C library defines this for functions which it implements 2099 to always fail with ENOSYS. Some functions are actually named 2100 something starting with __ and the normal name is an alias. */ 2101#if defined __stub_$2 || defined __stub___$2 2102choke me 2103#endif 2104 2105int 2106main () 2107{ 2108return $2 (); 2109 ; 2110 return 0; 2111} 2112_ACEOF 2113if ac_fn_c_try_link "$LINENO"; then : 2114 eval "$3=yes" 2115else 2116 eval "$3=no" 2117fi 2118rm -f core conftest.err conftest.$ac_objext \ 2119 conftest$ac_exeext conftest.$ac_ext 2120fi 2121eval ac_res=\$$3 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2123$as_echo "$ac_res" >&6; } 2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2125 2126} # ac_fn_c_check_func 2127cat >config.log <<_ACEOF 2128This file contains any messages produced by compilers while 2129running configure, to aid debugging if configure makes a mistake. 2130 2131It was created by $as_me, which was 2132generated by GNU Autoconf 2.69. Invocation command line was 2133 2134 $ $0 $@ 2135 2136_ACEOF 2137exec 5>>config.log 2138{ 2139cat <<_ASUNAME 2140## --------- ## 2141## Platform. ## 2142## --------- ## 2143 2144hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2145uname -m = `(uname -m) 2>/dev/null || echo unknown` 2146uname -r = `(uname -r) 2>/dev/null || echo unknown` 2147uname -s = `(uname -s) 2>/dev/null || echo unknown` 2148uname -v = `(uname -v) 2>/dev/null || echo unknown` 2149 2150/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2151/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2152 2153/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2154/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2155/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2156/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2157/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2158/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2159/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2160 2161_ASUNAME 2162 2163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2164for as_dir in $PATH 2165do 2166 IFS=$as_save_IFS 2167 test -z "$as_dir" && as_dir=. 2168 $as_echo "PATH: $as_dir" 2169 done 2170IFS=$as_save_IFS 2171 2172} >&5 2173 2174cat >&5 <<_ACEOF 2175 2176 2177## ----------- ## 2178## Core tests. ## 2179## ----------- ## 2180 2181_ACEOF 2182 2183 2184# Keep a trace of the command line. 2185# Strip out --no-create and --no-recursion so they do not pile up. 2186# Strip out --silent because we don't want to record it for future runs. 2187# Also quote any args containing shell meta-characters. 2188# Make two passes to allow for proper duplicate-argument suppression. 2189ac_configure_args= 2190ac_configure_args0= 2191ac_configure_args1= 2192ac_must_keep_next=false 2193for ac_pass in 1 2 2194do 2195 for ac_arg 2196 do 2197 case $ac_arg in 2198 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2199 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2200 | -silent | --silent | --silen | --sile | --sil) 2201 continue ;; 2202 *\'*) 2203 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2204 esac 2205 case $ac_pass in 2206 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2207 2) 2208 as_fn_append ac_configure_args1 " '$ac_arg'" 2209 if test $ac_must_keep_next = true; then 2210 ac_must_keep_next=false # Got value, back to normal. 2211 else 2212 case $ac_arg in 2213 *=* | --config-cache | -C | -disable-* | --disable-* \ 2214 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2215 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2216 | -with-* | --with-* | -without-* | --without-* | --x) 2217 case "$ac_configure_args0 " in 2218 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2219 esac 2220 ;; 2221 -* ) ac_must_keep_next=true ;; 2222 esac 2223 fi 2224 as_fn_append ac_configure_args " '$ac_arg'" 2225 ;; 2226 esac 2227 done 2228done 2229{ ac_configure_args0=; unset ac_configure_args0;} 2230{ ac_configure_args1=; unset ac_configure_args1;} 2231 2232# When interrupted or exit'd, cleanup temporary files, and complete 2233# config.log. We remove comments because anyway the quotes in there 2234# would cause problems or look ugly. 2235# WARNING: Use '\'' to represent an apostrophe within the trap. 2236# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2237trap 'exit_status=$? 2238 # Save into config.log some information that might help in debugging. 2239 { 2240 echo 2241 2242 $as_echo "## ---------------- ## 2243## Cache variables. ## 2244## ---------------- ##" 2245 echo 2246 # The following way of writing the cache mishandles newlines in values, 2247( 2248 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2249 eval ac_val=\$$ac_var 2250 case $ac_val in #( 2251 *${as_nl}*) 2252 case $ac_var in #( 2253 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2254$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2255 esac 2256 case $ac_var in #( 2257 _ | IFS | as_nl) ;; #( 2258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2259 *) { eval $ac_var=; unset $ac_var;} ;; 2260 esac ;; 2261 esac 2262 done 2263 (set) 2>&1 | 2264 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2265 *${as_nl}ac_space=\ *) 2266 sed -n \ 2267 "s/'\''/'\''\\\\'\'''\''/g; 2268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2269 ;; #( 2270 *) 2271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2272 ;; 2273 esac | 2274 sort 2275) 2276 echo 2277 2278 $as_echo "## ----------------- ## 2279## Output variables. ## 2280## ----------------- ##" 2281 echo 2282 for ac_var in $ac_subst_vars 2283 do 2284 eval ac_val=\$$ac_var 2285 case $ac_val in 2286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2287 esac 2288 $as_echo "$ac_var='\''$ac_val'\''" 2289 done | sort 2290 echo 2291 2292 if test -n "$ac_subst_files"; then 2293 $as_echo "## ------------------- ## 2294## File substitutions. ## 2295## ------------------- ##" 2296 echo 2297 for ac_var in $ac_subst_files 2298 do 2299 eval ac_val=\$$ac_var 2300 case $ac_val in 2301 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2302 esac 2303 $as_echo "$ac_var='\''$ac_val'\''" 2304 done | sort 2305 echo 2306 fi 2307 2308 if test -s confdefs.h; then 2309 $as_echo "## ----------- ## 2310## confdefs.h. ## 2311## ----------- ##" 2312 echo 2313 cat confdefs.h 2314 echo 2315 fi 2316 test "$ac_signal" != 0 && 2317 $as_echo "$as_me: caught signal $ac_signal" 2318 $as_echo "$as_me: exit $exit_status" 2319 } >&5 2320 rm -f core *.core core.conftest.* && 2321 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2322 exit $exit_status 2323' 0 2324for ac_signal in 1 2 13 15; do 2325 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2326done 2327ac_signal=0 2328 2329# confdefs.h avoids OS command line length limits that DEFS can exceed. 2330rm -f -r conftest* confdefs.h 2331 2332$as_echo "/* confdefs.h */" > confdefs.h 2333 2334# Predefined preprocessor variables. 2335 2336cat >>confdefs.h <<_ACEOF 2337#define PACKAGE_NAME "$PACKAGE_NAME" 2338_ACEOF 2339 2340cat >>confdefs.h <<_ACEOF 2341#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2342_ACEOF 2343 2344cat >>confdefs.h <<_ACEOF 2345#define PACKAGE_VERSION "$PACKAGE_VERSION" 2346_ACEOF 2347 2348cat >>confdefs.h <<_ACEOF 2349#define PACKAGE_STRING "$PACKAGE_STRING" 2350_ACEOF 2351 2352cat >>confdefs.h <<_ACEOF 2353#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2354_ACEOF 2355 2356cat >>confdefs.h <<_ACEOF 2357#define PACKAGE_URL "$PACKAGE_URL" 2358_ACEOF 2359 2360 2361# Let the site file select an alternate cache file if it wants to. 2362# Prefer an explicitly selected file to automatically selected ones. 2363ac_site_file1=NONE 2364ac_site_file2=NONE 2365if test -n "$CONFIG_SITE"; then 2366 # We do not want a PATH search for config.site. 2367 case $CONFIG_SITE in #(( 2368 -*) ac_site_file1=./$CONFIG_SITE;; 2369 */*) ac_site_file1=$CONFIG_SITE;; 2370 *) ac_site_file1=./$CONFIG_SITE;; 2371 esac 2372elif test "x$prefix" != xNONE; then 2373 ac_site_file1=$prefix/share/config.site 2374 ac_site_file2=$prefix/etc/config.site 2375else 2376 ac_site_file1=$ac_default_prefix/share/config.site 2377 ac_site_file2=$ac_default_prefix/etc/config.site 2378fi 2379for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2380do 2381 test "x$ac_site_file" = xNONE && continue 2382 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2384$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2385 sed 's/^/| /' "$ac_site_file" >&5 2386 . "$ac_site_file" \ 2387 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2389as_fn_error $? "failed to load site script $ac_site_file 2390See \`config.log' for more details" "$LINENO" 5; } 2391 fi 2392done 2393 2394if test -r "$cache_file"; then 2395 # Some versions of bash will fail to source /dev/null (special files 2396 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2397 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2399$as_echo "$as_me: loading cache $cache_file" >&6;} 2400 case $cache_file in 2401 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2402 *) . "./$cache_file";; 2403 esac 2404 fi 2405else 2406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2407$as_echo "$as_me: creating cache $cache_file" >&6;} 2408 >$cache_file 2409fi 2410 2411# Check that the precious variables saved in the cache have kept the same 2412# value. 2413ac_cache_corrupted=false 2414for ac_var in $ac_precious_vars; do 2415 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2416 eval ac_new_set=\$ac_env_${ac_var}_set 2417 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2418 eval ac_new_val=\$ac_env_${ac_var}_value 2419 case $ac_old_set,$ac_new_set in 2420 set,) 2421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2422$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2423 ac_cache_corrupted=: ;; 2424 ,set) 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2426$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2427 ac_cache_corrupted=: ;; 2428 ,);; 2429 *) 2430 if test "x$ac_old_val" != "x$ac_new_val"; then 2431 # differences in whitespace do not lead to failure. 2432 ac_old_val_w=`echo x $ac_old_val` 2433 ac_new_val_w=`echo x $ac_new_val` 2434 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2435 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2436$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2437 ac_cache_corrupted=: 2438 else 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2440$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2441 eval $ac_var=\$ac_old_val 2442 fi 2443 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2444$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2445 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2446$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2447 fi;; 2448 esac 2449 # Pass precious variables to config.status. 2450 if test "$ac_new_set" = set; then 2451 case $ac_new_val in 2452 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2453 *) ac_arg=$ac_var=$ac_new_val ;; 2454 esac 2455 case " $ac_configure_args " in 2456 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2457 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2458 esac 2459 fi 2460done 2461if $ac_cache_corrupted; then 2462 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2463$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2465$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2466 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2467fi 2468## -------------------- ## 2469## Main body of script. ## 2470## -------------------- ## 2471 2472ac_ext=c 2473ac_cpp='$CPP $CPPFLAGS' 2474ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2475ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2476ac_compiler_gnu=$ac_cv_c_compiler_gnu 2477 2478 2479ac_aux_dir= 2480for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2481 if test -f "$ac_dir/install-sh"; then 2482 ac_aux_dir=$ac_dir 2483 ac_install_sh="$ac_aux_dir/install-sh -c" 2484 break 2485 elif test -f "$ac_dir/install.sh"; then 2486 ac_aux_dir=$ac_dir 2487 ac_install_sh="$ac_aux_dir/install.sh -c" 2488 break 2489 elif test -f "$ac_dir/shtool"; then 2490 ac_aux_dir=$ac_dir 2491 ac_install_sh="$ac_aux_dir/shtool install -c" 2492 break 2493 fi 2494done 2495if test -z "$ac_aux_dir"; then 2496 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2497fi 2498 2499# These three variables are undocumented and unsupported, 2500# and are intended to be withdrawn in a future Autoconf release. 2501# They can cause serious problems if a builder's source tree is in a directory 2502# whose full name contains unusual characters. 2503ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2504ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2505ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2506 2507 2508# Make sure we can run config.sub. 2509$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2510 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2511 2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2513$as_echo_n "checking build system type... " >&6; } 2514if ${ac_cv_build+:} false; then : 2515 $as_echo_n "(cached) " >&6 2516else 2517 ac_build_alias=$build_alias 2518test "x$ac_build_alias" = x && 2519 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2520test "x$ac_build_alias" = x && 2521 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2522ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2523 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2524 2525fi 2526{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2527$as_echo "$ac_cv_build" >&6; } 2528case $ac_cv_build in 2529*-*-*) ;; 2530*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2531esac 2532build=$ac_cv_build 2533ac_save_IFS=$IFS; IFS='-' 2534set x $ac_cv_build 2535shift 2536build_cpu=$1 2537build_vendor=$2 2538shift; shift 2539# Remember, the first character of IFS is used to create $*, 2540# except with old shells: 2541build_os=$* 2542IFS=$ac_save_IFS 2543case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2544 2545 2546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2547$as_echo_n "checking host system type... " >&6; } 2548if ${ac_cv_host+:} false; then : 2549 $as_echo_n "(cached) " >&6 2550else 2551 if test "x$host_alias" = x; then 2552 ac_cv_host=$ac_cv_build 2553else 2554 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2555 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2556fi 2557 2558fi 2559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2560$as_echo "$ac_cv_host" >&6; } 2561case $ac_cv_host in 2562*-*-*) ;; 2563*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2564esac 2565host=$ac_cv_host 2566ac_save_IFS=$IFS; IFS='-' 2567set x $ac_cv_host 2568shift 2569host_cpu=$1 2570host_vendor=$2 2571shift; shift 2572# Remember, the first character of IFS is used to create $*, 2573# except with old shells: 2574host_os=$* 2575IFS=$ac_save_IFS 2576case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2577 2578 2579canonical=$host 2580 2581ac_original_cc="$CC" 2582ac_ext=c 2583ac_cpp='$CPP $CPPFLAGS' 2584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2586ac_compiler_gnu=$ac_cv_c_compiler_gnu 2587if test -n "$ac_tool_prefix"; then 2588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2589set dummy ${ac_tool_prefix}gcc; ac_word=$2 2590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2591$as_echo_n "checking for $ac_word... " >&6; } 2592if ${ac_cv_prog_CC+:} false; then : 2593 $as_echo_n "(cached) " >&6 2594else 2595 if test -n "$CC"; then 2596 ac_cv_prog_CC="$CC" # Let the user override the test. 2597else 2598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2599for as_dir in $PATH 2600do 2601 IFS=$as_save_IFS 2602 test -z "$as_dir" && as_dir=. 2603 for ac_exec_ext in '' $ac_executable_extensions; do 2604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2605 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2607 break 2 2608 fi 2609done 2610 done 2611IFS=$as_save_IFS 2612 2613fi 2614fi 2615CC=$ac_cv_prog_CC 2616if test -n "$CC"; then 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2618$as_echo "$CC" >&6; } 2619else 2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2621$as_echo "no" >&6; } 2622fi 2623 2624 2625fi 2626if test -z "$ac_cv_prog_CC"; then 2627 ac_ct_CC=$CC 2628 # Extract the first word of "gcc", so it can be a program name with args. 2629set dummy gcc; ac_word=$2 2630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2631$as_echo_n "checking for $ac_word... " >&6; } 2632if ${ac_cv_prog_ac_ct_CC+:} false; then : 2633 $as_echo_n "(cached) " >&6 2634else 2635 if test -n "$ac_ct_CC"; then 2636 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2637else 2638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2639for as_dir in $PATH 2640do 2641 IFS=$as_save_IFS 2642 test -z "$as_dir" && as_dir=. 2643 for ac_exec_ext in '' $ac_executable_extensions; do 2644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2645 ac_cv_prog_ac_ct_CC="gcc" 2646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2647 break 2 2648 fi 2649done 2650 done 2651IFS=$as_save_IFS 2652 2653fi 2654fi 2655ac_ct_CC=$ac_cv_prog_ac_ct_CC 2656if test -n "$ac_ct_CC"; then 2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2658$as_echo "$ac_ct_CC" >&6; } 2659else 2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2661$as_echo "no" >&6; } 2662fi 2663 2664 if test "x$ac_ct_CC" = x; then 2665 CC="" 2666 else 2667 case $cross_compiling:$ac_tool_warned in 2668yes:) 2669{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2670$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2671ac_tool_warned=yes ;; 2672esac 2673 CC=$ac_ct_CC 2674 fi 2675else 2676 CC="$ac_cv_prog_CC" 2677fi 2678 2679if test -z "$CC"; then 2680 if test -n "$ac_tool_prefix"; then 2681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2682set dummy ${ac_tool_prefix}cc; ac_word=$2 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2684$as_echo_n "checking for $ac_word... " >&6; } 2685if ${ac_cv_prog_CC+:} false; then : 2686 $as_echo_n "(cached) " >&6 2687else 2688 if test -n "$CC"; then 2689 ac_cv_prog_CC="$CC" # Let the user override the test. 2690else 2691as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2692for as_dir in $PATH 2693do 2694 IFS=$as_save_IFS 2695 test -z "$as_dir" && as_dir=. 2696 for ac_exec_ext in '' $ac_executable_extensions; do 2697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2698 ac_cv_prog_CC="${ac_tool_prefix}cc" 2699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2700 break 2 2701 fi 2702done 2703 done 2704IFS=$as_save_IFS 2705 2706fi 2707fi 2708CC=$ac_cv_prog_CC 2709if test -n "$CC"; then 2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2711$as_echo "$CC" >&6; } 2712else 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2714$as_echo "no" >&6; } 2715fi 2716 2717 2718 fi 2719fi 2720if test -z "$CC"; then 2721 # Extract the first word of "cc", so it can be a program name with args. 2722set dummy cc; ac_word=$2 2723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2724$as_echo_n "checking for $ac_word... " >&6; } 2725if ${ac_cv_prog_CC+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727else 2728 if test -n "$CC"; then 2729 ac_cv_prog_CC="$CC" # Let the user override the test. 2730else 2731 ac_prog_rejected=no 2732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2733for as_dir in $PATH 2734do 2735 IFS=$as_save_IFS 2736 test -z "$as_dir" && as_dir=. 2737 for ac_exec_ext in '' $ac_executable_extensions; do 2738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2740 ac_prog_rejected=yes 2741 continue 2742 fi 2743 ac_cv_prog_CC="cc" 2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2745 break 2 2746 fi 2747done 2748 done 2749IFS=$as_save_IFS 2750 2751if test $ac_prog_rejected = yes; then 2752 # We found a bogon in the path, so make sure we never use it. 2753 set dummy $ac_cv_prog_CC 2754 shift 2755 if test $# != 0; then 2756 # We chose a different compiler from the bogus one. 2757 # However, it has the same basename, so the bogon will be chosen 2758 # first if we set CC to just the basename; use the full file name. 2759 shift 2760 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2761 fi 2762fi 2763fi 2764fi 2765CC=$ac_cv_prog_CC 2766if test -n "$CC"; then 2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2768$as_echo "$CC" >&6; } 2769else 2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2771$as_echo "no" >&6; } 2772fi 2773 2774 2775fi 2776if test -z "$CC"; then 2777 if test -n "$ac_tool_prefix"; then 2778 for ac_prog in cl.exe 2779 do 2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2781set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2783$as_echo_n "checking for $ac_word... " >&6; } 2784if ${ac_cv_prog_CC+:} false; then : 2785 $as_echo_n "(cached) " >&6 2786else 2787 if test -n "$CC"; then 2788 ac_cv_prog_CC="$CC" # Let the user override the test. 2789else 2790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2791for as_dir in $PATH 2792do 2793 IFS=$as_save_IFS 2794 test -z "$as_dir" && as_dir=. 2795 for ac_exec_ext in '' $ac_executable_extensions; do 2796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2797 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2799 break 2 2800 fi 2801done 2802 done 2803IFS=$as_save_IFS 2804 2805fi 2806fi 2807CC=$ac_cv_prog_CC 2808if test -n "$CC"; then 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2810$as_echo "$CC" >&6; } 2811else 2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2813$as_echo "no" >&6; } 2814fi 2815 2816 2817 test -n "$CC" && break 2818 done 2819fi 2820if test -z "$CC"; then 2821 ac_ct_CC=$CC 2822 for ac_prog in cl.exe 2823do 2824 # Extract the first word of "$ac_prog", so it can be a program name with args. 2825set dummy $ac_prog; ac_word=$2 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2827$as_echo_n "checking for $ac_word... " >&6; } 2828if ${ac_cv_prog_ac_ct_CC+:} false; then : 2829 $as_echo_n "(cached) " >&6 2830else 2831 if test -n "$ac_ct_CC"; then 2832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2833else 2834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2835for as_dir in $PATH 2836do 2837 IFS=$as_save_IFS 2838 test -z "$as_dir" && as_dir=. 2839 for ac_exec_ext in '' $ac_executable_extensions; do 2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2841 ac_cv_prog_ac_ct_CC="$ac_prog" 2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2843 break 2 2844 fi 2845done 2846 done 2847IFS=$as_save_IFS 2848 2849fi 2850fi 2851ac_ct_CC=$ac_cv_prog_ac_ct_CC 2852if test -n "$ac_ct_CC"; then 2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2854$as_echo "$ac_ct_CC" >&6; } 2855else 2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2857$as_echo "no" >&6; } 2858fi 2859 2860 2861 test -n "$ac_ct_CC" && break 2862done 2863 2864 if test "x$ac_ct_CC" = x; then 2865 CC="" 2866 else 2867 case $cross_compiling:$ac_tool_warned in 2868yes:) 2869{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2870$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2871ac_tool_warned=yes ;; 2872esac 2873 CC=$ac_ct_CC 2874 fi 2875fi 2876 2877fi 2878 2879 2880test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2881$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2882as_fn_error $? "no acceptable C compiler found in \$PATH 2883See \`config.log' for more details" "$LINENO" 5; } 2884 2885# Provide some information about the compiler. 2886$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2887set X $ac_compile 2888ac_compiler=$2 2889for ac_option in --version -v -V -qversion; do 2890 { { ac_try="$ac_compiler $ac_option >&5" 2891case "(($ac_try" in 2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2893 *) ac_try_echo=$ac_try;; 2894esac 2895eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2896$as_echo "$ac_try_echo"; } >&5 2897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2898 ac_status=$? 2899 if test -s conftest.err; then 2900 sed '10a\ 2901... rest of stderr output deleted ... 2902 10q' conftest.err >conftest.er1 2903 cat conftest.er1 >&5 2904 fi 2905 rm -f conftest.er1 conftest.err 2906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2907 test $ac_status = 0; } 2908done 2909 2910cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2911/* end confdefs.h. */ 2912 2913int 2914main () 2915{ 2916 2917 ; 2918 return 0; 2919} 2920_ACEOF 2921ac_clean_files_save=$ac_clean_files 2922ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2923# Try to create an executable without -o first, disregard a.out. 2924# It will help us diagnose broken compilers, and finding out an intuition 2925# of exeext. 2926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2927$as_echo_n "checking whether the C compiler works... " >&6; } 2928ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2929 2930# The possible output files: 2931ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2932 2933ac_rmfiles= 2934for ac_file in $ac_files 2935do 2936 case $ac_file in 2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2938 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2939 esac 2940done 2941rm -f $ac_rmfiles 2942 2943if { { ac_try="$ac_link_default" 2944case "(($ac_try" in 2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2946 *) ac_try_echo=$ac_try;; 2947esac 2948eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2949$as_echo "$ac_try_echo"; } >&5 2950 (eval "$ac_link_default") 2>&5 2951 ac_status=$? 2952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2953 test $ac_status = 0; }; then : 2954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2955# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2956# in a Makefile. We should not override ac_cv_exeext if it was cached, 2957# so that the user can short-circuit this test for compilers unknown to 2958# Autoconf. 2959for ac_file in $ac_files '' 2960do 2961 test -f "$ac_file" || continue 2962 case $ac_file in 2963 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2964 ;; 2965 [ab].out ) 2966 # We found the default executable, but exeext='' is most 2967 # certainly right. 2968 break;; 2969 *.* ) 2970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2971 then :; else 2972 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2973 fi 2974 # We set ac_cv_exeext here because the later test for it is not 2975 # safe: cross compilers may not add the suffix if given an `-o' 2976 # argument, so we may need to know it at that point already. 2977 # Even if this section looks crufty: it has the advantage of 2978 # actually working. 2979 break;; 2980 * ) 2981 break;; 2982 esac 2983done 2984test "$ac_cv_exeext" = no && ac_cv_exeext= 2985 2986else 2987 ac_file='' 2988fi 2989if test -z "$ac_file"; then : 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2991$as_echo "no" >&6; } 2992$as_echo "$as_me: failed program was:" >&5 2993sed 's/^/| /' conftest.$ac_ext >&5 2994 2995{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2997as_fn_error 77 "C compiler cannot create executables 2998See \`config.log' for more details" "$LINENO" 5; } 2999else 3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3001$as_echo "yes" >&6; } 3002fi 3003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3004$as_echo_n "checking for C compiler default output file name... " >&6; } 3005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3006$as_echo "$ac_file" >&6; } 3007ac_exeext=$ac_cv_exeext 3008 3009rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3010ac_clean_files=$ac_clean_files_save 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3012$as_echo_n "checking for suffix of executables... " >&6; } 3013if { { ac_try="$ac_link" 3014case "(($ac_try" in 3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3016 *) ac_try_echo=$ac_try;; 3017esac 3018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3019$as_echo "$ac_try_echo"; } >&5 3020 (eval "$ac_link") 2>&5 3021 ac_status=$? 3022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3023 test $ac_status = 0; }; then : 3024 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3025# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3026# work properly (i.e., refer to `conftest.exe'), while it won't with 3027# `rm'. 3028for ac_file in conftest.exe conftest conftest.*; do 3029 test -f "$ac_file" || continue 3030 case $ac_file in 3031 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3032 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3033 break;; 3034 * ) break;; 3035 esac 3036done 3037else 3038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3040as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3041See \`config.log' for more details" "$LINENO" 5; } 3042fi 3043rm -f conftest conftest$ac_cv_exeext 3044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3045$as_echo "$ac_cv_exeext" >&6; } 3046 3047rm -f conftest.$ac_ext 3048EXEEXT=$ac_cv_exeext 3049ac_exeext=$EXEEXT 3050cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3051/* end confdefs.h. */ 3052#include <stdio.h> 3053int 3054main () 3055{ 3056FILE *f = fopen ("conftest.out", "w"); 3057 return ferror (f) || fclose (f) != 0; 3058 3059 ; 3060 return 0; 3061} 3062_ACEOF 3063ac_clean_files="$ac_clean_files conftest.out" 3064# Check that the compiler produces executables we can run. If not, either 3065# the compiler is broken, or we cross compile. 3066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3067$as_echo_n "checking whether we are cross compiling... " >&6; } 3068if test "$cross_compiling" != yes; then 3069 { { ac_try="$ac_link" 3070case "(($ac_try" in 3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3072 *) ac_try_echo=$ac_try;; 3073esac 3074eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3075$as_echo "$ac_try_echo"; } >&5 3076 (eval "$ac_link") 2>&5 3077 ac_status=$? 3078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3079 test $ac_status = 0; } 3080 if { ac_try='./conftest$ac_cv_exeext' 3081 { { case "(($ac_try" in 3082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3083 *) ac_try_echo=$ac_try;; 3084esac 3085eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3086$as_echo "$ac_try_echo"; } >&5 3087 (eval "$ac_try") 2>&5 3088 ac_status=$? 3089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3090 test $ac_status = 0; }; }; then 3091 cross_compiling=no 3092 else 3093 if test "$cross_compiling" = maybe; then 3094 cross_compiling=yes 3095 else 3096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3098as_fn_error $? "cannot run C compiled programs. 3099If you meant to cross compile, use \`--host'. 3100See \`config.log' for more details" "$LINENO" 5; } 3101 fi 3102 fi 3103fi 3104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3105$as_echo "$cross_compiling" >&6; } 3106 3107rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3108ac_clean_files=$ac_clean_files_save 3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3110$as_echo_n "checking for suffix of object files... " >&6; } 3111if ${ac_cv_objext+:} false; then : 3112 $as_echo_n "(cached) " >&6 3113else 3114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3115/* end confdefs.h. */ 3116 3117int 3118main () 3119{ 3120 3121 ; 3122 return 0; 3123} 3124_ACEOF 3125rm -f conftest.o conftest.obj 3126if { { ac_try="$ac_compile" 3127case "(($ac_try" in 3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3129 *) ac_try_echo=$ac_try;; 3130esac 3131eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3132$as_echo "$ac_try_echo"; } >&5 3133 (eval "$ac_compile") 2>&5 3134 ac_status=$? 3135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3136 test $ac_status = 0; }; then : 3137 for ac_file in conftest.o conftest.obj conftest.*; do 3138 test -f "$ac_file" || continue; 3139 case $ac_file in 3140 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3141 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3142 break;; 3143 esac 3144done 3145else 3146 $as_echo "$as_me: failed program was:" >&5 3147sed 's/^/| /' conftest.$ac_ext >&5 3148 3149{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3150$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3151as_fn_error $? "cannot compute suffix of object files: cannot compile 3152See \`config.log' for more details" "$LINENO" 5; } 3153fi 3154rm -f conftest.$ac_cv_objext conftest.$ac_ext 3155fi 3156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3157$as_echo "$ac_cv_objext" >&6; } 3158OBJEXT=$ac_cv_objext 3159ac_objext=$OBJEXT 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3161$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3162if ${ac_cv_c_compiler_gnu+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3166/* end confdefs.h. */ 3167 3168int 3169main () 3170{ 3171#ifndef __GNUC__ 3172 choke me 3173#endif 3174 3175 ; 3176 return 0; 3177} 3178_ACEOF 3179if ac_fn_c_try_compile "$LINENO"; then : 3180 ac_compiler_gnu=yes 3181else 3182 ac_compiler_gnu=no 3183fi 3184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3185ac_cv_c_compiler_gnu=$ac_compiler_gnu 3186 3187fi 3188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3189$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3190if test $ac_compiler_gnu = yes; then 3191 GCC=yes 3192else 3193 GCC= 3194fi 3195ac_test_CFLAGS=${CFLAGS+set} 3196ac_save_CFLAGS=$CFLAGS 3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3198$as_echo_n "checking whether $CC accepts -g... " >&6; } 3199if ${ac_cv_prog_cc_g+:} false; then : 3200 $as_echo_n "(cached) " >&6 3201else 3202 ac_save_c_werror_flag=$ac_c_werror_flag 3203 ac_c_werror_flag=yes 3204 ac_cv_prog_cc_g=no 3205 CFLAGS="-g" 3206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3207/* end confdefs.h. */ 3208 3209int 3210main () 3211{ 3212 3213 ; 3214 return 0; 3215} 3216_ACEOF 3217if ac_fn_c_try_compile "$LINENO"; then : 3218 ac_cv_prog_cc_g=yes 3219else 3220 CFLAGS="" 3221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3222/* end confdefs.h. */ 3223 3224int 3225main () 3226{ 3227 3228 ; 3229 return 0; 3230} 3231_ACEOF 3232if ac_fn_c_try_compile "$LINENO"; then : 3233 3234else 3235 ac_c_werror_flag=$ac_save_c_werror_flag 3236 CFLAGS="-g" 3237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3238/* end confdefs.h. */ 3239 3240int 3241main () 3242{ 3243 3244 ; 3245 return 0; 3246} 3247_ACEOF 3248if ac_fn_c_try_compile "$LINENO"; then : 3249 ac_cv_prog_cc_g=yes 3250fi 3251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3252fi 3253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3254fi 3255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3256 ac_c_werror_flag=$ac_save_c_werror_flag 3257fi 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3259$as_echo "$ac_cv_prog_cc_g" >&6; } 3260if test "$ac_test_CFLAGS" = set; then 3261 CFLAGS=$ac_save_CFLAGS 3262elif test $ac_cv_prog_cc_g = yes; then 3263 if test "$GCC" = yes; then 3264 CFLAGS="-g -O2" 3265 else 3266 CFLAGS="-g" 3267 fi 3268else 3269 if test "$GCC" = yes; then 3270 CFLAGS="-O2" 3271 else 3272 CFLAGS= 3273 fi 3274fi 3275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3276$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3277if ${ac_cv_prog_cc_c89+:} false; then : 3278 $as_echo_n "(cached) " >&6 3279else 3280 ac_cv_prog_cc_c89=no 3281ac_save_CC=$CC 3282cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3283/* end confdefs.h. */ 3284#include <stdarg.h> 3285#include <stdio.h> 3286struct stat; 3287/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3288struct buf { int x; }; 3289FILE * (*rcsopen) (struct buf *, struct stat *, int); 3290static char *e (p, i) 3291 char **p; 3292 int i; 3293{ 3294 return p[i]; 3295} 3296static char *f (char * (*g) (char **, int), char **p, ...) 3297{ 3298 char *s; 3299 va_list v; 3300 va_start (v,p); 3301 s = g (p, va_arg (v,int)); 3302 va_end (v); 3303 return s; 3304} 3305 3306/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3307 function prototypes and stuff, but not '\xHH' hex character constants. 3308 These don't provoke an error unfortunately, instead are silently treated 3309 as 'x'. The following induces an error, until -std is added to get 3310 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3311 array size at least. It's necessary to write '\x00'==0 to get something 3312 that's true only with -std. */ 3313int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3314 3315/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3316 inside strings and character constants. */ 3317#define FOO(x) 'x' 3318int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3319 3320int test (int i, double x); 3321struct s1 {int (*f) (int a);}; 3322struct s2 {int (*f) (double a);}; 3323int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3324int argc; 3325char **argv; 3326int 3327main () 3328{ 3329return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3330 ; 3331 return 0; 3332} 3333_ACEOF 3334for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3335 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3336do 3337 CC="$ac_save_CC $ac_arg" 3338 if ac_fn_c_try_compile "$LINENO"; then : 3339 ac_cv_prog_cc_c89=$ac_arg 3340fi 3341rm -f core conftest.err conftest.$ac_objext 3342 test "x$ac_cv_prog_cc_c89" != "xno" && break 3343done 3344rm -f conftest.$ac_ext 3345CC=$ac_save_CC 3346 3347fi 3348# AC_CACHE_VAL 3349case "x$ac_cv_prog_cc_c89" in 3350 x) 3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3352$as_echo "none needed" >&6; } ;; 3353 xno) 3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3355$as_echo "unsupported" >&6; } ;; 3356 *) 3357 CC="$CC $ac_cv_prog_cc_c89" 3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3359$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3360esac 3361if test "x$ac_cv_prog_cc_c89" != xno; then : 3362 3363fi 3364 3365ac_ext=c 3366ac_cpp='$CPP $CPPFLAGS' 3367ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3368ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3369ac_compiler_gnu=$ac_cv_c_compiler_gnu 3370 3371 3372############################################################################### 3373# 3374# Query AX_PTHREAD, and figure out which compiler gets used. 3375# 3376############################################################################### 3377 3378 3379 3380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3381$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3382if ${ac_cv_path_SED+:} false; then : 3383 $as_echo_n "(cached) " >&6 3384else 3385 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3386 for ac_i in 1 2 3 4 5 6 7; do 3387 ac_script="$ac_script$as_nl$ac_script" 3388 done 3389 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3390 { ac_script=; unset ac_script;} 3391 if test -z "$SED"; then 3392 ac_path_SED_found=false 3393 # Loop through the user's path and test for each of PROGNAME-LIST 3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3395for as_dir in $PATH 3396do 3397 IFS=$as_save_IFS 3398 test -z "$as_dir" && as_dir=. 3399 for ac_prog in sed gsed; do 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3402 as_fn_executable_p "$ac_path_SED" || continue 3403# Check for GNU ac_path_SED and select it if it is found. 3404 # Check for GNU $ac_path_SED 3405case `"$ac_path_SED" --version 2>&1` in 3406*GNU*) 3407 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3408*) 3409 ac_count=0 3410 $as_echo_n 0123456789 >"conftest.in" 3411 while : 3412 do 3413 cat "conftest.in" "conftest.in" >"conftest.tmp" 3414 mv "conftest.tmp" "conftest.in" 3415 cp "conftest.in" "conftest.nl" 3416 $as_echo '' >> "conftest.nl" 3417 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3418 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3419 as_fn_arith $ac_count + 1 && ac_count=$as_val 3420 if test $ac_count -gt ${ac_path_SED_max-0}; then 3421 # Best one so far, save it but keep looking for a better one 3422 ac_cv_path_SED="$ac_path_SED" 3423 ac_path_SED_max=$ac_count 3424 fi 3425 # 10*(2^10) chars as input seems more than enough 3426 test $ac_count -gt 10 && break 3427 done 3428 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3429esac 3430 3431 $ac_path_SED_found && break 3 3432 done 3433 done 3434 done 3435IFS=$as_save_IFS 3436 if test -z "$ac_cv_path_SED"; then 3437 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3438 fi 3439else 3440 ac_cv_path_SED=$SED 3441fi 3442 3443fi 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3445$as_echo "$ac_cv_path_SED" >&6; } 3446 SED="$ac_cv_path_SED" 3447 rm -f conftest.sed 3448 3449 3450ac_ext=c 3451ac_cpp='$CPP $CPPFLAGS' 3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3454ac_compiler_gnu=$ac_cv_c_compiler_gnu 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3456$as_echo_n "checking how to run the C preprocessor... " >&6; } 3457# On Suns, sometimes $CPP names a directory. 3458if test -n "$CPP" && test -d "$CPP"; then 3459 CPP= 3460fi 3461if test -z "$CPP"; then 3462 if ${ac_cv_prog_CPP+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 # Double quotes because CPP needs to be expanded 3466 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3467 do 3468 ac_preproc_ok=false 3469for ac_c_preproc_warn_flag in '' yes 3470do 3471 # Use a header file that comes with gcc, so configuring glibc 3472 # with a fresh cross-compiler works. 3473 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3474 # <limits.h> exists even on freestanding compilers. 3475 # On the NeXT, cc -E runs the code through the compiler's parser, 3476 # not just through cpp. "Syntax error" is here to catch this case. 3477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3478/* end confdefs.h. */ 3479#ifdef __STDC__ 3480# include <limits.h> 3481#else 3482# include <assert.h> 3483#endif 3484 Syntax error 3485_ACEOF 3486if ac_fn_c_try_cpp "$LINENO"; then : 3487 3488else 3489 # Broken: fails on valid input. 3490continue 3491fi 3492rm -f conftest.err conftest.i conftest.$ac_ext 3493 3494 # OK, works on sane cases. Now check whether nonexistent headers 3495 # can be detected and how. 3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3497/* end confdefs.h. */ 3498#include <ac_nonexistent.h> 3499_ACEOF 3500if ac_fn_c_try_cpp "$LINENO"; then : 3501 # Broken: success on invalid input. 3502continue 3503else 3504 # Passes both tests. 3505ac_preproc_ok=: 3506break 3507fi 3508rm -f conftest.err conftest.i conftest.$ac_ext 3509 3510done 3511# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3512rm -f conftest.i conftest.err conftest.$ac_ext 3513if $ac_preproc_ok; then : 3514 break 3515fi 3516 3517 done 3518 ac_cv_prog_CPP=$CPP 3519 3520fi 3521 CPP=$ac_cv_prog_CPP 3522else 3523 ac_cv_prog_CPP=$CPP 3524fi 3525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3526$as_echo "$CPP" >&6; } 3527ac_preproc_ok=false 3528for ac_c_preproc_warn_flag in '' yes 3529do 3530 # Use a header file that comes with gcc, so configuring glibc 3531 # with a fresh cross-compiler works. 3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3533 # <limits.h> exists even on freestanding compilers. 3534 # On the NeXT, cc -E runs the code through the compiler's parser, 3535 # not just through cpp. "Syntax error" is here to catch this case. 3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3537/* end confdefs.h. */ 3538#ifdef __STDC__ 3539# include <limits.h> 3540#else 3541# include <assert.h> 3542#endif 3543 Syntax error 3544_ACEOF 3545if ac_fn_c_try_cpp "$LINENO"; then : 3546 3547else 3548 # Broken: fails on valid input. 3549continue 3550fi 3551rm -f conftest.err conftest.i conftest.$ac_ext 3552 3553 # OK, works on sane cases. Now check whether nonexistent headers 3554 # can be detected and how. 3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3556/* end confdefs.h. */ 3557#include <ac_nonexistent.h> 3558_ACEOF 3559if ac_fn_c_try_cpp "$LINENO"; then : 3560 # Broken: success on invalid input. 3561continue 3562else 3563 # Passes both tests. 3564ac_preproc_ok=: 3565break 3566fi 3567rm -f conftest.err conftest.i conftest.$ac_ext 3568 3569done 3570# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3571rm -f conftest.i conftest.err conftest.$ac_ext 3572if $ac_preproc_ok; then : 3573 3574else 3575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3577as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3578See \`config.log' for more details" "$LINENO" 5; } 3579fi 3580 3581ac_ext=c 3582ac_cpp='$CPP $CPPFLAGS' 3583ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3584ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3585ac_compiler_gnu=$ac_cv_c_compiler_gnu 3586 3587 3588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3589$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3590if ${ac_cv_path_GREP+:} false; then : 3591 $as_echo_n "(cached) " >&6 3592else 3593 if test -z "$GREP"; then 3594 ac_path_GREP_found=false 3595 # Loop through the user's path and test for each of PROGNAME-LIST 3596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3597for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3598do 3599 IFS=$as_save_IFS 3600 test -z "$as_dir" && as_dir=. 3601 for ac_prog in grep ggrep; do 3602 for ac_exec_ext in '' $ac_executable_extensions; do 3603 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3604 as_fn_executable_p "$ac_path_GREP" || continue 3605# Check for GNU ac_path_GREP and select it if it is found. 3606 # Check for GNU $ac_path_GREP 3607case `"$ac_path_GREP" --version 2>&1` in 3608*GNU*) 3609 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3610*) 3611 ac_count=0 3612 $as_echo_n 0123456789 >"conftest.in" 3613 while : 3614 do 3615 cat "conftest.in" "conftest.in" >"conftest.tmp" 3616 mv "conftest.tmp" "conftest.in" 3617 cp "conftest.in" "conftest.nl" 3618 $as_echo 'GREP' >> "conftest.nl" 3619 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3620 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3621 as_fn_arith $ac_count + 1 && ac_count=$as_val 3622 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3623 # Best one so far, save it but keep looking for a better one 3624 ac_cv_path_GREP="$ac_path_GREP" 3625 ac_path_GREP_max=$ac_count 3626 fi 3627 # 10*(2^10) chars as input seems more than enough 3628 test $ac_count -gt 10 && break 3629 done 3630 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3631esac 3632 3633 $ac_path_GREP_found && break 3 3634 done 3635 done 3636 done 3637IFS=$as_save_IFS 3638 if test -z "$ac_cv_path_GREP"; then 3639 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3640 fi 3641else 3642 ac_cv_path_GREP=$GREP 3643fi 3644 3645fi 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3647$as_echo "$ac_cv_path_GREP" >&6; } 3648 GREP="$ac_cv_path_GREP" 3649 3650 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3652$as_echo_n "checking for egrep... " >&6; } 3653if ${ac_cv_path_EGREP+:} false; then : 3654 $as_echo_n "(cached) " >&6 3655else 3656 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3657 then ac_cv_path_EGREP="$GREP -E" 3658 else 3659 if test -z "$EGREP"; then 3660 ac_path_EGREP_found=false 3661 # Loop through the user's path and test for each of PROGNAME-LIST 3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3663for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3664do 3665 IFS=$as_save_IFS 3666 test -z "$as_dir" && as_dir=. 3667 for ac_prog in egrep; do 3668 for ac_exec_ext in '' $ac_executable_extensions; do 3669 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3670 as_fn_executable_p "$ac_path_EGREP" || continue 3671# Check for GNU ac_path_EGREP and select it if it is found. 3672 # Check for GNU $ac_path_EGREP 3673case `"$ac_path_EGREP" --version 2>&1` in 3674*GNU*) 3675 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3676*) 3677 ac_count=0 3678 $as_echo_n 0123456789 >"conftest.in" 3679 while : 3680 do 3681 cat "conftest.in" "conftest.in" >"conftest.tmp" 3682 mv "conftest.tmp" "conftest.in" 3683 cp "conftest.in" "conftest.nl" 3684 $as_echo 'EGREP' >> "conftest.nl" 3685 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3686 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3687 as_fn_arith $ac_count + 1 && ac_count=$as_val 3688 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3689 # Best one so far, save it but keep looking for a better one 3690 ac_cv_path_EGREP="$ac_path_EGREP" 3691 ac_path_EGREP_max=$ac_count 3692 fi 3693 # 10*(2^10) chars as input seems more than enough 3694 test $ac_count -gt 10 && break 3695 done 3696 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3697esac 3698 3699 $ac_path_EGREP_found && break 3 3700 done 3701 done 3702 done 3703IFS=$as_save_IFS 3704 if test -z "$ac_cv_path_EGREP"; then 3705 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3706 fi 3707else 3708 ac_cv_path_EGREP=$EGREP 3709fi 3710 3711 fi 3712fi 3713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3714$as_echo "$ac_cv_path_EGREP" >&6; } 3715 EGREP="$ac_cv_path_EGREP" 3716 3717 3718have_pthread=no 3719 with_pthread_req=unspecified 3720 3721 # AX_PTHREAD is from the GNU Autoconf Archive. 3722 # https://savannah.gnu.org/projects/autoconf-archive/ 3723 # =========================================================================== 3724# https://www.gnu.org/software/autoconf-archive/ax_pthread.html 3725# =========================================================================== 3726# 3727# SYNOPSIS 3728# 3729# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]]) 3730# 3731# DESCRIPTION 3732# 3733# This macro figures out how to build C programs using POSIX threads. It 3734# sets the PTHREAD_LIBS output variable to the threads library and linker 3735# flags, and the PTHREAD_CFLAGS output variable to any special C compiler 3736# flags that are needed. (The user can also force certain compiler 3737# flags/libs to be tested by setting these environment variables.) 3738# 3739# Also sets PTHREAD_CC to any special C compiler that is needed for 3740# multi-threaded programs (defaults to the value of CC otherwise). (This 3741# is necessary on AIX to use the special cc_r compiler alias.) 3742# 3743# NOTE: You are assumed to not only compile your program with these flags, 3744# but also to link with them as well. For example, you might link with 3745# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS 3746# 3747# If you are only building threaded programs, you may wish to use these 3748# variables in your default LIBS, CFLAGS, and CC: 3749# 3750# LIBS="$PTHREAD_LIBS $LIBS" 3751# CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 3752# CC="$PTHREAD_CC" 3753# 3754# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant 3755# has a nonstandard name, this macro defines PTHREAD_CREATE_JOINABLE to 3756# that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX). 3757# 3758# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the 3759# PTHREAD_PRIO_INHERIT symbol is defined when compiling with 3760# PTHREAD_CFLAGS. 3761# 3762# ACTION-IF-FOUND is a list of shell commands to run if a threads library 3763# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it 3764# is not found. If ACTION-IF-FOUND is not specified, the default action 3765# will define HAVE_PTHREAD. 3766# 3767# Please let the authors know if this macro fails on any platform, or if 3768# you have any other suggestions or comments. This macro was based on work 3769# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help 3770# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by 3771# Alejandro Forero Cuervo to the autoconf macro repository. We are also 3772# grateful for the helpful feedback of numerous users. 3773# 3774# Updated for Autoconf 2.68 by Daniel Richard G. 3775# 3776# LICENSE 3777# 3778# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu> 3779# Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG> 3780# 3781# This program is free software: you can redistribute it and/or modify it 3782# under the terms of the GNU General Public License as published by the 3783# Free Software Foundation, either version 3 of the License, or (at your 3784# option) any later version. 3785# 3786# This program is distributed in the hope that it will be useful, but 3787# WITHOUT ANY WARRANTY; without even the implied warranty of 3788# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 3789# Public License for more details. 3790# 3791# You should have received a copy of the GNU General Public License along 3792# with this program. If not, see <https://www.gnu.org/licenses/>. 3793# 3794# As a special exception, the respective Autoconf Macro's copyright owner 3795# gives unlimited permission to copy, distribute and modify the configure 3796# scripts that are the output of Autoconf when processing the Macro. You 3797# need not follow the terms of the GNU General Public License when using 3798# or distributing such scripts, even though portions of the text of the 3799# Macro appear in them. The GNU General Public License (GPL) does govern 3800# all other use of the material that constitutes the Autoconf Macro. 3801# 3802# This special exception to the GPL applies to versions of the Autoconf 3803# Macro released by the Autoconf Archive. When you make and distribute a 3804# modified version of the Autoconf Macro, you may extend this special 3805# exception to the GPL to apply to your modified version as well. 3806 3807#serial 24 3808 3809# This is what autoupdate's m4 run will expand. It fires 3810# the warning (with _au_warn_XXX), outputs it into the 3811# updated configure.ac (with AC_DIAGNOSE), and then outputs 3812# the replacement expansion. 3813 3814 3815# This is an auxiliary macro that is also run when 3816# autoupdate runs m4. It simply calls m4_warning, but 3817# we need a wrapper so that each warning is emitted only 3818# once. We break the quoting in m4_warning's argument in 3819# order to expand this macro's arguments, not AU_DEFUN's. 3820 3821 3822# Finally, this is the expansion that is picked up by 3823# autoconf. It tells the user to run autoupdate, and 3824# then outputs the replacement expansion. We do not care 3825# about autoupdate's warning because that contains 3826# information on what to do *after* running autoupdate. 3827 3828 3829 3830 # This affects CC, LIBS, and CFLAGS, instead of defining new variables. 3831 3832 3833# Check whether --with-pthread was given. 3834if test "${with_pthread+set}" = set; then : 3835 withval=$with_pthread; with_pthread="$withval"; with_pthread_req="$withval" 3836else 3837 with_pthread=yes 3838fi 3839 3840 3841 if test "$with_pthread" = yes; then 3842 # AX_PTHREAD might want a different compiler. 3843 3844 3845 3846 3847ac_ext=c 3848ac_cpp='$CPP $CPPFLAGS' 3849ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3850ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3851ac_compiler_gnu=$ac_cv_c_compiler_gnu 3852 3853ax_pthread_ok=no 3854 3855# We used to check for pthread.h first, but this fails if pthread.h 3856# requires special compiler flags (e.g. on Tru64 or Sequent). 3857# It gets checked for in the link test anyway. 3858 3859# First of all, check if the user has set any of the PTHREAD_LIBS, 3860# etcetera environment variables, and if threads linking works using 3861# them: 3862if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then 3863 ax_pthread_save_CC="$CC" 3864 ax_pthread_save_CFLAGS="$CFLAGS" 3865 ax_pthread_save_LIBS="$LIBS" 3866 if test "x$PTHREAD_CC" != "x"; then : 3867 CC="$PTHREAD_CC" 3868fi 3869 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 3870 LIBS="$PTHREAD_LIBS $LIBS" 3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5 3872$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; } 3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3874/* end confdefs.h. */ 3875 3876/* Override any GCC internal prototype to avoid an error. 3877 Use char because int might match the return type of a GCC 3878 builtin and then its argument prototype would still apply. */ 3879#ifdef __cplusplus 3880extern "C" 3881#endif 3882char pthread_join (); 3883int 3884main () 3885{ 3886return pthread_join (); 3887 ; 3888 return 0; 3889} 3890_ACEOF 3891if ac_fn_c_try_link "$LINENO"; then : 3892 ax_pthread_ok=yes 3893fi 3894rm -f core conftest.err conftest.$ac_objext \ 3895 conftest$ac_exeext conftest.$ac_ext 3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 3897$as_echo "$ax_pthread_ok" >&6; } 3898 if test "x$ax_pthread_ok" = "xno"; then 3899 PTHREAD_LIBS="" 3900 PTHREAD_CFLAGS="" 3901 fi 3902 CC="$ax_pthread_save_CC" 3903 CFLAGS="$ax_pthread_save_CFLAGS" 3904 LIBS="$ax_pthread_save_LIBS" 3905fi 3906 3907# We must check for the threads library under a number of different 3908# names; the ordering is very important because some systems 3909# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 3910# libraries is broken (non-POSIX). 3911 3912# Create a list of thread flags to try. Items starting with a "-" are 3913# C compiler flags, and other items are library names, except for "none" 3914# which indicates that we try without any flags at all, and "pthread-config" 3915# which is a program returning the flags for the Pth emulation library. 3916 3917ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 3918 3919# The ordering *is* (sometimes) important. Some notes on the 3920# individual items follow: 3921 3922# pthreads: AIX (must check this before -lpthread) 3923# none: in case threads are in libc; should be tried before -Kthread and 3924# other compiler flags to prevent continual compiler warnings 3925# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 3926# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64 3927# (Note: HP C rejects this with "bad form for `-t' option") 3928# -pthreads: Solaris/gcc (Note: HP C also rejects) 3929# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 3930# doesn't hurt to check since this sometimes defines pthreads and 3931# -D_REENTRANT too), HP C (must be checked before -lpthread, which 3932# is present but should not be used directly; and before -mthreads, 3933# because the compiler interprets this as "-mt" + "-hreads") 3934# -mthreads: Mingw32/gcc, Lynx/gcc 3935# pthread: Linux, etcetera 3936# --thread-safe: KAI C++ 3937# pthread-config: use pthread-config program (for GNU Pth library) 3938 3939case $host_os in 3940 3941 freebsd*) 3942 3943 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 3944 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 3945 3946 ax_pthread_flags="-kthread lthread $ax_pthread_flags" 3947 ;; 3948 3949 hpux*) 3950 3951 # From the cc(1) man page: "[-mt] Sets various -D flags to enable 3952 # multi-threading and also sets -lpthread." 3953 3954 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags" 3955 ;; 3956 3957 openedition*) 3958 3959 # IBM z/OS requires a feature-test macro to be defined in order to 3960 # enable POSIX threads at all, so give the user a hint if this is 3961 # not set. (We don't define these ourselves, as they can affect 3962 # other portions of the system API in unpredictable ways.) 3963 3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3965/* end confdefs.h. */ 3966 3967# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS) 3968 AX_PTHREAD_ZOS_MISSING 3969# endif 3970 3971_ACEOF 3972if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3973 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then : 3974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5 3975$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;} 3976fi 3977rm -f conftest* 3978 3979 ;; 3980 3981 solaris*) 3982 3983 # On Solaris (at least, for some versions), libc contains stubbed 3984 # (non-functional) versions of the pthreads routines, so link-based 3985 # tests will erroneously succeed. (N.B.: The stubs are missing 3986 # pthread_cleanup_push, or rather a function called by this macro, 3987 # so we could check for that, but who knows whether they'll stub 3988 # that too in a future libc.) So we'll check first for the 3989 # standard Solaris way of linking pthreads (-mt -lpthread). 3990 3991 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags" 3992 ;; 3993esac 3994 3995# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC) 3996 3997if test "x$GCC" = "xyes"; then : 3998 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags" 3999fi 4000 4001# The presence of a feature test macro requesting re-entrant function 4002# definitions is, on some systems, a strong hint that pthreads support is 4003# correctly enabled 4004 4005case $host_os in 4006 darwin* | hpux* | linux* | osf* | solaris*) 4007 ax_pthread_check_macro="_REENTRANT" 4008 ;; 4009 4010 aix*) 4011 ax_pthread_check_macro="_THREAD_SAFE" 4012 ;; 4013 4014 *) 4015 ax_pthread_check_macro="--" 4016 ;; 4017esac 4018if test "x$ax_pthread_check_macro" = "x--"; then : 4019 ax_pthread_check_cond=0 4020else 4021 ax_pthread_check_cond="!defined($ax_pthread_check_macro)" 4022fi 4023 4024# Are we compiling with Clang? 4025 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5 4027$as_echo_n "checking whether $CC is Clang... " >&6; } 4028if ${ax_cv_PTHREAD_CLANG+:} false; then : 4029 $as_echo_n "(cached) " >&6 4030else 4031 ax_cv_PTHREAD_CLANG=no 4032 # Note that Autoconf sets GCC=yes for Clang as well as GCC 4033 if test "x$GCC" = "xyes"; then 4034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4035/* end confdefs.h. */ 4036/* Note: Clang 2.7 lacks __clang_[a-z]+__ */ 4037# if defined(__clang__) && defined(__llvm__) 4038 AX_PTHREAD_CC_IS_CLANG 4039# endif 4040 4041_ACEOF 4042if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4043 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then : 4044 ax_cv_PTHREAD_CLANG=yes 4045fi 4046rm -f conftest* 4047 4048 fi 4049 4050fi 4051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5 4052$as_echo "$ax_cv_PTHREAD_CLANG" >&6; } 4053ax_pthread_clang="$ax_cv_PTHREAD_CLANG" 4054 4055ax_pthread_clang_warning=no 4056 4057# Clang needs special handling, because older versions handle the -pthread 4058# option in a rather... idiosyncratic way 4059 4060if test "x$ax_pthread_clang" = "xyes"; then 4061 4062 # Clang takes -pthread; it has never supported any other flag 4063 4064 # (Note 1: This will need to be revisited if a system that Clang 4065 # supports has POSIX threads in a separate library. This tends not 4066 # to be the way of modern systems, but it's conceivable.) 4067 4068 # (Note 2: On some systems, notably Darwin, -pthread is not needed 4069 # to get POSIX threads support; the API is always present and 4070 # active. We could reasonably leave PTHREAD_CFLAGS empty. But 4071 # -pthread does define _REENTRANT, and while the Darwin headers 4072 # ignore this macro, third-party headers might not.) 4073 4074 PTHREAD_CFLAGS="-pthread" 4075 PTHREAD_LIBS= 4076 4077 ax_pthread_ok=yes 4078 4079 # However, older versions of Clang make a point of warning the user 4080 # that, in an invocation where only linking and no compilation is 4081 # taking place, the -pthread option has no effect ("argument unused 4082 # during compilation"). They expect -pthread to be passed in only 4083 # when source code is being compiled. 4084 # 4085 # Problem is, this is at odds with the way Automake and most other 4086 # C build frameworks function, which is that the same flags used in 4087 # compilation (CFLAGS) are also used in linking. Many systems 4088 # supported by AX_PTHREAD require exactly this for POSIX threads 4089 # support, and in fact it is often not straightforward to specify a 4090 # flag that is used only in the compilation phase and not in 4091 # linking. Such a scenario is extremely rare in practice. 4092 # 4093 # Even though use of the -pthread flag in linking would only print 4094 # a warning, this can be a nuisance for well-run software projects 4095 # that build with -Werror. So if the active version of Clang has 4096 # this misfeature, we search for an option to squash it. 4097 4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5 4099$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; } 4100if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then : 4101 $as_echo_n "(cached) " >&6 4102else 4103 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown 4104 # Create an alternate version of $ac_link that compiles and 4105 # links in two steps (.c -> .o, .o -> exe) instead of one 4106 # (.c -> exe), because the warning occurs only in the second 4107 # step 4108 ax_pthread_save_ac_link="$ac_link" 4109 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g' 4110 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"` 4111 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)" 4112 ax_pthread_save_CFLAGS="$CFLAGS" 4113 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do 4114 if test "x$ax_pthread_try" = "xunknown"; then : 4115 break 4116fi 4117 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS" 4118 ac_link="$ax_pthread_save_ac_link" 4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4120/* end confdefs.h. */ 4121int main(void){return 0;} 4122_ACEOF 4123if ac_fn_c_try_link "$LINENO"; then : 4124 ac_link="$ax_pthread_2step_ac_link" 4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4126/* end confdefs.h. */ 4127int main(void){return 0;} 4128_ACEOF 4129if ac_fn_c_try_link "$LINENO"; then : 4130 break 4131fi 4132rm -f core conftest.err conftest.$ac_objext \ 4133 conftest$ac_exeext conftest.$ac_ext 4134 4135fi 4136rm -f core conftest.err conftest.$ac_objext \ 4137 conftest$ac_exeext conftest.$ac_ext 4138 done 4139 ac_link="$ax_pthread_save_ac_link" 4140 CFLAGS="$ax_pthread_save_CFLAGS" 4141 if test "x$ax_pthread_try" = "x"; then : 4142 ax_pthread_try=no 4143fi 4144 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try" 4145 4146fi 4147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5 4148$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; } 4149 4150 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in 4151 no | unknown) ;; 4152 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;; 4153 esac 4154 4155fi # $ax_pthread_clang = yes 4156 4157if test "x$ax_pthread_ok" = "xno"; then 4158for ax_pthread_try_flag in $ax_pthread_flags; do 4159 4160 case $ax_pthread_try_flag in 4161 none) 4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 4163$as_echo_n "checking whether pthreads work without any flags... " >&6; } 4164 ;; 4165 4166 -mt,pthread) 4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5 4168$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; } 4169 PTHREAD_CFLAGS="-mt" 4170 PTHREAD_LIBS="-lpthread" 4171 ;; 4172 4173 -*) 4174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5 4175$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; } 4176 PTHREAD_CFLAGS="$ax_pthread_try_flag" 4177 ;; 4178 4179 pthread-config) 4180 # Extract the first word of "pthread-config", so it can be a program name with args. 4181set dummy pthread-config; ac_word=$2 4182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4183$as_echo_n "checking for $ac_word... " >&6; } 4184if ${ac_cv_prog_ax_pthread_config+:} false; then : 4185 $as_echo_n "(cached) " >&6 4186else 4187 if test -n "$ax_pthread_config"; then 4188 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 4189else 4190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4191for as_dir in $PATH 4192do 4193 IFS=$as_save_IFS 4194 test -z "$as_dir" && as_dir=. 4195 for ac_exec_ext in '' $ac_executable_extensions; do 4196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4197 ac_cv_prog_ax_pthread_config="yes" 4198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4199 break 2 4200 fi 4201done 4202 done 4203IFS=$as_save_IFS 4204 4205 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 4206fi 4207fi 4208ax_pthread_config=$ac_cv_prog_ax_pthread_config 4209if test -n "$ax_pthread_config"; then 4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 4211$as_echo "$ax_pthread_config" >&6; } 4212else 4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4214$as_echo "no" >&6; } 4215fi 4216 4217 4218 if test "x$ax_pthread_config" = "xno"; then : 4219 continue 4220fi 4221 PTHREAD_CFLAGS="`pthread-config --cflags`" 4222 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 4223 ;; 4224 4225 *) 4226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5 4227$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; } 4228 PTHREAD_LIBS="-l$ax_pthread_try_flag" 4229 ;; 4230 esac 4231 4232 ax_pthread_save_CFLAGS="$CFLAGS" 4233 ax_pthread_save_LIBS="$LIBS" 4234 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 4235 LIBS="$PTHREAD_LIBS $LIBS" 4236 4237 # Check for various functions. We must include pthread.h, 4238 # since some functions may be macros. (On the Sequent, we 4239 # need a special flag -Kthread to make this header compile.) 4240 # We check for pthread_join because it is in -lpthread on IRIX 4241 # while pthread_create is in libc. We check for pthread_attr_init 4242 # due to DEC craziness with -lpthreads. We check for 4243 # pthread_cleanup_push because it is one of the few pthread 4244 # functions on Solaris that doesn't have a non-functional libc stub. 4245 # We try pthread_create on general principles. 4246 4247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4248/* end confdefs.h. */ 4249#include <pthread.h> 4250# if $ax_pthread_check_cond 4251# error "$ax_pthread_check_macro must be defined" 4252# endif 4253 static void routine(void *a) { a = 0; } 4254 static void *start_routine(void *a) { return a; } 4255int 4256main () 4257{ 4258pthread_t th; pthread_attr_t attr; 4259 pthread_create(&th, 0, start_routine, 0); 4260 pthread_join(th, 0); 4261 pthread_attr_init(&attr); 4262 pthread_cleanup_push(routine, 0); 4263 pthread_cleanup_pop(0) /* ; */ 4264 ; 4265 return 0; 4266} 4267_ACEOF 4268if ac_fn_c_try_link "$LINENO"; then : 4269 ax_pthread_ok=yes 4270fi 4271rm -f core conftest.err conftest.$ac_objext \ 4272 conftest$ac_exeext conftest.$ac_ext 4273 4274 CFLAGS="$ax_pthread_save_CFLAGS" 4275 LIBS="$ax_pthread_save_LIBS" 4276 4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 4278$as_echo "$ax_pthread_ok" >&6; } 4279 if test "x$ax_pthread_ok" = "xyes"; then : 4280 break 4281fi 4282 4283 PTHREAD_LIBS="" 4284 PTHREAD_CFLAGS="" 4285done 4286fi 4287 4288# Various other checks: 4289if test "x$ax_pthread_ok" = "xyes"; then 4290 ax_pthread_save_CFLAGS="$CFLAGS" 4291 ax_pthread_save_LIBS="$LIBS" 4292 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 4293 LIBS="$PTHREAD_LIBS $LIBS" 4294 4295 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 4297$as_echo_n "checking for joinable pthread attribute... " >&6; } 4298if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then : 4299 $as_echo_n "(cached) " >&6 4300else 4301 ax_cv_PTHREAD_JOINABLE_ATTR=unknown 4302 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304/* end confdefs.h. */ 4305#include <pthread.h> 4306int 4307main () 4308{ 4309int attr = $ax_pthread_attr; return attr /* ; */ 4310 ; 4311 return 0; 4312} 4313_ACEOF 4314if ac_fn_c_try_link "$LINENO"; then : 4315 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break 4316fi 4317rm -f core conftest.err conftest.$ac_objext \ 4318 conftest$ac_exeext conftest.$ac_ext 4319 done 4320 4321fi 4322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5 4323$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; } 4324 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \ 4325 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \ 4326 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then : 4327 4328cat >>confdefs.h <<_ACEOF 4329#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR 4330_ACEOF 4331 4332 ax_pthread_joinable_attr_defined=yes 4333 4334fi 4335 4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5 4337$as_echo_n "checking whether more special flags are required for pthreads... " >&6; } 4338if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then : 4339 $as_echo_n "(cached) " >&6 4340else 4341 ax_cv_PTHREAD_SPECIAL_FLAGS=no 4342 case $host_os in 4343 solaris*) 4344 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS" 4345 ;; 4346 esac 4347 4348fi 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5 4350$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; } 4351 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \ 4352 test "x$ax_pthread_special_flags_added" != "xyes"; then : 4353 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS" 4354 ax_pthread_special_flags_added=yes 4355fi 4356 4357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 4358$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 4359if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 4360 $as_echo_n "(cached) " >&6 4361else 4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4363/* end confdefs.h. */ 4364#include <pthread.h> 4365int 4366main () 4367{ 4368int i = PTHREAD_PRIO_INHERIT; 4369 ; 4370 return 0; 4371} 4372_ACEOF 4373if ac_fn_c_try_link "$LINENO"; then : 4374 ax_cv_PTHREAD_PRIO_INHERIT=yes 4375else 4376 ax_cv_PTHREAD_PRIO_INHERIT=no 4377fi 4378rm -f core conftest.err conftest.$ac_objext \ 4379 conftest$ac_exeext conftest.$ac_ext 4380 4381fi 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 4383$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 4384 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \ 4385 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then : 4386 4387$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 4388 4389 ax_pthread_prio_inherit_defined=yes 4390 4391fi 4392 4393 CFLAGS="$ax_pthread_save_CFLAGS" 4394 LIBS="$ax_pthread_save_LIBS" 4395 4396 # More AIX lossage: compile with *_r variant 4397 if test "x$GCC" != "xyes"; then 4398 case $host_os in 4399 aix*) 4400 case "x/$CC" in #( 4401 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 4402 #handle absolute path differently from PATH based program lookup 4403 case "x$CC" in #( 4404 x/*) : 4405 if as_fn_executable_p ${CC}_r; then : 4406 PTHREAD_CC="${CC}_r" 4407fi ;; #( 4408 *) : 4409 for ac_prog in ${CC}_r 4410do 4411 # Extract the first word of "$ac_prog", so it can be a program name with args. 4412set dummy $ac_prog; ac_word=$2 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4414$as_echo_n "checking for $ac_word... " >&6; } 4415if ${ac_cv_prog_PTHREAD_CC+:} false; then : 4416 $as_echo_n "(cached) " >&6 4417else 4418 if test -n "$PTHREAD_CC"; then 4419 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 4420else 4421as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4422for as_dir in $PATH 4423do 4424 IFS=$as_save_IFS 4425 test -z "$as_dir" && as_dir=. 4426 for ac_exec_ext in '' $ac_executable_extensions; do 4427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4428 ac_cv_prog_PTHREAD_CC="$ac_prog" 4429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4430 break 2 4431 fi 4432done 4433 done 4434IFS=$as_save_IFS 4435 4436fi 4437fi 4438PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 4439if test -n "$PTHREAD_CC"; then 4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 4441$as_echo "$PTHREAD_CC" >&6; } 4442else 4443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4444$as_echo "no" >&6; } 4445fi 4446 4447 4448 test -n "$PTHREAD_CC" && break 4449done 4450test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 4451 ;; 4452esac ;; #( 4453 *) : 4454 ;; 4455esac 4456 ;; 4457 esac 4458 fi 4459fi 4460 4461test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 4462 4463 4464 4465 4466 4467# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 4468if test "x$ax_pthread_ok" = "xyes"; then 4469 if test -n "$ac_original_cc"; then 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $ac_original_cc supports POSIX threads" >&5 4471$as_echo_n "checking if $ac_original_cc supports POSIX threads... " >&6; } 4472 if test "$CC" = "$PTHREAD_CC"; then 4473 have_pthread=yes 4474 else 4475 have_pthread=no 4476 fi 4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_pthread" >&5 4478$as_echo "$have_pthread" >&6; } 4479 else 4480 have_pthread=yes 4481 fi 4482 4483 if test "$CC" = "$PTHREAD_CC" -o -z "$ac_original_cc"; then 4484 have_pthread=yes 4485 else 4486 ac_prog_cc_no_pthread=yes 4487 fi 4488 4489 : 4490else 4491 ax_pthread_ok=no 4492 4493fi 4494ac_ext=c 4495ac_cpp='$CPP $CPPFLAGS' 4496ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4497ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4498ac_compiler_gnu=$ac_cv_c_compiler_gnu 4499 4500 4501 4502 if test "$have_pthread" = yes; then 4503 4504$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h 4505 4506 LIBS="$PTHREAD_LIBS $LIBS" 4507 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 4508 CXXFLAGS="$CXXFLAGS $PTHREAD_CFLAGS" 4509 CC="$PTHREAD_CC" 4510 elif test "$with_pthread_req" = yes; then 4511 as_fn_error $? "POSIX threads were requested, but were not found." "$LINENO" 5 4512 fi 4513 fi 4514 # Needs ac_original_cc. 4515 4516if test "$CC" = gcc; then 4517 for ac_prog in $CCC g++ CC C++ c++ cxx cc++ xlC $CC 4518do 4519 # Extract the first word of "$ac_prog", so it can be a program name with args. 4520set dummy $ac_prog; ac_word=$2 4521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4522$as_echo_n "checking for $ac_word... " >&6; } 4523if ${ac_cv_prog_CXX+:} false; then : 4524 $as_echo_n "(cached) " >&6 4525else 4526 if test -n "$CXX"; then 4527 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4528else 4529as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4530for as_dir in $PATH 4531do 4532 IFS=$as_save_IFS 4533 test -z "$as_dir" && as_dir=. 4534 for ac_exec_ext in '' $ac_executable_extensions; do 4535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4536 ac_cv_prog_CXX="$ac_prog" 4537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4538 break 2 4539 fi 4540done 4541 done 4542IFS=$as_save_IFS 4543 4544fi 4545fi 4546CXX=$ac_cv_prog_CXX 4547if test -n "$CXX"; then 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4549$as_echo "$CXX" >&6; } 4550else 4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4552$as_echo "no" >&6; } 4553fi 4554 4555 4556 test -n "$CXX" && break 4557done 4558test -n "$CXX" || CXX="gcc" 4559 4560else 4561 for ac_prog in $CCC CC C++ g++ c++ cxx cc++ xlC $CC 4562do 4563 # Extract the first word of "$ac_prog", so it can be a program name with args. 4564set dummy $ac_prog; ac_word=$2 4565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4566$as_echo_n "checking for $ac_word... " >&6; } 4567if ${ac_cv_prog_CXX+:} false; then : 4568 $as_echo_n "(cached) " >&6 4569else 4570 if test -n "$CXX"; then 4571 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4572else 4573as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4574for as_dir in $PATH 4575do 4576 IFS=$as_save_IFS 4577 test -z "$as_dir" && as_dir=. 4578 for ac_exec_ext in '' $ac_executable_extensions; do 4579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4580 ac_cv_prog_CXX="$ac_prog" 4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4582 break 2 4583 fi 4584done 4585 done 4586IFS=$as_save_IFS 4587 4588fi 4589fi 4590CXX=$ac_cv_prog_CXX 4591if test -n "$CXX"; then 4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4593$as_echo "$CXX" >&6; } 4594else 4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4596$as_echo "no" >&6; } 4597fi 4598 4599 4600 test -n "$CXX" && break 4601done 4602test -n "$CXX" || CXX="gcc" 4603 4604fi 4605ac_ext=cpp 4606ac_cpp='$CXXCPP $CPPFLAGS' 4607ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4608ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4609ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4610if test -z "$CXX"; then 4611 if test -n "$CCC"; then 4612 CXX=$CCC 4613 else 4614 if test -n "$ac_tool_prefix"; then 4615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4616 do 4617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4618set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4620$as_echo_n "checking for $ac_word... " >&6; } 4621if ${ac_cv_prog_CXX+:} false; then : 4622 $as_echo_n "(cached) " >&6 4623else 4624 if test -n "$CXX"; then 4625 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4626else 4627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4628for as_dir in $PATH 4629do 4630 IFS=$as_save_IFS 4631 test -z "$as_dir" && as_dir=. 4632 for ac_exec_ext in '' $ac_executable_extensions; do 4633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4634 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4636 break 2 4637 fi 4638done 4639 done 4640IFS=$as_save_IFS 4641 4642fi 4643fi 4644CXX=$ac_cv_prog_CXX 4645if test -n "$CXX"; then 4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4647$as_echo "$CXX" >&6; } 4648else 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4650$as_echo "no" >&6; } 4651fi 4652 4653 4654 test -n "$CXX" && break 4655 done 4656fi 4657if test -z "$CXX"; then 4658 ac_ct_CXX=$CXX 4659 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4660do 4661 # Extract the first word of "$ac_prog", so it can be a program name with args. 4662set dummy $ac_prog; ac_word=$2 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4664$as_echo_n "checking for $ac_word... " >&6; } 4665if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 if test -n "$ac_ct_CXX"; then 4669 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4670else 4671as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4672for as_dir in $PATH 4673do 4674 IFS=$as_save_IFS 4675 test -z "$as_dir" && as_dir=. 4676 for ac_exec_ext in '' $ac_executable_extensions; do 4677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4678 ac_cv_prog_ac_ct_CXX="$ac_prog" 4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4680 break 2 4681 fi 4682done 4683 done 4684IFS=$as_save_IFS 4685 4686fi 4687fi 4688ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4689if test -n "$ac_ct_CXX"; then 4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4691$as_echo "$ac_ct_CXX" >&6; } 4692else 4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4694$as_echo "no" >&6; } 4695fi 4696 4697 4698 test -n "$ac_ct_CXX" && break 4699done 4700 4701 if test "x$ac_ct_CXX" = x; then 4702 CXX="g++" 4703 else 4704 case $cross_compiling:$ac_tool_warned in 4705yes:) 4706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4708ac_tool_warned=yes ;; 4709esac 4710 CXX=$ac_ct_CXX 4711 fi 4712fi 4713 4714 fi 4715fi 4716# Provide some information about the compiler. 4717$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4718set X $ac_compile 4719ac_compiler=$2 4720for ac_option in --version -v -V -qversion; do 4721 { { ac_try="$ac_compiler $ac_option >&5" 4722case "(($ac_try" in 4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4724 *) ac_try_echo=$ac_try;; 4725esac 4726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4727$as_echo "$ac_try_echo"; } >&5 4728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4729 ac_status=$? 4730 if test -s conftest.err; then 4731 sed '10a\ 4732... rest of stderr output deleted ... 4733 10q' conftest.err >conftest.er1 4734 cat conftest.er1 >&5 4735 fi 4736 rm -f conftest.er1 conftest.err 4737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4738 test $ac_status = 0; } 4739done 4740 4741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4742$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4743if ${ac_cv_cxx_compiler_gnu+:} false; then : 4744 $as_echo_n "(cached) " >&6 4745else 4746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4747/* end confdefs.h. */ 4748 4749int 4750main () 4751{ 4752#ifndef __GNUC__ 4753 choke me 4754#endif 4755 4756 ; 4757 return 0; 4758} 4759_ACEOF 4760if ac_fn_cxx_try_compile "$LINENO"; then : 4761 ac_compiler_gnu=yes 4762else 4763 ac_compiler_gnu=no 4764fi 4765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4766ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4767 4768fi 4769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4770$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4771if test $ac_compiler_gnu = yes; then 4772 GXX=yes 4773else 4774 GXX= 4775fi 4776ac_test_CXXFLAGS=${CXXFLAGS+set} 4777ac_save_CXXFLAGS=$CXXFLAGS 4778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4779$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4780if ${ac_cv_prog_cxx_g+:} false; then : 4781 $as_echo_n "(cached) " >&6 4782else 4783 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4784 ac_cxx_werror_flag=yes 4785 ac_cv_prog_cxx_g=no 4786 CXXFLAGS="-g" 4787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4788/* end confdefs.h. */ 4789 4790int 4791main () 4792{ 4793 4794 ; 4795 return 0; 4796} 4797_ACEOF 4798if ac_fn_cxx_try_compile "$LINENO"; then : 4799 ac_cv_prog_cxx_g=yes 4800else 4801 CXXFLAGS="" 4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4803/* end confdefs.h. */ 4804 4805int 4806main () 4807{ 4808 4809 ; 4810 return 0; 4811} 4812_ACEOF 4813if ac_fn_cxx_try_compile "$LINENO"; then : 4814 4815else 4816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4817 CXXFLAGS="-g" 4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4819/* end confdefs.h. */ 4820 4821int 4822main () 4823{ 4824 4825 ; 4826 return 0; 4827} 4828_ACEOF 4829if ac_fn_cxx_try_compile "$LINENO"; then : 4830 ac_cv_prog_cxx_g=yes 4831fi 4832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4833fi 4834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4835fi 4836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4838fi 4839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4840$as_echo "$ac_cv_prog_cxx_g" >&6; } 4841if test "$ac_test_CXXFLAGS" = set; then 4842 CXXFLAGS=$ac_save_CXXFLAGS 4843elif test $ac_cv_prog_cxx_g = yes; then 4844 if test "$GXX" = yes; then 4845 CXXFLAGS="-g -O2" 4846 else 4847 CXXFLAGS="-g" 4848 fi 4849else 4850 if test "$GXX" = yes; then 4851 CXXFLAGS="-O2" 4852 else 4853 CXXFLAGS= 4854 fi 4855fi 4856ac_ext=c 4857ac_cpp='$CPP $CPPFLAGS' 4858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4860ac_compiler_gnu=$ac_cv_c_compiler_gnu 4861 4862if test "${CXX}" = "xlC" ; then 4863 CXXFLAGS="${CXXFLAGS} -+" 4864fi 4865 4866 4867 4868$as_echo "#define HAVE_CXX 1" >>confdefs.h 4869 4870CCC= 4871 4872PACKAGE=xlockmore 4873 4874 4875cat >>confdefs.h <<_ACEOF 4876#define PACKAGE "$PACKAGE" 4877_ACEOF 4878 4879VERSION=5.64 4880 4881 4882cat >>confdefs.h <<_ACEOF 4883#define VERSION "$VERSION" 4884_ACEOF 4885 4886 4887 4888 4889if test -n "$GCC"; then 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Turning on GNU compiler warnings." >&5 4891$as_echo "Turning on GNU compiler warnings." >&6; } 4892 CC="$CC -Wnested-externs -Wno-format" 4893fi 4894 4895############################################################################### 4896# 4897# Functions to figure out how to disable // comments in ANSI C code. 4898# 4899# (With recent gcc, this is done with "-std=c89". With older gcc, this 4900# is done by passing "-lang-c89" to cpp, by passing "-Wp,-lang-c89" to 4901# gcc. Old gcc doesn't support -std, and new gcc doesn't support -lang. 4902# so much for compatibility!) 4903# 4904############################################################################### 4905 4906 4907 4908 4909 4910 4911opt_purify=no 4912 4913# Check whether --with-purify was given. 4914if test "${with_purify+set}" = set; then : 4915 withval=$with_purify; opt_purify=$withval 4916fi 4917 4918if test "$opt_purify" = yes; then 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling purify" >&5 4920$as_echo "enabling purify" >&6; } 4921 PURIFY="purify" 4922else 4923 PURIFY= 4924fi 4925 4926#AC_NO_CPLUSPLUS_COMMENTS_IN_C_CODE 4927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4928$as_echo_n "checking whether ln -s works... " >&6; } 4929LN_S=$as_ln_s 4930if test "$LN_S" = "ln -s"; then 4931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4932$as_echo "yes" >&6; } 4933else 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4935$as_echo "no, using $LN_S" >&6; } 4936fi 4937 4938ac_ext=c 4939ac_cpp='$CPP $CPPFLAGS' 4940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4941ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4942ac_compiler_gnu=$ac_cv_c_compiler_gnu 4943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4944$as_echo_n "checking how to run the C preprocessor... " >&6; } 4945# On Suns, sometimes $CPP names a directory. 4946if test -n "$CPP" && test -d "$CPP"; then 4947 CPP= 4948fi 4949if test -z "$CPP"; then 4950 if ${ac_cv_prog_CPP+:} false; then : 4951 $as_echo_n "(cached) " >&6 4952else 4953 # Double quotes because CPP needs to be expanded 4954 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4955 do 4956 ac_preproc_ok=false 4957for ac_c_preproc_warn_flag in '' yes 4958do 4959 # Use a header file that comes with gcc, so configuring glibc 4960 # with a fresh cross-compiler works. 4961 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4962 # <limits.h> exists even on freestanding compilers. 4963 # On the NeXT, cc -E runs the code through the compiler's parser, 4964 # not just through cpp. "Syntax error" is here to catch this case. 4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4966/* end confdefs.h. */ 4967#ifdef __STDC__ 4968# include <limits.h> 4969#else 4970# include <assert.h> 4971#endif 4972 Syntax error 4973_ACEOF 4974if ac_fn_c_try_cpp "$LINENO"; then : 4975 4976else 4977 # Broken: fails on valid input. 4978continue 4979fi 4980rm -f conftest.err conftest.i conftest.$ac_ext 4981 4982 # OK, works on sane cases. Now check whether nonexistent headers 4983 # can be detected and how. 4984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4985/* end confdefs.h. */ 4986#include <ac_nonexistent.h> 4987_ACEOF 4988if ac_fn_c_try_cpp "$LINENO"; then : 4989 # Broken: success on invalid input. 4990continue 4991else 4992 # Passes both tests. 4993ac_preproc_ok=: 4994break 4995fi 4996rm -f conftest.err conftest.i conftest.$ac_ext 4997 4998done 4999# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5000rm -f conftest.i conftest.err conftest.$ac_ext 5001if $ac_preproc_ok; then : 5002 break 5003fi 5004 5005 done 5006 ac_cv_prog_CPP=$CPP 5007 5008fi 5009 CPP=$ac_cv_prog_CPP 5010else 5011 ac_cv_prog_CPP=$CPP 5012fi 5013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5014$as_echo "$CPP" >&6; } 5015ac_preproc_ok=false 5016for ac_c_preproc_warn_flag in '' yes 5017do 5018 # Use a header file that comes with gcc, so configuring glibc 5019 # with a fresh cross-compiler works. 5020 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5021 # <limits.h> exists even on freestanding compilers. 5022 # On the NeXT, cc -E runs the code through the compiler's parser, 5023 # not just through cpp. "Syntax error" is here to catch this case. 5024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5025/* end confdefs.h. */ 5026#ifdef __STDC__ 5027# include <limits.h> 5028#else 5029# include <assert.h> 5030#endif 5031 Syntax error 5032_ACEOF 5033if ac_fn_c_try_cpp "$LINENO"; then : 5034 5035else 5036 # Broken: fails on valid input. 5037continue 5038fi 5039rm -f conftest.err conftest.i conftest.$ac_ext 5040 5041 # OK, works on sane cases. Now check whether nonexistent headers 5042 # can be detected and how. 5043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5044/* end confdefs.h. */ 5045#include <ac_nonexistent.h> 5046_ACEOF 5047if ac_fn_c_try_cpp "$LINENO"; then : 5048 # Broken: success on invalid input. 5049continue 5050else 5051 # Passes both tests. 5052ac_preproc_ok=: 5053break 5054fi 5055rm -f conftest.err conftest.i conftest.$ac_ext 5056 5057done 5058# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5059rm -f conftest.i conftest.err conftest.$ac_ext 5060if $ac_preproc_ok; then : 5061 5062else 5063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5064$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5065as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 5066See \`config.log' for more details" "$LINENO" 5; } 5067fi 5068 5069ac_ext=c 5070ac_cpp='$CPP $CPPFLAGS' 5071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5073ac_compiler_gnu=$ac_cv_c_compiler_gnu 5074 5075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 5076$as_echo_n "checking for ANSI C header files... " >&6; } 5077if ${ac_cv_header_stdc+:} false; then : 5078 $as_echo_n "(cached) " >&6 5079else 5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5081/* end confdefs.h. */ 5082#include <stdlib.h> 5083#include <stdarg.h> 5084#include <string.h> 5085#include <float.h> 5086 5087int 5088main () 5089{ 5090 5091 ; 5092 return 0; 5093} 5094_ACEOF 5095if ac_fn_c_try_compile "$LINENO"; then : 5096 ac_cv_header_stdc=yes 5097else 5098 ac_cv_header_stdc=no 5099fi 5100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5101 5102if test $ac_cv_header_stdc = yes; then 5103 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5105/* end confdefs.h. */ 5106#include <string.h> 5107 5108_ACEOF 5109if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5110 $EGREP "memchr" >/dev/null 2>&1; then : 5111 5112else 5113 ac_cv_header_stdc=no 5114fi 5115rm -f conftest* 5116 5117fi 5118 5119if test $ac_cv_header_stdc = yes; then 5120 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5122/* end confdefs.h. */ 5123#include <stdlib.h> 5124 5125_ACEOF 5126if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5127 $EGREP "free" >/dev/null 2>&1; then : 5128 5129else 5130 ac_cv_header_stdc=no 5131fi 5132rm -f conftest* 5133 5134fi 5135 5136if test $ac_cv_header_stdc = yes; then 5137 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5138 if test "$cross_compiling" = yes; then : 5139 : 5140else 5141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5142/* end confdefs.h. */ 5143#include <ctype.h> 5144#include <stdlib.h> 5145#if ((' ' & 0x0FF) == 0x020) 5146# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5147# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5148#else 5149# define ISLOWER(c) \ 5150 (('a' <= (c) && (c) <= 'i') \ 5151 || ('j' <= (c) && (c) <= 'r') \ 5152 || ('s' <= (c) && (c) <= 'z')) 5153# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5154#endif 5155 5156#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5157int 5158main () 5159{ 5160 int i; 5161 for (i = 0; i < 256; i++) 5162 if (XOR (islower (i), ISLOWER (i)) 5163 || toupper (i) != TOUPPER (i)) 5164 return 2; 5165 return 0; 5166} 5167_ACEOF 5168if ac_fn_c_try_run "$LINENO"; then : 5169 5170else 5171 ac_cv_header_stdc=no 5172fi 5173rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 5174 conftest.$ac_objext conftest.beam conftest.$ac_ext 5175fi 5176 5177fi 5178fi 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 5180$as_echo "$ac_cv_header_stdc" >&6; } 5181if test $ac_cv_header_stdc = yes; then 5182 5183$as_echo "#define STDC_HEADERS 1" >>confdefs.h 5184 5185fi 5186 5187# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5188for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5189 inttypes.h stdint.h unistd.h 5190do : 5191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5192ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 5193" 5194if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5195 cat >>confdefs.h <<_ACEOF 5196#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5197_ACEOF 5198 5199fi 5200 5201done 5202 5203 5204 5205 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 5206if test "x$ac_cv_header_minix_config_h" = xyes; then : 5207 MINIX=yes 5208else 5209 MINIX= 5210fi 5211 5212 5213 if test "$MINIX" = yes; then 5214 5215$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 5216 5217 5218$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 5219 5220 5221$as_echo "#define _MINIX 1" >>confdefs.h 5222 5223 fi 5224 5225 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 5227$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 5228if ${ac_cv_safe_to_define___extensions__+:} false; then : 5229 $as_echo_n "(cached) " >&6 5230else 5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5232/* end confdefs.h. */ 5233 5234# define __EXTENSIONS__ 1 5235 $ac_includes_default 5236int 5237main () 5238{ 5239 5240 ; 5241 return 0; 5242} 5243_ACEOF 5244if ac_fn_c_try_compile "$LINENO"; then : 5245 ac_cv_safe_to_define___extensions__=yes 5246else 5247 ac_cv_safe_to_define___extensions__=no 5248fi 5249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5250fi 5251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 5252$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 5253 test $ac_cv_safe_to_define___extensions__ = yes && 5254 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 5255 5256 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 5257 5258 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 5259 5260 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 5261 5262 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 5263 5264 5265 5266# Find a good install program. We prefer a C program (faster), 5267# so one script is as good as another. But avoid the broken or 5268# incompatible versions: 5269# SysV /etc/install, /usr/sbin/install 5270# SunOS /usr/etc/install 5271# IRIX /sbin/install 5272# AIX /bin/install 5273# AmigaOS /C/install, which installs bootblocks on floppy discs 5274# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 5275# AFS /usr/afsws/bin/install, which mishandles nonexistent args 5276# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5277# OS/2's system install, which has a completely different semantic 5278# ./install, which can be erroneously created by make from ./install.sh. 5279# Reject install programs that cannot install multiple files. 5280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5281$as_echo_n "checking for a BSD-compatible install... " >&6; } 5282if test -z "$INSTALL"; then 5283if ${ac_cv_path_install+:} false; then : 5284 $as_echo_n "(cached) " >&6 5285else 5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5287for as_dir in $PATH 5288do 5289 IFS=$as_save_IFS 5290 test -z "$as_dir" && as_dir=. 5291 # Account for people who put trailing slashes in PATH elements. 5292case $as_dir/ in #(( 5293 ./ | .// | /[cC]/* | \ 5294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5295 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5296 /usr/ucb/* ) ;; 5297 *) 5298 # OSF1 and SCO ODT 3.0 have their own names for install. 5299 # Don't use installbsd from OSF since it installs stuff as root 5300 # by default. 5301 for ac_prog in ginstall scoinst install; do 5302 for ac_exec_ext in '' $ac_executable_extensions; do 5303 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 5304 if test $ac_prog = install && 5305 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5306 # AIX install. It has an incompatible calling convention. 5307 : 5308 elif test $ac_prog = install && 5309 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 5310 # program-specific install script used by HP pwplus--don't use. 5311 : 5312 else 5313 rm -rf conftest.one conftest.two conftest.dir 5314 echo one > conftest.one 5315 echo two > conftest.two 5316 mkdir conftest.dir 5317 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 5318 test -s conftest.one && test -s conftest.two && 5319 test -s conftest.dir/conftest.one && 5320 test -s conftest.dir/conftest.two 5321 then 5322 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 5323 break 3 5324 fi 5325 fi 5326 fi 5327 done 5328 done 5329 ;; 5330esac 5331 5332 done 5333IFS=$as_save_IFS 5334 5335rm -rf conftest.one conftest.two conftest.dir 5336 5337fi 5338 if test "${ac_cv_path_install+set}" = set; then 5339 INSTALL=$ac_cv_path_install 5340 else 5341 # As a last resort, use the slow shell script. Don't cache a 5342 # value for INSTALL within a source directory, because that will 5343 # break other packages using the cache if that directory is 5344 # removed, or if the value is a relative name. 5345 INSTALL=$ac_install_sh 5346 fi 5347fi 5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5349$as_echo "$INSTALL" >&6; } 5350 5351# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5352# It thinks the first close brace ends the variable substitution. 5353test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5354 5355test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 5356 5357test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 5358 5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 5360$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 5361set x ${MAKE-make} 5362ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 5363if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 5364 $as_echo_n "(cached) " >&6 5365else 5366 cat >conftest.make <<\_ACEOF 5367SHELL = /bin/sh 5368all: 5369 @echo '@@@%%%=$(MAKE)=@@@%%%' 5370_ACEOF 5371# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5372case `${MAKE-make} -f conftest.make 2>/dev/null` in 5373 *@@@%%%=?*=@@@%%%*) 5374 eval ac_cv_prog_make_${ac_make}_set=yes;; 5375 *) 5376 eval ac_cv_prog_make_${ac_make}_set=no;; 5377esac 5378rm -f conftest.make 5379fi 5380if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5382$as_echo "yes" >&6; } 5383 SET_MAKE= 5384else 5385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5386$as_echo "no" >&6; } 5387 SET_MAKE="MAKE=${MAKE-make}" 5388fi 5389 5390ac_link_test="-L" 5391# test test 5392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking test -h" >&5 5393$as_echo_n "checking test -h... " >&6; } 5394if (test \! -h /) >/dev/null 2>/dev/null ; then 5395 ac_link_test="-h" 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_link_test" >&5 5397$as_echo "$ac_link_test" >&6; } 5398else 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_link_test" >&5 5400$as_echo "$ac_link_test" >&6; } 5401fi 5402 5403 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 5405$as_echo_n "checking for library containing strerror... " >&6; } 5406if ${ac_cv_search_strerror+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 ac_func_search_save_LIBS=$LIBS 5410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5411/* end confdefs.h. */ 5412 5413/* Override any GCC internal prototype to avoid an error. 5414 Use char because int might match the return type of a GCC 5415 builtin and then its argument prototype would still apply. */ 5416#ifdef __cplusplus 5417extern "C" 5418#endif 5419char strerror (); 5420int 5421main () 5422{ 5423return strerror (); 5424 ; 5425 return 0; 5426} 5427_ACEOF 5428for ac_lib in '' cposix; do 5429 if test -z "$ac_lib"; then 5430 ac_res="none required" 5431 else 5432 ac_res=-l$ac_lib 5433 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5434 fi 5435 if ac_fn_c_try_link "$LINENO"; then : 5436 ac_cv_search_strerror=$ac_res 5437fi 5438rm -f core conftest.err conftest.$ac_objext \ 5439 conftest$ac_exeext 5440 if ${ac_cv_search_strerror+:} false; then : 5441 break 5442fi 5443done 5444if ${ac_cv_search_strerror+:} false; then : 5445 5446else 5447 ac_cv_search_strerror=no 5448fi 5449rm conftest.$ac_ext 5450LIBS=$ac_func_search_save_LIBS 5451fi 5452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 5453$as_echo "$ac_cv_search_strerror" >&6; } 5454ac_res=$ac_cv_search_strerror 5455if test "$ac_res" != no; then : 5456 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 5457 5458fi 5459 5460for ac_header in fcntl.h limits.h sys/resource.h sys/select.h sys/time.h syslog.h unistd.h memory.h sys/param.h 5461do : 5462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5463ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 5464if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 5465 cat >>confdefs.h <<_ACEOF 5466#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5467_ACEOF 5468 5469fi 5470 5471done 5472 5473 5474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 5475$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 5476if ${ac_cv_c_const+:} false; then : 5477 $as_echo_n "(cached) " >&6 5478else 5479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5480/* end confdefs.h. */ 5481 5482int 5483main () 5484{ 5485 5486#ifndef __cplusplus 5487 /* Ultrix mips cc rejects this sort of thing. */ 5488 typedef int charset[2]; 5489 const charset cs = { 0, 0 }; 5490 /* SunOS 4.1.1 cc rejects this. */ 5491 char const *const *pcpcc; 5492 char **ppc; 5493 /* NEC SVR4.0.2 mips cc rejects this. */ 5494 struct point {int x, y;}; 5495 static struct point const zero = {0,0}; 5496 /* AIX XL C 1.02.0.0 rejects this. 5497 It does not let you subtract one const X* pointer from another in 5498 an arm of an if-expression whose if-part is not a constant 5499 expression */ 5500 const char *g = "string"; 5501 pcpcc = &g + (g ? g-g : 0); 5502 /* HPUX 7.0 cc rejects these. */ 5503 ++pcpcc; 5504 ppc = (char**) pcpcc; 5505 pcpcc = (char const *const *) ppc; 5506 { /* SCO 3.2v4 cc rejects this sort of thing. */ 5507 char tx; 5508 char *t = &tx; 5509 char const *s = 0 ? (char *) 0 : (char const *) 0; 5510 5511 *t++ = 0; 5512 if (s) return 0; 5513 } 5514 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 5515 int x[] = {25, 17}; 5516 const int *foo = &x[0]; 5517 ++foo; 5518 } 5519 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 5520 typedef const int *iptr; 5521 iptr p = 0; 5522 ++p; 5523 } 5524 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 5525 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 5526 struct s { int j; const int *ap[3]; } bx; 5527 struct s *b = &bx; b->j = 5; 5528 } 5529 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 5530 const int foo = 10; 5531 if (!foo) return 0; 5532 } 5533 return !cs[0] && !zero.x; 5534#endif 5535 5536 ; 5537 return 0; 5538} 5539_ACEOF 5540if ac_fn_c_try_compile "$LINENO"; then : 5541 ac_cv_c_const=yes 5542else 5543 ac_cv_c_const=no 5544fi 5545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5546fi 5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 5548$as_echo "$ac_cv_c_const" >&6; } 5549if test $ac_cv_c_const = no; then 5550 5551$as_echo "#define const /**/" >>confdefs.h 5552 5553fi 5554 5555ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 5556if test "x$ac_cv_type_mode_t" = xyes; then : 5557 5558else 5559 5560cat >>confdefs.h <<_ACEOF 5561#define mode_t int 5562_ACEOF 5563 5564fi 5565 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 5567$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 5568if ${ac_cv_type_uid_t+:} false; then : 5569 $as_echo_n "(cached) " >&6 5570else 5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5572/* end confdefs.h. */ 5573#include <sys/types.h> 5574 5575_ACEOF 5576if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5577 $EGREP "uid_t" >/dev/null 2>&1; then : 5578 ac_cv_type_uid_t=yes 5579else 5580 ac_cv_type_uid_t=no 5581fi 5582rm -f conftest* 5583 5584fi 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 5586$as_echo "$ac_cv_type_uid_t" >&6; } 5587if test $ac_cv_type_uid_t = no; then 5588 5589$as_echo "#define uid_t int" >>confdefs.h 5590 5591 5592$as_echo "#define gid_t int" >>confdefs.h 5593 5594fi 5595 5596ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 5597if test "x$ac_cv_type_pid_t" = xyes; then : 5598 5599else 5600 5601cat >>confdefs.h <<_ACEOF 5602#define pid_t int 5603_ACEOF 5604 5605fi 5606 5607ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 5608if test "x$ac_cv_type_size_t" = xyes; then : 5609 5610else 5611 5612cat >>confdefs.h <<_ACEOF 5613#define size_t unsigned int 5614_ACEOF 5615 5616fi 5617 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 5619$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 5620if ${ac_cv_header_time+:} false; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5624/* end confdefs.h. */ 5625#include <sys/types.h> 5626#include <sys/time.h> 5627#include <time.h> 5628 5629int 5630main () 5631{ 5632if ((struct tm *) 0) 5633return 0; 5634 ; 5635 return 0; 5636} 5637_ACEOF 5638if ac_fn_c_try_compile "$LINENO"; then : 5639 ac_cv_header_time=yes 5640else 5641 ac_cv_header_time=no 5642fi 5643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5644fi 5645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 5646$as_echo "$ac_cv_header_time" >&6; } 5647if test $ac_cv_header_time = yes; then 5648 5649$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 5650 5651fi 5652 5653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 5654$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 5655if ${ac_cv_struct_tm+:} false; then : 5656 $as_echo_n "(cached) " >&6 5657else 5658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5659/* end confdefs.h. */ 5660#include <sys/types.h> 5661#include <time.h> 5662 5663int 5664main () 5665{ 5666struct tm tm; 5667 int *p = &tm.tm_sec; 5668 return !p; 5669 ; 5670 return 0; 5671} 5672_ACEOF 5673if ac_fn_c_try_compile "$LINENO"; then : 5674 ac_cv_struct_tm=time.h 5675else 5676 ac_cv_struct_tm=sys/time.h 5677fi 5678rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5679fi 5680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 5681$as_echo "$ac_cv_struct_tm" >&6; } 5682if test $ac_cv_struct_tm = sys/time.h; then 5683 5684$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 5685 5686fi 5687 5688 5689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for getenv declaration" >&5 5690$as_echo_n "checking for getenv declaration... " >&6; } 5691cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5692/* end confdefs.h. */ 5693#include <stdlib.h> 5694 5695_ACEOF 5696if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5697 $EGREP "getenv" >/dev/null 2>&1; then : 5698 5699$as_echo "#define DECLARED_GETENV 1" >>confdefs.h 5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5701$as_echo "yes" >&6; } 5702else 5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5704$as_echo "no" >&6; } 5705fi 5706rm -f conftest* 5707 5708 5709for ac_func in gethostname select strdup 5710do : 5711 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 5712ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 5713if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 5714 cat >>confdefs.h <<_ACEOF 5715#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 5716_ACEOF 5717 5718fi 5719done 5720 5721 5722ac_fn_c_check_func "$LINENO" "vfork" "ac_cv_func_vfork" 5723if test "x$ac_cv_func_vfork" = xyes; then : 5724 5725$as_echo "#define HAVE_VFORK 1" >>confdefs.h 5726 5727fi 5728 5729ac_fn_c_check_func "$LINENO" "seteuid" "ac_cv_func_seteuid" 5730if test "x$ac_cv_func_seteuid" = xyes; then : 5731 5732$as_echo "#define HAVE_SETEUID 1" >>confdefs.h 5733 5734fi 5735 5736if test $ac_cv_func_seteuid = no; then 5737ac_fn_c_check_func "$LINENO" "setreuid" "ac_cv_func_setreuid" 5738if test "x$ac_cv_func_setreuid" = xyes; then : 5739 5740$as_echo "#define HAVE_SETREUID 1" >>confdefs.h 5741 5742fi 5743 5744fi 5745 5746# Configure paths for GTK+ 5747# Owen Taylor 97-11-3 5748 5749 5750 5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 5752$as_echo_n "checking for X... " >&6; } 5753 5754 5755# Check whether --with-x was given. 5756if test "${with_x+set}" = set; then : 5757 withval=$with_x; 5758fi 5759 5760# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5761if test "x$with_x" = xno; then 5762 # The user explicitly disabled X. 5763 have_x=disabled 5764else 5765 case $x_includes,$x_libraries in #( 5766 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 5767 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 5768 $as_echo_n "(cached) " >&6 5769else 5770 # One or both of the vars are not set, and there is no cached value. 5771ac_x_includes=no ac_x_libraries=no 5772rm -f -r conftest.dir 5773if mkdir conftest.dir; then 5774 cd conftest.dir 5775 cat >Imakefile <<'_ACEOF' 5776incroot: 5777 @echo incroot='${INCROOT}' 5778usrlibdir: 5779 @echo usrlibdir='${USRLIBDIR}' 5780libdir: 5781 @echo libdir='${LIBDIR}' 5782_ACEOF 5783 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5784 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 5785 for ac_var in incroot usrlibdir libdir; do 5786 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 5787 done 5788 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5789 for ac_extension in a so sl dylib la dll; do 5790 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5791 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5792 ac_im_usrlibdir=$ac_im_libdir; break 5793 fi 5794 done 5795 # Screen out bogus values from the imake configuration. They are 5796 # bogus both because they are the default anyway, and because 5797 # using them would break gcc on systems where it needs fixed includes. 5798 case $ac_im_incroot in 5799 /usr/include) ac_x_includes= ;; 5800 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5801 esac 5802 case $ac_im_usrlibdir in 5803 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 5804 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5805 esac 5806 fi 5807 cd .. 5808 rm -f -r conftest.dir 5809fi 5810 5811# Standard set of common directories for X headers. 5812# Check X11 before X11Rn because it is often a symlink to the current release. 5813ac_x_header_dirs=' 5814/usr/X11/include 5815/usr/X11R7/include 5816/usr/X11R6/include 5817/usr/X11R5/include 5818/usr/X11R4/include 5819 5820/usr/include/X11 5821/usr/include/X11R7 5822/usr/include/X11R6 5823/usr/include/X11R5 5824/usr/include/X11R4 5825 5826/usr/local/X11/include 5827/usr/local/X11R7/include 5828/usr/local/X11R6/include 5829/usr/local/X11R5/include 5830/usr/local/X11R4/include 5831 5832/usr/local/include/X11 5833/usr/local/include/X11R7 5834/usr/local/include/X11R6 5835/usr/local/include/X11R5 5836/usr/local/include/X11R4 5837 5838/usr/X386/include 5839/usr/x386/include 5840/usr/XFree86/include/X11 5841 5842/usr/include 5843/usr/local/include 5844/usr/unsupported/include 5845/usr/athena/include 5846/usr/local/x11r5/include 5847/usr/lpp/Xamples/include 5848 5849/usr/openwin/include 5850/usr/openwin/share/include' 5851 5852if test "$ac_x_includes" = no; then 5853 # Guess where to find include files, by looking for Xlib.h. 5854 # First, try using that file with no special directory specified. 5855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5856/* end confdefs.h. */ 5857#include <X11/Xlib.h> 5858_ACEOF 5859if ac_fn_c_try_cpp "$LINENO"; then : 5860 # We can compile using X headers with no special include directory. 5861ac_x_includes= 5862else 5863 for ac_dir in $ac_x_header_dirs; do 5864 if test -r "$ac_dir/X11/Xlib.h"; then 5865 ac_x_includes=$ac_dir 5866 break 5867 fi 5868done 5869fi 5870rm -f conftest.err conftest.i conftest.$ac_ext 5871fi # $ac_x_includes = no 5872 5873if test "$ac_x_libraries" = no; then 5874 # Check for the libraries. 5875 # See if we find them without any special options. 5876 # Don't add to $LIBS permanently. 5877 ac_save_LIBS=$LIBS 5878 LIBS="-lX11 $LIBS" 5879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5880/* end confdefs.h. */ 5881#include <X11/Xlib.h> 5882int 5883main () 5884{ 5885XrmInitialize () 5886 ; 5887 return 0; 5888} 5889_ACEOF 5890if ac_fn_c_try_link "$LINENO"; then : 5891 LIBS=$ac_save_LIBS 5892# We can link X programs with no special library path. 5893ac_x_libraries= 5894else 5895 LIBS=$ac_save_LIBS 5896for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5897do 5898 # Don't even attempt the hair of trying to link an X program! 5899 for ac_extension in a so sl dylib la dll; do 5900 if test -r "$ac_dir/libX11.$ac_extension"; then 5901 ac_x_libraries=$ac_dir 5902 break 2 5903 fi 5904 done 5905done 5906fi 5907rm -f core conftest.err conftest.$ac_objext \ 5908 conftest$ac_exeext conftest.$ac_ext 5909fi # $ac_x_libraries = no 5910 5911case $ac_x_includes,$ac_x_libraries in #( 5912 no,* | *,no | *\'*) 5913 # Didn't find X, or a directory has "'" in its name. 5914 ac_cv_have_x="have_x=no";; #( 5915 *) 5916 # Record where we found X for the cache. 5917 ac_cv_have_x="have_x=yes\ 5918 ac_x_includes='$ac_x_includes'\ 5919 ac_x_libraries='$ac_x_libraries'" 5920esac 5921fi 5922;; #( 5923 *) have_x=yes;; 5924 esac 5925 eval "$ac_cv_have_x" 5926fi # $with_x != no 5927 5928if test "$have_x" != yes; then 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 5930$as_echo "$have_x" >&6; } 5931 no_x=yes 5932else 5933 # If each of the values was on the command line, it overrides each guess. 5934 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5935 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5936 # Update the cache value to reflect the command line values. 5937 ac_cv_have_x="have_x=yes\ 5938 ac_x_includes='$x_includes'\ 5939 ac_x_libraries='$x_libraries'" 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 5941$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 5942fi 5943 5944if test "$no_x" = yes; then 5945 # Not all programs may use this symbol, but it does not hurt to define it. 5946 5947$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 5948 5949 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5950else 5951 if test -n "$x_includes"; then 5952 X_CFLAGS="$X_CFLAGS -I$x_includes" 5953 fi 5954 5955 # It would also be nice to do this for all -L options, not just this one. 5956 if test -n "$x_libraries"; then 5957 X_LIBS="$X_LIBS -L$x_libraries" 5958 # For Solaris; some versions of Sun CC require a space after -R and 5959 # others require no space. Words are not sufficient . . . . 5960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 5961$as_echo_n "checking whether -R must be followed by a space... " >&6; } 5962 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5963 ac_xsave_c_werror_flag=$ac_c_werror_flag 5964 ac_c_werror_flag=yes 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5966/* end confdefs.h. */ 5967 5968int 5969main () 5970{ 5971 5972 ; 5973 return 0; 5974} 5975_ACEOF 5976if ac_fn_c_try_link "$LINENO"; then : 5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5978$as_echo "no" >&6; } 5979 X_LIBS="$X_LIBS -R$x_libraries" 5980else 5981 LIBS="$ac_xsave_LIBS -R $x_libraries" 5982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5983/* end confdefs.h. */ 5984 5985int 5986main () 5987{ 5988 5989 ; 5990 return 0; 5991} 5992_ACEOF 5993if ac_fn_c_try_link "$LINENO"; then : 5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5995$as_echo "yes" >&6; } 5996 X_LIBS="$X_LIBS -R $x_libraries" 5997else 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 5999$as_echo "neither works" >&6; } 6000fi 6001rm -f core conftest.err conftest.$ac_objext \ 6002 conftest$ac_exeext conftest.$ac_ext 6003fi 6004rm -f core conftest.err conftest.$ac_objext \ 6005 conftest$ac_exeext conftest.$ac_ext 6006 ac_c_werror_flag=$ac_xsave_c_werror_flag 6007 LIBS=$ac_xsave_LIBS 6008 fi 6009 6010 # Check for system-dependent libraries X programs must link with. 6011 # Do this before checking for the system-independent R6 libraries 6012 # (-lICE), since we may need -lsocket or whatever for X linking. 6013 6014 if test "$ISC" = yes; then 6015 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 6016 else 6017 # Martyn Johnson says this is needed for Ultrix, if the X 6018 # libraries were built with DECnet support. And Karl Berry says 6019 # the Alpha needs dnet_stub (dnet does not exist). 6020 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6022/* end confdefs.h. */ 6023 6024/* Override any GCC internal prototype to avoid an error. 6025 Use char because int might match the return type of a GCC 6026 builtin and then its argument prototype would still apply. */ 6027#ifdef __cplusplus 6028extern "C" 6029#endif 6030char XOpenDisplay (); 6031int 6032main () 6033{ 6034return XOpenDisplay (); 6035 ; 6036 return 0; 6037} 6038_ACEOF 6039if ac_fn_c_try_link "$LINENO"; then : 6040 6041else 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 6043$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 6044if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046else 6047 ac_check_lib_save_LIBS=$LIBS 6048LIBS="-ldnet $LIBS" 6049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6050/* end confdefs.h. */ 6051 6052/* Override any GCC internal prototype to avoid an error. 6053 Use char because int might match the return type of a GCC 6054 builtin and then its argument prototype would still apply. */ 6055#ifdef __cplusplus 6056extern "C" 6057#endif 6058char dnet_ntoa (); 6059int 6060main () 6061{ 6062return dnet_ntoa (); 6063 ; 6064 return 0; 6065} 6066_ACEOF 6067if ac_fn_c_try_link "$LINENO"; then : 6068 ac_cv_lib_dnet_dnet_ntoa=yes 6069else 6070 ac_cv_lib_dnet_dnet_ntoa=no 6071fi 6072rm -f core conftest.err conftest.$ac_objext \ 6073 conftest$ac_exeext conftest.$ac_ext 6074LIBS=$ac_check_lib_save_LIBS 6075fi 6076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6077$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 6078if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 6079 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6080fi 6081 6082 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 6084$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 6085if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 6086 $as_echo_n "(cached) " >&6 6087else 6088 ac_check_lib_save_LIBS=$LIBS 6089LIBS="-ldnet_stub $LIBS" 6090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6091/* end confdefs.h. */ 6092 6093/* Override any GCC internal prototype to avoid an error. 6094 Use char because int might match the return type of a GCC 6095 builtin and then its argument prototype would still apply. */ 6096#ifdef __cplusplus 6097extern "C" 6098#endif 6099char dnet_ntoa (); 6100int 6101main () 6102{ 6103return dnet_ntoa (); 6104 ; 6105 return 0; 6106} 6107_ACEOF 6108if ac_fn_c_try_link "$LINENO"; then : 6109 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6110else 6111 ac_cv_lib_dnet_stub_dnet_ntoa=no 6112fi 6113rm -f core conftest.err conftest.$ac_objext \ 6114 conftest$ac_exeext conftest.$ac_ext 6115LIBS=$ac_check_lib_save_LIBS 6116fi 6117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6118$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 6119if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 6120 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6121fi 6122 6123 fi 6124fi 6125rm -f core conftest.err conftest.$ac_objext \ 6126 conftest$ac_exeext conftest.$ac_ext 6127 LIBS="$ac_xsave_LIBS" 6128 6129 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6130 # to get the SysV transport functions. 6131 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6132 # needs -lnsl. 6133 # The nsl library prevents programs from opening the X display 6134 # on Irix 5.2, according to T.E. Dickey. 6135 # The functions gethostbyname, getservbyname, and inet_addr are 6136 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6137 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 6138if test "x$ac_cv_func_gethostbyname" = xyes; then : 6139 6140fi 6141 6142 if test $ac_cv_func_gethostbyname = no; then 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 6144$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 6145if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 6146 $as_echo_n "(cached) " >&6 6147else 6148 ac_check_lib_save_LIBS=$LIBS 6149LIBS="-lnsl $LIBS" 6150cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6151/* end confdefs.h. */ 6152 6153/* Override any GCC internal prototype to avoid an error. 6154 Use char because int might match the return type of a GCC 6155 builtin and then its argument prototype would still apply. */ 6156#ifdef __cplusplus 6157extern "C" 6158#endif 6159char gethostbyname (); 6160int 6161main () 6162{ 6163return gethostbyname (); 6164 ; 6165 return 0; 6166} 6167_ACEOF 6168if ac_fn_c_try_link "$LINENO"; then : 6169 ac_cv_lib_nsl_gethostbyname=yes 6170else 6171 ac_cv_lib_nsl_gethostbyname=no 6172fi 6173rm -f core conftest.err conftest.$ac_objext \ 6174 conftest$ac_exeext conftest.$ac_ext 6175LIBS=$ac_check_lib_save_LIBS 6176fi 6177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 6178$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 6179if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 6180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6181fi 6182 6183 if test $ac_cv_lib_nsl_gethostbyname = no; then 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 6185$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 6186if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 6187 $as_echo_n "(cached) " >&6 6188else 6189 ac_check_lib_save_LIBS=$LIBS 6190LIBS="-lbsd $LIBS" 6191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6192/* end confdefs.h. */ 6193 6194/* Override any GCC internal prototype to avoid an error. 6195 Use char because int might match the return type of a GCC 6196 builtin and then its argument prototype would still apply. */ 6197#ifdef __cplusplus 6198extern "C" 6199#endif 6200char gethostbyname (); 6201int 6202main () 6203{ 6204return gethostbyname (); 6205 ; 6206 return 0; 6207} 6208_ACEOF 6209if ac_fn_c_try_link "$LINENO"; then : 6210 ac_cv_lib_bsd_gethostbyname=yes 6211else 6212 ac_cv_lib_bsd_gethostbyname=no 6213fi 6214rm -f core conftest.err conftest.$ac_objext \ 6215 conftest$ac_exeext conftest.$ac_ext 6216LIBS=$ac_check_lib_save_LIBS 6217fi 6218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 6219$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 6220if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 6221 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6222fi 6223 6224 fi 6225 fi 6226 6227 # lieder@skyler.mavd.honeywell.com says without -lsocket, 6228 # socket/setsockopt and other routines are undefined under SCO ODT 6229 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6230 # on later versions), says Simon Leinen: it contains gethostby* 6231 # variants that don't use the name server (or something). -lsocket 6232 # must be given before -lnsl if both are needed. We assume that 6233 # if connect needs -lnsl, so does gethostbyname. 6234 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 6235if test "x$ac_cv_func_connect" = xyes; then : 6236 6237fi 6238 6239 if test $ac_cv_func_connect = no; then 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 6241$as_echo_n "checking for connect in -lsocket... " >&6; } 6242if ${ac_cv_lib_socket_connect+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 ac_check_lib_save_LIBS=$LIBS 6246LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6248/* end confdefs.h. */ 6249 6250/* Override any GCC internal prototype to avoid an error. 6251 Use char because int might match the return type of a GCC 6252 builtin and then its argument prototype would still apply. */ 6253#ifdef __cplusplus 6254extern "C" 6255#endif 6256char connect (); 6257int 6258main () 6259{ 6260return connect (); 6261 ; 6262 return 0; 6263} 6264_ACEOF 6265if ac_fn_c_try_link "$LINENO"; then : 6266 ac_cv_lib_socket_connect=yes 6267else 6268 ac_cv_lib_socket_connect=no 6269fi 6270rm -f core conftest.err conftest.$ac_objext \ 6271 conftest$ac_exeext conftest.$ac_ext 6272LIBS=$ac_check_lib_save_LIBS 6273fi 6274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 6275$as_echo "$ac_cv_lib_socket_connect" >&6; } 6276if test "x$ac_cv_lib_socket_connect" = xyes; then : 6277 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6278fi 6279 6280 fi 6281 6282 # Guillermo Gomez says -lposix is necessary on A/UX. 6283 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 6284if test "x$ac_cv_func_remove" = xyes; then : 6285 6286fi 6287 6288 if test $ac_cv_func_remove = no; then 6289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 6290$as_echo_n "checking for remove in -lposix... " >&6; } 6291if ${ac_cv_lib_posix_remove+:} false; then : 6292 $as_echo_n "(cached) " >&6 6293else 6294 ac_check_lib_save_LIBS=$LIBS 6295LIBS="-lposix $LIBS" 6296cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297/* end confdefs.h. */ 6298 6299/* Override any GCC internal prototype to avoid an error. 6300 Use char because int might match the return type of a GCC 6301 builtin and then its argument prototype would still apply. */ 6302#ifdef __cplusplus 6303extern "C" 6304#endif 6305char remove (); 6306int 6307main () 6308{ 6309return remove (); 6310 ; 6311 return 0; 6312} 6313_ACEOF 6314if ac_fn_c_try_link "$LINENO"; then : 6315 ac_cv_lib_posix_remove=yes 6316else 6317 ac_cv_lib_posix_remove=no 6318fi 6319rm -f core conftest.err conftest.$ac_objext \ 6320 conftest$ac_exeext conftest.$ac_ext 6321LIBS=$ac_check_lib_save_LIBS 6322fi 6323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 6324$as_echo "$ac_cv_lib_posix_remove" >&6; } 6325if test "x$ac_cv_lib_posix_remove" = xyes; then : 6326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6327fi 6328 6329 fi 6330 6331 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6332 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 6333if test "x$ac_cv_func_shmat" = xyes; then : 6334 6335fi 6336 6337 if test $ac_cv_func_shmat = no; then 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 6339$as_echo_n "checking for shmat in -lipc... " >&6; } 6340if ${ac_cv_lib_ipc_shmat+:} false; then : 6341 $as_echo_n "(cached) " >&6 6342else 6343 ac_check_lib_save_LIBS=$LIBS 6344LIBS="-lipc $LIBS" 6345cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6346/* end confdefs.h. */ 6347 6348/* Override any GCC internal prototype to avoid an error. 6349 Use char because int might match the return type of a GCC 6350 builtin and then its argument prototype would still apply. */ 6351#ifdef __cplusplus 6352extern "C" 6353#endif 6354char shmat (); 6355int 6356main () 6357{ 6358return shmat (); 6359 ; 6360 return 0; 6361} 6362_ACEOF 6363if ac_fn_c_try_link "$LINENO"; then : 6364 ac_cv_lib_ipc_shmat=yes 6365else 6366 ac_cv_lib_ipc_shmat=no 6367fi 6368rm -f core conftest.err conftest.$ac_objext \ 6369 conftest$ac_exeext conftest.$ac_ext 6370LIBS=$ac_check_lib_save_LIBS 6371fi 6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 6373$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 6374if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 6375 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6376fi 6377 6378 fi 6379 fi 6380 6381 # Check for libraries that X11R6 Xt/Xaw programs need. 6382 ac_save_LDFLAGS=$LDFLAGS 6383 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 6384 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 6385 # check for ICE first), but we must link in the order -lSM -lICE or 6386 # we get undefined symbols. So assume we have SM if we have ICE. 6387 # These have to be linked with before -lX11, unlike the other 6388 # libraries we check for below, so use a different variable. 6389 # John Interrante, Karl Berry 6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 6391$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 6392if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 6393 $as_echo_n "(cached) " >&6 6394else 6395 ac_check_lib_save_LIBS=$LIBS 6396LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6397cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6398/* end confdefs.h. */ 6399 6400/* Override any GCC internal prototype to avoid an error. 6401 Use char because int might match the return type of a GCC 6402 builtin and then its argument prototype would still apply. */ 6403#ifdef __cplusplus 6404extern "C" 6405#endif 6406char IceConnectionNumber (); 6407int 6408main () 6409{ 6410return IceConnectionNumber (); 6411 ; 6412 return 0; 6413} 6414_ACEOF 6415if ac_fn_c_try_link "$LINENO"; then : 6416 ac_cv_lib_ICE_IceConnectionNumber=yes 6417else 6418 ac_cv_lib_ICE_IceConnectionNumber=no 6419fi 6420rm -f core conftest.err conftest.$ac_objext \ 6421 conftest$ac_exeext conftest.$ac_ext 6422LIBS=$ac_check_lib_save_LIBS 6423fi 6424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6425$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 6426if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 6427 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6428fi 6429 6430 LDFLAGS=$ac_save_LDFLAGS 6431 6432fi 6433 6434if test "$no_x" = yes; then 6435 XLIBS=NONE 6436else 6437 if test -n "${x_includes}"; then 6438 XLOCKINC="-I${x_includes} ${XLOCKINC}" 6439 XMLOCKINC="-I${x_includes} ${XMLOCKINC}" 6440 if test "${CXX}" = "g++" ; then 6441 XLOCKINC="-isystem ${x_includes} ${XLOCKINC}" 6442 XMLOCKINC="-isystem ${x_includes} ${XMLOCKINC}" 6443 fi 6444 fi 6445 XLIBS="${x_libraries}" 6446 if test -n "${x_libraries}"; then 6447 XLOCK_LDFLAGS="/usr/lib:${x_libraries}" 6448 XMLOCK_LDFLAGS="/usr/lib:${x_libraries}" 6449 XLOCKLIBPATHS="-L${x_libraries} ${XLOCKLIBPATHS}" 6450 XMLOCKLIBPATHS="-L${x_libraries} ${XMLOCKLIBPATHS}" 6451 fi 6452 XLOCKLIBS="${X_PRE_LIBS} ${X_EXTRA_LIBS} ${XLOCKLIBS}" 6453 case "${canonical}" in 6454 *-*-sco* ) 6455 XLOCKLIBS="${X_PRE_LIBS} ${XLOCKLIBS} ${X_EXTRA_LIBS}" 6456 ;; 6457 *-*-cygwin* ) 6458 XLOCKLIBS="${XLOCKLIBS} -lcrypt" 6459 XMLOCKLIBS="-lSM -lICE ${XMLOCKLIBS}" 6460 ;; 6461 esac 6462 XMLOCKLIBS="-lXt ${XMLOCKLIBS}" 6463# if you need regex and regcmp 6464# XMLOCKLIBS="-lXt ${XMLOCKLIBS} -lgen" 6465fi 6466 6467# Try and find the app-defaults directory. 6468 6469 6470 6471 6472 6473 6474 6475 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X app-defaults directory" >&5 6477$as_echo_n "checking for X app-defaults directory... " >&6; } 6478if ${ac_cv_x_app_defaults+:} false; then : 6479 $as_echo_n "(cached) " >&6 6480else 6481 6482 rm -fr conftestdir 6483 if mkdir conftestdir; then 6484 cd conftestdir 6485 # Make sure to not put "make" in the Imakefile rules, since we grep it out. 6486 cat > Imakefile <<'EOF' 6487acfindx: 6488 @echo 'ac_x_app_defaults="${XAPPLOADDIR}"' 6489EOF 6490 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 6491 # GNU make sometimes prints "make[1]: Entering...", which'd confuse us. 6492 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 6493 fi 6494 cd .. 6495 rm -fr conftestdir 6496 fi 6497 # Look for the directory under a standard set of common directories. 6498 # Check X11 before X11Rn because it's often a symlink to the current release. 6499 for ac_dir in \ 6500 /lib/X11/app-defaults \ 6501 /lib/app-defaults \ 6502 /lib/X11R6.5.1/app-defaults \ 6503 /lib/X11R6.5.1/X11/app-defaults \ 6504 /lib/X11R6.4/app-defaults \ 6505 /lib/X11R6.4/X11/app-defaults \ 6506 /lib/X11R6.3/app-defaults \ 6507 /lib/X11R6.3/X11/app-defaults \ 6508 /lib/X11R6.2/app-defaults \ 6509 /lib/X11R6.2/X11/app-defaults \ 6510 /lib/X11R6.1/app-defaults \ 6511 /lib/X11R6.1/X11/app-defaults \ 6512 /lib/X11R6/app-defaults \ 6513 /lib/X11R6/X11/app-defaults \ 6514 /lib/X11R5/app-defaults \ 6515 /lib/X11R5/X11/app-defaults \ 6516 /lib/X11R4/app-defaults \ 6517 /lib/X11R4/X11/app-defaults \ 6518 ; \ 6519 do 6520 found="" 6521 if test -d "${prefix}$ac_dir"; then 6522 ac_x_app_defaults=\\\$\\\{prefix\\\}$ac_dir 6523 found="1" 6524 break 6525 fi 6526 done 6527 if test -z "$found"; then 6528 for ac_dir in \ 6529 /usr/X11/lib/app-defaults \ 6530 /lib/X11R6.5.1/lib/app-defaults \ 6531 /lib/X11R6.5.1/lib/X11/app-defaults \ 6532 /lib/X11R6.4/lib/app-defaults \ 6533 /lib/X11R6.4/lib/X11/app-defaults \ 6534 /usr/X11R6.3/lib/app-defaults \ 6535 /usr/X11R6.3/lib/X11/app-defaults \ 6536 /usr/X11R6.2/lib/app-defaults \ 6537 /usr/X11R6.2/lib/X11/app-defaults \ 6538 /usr/X11R6.1/lib/app-defaults \ 6539 /usr/X11R6.1/lib/X11/app-defaults \ 6540 /usr/X11R6/lib/app-defaults \ 6541 /usr/X11R6/lib/X11/app-defaults \ 6542 /usr/X11R5/lib/app-defaults \ 6543 /usr/X11R5/lib/X11/app-defaults \ 6544 /usr/X11R4/lib/app-defaults \ 6545 /usr/X11R4/lib/X11/app-defaults \ 6546 \ 6547 /usr/lib/X11/app-defaults \ 6548 /usr/lib/X11R6.5.1/app-defaults \ 6549 /usr/lib/X11R6.4/app-defaults \ 6550 /usr/lib/X11R6.3/app-defaults \ 6551 /usr/lib/X11R6.2/app-defaults \ 6552 /usr/lib/X11R6.1/app-defaults \ 6553 /usr/lib/X11R6/app-defaults \ 6554 /usr/lib/X11R5/app-defaults \ 6555 /usr/lib/X11R4/app-defaults \ 6556 \ 6557 /usr/local/X11/lib/app-defaults \ 6558 /usr/remote/X11/lib/app-defaults \ 6559 /usr/local/X11R6.5.1/lib/app-defaults \ 6560 /usr/local/X11R6.5.1/lib/X11/app-defaults \ 6561 /usr/local/X11R6.4/lib/app-defaults \ 6562 /usr/local/X11R6.4/lib/X11/app-defaults \ 6563 /usr/local/X11R6.3/lib/app-defaults \ 6564 /usr/local/X11R6.3/lib/X11/app-defaults \ 6565 /usr/local/X11R6.2/lib/app-defaults \ 6566 /usr/local/X11R6.2/lib/X11/app-defaults \ 6567 /usr/local/X11R6.1/lib/app-defaults \ 6568 /usr/local/X11R6.1/lib/X11/app-defaults \ 6569 /usr/local/X11R6/lib/app-defaults \ 6570 /usr/local/X11R6/lib/X11/app-defaults \ 6571 /usr/local/X11R5/lib/app-defaults \ 6572 /usr/local/X11R5/lib/X11/app-defaults \ 6573 /usr/local/X11R4/lib/app-defaults \ 6574 /usr/local/X11R4/lib/X11/app-defaults \ 6575 \ 6576 /usr/local/lib/X11/app-defaults \ 6577 /usr/remote/lib/X11/app-defaults \ 6578 /usr/local/lib/X11R6.5.1/app-defaults \ 6579 /usr/local/lib/X11R6.5.1/X11/app-defaults \ 6580 /usr/local/lib/X11R6.4/app-defaults \ 6581 /usr/local/lib/X11R6.4/X11/app-defaults \ 6582 /usr/local/lib/X11R6.3/app-defaults \ 6583 /usr/local/lib/X11R6.3/X11/app-defaults \ 6584 /usr/local/lib/X11R6.2/app-defaults \ 6585 /usr/local/lib/X11R6.2/X11/app-defaults \ 6586 /usr/local/lib/X11R6.1/app-defaults \ 6587 /usr/local/lib/X11R6.1/X11/app-defaults \ 6588 /usr/local/lib/X11R6/app-defaults \ 6589 /usr/local/lib/X11R6/X11/app-defaults \ 6590 /usr/local/lib/X11R5/app-defaults \ 6591 /usr/local/lib/X11R5/X11/app-defaults \ 6592 /usr/local/lib/X11R4/app-defaults \ 6593 /usr/local/lib/X11R4/X11/app-defaults \ 6594 \ 6595 /usr/X386/lib/X11/app-defaults \ 6596 /usr/x386/lib/X11/app-defaults \ 6597 /usr/XFree86/lib/X11/app-defaults \ 6598 /usr/pkg/lib/app-defaults \ 6599 \ 6600 /usr/lib/X11/app-defaults \ 6601 /usr/unsupported/lib/X11/app-defaults \ 6602 /usr/athena/lib/X11/app-defaults \ 6603 /usr/local/x11r5/lib/X11/app-defaults \ 6604 /usr/lpp/Xamples/lib/X11/app-defaults \ 6605 /lib/usr/lib/X11/app-defaults \ 6606 /usr/local/lib/app-defaults \ 6607 /usr/remote/lib/app-defaults \ 6608 \ 6609 /usr/openwin/lib/app-defaults \ 6610 /usr/openwin/lib/X11/app-defaults \ 6611 /usr/openwin/share/lib/app-defaults \ 6612 /usr/openwin/share/lib/X11/app-defaults \ 6613 \ 6614 /X11R6.5.1/lib/app-defaults \ 6615 /X11R6.4/lib/app-defaults \ 6616 /X11R6.3/lib/app-defaults \ 6617 /X11R6.2/lib/app-defaults \ 6618 /X11R6.1/lib/app-defaults \ 6619 /X11R6/lib/app-defaults \ 6620 /X11R5/lib/app-defaults \ 6621 /X11R4/lib/app-defaults \ 6622 ; \ 6623 do 6624 if test -d "$ac_dir"; then 6625 ac_x_app_defaults=$ac_dir 6626 break 6627 fi 6628 done 6629 fi 6630 6631 if test x"$ac_x_app_defaults" = x; then 6632 ac_cv_x_app_defaults="/usr/lib/X11/app-defaults" 6633 else 6634 # Record where we found app-defaults for the cache. 6635 ac_cv_x_app_defaults="$ac_x_app_defaults" 6636 fi 6637fi 6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_x_app_defaults" >&5 6639$as_echo "$ac_cv_x_app_defaults" >&6; } 6640 eval ac_x_app_defaults="$ac_cv_x_app_defaults" 6641 6642APPDEFAULTS=$ac_x_app_defaults 6643 6644 6645# Check whether --with-includes was given. 6646if test "${with_includes+set}" = set; then : 6647 withval=$with_includes; 6648fi 6649 6650case "x$withval" in 6651x/*|x.*) 6652 extra_include=$withval 6653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $extra_include to include search path for following packages" >&5 6654$as_echo "adding $extra_include to include search path for following packages" >&6; } 6655 if test ! -d $extra_include; then 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Directory $extra_include does not exist" >&5 6657$as_echo "Warning: Directory $extra_include does not exist" >&6; } 6658 fi 6659 ;; 6660*) 6661 extra_include="" 6662 ;; 6663esac 6664 6665 6666# Check whether --with-libraries was given. 6667if test "${with_libraries+set}" = set; then : 6668 withval=$with_libraries; 6669fi 6670 6671case "x$withval" in 6672x/*|x.*) 6673 extra_lib=$withval 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: adding $extra_lib to library search path for following packages" >&5 6675$as_echo "adding $extra_lib to library search path for following packages" >&6; } 6676 if test ! -d $extra_lib; then 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Directory $extra_lib does not exist" >&5 6678$as_echo "Warning: Directory $extra_lib does not exist" >&6; } 6679 fi 6680 ;; 6681*) 6682 extra_lib="" 6683 ;; 6684esac 6685 6686 6687 6688 6689 6690 6691motif_includes=NONE 6692motif_libraries=NONE 6693 6694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif" >&5 6695$as_echo_n "checking for Motif... " >&6; } 6696 6697# Check whether --with-motif was given. 6698if test "${with_motif+set}" = set; then : 6699 withval=$with_motif; 6700fi 6701 6702if test "x$with_motif" = xno; then 6703 no_motif=yes 6704else 6705 if test "x$motif_includes" != xNONE && test "x$motif_libraries" != xNONE; then 6706 no_motif= 6707 else 6708if ${ac_cv_path_motif+:} false; then : 6709 $as_echo_n "(cached) " >&6 6710else 6711 # One or both of these vars are not set, and there is no cached value. 6712no_motif=yes 6713test -z "$motif_direct_test_library" && motif_direct_test_library=Xm 6714test -z "$motif_direct_test_function" && motif_direct_test_function=XmCreatePushButton 6715test -z "$motif_direct_test_include" && motif_direct_test_include=Xm/Xm.h 6716 for ac_dir in \ 6717 /usr/include/Motif1.2 \ 6718 /usr/Motif1.2/include \ 6719 \ 6720 /usr/motif/include \ 6721 \ 6722 /usr/X11R6.5.1/include \ 6723 /usr/X11R6.4/include \ 6724 /usr/X11R6.3/include \ 6725 /usr/X11R6.2/include \ 6726 /usr/X11R6.1/include \ 6727 /usr/X11R6/include \ 6728 /usr/X11R5/include \ 6729 /usr/X11R4/include \ 6730 \ 6731 /usr/include/X11R6.5.1 \ 6732 /usr/include/X11R6.4 \ 6733 /usr/include/X11R6.3 \ 6734 /usr/include/X11R6.2 \ 6735 /usr/include/X11R6.1 \ 6736 /usr/include/X11R6 \ 6737 /usr/include/X11R5 \ 6738 /usr/include/X11R4 \ 6739 \ 6740 /usr/local/X11R6.5.1/include \ 6741 /usr/local/X11R6.4/include \ 6742 /usr/local/X11R6.3/include \ 6743 /usr/local/X11R6.2/include \ 6744 /usr/local/X11R6.1/include \ 6745 /usr/local/X11R6/include \ 6746 /usr/local/X11R5/include \ 6747 /usr/local/X11R4/include \ 6748 \ 6749 /usr/local/include/X11R6.5.1 \ 6750 /usr/local/include/X11R6.4 \ 6751 /usr/local/include/X11R6.3 \ 6752 /usr/local/include/X11R6.2 \ 6753 /usr/local/include/X11R6.1 \ 6754 /usr/local/include/X11R6 \ 6755 /usr/local/include/X11R5 \ 6756 /usr/local/include/X11R4 \ 6757 \ 6758 /usr/X11/include \ 6759 /usr/include/X11 \ 6760 /usr/local/X11/include \ 6761 /usr/local/include/X11 \ 6762 \ 6763 /usr/X386/include \ 6764 /usr/x386/include \ 6765 /usr/XFree86/include/X11 \ 6766 /usr/pkg/include \ 6767 \ 6768 /usr/dt/include \ 6769 \ 6770 /usr/local/include \ 6771 /usr/remote/include \ 6772 /usr/include \ 6773 /usr/unsupported/include \ 6774 /usr/athena/include \ 6775 /usr/local/x11r5/include \ 6776 /usr/lpp/Xamples/include \ 6777 $extra_include \ 6778 ; \ 6779 do 6780 if test -r "$ac_dir/$motif_direct_test_include"; then 6781 no_motif= ac_motif_includes=$ac_dir 6782 break 6783 fi 6784 done 6785 6786# Check for the libraries. 6787# See if we find them without any special options. 6788# Do not add to $LIBS permanently. 6789ac_save_LIBS="$LIBS" 6790LIBS="-l$motif_direct_test_library $LIBS" 6791# First see if replacing the include by lib works. 6792for ac_dir in `echo "$ac_motif_includes" | sed s/include/lib/` \ 6793 /usr/lib/Motif1.2 \ 6794 /usr/Motif1.2/lib \ 6795 \ 6796 /usr/motif/lib \ 6797 \ 6798 /usr/X11R6.5.1/lib \ 6799 /usr/X11R6.4/lib \ 6800 /usr/X11R6.3/lib \ 6801 /usr/X11R6.2/lib \ 6802 /usr/X11R6.1/lib \ 6803 /usr/X11R6/lib \ 6804 /usr/X11R5/lib \ 6805 /usr/X11R4/lib \ 6806 \ 6807 /usr/lib/X11R6.5.1 \ 6808 /usr/lib/X11R6.4 \ 6809 /usr/lib/X11R6.3 \ 6810 /usr/lib/X11R6.2 \ 6811 /usr/lib/X11R6.1 \ 6812 /usr/lib/X11R6 \ 6813 /usr/lib/X11R5 \ 6814 /usr/lib/X11R4 \ 6815 \ 6816 /usr/local/X11R6.5.1/lib \ 6817 /usr/local/X11R6.4/lib \ 6818 /usr/local/X11R6.3/lib \ 6819 /usr/local/X11R6.2/lib \ 6820 /usr/local/X11R6.1/lib \ 6821 /usr/local/X11R6/lib \ 6822 /usr/local/X11R5/lib \ 6823 /usr/local/X11R4/lib \ 6824 \ 6825 /usr/local/lib/X11R6.5.1 \ 6826 /usr/local/lib/X11R6.4 \ 6827 /usr/local/lib/X11R6.3 \ 6828 /usr/local/lib/X11R6.2 \ 6829 /usr/local/lib/X11R6.1 \ 6830 /usr/local/lib/X11R6 \ 6831 /usr/local/lib/X11R5 \ 6832 /usr/local/lib/X11R4 \ 6833 \ 6834 /usr/X11/lib \ 6835 /usr/lib/X11 \ 6836 /usr/local/X11/lib \ 6837 \ 6838 /usr/X386/lib \ 6839 /usr/x386/lib \ 6840 /usr/XFree86/lib/X11 \ 6841 /usr/pkg/lib \ 6842 \ 6843 /usr/lib \ 6844 /usr/local/lib \ 6845 /usr/remote/lib \ 6846 /usr/unsupported/lib \ 6847 /usr/athena/lib \ 6848 /usr/local/x11r5/lib \ 6849 /usr/lpp/Xamples/lib \ 6850 $extra_lib \ 6851 ; \ 6852do 6853 for ac_extension in a so sl; do 6854 if test -r $ac_dir/lib${motif_direct_test_library}.$ac_extension; then 6855 no_motif= ac_motif_libraries=$ac_dir 6856 break 2 6857 fi 6858 done 6859done 6860LIBS="$ac_save_LIBS" 6861 6862if test "$no_motif" = yes; then 6863 ac_cv_path_motif="no_motif=yes" 6864else 6865 ac_cv_path_motif="no_motif= ac_motif_includes=$ac_motif_includes ac_motif_libraries=$ac_motif_libraries" 6866fi 6867fi 6868 fi 6869 eval "$ac_cv_path_motif" 6870fi # with_motif != no 6871 6872if test "$no_motif" = yes; then 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6874$as_echo "no" >&6; } 6875 XMLOCK="" 6876 INSTALL_XMLOCK="" 6877 UNINSTALL_XMLOCK="" 6878else 6879 XMLOCKLIBS="-lXm ${XMLOCKLIBS}" 6880 XMLOCK="xmlock" 6881 INSTALL_XMLOCK="install_xmlock" 6882 UNINSTALL_XMLOCK="uninstall_xmlock" 6883 test "x$motif_includes" = xNONE && motif_includes=$ac_motif_includes 6884 test "x$motif_libraries" = xNONE && motif_libraries=$ac_motif_libraries 6885 ac_cv_path_motif="no_motif= ac_motif_includes=$motif_includes ac_motif_libraries=$motif_libraries" 6886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $motif_libraries, headers $motif_includes" >&5 6887$as_echo "libraries $motif_libraries, headers $motif_includes" >&6; } 6888fi 6889 6890 6891if test "x$motif_libraries" != x && test "x$motif_libraries" != xNONE ; then 6892 XMLOCK_LDFLAGS="${XMLOCK_LDFLAGS}:$motif_libraries" 6893 XMLOCKLIBPATHS="${XMLOCKLIBPATHS} -L$motif_libraries" 6894fi 6895if test "x$motif_includes" != x && test "x$motif_includes" != xNONE ; then 6896 XMLOCKINC="${XMLOCKINC} -I$motif_includes" 6897fi 6898 6899 6900 6901 6902 6903 6904editres_includes=NONE 6905editres_libraries=NONE 6906 6907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Editres" >&5 6908$as_echo_n "checking for Editres... " >&6; } 6909 6910# Check whether --with-editres was given. 6911if test "${with_editres+set}" = set; then : 6912 withval=$with_editres; 6913fi 6914 6915if test "x$with_editres" = xno; then 6916 no_editres=yes 6917else 6918 if test "x$editres_includes" != xNONE && test "x$editres_libraries" != xNONE; then 6919 no_editres= 6920 else 6921if ${ac_cv_path_editres+:} false; then : 6922 $as_echo_n "(cached) " >&6 6923else 6924 # One or both of these vars are not set, and there is no cached value. 6925no_editres=yes 6926test -z "$editres_direct_test_library" && editres_direct_test_library=Xmu 6927test -z "$editres_direct_test_function" && editres_direct_test_function=_XEditResCheckMessages 6928test -z "$editres_direct_test_include" && editres_direct_test_include=X11/Xmu/Editres.h 6929 for ac_dir in \ 6930 /usr/include/X11R6.5.1 \ 6931 /usr/include/X11R6.4 \ 6932 /usr/include/X11R6.3 \ 6933 /usr/include/X11R6.2 \ 6934 /usr/include/X11R6.1 \ 6935 /usr/X11R6/include \ 6936 /usr/X11R5/include \ 6937 /usr/X11R4/include \ 6938 /usr/X11/include \ 6939 \ 6940 /usr/include/X11 \ 6941 /usr/include/X11R6.5.1 \ 6942 /usr/include/X11R6.4 \ 6943 /usr/include/X11R6.3 \ 6944 /usr/include/X11R6.2 \ 6945 /usr/include/X11R6.1 \ 6946 /usr/include/X11R6 \ 6947 /usr/include/X11R5 \ 6948 /usr/include/X11R4 \ 6949 \ 6950 /usr/local/X11/include \ 6951 /usr/local/X11R6.5.1/include \ 6952 /usr/local/X11R6.4/include \ 6953 /usr/local/X11R6.3/include \ 6954 /usr/local/X11R6.2/include \ 6955 /usr/local/X11R6.1/include \ 6956 /usr/local/X11R6/include \ 6957 /usr/local/X11R5/include \ 6958 /usr/local/X11R4/include \ 6959 \ 6960 /usr/local/include/X11 \ 6961 /usr/local/include/X11R6.5.1 \ 6962 /usr/local/include/X11R6.4 \ 6963 /usr/local/include/X11R6.3 \ 6964 /usr/local/include/X11R6.2 \ 6965 /usr/local/include/X11R6.1 \ 6966 /usr/local/include/X11R6 \ 6967 /usr/local/include/X11R5 \ 6968 /usr/local/include/X11R4 \ 6969 \ 6970 /usr/X386/include \ 6971 /usr/x386/include \ 6972 /usr/XFree86/include \ 6973 /usr/pkg/include \ 6974 \ 6975 /usr/local/include \ 6976 /usr/remote/include \ 6977 /usr/include \ 6978 /usr/unsupported/include \ 6979 /usr/athena/include \ 6980 /usr/local/x11r5/include \ 6981 /usr/lpp/Xamples/include \ 6982 \ 6983 /usr/openwin/include \ 6984 /usr/openwin/share/include \ 6985 $extra_include \ 6986 ; \ 6987 do 6988 if test -r "$ac_dir/$editres_direct_test_include"; then 6989 no_editres= ac_editres_includes=$ac_dir 6990 break 6991 fi 6992 done 6993 6994# Check for the libraries. 6995# See if we find them without any special options. 6996# Do not add to $LIBS permanently. 6997ac_save_LIBS="$LIBS" 6998LIBS="-l$editres_direct_test_library $LIBS" 6999# First see if replacing the include by lib works. 7000for ac_dir in `echo "$ac_editres_includes" | sed s/include/lib/` \ 7001 \ 7002 /usr/X11/lib \ 7003 /usr/X11R6.5.1/lib \ 7004 /usr/X11R6.4/lib \ 7005 /usr/X11R6.3/lib \ 7006 /usr/X11R6.2/lib \ 7007 /usr/X11R6.1/lib \ 7008 /usr/X11R6/lib \ 7009 /usr/X11R5/lib \ 7010 /usr/X11R4/lib \ 7011 \ 7012 /usr/lib/X11 \ 7013 /usr/lib/X11R6.5.1 \ 7014 /usr/lib/X11R6.4 \ 7015 /usr/lib/X11R6.3 \ 7016 /usr/lib/X11R6.2 \ 7017 /usr/lib/X11R6.1 \ 7018 /usr/lib/X11R6 \ 7019 /usr/lib/X11R5 \ 7020 /usr/lib/X11R4 \ 7021 \ 7022 /usr/local/X11/lib \ 7023 /usr/local/X11R6.5.1/lib \ 7024 /usr/local/X11R6.4/lib \ 7025 /usr/local/X11R6.3/lib \ 7026 /usr/local/X11R6.2/lib \ 7027 /usr/local/X11R6.1/lib \ 7028 /usr/local/X11R6/lib \ 7029 /usr/local/X11R5/lib \ 7030 /usr/local/X11R4/lib \ 7031 \ 7032 /usr/local/lib/X11 \ 7033 /usr/local/lib/X11R6.5.1 \ 7034 /usr/local/lib/X11R6.4 \ 7035 /usr/local/lib/X11R6.3 \ 7036 /usr/local/lib/X11R6.2 \ 7037 /usr/local/lib/X11R6.1 \ 7038 /usr/local/lib/X11R6 \ 7039 /usr/local/lib/X11R5 \ 7040 /usr/local/lib/X11R4 \ 7041 \ 7042 /usr/X386/lib \ 7043 /usr/x386/lib \ 7044 /usr/XFree86/lib/X11 \ 7045 /usr/pkg/lib \ 7046 \ 7047 /usr/lib \ 7048 /usr/local/lib \ 7049 /usr/remote/lib \ 7050 /usr/unsupported/lib \ 7051 /usr/athena/lib \ 7052 /usr/local/x11r5/lib \ 7053 /usr/lpp/Xamples/lib \ 7054 /lib/usr/lib/X11 \ 7055 \ 7056 /usr/openwin/lib \ 7057 /usr/openwin/share/lib \ 7058 $extra_lib \ 7059 ; \ 7060do 7061 for ac_extension in a so sl; do 7062 if test -r $ac_dir/lib${editres_direct_test_library}.$ac_extension; then 7063 no_editres= ac_editres_libraries=$ac_dir 7064 break 2 7065 fi 7066 done 7067done 7068LIBS="$ac_save_LIBS" 7069 7070if test "$no_editres" = yes; then 7071 ac_cv_path_editres="no_editres=yes" 7072else 7073 ac_cv_path_editres="no_editres= ac_editres_includes=$ac_editres_includes ac_editres_libraries=$ac_editres_libraries" 7074fi 7075fi 7076 fi 7077 eval "$ac_cv_path_editres" 7078fi # with_editres != no 7079 7080if test "$no_editres" = yes; then 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082$as_echo "no" >&6; } 7083else 7084 7085$as_echo "#define USE_XMU 1" >>confdefs.h 7086 7087 XLOCKLIBS="${XLOCKLIBS} -lXmu" 7088 XMLOCKLIBS="-lXmu ${XMLOCKLIBS}" 7089 test "x$editres_includes" = xNONE && editres_includes=$ac_editres_includes 7090 test "x$editres_libraries" = xNONE && editres_libraries=$ac_editres_libraries 7091 ac_cv_path_editres="no_editres= ac_editres_includes=$editres_includes ac_editres_libraries=$editres_libraries" 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $editres_libraries, headers $editres_includes" >&5 7093$as_echo "libraries $editres_libraries, headers $editres_includes" >&6; } 7094fi 7095 7096 7097if test "x$editres_libraries" != x && test "x$editres_libraries" != xNONE ; then 7098 XMLOCK_LDFLAGS="${XMLOCK_LDFLAGS}:$editres_libraries" 7099 XMLOCKLIBPATHS="${XMLOCKLIBPATHS} -L$editres_libraries" 7100fi 7101if test "x$editres_includes" != x && test "x$editres_includes" != xNONE ; then 7102 XMLOCKINC="${XMLOCKINC} -I$editres_includes" 7103fi 7104 7105xpm=no 7106 7107 7108 7109 7110 7111xpm_includes=NONE 7112xpm_libraries=NONE 7113 7114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPM" >&5 7115$as_echo_n "checking for XPM... " >&6; } 7116 7117# Check whether --with-xpm was given. 7118if test "${with_xpm+set}" = set; then : 7119 withval=$with_xpm; 7120fi 7121 7122if test "x$with_xpm" = xno; then 7123 no_xpm=yes 7124else 7125 if test "x$xpm_includes" != xNONE && test "x$xpm_libraries" != xNONE; then 7126 no_xpm= 7127 else 7128if ${ac_cv_path_xpm+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 # One or both of these vars are not set, and there is no cached value. 7132no_xpm=yes 7133test -z "$xpm_direct_test_library" && xpm_direct_test_library=Xpm 7134test -z "$xpm_direct_test_function" && xpm_direct_test_function=XpmCreateImageFromData 7135test -z "$xpm_direct_test_include" && xpm_direct_test_include=X11/xpm.h 7136 for ac_dir in \ 7137 /usr/X11R6.5.1/include \ 7138 /usr/X11R6.4/include \ 7139 /usr/X11R6.3/include \ 7140 /usr/X11R6.2/include \ 7141 /usr/X11R6.1/include \ 7142 /usr/X11R6/include \ 7143 /usr/X11R5/include \ 7144 /usr/X11R4/include \ 7145 /usr/X11/include \ 7146 \ 7147 /usr/include/X11 \ 7148 /usr/include/X11R6.5.1 \ 7149 /usr/include/X11R6.4 \ 7150 /usr/include/X11R6.3 \ 7151 /usr/include/X11R6.2 \ 7152 /usr/include/X11R6.1 \ 7153 /usr/include/X11R6 \ 7154 /usr/include/X11R5 \ 7155 /usr/include/X11R4 \ 7156 \ 7157 /usr/local/X11/include \ 7158 /usr/local/X11R6.5.1/include \ 7159 /usr/local/X11R6.4/include \ 7160 /usr/local/X11R6.3/include \ 7161 /usr/local/X11R6.2/include \ 7162 /usr/local/X11R6.1/include \ 7163 /usr/local/X11R6/include \ 7164 /usr/local/X11R5/include \ 7165 /usr/local/X11R4/include \ 7166 \ 7167 /usr/local/include/X11 \ 7168 /usr/local/include/X11R6.5.1 \ 7169 /usr/local/include/X11R6.4 \ 7170 /usr/local/include/X11R6.3 \ 7171 /usr/local/include/X11R6.2 \ 7172 /usr/local/include/X11R6.1 \ 7173 /usr/local/include/X11R6 \ 7174 /usr/local/include/X11R5 \ 7175 /usr/local/include/X11R4 \ 7176 \ 7177 /usr/X386/include \ 7178 /usr/x386/include \ 7179 /usr/XFree86/include/X11 \ 7180 /usr/pkg/include \ 7181 \ 7182 /usr/local/include \ 7183 /usr/remote/include \ 7184 /usr/include \ 7185 /usr/unsupported/include \ 7186 /usr/athena/include \ 7187 /usr/local/x11r5/include \ 7188 /usr/lpp/Xamples/include \ 7189 \ 7190 /usr/openwin/include \ 7191 /usr/openwin/share/include \ 7192 /usr/openwin/include \ 7193 \ 7194 /usr/include/Vk \ 7195 $extra_include \ 7196 ; \ 7197 do 7198 if test -r "$ac_dir/$xpm_direct_test_include"; then 7199 no_xpm= ac_xpm_includes=$ac_dir 7200 break 7201 fi 7202 done 7203 7204# Check for the libraries. 7205# See if we find them without any special options. 7206# Do not add to $LIBS permanently. 7207ac_save_LIBS="$LIBS" 7208LIBS="-l$xpm_direct_test_library $LIBS" 7209# First see if replacing the include by lib works. 7210for ac_dir in `echo "$ac_xpm_includes" | sed s%/X11$%% | sed s/include/lib/` \ 7211 \ 7212 /usr/X11/lib \ 7213 /usr/X11R6.5.1/lib \ 7214 /usr/X11R6.4/lib \ 7215 /usr/X11R6.3/lib \ 7216 /usr/X11R6.2/lib \ 7217 /usr/X11R6.1/lib \ 7218 /usr/X11R6/lib \ 7219 /usr/X11R5/lib \ 7220 /usr/X11R4/lib \ 7221 \ 7222 /usr/lib/X11 \ 7223 /usr/lib/X11R6.5.1 \ 7224 /usr/lib/X11R6.4 \ 7225 /usr/lib/X11R6.3 \ 7226 /usr/lib/X11R6.2 \ 7227 /usr/lib/X11R6.1 \ 7228 /usr/lib/X11R6 \ 7229 /usr/lib/X11R5 \ 7230 /usr/lib/X11R4 \ 7231 \ 7232 /usr/local/X11/lib \ 7233 /usr/local/X11R6/lib \ 7234 /usr/local/X11R5/lib \ 7235 /usr/local/X11R4/lib \ 7236 \ 7237 /usr/local/lib/X11 \ 7238 /usr/local/X11R6.5.1/lib \ 7239 /usr/local/X11R6.4/lib \ 7240 /usr/local/X11R6.3/lib \ 7241 /usr/local/X11R6.2/lib \ 7242 /usr/local/X11R6.1/lib \ 7243 /usr/local/lib/X11R6 \ 7244 /usr/local/lib/X11R5 \ 7245 /usr/local/lib/X11R4 \ 7246 \ 7247 /usr/X386/lib \ 7248 /usr/x386/lib \ 7249 /usr/XFree86/lib/X11 \ 7250 /usr/pkg/lib \ 7251 \ 7252 /usr/lib \ 7253 /usr/local/lib \ 7254 /usr/remote/lib \ 7255 /usr/unsupported/lib \ 7256 /usr/athena/lib \ 7257 /usr/local/x11r5/lib \ 7258 /usr/lpp/Xamples/lib \ 7259 /lib/usr/lib/X11 \ 7260 \ 7261 /usr/openwin/lib \ 7262 /usr/openwin/share/lib \ 7263 $extra_lib \ 7264 ; \ 7265do 7266 for ac_extension in a so sl; do 7267 if test -r $ac_dir/lib${xpm_direct_test_library}.$ac_extension; then 7268 no_xpm= ac_xpm_libraries=$ac_dir 7269 break 2 7270 fi 7271 done 7272done 7273LIBS="$ac_save_LIBS" 7274 7275if test "$no_xpm" = yes; then 7276 ac_cv_path_xpm="no_xpm=yes" 7277else 7278 ac_cv_path_xpm="no_xpm= ac_xpm_includes=$ac_xpm_includes ac_xpm_libraries=$ac_xpm_libraries" 7279fi 7280fi 7281 fi 7282 eval "$ac_cv_path_xpm" 7283fi # with_xpm != no 7284 7285if test "$no_xpm" = yes; then 7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7287$as_echo "no" >&6; } 7288 XPM="#" 7289else 7290 xpm=yes 7291 7292$as_echo "#define HAVE_XPM 1" >>confdefs.h 7293 7294 XLOCKLIBS="${XLOCKLIBS} -lXpm" 7295 XMLOCKLIBS="-lXpm ${XMLOCKLIBS}" 7296 test "x$xpm_includes" = xNONE && xpm_includes=$ac_xpm_includes 7297 test "x$xpm_libraries" = xNONE && xpm_libraries=$ac_xpm_libraries 7298 ac_cv_path_xpm="no_xpm= ac_xpm_includes=$xpm_includes ac_xpm_libraries=$xpm_libraries" 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $xpm_libraries, headers $xpm_includes" >&5 7300$as_echo "libraries $xpm_libraries, headers $xpm_includes" >&6; } 7301 XPM="" 7302fi 7303 7304 7305if test "x$xpm_libraries" != x && test "x$xpm_libraries" != xNONE ; then 7306 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$xpm_libraries" 7307 XMLOCK_LDFLAGS="${XMLOCK_LDFLAGS}:$xpm_libraries" 7308 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$xpm_libraries" 7309 XMLOCKLIBPATHS="${XMLOCKLIBPATHS} -L$xpm_libraries" 7310fi 7311if test "x$xpm_includes" != x && test "x$xpm_includes" != xNONE ; then 7312 XLOCKINC="${XLOCKINC} -I$xpm_includes" 7313fi 7314 7315png=no 7316 7317 7318 7319 7320 7321png_includes=NONE 7322png_libraries=NONE 7323 7324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5 7325$as_echo_n "checking for LIBPNG... " >&6; } 7326 7327# Check whether --with-libpng was given. 7328if test "${with_libpng+set}" = set; then : 7329 withval=$with_libpng; 7330fi 7331 7332if test "x$with_libpng" = xno; then 7333 no_libpng=yes 7334else 7335 if test "x$png_includes" != xNONE && test "x$png_libraries" != xNONE; then 7336 no_libpng= 7337 else 7338if ${ac_cv_path_png+:} false; then : 7339 $as_echo_n "(cached) " >&6 7340else 7341 # One or both of these vars are not set, and there is no cached value. 7342no_libpng=yes 7343test -z "$png_direct_test_library" && png_direct_test_library=png 7344test -z "$png_direct_test_include" && png_direct_test_include=png.h 7345 for ac_dir in \ 7346 /usr/X11R6.5.1/include \ 7347 /usr/X11R6.4/include \ 7348 /usr/X11R6.3/include \ 7349 /usr/X11R6.2/include \ 7350 /usr/X11R6.1/include \ 7351 /usr/X11R6/include \ 7352 /usr/X11R5/include \ 7353 /usr/X11R4/include \ 7354 /usr/X11/include \ 7355 \ 7356 /usr/include/X11 \ 7357 /usr/include/X11R6.5.1 \ 7358 /usr/include/X11R6.4 \ 7359 /usr/include/X11R6.3 \ 7360 /usr/include/X11R6.2 \ 7361 /usr/include/X11R6.1 \ 7362 /usr/include/X11R6 \ 7363 /usr/include/X11R5 \ 7364 /usr/include/X11R4 \ 7365 \ 7366 /usr/local/X11/include \ 7367 /usr/local/X11R6.5.1/include \ 7368 /usr/local/X11R6.4/include \ 7369 /usr/local/X11R6.3/include \ 7370 /usr/local/X11R6.2/include \ 7371 /usr/local/X11R6.1/include \ 7372 /usr/local/X11R6/include \ 7373 /usr/local/X11R5/include \ 7374 /usr/local/X11R4/include \ 7375 \ 7376 /usr/local/include/X11 \ 7377 /usr/local/include/X11R6.5.1 \ 7378 /usr/local/include/X11R6.4 \ 7379 /usr/local/include/X11R6.3 \ 7380 /usr/local/include/X11R6.2 \ 7381 /usr/local/include/X11R6.1 \ 7382 /usr/local/include/X11R6 \ 7383 /usr/local/include/X11R5 \ 7384 /usr/local/include/X11R4 \ 7385 \ 7386 /usr/X386/include \ 7387 /usr/x386/include \ 7388 /usr/XFree86/include/X11 \ 7389 /usr/pkg/include \ 7390 \ 7391 /usr/local/include \ 7392 /usr/remote/include \ 7393 /usr/include \ 7394 /usr/unsupported/include \ 7395 /usr/athena/include \ 7396 /usr/local/x11r5/include \ 7397 /usr/lpp/Xamples/include \ 7398 \ 7399 /usr/openwin/include \ 7400 /usr/openwin/share/include \ 7401 /usr/openwin/include \ 7402 \ 7403 /usr/include/Vk \ 7404 $extra_include \ 7405 ; \ 7406 do 7407 if test -r "$ac_dir/$png_direct_test_include"; then 7408 no_libpng= ac_png_includes=$ac_dir 7409 break 7410 fi 7411 done 7412 7413# Check for the libraries. 7414# See if we find them without any special options. # Do not add to $LIBS permanently. 7415ac_save_LIBS="$LIBS" 7416LIBS="-l$png_direct_test_library $LIBS" 7417# First see if replacing the include by lib works. 7418for ac_dir in `echo "$ac_png_includes" | sed s/include/lib/` \ 7419 \ 7420 /usr/X11/lib \ 7421 /usr/X11R6.5.1/lib \ 7422 /usr/X11R6.4/lib \ 7423 /usr/X11R6.3/lib \ 7424 /usr/X11R6.2/lib \ 7425 /usr/X11R6.1/lib \ 7426 /usr/X11R6/lib \ 7427 /usr/X11R5/lib \ 7428 /usr/X11R4/lib \ 7429 \ 7430 /usr/lib/X11 \ 7431 /usr/lib/X11R6.5.1 \ 7432 /usr/lib/X11R6.4 \ 7433 /usr/lib/X11R6.3 \ 7434 /usr/lib/X11R6.2 \ 7435 /usr/lib/X11R6.1 \ 7436 /usr/lib/X11R6 \ 7437 /usr/lib/X11R5 \ 7438 /usr/lib/X11R4 \ 7439 \ 7440 /usr/local/X11/lib \ 7441 /usr/local/X11R6/lib \ 7442 /usr/local/X11R5/lib \ 7443 /usr/local/X11R4/lib \ 7444 \ 7445 /usr/local/lib/X11 \ 7446 /usr/local/X11R6.5.1/lib \ 7447 /usr/local/X11R6.4/lib \ 7448 /usr/local/X11R6.3/lib \ 7449 /usr/local/X11R6.2/lib \ 7450 /usr/local/X11R6.1/lib \ 7451 /usr/local/lib/X11R6 \ 7452 /usr/local/lib/X11R5 \ 7453 /usr/local/lib/X11R4 \ 7454 \ 7455 /usr/X386/lib \ 7456 /usr/x386/lib \ 7457 /usr/XFree86/lib/X11 \ 7458 /usr/pkg/lib \ 7459 \ 7460 /usr/lib \ 7461 /usr/local/lib \ 7462 /usr/remote/lib \ 7463 /usr/unsupported/lib \ 7464 /usr/athena/lib \ 7465 /usr/local/x11r5/lib \ 7466 /usr/lpp/Xamples/lib \ 7467 /lib/usr/lib/X11 \ 7468 \ 7469 /usr/openwin/lib \ 7470 /usr/openwin/share/lib \ 7471 $extra_lib \ 7472 ; \ 7473do 7474 for ac_extension in a so sl; do 7475 if test -r $ac_dir/lib${png_direct_test_library}.$ac_extension; then 7476 no_libpng= ac_png_libraries=$ac_dir 7477 break 2 7478 fi 7479 done 7480done 7481LIBS="$ac_save_LIBS" 7482 7483if test "$no_libpng" = yes; then 7484 ac_cv_path_png="no_libpng=yes" 7485else 7486 ac_cv_path_png="no_libpng= ac_png_includes=$ac_png_includes ac_png_libraries=$ac_png_libraries" 7487fi 7488fi 7489 fi 7490 eval "$ac_cv_path_png" 7491fi # with_libpng != no 7492 7493if test "$no_libpng" = yes; then 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7495$as_echo "no" >&6; } 7496 LIBPNG="#" 7497else 7498 libpng=yes 7499 7500$as_echo "#define HAVE_LIBPNG 1" >>confdefs.h 7501 7502 XLOCKLIBS="${XLOCKLIBS} -lpng" 7503 test "x$png_includes" = xNONE && png_includes=$ac_png_includes 7504 test "x$png_libraries" = xNONE && png_libraries=$ac_png_libraries 7505 ac_cv_path_png="no_libpng= ac_png_includes=$png_includes ac_png_libraries=$png_libraries" 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $png_libraries, headers $png_includes" >&5 7507$as_echo "libraries $png_libraries, headers $png_includes" >&6; } 7508 LIBPNG="" 7509fi 7510 7511 7512if test "x$png_libraries" != x && test "x$png_libraries" != xNONE ; then 7513 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$png_libraries" 7514 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$png_libraries" 7515fi 7516if test "x$png_includes" != x && test "x$png_includes" != xNONE ; then 7517 XLOCKINC="${XLOCKINC} -I$png_includes" 7518fi 7519 7520 7521 7522 7523 7524magick_includes=NONE 7525magick_libraries=NONE 7526 7527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAGICK" >&5 7528$as_echo_n "checking for MAGICK... " >&6; } 7529 7530# Check whether --with-magick was given. 7531if test "${with_magick+set}" = set; then : 7532 withval=$with_magick; 7533fi 7534 7535 7536# Check whether --with-magick_config was given. 7537if test "${with_magick_config+set}" = set; then : 7538 withval=$with_magick_config; 7539fi 7540 7541 7542# Check whether --with-magick_prefix was given. 7543if test "${with_magick_prefix+set}" = set; then : 7544 withval=$with_magick_prefix; 7545fi 7546 7547 7548# Check whether --with-magick_includes was given. 7549if test "${with_magick_includes+set}" = set; then : 7550 withval=$with_magick_includes; 7551fi 7552 7553 7554# Check whether --with-magick_libraries was given. 7555if test "${with_magick_libraries+set}" = set; then : 7556 withval=$with_magick_libraries; 7557fi 7558 7559if test "x$with_magick" = xno; then 7560 no_magick=yes 7561else 7562 if test "x$magick_includes" != xNONE && test "x$magick_libraries" != xNONE; then 7563 no_magick= 7564 if test "x$magick_config" = "x"; then 7565 if test "x$magick_prefix" != "x"; then 7566 magick_config="$magick_prefix/bin/Magick-config" 7567 else 7568 magick_config="Magick-config" 7569 fi 7570 else 7571 if test "x$magick_prefix" = "x"; then 7572 magick_prefix=`($magick_config --prefix) 2>/dev/null` 7573 fi 7574 fi 7575 else 7576 if test "x$magick_config" = "x"; then 7577 if test "x$magick_prefix" != "x"; then 7578 magick_config="$magick_prefix/bin/Magick-config" 7579 else 7580 magick_config="Magick-config" 7581 fi 7582 else 7583 if test "x$magick_prefix" = "x"; then 7584 magick_prefix=`($magick_config --prefix) 2>/dev/null` 7585 fi 7586 fi 7587if ${ac_cv_path_magick+:} false; then : 7588 $as_echo_n "(cached) " >&6 7589else 7590 # One or both of these vars are not set, and there is no cached value. 7591no_magick=yes 7592no_magick_config=yes 7593if test "x$magick_prefix" != "x"; then 7594 ac_magick_prefix=$magick_prefix 7595 ac_magick_includes=$ac_magick_prefix/include 7596 ac_magick_libraries=$ac_magick_prefix/lib 7597 no_magick="ac_magick_config=$ac_magick_config ac_magick_prefix=$ac_magick_prefix ac_magick_includes=$ac_magick_includes ac_magick_libraries=$ac_magick_libraries" 7598else 7599 ac_magick_config="$magick_config" 7600 ac_magick_prefix=`($magick_config --prefix) 2>/dev/null` 7601 if test $? != 0; then 7602 no_magick=yes 7603 no_magick_config=yes 7604 ac_magick_config="" 7605 ac_magick_prefix="" 7606 else 7607 no_magick= 7608 no_magick_config= 7609 ac_magick_includes=$ac_magick_prefix/include 7610 ac_magick_libraries=$ac_magick_prefix/lib 7611 fi 7612fi 7613if test "$no_magick" = yes; then 7614 ac_cv_path_magick="no_magick=yes" 7615else 7616 ac_cv_path_magick="no_magick= ac_magick_config=\"$ac_magick_config\" ac_magick_prefix=\"$ac_magick_prefix\" ac_magick_includes=\"$ac_magick_includes\" ac_magick_libraries=\"$ac_magick_libraries\"" 7617fi 7618fi 7619 fi 7620 eval "$ac_cv_path_magick" 7621fi # with_magick != no 7622 7623if test "$no_magick_config" = yes; then 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no Magick-config" >&5 7625$as_echo "no Magick-config" >&6; } 7626else 7627 if test "$no_magick" = yes; then 7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7629$as_echo "no" >&6; } 7630 else 7631 7632$as_echo "#define USE_MAGICK 1" >>confdefs.h 7633 7634 test "x$magick_config" = xNONE && magick_config=$ac_magick_config 7635 test "x$magick_prefix" = xNONE && magick_prefix=$ac_magick_prefix 7636 test "x$magick_includes" = xNONE && magick_includes=$ac_magick_includes 7637 test "x$magick_libraries" = xNONE && magick_libraries=$ac_magick_libraries 7638 ac_cv_path_magick="no_magick= ac_magick_config=$magick_config ac_magick_prefix=$magick_prefix ac_magick_includes=$magick_includes ac_magick_libraries=$magick_libraries" 7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $magick_libraries, headers $magick_includes" >&5 7640$as_echo "libraries $magick_libraries, headers $magick_includes" >&6; } 7641 fi 7642fi 7643 7644 7645if test "x$magick_libraries" != x && test "x$magick_libraries" != xNONE ; then 7646 XLOCKLIBS="${XLOCKLIBS} `$magick_config --libs`" 7647 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$magick_libraries" 7648 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$magick_libraries" 7649fi 7650if test "x$magick_includes" != x && test "x$magick_includes" != xNONE ; then 7651 XLOCKINC="${XLOCKINC} -I$magick_includes `$magick_config --cppflags`" 7652fi 7653 7654gltt=no 7655 7656 7657 7658 7659 7660gltt_includes=NONE 7661gltt_libraries=NONE 7662 7663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLTT" >&5 7664$as_echo_n "checking for GLTT... " >&6; } 7665 7666# Check whether --with-gltt was given. 7667if test "${with_gltt+set}" = set; then : 7668 withval=$with_gltt; 7669fi 7670 7671if test "x$with_gltt" = xno; then 7672 no_gltt=yes 7673else 7674 if test "x$gltt_includes" != xNONE && test "x$gltt_libraries" != xNONE; then 7675 no_gltt= 7676 else 7677if ${ac_cv_path_gltt+:} false; then : 7678 $as_echo_n "(cached) " >&6 7679else 7680 # One or both of these vars are not set, and there is no cached value. 7681no_gltt=yes 7682test -z "$gltt_direct_test_library" && gltt_direct_test_library=gltt 7683# test -z "$gltt_direct_test_function" && gltt_direct_test_function=glttCreateImageFromData 7684test -z "$gltt_direct_test_include" && gltt_direct_test_include=gltt/GLTTFont.h 7685 for ac_dir in \ 7686 /usr/X11R6.5.1/include \ 7687 /usr/X11R6.4/include \ 7688 /usr/X11R6.3/include \ 7689 /usr/X11R6.2/include \ 7690 /usr/X11R6.1/include \ 7691 /usr/X11R6/include \ 7692 /usr/X11R5/include \ 7693 /usr/X11R4/include \ 7694 /usr/X11/include \ 7695 \ 7696 /usr/include/X11 \ 7697 /usr/include/X11R6.5.1 \ 7698 /usr/include/X11R6.4 \ 7699 /usr/include/X11R6.3 \ 7700 /usr/include/X11R6.2 \ 7701 /usr/include/X11R6.1 \ 7702 /usr/include/X11R6 \ 7703 /usr/include/X11R5 \ 7704 /usr/include/X11R4 \ 7705 \ 7706 /usr/local/X11/include \ 7707 /usr/local/X11R6.5.1/include \ 7708 /usr/local/X11R6.4/include \ 7709 /usr/local/X11R6.3/include \ 7710 /usr/local/X11R6.2/include \ 7711 /usr/local/X11R6.1/include \ 7712 /usr/local/X11R6/include \ 7713 /usr/local/X11R5/include \ 7714 /usr/local/X11R4/include \ 7715 \ 7716 /usr/local/include/X11 \ 7717 /usr/local/include/X11R6.5.1 \ 7718 /usr/local/include/X11R6.4 \ 7719 /usr/local/include/X11R6.3 \ 7720 /usr/local/include/X11R6.2 \ 7721 /usr/local/include/X11R6.1 \ 7722 /usr/local/include/X11R6 \ 7723 /usr/local/include/X11R5 \ 7724 /usr/local/include/X11R4 \ 7725 \ 7726 /usr/X386/include \ 7727 /usr/x386/include \ 7728 /usr/XFree86/include/X11 \ 7729 /usr/pkg/include \ 7730 \ 7731 /usr/local/include \ 7732 /usr/remote/include \ 7733 /usr/include \ 7734 /usr/unsupported/include \ 7735 /usr/athena/include \ 7736 /usr/local/x11r5/include \ 7737 /usr/lpp/Xamples/include \ 7738 \ 7739 /usr/openwin/include \ 7740 /usr/openwin/share/include \ 7741 /usr/openwin/include \ 7742 \ 7743 $extra_include \ 7744 ; \ 7745 do 7746 if test -r "$ac_dir/$gltt_direct_test_include"; then 7747 no_gltt= ac_gltt_includes=$ac_dir 7748 break 7749 fi 7750 done 7751 7752# Check for the libraries. 7753# See if we find them without any special options. 7754# Do not add to $LIBS permanently. 7755ac_save_LIBS="$LIBS" 7756LIBS="-l$gltt_direct_test_library $LIBS" 7757# First see if replacing the include by lib works. 7758for ac_dir in `echo "$ac_gltt_includes" | sed s%/X11$%% | sed s/include/lib/` \ 7759 \ 7760 /usr/X11/lib \ 7761 /usr/X11R6.5.1/lib \ 7762 /usr/X11R6.4/lib \ 7763 /usr/X11R6.3/lib \ 7764 /usr/X11R6.2/lib \ 7765 /usr/X11R6.1/lib \ 7766 /usr/X11R6/lib \ 7767 /usr/X11R5/lib \ 7768 /usr/X11R4/lib \ 7769 \ 7770 /usr/lib/X11 \ 7771 /usr/lib/X11R6.5.1 \ 7772 /usr/lib/X11R6.4 \ 7773 /usr/lib/X11R6.3 \ 7774 /usr/lib/X11R6.2 \ 7775 /usr/lib/X11R6.1 \ 7776 /usr/lib/X11R6 \ 7777 /usr/lib/X11R5 \ 7778 /usr/lib/X11R4 \ 7779 \ 7780 /usr/local/X11/lib \ 7781 /usr/local/X11R6/lib \ 7782 /usr/local/X11R5/lib \ 7783 /usr/local/X11R4/lib \ 7784 \ 7785 /usr/local/lib/X11 \ 7786 /usr/local/X11R6.5.1/lib \ 7787 /usr/local/X11R6.4/lib \ 7788 /usr/local/X11R6.3/lib \ 7789 /usr/local/X11R6.2/lib \ 7790 /usr/local/X11R6.1/lib \ 7791 /usr/local/lib/X11R6 \ 7792 /usr/local/lib/X11R5 \ 7793 /usr/local/lib/X11R4 \ 7794 \ 7795 /usr/X386/lib \ 7796 /usr/x386/lib \ 7797 /usr/XFree86/lib/X11 \ 7798 /usr/pkg/lib \ 7799 \ 7800 /usr/lib \ 7801 /usr/local/lib \ 7802 /usr/remote/lib \ 7803 /usr/unsupported/lib \ 7804 /usr/athena/lib \ 7805 /usr/local/x11r5/lib \ 7806 /usr/lpp/Xamples/lib \ 7807 /lib/usr/lib/X11 \ 7808 \ 7809 /usr/openwin/lib \ 7810 /usr/openwin/share/lib \ 7811 $extra_lib \ 7812 ; \ 7813do 7814 for ac_extension in a so sl; do 7815 if test -r $ac_dir/lib${gltt_direct_test_library}.$ac_extension; then 7816 no_gltt= ac_gltt_libraries=$ac_dir 7817 break 2 7818 fi 7819 done 7820done 7821LIBS="$ac_save_LIBS" 7822 7823if test "$no_gltt" = yes; then 7824 ac_cv_path_gltt="no_gltt=yes" 7825else 7826 ac_cv_path_gltt="no_gltt= ac_gltt_includes=$ac_gltt_includes ac_gltt_libraries=$ac_gltt_libraries" 7827fi 7828fi 7829 fi 7830 eval "$ac_cv_path_gltt" 7831fi # with_gltt != no 7832 7833if test "$no_gltt" = yes; then 7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7835$as_echo "no" >&6; } 7836 GLTT="#" 7837else 7838 gltt=yes 7839 7840$as_echo "#define HAVE_GLTT 1" >>confdefs.h 7841 7842 XLOCKLIBS="${XLOCKLIBS} -lgltt" 7843 test "x$gltt_includes" = xNONE && gltt_includes=$ac_gltt_includes 7844 test "x$gltt_libraries" = xNONE && gltt_libraries=$ac_gltt_libraries 7845 ac_cv_path_gltt="no_gltt= ac_gltt_includes=$gltt_includes ac_gltt_libraries=$gltt_libraries" 7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $gltt_libraries, headers $gltt_includes" >&5 7847$as_echo "libraries $gltt_libraries, headers $gltt_includes" >&6; } 7848 GLTT="" 7849fi 7850 7851 7852if test "x$gltt_libraries" != x && test "x$gltt_libraries" != xNONE ; then 7853 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$gltt_libraries" 7854 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$gltt_libraries" 7855fi 7856if test "x$gltt_includes" != x && test "x$gltt_includes" != xNONE ; then 7857 XLOCKINC="${XLOCKINC} -I$gltt_includes" 7858fi 7859 7860ttf=no 7861 7862 7863 7864 7865 7866ttf_includes=NONE 7867ttf_libraries=NONE 7868 7869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TTF" >&5 7870$as_echo_n "checking for TTF... " >&6; } 7871 7872# Check whether --with-ttf was given. 7873if test "${with_ttf+set}" = set; then : 7874 withval=$with_ttf; 7875fi 7876 7877if test "x$with_ttf" = xno; then 7878 no_ttf=yes 7879else 7880 if test "x$ttf_includes" != xNONE && test "x$ttf_libraries" != xNONE; then 7881 no_ttf= 7882 else 7883if ${ac_cv_path_ttf+:} false; then : 7884 $as_echo_n "(cached) " >&6 7885else 7886 # One or both of these vars are not set, and there is no cached value. 7887no_ttf=yes 7888test -z "$ttf_direct_test_library" && ttf_direct_test_library=ttf 7889test -z "$ttf_direct_test_function" && ttf_direct_test_function=TT_Init_FreeType 7890test -z "$ttf_direct_test_include" && ttf_direct_test_include=gltt/FTFace.h 7891 for ac_dir in \ 7892 /usr/X11R6.5.1/include \ 7893 /usr/X11R6.4/include \ 7894 /usr/X11R6.3/include \ 7895 /usr/X11R6.2/include \ 7896 /usr/X11R6.1/include \ 7897 /usr/X11R6/include \ 7898 /usr/X11R5/include \ 7899 /usr/X11R4/include \ 7900 /usr/X11/include \ 7901 \ 7902 /usr/include/X11 \ 7903 /usr/include/X11R6.5.1 \ 7904 /usr/include/X11R6.4 \ 7905 /usr/include/X11R6.3 \ 7906 /usr/include/X11R6.2 \ 7907 /usr/include/X11R6.1 \ 7908 /usr/include/X11R6 \ 7909 /usr/include/X11R5 \ 7910 /usr/include/X11R4 \ 7911 \ 7912 /usr/local/X11/include \ 7913 /usr/local/X11R6.5.1/include \ 7914 /usr/local/X11R6.4/include \ 7915 /usr/local/X11R6.3/include \ 7916 /usr/local/X11R6.2/include \ 7917 /usr/local/X11R6.1/include \ 7918 /usr/local/X11R6/include \ 7919 /usr/local/X11R5/include \ 7920 /usr/local/X11R4/include \ 7921 \ 7922 /usr/local/include/X11 \ 7923 /usr/local/include/X11R6.5.1 \ 7924 /usr/local/include/X11R6.4 \ 7925 /usr/local/include/X11R6.3 \ 7926 /usr/local/include/X11R6.2 \ 7927 /usr/local/include/X11R6.1 \ 7928 /usr/local/include/X11R6 \ 7929 /usr/local/include/X11R5 \ 7930 /usr/local/include/X11R4 \ 7931 \ 7932 /usr/X386/include \ 7933 /usr/x386/include \ 7934 /usr/XFree86/include/X11 \ 7935 /usr/pkg/include \ 7936 \ 7937 /usr/local/include \ 7938 /usr/remote/include \ 7939 /usr/include/X11 \ 7940 /usr/unsupported/include \ 7941 /usr/athena/include \ 7942 /usr/local/x11r5/include \ 7943 /usr/lpp/Xamples/include \ 7944 \ 7945 /usr/openwin/include \ 7946 /usr/openwin/share/include \ 7947 /usr/openwin/include \ 7948 \ 7949 $extra_include \ 7950 ; \ 7951 do 7952 if test -r "$ac_dir/$ttf_direct_test_include"; then 7953 no_ttf= ac_ttf_includes=$ac_dir 7954 break 7955 fi 7956 done 7957 7958# Check for the libraries. 7959# See if we find them without any special options. 7960# Do not add to $LIBS permanently. 7961ac_save_LIBS="$LIBS" 7962LIBS="-l$ttf_direct_test_library $LIBS" 7963# First see if replacing the include by lib works. 7964for ac_dir in `echo "$ac_ttf_includes" | sed s%/X11$%% | sed s/include/lib/` \ 7965 \ 7966 /usr/X11/lib \ 7967 /usr/X11R6.5.1/lib \ 7968 /usr/X11R6.4/lib \ 7969 /usr/X11R6.3/lib \ 7970 /usr/X11R6.2/lib \ 7971 /usr/X11R6.1/lib \ 7972 /usr/X11R6/lib \ 7973 /usr/X11R5/lib \ 7974 /usr/X11R4/lib \ 7975 \ 7976 /usr/lib/X11 \ 7977 /usr/lib/X11R6.5.1 \ 7978 /usr/lib/X11R6.4 \ 7979 /usr/lib/X11R6.3 \ 7980 /usr/lib/X11R6.2 \ 7981 /usr/lib/X11R6.1 \ 7982 /usr/lib/X11R6 \ 7983 /usr/lib/X11R5 \ 7984 /usr/lib/X11R4 \ 7985 \ 7986 /usr/local/X11/lib \ 7987 /usr/local/X11R6/lib \ 7988 /usr/local/X11R5/lib \ 7989 /usr/local/X11R4/lib \ 7990 \ 7991 /usr/local/lib/X11 \ 7992 /usr/local/X11R6.5.1/lib \ 7993 /usr/local/X11R6.4/lib \ 7994 /usr/local/X11R6.3/lib \ 7995 /usr/local/X11R6.2/lib \ 7996 /usr/local/X11R6.1/lib \ 7997 /usr/local/lib/X11R6 \ 7998 /usr/local/lib/X11R5 \ 7999 /usr/local/lib/X11R4 \ 8000 \ 8001 /usr/X386/lib \ 8002 /usr/x386/lib \ 8003 /usr/XFree86/lib/X11 \ 8004 /usr/pkg/lib \ 8005 \ 8006 /usr/lib \ 8007 /usr/local/lib \ 8008 /usr/remote/lib \ 8009 /usr/unsupported/lib \ 8010 /usr/athena/lib \ 8011 /usr/local/x11r5/lib \ 8012 /usr/lpp/Xamples/lib \ 8013 /lib/usr/lib/X11 \ 8014 \ 8015 /usr/openwin/lib \ 8016 /usr/openwin/share/lib \ 8017 $extra_lib \ 8018 ; \ 8019do 8020 for ac_extension in a so sl; do 8021 if test -r $ac_dir/lib${ttf_direct_test_library}.$ac_extension; then 8022 no_ttf= ac_ttf_libraries=$ac_dir 8023 break 2 8024 fi 8025 done 8026done 8027LIBS="$ac_save_LIBS" 8028 8029if test "$no_ttf" = yes; then 8030 ac_cv_path_ttf="no_ttf=yes" 8031else 8032 ac_cv_path_ttf="no_ttf= ac_ttf_includes=$ac_ttf_includes ac_ttf_libraries=$ac_ttf_libraries" 8033fi 8034fi 8035 fi 8036 eval "$ac_cv_path_ttf" 8037fi # with_ttf != no 8038 8039if test "$no_ttf" = yes; then 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8041$as_echo "no" >&6; } 8042 TTF="#" 8043else 8044 ttf=yes 8045 8046$as_echo "#define HAVE_TTF 1" >>confdefs.h 8047 8048 if test "x$prefix" = "xNONE"; then 8049 8050cat >>confdefs.h <<_ACEOF 8051#define DEF_TTFONT "/usr/lib/X11/xlock/fonts/" 8052_ACEOF 8053 8054 else 8055 8056cat >>confdefs.h <<_ACEOF 8057#define DEF_TTFONT "${prefix}/lib/X11/xlock/fonts/" 8058_ACEOF 8059 8060 fi 8061 XLOCKLIBS="${XLOCKLIBS} -lttf" 8062 test "x$ttf_includes" = xNONE && ttf_includes=$ac_ttf_includes 8063 test "x$ttf_libraries" = xNONE && ttf_libraries=$ac_ttf_libraries 8064 ac_cv_path_ttf="no_ttf= ac_ttf_includes=$ttf_includes ac_ttf_libraries=$ttf_libraries" 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $ttf_libraries, headers $ttf_includes" >&5 8066$as_echo "libraries $ttf_libraries, headers $ttf_includes" >&6; } 8067 TTF="" 8068fi 8069 8070 8071if test "x$ttf_libraries" != x && test "x$ttf_libraries" != xNONE ; then 8072 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$ttf_libraries" 8073 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$ttf_libraries" 8074fi 8075if test "x$ttf_includes" != x && test "x$ttf_includes" != xNONE ; then 8076 XLOCKINC="${XLOCKINC} -I$ttf_includes" 8077fi 8078 8079ftgl=no 8080 8081 8082 8083 8084 8085ftgl_includes=NONE 8086ftgl_libraries=NONE 8087 8088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FTGL" >&5 8089$as_echo_n "checking for FTGL... " >&6; } 8090 8091# Check whether --with-ftgl was given. 8092if test "${with_ftgl+set}" = set; then : 8093 withval=$with_ftgl; 8094fi 8095 8096if test "x$with_ftgl" = xno; then 8097 no_ftgl=yes 8098else 8099 if test "x$ftgl_includes" != xNONE && test "x$ftgl_libraries" != xNONE; then 8100 no_ftgl= 8101 else 8102if ${ac_cv_path_ftgl+:} false; then : 8103 $as_echo_n "(cached) " >&6 8104else 8105 # One or both of these vars are not set, and there is no cached value. 8106no_ftgl=yes 8107test -z "$ftgl_direct_test_library" && ftgl_direct_test_library=ftgl 8108# test -z "$ftgl_direct_test_function" && ftgl_direct_test_function=ftglCreateImageFromData 8109test -z "$ftgl_direct_test_include" && ftgl_direct_test_include=FTGL/FTFont.h 8110 for ac_dir in \ 8111 /usr/X11R6.5.1/include \ 8112 /usr/X11R6.4/include \ 8113 /usr/X11R6.3/include \ 8114 /usr/X11R6.2/include \ 8115 /usr/X11R6.1/include \ 8116 /usr/X11R6/include \ 8117 /usr/X11R5/include \ 8118 /usr/X11R4/include \ 8119 /usr/X11/include \ 8120 \ 8121 /usr/include/X11 \ 8122 /usr/include/X11R6.5.1 \ 8123 /usr/include/X11R6.4 \ 8124 /usr/include/X11R6.3 \ 8125 /usr/include/X11R6.2 \ 8126 /usr/include/X11R6.1 \ 8127 /usr/include/X11R6 \ 8128 /usr/include/X11R5 \ 8129 /usr/include/X11R4 \ 8130 \ 8131 /usr/local/X11/include \ 8132 /usr/local/X11R6.5.1/include \ 8133 /usr/local/X11R6.4/include \ 8134 /usr/local/X11R6.3/include \ 8135 /usr/local/X11R6.2/include \ 8136 /usr/local/X11R6.1/include \ 8137 /usr/local/X11R6/include \ 8138 /usr/local/X11R5/include \ 8139 /usr/local/X11R4/include \ 8140 \ 8141 /usr/local/include/X11 \ 8142 /usr/local/include/X11R6.5.1 \ 8143 /usr/local/include/X11R6.4 \ 8144 /usr/local/include/X11R6.3 \ 8145 /usr/local/include/X11R6.2 \ 8146 /usr/local/include/X11R6.1 \ 8147 /usr/local/include/X11R6 \ 8148 /usr/local/include/X11R5 \ 8149 /usr/local/include/X11R4 \ 8150 \ 8151 /usr/X386/include \ 8152 /usr/x386/include \ 8153 /usr/XFree86/include/X11 \ 8154 /usr/pkg/include \ 8155 \ 8156 /usr/local/include \ 8157 /usr/remote/include \ 8158 /usr/include \ 8159 /usr/unsupported/include \ 8160 /usr/athena/include \ 8161 /usr/local/x11r5/include \ 8162 /usr/lpp/Xamples/include \ 8163 \ 8164 /usr/openwin/include \ 8165 /usr/openwin/share/include \ 8166 /usr/openwin/include \ 8167 \ 8168 $extra_include \ 8169 ; \ 8170 do 8171 if test -r "$ac_dir/$ftgl_direct_test_include"; then 8172 no_ftgl= ac_ftgl_includes=$ac_dir 8173 break 8174 fi 8175 done 8176 8177# Check for the libraries. 8178# See if we find them without any special options. 8179# Do not add to $LIBS permanently. 8180ac_save_LIBS="$LIBS" 8181LIBS="-l$ftgl_direct_test_library $LIBS" 8182# First see if replacing the include by lib works. 8183for ac_dir in `echo "$ac_ftgl_includes" | sed s%/X11$%% | sed s/include/lib/` \ 8184 \ 8185 /usr/X11/lib \ 8186 /usr/X11R6.5.1/lib \ 8187 /usr/X11R6.4/lib \ 8188 /usr/X11R6.3/lib \ 8189 /usr/X11R6.2/lib \ 8190 /usr/X11R6.1/lib \ 8191 /usr/X11R6/lib \ 8192 /usr/X11R5/lib \ 8193 /usr/X11R4/lib \ 8194 \ 8195 /usr/lib/X11 \ 8196 /usr/lib/X11R6.5.1 \ 8197 /usr/lib/X11R6.4 \ 8198 /usr/lib/X11R6.3 \ 8199 /usr/lib/X11R6.2 \ 8200 /usr/lib/X11R6.1 \ 8201 /usr/lib/X11R6 \ 8202 /usr/lib/X11R5 \ 8203 /usr/lib/X11R4 \ 8204 \ 8205 /usr/local/X11/lib \ 8206 /usr/local/X11R6/lib \ 8207 /usr/local/X11R5/lib \ 8208 /usr/local/X11R4/lib \ 8209 \ 8210 /usr/local/lib/X11 \ 8211 /usr/local/X11R6.5.1/lib \ 8212 /usr/local/X11R6.4/lib \ 8213 /usr/local/X11R6.3/lib \ 8214 /usr/local/X11R6.2/lib \ 8215 /usr/local/X11R6.1/lib \ 8216 /usr/local/lib/X11R6 \ 8217 /usr/local/lib/X11R5 \ 8218 /usr/local/lib/X11R4 \ 8219 \ 8220 /usr/X386/lib \ 8221 /usr/x386/lib \ 8222 /usr/XFree86/lib/X11 \ 8223 /usr/pkg/lib \ 8224 \ 8225 /usr/lib \ 8226 /usr/local/lib \ 8227 /usr/remote/lib \ 8228 /usr/unsupported/lib \ 8229 /usr/athena/lib \ 8230 /usr/local/x11r5/lib \ 8231 /usr/lpp/Xamples/lib \ 8232 /lib/usr/lib/X11 \ 8233 \ 8234 /usr/openwin/lib \ 8235 /usr/openwin/share/lib \ 8236 $extra_lib \ 8237 ; \ 8238do 8239 for ac_extension in a so sl; do 8240 if test -r $ac_dir/lib${ftgl_direct_test_library}.$ac_extension; then 8241 no_ftgl= ac_ftgl_libraries=$ac_dir 8242 break 2 8243 fi 8244 done 8245done 8246LIBS="$ac_save_LIBS" 8247 8248if test "$no_ftgl" = yes; then 8249 ac_cv_path_ftgl="no_ftgl=yes" 8250else 8251 ac_cv_path_ftgl="no_ftgl= ac_ftgl_includes=$ac_ftgl_includes ac_ftgl_libraries=$ac_ftgl_libraries" 8252fi 8253fi 8254 fi 8255 eval "$ac_cv_path_ftgl" 8256fi # with_ftgl != no 8257 8258if test "$no_ftgl" = yes; then 8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8260$as_echo "no" >&6; } 8261 FTGL="#" 8262else 8263 ftgl=yes 8264 8265$as_echo "#define HAVE_FTGL 1" >>confdefs.h 8266 8267 XLOCKLIBS="${XLOCKLIBS} -lftgl" 8268 test "x$ftgl_includes" = xNONE && ftgl_includes=$ac_ftgl_includes 8269 test "x$ftgl_libraries" = xNONE && ftgl_libraries=$ac_ftgl_libraries 8270 ac_cv_path_ftgl="no_ftgl= ac_ftgl_includes=$ftgl_includes ac_ftgl_libraries=$ftgl_libraries" 8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $ftgl_libraries, headers $ftgl_includes" >&5 8272$as_echo "libraries $ftgl_libraries, headers $ftgl_includes" >&6; } 8273 FTGL="" 8274fi 8275 8276 8277if test "x$ftgl_libraries" != x && test "x$ftgl_libraries" != xNONE ; then 8278 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$ftgl_libraries" 8279 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$ftgl_libraries" 8280fi 8281if test "x$ftgl_includes" != x && test "x$ftgl_includes" != xNONE ; then 8282 XLOCKINC="${XLOCKINC} -I$ftgl_includes" 8283fi 8284 8285freetype=no 8286 8287 8288 8289 8290 8291freetype_includes=NONE 8292freetype_libraries=NONE 8293 8294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5 8295$as_echo_n "checking for FREETYPE2... " >&6; } 8296 8297# Check whether --with-freetype was given. 8298if test "${with_freetype+set}" = set; then : 8299 withval=$with_freetype; 8300fi 8301 8302if test "x$with_freetype" = xno; then 8303 no_freetype=yes 8304else 8305 if test "x$freetype_includes" != xNONE && test "x$freetype_libraries" != xNONE; then 8306 no_freetype= 8307 else 8308if ${ac_cv_path_freetype+:} false; then : 8309 $as_echo_n "(cached) " >&6 8310else 8311 # One or both of these vars are not set, and there is no cached value. 8312no_freetype=yes 8313test -z "$freetype_direct_test_library" && freetype_direct_test_library=freetype 8314test -z "$freetype_direct_test_function" && freetype_direct_test_function=FT_Init_FreeType 8315test -z "$freetype_direct_test_include" && freetype_direct_test_include=freetype2/freetype.h 8316 for ac_dir in \ 8317 /usr/X11R6.5.1/include \ 8318 /usr/X11R6.4/include \ 8319 /usr/X11R6.3/include \ 8320 /usr/X11R6.2/include \ 8321 /usr/X11R6.1/include \ 8322 /usr/X11R6/include \ 8323 /usr/X11R5/include \ 8324 /usr/X11R4/include \ 8325 /usr/X11/include \ 8326 \ 8327 /usr/include/X11 \ 8328 /usr/include/X11R6.5.1 \ 8329 /usr/include/X11R6.4 \ 8330 /usr/include/X11R6.3 \ 8331 /usr/include/X11R6.2 \ 8332 /usr/include/X11R6.1 \ 8333 /usr/include/X11R6 \ 8334 /usr/include/X11R5 \ 8335 /usr/include/X11R4 \ 8336 \ 8337 /usr/local/X11/include \ 8338 /usr/local/X11R6.5.1/include \ 8339 /usr/local/X11R6.4/include \ 8340 /usr/local/X11R6.3/include \ 8341 /usr/local/X11R6.2/include \ 8342 /usr/local/X11R6.1/include \ 8343 /usr/local/X11R6/include \ 8344 /usr/local/X11R5/include \ 8345 /usr/local/X11R4/include \ 8346 \ 8347 /usr/local/include/X11 \ 8348 /usr/local/include/X11R6.5.1 \ 8349 /usr/local/include/X11R6.4 \ 8350 /usr/local/include/X11R6.3 \ 8351 /usr/local/include/X11R6.2 \ 8352 /usr/local/include/X11R6.1 \ 8353 /usr/local/include/X11R6 \ 8354 /usr/local/include/X11R5 \ 8355 /usr/local/include/X11R4 \ 8356 \ 8357 /usr/X386/include \ 8358 /usr/x386/include \ 8359 /usr/XFree86/include/X11 \ 8360 /usr/pkg/include \ 8361 \ 8362 /usr/include \ 8363 /usr/local/include \ 8364 /usr/remote/include \ 8365 /usr/include/X11 \ 8366 /usr/unsupported/include \ 8367 /usr/athena/include \ 8368 /usr/local/x11r5/include \ 8369 /usr/lpp/Xamples/include \ 8370 \ 8371 /usr/openwin/include \ 8372 /usr/openwin/share/include \ 8373 /usr/openwin/include \ 8374 \ 8375 $extra_include \ 8376 ; \ 8377 do 8378 if test -r "$ac_dir/$freetype_direct_test_include"; then 8379 no_freetype= ac_freetype_includes=$ac_dir/freetype2 8380 break 8381 fi 8382 done 8383 8384# Check for the libraries. 8385# See if we find them without any special options. 8386# Do not add to $LIBS permanently. 8387ac_save_LIBS="$LIBS" 8388LIBS="-l$freetype_direct_test_library $LIBS" 8389# First see if replacing the include by lib works. 8390for ac_dir in `echo "$ac_freetype_includes" | sed s%/X11$%% | sed s/include/lib/` \ 8391 \ 8392 /usr/X11/lib \ 8393 /usr/X11R6.5.1/lib \ 8394 /usr/X11R6.4/lib \ 8395 /usr/X11R6.3/lib \ 8396 /usr/X11R6.2/lib \ 8397 /usr/X11R6.1/lib \ 8398 /usr/X11R6/lib \ 8399 /usr/X11R5/lib \ 8400 /usr/X11R4/lib \ 8401 \ 8402 /usr/lib/X11 \ 8403 /usr/lib/X11R6.5.1 \ 8404 /usr/lib/X11R6.4 \ 8405 /usr/lib/X11R6.3 \ 8406 /usr/lib/X11R6.2 \ 8407 /usr/lib/X11R6.1 \ 8408 /usr/lib/X11R6 \ 8409 /usr/lib/X11R5 \ 8410 /usr/lib/X11R4 \ 8411 \ 8412 /usr/local/X11/lib \ 8413 /usr/local/X11R6/lib \ 8414 /usr/local/X11R5/lib \ 8415 /usr/local/X11R4/lib \ 8416 \ 8417 /usr/local/lib/X11 \ 8418 /usr/local/X11R6.5.1/lib \ 8419 /usr/local/X11R6.4/lib \ 8420 /usr/local/X11R6.3/lib \ 8421 /usr/local/X11R6.2/lib \ 8422 /usr/local/X11R6.1/lib \ 8423 /usr/local/lib/X11R6 \ 8424 /usr/local/lib/X11R5 \ 8425 /usr/local/lib/X11R4 \ 8426 \ 8427 /usr/X386/lib \ 8428 /usr/x386/lib \ 8429 /usr/XFree86/lib/X11 \ 8430 /usr/pkg/lib \ 8431 \ 8432 /usr/lib \ 8433 /usr/local/lib \ 8434 /usr/remote/lib \ 8435 /usr/unsupported/lib \ 8436 /usr/athena/lib \ 8437 /usr/local/x11r5/lib \ 8438 /usr/lpp/Xamples/lib \ 8439 /lib/usr/lib/X11 \ 8440 \ 8441 /usr/openwin/lib \ 8442 /usr/openwin/share/lib \ 8443 $extra_lib \ 8444 ; \ 8445do 8446 for ac_extension in a so sl; do 8447 if test -r $ac_dir/lib${freetype_direct_test_library}.$ac_extension; then 8448 no_freetype= ac_freetype_libraries=$ac_dir 8449 break 2 8450 fi 8451 done 8452done 8453LIBS="$ac_save_LIBS" 8454 8455if test "$no_freetype" = yes; then 8456 ac_cv_path_freetype="no_freetype=yes" 8457else 8458 ac_cv_path_freetype="no_freetype= ac_freetype_includes=$ac_freetype_includes ac_freetype_libraries=$ac_freetype_libraries" 8459fi 8460fi 8461 fi 8462 eval "$ac_cv_path_freetype" 8463fi # with_freetype != no 8464 8465if test "$no_freetype" = yes; then 8466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8467$as_echo "no" >&6; } 8468 FREETYPE="#" 8469else 8470 freetype=yes 8471 8472$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h 8473 8474 if test "x$prefix" = "xNONE"; then 8475 8476cat >>confdefs.h <<_ACEOF 8477#define DEF_TTFONT "/usr/lib/X11/xlock/fonts/" 8478_ACEOF 8479 8480 else 8481 8482cat >>confdefs.h <<_ACEOF 8483#define DEF_TTFONT "${prefix}/lib/X11/xlock/fonts/" 8484_ACEOF 8485 8486 fi 8487 XLOCKLIBS="${XLOCKLIBS} -lfreetype" 8488 test "x$freetype_includes" = xNONE && freetype_includes=$ac_freetype_includes 8489 test "x$freetype_libraries" = xNONE && freetype_libraries=$ac_freetype_libraries 8490 ac_cv_path_freetype="no_freetype= ac_freetype_includes=$freetype_includes ac_freetype_libraries=$freetype_libraries" 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $freetype_libraries, headers $freetype_includes" >&5 8492$as_echo "libraries $freetype_libraries, headers $freetype_includes" >&6; } 8493 FREETYPE="" 8494fi 8495 8496 8497if test "x$freetype_libraries" != x && test "x$freetype_libraries" != xNONE ; then 8498 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$freetype_libraries" 8499 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$freetype_libraries" 8500fi 8501if test "x$freetype_includes" != x && test "x$freetype_includes" != xNONE ; then 8502 XLOCKINC="${XLOCKINC} -I$freetype_includes" 8503fi 8504 8505gl=no 8506 8507 8508 8509 8510 8511opengl_includes=NONE 8512opengl_libraries=NONE 8513 8514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL (OK if this is Mesa)" >&5 8515$as_echo_n "checking for OpenGL (OK if this is Mesa)... " >&6; } 8516 8517# Check whether --with-opengl was given. 8518if test "${with_opengl+set}" = set; then : 8519 withval=$with_opengl; 8520fi 8521 8522if test "x$with_opengl" = xno; then 8523 no_opengl=yes 8524else 8525 if test "x$opengl_includes" != xNONE && test "x$opengl_libraries" != xNONE; then 8526 no_opengl= 8527 else 8528if ${ac_cv_path_opengl+:} false; then : 8529 $as_echo_n "(cached) " >&6 8530else 8531 # One or both of these vars are not set, and there is no cached value. 8532no_opengl=yes 8533test -z "$opengl_direct_test_library" && opengl_direct_test_library=GL 8534test -z "$opengl_direct_test_library" && opengl_direct_test_library=GLU 8535test -z "$opengl_direct_test_function" && opengl_direct_test_function=glXCreateContext 8536test -z "$opengl_direct_test_include" && opengl_direct_test_include=GL/gl.h 8537 for ac_dir in \ 8538 /usr/include \ 8539 /usr/openwin/include \ 8540 /usr/openwin/share/include \ 8541 \ 8542 /usr/X11R6.5.1/include \ 8543 /usr/X11R6.4/include \ 8544 /usr/X11R6.3/include \ 8545 /usr/X11R6.2/include \ 8546 /usr/X11R6.1/include \ 8547 /usr/X11R6/include \ 8548 /usr/X11R5/include \ 8549 /usr/X11/include \ 8550 \ 8551 /usr/include/X11 \ 8552 /usr/include/X11R6.5.1 \ 8553 /usr/include/X11R6.4 \ 8554 /usr/include/X11R6.3 \ 8555 /usr/include/X11R6.2 \ 8556 /usr/include/X11R6.1 \ 8557 /usr/include/X11R6 \ 8558 /usr/include/X11R5 \ 8559 \ 8560 /usr/local/X11/include \ 8561 /usr/local/X11R6.5.1/include \ 8562 /usr/local/X11R6.4/include \ 8563 /usr/local/X11R6.3/include \ 8564 /usr/local/X11R6.2/include \ 8565 /usr/local/X11R6.1/include \ 8566 /usr/local/X11R6/include \ 8567 /usr/local/X11R5/include \ 8568 \ 8569 /usr/local/include/X11 \ 8570 /usr/local/include/X11R6.5.1 \ 8571 /usr/local/include/X11R6.4 \ 8572 /usr/local/include/X11R6.3 \ 8573 /usr/local/include/X11R6.2 \ 8574 /usr/local/include/X11R6.1 \ 8575 /usr/local/include/X11R6 \ 8576 /usr/local/include/X11R5 \ 8577 \ 8578 /usr/X386/include \ 8579 /usr/x386/include \ 8580 /usr/XFree86/include/X11 \ 8581 /usr/pkg/include \ 8582 \ 8583 /usr/local/include \ 8584 /usr/remote/include \ 8585 /usr/unsupported/include \ 8586 /usr/local/x11r5/include \ 8587 /usr/lpp/Xamples/include \ 8588 \ 8589 $extra_include \ 8590 ; \ 8591 do 8592 if test -r "$ac_dir/$opengl_direct_test_include"; then 8593 no_opengl= ac_opengl_includes=$ac_dir 8594 break 8595 fi 8596 done 8597 8598# Check for the libraries. 8599# See if we find them without any special options. 8600# Do not add to $LIBS permanently. 8601ac_save_LIBS="$LIBS" 8602LIBS="-l$opengl_direct_test_library $LIBS" 8603# First see if replacing the include by lib works. 8604for ac_dir in `echo "$ac_opengl_includes" | sed s/include/lib/` \ 8605 \ 8606 /usr/lib \ 8607 /usr/openwin/lib \ 8608 /usr/openwin/share/lib \ 8609 \ 8610 /usr/X11/lib \ 8611 /usr/X11R6.5.1/lib \ 8612 /usr/X11R6.4/lib \ 8613 /usr/X11R6.3/lib \ 8614 /usr/X11R6.2/lib \ 8615 /usr/X11R6.1/lib \ 8616 /usr/X11R6/lib \ 8617 /usr/X11R5/lib \ 8618 \ 8619 /usr/lib/X11 \ 8620 /usr/lib/X11R6.5.1 \ 8621 /usr/lib/X11R6.4 \ 8622 /usr/lib/X11R6.3 \ 8623 /usr/lib/X11R6.2 \ 8624 /usr/lib/X11R6.1 \ 8625 /usr/lib/X11R6 \ 8626 /usr/lib/X11R5 \ 8627 \ 8628 /usr/local/X11/lib \ 8629 /usr/local/X11R6.5.1/lib \ 8630 /usr/local/X11R6.4/lib \ 8631 /usr/local/X11R6.3/lib \ 8632 /usr/local/X11R6.2/lib \ 8633 /usr/local/X11R6.1/lib \ 8634 /usr/local/X11R6/lib \ 8635 /usr/local/X11R5/lib \ 8636 \ 8637 /usr/local/lib/X11 \ 8638 /usr/local/lib/X11R6.5.1 \ 8639 /usr/local/lib/X11R6.4 \ 8640 /usr/local/lib/X11R6.3 \ 8641 /usr/local/lib/X11R6.2 \ 8642 /usr/local/lib/X11R6.1 \ 8643 /usr/local/lib/X11R6 \ 8644 /usr/local/lib/X11R5 \ 8645 \ 8646 /usr/X386/lib \ 8647 /usr/x386/lib \ 8648 /usr/XFree86/lib/X11 \ 8649 /usr/pkg/lib \ 8650 \ 8651 /usr/local/lib \ 8652 /usr/remote/lib \ 8653 /usr/unsupported/lib \ 8654 /usr/athena/lib \ 8655 /usr/local/x11r5/lib \ 8656 /usr/lpp/Xamples/lib \ 8657 /lib/usr/lib/X11 \ 8658 \ 8659 $extra_lib \ 8660 ; \ 8661do 8662 for ac_extension in a so sl; do 8663# Make sure its not a symbolic link to MesaGL library 8664 8665 if test -r $ac_dir/lib${opengl_direct_test_library}.$ac_extension && test ! $ac_link_test $ac_dir/lib${opengl_direct_test_library}.$ac_extension && test ! -r $ac_dir/libMesa${opengl_direct_test_library}.$ac_extension; then 8666 no_opengl= ac_opengl_libraries=$ac_dir 8667 break 2 8668 fi 8669 done 8670done 8671LIBS="$ac_save_LIBS" 8672 8673if test "$no_opengl" = yes; then 8674 ac_cv_path_opengl="no_opengl=yes" 8675else 8676 ac_cv_path_opengl="no_opengl= ac_opengl_includes=$ac_opengl_includes ac_opengl_libraries=$ac_opengl_libraries" 8677 8678fi 8679fi 8680 fi 8681 eval "$ac_cv_path_opengl" 8682fi # with_opengl != no 8683 8684if test "$no_opengl" = yes; then 8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8686$as_echo "no" >&6; } 8687else 8688 gl=yes 8689 8690$as_echo "#define USE_GL 1" >>confdefs.h 8691 8692 XLOCKLIBS="${XLOCKLIBS} -lGL -lGLU" 8693 test "x$opengl_includes" = xNONE && opengl_includes=$ac_opengl_includes 8694 test "x$opengl_libraries" = xNONE && opengl_libraries=$ac_opengl_libraries 8695 case "${canonical}" in 8696 *-*-solaris2* ) 8697 8698$as_echo "#define SUN_OGL_NO_VERTEX_MACROS 1" >>confdefs.h 8699 8700 if test "x$opengl_includes" = "x/usr/include"; then 8701 opengl_includes="" 8702 fi 8703 ;; 8704 *-*-irix5* | *-*-irix6* ) 8705 XLOCKLIBS="${XLOCKLIBS} -lgl" 8706 ;; 8707 esac 8708 ac_cv_path_opengl="no_opengl= ac_opengl_includes=$opengl_includes ac_opengl_libraries=$opengl_libraries" 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $opengl_libraries, headers $opengl_includes" >&5 8710$as_echo "libraries $opengl_libraries, headers $opengl_includes" >&6; } 8711 GL="" 8712fi 8713 8714 8715if test "x$opengl_libraries" != x && test "x$opengl_libraries" != xNONE ; then 8716 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$opengl_libraries" 8717 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$opengl_libraries" 8718fi 8719if test "x$opengl_includes" != x && test "x$opengl_includes" != xNONE ; then 8720 XLOCKINC="${XLOCKINC} -I$opengl_includes" 8721fi 8722 8723 8724 8725 8726 8727 8728mesa_includes=NONE 8729mesa_libraries=NONE 8730 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mesa" >&5 8732$as_echo_n "checking for Mesa... " >&6; } 8733 8734# Check whether --with-mesa was given. 8735if test "${with_mesa+set}" = set; then : 8736 withval=$with_mesa; 8737fi 8738 8739if test "x$with_mesa" = xno; then 8740 no_mesa=yes 8741else 8742 if test "x$mesa_includes" != xNONE && test "x$mesa_libraries" != xNONE; then 8743 no_mesa= 8744 else 8745if ${ac_cv_path_mesa+:} false; then : 8746 $as_echo_n "(cached) " >&6 8747else 8748 # One or both of these vars are not set, and there is no cached value. 8749no_mesa=yes 8750test -z "$mesa_direct_test_library" && mesa_direct_test_library=MesaGL 8751test -z "$mesa_direct_test_library" && mesa_direct_test_library=MesaGLU 8752test -z "$mesa_direct_test_function" && mesa_direct_test_function=glXCreateContext 8753test -z "$mesa_direct_test_include" && mesa_direct_test_include=GL/gl.h 8754 for ac_dir in \ 8755 /usr/X11R6.5.1/include \ 8756 /usr/X11R6.4/include \ 8757 /usr/X11R6.3/include \ 8758 /usr/X11R6.2/include \ 8759 /usr/X11R6.1/include \ 8760 /usr/X11R6/include \ 8761 /usr/X11R5/include \ 8762 /usr/X11/include \ 8763 \ 8764 /usr/include/X11 \ 8765 /usr/include/X11R6.5.1 \ 8766 /usr/include/X11R6.4 \ 8767 /usr/include/X11R6.3 \ 8768 /usr/include/X11R6.2 \ 8769 /usr/include/X11R6.1 \ 8770 /usr/include/X11R6 \ 8771 /usr/include/X11R5 \ 8772 \ 8773 /usr/local/X11/include \ 8774 /usr/local/X11R6.5.1/include \ 8775 /usr/local/X11R6.4/include \ 8776 /usr/local/X11R6.3/include \ 8777 /usr/local/X11R6.2/include \ 8778 /usr/local/X11R6.1/include \ 8779 /usr/local/X11R6/include \ 8780 /usr/local/X11R5/include \ 8781 \ 8782 /usr/local/include/X11 \ 8783 /usr/local/include/X11R6.5.1 \ 8784 /usr/local/include/X11R6.4 \ 8785 /usr/local/include/X11R6.3 \ 8786 /usr/local/include/X11R6.2 \ 8787 /usr/local/include/X11R6.1 \ 8788 /usr/local/include/X11R6 \ 8789 /usr/local/include/X11R5 \ 8790 \ 8791 /usr/X386/include \ 8792 /usr/x386/include \ 8793 /usr/XFree86/include/X11 \ 8794 /usr/pkg/include \ 8795 \ 8796 /usr/local/include \ 8797 /usr/remote/include \ 8798 /usr/include \ 8799 /usr/unsupported/include \ 8800 /usr/local/x11r5/include \ 8801 /usr/lpp/Xamples/include \ 8802 \ 8803 /usr/openwin/include \ 8804 /usr/openwin/share/include \ 8805 $extra_include \ 8806 ; \ 8807 do 8808 if test -r "$ac_dir/$mesa_direct_test_include"; then 8809 no_mesa= ac_mesa_includes=$ac_dir 8810 break 8811 fi 8812 done 8813 8814# Check for the libraries. 8815# See if we find them without any special options. 8816# Do not add to $LIBS permanently. 8817ac_save_LIBS="$LIBS" 8818LIBS="-l$mesa_direct_test_library $LIBS" 8819# First see if replacing the include by lib works. 8820for ac_dir in `echo "$ac_mesa_includes" | sed s/include/lib/` \ 8821 \ 8822 /usr/X11/lib \ 8823 /usr/X11R6.5.1/lib \ 8824 /usr/X11R6.4/lib \ 8825 /usr/X11R6.3/lib \ 8826 /usr/X11R6.2/lib \ 8827 /usr/X11R6.1/lib \ 8828 /usr/X11R6/lib \ 8829 /usr/X11R5/lib \ 8830 \ 8831 /usr/lib/X11 \ 8832 /usr/lib/X11R6.5.1 \ 8833 /usr/lib/X11R6.4 \ 8834 /usr/lib/X11R6.3 \ 8835 /usr/lib/X11R6.2 \ 8836 /usr/lib/X11R6.1 \ 8837 /usr/lib/X11R6 \ 8838 /usr/lib/X11R5 \ 8839 \ 8840 /usr/local/X11/lib \ 8841 /usr/local/X11R6.5.1/lib \ 8842 /usr/local/X11R6.4/lib \ 8843 /usr/local/X11R6.3/lib \ 8844 /usr/local/X11R6.2/lib \ 8845 /usr/local/X11R6.1/lib \ 8846 /usr/local/X11R6/lib \ 8847 /usr/local/X11R5/lib \ 8848 \ 8849 /usr/local/lib/X11 \ 8850 /usr/local/lib/X11R6.5.1 \ 8851 /usr/local/lib/X11R6.4 \ 8852 /usr/local/lib/X11R6.3 \ 8853 /usr/local/lib/X11R6.2 \ 8854 /usr/local/lib/X11R6.1 \ 8855 /usr/local/lib/X11R6 \ 8856 /usr/local/lib/X11R5 \ 8857 \ 8858 /usr/X386/lib \ 8859 /usr/x386/lib \ 8860 /usr/XFree86/lib/X11 \ 8861 /usr/pkg/lib \ 8862 \ 8863 /usr/lib \ 8864 /usr/local/lib \ 8865 /usr/remote/lib \ 8866 /usr/unsupported/lib \ 8867 /usr/athena/lib \ 8868 /usr/local/x11r5/lib \ 8869 /usr/lpp/Xamples/lib \ 8870 /lib/usr/lib/X11 \ 8871 \ 8872 /usr/openwin/lib \ 8873 /usr/openwin/share/lib \ 8874 $extra_lib \ 8875 ; \ 8876do 8877 for ac_extension in a so sl; do 8878 if test -r $ac_dir/lib${mesa_direct_test_library}.$ac_extension; then 8879 no_mesa= ac_mesa_libraries=$ac_dir 8880 break 2 8881 fi 8882 done 8883done 8884LIBS="$ac_save_LIBS" 8885 8886if test "$no_mesa" = yes -a "$no_opengl" = yes ; then 8887 ac_cv_path_mesa="no_mesa=yes" 8888else 8889 ac_cv_path_mesa="no_mesa= ac_mesa_includes=$ac_mesa_includes ac_mesa_libraries=$ac_mesa_libraries" 8890fi 8891fi 8892 fi 8893 eval "$ac_cv_path_mesa" 8894fi # with_mesa != no 8895 8896if test "$no_mesa" = yes; then 8897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8898$as_echo "no" >&6; } 8899 GL="#" 8900else 8901 if test "$gl" = no; then 8902 gl=yes 8903 8904$as_echo "#define USE_GL 1" >>confdefs.h 8905 8906 XLOCKLIBS="${XLOCKLIBS} -lMesaGL -lMesaGLU" 8907 test "x$mesa_includes" = xNONE && mesa_includes=$ac_mesa_includes 8908 test "x$mesa_libraries" = xNONE && mesa_libraries=$ac_mesa_libraries 8909 case "${canonical}" in 8910 *-*-solaris2* ) 8911 if test "x$mesa_includes" = "x/usr/include"; then 8912 mesa_includes="" 8913 fi 8914 ;; 8915 esac 8916 ac_cv_path_mesa="no_mesa= ac_mesa_includes=$mesa_includes ac_mesa_libraries=$mesa_libraries" 8917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $mesa_libraries, headers $mesa_includes" >&5 8918$as_echo "libraries $mesa_libraries, headers $mesa_includes" >&6; } 8919 # Issue a warning if the version number of Mesa is less than 3.0 since 8920 # 2.6 and earlier had a security bug and 2.2 and earlier had memory leaks. 8921 # pre-3.4 Mesa will core dump with the -showfps option. A patch must be 8922 # applied to 3.4 and 3.4.1 Mesa to correct a memory leak in the molecule 8923 # mode and the -showfps option. This memory leak is fixed in Mesa 3.4.2 8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Mesa version number" >&5 8925$as_echo_n "checking Mesa version number... " >&6; } 8926if ${ac_cv_mesa_version_string+:} false; then : 8927 $as_echo_n "(cached) " >&6 8928else 8929 cat > conftest.$ac_ext <<EOF 8930#line 8930 "configure" 8931#include "confdefs.h" 8932#include <GL/xmesa.h> 8933configure: XMESA_MAJOR_VERSION XMESA_MINOR_VERSION 8934EOF 8935 ac_save_CPPFLAGS="$CPPFLAGS" 8936 if test \! -z "$ac_mesa_includes" ; then 8937 CPPFLAGS="$CPPFLAGS -I$ac_mesa_includes" 8938 fi 8939 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8940 8941 8942 mglv=`(eval "$ac_cpp conftest.$ac_ext") | sed -n \ 8943 's/^configure:.*\([0-9][0-9]*\).*\([0-9][0-9]*\).*$/\1.\2/p'` 8944 8945 8946 rm -f conftest.$ac_ext 8947 8948 CPPFLAGS="$ac_save_CPPFLAGS" 8949 8950 if test "$mglv" = ""; then 8951 ac_mesa_version=unknown 8952 ac_mesa_version_string=unknown 8953 else 8954 ac_mesa_version_string=$mglv 8955 maj=`echo $mglv | sed -n 's/\..*//p'` 8956 min=`echo $mglv | sed -n 's/.*\.//p'` 8957 ac_mesa_version=`echo "$maj * 1000 + $min" | bc` 8958 if test -z "$ac_mesa_version"; then 8959 ac_mesa_version=unknown 8960 ac_mesa_version_string=unknown 8961 fi 8962 fi 8963 ac_cv_mesa_version=$ac_mesa_version 8964 ac_cv_mesa_version_string=$ac_mesa_version_string 8965 8966fi 8967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_mesa_version_string" >&5 8968$as_echo "$ac_cv_mesa_version_string" >&6; } 8969 ac_mesa_version=$ac_cv_mesa_version 8970 ac_mesa_version_string=$ac_cv_mesa_version_string 8971 preferred_mesa="3.4.2" 8972 if test "$ac_mesa_version" = unknown; then 8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! Unable to determine the Mesa version number!" >&5 8974$as_echo "!!!WARNING!!! Unable to determine the Mesa version number!" >&6; } 8975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! Make sure you are using Mesa version $preferred_mesa or newer." >&5 8976$as_echo "!!!WARNING!!! Make sure you are using Mesa version $preferred_mesa or newer." >&6; } 8977 elif test \! "$ac_mesa_version" -gt 3004; then 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! Mesa version $ac_mesa_version_string is being used." >&5 8979$as_echo "!!!WARNING!!! Mesa version $ac_mesa_version_string is being used." >&6; } 8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! Mesa versions 3.4.1 and earlier have a memory leak when using" >&5 8981$as_echo "!!!WARNING!!! Mesa versions 3.4.1 and earlier have a memory leak when using" >&6; } 8982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! molecule mode or the -showfps option. This can be corrected by" >&5 8983$as_echo "!!!WARNING!!! molecule mode or the -showfps option. This can be corrected by" >&6; } 8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! applying the Mesa.patch file to Mesa 3.4 or 3.4.1 using patch" >&5 8985$as_echo "!!!WARNING!!! applying the Mesa.patch file to Mesa 3.4 or 3.4.1 using patch" >&6; } 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! or by using Mesa 3.4.2 or newer." >&5 8987$as_echo "!!!WARNING!!! or by using Mesa 3.4.2 or newer." >&6; } 8988 if test \! "$ac_mesa_version" -gt 3003; then 8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! Mesa version $ac_mesa_version_string is being used." >&5 8990$as_echo "!!!WARNING!!! Mesa version $ac_mesa_version_string is being used." >&6; } 8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! Mesa versions 3.3 and earlier will SEGV with the -showfps option." >&5 8992$as_echo "!!!WARNING!!! Mesa versions 3.3 and earlier will SEGV with the -showfps option." >&6; } 8993 if test \! "$ac_mesa_version" -gt 2006; then 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! Mesa versions 2.6 and earlier have a security bug." >&5 8995$as_echo "!!!WARNING!!! Mesa versions 2.6 and earlier have a security bug." >&6; } 8996 if test \! "$ac_mesa_version" -gt 2002; then 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! Mesa versions 2.2 and earlier have memory leaks." >&5 8998$as_echo "!!!WARNING!!! Mesa versions 2.2 and earlier have memory leaks." >&6; } 8999 fi 9000 fi 9001 fi 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: !!!WARNING!!! It is strongly recommended that you upgrade to Mesa V$preferred_mesa or newer." >&5 9003$as_echo "!!!WARNING!!! It is strongly recommended that you upgrade to Mesa V$preferred_mesa or newer." >&6; } 9004 fi 9005 9006 case "${canonical}" in 9007 *-*-linux* ) 9008 # Testing if Mesa was compiled against VGA 9009 if test -f $mesa_libraries/libMesaGL.so; then 9010 have_mesa_svga=`nm $mesa_libraries/libMesaGL.so | grep SVGAMesa | wc -l` 9011 else 9012 have_mesa_svga=0 9013 fi 9014 if eval "test $have_mesa_svga -ge 1"; then 9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mesa library is linked against SVGA: adding -lvga" >&5 9016$as_echo "Mesa library is linked against SVGA: adding -lvga" >&6; } 9017 XLOCKLIBS="${XLOCKLIBS} -lvga" 9018 fi 9019 # Testing if Mesa was compiled against glide 9020 if test -f $mesa_libraries/libMesaGL.so; then 9021 have_mesa_glide=`nm $mesa_libraries/libMesaGL.so | grep grGlideInit | wc -l` 9022 else 9023 have_mesa_glide=0 9024 fi 9025 if eval "test $have_mesa_glide -ge 1"; then 9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mesa library is linked against GLIDE: adding -lglide2x" >&5 9027$as_echo "Mesa library is linked against GLIDE: adding -lglide2x" >&6; } 9028 XLOCKLIBS="${XLOCKLIBS} -lglide2x" 9029 9030 fi 9031# Causes major errors for maintainer. xlock refuses to run. 9032# I am not able to reproduce the problem ? What is it ? 9033# Does a new glibc version fix this problem ? 9034 # Testing if Mesa was compiled against pthread 9035 if test -f $mesa_libraries/libMesaGL.so; then 9036 have_mesa_pthread=`nm $mesa_libraries/libMesaGL.so | grep pthread_once | wc -l` 9037 else 9038 have_mesa_pthread=0 9039 fi 9040 if eval "test $have_mesa_pthread -ge 1"; then 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Mesa library is linked against PTHREAD: adding -lpthread" >&5 9042$as_echo "Mesa library is linked against PTHREAD: adding -lpthread" >&6; } 9043 XLOCKLIBS="${XLOCKLIBS} -lpthread" 9044 fi 9045 ;; 9046 esac 9047 GL="" 9048 else 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignored - using OpenGL" >&5 9050$as_echo "ignored - using OpenGL" >&6; } 9051 fi 9052 9053fi 9054 9055 9056if test "x$mesa_libraries" != x && test "x$mesa_libraries" != xNONE ; then 9057 XLOCK_LDFLAGS="$mesa_libraries:${XLOCK_LDFLAGS}" 9058 XLOCKLIBPATHS="-L$mesa_libraries ${XLOCKLIBPATHS}" 9059fi 9060if test "x$mesa_includes" != x && test "x$mesa_includes" != xNONE ; then 9061 XLOCKINC="-I$mesa_includes ${XLOCKINC}" 9062fi 9063 9064# Test if Mesa or OpenGL has GL1.1 features 9065# (Should this test be performed only if (Mesa)GL is used? In that case 9066# it fails anyway.) 9067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GL >=1.1" >&5 9068$as_echo_n "checking for GL >=1.1... " >&6; } 9069ac_save_CFLAGS="$CFLAGS" 9070ac_save_LIBS="$LIBS" 9071CFLAGS="${CFLAGS} ${XLOCKINC}" 9072LIBS="${XLOCKLIBPATHS} ${XLOCKLIBS} -lX11 -lXext -lm" 9073if ${ac_cv_c_gl1_1+:} false; then : 9074 $as_echo_n "(cached) " >&6 9075else 9076 9077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9078/* end confdefs.h. */ 9079#define _XOPEN_SOURCE 1 9080#include <GL/gl.h> 9081int 9082main () 9083{ 9084 9085GLint texture; 9086glBindTexture(GL_TEXTURE_2D, texture); 9087 9088 ; 9089 return 0; 9090} 9091_ACEOF 9092if ac_fn_c_try_link "$LINENO"; then : 9093 ac_cv_c_gl1_1=yes 9094else 9095 ac_cv_c_gl1_1=no 9096fi 9097rm -f core conftest.err conftest.$ac_objext \ 9098 conftest$ac_exeext conftest.$ac_ext 9099fi 9100 9101 9102$as_echo "#define HAVE_GLBINDTEXTURE 1" >>confdefs.h 9103 9104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9105$as_echo "yes" >&6; } 9106CFLAGS="$ac_save_CFLAGS" 9107LIBS="$ac_save_LIBS" 9108 9109 9110 9111 9112 9113 9114dtsaver_includes=NONE 9115dtsaver_libraries=NONE 9116 9117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DtSaver" >&5 9118$as_echo_n "checking for DtSaver... " >&6; } 9119 9120# Check whether --with-dtsaver was given. 9121if test "${with_dtsaver+set}" = set; then : 9122 withval=$with_dtsaver; 9123fi 9124 9125if test "x$with_dtsaver" = xno; then 9126 no_dtsaver=yes 9127else 9128 if test "x$dtsaver_includes" != xNONE && test "x$dtsaver_libraries" != xNONE; then 9129 no_dtsaver= 9130 else 9131if ${ac_cv_path_dtsaver+:} false; then : 9132 $as_echo_n "(cached) " >&6 9133else 9134 # One or both of these vars are not set, and there is no cached value. 9135no_dtsaver=yes 9136test -z "$dtsaver_direct_test_library" && dtsaver_direct_test_library=DtSvc 9137test -z "$dtsaver_direct_test_function" && dtsaver_direct_test_function=DtSaverGetWindows 9138test -z "$dtsaver_direct_test_include" && dtsaver_direct_test_include=Dt/Saver.h 9139 for ac_dir in \ 9140 /usr/dt/include \ 9141 $extra_include \ 9142 ; \ 9143 do 9144 if test -r "$ac_dir/$dtsaver_direct_test_include"; then 9145 no_dtsaver= ac_dtsaver_includes=$ac_dir 9146 break 9147 fi 9148 done 9149 9150# Check for the libraries. 9151# See if we find them without any special options. 9152# Do not add to $LIBS permanently. 9153ac_save_LIBS="$LIBS" 9154LIBS="-l$dtsaver_direct_test_library $LIBS" 9155# First see if replacing the include by lib works. 9156for ac_dir in `echo "$ac_dtsaver_includes" | sed s/include/lib/` \ 9157 $extra_lib \ 9158 ; \ 9159do 9160 for ac_extension in a so sl; do 9161 if test -r $ac_dir/lib${dtsaver_direct_test_library}.$ac_extension; then 9162 no_dtsaver= ac_dtsaver_libraries=$ac_dir 9163 break 2 9164 fi 9165 done 9166done 9167LIBS="$ac_save_LIBS" 9168 9169if test "$no_dtsaver" = yes; then 9170 ac_cv_path_dtsaver="no_dtsaver=yes" 9171else 9172 ac_cv_path_dtsaver="no_dtsaver= ac_dtsaver_includes=$ac_dtsaver_includes ac_dtsaver_libraries=$ac_dtsaver_libraries" 9173fi 9174fi 9175 fi 9176 eval "$ac_cv_path_dtsaver" 9177fi # with_dtsaver != no 9178 9179if test "$no_dtsaver" = yes; then 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9181$as_echo "no" >&6; } 9182else 9183 9184$as_echo "#define USE_DTSAVER 1" >>confdefs.h 9185 9186 XLOCKLIBS="${XLOCKLIBS} -lDtSvc" 9187 test "x$dtsaver_includes" = xNONE && dtsaver_includes=$ac_dtsaver_includes 9188 test "x$dtsaver_libraries" = xNONE && dtsaver_libraries=$ac_dtsaver_libraries 9189 ac_cv_path_dtsaver="no_dtsaver= ac_dtsaver_includes=$dtsaver_includes ac_dtsaver_libraries=$dtsaver_libraries" 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $dtsaver_libraries, headers $dtsaver_includes" >&5 9191$as_echo "libraries $dtsaver_libraries, headers $dtsaver_includes" >&6; } 9192fi 9193 9194 9195if test "x$dtsaver_libraries" != x && test "x$dtsaver_libraries" != xNONE ; then 9196 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$dtsaver_libraries" 9197 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$dtsaver_libraries" 9198fi 9199if test "x$dtsaver_includes" != x && test "x$dtsaver_includes" != xNONE ; then 9200 XLOCKINC="${XLOCKINC} -I$dtsaver_includes" 9201fi 9202 9203 9204 9205 9206 9207 9208ext_includes=NONE 9209ext_libraries=NONE 9210 9211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXT" >&5 9212$as_echo_n "checking for EXT... " >&6; } 9213 9214# Check whether --with-ext was given. 9215if test "${with_ext+set}" = set; then : 9216 withval=$with_ext; 9217fi 9218 9219extlib=no 9220if test "x$with_ext" = xno; then 9221 no_ext=yes 9222else 9223 if test "x$ext_includes" != xNONE && test "x$ext_libraries" != xNONE; then 9224 no_ext= 9225 else 9226if ${ac_cv_path_ext+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 # One or both of these vars are not set, and there is no cached value. 9230no_EXT=yes 9231test -z "$ext_direct_test_library" && ext_direct_test_library=Xext 9232test -z "$ext_direct_test_function" && ext_direct_test_function=DPMSSetTimeouts 9233test -z "$dpms_direct_test_include" && ext_direct_test_include=X11/extensions/dpms.h 9234 for ac_dir in \ 9235 /usr/X11R6.5.1/include \ 9236 /usr/X11R6.4/include \ 9237 /usr/X11R6.3/include \ 9238 /usr/X11R6.2/include \ 9239 /usr/X11R6.1/include \ 9240 /usr/X11R6/include \ 9241 /usr/X11R5/include \ 9242 /usr/X11R4/include \ 9243 \ 9244 /usr/include/X11R6.5.1 \ 9245 /usr/include/X11R6.4 \ 9246 /usr/include/X11R6.3 \ 9247 /usr/include/X11R6.2 \ 9248 /usr/include/X11R6.1 \ 9249 /usr/include/X11R6 \ 9250 /usr/include/X11R5 \ 9251 /usr/include/X11R4 \ 9252 \ 9253 /usr/local/X11R6.5.1/include \ 9254 /usr/local/X11R6.4/include \ 9255 /usr/local/X11R6.3/include \ 9256 /usr/local/X11R6.2/include \ 9257 /usr/local/X11R6.1/include \ 9258 /usr/local/X11R6/include \ 9259 /usr/local/X11R5/include \ 9260 /usr/local/X11R4/include \ 9261 \ 9262 /usr/local/include/X11R6.5.1 \ 9263 /usr/local/include/X11R6.4 \ 9264 /usr/local/include/X11R6.3 \ 9265 /usr/local/include/X11R6.2 \ 9266 /usr/local/include/X11R6.1 \ 9267 /usr/local/include/X11R6 \ 9268 /usr/local/include/X11R5 \ 9269 /usr/local/include/X11R4 \ 9270 \ 9271 /usr/X11/include \ 9272 /usr/include/X11 \ 9273 /usr/local/X11/include \ 9274 /usr/local/include/X11 \ 9275 \ 9276 /usr/X386/include \ 9277 /usr/x386/include \ 9278 /usr/XFree86/include/X11 \ 9279 /usr/pkg/include \ 9280 \ 9281 /usr/dt/include \ 9282 \ 9283 /usr/local/include \ 9284 /usr/remote/include \ 9285 /usr/include \ 9286 /usr/unsupported/include \ 9287 /usr/dpms/include \ 9288 /usr/local/x11r5/include \ 9289 /usr/lpp/Xamples/include \ 9290 \ 9291 /usr/openwin/include \ 9292 /usr/openwin/share/include \ 9293 $extra_include \ 9294 ; \ 9295 do 9296 if test -r "$ac_dir/$ext_direct_test_include"; then 9297 no_ext= ac_ext_includes=$ac_dir 9298 break 9299 fi 9300 done 9301 9302# Check for the libraries. 9303# See if we find them without any special options. 9304# Do not add to $LIBS permanently. 9305ac_save_LIBS="$LIBS" 9306LIBS="-l$ext_direct_test_library $LIBS" 9307# First see if replacing the include by lib works. 9308for ac_dir in `echo "$ac_ext_includes" | sed s/include/lib/` \ 9309 \ 9310 /usr/X11R6.5.1/lib \ 9311 /usr/X11R6.4/lib \ 9312 /usr/X11R6.3/lib \ 9313 /usr/X11R6.2/lib \ 9314 /usr/X11R6.1/lib \ 9315 /usr/X11R6/lib \ 9316 /usr/X11R5/lib \ 9317 /usr/X11R4/lib \ 9318 \ 9319 /usr/lib/X11R6.5.1 \ 9320 /usr/lib/X11R6.4 \ 9321 /usr/lib/X11R6.3 \ 9322 /usr/lib/X11R6.2 \ 9323 /usr/lib/X11R6.1 \ 9324 /usr/lib/X11R6 \ 9325 /usr/lib/X11R5 \ 9326 /usr/lib/X11R4 \ 9327 \ 9328 /usr/local/X11R6.5.1/lib \ 9329 /usr/local/X11R6.4/lib \ 9330 /usr/local/X11R6.3/lib \ 9331 /usr/local/X11R6.2/lib \ 9332 /usr/local/X11R6.1/lib \ 9333 /usr/local/X11R6/lib \ 9334 /usr/local/X11R5/lib \ 9335 /usr/local/X11R4/lib \ 9336 \ 9337 /usr/local/lib/X11R6.5.1 \ 9338 /usr/local/lib/X11R6.4 \ 9339 /usr/local/lib/X11R6.3 \ 9340 /usr/local/lib/X11R6.2 \ 9341 /usr/local/lib/X11R6.1 \ 9342 /usr/local/lib/X11R6 \ 9343 /usr/local/lib/X11R5 \ 9344 /usr/local/lib/X11R4 \ 9345 \ 9346 /usr/X11/lib \ 9347 /usr/lib/X11 \ 9348 /usr/local/X11/lib \ 9349 \ 9350 /usr/X386/lib \ 9351 /usr/x386/lib \ 9352 /usr/XFree86/lib/X11 \ 9353 /usr/pkg/lib \ 9354 \ 9355 /usr/lib \ 9356 /usr/local/lib \ 9357 /usr/remote/lib \ 9358 /usr/unsupported/lib \ 9359 /usr/dpms/lib \ 9360 /usr/local/x11r5/lib \ 9361 /usr/lpp/Xamples/lib \ 9362 \ 9363 /usr/openwin/lib \ 9364 /usr/openwin/share/lib \ 9365 /shlib \ 9366 /usr/shlib \ 9367 /usr/shlib/X11 \ 9368 $extra_lib \ 9369 ; \ 9370do 9371 for ac_extension in a so sl; do 9372 if test -r $ac_dir/lib${ext_direct_test_library}.$ac_extension; then 9373 no_ext= ac_ext_libraries=$ac_dir 9374 break 2 9375 fi 9376 done 9377done 9378LIBS="$ac_save_LIBS" 9379 9380if test "$no_ext" = yes; then 9381 ac_cv_path_ext="no_ext=yes" 9382else 9383 ac_cv_path_ext="no_ext= ac_ext_includes=$ac_ext_includes ac_ext_libraries=$ac_ext_libraries" 9384fi 9385fi 9386 fi 9387 eval "$ac_cv_path_ext" 9388fi # with_ext != no 9389 9390if test "$no_ext" = yes; then 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9392$as_echo "no" >&6; } 9393else 9394 9395$as_echo "#define USE_EXT 1" >>confdefs.h 9396 9397 if test "x$ac_ext_libraries" != x && test "x$ac_ext_libraries" != xNONE ; then 9398 XLOCKLIBS="${XLOCKLIBS} -lXext" 9399 fi 9400 test "x$ext_includes" = xNONE && ext_includes=$ac_ext_includes 9401 test "x$ext_libraries" = xNONE && ext_libraries=$ac_ext_libraries 9402 ac_cv_path_ext="no_ext= ac_ext_includes=$ext_includes ac_ext_libraries=$ext_libraries" 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $ext_libraries, headers $ext_includes" >&5 9404$as_echo "libraries $ext_libraries, headers $ext_includes" >&6; } 9405fi 9406 9407 9408if test "x$ext_includes" != x && test "x$ext_includes" != xNONE ; then 9409 XLOCKINC="${XLOCKINC} -I$ext_includes" 9410fi 9411 9412 9413 9414 9415 9416 9417dpms_includes=NONE 9418dpms_libraries=NONE 9419 9420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMS" >&5 9421$as_echo_n "checking for DPMS... " >&6; } 9422 9423# Check whether --with-dpms was given. 9424if test "${with_dpms+set}" = set; then : 9425 withval=$with_dpms; 9426fi 9427 9428dpmslib=no 9429if test "x$with_dpms" = xno; then 9430 no_dpms=yes 9431else 9432 if test "x$dpms_includes" != xNONE && test "x$dpms_libraries" != xNONE; then 9433 no_dpms= 9434 else 9435if ${ac_cv_path_dpms+:} false; then : 9436 $as_echo_n "(cached) " >&6 9437else 9438 # One or both of these vars are not set, and there is no cached value. 9439no_dpms=yes 9440test -z "$dpms_direct_test_library" && dpms_direct_test_library=Xdpms 9441test -z "$dpms_direct_test_function" && dpms_direct_test_function=DPMSSetTimeouts 9442test -z "$dpms_direct_test_include" && dpms_direct_test_include=X11/extensions/dpms.h 9443 for ac_dir in \ 9444 /usr/X11R6.5.1/include \ 9445 /usr/X11R6.4/include \ 9446 /usr/X11R6.3/include \ 9447 /usr/X11R6.2/include \ 9448 /usr/X11R6.1/include \ 9449 /usr/X11R6/include \ 9450 /usr/X11R5/include \ 9451 /usr/X11R4/include \ 9452 \ 9453 /usr/include/X11R6.5.1 \ 9454 /usr/include/X11R6.4 \ 9455 /usr/include/X11R6.3 \ 9456 /usr/include/X11R6.2 \ 9457 /usr/include/X11R6.1 \ 9458 /usr/include/X11R6 \ 9459 /usr/include/X11R5 \ 9460 /usr/include/X11R4 \ 9461 \ 9462 /usr/local/X11R6.5.1/include \ 9463 /usr/local/X11R6.4/include \ 9464 /usr/local/X11R6.3/include \ 9465 /usr/local/X11R6.2/include \ 9466 /usr/local/X11R6.1/include \ 9467 /usr/local/X11R6/include \ 9468 /usr/local/X11R5/include \ 9469 /usr/local/X11R4/include \ 9470 \ 9471 /usr/local/include/X11R6.5.1 \ 9472 /usr/local/include/X11R6.4 \ 9473 /usr/local/include/X11R6.3 \ 9474 /usr/local/include/X11R6.2 \ 9475 /usr/local/include/X11R6.1 \ 9476 /usr/local/include/X11R6 \ 9477 /usr/local/include/X11R5 \ 9478 /usr/local/include/X11R4 \ 9479 \ 9480 /usr/X11/include \ 9481 /usr/include/X11 \ 9482 /usr/local/X11/include \ 9483 /usr/local/include/X11 \ 9484 \ 9485 /usr/X386/include \ 9486 /usr/x386/include \ 9487 /usr/XFree86/include/X11 \ 9488 /usr/pkg/include \ 9489 \ 9490 /usr/dt/include \ 9491 \ 9492 /usr/local/include \ 9493 /usr/remote/include \ 9494 /usr/include \ 9495 /usr/unsupported/include \ 9496 /usr/dpms/include \ 9497 /usr/local/x11r5/include \ 9498 /usr/lpp/Xamples/include \ 9499 \ 9500 /usr/openwin/include \ 9501 /usr/openwin/share/include \ 9502 $extra_include \ 9503 ; \ 9504 do 9505 if test -r "$ac_dir/$dpms_direct_test_include"; then 9506 no_dpms= ac_dpms_includes=$ac_dir 9507 break 9508 fi 9509 done 9510 9511# Check for the libraries. 9512# See if we find them without any special options. 9513# Do not add to $LIBS permanently. 9514ac_save_LIBS="$LIBS" 9515LIBS="-l$dpms_direct_test_library $LIBS" 9516# First see if replacing the include by lib works. 9517for ac_dir in `echo "$ac_dpms_includes" | sed s/include/lib/` \ 9518 \ 9519 /usr/X11R6.5.1/lib \ 9520 /usr/X11R6.4/lib \ 9521 /usr/X11R6.3/lib \ 9522 /usr/X11R6.2/lib \ 9523 /usr/X11R6.1/lib \ 9524 /usr/X11R6/lib \ 9525 /usr/X11R5/lib \ 9526 /usr/X11R4/lib \ 9527 \ 9528 /usr/lib/X11R6.5.1 \ 9529 /usr/lib/X11R6.4 \ 9530 /usr/lib/X11R6.3 \ 9531 /usr/lib/X11R6.2 \ 9532 /usr/lib/X11R6.1 \ 9533 /usr/lib/X11R6 \ 9534 /usr/lib/X11R5 \ 9535 /usr/lib/X11R4 \ 9536 \ 9537 /usr/local/X11R6.5.1/lib \ 9538 /usr/local/X11R6.4/lib \ 9539 /usr/local/X11R6.3/lib \ 9540 /usr/local/X11R6.2/lib \ 9541 /usr/local/X11R6.1/lib \ 9542 /usr/local/X11R6/lib \ 9543 /usr/local/X11R5/lib \ 9544 /usr/local/X11R4/lib \ 9545 \ 9546 /usr/local/lib/X11R6.5.1 \ 9547 /usr/local/lib/X11R6.4 \ 9548 /usr/local/lib/X11R6.3 \ 9549 /usr/local/lib/X11R6.2 \ 9550 /usr/local/lib/X11R6.1 \ 9551 /usr/local/lib/X11R6 \ 9552 /usr/local/lib/X11R5 \ 9553 /usr/local/lib/X11R4 \ 9554 \ 9555 /usr/X11/lib \ 9556 /usr/lib/X11 \ 9557 /usr/local/X11/lib \ 9558 \ 9559 /usr/X386/lib \ 9560 /usr/x386/lib \ 9561 /usr/XFree86/lib/X11 \ 9562 /usr/pkg/lib \ 9563 \ 9564 /usr/lib \ 9565 /usr/local/lib \ 9566 /usr/remote/lib \ 9567 /usr/unsupported/lib \ 9568 /usr/dpms/lib \ 9569 /usr/local/x11r5/lib \ 9570 /usr/lpp/Xamples/lib \ 9571 \ 9572 /usr/openwin/lib \ 9573 /usr/openwin/share/lib \ 9574 /shlib \ 9575 /usr/shlib \ 9576 /usr/shlib/X11 \ 9577 $extra_lib \ 9578 ; \ 9579do 9580 for ac_extension in a so sl; do 9581 if test -r $ac_dir/lib${dpms_direct_test_library}.$ac_extension; then 9582 no_dpms= ac_dpms_libraries=$ac_dir 9583 break 2 9584 fi 9585 done 9586done 9587LIBS="$ac_save_LIBS" 9588 9589if test "$no_dpms" = yes; then 9590 ac_cv_path_dpms="no_dpms=yes" 9591else 9592 ac_cv_path_dpms="no_dpms= ac_dpms_includes=$ac_dpms_includes ac_dpms_libraries=$ac_dpms_libraries" 9593fi 9594fi 9595 fi 9596 eval "$ac_cv_path_dpms" 9597fi # with_dpms != no 9598 9599if test "$no_dpms" = yes; then 9600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9601$as_echo "no" >&6; } 9602else 9603 9604$as_echo "#define USE_DPMS 1" >>confdefs.h 9605 9606 if test "x$ac_dpms_libraries" != x && test "x$ac_dpms_libraries" != xNONE ; then 9607 XLOCKLIBS="${XLOCKLIBS} -lXdpms" 9608 fi 9609 test "x$dpms_includes" = xNONE && dpms_includes=$ac_dpms_includes 9610 test "x$dpms_libraries" = xNONE && dpms_libraries=$ac_dpms_libraries 9611 ac_cv_path_dpms="no_dpms= ac_dpms_includes=$dpms_includes ac_dpms_libraries=$dpms_libraries" 9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $dpms_libraries, headers $dpms_includes" >&5 9613$as_echo "libraries $dpms_libraries, headers $dpms_includes" >&6; } 9614fi 9615 9616 9617if test "x$dpms_libraries" != x && test "x$dpms_libraries" != xNONE ; then 9618 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$dpms_libraries" 9619 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$dpms_libraries" 9620fi 9621if test "x$dpms_includes" != x && test "x$dpms_includes" != xNONE ; then 9622 XLOCKINC="${XLOCKINC} -I$dpms_includes" 9623fi 9624 9625xinerama=no 9626 9627 9628 9629 9630 9631xinerama_includes=NONE 9632xinerama_libraries=NONE 9633 9634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XINERAMA" >&5 9635$as_echo_n "checking for XINERAMA... " >&6; } 9636 9637# Check whether --with-xinerama was given. 9638if test "${with_xinerama+set}" = set; then : 9639 withval=$with_xinerama; 9640fi 9641 9642if test "x$with_xinerama" = xno; then 9643 no_xinerama=yes 9644else 9645 if test "x$xinerama_includes" != xNONE && test "x$xinerama_libraries" != xNONE; then 9646 no_xinerama= 9647 else 9648if ${ac_cv_path_xinerama+:} false; then : 9649 $as_echo_n "(cached) " >&6 9650else 9651 # One or both of these vars are not set, and there is no cached value. 9652no_xinerama=yes 9653test -z "$xinerama_direct_test_library" && xinerama_direct_test_library=Xinerama 9654test -z "$xinerama_direct_test_function" && xinerama_direct_test_function=XineramaQueryExtension 9655test -z "$xinerama_direct_test_include" && xinerama_direct_test_include=X11/extensions/Xinerama.h 9656 for ac_dir in \ 9657 /usr/X11R6.5.1/include \ 9658 /usr/X11R6.4/include \ 9659 /usr/X11R6.3/include \ 9660 /usr/X11R6.2/include \ 9661 /usr/X11R6.1/include \ 9662 /usr/X11R6/include \ 9663 /usr/X11R5/include \ 9664 /usr/X11R4/include \ 9665 /usr/X11/include \ 9666 \ 9667 /usr/include/X11 \ 9668 /usr/include/X11R6.5.1 \ 9669 /usr/include/X11R6.4 \ 9670 /usr/include/X11R6.3 \ 9671 /usr/include/X11R6.2 \ 9672 /usr/include/X11R6.1 \ 9673 /usr/include/X11R6 \ 9674 /usr/include/X11R5 \ 9675 /usr/include/X11R4 \ 9676 \ 9677 /usr/local/X11/include \ 9678 /usr/local/X11R6.5.1/include \ 9679 /usr/local/X11R6.4/include \ 9680 /usr/local/X11R6.3/include \ 9681 /usr/local/X11R6.2/include \ 9682 /usr/local/X11R6.1/include \ 9683 /usr/local/X11R6/include \ 9684 /usr/local/X11R5/include \ 9685 /usr/local/X11R4/include \ 9686 \ 9687 /usr/local/include/X11 \ 9688 /usr/local/include/X11R6.5.1 \ 9689 /usr/local/include/X11R6.4 \ 9690 /usr/local/include/X11R6.3 \ 9691 /usr/local/include/X11R6.2 \ 9692 /usr/local/include/X11R6.1 \ 9693 /usr/local/include/X11R6 \ 9694 /usr/local/include/X11R5 \ 9695 /usr/local/include/X11R4 \ 9696 \ 9697 /usr/X386/include \ 9698 /usr/x386/include \ 9699 /usr/XFree86/include/X11 \ 9700 /usr/pkg/include \ 9701 \ 9702 /usr/include \ 9703 /usr/local/include \ 9704 /usr/remote/include \ 9705 /usr/include/X11 \ 9706 /usr/unsupported/include \ 9707 /usr/athena/include \ 9708 /usr/local/x11r5/include \ 9709 /usr/lpp/Xamples/include \ 9710 \ 9711 /usr/openwin/include \ 9712 /usr/openwin/share/include \ 9713 /usr/openwin/include \ 9714 \ 9715 $extra_include \ 9716 ; \ 9717 do 9718 if test -r "$ac_dir/$xinerama_direct_test_include"; then 9719 no_xinerama= ac_xinerama_includes=$ac_dir 9720 break 9721 fi 9722 done 9723 9724# Check for the libraries. 9725# See if we find them without any special options. 9726# Do not add to $LIBS permanently. 9727ac_save_LIBS="$LIBS" 9728LIBS="-l$xinerama_direct_test_library $LIBS" 9729# First see if replacing the include by lib works. 9730for ac_dir in `echo "$ac_xinerama_includes" | sed s/include/lib/` \ 9731 \ 9732 /usr/X11/lib \ 9733 /usr/X11R6.5.1/lib \ 9734 /usr/X11R6.4/lib \ 9735 /usr/X11R6.3/lib \ 9736 /usr/X11R6.2/lib \ 9737 /usr/X11R6.1/lib \ 9738 /usr/X11R6/lib \ 9739 /usr/X11R5/lib \ 9740 /usr/X11R4/lib \ 9741 \ 9742 /usr/lib/X11 \ 9743 /usr/lib/X11R6.5.1 \ 9744 /usr/lib/X11R6.4 \ 9745 /usr/lib/X11R6.3 \ 9746 /usr/lib/X11R6.2 \ 9747 /usr/lib/X11R6.1 \ 9748 /usr/lib/X11R6 \ 9749 /usr/lib/X11R5 \ 9750 /usr/lib/X11R4 \ 9751 \ 9752 /usr/local/X11/lib \ 9753 /usr/local/X11R6/lib \ 9754 /usr/local/X11R5/lib \ 9755 /usr/local/X11R4/lib \ 9756 \ 9757 /usr/local/lib/X11 \ 9758 /usr/local/X11R6.5.1/lib \ 9759 /usr/local/X11R6.4/lib \ 9760 /usr/local/X11R6.3/lib \ 9761 /usr/local/X11R6.2/lib \ 9762 /usr/local/X11R6.1/lib \ 9763 /usr/local/lib/X11R6 \ 9764 /usr/local/lib/X11R5 \ 9765 /usr/local/lib/X11R4 \ 9766 \ 9767 /usr/X386/lib \ 9768 /usr/x386/lib \ 9769 /usr/XFree86/lib/X11 \ 9770 /usr/pkg/lib \ 9771 \ 9772 /usr/lib \ 9773 /usr/local/lib \ 9774 /usr/remote/lib \ 9775 /usr/unsupported/lib \ 9776 /usr/athena/lib \ 9777 /usr/local/x11r5/lib \ 9778 /usr/lpp/Xamples/lib \ 9779 /lib/usr/lib/X11 \ 9780 \ 9781 /usr/openwin/lib \ 9782 /usr/openwin/share/lib \ 9783 $extra_lib \ 9784 ; \ 9785do 9786 for ac_extension in a so sl; do 9787 if test -r $ac_dir/lib${xinerama_direct_test_library}.$ac_extension; then 9788 no_xinerama= ac_xinerama_libraries=$ac_dir 9789 break 2 9790 fi 9791 done 9792done 9793LIBS="$ac_save_LIBS" 9794 9795if test "$no_xinerama" = yes; then 9796 ac_cv_path_xinerama="no_xinerama=yes" 9797else 9798 ac_cv_path_xinerama="no_xinerama= ac_xinerama_includes=$ac_xinerama_includes ac_xinerama_libraries=$ac_xinerama_libraries" 9799fi 9800fi 9801 fi 9802 eval "$ac_cv_path_xinerama" 9803fi # with_xinerama != no 9804 9805if test "$no_xinerama" = yes; then 9806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9807$as_echo "no" >&6; } 9808 XINERAMA="#" 9809else 9810 xinerama=yes 9811 9812$as_echo "#define USE_XINERAMA 1" >>confdefs.h 9813 9814 XLOCKLIBS="${XLOCKLIBS} -lXinerama" 9815 test "x$xinerama_includes" = xNONE && xinerama_includes=$ac_xinerama_includes 9816 test "x$xinerama_libraries" = xNONE && xinerama_libraries=$ac_xinerama_libraries 9817 ac_cv_path_xinerama="no_xinerama= ac_xinerama_includes=$xinerama_includes ac_xinerama_libraries=$xinerama_libraries" 9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $xinerama_libraries, headers $xinerama_includes" >&5 9819$as_echo "libraries $xinerama_libraries, headers $xinerama_includes" >&6; } 9820 XINERAMA="" 9821fi 9822 9823 9824if test "x$xinerama_libraries" != x && test "x$xinerama_libraries" != xNONE ; then 9825 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$xinerama_libraries" 9826 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$xinerama_libraries" 9827fi 9828if test "x$xinerama_includes" != x && test "x$xinerama_includes" != xNONE ; then 9829 XLOCKINC="${XLOCKINC} -I$xinerama_includes" 9830fi 9831 9832sound=none 9833 9834NOPLAY="#" 9835if test "$sound" = none; then 9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DEF_PLAY" >&5 9837$as_echo_n "checking for DEF_PLAY... " >&6; } 9838 # Check whether --enable-def_play was given. 9839if test "${enable_def_play+set}" = set; then : 9840 enableval=$enable_def_play; def_play=$enableval 9841else 9842 def_play=yes 9843fi 9844 9845 if test "$def_play" = "yes"; then 9846 def_play=play.sh # yes is a bad default here 9847 fi 9848 if test "$def_play" != no; then 9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option DEF_PLAY = \"$def_play\"" >&5 9850$as_echo "defining option DEF_PLAY = \"$def_play\"" >&6; } 9851 9852cat >>confdefs.h <<_ACEOF 9853#define DEF_PLAY "$def_play" 9854_ACEOF 9855 9856 sound=$def_play 9857 NOPLAY="" 9858 else 9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9860$as_echo "no" >&6; } 9861 fi 9862fi 9863 9864 9865 9866 9867 9868 9869rplay_includes=NONE 9870rplay_libraries=NONE 9871 9872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RPLAY" >&5 9873$as_echo_n "checking for RPLAY... " >&6; } 9874 9875# Check whether --with-rplay was given. 9876if test "${with_rplay+set}" = set; then : 9877 withval=$with_rplay; 9878fi 9879 9880if test "x$with_rplay" = xno; then 9881 no_rplay=yes 9882else 9883 if test "x$rplay_includes" != xNONE && test "x$rplay_libraries" != xNONE; then 9884 no_rplay= 9885 else 9886if ${ac_cv_path_rplay+:} false; then : 9887 $as_echo_n "(cached) " >&6 9888else 9889 # One or both of these vars are not set, and there is no cached value. 9890no_rplay=yes 9891test -z "$rplay_direct_test_library" && rplay_direct_test_library=rplay 9892test -z "$rplay_direct_test_function" && rplay_direct_test_function=rplay_open_default 9893test -z "$rplay_direct_test_include" && rplay_direct_test_include=rplay.h 9894 for ac_dir in \ 9895 /usr/X11R6.5.1/include \ 9896 /usr/X11R6.4/include \ 9897 /usr/X11R6.3/include \ 9898 /usr/X11R6.2/include \ 9899 /usr/X11R6.1/include \ 9900 /usr/X11R6/include \ 9901 /usr/X11R5/include \ 9902 /usr/X11/include \ 9903 /usr/local/include \ 9904 /usr/remote/include \ 9905 /usr/pkg/include \ 9906 /usr/include \ 9907 $extra_include \ 9908 ; \ 9909 do 9910 if test -r "$ac_dir/$rplay_direct_test_include"; then 9911 no_rplay= ac_rplay_includes=$ac_dir 9912 break 9913 fi 9914 done 9915 9916# Check for the libraries. 9917# See if we find them without any special options. 9918# Do not add to $LIBS permanently. 9919ac_save_LIBS="$LIBS" 9920LIBS="-l$rplay_direct_test_library $LIBS" 9921# First see if replacing the include by lib works. 9922for ac_dir in `echo "$ac_rplay_includes" | sed s/include/lib/` \ 9923 \ 9924 /usr/X11R6.5.1/lib \ 9925 /usr/X11R6.4/lib \ 9926 /usr/X11R6.3/lib \ 9927 /usr/X11R6.2/lib \ 9928 /usr/X11R6.1/lib \ 9929 /usr/X11R6/lib \ 9930 /usr/X11R5/lib \ 9931 /usr/X11/lib \ 9932 /usr/lib \ 9933 /usr/local/lib \ 9934 /usr/remote/lib \ 9935 /usr/pkg/lib \ 9936 $extra_lib \ 9937 ; \ 9938do 9939 for ac_extension in a so sl; do 9940 if test -r $ac_dir/lib${rplay_direct_test_library}.$ac_extension; then 9941 no_rplay= ac_rplay_libraries=$ac_dir 9942 break 2 9943 fi 9944 done 9945done 9946LIBS="$ac_save_LIBS" 9947 9948if test "$no_rplay" = yes; then 9949 ac_cv_path_rplay="no_rplay=yes" 9950else 9951 ac_cv_path_rplay="no_rplay= ac_rplay_includes=$ac_rplay_includes ac_rplay_libraries=$ac_rplay_libraries" 9952fi 9953fi 9954 fi 9955 eval "$ac_cv_path_rplay" 9956fi # with_rplay != no 9957 9958if test "$no_rplay" = yes; then 9959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9960$as_echo "no" >&6; } 9961else 9962 if test "$sound" = none; then 9963 sound=rplay 9964 9965$as_echo "#define USE_RPLAY 1" >>confdefs.h 9966 9967 XLOCKLIBS="${XLOCKLIBS} -lrplay" 9968 test "x$rplay_includes" = xNONE && rplay_includes=$ac_rplay_includes 9969 test "x$rplay_libraries" = xNONE && rplay_libraries=$ac_rplay_libraries 9970 ac_cv_path_rplay="no_rplay= ac_rplay_includes=$rplay_includes ac_rplay_libraries=$rplay_libraries" 9971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $rplay_libraries, headers $rplay_includes" >&5 9972$as_echo "libraries $rplay_libraries, headers $rplay_includes" >&6; } 9973 else 9974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignored - using previous definition for sound" >&5 9975$as_echo "ignored - using previous definition for sound" >&6; } 9976 fi 9977fi 9978 9979 9980if test "x$rplay_libraries" != x && test "x$rplay_libraries" != xNONE ; then 9981 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$rplay_libraries" 9982 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$rplay_libraries" 9983fi 9984if test "x$rplay_includes" != x && test "x$rplay_includes" != xNONE ; then 9985 XLOCKINC="${XLOCKINC} -I$rplay_includes" 9986fi 9987 9988 9989 9990 9991 9992esound_includes=NONE 9993esound_libraries=NONE 9994 9995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ESOUND" >&5 9996$as_echo_n "checking for ESOUND... " >&6; } 9997 9998# Check whether --with-esound was given. 9999if test "${with_esound+set}" = set; then : 10000 withval=$with_esound; 10001fi 10002 10003 10004# Check whether --with-esound_config was given. 10005if test "${with_esound_config+set}" = set; then : 10006 withval=$with_esound_config; 10007fi 10008 10009 10010# Check whether --with-esound_prefix was given. 10011if test "${with_esound_prefix+set}" = set; then : 10012 withval=$with_esound_prefix; 10013fi 10014 10015 10016# Check whether --with-esound_includes was given. 10017if test "${with_esound_includes+set}" = set; then : 10018 withval=$with_esound_includes; 10019fi 10020 10021 10022# Check whether --with-esound_libraries was given. 10023if test "${with_esound_libraries+set}" = set; then : 10024 withval=$with_esound_libraries; 10025fi 10026 10027if test "x$with_esound" = xno; then 10028 no_esound=yes 10029else 10030 if test "x$esound_includes" != xNONE && test "x$esound_libraries" != xNONE; then 10031 no_esound= 10032 if test "x$esound_config" = "x"; then 10033 if test "x$esound_prefix" != "x"; then 10034 esound_config="$esound_prefix/bin/esd-config" 10035 else 10036 esound_config="esd-config" 10037 fi 10038 else 10039 if test "x$esound_prefix" = "x"; then 10040 esound_prefix=`($esound_config --prefix) 2>/dev/null` 10041 fi 10042 fi 10043 else 10044 if test "x$esound_config" = "x"; then 10045 if test "x$esound_prefix" != "x"; then 10046 esound_config="$esound_prefix/bin/esd-config" 10047 else 10048 esound_config="esd-config" 10049 fi 10050 else 10051 if test "x$esound_prefix" = "x"; then 10052 esound_prefix=`($esound_config --prefix) 2>/dev/null` 10053 fi 10054 fi 10055if ${ac_cv_path_esound+:} false; then : 10056 $as_echo_n "(cached) " >&6 10057else 10058 # One or both of these vars are not set, and there is no cached value. 10059no_esound=yes 10060no_esound_config=yes 10061if test "x$esound_prefix" != "x"; then 10062 ac_esound_prefix=$esound_prefix 10063 ac_esound_includes=$ac_esound_prefix/include 10064 ac_esound_libraries=$ac_esound_prefix/lib 10065 no_esound="ac_esound_config=$ac_esound_config ac_esound_prefix=$ac_esound_prefix ac_esound_includes=$ac_esound_includes ac_esound_libraries=$ac_esound_libraries" 10066else 10067 ac_esound_config="$esound_config" 10068 ac_esound_prefix=`($esound_config --prefix) 2>/dev/null` 10069 if test $? != 0; then 10070 no_esound=yes 10071 no_esound_config=yes 10072 ac_esound_config="" 10073 ac_esound_prefix="" 10074 else 10075 no_esound= 10076 no_esound_config= 10077 ac_esound_includes=$ac_esound_prefix/include 10078 ac_esound_libraries=$ac_esound_prefix/lib 10079 fi 10080fi 10081if test "$no_esound" = yes; then 10082 ac_cv_path_esound="no_esound=yes" 10083else 10084 ac_cv_path_esound="no_esound= ac_esound_config=\"$ac_esound_config\" ac_esound_prefix=\"$ac_esound_prefix\" ac_esound_includes=\"$ac_esound_includes\" ac_esound_libraries=\"$ac_esound_libraries\"" 10085fi 10086fi 10087 fi 10088 eval "$ac_cv_path_esound" 10089fi # with_esound != no 10090 10091if test "$no_esound_config" = yes; then 10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no esd-config" >&5 10093$as_echo "no esd-config" >&6; } 10094else 10095 if test "$no_esound" = yes; then 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10097$as_echo "no" >&6; } 10098 else 10099 if test "$sound" = none; then 10100 sound=esound 10101 10102$as_echo "#define USE_ESOUND 1" >>confdefs.h 10103 10104 10105$as_echo "#define HAVE_LIBESD 1" >>confdefs.h 10106 10107 test "x$esound_config" = xNONE && esound_config=$ac_esound_config 10108 test "x$esound_prefix" = xNONE && esound_prefix=$ac_esound_prefix 10109 test "x$esound_includes" = xNONE && esound_includes=$ac_esound_includes 10110 test "x$esound_libraries" = xNONE && esound_libraries=$ac_esound_libraries 10111 ac_cv_path_esound="no_esound= ac_esound_config=$esound_config ac_esound_prefix=$esound_prefix ac_esound_includes=$esound_includes ac_esound_libraries=$esound_libraries" 10112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $esound_libraries, headers $esound_includes" >&5 10113$as_echo "libraries $esound_libraries, headers $esound_includes" >&6; } 10114 else 10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignored - using previous definition for sound" >&5 10116$as_echo "ignored - using previous definition for sound" >&6; } 10117 fi 10118 fi 10119fi 10120 10121 10122if test "x$esound_libraries" != x && test "x$esound_libraries" != xNONE ; then 10123 XLOCKLIBS="${XLOCKLIBS} `$esound_config --libs`" 10124 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$esound_libraries" 10125 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$esound_libraries" 10126fi 10127if test "x$esound_includes" != x && test "x$esound_includes" != xNONE ; then 10128 XLOCKINC="${XLOCKINC} -I$esound_includes `$esound_config --cflags`" 10129fi 10130 10131 10132 10133 10134 10135 10136nas_includes=NONE 10137nas_libraries=NONE 10138 10139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAS" >&5 10140$as_echo_n "checking for NAS... " >&6; } 10141 10142# Check whether --with-nas was given. 10143if test "${with_nas+set}" = set; then : 10144 withval=$with_nas; 10145fi 10146 10147if test "x$with_nas" = xno; then 10148 no_nas=yes 10149else 10150 if test "x$nas_includes" != xNONE && test "x$nas_libraries" != xNONE; then 10151 no_nas= 10152 else 10153if ${ac_cv_path_nas+:} false; then : 10154 $as_echo_n "(cached) " >&6 10155else 10156 # One or both of these vars are not set, and there is no cached value. 10157no_nas=yes 10158test -z "$nas_direct_test_library" && nas_direct_test_library=audio 10159test -z "$nas_direct_test_function" && nas_direct_test_function=AuOpenServer 10160test -z "$nas_direct_test_include" && nas_direct_test_include=audio/audio.h 10161 for ac_dir in \ 10162 /usr/X11R6.5.1/include \ 10163 /usr/X11R6.4/include \ 10164 /usr/X11R6.3/include \ 10165 /usr/X11R6.2/include \ 10166 /usr/X11R6.1/include \ 10167 /usr/X11R6/include \ 10168 /usr/X11R5/include \ 10169 /usr/X11/include \ 10170 /usr/local/include \ 10171 /usr/remote/include \ 10172 /usr/pkg/include \ 10173 /usr/include \ 10174 $extra_include \ 10175 ; \ 10176 do 10177 if test -r "$ac_dir/$nas_direct_test_include"; then 10178 no_nas= ac_nas_includes=$ac_dir 10179 break 10180 fi 10181 done 10182 10183# Check for the libraries. 10184# See if we find them without any special options. 10185# Do not add to $LIBS permanently. 10186ac_save_LIBS="$LIBS" 10187LIBS="-l$nas_direct_test_library $LIBS" 10188# First see if replacing the include by lib works. 10189for ac_dir in `echo "$ac_nas_includes" | sed s/include/lib/` \ 10190 \ 10191 /usr/X11R6.5.1/lib \ 10192 /usr/X11R6.4/lib \ 10193 /usr/X11R6.3/lib \ 10194 /usr/X11R6.2/lib \ 10195 /usr/X11R6.1/lib \ 10196 /usr/X11R6/lib \ 10197 /usr/X11R5/lib \ 10198 /usr/X11/lib \ 10199 /usr/lib \ 10200 /usr/local/lib \ 10201 /usr/remote/lib \ 10202 /usr/pkg/lib \ 10203 $extra_lib \ 10204 ; \ 10205do 10206 for ac_extension in a so sl; do 10207 if test -r $ac_dir/lib${nas_direct_test_library}.$ac_extension; then 10208 no_nas= ac_nas_libraries=$ac_dir 10209 break 2 10210 fi 10211 done 10212done 10213LIBS="$ac_save_LIBS" 10214 10215if test "$no_nas" = yes; then 10216 ac_cv_path_nas="no_nas=yes" 10217else 10218 ac_cv_path_nas="no_nas= ac_nas_includes=$ac_nas_includes ac_nas_libraries=$ac_nas_libraries" 10219fi 10220fi 10221 fi 10222 eval "$ac_cv_path_nas" 10223fi # with_nas != no 10224 10225if test "$no_nas" = yes; then 10226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10227$as_echo "no" >&6; } 10228else 10229 if test "$sound" = none; then 10230 sgi=no 10231 case "${canonical}" in 10232 *-*-irix5* | *-*-irix6* ) 10233 sgi=yes 10234 ;; 10235 esac 10236 if test "$sgi" = yes; then 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignored - problems here with audio and nas" >&5 10238$as_echo "ignored - problems here with audio and nas" >&6; } 10239 else 10240 sound=nas 10241 10242$as_echo "#define USE_NAS 1" >>confdefs.h 10243 10244 XLOCKLIBS="${XLOCKLIBS} -laudio" 10245 test "x$nas_includes" = xNONE && nas_includes=$ac_nas_includes 10246 test "x$nas_libraries" = xNONE && nas_libraries=$ac_nas_libraries 10247 ac_cv_path_nas="no_nas= ac_nas_includes=$nas_includes ac_nas_libraries=$nas_libraries" 10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $nas_libraries, headers $nas_includes" >&5 10249$as_echo "libraries $nas_libraries, headers $nas_includes" >&6; } 10250 fi 10251 else 10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ignored - using previous definition for sound" >&5 10253$as_echo "ignored - using previous definition for sound" >&6; } 10254 fi 10255fi 10256 10257 10258if test "x$nas_libraries" != x && test "x$nas_libraries" != xNONE ; then 10259 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$nas_libraries" 10260 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$nas_libraries" 10261fi 10262if test "x$nas_includes" != x && test "x$nas_includes" != xNONE ; then 10263 XLOCKINC="${XLOCKINC} -I$nas_includes" 10264fi 10265 10266if test "$sound" != none; then 10267 if test "x$prefix" = "xNONE"; then 10268 10269cat >>confdefs.h <<_ACEOF 10270#define SOUNDPATH "/usr/local/share/xlock/sounds" 10271_ACEOF 10272 10273 else 10274 10275cat >>confdefs.h <<_ACEOF 10276#define SOUNDPATH "${prefix}/share/xlock/sounds" 10277_ACEOF 10278 10279 fi 10280fi 10281 10282 10283 10284 10285 10286 10287crypt_libraries=NONE 10288 10289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPT" >&5 10290$as_echo_n "checking for CRYPT... " >&6; } 10291 10292# Check whether --with-crypt was given. 10293if test "${with_crypt+set}" = set; then : 10294 withval=$with_crypt; 10295fi 10296 10297if test "x$with_crypt" = xno; then 10298 no_crypt=yes 10299else 10300 if test "x$crypt_libraries" != xNONE; then 10301 no_crypt= 10302 else 10303if ${ac_cv_path_crypt+:} false; then : 10304 $as_echo_n "(cached) " >&6 10305else 10306 # One or both of these vars are not set, and there is no cached value. 10307no_crypt=yes 10308test -z "$crypt_direct_test_library" && crypt_direct_test_library=crypt 10309 10310# Check for the libraries. 10311# See if we find them without any special options. 10312# Do not add to $LIBS permanently. 10313ac_save_LIBS="$LIBS" 10314LIBS="-l$crypt_direct_test_library $LIBS" 10315for ac_dir in \ 10316 /usr/lib \ 10317 /usr/local/lib \ 10318 /usr/remote/lib \ 10319 /usr/pkg/lib \ 10320 $extra_lib \ 10321 ; \ 10322do 10323 for ac_extension in a so sl; do 10324 if test -r $ac_dir/lib${crypt_direct_test_library}.$ac_extension; then 10325 no_crypt= ac_crypt_libraries=$ac_dir 10326 break 2 10327 fi 10328 done 10329done 10330LIBS="$ac_save_LIBS" 10331 10332if test "$no_crypt" = yes; then 10333 ac_cv_path_crypt="no_crypt=yes" 10334else 10335 ac_cv_path_crypt="no_crypt= ac_crypt_libraries=$ac_crypt_libraries" 10336fi 10337fi 10338 fi 10339 eval "$ac_cv_path_crypt" 10340fi # with_crypt != no 10341 10342if test "$no_crypt" = yes; then 10343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10344$as_echo "no" >&6; } 10345 # Fallback for AC_PATH_CRYPT_DIRECT. 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5 10347$as_echo_n "checking for library containing crypt... " >&6; } 10348if ${ac_cv_search_crypt+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350else 10351 ac_func_search_save_LIBS=$LIBS 10352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10353/* end confdefs.h. */ 10354 10355/* Override any GCC internal prototype to avoid an error. 10356 Use char because int might match the return type of a GCC 10357 builtin and then its argument prototype would still apply. */ 10358#ifdef __cplusplus 10359extern "C" 10360#endif 10361char crypt (); 10362int 10363main () 10364{ 10365return crypt (); 10366 ; 10367 return 0; 10368} 10369_ACEOF 10370for ac_lib in '' crypt; do 10371 if test -z "$ac_lib"; then 10372 ac_res="none required" 10373 else 10374 ac_res=-l$ac_lib 10375 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 10376 fi 10377 if ac_fn_c_try_link "$LINENO"; then : 10378 ac_cv_search_crypt=$ac_res 10379fi 10380rm -f core conftest.err conftest.$ac_objext \ 10381 conftest$ac_exeext 10382 if ${ac_cv_search_crypt+:} false; then : 10383 break 10384fi 10385done 10386if ${ac_cv_search_crypt+:} false; then : 10387 10388else 10389 ac_cv_search_crypt=no 10390fi 10391rm conftest.$ac_ext 10392LIBS=$ac_func_search_save_LIBS 10393fi 10394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5 10395$as_echo "$ac_cv_search_crypt" >&6; } 10396ac_res=$ac_cv_search_crypt 10397if test "$ac_res" != no; then : 10398 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 10399 if test "x$ac_cv_search_crypt" != 'xnone required'; then 10400 XLOCKLIBS="${XLOCKLIBS} $ac_cv_search_crypt" 10401 fi 10402fi 10403 10404else 10405 XLOCKLIBS="${XLOCKLIBS} -lcrypt" 10406 test "x$crypt_libraries" = xNONE && crypt_libraries=$ac_crypt_libraries 10407 ac_cv_path_crypt="no_crypt= ac_crypt_libraries=$crypt_libraries" 10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $crypt_libraries" >&5 10409$as_echo "libraries $crypt_libraries" >&6; } 10410fi 10411 10412 10413if test "x$crypt_libraries" != x && test "x$crypt_libraries" != xNONE ; then 10414 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$crypt_libraries" 10415 XLOCKLIBPATHS="${XLOCKLIBPATHS} -L$crypt_libraries" 10416fi 10417 10418 10419XGLOCK="" 10420XGLOCKDIR="" 10421INSTALL_XGLOCK="" 10422UNINSTALL_XGLOCK="" 10423 10424 10425for ac_prog in pkg-config 10426do 10427 # Extract the first word of "$ac_prog", so it can be a program name with args. 10428set dummy $ac_prog; ac_word=$2 10429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10430$as_echo_n "checking for $ac_word... " >&6; } 10431if ${ac_cv_path_pkg_config+:} false; then : 10432 $as_echo_n "(cached) " >&6 10433else 10434 case $pkg_config in 10435 [\\/]* | ?:[\\/]*) 10436 ac_cv_path_pkg_config="$pkg_config" # Let the user override the test with a path. 10437 ;; 10438 *) 10439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10440for as_dir in $PATH 10441do 10442 IFS=$as_save_IFS 10443 test -z "$as_dir" && as_dir=. 10444 for ac_exec_ext in '' $ac_executable_extensions; do 10445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10446 ac_cv_path_pkg_config="$as_dir/$ac_word$ac_exec_ext" 10447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10448 break 2 10449 fi 10450done 10451 done 10452IFS=$as_save_IFS 10453 10454 ;; 10455esac 10456fi 10457pkg_config=$ac_cv_path_pkg_config 10458if test -n "$pkg_config"; then 10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pkg_config" >&5 10460$as_echo "$pkg_config" >&6; } 10461else 10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10463$as_echo "no" >&6; } 10464fi 10465 10466 10467 test -n "$pkg_config" && break 10468done 10469 10470 10471if test -n "$pkg_config" ; then 10472 # 10473 # the new way... 10474 # run pkg-config based tests. 10475 # 10476 pkgs='' 10477 pkg_check_version() { 10478 if test "$ok" = yes ; then 10479 req="$1" 10480 min="$2" 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $req" >&5 10482$as_echo_n "checking for $req... " >&6; } 10483 if $pkg_config --exists "$req" 2> /dev/null ; then 10484 vers=`$pkg_config --modversion "$req"` 10485 if $pkg_config --exists "$req >= $min" ; then 10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers" >&5 10487$as_echo "$vers" >&6; } 10488 pkgs="$pkgs $req" 10489 return 1 10490 else 10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vers (wanted >= $min)" >&5 10492$as_echo "$vers (wanted >= $min)" >&6; } 10493 ok=no 10494 return 0 10495 fi 10496 else 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10498$as_echo "no" >&6; } 10499 ok=no 10500 return 0 10501 fi 10502 fi 10503 } 10504 10505 10506# Check whether --with-gtk2 was given. 10507if test "${with_gtk2+set}" = set; then : 10508 withval=$with_gtk2; 10509fi 10510 10511 if test "x$with_gtk2" != "xno" ; then 10512 #AC_MSG_RESULT(checking for GTK 2.x with pkg-config based tests...) 10513 ok="yes" 10514 pkg_check_version gtk+-2.0 2.0.1 ; ac_gtk_version_string="$vers" 10515 have_gtk="$ok" 10516 10517 if test "$have_gtk" = yes; then 10518 XGLOCK="xglock" 10519 INSTALL_XGLOCK="install_xglock" 10520 UNINSTALL_XGLOCK="uninstall_xglock" 10521 XGLOCKINC=`$pkg_config --cflags gtk+-x11-2.0` 10522 XGLOCKLDFLAGS=`$pkg_config --libs gtk+-x11-2.0`" ${LDFLAGS}" 10523 with_gtk="no" 10524 fi 10525 fi 10526fi 10527 10528 10529# Check whether --with-gtk was given. 10530if test "${with_gtk+set}" = set; then : 10531 withval=$with_gtk; 10532fi 10533 10534if test "x$with_gtk" != "xno" ; then 10535 10536# Check whether --with-gtk-prefix was given. 10537if test "${with_gtk_prefix+set}" = set; then : 10538 withval=$with_gtk_prefix; gtk_config_prefix="$withval" 10539else 10540 gtk_config_prefix="" 10541fi 10542 10543 10544# Check whether --with-gtk-exec-prefix was given. 10545if test "${with_gtk_exec_prefix+set}" = set; then : 10546 withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval" 10547else 10548 gtk_config_exec_prefix="" 10549fi 10550 10551# Check whether --enable-gtktest was given. 10552if test "${enable_gtktest+set}" = set; then : 10553 enableval=$enable_gtktest; 10554else 10555 enable_gtktest=yes 10556fi 10557 10558 10559 if test x$gtk_config_exec_prefix != x ; then 10560 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix" 10561 if test x${GTK_CONFIG+set} != xset ; then 10562 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config 10563 fi 10564 fi 10565 if test x$gtk_config_prefix != x ; then 10566 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix" 10567 if test x${GTK_CONFIG+set} != xset ; then 10568 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config 10569 fi 10570 fi 10571 10572 # Extract the first word of "gtk-config", so it can be a program name with args. 10573set dummy gtk-config; ac_word=$2 10574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10575$as_echo_n "checking for $ac_word... " >&6; } 10576if ${ac_cv_path_GTK_CONFIG+:} false; then : 10577 $as_echo_n "(cached) " >&6 10578else 10579 case $GTK_CONFIG in 10580 [\\/]* | ?:[\\/]*) 10581 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path. 10582 ;; 10583 *) 10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10585for as_dir in $PATH 10586do 10587 IFS=$as_save_IFS 10588 test -z "$as_dir" && as_dir=. 10589 for ac_exec_ext in '' $ac_executable_extensions; do 10590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10591 ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10593 break 2 10594 fi 10595done 10596 done 10597IFS=$as_save_IFS 10598 10599 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no" 10600 ;; 10601esac 10602fi 10603GTK_CONFIG=$ac_cv_path_GTK_CONFIG 10604if test -n "$GTK_CONFIG"; then 10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CONFIG" >&5 10606$as_echo "$GTK_CONFIG" >&6; } 10607else 10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10609$as_echo "no" >&6; } 10610fi 10611 10612 10613 min_gtk_version=1.2.0 10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK - version >= $min_gtk_version" >&5 10615$as_echo_n "checking for GTK - version >= $min_gtk_version... " >&6; } 10616 no_gtk="" 10617 if test "$GTK_CONFIG" = "no" ; then 10618 no_gtk=yes 10619 else 10620 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags` 10621 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs` 10622 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \ 10623 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` 10624 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \ 10625 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` 10626 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \ 10627 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` 10628 if test "x$enable_gtktest" = "xyes" ; then 10629 ac_save_CFLAGS="$CFLAGS" 10630 ac_save_LIBS="$LIBS" 10631 CFLAGS="$CFLAGS $GTK_CFLAGS" 10632 LIBS="$LIBS $GTK_LIBS" 10633 rm -f conf.gtktest 10634 if test "$cross_compiling" = yes; then : 10635 echo $ac_n "cross compiling; assumed OK... $ac_c" 10636else 10637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10638/* end confdefs.h. */ 10639 10640#include <gtk/gtk.h> 10641#include <stdio.h> 10642 10643int 10644main () 10645{ 10646 int major, minor, micro; 10647 char *tmp_version; 10648 10649 system ("touch conf.gtktest"); 10650 10651 /* HP/UX 9 (%@#!) writes to sscanf strings */ 10652 tmp_version = g_strdup("$min_gtk_version"); 10653 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { 10654 printf("%s, bad version string\n", "$min_gtk_version"); 10655 exit(1); 10656 } 10657 10658 if ((gtk_major_version != $gtk_config_major_version) || 10659 (gtk_minor_version != $gtk_config_minor_version) || 10660 (gtk_micro_version != $gtk_config_micro_version)) 10661 { 10662 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", 10663 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, 10664 gtk_major_version, gtk_minor_version, gtk_micro_version); 10665 printf ("*** was found! If gtk-config was correct, then it is best\n"); 10666 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); 10667 printf("*** by modifying your LD_LIBRARY_PATH environment variable, or by editing\n"); 10668 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); 10669 printf("*** required on your system.\n"); 10670 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n"); 10671 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n"); 10672 printf("*** before re-running configure\n"); 10673 } 10674 else 10675 { 10676 if ((gtk_major_version > major) || 10677 ((gtk_major_version == major) && (gtk_minor_version > minor)) || 10678 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) 10679 { 10680 return 0; 10681 } 10682 else 10683 { 10684 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", 10685 gtk_major_version, gtk_minor_version, gtk_micro_version); 10686 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", 10687 major, minor, micro); 10688 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); 10689 printf("***\n"); 10690 printf("*** If you have already installed a sufficiently new version, this error\n"); 10691 printf("*** probably means that the wrong copy of the gtk-config shell script is\n"); 10692 printf("*** being found. The easiest way to fix this is to remove the old version\n"); 10693 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n"); 10694 printf("*** correct copy of gtk-config. (In this case, you will have to\n"); 10695 printf("*** modify your LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf\n"); 10696 printf("*** so that the correct libraries are found at run-time))\n"); 10697 } 10698 } 10699 return 1; 10700} 10701 10702_ACEOF 10703if ac_fn_c_try_run "$LINENO"; then : 10704 10705else 10706 no_gtk=yes 10707fi 10708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10709 conftest.$ac_objext conftest.beam conftest.$ac_ext 10710fi 10711 10712 CFLAGS="$ac_save_CFLAGS" 10713 LIBS="$ac_save_LIBS" 10714 fi 10715 fi 10716 if test "x$no_gtk" = x ; then 10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10718$as_echo "yes" >&6; } 10719 have_gtk="yes" 10720 else 10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10722$as_echo "no" >&6; } 10723 if test "$GTK_CONFIG" = "no" ; then 10724 echo "*** The gtk-config script installed by GTK could not be found" 10725 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in" 10726 echo "*** your path, or set the GTK_CONFIG environment variable to the" 10727 echo "*** full path to gtk-config." 10728 else 10729 if test -f conf.gtktest ; then 10730 : 10731 else 10732 echo "*** Could not run GTK test program, checking why..." 10733 CFLAGS="$CFLAGS $GTK_CFLAGS" 10734 LIBS="$LIBS $GTK_LIBS" 10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10736/* end confdefs.h. */ 10737 10738#include <gtk/gtk.h> 10739#include <stdio.h> 10740 10741int 10742main () 10743{ 10744 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); 10745 ; 10746 return 0; 10747} 10748_ACEOF 10749if ac_fn_c_try_link "$LINENO"; then : 10750 echo "*** The test program compiled, but did not run. This usually means" 10751 echo "*** that the run-time linker is not finding GTK or finding the wrong" 10752 echo "*** version of GTK. If it is not finding GTK, you'll need to set your" 10753 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 10754 echo "*** to the installed location Also, make sure you have run ldconfig if that" 10755 echo "*** is required on your system" 10756 echo "***" 10757 echo "*** If you have an old version installed, it is best to remove it, although" 10758 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 10759 echo "***" 10760 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that" 10761 echo "*** came with the system with the command" 10762 echo "***" 10763 echo "*** rpm --erase --nodeps gtk gtk-devel" 10764else 10765 echo "*** The test program failed to compile or link. See the file config.log for the" 10766 echo "*** exact error that occurred. This usually means GTK was incorrectly installed" 10767 echo "*** or that you have moved GTK since it was installed. In the latter case, you" 10768 echo "*** may want to edit the gtk-config script: $GTK_CONFIG" 10769fi 10770rm -f core conftest.err conftest.$ac_objext \ 10771 conftest$ac_exeext conftest.$ac_ext 10772 CFLAGS="$ac_save_CFLAGS" 10773 LIBS="$ac_save_LIBS" 10774 fi 10775 fi 10776 GTK_CFLAGS="" 10777 GTK_LIBS="" 10778 have_gtk="no" 10779 fi 10780 10781 10782 rm -f conf.gtktest 10783 10784 if test "$have_gtk" = yes; then 10785 XGLOCK="xglock" 10786 INSTALL_XGLOCK="install_xglock" 10787 UNINSTALL_XGLOCK="uninstall_xglock" 10788 fi 10789fi 10790 10791 10792 10793aixv3=no 10794dirent=yes 10795FORTUNE="#" 10796FORTUNE_PATH="/usr/bin/fortune" 10797if test -x $FORTUNE_PATH; then 10798 FORTUNE="" 10799else 10800 FORTUNE_PATH="/usr/games/fortune" 10801 if test -x $FORTUNE_PATH; then 10802 FORTUNE="" 10803 fi 10804fi 10805 10806case "${canonical}" in 10807 10808 *-*-aix* ) 10809 BITMAPTYPE="ibm" 10810 PIXMAPTYPE="ibm" 10811 10812$as_echo "#define AIXV3 1" >>confdefs.h 10813 10814 aixv3=yes 10815 case "${canonical}" in 10816 *-*-aix2* | *-*-aix3.0* | *-*-aix3.1* ) 10817 10818$as_echo "#define LESS_THAN_AIX3_2 1" >>confdefs.h 10819 10820 ;; 10821 esac 10822 ;; 10823 10824 *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-dragonfly* ) 10825 BITMAPTYPE="bsd" 10826 PIXMAPTYPE="bsd" 10827 FORTUNE="" 10828 INSTPGMFLAGS="-s -o root -m 4111" 10829 cpp_name=`echo $CC | cut -f1 -d' '` 10830 if test "$cpp_name" = "gcc"; then 10831 dirname=`which gcc` 10832 dirname=`dirname $dirname` 10833 dirname=`dirname $dirname`/lib 10834 if test "$dirname" != "/lib"; then 10835 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$dirname" 10836 XMLOCK_LDFLAGS="${XMLOCK_LDFLAGS}:$dirname" 10837 fi 10838 fi 10839 case "${canonical}" in 10840 *-*-freebsd* ) 10841 FORTUNE_PATH="/usr/bin/fortune" 10842 ;; 10843 esac 10844 XLOCKLDFLAGS="-Wl,-R${XLOCK_LDFLAGS}" 10845 XMLOCKLDFLAGS="-Wl,-R${XMLOCK_LDFLAGS}" 10846 ;; 10847 10848 *-*-dgux5* ) 10849 BITMAPTYPE="x11" 10850 PIXMAPTYPE="x11" 10851 ;; 10852 10853 *-*-hpux* ) 10854 if test "${CC}" = "cc" ; then 10855 CFLAGS="${CFLAGS} -Aa -z -D_HPUX_SOURCE" 10856 GPROF_CFLAGS="${GPROF_CFLAGS} -Aa -z -D_HPUX_SOURCE" 10857 fi 10858 XLOCKLIBS="-lXhp11 ${XLOCKLIBS}" 10859 10860$as_echo "#define SYSV 1" >>confdefs.h 10861 10862 10863$as_echo "#define SVR4 1" >>confdefs.h 10864 10865 BITMAPTYPE="hp" 10866 PIXMAPTYPE="hp" 10867 ;; 10868 10869 *-*-irix5* | *-*-irix6* ) 10870 if test "${CC}" = "cc" ; then 10871 CFLAGS="${CFLAGS} -fullwarn" 10872 fi 10873 10874cat >>confdefs.h <<_ACEOF 10875#define glGenTextures "glGenTexturesEXT" 10876_ACEOF 10877 10878 10879cat >>confdefs.h <<_ACEOF 10880#define glDeleteTextures "glDeleteTexturesEXT" 10881_ACEOF 10882 10883 10884cat >>confdefs.h <<_ACEOF 10885#define glBindTextures "glBindTexturesEXT" 10886_ACEOF 10887 10888 BITMAPTYPE="sgi" 10889 PIXMAPTYPE="sgi" 10890 ;; 10891 10892 *-*-linux* ) 10893 ac_fn_c_check_header_mongrel "$LINENO" "elf.h" "ac_cv_header_elf_h" "$ac_includes_default" 10894if test "x$ac_cv_header_elf_h" = xyes; then : 10895 10896$as_echo "#define HAVE_SHADOW 1" >>confdefs.h 10897 10898fi 10899 10900 10901 10902$as_echo "#define linux 1" >>confdefs.h 10903 10904 10905$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 10906 10907 10908$as_echo "#define _BSD_SOURCE 1" >>confdefs.h 10909 10910 10911$as_echo "#define _DEFAULT_SOURCE 1" >>confdefs.h 10912 10913 10914$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 10915 10916 if test -e /etc/shadow ; then 10917 INSTPGMFLAGS="-g shadow -m 2111" 10918 case `ls -l /etc/shadow` in 10919 -???r?????\ *\ shadow\ *\ /etc/shadow) # group shadow can read it 10920 INSTPGMFLAGS="-g shadow -m 2111" 10921 ;; 10922 *) 10923 INSTPGMFLAGS="-o root -m 4111" 10924 ;; 10925 esac 10926 fi 10927 INSTPGMFLAGS="-s $INSTPGMFLAGS" 10928 BITMAPTYPE="linux" 10929 PIXMAPTYPE="linux" 10930 ;; 10931 10932 *-*-cygwin* ) 10933 BITMAPTYPE="cygwin" 10934 PIXMAPTYPE="cygwin" 10935 ;; 10936 10937 *-*-osf* ) 10938 BITMAPTYPE="dec" 10939 PIXMAPTYPE="dec" 10940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Digital/Tru64 Unix Enhanced Security" >&5 10941$as_echo_n "checking for Digital/Tru64 Unix Enhanced Security... " >&6; } 10942 # This section should check for the presence of the newer Enhanced 10943 # security routines, and use them if they're available. 10944 if test -f /usr/sbin/rcmgr && test -f /etc/rc.config ; then 10945 if test X`/usr/sbin/rcmgr get SECURITY` = XENHANCED ; then 10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10947$as_echo "yes" >&6; } 10948 10949$as_echo "#define OSF1_ENH_SEC 1" >>confdefs.h 10950 10951 10952 XLOCKLIBS="${XLOCKLIBS} -lsecurity" 10953 # SETGID auth may not be enough for Tru64 5.x. 10954 INSTPGMFLAGS="-s -g auth -m 2111" 10955 else 10956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10957$as_echo "no" >&6; } 10958 fi 10959 fi 10960 ;; 10961 10962 *-*-sco* ) 10963 BITMAPTYPE="sco" 10964 PIXMAPTYPE="sco" 10965 10966$as_echo "#define HAVE_SHADOW 1" >>confdefs.h 10967 10968 10969$as_echo "#define SYSV 1" >>confdefs.h 10970 10971 ;; 10972 10973 *-*-solaris2* ) 10974 10975$as_echo "#define SOLARIS2 1" >>confdefs.h 10976 10977 PIXMAPTYPE="solaris" 10978 case "${canonical}" in 10979 *-*-solaris2.0* | *-*-solaris2.1* | *-*-solaris2.2* | *-*-solaris2.3* | *-*-solaris2.4* ) 10980 10981$as_echo "#define LESS_THAN_SOLARIS2_5 1" >>confdefs.h 10982 10983 PIXMAPTYPE="sol" 10984 ;; 10985 *-*-solaris2.5* | *-*-solaris2.6*) 10986 PIXMAPTYPE="sol" 10987 ;; 10988 esac 10989 INSTPGMFLAGS="-s -o root -m 4111" 10990 10991$as_echo "#define HAVE_SHADOW 1" >>confdefs.h 10992 10993 10994$as_echo "#define SYSV 1" >>confdefs.h 10995 10996 10997$as_echo "#define SVR4 1" >>confdefs.h 10998 10999 BITMAPTYPE="sun" 11000 XLOCKLIBS="${XLOCKLIBS} -lposix4" 11001 LIBS="${LIBS} -lsocket -lnsl -lposix4" 11002 cpp_name=`echo $CC | cut -f1 -d' '` 11003 if test "$cpp_name" = "gcc"; then 11004 dirname=`which gcc` 11005 dirname=`dirname $dirname` 11006 dirname=`dirname $dirname`/lib 11007 if test "$dirname" != "/lib"; then 11008 XLOCK_LDFLAGS="${XLOCK_LDFLAGS}:$dirname" 11009 XMLOCK_LDFLAGS="${XMLOCK_LDFLAGS}:$dirname" 11010 fi 11011 fi 11012 XLOCKLDFLAGS="-R${XLOCK_LDFLAGS}" 11013 XMLOCKLDFLAGS="-R${XMLOCK_LDFLAGS}" 11014 ;; 11015 11016 *-*-sunos4* ) 11017 11018$as_echo "#define SUNOS4 1" >>confdefs.h 11019 11020 BITMAPTYPE="sun" 11021 PIXMAPTYPE="sun" 11022 ;; 11023 11024 *-*-sysv5* ) 11025 INSTPGMFLAGS="-s -o root -m 4111" 11026 11027$as_echo "#define HAVE_SHADOW 1" >>confdefs.h 11028 11029 11030$as_echo "#define SYSV 1" >>confdefs.h 11031 11032 11033$as_echo "#define SVR4 1" >>confdefs.h 11034 11035 XLOCKLIBS="${XLOCKLIBS} -lgen" 11036 XMLOCKLIBS="${XMLOCKLIBS} -lgen" 11037 LIBS="${LIBS} -lsocket -lnsl" 11038 BITMAPTYPE="x11" 11039 PIXMAPTYPE="x11" 11040 ;; 11041 11042 *) 11043 BITMAPTYPE="x11" 11044 PIXMAPTYPE="x11" 11045 ;; 11046esac 11047 11048if test "$dirent" = yes; then 11049 ac_header_dirent=no 11050for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 11051 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 11052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 11053$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 11054if eval \${$as_ac_Header+:} false; then : 11055 $as_echo_n "(cached) " >&6 11056else 11057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11058/* end confdefs.h. */ 11059#include <sys/types.h> 11060#include <$ac_hdr> 11061 11062int 11063main () 11064{ 11065if ((DIR *) 0) 11066return 0; 11067 ; 11068 return 0; 11069} 11070_ACEOF 11071if ac_fn_c_try_compile "$LINENO"; then : 11072 eval "$as_ac_Header=yes" 11073else 11074 eval "$as_ac_Header=no" 11075fi 11076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11077fi 11078eval ac_res=\$$as_ac_Header 11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 11080$as_echo "$ac_res" >&6; } 11081if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11082 cat >>confdefs.h <<_ACEOF 11083#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 11084_ACEOF 11085 11086ac_header_dirent=$ac_hdr; break 11087fi 11088 11089done 11090# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 11091if test $ac_header_dirent = dirent.h; then 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 11093$as_echo_n "checking for library containing opendir... " >&6; } 11094if ${ac_cv_search_opendir+:} false; then : 11095 $as_echo_n "(cached) " >&6 11096else 11097 ac_func_search_save_LIBS=$LIBS 11098cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11099/* end confdefs.h. */ 11100 11101/* Override any GCC internal prototype to avoid an error. 11102 Use char because int might match the return type of a GCC 11103 builtin and then its argument prototype would still apply. */ 11104#ifdef __cplusplus 11105extern "C" 11106#endif 11107char opendir (); 11108int 11109main () 11110{ 11111return opendir (); 11112 ; 11113 return 0; 11114} 11115_ACEOF 11116for ac_lib in '' dir; do 11117 if test -z "$ac_lib"; then 11118 ac_res="none required" 11119 else 11120 ac_res=-l$ac_lib 11121 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11122 fi 11123 if ac_fn_c_try_link "$LINENO"; then : 11124 ac_cv_search_opendir=$ac_res 11125fi 11126rm -f core conftest.err conftest.$ac_objext \ 11127 conftest$ac_exeext 11128 if ${ac_cv_search_opendir+:} false; then : 11129 break 11130fi 11131done 11132if ${ac_cv_search_opendir+:} false; then : 11133 11134else 11135 ac_cv_search_opendir=no 11136fi 11137rm conftest.$ac_ext 11138LIBS=$ac_func_search_save_LIBS 11139fi 11140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11141$as_echo "$ac_cv_search_opendir" >&6; } 11142ac_res=$ac_cv_search_opendir 11143if test "$ac_res" != no; then : 11144 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11145 11146fi 11147 11148else 11149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 11150$as_echo_n "checking for library containing opendir... " >&6; } 11151if ${ac_cv_search_opendir+:} false; then : 11152 $as_echo_n "(cached) " >&6 11153else 11154 ac_func_search_save_LIBS=$LIBS 11155cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11156/* end confdefs.h. */ 11157 11158/* Override any GCC internal prototype to avoid an error. 11159 Use char because int might match the return type of a GCC 11160 builtin and then its argument prototype would still apply. */ 11161#ifdef __cplusplus 11162extern "C" 11163#endif 11164char opendir (); 11165int 11166main () 11167{ 11168return opendir (); 11169 ; 11170 return 0; 11171} 11172_ACEOF 11173for ac_lib in '' x; do 11174 if test -z "$ac_lib"; then 11175 ac_res="none required" 11176 else 11177 ac_res=-l$ac_lib 11178 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11179 fi 11180 if ac_fn_c_try_link "$LINENO"; then : 11181 ac_cv_search_opendir=$ac_res 11182fi 11183rm -f core conftest.err conftest.$ac_objext \ 11184 conftest$ac_exeext 11185 if ${ac_cv_search_opendir+:} false; then : 11186 break 11187fi 11188done 11189if ${ac_cv_search_opendir+:} false; then : 11190 11191else 11192 ac_cv_search_opendir=no 11193fi 11194rm conftest.$ac_ext 11195LIBS=$ac_func_search_save_LIBS 11196fi 11197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 11198$as_echo "$ac_cv_search_opendir" >&6; } 11199ac_res=$ac_cv_search_opendir 11200if test "$ac_res" != no; then : 11201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11202 11203fi 11204 11205fi 11206 11207fi 11208 11209ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 11210if test "x$ac_cv_func_usleep" = xyes; then : 11211 11212$as_echo "#define HAVE_USLEEP 1" >>confdefs.h 11213 11214fi 11215 11216if test $ac_cv_func_usleep = no; then 11217ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 11218if test "x$ac_cv_func_nanosleep" = xyes; then : 11219 11220$as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h 11221 11222fi 11223 11224fi 11225 11226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call gettimeofday" >&5 11227$as_echo_n "checking how to call gettimeofday... " >&6; } 11228if ${ac_cv_gettimeofday_args+:} false; then : 11229 $as_echo_n "(cached) " >&6 11230else 11231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11232/* end confdefs.h. */ 11233#include <stdlib.h> 11234#include <sys/time.h> 11235int 11236main () 11237{ 11238struct timeval tv; struct timezone tzp; 11239 gettimeofday(&tv, &tzp); 11240 ; 11241 return 0; 11242} 11243_ACEOF 11244if ac_fn_c_try_compile "$LINENO"; then : 11245 ac_gettimeofday_args=2 11246else 11247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11248/* end confdefs.h. */ 11249#include <stdlib.h> 11250#include <sys/time.h> 11251int 11252main () 11253{ 11254struct timeval tv; gettimeofday(&tv); 11255 ; 11256 return 0; 11257} 11258_ACEOF 11259if ac_fn_c_try_compile "$LINENO"; then : 11260 ac_gettimeofday_args=1 11261else 11262 ac_gettimeofday_args=0 11263fi 11264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11265fi 11266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11267 ac_cv_gettimeofday_args=$ac_gettimeofday_args 11268fi 11269 11270ac_gettimeofday_args=$ac_cv_gettimeofday_args 11271if test $ac_gettimeofday_args = 2 ; then 11272 11273$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 11274 11275 11276$as_echo "#define GETTIMEOFDAY_TWO_ARGS 1" >>confdefs.h 11277 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: two arguments" >&5 11279$as_echo "two arguments" >&6; } 11280elif test $ac_gettimeofday_args = 1 ; then 11281 11282$as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h 11283 11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: one argument" >&5 11285$as_echo "one argument" >&6; } 11286else 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 11288$as_echo "unknown" >&6; } 11289fi 11290 11291for ac_func in tzset timelocal 11292do : 11293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11294ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11295if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11296 cat >>confdefs.h <<_ACEOF 11297#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11298_ACEOF 11299 11300fi 11301done 11302 11303 11304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 11305$as_echo_n "checking for inline... " >&6; } 11306if ${ac_cv_c_inline+:} false; then : 11307 $as_echo_n "(cached) " >&6 11308else 11309 ac_cv_c_inline=no 11310for ac_kw in inline __inline__ __inline; do 11311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11312/* end confdefs.h. */ 11313#ifndef __cplusplus 11314typedef int foo_t; 11315static $ac_kw foo_t static_foo () {return 0; } 11316$ac_kw foo_t foo () {return 0; } 11317#endif 11318 11319_ACEOF 11320if ac_fn_c_try_compile "$LINENO"; then : 11321 ac_cv_c_inline=$ac_kw 11322fi 11323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11324 test "$ac_cv_c_inline" != no && break 11325done 11326 11327fi 11328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 11329$as_echo "$ac_cv_c_inline" >&6; } 11330 11331case $ac_cv_c_inline in 11332 inline | yes) ;; 11333 *) 11334 case $ac_cv_c_inline in 11335 no) ac_val=;; 11336 *) ac_val=$ac_cv_c_inline;; 11337 esac 11338 cat >>confdefs.h <<_ACEOF 11339#ifndef __cplusplus 11340#define inline $ac_val 11341#endif 11342_ACEOF 11343 ;; 11344esac 11345 11346 11347srand=no 11348ac_fn_c_check_func "$LINENO" "srand48" "ac_cv_func_srand48" 11349if test "x$ac_cv_func_srand48" = xyes; then : 11350 11351$as_echo "#define HAVE_RAND48 1" >>confdefs.h 11352 11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for srand48 declaration" >&5 11354$as_echo_n "checking for srand48 declaration... " >&6; } 11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11356/* end confdefs.h. */ 11357#include <stdlib.h> 11358 11359_ACEOF 11360if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11361 $EGREP "srand48" >/dev/null 2>&1; then : 11362 11363$as_echo "#define DECLARED_SRAND48 1" >>confdefs.h 11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11365$as_echo "yes" >&6; } 11366else 11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11368$as_echo "no" >&6; } 11369fi 11370rm -f conftest* 11371 11372fi 11373 11374 if test $ac_cv_func_srand48 = no; then 11375 ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom" 11376if test "x$ac_cv_func_srandom" = xyes; then : 11377 11378$as_echo "#define HAVE_RANDOM 1" >>confdefs.h 11379 11380fi 11381 11382 if test $ac_cv_func_srandom = no; then 11383 ac_fn_c_check_func "$LINENO" "random" "ac_cv_func_random" 11384if test "x$ac_cv_func_random" = xyes; then : 11385 11386$as_echo "#define HAVE_RAND 1" >>confdefs.h 11387 srand=yes 11388fi 11389 11390 fi 11391 fi 11392if test "$srand" = yes; then 11393 if test "$aixv3" = yes; then 11394 11395$as_echo "#define MAXRAND 2147483648.0" >>confdefs.h 11396 11397 else 11398 11399$as_echo "#define MAXRAND 32768.0" >>confdefs.h 11400 11401 fi 11402fi 11403 11404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking matherr support" >&5 11405$as_echo_n "checking matherr support... " >&6; } 11406if ${ac_cv_c_matherr+:} false; then : 11407 $as_echo_n "(cached) " >&6 11408else 11409 11410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11411/* end confdefs.h. */ 11412#define _XOPEN_SOURCE 1 11413#include <math.h> 11414int 11415main () 11416{ 11417 11418struct exception x; 11419x.type = DOMAIN; 11420x.type = SING; 11421 11422 ; 11423 return 0; 11424} 11425_ACEOF 11426if ac_fn_c_try_compile "$LINENO"; then : 11427 ac_cv_c_matherr=yes 11428else 11429 ac_cv_c_matherr=no 11430fi 11431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11432fi 11433 11434if test x"$ac_cv_c_matherr" = xyes; then 11435 11436$as_echo "#define USE_MATHERR 1" >>confdefs.h 11437 11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11439$as_echo "yes" >&6; } 11440else 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11442$as_echo "no" >&6; } 11443fi 11444 11445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking struct sigset_t" >&5 11446$as_echo_n "checking struct sigset_t... " >&6; } 11447if ${ac_cv_c_sigset_t+:} false; then : 11448 $as_echo_n "(cached) " >&6 11449else 11450 11451cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11452/* end confdefs.h. */ 11453/*#define _XOPEN_SOURCE 1*/ 11454#include <signal.h> 11455int 11456main () 11457{ 11458 11459typedef struct {unsigned long __sigbits[4];} sigset_t; 11460sigset_t sigmask; 11461 11462 ; 11463 return 0; 11464} 11465_ACEOF 11466if ac_fn_c_try_compile "$LINENO"; then : 11467 ac_cv_c_sigset_t=yes 11468else 11469 ac_cv_c_sigset_t=no 11470fi 11471rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11472fi 11473 11474if test x"$ac_cv_c_sigset_t" = xyes; then 11475 case "${canonical}" in 11476 *-*-solaris2.0* | *-*-solaris2.1* | *-*-solaris2.2* | *-*-solaris2.3* | *-*-solaris2.4* | *-*-solaris2.5*) 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11478$as_echo "yes" >&6; } 11479 11480$as_echo "#define HAVE_STRUCT_SIGSET_T 1" >>confdefs.h 11481 11482 ;; 11483 *) 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11485$as_echo "no" >&6; } 11486 ;; 11487 esac 11488else 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11490$as_echo "no" >&6; } 11491fi 11492 11493ac_ext=cpp 11494ac_cpp='$CXXCPP $CPPFLAGS' 11495ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11496ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11497ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 11498 11499ac_save_CPPFLAGS="$CPPFLAGS" 11500CPPFLAGS="$CPPFLAGS -I/usr/include" 11501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether wchar_t is defined internal to C++" >&5 11502$as_echo_n "checking whether wchar_t is defined internal to C++... " >&6; } 11503 11504if ${ac_cv_c_wchar_t+:} false; then : 11505 $as_echo_n "(cached) " >&6 11506else 11507 11508cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11509/* end confdefs.h. */ 11510 11511#include <stddef.h> 11512int 11513main () 11514{ 11515 11516 11517 ; 11518 return 0; 11519} 11520_ACEOF 11521if ac_fn_cxx_try_compile "$LINENO"; then : 11522 ac_cv_c_wchar_t=no 11523else 11524 ac_cv_c_wchar_t=yes 11525fi 11526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11527fi 11528 11529if test x"$ac_cv_c_wchar_t" = xyes; then 11530 11531$as_echo "#define _WCHAR_T 1" >>confdefs.h 11532 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11534$as_echo "yes" >&6; } 11535else 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11537$as_echo "no" >&6; } 11538fi 11539CPPFLAGS="$ac_save_CPPFLAGS" 11540ac_ext=c 11541ac_cpp='$CPP $CPPFLAGS' 11542ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11543ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11544ac_compiler_gnu=$ac_cv_c_compiler_gnu 11545 11546 11547# Check whether --enable-bitmapdir was given. 11548if test "${enable_bitmapdir+set}" = set; then : 11549 enableval=$enable_bitmapdir; bitmap_dir=$enableval 11550else 11551 bitmap_dir=no 11552fi 11553 11554case "x$bitmap_dir" in 11555x/*|x.*) 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting BITMAPDIR = $enableval" >&5 11557$as_echo "setting BITMAPDIR = $enableval" >&6; } 11558 BITMAPDIR=$enableval 11559 if test ! -d $bitmap_dir; then 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Directory $enableval does not exist" >&5 11561$as_echo "Warning: Directory $enableval does not exist" >&6; } 11562 fi 11563 ;; 11564*) 11565 BITMAPDIR='$(top_srcdir)/bitmaps' 11566 bitmap_dir='$top_srcdir/bitmaps' 11567 ;; 11568esac 11569 11570# Check whether --enable-bitmaptype was given. 11571if test "${enable_bitmaptype+set}" = set; then : 11572 enableval=$enable_bitmaptype; bitmap_type=$enableval 11573else 11574 bitmap_type=no 11575fi 11576 11577case "x$bitmap_type" in 11578xyes*|xno*) 11579 ;; 11580*) 11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting BITMAPTYPE = $enableval" >&5 11582$as_echo "setting BITMAPTYPE = $enableval" >&6; } 11583 BITMAPTYPE=$enableval 11584 if test ! -f $bitmap_dir/l-$BITMAPTYPE.xbm; then 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Bitmap $BITMAPDIR/l-$BITMAPTYPE.xbm does not exist" >&5 11586$as_echo "Warning: Bitmap $BITMAPDIR/l-$BITMAPTYPE.xbm does not exist" >&6; } 11587 fi 11588 ;; 11589esac 11590 11591# Check whether --enable-pixmapdir was given. 11592if test "${enable_pixmapdir+set}" = set; then : 11593 enableval=$enable_pixmapdir; pixmap_dir=$enableval 11594else 11595 pixmap_dir=no 11596fi 11597 11598case "x$pixmap_dir" in 11599x/*|x.*) 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting PIXMAPDIR = $enableval" >&5 11601$as_echo "setting PIXMAPDIR = $enableval" >&6; } 11602 PIXMAPDIR=$enableval 11603 if test ! -d $pixmap_dir; then 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Directory $enableval does not exist" >&5 11605$as_echo "Warning: Directory $enableval does not exist" >&6; } 11606 fi 11607 ;; 11608*) 11609 PIXMAPDIR='$(top_srcdir)/pixmaps' 11610 pixmap_dir='$top_srcdir/pixmaps' 11611 ;; 11612esac 11613 11614# Check whether --enable-pixmaptype was given. 11615if test "${enable_pixmaptype+set}" = set; then : 11616 enableval=$enable_pixmaptype; pixmap_type=$enableval 11617else 11618 pixmap_type=no 11619fi 11620 11621case "x$pixmap_type" in 11622xyes*|xno*) 11623 ;; 11624*) 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting PIXMAPTYPE = $enableval" >&5 11626$as_echo "setting PIXMAPTYPE = $enableval" >&6; } 11627 PIXMAPTYPE=$enableval 11628 if test ! -f $pixmap_dir/m-$PIXMAPTYPE.xpm; then 11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Pixmap $PIXMAPDIR/m-$PIXMAPTYPE.xpm does not exist" >&5 11630$as_echo "Warning: Pixmap $PIXMAPDIR/m-$PIXMAPTYPE.xpm does not exist" >&6; } 11631 fi 11632 ;; 11633esac 11634 11635# Check whether --enable-mapdir was given. 11636if test "${enable_mapdir+set}" = set; then : 11637 enableval=$enable_mapdir; map_dir=$enableval 11638else 11639 map_dir=no 11640fi 11641 11642case "x$map_dir" in 11643x/*|x.*) 11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting BITMAPDIR = $enableval" >&5 11645$as_echo "setting BITMAPDIR = $enableval" >&6; } 11646 BITMAPDIR=$enableval 11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting PIXMAPDIR = $enableval" >&5 11648$as_echo "setting PIXMAPDIR = $enableval" >&6; } 11649 PIXMAPDIR=$enableval 11650 if test ! -d $map_dir; then 11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Directory $enableval does not exist" >&5 11652$as_echo "Warning: Directory $enableval does not exist" >&6; } 11653 fi 11654 ;; 11655*) 11656 BITMAPDIR='$(top_srcdir)/bitmaps' 11657 bitmap_dir='$top_srcdir/bitmaps' 11658 PIXMAPDIR='$(top_srcdir)/pixmaps' 11659 pixmap_dir='$top_srcdir/pixmaps' 11660 ;; 11661esac 11662 11663# Check whether --enable-maptype was given. 11664if test "${enable_maptype+set}" = set; then : 11665 enableval=$enable_maptype; map_type=$enableval 11666else 11667 map_type=no 11668fi 11669 11670case "x$map_type" in 11671xyes*|xno*) 11672 ;; 11673*) 11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting BITMAPTYPE = $enableval" >&5 11675$as_echo "setting BITMAPTYPE = $enableval" >&6; } 11676 BITMAPTYPE=$enableval 11677 if test ! -f $map_dir/l-$BITMAPTYPE.xbm; then 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Bitmap $BITMAPDIR/l-$BITMAPTYPE.xbm does not exist" >&5 11679$as_echo "Warning: Bitmap $BITMAPDIR/l-$BITMAPTYPE.xbm does not exist" >&6; } 11680 fi 11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting PIXMAPTYPE = $enableval" >&5 11682$as_echo "setting PIXMAPTYPE = $enableval" >&6; } 11683 PIXMAPTYPE=$enableval 11684 if test ! -f $map_dir/m-$PIXMAPTYPE.xpm; then 11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Pixmap $PIXMAPDIR/m-$PIXMAPTYPE.xpm does not exist" >&5 11686$as_echo "Warning: Pixmap $PIXMAPDIR/m-$PIXMAPTYPE.xpm does not exist" >&6; } 11687 fi 11688 ;; 11689esac 11690 11691# Check whether --enable-vroot was given. 11692if test "${enable_vroot+set}" = set; then : 11693 enableval=$enable_vroot; use_vroot=$enableval 11694else 11695 use_vroot=yes 11696fi 11697 11698if test "$use_vroot" = yes; then 11699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_VROOT" >&5 11700$as_echo "defining option USE_VROOT" >&6; } 11701 11702$as_echo "#define USE_VROOT 1" >>confdefs.h 11703 11704fi 11705 11706case ${canonical} in 11707 *-*-cygwin* ) 11708 ;; 11709 * ) 11710 # Check whether --enable-allow-root was given. 11711if test "${enable_allow_root+set}" = set; then : 11712 enableval=$enable_allow_root; allow_root=$enableval 11713else 11714 allow_root=yes 11715fi 11716 11717 if test "$allow_root" = yes; then 11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option ALWAYS_ALLOW_ROOT" >&5 11719$as_echo "defining option ALWAYS_ALLOW_ROOT" >&6; } 11720 11721$as_echo "#define ALWAYS_ALLOW_ROOT 1" >>confdefs.h 11722 11723 fi 11724 ;; 11725esac 11726 11727case ${canonical} in 11728 *-*-linux* | *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-dragonfly* ) 11729 # Check whether --enable-vtlock was given. 11730if test "${enable_vtlock+set}" = set; then : 11731 enableval=$enable_vtlock; vtlock=$enableval 11732else 11733 vtlock=no 11734fi 11735 11736 if test "$vtlock" = yes; then 11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_VTLOCK" >&5 11738$as_echo "defining option USE_VTLOCK" >&6; } 11739 11740$as_echo "#define USE_VTLOCK 1" >>confdefs.h 11741 11742 fi 11743 ;; 11744 *) 11745 ;; 11746esac 11747 11748# Check whether --enable-syslog was given. 11749if test "${enable_syslog+set}" = set; then : 11750 enableval=$enable_syslog; use_syslog=$enableval 11751else 11752 use_syslog=no 11753fi 11754 11755if test "$use_syslog" = yes; then 11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_SYSLOG" >&5 11757$as_echo "defining option USE_SYSLOG" >&6; } 11758 11759$as_echo "#define USE_SYSLOG 1" >>confdefs.h 11760 11761fi 11762 11763# Check whether --enable-multiple-user was given. 11764if test "${enable_multiple_user+set}" = set; then : 11765 enableval=$enable_multiple_user; use_multiple_user=$enableval 11766else 11767 use_multiple_user=no 11768fi 11769 11770if test "$use_multiple_user" = yes; then 11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_MULTIPLE_USER" >&5 11772$as_echo "defining option USE_MULTIPLE_USER" >&6; } 11773 11774$as_echo "#define USE_MULTIPLE_USER 1" >>confdefs.h 11775 11776fi 11777 11778# Check whether --enable-multiple-root was given. 11779if test "${enable_multiple_root+set}" = set; then : 11780 enableval=$enable_multiple_root; use_multiple_root=$enableval 11781else 11782 use_multiple_root=no 11783fi 11784 11785if test "$use_multiple_root" = yes; then 11786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_MULTIPLE_ROOT" >&5 11787$as_echo "defining option USE_MULTIPLE_ROOT" >&6; } 11788 11789$as_echo "#define USE_MULTIPLE_ROOT 1" >>confdefs.h 11790 11791fi 11792 11793# Check whether --enable-xlock-group was given. 11794if test "${enable_xlock_group+set}" = set; then : 11795 enableval=$enable_xlock_group; use_xlock_group=$enableval 11796else 11797 use_xlock_group=no 11798fi 11799 11800if test "$use_xlock_group" = yes; then 11801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_XLOCK_GROUP" >&5 11802$as_echo "defining option USE_XLOCK_GROUP" >&6; } 11803 11804$as_echo "#define USE_XLOCK_GROUP 1" >>confdefs.h 11805 11806fi 11807 11808# Check whether --enable-window-visibility was given. 11809if test "${enable_window_visibility+set}" = set; then : 11810 enableval=$enable_window_visibility; use_window_visiblity=$enableval 11811else 11812 use_window_visibility=no 11813fi 11814 11815if test "$use_window_visibility" = yes; then 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_WINDOW_VISIBILITY" >&5 11817$as_echo "defining option USE_WINDOW_VISIBILITY" >&6; } 11818 11819$as_echo "#define USE_WINDOW_VISIBLITY 1" >>confdefs.h 11820 11821fi 11822 11823# Check whether --enable-old-event-loop was given. 11824if test "${enable_old_event_loop+set}" = set; then : 11825 enableval=$enable_old_event_loop; use_old_event_loop=$enableval 11826else 11827 use_old_event_loop=no 11828fi 11829 11830if test "$use_old_event_loop" = yes; then 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_OLD_EVENT_LOOP" >&5 11832$as_echo "defining option USE_OLD_EVENT_LOOP" >&6; } 11833 11834$as_echo "#define USE_OLD_EVENT_LOOP 1" >>confdefs.h 11835 11836fi 11837 11838 11839# Check whether --enable-xlockrc was given. 11840if test "${enable_xlockrc+set}" = set; then : 11841 enableval=$enable_xlockrc; use_xlockrc=$enableval 11842else 11843 use_xlockrc=maybe 11844fi 11845 11846if test "$use_xlockrc" = yes; then 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_XLOCKRC" >&5 11848$as_echo "defining option USE_XLOCKRC" >&6; } 11849 11850$as_echo "#define USE_XLOCKRC 1" >>confdefs.h 11851 11852else 11853 who_am_i=`whoami` 11854 if ! test -f /etc/passwd || cat /etc/passwd | grep "unused" | grep $who_am_i > /dev/null 2>&1 11855 then 11856 case "${canonical}" in 11857 *-*-cygwin* ) 11858 if test "$use_xlockrc" = maybe; then 11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** No password in /etc/passwd, enabling xlockrc" >&5 11860$as_echo "*** No password in /etc/passwd, enabling xlockrc" >&6; } 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_XLOCKRC" >&5 11862$as_echo "defining option USE_XLOCKRC" >&6; } 11863 11864$as_echo "#define USE_XLOCKRC 1" >>confdefs.h 11865 11866 else 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** Use --enable-xlockrc or write an encrypted password" >&5 11868$as_echo "*** Use --enable-xlockrc or write an encrypted password" >&6; } 11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: *** to /etc/passwd replacing \"unused\" for $who_am_i" >&5 11870$as_echo "*** to /etc/passwd replacing \"unused\" for $who_am_i" >&6; } 11871 fi 11872 ;; 11873 esac 11874 fi 11875fi 11876 11877# Check whether --enable-auto-logout was given. 11878if test "${enable_auto_logout+set}" = set; then : 11879 enableval=$enable_auto_logout; use_auto_logout=$enableval 11880else 11881 use_auto_logout=no 11882fi 11883 11884case "x$use_auto_logout" in 11885x|xyes*) 11886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_AUTO_LOGOUT = 240 minutes" >&5 11887$as_echo "defining option USE_AUTO_LOGOUT = 240 minutes" >&6; } 11888 11889$as_echo "#define USE_AUTO_LOGOUT 240" >>confdefs.h 11890 11891 ;; 11892x[0-9]*) 11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_AUTO_LOGOUT = $enableval minutes" >&5 11894$as_echo "defining option USE_AUTO_LOGOUT = $enableval minutes" >&6; } 11895 11896cat >>confdefs.h <<_ACEOF 11897#define USE_AUTO_LOGOUT $enableval 11898_ACEOF 11899 11900 ;; 11901xno*) 11902 ;; 11903*) 11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Illegal time value \"$use_auto_logout\" given" >&5 11905$as_echo "Warning: Illegal time value \"$use_auto_logout\" given" >&6; } 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_AUTO_LOGOUT = 240 minutes" >&5 11907$as_echo "defining option USE_AUTO_LOGOUT = 240 minutes" >&6; } 11908 11909$as_echo "#define USE_AUTO_LOGOUT 240" >>confdefs.h 11910 11911 ;; 11912esac 11913 11914# Check whether --enable-default-auto-logout was given. 11915if test "${enable_default_auto_logout+set}" = set; then : 11916 enableval=$enable_default_auto_logout; def_auto_logout=$enableval 11917else 11918 def_auto_logout=no 11919fi 11920 11921case "x$def_auto_logout" in 11922x|xyes*) 11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option DEF_AUTO_LOGOUT = 120 minutes" >&5 11924$as_echo "defining option DEF_AUTO_LOGOUT = 120 minutes" >&6; } 11925 11926$as_echo "#define DEF_AUTO_LOGOUT \"120\"" >>confdefs.h 11927 11928 ;; 11929x[0-9]*) 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option DEF_AUTO_LOGOUT = $enableval minutes" >&5 11931$as_echo "defining option DEF_AUTO_LOGOUT = $enableval minutes" >&6; } 11932 11933cat >>confdefs.h <<_ACEOF 11934#define DEF_AUTO_LOGOUT "$enableval" 11935_ACEOF 11936 11937 ;; 11938xno*) 11939 ;; 11940*) 11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Illegal time value \"$def_auto_logout\" given" >&5 11942$as_echo "Warning: Illegal time value \"$def_auto_logout\" given" >&6; } 11943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option DEF_AUTO_LOGOUT = 120 minutes" >&5 11944$as_echo "defining option DEF_AUTO_LOGOUT = 120 minutes" >&6; } 11945 11946$as_echo "#define DEF_AUTO_LOGOUT \"120\"" >>confdefs.h 11947 11948 ;; 11949esac 11950 11951# Check whether --enable-button-logout was given. 11952if test "${enable_button_logout+set}" = set; then : 11953 enableval=$enable_button_logout; use_button_logout=$enableval 11954else 11955 use_button_logout=no 11956fi 11957 11958case "x$use_button_logout" in 11959x|xyes*) 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_BUTTON_LOGOUT = 10 minutes" >&5 11961$as_echo "defining option USE_BUTTON_LOGOUT = 10 minutes" >&6; } 11962 11963$as_echo "#define USE_BUTTON_LOGOUT 10" >>confdefs.h 11964 11965 ;; 11966x[0-9]*|x-0-9*) 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_BUTTON_LOGOUT = $enableval minutes" >&5 11968$as_echo "defining option USE_BUTTON_LOGOUT = $enableval minutes" >&6; } 11969 11970cat >>confdefs.h <<_ACEOF 11971#define USE_BUTTON_LOGOUT $enableval 11972_ACEOF 11973 11974 ;; 11975xno*) 11976 ;; 11977*) 11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Illegal time value \"$use_button_logout\" given" >&5 11979$as_echo "Warning: Illegal time value \"$use_button_logout\" given" >&6; } 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_BUTTON_LOGOUT = 10 minutes" >&5 11981$as_echo "defining option USE_BUTTON_LOGOUT = 10 minutes" >&6; } 11982 11983$as_echo "#define USE_BUTTON_LOGOUT 10" >>confdefs.h 11984 11985 ;; 11986esac 11987 11988# Check whether --enable-default-button-logout was given. 11989if test "${enable_default_button_logout+set}" = set; then : 11990 enableval=$enable_default_button_logout; def_button_logout=$enableval 11991else 11992 def_button_logout=no 11993fi 11994 11995case "x$def_button_logout" in 11996x|xyes*) 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option DEF_BUTTON_LOGOUT = 5 minutes" >&5 11998$as_echo "defining option DEF_BUTTON_LOGOUT = 5 minutes" >&6; } 11999 12000$as_echo "#define DEF_BUTTON_LOGOUT \"5\"" >>confdefs.h 12001 12002 ;; 12003x[0-9]*) 12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option DEF_BUTTON_LOGOUT = $enableval minutes" >&5 12005$as_echo "defining option DEF_BUTTON_LOGOUT = $enableval minutes" >&6; } 12006 12007cat >>confdefs.h <<_ACEOF 12008#define DEF_BUTTON_LOGOUT "$enableval" 12009_ACEOF 12010 12011 ;; 12012xno*) 12013 ;; 12014*) 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Illegal time value \"$def_button_logout\" given" >&5 12016$as_echo "Warning: Illegal time value \"$def_button_logout\" given" >&6; } 12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option DEF_BUTTON_LOGOUT = 5 minutes" >&5 12018$as_echo "defining option DEF_BUTTON_LOGOUT = 5 minutes" >&6; } 12019 12020$as_echo "#define DEF_BUTTON_LOGOUT \"5\"" >>confdefs.h 12021 12022 ;; 12023esac 12024 12025 12026# Check whether --enable-bomb was given. 12027if test "${enable_bomb+set}" = set; then : 12028 enableval=$enable_bomb; use_bomb=$enableval 12029else 12030 use_bomb=yes 12031fi 12032 12033if test "$use_bomb" = yes; then 12034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_BOMB" >&5 12035$as_echo "defining option USE_BOMB" >&6; } 12036 12037$as_echo "#define USE_BOMB 1" >>confdefs.h 12038 12039 BOMB="" 12040else 12041 BOMB="#" 12042fi 12043 12044# Check whether --enable-interactive was given. 12045if test "${enable_interactive+set}" = set; then : 12046 enableval=$enable_interactive; no_interactive=$enableval 12047else 12048 no_interactive=yes 12049fi 12050 12051if test "$no_interactive" = no; then 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option DISABLE_INTERACTIVE" >&5 12053$as_echo "defining option DISABLE_INTERACTIVE" >&6; } 12054 12055$as_echo "#define DISABLE_INTERACTIVE 1" >>confdefs.h 12056 12057 INTERACTIVE="" 12058else 12059 INTERACTIVE="#" 12060fi 12061 12062# Check whether --enable-unstable was given. 12063if test "${enable_unstable+set}" = set; then : 12064 enableval=$enable_unstable; use_unstable=$enableval 12065else 12066 use_unstable=no 12067fi 12068 12069if test "$use_unstable" = yes; then 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_UNSTABLE" >&5 12071$as_echo "defining option USE_UNSTABLE" >&6; } 12072 12073$as_echo "#define USE_UNSTABLE 1" >>confdefs.h 12074 12075 UNSTABLE="" 12076else 12077 UNSTABLE="#" 12078fi 12079 12080# Check whether --enable-negative-logout was given. 12081if test "${enable_negative_logout+set}" = set; then : 12082 enableval=$enable_negative_logout; negative-logout=$enableval 12083else 12084 negative_logout=yes 12085fi 12086 12087if test "$negative_logout" = no; then 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option NO_NEGATIVE_LOGOUT" >&5 12089$as_echo "defining option NO_NEGATIVE_LOGOUT" >&6; } 12090 12091$as_echo "#define NO_NEGATIVE_LOGOUT 1" >>confdefs.h 12092 12093fi 12094 12095# Check whether --enable-closedown-logout was given. 12096if test "${enable_closedown_logout+set}" = set; then : 12097 enableval=$enable_closedown_logout; closedown_logout=$enableval 12098else 12099 closedown_logout=no 12100fi 12101 12102if test "$closedown_logout" = yes; then 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option CLOSEDOWN_LOGOUT" >&5 12104$as_echo "defining option CLOSEDOWN_LOGOUT" >&6; } 12105 12106$as_echo "#define CLOSEDOWN_LOGOUT 1" >>confdefs.h 12107 12108fi 12109 12110# Check whether --enable-session-logout was given. 12111if test "${enable_session_logout+set}" = set; then : 12112 enableval=$enable_session_logout; session_logout=$enableval 12113else 12114 session_logout=no 12115fi 12116 12117if test "$session_logout" = yes; then 12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option SESSION_LOGOUT" >&5 12119$as_echo "defining option SESSION_LOGOUT" >&6; } 12120 12121$as_echo "#define SESSION_LOGOUT 1" >>confdefs.h 12122 12123fi 12124 12125# Check whether --enable-staff-file was given. 12126if test "${enable_staff_file+set}" = set; then : 12127 enableval=$enable_staff_file; use_staff_file=$enableval 12128else 12129 use_staff_file=no 12130fi 12131 12132case "x$use_staff_file" in 12133x|xyes*) 12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option STAFF_FILE = \"/usr/remote/etc/xlock.staff\"" >&5 12135$as_echo "defining option STAFF_FILE = \"/usr/remote/etc/xlock.staff\"" >&6; } 12136 12137cat >>confdefs.h <<_ACEOF 12138#define STAFF_FILE "/usr/remote/etc/xlock.staff" 12139_ACEOF 12140 12141 if test ! -f /usr/remote/etc/xlock.staff; then 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: File /usr/remote/etc/xlock.staff does not exist" >&5 12143$as_echo "Warning: File /usr/remote/etc/xlock.staff does not exist" >&6; } 12144 fi 12145 ;; 12146x/*) 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option STAFF_FILE = \"$enableval\"" >&5 12148$as_echo "defining option STAFF_FILE = \"$enableval\"" >&6; } 12149 12150cat >>confdefs.h <<_ACEOF 12151#define STAFF_FILE "$enableval" 12152_ACEOF 12153 12154 if test ! -f $use_staff_file; then 12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: File $enableval does not exist" >&5 12156$as_echo "Warning: File $enableval does not exist" >&6; } 12157 fi 12158 ;; 12159esac 12160 12161# Check whether --enable-staff-netgroup was given. 12162if test "${enable_staff_netgroup+set}" = set; then : 12163 enableval=$enable_staff_netgroup; use_staff_netgroup=$enableval 12164else 12165 use_staff_netgroup=no 12166fi 12167 12168if test "$use_staff_netgroup" != no; then 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option STAFF_NETGROUP = \"$enableval\"" >&5 12170$as_echo "defining option STAFF_NETGROUP = \"$enableval\"" >&6; } 12171 12172cat >>confdefs.h <<_ACEOF 12173#define STAFF_NETGROUP "$enableval" 12174_ACEOF 12175 12176fi 12177 12178# Check whether --enable-kerberos4 was given. 12179if test "${enable_kerberos4+set}" = set; then : 12180 enableval=$enable_kerberos4; kerberos4=$enableval 12181else 12182 kerberos4=no 12183fi 12184 12185if test "$kerberos4" = yes; then 12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option HAVE_KRB4" >&5 12187$as_echo "defining option HAVE_KRB4" >&6; } 12188 12189$as_echo "#define HAVE_KRB4 1" >>confdefs.h 12190 12191 XLOCKINC="${XLOCKINC} -I/usr/athena/include" 12192 XLOCKLIBS="${XLOCKLIBS} -L/usr/athena/lib -lkrb -ldes" 12193fi 12194 12195# Check whether --enable-kerberos5 was given. 12196if test "${enable_kerberos5+set}" = set; then : 12197 enableval=$enable_kerberos5; kerberos5=$enableval 12198else 12199 kerberos5=no 12200fi 12201 12202if test "$kerberos5" = yes; then 12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option HAVE_KRB5" >&5 12204$as_echo "defining option HAVE_KRB5" >&6; } 12205 12206$as_echo "#define HAVE_KRB5 1" >>confdefs.h 12207 12208fi 12209 12210 12211# Check whether --with-krb5-config was given. 12212if test "${with_krb5_config+set}" = set; then : 12213 withval=$with_krb5_config; 12214 if test $withval = yes; then 12215 # Extract the first word of "krb5-config", so it can be a program name with args. 12216set dummy krb5-config; ac_word=$2 12217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12218$as_echo_n "checking for $ac_word... " >&6; } 12219if ${ac_cv_path_krb5_config+:} false; then : 12220 $as_echo_n "(cached) " >&6 12221else 12222 case $krb5_config in 12223 [\\/]* | ?:[\\/]*) 12224 ac_cv_path_krb5_config="$krb5_config" # Let the user override the test with a path. 12225 ;; 12226 *) 12227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12228for as_dir in $PATH 12229do 12230 IFS=$as_save_IFS 12231 test -z "$as_dir" && as_dir=. 12232 for ac_exec_ext in '' $ac_executable_extensions; do 12233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12234 ac_cv_path_krb5_config="$as_dir/$ac_word$ac_exec_ext" 12235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12236 break 2 12237 fi 12238done 12239 done 12240IFS=$as_save_IFS 12241 12242 test -z "$ac_cv_path_krb5_config" && ac_cv_path_krb5_config="not_found" 12243 ;; 12244esac 12245fi 12246krb5_config=$ac_cv_path_krb5_config 12247if test -n "$krb5_config"; then 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $krb5_config" >&5 12249$as_echo "$krb5_config" >&6; } 12250else 12251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12252$as_echo "no" >&6; } 12253fi 12254 12255 12256 if test X$krb5_config = Xnot_found; then 12257 as_fn_error $? "unable to find krb5-config" "$LINENO" 5 12258 fi 12259 else 12260 krb5_config=$withval 12261 if test ! -x $krb5_config; then 12262 as_fn_error $? "unable to find krb5-config at $krb5_config" "$LINENO" 5 12263 fi 12264 fi 12265 krb5_cflags=`$krb5_config --cflags krb5` 12266 retval=$? 12267 if test $retval -ne 0; then 12268 as_fn_error $? "$krb5_config failed with error code of $retval" "$LINENO" 5 12269 fi 12270 krb5_libs=`$krb5_config --libs krb5` 12271 retval=$? 12272 if test $retval -ne 0; then 12273 as_fn_error $? "$krb5_config failed with error code of $retval" "$LINENO" 5 12274 fi 12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $krb5_cflags to XLOCKINC" >&5 12276$as_echo "Adding $krb5_cflags to XLOCKINC" >&6; } 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Adding $krb5_libs to XLOCKLIBS" >&5 12278$as_echo "Adding $krb5_libs to XLOCKLIBS" >&6; } 12279 XLOCKINC="$XLOCKINC $krb5_cflags" 12280 XLOCKLIBS="$XLOCKLIBS $krb5_libs" 12281 12282fi 12283 12284# Check whether --enable-write_krb5 was given. 12285if test "${enable_write_krb5+set}" = set; then : 12286 enableval=$enable_write_krb5; write_krb5=$enableval 12287else 12288 write_krb5=no 12289fi 12290 12291if test "$write_krb5" = yes; then 12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Will write out krb5 credentials to credential cache" >&5 12293$as_echo "Will write out krb5 credentials to credential cache" >&6; } 12294 12295$as_echo "#define KRB5_WRITE_NEW_CCACHE 1" >>confdefs.h 12296 12297fi 12298 12299# Check whether --enable-dce_passwd was given. 12300if test "${enable_dce_passwd+set}" = set; then : 12301 enableval=$enable_dce_passwd; dce_passwd=$enableval 12302else 12303 dce_passwd=no 12304fi 12305 12306if test "$dce_passwd" = yes; then 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option DCE_PASSWD" >&5 12308$as_echo "defining option DCE_PASSWD" >&6; } 12309 12310$as_echo "#define DCE_PASSWD 1" >>confdefs.h 12311 12312 XLOCKINC="${XLOCKINC} -I/usr/include/reentrant" 12313 XLOCKLIBS="${XLOCKLIBS} -ldce -lc_r" 12314fi 12315 12316# Check whether --enable-pam was given. 12317if test "${enable_pam+set}" = set; then : 12318 enableval=$enable_pam; pam=$enableval 12319else 12320 pam=no 12321fi 12322 12323if test "$pam" = yes; then 12324 if test "$use_xlockrc" = yes; then 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not defining option USE_PAM (mutually exclusive with xlockrc)" >&5 12326$as_echo "not defining option USE_PAM (mutually exclusive with xlockrc)" >&6; } 12327 else 12328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_PAM" >&5 12329$as_echo "defining option USE_PAM" >&6; } 12330 12331$as_echo "#define USE_PAM 1" >>confdefs.h 12332 12333 ac_fn_c_check_func "$LINENO" "dlsym" "ac_cv_func_dlsym" 12334if test "x$ac_cv_func_dlsym" = xyes; then : 12335 XLOCKLIBS="${XLOCKLIBS} -lpam" 12336else 12337 XLOCKLIBS="${XLOCKLIBS} -lpam -ldl" 12338fi 12339 12340 fi 12341fi 12342 12343# Check whether --enable-bad_pam was given. 12344if test "${enable_bad_pam+set}" = set; then : 12345 enableval=$enable_bad_pam; bad_pam=$enableval 12346else 12347 bad_pam=no 12348fi 12349 12350if test "$bad_pam" = yes; then 12351 if test "$pam" = no; then 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not defining option BAD_PAM (need PAM)" >&5 12353$as_echo "not defining option BAD_PAM (need PAM)" >&6; } 12354 else 12355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option BAD_PAM" >&5 12356$as_echo "defining option BAD_PAM" >&6; } 12357 12358$as_echo "#define BAD_PAM 1" >>confdefs.h 12359 12360 fi 12361fi 12362 12363# Check whether --enable-good_pam was given. 12364if test "${enable_good_pam+set}" = set; then : 12365 enableval=$enable_good_pam; good_pam=$enableval 12366else 12367 good_pam=no 12368fi 12369 12370if test "$good_pam" = yes; then 12371 if test "$pam" = no; then 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not defining option GOOD_PAM (need PAM)" >&5 12373$as_echo "not defining option GOOD_PAM (need PAM)" >&6; } 12374 else 12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option GOOD_PAM" >&5 12376$as_echo "defining option GOOD_PAM" >&6; } 12377 12378$as_echo "#define GOOD_PAM 1" >>confdefs.h 12379 12380 fi 12381fi 12382 12383# Check whether --enable-afs was given. 12384if test "${enable_afs+set}" = set; then : 12385 enableval=$enable_afs; afs=$enableval 12386else 12387 afs=no 12388fi 12389 12390if test "$afs" = yes; then 12391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option AFS" >&5 12392$as_echo "defining option AFS" >&6; } 12393 12394$as_echo "#define AFS 1" >>confdefs.h 12395 12396 XLOCKINC="${XLOCKINC} -I/usr/afsws/include" 12397 case "${canonical}" in 12398 *-*-solaris2.* ) 12399 XLOCKLIBS="${XLOCKLIBS} -lucb -L/usr/afsws/lib -L/usr/afsws/lib/afs -lkauth.krb -lprot -lubik -lauth.krb -lrxkad -lsys -ldes -lrx -llwp -lcom_err -lcmd /usr/afsws/lib/afs/util.a -laudit -lsys" 12400 ;; 12401 *-*-osf* ) 12402 XLOCKLIBS="${XLOCKLIBS} -L/usr/afsws/lib -L/usr/afsws/lib/afs -laudit -lkauth -lafsrpc -lrxkad -lubik -lprot -lrxkad -lrx -llwp -lauth -lsys -ldes -lcmd -lcom_err /usr/afsws/lib/afs/util.a -lpthread -laudit -llwp" 12403 ;; 12404 * ) 12405 XLOCKLIBS="${XLOCKLIBS} -L/usr/afsws/lib -L/usr/afsws/lib/afs -lkauth -lubik -lprot -lrxkad -lrx -llwp -lauth -lsys -ldes -lcmd -lcom_err /usr/afsws/lib/afs/util.a -laudit" 12406 ;; 12407 esac 12408fi 12409 12410# Check whether --enable-sia was given. 12411if test "${enable_sia+set}" = set; then : 12412 enableval=$enable_sia; sia=$enableval 12413else 12414 sia=no 12415fi 12416 12417if test "$sia" = yes; then 12418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option SIA" >&5 12419$as_echo "defining option SIA" >&6; } 12420 12421$as_echo "#define SIA 1" >>confdefs.h 12422 12423 XLOCKLIBS="${XLOCKLIBS} -lsecurity" 12424fi 12425 12426# Check whether --enable-sunos_adjunct_passwd was given. 12427if test "${enable_sunos_adjunct_passwd+set}" = set; then : 12428 enableval=$enable_sunos_adjunct_passwd; sunos_adjunct_passwd=$enableval 12429else 12430 sunos_adjunct_passwd=no 12431fi 12432 12433if test "$sunos_adjunct_passwd" = yes; then 12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option SUNOS_ADJUNCT_PASSWD" >&5 12435$as_echo "defining option SUNOS_ADJUNCT_PASSWD" >&6; } 12436 12437$as_echo "#define SUNOS_ADJUNCT_PASSWD 1" >>confdefs.h 12438 12439fi 12440 12441 12442# Check whether --with-passwd-helper was given. 12443if test "${with_passwd_helper+set}" = set; then : 12444 withval=$with_passwd_helper; passwd_helper=$withval 12445fi 12446 12447if test "$passwd_helper" != ""; then 12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using password helper $passwd_helper" >&5 12449$as_echo "using password helper $passwd_helper" >&6; } 12450 12451cat >>confdefs.h <<_ACEOF 12452#define PASSWD_HELPER_PROGRAM 1 12453_ACEOF 12454 12455fi 12456 12457# Check whether --enable-mb was given. 12458if test "${enable_mb+set}" = set; then : 12459 enableval=$enable_mb; mb=$enableval 12460else 12461 mb=yes 12462fi 12463 12464if test "$mb" = yes; then 12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option USE_MB" >&5 12466$as_echo "defining option USE_MB" >&6; } 12467 12468$as_echo "#define USE_MB 1" >>confdefs.h 12469 12470fi 12471 12472# Check whether --enable-customization was given. 12473if test "${enable_customization+set}" = set; then : 12474 enableval=$enable_customization; customization=$enableval 12475else 12476 customization=no 12477fi 12478 12479if test "$customization" = yes; then 12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining option CUSTOMIZATION" >&5 12481$as_echo "defining option CUSTOMIZATION" >&6; } 12482 12483$as_echo "#define CUSTOMIZATION 1" >>confdefs.h 12484 12485fi 12486 12487# Check whether --enable-modules was given. 12488if test "${enable_modules+set}" = set; then : 12489 enableval=$enable_modules; modules=$enableval 12490else 12491 modules=no 12492fi 12493 12494if test "$modules" = yes; then 12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling xlk modules" >&5 12496$as_echo "enabling xlk modules" >&6; } 12497 MODULES="" 12498 NOMODULES="#" 12499 12500$as_echo "#define USE_MODULES 1" >>confdefs.h 12501 12502case ${canonical} in 12503 *-*-linux* ) 12504 MODULEFLAGS="-rdynamic" 12505 CFLAGS="$CFLAGS -fPIC" 12506 CXXFLAGS="$CXXFLAGS -fPIC" 12507 ;; 12508 *) 12509 MODULEFLAGS="" 12510 ;; 12511esac 12512else 12513 MODULES="#" 12514 NOMODULES="" 12515 MODULEFLAGS="" 12516fi 12517 12518# Check whether --enable-blank_only was given. 12519if test "${enable_blank_only+set}" = set; then : 12520 enableval=$enable_blank_only; blank_only=$enableval 12521else 12522 blank_only=no 12523fi 12524 12525if test "$blank_only" = "yes"; then 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling blank mode only" >&5 12527$as_echo "enabling blank mode only" >&6; } 12528 12529$as_echo "#define BLANK_ONLY 1" >>confdefs.h 12530 12531else 12532 # Check whether --enable-nice_only was given. 12533if test "${enable_nice_only+set}" = set; then : 12534 enableval=$enable_nice_only; nice_only=$enableval 12535else 12536 nice_only=no 12537fi 12538 12539 if test "$nice_only" = "yes"; then 12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling nice modes only" >&5 12541$as_echo "enabling nice modes only" >&6; } 12542 12543$as_echo "#define NICE_ONLY 1" >>confdefs.h 12544 12545 fi 12546fi 12547 12548# Check whether --enable-check was given. 12549if test "${enable_check+set}" = set; then : 12550 enableval=$enable_check; check=$enableval 12551else 12552 check=no 12553fi 12554 12555if test "$check" = yes; then 12556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling memory debug checking" >&5 12557$as_echo "enabling memory debug checking" >&6; } 12558 CHECK="" 12559else 12560 CHECK="#" 12561fi 12562 12563 12564# Check whether --with-lang was given. 12565if test "${with_lang+set}" = set; then : 12566 withval=$with_lang; lang=$withval 12567else 12568 lang=none 12569fi 12570 12571case "$lang" in 12572 nl|NL|Nl) 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling some reporting in Dutch" >&5 12574$as_echo "enabling some reporting in Dutch" >&6; } 12575 12576$as_echo "#define NL 1" >>confdefs.h 12577 12578 ;; 12579 fr|FR|Fr) 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling some reporting in French" >&5 12581$as_echo "enabling some reporting in French" >&6; } 12582 12583$as_echo "#define FR 1" >>confdefs.h 12584 12585 ;; 12586 de|DE|De) 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling some reporting in German" >&5 12588$as_echo "enabling some reporting in German" >&6; } 12589 12590$as_echo "#define DE 1" >>confdefs.h 12591 12592 ;; 12593 ja|JA|Ja) 12594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling some reporting in Japanese" >&5 12595$as_echo "enabling some reporting in Japanese" >&6; } 12596 12597$as_echo "#define JA 1" >>confdefs.h 12598 12599 ;; 12600 none) 12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using default language (English)" >&5 12602$as_echo "using default language (English)" >&6; } 12603 ;; 12604 *) 12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown language $lang. using default language (English)" >&5 12606$as_echo "unknown language $lang. using default language (English)" >&6; } 12607 ;; 12608esac 12609 12610# Check whether --enable-orig_xpm_patch was given. 12611if test "${enable_orig_xpm_patch+set}" = set; then : 12612 enableval=$enable_orig_xpm_patch; orig_xpm_patch=$enableval 12613else 12614 orig_xpm_patch=no 12615fi 12616 12617if test "$orig_xpm_patch" = "yes"; then 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling original mail icon xpm patch" >&5 12619$as_echo "enabling original mail icon xpm patch" >&6; } 12620 12621$as_echo "#define ORIGINAL_XPM_PATCH 1" >>confdefs.h 12622 12623fi 12624 12625# Check whether --enable-appdefaultdir was given. 12626if test "${enable_appdefaultdir+set}" = set; then : 12627 enableval=$enable_appdefaultdir; appdefault_dir=$enableval 12628else 12629 appdefault_dir=no 12630fi 12631 12632case "x$appdefault_dir" in 12633x/*|x.*) 12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: setting APPDEFAULTS = $enableval" >&5 12635$as_echo "setting APPDEFAULTS = $enableval" >&6; } 12636 APPDEFAULTS=$enableval 12637 if test ! -d $appdefault_dir; then 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Warning: Directory $enableval does not exist" >&5 12639$as_echo "Warning: Directory $enableval does not exist" >&6; } 12640 fi 12641 ;; 12642esac 12643 12644if test "x$INSTPGMFLAGS" != x; then 12645# Check whether --enable-setuid was given. 12646if test "${enable_setuid+set}" = set; then : 12647 enableval=$enable_setuid; setuid=$enableval 12648else 12649 setuid=yes 12650fi 12651 12652case "x$setuid" in 12653xno*) 12654 case ${canonical} in 12655 *-*-linux*) 12656 if test "$vtlock" = "yes"; then 12657 INSTPGMFLAGS="-s -o root -g bin -m 4111" 12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining install options (setuid/setgid) = \"$INSTPGMFLAGS\" for vtlock" >&5 12659$as_echo "defining install options (setuid/setgid) = \"$INSTPGMFLAGS\" for vtlock" >&6; } 12660 echo "experimental: Big buffer overrun security risk" 12661 else 12662 INSTPGMFLAGS="" 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no setuid/setgid install" >&5 12664$as_echo "no setuid/setgid install" >&6; } 12665 fi 12666 ;; 12667 *) 12668 INSTPGMFLAGS="" 12669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no setuid/setgid install" >&5 12670$as_echo "no setuid/setgid install" >&6; } 12671 ;; 12672 esac 12673 ;; 12674x|xyes*) 12675 case ${canonical} in 12676 *-*-linux*) 12677 if test "$vtlock" = "yes"; then 12678 INSTPGMFLAGS="-s -o root -g bin -m 4111" 12679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining install options (setuid/setgid) = \"$INSTPGMFLAGS\" for vtlock" >&5 12680$as_echo "defining install options (setuid/setgid) = \"$INSTPGMFLAGS\" for vtlock" >&6; } 12681 else 12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining install options (setuid/setgid) = \"$INSTPGMFLAGS\"" >&5 12683$as_echo "defining install options (setuid/setgid) = \"$INSTPGMFLAGS\"" >&6; } 12684 fi 12685 ;; 12686 *) 12687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining install options (setuid/setgid) = \"$INSTPGMFLAGS\"" >&5 12688$as_echo "defining install options (setuid/setgid) = \"$INSTPGMFLAGS\"" >&6; } 12689 ;; 12690 esac 12691 ;; 12692x*) 12693 INSTPGMFLAGS=$enableval 12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: defining install options (setuid/setgid) = \"$enableval\"" >&5 12695$as_echo "defining install options (setuid/setgid) = \"$enableval\"" >&6; } 12696 ;; 12697esac 12698else 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no setuid/setgid install" >&5 12700$as_echo "no setuid/setgid install" >&6; } 12701fi 12702 12703DEPEND=makedepend 12704DEPEND_FLAGS= 12705DEPEND_DEFINES= 12706 12707case "${canonical}" in 12708 *-*-irix5* | *-*-irix6* ) 12709 XLOCKLIBPATHS="-L/usr/lib32 ${XLOCKLIBPATHS}" 12710 XMLOCKLIBPATHS="-L/usr/lib32 ${XMLOCKLIBPATHS}" 12711 XGLOCKLIBPATHS="-L/usr/lib32 ${XGLOCKLIBPATHS}" 12712 ;; 12713esac 12714XLOCKLIBS="${XLOCKLIBPATHS} ${XLOCKLIBS} -lX11 -lXext -lm" 12715XMLOCKLIBS="${XMLOCKLIBPATHS} ${XMLOCKLIBS} -lX11" 12716XGLOCKLIBS="${XGLOCKLIBPATHS} ${XGLOCKLIBS} ${GTK_LIBS} -lX11" 12717 12718 12719 12720 12721 12722 12723 12724 12725 12726 12727 12728 12729 12730 12731 12732 12733 12734 12735 12736 12737 12738 12739 12740 12741 12742 12743 12744 12745 12746 12747 12748 12749 12750 12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764ac_config_headers="$ac_config_headers config.h" 12765 12766ac_config_files="$ac_config_files Makefile xlock/Makefile modes/Makefile modes/glx/Makefile xmlock/Makefile xglock/Makefile" 12767 12768cat >confcache <<\_ACEOF 12769# This file is a shell script that caches the results of configure 12770# tests run on this system so they can be shared between configure 12771# scripts and configure runs, see configure's option --config-cache. 12772# It is not useful on other systems. If it contains results you don't 12773# want to keep, you may remove or edit it. 12774# 12775# config.status only pays attention to the cache file if you give it 12776# the --recheck option to rerun configure. 12777# 12778# `ac_cv_env_foo' variables (set or unset) will be overridden when 12779# loading this file, other *unset* `ac_cv_foo' will be assigned the 12780# following values. 12781 12782_ACEOF 12783 12784# The following way of writing the cache mishandles newlines in values, 12785# but we know of no workaround that is simple, portable, and efficient. 12786# So, we kill variables containing newlines. 12787# Ultrix sh set writes to stderr and can't be redirected directly, 12788# and sets the high bit in the cache file unless we assign to the vars. 12789( 12790 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12791 eval ac_val=\$$ac_var 12792 case $ac_val in #( 12793 *${as_nl}*) 12794 case $ac_var in #( 12795 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12796$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12797 esac 12798 case $ac_var in #( 12799 _ | IFS | as_nl) ;; #( 12800 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12801 *) { eval $ac_var=; unset $ac_var;} ;; 12802 esac ;; 12803 esac 12804 done 12805 12806 (set) 2>&1 | 12807 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12808 *${as_nl}ac_space=\ *) 12809 # `set' does not quote correctly, so add quotes: double-quote 12810 # substitution turns \\\\ into \\, and sed turns \\ into \. 12811 sed -n \ 12812 "s/'/'\\\\''/g; 12813 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12814 ;; #( 12815 *) 12816 # `set' quotes correctly as required by POSIX, so do not add quotes. 12817 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12818 ;; 12819 esac | 12820 sort 12821) | 12822 sed ' 12823 /^ac_cv_env_/b end 12824 t clear 12825 :clear 12826 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12827 t end 12828 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12829 :end' >>confcache 12830if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12831 if test -w "$cache_file"; then 12832 if test "x$cache_file" != "x/dev/null"; then 12833 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12834$as_echo "$as_me: updating cache $cache_file" >&6;} 12835 if test ! -f "$cache_file" || test -h "$cache_file"; then 12836 cat confcache >"$cache_file" 12837 else 12838 case $cache_file in #( 12839 */* | ?:*) 12840 mv -f confcache "$cache_file"$$ && 12841 mv -f "$cache_file"$$ "$cache_file" ;; #( 12842 *) 12843 mv -f confcache "$cache_file" ;; 12844 esac 12845 fi 12846 fi 12847 else 12848 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12849$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12850 fi 12851fi 12852rm -f confcache 12853 12854test "x$prefix" = xNONE && prefix=$ac_default_prefix 12855# Let make expand exec_prefix. 12856test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12857 12858DEFS=-DHAVE_CONFIG_H 12859 12860ac_libobjs= 12861ac_ltlibobjs= 12862U= 12863for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12864 # 1. Remove the extension, and $U if already installed. 12865 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12866 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12867 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12868 # will be set to the directory where LIBOBJS objects are built. 12869 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12870 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12871done 12872LIBOBJS=$ac_libobjs 12873 12874LTLIBOBJS=$ac_ltlibobjs 12875 12876 12877 12878: "${CONFIG_STATUS=./config.status}" 12879ac_write_fail=0 12880ac_clean_files_save=$ac_clean_files 12881ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12882{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12883$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12884as_write_fail=0 12885cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12886#! $SHELL 12887# Generated by $as_me. 12888# Run this file to recreate the current configuration. 12889# Compiler output produced by configure, useful for debugging 12890# configure, is in config.log if it exists. 12891 12892debug=false 12893ac_cs_recheck=false 12894ac_cs_silent=false 12895 12896SHELL=\${CONFIG_SHELL-$SHELL} 12897export SHELL 12898_ASEOF 12899cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12900## -------------------- ## 12901## M4sh Initialization. ## 12902## -------------------- ## 12903 12904# Be more Bourne compatible 12905DUALCASE=1; export DUALCASE # for MKS sh 12906if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12907 emulate sh 12908 NULLCMD=: 12909 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12910 # is contrary to our usage. Disable this feature. 12911 alias -g '${1+"$@"}'='"$@"' 12912 setopt NO_GLOB_SUBST 12913else 12914 case `(set -o) 2>/dev/null` in #( 12915 *posix*) : 12916 set -o posix ;; #( 12917 *) : 12918 ;; 12919esac 12920fi 12921 12922 12923as_nl=' 12924' 12925export as_nl 12926# Printing a long string crashes Solaris 7 /usr/bin/printf. 12927as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12928as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12929as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12930# Prefer a ksh shell builtin over an external printf program on Solaris, 12931# but without wasting forks for bash or zsh. 12932if test -z "$BASH_VERSION$ZSH_VERSION" \ 12933 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12934 as_echo='print -r --' 12935 as_echo_n='print -rn --' 12936elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12937 as_echo='printf %s\n' 12938 as_echo_n='printf %s' 12939else 12940 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12941 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12942 as_echo_n='/usr/ucb/echo -n' 12943 else 12944 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12945 as_echo_n_body='eval 12946 arg=$1; 12947 case $arg in #( 12948 *"$as_nl"*) 12949 expr "X$arg" : "X\\(.*\\)$as_nl"; 12950 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12951 esac; 12952 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12953 ' 12954 export as_echo_n_body 12955 as_echo_n='sh -c $as_echo_n_body as_echo' 12956 fi 12957 export as_echo_body 12958 as_echo='sh -c $as_echo_body as_echo' 12959fi 12960 12961# The user is always right. 12962if test "${PATH_SEPARATOR+set}" != set; then 12963 PATH_SEPARATOR=: 12964 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12965 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12966 PATH_SEPARATOR=';' 12967 } 12968fi 12969 12970 12971# IFS 12972# We need space, tab and new line, in precisely that order. Quoting is 12973# there to prevent editors from complaining about space-tab. 12974# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12975# splitting by setting IFS to empty value.) 12976IFS=" "" $as_nl" 12977 12978# Find who we are. Look in the path if we contain no directory separator. 12979as_myself= 12980case $0 in #(( 12981 *[\\/]* ) as_myself=$0 ;; 12982 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12983for as_dir in $PATH 12984do 12985 IFS=$as_save_IFS 12986 test -z "$as_dir" && as_dir=. 12987 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12988 done 12989IFS=$as_save_IFS 12990 12991 ;; 12992esac 12993# We did not find ourselves, most probably we were run as `sh COMMAND' 12994# in which case we are not to be found in the path. 12995if test "x$as_myself" = x; then 12996 as_myself=$0 12997fi 12998if test ! -f "$as_myself"; then 12999 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13000 exit 1 13001fi 13002 13003# Unset variables that we do not need and which cause bugs (e.g. in 13004# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13005# suppresses any "Segmentation fault" message there. '((' could 13006# trigger a bug in pdksh 5.2.14. 13007for as_var in BASH_ENV ENV MAIL MAILPATH 13008do eval test x\${$as_var+set} = xset \ 13009 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13010done 13011PS1='$ ' 13012PS2='> ' 13013PS4='+ ' 13014 13015# NLS nuisances. 13016LC_ALL=C 13017export LC_ALL 13018LANGUAGE=C 13019export LANGUAGE 13020 13021# CDPATH. 13022(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13023 13024 13025# as_fn_error STATUS ERROR [LINENO LOG_FD] 13026# ---------------------------------------- 13027# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13028# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13029# script with STATUS, using 1 if that was 0. 13030as_fn_error () 13031{ 13032 as_status=$1; test $as_status -eq 0 && as_status=1 13033 if test "$4"; then 13034 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13035 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13036 fi 13037 $as_echo "$as_me: error: $2" >&2 13038 as_fn_exit $as_status 13039} # as_fn_error 13040 13041 13042# as_fn_set_status STATUS 13043# ----------------------- 13044# Set $? to STATUS, without forking. 13045as_fn_set_status () 13046{ 13047 return $1 13048} # as_fn_set_status 13049 13050# as_fn_exit STATUS 13051# ----------------- 13052# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13053as_fn_exit () 13054{ 13055 set +e 13056 as_fn_set_status $1 13057 exit $1 13058} # as_fn_exit 13059 13060# as_fn_unset VAR 13061# --------------- 13062# Portably unset VAR. 13063as_fn_unset () 13064{ 13065 { eval $1=; unset $1;} 13066} 13067as_unset=as_fn_unset 13068# as_fn_append VAR VALUE 13069# ---------------------- 13070# Append the text in VALUE to the end of the definition contained in VAR. Take 13071# advantage of any shell optimizations that allow amortized linear growth over 13072# repeated appends, instead of the typical quadratic growth present in naive 13073# implementations. 13074if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13075 eval 'as_fn_append () 13076 { 13077 eval $1+=\$2 13078 }' 13079else 13080 as_fn_append () 13081 { 13082 eval $1=\$$1\$2 13083 } 13084fi # as_fn_append 13085 13086# as_fn_arith ARG... 13087# ------------------ 13088# Perform arithmetic evaluation on the ARGs, and store the result in the 13089# global $as_val. Take advantage of shells that can avoid forks. The arguments 13090# must be portable across $(()) and expr. 13091if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13092 eval 'as_fn_arith () 13093 { 13094 as_val=$(( $* )) 13095 }' 13096else 13097 as_fn_arith () 13098 { 13099 as_val=`expr "$@" || test $? -eq 1` 13100 } 13101fi # as_fn_arith 13102 13103 13104if expr a : '\(a\)' >/dev/null 2>&1 && 13105 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13106 as_expr=expr 13107else 13108 as_expr=false 13109fi 13110 13111if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13112 as_basename=basename 13113else 13114 as_basename=false 13115fi 13116 13117if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13118 as_dirname=dirname 13119else 13120 as_dirname=false 13121fi 13122 13123as_me=`$as_basename -- "$0" || 13124$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13125 X"$0" : 'X\(//\)$' \| \ 13126 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13127$as_echo X/"$0" | 13128 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13129 s//\1/ 13130 q 13131 } 13132 /^X\/\(\/\/\)$/{ 13133 s//\1/ 13134 q 13135 } 13136 /^X\/\(\/\).*/{ 13137 s//\1/ 13138 q 13139 } 13140 s/.*/./; q'` 13141 13142# Avoid depending upon Character Ranges. 13143as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13144as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13145as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13146as_cr_digits='0123456789' 13147as_cr_alnum=$as_cr_Letters$as_cr_digits 13148 13149ECHO_C= ECHO_N= ECHO_T= 13150case `echo -n x` in #((((( 13151-n*) 13152 case `echo 'xy\c'` in 13153 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13154 xy) ECHO_C='\c';; 13155 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13156 ECHO_T=' ';; 13157 esac;; 13158*) 13159 ECHO_N='-n';; 13160esac 13161 13162rm -f conf$$ conf$$.exe conf$$.file 13163if test -d conf$$.dir; then 13164 rm -f conf$$.dir/conf$$.file 13165else 13166 rm -f conf$$.dir 13167 mkdir conf$$.dir 2>/dev/null 13168fi 13169if (echo >conf$$.file) 2>/dev/null; then 13170 if ln -s conf$$.file conf$$ 2>/dev/null; then 13171 as_ln_s='ln -s' 13172 # ... but there are two gotchas: 13173 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13174 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13175 # In both cases, we have to default to `cp -pR'. 13176 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13177 as_ln_s='cp -pR' 13178 elif ln conf$$.file conf$$ 2>/dev/null; then 13179 as_ln_s=ln 13180 else 13181 as_ln_s='cp -pR' 13182 fi 13183else 13184 as_ln_s='cp -pR' 13185fi 13186rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13187rmdir conf$$.dir 2>/dev/null 13188 13189 13190# as_fn_mkdir_p 13191# ------------- 13192# Create "$as_dir" as a directory, including parents if necessary. 13193as_fn_mkdir_p () 13194{ 13195 13196 case $as_dir in #( 13197 -*) as_dir=./$as_dir;; 13198 esac 13199 test -d "$as_dir" || eval $as_mkdir_p || { 13200 as_dirs= 13201 while :; do 13202 case $as_dir in #( 13203 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13204 *) as_qdir=$as_dir;; 13205 esac 13206 as_dirs="'$as_qdir' $as_dirs" 13207 as_dir=`$as_dirname -- "$as_dir" || 13208$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13209 X"$as_dir" : 'X\(//\)[^/]' \| \ 13210 X"$as_dir" : 'X\(//\)$' \| \ 13211 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13212$as_echo X"$as_dir" | 13213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13214 s//\1/ 13215 q 13216 } 13217 /^X\(\/\/\)[^/].*/{ 13218 s//\1/ 13219 q 13220 } 13221 /^X\(\/\/\)$/{ 13222 s//\1/ 13223 q 13224 } 13225 /^X\(\/\).*/{ 13226 s//\1/ 13227 q 13228 } 13229 s/.*/./; q'` 13230 test -d "$as_dir" && break 13231 done 13232 test -z "$as_dirs" || eval "mkdir $as_dirs" 13233 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13234 13235 13236} # as_fn_mkdir_p 13237if mkdir -p . 2>/dev/null; then 13238 as_mkdir_p='mkdir -p "$as_dir"' 13239else 13240 test -d ./-p && rmdir ./-p 13241 as_mkdir_p=false 13242fi 13243 13244 13245# as_fn_executable_p FILE 13246# ----------------------- 13247# Test if FILE is an executable regular file. 13248as_fn_executable_p () 13249{ 13250 test -f "$1" && test -x "$1" 13251} # as_fn_executable_p 13252as_test_x='test -x' 13253as_executable_p=as_fn_executable_p 13254 13255# Sed expression to map a string onto a valid CPP name. 13256as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13257 13258# Sed expression to map a string onto a valid variable name. 13259as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13260 13261 13262exec 6>&1 13263## ----------------------------------- ## 13264## Main body of $CONFIG_STATUS script. ## 13265## ----------------------------------- ## 13266_ASEOF 13267test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13268 13269cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13270# Save the log message, to keep $0 and so on meaningful, and to 13271# report actual input values of CONFIG_FILES etc. instead of their 13272# values after options handling. 13273ac_log=" 13274This file was extended by $as_me, which was 13275generated by GNU Autoconf 2.69. Invocation command line was 13276 13277 CONFIG_FILES = $CONFIG_FILES 13278 CONFIG_HEADERS = $CONFIG_HEADERS 13279 CONFIG_LINKS = $CONFIG_LINKS 13280 CONFIG_COMMANDS = $CONFIG_COMMANDS 13281 $ $0 $@ 13282 13283on `(hostname || uname -n) 2>/dev/null | sed 1q` 13284" 13285 13286_ACEOF 13287 13288case $ac_config_files in *" 13289"*) set x $ac_config_files; shift; ac_config_files=$*;; 13290esac 13291 13292case $ac_config_headers in *" 13293"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13294esac 13295 13296 13297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13298# Files that config.status was made for. 13299config_files="$ac_config_files" 13300config_headers="$ac_config_headers" 13301 13302_ACEOF 13303 13304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13305ac_cs_usage="\ 13306\`$as_me' instantiates files and other configuration actions 13307from templates according to the current configuration. Unless the files 13308and actions are specified as TAGs, all are instantiated by default. 13309 13310Usage: $0 [OPTION]... [TAG]... 13311 13312 -h, --help print this help, then exit 13313 -V, --version print version number and configuration settings, then exit 13314 --config print configuration, then exit 13315 -q, --quiet, --silent 13316 do not print progress messages 13317 -d, --debug don't remove temporary files 13318 --recheck update $as_me by reconfiguring in the same conditions 13319 --file=FILE[:TEMPLATE] 13320 instantiate the configuration file FILE 13321 --header=FILE[:TEMPLATE] 13322 instantiate the configuration header FILE 13323 13324Configuration files: 13325$config_files 13326 13327Configuration headers: 13328$config_headers 13329 13330Report bugs to the package provider." 13331 13332_ACEOF 13333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13334ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13335ac_cs_version="\\ 13336config.status 13337configured by $0, generated by GNU Autoconf 2.69, 13338 with options \\"\$ac_cs_config\\" 13339 13340Copyright (C) 2012 Free Software Foundation, Inc. 13341This config.status script is free software; the Free Software Foundation 13342gives unlimited permission to copy, distribute and modify it." 13343 13344ac_pwd='$ac_pwd' 13345srcdir='$srcdir' 13346INSTALL='$INSTALL' 13347test -n "\$AWK" || AWK=awk 13348_ACEOF 13349 13350cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13351# The default lists apply if the user does not specify any file. 13352ac_need_defaults=: 13353while test $# != 0 13354do 13355 case $1 in 13356 --*=?*) 13357 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13358 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13359 ac_shift=: 13360 ;; 13361 --*=) 13362 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13363 ac_optarg= 13364 ac_shift=: 13365 ;; 13366 *) 13367 ac_option=$1 13368 ac_optarg=$2 13369 ac_shift=shift 13370 ;; 13371 esac 13372 13373 case $ac_option in 13374 # Handling of the options. 13375 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13376 ac_cs_recheck=: ;; 13377 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13378 $as_echo "$ac_cs_version"; exit ;; 13379 --config | --confi | --conf | --con | --co | --c ) 13380 $as_echo "$ac_cs_config"; exit ;; 13381 --debug | --debu | --deb | --de | --d | -d ) 13382 debug=: ;; 13383 --file | --fil | --fi | --f ) 13384 $ac_shift 13385 case $ac_optarg in 13386 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13387 '') as_fn_error $? "missing file argument" ;; 13388 esac 13389 as_fn_append CONFIG_FILES " '$ac_optarg'" 13390 ac_need_defaults=false;; 13391 --header | --heade | --head | --hea ) 13392 $ac_shift 13393 case $ac_optarg in 13394 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13395 esac 13396 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13397 ac_need_defaults=false;; 13398 --he | --h) 13399 # Conflict between --help and --header 13400 as_fn_error $? "ambiguous option: \`$1' 13401Try \`$0 --help' for more information.";; 13402 --help | --hel | -h ) 13403 $as_echo "$ac_cs_usage"; exit ;; 13404 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13405 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13406 ac_cs_silent=: ;; 13407 13408 # This is an error. 13409 -*) as_fn_error $? "unrecognized option: \`$1' 13410Try \`$0 --help' for more information." ;; 13411 13412 *) as_fn_append ac_config_targets " $1" 13413 ac_need_defaults=false ;; 13414 13415 esac 13416 shift 13417done 13418 13419ac_configure_extra_args= 13420 13421if $ac_cs_silent; then 13422 exec 6>/dev/null 13423 ac_configure_extra_args="$ac_configure_extra_args --silent" 13424fi 13425 13426_ACEOF 13427cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13428if \$ac_cs_recheck; then 13429 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13430 shift 13431 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13432 CONFIG_SHELL='$SHELL' 13433 export CONFIG_SHELL 13434 exec "\$@" 13435fi 13436 13437_ACEOF 13438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13439exec 5>>config.log 13440{ 13441 echo 13442 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13443## Running $as_me. ## 13444_ASBOX 13445 $as_echo "$ac_log" 13446} >&5 13447 13448_ACEOF 13449cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13450_ACEOF 13451 13452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13453 13454# Handling of arguments. 13455for ac_config_target in $ac_config_targets 13456do 13457 case $ac_config_target in 13458 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13459 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13460 "xlock/Makefile") CONFIG_FILES="$CONFIG_FILES xlock/Makefile" ;; 13461 "modes/Makefile") CONFIG_FILES="$CONFIG_FILES modes/Makefile" ;; 13462 "modes/glx/Makefile") CONFIG_FILES="$CONFIG_FILES modes/glx/Makefile" ;; 13463 "xmlock/Makefile") CONFIG_FILES="$CONFIG_FILES xmlock/Makefile" ;; 13464 "xglock/Makefile") CONFIG_FILES="$CONFIG_FILES xglock/Makefile" ;; 13465 13466 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13467 esac 13468done 13469 13470 13471# If the user did not use the arguments to specify the items to instantiate, 13472# then the envvar interface is used. Set only those that are not. 13473# We use the long form for the default assignment because of an extremely 13474# bizarre bug on SunOS 4.1.3. 13475if $ac_need_defaults; then 13476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13478fi 13479 13480# Have a temporary directory for convenience. Make it in the build tree 13481# simply because there is no reason against having it here, and in addition, 13482# creating and moving files from /tmp can sometimes cause problems. 13483# Hook for its removal unless debugging. 13484# Note that there is a small window in which the directory will not be cleaned: 13485# after its creation but before its name has been assigned to `$tmp'. 13486$debug || 13487{ 13488 tmp= ac_tmp= 13489 trap 'exit_status=$? 13490 : "${ac_tmp:=$tmp}" 13491 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13492' 0 13493 trap 'as_fn_exit 1' 1 2 13 15 13494} 13495# Create a (secure) tmp directory for tmp files. 13496 13497{ 13498 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13499 test -d "$tmp" 13500} || 13501{ 13502 tmp=./conf$$-$RANDOM 13503 (umask 077 && mkdir "$tmp") 13504} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13505ac_tmp=$tmp 13506 13507# Set up the scripts for CONFIG_FILES section. 13508# No need to generate them if there are no CONFIG_FILES. 13509# This happens for instance with `./config.status config.h'. 13510if test -n "$CONFIG_FILES"; then 13511 13512 13513ac_cr=`echo X | tr X '\015'` 13514# On cygwin, bash can eat \r inside `` if the user requested igncr. 13515# But we know of no other shell where ac_cr would be empty at this 13516# point, so we can use a bashism as a fallback. 13517if test "x$ac_cr" = x; then 13518 eval ac_cr=\$\'\\r\' 13519fi 13520ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13521if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13522 ac_cs_awk_cr='\\r' 13523else 13524 ac_cs_awk_cr=$ac_cr 13525fi 13526 13527echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13528_ACEOF 13529 13530 13531{ 13532 echo "cat >conf$$subs.awk <<_ACEOF" && 13533 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13534 echo "_ACEOF" 13535} >conf$$subs.sh || 13536 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13537ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13538ac_delim='%!_!# ' 13539for ac_last_try in false false false false false :; do 13540 . ./conf$$subs.sh || 13541 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13542 13543 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13544 if test $ac_delim_n = $ac_delim_num; then 13545 break 13546 elif $ac_last_try; then 13547 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13548 else 13549 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13550 fi 13551done 13552rm -f conf$$subs.sh 13553 13554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13555cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13556_ACEOF 13557sed -n ' 13558h 13559s/^/S["/; s/!.*/"]=/ 13560p 13561g 13562s/^[^!]*!// 13563:repl 13564t repl 13565s/'"$ac_delim"'$// 13566t delim 13567:nl 13568h 13569s/\(.\{148\}\)..*/\1/ 13570t more1 13571s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13572p 13573n 13574b repl 13575:more1 13576s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13577p 13578g 13579s/.\{148\}// 13580t nl 13581:delim 13582h 13583s/\(.\{148\}\)..*/\1/ 13584t more2 13585s/["\\]/\\&/g; s/^/"/; s/$/"/ 13586p 13587b 13588:more2 13589s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13590p 13591g 13592s/.\{148\}// 13593t delim 13594' <conf$$subs.awk | sed ' 13595/^[^""]/{ 13596 N 13597 s/\n// 13598} 13599' >>$CONFIG_STATUS || ac_write_fail=1 13600rm -f conf$$subs.awk 13601cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13602_ACAWK 13603cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13604 for (key in S) S_is_set[key] = 1 13605 FS = "" 13606 13607} 13608{ 13609 line = $ 0 13610 nfields = split(line, field, "@") 13611 substed = 0 13612 len = length(field[1]) 13613 for (i = 2; i < nfields; i++) { 13614 key = field[i] 13615 keylen = length(key) 13616 if (S_is_set[key]) { 13617 value = S[key] 13618 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13619 len += length(value) + length(field[++i]) 13620 substed = 1 13621 } else 13622 len += 1 + keylen 13623 } 13624 13625 print line 13626} 13627 13628_ACAWK 13629_ACEOF 13630cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13631if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13632 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13633else 13634 cat 13635fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13636 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13637_ACEOF 13638 13639# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13640# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13641# trailing colons and then remove the whole line if VPATH becomes empty 13642# (actually we leave an empty line to preserve line numbers). 13643if test "x$srcdir" = x.; then 13644 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13645h 13646s/// 13647s/^/:/ 13648s/[ ]*$/:/ 13649s/:\$(srcdir):/:/g 13650s/:\${srcdir}:/:/g 13651s/:@srcdir@:/:/g 13652s/^:*// 13653s/:*$// 13654x 13655s/\(=[ ]*\).*/\1/ 13656G 13657s/\n// 13658s/^[^=]*=[ ]*$// 13659}' 13660fi 13661 13662cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13663fi # test -n "$CONFIG_FILES" 13664 13665# Set up the scripts for CONFIG_HEADERS section. 13666# No need to generate them if there are no CONFIG_HEADERS. 13667# This happens for instance with `./config.status Makefile'. 13668if test -n "$CONFIG_HEADERS"; then 13669cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13670BEGIN { 13671_ACEOF 13672 13673# Transform confdefs.h into an awk script `defines.awk', embedded as 13674# here-document in config.status, that substitutes the proper values into 13675# config.h.in to produce config.h. 13676 13677# Create a delimiter string that does not exist in confdefs.h, to ease 13678# handling of long lines. 13679ac_delim='%!_!# ' 13680for ac_last_try in false false :; do 13681 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13682 if test -z "$ac_tt"; then 13683 break 13684 elif $ac_last_try; then 13685 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13686 else 13687 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13688 fi 13689done 13690 13691# For the awk script, D is an array of macro values keyed by name, 13692# likewise P contains macro parameters if any. Preserve backslash 13693# newline sequences. 13694 13695ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13696sed -n ' 13697s/.\{148\}/&'"$ac_delim"'/g 13698t rset 13699:rset 13700s/^[ ]*#[ ]*define[ ][ ]*/ / 13701t def 13702d 13703:def 13704s/\\$// 13705t bsnl 13706s/["\\]/\\&/g 13707s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13708D["\1"]=" \3"/p 13709s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13710d 13711:bsnl 13712s/["\\]/\\&/g 13713s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13714D["\1"]=" \3\\\\\\n"\\/p 13715t cont 13716s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13717t cont 13718d 13719:cont 13720n 13721s/.\{148\}/&'"$ac_delim"'/g 13722t clear 13723:clear 13724s/\\$// 13725t bsnlc 13726s/["\\]/\\&/g; s/^/"/; s/$/"/p 13727d 13728:bsnlc 13729s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13730b cont 13731' <confdefs.h | sed ' 13732s/'"$ac_delim"'/"\\\ 13733"/g' >>$CONFIG_STATUS || ac_write_fail=1 13734 13735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13736 for (key in D) D_is_set[key] = 1 13737 FS = "" 13738} 13739/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13740 line = \$ 0 13741 split(line, arg, " ") 13742 if (arg[1] == "#") { 13743 defundef = arg[2] 13744 mac1 = arg[3] 13745 } else { 13746 defundef = substr(arg[1], 2) 13747 mac1 = arg[2] 13748 } 13749 split(mac1, mac2, "(") #) 13750 macro = mac2[1] 13751 prefix = substr(line, 1, index(line, defundef) - 1) 13752 if (D_is_set[macro]) { 13753 # Preserve the white space surrounding the "#". 13754 print prefix "define", macro P[macro] D[macro] 13755 next 13756 } else { 13757 # Replace #undef with comments. This is necessary, for example, 13758 # in the case of _POSIX_SOURCE, which is predefined and required 13759 # on some systems where configure will not decide to define it. 13760 if (defundef == "undef") { 13761 print "/*", prefix defundef, macro, "*/" 13762 next 13763 } 13764 } 13765} 13766{ print } 13767_ACAWK 13768_ACEOF 13769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13770 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13771fi # test -n "$CONFIG_HEADERS" 13772 13773 13774eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 13775shift 13776for ac_tag 13777do 13778 case $ac_tag in 13779 :[FHLC]) ac_mode=$ac_tag; continue;; 13780 esac 13781 case $ac_mode$ac_tag in 13782 :[FHL]*:*);; 13783 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13784 :[FH]-) ac_tag=-:-;; 13785 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13786 esac 13787 ac_save_IFS=$IFS 13788 IFS=: 13789 set x $ac_tag 13790 IFS=$ac_save_IFS 13791 shift 13792 ac_file=$1 13793 shift 13794 13795 case $ac_mode in 13796 :L) ac_source=$1;; 13797 :[FH]) 13798 ac_file_inputs= 13799 for ac_f 13800 do 13801 case $ac_f in 13802 -) ac_f="$ac_tmp/stdin";; 13803 *) # Look for the file first in the build tree, then in the source tree 13804 # (if the path is not absolute). The absolute path cannot be DOS-style, 13805 # because $ac_f cannot contain `:'. 13806 test -f "$ac_f" || 13807 case $ac_f in 13808 [\\/$]*) false;; 13809 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13810 esac || 13811 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13812 esac 13813 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13814 as_fn_append ac_file_inputs " '$ac_f'" 13815 done 13816 13817 # Let's still pretend it is `configure' which instantiates (i.e., don't 13818 # use $as_me), people would be surprised to read: 13819 # /* config.h. Generated by config.status. */ 13820 configure_input='Generated from '` 13821 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13822 `' by configure.' 13823 if test x"$ac_file" != x-; then 13824 configure_input="$ac_file. $configure_input" 13825 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13826$as_echo "$as_me: creating $ac_file" >&6;} 13827 fi 13828 # Neutralize special characters interpreted by sed in replacement strings. 13829 case $configure_input in #( 13830 *\&* | *\|* | *\\* ) 13831 ac_sed_conf_input=`$as_echo "$configure_input" | 13832 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13833 *) ac_sed_conf_input=$configure_input;; 13834 esac 13835 13836 case $ac_tag in 13837 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13838 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13839 esac 13840 ;; 13841 esac 13842 13843 ac_dir=`$as_dirname -- "$ac_file" || 13844$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13845 X"$ac_file" : 'X\(//\)[^/]' \| \ 13846 X"$ac_file" : 'X\(//\)$' \| \ 13847 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13848$as_echo X"$ac_file" | 13849 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13850 s//\1/ 13851 q 13852 } 13853 /^X\(\/\/\)[^/].*/{ 13854 s//\1/ 13855 q 13856 } 13857 /^X\(\/\/\)$/{ 13858 s//\1/ 13859 q 13860 } 13861 /^X\(\/\).*/{ 13862 s//\1/ 13863 q 13864 } 13865 s/.*/./; q'` 13866 as_dir="$ac_dir"; as_fn_mkdir_p 13867 ac_builddir=. 13868 13869case "$ac_dir" in 13870.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13871*) 13872 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13873 # A ".." for each directory in $ac_dir_suffix. 13874 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13875 case $ac_top_builddir_sub in 13876 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13877 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13878 esac ;; 13879esac 13880ac_abs_top_builddir=$ac_pwd 13881ac_abs_builddir=$ac_pwd$ac_dir_suffix 13882# for backward compatibility: 13883ac_top_builddir=$ac_top_build_prefix 13884 13885case $srcdir in 13886 .) # We are building in place. 13887 ac_srcdir=. 13888 ac_top_srcdir=$ac_top_builddir_sub 13889 ac_abs_top_srcdir=$ac_pwd ;; 13890 [\\/]* | ?:[\\/]* ) # Absolute name. 13891 ac_srcdir=$srcdir$ac_dir_suffix; 13892 ac_top_srcdir=$srcdir 13893 ac_abs_top_srcdir=$srcdir ;; 13894 *) # Relative name. 13895 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13896 ac_top_srcdir=$ac_top_build_prefix$srcdir 13897 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13898esac 13899ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13900 13901 13902 case $ac_mode in 13903 :F) 13904 # 13905 # CONFIG_FILE 13906 # 13907 13908 case $INSTALL in 13909 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13910 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13911 esac 13912_ACEOF 13913 13914cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13915# If the template does not know about datarootdir, expand it. 13916# FIXME: This hack should be removed a few years after 2.60. 13917ac_datarootdir_hack=; ac_datarootdir_seen= 13918ac_sed_dataroot=' 13919/datarootdir/ { 13920 p 13921 q 13922} 13923/@datadir@/p 13924/@docdir@/p 13925/@infodir@/p 13926/@localedir@/p 13927/@mandir@/p' 13928case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13929*datarootdir*) ac_datarootdir_seen=yes;; 13930*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13932$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13933_ACEOF 13934cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13935 ac_datarootdir_hack=' 13936 s&@datadir@&$datadir&g 13937 s&@docdir@&$docdir&g 13938 s&@infodir@&$infodir&g 13939 s&@localedir@&$localedir&g 13940 s&@mandir@&$mandir&g 13941 s&\\\${datarootdir}&$datarootdir&g' ;; 13942esac 13943_ACEOF 13944 13945# Neutralize VPATH when `$srcdir' = `.'. 13946# Shell code in configure.ac might set extrasub. 13947# FIXME: do we really want to maintain this feature? 13948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13949ac_sed_extra="$ac_vpsub 13950$extrasub 13951_ACEOF 13952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13953:t 13954/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13955s|@configure_input@|$ac_sed_conf_input|;t t 13956s&@top_builddir@&$ac_top_builddir_sub&;t t 13957s&@top_build_prefix@&$ac_top_build_prefix&;t t 13958s&@srcdir@&$ac_srcdir&;t t 13959s&@abs_srcdir@&$ac_abs_srcdir&;t t 13960s&@top_srcdir@&$ac_top_srcdir&;t t 13961s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13962s&@builddir@&$ac_builddir&;t t 13963s&@abs_builddir@&$ac_abs_builddir&;t t 13964s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13965s&@INSTALL@&$ac_INSTALL&;t t 13966$ac_datarootdir_hack 13967" 13968eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13969 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13970 13971test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13972 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13973 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13974 "$ac_tmp/out"`; test -z "$ac_out"; } && 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13976which seems to be undefined. Please make sure it is defined" >&5 13977$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13978which seems to be undefined. Please make sure it is defined" >&2;} 13979 13980 rm -f "$ac_tmp/stdin" 13981 case $ac_file in 13982 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13983 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13984 esac \ 13985 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13986 ;; 13987 :H) 13988 # 13989 # CONFIG_HEADER 13990 # 13991 if test x"$ac_file" != x-; then 13992 { 13993 $as_echo "/* $configure_input */" \ 13994 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13995 } >"$ac_tmp/config.h" \ 13996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13997 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13998 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13999$as_echo "$as_me: $ac_file is unchanged" >&6;} 14000 else 14001 rm -f "$ac_file" 14002 mv "$ac_tmp/config.h" "$ac_file" \ 14003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14004 fi 14005 else 14006 $as_echo "/* $configure_input */" \ 14007 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14008 || as_fn_error $? "could not create -" "$LINENO" 5 14009 fi 14010 ;; 14011 14012 14013 esac 14014 14015done # for ac_tag 14016 14017 14018as_fn_exit 0 14019_ACEOF 14020ac_clean_files=$ac_clean_files_save 14021 14022test $ac_write_fail = 0 || 14023 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14024 14025 14026# configure is writing to config.log, and then calls config.status. 14027# config.status does its own redirection, appending to config.log. 14028# Unfortunately, on DOS this fails, as config.log is still kept open 14029# by configure, so config.status won't be able to write to it; its 14030# output is simply discarded. So we exec the FD to /dev/null, 14031# effectively closing config.log, so it can be properly (re)opened and 14032# appended to by config.status. When coming back to configure, we 14033# need to make the FD available again. 14034if test "$no_create" != yes; then 14035 ac_cs_success=: 14036 ac_config_status_args= 14037 test "$silent" = yes && 14038 ac_config_status_args="$ac_config_status_args --quiet" 14039 exec 5>/dev/null 14040 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14041 exec 5>>config.log 14042 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14043 # would make configure fail if this is the last instruction. 14044 $ac_cs_success || as_fn_exit 1 14045fi 14046if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14048$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14049fi 14050 14051