1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for fvwm 2.6.9. 4# 5# Report bugs to <fvwm-workers@fvwm.org>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204else 205 as_have_required=no 206fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211as_found=false 212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227fi 228fi 229 done;; 230 esac 231 as_found=false 232done 233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236fi; } 237IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243# neutralization value for shells without unset; and this also 244# works around shells that cannot unset nonexistent variables. 245# Preserve -v and -x to the replacement shell. 246BASH_ENV=/dev/null 247ENV=/dev/null 248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254esac 255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256# Admittedly, this is quite paranoid, since all the known shells bail 257# out after a failed `exec'. 258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259exit 255 260fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270$0: fvwm-workers@fvwm.org about your system, including any 271$0: error possibly output before this message. Then install 272$0: a modern shell, or manually run the script under such a 273$0: shell if you do have one." 274 fi 275 exit 1 276fi 277fi 278fi 279SHELL=${CONFIG_SHELL-/bin/sh} 280export SHELL 281# Unset more variables known to interfere with behavior of common tools. 282CLICOLOR_FORCE= GREP_OPTIONS= 283unset CLICOLOR_FORCE GREP_OPTIONS 284 285## --------------------- ## 286## M4sh Shell Functions. ## 287## --------------------- ## 288# as_fn_unset VAR 289# --------------- 290# Portably unset VAR. 291as_fn_unset () 292{ 293 { eval $1=; unset $1;} 294} 295as_unset=as_fn_unset 296 297# as_fn_set_status STATUS 298# ----------------------- 299# Set $? to STATUS, without forking. 300as_fn_set_status () 301{ 302 return $1 303} # as_fn_set_status 304 305# as_fn_exit STATUS 306# ----------------- 307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308as_fn_exit () 309{ 310 set +e 311 as_fn_set_status $1 312 exit $1 313} # as_fn_exit 314 315# as_fn_mkdir_p 316# ------------- 317# Create "$as_dir" as a directory, including parents if necessary. 318as_fn_mkdir_p () 319{ 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337$as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361} # as_fn_mkdir_p 362 363# as_fn_executable_p FILE 364# ----------------------- 365# Test if FILE is an executable regular file. 366as_fn_executable_p () 367{ 368 test -f "$1" && test -x "$1" 369} # as_fn_executable_p 370# as_fn_append VAR VALUE 371# ---------------------- 372# Append the text in VALUE to the end of the definition contained in VAR. Take 373# advantage of any shell optimizations that allow amortized linear growth over 374# repeated appends, instead of the typical quadratic growth present in naive 375# implementations. 376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386fi # as_fn_append 387 388# as_fn_arith ARG... 389# ------------------ 390# Perform arithmetic evaluation on the ARGs, and store the result in the 391# global $as_val. Take advantage of shells that can avoid forks. The arguments 392# must be portable across $(()) and expr. 393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403fi # as_fn_arith 404 405 406# as_fn_error STATUS ERROR [LINENO LOG_FD] 407# ---------------------------------------- 408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410# script with STATUS, using 1 if that was 0. 411as_fn_error () 412{ 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420} # as_fn_error 421 422if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425else 426 as_expr=false 427fi 428 429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431else 432 as_basename=false 433fi 434 435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437else 438 as_dirname=false 439fi 440 441as_me=`$as_basename -- "$0" || 442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445$as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460# Avoid depending upon Character Ranges. 461as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464as_cr_digits='0123456789' 465as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501} 502 503ECHO_C= ECHO_N= ECHO_T= 504case `echo -n x` in #((((( 505-n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512*) 513 ECHO_N='-n';; 514esac 515 516rm -f conf$$ conf$$.exe conf$$.file 517if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522fi 523if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537else 538 as_ln_s='cp -pR' 539fi 540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541rmdir conf$$.dir 2>/dev/null 542 543if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548fi 549 550as_test_x='test -x' 551as_executable_p=as_fn_executable_p 552 553# Sed expression to map a string onto a valid CPP name. 554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556# Sed expression to map a string onto a valid variable name. 557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560test -n "$DJDIR" || exec 7<&0 </dev/null 561exec 6>&1 562 563# Name of the host. 564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565# so uname gets run too. 566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568# 569# Initializations. 570# 571ac_default_prefix=/usr/local 572ac_clean_files= 573ac_config_libobj_dir=. 574LIBOBJS= 575cross_compiling=no 576subdirs= 577MFLAGS= 578MAKEFLAGS= 579 580# Identity of this package. 581PACKAGE_NAME='fvwm' 582PACKAGE_TARNAME='fvwm' 583PACKAGE_VERSION='2.6.9' 584PACKAGE_STRING='fvwm 2.6.9' 585PACKAGE_BUGREPORT='fvwm-workers@fvwm.org' 586PACKAGE_URL='' 587 588# Factoring default headers for most tests. 589ac_includes_default="\ 590#include <stdio.h> 591#ifdef HAVE_SYS_TYPES_H 592# include <sys/types.h> 593#endif 594#ifdef HAVE_SYS_STAT_H 595# include <sys/stat.h> 596#endif 597#ifdef STDC_HEADERS 598# include <stdlib.h> 599# include <stddef.h> 600#else 601# ifdef HAVE_STDLIB_H 602# include <stdlib.h> 603# endif 604#endif 605#ifdef HAVE_STRING_H 606# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 607# include <memory.h> 608# endif 609# include <string.h> 610#endif 611#ifdef HAVE_STRINGS_H 612# include <strings.h> 613#endif 614#ifdef HAVE_INTTYPES_H 615# include <inttypes.h> 616#endif 617#ifdef HAVE_STDINT_H 618# include <stdint.h> 619#endif 620#ifdef HAVE_UNISTD_H 621# include <unistd.h> 622#endif" 623 624ac_subst_vars='am__EXEEXT_FALSE 625am__EXEEXT_TRUE 626LTLIBOBJS 627LIBOBJS 628LOCAL_BUGADDR 629with_xpm 630with_xrender 631with_xinerama 632with_xft 633with_xcursor 634with_stroke 635with_sm 636with_shm 637with_shape 638with_rplay 639with_readline 640with_rsvg 641with_png 642with_perllib 643with_iconv 644with_gettext 645with_gdkimlib 646with_bidi 647GDK_IMLIB_LIBS 648GDK_IMLIB_CFLAGS 649IMLIBCONF 650RANLIB 651LN_S 652FVWM_CPP 653CATOBJEXT 654DUMMYPOFILES 655UPDATEPOFILES 656GMOFILES 657POFILES 658CATALOGS 659INST_LINGUAS 660MKINSTALLDIRS 661LOCALEDIR 662POSUB 663USE_NLS 664intl_CFLAGS 665intl_LIBS 666MSGUNIQ 667MSGMERGE 668XGETTEXT 669GMSGFMT 670MSGFMT 671ALL_DOMAINS 672FVWMSCRIPT_DOMAIN 673FVWMTASKBAR_DOMAIN 674FVWM_DOMAIN 675ALL_LINGUAS 676FVWM_PERLLIB 677Bidi_CFLAGS 678Bidi_LIBS 679FRIBIDI_CONFIG 680iconv_CFLAGS 681iconv_LIBS 682readline_CFLAGS 683readline_LIBS 684stroke_CFLAGS 685stroke_LIBS 686rplay_CFLAGS 687rplay_LIBS 688rsvg_LIBS 689rsvg_CFLAGS 690png_LIBS 691png_CFLAGS 692PKG_CONFIG_LIBDIR 693PKG_CONFIG_PATH 694xpm_CFLAGS 695xpm_LIBS 696Xft_CFLAGS 697Xft_LIBS 698XFT_LIBS 699XFT_CFLAGS 700XFT_CONFIG 701FC_LIBS 702FC_CFLAGS 703FC_CONFIG 704Xcursor_LIBS 705Xcursor_CFLAGS 706Xrender_CFLAGS 707Xrender_LIBS 708Xinerama_CFLAGS 709Xinerama_LIBS 710FVWM_BUILD_HTMLDOC_FALSE 711FVWM_BUILD_HTMLDOC_TRUE 712FVWM_BUILD_MANDOC_FALSE 713FVWM_BUILD_MANDOC_TRUE 714XSLTPROC 715DOC_SECTIONS_XML_PATH 716DOC_SECTIONS_XML 717DOC_SECTIONS 718DOC_MODULES_HTML 719DOC_MODULES 720DOC_COMMANDS_HTML 721DOC_COMMANDS_XML_PATH 722DOC_COMMANDS_XML 723DOC_COMMANDS 724PKG_CONFIG 725host_os 726host_vendor 727host_cpu 728host 729build_os 730build_vendor 731build_cpu 732build 733EGREP 734GREP 735FVWM_IMAGEPATH 736X_EXTRA_LIBS 737X_LIBS 738X_PRE_LIBS 739X_CFLAGS 740CPP 741am__fastdepCC_FALSE 742am__fastdepCC_TRUE 743CCDEPMODE 744am__nodep 745AMDEPBACKSLASH 746AMDEP_FALSE 747AMDEP_TRUE 748am__include 749DEPDIR 750OBJEXT 751EXEEXT 752ac_ct_CC 753CPPFLAGS 754LDFLAGS 755CFLAGS 756CC 757XMKMF 758FVWM_DOCDIR 759FVWM_CONFDIR 760FVWM_PERLLIBDIR 761FVWM_DATADIR 762FVWM_MODULEDIR 763PERL 764REQUIRED_PERL_VERSION 765PYTHON 766REQUIRED_PYTHON_VERSION 767SED 768MANPAGE_PREAMBLE 769FVWMWORKERSLISTLONG 770FVWMWORKERSLIST 771FVWMLIST 772FVWMALTFTPDIR 773FVWMALTFTP 774FVWMFTPDIR 775FVWMFTP 776FVWMHOMEPAGE 777FVWMNAMELONG 778RELDATENUM 779RELDATESHORT 780RELDATELONG 781VERSIONINFO 782ISRELEASED 783AM_BACKSLASH 784AM_DEFAULT_VERBOSITY 785AM_DEFAULT_V 786AM_V 787am__untar 788am__tar 789AMTAR 790am__leading_dot 791SET_MAKE 792AWK 793mkdir_p 794MKDIR_P 795INSTALL_STRIP_PROGRAM 796STRIP 797install_sh 798MAKEINFO 799AUTOHEADER 800AUTOMAKE 801AUTOCONF 802ACLOCAL 803VERSION 804PACKAGE 805CYGPATH_W 806am__isrc 807INSTALL_DATA 808INSTALL_SCRIPT 809INSTALL_PROGRAM 810target_alias 811host_alias 812build_alias 813LIBS 814ECHO_T 815ECHO_N 816ECHO_C 817DEFS 818mandir 819localedir 820libdir 821psdir 822pdfdir 823dvidir 824htmldir 825infodir 826docdir 827oldincludedir 828includedir 829localstatedir 830sharedstatedir 831sysconfdir 832datadir 833datarootdir 834libexecdir 835sbindir 836bindir 837program_transform_name 838prefix 839exec_prefix 840PACKAGE_URL 841PACKAGE_BUGREPORT 842PACKAGE_STRING 843PACKAGE_VERSION 844PACKAGE_TARNAME 845PACKAGE_NAME 846PATH_SEPARATOR 847SHELL 848AR_FLAGS 849am__quote' 850ac_subst_files='' 851ac_user_opts=' 852enable_option_checking 853enable_silent_rules 854enable_package_subdirs 855enable_dmalloc 856enable_efence 857enable_command_log 858enable_debug_msgs 859with_x 860enable_dependency_tracking 861with_imagepath 862with_pkgconfig_prefix 863with_pkgconfig_exec_prefix 864enable_mandoc 865enable_htmldoc 866enable_sm 867enable_shape 868enable_shm 869enable_xinerama 870enable_xinerama_emulation 871enable_xrender 872enable_xcursor 873enable_xft 874with_fontconfig_prefix 875with_fontconfig_exec_prefix 876enable_fontconfigtest 877with_xft_prefix 878with_xft_exec_prefix 879enable_xfttest 880with_xpm_library 881with_xpm_includes 882enable_png 883enable_rsvg 884with_rplay_library 885with_rplay_includes 886with_stroke_library 887with_stroke_includes 888with_termcap_library 889with_readline_library 890with_readline_includes 891with_ncurses_library 892enable_iconv 893with_iconv_library 894with_iconv_includes 895enable_bidi 896with_fribidi_bindir 897enable_perllib 898enable_nls 899with_intl_library 900with_intl_includes 901with_imlib_prefix 902with_imlib_exec_prefix 903enable_imlibtest 904' 905 ac_precious_vars='build_alias 906host_alias 907target_alias 908XMKMF 909CC 910CFLAGS 911LDFLAGS 912LIBS 913CPPFLAGS 914CPP 915PKG_CONFIG 916PKG_CONFIG_PATH 917PKG_CONFIG_LIBDIR 918png_CFLAGS 919png_LIBS' 920 921 922# Initialize some variables set by options. 923ac_init_help= 924ac_init_version=false 925ac_unrecognized_opts= 926ac_unrecognized_sep= 927# The variables have the same names as the options, with 928# dashes changed to underlines. 929cache_file=/dev/null 930exec_prefix=NONE 931no_create= 932no_recursion= 933prefix=NONE 934program_prefix=NONE 935program_suffix=NONE 936program_transform_name=s,x,x, 937silent= 938site= 939srcdir= 940verbose= 941x_includes=NONE 942x_libraries=NONE 943 944# Installation directory options. 945# These are left unexpanded so users can "make install exec_prefix=/foo" 946# and all the variables that are supposed to be based on exec_prefix 947# by default will actually change. 948# Use braces instead of parens because sh, perl, etc. also accept them. 949# (The list follows the same order as the GNU Coding Standards.) 950bindir='${exec_prefix}/bin' 951sbindir='${exec_prefix}/sbin' 952libexecdir='${exec_prefix}/libexec' 953datarootdir='${prefix}/share' 954datadir='${datarootdir}' 955sysconfdir='${prefix}/etc' 956sharedstatedir='${prefix}/com' 957localstatedir='${prefix}/var' 958includedir='${prefix}/include' 959oldincludedir='/usr/include' 960docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 961infodir='${datarootdir}/info' 962htmldir='${docdir}' 963dvidir='${docdir}' 964pdfdir='${docdir}' 965psdir='${docdir}' 966libdir='${exec_prefix}/lib' 967localedir='${datarootdir}/locale' 968mandir='${datarootdir}/man' 969 970ac_prev= 971ac_dashdash= 972for ac_option 973do 974 # If the previous option needs an argument, assign it. 975 if test -n "$ac_prev"; then 976 eval $ac_prev=\$ac_option 977 ac_prev= 978 continue 979 fi 980 981 case $ac_option in 982 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 983 *=) ac_optarg= ;; 984 *) ac_optarg=yes ;; 985 esac 986 987 # Accept the important Cygnus configure options, so we can diagnose typos. 988 989 case $ac_dashdash$ac_option in 990 --) 991 ac_dashdash=yes ;; 992 993 -bindir | --bindir | --bindi | --bind | --bin | --bi) 994 ac_prev=bindir ;; 995 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 996 bindir=$ac_optarg ;; 997 998 -build | --build | --buil | --bui | --bu) 999 ac_prev=build_alias ;; 1000 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1001 build_alias=$ac_optarg ;; 1002 1003 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1004 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1005 ac_prev=cache_file ;; 1006 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1007 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1008 cache_file=$ac_optarg ;; 1009 1010 --config-cache | -C) 1011 cache_file=config.cache ;; 1012 1013 -datadir | --datadir | --datadi | --datad) 1014 ac_prev=datadir ;; 1015 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1016 datadir=$ac_optarg ;; 1017 1018 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1019 | --dataroo | --dataro | --datar) 1020 ac_prev=datarootdir ;; 1021 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1022 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1023 datarootdir=$ac_optarg ;; 1024 1025 -disable-* | --disable-*) 1026 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1027 # Reject names that are not valid shell variable names. 1028 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1029 as_fn_error $? "invalid feature name: $ac_useropt" 1030 ac_useropt_orig=$ac_useropt 1031 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1032 case $ac_user_opts in 1033 *" 1034"enable_$ac_useropt" 1035"*) ;; 1036 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1037 ac_unrecognized_sep=', ';; 1038 esac 1039 eval enable_$ac_useropt=no ;; 1040 1041 -docdir | --docdir | --docdi | --doc | --do) 1042 ac_prev=docdir ;; 1043 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1044 docdir=$ac_optarg ;; 1045 1046 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1047 ac_prev=dvidir ;; 1048 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1049 dvidir=$ac_optarg ;; 1050 1051 -enable-* | --enable-*) 1052 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1053 # Reject names that are not valid shell variable names. 1054 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1055 as_fn_error $? "invalid feature name: $ac_useropt" 1056 ac_useropt_orig=$ac_useropt 1057 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1058 case $ac_user_opts in 1059 *" 1060"enable_$ac_useropt" 1061"*) ;; 1062 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1063 ac_unrecognized_sep=', ';; 1064 esac 1065 eval enable_$ac_useropt=\$ac_optarg ;; 1066 1067 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1068 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1069 | --exec | --exe | --ex) 1070 ac_prev=exec_prefix ;; 1071 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1072 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1073 | --exec=* | --exe=* | --ex=*) 1074 exec_prefix=$ac_optarg ;; 1075 1076 -gas | --gas | --ga | --g) 1077 # Obsolete; use --with-gas. 1078 with_gas=yes ;; 1079 1080 -help | --help | --hel | --he | -h) 1081 ac_init_help=long ;; 1082 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1083 ac_init_help=recursive ;; 1084 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1085 ac_init_help=short ;; 1086 1087 -host | --host | --hos | --ho) 1088 ac_prev=host_alias ;; 1089 -host=* | --host=* | --hos=* | --ho=*) 1090 host_alias=$ac_optarg ;; 1091 1092 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1093 ac_prev=htmldir ;; 1094 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1095 | --ht=*) 1096 htmldir=$ac_optarg ;; 1097 1098 -includedir | --includedir | --includedi | --included | --include \ 1099 | --includ | --inclu | --incl | --inc) 1100 ac_prev=includedir ;; 1101 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1102 | --includ=* | --inclu=* | --incl=* | --inc=*) 1103 includedir=$ac_optarg ;; 1104 1105 -infodir | --infodir | --infodi | --infod | --info | --inf) 1106 ac_prev=infodir ;; 1107 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1108 infodir=$ac_optarg ;; 1109 1110 -libdir | --libdir | --libdi | --libd) 1111 ac_prev=libdir ;; 1112 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1113 libdir=$ac_optarg ;; 1114 1115 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1116 | --libexe | --libex | --libe) 1117 ac_prev=libexecdir ;; 1118 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1119 | --libexe=* | --libex=* | --libe=*) 1120 libexecdir=$ac_optarg ;; 1121 1122 -localedir | --localedir | --localedi | --localed | --locale) 1123 ac_prev=localedir ;; 1124 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1125 localedir=$ac_optarg ;; 1126 1127 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1128 | --localstate | --localstat | --localsta | --localst | --locals) 1129 ac_prev=localstatedir ;; 1130 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1131 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1132 localstatedir=$ac_optarg ;; 1133 1134 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1135 ac_prev=mandir ;; 1136 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1137 mandir=$ac_optarg ;; 1138 1139 -nfp | --nfp | --nf) 1140 # Obsolete; use --without-fp. 1141 with_fp=no ;; 1142 1143 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1144 | --no-cr | --no-c | -n) 1145 no_create=yes ;; 1146 1147 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1148 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1149 no_recursion=yes ;; 1150 1151 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1152 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1153 | --oldin | --oldi | --old | --ol | --o) 1154 ac_prev=oldincludedir ;; 1155 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1156 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1157 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1158 oldincludedir=$ac_optarg ;; 1159 1160 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1161 ac_prev=prefix ;; 1162 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1163 prefix=$ac_optarg ;; 1164 1165 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1166 | --program-pre | --program-pr | --program-p) 1167 ac_prev=program_prefix ;; 1168 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1169 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1170 program_prefix=$ac_optarg ;; 1171 1172 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1173 | --program-suf | --program-su | --program-s) 1174 ac_prev=program_suffix ;; 1175 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1176 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1177 program_suffix=$ac_optarg ;; 1178 1179 -program-transform-name | --program-transform-name \ 1180 | --program-transform-nam | --program-transform-na \ 1181 | --program-transform-n | --program-transform- \ 1182 | --program-transform | --program-transfor \ 1183 | --program-transfo | --program-transf \ 1184 | --program-trans | --program-tran \ 1185 | --progr-tra | --program-tr | --program-t) 1186 ac_prev=program_transform_name ;; 1187 -program-transform-name=* | --program-transform-name=* \ 1188 | --program-transform-nam=* | --program-transform-na=* \ 1189 | --program-transform-n=* | --program-transform-=* \ 1190 | --program-transform=* | --program-transfor=* \ 1191 | --program-transfo=* | --program-transf=* \ 1192 | --program-trans=* | --program-tran=* \ 1193 | --progr-tra=* | --program-tr=* | --program-t=*) 1194 program_transform_name=$ac_optarg ;; 1195 1196 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1197 ac_prev=pdfdir ;; 1198 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1199 pdfdir=$ac_optarg ;; 1200 1201 -psdir | --psdir | --psdi | --psd | --ps) 1202 ac_prev=psdir ;; 1203 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1204 psdir=$ac_optarg ;; 1205 1206 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1207 | -silent | --silent | --silen | --sile | --sil) 1208 silent=yes ;; 1209 1210 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1211 ac_prev=sbindir ;; 1212 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1213 | --sbi=* | --sb=*) 1214 sbindir=$ac_optarg ;; 1215 1216 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1217 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1218 | --sharedst | --shareds | --shared | --share | --shar \ 1219 | --sha | --sh) 1220 ac_prev=sharedstatedir ;; 1221 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1222 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1223 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1224 | --sha=* | --sh=*) 1225 sharedstatedir=$ac_optarg ;; 1226 1227 -site | --site | --sit) 1228 ac_prev=site ;; 1229 -site=* | --site=* | --sit=*) 1230 site=$ac_optarg ;; 1231 1232 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1233 ac_prev=srcdir ;; 1234 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1235 srcdir=$ac_optarg ;; 1236 1237 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1238 | --syscon | --sysco | --sysc | --sys | --sy) 1239 ac_prev=sysconfdir ;; 1240 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1241 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1242 sysconfdir=$ac_optarg ;; 1243 1244 -target | --target | --targe | --targ | --tar | --ta | --t) 1245 ac_prev=target_alias ;; 1246 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1247 target_alias=$ac_optarg ;; 1248 1249 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1250 verbose=yes ;; 1251 1252 -version | --version | --versio | --versi | --vers | -V) 1253 ac_init_version=: ;; 1254 1255 -with-* | --with-*) 1256 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1257 # Reject names that are not valid shell variable names. 1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1259 as_fn_error $? "invalid package name: $ac_useropt" 1260 ac_useropt_orig=$ac_useropt 1261 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1262 case $ac_user_opts in 1263 *" 1264"with_$ac_useropt" 1265"*) ;; 1266 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1267 ac_unrecognized_sep=', ';; 1268 esac 1269 eval with_$ac_useropt=\$ac_optarg ;; 1270 1271 -without-* | --without-*) 1272 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1273 # Reject names that are not valid shell variable names. 1274 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1275 as_fn_error $? "invalid package name: $ac_useropt" 1276 ac_useropt_orig=$ac_useropt 1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1278 case $ac_user_opts in 1279 *" 1280"with_$ac_useropt" 1281"*) ;; 1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1283 ac_unrecognized_sep=', ';; 1284 esac 1285 eval with_$ac_useropt=no ;; 1286 1287 --x) 1288 # Obsolete; use --with-x. 1289 with_x=yes ;; 1290 1291 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1292 | --x-incl | --x-inc | --x-in | --x-i) 1293 ac_prev=x_includes ;; 1294 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1295 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1296 x_includes=$ac_optarg ;; 1297 1298 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1299 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1300 ac_prev=x_libraries ;; 1301 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1302 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1303 x_libraries=$ac_optarg ;; 1304 1305 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1306Try \`$0 --help' for more information" 1307 ;; 1308 1309 *=*) 1310 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1311 # Reject names that are not valid shell variable names. 1312 case $ac_envvar in #( 1313 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1314 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1315 esac 1316 eval $ac_envvar=\$ac_optarg 1317 export $ac_envvar ;; 1318 1319 *) 1320 # FIXME: should be removed in autoconf 3.0. 1321 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1322 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1323 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1324 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1325 ;; 1326 1327 esac 1328done 1329 1330if test -n "$ac_prev"; then 1331 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1332 as_fn_error $? "missing argument to $ac_option" 1333fi 1334 1335if test -n "$ac_unrecognized_opts"; then 1336 case $enable_option_checking in 1337 no) ;; 1338 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1339 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1340 esac 1341fi 1342 1343# Check all directory arguments for consistency. 1344for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1345 datadir sysconfdir sharedstatedir localstatedir includedir \ 1346 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1347 libdir localedir mandir 1348do 1349 eval ac_val=\$$ac_var 1350 # Remove trailing slashes. 1351 case $ac_val in 1352 */ ) 1353 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1354 eval $ac_var=\$ac_val;; 1355 esac 1356 # Be sure to have absolute directory names. 1357 case $ac_val in 1358 [\\/$]* | ?:[\\/]* ) continue;; 1359 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1360 esac 1361 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1362done 1363 1364# There might be people who depend on the old broken behavior: `$host' 1365# used to hold the argument of --host etc. 1366# FIXME: To remove some day. 1367build=$build_alias 1368host=$host_alias 1369target=$target_alias 1370 1371# FIXME: To remove some day. 1372if test "x$host_alias" != x; then 1373 if test "x$build_alias" = x; then 1374 cross_compiling=maybe 1375 elif test "x$build_alias" != "x$host_alias"; then 1376 cross_compiling=yes 1377 fi 1378fi 1379 1380ac_tool_prefix= 1381test -n "$host_alias" && ac_tool_prefix=$host_alias- 1382 1383test "$silent" = yes && exec 6>/dev/null 1384 1385 1386ac_pwd=`pwd` && test -n "$ac_pwd" && 1387ac_ls_di=`ls -di .` && 1388ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1389 as_fn_error $? "working directory cannot be determined" 1390test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1391 as_fn_error $? "pwd does not report name of working directory" 1392 1393 1394# Find the source files, if location was not specified. 1395if test -z "$srcdir"; then 1396 ac_srcdir_defaulted=yes 1397 # Try the directory containing this script, then the parent directory. 1398 ac_confdir=`$as_dirname -- "$as_myself" || 1399$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1400 X"$as_myself" : 'X\(//\)[^/]' \| \ 1401 X"$as_myself" : 'X\(//\)$' \| \ 1402 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1403$as_echo X"$as_myself" | 1404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1405 s//\1/ 1406 q 1407 } 1408 /^X\(\/\/\)[^/].*/{ 1409 s//\1/ 1410 q 1411 } 1412 /^X\(\/\/\)$/{ 1413 s//\1/ 1414 q 1415 } 1416 /^X\(\/\).*/{ 1417 s//\1/ 1418 q 1419 } 1420 s/.*/./; q'` 1421 srcdir=$ac_confdir 1422 if test ! -r "$srcdir/$ac_unique_file"; then 1423 srcdir=.. 1424 fi 1425else 1426 ac_srcdir_defaulted=no 1427fi 1428if test ! -r "$srcdir/$ac_unique_file"; then 1429 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1430 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1431fi 1432ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1433ac_abs_confdir=`( 1434 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1435 pwd)` 1436# When building in place, set srcdir=. 1437if test "$ac_abs_confdir" = "$ac_pwd"; then 1438 srcdir=. 1439fi 1440# Remove unnecessary trailing slashes from srcdir. 1441# Double slashes in file names in object file debugging info 1442# mess up M-x gdb in Emacs. 1443case $srcdir in 1444*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1445esac 1446for ac_var in $ac_precious_vars; do 1447 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1448 eval ac_env_${ac_var}_value=\$${ac_var} 1449 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1450 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1451done 1452 1453# 1454# Report the --help message. 1455# 1456if test "$ac_init_help" = "long"; then 1457 # Omit some internal or obsolete options to make the list less imposing. 1458 # This message is too long to be a string in the A/UX 3.1 sh. 1459 cat <<_ACEOF 1460\`configure' configures fvwm 2.6.9 to adapt to many kinds of systems. 1461 1462Usage: $0 [OPTION]... [VAR=VALUE]... 1463 1464To assign environment variables (e.g., CC, CFLAGS...), specify them as 1465VAR=VALUE. See below for descriptions of some of the useful variables. 1466 1467Defaults for the options are specified in brackets. 1468 1469Configuration: 1470 -h, --help display this help and exit 1471 --help=short display options specific to this package 1472 --help=recursive display the short help of all the included packages 1473 -V, --version display version information and exit 1474 -q, --quiet, --silent do not print \`checking ...' messages 1475 --cache-file=FILE cache test results in FILE [disabled] 1476 -C, --config-cache alias for \`--cache-file=config.cache' 1477 -n, --no-create do not create output files 1478 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1479 1480Installation directories: 1481 --prefix=PREFIX install architecture-independent files in PREFIX 1482 [$ac_default_prefix] 1483 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1484 [PREFIX] 1485 1486By default, \`make install' will install all the files in 1487\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1488an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1489for instance \`--prefix=\$HOME'. 1490 1491For better control, use the options below. 1492 1493Fine tuning of the installation directories: 1494 --bindir=DIR user executables [EPREFIX/bin] 1495 --sbindir=DIR system admin executables [EPREFIX/sbin] 1496 --libexecdir=DIR program executables [EPREFIX/libexec] 1497 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1498 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1499 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1500 --libdir=DIR object code libraries [EPREFIX/lib] 1501 --includedir=DIR C header files [PREFIX/include] 1502 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1505 --infodir=DIR info documentation [DATAROOTDIR/info] 1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1507 --mandir=DIR man documentation [DATAROOTDIR/man] 1508 --docdir=DIR documentation root [DATAROOTDIR/doc/fvwm] 1509 --htmldir=DIR html documentation [DOCDIR] 1510 --dvidir=DIR dvi documentation [DOCDIR] 1511 --pdfdir=DIR pdf documentation [DOCDIR] 1512 --psdir=DIR ps documentation [DOCDIR] 1513_ACEOF 1514 1515 cat <<\_ACEOF 1516 1517Program names: 1518 --program-prefix=PREFIX prepend PREFIX to installed program names 1519 --program-suffix=SUFFIX append SUFFIX to installed program names 1520 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1521 1522X features: 1523 --x-includes=DIR X include files are in DIR 1524 --x-libraries=DIR X library files are in DIR 1525 1526System types: 1527 --build=BUILD configure for building on BUILD [guessed] 1528 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1529_ACEOF 1530fi 1531 1532if test -n "$ac_init_help"; then 1533 case $ac_init_help in 1534 short | recursive ) echo "Configuration of fvwm 2.6.9:";; 1535 esac 1536 cat <<\_ACEOF 1537 1538Optional Features: 1539 --disable-option-checking ignore unrecognized --enable/--with options 1540 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1541 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1542 --enable-silent-rules less verbose build output (undo: "make V=1") 1543 --disable-silent-rules verbose build output (undo: "make V=0") 1544 --disable-package-subdirs 1545 do not create subdirs for modules and data 1546 --enable-dmalloc enable support for the dmalloc debugging library 1547 --enable-efence enable support for the efence debugging library 1548 --enable-command-log enable command logging 1549 1550 --enable-debug-msgs enable debugging messages 1551 1552 --enable-dependency-tracking 1553 do not reject slow dependency extractors 1554 --disable-dependency-tracking 1555 speeds up one-time build 1556 --disable-mandoc disable generation of man pages 1557 --enable-htmldoc enable generation of HTML documentation 1558 --disable-sm disable session management support 1559 --disable-shape disable shaped window support 1560 --disable-shm disable MIT Shared Memory Extension 1561 --disable-xinerama disable Xinerama multi screen support 1562 --enable-xinerama-emulation 1563 enable Xinerama emulation on one screen (useful only 1564 for developers) 1565 1566 --disable-xrender disable Xrender alpha-blend rendering 1567 --disable-xcursor disable Xcursor ARGB/animated cursor loading 1568 --disable-xft disable Xft anti-aliased font rendering 1569 --disable-fontconfigtest 1570 do not try to compile and run a test fontconfig 1571 program 1572 --disable-xfttest do not try to compile and run a test Xft program 1573 --disable-png Disables libpng support. 1574 --disable-rsvg disable scalable vector graphics (SVG images) 1575 --disable-iconv disable support for iconv character conversion 1576 --disable-bidi disable bi-directional text support 1577 --disable-perllib disable installing fvwm perl library 1578 --disable-nls do not use Native Language Support 1579 --disable-imlibtest do not try to compile and run a test IMLIB program 1580 1581Optional Packages: 1582 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1583 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1584 --with-x use the X Window System 1585 --with-imagepath=PATH colon-delimited search path for images 1586 --with-pkgconfig-prefix=PFX 1587 prefix where pkg-config is installed 1588 --with-pkgconfig-exec-prefix=PFX 1589 exec prefix where pkg-config is installed 1590 --with-fontconfig-prefix=PFX 1591 prefix where fontconfig is installed (for Xft2) 1592 --with-fontconfig-exec-prefix=PFX 1593 exec prefix where fontconfig is installed 1594 --with-xft-prefix=PFX prefix where Xft2 is installed (optional) 1595 --with-xft-exec-prefix=PFX 1596 exec prefix where Xft2 is installed 1597 --with-xpm-library=PATH use xpm library (for coloured or shaped icons) 1598 --with-xpm-includes=DIR set directory for xpm headers 1599 --with-rplay-library=PATH 1600 use rplay library (adds audio capability) 1601 --with-rplay-includes=DIR 1602 set directory for rplay headers 1603 --with-stroke-library=PATH 1604 use stroke library (mouse strokes recognition) 1605 --with-stroke-includes=DIR 1606 set directory for stroke headers 1607 --with-termcap-library=PATH 1608 use termcap library (to accomplish readline) 1609 --with-readline-library=PATH 1610 use readline library (line editing/history) 1611 --with-readline-includes=DIR 1612 set directory for readline headers 1613 --with-ncurses-library=PATH 1614 use ncurses library (to accomplish readline) 1615 --with-iconv-library=PATH 1616 use iconv library (if not found sys iconv is used) 1617 --with-iconv-includes=DIR 1618 set directory for iconv headers 1619 --with-fribidi-bindir=DIR 1620 directory of fribidi-config if not in PATH 1621 --with-intl-library=PATH 1622 use intl library (for Native Language Support) 1623 --with-intl-includes=DIR 1624 set directory for intl headers 1625 --with-imlib-prefix=PFX prefix for IMLIB files (optional) 1626 --with-imlib-exec-prefix=PFX 1627 exec prefix for IMLIB files (optional) 1628 1629Some influential environment variables: 1630 XMKMF Path to xmkmf, Makefile generator for X Window System 1631 CC C compiler command 1632 CFLAGS C compiler flags 1633 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1634 nonstandard directory <lib dir> 1635 LIBS libraries to pass to the linker, e.g. -l<library> 1636 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1637 you have headers in a nonstandard directory <include dir> 1638 CPP C preprocessor 1639 PKG_CONFIG path to pkg-config utility 1640 PKG_CONFIG_PATH 1641 directories to add to pkg-config's search path 1642 PKG_CONFIG_LIBDIR 1643 path overriding pkg-config's built-in search path 1644 png_CFLAGS C compiler flags for png, overriding pkg-config 1645 png_LIBS linker flags for png, overriding pkg-config 1646 1647Use these variables to override the choices made by `configure' or to help 1648it to find libraries and programs with nonstandard names/locations. 1649 1650Report bugs to <fvwm-workers@fvwm.org>. 1651_ACEOF 1652ac_status=$? 1653fi 1654 1655if test "$ac_init_help" = "recursive"; then 1656 # If there are subdirs, report their specific --help. 1657 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1658 test -d "$ac_dir" || 1659 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1660 continue 1661 ac_builddir=. 1662 1663case "$ac_dir" in 1664.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1665*) 1666 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1667 # A ".." for each directory in $ac_dir_suffix. 1668 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1669 case $ac_top_builddir_sub in 1670 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1671 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1672 esac ;; 1673esac 1674ac_abs_top_builddir=$ac_pwd 1675ac_abs_builddir=$ac_pwd$ac_dir_suffix 1676# for backward compatibility: 1677ac_top_builddir=$ac_top_build_prefix 1678 1679case $srcdir in 1680 .) # We are building in place. 1681 ac_srcdir=. 1682 ac_top_srcdir=$ac_top_builddir_sub 1683 ac_abs_top_srcdir=$ac_pwd ;; 1684 [\\/]* | ?:[\\/]* ) # Absolute name. 1685 ac_srcdir=$srcdir$ac_dir_suffix; 1686 ac_top_srcdir=$srcdir 1687 ac_abs_top_srcdir=$srcdir ;; 1688 *) # Relative name. 1689 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1690 ac_top_srcdir=$ac_top_build_prefix$srcdir 1691 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1692esac 1693ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1694 1695 cd "$ac_dir" || { ac_status=$?; continue; } 1696 # Check for guested configure. 1697 if test -f "$ac_srcdir/configure.gnu"; then 1698 echo && 1699 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1700 elif test -f "$ac_srcdir/configure"; then 1701 echo && 1702 $SHELL "$ac_srcdir/configure" --help=recursive 1703 else 1704 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1705 fi || ac_status=$? 1706 cd "$ac_pwd" || { ac_status=$?; break; } 1707 done 1708fi 1709 1710test -n "$ac_init_help" && exit $ac_status 1711if $ac_init_version; then 1712 cat <<\_ACEOF 1713fvwm configure 2.6.9 1714generated by GNU Autoconf 2.69 1715 1716Copyright (C) 2012 Free Software Foundation, Inc. 1717This configure script is free software; the Free Software Foundation 1718gives unlimited permission to copy, distribute and modify it. 1719_ACEOF 1720 exit 1721fi 1722 1723## ------------------------ ## 1724## Autoconf initialization. ## 1725## ------------------------ ## 1726 1727# ac_fn_c_try_compile LINENO 1728# -------------------------- 1729# Try to compile conftest.$ac_ext, and return whether this succeeded. 1730ac_fn_c_try_compile () 1731{ 1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1733 rm -f conftest.$ac_objext 1734 if { { ac_try="$ac_compile" 1735case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740$as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_compile") 2>conftest.err 1742 ac_status=$? 1743 if test -s conftest.err; then 1744 grep -v '^ *+' conftest.err >conftest.er1 1745 cat conftest.er1 >&5 1746 mv -f conftest.er1 conftest.err 1747 fi 1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1749 test $ac_status = 0; } && { 1750 test -z "$ac_c_werror_flag" || 1751 test ! -s conftest.err 1752 } && test -s conftest.$ac_objext; then : 1753 ac_retval=0 1754else 1755 $as_echo "$as_me: failed program was:" >&5 1756sed 's/^/| /' conftest.$ac_ext >&5 1757 1758 ac_retval=1 1759fi 1760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1761 as_fn_set_status $ac_retval 1762 1763} # ac_fn_c_try_compile 1764 1765# ac_fn_c_try_cpp LINENO 1766# ---------------------- 1767# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1768ac_fn_c_try_cpp () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 if { { ac_try="$ac_cpp conftest.$ac_ext" 1772case "(($ac_try" in 1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1774 *) ac_try_echo=$ac_try;; 1775esac 1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1777$as_echo "$ac_try_echo"; } >&5 1778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1779 ac_status=$? 1780 if test -s conftest.err; then 1781 grep -v '^ *+' conftest.err >conftest.er1 1782 cat conftest.er1 >&5 1783 mv -f conftest.er1 conftest.err 1784 fi 1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1786 test $ac_status = 0; } > conftest.i && { 1787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1788 test ! -s conftest.err 1789 }; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: failed program was:" >&5 1793sed 's/^/| /' conftest.$ac_ext >&5 1794 1795 ac_retval=1 1796fi 1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1798 as_fn_set_status $ac_retval 1799 1800} # ac_fn_c_try_cpp 1801 1802# ac_fn_c_try_link LINENO 1803# ----------------------- 1804# Try to link conftest.$ac_ext, and return whether this succeeded. 1805ac_fn_c_try_link () 1806{ 1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1808 rm -f conftest.$ac_objext conftest$ac_exeext 1809 if { { ac_try="$ac_link" 1810case "(($ac_try" in 1811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1812 *) ac_try_echo=$ac_try;; 1813esac 1814eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1815$as_echo "$ac_try_echo"; } >&5 1816 (eval "$ac_link") 2>conftest.err 1817 ac_status=$? 1818 if test -s conftest.err; then 1819 grep -v '^ *+' conftest.err >conftest.er1 1820 cat conftest.er1 >&5 1821 mv -f conftest.er1 conftest.err 1822 fi 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { 1825 test -z "$ac_c_werror_flag" || 1826 test ! -s conftest.err 1827 } && test -s conftest$ac_exeext && { 1828 test "$cross_compiling" = yes || 1829 test -x conftest$ac_exeext 1830 }; then : 1831 ac_retval=0 1832else 1833 $as_echo "$as_me: failed program was:" >&5 1834sed 's/^/| /' conftest.$ac_ext >&5 1835 1836 ac_retval=1 1837fi 1838 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1839 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1840 # interfere with the next link command; also delete a directory that is 1841 # left behind by Apple's compiler. We do this before executing the actions. 1842 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1843 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1844 as_fn_set_status $ac_retval 1845 1846} # ac_fn_c_try_link 1847 1848# ac_fn_c_check_func LINENO FUNC VAR 1849# ---------------------------------- 1850# Tests whether FUNC exists, setting the cache variable VAR accordingly 1851ac_fn_c_check_func () 1852{ 1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1855$as_echo_n "checking for $2... " >&6; } 1856if eval \${$3+:} false; then : 1857 $as_echo_n "(cached) " >&6 1858else 1859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1860/* end confdefs.h. */ 1861/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1862 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1863#define $2 innocuous_$2 1864 1865/* System header to define __stub macros and hopefully few prototypes, 1866 which can conflict with char $2 (); below. 1867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1868 <limits.h> exists even on freestanding compilers. */ 1869 1870#ifdef __STDC__ 1871# include <limits.h> 1872#else 1873# include <assert.h> 1874#endif 1875 1876#undef $2 1877 1878/* Override any GCC internal prototype to avoid an error. 1879 Use char because int might match the return type of a GCC 1880 builtin and then its argument prototype would still apply. */ 1881#ifdef __cplusplus 1882extern "C" 1883#endif 1884char $2 (); 1885/* The GNU C library defines this for functions which it implements 1886 to always fail with ENOSYS. Some functions are actually named 1887 something starting with __ and the normal name is an alias. */ 1888#if defined __stub_$2 || defined __stub___$2 1889choke me 1890#endif 1891 1892int 1893main () 1894{ 1895return $2 (); 1896 ; 1897 return 0; 1898} 1899_ACEOF 1900if ac_fn_c_try_link "$LINENO"; then : 1901 eval "$3=yes" 1902else 1903 eval "$3=no" 1904fi 1905rm -f core conftest.err conftest.$ac_objext \ 1906 conftest$ac_exeext conftest.$ac_ext 1907fi 1908eval ac_res=\$$3 1909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1910$as_echo "$ac_res" >&6; } 1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1912 1913} # ac_fn_c_check_func 1914 1915# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1916# ------------------------------------------------------- 1917# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1918# the include files in INCLUDES and setting the cache variable VAR 1919# accordingly. 1920ac_fn_c_check_header_mongrel () 1921{ 1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1923 if eval \${$3+:} false; then : 1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1925$as_echo_n "checking for $2... " >&6; } 1926if eval \${$3+:} false; then : 1927 $as_echo_n "(cached) " >&6 1928fi 1929eval ac_res=\$$3 1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1931$as_echo "$ac_res" >&6; } 1932else 1933 # Is the header compilable? 1934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1935$as_echo_n "checking $2 usability... " >&6; } 1936cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1937/* end confdefs.h. */ 1938$4 1939#include <$2> 1940_ACEOF 1941if ac_fn_c_try_compile "$LINENO"; then : 1942 ac_header_compiler=yes 1943else 1944 ac_header_compiler=no 1945fi 1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1948$as_echo "$ac_header_compiler" >&6; } 1949 1950# Is the header present? 1951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1952$as_echo_n "checking $2 presence... " >&6; } 1953cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1954/* end confdefs.h. */ 1955#include <$2> 1956_ACEOF 1957if ac_fn_c_try_cpp "$LINENO"; then : 1958 ac_header_preproc=yes 1959else 1960 ac_header_preproc=no 1961fi 1962rm -f conftest.err conftest.i conftest.$ac_ext 1963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1964$as_echo "$ac_header_preproc" >&6; } 1965 1966# So? What about this header? 1967case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1968 yes:no: ) 1969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1970$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1972$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1973 ;; 1974 no:yes:* ) 1975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1976$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1978$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1980$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1982$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1984$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1985( $as_echo "## ------------------------------------ ## 1986## Report this to fvwm-workers@fvwm.org ## 1987## ------------------------------------ ##" 1988 ) | sed "s/^/$as_me: WARNING: /" >&2 1989 ;; 1990esac 1991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1992$as_echo_n "checking for $2... " >&6; } 1993if eval \${$3+:} false; then : 1994 $as_echo_n "(cached) " >&6 1995else 1996 eval "$3=\$ac_header_compiler" 1997fi 1998eval ac_res=\$$3 1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2000$as_echo "$ac_res" >&6; } 2001fi 2002 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2003 2004} # ac_fn_c_check_header_mongrel 2005 2006# ac_fn_c_try_run LINENO 2007# ---------------------- 2008# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2009# that executables *can* be run. 2010ac_fn_c_try_run () 2011{ 2012 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2013 if { { ac_try="$ac_link" 2014case "(($ac_try" in 2015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2016 *) ac_try_echo=$ac_try;; 2017esac 2018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2019$as_echo "$ac_try_echo"; } >&5 2020 (eval "$ac_link") 2>&5 2021 ac_status=$? 2022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2023 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2024 { { case "(($ac_try" in 2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2026 *) ac_try_echo=$ac_try;; 2027esac 2028eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2029$as_echo "$ac_try_echo"; } >&5 2030 (eval "$ac_try") 2>&5 2031 ac_status=$? 2032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2033 test $ac_status = 0; }; }; then : 2034 ac_retval=0 2035else 2036 $as_echo "$as_me: program exited with status $ac_status" >&5 2037 $as_echo "$as_me: failed program was:" >&5 2038sed 's/^/| /' conftest.$ac_ext >&5 2039 2040 ac_retval=$ac_status 2041fi 2042 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2043 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2044 as_fn_set_status $ac_retval 2045 2046} # ac_fn_c_try_run 2047 2048# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2049# ------------------------------------------------------- 2050# Tests whether HEADER exists and can be compiled using the include files in 2051# INCLUDES, setting the cache variable VAR accordingly. 2052ac_fn_c_check_header_compile () 2053{ 2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2056$as_echo_n "checking for $2... " >&6; } 2057if eval \${$3+:} false; then : 2058 $as_echo_n "(cached) " >&6 2059else 2060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2061/* end confdefs.h. */ 2062$4 2063#include <$2> 2064_ACEOF 2065if ac_fn_c_try_compile "$LINENO"; then : 2066 eval "$3=yes" 2067else 2068 eval "$3=no" 2069fi 2070rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2071fi 2072eval ac_res=\$$3 2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2074$as_echo "$ac_res" >&6; } 2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2076 2077} # ac_fn_c_check_header_compile 2078 2079# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2080# -------------------------------------------- 2081# Tries to find the compile-time value of EXPR in a program that includes 2082# INCLUDES, setting VAR accordingly. Returns whether the value could be 2083# computed 2084ac_fn_c_compute_int () 2085{ 2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2087 if test "$cross_compiling" = yes; then 2088 # Depending upon the size, compute the lo and hi bounds. 2089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2090/* end confdefs.h. */ 2091$4 2092int 2093main () 2094{ 2095static int test_array [1 - 2 * !(($2) >= 0)]; 2096test_array [0] = 0; 2097return test_array [0]; 2098 2099 ; 2100 return 0; 2101} 2102_ACEOF 2103if ac_fn_c_try_compile "$LINENO"; then : 2104 ac_lo=0 ac_mid=0 2105 while :; do 2106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2107/* end confdefs.h. */ 2108$4 2109int 2110main () 2111{ 2112static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2113test_array [0] = 0; 2114return test_array [0]; 2115 2116 ; 2117 return 0; 2118} 2119_ACEOF 2120if ac_fn_c_try_compile "$LINENO"; then : 2121 ac_hi=$ac_mid; break 2122else 2123 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2124 if test $ac_lo -le $ac_mid; then 2125 ac_lo= ac_hi= 2126 break 2127 fi 2128 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2129fi 2130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2131 done 2132else 2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2134/* end confdefs.h. */ 2135$4 2136int 2137main () 2138{ 2139static int test_array [1 - 2 * !(($2) < 0)]; 2140test_array [0] = 0; 2141return test_array [0]; 2142 2143 ; 2144 return 0; 2145} 2146_ACEOF 2147if ac_fn_c_try_compile "$LINENO"; then : 2148 ac_hi=-1 ac_mid=-1 2149 while :; do 2150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2151/* end confdefs.h. */ 2152$4 2153int 2154main () 2155{ 2156static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2157test_array [0] = 0; 2158return test_array [0]; 2159 2160 ; 2161 return 0; 2162} 2163_ACEOF 2164if ac_fn_c_try_compile "$LINENO"; then : 2165 ac_lo=$ac_mid; break 2166else 2167 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2168 if test $ac_mid -le $ac_hi; then 2169 ac_lo= ac_hi= 2170 break 2171 fi 2172 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2173fi 2174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2175 done 2176else 2177 ac_lo= ac_hi= 2178fi 2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2180fi 2181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2182# Binary search between lo and hi bounds. 2183while test "x$ac_lo" != "x$ac_hi"; do 2184 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186/* end confdefs.h. */ 2187$4 2188int 2189main () 2190{ 2191static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2192test_array [0] = 0; 2193return test_array [0]; 2194 2195 ; 2196 return 0; 2197} 2198_ACEOF 2199if ac_fn_c_try_compile "$LINENO"; then : 2200 ac_hi=$ac_mid 2201else 2202 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2203fi 2204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2205done 2206case $ac_lo in #(( 2207?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2208'') ac_retval=1 ;; 2209esac 2210 else 2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2212/* end confdefs.h. */ 2213$4 2214static long int longval () { return $2; } 2215static unsigned long int ulongval () { return $2; } 2216#include <stdio.h> 2217#include <stdlib.h> 2218int 2219main () 2220{ 2221 2222 FILE *f = fopen ("conftest.val", "w"); 2223 if (! f) 2224 return 1; 2225 if (($2) < 0) 2226 { 2227 long int i = longval (); 2228 if (i != ($2)) 2229 return 1; 2230 fprintf (f, "%ld", i); 2231 } 2232 else 2233 { 2234 unsigned long int i = ulongval (); 2235 if (i != ($2)) 2236 return 1; 2237 fprintf (f, "%lu", i); 2238 } 2239 /* Do not output a trailing newline, as this causes \r\n confusion 2240 on some platforms. */ 2241 return ferror (f) || fclose (f) != 0; 2242 2243 ; 2244 return 0; 2245} 2246_ACEOF 2247if ac_fn_c_try_run "$LINENO"; then : 2248 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2249else 2250 ac_retval=1 2251fi 2252rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2253 conftest.$ac_objext conftest.beam conftest.$ac_ext 2254rm -f conftest.val 2255 2256 fi 2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2258 as_fn_set_status $ac_retval 2259 2260} # ac_fn_c_compute_int 2261 2262# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2263# ------------------------------------------- 2264# Tests whether TYPE exists after having included INCLUDES, setting cache 2265# variable VAR accordingly. 2266ac_fn_c_check_type () 2267{ 2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2270$as_echo_n "checking for $2... " >&6; } 2271if eval \${$3+:} false; then : 2272 $as_echo_n "(cached) " >&6 2273else 2274 eval "$3=no" 2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2276/* end confdefs.h. */ 2277$4 2278int 2279main () 2280{ 2281if (sizeof ($2)) 2282 return 0; 2283 ; 2284 return 0; 2285} 2286_ACEOF 2287if ac_fn_c_try_compile "$LINENO"; then : 2288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2289/* end confdefs.h. */ 2290$4 2291int 2292main () 2293{ 2294if (sizeof (($2))) 2295 return 0; 2296 ; 2297 return 0; 2298} 2299_ACEOF 2300if ac_fn_c_try_compile "$LINENO"; then : 2301 2302else 2303 eval "$3=yes" 2304fi 2305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2306fi 2307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2308fi 2309eval ac_res=\$$3 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2311$as_echo "$ac_res" >&6; } 2312 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2313 2314} # ac_fn_c_check_type 2315 2316# ac_fn_c_find_intX_t LINENO BITS VAR 2317# ----------------------------------- 2318# Finds a signed integer type with width BITS, setting cache variable VAR 2319# accordingly. 2320ac_fn_c_find_intX_t () 2321{ 2322 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 2324$as_echo_n "checking for int$2_t... " >&6; } 2325if eval \${$3+:} false; then : 2326 $as_echo_n "(cached) " >&6 2327else 2328 eval "$3=no" 2329 # Order is important - never check a type that is potentially smaller 2330 # than half of the expected target width. 2331 for ac_type in int$2_t 'int' 'long int' \ 2332 'long long int' 'short int' 'signed char'; do 2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2334/* end confdefs.h. */ 2335$ac_includes_default 2336 enum { N = $2 / 2 - 1 }; 2337int 2338main () 2339{ 2340static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; 2341test_array [0] = 0; 2342return test_array [0]; 2343 2344 ; 2345 return 0; 2346} 2347_ACEOF 2348if ac_fn_c_try_compile "$LINENO"; then : 2349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2350/* end confdefs.h. */ 2351$ac_includes_default 2352 enum { N = $2 / 2 - 1 }; 2353int 2354main () 2355{ 2356static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) 2357 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; 2358test_array [0] = 0; 2359return test_array [0]; 2360 2361 ; 2362 return 0; 2363} 2364_ACEOF 2365if ac_fn_c_try_compile "$LINENO"; then : 2366 2367else 2368 case $ac_type in #( 2369 int$2_t) : 2370 eval "$3=yes" ;; #( 2371 *) : 2372 eval "$3=\$ac_type" ;; 2373esac 2374fi 2375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2376fi 2377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2378 if eval test \"x\$"$3"\" = x"no"; then : 2379 2380else 2381 break 2382fi 2383 done 2384fi 2385eval ac_res=\$$3 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2387$as_echo "$ac_res" >&6; } 2388 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2389 2390} # ac_fn_c_find_intX_t 2391 2392# ac_fn_c_find_uintX_t LINENO BITS VAR 2393# ------------------------------------ 2394# Finds an unsigned integer type with width BITS, setting cache variable VAR 2395# accordingly. 2396ac_fn_c_find_uintX_t () 2397{ 2398 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5 2400$as_echo_n "checking for uint$2_t... " >&6; } 2401if eval \${$3+:} false; then : 2402 $as_echo_n "(cached) " >&6 2403else 2404 eval "$3=no" 2405 # Order is important - never check a type that is potentially smaller 2406 # than half of the expected target width. 2407 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \ 2408 'unsigned long long int' 'unsigned short int' 'unsigned char'; do 2409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2410/* end confdefs.h. */ 2411$ac_includes_default 2412int 2413main () 2414{ 2415static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)]; 2416test_array [0] = 0; 2417return test_array [0]; 2418 2419 ; 2420 return 0; 2421} 2422_ACEOF 2423if ac_fn_c_try_compile "$LINENO"; then : 2424 case $ac_type in #( 2425 uint$2_t) : 2426 eval "$3=yes" ;; #( 2427 *) : 2428 eval "$3=\$ac_type" ;; 2429esac 2430fi 2431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2432 if eval test \"x\$"$3"\" = x"no"; then : 2433 2434else 2435 break 2436fi 2437 done 2438fi 2439eval ac_res=\$$3 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2441$as_echo "$ac_res" >&6; } 2442 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2443 2444} # ac_fn_c_find_uintX_t 2445cat >config.log <<_ACEOF 2446This file contains any messages produced by compilers while 2447running configure, to aid debugging if configure makes a mistake. 2448 2449It was created by fvwm $as_me 2.6.9, which was 2450generated by GNU Autoconf 2.69. Invocation command line was 2451 2452 $ $0 $@ 2453 2454_ACEOF 2455exec 5>>config.log 2456{ 2457cat <<_ASUNAME 2458## --------- ## 2459## Platform. ## 2460## --------- ## 2461 2462hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2463uname -m = `(uname -m) 2>/dev/null || echo unknown` 2464uname -r = `(uname -r) 2>/dev/null || echo unknown` 2465uname -s = `(uname -s) 2>/dev/null || echo unknown` 2466uname -v = `(uname -v) 2>/dev/null || echo unknown` 2467 2468/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2469/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2470 2471/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2472/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2473/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2474/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2475/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2476/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2477/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2478 2479_ASUNAME 2480 2481as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2482for as_dir in $PATH 2483do 2484 IFS=$as_save_IFS 2485 test -z "$as_dir" && as_dir=. 2486 $as_echo "PATH: $as_dir" 2487 done 2488IFS=$as_save_IFS 2489 2490} >&5 2491 2492cat >&5 <<_ACEOF 2493 2494 2495## ----------- ## 2496## Core tests. ## 2497## ----------- ## 2498 2499_ACEOF 2500 2501 2502# Keep a trace of the command line. 2503# Strip out --no-create and --no-recursion so they do not pile up. 2504# Strip out --silent because we don't want to record it for future runs. 2505# Also quote any args containing shell meta-characters. 2506# Make two passes to allow for proper duplicate-argument suppression. 2507ac_configure_args= 2508ac_configure_args0= 2509ac_configure_args1= 2510ac_must_keep_next=false 2511for ac_pass in 1 2 2512do 2513 for ac_arg 2514 do 2515 case $ac_arg in 2516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2518 | -silent | --silent | --silen | --sile | --sil) 2519 continue ;; 2520 *\'*) 2521 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2522 esac 2523 case $ac_pass in 2524 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2525 2) 2526 as_fn_append ac_configure_args1 " '$ac_arg'" 2527 if test $ac_must_keep_next = true; then 2528 ac_must_keep_next=false # Got value, back to normal. 2529 else 2530 case $ac_arg in 2531 *=* | --config-cache | -C | -disable-* | --disable-* \ 2532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2534 | -with-* | --with-* | -without-* | --without-* | --x) 2535 case "$ac_configure_args0 " in 2536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2537 esac 2538 ;; 2539 -* ) ac_must_keep_next=true ;; 2540 esac 2541 fi 2542 as_fn_append ac_configure_args " '$ac_arg'" 2543 ;; 2544 esac 2545 done 2546done 2547{ ac_configure_args0=; unset ac_configure_args0;} 2548{ ac_configure_args1=; unset ac_configure_args1;} 2549 2550# When interrupted or exit'd, cleanup temporary files, and complete 2551# config.log. We remove comments because anyway the quotes in there 2552# would cause problems or look ugly. 2553# WARNING: Use '\'' to represent an apostrophe within the trap. 2554# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2555trap 'exit_status=$? 2556 # Save into config.log some information that might help in debugging. 2557 { 2558 echo 2559 2560 $as_echo "## ---------------- ## 2561## Cache variables. ## 2562## ---------------- ##" 2563 echo 2564 # The following way of writing the cache mishandles newlines in values, 2565( 2566 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2567 eval ac_val=\$$ac_var 2568 case $ac_val in #( 2569 *${as_nl}*) 2570 case $ac_var in #( 2571 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2572$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2573 esac 2574 case $ac_var in #( 2575 _ | IFS | as_nl) ;; #( 2576 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2577 *) { eval $ac_var=; unset $ac_var;} ;; 2578 esac ;; 2579 esac 2580 done 2581 (set) 2>&1 | 2582 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2583 *${as_nl}ac_space=\ *) 2584 sed -n \ 2585 "s/'\''/'\''\\\\'\'''\''/g; 2586 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2587 ;; #( 2588 *) 2589 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2590 ;; 2591 esac | 2592 sort 2593) 2594 echo 2595 2596 $as_echo "## ----------------- ## 2597## Output variables. ## 2598## ----------------- ##" 2599 echo 2600 for ac_var in $ac_subst_vars 2601 do 2602 eval ac_val=\$$ac_var 2603 case $ac_val in 2604 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2605 esac 2606 $as_echo "$ac_var='\''$ac_val'\''" 2607 done | sort 2608 echo 2609 2610 if test -n "$ac_subst_files"; then 2611 $as_echo "## ------------------- ## 2612## File substitutions. ## 2613## ------------------- ##" 2614 echo 2615 for ac_var in $ac_subst_files 2616 do 2617 eval ac_val=\$$ac_var 2618 case $ac_val in 2619 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2620 esac 2621 $as_echo "$ac_var='\''$ac_val'\''" 2622 done | sort 2623 echo 2624 fi 2625 2626 if test -s confdefs.h; then 2627 $as_echo "## ----------- ## 2628## confdefs.h. ## 2629## ----------- ##" 2630 echo 2631 cat confdefs.h 2632 echo 2633 fi 2634 test "$ac_signal" != 0 && 2635 $as_echo "$as_me: caught signal $ac_signal" 2636 $as_echo "$as_me: exit $exit_status" 2637 } >&5 2638 rm -f core *.core core.conftest.* && 2639 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2640 exit $exit_status 2641' 0 2642for ac_signal in 1 2 13 15; do 2643 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2644done 2645ac_signal=0 2646 2647# confdefs.h avoids OS command line length limits that DEFS can exceed. 2648rm -f -r conftest* confdefs.h 2649 2650$as_echo "/* confdefs.h */" > confdefs.h 2651 2652# Predefined preprocessor variables. 2653 2654cat >>confdefs.h <<_ACEOF 2655#define PACKAGE_NAME "$PACKAGE_NAME" 2656_ACEOF 2657 2658cat >>confdefs.h <<_ACEOF 2659#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2660_ACEOF 2661 2662cat >>confdefs.h <<_ACEOF 2663#define PACKAGE_VERSION "$PACKAGE_VERSION" 2664_ACEOF 2665 2666cat >>confdefs.h <<_ACEOF 2667#define PACKAGE_STRING "$PACKAGE_STRING" 2668_ACEOF 2669 2670cat >>confdefs.h <<_ACEOF 2671#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2672_ACEOF 2673 2674cat >>confdefs.h <<_ACEOF 2675#define PACKAGE_URL "$PACKAGE_URL" 2676_ACEOF 2677 2678 2679# Let the site file select an alternate cache file if it wants to. 2680# Prefer an explicitly selected file to automatically selected ones. 2681ac_site_file1=NONE 2682ac_site_file2=NONE 2683if test -n "$CONFIG_SITE"; then 2684 # We do not want a PATH search for config.site. 2685 case $CONFIG_SITE in #(( 2686 -*) ac_site_file1=./$CONFIG_SITE;; 2687 */*) ac_site_file1=$CONFIG_SITE;; 2688 *) ac_site_file1=./$CONFIG_SITE;; 2689 esac 2690elif test "x$prefix" != xNONE; then 2691 ac_site_file1=$prefix/share/config.site 2692 ac_site_file2=$prefix/etc/config.site 2693else 2694 ac_site_file1=$ac_default_prefix/share/config.site 2695 ac_site_file2=$ac_default_prefix/etc/config.site 2696fi 2697for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2698do 2699 test "x$ac_site_file" = xNONE && continue 2700 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2702$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2703 sed 's/^/| /' "$ac_site_file" >&5 2704 . "$ac_site_file" \ 2705 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2707as_fn_error $? "failed to load site script $ac_site_file 2708See \`config.log' for more details" "$LINENO" 5; } 2709 fi 2710done 2711 2712if test -r "$cache_file"; then 2713 # Some versions of bash will fail to source /dev/null (special files 2714 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2715 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2716 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2717$as_echo "$as_me: loading cache $cache_file" >&6;} 2718 case $cache_file in 2719 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2720 *) . "./$cache_file";; 2721 esac 2722 fi 2723else 2724 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2725$as_echo "$as_me: creating cache $cache_file" >&6;} 2726 >$cache_file 2727fi 2728 2729# Check that the precious variables saved in the cache have kept the same 2730# value. 2731ac_cache_corrupted=false 2732for ac_var in $ac_precious_vars; do 2733 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2734 eval ac_new_set=\$ac_env_${ac_var}_set 2735 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2736 eval ac_new_val=\$ac_env_${ac_var}_value 2737 case $ac_old_set,$ac_new_set in 2738 set,) 2739 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2740$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2741 ac_cache_corrupted=: ;; 2742 ,set) 2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2744$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2745 ac_cache_corrupted=: ;; 2746 ,);; 2747 *) 2748 if test "x$ac_old_val" != "x$ac_new_val"; then 2749 # differences in whitespace do not lead to failure. 2750 ac_old_val_w=`echo x $ac_old_val` 2751 ac_new_val_w=`echo x $ac_new_val` 2752 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2754$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2755 ac_cache_corrupted=: 2756 else 2757 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2758$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2759 eval $ac_var=\$ac_old_val 2760 fi 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2762$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2763 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2764$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2765 fi;; 2766 esac 2767 # Pass precious variables to config.status. 2768 if test "$ac_new_set" = set; then 2769 case $ac_new_val in 2770 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2771 *) ac_arg=$ac_var=$ac_new_val ;; 2772 esac 2773 case " $ac_configure_args " in 2774 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2775 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2776 esac 2777 fi 2778done 2779if $ac_cache_corrupted; then 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2781$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2783$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2784 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2785fi 2786## -------------------- ## 2787## Main body of script. ## 2788## -------------------- ## 2789 2790ac_ext=c 2791ac_cpp='$CPP $CPPFLAGS' 2792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2794ac_compiler_gnu=$ac_cv_c_compiler_gnu 2795 2796 2797ac_aux_dir= 2798for ac_dir in etc "$srcdir"/etc; do 2799 if test -f "$ac_dir/install-sh"; then 2800 ac_aux_dir=$ac_dir 2801 ac_install_sh="$ac_aux_dir/install-sh -c" 2802 break 2803 elif test -f "$ac_dir/install.sh"; then 2804 ac_aux_dir=$ac_dir 2805 ac_install_sh="$ac_aux_dir/install.sh -c" 2806 break 2807 elif test -f "$ac_dir/shtool"; then 2808 ac_aux_dir=$ac_dir 2809 ac_install_sh="$ac_aux_dir/shtool install -c" 2810 break 2811 fi 2812done 2813if test -z "$ac_aux_dir"; then 2814 as_fn_error $? "cannot find install-sh, install.sh, or shtool in etc \"$srcdir\"/etc" "$LINENO" 5 2815fi 2816 2817# These three variables are undocumented and unsupported, 2818# and are intended to be withdrawn in a future Autoconf release. 2819# They can cause serious problems if a builder's source tree is in a directory 2820# whose full name contains unusual characters. 2821ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2822ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2823ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2824 2825 2826am__api_version='1.16' 2827 2828# Find a good install program. We prefer a C program (faster), 2829# so one script is as good as another. But avoid the broken or 2830# incompatible versions: 2831# SysV /etc/install, /usr/sbin/install 2832# SunOS /usr/etc/install 2833# IRIX /sbin/install 2834# AIX /bin/install 2835# AmigaOS /C/install, which installs bootblocks on floppy discs 2836# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2837# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2838# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2839# OS/2's system install, which has a completely different semantic 2840# ./install, which can be erroneously created by make from ./install.sh. 2841# Reject install programs that cannot install multiple files. 2842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2843$as_echo_n "checking for a BSD-compatible install... " >&6; } 2844if test -z "$INSTALL"; then 2845if ${ac_cv_path_install+:} false; then : 2846 $as_echo_n "(cached) " >&6 2847else 2848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2849for as_dir in $PATH 2850do 2851 IFS=$as_save_IFS 2852 test -z "$as_dir" && as_dir=. 2853 # Account for people who put trailing slashes in PATH elements. 2854case $as_dir/ in #(( 2855 ./ | .// | /[cC]/* | \ 2856 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2857 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2858 /usr/ucb/* ) ;; 2859 *) 2860 # OSF1 and SCO ODT 3.0 have their own names for install. 2861 # Don't use installbsd from OSF since it installs stuff as root 2862 # by default. 2863 for ac_prog in ginstall scoinst install; do 2864 for ac_exec_ext in '' $ac_executable_extensions; do 2865 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2866 if test $ac_prog = install && 2867 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2868 # AIX install. It has an incompatible calling convention. 2869 : 2870 elif test $ac_prog = install && 2871 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2872 # program-specific install script used by HP pwplus--don't use. 2873 : 2874 else 2875 rm -rf conftest.one conftest.two conftest.dir 2876 echo one > conftest.one 2877 echo two > conftest.two 2878 mkdir conftest.dir 2879 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2880 test -s conftest.one && test -s conftest.two && 2881 test -s conftest.dir/conftest.one && 2882 test -s conftest.dir/conftest.two 2883 then 2884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2885 break 3 2886 fi 2887 fi 2888 fi 2889 done 2890 done 2891 ;; 2892esac 2893 2894 done 2895IFS=$as_save_IFS 2896 2897rm -rf conftest.one conftest.two conftest.dir 2898 2899fi 2900 if test "${ac_cv_path_install+set}" = set; then 2901 INSTALL=$ac_cv_path_install 2902 else 2903 # As a last resort, use the slow shell script. Don't cache a 2904 # value for INSTALL within a source directory, because that will 2905 # break other packages using the cache if that directory is 2906 # removed, or if the value is a relative name. 2907 INSTALL=$ac_install_sh 2908 fi 2909fi 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2911$as_echo "$INSTALL" >&6; } 2912 2913# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2914# It thinks the first close brace ends the variable substitution. 2915test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2916 2917test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2918 2919test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2920 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2922$as_echo_n "checking whether build environment is sane... " >&6; } 2923# Reject unsafe characters in $srcdir or the absolute working directory 2924# name. Accept space and tab only in the latter. 2925am_lf=' 2926' 2927case `pwd` in 2928 *[\\\"\#\$\&\'\`$am_lf]*) 2929 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2930esac 2931case $srcdir in 2932 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2933 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2934esac 2935 2936# Do 'set' in a subshell so we don't clobber the current shell's 2937# arguments. Must try -L first in case configure is actually a 2938# symlink; some systems play weird games with the mod time of symlinks 2939# (eg FreeBSD returns the mod time of the symlink's containing 2940# directory). 2941if ( 2942 am_has_slept=no 2943 for am_try in 1 2; do 2944 echo "timestamp, slept: $am_has_slept" > conftest.file 2945 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2946 if test "$*" = "X"; then 2947 # -L didn't work. 2948 set X `ls -t "$srcdir/configure" conftest.file` 2949 fi 2950 if test "$*" != "X $srcdir/configure conftest.file" \ 2951 && test "$*" != "X conftest.file $srcdir/configure"; then 2952 2953 # If neither matched, then we have a broken ls. This can happen 2954 # if, for instance, CONFIG_SHELL is bash and it inherits a 2955 # broken ls alias from the environment. This has actually 2956 # happened. Such a system could not be considered "sane". 2957 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2958 alias in your environment" "$LINENO" 5 2959 fi 2960 if test "$2" = conftest.file || test $am_try -eq 2; then 2961 break 2962 fi 2963 # Just in case. 2964 sleep 1 2965 am_has_slept=yes 2966 done 2967 test "$2" = conftest.file 2968 ) 2969then 2970 # Ok. 2971 : 2972else 2973 as_fn_error $? "newly created file is older than distributed files! 2974Check your system clock" "$LINENO" 5 2975fi 2976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2977$as_echo "yes" >&6; } 2978# If we didn't sleep, we still need to ensure time stamps of config.status and 2979# generated files are strictly newer. 2980am_sleep_pid= 2981if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2982 ( sleep 1 ) & 2983 am_sleep_pid=$! 2984fi 2985 2986rm -f conftest.file 2987 2988test "$program_prefix" != NONE && 2989 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2990# Use a double $ so make ignores it. 2991test "$program_suffix" != NONE && 2992 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2993# Double any \ or $. 2994# By default was `s,x,x', remove it if useless. 2995ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2996program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2997 2998# Expand $ac_aux_dir to an absolute path. 2999am_aux_dir=`cd "$ac_aux_dir" && pwd` 3000 3001if test x"${MISSING+set}" != xset; then 3002 case $am_aux_dir in 3003 *\ * | *\ *) 3004 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3005 *) 3006 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3007 esac 3008fi 3009# Use eval to expand $SHELL 3010if eval "$MISSING --is-lightweight"; then 3011 am_missing_run="$MISSING " 3012else 3013 am_missing_run= 3014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3015$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3016fi 3017 3018if test x"${install_sh+set}" != xset; then 3019 case $am_aux_dir in 3020 *\ * | *\ *) 3021 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3022 *) 3023 install_sh="\${SHELL} $am_aux_dir/install-sh" 3024 esac 3025fi 3026 3027# Installed binaries are usually stripped using 'strip' when the user 3028# run "make install-strip". However 'strip' might not be the right 3029# tool to use in cross-compilation environments, therefore Automake 3030# will honor the 'STRIP' environment variable to overrule this program. 3031if test "$cross_compiling" != no; then 3032 if test -n "$ac_tool_prefix"; then 3033 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3034set dummy ${ac_tool_prefix}strip; ac_word=$2 3035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3036$as_echo_n "checking for $ac_word... " >&6; } 3037if ${ac_cv_prog_STRIP+:} false; then : 3038 $as_echo_n "(cached) " >&6 3039else 3040 if test -n "$STRIP"; then 3041 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3042else 3043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3044for as_dir in $PATH 3045do 3046 IFS=$as_save_IFS 3047 test -z "$as_dir" && as_dir=. 3048 for ac_exec_ext in '' $ac_executable_extensions; do 3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3050 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3052 break 2 3053 fi 3054done 3055 done 3056IFS=$as_save_IFS 3057 3058fi 3059fi 3060STRIP=$ac_cv_prog_STRIP 3061if test -n "$STRIP"; then 3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3063$as_echo "$STRIP" >&6; } 3064else 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3066$as_echo "no" >&6; } 3067fi 3068 3069 3070fi 3071if test -z "$ac_cv_prog_STRIP"; then 3072 ac_ct_STRIP=$STRIP 3073 # Extract the first word of "strip", so it can be a program name with args. 3074set dummy strip; ac_word=$2 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3076$as_echo_n "checking for $ac_word... " >&6; } 3077if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3078 $as_echo_n "(cached) " >&6 3079else 3080 if test -n "$ac_ct_STRIP"; then 3081 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3082else 3083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3084for as_dir in $PATH 3085do 3086 IFS=$as_save_IFS 3087 test -z "$as_dir" && as_dir=. 3088 for ac_exec_ext in '' $ac_executable_extensions; do 3089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3090 ac_cv_prog_ac_ct_STRIP="strip" 3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3092 break 2 3093 fi 3094done 3095 done 3096IFS=$as_save_IFS 3097 3098fi 3099fi 3100ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3101if test -n "$ac_ct_STRIP"; then 3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3103$as_echo "$ac_ct_STRIP" >&6; } 3104else 3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3106$as_echo "no" >&6; } 3107fi 3108 3109 if test "x$ac_ct_STRIP" = x; then 3110 STRIP=":" 3111 else 3112 case $cross_compiling:$ac_tool_warned in 3113yes:) 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3115$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3116ac_tool_warned=yes ;; 3117esac 3118 STRIP=$ac_ct_STRIP 3119 fi 3120else 3121 STRIP="$ac_cv_prog_STRIP" 3122fi 3123 3124fi 3125INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3126 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3128$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3129if test -z "$MKDIR_P"; then 3130 if ${ac_cv_path_mkdir+:} false; then : 3131 $as_echo_n "(cached) " >&6 3132else 3133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3134for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3135do 3136 IFS=$as_save_IFS 3137 test -z "$as_dir" && as_dir=. 3138 for ac_prog in mkdir gmkdir; do 3139 for ac_exec_ext in '' $ac_executable_extensions; do 3140 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3141 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3142 'mkdir (GNU coreutils) '* | \ 3143 'mkdir (coreutils) '* | \ 3144 'mkdir (fileutils) '4.1*) 3145 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3146 break 3;; 3147 esac 3148 done 3149 done 3150 done 3151IFS=$as_save_IFS 3152 3153fi 3154 3155 test -d ./--version && rmdir ./--version 3156 if test "${ac_cv_path_mkdir+set}" = set; then 3157 MKDIR_P="$ac_cv_path_mkdir -p" 3158 else 3159 # As a last resort, use the slow shell script. Don't cache a 3160 # value for MKDIR_P within a source directory, because that will 3161 # break other packages using the cache if that directory is 3162 # removed, or if the value is a relative name. 3163 MKDIR_P="$ac_install_sh -d" 3164 fi 3165fi 3166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3167$as_echo "$MKDIR_P" >&6; } 3168 3169for ac_prog in gawk mawk nawk awk 3170do 3171 # Extract the first word of "$ac_prog", so it can be a program name with args. 3172set dummy $ac_prog; ac_word=$2 3173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3174$as_echo_n "checking for $ac_word... " >&6; } 3175if ${ac_cv_prog_AWK+:} false; then : 3176 $as_echo_n "(cached) " >&6 3177else 3178 if test -n "$AWK"; then 3179 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3180else 3181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3182for as_dir in $PATH 3183do 3184 IFS=$as_save_IFS 3185 test -z "$as_dir" && as_dir=. 3186 for ac_exec_ext in '' $ac_executable_extensions; do 3187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3188 ac_cv_prog_AWK="$ac_prog" 3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3190 break 2 3191 fi 3192done 3193 done 3194IFS=$as_save_IFS 3195 3196fi 3197fi 3198AWK=$ac_cv_prog_AWK 3199if test -n "$AWK"; then 3200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3201$as_echo "$AWK" >&6; } 3202else 3203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3204$as_echo "no" >&6; } 3205fi 3206 3207 3208 test -n "$AWK" && break 3209done 3210 3211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3212$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3213set x ${MAKE-make} 3214ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3215if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3216 $as_echo_n "(cached) " >&6 3217else 3218 cat >conftest.make <<\_ACEOF 3219SHELL = /bin/sh 3220all: 3221 @echo '@@@%%%=$(MAKE)=@@@%%%' 3222_ACEOF 3223# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3224case `${MAKE-make} -f conftest.make 2>/dev/null` in 3225 *@@@%%%=?*=@@@%%%*) 3226 eval ac_cv_prog_make_${ac_make}_set=yes;; 3227 *) 3228 eval ac_cv_prog_make_${ac_make}_set=no;; 3229esac 3230rm -f conftest.make 3231fi 3232if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3234$as_echo "yes" >&6; } 3235 SET_MAKE= 3236else 3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3238$as_echo "no" >&6; } 3239 SET_MAKE="MAKE=${MAKE-make}" 3240fi 3241 3242rm -rf .tst 2>/dev/null 3243mkdir .tst 2>/dev/null 3244if test -d .tst; then 3245 am__leading_dot=. 3246else 3247 am__leading_dot=_ 3248fi 3249rmdir .tst 2>/dev/null 3250 3251# Check whether --enable-silent-rules was given. 3252if test "${enable_silent_rules+set}" = set; then : 3253 enableval=$enable_silent_rules; 3254fi 3255 3256case $enable_silent_rules in # ((( 3257 yes) AM_DEFAULT_VERBOSITY=0;; 3258 no) AM_DEFAULT_VERBOSITY=1;; 3259 *) AM_DEFAULT_VERBOSITY=1;; 3260esac 3261am_make=${MAKE-make} 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3263$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3264if ${am_cv_make_support_nested_variables+:} false; then : 3265 $as_echo_n "(cached) " >&6 3266else 3267 if $as_echo 'TRUE=$(BAR$(V)) 3268BAR0=false 3269BAR1=true 3270V=1 3271am__doit: 3272 @$(TRUE) 3273.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3274 am_cv_make_support_nested_variables=yes 3275else 3276 am_cv_make_support_nested_variables=no 3277fi 3278fi 3279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3280$as_echo "$am_cv_make_support_nested_variables" >&6; } 3281if test $am_cv_make_support_nested_variables = yes; then 3282 AM_V='$(V)' 3283 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3284else 3285 AM_V=$AM_DEFAULT_VERBOSITY 3286 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3287fi 3288AM_BACKSLASH='\' 3289 3290if test "`cd $srcdir && pwd`" != "`pwd`"; then 3291 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3292 # is not polluted with repeated "-I." 3293 am__isrc=' -I$(srcdir)' 3294 # test to see if srcdir already configured 3295 if test -f $srcdir/config.status; then 3296 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3297 fi 3298fi 3299 3300# test whether we have cygpath 3301if test -z "$CYGPATH_W"; then 3302 if (cygpath --version) >/dev/null 2>/dev/null; then 3303 CYGPATH_W='cygpath -w' 3304 else 3305 CYGPATH_W=echo 3306 fi 3307fi 3308 3309 3310# Define the identity of the package. 3311 PACKAGE='fvwm' 3312 VERSION='2.6.9' 3313 3314 3315cat >>confdefs.h <<_ACEOF 3316#define PACKAGE "$PACKAGE" 3317_ACEOF 3318 3319 3320cat >>confdefs.h <<_ACEOF 3321#define VERSION "$VERSION" 3322_ACEOF 3323 3324# Some tools Automake needs. 3325 3326ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3327 3328 3329AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3330 3331 3332AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3333 3334 3335AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3336 3337 3338MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3339 3340# For better backward compatibility. To be removed once Automake 1.9.x 3341# dies out for good. For more background, see: 3342# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3343# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3344mkdir_p='$(MKDIR_P)' 3345 3346# We need awk for the "check" target (and possibly the TAP driver). The 3347# system "awk" is bad on some platforms. 3348# Always define AMTAR for backward compatibility. Yes, it's still used 3349# in the wild :-( We should find a proper way to deprecate it ... 3350AMTAR='$${TAR-tar}' 3351 3352 3353# We'll loop over all known methods to create a tar archive until one works. 3354_am_tools='gnutar pax cpio none' 3355 3356am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3357 3358 3359 3360 3361 3362 3363# POSIX will say in a future version that running "rm -f" with no argument 3364# is OK; and we want to be able to make that assumption in our Makefile 3365# recipes. So use an aggressive probe to check that the usage we want is 3366# actually supported "in the wild" to an acceptable degree. 3367# See automake bug#10828. 3368# To make any issue more visible, cause the running configure to be aborted 3369# by default if the 'rm' program in use doesn't match our expectations; the 3370# user can still override this though. 3371if rm -f && rm -fr && rm -rf; then : OK; else 3372 cat >&2 <<'END' 3373Oops! 3374 3375Your 'rm' program seems unable to run without file operands specified 3376on the command line, even when the '-f' option is present. This is contrary 3377to the behaviour of most rm programs out there, and not conforming with 3378the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3379 3380Please tell bug-automake@gnu.org about your system, including the value 3381of your $PATH and any error possibly output before this message. This 3382can help us improve future automake versions. 3383 3384END 3385 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3386 echo 'Configuration will proceed anyway, since you have set the' >&2 3387 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3388 echo >&2 3389 else 3390 cat >&2 <<'END' 3391Aborting the configuration process, to ensure you take notice of the issue. 3392 3393You can download and install GNU coreutils to get an 'rm' implementation 3394that behaves properly: <https://www.gnu.org/software/coreutils/>. 3395 3396If you want to complete the configuration process using your problematic 3397'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3398to "yes", and re-run configure. 3399 3400END 3401 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3402 fi 3403fi 3404 3405# Check whether --enable-silent-rules was given. 3406if test "${enable_silent_rules+set}" = set; then : 3407 enableval=$enable_silent_rules; 3408fi 3409 3410case $enable_silent_rules in # ((( 3411 yes) AM_DEFAULT_VERBOSITY=0;; 3412 no) AM_DEFAULT_VERBOSITY=1;; 3413 *) AM_DEFAULT_VERBOSITY=0;; 3414esac 3415am_make=${MAKE-make} 3416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3417$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3418if ${am_cv_make_support_nested_variables+:} false; then : 3419 $as_echo_n "(cached) " >&6 3420else 3421 if $as_echo 'TRUE=$(BAR$(V)) 3422BAR0=false 3423BAR1=true 3424V=1 3425am__doit: 3426 @$(TRUE) 3427.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3428 am_cv_make_support_nested_variables=yes 3429else 3430 am_cv_make_support_nested_variables=no 3431fi 3432fi 3433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3434$as_echo "$am_cv_make_support_nested_variables" >&6; } 3435if test $am_cv_make_support_nested_variables = yes; then 3436 AM_V='$(V)' 3437 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3438else 3439 AM_V=$AM_DEFAULT_VERBOSITY 3440 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3441fi 3442AM_BACKSLASH='\' 3443 3444ac_config_headers="$ac_config_headers config.h" 3445 3446 3447VERSIONINFO="" 3448 3449RELDATELONG="05 September 2019" 3450RELDATESHORT="05-Sep-2019" 3451RELDATENUM="2019-10-05" 3452 3453# constant variable settings 3454FVWMNAMELONG="F? Virtual Window Manager" 3455FVWMHOMEPAGE="http://fvwm.org/" 3456FVWMFTP="ftp.fvwm.org" 3457FVWMFTPDIR="/pub/ftp" 3458FVWMALTFTP="metalab.unc.edu" 3459FVWMALTFTPDIR="/pub/Linux/X11/window-managers/" 3460FVWMLIST="fvwm@fvwm.org" 3461FVWMWORKERSLIST="fvwm-workers@fvwm.org" 3462FVWMWORKERSLISTLONG="fvwm workers list <fvwm-workers@fvwm.org>" 3463MANPAGE_PREAMBLE='.\" WARNING: This file was automatically generated. Edit the .in file instead.' 3464 3465 3466 3467cat >>confdefs.h <<_ACEOF 3468#define VERSIONINFO "$VERSIONINFO" 3469_ACEOF 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486# check for programs needed to build html docs 3487# Extract the first word of "sed", so it can be a program name with args. 3488set dummy sed; ac_word=$2 3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3490$as_echo_n "checking for $ac_word... " >&6; } 3491if ${ac_cv_prog_SED+:} false; then : 3492 $as_echo_n "(cached) " >&6 3493else 3494 if test -n "$SED"; then 3495 ac_cv_prog_SED="$SED" # Let the user override the test. 3496else 3497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3498for as_dir in $PATH 3499do 3500 IFS=$as_save_IFS 3501 test -z "$as_dir" && as_dir=. 3502 for ac_exec_ext in '' $ac_executable_extensions; do 3503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3504 ac_cv_prog_SED="sed" 3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3506 break 2 3507 fi 3508done 3509 done 3510IFS=$as_save_IFS 3511 3512 test -z "$ac_cv_prog_SED" && ac_cv_prog_SED="""" 3513fi 3514fi 3515SED=$ac_cv_prog_SED 3516if test -n "$SED"; then 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 3518$as_echo "$SED" >&6; } 3519else 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3521$as_echo "no" >&6; } 3522fi 3523 3524 3525 3526 3527# optional python: 3528PYTHON= 3529REQUIRED_PYTHON_VERSION=3.0 3530 3531# Extract the first word of "python3", so it can be a program name with args. 3532set dummy python3; ac_word=$2 3533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3534$as_echo_n "checking for $ac_word... " >&6; } 3535if ${ac_cv_path_PYTHON+:} false; then : 3536 $as_echo_n "(cached) " >&6 3537else 3538 case $PYTHON in 3539 [\\/]* | ?:[\\/]*) 3540 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path. 3541 ;; 3542 *) 3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3544for as_dir in $PATH 3545do 3546 IFS=$as_save_IFS 3547 test -z "$as_dir" && as_dir=. 3548 for ac_exec_ext in '' $ac_executable_extensions; do 3549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3550 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext" 3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3552 break 2 3553 fi 3554done 3555 done 3556IFS=$as_save_IFS 3557 3558 test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON=":" 3559 ;; 3560esac 3561fi 3562PYTHON=$ac_cv_path_PYTHON 3563if test -n "$PYTHON"; then 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 3565$as_echo "$PYTHON" >&6; } 3566else 3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3568$as_echo "no" >&6; } 3569fi 3570 3571 3572if test "$PYTHON" != ":"; then : 3573 prog="import sys 3574# split strings by '.' and convert to numeric. Append some zeros 3575# because we need at least 4 digits for the hex conversion. 3576# map returns an iterator in Python 3.0 and a list in 2.x 3577minver = list(map(int, '$REQUIRED_PYTHON_VERSION'.split('.'))) + [0, 0, 0] 3578minverhex = 0 3579# xrange is not present in Python 3.0 and range returns an iterator 3580for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i] 3581sys.exit(sys.hexversion < minverhex)" 3582 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5 3583 ($PYTHON -c "$prog") >&5 2>&5 3584 ac_status=$? 3585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3586 (exit $ac_status); }; then : 3587 : 3588else 3589 PYTHON=":" 3590fi 3591fi 3592#!!! 3593PERL="" 3594REQUIRED_PERL_VERSION=5.004 3595 3596if test x"$PERL" = x; then 3597 # Extract the first word of "perl", so it can be a program name with args. 3598set dummy perl; ac_word=$2 3599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3600$as_echo_n "checking for $ac_word... " >&6; } 3601if ${ac_cv_path_PERL+:} false; then : 3602 $as_echo_n "(cached) " >&6 3603else 3604 case $PERL in 3605 [\\/]* | ?:[\\/]*) 3606 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 3607 ;; 3608 *) 3609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3610for as_dir in $PATH 3611do 3612 IFS=$as_save_IFS 3613 test -z "$as_dir" && as_dir=. 3614 for ac_exec_ext in '' $ac_executable_extensions; do 3615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3616 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 3617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3618 break 2 3619 fi 3620done 3621 done 3622IFS=$as_save_IFS 3623 3624 ;; 3625esac 3626fi 3627PERL=$ac_cv_path_PERL 3628if test -n "$PERL"; then 3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 3630$as_echo "$PERL" >&6; } 3631else 3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3633$as_echo "no" >&6; } 3634fi 3635 3636 3637fi 3638if test ! x"$PERL" = x; then 3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl $REQUIRED_PERL_VERSION or better" >&5 3640$as_echo_n "checking for perl $REQUIRED_PERL_VERSION or better... " >&6; } 3641 HAVE_PERL_FOR_DOCS=1 3642 if ("$PERL" -e "require $REQUIRED_PERL_VERSION;") 2>/dev/null; then 3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3644$as_echo "yes" >&6; } 3645 else 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3647$as_echo "no" >&6; } 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $PERL not found or too old" >&5 3649$as_echo "$as_me: WARNING: $PERL not found or too old" >&2;} 3650 fi 3651else 3652 HAVE_PERL_FOR_DOCS=0 3653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: perl is not found, it is required for some scripts and modules" >&5 3654$as_echo "$as_me: WARNING: perl is not found, it is required for some scripts and modules" >&2;} 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It is recommended to install perl $REQUIRED_PERL_VERSION or better later" >&5 3656$as_echo "$as_me: WARNING: It is recommended to install perl $REQUIRED_PERL_VERSION or better later" >&2;} 3657 PERL=/usr/bin/perl 3658fi 3659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming $PERL as perl location" >&5 3660$as_echo "assuming $PERL as perl location" >&6; } 3661 3662 3663# installation paths 3664transform=`echo "${program_transform_name}" | "$SED" -e 's/\\$\\$/\\$/'` 3665PPACKAGE=`echo "${PACKAGE}" | "$SED" -e "${transform}"` 3666FVWM_MODULESUBDIR=/${PPACKAGE}/${VERSION} 3667FVWM_DATASUBDIR=/${PPACKAGE} 3668FVWM_DOCSUBDIR=/doc/${PPACKAGE} 3669 3670# Check whether --enable-package-subdirs was given. 3671if test "${enable_package_subdirs+set}" = set; then : 3672 enableval=$enable_package_subdirs; if test x"$enableval" = xno; then FVWM_MODULESUBDIR=""; FVWM_DATASUBDIR=""; 3673 fi 3674fi 3675 3676 3677 3678FVWM_MODULEDIR='${libexecdir}'"$FVWM_MODULESUBDIR" 3679FVWM_DATADIR='${datadir}'"$FVWM_DATASUBDIR" 3680FVWM_DOCDIR='${datadir}'"$FVWM_DOCSUBDIR" 3681FVWM_PERLLIBDIR='${datadir}'"$FVWM_DATASUBDIR/perllib" 3682FVWM_CONFDIR='${sysconfdir}' 3683 3684 3685 3686 3687 3688 3689 3690$as_echo "#define FVWM_CONFIG \"config\"" >>confdefs.h 3691 3692 3693 3694$as_echo "#define FVWM2RC \".fvwm2rc\"" >>confdefs.h 3695 3696 3697# Various configure-time options 3698 3699# Check whether --enable-dmalloc was given. 3700if test "${enable_dmalloc+set}" = set; then : 3701 enableval=$enable_dmalloc; ac_cv_dmalloc="$enableval" 3702else 3703 ac_cv_dmalloc="no" 3704fi 3705 3706 3707# Check whether --enable-efence was given. 3708if test "${enable_efence+set}" = set; then : 3709 enableval=$enable_efence; ac_cv_efence="$enableval" 3710else 3711 ac_cv_efence="no" 3712fi 3713 3714 3715 3716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable command logging" >&5 3717$as_echo_n "checking whether to enable command logging... " >&6; } 3718 # Check whether --enable-command-log was given. 3719if test "${enable_command_log+set}" = set; then : 3720 enableval=$enable_command_log; 3721 3722 if test "$enableval" = yes; then 3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3724$as_echo "yes" >&6; } 3725 $as_echo "#define FVWM_COMMAND_LOG 1" >>confdefs.h 3726 3727 else 3728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3729$as_echo "no" >&6; } 3730 3731 fi 3732else 3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3734$as_echo "no" >&6; } 3735 3736 3737fi 3738 3739 3740 3741 3742 3743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging messages" >&5 3744$as_echo_n "checking whether to enable debugging messages... " >&6; } 3745 # Check whether --enable-debug-msgs was given. 3746if test "${enable_debug_msgs+set}" = set; then : 3747 enableval=$enable_debug_msgs; 3748 3749 if test "$enableval" = yes; then 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3751$as_echo "yes" >&6; } 3752 $as_echo "#define FVWM_DEBUG_MSGS 1" >>confdefs.h 3753 3754 else 3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3756$as_echo "no" >&6; } 3757 3758 fi 3759else 3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3761$as_echo "no" >&6; } 3762 3763 3764fi 3765 3766 3767 3768 3769 3770# Need to know where X is, for finding some libraries (e.g. xpm) 3771no_x="" 3772DEPDIR="${am__leading_dot}deps" 3773 3774ac_config_commands="$ac_config_commands depfiles" 3775 3776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 3777$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 3778cat > confinc.mk << 'END' 3779am__doit: 3780 @echo this is the am__doit target >confinc.out 3781.PHONY: am__doit 3782END 3783am__include="#" 3784am__quote= 3785# BSD make does it like this. 3786echo '.include "confinc.mk" # ignored' > confmf.BSD 3787# Other make implementations (GNU, Solaris 10, AIX) do it like this. 3788echo 'include confinc.mk # ignored' > confmf.GNU 3789_am_result=no 3790for s in GNU BSD; do 3791 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 3792 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 3793 ac_status=$? 3794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3795 (exit $ac_status); } 3796 case $?:`cat confinc.out 2>/dev/null` in #( 3797 '0:this is the am__doit target') : 3798 case $s in #( 3799 BSD) : 3800 am__include='.include' am__quote='"' ;; #( 3801 *) : 3802 am__include='include' am__quote='' ;; 3803esac ;; #( 3804 *) : 3805 ;; 3806esac 3807 if test "$am__include" != "#"; then 3808 _am_result="yes ($s style)" 3809 break 3810 fi 3811done 3812rm -f confinc.* confmf.* 3813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 3814$as_echo "${_am_result}" >&6; } 3815 3816# Check whether --enable-dependency-tracking was given. 3817if test "${enable_dependency_tracking+set}" = set; then : 3818 enableval=$enable_dependency_tracking; 3819fi 3820 3821if test "x$enable_dependency_tracking" != xno; then 3822 am_depcomp="$ac_aux_dir/depcomp" 3823 AMDEPBACKSLASH='\' 3824 am__nodep='_no' 3825fi 3826 if test "x$enable_dependency_tracking" != xno; then 3827 AMDEP_TRUE= 3828 AMDEP_FALSE='#' 3829else 3830 AMDEP_TRUE='#' 3831 AMDEP_FALSE= 3832fi 3833 3834 3835ac_ext=c 3836ac_cpp='$CPP $CPPFLAGS' 3837ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3838ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3839ac_compiler_gnu=$ac_cv_c_compiler_gnu 3840if test -n "$ac_tool_prefix"; then 3841 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3842set dummy ${ac_tool_prefix}gcc; ac_word=$2 3843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3844$as_echo_n "checking for $ac_word... " >&6; } 3845if ${ac_cv_prog_CC+:} false; then : 3846 $as_echo_n "(cached) " >&6 3847else 3848 if test -n "$CC"; then 3849 ac_cv_prog_CC="$CC" # Let the user override the test. 3850else 3851as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3852for as_dir in $PATH 3853do 3854 IFS=$as_save_IFS 3855 test -z "$as_dir" && as_dir=. 3856 for ac_exec_ext in '' $ac_executable_extensions; do 3857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3858 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3860 break 2 3861 fi 3862done 3863 done 3864IFS=$as_save_IFS 3865 3866fi 3867fi 3868CC=$ac_cv_prog_CC 3869if test -n "$CC"; then 3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3871$as_echo "$CC" >&6; } 3872else 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3874$as_echo "no" >&6; } 3875fi 3876 3877 3878fi 3879if test -z "$ac_cv_prog_CC"; then 3880 ac_ct_CC=$CC 3881 # Extract the first word of "gcc", so it can be a program name with args. 3882set dummy gcc; ac_word=$2 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3884$as_echo_n "checking for $ac_word... " >&6; } 3885if ${ac_cv_prog_ac_ct_CC+:} false; then : 3886 $as_echo_n "(cached) " >&6 3887else 3888 if test -n "$ac_ct_CC"; then 3889 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3890else 3891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3892for as_dir in $PATH 3893do 3894 IFS=$as_save_IFS 3895 test -z "$as_dir" && as_dir=. 3896 for ac_exec_ext in '' $ac_executable_extensions; do 3897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3898 ac_cv_prog_ac_ct_CC="gcc" 3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3900 break 2 3901 fi 3902done 3903 done 3904IFS=$as_save_IFS 3905 3906fi 3907fi 3908ac_ct_CC=$ac_cv_prog_ac_ct_CC 3909if test -n "$ac_ct_CC"; then 3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3911$as_echo "$ac_ct_CC" >&6; } 3912else 3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3914$as_echo "no" >&6; } 3915fi 3916 3917 if test "x$ac_ct_CC" = x; then 3918 CC="" 3919 else 3920 case $cross_compiling:$ac_tool_warned in 3921yes:) 3922{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3923$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3924ac_tool_warned=yes ;; 3925esac 3926 CC=$ac_ct_CC 3927 fi 3928else 3929 CC="$ac_cv_prog_CC" 3930fi 3931 3932if test -z "$CC"; then 3933 if test -n "$ac_tool_prefix"; then 3934 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3935set dummy ${ac_tool_prefix}cc; ac_word=$2 3936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3937$as_echo_n "checking for $ac_word... " >&6; } 3938if ${ac_cv_prog_CC+:} false; then : 3939 $as_echo_n "(cached) " >&6 3940else 3941 if test -n "$CC"; then 3942 ac_cv_prog_CC="$CC" # Let the user override the test. 3943else 3944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3945for as_dir in $PATH 3946do 3947 IFS=$as_save_IFS 3948 test -z "$as_dir" && as_dir=. 3949 for ac_exec_ext in '' $ac_executable_extensions; do 3950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3951 ac_cv_prog_CC="${ac_tool_prefix}cc" 3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3953 break 2 3954 fi 3955done 3956 done 3957IFS=$as_save_IFS 3958 3959fi 3960fi 3961CC=$ac_cv_prog_CC 3962if test -n "$CC"; then 3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3964$as_echo "$CC" >&6; } 3965else 3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3967$as_echo "no" >&6; } 3968fi 3969 3970 3971 fi 3972fi 3973if test -z "$CC"; then 3974 # Extract the first word of "cc", so it can be a program name with args. 3975set dummy cc; ac_word=$2 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3977$as_echo_n "checking for $ac_word... " >&6; } 3978if ${ac_cv_prog_CC+:} false; then : 3979 $as_echo_n "(cached) " >&6 3980else 3981 if test -n "$CC"; then 3982 ac_cv_prog_CC="$CC" # Let the user override the test. 3983else 3984 ac_prog_rejected=no 3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3986for as_dir in $PATH 3987do 3988 IFS=$as_save_IFS 3989 test -z "$as_dir" && as_dir=. 3990 for ac_exec_ext in '' $ac_executable_extensions; do 3991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3992 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3993 ac_prog_rejected=yes 3994 continue 3995 fi 3996 ac_cv_prog_CC="cc" 3997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3998 break 2 3999 fi 4000done 4001 done 4002IFS=$as_save_IFS 4003 4004if test $ac_prog_rejected = yes; then 4005 # We found a bogon in the path, so make sure we never use it. 4006 set dummy $ac_cv_prog_CC 4007 shift 4008 if test $# != 0; then 4009 # We chose a different compiler from the bogus one. 4010 # However, it has the same basename, so the bogon will be chosen 4011 # first if we set CC to just the basename; use the full file name. 4012 shift 4013 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4014 fi 4015fi 4016fi 4017fi 4018CC=$ac_cv_prog_CC 4019if test -n "$CC"; then 4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4021$as_echo "$CC" >&6; } 4022else 4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4024$as_echo "no" >&6; } 4025fi 4026 4027 4028fi 4029if test -z "$CC"; then 4030 if test -n "$ac_tool_prefix"; then 4031 for ac_prog in cl.exe 4032 do 4033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4034set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4036$as_echo_n "checking for $ac_word... " >&6; } 4037if ${ac_cv_prog_CC+:} false; then : 4038 $as_echo_n "(cached) " >&6 4039else 4040 if test -n "$CC"; then 4041 ac_cv_prog_CC="$CC" # Let the user override the test. 4042else 4043as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4044for as_dir in $PATH 4045do 4046 IFS=$as_save_IFS 4047 test -z "$as_dir" && as_dir=. 4048 for ac_exec_ext in '' $ac_executable_extensions; do 4049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4050 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4052 break 2 4053 fi 4054done 4055 done 4056IFS=$as_save_IFS 4057 4058fi 4059fi 4060CC=$ac_cv_prog_CC 4061if test -n "$CC"; then 4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4063$as_echo "$CC" >&6; } 4064else 4065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4066$as_echo "no" >&6; } 4067fi 4068 4069 4070 test -n "$CC" && break 4071 done 4072fi 4073if test -z "$CC"; then 4074 ac_ct_CC=$CC 4075 for ac_prog in cl.exe 4076do 4077 # Extract the first word of "$ac_prog", so it can be a program name with args. 4078set dummy $ac_prog; ac_word=$2 4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4080$as_echo_n "checking for $ac_word... " >&6; } 4081if ${ac_cv_prog_ac_ct_CC+:} false; then : 4082 $as_echo_n "(cached) " >&6 4083else 4084 if test -n "$ac_ct_CC"; then 4085 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4086else 4087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4088for as_dir in $PATH 4089do 4090 IFS=$as_save_IFS 4091 test -z "$as_dir" && as_dir=. 4092 for ac_exec_ext in '' $ac_executable_extensions; do 4093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4094 ac_cv_prog_ac_ct_CC="$ac_prog" 4095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4096 break 2 4097 fi 4098done 4099 done 4100IFS=$as_save_IFS 4101 4102fi 4103fi 4104ac_ct_CC=$ac_cv_prog_ac_ct_CC 4105if test -n "$ac_ct_CC"; then 4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4107$as_echo "$ac_ct_CC" >&6; } 4108else 4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4110$as_echo "no" >&6; } 4111fi 4112 4113 4114 test -n "$ac_ct_CC" && break 4115done 4116 4117 if test "x$ac_ct_CC" = x; then 4118 CC="" 4119 else 4120 case $cross_compiling:$ac_tool_warned in 4121yes:) 4122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4124ac_tool_warned=yes ;; 4125esac 4126 CC=$ac_ct_CC 4127 fi 4128fi 4129 4130fi 4131 4132 4133test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4135as_fn_error $? "no acceptable C compiler found in \$PATH 4136See \`config.log' for more details" "$LINENO" 5; } 4137 4138# Provide some information about the compiler. 4139$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4140set X $ac_compile 4141ac_compiler=$2 4142for ac_option in --version -v -V -qversion; do 4143 { { ac_try="$ac_compiler $ac_option >&5" 4144case "(($ac_try" in 4145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4146 *) ac_try_echo=$ac_try;; 4147esac 4148eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4149$as_echo "$ac_try_echo"; } >&5 4150 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4151 ac_status=$? 4152 if test -s conftest.err; then 4153 sed '10a\ 4154... rest of stderr output deleted ... 4155 10q' conftest.err >conftest.er1 4156 cat conftest.er1 >&5 4157 fi 4158 rm -f conftest.er1 conftest.err 4159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4160 test $ac_status = 0; } 4161done 4162 4163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4164/* end confdefs.h. */ 4165 4166int 4167main () 4168{ 4169 4170 ; 4171 return 0; 4172} 4173_ACEOF 4174ac_clean_files_save=$ac_clean_files 4175ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 4176# Try to create an executable without -o first, disregard a.out. 4177# It will help us diagnose broken compilers, and finding out an intuition 4178# of exeext. 4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 4180$as_echo_n "checking whether the C compiler works... " >&6; } 4181ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 4182 4183# The possible output files: 4184ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 4185 4186ac_rmfiles= 4187for ac_file in $ac_files 4188do 4189 case $ac_file in 4190 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4191 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 4192 esac 4193done 4194rm -f $ac_rmfiles 4195 4196if { { ac_try="$ac_link_default" 4197case "(($ac_try" in 4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4199 *) ac_try_echo=$ac_try;; 4200esac 4201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4202$as_echo "$ac_try_echo"; } >&5 4203 (eval "$ac_link_default") 2>&5 4204 ac_status=$? 4205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4206 test $ac_status = 0; }; then : 4207 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 4208# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 4209# in a Makefile. We should not override ac_cv_exeext if it was cached, 4210# so that the user can short-circuit this test for compilers unknown to 4211# Autoconf. 4212for ac_file in $ac_files '' 4213do 4214 test -f "$ac_file" || continue 4215 case $ac_file in 4216 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 4217 ;; 4218 [ab].out ) 4219 # We found the default executable, but exeext='' is most 4220 # certainly right. 4221 break;; 4222 *.* ) 4223 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 4224 then :; else 4225 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4226 fi 4227 # We set ac_cv_exeext here because the later test for it is not 4228 # safe: cross compilers may not add the suffix if given an `-o' 4229 # argument, so we may need to know it at that point already. 4230 # Even if this section looks crufty: it has the advantage of 4231 # actually working. 4232 break;; 4233 * ) 4234 break;; 4235 esac 4236done 4237test "$ac_cv_exeext" = no && ac_cv_exeext= 4238 4239else 4240 ac_file='' 4241fi 4242if test -z "$ac_file"; then : 4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4244$as_echo "no" >&6; } 4245$as_echo "$as_me: failed program was:" >&5 4246sed 's/^/| /' conftest.$ac_ext >&5 4247 4248{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4250as_fn_error 77 "C compiler cannot create executables 4251See \`config.log' for more details" "$LINENO" 5; } 4252else 4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4254$as_echo "yes" >&6; } 4255fi 4256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 4257$as_echo_n "checking for C compiler default output file name... " >&6; } 4258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 4259$as_echo "$ac_file" >&6; } 4260ac_exeext=$ac_cv_exeext 4261 4262rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 4263ac_clean_files=$ac_clean_files_save 4264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 4265$as_echo_n "checking for suffix of executables... " >&6; } 4266if { { ac_try="$ac_link" 4267case "(($ac_try" in 4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4269 *) ac_try_echo=$ac_try;; 4270esac 4271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4272$as_echo "$ac_try_echo"; } >&5 4273 (eval "$ac_link") 2>&5 4274 ac_status=$? 4275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4276 test $ac_status = 0; }; then : 4277 # If both `conftest.exe' and `conftest' are `present' (well, observable) 4278# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 4279# work properly (i.e., refer to `conftest.exe'), while it won't with 4280# `rm'. 4281for ac_file in conftest.exe conftest conftest.*; do 4282 test -f "$ac_file" || continue 4283 case $ac_file in 4284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 4285 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 4286 break;; 4287 * ) break;; 4288 esac 4289done 4290else 4291 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4293as_fn_error $? "cannot compute suffix of executables: cannot compile and link 4294See \`config.log' for more details" "$LINENO" 5; } 4295fi 4296rm -f conftest conftest$ac_cv_exeext 4297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 4298$as_echo "$ac_cv_exeext" >&6; } 4299 4300rm -f conftest.$ac_ext 4301EXEEXT=$ac_cv_exeext 4302ac_exeext=$EXEEXT 4303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4304/* end confdefs.h. */ 4305#include <stdio.h> 4306int 4307main () 4308{ 4309FILE *f = fopen ("conftest.out", "w"); 4310 return ferror (f) || fclose (f) != 0; 4311 4312 ; 4313 return 0; 4314} 4315_ACEOF 4316ac_clean_files="$ac_clean_files conftest.out" 4317# Check that the compiler produces executables we can run. If not, either 4318# the compiler is broken, or we cross compile. 4319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4320$as_echo_n "checking whether we are cross compiling... " >&6; } 4321if test "$cross_compiling" != yes; then 4322 { { ac_try="$ac_link" 4323case "(($ac_try" in 4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4325 *) ac_try_echo=$ac_try;; 4326esac 4327eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4328$as_echo "$ac_try_echo"; } >&5 4329 (eval "$ac_link") 2>&5 4330 ac_status=$? 4331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4332 test $ac_status = 0; } 4333 if { ac_try='./conftest$ac_cv_exeext' 4334 { { case "(($ac_try" in 4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4336 *) ac_try_echo=$ac_try;; 4337esac 4338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4339$as_echo "$ac_try_echo"; } >&5 4340 (eval "$ac_try") 2>&5 4341 ac_status=$? 4342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4343 test $ac_status = 0; }; }; then 4344 cross_compiling=no 4345 else 4346 if test "$cross_compiling" = maybe; then 4347 cross_compiling=yes 4348 else 4349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4350$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4351as_fn_error $? "cannot run C compiled programs. 4352If you meant to cross compile, use \`--host'. 4353See \`config.log' for more details" "$LINENO" 5; } 4354 fi 4355 fi 4356fi 4357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4358$as_echo "$cross_compiling" >&6; } 4359 4360rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4361ac_clean_files=$ac_clean_files_save 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4363$as_echo_n "checking for suffix of object files... " >&6; } 4364if ${ac_cv_objext+:} false; then : 4365 $as_echo_n "(cached) " >&6 4366else 4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4368/* end confdefs.h. */ 4369 4370int 4371main () 4372{ 4373 4374 ; 4375 return 0; 4376} 4377_ACEOF 4378rm -f conftest.o conftest.obj 4379if { { ac_try="$ac_compile" 4380case "(($ac_try" in 4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4382 *) ac_try_echo=$ac_try;; 4383esac 4384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4385$as_echo "$ac_try_echo"; } >&5 4386 (eval "$ac_compile") 2>&5 4387 ac_status=$? 4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4389 test $ac_status = 0; }; then : 4390 for ac_file in conftest.o conftest.obj conftest.*; do 4391 test -f "$ac_file" || continue; 4392 case $ac_file in 4393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4394 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4395 break;; 4396 esac 4397done 4398else 4399 $as_echo "$as_me: failed program was:" >&5 4400sed 's/^/| /' conftest.$ac_ext >&5 4401 4402{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4403$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4404as_fn_error $? "cannot compute suffix of object files: cannot compile 4405See \`config.log' for more details" "$LINENO" 5; } 4406fi 4407rm -f conftest.$ac_cv_objext conftest.$ac_ext 4408fi 4409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4410$as_echo "$ac_cv_objext" >&6; } 4411OBJEXT=$ac_cv_objext 4412ac_objext=$OBJEXT 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4414$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4415if ${ac_cv_c_compiler_gnu+:} false; then : 4416 $as_echo_n "(cached) " >&6 4417else 4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4419/* end confdefs.h. */ 4420 4421int 4422main () 4423{ 4424#ifndef __GNUC__ 4425 choke me 4426#endif 4427 4428 ; 4429 return 0; 4430} 4431_ACEOF 4432if ac_fn_c_try_compile "$LINENO"; then : 4433 ac_compiler_gnu=yes 4434else 4435 ac_compiler_gnu=no 4436fi 4437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4438ac_cv_c_compiler_gnu=$ac_compiler_gnu 4439 4440fi 4441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4442$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4443if test $ac_compiler_gnu = yes; then 4444 GCC=yes 4445else 4446 GCC= 4447fi 4448ac_test_CFLAGS=${CFLAGS+set} 4449ac_save_CFLAGS=$CFLAGS 4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4451$as_echo_n "checking whether $CC accepts -g... " >&6; } 4452if ${ac_cv_prog_cc_g+:} false; then : 4453 $as_echo_n "(cached) " >&6 4454else 4455 ac_save_c_werror_flag=$ac_c_werror_flag 4456 ac_c_werror_flag=yes 4457 ac_cv_prog_cc_g=no 4458 CFLAGS="-g" 4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4460/* end confdefs.h. */ 4461 4462int 4463main () 4464{ 4465 4466 ; 4467 return 0; 4468} 4469_ACEOF 4470if ac_fn_c_try_compile "$LINENO"; then : 4471 ac_cv_prog_cc_g=yes 4472else 4473 CFLAGS="" 4474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4475/* end confdefs.h. */ 4476 4477int 4478main () 4479{ 4480 4481 ; 4482 return 0; 4483} 4484_ACEOF 4485if ac_fn_c_try_compile "$LINENO"; then : 4486 4487else 4488 ac_c_werror_flag=$ac_save_c_werror_flag 4489 CFLAGS="-g" 4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4491/* end confdefs.h. */ 4492 4493int 4494main () 4495{ 4496 4497 ; 4498 return 0; 4499} 4500_ACEOF 4501if ac_fn_c_try_compile "$LINENO"; then : 4502 ac_cv_prog_cc_g=yes 4503fi 4504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4505fi 4506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4507fi 4508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4509 ac_c_werror_flag=$ac_save_c_werror_flag 4510fi 4511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4512$as_echo "$ac_cv_prog_cc_g" >&6; } 4513if test "$ac_test_CFLAGS" = set; then 4514 CFLAGS=$ac_save_CFLAGS 4515elif test $ac_cv_prog_cc_g = yes; then 4516 if test "$GCC" = yes; then 4517 CFLAGS="-g -O2" 4518 else 4519 CFLAGS="-g" 4520 fi 4521else 4522 if test "$GCC" = yes; then 4523 CFLAGS="-O2" 4524 else 4525 CFLAGS= 4526 fi 4527fi 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4529$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4530if ${ac_cv_prog_cc_c89+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 ac_cv_prog_cc_c89=no 4534ac_save_CC=$CC 4535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4536/* end confdefs.h. */ 4537#include <stdarg.h> 4538#include <stdio.h> 4539struct stat; 4540/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4541struct buf { int x; }; 4542FILE * (*rcsopen) (struct buf *, struct stat *, int); 4543static char *e (p, i) 4544 char **p; 4545 int i; 4546{ 4547 return p[i]; 4548} 4549static char *f (char * (*g) (char **, int), char **p, ...) 4550{ 4551 char *s; 4552 va_list v; 4553 va_start (v,p); 4554 s = g (p, va_arg (v,int)); 4555 va_end (v); 4556 return s; 4557} 4558 4559/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4560 function prototypes and stuff, but not '\xHH' hex character constants. 4561 These don't provoke an error unfortunately, instead are silently treated 4562 as 'x'. The following induces an error, until -std is added to get 4563 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4564 array size at least. It's necessary to write '\x00'==0 to get something 4565 that's true only with -std. */ 4566int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4567 4568/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4569 inside strings and character constants. */ 4570#define FOO(x) 'x' 4571int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4572 4573int test (int i, double x); 4574struct s1 {int (*f) (int a);}; 4575struct s2 {int (*f) (double a);}; 4576int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4577int argc; 4578char **argv; 4579int 4580main () 4581{ 4582return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4583 ; 4584 return 0; 4585} 4586_ACEOF 4587for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4588 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4589do 4590 CC="$ac_save_CC $ac_arg" 4591 if ac_fn_c_try_compile "$LINENO"; then : 4592 ac_cv_prog_cc_c89=$ac_arg 4593fi 4594rm -f core conftest.err conftest.$ac_objext 4595 test "x$ac_cv_prog_cc_c89" != "xno" && break 4596done 4597rm -f conftest.$ac_ext 4598CC=$ac_save_CC 4599 4600fi 4601# AC_CACHE_VAL 4602case "x$ac_cv_prog_cc_c89" in 4603 x) 4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4605$as_echo "none needed" >&6; } ;; 4606 xno) 4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4608$as_echo "unsupported" >&6; } ;; 4609 *) 4610 CC="$CC $ac_cv_prog_cc_c89" 4611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4612$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4613esac 4614if test "x$ac_cv_prog_cc_c89" != xno; then : 4615 4616fi 4617 4618ac_ext=c 4619ac_cpp='$CPP $CPPFLAGS' 4620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4622ac_compiler_gnu=$ac_cv_c_compiler_gnu 4623 4624ac_ext=c 4625ac_cpp='$CPP $CPPFLAGS' 4626ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4627ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4628ac_compiler_gnu=$ac_cv_c_compiler_gnu 4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4630$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4631if ${am_cv_prog_cc_c_o+:} false; then : 4632 $as_echo_n "(cached) " >&6 4633else 4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4635/* end confdefs.h. */ 4636 4637int 4638main () 4639{ 4640 4641 ; 4642 return 0; 4643} 4644_ACEOF 4645 # Make sure it works both with $CC and with simple cc. 4646 # Following AC_PROG_CC_C_O, we do the test twice because some 4647 # compilers refuse to overwrite an existing .o file with -o, 4648 # though they will create one. 4649 am_cv_prog_cc_c_o=yes 4650 for am_i in 1 2; do 4651 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4652 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4653 ac_status=$? 4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4655 (exit $ac_status); } \ 4656 && test -f conftest2.$ac_objext; then 4657 : OK 4658 else 4659 am_cv_prog_cc_c_o=no 4660 break 4661 fi 4662 done 4663 rm -f core conftest* 4664 unset am_i 4665fi 4666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4667$as_echo "$am_cv_prog_cc_c_o" >&6; } 4668if test "$am_cv_prog_cc_c_o" != yes; then 4669 # Losing compiler, so override with the script. 4670 # FIXME: It is wrong to rewrite CC. 4671 # But if we don't then we get into trouble of one sort or another. 4672 # A longer-term fix would be to have automake use am__CC in this case, 4673 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4674 CC="$am_aux_dir/compile $CC" 4675fi 4676ac_ext=c 4677ac_cpp='$CPP $CPPFLAGS' 4678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4680ac_compiler_gnu=$ac_cv_c_compiler_gnu 4681 4682 4683depcc="$CC" am_compiler_list= 4684 4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4686$as_echo_n "checking dependency style of $depcc... " >&6; } 4687if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4688 $as_echo_n "(cached) " >&6 4689else 4690 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4691 # We make a subdir and do the tests there. Otherwise we can end up 4692 # making bogus files that we don't know about and never remove. For 4693 # instance it was reported that on HP-UX the gcc test will end up 4694 # making a dummy file named 'D' -- because '-MD' means "put the output 4695 # in D". 4696 rm -rf conftest.dir 4697 mkdir conftest.dir 4698 # Copy depcomp to subdir because otherwise we won't find it if we're 4699 # using a relative directory. 4700 cp "$am_depcomp" conftest.dir 4701 cd conftest.dir 4702 # We will build objects and dependencies in a subdirectory because 4703 # it helps to detect inapplicable dependency modes. For instance 4704 # both Tru64's cc and ICC support -MD to output dependencies as a 4705 # side effect of compilation, but ICC will put the dependencies in 4706 # the current directory while Tru64 will put them in the object 4707 # directory. 4708 mkdir sub 4709 4710 am_cv_CC_dependencies_compiler_type=none 4711 if test "$am_compiler_list" = ""; then 4712 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4713 fi 4714 am__universal=false 4715 case " $depcc " in #( 4716 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4717 esac 4718 4719 for depmode in $am_compiler_list; do 4720 # Setup a source with many dependencies, because some compilers 4721 # like to wrap large dependency lists on column 80 (with \), and 4722 # we should not choose a depcomp mode which is confused by this. 4723 # 4724 # We need to recreate these files for each test, as the compiler may 4725 # overwrite some of them when testing with obscure command lines. 4726 # This happens at least with the AIX C compiler. 4727 : > sub/conftest.c 4728 for i in 1 2 3 4 5 6; do 4729 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4730 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4731 # Solaris 10 /bin/sh. 4732 echo '/* dummy */' > sub/conftst$i.h 4733 done 4734 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4735 4736 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4737 # mode. It turns out that the SunPro C++ compiler does not properly 4738 # handle '-M -o', and we need to detect this. Also, some Intel 4739 # versions had trouble with output in subdirs. 4740 am__obj=sub/conftest.${OBJEXT-o} 4741 am__minus_obj="-o $am__obj" 4742 case $depmode in 4743 gcc) 4744 # This depmode causes a compiler race in universal mode. 4745 test "$am__universal" = false || continue 4746 ;; 4747 nosideeffect) 4748 # After this tag, mechanisms are not by side-effect, so they'll 4749 # only be used when explicitly requested. 4750 if test "x$enable_dependency_tracking" = xyes; then 4751 continue 4752 else 4753 break 4754 fi 4755 ;; 4756 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4757 # This compiler won't grok '-c -o', but also, the minuso test has 4758 # not run yet. These depmodes are late enough in the game, and 4759 # so weak that their functioning should not be impacted. 4760 am__obj=conftest.${OBJEXT-o} 4761 am__minus_obj= 4762 ;; 4763 none) break ;; 4764 esac 4765 if depmode=$depmode \ 4766 source=sub/conftest.c object=$am__obj \ 4767 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4768 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4769 >/dev/null 2>conftest.err && 4770 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4771 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4772 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4773 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4774 # icc doesn't choke on unknown options, it will just issue warnings 4775 # or remarks (even with -Werror). So we grep stderr for any message 4776 # that says an option was ignored or not supported. 4777 # When given -MP, icc 7.0 and 7.1 complain thusly: 4778 # icc: Command line warning: ignoring option '-M'; no argument required 4779 # The diagnosis changed in icc 8.0: 4780 # icc: Command line remark: option '-MP' not supported 4781 if (grep 'ignoring option' conftest.err || 4782 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4783 am_cv_CC_dependencies_compiler_type=$depmode 4784 break 4785 fi 4786 fi 4787 done 4788 4789 cd .. 4790 rm -rf conftest.dir 4791else 4792 am_cv_CC_dependencies_compiler_type=none 4793fi 4794 4795fi 4796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4797$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4798CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4799 4800 if 4801 test "x$enable_dependency_tracking" != xno \ 4802 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4803 am__fastdepCC_TRUE= 4804 am__fastdepCC_FALSE='#' 4805else 4806 am__fastdepCC_TRUE='#' 4807 am__fastdepCC_FALSE= 4808fi 4809 4810 4811 4812ac_ext=c 4813ac_cpp='$CPP $CPPFLAGS' 4814ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4815ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4816ac_compiler_gnu=$ac_cv_c_compiler_gnu 4817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4818$as_echo_n "checking how to run the C preprocessor... " >&6; } 4819# On Suns, sometimes $CPP names a directory. 4820if test -n "$CPP" && test -d "$CPP"; then 4821 CPP= 4822fi 4823if test -z "$CPP"; then 4824 if ${ac_cv_prog_CPP+:} false; then : 4825 $as_echo_n "(cached) " >&6 4826else 4827 # Double quotes because CPP needs to be expanded 4828 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4829 do 4830 ac_preproc_ok=false 4831for ac_c_preproc_warn_flag in '' yes 4832do 4833 # Use a header file that comes with gcc, so configuring glibc 4834 # with a fresh cross-compiler works. 4835 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4836 # <limits.h> exists even on freestanding compilers. 4837 # On the NeXT, cc -E runs the code through the compiler's parser, 4838 # not just through cpp. "Syntax error" is here to catch this case. 4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840/* end confdefs.h. */ 4841#ifdef __STDC__ 4842# include <limits.h> 4843#else 4844# include <assert.h> 4845#endif 4846 Syntax error 4847_ACEOF 4848if ac_fn_c_try_cpp "$LINENO"; then : 4849 4850else 4851 # Broken: fails on valid input. 4852continue 4853fi 4854rm -f conftest.err conftest.i conftest.$ac_ext 4855 4856 # OK, works on sane cases. Now check whether nonexistent headers 4857 # can be detected and how. 4858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4859/* end confdefs.h. */ 4860#include <ac_nonexistent.h> 4861_ACEOF 4862if ac_fn_c_try_cpp "$LINENO"; then : 4863 # Broken: success on invalid input. 4864continue 4865else 4866 # Passes both tests. 4867ac_preproc_ok=: 4868break 4869fi 4870rm -f conftest.err conftest.i conftest.$ac_ext 4871 4872done 4873# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4874rm -f conftest.i conftest.err conftest.$ac_ext 4875if $ac_preproc_ok; then : 4876 break 4877fi 4878 4879 done 4880 ac_cv_prog_CPP=$CPP 4881 4882fi 4883 CPP=$ac_cv_prog_CPP 4884else 4885 ac_cv_prog_CPP=$CPP 4886fi 4887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4888$as_echo "$CPP" >&6; } 4889ac_preproc_ok=false 4890for ac_c_preproc_warn_flag in '' yes 4891do 4892 # Use a header file that comes with gcc, so configuring glibc 4893 # with a fresh cross-compiler works. 4894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4895 # <limits.h> exists even on freestanding compilers. 4896 # On the NeXT, cc -E runs the code through the compiler's parser, 4897 # not just through cpp. "Syntax error" is here to catch this case. 4898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4899/* end confdefs.h. */ 4900#ifdef __STDC__ 4901# include <limits.h> 4902#else 4903# include <assert.h> 4904#endif 4905 Syntax error 4906_ACEOF 4907if ac_fn_c_try_cpp "$LINENO"; then : 4908 4909else 4910 # Broken: fails on valid input. 4911continue 4912fi 4913rm -f conftest.err conftest.i conftest.$ac_ext 4914 4915 # OK, works on sane cases. Now check whether nonexistent headers 4916 # can be detected and how. 4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4918/* end confdefs.h. */ 4919#include <ac_nonexistent.h> 4920_ACEOF 4921if ac_fn_c_try_cpp "$LINENO"; then : 4922 # Broken: success on invalid input. 4923continue 4924else 4925 # Passes both tests. 4926ac_preproc_ok=: 4927break 4928fi 4929rm -f conftest.err conftest.i conftest.$ac_ext 4930 4931done 4932# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4933rm -f conftest.i conftest.err conftest.$ac_ext 4934if $ac_preproc_ok; then : 4935 4936else 4937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4938$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4939as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4940See \`config.log' for more details" "$LINENO" 5; } 4941fi 4942 4943ac_ext=c 4944ac_cpp='$CPP $CPPFLAGS' 4945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4947ac_compiler_gnu=$ac_cv_c_compiler_gnu 4948 4949 4950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 4951$as_echo_n "checking for X... " >&6; } 4952 4953 4954# Check whether --with-x was given. 4955if test "${with_x+set}" = set; then : 4956 withval=$with_x; 4957fi 4958 4959# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 4960if test "x$with_x" = xno; then 4961 # The user explicitly disabled X. 4962 have_x=disabled 4963else 4964 case $x_includes,$x_libraries in #( 4965 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 4966 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 4967 $as_echo_n "(cached) " >&6 4968else 4969 # One or both of the vars are not set, and there is no cached value. 4970ac_x_includes=no ac_x_libraries=no 4971rm -f -r conftest.dir 4972if mkdir conftest.dir; then 4973 cd conftest.dir 4974 cat >Imakefile <<'_ACEOF' 4975incroot: 4976 @echo incroot='${INCROOT}' 4977usrlibdir: 4978 @echo usrlibdir='${USRLIBDIR}' 4979libdir: 4980 @echo libdir='${LIBDIR}' 4981_ACEOF 4982 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 4983 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4984 for ac_var in incroot usrlibdir libdir; do 4985 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 4986 done 4987 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 4988 for ac_extension in a so sl dylib la dll; do 4989 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 4990 test -f "$ac_im_libdir/libX11.$ac_extension"; then 4991 ac_im_usrlibdir=$ac_im_libdir; break 4992 fi 4993 done 4994 # Screen out bogus values from the imake configuration. They are 4995 # bogus both because they are the default anyway, and because 4996 # using them would break gcc on systems where it needs fixed includes. 4997 case $ac_im_incroot in 4998 /usr/include) ac_x_includes= ;; 4999 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5000 esac 5001 case $ac_im_usrlibdir in 5002 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 5003 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5004 esac 5005 fi 5006 cd .. 5007 rm -f -r conftest.dir 5008fi 5009 5010# Standard set of common directories for X headers. 5011# Check X11 before X11Rn because it is often a symlink to the current release. 5012ac_x_header_dirs=' 5013/usr/X11/include 5014/usr/X11R7/include 5015/usr/X11R6/include 5016/usr/X11R5/include 5017/usr/X11R4/include 5018 5019/usr/include/X11 5020/usr/include/X11R7 5021/usr/include/X11R6 5022/usr/include/X11R5 5023/usr/include/X11R4 5024 5025/usr/local/X11/include 5026/usr/local/X11R7/include 5027/usr/local/X11R6/include 5028/usr/local/X11R5/include 5029/usr/local/X11R4/include 5030 5031/usr/local/include/X11 5032/usr/local/include/X11R7 5033/usr/local/include/X11R6 5034/usr/local/include/X11R5 5035/usr/local/include/X11R4 5036 5037/usr/X386/include 5038/usr/x386/include 5039/usr/XFree86/include/X11 5040 5041/usr/include 5042/usr/local/include 5043/usr/unsupported/include 5044/usr/athena/include 5045/usr/local/x11r5/include 5046/usr/lpp/Xamples/include 5047 5048/usr/openwin/include 5049/usr/openwin/share/include' 5050 5051if test "$ac_x_includes" = no; then 5052 # Guess where to find include files, by looking for Xlib.h. 5053 # First, try using that file with no special directory specified. 5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5055/* end confdefs.h. */ 5056#include <X11/Xlib.h> 5057_ACEOF 5058if ac_fn_c_try_cpp "$LINENO"; then : 5059 # We can compile using X headers with no special include directory. 5060ac_x_includes= 5061else 5062 for ac_dir in $ac_x_header_dirs; do 5063 if test -r "$ac_dir/X11/Xlib.h"; then 5064 ac_x_includes=$ac_dir 5065 break 5066 fi 5067done 5068fi 5069rm -f conftest.err conftest.i conftest.$ac_ext 5070fi # $ac_x_includes = no 5071 5072if test "$ac_x_libraries" = no; then 5073 # Check for the libraries. 5074 # See if we find them without any special options. 5075 # Don't add to $LIBS permanently. 5076 ac_save_LIBS=$LIBS 5077 LIBS="-lX11 $LIBS" 5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5079/* end confdefs.h. */ 5080#include <X11/Xlib.h> 5081int 5082main () 5083{ 5084XrmInitialize () 5085 ; 5086 return 0; 5087} 5088_ACEOF 5089if ac_fn_c_try_link "$LINENO"; then : 5090 LIBS=$ac_save_LIBS 5091# We can link X programs with no special library path. 5092ac_x_libraries= 5093else 5094 LIBS=$ac_save_LIBS 5095for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5096do 5097 # Don't even attempt the hair of trying to link an X program! 5098 for ac_extension in a so sl dylib la dll; do 5099 if test -r "$ac_dir/libX11.$ac_extension"; then 5100 ac_x_libraries=$ac_dir 5101 break 2 5102 fi 5103 done 5104done 5105fi 5106rm -f core conftest.err conftest.$ac_objext \ 5107 conftest$ac_exeext conftest.$ac_ext 5108fi # $ac_x_libraries = no 5109 5110case $ac_x_includes,$ac_x_libraries in #( 5111 no,* | *,no | *\'*) 5112 # Didn't find X, or a directory has "'" in its name. 5113 ac_cv_have_x="have_x=no";; #( 5114 *) 5115 # Record where we found X for the cache. 5116 ac_cv_have_x="have_x=yes\ 5117 ac_x_includes='$ac_x_includes'\ 5118 ac_x_libraries='$ac_x_libraries'" 5119esac 5120fi 5121;; #( 5122 *) have_x=yes;; 5123 esac 5124 eval "$ac_cv_have_x" 5125fi # $with_x != no 5126 5127if test "$have_x" != yes; then 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 5129$as_echo "$have_x" >&6; } 5130 no_x=yes 5131else 5132 # If each of the values was on the command line, it overrides each guess. 5133 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5134 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5135 # Update the cache value to reflect the command line values. 5136 ac_cv_have_x="have_x=yes\ 5137 ac_x_includes='$x_includes'\ 5138 ac_x_libraries='$x_libraries'" 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 5140$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 5141fi 5142 5143if test "$no_x" = yes; then 5144 # Not all programs may use this symbol, but it does not hurt to define it. 5145 5146$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 5147 5148 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5149else 5150 if test -n "$x_includes"; then 5151 X_CFLAGS="$X_CFLAGS -I$x_includes" 5152 fi 5153 5154 # It would also be nice to do this for all -L options, not just this one. 5155 if test -n "$x_libraries"; then 5156 X_LIBS="$X_LIBS -L$x_libraries" 5157 # For Solaris; some versions of Sun CC require a space after -R and 5158 # others require no space. Words are not sufficient . . . . 5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 5160$as_echo_n "checking whether -R must be followed by a space... " >&6; } 5161 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5162 ac_xsave_c_werror_flag=$ac_c_werror_flag 5163 ac_c_werror_flag=yes 5164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5165/* end confdefs.h. */ 5166 5167int 5168main () 5169{ 5170 5171 ; 5172 return 0; 5173} 5174_ACEOF 5175if ac_fn_c_try_link "$LINENO"; then : 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5177$as_echo "no" >&6; } 5178 X_LIBS="$X_LIBS -R$x_libraries" 5179else 5180 LIBS="$ac_xsave_LIBS -R $x_libraries" 5181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5182/* end confdefs.h. */ 5183 5184int 5185main () 5186{ 5187 5188 ; 5189 return 0; 5190} 5191_ACEOF 5192if ac_fn_c_try_link "$LINENO"; then : 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5194$as_echo "yes" >&6; } 5195 X_LIBS="$X_LIBS -R $x_libraries" 5196else 5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 5198$as_echo "neither works" >&6; } 5199fi 5200rm -f core conftest.err conftest.$ac_objext \ 5201 conftest$ac_exeext conftest.$ac_ext 5202fi 5203rm -f core conftest.err conftest.$ac_objext \ 5204 conftest$ac_exeext conftest.$ac_ext 5205 ac_c_werror_flag=$ac_xsave_c_werror_flag 5206 LIBS=$ac_xsave_LIBS 5207 fi 5208 5209 # Check for system-dependent libraries X programs must link with. 5210 # Do this before checking for the system-independent R6 libraries 5211 # (-lICE), since we may need -lsocket or whatever for X linking. 5212 5213 if test "$ISC" = yes; then 5214 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 5215 else 5216 # Martyn Johnson says this is needed for Ultrix, if the X 5217 # libraries were built with DECnet support. And Karl Berry says 5218 # the Alpha needs dnet_stub (dnet does not exist). 5219 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5221/* end confdefs.h. */ 5222 5223/* Override any GCC internal prototype to avoid an error. 5224 Use char because int might match the return type of a GCC 5225 builtin and then its argument prototype would still apply. */ 5226#ifdef __cplusplus 5227extern "C" 5228#endif 5229char XOpenDisplay (); 5230int 5231main () 5232{ 5233return XOpenDisplay (); 5234 ; 5235 return 0; 5236} 5237_ACEOF 5238if ac_fn_c_try_link "$LINENO"; then : 5239 5240else 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 5242$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 5243if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 5244 $as_echo_n "(cached) " >&6 5245else 5246 ac_check_lib_save_LIBS=$LIBS 5247LIBS="-ldnet $LIBS" 5248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5249/* end confdefs.h. */ 5250 5251/* Override any GCC internal prototype to avoid an error. 5252 Use char because int might match the return type of a GCC 5253 builtin and then its argument prototype would still apply. */ 5254#ifdef __cplusplus 5255extern "C" 5256#endif 5257char dnet_ntoa (); 5258int 5259main () 5260{ 5261return dnet_ntoa (); 5262 ; 5263 return 0; 5264} 5265_ACEOF 5266if ac_fn_c_try_link "$LINENO"; then : 5267 ac_cv_lib_dnet_dnet_ntoa=yes 5268else 5269 ac_cv_lib_dnet_dnet_ntoa=no 5270fi 5271rm -f core conftest.err conftest.$ac_objext \ 5272 conftest$ac_exeext conftest.$ac_ext 5273LIBS=$ac_check_lib_save_LIBS 5274fi 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5276$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5277if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 5278 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5279fi 5280 5281 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 5283$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 5284if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 5285 $as_echo_n "(cached) " >&6 5286else 5287 ac_check_lib_save_LIBS=$LIBS 5288LIBS="-ldnet_stub $LIBS" 5289cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5290/* end confdefs.h. */ 5291 5292/* Override any GCC internal prototype to avoid an error. 5293 Use char because int might match the return type of a GCC 5294 builtin and then its argument prototype would still apply. */ 5295#ifdef __cplusplus 5296extern "C" 5297#endif 5298char dnet_ntoa (); 5299int 5300main () 5301{ 5302return dnet_ntoa (); 5303 ; 5304 return 0; 5305} 5306_ACEOF 5307if ac_fn_c_try_link "$LINENO"; then : 5308 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5309else 5310 ac_cv_lib_dnet_stub_dnet_ntoa=no 5311fi 5312rm -f core conftest.err conftest.$ac_objext \ 5313 conftest$ac_exeext conftest.$ac_ext 5314LIBS=$ac_check_lib_save_LIBS 5315fi 5316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5317$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5318if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 5319 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5320fi 5321 5322 fi 5323fi 5324rm -f core conftest.err conftest.$ac_objext \ 5325 conftest$ac_exeext conftest.$ac_ext 5326 LIBS="$ac_xsave_LIBS" 5327 5328 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5329 # to get the SysV transport functions. 5330 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5331 # needs -lnsl. 5332 # The nsl library prevents programs from opening the X display 5333 # on Irix 5.2, according to T.E. Dickey. 5334 # The functions gethostbyname, getservbyname, and inet_addr are 5335 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5336 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 5337if test "x$ac_cv_func_gethostbyname" = xyes; then : 5338 5339fi 5340 5341 if test $ac_cv_func_gethostbyname = no; then 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 5343$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 5344if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 5345 $as_echo_n "(cached) " >&6 5346else 5347 ac_check_lib_save_LIBS=$LIBS 5348LIBS="-lnsl $LIBS" 5349cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5350/* end confdefs.h. */ 5351 5352/* Override any GCC internal prototype to avoid an error. 5353 Use char because int might match the return type of a GCC 5354 builtin and then its argument prototype would still apply. */ 5355#ifdef __cplusplus 5356extern "C" 5357#endif 5358char gethostbyname (); 5359int 5360main () 5361{ 5362return gethostbyname (); 5363 ; 5364 return 0; 5365} 5366_ACEOF 5367if ac_fn_c_try_link "$LINENO"; then : 5368 ac_cv_lib_nsl_gethostbyname=yes 5369else 5370 ac_cv_lib_nsl_gethostbyname=no 5371fi 5372rm -f core conftest.err conftest.$ac_objext \ 5373 conftest$ac_exeext conftest.$ac_ext 5374LIBS=$ac_check_lib_save_LIBS 5375fi 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 5377$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 5378if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 5379 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 5380fi 5381 5382 if test $ac_cv_lib_nsl_gethostbyname = no; then 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 5384$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 5385if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 5386 $as_echo_n "(cached) " >&6 5387else 5388 ac_check_lib_save_LIBS=$LIBS 5389LIBS="-lbsd $LIBS" 5390cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5391/* end confdefs.h. */ 5392 5393/* Override any GCC internal prototype to avoid an error. 5394 Use char because int might match the return type of a GCC 5395 builtin and then its argument prototype would still apply. */ 5396#ifdef __cplusplus 5397extern "C" 5398#endif 5399char gethostbyname (); 5400int 5401main () 5402{ 5403return gethostbyname (); 5404 ; 5405 return 0; 5406} 5407_ACEOF 5408if ac_fn_c_try_link "$LINENO"; then : 5409 ac_cv_lib_bsd_gethostbyname=yes 5410else 5411 ac_cv_lib_bsd_gethostbyname=no 5412fi 5413rm -f core conftest.err conftest.$ac_objext \ 5414 conftest$ac_exeext conftest.$ac_ext 5415LIBS=$ac_check_lib_save_LIBS 5416fi 5417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 5418$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 5419if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 5420 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 5421fi 5422 5423 fi 5424 fi 5425 5426 # lieder@skyler.mavd.honeywell.com says without -lsocket, 5427 # socket/setsockopt and other routines are undefined under SCO ODT 5428 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 5429 # on later versions), says Simon Leinen: it contains gethostby* 5430 # variants that don't use the name server (or something). -lsocket 5431 # must be given before -lnsl if both are needed. We assume that 5432 # if connect needs -lnsl, so does gethostbyname. 5433 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect" 5434if test "x$ac_cv_func_connect" = xyes; then : 5435 5436fi 5437 5438 if test $ac_cv_func_connect = no; then 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 5440$as_echo_n "checking for connect in -lsocket... " >&6; } 5441if ${ac_cv_lib_socket_connect+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 ac_check_lib_save_LIBS=$LIBS 5445LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 5446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5447/* end confdefs.h. */ 5448 5449/* Override any GCC internal prototype to avoid an error. 5450 Use char because int might match the return type of a GCC 5451 builtin and then its argument prototype would still apply. */ 5452#ifdef __cplusplus 5453extern "C" 5454#endif 5455char connect (); 5456int 5457main () 5458{ 5459return connect (); 5460 ; 5461 return 0; 5462} 5463_ACEOF 5464if ac_fn_c_try_link "$LINENO"; then : 5465 ac_cv_lib_socket_connect=yes 5466else 5467 ac_cv_lib_socket_connect=no 5468fi 5469rm -f core conftest.err conftest.$ac_objext \ 5470 conftest$ac_exeext conftest.$ac_ext 5471LIBS=$ac_check_lib_save_LIBS 5472fi 5473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 5474$as_echo "$ac_cv_lib_socket_connect" >&6; } 5475if test "x$ac_cv_lib_socket_connect" = xyes; then : 5476 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 5477fi 5478 5479 fi 5480 5481 # Guillermo Gomez says -lposix is necessary on A/UX. 5482 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove" 5483if test "x$ac_cv_func_remove" = xyes; then : 5484 5485fi 5486 5487 if test $ac_cv_func_remove = no; then 5488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 5489$as_echo_n "checking for remove in -lposix... " >&6; } 5490if ${ac_cv_lib_posix_remove+:} false; then : 5491 $as_echo_n "(cached) " >&6 5492else 5493 ac_check_lib_save_LIBS=$LIBS 5494LIBS="-lposix $LIBS" 5495cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5496/* end confdefs.h. */ 5497 5498/* Override any GCC internal prototype to avoid an error. 5499 Use char because int might match the return type of a GCC 5500 builtin and then its argument prototype would still apply. */ 5501#ifdef __cplusplus 5502extern "C" 5503#endif 5504char remove (); 5505int 5506main () 5507{ 5508return remove (); 5509 ; 5510 return 0; 5511} 5512_ACEOF 5513if ac_fn_c_try_link "$LINENO"; then : 5514 ac_cv_lib_posix_remove=yes 5515else 5516 ac_cv_lib_posix_remove=no 5517fi 5518rm -f core conftest.err conftest.$ac_objext \ 5519 conftest$ac_exeext conftest.$ac_ext 5520LIBS=$ac_check_lib_save_LIBS 5521fi 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 5523$as_echo "$ac_cv_lib_posix_remove" >&6; } 5524if test "x$ac_cv_lib_posix_remove" = xyes; then : 5525 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 5526fi 5527 5528 fi 5529 5530 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 5531 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 5532if test "x$ac_cv_func_shmat" = xyes; then : 5533 5534fi 5535 5536 if test $ac_cv_func_shmat = no; then 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 5538$as_echo_n "checking for shmat in -lipc... " >&6; } 5539if ${ac_cv_lib_ipc_shmat+:} false; then : 5540 $as_echo_n "(cached) " >&6 5541else 5542 ac_check_lib_save_LIBS=$LIBS 5543LIBS="-lipc $LIBS" 5544cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5545/* end confdefs.h. */ 5546 5547/* Override any GCC internal prototype to avoid an error. 5548 Use char because int might match the return type of a GCC 5549 builtin and then its argument prototype would still apply. */ 5550#ifdef __cplusplus 5551extern "C" 5552#endif 5553char shmat (); 5554int 5555main () 5556{ 5557return shmat (); 5558 ; 5559 return 0; 5560} 5561_ACEOF 5562if ac_fn_c_try_link "$LINENO"; then : 5563 ac_cv_lib_ipc_shmat=yes 5564else 5565 ac_cv_lib_ipc_shmat=no 5566fi 5567rm -f core conftest.err conftest.$ac_objext \ 5568 conftest$ac_exeext conftest.$ac_ext 5569LIBS=$ac_check_lib_save_LIBS 5570fi 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 5572$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 5573if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 5574 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 5575fi 5576 5577 fi 5578 fi 5579 5580 # Check for libraries that X11R6 Xt/Xaw programs need. 5581 ac_save_LDFLAGS=$LDFLAGS 5582 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 5583 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 5584 # check for ICE first), but we must link in the order -lSM -lICE or 5585 # we get undefined symbols. So assume we have SM if we have ICE. 5586 # These have to be linked with before -lX11, unlike the other 5587 # libraries we check for below, so use a different variable. 5588 # John Interrante, Karl Berry 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 5590$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 5591if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 5592 $as_echo_n "(cached) " >&6 5593else 5594 ac_check_lib_save_LIBS=$LIBS 5595LIBS="-lICE $X_EXTRA_LIBS $LIBS" 5596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5597/* end confdefs.h. */ 5598 5599/* Override any GCC internal prototype to avoid an error. 5600 Use char because int might match the return type of a GCC 5601 builtin and then its argument prototype would still apply. */ 5602#ifdef __cplusplus 5603extern "C" 5604#endif 5605char IceConnectionNumber (); 5606int 5607main () 5608{ 5609return IceConnectionNumber (); 5610 ; 5611 return 0; 5612} 5613_ACEOF 5614if ac_fn_c_try_link "$LINENO"; then : 5615 ac_cv_lib_ICE_IceConnectionNumber=yes 5616else 5617 ac_cv_lib_ICE_IceConnectionNumber=no 5618fi 5619rm -f core conftest.err conftest.$ac_objext \ 5620 conftest$ac_exeext conftest.$ac_ext 5621LIBS=$ac_check_lib_save_LIBS 5622fi 5623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 5624$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 5625if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 5626 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 5627fi 5628 5629 LDFLAGS=$ac_save_LDFLAGS 5630 5631fi 5632 5633if test x"$no_x" = x"yes"; then 5634 echo 5635 echo "X11 libraries or header files could not be found. Please make" 5636 echo "sure the X11 development package is installed on your system." 5637 echo "If it is definitely installed, try setting the include and library" 5638 echo "paths with the --x-include and --x-libraries options of configure." 5639 echo "Fvwm can not be compiled without the X11 development environment." 5640 echo 5641 echo "Aborting." 5642 echo 5643 exit 1 5644fi 5645 5646# FIXME: default value should be derived from computed path to X 5647# includes. Actually, this should probably not appear in configure 5648# at all: it is settable at runtime, and only confuses the issue to 5649# have it settable here too. 5650# 5651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking imagepath" >&5 5652$as_echo_n "checking imagepath... " >&6; } 5653val="/usr/include/X11/bitmaps:/usr/include/X11/pixmaps" 5654 5655# Check whether --with-imagepath was given. 5656if test "${with_imagepath+set}" = set; then : 5657 withval=$with_imagepath; case "$withval" in 5658 no) 5659 as_fn_error $? "Can not disable image path." "$LINENO" 5 5660 ;; 5661 yes) 5662 ;; 5663 *) 5664 val="$withval" 5665 ;; 5666 esac 5667fi 5668 5669 5670cat >>confdefs.h <<_ACEOF 5671#define FVWM_IMAGEPATH "$val" 5672_ACEOF 5673 5674 5675FVWM_IMAGEPATH="$val" 5676 5677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $val" >&5 5678$as_echo "$val" >&6; } 5679 5680# Minimal checks for programs: enough to enable checking for 5681# optional libraries. 5682ac_ext=c 5683ac_cpp='$CPP $CPPFLAGS' 5684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5686ac_compiler_gnu=$ac_cv_c_compiler_gnu 5687if test -n "$ac_tool_prefix"; then 5688 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5689set dummy ${ac_tool_prefix}gcc; ac_word=$2 5690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5691$as_echo_n "checking for $ac_word... " >&6; } 5692if ${ac_cv_prog_CC+:} false; then : 5693 $as_echo_n "(cached) " >&6 5694else 5695 if test -n "$CC"; then 5696 ac_cv_prog_CC="$CC" # Let the user override the test. 5697else 5698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5699for as_dir in $PATH 5700do 5701 IFS=$as_save_IFS 5702 test -z "$as_dir" && as_dir=. 5703 for ac_exec_ext in '' $ac_executable_extensions; do 5704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5705 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5707 break 2 5708 fi 5709done 5710 done 5711IFS=$as_save_IFS 5712 5713fi 5714fi 5715CC=$ac_cv_prog_CC 5716if test -n "$CC"; then 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5718$as_echo "$CC" >&6; } 5719else 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5721$as_echo "no" >&6; } 5722fi 5723 5724 5725fi 5726if test -z "$ac_cv_prog_CC"; then 5727 ac_ct_CC=$CC 5728 # Extract the first word of "gcc", so it can be a program name with args. 5729set dummy gcc; ac_word=$2 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5731$as_echo_n "checking for $ac_word... " >&6; } 5732if ${ac_cv_prog_ac_ct_CC+:} false; then : 5733 $as_echo_n "(cached) " >&6 5734else 5735 if test -n "$ac_ct_CC"; then 5736 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5737else 5738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5739for as_dir in $PATH 5740do 5741 IFS=$as_save_IFS 5742 test -z "$as_dir" && as_dir=. 5743 for ac_exec_ext in '' $ac_executable_extensions; do 5744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5745 ac_cv_prog_ac_ct_CC="gcc" 5746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5747 break 2 5748 fi 5749done 5750 done 5751IFS=$as_save_IFS 5752 5753fi 5754fi 5755ac_ct_CC=$ac_cv_prog_ac_ct_CC 5756if test -n "$ac_ct_CC"; then 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5758$as_echo "$ac_ct_CC" >&6; } 5759else 5760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5761$as_echo "no" >&6; } 5762fi 5763 5764 if test "x$ac_ct_CC" = x; then 5765 CC="" 5766 else 5767 case $cross_compiling:$ac_tool_warned in 5768yes:) 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5770$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5771ac_tool_warned=yes ;; 5772esac 5773 CC=$ac_ct_CC 5774 fi 5775else 5776 CC="$ac_cv_prog_CC" 5777fi 5778 5779if test -z "$CC"; then 5780 if test -n "$ac_tool_prefix"; then 5781 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5782set dummy ${ac_tool_prefix}cc; ac_word=$2 5783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5784$as_echo_n "checking for $ac_word... " >&6; } 5785if ${ac_cv_prog_CC+:} false; then : 5786 $as_echo_n "(cached) " >&6 5787else 5788 if test -n "$CC"; then 5789 ac_cv_prog_CC="$CC" # Let the user override the test. 5790else 5791as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5792for as_dir in $PATH 5793do 5794 IFS=$as_save_IFS 5795 test -z "$as_dir" && as_dir=. 5796 for ac_exec_ext in '' $ac_executable_extensions; do 5797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5798 ac_cv_prog_CC="${ac_tool_prefix}cc" 5799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5800 break 2 5801 fi 5802done 5803 done 5804IFS=$as_save_IFS 5805 5806fi 5807fi 5808CC=$ac_cv_prog_CC 5809if test -n "$CC"; then 5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5811$as_echo "$CC" >&6; } 5812else 5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5814$as_echo "no" >&6; } 5815fi 5816 5817 5818 fi 5819fi 5820if test -z "$CC"; then 5821 # Extract the first word of "cc", so it can be a program name with args. 5822set dummy cc; ac_word=$2 5823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5824$as_echo_n "checking for $ac_word... " >&6; } 5825if ${ac_cv_prog_CC+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if test -n "$CC"; then 5829 ac_cv_prog_CC="$CC" # Let the user override the test. 5830else 5831 ac_prog_rejected=no 5832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5833for as_dir in $PATH 5834do 5835 IFS=$as_save_IFS 5836 test -z "$as_dir" && as_dir=. 5837 for ac_exec_ext in '' $ac_executable_extensions; do 5838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5839 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5840 ac_prog_rejected=yes 5841 continue 5842 fi 5843 ac_cv_prog_CC="cc" 5844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5845 break 2 5846 fi 5847done 5848 done 5849IFS=$as_save_IFS 5850 5851if test $ac_prog_rejected = yes; then 5852 # We found a bogon in the path, so make sure we never use it. 5853 set dummy $ac_cv_prog_CC 5854 shift 5855 if test $# != 0; then 5856 # We chose a different compiler from the bogus one. 5857 # However, it has the same basename, so the bogon will be chosen 5858 # first if we set CC to just the basename; use the full file name. 5859 shift 5860 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5861 fi 5862fi 5863fi 5864fi 5865CC=$ac_cv_prog_CC 5866if test -n "$CC"; then 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5868$as_echo "$CC" >&6; } 5869else 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5871$as_echo "no" >&6; } 5872fi 5873 5874 5875fi 5876if test -z "$CC"; then 5877 if test -n "$ac_tool_prefix"; then 5878 for ac_prog in cl.exe 5879 do 5880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5881set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5883$as_echo_n "checking for $ac_word... " >&6; } 5884if ${ac_cv_prog_CC+:} false; then : 5885 $as_echo_n "(cached) " >&6 5886else 5887 if test -n "$CC"; then 5888 ac_cv_prog_CC="$CC" # Let the user override the test. 5889else 5890as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5891for as_dir in $PATH 5892do 5893 IFS=$as_save_IFS 5894 test -z "$as_dir" && as_dir=. 5895 for ac_exec_ext in '' $ac_executable_extensions; do 5896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5897 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5899 break 2 5900 fi 5901done 5902 done 5903IFS=$as_save_IFS 5904 5905fi 5906fi 5907CC=$ac_cv_prog_CC 5908if test -n "$CC"; then 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5910$as_echo "$CC" >&6; } 5911else 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5913$as_echo "no" >&6; } 5914fi 5915 5916 5917 test -n "$CC" && break 5918 done 5919fi 5920if test -z "$CC"; then 5921 ac_ct_CC=$CC 5922 for ac_prog in cl.exe 5923do 5924 # Extract the first word of "$ac_prog", so it can be a program name with args. 5925set dummy $ac_prog; ac_word=$2 5926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5927$as_echo_n "checking for $ac_word... " >&6; } 5928if ${ac_cv_prog_ac_ct_CC+:} false; then : 5929 $as_echo_n "(cached) " >&6 5930else 5931 if test -n "$ac_ct_CC"; then 5932 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5933else 5934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5935for as_dir in $PATH 5936do 5937 IFS=$as_save_IFS 5938 test -z "$as_dir" && as_dir=. 5939 for ac_exec_ext in '' $ac_executable_extensions; do 5940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5941 ac_cv_prog_ac_ct_CC="$ac_prog" 5942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5943 break 2 5944 fi 5945done 5946 done 5947IFS=$as_save_IFS 5948 5949fi 5950fi 5951ac_ct_CC=$ac_cv_prog_ac_ct_CC 5952if test -n "$ac_ct_CC"; then 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5954$as_echo "$ac_ct_CC" >&6; } 5955else 5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5957$as_echo "no" >&6; } 5958fi 5959 5960 5961 test -n "$ac_ct_CC" && break 5962done 5963 5964 if test "x$ac_ct_CC" = x; then 5965 CC="" 5966 else 5967 case $cross_compiling:$ac_tool_warned in 5968yes:) 5969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5971ac_tool_warned=yes ;; 5972esac 5973 CC=$ac_ct_CC 5974 fi 5975fi 5976 5977fi 5978 5979 5980test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5981$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5982as_fn_error $? "no acceptable C compiler found in \$PATH 5983See \`config.log' for more details" "$LINENO" 5; } 5984 5985# Provide some information about the compiler. 5986$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5987set X $ac_compile 5988ac_compiler=$2 5989for ac_option in --version -v -V -qversion; do 5990 { { ac_try="$ac_compiler $ac_option >&5" 5991case "(($ac_try" in 5992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5993 *) ac_try_echo=$ac_try;; 5994esac 5995eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5996$as_echo "$ac_try_echo"; } >&5 5997 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5998 ac_status=$? 5999 if test -s conftest.err; then 6000 sed '10a\ 6001... rest of stderr output deleted ... 6002 10q' conftest.err >conftest.er1 6003 cat conftest.er1 >&5 6004 fi 6005 rm -f conftest.er1 conftest.err 6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6007 test $ac_status = 0; } 6008done 6009 6010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 6011$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 6012if ${ac_cv_c_compiler_gnu+:} false; then : 6013 $as_echo_n "(cached) " >&6 6014else 6015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6016/* end confdefs.h. */ 6017 6018int 6019main () 6020{ 6021#ifndef __GNUC__ 6022 choke me 6023#endif 6024 6025 ; 6026 return 0; 6027} 6028_ACEOF 6029if ac_fn_c_try_compile "$LINENO"; then : 6030 ac_compiler_gnu=yes 6031else 6032 ac_compiler_gnu=no 6033fi 6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6035ac_cv_c_compiler_gnu=$ac_compiler_gnu 6036 6037fi 6038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 6039$as_echo "$ac_cv_c_compiler_gnu" >&6; } 6040if test $ac_compiler_gnu = yes; then 6041 GCC=yes 6042else 6043 GCC= 6044fi 6045ac_test_CFLAGS=${CFLAGS+set} 6046ac_save_CFLAGS=$CFLAGS 6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 6048$as_echo_n "checking whether $CC accepts -g... " >&6; } 6049if ${ac_cv_prog_cc_g+:} false; then : 6050 $as_echo_n "(cached) " >&6 6051else 6052 ac_save_c_werror_flag=$ac_c_werror_flag 6053 ac_c_werror_flag=yes 6054 ac_cv_prog_cc_g=no 6055 CFLAGS="-g" 6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057/* end confdefs.h. */ 6058 6059int 6060main () 6061{ 6062 6063 ; 6064 return 0; 6065} 6066_ACEOF 6067if ac_fn_c_try_compile "$LINENO"; then : 6068 ac_cv_prog_cc_g=yes 6069else 6070 CFLAGS="" 6071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6072/* end confdefs.h. */ 6073 6074int 6075main () 6076{ 6077 6078 ; 6079 return 0; 6080} 6081_ACEOF 6082if ac_fn_c_try_compile "$LINENO"; then : 6083 6084else 6085 ac_c_werror_flag=$ac_save_c_werror_flag 6086 CFLAGS="-g" 6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6088/* end confdefs.h. */ 6089 6090int 6091main () 6092{ 6093 6094 ; 6095 return 0; 6096} 6097_ACEOF 6098if ac_fn_c_try_compile "$LINENO"; then : 6099 ac_cv_prog_cc_g=yes 6100fi 6101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6102fi 6103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6104fi 6105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6106 ac_c_werror_flag=$ac_save_c_werror_flag 6107fi 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 6109$as_echo "$ac_cv_prog_cc_g" >&6; } 6110if test "$ac_test_CFLAGS" = set; then 6111 CFLAGS=$ac_save_CFLAGS 6112elif test $ac_cv_prog_cc_g = yes; then 6113 if test "$GCC" = yes; then 6114 CFLAGS="-g -O2" 6115 else 6116 CFLAGS="-g" 6117 fi 6118else 6119 if test "$GCC" = yes; then 6120 CFLAGS="-O2" 6121 else 6122 CFLAGS= 6123 fi 6124fi 6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 6126$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 6127if ${ac_cv_prog_cc_c89+:} false; then : 6128 $as_echo_n "(cached) " >&6 6129else 6130 ac_cv_prog_cc_c89=no 6131ac_save_CC=$CC 6132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6133/* end confdefs.h. */ 6134#include <stdarg.h> 6135#include <stdio.h> 6136struct stat; 6137/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 6138struct buf { int x; }; 6139FILE * (*rcsopen) (struct buf *, struct stat *, int); 6140static char *e (p, i) 6141 char **p; 6142 int i; 6143{ 6144 return p[i]; 6145} 6146static char *f (char * (*g) (char **, int), char **p, ...) 6147{ 6148 char *s; 6149 va_list v; 6150 va_start (v,p); 6151 s = g (p, va_arg (v,int)); 6152 va_end (v); 6153 return s; 6154} 6155 6156/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 6157 function prototypes and stuff, but not '\xHH' hex character constants. 6158 These don't provoke an error unfortunately, instead are silently treated 6159 as 'x'. The following induces an error, until -std is added to get 6160 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 6161 array size at least. It's necessary to write '\x00'==0 to get something 6162 that's true only with -std. */ 6163int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 6164 6165/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 6166 inside strings and character constants. */ 6167#define FOO(x) 'x' 6168int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 6169 6170int test (int i, double x); 6171struct s1 {int (*f) (int a);}; 6172struct s2 {int (*f) (double a);}; 6173int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 6174int argc; 6175char **argv; 6176int 6177main () 6178{ 6179return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 6180 ; 6181 return 0; 6182} 6183_ACEOF 6184for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 6185 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 6186do 6187 CC="$ac_save_CC $ac_arg" 6188 if ac_fn_c_try_compile "$LINENO"; then : 6189 ac_cv_prog_cc_c89=$ac_arg 6190fi 6191rm -f core conftest.err conftest.$ac_objext 6192 test "x$ac_cv_prog_cc_c89" != "xno" && break 6193done 6194rm -f conftest.$ac_ext 6195CC=$ac_save_CC 6196 6197fi 6198# AC_CACHE_VAL 6199case "x$ac_cv_prog_cc_c89" in 6200 x) 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 6202$as_echo "none needed" >&6; } ;; 6203 xno) 6204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 6205$as_echo "unsupported" >&6; } ;; 6206 *) 6207 CC="$CC $ac_cv_prog_cc_c89" 6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 6209$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 6210esac 6211if test "x$ac_cv_prog_cc_c89" != xno; then : 6212 6213fi 6214 6215ac_ext=c 6216ac_cpp='$CPP $CPPFLAGS' 6217ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6218ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6219ac_compiler_gnu=$ac_cv_c_compiler_gnu 6220 6221ac_ext=c 6222ac_cpp='$CPP $CPPFLAGS' 6223ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6224ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6225ac_compiler_gnu=$ac_cv_c_compiler_gnu 6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 6227$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 6228if ${am_cv_prog_cc_c_o+:} false; then : 6229 $as_echo_n "(cached) " >&6 6230else 6231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6232/* end confdefs.h. */ 6233 6234int 6235main () 6236{ 6237 6238 ; 6239 return 0; 6240} 6241_ACEOF 6242 # Make sure it works both with $CC and with simple cc. 6243 # Following AC_PROG_CC_C_O, we do the test twice because some 6244 # compilers refuse to overwrite an existing .o file with -o, 6245 # though they will create one. 6246 am_cv_prog_cc_c_o=yes 6247 for am_i in 1 2; do 6248 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 6249 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 6250 ac_status=$? 6251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6252 (exit $ac_status); } \ 6253 && test -f conftest2.$ac_objext; then 6254 : OK 6255 else 6256 am_cv_prog_cc_c_o=no 6257 break 6258 fi 6259 done 6260 rm -f core conftest* 6261 unset am_i 6262fi 6263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 6264$as_echo "$am_cv_prog_cc_c_o" >&6; } 6265if test "$am_cv_prog_cc_c_o" != yes; then 6266 # Losing compiler, so override with the script. 6267 # FIXME: It is wrong to rewrite CC. 6268 # But if we don't then we get into trouble of one sort or another. 6269 # A longer-term fix would be to have automake use am__CC in this case, 6270 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 6271 CC="$am_aux_dir/compile $CC" 6272fi 6273ac_ext=c 6274ac_cpp='$CPP $CPPFLAGS' 6275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6277ac_compiler_gnu=$ac_cv_c_compiler_gnu 6278 6279 6280depcc="$CC" am_compiler_list= 6281 6282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 6283$as_echo_n "checking dependency style of $depcc... " >&6; } 6284if ${am_cv_CC_dependencies_compiler_type+:} false; then : 6285 $as_echo_n "(cached) " >&6 6286else 6287 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 6288 # We make a subdir and do the tests there. Otherwise we can end up 6289 # making bogus files that we don't know about and never remove. For 6290 # instance it was reported that on HP-UX the gcc test will end up 6291 # making a dummy file named 'D' -- because '-MD' means "put the output 6292 # in D". 6293 rm -rf conftest.dir 6294 mkdir conftest.dir 6295 # Copy depcomp to subdir because otherwise we won't find it if we're 6296 # using a relative directory. 6297 cp "$am_depcomp" conftest.dir 6298 cd conftest.dir 6299 # We will build objects and dependencies in a subdirectory because 6300 # it helps to detect inapplicable dependency modes. For instance 6301 # both Tru64's cc and ICC support -MD to output dependencies as a 6302 # side effect of compilation, but ICC will put the dependencies in 6303 # the current directory while Tru64 will put them in the object 6304 # directory. 6305 mkdir sub 6306 6307 am_cv_CC_dependencies_compiler_type=none 6308 if test "$am_compiler_list" = ""; then 6309 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 6310 fi 6311 am__universal=false 6312 case " $depcc " in #( 6313 *\ -arch\ *\ -arch\ *) am__universal=true ;; 6314 esac 6315 6316 for depmode in $am_compiler_list; do 6317 # Setup a source with many dependencies, because some compilers 6318 # like to wrap large dependency lists on column 80 (with \), and 6319 # we should not choose a depcomp mode which is confused by this. 6320 # 6321 # We need to recreate these files for each test, as the compiler may 6322 # overwrite some of them when testing with obscure command lines. 6323 # This happens at least with the AIX C compiler. 6324 : > sub/conftest.c 6325 for i in 1 2 3 4 5 6; do 6326 echo '#include "conftst'$i'.h"' >> sub/conftest.c 6327 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 6328 # Solaris 10 /bin/sh. 6329 echo '/* dummy */' > sub/conftst$i.h 6330 done 6331 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 6332 6333 # We check with '-c' and '-o' for the sake of the "dashmstdout" 6334 # mode. It turns out that the SunPro C++ compiler does not properly 6335 # handle '-M -o', and we need to detect this. Also, some Intel 6336 # versions had trouble with output in subdirs. 6337 am__obj=sub/conftest.${OBJEXT-o} 6338 am__minus_obj="-o $am__obj" 6339 case $depmode in 6340 gcc) 6341 # This depmode causes a compiler race in universal mode. 6342 test "$am__universal" = false || continue 6343 ;; 6344 nosideeffect) 6345 # After this tag, mechanisms are not by side-effect, so they'll 6346 # only be used when explicitly requested. 6347 if test "x$enable_dependency_tracking" = xyes; then 6348 continue 6349 else 6350 break 6351 fi 6352 ;; 6353 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 6354 # This compiler won't grok '-c -o', but also, the minuso test has 6355 # not run yet. These depmodes are late enough in the game, and 6356 # so weak that their functioning should not be impacted. 6357 am__obj=conftest.${OBJEXT-o} 6358 am__minus_obj= 6359 ;; 6360 none) break ;; 6361 esac 6362 if depmode=$depmode \ 6363 source=sub/conftest.c object=$am__obj \ 6364 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 6365 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 6366 >/dev/null 2>conftest.err && 6367 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 6368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 6369 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 6370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 6371 # icc doesn't choke on unknown options, it will just issue warnings 6372 # or remarks (even with -Werror). So we grep stderr for any message 6373 # that says an option was ignored or not supported. 6374 # When given -MP, icc 7.0 and 7.1 complain thusly: 6375 # icc: Command line warning: ignoring option '-M'; no argument required 6376 # The diagnosis changed in icc 8.0: 6377 # icc: Command line remark: option '-MP' not supported 6378 if (grep 'ignoring option' conftest.err || 6379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 6380 am_cv_CC_dependencies_compiler_type=$depmode 6381 break 6382 fi 6383 fi 6384 done 6385 6386 cd .. 6387 rm -rf conftest.dir 6388else 6389 am_cv_CC_dependencies_compiler_type=none 6390fi 6391 6392fi 6393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 6394$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 6395CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 6396 6397 if 6398 test "x$enable_dependency_tracking" != xno \ 6399 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 6400 am__fastdepCC_TRUE= 6401 am__fastdepCC_FALSE='#' 6402else 6403 am__fastdepCC_TRUE='#' 6404 am__fastdepCC_FALSE= 6405fi 6406 6407 6408ac_ext=c 6409ac_cpp='$CPP $CPPFLAGS' 6410ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6411ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6412ac_compiler_gnu=$ac_cv_c_compiler_gnu 6413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6414$as_echo_n "checking how to run the C preprocessor... " >&6; } 6415# On Suns, sometimes $CPP names a directory. 6416if test -n "$CPP" && test -d "$CPP"; then 6417 CPP= 6418fi 6419if test -z "$CPP"; then 6420 if ${ac_cv_prog_CPP+:} false; then : 6421 $as_echo_n "(cached) " >&6 6422else 6423 # Double quotes because CPP needs to be expanded 6424 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6425 do 6426 ac_preproc_ok=false 6427for ac_c_preproc_warn_flag in '' yes 6428do 6429 # Use a header file that comes with gcc, so configuring glibc 6430 # with a fresh cross-compiler works. 6431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6432 # <limits.h> exists even on freestanding compilers. 6433 # On the NeXT, cc -E runs the code through the compiler's parser, 6434 # not just through cpp. "Syntax error" is here to catch this case. 6435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6436/* end confdefs.h. */ 6437#ifdef __STDC__ 6438# include <limits.h> 6439#else 6440# include <assert.h> 6441#endif 6442 Syntax error 6443_ACEOF 6444if ac_fn_c_try_cpp "$LINENO"; then : 6445 6446else 6447 # Broken: fails on valid input. 6448continue 6449fi 6450rm -f conftest.err conftest.i conftest.$ac_ext 6451 6452 # OK, works on sane cases. Now check whether nonexistent headers 6453 # can be detected and how. 6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6455/* end confdefs.h. */ 6456#include <ac_nonexistent.h> 6457_ACEOF 6458if ac_fn_c_try_cpp "$LINENO"; then : 6459 # Broken: success on invalid input. 6460continue 6461else 6462 # Passes both tests. 6463ac_preproc_ok=: 6464break 6465fi 6466rm -f conftest.err conftest.i conftest.$ac_ext 6467 6468done 6469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6470rm -f conftest.i conftest.err conftest.$ac_ext 6471if $ac_preproc_ok; then : 6472 break 6473fi 6474 6475 done 6476 ac_cv_prog_CPP=$CPP 6477 6478fi 6479 CPP=$ac_cv_prog_CPP 6480else 6481 ac_cv_prog_CPP=$CPP 6482fi 6483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6484$as_echo "$CPP" >&6; } 6485ac_preproc_ok=false 6486for ac_c_preproc_warn_flag in '' yes 6487do 6488 # Use a header file that comes with gcc, so configuring glibc 6489 # with a fresh cross-compiler works. 6490 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6491 # <limits.h> exists even on freestanding compilers. 6492 # On the NeXT, cc -E runs the code through the compiler's parser, 6493 # not just through cpp. "Syntax error" is here to catch this case. 6494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6495/* end confdefs.h. */ 6496#ifdef __STDC__ 6497# include <limits.h> 6498#else 6499# include <assert.h> 6500#endif 6501 Syntax error 6502_ACEOF 6503if ac_fn_c_try_cpp "$LINENO"; then : 6504 6505else 6506 # Broken: fails on valid input. 6507continue 6508fi 6509rm -f conftest.err conftest.i conftest.$ac_ext 6510 6511 # OK, works on sane cases. Now check whether nonexistent headers 6512 # can be detected and how. 6513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6514/* end confdefs.h. */ 6515#include <ac_nonexistent.h> 6516_ACEOF 6517if ac_fn_c_try_cpp "$LINENO"; then : 6518 # Broken: success on invalid input. 6519continue 6520else 6521 # Passes both tests. 6522ac_preproc_ok=: 6523break 6524fi 6525rm -f conftest.err conftest.i conftest.$ac_ext 6526 6527done 6528# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6529rm -f conftest.i conftest.err conftest.$ac_ext 6530if $ac_preproc_ok; then : 6531 6532else 6533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6534$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6535as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6536See \`config.log' for more details" "$LINENO" 5; } 6537fi 6538 6539ac_ext=c 6540ac_cpp='$CPP $CPPFLAGS' 6541ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6542ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6543ac_compiler_gnu=$ac_cv_c_compiler_gnu 6544 6545 6546# added -Wall for gcc, what about for others? 6547if test "x$GCC" = "xyes"; then 6548 CFLAGS="-Wall -Wno-implicit-int $CFLAGS" 6549fi 6550 6551# Help finding POSIX functions on some systems 6552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5 6553$as_echo_n "checking for library containing strerror... " >&6; } 6554if ${ac_cv_search_strerror+:} false; then : 6555 $as_echo_n "(cached) " >&6 6556else 6557 ac_func_search_save_LIBS=$LIBS 6558cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6559/* end confdefs.h. */ 6560 6561/* Override any GCC internal prototype to avoid an error. 6562 Use char because int might match the return type of a GCC 6563 builtin and then its argument prototype would still apply. */ 6564#ifdef __cplusplus 6565extern "C" 6566#endif 6567char strerror (); 6568int 6569main () 6570{ 6571return strerror (); 6572 ; 6573 return 0; 6574} 6575_ACEOF 6576for ac_lib in '' cposix; do 6577 if test -z "$ac_lib"; then 6578 ac_res="none required" 6579 else 6580 ac_res=-l$ac_lib 6581 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 6582 fi 6583 if ac_fn_c_try_link "$LINENO"; then : 6584 ac_cv_search_strerror=$ac_res 6585fi 6586rm -f core conftest.err conftest.$ac_objext \ 6587 conftest$ac_exeext 6588 if ${ac_cv_search_strerror+:} false; then : 6589 break 6590fi 6591done 6592if ${ac_cv_search_strerror+:} false; then : 6593 6594else 6595 ac_cv_search_strerror=no 6596fi 6597rm conftest.$ac_ext 6598LIBS=$ac_func_search_save_LIBS 6599fi 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5 6601$as_echo "$ac_cv_search_strerror" >&6; } 6602ac_res=$ac_cv_search_strerror 6603if test "$ac_res" != no; then : 6604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 6605 6606fi 6607 6608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 6609$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 6610if ${ac_cv_path_GREP+:} false; then : 6611 $as_echo_n "(cached) " >&6 6612else 6613 if test -z "$GREP"; then 6614 ac_path_GREP_found=false 6615 # Loop through the user's path and test for each of PROGNAME-LIST 6616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6617for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6618do 6619 IFS=$as_save_IFS 6620 test -z "$as_dir" && as_dir=. 6621 for ac_prog in grep ggrep; do 6622 for ac_exec_ext in '' $ac_executable_extensions; do 6623 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 6624 as_fn_executable_p "$ac_path_GREP" || continue 6625# Check for GNU ac_path_GREP and select it if it is found. 6626 # Check for GNU $ac_path_GREP 6627case `"$ac_path_GREP" --version 2>&1` in 6628*GNU*) 6629 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 6630*) 6631 ac_count=0 6632 $as_echo_n 0123456789 >"conftest.in" 6633 while : 6634 do 6635 cat "conftest.in" "conftest.in" >"conftest.tmp" 6636 mv "conftest.tmp" "conftest.in" 6637 cp "conftest.in" "conftest.nl" 6638 $as_echo 'GREP' >> "conftest.nl" 6639 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6641 as_fn_arith $ac_count + 1 && ac_count=$as_val 6642 if test $ac_count -gt ${ac_path_GREP_max-0}; then 6643 # Best one so far, save it but keep looking for a better one 6644 ac_cv_path_GREP="$ac_path_GREP" 6645 ac_path_GREP_max=$ac_count 6646 fi 6647 # 10*(2^10) chars as input seems more than enough 6648 test $ac_count -gt 10 && break 6649 done 6650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6651esac 6652 6653 $ac_path_GREP_found && break 3 6654 done 6655 done 6656 done 6657IFS=$as_save_IFS 6658 if test -z "$ac_cv_path_GREP"; then 6659 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6660 fi 6661else 6662 ac_cv_path_GREP=$GREP 6663fi 6664 6665fi 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 6667$as_echo "$ac_cv_path_GREP" >&6; } 6668 GREP="$ac_cv_path_GREP" 6669 6670 6671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 6672$as_echo_n "checking for egrep... " >&6; } 6673if ${ac_cv_path_EGREP+:} false; then : 6674 $as_echo_n "(cached) " >&6 6675else 6676 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 6677 then ac_cv_path_EGREP="$GREP -E" 6678 else 6679 if test -z "$EGREP"; then 6680 ac_path_EGREP_found=false 6681 # Loop through the user's path and test for each of PROGNAME-LIST 6682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6683for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6684do 6685 IFS=$as_save_IFS 6686 test -z "$as_dir" && as_dir=. 6687 for ac_prog in egrep; do 6688 for ac_exec_ext in '' $ac_executable_extensions; do 6689 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 6690 as_fn_executable_p "$ac_path_EGREP" || continue 6691# Check for GNU ac_path_EGREP and select it if it is found. 6692 # Check for GNU $ac_path_EGREP 6693case `"$ac_path_EGREP" --version 2>&1` in 6694*GNU*) 6695 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 6696*) 6697 ac_count=0 6698 $as_echo_n 0123456789 >"conftest.in" 6699 while : 6700 do 6701 cat "conftest.in" "conftest.in" >"conftest.tmp" 6702 mv "conftest.tmp" "conftest.in" 6703 cp "conftest.in" "conftest.nl" 6704 $as_echo 'EGREP' >> "conftest.nl" 6705 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 6706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6707 as_fn_arith $ac_count + 1 && ac_count=$as_val 6708 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 6709 # Best one so far, save it but keep looking for a better one 6710 ac_cv_path_EGREP="$ac_path_EGREP" 6711 ac_path_EGREP_max=$ac_count 6712 fi 6713 # 10*(2^10) chars as input seems more than enough 6714 test $ac_count -gt 10 && break 6715 done 6716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6717esac 6718 6719 $ac_path_EGREP_found && break 3 6720 done 6721 done 6722 done 6723IFS=$as_save_IFS 6724 if test -z "$ac_cv_path_EGREP"; then 6725 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6726 fi 6727else 6728 ac_cv_path_EGREP=$EGREP 6729fi 6730 6731 fi 6732fi 6733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 6734$as_echo "$ac_cv_path_EGREP" >&6; } 6735 EGREP="$ac_cv_path_EGREP" 6736 6737 6738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6739$as_echo_n "checking for ANSI C header files... " >&6; } 6740if ${ac_cv_header_stdc+:} false; then : 6741 $as_echo_n "(cached) " >&6 6742else 6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6744/* end confdefs.h. */ 6745#include <stdlib.h> 6746#include <stdarg.h> 6747#include <string.h> 6748#include <float.h> 6749 6750int 6751main () 6752{ 6753 6754 ; 6755 return 0; 6756} 6757_ACEOF 6758if ac_fn_c_try_compile "$LINENO"; then : 6759 ac_cv_header_stdc=yes 6760else 6761 ac_cv_header_stdc=no 6762fi 6763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6764 6765if test $ac_cv_header_stdc = yes; then 6766 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6768/* end confdefs.h. */ 6769#include <string.h> 6770 6771_ACEOF 6772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6773 $EGREP "memchr" >/dev/null 2>&1; then : 6774 6775else 6776 ac_cv_header_stdc=no 6777fi 6778rm -f conftest* 6779 6780fi 6781 6782if test $ac_cv_header_stdc = yes; then 6783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6785/* end confdefs.h. */ 6786#include <stdlib.h> 6787 6788_ACEOF 6789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6790 $EGREP "free" >/dev/null 2>&1; then : 6791 6792else 6793 ac_cv_header_stdc=no 6794fi 6795rm -f conftest* 6796 6797fi 6798 6799if test $ac_cv_header_stdc = yes; then 6800 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6801 if test "$cross_compiling" = yes; then : 6802 : 6803else 6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6805/* end confdefs.h. */ 6806#include <ctype.h> 6807#include <stdlib.h> 6808#if ((' ' & 0x0FF) == 0x020) 6809# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6810# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 6811#else 6812# define ISLOWER(c) \ 6813 (('a' <= (c) && (c) <= 'i') \ 6814 || ('j' <= (c) && (c) <= 'r') \ 6815 || ('s' <= (c) && (c) <= 'z')) 6816# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 6817#endif 6818 6819#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 6820int 6821main () 6822{ 6823 int i; 6824 for (i = 0; i < 256; i++) 6825 if (XOR (islower (i), ISLOWER (i)) 6826 || toupper (i) != TOUPPER (i)) 6827 return 2; 6828 return 0; 6829} 6830_ACEOF 6831if ac_fn_c_try_run "$LINENO"; then : 6832 6833else 6834 ac_cv_header_stdc=no 6835fi 6836rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 6837 conftest.$ac_objext conftest.beam conftest.$ac_ext 6838fi 6839 6840fi 6841fi 6842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 6843$as_echo "$ac_cv_header_stdc" >&6; } 6844if test $ac_cv_header_stdc = yes; then 6845 6846$as_echo "#define STDC_HEADERS 1" >>confdefs.h 6847 6848fi 6849 6850# On IRIX 5.3, sys/types and inttypes.h are conflicting. 6851for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 6852 inttypes.h stdint.h unistd.h 6853do : 6854 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6855ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 6856" 6857if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 6858 cat >>confdefs.h <<_ACEOF 6859#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6860_ACEOF 6861 6862fi 6863 6864done 6865 6866 6867 6868 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 6869if test "x$ac_cv_header_minix_config_h" = xyes; then : 6870 MINIX=yes 6871else 6872 MINIX= 6873fi 6874 6875 6876 if test "$MINIX" = yes; then 6877 6878$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 6879 6880 6881$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 6882 6883 6884$as_echo "#define _MINIX 1" >>confdefs.h 6885 6886 fi 6887 6888 6889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 6890$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 6891if ${ac_cv_safe_to_define___extensions__+:} false; then : 6892 $as_echo_n "(cached) " >&6 6893else 6894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6895/* end confdefs.h. */ 6896 6897# define __EXTENSIONS__ 1 6898 $ac_includes_default 6899int 6900main () 6901{ 6902 6903 ; 6904 return 0; 6905} 6906_ACEOF 6907if ac_fn_c_try_compile "$LINENO"; then : 6908 ac_cv_safe_to_define___extensions__=yes 6909else 6910 ac_cv_safe_to_define___extensions__=no 6911fi 6912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6913fi 6914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 6915$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 6916 test $ac_cv_safe_to_define___extensions__ = yes && 6917 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 6918 6919 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 6920 6921 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 6922 6923 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 6924 6925 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 6926 6927 6928 6929 6930# catch -Werror and similar options when running configure 6931cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6932/* end confdefs.h. */ 6933#include <stdio.h> 6934int 6935main () 6936{ 6937int i; static j; int *p; char *c; 6938 switch (*p = p = *c) { case 0: printf("%Q", c, p); } 6939 *c = &i; c = p; 6940 while (1 || (unsigned int)3 >= 0 || ((int)-1) == ((unsigned int)1)); 6941 6942 ; 6943 return 0; 6944} 6945_ACEOF 6946if ac_fn_c_try_compile "$LINENO"; then : 6947 6948else 6949 as_fn_error $? "\" 6950configure is not able to compile programs with warnings. Please 6951remove all offending options like -Werror from the CFLAGS and 6952CPPFLAGS variables and run configure again.\"" "$LINENO" 5 6953fi 6954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6955 6956# check size of some types 6957ac_save_CFLAGS="$CFLAGS" 6958CFLAGS="$CFLAGS $X_CFLAGS" 6959# The cast to long int works around a bug in the HP C Compiler 6960# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6961# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6962# This bug is HP SR number 8606223364. 6963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 6964$as_echo_n "checking size of int... " >&6; } 6965if ${ac_cv_sizeof_int+:} false; then : 6966 $as_echo_n "(cached) " >&6 6967else 6968 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : 6969 6970else 6971 if test "$ac_cv_type_int" = yes; then 6972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6974as_fn_error 77 "cannot compute sizeof (int) 6975See \`config.log' for more details" "$LINENO" 5; } 6976 else 6977 ac_cv_sizeof_int=0 6978 fi 6979fi 6980 6981fi 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 6983$as_echo "$ac_cv_sizeof_int" >&6; } 6984 6985 6986 6987cat >>confdefs.h <<_ACEOF 6988#define SIZEOF_INT $ac_cv_sizeof_int 6989_ACEOF 6990 6991 6992# The cast to long int works around a bug in the HP C Compiler 6993# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 6994# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 6995# This bug is HP SR number 8606223364. 6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 6997$as_echo_n "checking size of long... " >&6; } 6998if ${ac_cv_sizeof_long+:} false; then : 6999 $as_echo_n "(cached) " >&6 7000else 7001 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : 7002 7003else 7004 if test "$ac_cv_type_long" = yes; then 7005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7007as_fn_error 77 "cannot compute sizeof (long) 7008See \`config.log' for more details" "$LINENO" 5; } 7009 else 7010 ac_cv_sizeof_long=0 7011 fi 7012fi 7013 7014fi 7015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 7016$as_echo "$ac_cv_sizeof_long" >&6; } 7017 7018 7019 7020cat >>confdefs.h <<_ACEOF 7021#define SIZEOF_LONG $ac_cv_sizeof_long 7022_ACEOF 7023 7024 7025# The cast to long int works around a bug in the HP C Compiler 7026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7028# This bug is HP SR number 8606223364. 7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Window" >&5 7030$as_echo_n "checking size of Window... " >&6; } 7031if ${ac_cv_sizeof_Window+:} false; then : 7032 $as_echo_n "(cached) " >&6 7033else 7034 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (Window))" "ac_cv_sizeof_Window" "#include <stdio.h> 7035#include <X11/X.h> 7036"; then : 7037 7038else 7039 if test "$ac_cv_type_Window" = yes; then 7040 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7042as_fn_error 77 "cannot compute sizeof (Window) 7043See \`config.log' for more details" "$LINENO" 5; } 7044 else 7045 ac_cv_sizeof_Window=0 7046 fi 7047fi 7048 7049fi 7050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_Window" >&5 7051$as_echo "$ac_cv_sizeof_Window" >&6; } 7052 7053 7054 7055cat >>confdefs.h <<_ACEOF 7056#define SIZEOF_WINDOW $ac_cv_sizeof_Window 7057_ACEOF 7058 7059 7060# The cast to long int works around a bug in the HP C Compiler 7061# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7062# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7063# This bug is HP SR number 8606223364. 7064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of Pixel" >&5 7065$as_echo_n "checking size of Pixel... " >&6; } 7066if ${ac_cv_sizeof_Pixel+:} false; then : 7067 $as_echo_n "(cached) " >&6 7068else 7069 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (Pixel))" "ac_cv_sizeof_Pixel" "#include <stdio.h> 7070#include <X11/Intrinsic.h> 7071"; then : 7072 7073else 7074 if test "$ac_cv_type_Pixel" = yes; then 7075 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7076$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7077as_fn_error 77 "cannot compute sizeof (Pixel) 7078See \`config.log' for more details" "$LINENO" 5; } 7079 else 7080 ac_cv_sizeof_Pixel=0 7081 fi 7082fi 7083 7084fi 7085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_Pixel" >&5 7086$as_echo "$ac_cv_sizeof_Pixel" >&6; } 7087 7088 7089 7090cat >>confdefs.h <<_ACEOF 7091#define SIZEOF_PIXEL $ac_cv_sizeof_Pixel 7092_ACEOF 7093 7094 7095# The cast to long int works around a bug in the HP C Compiler 7096# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 7097# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 7098# This bug is HP SR number 8606223364. 7099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 7100$as_echo_n "checking size of void *... " >&6; } 7101if ${ac_cv_sizeof_void_p+:} false; then : 7102 $as_echo_n "(cached) " >&6 7103else 7104 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 7105 7106else 7107 if test "$ac_cv_type_void_p" = yes; then 7108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7110as_fn_error 77 "cannot compute sizeof (void *) 7111See \`config.log' for more details" "$LINENO" 5; } 7112 else 7113 ac_cv_sizeof_void_p=0 7114 fi 7115fi 7116 7117fi 7118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 7119$as_echo "$ac_cv_sizeof_void_p" >&6; } 7120 7121 7122 7123cat >>confdefs.h <<_ACEOF 7124#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 7125_ACEOF 7126 7127 7128CFLAGS="$ac_save_CFLAGS" 7129size_check_failed="" 7130if test "$ac_cv_sizeof_void_p" -gt "$ac_cv_sizeof_long"; then 7131 echo "The type void * is bigger than long." 7132 size_check_failed=1 7133fi 7134if test "$ac_cv_sizeof_Window" -gt "$ac_cv_sizeof_long"; then 7135 echo "The type Window is bigger than long." 7136 size_check_failed=1 7137fi 7138if test "$ac_cv_sizeof_Pixel" -gt "$ac_cv_sizeof_long"; then 7139 echo "The type Pixel is bigger than long." 7140 size_check_failed=1 7141fi 7142if test x"$size_check_failed" = x1; then 7143 echo "This is not supported by the module interface yet (make_new_vpacket)." 7144 echo "Detected type sizes are: int($ac_cv_sizeof_int), long($ac_cv_sizeof_long), void*($ac_cv_sizeof_void_p), Window($ac_cv_sizeof_Window), Pixel($ac_cv_sizeof_Pixel)" 7145 echo "Please report details of your system and this message to ${FVWMWORKERSLIST}." 7146 echo 7147 exit 1 7148fi 7149 7150# 'unset' is not portable, but setting to null is not enough to avoid using 7151# the cached value! For ancient shells "rm config.cache" is a solution. 7152UNSET=true 7153if unset UNSET 2>/dev/null; then UNSET=unset; fi 7154 7155 7156# ********* multibyte 7157# FreeBSD has libxpg4, check this and use if found. 7158# Make sure we can run config.sub. 7159$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 7160 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 7161 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 7163$as_echo_n "checking build system type... " >&6; } 7164if ${ac_cv_build+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 ac_build_alias=$build_alias 7168test "x$ac_build_alias" = x && 7169 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 7170test "x$ac_build_alias" = x && 7171 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 7172ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 7173 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 7174 7175fi 7176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 7177$as_echo "$ac_cv_build" >&6; } 7178case $ac_cv_build in 7179*-*-*) ;; 7180*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 7181esac 7182build=$ac_cv_build 7183ac_save_IFS=$IFS; IFS='-' 7184set x $ac_cv_build 7185shift 7186build_cpu=$1 7187build_vendor=$2 7188shift; shift 7189# Remember, the first character of IFS is used to create $*, 7190# except with old shells: 7191build_os=$* 7192IFS=$ac_save_IFS 7193case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 7194 7195 7196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 7197$as_echo_n "checking host system type... " >&6; } 7198if ${ac_cv_host+:} false; then : 7199 $as_echo_n "(cached) " >&6 7200else 7201 if test "x$host_alias" = x; then 7202 ac_cv_host=$ac_cv_build 7203else 7204 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 7205 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 7206fi 7207 7208fi 7209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 7210$as_echo "$ac_cv_host" >&6; } 7211case $ac_cv_host in 7212*-*-*) ;; 7213*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 7214esac 7215host=$ac_cv_host 7216ac_save_IFS=$IFS; IFS='-' 7217set x $ac_cv_host 7218shift 7219host_cpu=$1 7220host_vendor=$2 7221shift; shift 7222# Remember, the first character of IFS is used to create $*, 7223# except with old shells: 7224host_os=$* 7225IFS=$ac_save_IFS 7226case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 7227 7228 7229case $host_os in 7230freebsd*) 7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setlocale in -lxpg4" >&5 7232$as_echo_n "checking for setlocale in -lxpg4... " >&6; } 7233if ${ac_cv_lib_xpg4_setlocale+:} false; then : 7234 $as_echo_n "(cached) " >&6 7235else 7236 ac_check_lib_save_LIBS=$LIBS 7237LIBS="-lxpg4 $LIBS" 7238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7239/* end confdefs.h. */ 7240 7241/* Override any GCC internal prototype to avoid an error. 7242 Use char because int might match the return type of a GCC 7243 builtin and then its argument prototype would still apply. */ 7244#ifdef __cplusplus 7245extern "C" 7246#endif 7247char setlocale (); 7248int 7249main () 7250{ 7251return setlocale (); 7252 ; 7253 return 0; 7254} 7255_ACEOF 7256if ac_fn_c_try_link "$LINENO"; then : 7257 ac_cv_lib_xpg4_setlocale=yes 7258else 7259 ac_cv_lib_xpg4_setlocale=no 7260fi 7261rm -f core conftest.err conftest.$ac_objext \ 7262 conftest$ac_exeext conftest.$ac_ext 7263LIBS=$ac_check_lib_save_LIBS 7264fi 7265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xpg4_setlocale" >&5 7266$as_echo "$ac_cv_lib_xpg4_setlocale" >&6; } 7267if test "x$ac_cv_lib_xpg4_setlocale" = xyes; then : 7268 LIBS="$LIBS -lxpg4" 7269fi 7270;; 7271*) 7272 ;; 7273esac 7274 7275# *** pkg-config 7276# unfortunately, we need pkg-config for the detection of certain libs: 7277# - version of fontconfig without fontconfig-config 7278# - version of fribidi without fribidi-config 7279 7280# Check whether --with-pkgconfig-prefix was given. 7281if test "${with_pkgconfig_prefix+set}" = set; then : 7282 withval=$with_pkgconfig_prefix; pkgconfig_config_prefix="$withval" 7283else 7284 pkgconfig_config_prefix="" 7285fi 7286 7287 7288# Check whether --with-pkgconfig-exec-prefix was given. 7289if test "${with_pkgconfig_exec_prefix+set}" = set; then : 7290 withval=$with_pkgconfig_exec_prefix; pkgconfig_config_exec_prefix="$withval" 7291else 7292 pkgconfig_config_exec_prefix="" 7293fi 7294 7295 7296if test x$pkgconfig_config_exec_prefix != x ; then 7297 pkgconfig_config_args="$pkgconfig_config_args --exec-prefix=$pkgconfig_config_exec_prefix" 7298 if test x${PKG_CONFIG+set} != xset ; then 7299 PKG_CONFIG=$pkgconfig_config_exec_prefix/bin/pkg-config 7300 fi 7301fi 7302if test x$pkgconfig_config_prefix != x ; then 7303 pkgconfig_config_args="$pkgconfig_config_args --prefix=$pkgconfig_config_prefix" 7304 if test x${PKG_CONFIG+set} != xset ; then 7305 PKG_CONFIG=$pkgconfig_config_prefix/bin/pkg-config 7306 fi 7307fi 7308# Extract the first word of "pkg-config", so it can be a program name with args. 7309set dummy pkg-config; ac_word=$2 7310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7311$as_echo_n "checking for $ac_word... " >&6; } 7312if ${ac_cv_path_PKG_CONFIG+:} false; then : 7313 $as_echo_n "(cached) " >&6 7314else 7315 case $PKG_CONFIG in 7316 [\\/]* | ?:[\\/]*) 7317 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7318 ;; 7319 *) 7320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7321for as_dir in $PATH 7322do 7323 IFS=$as_save_IFS 7324 test -z "$as_dir" && as_dir=. 7325 for ac_exec_ext in '' $ac_executable_extensions; do 7326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7327 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7329 break 2 7330 fi 7331done 7332 done 7333IFS=$as_save_IFS 7334 7335 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7336 ;; 7337esac 7338fi 7339PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7340if test -n "$PKG_CONFIG"; then 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 7342$as_echo "$PKG_CONFIG" >&6; } 7343else 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7345$as_echo "no" >&6; } 7346fi 7347 7348 7349 7350 7351 7352# Building man pages & HTML documentation (from XML source). 7353# extract command names 7354if test ! x"$SED" = x; then 7355 DOC_COMMANDS=` 7356 sed -n ' 7357 :findhead 7358 /#.*define.*CMD_ENT/bfindcmd 7359 n 7360 bfindhead 7361 :findcmd 7362 n 7363 /CMD_ENT/bfound 7364 bfindcmd 7365 :found 7366 /"#"/bfindcmd 7367 /"propertychange"/bfindcmd 7368 /"readwritecolors"/bfindcmd 7369 /"send_.*"/bfindcmd 7370 /"set_.*"/bfindcmd 7371 s/.*CMD_ENT.*CMD_// 7372 s/,.*// 7373 p 7374 n 7375 bfindcmd 7376 ' < fvwm/functable.c` 7377 DOC_COMMANDS=`echo $DOC_COMMANDS` 7378 # with .xml suffix 7379 DOC_COMMANDS_XML=`for i in $DOC_COMMANDS; do echo ${i}.xml; done` 7380 DOC_COMMANDS_XML=`echo $DOC_COMMANDS_XML` 7381 # with .xml suffix and path 7382 DOC_COMMANDS_XML_PATH=` 7383 for i in $DOC_COMMANDS; do 7384 echo ../commands/${i}.xml; 7385 done 7386 ` 7387 DOC_COMMANDS_XML_PATH=`echo $DOC_COMMANDS_XML_PATH` 7388 # with .html suffix 7389 DOC_COMMANDS_HTML=`for i in $DOC_COMMANDS; do echo ${i}.html; done` 7390 DOC_COMMANDS_HTML=`echo $DOC_COMMANDS_HTML` 7391 # extract module names 7392 DOC_MODULES="" 7393 DOC_MODULES=` 7394 for i in modules/*; do echo "$i"; done | 7395 sed -n ' 7396 :search 7397 /^modules.Fvwm/bfound 7398 bnext 7399 :found 7400 s/modules.// 7401 p 7402 :next 7403 n 7404 bsearch 7405 ' 7406 ` 7407 DOC_MODULES=`echo $DOC_MODULES` 7408 DOC_MODULES_HTML=`for i in $DOC_MODULES; do echo ${i}.html; done` 7409 DOC_MODULES_HTML=`echo $DOC_MODULES_HTML` 7410 # extract man page section names 7411 DOC_SECTIONS=`cat doc/fvwm/sections` 7412 DOC_SECTIONS=`echo $DOC_SECTIONS` 7413 DOC_SECTIONS_XML=`for i in $DOC_SECTIONS; do echo ${i}.xml; done` 7414 DOC_SECTIONS_XML=`echo $DOC_SECTIONS_XML` 7415 DOC_SECTIONS_XML_PATH=`for i in $DOC_SECTIONS; do echo ${i}.xml; done` 7416 DOC_SECTIONS_XML_PATH=`echo $DOC_SECTIONS_XML` 7417else 7418 DOC_COMMANDS="" 7419 DOC_COMMANDS_XML="" 7420 DOC_COMMANDS_XML_PATH="" 7421 DOC_COMMANDS_HTML="" 7422 DOC_MODULES="" 7423 DOC_MODULES_HTML="" 7424 DOC_SECTIONS="" 7425 DOC_SECTIONS_XML="" 7426 DOC_SECTIONS_XML_PATH="" 7427fi 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438problem_mandoc="" 7439# Extract the first word of "xsltproc", so it can be a program name with args. 7440set dummy xsltproc; ac_word=$2 7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7442$as_echo_n "checking for $ac_word... " >&6; } 7443if ${ac_cv_prog_XSLTPROC+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 if test -n "$XSLTPROC"; then 7447 ac_cv_prog_XSLTPROC="$XSLTPROC" # Let the user override the test. 7448else 7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7450for as_dir in $PATH 7451do 7452 IFS=$as_save_IFS 7453 test -z "$as_dir" && as_dir=. 7454 for ac_exec_ext in '' $ac_executable_extensions; do 7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7456 ac_cv_prog_XSLTPROC="xsltproc" 7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7458 break 2 7459 fi 7460done 7461 done 7462IFS=$as_save_IFS 7463 7464 test -z "$ac_cv_prog_XSLTPROC" && ac_cv_prog_XSLTPROC="""" 7465fi 7466fi 7467XSLTPROC=$ac_cv_prog_XSLTPROC 7468if test -n "$XSLTPROC"; then 7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5 7470$as_echo "$XSLTPROC" >&6; } 7471else 7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7473$as_echo "no" >&6; } 7474fi 7475 7476 7477 7478# Check whether --enable-mandoc was given. 7479if test "${enable_mandoc+set}" = set; then : 7480 enableval=$enable_mandoc; if test x"$enableval" = xyes; then 7481 with_mandoc="yes, check" 7482 else 7483 with_mandoc="no" 7484 problem_mandoc=": Explicitly disabled" 7485 fi 7486else 7487 with_mandoc="no" 7488 7489fi 7490 7491 7492if test ! x"$with_mandoc" = xno; then 7493 if test x"$XSLTPROC" = x ; then 7494 with_mandoc="no" 7495 problem_mandoc=": No xsltproc found in PATH" 7496 elif test x"$SED" = x ; then 7497 with_mandoc="no" 7498 problem_mandoc=": No sed found in PATH" 7499 elif test x"$HAVE_PERL_FOR_DOCS" = x0 ; then 7500 with_mandoc="no" 7501 problem_mandoc=": No perl found in PATH" 7502 else 7503 with_mandoc="yes" 7504 fi 7505fi 7506 if test x"$with_mandoc" = xyes; then 7507 FVWM_BUILD_MANDOC_TRUE= 7508 FVWM_BUILD_MANDOC_FALSE='#' 7509else 7510 FVWM_BUILD_MANDOC_TRUE='#' 7511 FVWM_BUILD_MANDOC_FALSE= 7512fi 7513 7514 7515 7516problem_htmldoc="" 7517# Check whether --enable-htmldoc was given. 7518if test "${enable_htmldoc+set}" = set; then : 7519 enableval=$enable_htmldoc; if test x"$enableval" = xyes; then 7520 with_htmldoc="yes, check" 7521 else 7522 with_htmldoc="no" 7523 problem_htmldoc=": Explicitly disabled" 7524 fi 7525else 7526 with_htmldoc="no" 7527 7528fi 7529 7530 7531if test ! x"$with_htmldoc" = xno; then 7532 if test x"$XSLTPROC" = x ; then 7533 with_htmldoc="no" 7534 problem_htmldoc=": No xsltproc found in PATH" 7535 elif test x"$SED" = x ; then 7536 with_htmldoc="no" 7537 problem_htmldoc=": No sed found in PATH" 7538 elif test x"$HAVE_PERL_FOR_DOCS" = x0 ; then 7539 with_htmldoc="no" 7540 problem_htmldoc=": No perl found in PATH" 7541 else 7542 with_htmldoc="yes" 7543 fi 7544fi 7545 if test x"$with_htmldoc" = xyes; then 7546 FVWM_BUILD_HTMLDOC_TRUE= 7547 FVWM_BUILD_HTMLDOC_FALSE='#' 7548else 7549 FVWM_BUILD_HTMLDOC_TRUE='#' 7550 FVWM_BUILD_HTMLDOC_FALSE= 7551fi 7552 7553 7554 7555# ********* session management 7556# Check the availability of SM; we don't have to add any extra libraries, 7557# since -lSM -lICE are in X_PRE_LIBS when they exist. 7558 7559problem_sm="" 7560 7561# Check whether --enable-sm was given. 7562if test "${enable_sm+set}" = set; then : 7563 enableval=$enable_sm; if test x"$enableval" = xyes; then 7564 with_sm="yes, check" 7565 else 7566 with_sm="no" 7567 problem_sm=": Explicitly disabled" 7568 fi 7569else 7570 with_sm="not specified, check" 7571 7572fi 7573 7574 7575if test ! x"$with_sm" = xno; then 7576 7577 $UNSET ac_cv_lib_SM_SmcOpenConnection 7578 7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 7580$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 7581if ${ac_cv_lib_SM_SmcOpenConnection+:} false; then : 7582 $as_echo_n "(cached) " >&6 7583else 7584 ac_check_lib_save_LIBS=$LIBS 7585LIBS="-lSM $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7586cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7587/* end confdefs.h. */ 7588 7589/* Override any GCC internal prototype to avoid an error. 7590 Use char because int might match the return type of a GCC 7591 builtin and then its argument prototype would still apply. */ 7592#ifdef __cplusplus 7593extern "C" 7594#endif 7595char SmcOpenConnection (); 7596int 7597main () 7598{ 7599return SmcOpenConnection (); 7600 ; 7601 return 0; 7602} 7603_ACEOF 7604if ac_fn_c_try_link "$LINENO"; then : 7605 ac_cv_lib_SM_SmcOpenConnection=yes 7606else 7607 ac_cv_lib_SM_SmcOpenConnection=no 7608fi 7609rm -f core conftest.err conftest.$ac_objext \ 7610 conftest$ac_exeext conftest.$ac_ext 7611LIBS=$ac_check_lib_save_LIBS 7612fi 7613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 7614$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 7615if test "x$ac_cv_lib_SM_SmcOpenConnection" = xyes; then : 7616 with_sm=yes; $as_echo "#define SESSION 1" >>confdefs.h 7617 7618else 7619 with_sm=no; problem_sm=": Failed to detect libSM" 7620fi 7621 7622fi 7623 7624 7625# Checking for optional libraries 7626# Default is to use them if found; can be disable using --without 7627# These are put up front so that if they are requested, but 7628# configure fails to find them, we fail early. 7629 7630 7631# ********* shape extension 7632# Check whether --enable-shape was given. 7633if test "${enable_shape+set}" = set; then : 7634 enableval=$enable_shape; if test x"$enableval" = xyes; then 7635 with_shape="yes, check" 7636 else 7637 with_shape="no" 7638 problem_shape=": Explicitly disabled" 7639 fi 7640else 7641 with_shape="not specified, check" 7642 7643fi 7644 7645 7646 7647if test ! x"$with_shape" = xno; then 7648 $UNSET ac_cv_lib_Xext_XShapeQueryExtension 7649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 7650$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 7651if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then : 7652 $as_echo_n "(cached) " >&6 7653else 7654 ac_check_lib_save_LIBS=$LIBS 7655LIBS="-lXext $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7657/* end confdefs.h. */ 7658 7659/* Override any GCC internal prototype to avoid an error. 7660 Use char because int might match the return type of a GCC 7661 builtin and then its argument prototype would still apply. */ 7662#ifdef __cplusplus 7663extern "C" 7664#endif 7665char XShapeQueryExtension (); 7666int 7667main () 7668{ 7669return XShapeQueryExtension (); 7670 ; 7671 return 0; 7672} 7673_ACEOF 7674if ac_fn_c_try_link "$LINENO"; then : 7675 ac_cv_lib_Xext_XShapeQueryExtension=yes 7676else 7677 ac_cv_lib_Xext_XShapeQueryExtension=no 7678fi 7679rm -f core conftest.err conftest.$ac_objext \ 7680 conftest$ac_exeext conftest.$ac_ext 7681LIBS=$ac_check_lib_save_LIBS 7682fi 7683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 7684$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 7685if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then : 7686 with_shape=yes; $as_echo "#define SHAPE 1" >>confdefs.h 7687 7688else 7689 with_shape=no; 7690 problem_shape=": Failed to detect Shape extension" 7691fi 7692 7693fi 7694 7695# ********* MIT Shared Memory Extension 7696# Check whether --enable-shm was given. 7697if test "${enable_shm+set}" = set; then : 7698 enableval=$enable_shm; if test x"$enableval" = xyes; then 7699 with_shm="yes, check" 7700 else 7701 with_shm="no" 7702 problem_shm=": Explicitly disabled" 7703 fi 7704else 7705 with_shm="not specified, check" 7706 7707fi 7708 7709 7710 7711if test ! x"$with_shm" = xno; then 7712 $UNSET ac_cv_lib_Xext_XShmQueryExtension 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5 7714$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; } 7715if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 ac_check_lib_save_LIBS=$LIBS 7719LIBS="-lXext $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7720cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7721/* end confdefs.h. */ 7722 7723/* Override any GCC internal prototype to avoid an error. 7724 Use char because int might match the return type of a GCC 7725 builtin and then its argument prototype would still apply. */ 7726#ifdef __cplusplus 7727extern "C" 7728#endif 7729char XShmQueryExtension (); 7730int 7731main () 7732{ 7733return XShmQueryExtension (); 7734 ; 7735 return 0; 7736} 7737_ACEOF 7738if ac_fn_c_try_link "$LINENO"; then : 7739 ac_cv_lib_Xext_XShmQueryExtension=yes 7740else 7741 ac_cv_lib_Xext_XShmQueryExtension=no 7742fi 7743rm -f core conftest.err conftest.$ac_objext \ 7744 conftest$ac_exeext conftest.$ac_ext 7745LIBS=$ac_check_lib_save_LIBS 7746fi 7747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5 7748$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; } 7749if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then : 7750 with_shm=yes; $as_echo "#define HAVE_XSHM 1" >>confdefs.h 7751 7752else 7753 with_shm=no; 7754 problem_shm=": Can't detect MIT Shared Memory ext." 7755fi 7756 7757fi 7758 7759# Silently look for X11/XKBlib.h 7760 7761ac_fn_c_check_header_mongrel "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "$ac_includes_default" 7762if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then : 7763 $as_echo "#define HAVE_X11_XKBLIB_H 1" >>confdefs.h 7764 7765fi 7766 7767 7768 7769# ********* xineramA 7770problem_xinerama="" 7771 7772# Check whether --enable-xinerama was given. 7773if test "${enable_xinerama+set}" = set; then : 7774 enableval=$enable_xinerama; if test x"$enableval" = xyes; then 7775 with_xinerama="yes, check" 7776 else 7777 with_xinerama="no" 7778 problem_xinerama=": Explicitly disabled" 7779 fi 7780else 7781 with_xinerama="not specified, check" 7782 7783fi 7784 7785 7786 7787 7788 7789if test ! x"$with_xinerama" = xno; then 7790 $UNSET ac_cv_lib_Xinerama_XineramaIsActive 7791 _check_solaris_xinerama=no 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaIsActive in -lXinerama" >&5 7793$as_echo_n "checking for XineramaIsActive in -lXinerama... " >&6; } 7794if ${ac_cv_lib_Xinerama_XineramaIsActive+:} false; then : 7795 $as_echo_n "(cached) " >&6 7796else 7797 ac_check_lib_save_LIBS=$LIBS 7798LIBS="-lXinerama $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" 7799cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7800/* end confdefs.h. */ 7801 7802/* Override any GCC internal prototype to avoid an error. 7803 Use char because int might match the return type of a GCC 7804 builtin and then its argument prototype would still apply. */ 7805#ifdef __cplusplus 7806extern "C" 7807#endif 7808char XineramaIsActive (); 7809int 7810main () 7811{ 7812return XineramaIsActive (); 7813 ; 7814 return 0; 7815} 7816_ACEOF 7817if ac_fn_c_try_link "$LINENO"; then : 7818 ac_cv_lib_Xinerama_XineramaIsActive=yes 7819else 7820 ac_cv_lib_Xinerama_XineramaIsActive=no 7821fi 7822rm -f core conftest.err conftest.$ac_objext \ 7823 conftest$ac_exeext conftest.$ac_ext 7824LIBS=$ac_check_lib_save_LIBS 7825fi 7826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaIsActive" >&5 7827$as_echo "$ac_cv_lib_Xinerama_XineramaIsActive" >&6; } 7828if test "x$ac_cv_lib_Xinerama_XineramaIsActive" = xyes; then : 7829 with_xinerama=yes; Xinerama_LIBS=-lXinerama; $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h 7830 7831else 7832 _check_solaris_xinerama=yes 7833fi 7834 7835 if test x"$_check_solaris_xinerama" = xyes; then 7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaGetState in -lXext" >&5 7837$as_echo_n "checking for XineramaGetState in -lXext... " >&6; } 7838if ${ac_cv_lib_Xext_XineramaGetState+:} false; then : 7839 $as_echo_n "(cached) " >&6 7840else 7841 ac_check_lib_save_LIBS=$LIBS 7842LIBS="-lXext $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 7843cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7844/* end confdefs.h. */ 7845 7846/* Override any GCC internal prototype to avoid an error. 7847 Use char because int might match the return type of a GCC 7848 builtin and then its argument prototype would still apply. */ 7849#ifdef __cplusplus 7850extern "C" 7851#endif 7852char XineramaGetState (); 7853int 7854main () 7855{ 7856return XineramaGetState (); 7857 ; 7858 return 0; 7859} 7860_ACEOF 7861if ac_fn_c_try_link "$LINENO"; then : 7862 ac_cv_lib_Xext_XineramaGetState=yes 7863else 7864 ac_cv_lib_Xext_XineramaGetState=no 7865fi 7866rm -f core conftest.err conftest.$ac_objext \ 7867 conftest$ac_exeext conftest.$ac_ext 7868LIBS=$ac_check_lib_save_LIBS 7869fi 7870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XineramaGetState" >&5 7871$as_echo "$ac_cv_lib_Xext_XineramaGetState" >&6; } 7872if test "x$ac_cv_lib_Xext_XineramaGetState" = xyes; then : 7873 $as_echo "#define HAVE_XINERAMA 1" >>confdefs.h 7874 $as_echo "#define HAVE_SOLARIS_XINERAMA 1" >>confdefs.h 7875 7876 with_xinerama=yes; Xinerama_LIBS=-lXext 7877 my_CPPFLAGS="$CPPFLAGS"; CPPFLAGS="$X_CPPFLAGS $CPPFLAGS" 7878 my_hdr="X11/extensions/xinerama.h" 7879 as_ac_Header=`$as_echo "ac_cv_header_$my_hdr" | $as_tr_sh` 7880ac_fn_c_check_header_mongrel "$LINENO" "$my_hdr" "$as_ac_Header" "$ac_includes_default" 7881if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7882 $as_echo "#define HAVE_SOLARIS_XINERAMA_H 1" >>confdefs.h 7883 7884 problem_xinerama=" (Using Solaris Xinerama calls)" 7885else 7886 problem_xinerama=" (Using Solaris 9 prototypes for missing header)" 7887fi 7888 7889 7890 CPPFLAGS="$my_CPPFLAGS" 7891else 7892 with_xinerama=no; Xinerama_LIBS= 7893 problem_xinerama=": Failed to detect libXinerama" 7894fi 7895 7896 fi 7897 $UNSET _check_solaris_xinerama 7898fi 7899 7900 7901 7902# ********* xinerama-emulation 7903 7904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Xinerama emulation on one screen (useful only for developers)" >&5 7905$as_echo_n "checking whether to enable Xinerama emulation on one screen (useful only for developers)... " >&6; } 7906 # Check whether --enable-xinerama-emulation was given. 7907if test "${enable_xinerama_emulation+set}" = set; then : 7908 enableval=$enable_xinerama_emulation; 7909 7910 if test "$enableval" = yes; then 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 7912$as_echo "yes" >&6; } 7913 $as_echo "#define USE_XINERAMA_EMULATION 1" >>confdefs.h 7914 7915 else 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7917$as_echo "no" >&6; } 7918 7919 fi 7920else 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7922$as_echo "no" >&6; } 7923 7924 7925fi 7926 7927 7928if test x"$enable_xinerama_emulation" = xyes; then 7929 with_xinerama_emulation=yes 7930else 7931 with_xinerama_emulation=no 7932fi 7933 7934# ********* xrender 7935problem_xrender="" 7936# Check whether --enable-xrender was given. 7937if test "${enable_xrender+set}" = set; then : 7938 enableval=$enable_xrender; if test x"$enableval" = xyes; then 7939 with_xrender="yes, check" 7940 else 7941 with_xrender="no" 7942 problem_xrender=": Explicitly disabled" 7943 fi 7944else 7945 with_xrender="not specified, check" 7946 7947fi 7948 7949 7950 7951if test ! x"$with_xrender" = xno; then 7952 $UNSET ac_cv_lib_Xrender_XRenderComposite 7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderComposite in -lXrender" >&5 7954$as_echo_n "checking for XRenderComposite in -lXrender... " >&6; } 7955if ${ac_cv_lib_Xrender_XRenderComposite+:} false; then : 7956 $as_echo_n "(cached) " >&6 7957else 7958 ac_check_lib_save_LIBS=$LIBS 7959LIBS="-lXrender $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" 7960cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7961/* end confdefs.h. */ 7962 7963/* Override any GCC internal prototype to avoid an error. 7964 Use char because int might match the return type of a GCC 7965 builtin and then its argument prototype would still apply. */ 7966#ifdef __cplusplus 7967extern "C" 7968#endif 7969char XRenderComposite (); 7970int 7971main () 7972{ 7973return XRenderComposite (); 7974 ; 7975 return 0; 7976} 7977_ACEOF 7978if ac_fn_c_try_link "$LINENO"; then : 7979 ac_cv_lib_Xrender_XRenderComposite=yes 7980else 7981 ac_cv_lib_Xrender_XRenderComposite=no 7982fi 7983rm -f core conftest.err conftest.$ac_objext \ 7984 conftest$ac_exeext conftest.$ac_ext 7985LIBS=$ac_check_lib_save_LIBS 7986fi 7987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderComposite" >&5 7988$as_echo "$ac_cv_lib_Xrender_XRenderComposite" >&6; } 7989if test "x$ac_cv_lib_Xrender_XRenderComposite" = xyes; then : 7990 with_xrender=yes; Xrender_LIBS=-lXrender; 7991 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h 7992 7993else 7994 with_xrender=no; Xrender_LIBS= 7995 problem_xrender=": Failed to detect libXrender" 7996fi 7997 7998fi 7999 8000 8001 8002# ********* xcursor 8003 8004xcursor_CFLAGS="" 8005xcursor_LIBS="" 8006# Check whether --enable-xcursor was given. 8007if test "${enable_xcursor+set}" = set; then : 8008 enableval=$enable_xcursor; if test x"$enableval" = xno; then 8009 with_xcursor=no 8010 problem_xcursor=": Explicitly disabled" 8011 fi 8012fi 8013 8014if test ! x"$with_xcursor" = xno; then 8015 with_xcursor=no 8016 if test ! x"$with_xrender" = xno; then 8017 $UNSET ac_cv_lib_Xrender_XRenderCreateCursor 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderCreateCursor in -lXrender" >&5 8019$as_echo_n "checking for XRenderCreateCursor in -lXrender... " >&6; } 8020if ${ac_cv_lib_Xrender_XRenderCreateCursor+:} false; then : 8021 $as_echo_n "(cached) " >&6 8022else 8023 ac_check_lib_save_LIBS=$LIBS 8024LIBS="-lXrender $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" 8025cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8026/* end confdefs.h. */ 8027 8028/* Override any GCC internal prototype to avoid an error. 8029 Use char because int might match the return type of a GCC 8030 builtin and then its argument prototype would still apply. */ 8031#ifdef __cplusplus 8032extern "C" 8033#endif 8034char XRenderCreateCursor (); 8035int 8036main () 8037{ 8038return XRenderCreateCursor (); 8039 ; 8040 return 0; 8041} 8042_ACEOF 8043if ac_fn_c_try_link "$LINENO"; then : 8044 ac_cv_lib_Xrender_XRenderCreateCursor=yes 8045else 8046 ac_cv_lib_Xrender_XRenderCreateCursor=no 8047fi 8048rm -f core conftest.err conftest.$ac_objext \ 8049 conftest$ac_exeext conftest.$ac_ext 8050LIBS=$ac_check_lib_save_LIBS 8051fi 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderCreateCursor" >&5 8053$as_echo "$ac_cv_lib_Xrender_XRenderCreateCursor" >&6; } 8054if test "x$ac_cv_lib_Xrender_XRenderCreateCursor" = xyes; then : 8055 8056 with_xcursor=yes 8057 8058else 8059 8060 problem_xcursor=": Your libXrender version is too old" 8061 8062fi 8063 8064 else 8065 problem_xcursor=": Need Xrender support" 8066 fi 8067fi 8068if test x"$with_xcursor" = xyes ; then 8069 $UNSET ac_cv_lib_Xcursor_XcursorImageLoadCursor 8070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XcursorImageLoadCursor in -lXcursor" >&5 8071$as_echo_n "checking for XcursorImageLoadCursor in -lXcursor... " >&6; } 8072if ${ac_cv_lib_Xcursor_XcursorImageLoadCursor+:} false; then : 8073 $as_echo_n "(cached) " >&6 8074else 8075 ac_check_lib_save_LIBS=$LIBS 8076LIBS="-lXcursor $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS" 8077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8078/* end confdefs.h. */ 8079 8080/* Override any GCC internal prototype to avoid an error. 8081 Use char because int might match the return type of a GCC 8082 builtin and then its argument prototype would still apply. */ 8083#ifdef __cplusplus 8084extern "C" 8085#endif 8086char XcursorImageLoadCursor (); 8087int 8088main () 8089{ 8090return XcursorImageLoadCursor (); 8091 ; 8092 return 0; 8093} 8094_ACEOF 8095if ac_fn_c_try_link "$LINENO"; then : 8096 ac_cv_lib_Xcursor_XcursorImageLoadCursor=yes 8097else 8098 ac_cv_lib_Xcursor_XcursorImageLoadCursor=no 8099fi 8100rm -f core conftest.err conftest.$ac_objext \ 8101 conftest$ac_exeext conftest.$ac_ext 8102LIBS=$ac_check_lib_save_LIBS 8103fi 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xcursor_XcursorImageLoadCursor" >&5 8105$as_echo "$ac_cv_lib_Xcursor_XcursorImageLoadCursor" >&6; } 8106if test "x$ac_cv_lib_Xcursor_XcursorImageLoadCursor" = xyes; then : 8107 8108 $as_echo "#define HAVE_XCURSOR 1" >>confdefs.h 8109 8110 Xcursor_LIBS=-lXcursor 8111 problem_xcursor="" 8112 8113else 8114 8115 with_xcursor=no 8116 problem_xcursor=": Failed to detect libXcursor" 8117 8118fi 8119 8120fi 8121 8122 8123 8124# ********* xft 8125problem_xft="" 8126 8127# Check whether --enable-xft was given. 8128if test "${enable_xft+set}" = set; then : 8129 enableval=$enable_xft; if test x"$enableval" = xyes; then 8130 with_xft="yes, check" 8131 else 8132 with_xft="no" 8133 problem_xft=": Explicitly disabled" 8134 fi 8135else 8136 8137 with_xft="not specified, check" 8138 8139 8140fi 8141 8142 8143 8144 8145 8146if test ! x"$with_xft" = xno; then 8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pkg-config could find freetype2" >&5 8148$as_echo_n "checking whether pkg-config could find freetype2... " >&6; } 8149 if "${PKG_CONFIG}" --exists freetype2; then 8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8151$as_echo "yes" >&6; } 8152 CFLAGS_FREETYPE=`"${PKG_CONFIG}" --cflags freetype2` 8153 FREETYPE_LIBS=`"${PKG_CONFIG}" --libs freetype2` 8154 CFLAGS="$CFLAGS $CFLAGS_FREETYPE" 8155 LIBS="$LIBS $FREETYPE_LIBS" 8156 8157 have_freetype=yes 8158 else 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8160$as_echo "no" >&6; } 8161 have_freetype=no 8162 fi 8163 8164 # check for fontconfig for Xft 2 8165 have_fontconfig=no 8166 if test ! x"$have_freetype" = xno ; then 8167 8168# Check whether --with-fontconfig-prefix was given. 8169if test "${with_fontconfig_prefix+set}" = set; then : 8170 withval=$with_fontconfig_prefix; fc_config_prefix="$withval" 8171else 8172 fc_config_prefix="" 8173fi 8174 8175 8176# Check whether --with-fontconfig-exec-prefix was given. 8177if test "${with_fontconfig_exec_prefix+set}" = set; then : 8178 withval=$with_fontconfig_exec_prefix; fc_config_exec_prefix="$withval" 8179else 8180 fc_config_exec_prefix="" 8181fi 8182 8183# Check whether --enable-fontconfigtest was given. 8184if test "${enable_fontconfigtest+set}" = set; then : 8185 enableval=$enable_fontconfigtest; 8186else 8187 enable_fctest=yes 8188fi 8189 8190 8191if test x$fc_config_exec_prefix != x ; then 8192 fc_config_args="$fc_config_args --exec-prefix=$fc_config_exec_prefix" 8193 if test x${FC_CONFIG+set} != xset ; then 8194 FC_CONFIG=$fc_config_exec_prefix/bin/fontconfig-config 8195 fi 8196fi 8197if test x$fc_config_prefix != x ; then 8198 fc_config_args="$fc_config_args --prefix=$fc_config_prefix" 8199 if test x${FC_CONFIG+set} != xset ; then 8200 FC_CONFIG=$fc_config_prefix/bin/fontconfig-config 8201 fi 8202fi 8203# Extract the first word of "fontconfig-config", so it can be a program name with args. 8204set dummy fontconfig-config; ac_word=$2 8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8206$as_echo_n "checking for $ac_word... " >&6; } 8207if ${ac_cv_path_FC_CONFIG+:} false; then : 8208 $as_echo_n "(cached) " >&6 8209else 8210 case $FC_CONFIG in 8211 [\\/]* | ?:[\\/]*) 8212 ac_cv_path_FC_CONFIG="$FC_CONFIG" # Let the user override the test with a path. 8213 ;; 8214 *) 8215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8216for as_dir in $PATH 8217do 8218 IFS=$as_save_IFS 8219 test -z "$as_dir" && as_dir=. 8220 for ac_exec_ext in '' $ac_executable_extensions; do 8221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8222 ac_cv_path_FC_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8224 break 2 8225 fi 8226done 8227 done 8228IFS=$as_save_IFS 8229 8230 test -z "$ac_cv_path_FC_CONFIG" && ac_cv_path_FC_CONFIG="no" 8231 ;; 8232esac 8233fi 8234FC_CONFIG=$ac_cv_path_FC_CONFIG 8235if test -n "$FC_CONFIG"; then 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_CONFIG" >&5 8237$as_echo "$FC_CONFIG" >&6; } 8238else 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8240$as_echo "no" >&6; } 8241fi 8242 8243 8244 8245min_fc_version=1.0.1 8246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fontconfig - version >= $min_fc_version" >&5 8247$as_echo_n "checking for Fontconfig - version >= $min_fc_version... " >&6; } 8248no_fc="" 8249pkg_config_fontconfig_exists="" 8250 8251if test "$FC_CONFIG" = "no" ; then 8252 if test "x$PKG_CONFIG" != "xno" ; then 8253 if $PKG_CONFIG --exists 'fontconfig' ; then 8254 if $PKG_CONFIG --exists 'fontconfig >= 1.0.1' ; then 8255 FC_CFLAGS=`$PKG_CONFIG --cflags fontconfig` 8256 FC_LIBS=`$PKG_CONFIG --libs fontconfig` 8257 else 8258 no_fc=yes 8259 fc_config_is_lt=yes 8260 fi 8261 else 8262 pkg_config_fontconfig_exists="maybe" 8263 no_fc=yes 8264 fi 8265 else 8266 no_fc=yes 8267 fi 8268else 8269 FC_CFLAGS=`$FC_CONFIG $fc_config_args --cflags` 8270 FC_LIBS=`$FC_CONFIG $fc_config_args --libs` 8271 fc_config_major_version=`$FC_CONFIG $fc_config_args --version | \ 8272 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'` 8273 fc_config_minor_version=`$FC_CONFIG $fc_config_args --version | \ 8274 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'` 8275 fc_config_micro_version=`$FC_CONFIG $fc_config_args --version | \ 8276 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\3/'` 8277 fc_min_major_version=`echo $min_fc_version | \ 8278 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'` 8279 fc_min_minor_version=`echo $min_fc_version | \ 8280 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'` 8281 fc_min_micro_version=`echo $min_fc_version | \ 8282 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\3/'` 8283 fc_config_is_lt=no 8284 if test $fc_config_major_version -lt $fc_min_major_version ; then 8285 fc_config_is_lt=yes 8286 else 8287 if test $fc_config_major_version -eq $fc_min_major_version ; then 8288 if test $fc_config_minor_version -lt $fc_min_minor_version ; then 8289 fc_config_is_lt=yes 8290 else 8291 if test $fc_config_minor_version -eq $fc_min_minor_version ; then 8292 if test $fc_config_micro_version -lt $fc_min_micro_version ; then 8293 fc_config_is_lt=yes 8294 fi 8295 fi 8296 fi 8297 fi 8298 fi 8299 if test "x$fc_config_is_lt" = "xyes" ; then 8300 no_fc=yes 8301 fi 8302fi 8303 8304if test "x$no_fc" = x ; then 8305 if test "x$enable_fctest" = "xyes" ; then 8306 ac_save_CFLAGS="$CFLAGS" 8307 ac_save_LIBS="$LIBS" 8308 CFLAGS="$CFLAGS $FC_CFLAGS $FT2_CFLAGS" 8309 LIBS="$FC_LIBS $LIBS $FT2_LIBS" 8310 if test "$cross_compiling" = yes; then : 8311 echo $ac_n "cross compiling; assumed OK... $ac_c" 8312else 8313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8314/* end confdefs.h. */ 8315 8316#include <fontconfig/fontconfig.h> 8317#include <stdio.h> 8318#include <stdlib.h> 8319 8320int 8321main() 8322{ 8323 FcBool result; 8324 8325 result = FcInit(); 8326 8327 if (result) 8328 { 8329 return 0; 8330 } 8331 else 8332 { 8333 return 1; 8334 } 8335} 8336 8337_ACEOF 8338if ac_fn_c_try_run "$LINENO"; then : 8339 8340else 8341 no_fc=yes 8342fi 8343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8344 conftest.$ac_objext conftest.beam conftest.$ac_ext 8345fi 8346 8347 CFLAGS="$ac_save_CFLAGS" 8348 LIBS="$ac_save_LIBS" 8349 fi 8350fi 8351 8352if test "x$no_fc" = x; then 8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8354$as_echo "yes" >&6; } 8355 : 8356else 8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8358$as_echo "no" >&6; } 8359 if test "x$fc_config_is_lt" = "xyes"; then 8360 echo "*** Your Fontconfig package version is < 1.0.1" 8361 elif test "x$pkg_config_fontconfig_exists" = "xmaybe"; then 8362 echo "*** fontconfig was not found in the pkg-config search path." 8363 echo "*** either fontconfig is not installed or perhaps you should" 8364 echo "*** add the directory containing fontconfig.pc to the " 8365 echo "*** PKG_CONFIG_PATH environment variable." 8366 elif test "$FC_CONFIG" != "no"; then 8367 echo "*** The Fontconfig test program failed to run. If your system uses" 8368 echo "*** shared libraries and they are installed outside the normal" 8369 echo "*** system library path, make sure the variable LD_LIBRARY_PATH" 8370 echo "*** (or whatever is appropiate for your system) is correctly set." 8371 fi 8372 FC_CFLAGS="" 8373 FC_LIBS="" 8374 : 8375fi 8376 8377 8378 8379 if test x"$no_fc" = x ; then 8380 have_fontconfig=yes 8381 fontconfig_CFLAGS=`$PKG_CONFIG --cflags fontconfig` 8382 fontconfig_LIBS=`$PKG_CONFIG --libs fontconfig` 8383 CFLAGS="$CFLAGS $fontconfig_CFLAGS" 8384 LIBS="$LIBS $fontconfig_LIBS" 8385 else 8386 have_fontconfig=no 8387 problem_xft=": Can't detect fontconfig >= 1.0.1" 8388 fi 8389 fi 8390 8391 # now check for Xft 2 8392 with_xft=no 8393 if test ! x"$have_fontconfig" = xno ; then 8394 # Xft 2 8395 8396# Check whether --with-xft-prefix was given. 8397if test "${with_xft_prefix+set}" = set; then : 8398 withval=$with_xft_prefix; xft_config_prefix="$withval" 8399else 8400 xft_config_prefix="" 8401fi 8402 8403 8404# Check whether --with-xft-exec-prefix was given. 8405if test "${with_xft_exec_prefix+set}" = set; then : 8406 withval=$with_xft_exec_prefix; xft_config_exec_prefix="$withval" 8407else 8408 xft_config_exec_prefix="" 8409fi 8410 8411# Check whether --enable-xfttest was given. 8412if test "${enable_xfttest+set}" = set; then : 8413 enableval=$enable_xfttest; 8414else 8415 enable_xfttest=yes 8416fi 8417 8418 8419if test x$xft_config_exec_prefix != x ; then 8420 xft_config_args="$xft_config_args --exec-prefix=$xft_config_exec_prefix" 8421 if test x${XFT_CONFIG+set} != xset ; then 8422 XFT_CONFIG=$xft_config_exec_prefix/bin/xft-config 8423 fi 8424fi 8425if test x$xft_config_prefix != x ; then 8426 xft_config_args="$xft_config_args --prefix=$xft_config_prefix" 8427 if test x${XFT_CONFIG+set} != xset ; then 8428 XFT_CONFIG=$xft_config_prefix/bin/xft-config 8429 fi 8430fi 8431# Extract the first word of "xft-config", so it can be a program name with args. 8432set dummy xft-config; ac_word=$2 8433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8434$as_echo_n "checking for $ac_word... " >&6; } 8435if ${ac_cv_path_XFT_CONFIG+:} false; then : 8436 $as_echo_n "(cached) " >&6 8437else 8438 case $XFT_CONFIG in 8439 [\\/]* | ?:[\\/]*) 8440 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 8441 ;; 8442 *) 8443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8444for as_dir in $PATH 8445do 8446 IFS=$as_save_IFS 8447 test -z "$as_dir" && as_dir=. 8448 for ac_exec_ext in '' $ac_executable_extensions; do 8449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8450 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8452 break 2 8453 fi 8454done 8455 done 8456IFS=$as_save_IFS 8457 8458 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" 8459 ;; 8460esac 8461fi 8462XFT_CONFIG=$ac_cv_path_XFT_CONFIG 8463if test -n "$XFT_CONFIG"; then 8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5 8465$as_echo "$XFT_CONFIG" >&6; } 8466else 8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8468$as_echo "no" >&6; } 8469fi 8470 8471 8472 8473min_xft_version=2.0.0 8474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xft - version >= $min_xft_version" >&5 8475$as_echo_n "checking for Xft - version >= $min_xft_version... " >&6; } 8476no_xft="" 8477pkg_config_xft_exists="" 8478 8479if test "$XFT_CONFIG" = "no" ; then 8480 if test "x$PKG_CONFIG" != "xno" ; then 8481 if $PKG_CONFIG --exists 'xft' ; then 8482 if $PKG_CONFIG --exists 'xft >= 2.0.0' ; then 8483 XFT_CFLAGS=`$PKG_CONFIG --cflags xft` 8484 XFT_LIBS=`$PKG_CONFIG --libs xft` 8485 else 8486 no_xft=yes 8487 xft_config_is_lt=yes 8488 fi 8489 else 8490 pkg_config_xft_exists="maybe" 8491 no_xft=yes 8492 fi 8493 else 8494 no_xft=yes 8495 fi 8496else 8497 XFT_CFLAGS=`$XFT_CONFIG $xft_config_args --cflags` 8498 XFT_LIBS=`$XFT_CONFIG $xft_config_args --libs` 8499 xft_config_major_version=`$XFT_CONFIG $xft_config_args --version | \ 8500 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'` 8501 xft_config_minor_version=`$XFT_CONFIG $xft_config_args --version | \ 8502 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'` 8503 xft_config_micro_version=`$XFT_CONFIG $xft_config_args --version | \ 8504 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\3/'` 8505 xft_min_major_version=`echo $min_xft_version | \ 8506 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'` 8507 xft_min_minor_version=`echo $min_xft_version | \ 8508 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'` 8509 xft_min_micro_version=`echo $min_xft_version | \ 8510 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\3/'` 8511 xft_config_is_lt=no 8512 if test $xft_config_major_version -lt $xft_min_major_version ; then 8513 xft_config_is_lt=yes 8514 else 8515 if test $xft_config_major_version -eq $xft_min_major_version ; then 8516 if test $xft_config_minor_version -lt $xft_min_minor_version ; then 8517 xft_config_is_lt=yes 8518 else 8519 if test $xft_config_minor_version -eq $xft_min_minor_version ; then 8520 if test $xft_config_micro_version -lt $xft_min_micro_version ; then 8521 xft_config_is_lt=yes 8522 fi 8523 fi 8524 fi 8525 fi 8526 fi 8527 if test "x$xft_config_is_lt" = "xyes" ; then 8528 : 8529 fi 8530fi 8531 8532if test "x$no_xft" = x ; then 8533 if test "x$enable_xfttest" = "xyes" ; then 8534 ac_save_CFLAGS="$CFLAGS" 8535 ac_save_LIBS="$LIBS" 8536 CFLAGS="$XFT_CFLAGS $CFLAGS" 8537 LIBS="$XFT_LIBS $LIBS" 8538 if test "$cross_compiling" = yes; then : 8539 echo $ac_n "cross compiling; assumed OK... $ac_c" 8540else 8541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8542/* end confdefs.h. */ 8543 8544#include <X11/Xft/Xft.h> 8545#include <stdio.h> 8546#include <stdlib.h> 8547 8548int 8549main() 8550{ 8551 FcBool result = 1; 8552 8553 result = XftInit(NULL); 8554 8555 if (result) 8556 { 8557 return 0; 8558 } 8559 else 8560 { 8561 return 1; 8562 } 8563} 8564 8565_ACEOF 8566if ac_fn_c_try_run "$LINENO"; then : 8567 8568else 8569 no_xft=yes 8570fi 8571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8572 conftest.$ac_objext conftest.beam conftest.$ac_ext 8573fi 8574 8575 CFLAGS="$ac_save_CFLAGS" 8576 LIBS="$ac_save_LIBS" 8577 fi 8578fi 8579 8580if test "x$no_xft" = x; then 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8582$as_echo "yes" >&6; } 8583 : 8584else 8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8586$as_echo "no" >&6; } 8587 if test "x$xft_config_is_lt" = "xyes"; then 8588 echo "*** Your xft2 package version is < 2.0.0" 8589 elif test "x$pkg_config_fontconfig_exists" = "xmaybe" ; then 8590 echo "*** xft2 was not found in the pkg-config search path." 8591 echo "*** either xft is not installed or perhaps you should" 8592 echo "*** add the directory containing xft.pc to the " 8593 echo "*** PKG_CONFIG_PATH environment variable." 8594 elif test "$XFT_CONFIG" = "no"; then 8595 echo "*** The xft-config script installed by Xft 2 could not be found." 8596 echo "*** If Xft 2 was installed in PREFIX, make sure PREFIX/bin is in" 8597 echo "*** your path, or set the XFT_CONFIG environment variable to the" 8598 echo "*** full path to xft-config." 8599 else 8600 echo "*** The Xft test program failed to run. If your system uses" 8601 echo "*** shared libraries and they are installed outside the normal" 8602 echo "*** system library path, make sure the variable LD_LIBRARY_PATH" 8603 echo "*** (or whatever is appropiate for your system) is correctly set." 8604 fi 8605 XFT_CFLAGS="" 8606 XFT_LIBS="" 8607 : 8608fi 8609 8610 8611 8612 if test x"$no_xft" = x; then 8613 with_xft=yes 8614 problem_xft=" (version 2)" 8615 $as_echo "#define HAVE_XFT2 1" >>confdefs.h 8616 8617 $as_echo "#define HAVE_XFT 1" >>confdefs.h 8618 8619 $as_echo "#define HAVE_XFT_UTF8 1" >>confdefs.h 8620 8621 Xft_LIBS=$XFT_LIBS 8622 Xft_CFLAGS=$XFT_CFLAGS 8623 else 8624 problem_xft=": Can't detect Xft2, detected fontconfig" 8625 fi 8626 fi 8627 8628 # if Xft2 not detected check for Xft1 8629 if test ! x"$have_freetype" = xno && test ! x"$with_xft" = xyes; then 8630 #Xft 1 8631 $UNSET ac_cv_lib_XftConfigSubstitute 8632 $UNSET ac_cv_lib_Xft_XftFontOpen 8633 $UNSET ac_cv_lib_Xft_XftDrawStringUtf8 8634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 8635$as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 8636if ${ac_cv_lib_Xft_XftFontOpen+:} false; then : 8637 $as_echo_n "(cached) " >&6 8638else 8639 ac_check_lib_save_LIBS=$LIBS 8640LIBS="-lXft $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $FT2_LIBS $Xrender_LIBS $LIBS" 8641cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8642/* end confdefs.h. */ 8643 8644/* Override any GCC internal prototype to avoid an error. 8645 Use char because int might match the return type of a GCC 8646 builtin and then its argument prototype would still apply. */ 8647#ifdef __cplusplus 8648extern "C" 8649#endif 8650char XftFontOpen (); 8651int 8652main () 8653{ 8654return XftFontOpen (); 8655 ; 8656 return 0; 8657} 8658_ACEOF 8659if ac_fn_c_try_link "$LINENO"; then : 8660 ac_cv_lib_Xft_XftFontOpen=yes 8661else 8662 ac_cv_lib_Xft_XftFontOpen=no 8663fi 8664rm -f core conftest.err conftest.$ac_objext \ 8665 conftest$ac_exeext conftest.$ac_ext 8666LIBS=$ac_check_lib_save_LIBS 8667fi 8668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 8669$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 8670if test "x$ac_cv_lib_Xft_XftFontOpen" = xyes; then : 8671 with_xft=yes 8672else 8673 with_xft=no 8674fi 8675 8676 if test x"$with_xft" = xyes ; then 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftConfigSubstitute in -lXft" >&5 8678$as_echo_n "checking for XftConfigSubstitute in -lXft... " >&6; } 8679if ${ac_cv_lib_Xft_XftConfigSubstitute+:} false; then : 8680 $as_echo_n "(cached) " >&6 8681else 8682 ac_check_lib_save_LIBS=$LIBS 8683LIBS="-lXft $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $FT2_LIBS $Xrender_LIBS $LIBS" 8684cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685/* end confdefs.h. */ 8686 8687/* Override any GCC internal prototype to avoid an error. 8688 Use char because int might match the return type of a GCC 8689 builtin and then its argument prototype would still apply. */ 8690#ifdef __cplusplus 8691extern "C" 8692#endif 8693char XftConfigSubstitute (); 8694int 8695main () 8696{ 8697return XftConfigSubstitute (); 8698 ; 8699 return 0; 8700} 8701_ACEOF 8702if ac_fn_c_try_link "$LINENO"; then : 8703 ac_cv_lib_Xft_XftConfigSubstitute=yes 8704else 8705 ac_cv_lib_Xft_XftConfigSubstitute=no 8706fi 8707rm -f core conftest.err conftest.$ac_objext \ 8708 conftest$ac_exeext conftest.$ac_ext 8709LIBS=$ac_check_lib_save_LIBS 8710fi 8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftConfigSubstitute" >&5 8712$as_echo "$ac_cv_lib_Xft_XftConfigSubstitute" >&6; } 8713if test "x$ac_cv_lib_Xft_XftConfigSubstitute" = xyes; then : 8714 is_xft1=yes 8715else 8716 is_xft1=no 8717fi 8718 8719 if test x"$is_xft1" = xyes; then 8720 Xft_LIBS="-lXft $FT2_LIBS" 8721 Xft_CFLAGS="$Xft_CFLAGS $FT2_CFLAGS" 8722 problem_xft=" (version 1)" 8723 $as_echo "#define HAVE_XFT 1" >>confdefs.h 8724 8725 else 8726 with_xft=no 8727 problem_xft=": Can't detect Xft 1 or fontconfig" 8728 fi 8729 else 8730 problem_xft=": Can't detect Xft 1 or 2 and fontconfig" 8731 fi 8732 if test x"$with_xft" = xyes; then 8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawStringUtf8 in -lXft" >&5 8734$as_echo_n "checking for XftDrawStringUtf8 in -lXft... " >&6; } 8735if ${ac_cv_lib_Xft_XftDrawStringUtf8+:} false; then : 8736 $as_echo_n "(cached) " >&6 8737else 8738 ac_check_lib_save_LIBS=$LIBS 8739LIBS="-lXft $X_LIBS $X_PRE_LIBS -lXext -lX11 $X_EXTRA_LIBS $FT2_LIBS $Xrender_LIBS $LIBS" 8740cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8741/* end confdefs.h. */ 8742 8743/* Override any GCC internal prototype to avoid an error. 8744 Use char because int might match the return type of a GCC 8745 builtin and then its argument prototype would still apply. */ 8746#ifdef __cplusplus 8747extern "C" 8748#endif 8749char XftDrawStringUtf8 (); 8750int 8751main () 8752{ 8753return XftDrawStringUtf8 (); 8754 ; 8755 return 0; 8756} 8757_ACEOF 8758if ac_fn_c_try_link "$LINENO"; then : 8759 ac_cv_lib_Xft_XftDrawStringUtf8=yes 8760else 8761 ac_cv_lib_Xft_XftDrawStringUtf8=no 8762fi 8763rm -f core conftest.err conftest.$ac_objext \ 8764 conftest$ac_exeext conftest.$ac_ext 8765LIBS=$ac_check_lib_save_LIBS 8766fi 8767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawStringUtf8" >&5 8768$as_echo "$ac_cv_lib_Xft_XftDrawStringUtf8" >&6; } 8769if test "x$ac_cv_lib_Xft_XftDrawStringUtf8" = xyes; then : 8770 $as_echo "#define HAVE_XFT_UTF8 1" >>confdefs.h 8771 8772fi 8773 8774 fi 8775 fi 8776 8777fi 8778 8779 8780 8781# ********* xpm 8782problem_xpm=": Xpm library or header not found" 8783 8784$UNSET ac_cv_header_X11_xpm_h 8785$UNSET ac_cv_lib_Xpm_XpmReadFileToXpmImage 8786 8787smr_lib=Xpm 8788smr_header=X11/xpm.h 8789 8790 8791smr_lib=Xpm 8792 8793 8794# Check whether --with-xpm-library was given. 8795if test "${with_xpm_library+set}" = set; then : 8796 withval=$with_xpm_library; 8797 if test "$withval" = yes; then 8798 with_xpm=yes 8799 xpm_LIBS="-l${smr_lib}" 8800 elif test "$withval" = no; then 8801 with_xpm=no 8802 xpm_LIBS= 8803 else 8804 with_xpm=yes 8805 if test -f "$withval"; then 8806 xpm_LIBS=$withval 8807 elif test -d "$withval"; then 8808 xpm_LIBS="-L$withval -l${smr_lib}" 8809 else 8810 as_fn_error $? "--with-xpm-library argument must be yes/no, file or directory" "$LINENO" 5 8811 fi 8812 fi 8813 8814else 8815 8816 with_xpm=maybe 8817 xpm_LIBS="-l${smr_lib}" 8818 8819fi 8820 8821if test "$with_xpm" != no; then 8822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToXpmImage in -lXpm" >&5 8823$as_echo_n "checking for XpmReadFileToXpmImage in -lXpm... " >&6; } 8824if ${ac_cv_lib_Xpm_XpmReadFileToXpmImage+:} false; then : 8825 $as_echo_n "(cached) " >&6 8826else 8827 ac_check_lib_save_LIBS=$LIBS 8828LIBS="-lXpm ${xpm_LIBS} $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $LIBS" 8829cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8830/* end confdefs.h. */ 8831 8832/* Override any GCC internal prototype to avoid an error. 8833 Use char because int might match the return type of a GCC 8834 builtin and then its argument prototype would still apply. */ 8835#ifdef __cplusplus 8836extern "C" 8837#endif 8838char XpmReadFileToXpmImage (); 8839int 8840main () 8841{ 8842return XpmReadFileToXpmImage (); 8843 ; 8844 return 0; 8845} 8846_ACEOF 8847if ac_fn_c_try_link "$LINENO"; then : 8848 ac_cv_lib_Xpm_XpmReadFileToXpmImage=yes 8849else 8850 ac_cv_lib_Xpm_XpmReadFileToXpmImage=no 8851fi 8852rm -f core conftest.err conftest.$ac_objext \ 8853 conftest$ac_exeext conftest.$ac_ext 8854LIBS=$ac_check_lib_save_LIBS 8855fi 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&5 8857$as_echo "$ac_cv_lib_Xpm_XpmReadFileToXpmImage" >&6; } 8858if test "x$ac_cv_lib_Xpm_XpmReadFileToXpmImage" = xyes; then : 8859 smr_havelib=yes 8860else 8861 smr_havelib=no; problem_xpm=": Can't find working lib$smr_lib" 8862fi 8863 8864 if test "$smr_havelib" = yes -a "$smr_header" != ""; then 8865 8866 8867 8868# Check whether --with-xpm-includes was given. 8869if test "${with_xpm_includes+set}" = set; then : 8870 withval=$with_xpm_includes; 8871 if test -d "$withval"; then 8872 xpm_CFLAGS="-I${withval}" 8873 else 8874 as_fn_error $? "argument must be a directory" "$LINENO" 5 8875 fi 8876fi 8877 8878 8879 smr_save_CPPFLAGS="$CPPFLAGS" 8880 CPPFLAGS="$CPPFLAGS ${xpm_CFLAGS}" 8881 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 8882 8883 for ac_header in $smr_header 8884do : 8885 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8886ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 8887if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 8888 cat >>confdefs.h <<_ACEOF 8889#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8890_ACEOF 8891 8892fi 8893 8894done 8895 8896 8897 CPPFLAGS=$smr_save_CPPFLAGS 8898 8899 smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'` 8900 if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then 8901 smr_havelib=no 8902 problem_xpm=": Can't find working $smr_header" 8903 fi 8904 fi 8905 if test "$smr_havelib" = yes; then 8906 with_xpm=yes 8907 problem_xpm= 8908 else 8909 xpm_LIBS= 8910 xpm_CFLAGS= 8911 with_xpm=no 8912 fi 8913else 8914 problem_xpm=": Explicitly disabled" 8915fi 8916 8917if test ! x"$xpm_LIBS" = x; then 8918 # Check for proper version of Xpm -- from XEmacs 21.x configure.in 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xpm 3.4g or better" >&5 8920$as_echo_n "checking for Xpm 3.4g or better... " >&6; } 8921 my_CPPFLAGS="$CPPFLAGS" 8922 my_LIBS="$LIBS" 8923 CPPFLAGS="$CPPFLAGS $xpm_CFLAGS $X_CFLAGS" 8924 LIBS="$LIBS $xpm_LIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS" 8925 if test "$cross_compiling" = yes; then : 8926 echo $ac_n "cross compiling; assumed OK... $ac_c" 8927else 8928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8929/* end confdefs.h. */ 8930#include <X11/xpm.h> 8931 int main(int c, char **v) { 8932 return c == 1 ? 0 : 8933 XpmIncludeVersion != XpmLibraryVersion() ? 1 : 8934 XpmIncludeVersion < 30407 ? 2 : 0 ;} 8935_ACEOF 8936if ac_fn_c_try_run "$LINENO"; then : 8937 ./conftest dummy_arg; xpm_status=$?; 8938 if test x"$xpm_status" = x0; then 8939 with_xpm=yes 8940 problem_xpm="" 8941 else 8942 with_xpm=no; 8943 if test x"$xpm_status" = x1; then 8944 problem_xpm=": Xpm library and header versions don't match" 8945 elif test x"$xpm_status" = x2x; then 8946 problem_xpm=": Xpm library version is too old" 8947 else 8948 problem_xpm=": Internal xpm detection logic error" 8949 fi 8950 fi 8951else 8952 with_xpm=no; problem_xpm=": Xpm test error, see config.log" 8953fi 8954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 8955 conftest.$ac_objext conftest.beam conftest.$ac_ext 8956fi 8957 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_xpm" >&5 8959$as_echo "$with_xpm" >&6; } 8960 CPPFLAGS="$my_CPPFLAGS" 8961 LIBS="$my_LIBS" 8962 8963 8964 if test x"$with_xpm" = xyes; then 8965 $as_echo "#define XPM 1" >>confdefs.h 8966 8967 # FVWMBANNER=FvwmBanner AC_SUBST(FVWMBANNER) 8968 # XPMROOT=xpmroot AC_SUBST(XPMROOT) 8969 # FVWMSCRIPT=FvwmScript AC_SUBST(FVWMSCRIPT) 8970 else 8971 xpm_LIBS= 8972 xpm_CFLAGS= 8973 fi 8974fi 8975 8976 8977 8978# ********* png 8979png_LIBS="" 8980png_CFLAGS="" 8981 8982 8983# Check whether --enable-png was given. 8984if test "${enable_png+set}" = set; then : 8985 enableval=$enable_png; with_png="$enableval" 8986else 8987 with_png="yes" 8988fi 8989 8990 8991if test "$with_png" = no; then 8992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** 8993 disabling PNG support will mean the default 8994 configuration shipped with FVWM will be without icon 8995 support. Be sure this is what you mean to do. 8996 ***" >&5 8997$as_echo "$as_me: WARNING: *** 8998 disabling PNG support will mean the default 8999 configuration shipped with FVWM will be without icon 9000 support. Be sure this is what you mean to do. 9001 ***" >&2;} 9002else 9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpng..." >&5 9004$as_echo_n "checking for libpng...... " >&6; } 9005 9006 9007 9008 9009 9010 9011 9012if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 9013 if test -n "$ac_tool_prefix"; then 9014 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 9015set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 9016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9017$as_echo_n "checking for $ac_word... " >&6; } 9018if ${ac_cv_path_PKG_CONFIG+:} false; then : 9019 $as_echo_n "(cached) " >&6 9020else 9021 case $PKG_CONFIG in 9022 [\\/]* | ?:[\\/]*) 9023 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9024 ;; 9025 *) 9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9027for as_dir in $PATH 9028do 9029 IFS=$as_save_IFS 9030 test -z "$as_dir" && as_dir=. 9031 for ac_exec_ext in '' $ac_executable_extensions; do 9032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9033 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9035 break 2 9036 fi 9037done 9038 done 9039IFS=$as_save_IFS 9040 9041 ;; 9042esac 9043fi 9044PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9045if test -n "$PKG_CONFIG"; then 9046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 9047$as_echo "$PKG_CONFIG" >&6; } 9048else 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9050$as_echo "no" >&6; } 9051fi 9052 9053 9054fi 9055if test -z "$ac_cv_path_PKG_CONFIG"; then 9056 ac_pt_PKG_CONFIG=$PKG_CONFIG 9057 # Extract the first word of "pkg-config", so it can be a program name with args. 9058set dummy pkg-config; ac_word=$2 9059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9060$as_echo_n "checking for $ac_word... " >&6; } 9061if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 9062 $as_echo_n "(cached) " >&6 9063else 9064 case $ac_pt_PKG_CONFIG in 9065 [\\/]* | ?:[\\/]*) 9066 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 9067 ;; 9068 *) 9069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9070for as_dir in $PATH 9071do 9072 IFS=$as_save_IFS 9073 test -z "$as_dir" && as_dir=. 9074 for ac_exec_ext in '' $ac_executable_extensions; do 9075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9076 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9078 break 2 9079 fi 9080done 9081 done 9082IFS=$as_save_IFS 9083 9084 ;; 9085esac 9086fi 9087ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 9088if test -n "$ac_pt_PKG_CONFIG"; then 9089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 9090$as_echo "$ac_pt_PKG_CONFIG" >&6; } 9091else 9092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9093$as_echo "no" >&6; } 9094fi 9095 9096 if test "x$ac_pt_PKG_CONFIG" = x; then 9097 PKG_CONFIG="" 9098 else 9099 case $cross_compiling:$ac_tool_warned in 9100yes:) 9101{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9102$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9103ac_tool_warned=yes ;; 9104esac 9105 PKG_CONFIG=$ac_pt_PKG_CONFIG 9106 fi 9107else 9108 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 9109fi 9110 9111fi 9112if test -n "$PKG_CONFIG"; then 9113 _pkg_min_version=0.9.0 9114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 9115$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 9116 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9118$as_echo "yes" >&6; } 9119 else 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9121$as_echo "no" >&6; } 9122 PKG_CONFIG="" 9123 fi 9124fi 9125 9126pkg_failed=no 9127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for png" >&5 9128$as_echo_n "checking for png... " >&6; } 9129 9130if test -n "$png_CFLAGS"; then 9131 pkg_cv_png_CFLAGS="$png_CFLAGS" 9132 elif test -n "$PKG_CONFIG"; then 9133 if test -n "$PKG_CONFIG" && \ 9134 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2\""; } >&5 9135 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2") 2>&5 9136 ac_status=$? 9137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9138 test $ac_status = 0; }; then 9139 pkg_cv_png_CFLAGS=`$PKG_CONFIG --cflags "libpng >= 1.2" 2>/dev/null` 9140 test "x$?" != "x0" && pkg_failed=yes 9141else 9142 pkg_failed=yes 9143fi 9144 else 9145 pkg_failed=untried 9146fi 9147if test -n "$png_LIBS"; then 9148 pkg_cv_png_LIBS="$png_LIBS" 9149 elif test -n "$PKG_CONFIG"; then 9150 if test -n "$PKG_CONFIG" && \ 9151 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng >= 1.2\""; } >&5 9152 ($PKG_CONFIG --exists --print-errors "libpng >= 1.2") 2>&5 9153 ac_status=$? 9154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9155 test $ac_status = 0; }; then 9156 pkg_cv_png_LIBS=`$PKG_CONFIG --libs "libpng >= 1.2" 2>/dev/null` 9157 test "x$?" != "x0" && pkg_failed=yes 9158else 9159 pkg_failed=yes 9160fi 9161 else 9162 pkg_failed=untried 9163fi 9164 9165 9166 9167if test $pkg_failed = yes; then 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9169$as_echo "no" >&6; } 9170 9171if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 9172 _pkg_short_errors_supported=yes 9173else 9174 _pkg_short_errors_supported=no 9175fi 9176 if test $_pkg_short_errors_supported = yes; then 9177 png_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng >= 1.2" 2>&1` 9178 else 9179 png_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng >= 1.2" 2>&1` 9180 fi 9181 # Put the nasty error message in config.log where it belongs 9182 echo "$png_PKG_ERRORS" >&5 9183 9184 9185 as_fn_error $? "*** 9186 libpng not found, and --disable-png not given. 9187 It is recommended to use libpng so that PNG icons can 9188 be rendered by FVWM, which the default configuration 9189 file needs, as well as other third-party programs 9190 which generate menus, for example. 9191 9192 If it is critical that FVWM does not link against 9193 libpng (perhaps due to size limitations of the 9194 binary), then use --disable-png 9195 ***" "$LINENO" 5 9196 9197elif test $pkg_failed = untried; then 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9199$as_echo "no" >&6; } 9200 9201 as_fn_error $? "*** 9202 libpng not found, and --disable-png not given. 9203 It is recommended to use libpng so that PNG icons can 9204 be rendered by FVWM, which the default configuration 9205 file needs, as well as other third-party programs 9206 which generate menus, for example. 9207 9208 If it is critical that FVWM does not link against 9209 libpng (perhaps due to size limitations of the 9210 binary), then use --disable-png 9211 ***" "$LINENO" 5 9212 9213else 9214 png_CFLAGS=$pkg_cv_png_CFLAGS 9215 png_LIBS=$pkg_cv_png_LIBS 9216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9217$as_echo "yes" >&6; } 9218 9219 $as_echo "#define HAVE_PNG 1" >>confdefs.h 9220 9221 9222fi 9223 # ** needed by the png support 9224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 9225$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 9226if ${ac_cv_c_bigendian+:} false; then : 9227 $as_echo_n "(cached) " >&6 9228else 9229 ac_cv_c_bigendian=unknown 9230 # See if we're dealing with a universal compiler. 9231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9232/* end confdefs.h. */ 9233#ifndef __APPLE_CC__ 9234 not a universal capable compiler 9235 #endif 9236 typedef int dummy; 9237 9238_ACEOF 9239if ac_fn_c_try_compile "$LINENO"; then : 9240 9241 # Check for potential -arch flags. It is not universal unless 9242 # there are at least two -arch flags with different values. 9243 ac_arch= 9244 ac_prev= 9245 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 9246 if test -n "$ac_prev"; then 9247 case $ac_word in 9248 i?86 | x86_64 | ppc | ppc64) 9249 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 9250 ac_arch=$ac_word 9251 else 9252 ac_cv_c_bigendian=universal 9253 break 9254 fi 9255 ;; 9256 esac 9257 ac_prev= 9258 elif test "x$ac_word" = "x-arch"; then 9259 ac_prev=arch 9260 fi 9261 done 9262fi 9263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9264 if test $ac_cv_c_bigendian = unknown; then 9265 # See if sys/param.h defines the BYTE_ORDER macro. 9266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9267/* end confdefs.h. */ 9268#include <sys/types.h> 9269 #include <sys/param.h> 9270 9271int 9272main () 9273{ 9274#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 9275 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 9276 && LITTLE_ENDIAN) 9277 bogus endian macros 9278 #endif 9279 9280 ; 9281 return 0; 9282} 9283_ACEOF 9284if ac_fn_c_try_compile "$LINENO"; then : 9285 # It does; now see whether it defined to BIG_ENDIAN or not. 9286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9287/* end confdefs.h. */ 9288#include <sys/types.h> 9289 #include <sys/param.h> 9290 9291int 9292main () 9293{ 9294#if BYTE_ORDER != BIG_ENDIAN 9295 not big endian 9296 #endif 9297 9298 ; 9299 return 0; 9300} 9301_ACEOF 9302if ac_fn_c_try_compile "$LINENO"; then : 9303 ac_cv_c_bigendian=yes 9304else 9305 ac_cv_c_bigendian=no 9306fi 9307rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9308fi 9309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9310 fi 9311 if test $ac_cv_c_bigendian = unknown; then 9312 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9314/* end confdefs.h. */ 9315#include <limits.h> 9316 9317int 9318main () 9319{ 9320#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 9321 bogus endian macros 9322 #endif 9323 9324 ; 9325 return 0; 9326} 9327_ACEOF 9328if ac_fn_c_try_compile "$LINENO"; then : 9329 # It does; now see whether it defined to _BIG_ENDIAN or not. 9330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9331/* end confdefs.h. */ 9332#include <limits.h> 9333 9334int 9335main () 9336{ 9337#ifndef _BIG_ENDIAN 9338 not big endian 9339 #endif 9340 9341 ; 9342 return 0; 9343} 9344_ACEOF 9345if ac_fn_c_try_compile "$LINENO"; then : 9346 ac_cv_c_bigendian=yes 9347else 9348 ac_cv_c_bigendian=no 9349fi 9350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9351fi 9352rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9353 fi 9354 if test $ac_cv_c_bigendian = unknown; then 9355 # Compile a test program. 9356 if test "$cross_compiling" = yes; then : 9357 # Try to guess by grepping values from an object file. 9358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9359/* end confdefs.h. */ 9360short int ascii_mm[] = 9361 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 9362 short int ascii_ii[] = 9363 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 9364 int use_ascii (int i) { 9365 return ascii_mm[i] + ascii_ii[i]; 9366 } 9367 short int ebcdic_ii[] = 9368 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 9369 short int ebcdic_mm[] = 9370 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 9371 int use_ebcdic (int i) { 9372 return ebcdic_mm[i] + ebcdic_ii[i]; 9373 } 9374 extern int foo; 9375 9376int 9377main () 9378{ 9379return use_ascii (foo) == use_ebcdic (foo); 9380 ; 9381 return 0; 9382} 9383_ACEOF 9384if ac_fn_c_try_compile "$LINENO"; then : 9385 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 9386 ac_cv_c_bigendian=yes 9387 fi 9388 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 9389 if test "$ac_cv_c_bigendian" = unknown; then 9390 ac_cv_c_bigendian=no 9391 else 9392 # finding both strings is unlikely to happen, but who knows? 9393 ac_cv_c_bigendian=unknown 9394 fi 9395 fi 9396fi 9397rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9398else 9399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9400/* end confdefs.h. */ 9401$ac_includes_default 9402int 9403main () 9404{ 9405 9406 /* Are we little or big endian? From Harbison&Steele. */ 9407 union 9408 { 9409 long int l; 9410 char c[sizeof (long int)]; 9411 } u; 9412 u.l = 1; 9413 return u.c[sizeof (long int) - 1] == 1; 9414 9415 ; 9416 return 0; 9417} 9418_ACEOF 9419if ac_fn_c_try_run "$LINENO"; then : 9420 ac_cv_c_bigendian=no 9421else 9422 ac_cv_c_bigendian=yes 9423fi 9424rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9425 conftest.$ac_objext conftest.beam conftest.$ac_ext 9426fi 9427 9428 fi 9429fi 9430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 9431$as_echo "$ac_cv_c_bigendian" >&6; } 9432 case $ac_cv_c_bigendian in #( 9433 yes) 9434 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h 9435;; #( 9436 no) 9437 ;; #( 9438 universal) 9439 9440$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 9441 9442 ;; #( 9443 *) 9444 as_fn_error $? "unknown endianness 9445 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; 9446 esac 9447 9448fi 9449 9450 9451 9452 9453# ********* rsvg 9454rsvg_min_version=2.13.92 9455 9456 9457# Check whether --enable-rsvg was given. 9458if test "${enable_rsvg+set}" = set; then : 9459 enableval=$enable_rsvg; if test x"$enableval" = xno; then 9460 with_rsvg=no 9461 problem_rsvg=": Explicitly disabled" 9462 fi 9463fi 9464 9465if test ! x"$with_rsvg" = xno; then 9466 with_rsvg=no 9467 if test ! x"$PKG_CONFIG" = xno ; then 9468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librsvg - version >= $rsvg_min_version" >&5 9469$as_echo_n "checking for librsvg - version >= $rsvg_min_version... " >&6; } 9470 if $PKG_CONFIG --exists librsvg-2.0 ; then 9471 if $PKG_CONFIG --exists "librsvg-2.0 >= $rsvg_min_version" ; then 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9473$as_echo "yes" >&6; } 9474 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo svg backend" >&5 9476$as_echo_n "checking for cairo svg backend... " >&6; } 9477 if $PKG_CONFIG --exists cairo-svg ; then 9478 svg_packages="librsvg-2.0 cairo-svg" 9479 elif $PKG_CONFIG --exists libsvg-cairo ; then 9480 svg_packages="librsvg-2.0 libsvg-cairo" 9481 elif $PKG_CONFIG --exists cairo ; then 9482 svg_packages="librsvg-2.0 cairo" 9483 else 9484 svg_packages="" 9485 fi 9486 if test ! x"$svg_packages" = x ; then 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9488$as_echo "yes" >&6; } 9489 rsvg_CFLAGS=`$PKG_CONFIG --cflags $svg_packages` 9490 rsvg_LIBS=`$PKG_CONFIG --libs $svg_packages` 9491 with_rsvg=yes 9492 else 9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9494$as_echo "no" >&6; } 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** cairo was not found in the pkg-config search" >&5 9496$as_echo "$as_me: WARNING: *** cairo was not found in the pkg-config search" >&2;} 9497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** path. Add the directory containing cairo.pc" >&5 9498$as_echo "$as_me: WARNING: *** path. Add the directory containing cairo.pc" >&2;} 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** to the PKG_CONFIG_PATH environment variable." >&5 9500$as_echo "$as_me: WARNING: *** to the PKG_CONFIG_PATH environment variable." >&2;} 9501 problem_rsvg=": Cannot detect cairo backend" 9502 fi 9503 else 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9505$as_echo "no" >&6; } 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Your librsvg version is < $rsvg_min_version" >&5 9507$as_echo "$as_me: WARNING: *** Your librsvg version is < $rsvg_min_version" >&2;} 9508 problem_rsvg=": Your librsvg version is too old" 9509 fi 9510 else 9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9512$as_echo "no" >&6; } 9513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** librsvg-2.0 was not found in the pkg-config search" >&5 9514$as_echo "$as_me: WARNING: *** librsvg-2.0 was not found in the pkg-config search" >&2;} 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** path. Either librsvg is not installed or you need" >&5 9516$as_echo "$as_me: WARNING: *** path. Either librsvg is not installed or you need" >&2;} 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** to add the directory containing librsvg-2.0.pc to" >&5 9518$as_echo "$as_me: WARNING: *** to add the directory containing librsvg-2.0.pc to" >&2;} 9519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** the PKG_CONFIG_PATH environment variable." >&5 9520$as_echo "$as_me: WARNING: *** the PKG_CONFIG_PATH environment variable." >&2;} 9521 problem_rsvg=": librsvg library or header not found" 9522 fi 9523 else 9524 problem_rsvg=": pkg-config not found" 9525 fi 9526fi 9527if test x"$with_rsvg" = xyes ; then 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a librsvg program compiles and runs" >&5 9529$as_echo_n "checking whether a librsvg program compiles and runs... " >&6; } 9530 original_CFLAGS="$CFLAGS" 9531 original_LIBS="$LIBS" 9532 CFLAGS="$CFLAGS $rsvg_CFLAGS" 9533 LIBS="$LIBS $rsvg_LIBS" 9534 if test "$cross_compiling" = yes; then : 9535 echo $ac_n "cross compiling; assumed OK... $ac_c" 9536else 9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9538/* end confdefs.h. */ 9539 9540 #include <librsvg/rsvg.h> 9541 #include <librsvg/rsvg-cairo.h> 9542 int main() { 9543 RsvgHandle *rsvg; 9544 g_type_init(); 9545 if(!(rsvg = rsvg_handle_new())) return 1; 9546 g_object_unref(G_OBJECT(rsvg)); 9547 return 0; 9548 } 9549 9550_ACEOF 9551if ac_fn_c_try_run "$LINENO"; then : 9552 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9554$as_echo "yes" >&6; } 9555 9556else 9557 9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9559$as_echo "no" >&6; } 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** The librsvg test program failed to run. If your system" >&5 9561$as_echo "$as_me: WARNING: *** The librsvg test program failed to run. If your system" >&2;} 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** has shared libraries outside the normal system library" >&5 9563$as_echo "$as_me: WARNING: *** has shared libraries outside the normal system library" >&2;} 9564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** path, you need to make sure that the LD_LIBRARY_PATH" >&5 9565$as_echo "$as_me: WARNING: *** path, you need to make sure that the LD_LIBRARY_PATH" >&2;} 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** (or the like) environment variable is correctly set." >&5 9567$as_echo "$as_me: WARNING: *** (or the like) environment variable is correctly set." >&2;} 9568 with_rsvg=no 9569 problem_rsvg=": Failed to run test program" 9570 9571fi 9572rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9573 conftest.$ac_objext conftest.beam conftest.$ac_ext 9574fi 9575 9576 CFLAGS="$original_CFLAGS" 9577 LIBS="$original_LIBS" 9578fi 9579if test x"$with_rsvg" = xyes ; then 9580 $as_echo "#define HAVE_RSVG 1" >>confdefs.h 9581 9582 problem_rsvg="" 9583else 9584 rsvg_CFLAGS="" 9585 rsvg_LIBS="" 9586fi 9587 9588 9589 9590# ********* rplay 9591$UNSET ac_cv_header_rplay_h 9592$UNSET ac_cv_lib_rplay_rplay_create 9593# Add in X_EXTRA_LIBS here to get things like connect(). 9594 9595smr_lib=rplay 9596smr_header=rplay.h 9597 9598 9599smr_lib=rplay 9600 9601 9602# Check whether --with-rplay-library was given. 9603if test "${with_rplay_library+set}" = set; then : 9604 withval=$with_rplay_library; 9605 if test "$withval" = yes; then 9606 with_rplay=yes 9607 rplay_LIBS="-l${smr_lib}" 9608 elif test "$withval" = no; then 9609 with_rplay=no 9610 rplay_LIBS= 9611 else 9612 with_rplay=yes 9613 if test -f "$withval"; then 9614 rplay_LIBS=$withval 9615 elif test -d "$withval"; then 9616 rplay_LIBS="-L$withval -l${smr_lib}" 9617 else 9618 as_fn_error $? "--with-rplay-library argument must be yes/no, file or directory" "$LINENO" 5 9619 fi 9620 fi 9621 9622else 9623 9624 with_rplay=maybe 9625 rplay_LIBS="-l${smr_lib}" 9626 9627fi 9628 9629if test "$with_rplay" != no; then 9630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rplay_create in -lrplay" >&5 9631$as_echo_n "checking for rplay_create in -lrplay... " >&6; } 9632if ${ac_cv_lib_rplay_rplay_create+:} false; then : 9633 $as_echo_n "(cached) " >&6 9634else 9635 ac_check_lib_save_LIBS=$LIBS 9636LIBS="-lrplay ${rplay_LIBS} $X_EXTRA_LIBS $LIBS" 9637cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9638/* end confdefs.h. */ 9639 9640/* Override any GCC internal prototype to avoid an error. 9641 Use char because int might match the return type of a GCC 9642 builtin and then its argument prototype would still apply. */ 9643#ifdef __cplusplus 9644extern "C" 9645#endif 9646char rplay_create (); 9647int 9648main () 9649{ 9650return rplay_create (); 9651 ; 9652 return 0; 9653} 9654_ACEOF 9655if ac_fn_c_try_link "$LINENO"; then : 9656 ac_cv_lib_rplay_rplay_create=yes 9657else 9658 ac_cv_lib_rplay_rplay_create=no 9659fi 9660rm -f core conftest.err conftest.$ac_objext \ 9661 conftest$ac_exeext conftest.$ac_ext 9662LIBS=$ac_check_lib_save_LIBS 9663fi 9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rplay_rplay_create" >&5 9665$as_echo "$ac_cv_lib_rplay_rplay_create" >&6; } 9666if test "x$ac_cv_lib_rplay_rplay_create" = xyes; then : 9667 smr_havelib=yes 9668else 9669 smr_havelib=no; problem_rplay=": Can't find working lib$smr_lib" 9670fi 9671 9672 if test "$smr_havelib" = yes -a "$smr_header" != ""; then 9673 9674 9675 9676# Check whether --with-rplay-includes was given. 9677if test "${with_rplay_includes+set}" = set; then : 9678 withval=$with_rplay_includes; 9679 if test -d "$withval"; then 9680 rplay_CFLAGS="-I${withval}" 9681 else 9682 as_fn_error $? "argument must be a directory" "$LINENO" 5 9683 fi 9684fi 9685 9686 9687 smr_save_CPPFLAGS="$CPPFLAGS" 9688 CPPFLAGS="$CPPFLAGS ${rplay_CFLAGS}" 9689 9690 9691 for ac_header in $smr_header 9692do : 9693 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9694ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9695if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9696 cat >>confdefs.h <<_ACEOF 9697#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9698_ACEOF 9699 9700fi 9701 9702done 9703 9704 9705 CPPFLAGS=$smr_save_CPPFLAGS 9706 9707 smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'` 9708 if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then 9709 smr_havelib=no 9710 problem_rplay=": Can't find working $smr_header" 9711 fi 9712 fi 9713 if test "$smr_havelib" = yes; then 9714 with_rplay=yes 9715 problem_rplay= 9716 else 9717 rplay_LIBS= 9718 rplay_CFLAGS= 9719 with_rplay=no 9720 fi 9721else 9722 problem_rplay=": Explicitly disabled" 9723fi 9724 9725test ! x"$rplay_LIBS" = x && $as_echo "#define HAVE_RPLAY 1" >>confdefs.h 9726 9727 9728 9729 9730 9731# ********* stroke 9732$UNSET ac_cv_header_stroke_h 9733$UNSET ac_cv_lib_stroke_stroke_init 9734 9735 9736smr_lib=stroke 9737smr_header=stroke.h 9738 9739 9740smr_lib=stroke 9741 9742 9743# Check whether --with-stroke-library was given. 9744if test "${with_stroke_library+set}" = set; then : 9745 withval=$with_stroke_library; 9746 if test "$withval" = yes; then 9747 with_stroke=yes 9748 stroke_LIBS="-l${smr_lib}" 9749 elif test "$withval" = no; then 9750 with_stroke=no 9751 stroke_LIBS= 9752 else 9753 with_stroke=yes 9754 if test -f "$withval"; then 9755 stroke_LIBS=$withval 9756 elif test -d "$withval"; then 9757 stroke_LIBS="-L$withval -l${smr_lib}" 9758 else 9759 as_fn_error $? "--with-stroke-library argument must be yes/no, file or directory" "$LINENO" 5 9760 fi 9761 fi 9762 9763else 9764 9765 with_stroke=maybe 9766 stroke_LIBS="-l${smr_lib}" 9767 9768fi 9769 9770if test "$with_stroke" != no; then 9771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stroke_init in -lstroke" >&5 9772$as_echo_n "checking for stroke_init in -lstroke... " >&6; } 9773if ${ac_cv_lib_stroke_stroke_init+:} false; then : 9774 $as_echo_n "(cached) " >&6 9775else 9776 ac_check_lib_save_LIBS=$LIBS 9777LIBS="-lstroke ${stroke_LIBS} $X_LIBS -lX11 $LIBS" 9778cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9779/* end confdefs.h. */ 9780 9781/* Override any GCC internal prototype to avoid an error. 9782 Use char because int might match the return type of a GCC 9783 builtin and then its argument prototype would still apply. */ 9784#ifdef __cplusplus 9785extern "C" 9786#endif 9787char stroke_init (); 9788int 9789main () 9790{ 9791return stroke_init (); 9792 ; 9793 return 0; 9794} 9795_ACEOF 9796if ac_fn_c_try_link "$LINENO"; then : 9797 ac_cv_lib_stroke_stroke_init=yes 9798else 9799 ac_cv_lib_stroke_stroke_init=no 9800fi 9801rm -f core conftest.err conftest.$ac_objext \ 9802 conftest$ac_exeext conftest.$ac_ext 9803LIBS=$ac_check_lib_save_LIBS 9804fi 9805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_stroke_stroke_init" >&5 9806$as_echo "$ac_cv_lib_stroke_stroke_init" >&6; } 9807if test "x$ac_cv_lib_stroke_stroke_init" = xyes; then : 9808 smr_havelib=yes 9809else 9810 smr_havelib=no; problem_stroke=": Can't find working lib$smr_lib" 9811fi 9812 9813 if test "$smr_havelib" = yes -a "$smr_header" != ""; then 9814 9815 9816 9817# Check whether --with-stroke-includes was given. 9818if test "${with_stroke_includes+set}" = set; then : 9819 withval=$with_stroke_includes; 9820 if test -d "$withval"; then 9821 stroke_CFLAGS="-I${withval}" 9822 else 9823 as_fn_error $? "argument must be a directory" "$LINENO" 5 9824 fi 9825fi 9826 9827 9828 smr_save_CPPFLAGS="$CPPFLAGS" 9829 CPPFLAGS="$CPPFLAGS ${stroke_CFLAGS}" 9830 CPPFLAGS="$CPPFLAGS $X_CFLAGS -I/usr/X11R6/include" 9831 9832 for ac_header in $smr_header 9833do : 9834 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9835ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 9836if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9837 cat >>confdefs.h <<_ACEOF 9838#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9839_ACEOF 9840 9841fi 9842 9843done 9844 9845 9846 CPPFLAGS=$smr_save_CPPFLAGS 9847 9848 smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'` 9849 if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then 9850 smr_havelib=no 9851 problem_stroke=": Can't find working $smr_header" 9852 fi 9853 fi 9854 if test "$smr_havelib" = yes; then 9855 with_stroke=yes 9856 problem_stroke= 9857 else 9858 stroke_LIBS= 9859 stroke_CFLAGS= 9860 with_stroke=no 9861 fi 9862else 9863 problem_stroke=": Explicitly disabled" 9864fi 9865test ! x"$stroke_LIBS" = x && 9866$as_echo "#define HAVE_STROKE 1" >>confdefs.h 9867 9868 9869 9870 9871 9872 9873# ********* readline 9874with_readline=no 9875problem_readline=": Both termcap and ncurses disabled" 9876 9877 9878 9879smr_lib=termcap 9880 9881 9882# Check whether --with-termcap-library was given. 9883if test "${with_termcap_library+set}" = set; then : 9884 withval=$with_termcap_library; 9885 if test "$withval" = yes; then 9886 with_termcap=yes 9887 termcap_LIBS="-l${smr_lib}" 9888 elif test "$withval" = no; then 9889 with_termcap=no 9890 termcap_LIBS= 9891 else 9892 with_termcap=yes 9893 if test -f "$withval"; then 9894 termcap_LIBS=$withval 9895 elif test -d "$withval"; then 9896 termcap_LIBS="-L$withval -l${smr_lib}" 9897 else 9898 as_fn_error $? "--with-termcap-library argument must be yes/no, file or directory" "$LINENO" 5 9899 fi 9900 fi 9901 9902else 9903 9904 with_termcap=maybe 9905 termcap_LIBS="-l${smr_lib}" 9906 9907fi 9908 9909 9910if test ! x"$with_termcap" = xno; then 9911 # Forget cached values, so user can re-run configure 9912 $UNSET ac_cv_header_readline_history_h 9913 $UNSET ac_cv_lib_readline_readline 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking with termcap" >&5 9915$as_echo_n "checking with termcap... " >&6; } 9916 9917smr_lib=readline 9918smr_header=readline/history.h 9919 9920 9921smr_lib=readline 9922 9923 9924# Check whether --with-readline-library was given. 9925if test "${with_readline_library+set}" = set; then : 9926 withval=$with_readline_library; 9927 if test "$withval" = yes; then 9928 with_readline=yes 9929 readline_LIBS="-l${smr_lib}" 9930 elif test "$withval" = no; then 9931 with_readline=no 9932 readline_LIBS= 9933 else 9934 with_readline=yes 9935 if test -f "$withval"; then 9936 readline_LIBS=$withval 9937 elif test -d "$withval"; then 9938 readline_LIBS="-L$withval -l${smr_lib}" 9939 else 9940 as_fn_error $? "--with-readline-library argument must be yes/no, file or directory" "$LINENO" 5 9941 fi 9942 fi 9943 9944else 9945 9946 with_readline=maybe 9947 readline_LIBS="-l${smr_lib}" 9948 9949fi 9950 9951if test "$with_readline" != no; then 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 9953$as_echo_n "checking for readline in -lreadline... " >&6; } 9954if ${ac_cv_lib_readline_readline+:} false; then : 9955 $as_echo_n "(cached) " >&6 9956else 9957 ac_check_lib_save_LIBS=$LIBS 9958LIBS="-lreadline ${readline_LIBS} $termcap_LIBS $LIBS" 9959cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9960/* end confdefs.h. */ 9961 9962/* Override any GCC internal prototype to avoid an error. 9963 Use char because int might match the return type of a GCC 9964 builtin and then its argument prototype would still apply. */ 9965#ifdef __cplusplus 9966extern "C" 9967#endif 9968char readline (); 9969int 9970main () 9971{ 9972return readline (); 9973 ; 9974 return 0; 9975} 9976_ACEOF 9977if ac_fn_c_try_link "$LINENO"; then : 9978 ac_cv_lib_readline_readline=yes 9979else 9980 ac_cv_lib_readline_readline=no 9981fi 9982rm -f core conftest.err conftest.$ac_objext \ 9983 conftest$ac_exeext conftest.$ac_ext 9984LIBS=$ac_check_lib_save_LIBS 9985fi 9986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 9987$as_echo "$ac_cv_lib_readline_readline" >&6; } 9988if test "x$ac_cv_lib_readline_readline" = xyes; then : 9989 smr_havelib=yes 9990else 9991 smr_havelib=no; problem_readline=": Can't find working lib$smr_lib" 9992fi 9993 9994 if test "$smr_havelib" = yes -a "$smr_header" != ""; then 9995 9996 9997 9998# Check whether --with-readline-includes was given. 9999if test "${with_readline_includes+set}" = set; then : 10000 withval=$with_readline_includes; 10001 if test -d "$withval"; then 10002 readline_CFLAGS="-I${withval}" 10003 else 10004 as_fn_error $? "argument must be a directory" "$LINENO" 5 10005 fi 10006fi 10007 10008 10009 smr_save_CPPFLAGS="$CPPFLAGS" 10010 CPPFLAGS="$CPPFLAGS ${readline_CFLAGS}" 10011 10012 10013 for ac_header in $smr_header 10014do : 10015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10016ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10017if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10018 cat >>confdefs.h <<_ACEOF 10019#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10020_ACEOF 10021 10022fi 10023 10024done 10025 10026 10027 CPPFLAGS=$smr_save_CPPFLAGS 10028 10029 smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'` 10030 if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then 10031 smr_havelib=no 10032 problem_readline=": Can't find working $smr_header" 10033 fi 10034 fi 10035 if test "$smr_havelib" = yes; then 10036 with_readline=yes 10037 problem_readline= 10038 else 10039 readline_LIBS= 10040 readline_CFLAGS= 10041 with_readline=no 10042 fi 10043else 10044 problem_readline=": Explicitly disabled" 10045fi 10046 if test ! x"$readline_LIBS" = x; then 10047 with_readline=yes 10048 readline_LIBS="$readline_LIBS $termcap_LIBS" 10049 $as_echo "#define HAVE_READLINE 1" >>confdefs.h 10050 10051 fi 10052fi 10053 10054 10055smr_lib=ncurses 10056 10057 10058# Check whether --with-ncurses-library was given. 10059if test "${with_ncurses_library+set}" = set; then : 10060 withval=$with_ncurses_library; 10061 if test "$withval" = yes; then 10062 with_ncurses=yes 10063 ncurses_LIBS="-l${smr_lib}" 10064 elif test "$withval" = no; then 10065 with_ncurses=no 10066 ncurses_LIBS= 10067 else 10068 with_ncurses=yes 10069 if test -f "$withval"; then 10070 ncurses_LIBS=$withval 10071 elif test -d "$withval"; then 10072 ncurses_LIBS="-L$withval -l${smr_lib}" 10073 else 10074 as_fn_error $? "--with-ncurses-library argument must be yes/no, file or directory" "$LINENO" 5 10075 fi 10076 fi 10077 10078else 10079 10080 with_ncurses=maybe 10081 ncurses_LIBS="-l${smr_lib}" 10082 10083fi 10084 10085if test ! x"$with_ncurses" = xno && test x"$readline_LIBS" = x; then 10086 # We couldn't use readline with termcap; try with ncurses? 10087 # Doesn't this seem a hacky way to do this?? 10088 # unset cached values from last check... 10089 $UNSET ac_cv_header_readline_history_h 10090 $UNSET ac_cv_lib_readline_readline 10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking with ncurses" >&5 10092$as_echo_n "checking with ncurses... " >&6; } 10093 10094smr_lib=readline 10095smr_header=readline/history.h 10096 10097 10098smr_lib=readline 10099 10100 10101# Check whether --with-readline-library was given. 10102if test "${with_readline_library+set}" = set; then : 10103 withval=$with_readline_library; 10104 if test "$withval" = yes; then 10105 with_readline=yes 10106 readline_LIBS="-l${smr_lib}" 10107 elif test "$withval" = no; then 10108 with_readline=no 10109 readline_LIBS= 10110 else 10111 with_readline=yes 10112 if test -f "$withval"; then 10113 readline_LIBS=$withval 10114 elif test -d "$withval"; then 10115 readline_LIBS="-L$withval -l${smr_lib}" 10116 else 10117 as_fn_error $? "--with-readline-library argument must be yes/no, file or directory" "$LINENO" 5 10118 fi 10119 fi 10120 10121else 10122 10123 with_readline=maybe 10124 readline_LIBS="-l${smr_lib}" 10125 10126fi 10127 10128if test "$with_readline" != no; then 10129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 10130$as_echo_n "checking for readline in -lreadline... " >&6; } 10131if ${ac_cv_lib_readline_readline+:} false; then : 10132 $as_echo_n "(cached) " >&6 10133else 10134 ac_check_lib_save_LIBS=$LIBS 10135LIBS="-lreadline ${readline_LIBS} $ncurses_LIBS $LIBS" 10136cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10137/* end confdefs.h. */ 10138 10139/* Override any GCC internal prototype to avoid an error. 10140 Use char because int might match the return type of a GCC 10141 builtin and then its argument prototype would still apply. */ 10142#ifdef __cplusplus 10143extern "C" 10144#endif 10145char readline (); 10146int 10147main () 10148{ 10149return readline (); 10150 ; 10151 return 0; 10152} 10153_ACEOF 10154if ac_fn_c_try_link "$LINENO"; then : 10155 ac_cv_lib_readline_readline=yes 10156else 10157 ac_cv_lib_readline_readline=no 10158fi 10159rm -f core conftest.err conftest.$ac_objext \ 10160 conftest$ac_exeext conftest.$ac_ext 10161LIBS=$ac_check_lib_save_LIBS 10162fi 10163{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 10164$as_echo "$ac_cv_lib_readline_readline" >&6; } 10165if test "x$ac_cv_lib_readline_readline" = xyes; then : 10166 smr_havelib=yes 10167else 10168 smr_havelib=no; problem_readline=": Can't find working lib$smr_lib" 10169fi 10170 10171 if test "$smr_havelib" = yes -a "$smr_header" != ""; then 10172 10173 10174 10175# Check whether --with-readline-includes was given. 10176if test "${with_readline_includes+set}" = set; then : 10177 withval=$with_readline_includes; 10178 if test -d "$withval"; then 10179 readline_CFLAGS="-I${withval}" 10180 else 10181 as_fn_error $? "argument must be a directory" "$LINENO" 5 10182 fi 10183fi 10184 10185 10186 smr_save_CPPFLAGS="$CPPFLAGS" 10187 CPPFLAGS="$CPPFLAGS ${readline_CFLAGS}" 10188 10189 10190 for ac_header in $smr_header 10191do : 10192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10193ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10194if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10195 cat >>confdefs.h <<_ACEOF 10196#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10197_ACEOF 10198 10199fi 10200 10201done 10202 10203 10204 CPPFLAGS=$smr_save_CPPFLAGS 10205 10206 smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'` 10207 if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then 10208 smr_havelib=no 10209 problem_readline=": Can't find working $smr_header" 10210 fi 10211 fi 10212 if test "$smr_havelib" = yes; then 10213 with_readline=yes 10214 problem_readline= 10215 else 10216 readline_LIBS= 10217 readline_CFLAGS= 10218 with_readline=no 10219 fi 10220else 10221 problem_readline=": Explicitly disabled" 10222fi 10223 if test ! x"$readline_LIBS" = x; then 10224 with_readline=yes 10225 readline_LIBS="$readline_LIBS $ncurses_LIBS" 10226 $as_echo "#define HAVE_READLINE 1" >>confdefs.h 10227 10228 fi 10229fi 10230 10231if test x"$with_readline" = xyes; then 10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for append_history in -lreadline" >&5 10233$as_echo_n "checking for append_history in -lreadline... " >&6; } 10234if ${ac_cv_lib_readline_append_history+:} false; then : 10235 $as_echo_n "(cached) " >&6 10236else 10237 ac_check_lib_save_LIBS=$LIBS 10238LIBS="-lreadline $readline_LIBS $LIBS" 10239cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10240/* end confdefs.h. */ 10241 10242/* Override any GCC internal prototype to avoid an error. 10243 Use char because int might match the return type of a GCC 10244 builtin and then its argument prototype would still apply. */ 10245#ifdef __cplusplus 10246extern "C" 10247#endif 10248char append_history (); 10249int 10250main () 10251{ 10252return append_history (); 10253 ; 10254 return 0; 10255} 10256_ACEOF 10257if ac_fn_c_try_link "$LINENO"; then : 10258 ac_cv_lib_readline_append_history=yes 10259else 10260 ac_cv_lib_readline_append_history=no 10261fi 10262rm -f core conftest.err conftest.$ac_objext \ 10263 conftest$ac_exeext conftest.$ac_ext 10264LIBS=$ac_check_lib_save_LIBS 10265fi 10266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_append_history" >&5 10267$as_echo "$ac_cv_lib_readline_append_history" >&6; } 10268if test "x$ac_cv_lib_readline_append_history" = xyes; then : 10269 $as_echo "#define HAVE_GNU_READLINE 1" >>confdefs.h 10270 10271fi 10272 10273fi 10274 10275 10276 10277 10278# Check if Xsetlocale() is available or not. 10279 10280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _Xsetlocale in -lX11" >&5 10281$as_echo_n "checking for _Xsetlocale in -lX11... " >&6; } 10282if ${ac_cv_lib_X11__Xsetlocale+:} false; then : 10283 $as_echo_n "(cached) " >&6 10284else 10285 ac_check_lib_save_LIBS=$LIBS 10286LIBS="-lX11 $X_LIBS -lX11 $LIBS" 10287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10288/* end confdefs.h. */ 10289 10290/* Override any GCC internal prototype to avoid an error. 10291 Use char because int might match the return type of a GCC 10292 builtin and then its argument prototype would still apply. */ 10293#ifdef __cplusplus 10294extern "C" 10295#endif 10296char _Xsetlocale (); 10297int 10298main () 10299{ 10300return _Xsetlocale (); 10301 ; 10302 return 0; 10303} 10304_ACEOF 10305if ac_fn_c_try_link "$LINENO"; then : 10306 ac_cv_lib_X11__Xsetlocale=yes 10307else 10308 ac_cv_lib_X11__Xsetlocale=no 10309fi 10310rm -f core conftest.err conftest.$ac_objext \ 10311 conftest$ac_exeext conftest.$ac_ext 10312LIBS=$ac_check_lib_save_LIBS 10313fi 10314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11__Xsetlocale" >&5 10315$as_echo "$ac_cv_lib_X11__Xsetlocale" >&6; } 10316if test "x$ac_cv_lib_X11__Xsetlocale" = xyes; then : 10317 $as_echo "#define X_LOCALE 1" >>confdefs.h 10318 10319fi 10320 10321 10322# Check if Xsetlocale() is available or not. 10323 10324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XOpenOM in -lX11" >&5 10325$as_echo_n "checking for XOpenOM in -lX11... " >&6; } 10326if ${ac_cv_lib_X11_XOpenOM+:} false; then : 10327 $as_echo_n "(cached) " >&6 10328else 10329 ac_check_lib_save_LIBS=$LIBS 10330LIBS="-lX11 $X_LIBS -lX11 $LIBS" 10331cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10332/* end confdefs.h. */ 10333 10334/* Override any GCC internal prototype to avoid an error. 10335 Use char because int might match the return type of a GCC 10336 builtin and then its argument prototype would still apply. */ 10337#ifdef __cplusplus 10338extern "C" 10339#endif 10340char XOpenOM (); 10341int 10342main () 10343{ 10344return XOpenOM (); 10345 ; 10346 return 0; 10347} 10348_ACEOF 10349if ac_fn_c_try_link "$LINENO"; then : 10350 ac_cv_lib_X11_XOpenOM=yes 10351else 10352 ac_cv_lib_X11_XOpenOM=no 10353fi 10354rm -f core conftest.err conftest.$ac_objext \ 10355 conftest$ac_exeext conftest.$ac_ext 10356LIBS=$ac_check_lib_save_LIBS 10357fi 10358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XOpenOM" >&5 10359$as_echo "$ac_cv_lib_X11_XOpenOM" >&6; } 10360if test "x$ac_cv_lib_X11_XOpenOM" = xyes; then : 10361 $as_echo "#define HAVE_XOUTPUT_METHOD 1" >>confdefs.h 10362 10363fi 10364 10365 10366# ******** iconv 10367with_iconv=no 10368with_iconv_type=no 10369with_lib_iconv=no 10370with_sys_iconv=no 10371problem_iconv=": Explicitly disabled" 10372 10373# Check whether --enable-iconv was given. 10374if test "${enable_iconv+set}" = set; then : 10375 enableval=$enable_iconv; ac_cv_iconv="$enableval" 10376else 10377 ac_cv_iconv="yes" 10378fi 10379 10380 10381 10382 10383if test ! x"$ac_cv_iconv" = xno; then 10384 # * first check for gnu libiconv 10385 $UNSET ac_cv_header_libiconv_h 10386 $UNSET ac_cv_lib_libiconv_libiconv_open 10387 10388smr_lib=iconv 10389smr_header=iconv.h 10390 10391 10392smr_lib=iconv 10393 10394 10395# Check whether --with-iconv-library was given. 10396if test "${with_iconv_library+set}" = set; then : 10397 withval=$with_iconv_library; 10398 if test "$withval" = yes; then 10399 with_iconv=yes 10400 iconv_LIBS="-l${smr_lib}" 10401 elif test "$withval" = no; then 10402 with_iconv=no 10403 iconv_LIBS= 10404 else 10405 with_iconv=yes 10406 if test -f "$withval"; then 10407 iconv_LIBS=$withval 10408 elif test -d "$withval"; then 10409 iconv_LIBS="-L$withval -l${smr_lib}" 10410 else 10411 as_fn_error $? "--with-iconv-library argument must be yes/no, file or directory" "$LINENO" 5 10412 fi 10413 fi 10414 10415else 10416 10417 with_iconv=maybe 10418 iconv_LIBS="-l${smr_lib}" 10419 10420fi 10421 10422if test "$with_iconv" != no; then 10423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libiconv_open in -liconv" >&5 10424$as_echo_n "checking for libiconv_open in -liconv... " >&6; } 10425if ${ac_cv_lib_iconv_libiconv_open+:} false; then : 10426 $as_echo_n "(cached) " >&6 10427else 10428 ac_check_lib_save_LIBS=$LIBS 10429LIBS="-liconv ${iconv_LIBS} $LIBS" 10430cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10431/* end confdefs.h. */ 10432 10433/* Override any GCC internal prototype to avoid an error. 10434 Use char because int might match the return type of a GCC 10435 builtin and then its argument prototype would still apply. */ 10436#ifdef __cplusplus 10437extern "C" 10438#endif 10439char libiconv_open (); 10440int 10441main () 10442{ 10443return libiconv_open (); 10444 ; 10445 return 0; 10446} 10447_ACEOF 10448if ac_fn_c_try_link "$LINENO"; then : 10449 ac_cv_lib_iconv_libiconv_open=yes 10450else 10451 ac_cv_lib_iconv_libiconv_open=no 10452fi 10453rm -f core conftest.err conftest.$ac_objext \ 10454 conftest$ac_exeext conftest.$ac_ext 10455LIBS=$ac_check_lib_save_LIBS 10456fi 10457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_iconv_libiconv_open" >&5 10458$as_echo "$ac_cv_lib_iconv_libiconv_open" >&6; } 10459if test "x$ac_cv_lib_iconv_libiconv_open" = xyes; then : 10460 smr_havelib=yes 10461else 10462 smr_havelib=no; problem_iconv=": Can't find working lib$smr_lib" 10463fi 10464 10465 if test "$smr_havelib" = yes -a "$smr_header" != ""; then 10466 10467 10468 10469# Check whether --with-iconv-includes was given. 10470if test "${with_iconv_includes+set}" = set; then : 10471 withval=$with_iconv_includes; 10472 if test -d "$withval"; then 10473 iconv_CFLAGS="-I${withval}" 10474 else 10475 as_fn_error $? "argument must be a directory" "$LINENO" 5 10476 fi 10477fi 10478 10479 10480 smr_save_CPPFLAGS="$CPPFLAGS" 10481 CPPFLAGS="$CPPFLAGS ${iconv_CFLAGS}" 10482 10483 10484 for ac_header in $smr_header 10485do : 10486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10487ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10488if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 10489 cat >>confdefs.h <<_ACEOF 10490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10491_ACEOF 10492 10493fi 10494 10495done 10496 10497 10498 CPPFLAGS=$smr_save_CPPFLAGS 10499 10500 smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'` 10501 if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then 10502 smr_havelib=no 10503 problem_iconv=": Can't find working $smr_header" 10504 fi 10505 fi 10506 if test "$smr_havelib" = yes; then 10507 with_iconv=yes 10508 problem_iconv= 10509 else 10510 iconv_LIBS= 10511 iconv_CFLAGS= 10512 with_iconv=no 10513 fi 10514else 10515 problem_iconv=": Explicitly disabled" 10516fi 10517 if test ! x"$iconv_LIBS" = x; then 10518 $as_echo "#define USE_LIBICONV 1" >>confdefs.h 10519 10520 with_lib_iconv=yes 10521 fi 10522 10523 10524 10525 # * check for system iconv 10526 10527 ac_fn_c_check_func "$LINENO" "iconv_open" "ac_cv_func_iconv_open" 10528if test "x$ac_cv_func_iconv_open" = xyes; then : 10529 with_sys_iconv=yes 10530fi 10531 10532 10533 if test x"$with_lib_iconv" = xyes && test x"$with_sys_iconv" = xyes; then 10534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Both system iconv and libiconv found: use libiconv" >&5 10535$as_echo "$as_me: WARNING: *** Both system iconv and libiconv found: use libiconv" >&2;} 10536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Use --with-iconv-library=no to use the system iconv" >&5 10537$as_echo "$as_me: WARNING: *** Use --with-iconv-library=no to use the system iconv" >&2;} 10538 fi 10539 10540 # * libiconv found check for libcharset to get the good iconv charset 10541 if test x"$with_lib_iconv" = xyes; then 10542 10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking check for libcharset" >&5 10544$as_echo_n "checking check for libcharset... " >&6; } 10545 ac_save_CFLAGS="$CFLAGS" 10546 ac_save_LIBS="$LIBS" 10547 CFLAGS="$CFLAGS $iconv_CFLAGS" 10548 LIBS="$LIBS $iconv_LIBS" 10549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10550/* end confdefs.h. */ 10551 10552#include <libcharset.h> 10553int 10554main () 10555{ 10556const char *c; 10557c = locale_charset (); 10558 10559 ; 10560 return 0; 10561} 10562_ACEOF 10563if ac_fn_c_try_link "$LINENO"; then : 10564 r=yes 10565else 10566 r=no 10567fi 10568rm -f core conftest.err conftest.$ac_objext \ 10569 conftest$ac_exeext conftest.$ac_ext 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $r" >&5 10571$as_echo "$r" >&6; } 10572 if test "x$r" = "xyes"; then 10573 $as_echo "#define HAVE_LIBCHARSET 1" >>confdefs.h 10574 10575 fi 10576 CFLAGS="$ac_save_CFLAGS" 10577 LIBS="$ac_save_LIBS" 10578 10579 fi 10580 10581 test x"$with_lib_iconv" = xyes -o x"$with_sys_iconv" = xyes && 10582 with_iconv=yes && problem_iconv="" 10583 test x"$with_lib_iconv" = xyes && with_iconv_type="yes (libiconv)" 10584 test x"$with_sys_iconv" = xyes && with_iconv_type="yes (from C library)" 10585 10586 if test x"$with_iconv" = xno; then 10587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** " >&5 10588$as_echo "$as_me: WARNING: *** " >&2;} 10589 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** No iconv() implementation found in C library or libiconv" >&5 10590$as_echo "$as_me: WARNING: *** No iconv() implementation found in C library or libiconv" >&2;} 10591 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Please install libiconv ftp://ftp.gnu.org/pub/gnu/libiconv/" >&5 10592$as_echo "$as_me: WARNING: *** Please install libiconv ftp://ftp.gnu.org/pub/gnu/libiconv/" >&2;} 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** " >&5 10594$as_echo "$as_me: WARNING: *** " >&2;} 10595 fi 10596 10597 if test x"$with_iconv" = xyes; then 10598 $as_echo "#define HAVE_ICONV 1" >>confdefs.h 10599 10600 10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking check if second arg of iconv is const" >&5 10602$as_echo_n "checking check if second arg of iconv is const... " >&6; } 10603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10604/* end confdefs.h. */ 10605 10606#include <stdlib.h> 10607#include <iconv.h> 10608extern 10609#if defined(__STDC__) 10610size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 10611#else 10612size_t iconv(); 10613#endif 10614 10615int 10616main () 10617{ 10618 10619 ; 10620 return 0; 10621} 10622_ACEOF 10623if ac_fn_c_try_compile "$LINENO"; then : 10624 use_const=no 10625else 10626 use_const=yes 10627fi 10628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_const" >&5 10630$as_echo "$use_const" >&6; } 10631 10632 if test "x$use_const" = "xyes"; then 10633 $as_echo "#define ICONV_ARG_CONST const" >>confdefs.h 10634 10635 else 10636 $as_echo "#define ICONV_ARG_CONST /**/" >>confdefs.h 10637 10638 fi 10639 10640 fi 10641fi 10642 10643 10644 10645# ******** nl_langinfo and CODESET 10646 10647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo (CODESET)" >&5 10648$as_echo_n "checking for nl_langinfo (CODESET)... " >&6; } 10649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10650/* end confdefs.h. */ 10651#include <langinfo.h> 10652#include <locale.h> 10653int 10654main () 10655{ 10656char *codeset = nl_langinfo(CODESET); setlocale(LC_CTYPE, ""); 10657 ; 10658 return 0; 10659} 10660_ACEOF 10661if ac_fn_c_try_compile "$LINENO"; then : 10662 $as_echo "#define HAVE_CODESET 1" >>confdefs.h 10663 10664 have_codeset=yes 10665else 10666 have_codeset=no 10667fi 10668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_codeset" >&5 10670$as_echo "$have_codeset" >&6; } 10671 10672 10673# ********* fribidi 10674# Check whether --enable-bidi was given. 10675if test "${enable_bidi+set}" = set; then : 10676 enableval=$enable_bidi; if test x"$enableval" = xyes; then 10677 with_bidi="yes, check" 10678 else 10679 with_bidi="no" 10680 problem_bidi=": Explicitly disabled" 10681 fi 10682else 10683 with_bidi="not specified, check" 10684 10685fi 10686 10687 10688fribidi_min_version=0.19.2 10689if test ! x"$with_bidi" = xno; then 10690 10691# Check whether --with-fribidi-bindir was given. 10692if test "${with_fribidi_bindir+set}" = set; then : 10693 withval=$with_fribidi_bindir; FRIBIDI_BINDIR="$withval" 10694else 10695 FRIBIDI_BINDIR="." 10696fi 10697 10698 if test ! x"$PKG_CONFIG" = xno && $PKG_CONFIG --exists "fribidi >= $fribidi_min_version"; then 10699 FRIBIDI_CONFIG="$PKG_CONFIG fribidi" 10700 else 10701 # Extract the first word of "fribidi-config", so it can be a program name with args. 10702set dummy fribidi-config; ac_word=$2 10703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10704$as_echo_n "checking for $ac_word... " >&6; } 10705if ${ac_cv_path_FRIBIDI_CONFIG+:} false; then : 10706 $as_echo_n "(cached) " >&6 10707else 10708 case $FRIBIDI_CONFIG in 10709 [\\/]* | ?:[\\/]*) 10710 ac_cv_path_FRIBIDI_CONFIG="$FRIBIDI_CONFIG" # Let the user override the test with a path. 10711 ;; 10712 *) 10713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10714as_dummy="$FRIBIDI_BINDIR:$PATH" 10715for as_dir in $as_dummy 10716do 10717 IFS=$as_save_IFS 10718 test -z "$as_dir" && as_dir=. 10719 for ac_exec_ext in '' $ac_executable_extensions; do 10720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10721 ac_cv_path_FRIBIDI_CONFIG="$as_dir/$ac_word$ac_exec_ext" 10722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10723 break 2 10724 fi 10725done 10726 done 10727IFS=$as_save_IFS 10728 10729 ;; 10730esac 10731fi 10732FRIBIDI_CONFIG=$ac_cv_path_FRIBIDI_CONFIG 10733if test -n "$FRIBIDI_CONFIG"; then 10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FRIBIDI_CONFIG" >&5 10735$as_echo "$FRIBIDI_CONFIG" >&6; } 10736else 10737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10738$as_echo "no" >&6; } 10739fi 10740 10741 10742 fi 10743 10744 if test x"$FRIBIDI_CONFIG" = x; then 10745 with_bidi=no 10746 problem_bidi=": pkgconfig fribidi: fribidi version >= $fribidi_min_version needed." 10747 else 10748 Bidi_CFLAGS=`$FRIBIDI_CONFIG --cflags` 10749 Bidi_LIBS=`$FRIBIDI_CONFIG --libs` 10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fribidi_log2vis in -lfribidi" >&5 10751$as_echo_n "checking for fribidi_log2vis in -lfribidi... " >&6; } 10752if ${ac_cv_lib_fribidi_fribidi_log2vis+:} false; then : 10753 $as_echo_n "(cached) " >&6 10754else 10755 ac_check_lib_save_LIBS=$LIBS 10756LIBS="-lfribidi $Bidi_LIBS $Bidi_CFLAGS $LIBS" 10757cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10758/* end confdefs.h. */ 10759 10760/* Override any GCC internal prototype to avoid an error. 10761 Use char because int might match the return type of a GCC 10762 builtin and then its argument prototype would still apply. */ 10763#ifdef __cplusplus 10764extern "C" 10765#endif 10766char fribidi_log2vis (); 10767int 10768main () 10769{ 10770return fribidi_log2vis (); 10771 ; 10772 return 0; 10773} 10774_ACEOF 10775if ac_fn_c_try_link "$LINENO"; then : 10776 ac_cv_lib_fribidi_fribidi_log2vis=yes 10777else 10778 ac_cv_lib_fribidi_fribidi_log2vis=no 10779fi 10780rm -f core conftest.err conftest.$ac_objext \ 10781 conftest$ac_exeext conftest.$ac_ext 10782LIBS=$ac_check_lib_save_LIBS 10783fi 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fribidi_fribidi_log2vis" >&5 10785$as_echo "$ac_cv_lib_fribidi_fribidi_log2vis" >&6; } 10786if test "x$ac_cv_lib_fribidi_fribidi_log2vis" = xyes; then : 10787 with_bidi=yes; problem_bidi= 10788else 10789 with_bidi=no; problem_bidi=": No good libs via $FRIBIDI_CONFIG" 10790fi 10791 10792 fi 10793fi 10794 10795if test ! x"$with_bidi" = xno; then 10796 fribidi_in_path=yes 10797 ac_save_LIBS="$LIBS" 10798 LIBS="$LIBS $Bidi_LIBS" 10799 if test "$cross_compiling" = yes; then : 10800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10802as_fn_error $? "cannot run test program while cross compiling 10803See \`config.log' for more details" "$LINENO" 5; } 10804else 10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10806/* end confdefs.h. */ 10807#include <stdlib.h> 10808#include <fribidi/fribidi.h> 10809int main() 10810{ 10811 FriBidiChar *logical_unicode_str = 10812 (FriBidiChar *)malloc((4 + 1) * sizeof(FriBidiChar)); 10813 fribidi_charset_to_unicode( 10814 fribidi_parse_charset("iso8859-8"), "test", 4, 10815 logical_unicode_str); 10816 return 0; 10817} 10818 10819_ACEOF 10820if ac_fn_c_try_run "$LINENO"; then : 10821 : 10822else 10823 fribidi_in_path=no 10824fi 10825rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10826 conftest.$ac_objext conftest.beam conftest.$ac_ext 10827fi 10828 10829 LIBS="$ac_save_LIBS" 10830 if test ! x"$fribidi_in_path" = xyes; then 10831 ac_save_CFLAGS="$CFLAGS" 10832 ac_save_LIBS="$LIBS" 10833 CFLAGS="$CFLAGS $Bidi_CFLAGS" 10834 LIBS="$LIBS $Bidi_LIBS" 10835 if test "$cross_compiling" = yes; then : 10836 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10837$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10838as_fn_error $? "cannot run test program while cross compiling 10839See \`config.log' for more details" "$LINENO" 5; } 10840else 10841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10842/* end confdefs.h. */ 10843#include <stdlib.h> 10844#include <fribidi/fribidi.h> 10845int main() 10846{ 10847 FriBidiChar *logical_unicode_str = 10848 (FriBidiChar *)malloc((4 + 1) * sizeof(FriBidiChar)); 10849 fribidi_charset_to_unicode( 10850 fribidi_parse_charset("iso8859-8"), "test", 4, 10851 logical_unicode_str); 10852 return 0; 10853} 10854 10855_ACEOF 10856if ac_fn_c_try_run "$LINENO"; then : 10857 : 10858else 10859 with_bidi=no; problem_bidi=": Bad fribidi version, see config.log" 10860fi 10861rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10862 conftest.$ac_objext conftest.beam conftest.$ac_ext 10863fi 10864 10865 CFLAGS="$ac_save_CFLAGS" 10866 LIBS="$ac_save_LIBS" 10867 fi 10868 if test ! x"$fribidi_in_path" = xno; then 10869 Bidi_CFLAGS= 10870 Bidi_LIBS=-lfribidi 10871 fi 10872fi 10873 10874 10875 10876if test x"$with_bidi" = xno; then 10877 Bidi_CFLAGS= 10878 Bidi_LIBS= 10879else 10880 $as_echo "#define HAVE_BIDI 1" >>confdefs.h 10881 10882 if test "$cross_compiling" = yes; then : 10883 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10884$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10885as_fn_error $? "cannot run test program while cross compiling 10886See \`config.log' for more details" "$LINENO" 5; } 10887else 10888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10889/* end confdefs.h. */ 10890#include <fribidi/fribidi.h> 10891 int main(int c, char **v) { 10892 return FRIBIDI_CHARSET_NOT_FOUND * 0; 10893 } 10894 10895_ACEOF 10896if ac_fn_c_try_run "$LINENO"; then : 10897 $as_echo "#define FRIBIDI_CHARSET_SPELLING 1" >>confdefs.h 10898 10899fi 10900rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10901 conftest.$ac_objext conftest.beam conftest.$ac_ext 10902fi 10903 10904fi 10905 10906 10907 10908 10909 10910 10911# ********* perllib 10912with_perllib="yes" 10913problem_perllib="" 10914FVWM_PERLLIB=perllib 10915# Check whether --enable-perllib was given. 10916if test "${enable_perllib+set}" = set; then : 10917 enableval=$enable_perllib; if test x"$enableval" = xno; then 10918 with_perllib="no" 10919 problem_perllib=": Explicitly disabled" 10920 FVWM_PERLLIB="" 10921 fi 10922fi 10923 10924 10925 10926# ******* gettext 10927ALL_LINGUAS="ar da de fr sv_SE zh_CN ru es" 10928FVWM_DOMAIN="fvwm" 10929FVWMSCRIPT_DOMAIN="FvwmScript" 10930ALL_DOMAINS="$FVWM_DOMAIN $FVWMTASKBAR_DOMAIN $FVWMSCRIPT_DOMAIN" 10931 10932 10933 10934 10935 10936 10937 10938LOCALEDIR='${datadir}'"/locale" 10939with_gettext="yes" 10940problem_gettext="" 10941 10942# Check whether --enable-nls was given. 10943if test "${enable_nls+set}" = set; then : 10944 enableval=$enable_nls; if test x"$enableval" = xno; then 10945 with_gettext="no" 10946 problem_gettext=": Explicitly disabled" 10947 fi 10948fi 10949 10950 10951 10952if test ! x"$with_gettext" = xno; then 10953 10954 MKINSTALLDIRS= 10955 if test -n "$ac_aux_dir"; then 10956 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" 10957 fi 10958 if test -z "$MKINSTALLDIRS"; then 10959 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" 10960 fi 10961 10962 10963 10964 10965 # Extract the first word of "msgfmt", so it can be a program name with args. 10966set dummy msgfmt; ac_word=$2 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10968$as_echo_n "checking for $ac_word... " >&6; } 10969if ${ac_cv_path_MSGFMT+:} false; then : 10970 $as_echo_n "(cached) " >&6 10971else 10972 case "$MSGFMT" in 10973 /*) 10974 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 10975 ;; 10976 *) 10977 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 10978 for ac_dir in $PATH; do 10979 test -z "$ac_dir" && ac_dir=. 10980 if test -f $ac_dir/$ac_word; then 10981 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && 10982 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 10983 ac_cv_path_MSGFMT="$ac_dir/$ac_word" 10984 break 10985 fi 10986 fi 10987 done 10988 IFS="$ac_save_ifs" 10989 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 10990 ;; 10991esac 10992fi 10993MSGFMT="$ac_cv_path_MSGFMT" 10994if test "$MSGFMT" != ":"; then 10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 10996$as_echo "$MSGFMT" >&6; } 10997else 10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10999$as_echo "no" >&6; } 11000fi 11001 11002 # Extract the first word of "gmsgfmt", so it can be a program name with args. 11003set dummy gmsgfmt; ac_word=$2 11004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11005$as_echo_n "checking for $ac_word... " >&6; } 11006if ${ac_cv_path_GMSGFMT+:} false; then : 11007 $as_echo_n "(cached) " >&6 11008else 11009 case $GMSGFMT in 11010 [\\/]* | ?:[\\/]*) 11011 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 11012 ;; 11013 *) 11014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11015for as_dir in $PATH 11016do 11017 IFS=$as_save_IFS 11018 test -z "$as_dir" && as_dir=. 11019 for ac_exec_ext in '' $ac_executable_extensions; do 11020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11021 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 11022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11023 break 2 11024 fi 11025done 11026 done 11027IFS=$as_save_IFS 11028 11029 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 11030 ;; 11031esac 11032fi 11033GMSGFMT=$ac_cv_path_GMSGFMT 11034if test -n "$GMSGFMT"; then 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 11036$as_echo "$GMSGFMT" >&6; } 11037else 11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11039$as_echo "no" >&6; } 11040fi 11041 11042 11043 11044 # Extract the first word of "xgettext", so it can be a program name with args. 11045set dummy xgettext; ac_word=$2 11046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11047$as_echo_n "checking for $ac_word... " >&6; } 11048if ${ac_cv_path_XGETTEXT+:} false; then : 11049 $as_echo_n "(cached) " >&6 11050else 11051 case "$XGETTEXT" in 11052 /*) 11053 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 11054 ;; 11055 *) 11056 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 11057 for ac_dir in $PATH; do 11058 test -z "$ac_dir" && ac_dir=. 11059 if test -f $ac_dir/$ac_word; then 11060 if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 11061 (if $ac_dir/$ac_word --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11062 ac_cv_path_XGETTEXT="$ac_dir/$ac_word" 11063 break 11064 fi 11065 fi 11066 done 11067 IFS="$ac_save_ifs" 11068 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 11069 ;; 11070esac 11071fi 11072XGETTEXT="$ac_cv_path_XGETTEXT" 11073if test "$XGETTEXT" != ":"; then 11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 11075$as_echo "$XGETTEXT" >&6; } 11076else 11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11078$as_echo "no" >&6; } 11079fi 11080 11081 rm -f messages.po 11082 11083 # Extract the first word of "msgmerge", so it can be a program name with args. 11084set dummy msgmerge; ac_word=$2 11085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11086$as_echo_n "checking for $ac_word... " >&6; } 11087if ${ac_cv_path_MSGMERGE+:} false; then : 11088 $as_echo_n "(cached) " >&6 11089else 11090 case "$MSGMERGE" in 11091 /*) 11092 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 11093 ;; 11094 *) 11095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" 11096 for ac_dir in $PATH; do 11097 test -z "$ac_dir" && ac_dir=. 11098 if test -f $ac_dir/$ac_word; then 11099 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then 11100 ac_cv_path_MSGMERGE="$ac_dir/$ac_word" 11101 break 11102 fi 11103 fi 11104 done 11105 IFS="$ac_save_ifs" 11106 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 11107 ;; 11108esac 11109fi 11110MSGMERGE="$ac_cv_path_MSGMERGE" 11111if test "$MSGMERGE" != ":"; then 11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 11113$as_echo "$MSGMERGE" >&6; } 11114else 11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11116$as_echo "no" >&6; } 11117fi 11118 11119 11120 if test "$GMSGFMT" != ":"; then 11121 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && 11122 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11123 : ; 11124 else 11125 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` 11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 11127$as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } 11128 GMSGFMT=":" 11129 fi 11130 fi 11131 11132 if test "$XGETTEXT" != ":"; then 11133 if $XGETTEXT --omit-header --copyright-holder= /dev/null >/dev/null 2>&1 && 11134 (if $XGETTEXT --omit-header --copyright-holder= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11135 : ; 11136 else 11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 11138$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } 11139 XGETTEXT=":" 11140 fi 11141 rm -f messages.po 11142 fi 11143 11144 # Extract the first word of "msguniq", so it can be a program name with args. 11145set dummy msguniq; ac_word=$2 11146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11147$as_echo_n "checking for $ac_word... " >&6; } 11148if ${ac_cv_path_MSGUNIQ+:} false; then : 11149 $as_echo_n "(cached) " >&6 11150else 11151 case $MSGUNIQ in 11152 [\\/]* | ?:[\\/]*) 11153 ac_cv_path_MSGUNIQ="$MSGUNIQ" # Let the user override the test with a path. 11154 ;; 11155 *) 11156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11157for as_dir in $PATH 11158do 11159 IFS=$as_save_IFS 11160 test -z "$as_dir" && as_dir=. 11161 for ac_exec_ext in '' $ac_executable_extensions; do 11162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11163 ac_cv_path_MSGUNIQ="$as_dir/$ac_word$ac_exec_ext" 11164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11165 break 2 11166 fi 11167done 11168 done 11169IFS=$as_save_IFS 11170 11171 test -z "$ac_cv_path_MSGUNIQ" && ac_cv_path_MSGUNIQ="$MSGUNIQ" 11172 ;; 11173esac 11174fi 11175MSGUNIQ=$ac_cv_path_MSGUNIQ 11176if test -n "$MSGUNIQ"; then 11177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGUNIQ" >&5 11178$as_echo "$MSGUNIQ" >&6; } 11179else 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11181$as_echo "no" >&6; } 11182fi 11183 11184 11185 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS fvwm messages catalogs" >&5 11187$as_echo_n "checking for NLS fvwm messages catalogs... " >&6; } 11188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALL_LINGUAS" >&5 11189$as_echo "$ALL_LINGUAS" >&6; } 11190 POFILES= 11191 GMOFILES= 11192 UPDATEPOFILES= 11193 DUMMYPOFILES= 11194 for lang in $ALL_LINGUAS; do 11195 for dom in $ALL_DOMAINS; do 11196 POFILES="$POFILES $dom.$lang.po" 11197 GMOFILES="$GMOFILES $dom.$lang.gmo" 11198 UPDATEPOFILES="$UPDATEPOFILES $dom.$lang.po-update" 11199 DUMMYPOFILES="$DUMMYPOFILES $dom.$lang.nop" 11200 done 11201 done 11202 # CATALOGS depends on both $ac_dir and the user's LINGUAS environment variable. 11203 INST_LINGUAS= 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS desired catalogs to be installed" >&5 11205$as_echo_n "checking for NLS desired catalogs to be installed... " >&6; } 11206 #if test "%UNSET%" != "$LINGUAS"; then 11207 # FIXME: How to check if LINGUAS has been *set* to "" 11208 if test -n "$LINGUAS"; then 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 11210$as_echo "$LINGUAS" >&6; } 11211 else 11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: all" >&5 11213$as_echo "all" >&6; } 11214 fi 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NLS messages catalogs to be installed" >&5 11216$as_echo_n "checking for NLS messages catalogs to be installed... " >&6; } 11217 if test -n "$ALL_LINGUAS"; then 11218 for presentlang in $ALL_LINGUAS; do 11219 useit=no 11220 #if test "%UNSET%" != "$LINGUAS"; then 11221 if test -n "$LINGUAS"; then 11222 desiredlanguages="$LINGUAS" 11223 else 11224 desiredlanguages="$ALL_LINGUAS" 11225 fi 11226 for desiredlang in $desiredlanguages; do 11227 # Use the presentlang catalog if desiredlang is 11228 # a. equal to presentlang, or 11229 # b. a variant of presentlang (because in this case, 11230 # presentlang can be used as a fallback for messages 11231 # which are not translated in the desiredlang catalog). 11232 case "$desiredlang" in 11233 "$presentlang"*) useit=yes;; 11234 esac 11235 done 11236 if test $useit = yes; then 11237 INST_LINGUAS="$INST_LINGUAS $presentlang" 11238 fi 11239 done 11240 fi 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INST_LINGUAS" >&5 11242$as_echo "$INST_LINGUAS" >&6; } 11243 CATALOGS= 11244 if test -n "$INST_LINGUAS"; then 11245 for lang in $INST_LINGUAS; do 11246 CATALOGS="$CATALOGS $lang.gmo" 11247 done 11248 fi 11249 11250 11251 11252 11253 intl_LIBS= 11254 intl_CFLAGS= 11255 POSUB= 11256 11257 found_gettext=yes 11258 11259 $UNSET ac_cv_header_intl_h 11260 $UNSET ac_cv_func_gettext 11261 $UNSET ac_cv_func_bindtextdomain 11262 $UNSET ac_cv_func_textdomain 11263 $UNSET ac_cv_func_dgettext 11264 #bind_textdomain_codeset 11265 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" 11266if test "x$ac_cv_header_libintl_h" = xyes; then : 11267 for ac_func in gettext bindtextdomain textdomain dgettext 11268do : 11269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11270ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11271if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11272 cat >>confdefs.h <<_ACEOF 11273#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11274_ACEOF 11275 11276else 11277 found_gettext=no 11278fi 11279done 11280 11281else 11282 found_gettext=no 11283fi 11284 11285 11286 11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnu gettext in libc" >&5 11288$as_echo_n "checking for gnu gettext in libc... " >&6; } 11289 if test x"$found_gettext" = "xyes"; then 11290 problem_gettext=" (libc)" 11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11292$as_echo "yes" >&6; } 11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if a simple gettext program link" >&5 11294$as_echo_n "checking if a simple gettext program link... " >&6; } 11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11296/* end confdefs.h. */ 11297 11298 #include <libintl.h> 11299 11300int 11301main () 11302{ 11303const char *c; c = gettext("foo"); 11304 ; 11305 return 0; 11306} 11307_ACEOF 11308if ac_fn_c_try_link "$LINENO"; then : 11309 found_gettext=yes;problem_gettext=" (libc)" 11310else 11311 found_gettext=no 11312fi 11313rm -f core conftest.err conftest.$ac_objext \ 11314 conftest$ac_exeext conftest.$ac_ext 11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_gettext" >&5 11316$as_echo "$found_gettext" >&6; } 11317 else 11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11319$as_echo "no" >&6; } 11320 fi 11321 11322 if test x"$found_gettext" = xno; then 11323 $UNSET ac_cv_header_intl_h 11324 $UNSET ac_cv_lib_intl_bindtextdomain 11325 $UNSET ac_cv_lib_intl_textdomain 11326 $UNSET ac_cv_lib_intl_dgettext 11327 11328smr_lib=intl 11329smr_header=libintl.h 11330 11331 11332smr_lib=intl 11333 11334 11335# Check whether --with-intl-library was given. 11336if test "${with_intl_library+set}" = set; then : 11337 withval=$with_intl_library; 11338 if test "$withval" = yes; then 11339 with_intl=yes 11340 intl_LIBS="-l${smr_lib}" 11341 elif test "$withval" = no; then 11342 with_intl=no 11343 intl_LIBS= 11344 else 11345 with_intl=yes 11346 if test -f "$withval"; then 11347 intl_LIBS=$withval 11348 elif test -d "$withval"; then 11349 intl_LIBS="-L$withval -l${smr_lib}" 11350 else 11351 as_fn_error $? "--with-intl-library argument must be yes/no, file or directory" "$LINENO" 5 11352 fi 11353 fi 11354 11355else 11356 11357 with_intl=maybe 11358 intl_LIBS="-l${smr_lib}" 11359 11360fi 11361 11362if test "$with_intl" != no; then 11363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5 11364$as_echo_n "checking for bindtextdomain in -lintl... " >&6; } 11365if ${ac_cv_lib_intl_bindtextdomain+:} false; then : 11366 $as_echo_n "(cached) " >&6 11367else 11368 ac_check_lib_save_LIBS=$LIBS 11369LIBS="-lintl ${intl_LIBS} $LIBS" 11370cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11371/* end confdefs.h. */ 11372 11373/* Override any GCC internal prototype to avoid an error. 11374 Use char because int might match the return type of a GCC 11375 builtin and then its argument prototype would still apply. */ 11376#ifdef __cplusplus 11377extern "C" 11378#endif 11379char bindtextdomain (); 11380int 11381main () 11382{ 11383return bindtextdomain (); 11384 ; 11385 return 0; 11386} 11387_ACEOF 11388if ac_fn_c_try_link "$LINENO"; then : 11389 ac_cv_lib_intl_bindtextdomain=yes 11390else 11391 ac_cv_lib_intl_bindtextdomain=no 11392fi 11393rm -f core conftest.err conftest.$ac_objext \ 11394 conftest$ac_exeext conftest.$ac_ext 11395LIBS=$ac_check_lib_save_LIBS 11396fi 11397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5 11398$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; } 11399if test "x$ac_cv_lib_intl_bindtextdomain" = xyes; then : 11400 smr_havelib=yes 11401else 11402 smr_havelib=no; problem_intl=": Can't find working lib$smr_lib" 11403fi 11404 11405 if test "$smr_havelib" = yes -a "$smr_header" != ""; then 11406 11407 11408 11409# Check whether --with-intl-includes was given. 11410if test "${with_intl_includes+set}" = set; then : 11411 withval=$with_intl_includes; 11412 if test -d "$withval"; then 11413 intl_CFLAGS="-I${withval}" 11414 else 11415 as_fn_error $? "argument must be a directory" "$LINENO" 5 11416 fi 11417fi 11418 11419 11420 smr_save_CPPFLAGS="$CPPFLAGS" 11421 CPPFLAGS="$CPPFLAGS ${intl_CFLAGS}" 11422 11423 11424 for ac_header in $smr_header 11425do : 11426 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11427ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 11428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 11429 cat >>confdefs.h <<_ACEOF 11430#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11431_ACEOF 11432 11433fi 11434 11435done 11436 11437 11438 CPPFLAGS=$smr_save_CPPFLAGS 11439 11440 smr_safe=`echo "$smr_header" | sed 'y%./+-%__p_%'` 11441 if eval "test \"`echo '$ac_cv_header_'$smr_safe`\" != yes"; then 11442 smr_havelib=no 11443 problem_intl=": Can't find working $smr_header" 11444 fi 11445 fi 11446 if test "$smr_havelib" = yes; then 11447 with_intl=yes 11448 problem_intl= 11449 else 11450 intl_LIBS= 11451 intl_CFLAGS= 11452 with_intl=no 11453 fi 11454else 11455 problem_intl=": Explicitly disabled" 11456fi 11457 if test x"$intl_LIBS" != x; then 11458 no_textdomain=no 11459 no_dgettext=no 11460 ac_save_CFLAGS="$CFLAGS" 11461 ac_save_LIBS="$LIBS" 11462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for textdomain in -lintl" >&5 11463$as_echo_n "checking for textdomain in -lintl... " >&6; } 11464if ${ac_cv_lib_intl_textdomain+:} false; then : 11465 $as_echo_n "(cached) " >&6 11466else 11467 ac_check_lib_save_LIBS=$LIBS 11468LIBS="-lintl $intl_LIBS $iconv_LIBS $LIBS" 11469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11470/* end confdefs.h. */ 11471 11472/* Override any GCC internal prototype to avoid an error. 11473 Use char because int might match the return type of a GCC 11474 builtin and then its argument prototype would still apply. */ 11475#ifdef __cplusplus 11476extern "C" 11477#endif 11478char textdomain (); 11479int 11480main () 11481{ 11482return textdomain (); 11483 ; 11484 return 0; 11485} 11486_ACEOF 11487if ac_fn_c_try_link "$LINENO"; then : 11488 ac_cv_lib_intl_textdomain=yes 11489else 11490 ac_cv_lib_intl_textdomain=no 11491fi 11492rm -f core conftest.err conftest.$ac_objext \ 11493 conftest$ac_exeext conftest.$ac_ext 11494LIBS=$ac_check_lib_save_LIBS 11495fi 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_textdomain" >&5 11497$as_echo "$ac_cv_lib_intl_textdomain" >&6; } 11498if test "x$ac_cv_lib_intl_textdomain" = xyes; then : 11499 cat >>confdefs.h <<_ACEOF 11500#define HAVE_LIBINTL 1 11501_ACEOF 11502 11503 LIBS="-lintl $LIBS" 11504 11505else 11506 no_textdomain=yes 11507fi 11508 11509 if test "$no_textdomain" != "yes"; then 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 11511$as_echo_n "checking for dgettext in -lintl... " >&6; } 11512if ${ac_cv_lib_intl_dgettext+:} false; then : 11513 $as_echo_n "(cached) " >&6 11514else 11515 ac_check_lib_save_LIBS=$LIBS 11516LIBS="-lintl $intl_LIBS $iconv_LIBS $LIBS" 11517cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11518/* end confdefs.h. */ 11519 11520/* Override any GCC internal prototype to avoid an error. 11521 Use char because int might match the return type of a GCC 11522 builtin and then its argument prototype would still apply. */ 11523#ifdef __cplusplus 11524extern "C" 11525#endif 11526char dgettext (); 11527int 11528main () 11529{ 11530return dgettext (); 11531 ; 11532 return 0; 11533} 11534_ACEOF 11535if ac_fn_c_try_link "$LINENO"; then : 11536 ac_cv_lib_intl_dgettext=yes 11537else 11538 ac_cv_lib_intl_dgettext=no 11539fi 11540rm -f core conftest.err conftest.$ac_objext \ 11541 conftest$ac_exeext conftest.$ac_ext 11542LIBS=$ac_check_lib_save_LIBS 11543fi 11544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 11545$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 11546if test "x$ac_cv_lib_intl_dgettext" = xyes; then : 11547 cat >>confdefs.h <<_ACEOF 11548#define HAVE_LIBINTL 1 11549_ACEOF 11550 11551 LIBS="-lintl $LIBS" 11552 11553else 11554 no_dgettext=yes 11555fi 11556 11557 if test "$no_dgettext" != "yes"; then 11558 CFLAGS="$CFLAGS $intl_LIBS $iconv_LIBS" 11559 LIBS="$LIBS $intl_LIBS $iconv_LIBS" 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if a simple gettext program link" >&5 11561$as_echo_n "checking if a simple gettext program link... " >&6; } 11562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11563/* end confdefs.h. */ 11564 11565 #include <libintl.h> 11566 11567int 11568main () 11569{ 11570const char *c; c = gettext("foo"); 11571 ; 11572 return 0; 11573} 11574_ACEOF 11575if ac_fn_c_try_link "$LINENO"; then : 11576 found_gettext=yes;problem_gettext=" (intl library)" 11577else 11578 found_gettext=no 11579fi 11580rm -f core conftest.err conftest.$ac_objext \ 11581 conftest$ac_exeext conftest.$ac_ext 11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_gettext" >&5 11583$as_echo "$found_gettext" >&6; } 11584 fi 11585 fi 11586 CFLAGS="$ac_save_CFLAGS" 11587 LIBS="$ac_save_LIBS" 11588 fi 11589 fi 11590 11591 if test "$found_gettext" = "yes"; then 11592 CATOBJEXT=.gmo 11593 USE_NLS=yes 11594 POSUB=po 11595 else 11596 USE_NLS=no 11597 fi 11598 11599 11600 if test x"$USE_NLS" = "xyes"; then 11601 $as_echo "#define HAVE_NLS 1" >>confdefs.h 11602 11603 else 11604 with_gettext="no" 11605 problem_gettext=": Failed to detected GNU gettext" 11606 fi 11607else 11608 USE_NLS=no 11609fi 11610 11611# libs and buil 11612 11613 11614 11615 11616 11617 11618# programs for devel 11619 11620 11621 11622 11623 11624#catalogs 11625 11626 11627 11628 11629 11630 11631 11632 11633# Check for REQUIRED headers and functions before going any 11634# further. 11635 11636# The module interface uses variadic functions for message passing. 11637for ac_header in stdarg.h 11638do : 11639 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" 11640if test "x$ac_cv_header_stdarg_h" = xyes; then : 11641 cat >>confdefs.h <<_ACEOF 11642#define HAVE_STDARG_H 1 11643_ACEOF 11644 11645fi 11646 11647done 11648 11649for ac_func in vfprintf 11650do : 11651 ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf" 11652if test "x$ac_cv_func_vfprintf" = xyes; then : 11653 cat >>confdefs.h <<_ACEOF 11654#define HAVE_VFPRINTF 1 11655_ACEOF 11656 11657fi 11658done 11659 11660if test x$ac_cv_header_stdarg_h = xno -o \ 11661 $ac_cv_func_vfprintf = no; then 11662 as_fn_error $? "stdarg.h and vfprintf required" "$LINENO" 5 11663fi 11664 11665# For reaping children, fvwm needs either waitpid() or wait3() 11666# Some extra modules may need wait4() too 11667for ac_func in waitpid 11668do : 11669 ac_fn_c_check_func "$LINENO" "waitpid" "ac_cv_func_waitpid" 11670if test "x$ac_cv_func_waitpid" = xyes; then : 11671 cat >>confdefs.h <<_ACEOF 11672#define HAVE_WAITPID 1 11673_ACEOF 11674 11675fi 11676done 11677 11678if test x$ac_cv_func_waitpid = xno; then 11679 for ac_func in wait3 wait4 11680do : 11681 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11682ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11683if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11684 cat >>confdefs.h <<_ACEOF 11685#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11686_ACEOF 11687 11688fi 11689done 11690 11691 if test x$ac_cv_func_wait3 = xno; then 11692 as_fn_error $? "Either waitpid or wait3 function is required" "$LINENO" 5 11693 fi 11694fi 11695 11696# C89/C99 signal handling 11697for ac_func in sigsetjmp siglongjmp 11698do : 11699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11700ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11701if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11702 cat >>confdefs.h <<_ACEOF 11703#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11704_ACEOF 11705 11706fi 11707done 11708 11709 11710# Look harder for a C preprocessor for FvwmCpp 11711# Extract the first word of "cpp", so it can be a program name with args. 11712set dummy cpp; ac_word=$2 11713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11714$as_echo_n "checking for $ac_word... " >&6; } 11715if ${ac_cv_path_FVWM_CPP+:} false; then : 11716 $as_echo_n "(cached) " >&6 11717else 11718 case $FVWM_CPP in 11719 [\\/]* | ?:[\\/]*) 11720 ac_cv_path_FVWM_CPP="$FVWM_CPP" # Let the user override the test with a path. 11721 ;; 11722 *) 11723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11724as_dummy="$PATH:/lib:/usr/lib:/usr/ccs/lib" 11725for as_dir in $as_dummy 11726do 11727 IFS=$as_save_IFS 11728 test -z "$as_dir" && as_dir=. 11729 for ac_exec_ext in '' $ac_executable_extensions; do 11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11731 ac_cv_path_FVWM_CPP="$as_dir/$ac_word$ac_exec_ext" 11732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11733 break 2 11734 fi 11735done 11736 done 11737IFS=$as_save_IFS 11738 11739 test -z "$ac_cv_path_FVWM_CPP" && ac_cv_path_FVWM_CPP="no" 11740 ;; 11741esac 11742fi 11743FVWM_CPP=$ac_cv_path_FVWM_CPP 11744if test -n "$FVWM_CPP"; then 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FVWM_CPP" >&5 11746$as_echo "$FVWM_CPP" >&6; } 11747else 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11749$as_echo "no" >&6; } 11750fi 11751 11752 11753if test x"$FVWM_CPP" = xno; then 11754 FVWM_CPP= 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot locate a C preprocessor: run FvwmCpp with -cppprog" >&5 11756$as_echo "$as_me: WARNING: cannot locate a C preprocessor: run FvwmCpp with -cppprog" >&2;} 11757fi 11758 11759# Finish checking for programs. 11760 11761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 11762$as_echo_n "checking whether ln -s works... " >&6; } 11763LN_S=$as_ln_s 11764if test "$LN_S" = "ln -s"; then 11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11766$as_echo "yes" >&6; } 11767else 11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 11769$as_echo "no, using $LN_S" >&6; } 11770fi 11771 11772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11773$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11774set x ${MAKE-make} 11775ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11776if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 11777 $as_echo_n "(cached) " >&6 11778else 11779 cat >conftest.make <<\_ACEOF 11780SHELL = /bin/sh 11781all: 11782 @echo '@@@%%%=$(MAKE)=@@@%%%' 11783_ACEOF 11784# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 11785case `${MAKE-make} -f conftest.make 2>/dev/null` in 11786 *@@@%%%=?*=@@@%%%*) 11787 eval ac_cv_prog_make_${ac_make}_set=yes;; 11788 *) 11789 eval ac_cv_prog_make_${ac_make}_set=no;; 11790esac 11791rm -f conftest.make 11792fi 11793if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11795$as_echo "yes" >&6; } 11796 SET_MAKE= 11797else 11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11799$as_echo "no" >&6; } 11800 SET_MAKE="MAKE=${MAKE-make}" 11801fi 11802 11803if test -n "$ac_tool_prefix"; then 11804 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 11805set dummy ${ac_tool_prefix}ranlib; ac_word=$2 11806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11807$as_echo_n "checking for $ac_word... " >&6; } 11808if ${ac_cv_prog_RANLIB+:} false; then : 11809 $as_echo_n "(cached) " >&6 11810else 11811 if test -n "$RANLIB"; then 11812 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 11813else 11814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11815for as_dir in $PATH 11816do 11817 IFS=$as_save_IFS 11818 test -z "$as_dir" && as_dir=. 11819 for ac_exec_ext in '' $ac_executable_extensions; do 11820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11821 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 11822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11823 break 2 11824 fi 11825done 11826 done 11827IFS=$as_save_IFS 11828 11829fi 11830fi 11831RANLIB=$ac_cv_prog_RANLIB 11832if test -n "$RANLIB"; then 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 11834$as_echo "$RANLIB" >&6; } 11835else 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11837$as_echo "no" >&6; } 11838fi 11839 11840 11841fi 11842if test -z "$ac_cv_prog_RANLIB"; then 11843 ac_ct_RANLIB=$RANLIB 11844 # Extract the first word of "ranlib", so it can be a program name with args. 11845set dummy ranlib; ac_word=$2 11846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11847$as_echo_n "checking for $ac_word... " >&6; } 11848if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 11849 $as_echo_n "(cached) " >&6 11850else 11851 if test -n "$ac_ct_RANLIB"; then 11852 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 11853else 11854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11855for as_dir in $PATH 11856do 11857 IFS=$as_save_IFS 11858 test -z "$as_dir" && as_dir=. 11859 for ac_exec_ext in '' $ac_executable_extensions; do 11860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11861 ac_cv_prog_ac_ct_RANLIB="ranlib" 11862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11863 break 2 11864 fi 11865done 11866 done 11867IFS=$as_save_IFS 11868 11869fi 11870fi 11871ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 11872if test -n "$ac_ct_RANLIB"; then 11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 11874$as_echo "$ac_ct_RANLIB" >&6; } 11875else 11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11877$as_echo "no" >&6; } 11878fi 11879 11880 if test "x$ac_ct_RANLIB" = x; then 11881 RANLIB=":" 11882 else 11883 case $cross_compiling:$ac_tool_warned in 11884yes:) 11885{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11886$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11887ac_tool_warned=yes ;; 11888esac 11889 RANLIB=$ac_ct_RANLIB 11890 fi 11891else 11892 RANLIB="$ac_cv_prog_RANLIB" 11893fi 11894 11895 11896# Checks for header files. 11897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 11898$as_echo_n "checking for ANSI C header files... " >&6; } 11899if ${ac_cv_header_stdc+:} false; then : 11900 $as_echo_n "(cached) " >&6 11901else 11902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11903/* end confdefs.h. */ 11904#include <stdlib.h> 11905#include <stdarg.h> 11906#include <string.h> 11907#include <float.h> 11908 11909int 11910main () 11911{ 11912 11913 ; 11914 return 0; 11915} 11916_ACEOF 11917if ac_fn_c_try_compile "$LINENO"; then : 11918 ac_cv_header_stdc=yes 11919else 11920 ac_cv_header_stdc=no 11921fi 11922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11923 11924if test $ac_cv_header_stdc = yes; then 11925 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 11926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11927/* end confdefs.h. */ 11928#include <string.h> 11929 11930_ACEOF 11931if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11932 $EGREP "memchr" >/dev/null 2>&1; then : 11933 11934else 11935 ac_cv_header_stdc=no 11936fi 11937rm -f conftest* 11938 11939fi 11940 11941if test $ac_cv_header_stdc = yes; then 11942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 11943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11944/* end confdefs.h. */ 11945#include <stdlib.h> 11946 11947_ACEOF 11948if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11949 $EGREP "free" >/dev/null 2>&1; then : 11950 11951else 11952 ac_cv_header_stdc=no 11953fi 11954rm -f conftest* 11955 11956fi 11957 11958if test $ac_cv_header_stdc = yes; then 11959 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 11960 if test "$cross_compiling" = yes; then : 11961 : 11962else 11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11964/* end confdefs.h. */ 11965#include <ctype.h> 11966#include <stdlib.h> 11967#if ((' ' & 0x0FF) == 0x020) 11968# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 11969# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 11970#else 11971# define ISLOWER(c) \ 11972 (('a' <= (c) && (c) <= 'i') \ 11973 || ('j' <= (c) && (c) <= 'r') \ 11974 || ('s' <= (c) && (c) <= 'z')) 11975# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 11976#endif 11977 11978#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 11979int 11980main () 11981{ 11982 int i; 11983 for (i = 0; i < 256; i++) 11984 if (XOR (islower (i), ISLOWER (i)) 11985 || toupper (i) != TOUPPER (i)) 11986 return 2; 11987 return 0; 11988} 11989_ACEOF 11990if ac_fn_c_try_run "$LINENO"; then : 11991 11992else 11993 ac_cv_header_stdc=no 11994fi 11995rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11996 conftest.$ac_objext conftest.beam conftest.$ac_ext 11997fi 11998 11999fi 12000fi 12001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 12002$as_echo "$ac_cv_header_stdc" >&6; } 12003if test $ac_cv_header_stdc = yes; then 12004 12005$as_echo "#define STDC_HEADERS 1" >>confdefs.h 12006 12007fi 12008 12009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 12010$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 12011if ${ac_cv_header_sys_wait_h+:} false; then : 12012 $as_echo_n "(cached) " >&6 12013else 12014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12015/* end confdefs.h. */ 12016#include <sys/types.h> 12017#include <sys/wait.h> 12018#ifndef WEXITSTATUS 12019# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 12020#endif 12021#ifndef WIFEXITED 12022# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 12023#endif 12024 12025int 12026main () 12027{ 12028 int s; 12029 wait (&s); 12030 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 12031 ; 12032 return 0; 12033} 12034_ACEOF 12035if ac_fn_c_try_compile "$LINENO"; then : 12036 ac_cv_header_sys_wait_h=yes 12037else 12038 ac_cv_header_sys_wait_h=no 12039fi 12040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12041fi 12042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 12043$as_echo "$ac_cv_header_sys_wait_h" >&6; } 12044if test $ac_cv_header_sys_wait_h = yes; then 12045 12046$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 12047 12048fi 12049 12050for ac_header in stdlib.h fcntl.h limits.h malloc.h string.h memory.h unistd.h 12051do : 12052 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12053ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12054if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12055 cat >>confdefs.h <<_ACEOF 12056#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12057_ACEOF 12058 12059fi 12060 12061done 12062 12063for ac_header in stdint.h inttypes.h 12064do : 12065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12066ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12067if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12068 cat >>confdefs.h <<_ACEOF 12069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12070_ACEOF 12071 12072fi 12073 12074done 12075 12076for ac_header in getopt.h sys/select.h sys/systeminfo.h sys/time.h 12077do : 12078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12079ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12080if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12081 cat >>confdefs.h <<_ACEOF 12082#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12083_ACEOF 12084 12085fi 12086 12087done 12088 12089 12090# Checks for typedefs, structures, and compiler characteristics. 12091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 12092$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 12093if ${ac_cv_c_const+:} false; then : 12094 $as_echo_n "(cached) " >&6 12095else 12096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12097/* end confdefs.h. */ 12098 12099int 12100main () 12101{ 12102 12103#ifndef __cplusplus 12104 /* Ultrix mips cc rejects this sort of thing. */ 12105 typedef int charset[2]; 12106 const charset cs = { 0, 0 }; 12107 /* SunOS 4.1.1 cc rejects this. */ 12108 char const *const *pcpcc; 12109 char **ppc; 12110 /* NEC SVR4.0.2 mips cc rejects this. */ 12111 struct point {int x, y;}; 12112 static struct point const zero = {0,0}; 12113 /* AIX XL C 1.02.0.0 rejects this. 12114 It does not let you subtract one const X* pointer from another in 12115 an arm of an if-expression whose if-part is not a constant 12116 expression */ 12117 const char *g = "string"; 12118 pcpcc = &g + (g ? g-g : 0); 12119 /* HPUX 7.0 cc rejects these. */ 12120 ++pcpcc; 12121 ppc = (char**) pcpcc; 12122 pcpcc = (char const *const *) ppc; 12123 { /* SCO 3.2v4 cc rejects this sort of thing. */ 12124 char tx; 12125 char *t = &tx; 12126 char const *s = 0 ? (char *) 0 : (char const *) 0; 12127 12128 *t++ = 0; 12129 if (s) return 0; 12130 } 12131 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 12132 int x[] = {25, 17}; 12133 const int *foo = &x[0]; 12134 ++foo; 12135 } 12136 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 12137 typedef const int *iptr; 12138 iptr p = 0; 12139 ++p; 12140 } 12141 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 12142 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 12143 struct s { int j; const int *ap[3]; } bx; 12144 struct s *b = &bx; b->j = 5; 12145 } 12146 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 12147 const int foo = 10; 12148 if (!foo) return 0; 12149 } 12150 return !cs[0] && !zero.x; 12151#endif 12152 12153 ; 12154 return 0; 12155} 12156_ACEOF 12157if ac_fn_c_try_compile "$LINENO"; then : 12158 ac_cv_c_const=yes 12159else 12160 ac_cv_c_const=no 12161fi 12162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12163fi 12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 12165$as_echo "$ac_cv_c_const" >&6; } 12166if test $ac_cv_c_const = no; then 12167 12168$as_echo "#define const /**/" >>confdefs.h 12169 12170fi 12171 12172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12173$as_echo_n "checking for inline... " >&6; } 12174if ${ac_cv_c_inline+:} false; then : 12175 $as_echo_n "(cached) " >&6 12176else 12177 ac_cv_c_inline=no 12178for ac_kw in inline __inline__ __inline; do 12179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12180/* end confdefs.h. */ 12181#ifndef __cplusplus 12182typedef int foo_t; 12183static $ac_kw foo_t static_foo () {return 0; } 12184$ac_kw foo_t foo () {return 0; } 12185#endif 12186 12187_ACEOF 12188if ac_fn_c_try_compile "$LINENO"; then : 12189 ac_cv_c_inline=$ac_kw 12190fi 12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12192 test "$ac_cv_c_inline" != no && break 12193done 12194 12195fi 12196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12197$as_echo "$ac_cv_c_inline" >&6; } 12198 12199case $ac_cv_c_inline in 12200 inline | yes) ;; 12201 *) 12202 case $ac_cv_c_inline in 12203 no) ac_val=;; 12204 *) ac_val=$ac_cv_c_inline;; 12205 esac 12206 cat >>confdefs.h <<_ACEOF 12207#ifndef __cplusplus 12208#define inline $ac_val 12209#endif 12210_ACEOF 12211 ;; 12212esac 12213 12214ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 12215if test "x$ac_cv_type_off_t" = xyes; then : 12216 12217else 12218 12219cat >>confdefs.h <<_ACEOF 12220#define off_t long int 12221_ACEOF 12222 12223fi 12224 12225ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 12226if test "x$ac_cv_type_pid_t" = xyes; then : 12227 12228else 12229 12230cat >>confdefs.h <<_ACEOF 12231#define pid_t int 12232_ACEOF 12233 12234fi 12235 12236ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12237if test "x$ac_cv_type_size_t" = xyes; then : 12238 12239else 12240 12241cat >>confdefs.h <<_ACEOF 12242#define size_t unsigned int 12243_ACEOF 12244 12245fi 12246 12247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 12248$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 12249if ${ac_cv_header_time+:} false; then : 12250 $as_echo_n "(cached) " >&6 12251else 12252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12253/* end confdefs.h. */ 12254#include <sys/types.h> 12255#include <sys/time.h> 12256#include <time.h> 12257 12258int 12259main () 12260{ 12261if ((struct tm *) 0) 12262return 0; 12263 ; 12264 return 0; 12265} 12266_ACEOF 12267if ac_fn_c_try_compile "$LINENO"; then : 12268 ac_cv_header_time=yes 12269else 12270 ac_cv_header_time=no 12271fi 12272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12273fi 12274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 12275$as_echo "$ac_cv_header_time" >&6; } 12276if test $ac_cv_header_time = yes; then 12277 12278$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 12279 12280fi 12281 12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 12283$as_echo_n "checking return type of signal handlers... " >&6; } 12284if ${ac_cv_type_signal+:} false; then : 12285 $as_echo_n "(cached) " >&6 12286else 12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12288/* end confdefs.h. */ 12289#include <sys/types.h> 12290#include <signal.h> 12291 12292int 12293main () 12294{ 12295return *(signal (0, 0)) (0) == 1; 12296 ; 12297 return 0; 12298} 12299_ACEOF 12300if ac_fn_c_try_compile "$LINENO"; then : 12301 ac_cv_type_signal=int 12302else 12303 ac_cv_type_signal=void 12304fi 12305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12306fi 12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 12308$as_echo "$ac_cv_type_signal" >&6; } 12309 12310cat >>confdefs.h <<_ACEOF 12311#define RETSIGTYPE $ac_cv_type_signal 12312_ACEOF 12313 12314 12315ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t" 12316case $ac_cv_c_int16_t in #( 12317 no|yes) ;; #( 12318 *) 12319 12320cat >>confdefs.h <<_ACEOF 12321#define int16_t $ac_cv_c_int16_t 12322_ACEOF 12323;; 12324esac 12325 12326ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t" 12327case $ac_cv_c_uint16_t in #( 12328 no|yes) ;; #( 12329 *) 12330 12331 12332cat >>confdefs.h <<_ACEOF 12333#define uint16_t $ac_cv_c_uint16_t 12334_ACEOF 12335;; 12336 esac 12337 12338 12339# Checks for library functions. 12340for ac_func in strftime 12341do : 12342 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 12343if test "x$ac_cv_func_strftime" = xyes; then : 12344 cat >>confdefs.h <<_ACEOF 12345#define HAVE_STRFTIME 1 12346_ACEOF 12347 12348else 12349 # strftime is in -lintl on SCO UNIX. 12350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 12351$as_echo_n "checking for strftime in -lintl... " >&6; } 12352if ${ac_cv_lib_intl_strftime+:} false; then : 12353 $as_echo_n "(cached) " >&6 12354else 12355 ac_check_lib_save_LIBS=$LIBS 12356LIBS="-lintl $LIBS" 12357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12358/* end confdefs.h. */ 12359 12360/* Override any GCC internal prototype to avoid an error. 12361 Use char because int might match the return type of a GCC 12362 builtin and then its argument prototype would still apply. */ 12363#ifdef __cplusplus 12364extern "C" 12365#endif 12366char strftime (); 12367int 12368main () 12369{ 12370return strftime (); 12371 ; 12372 return 0; 12373} 12374_ACEOF 12375if ac_fn_c_try_link "$LINENO"; then : 12376 ac_cv_lib_intl_strftime=yes 12377else 12378 ac_cv_lib_intl_strftime=no 12379fi 12380rm -f core conftest.err conftest.$ac_objext \ 12381 conftest$ac_exeext conftest.$ac_ext 12382LIBS=$ac_check_lib_save_LIBS 12383fi 12384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 12385$as_echo "$ac_cv_lib_intl_strftime" >&6; } 12386if test "x$ac_cv_lib_intl_strftime" = xyes; then : 12387 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 12388 12389LIBS="-lintl $LIBS" 12390fi 12391 12392fi 12393done 12394 12395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setpgrp takes no argument" >&5 12396$as_echo_n "checking whether setpgrp takes no argument... " >&6; } 12397if ${ac_cv_func_setpgrp_void+:} false; then : 12398 $as_echo_n "(cached) " >&6 12399else 12400 if test "$cross_compiling" = yes; then : 12401 as_fn_error $? "cannot check setpgrp when cross compiling" "$LINENO" 5 12402else 12403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12404/* end confdefs.h. */ 12405$ac_includes_default 12406int 12407main () 12408{ 12409/* If this system has a BSD-style setpgrp which takes arguments, 12410 setpgrp(1, 1) will fail with ESRCH and return -1, in that case 12411 exit successfully. */ 12412 return setpgrp (1,1) != -1; 12413 ; 12414 return 0; 12415} 12416_ACEOF 12417if ac_fn_c_try_run "$LINENO"; then : 12418 ac_cv_func_setpgrp_void=no 12419else 12420 ac_cv_func_setpgrp_void=yes 12421fi 12422rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12423 conftest.$ac_objext conftest.beam conftest.$ac_ext 12424fi 12425 12426fi 12427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_setpgrp_void" >&5 12428$as_echo "$ac_cv_func_setpgrp_void" >&6; } 12429if test $ac_cv_func_setpgrp_void = yes; then 12430 12431$as_echo "#define SETPGRP_VOID 1" >>confdefs.h 12432 12433fi 12434 12435for ac_func in gettimeofday mkfifo putenv setvbuf socket waitpid 12436do : 12437 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12438ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12439if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12440 cat >>confdefs.h <<_ACEOF 12441#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12442_ACEOF 12443 12444fi 12445done 12446 12447for ac_func in strdup strstr strtol memmove memcpy strchr sysconf uname div 12448do : 12449 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12450ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12451if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12452 cat >>confdefs.h <<_ACEOF 12453#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12454_ACEOF 12455 12456fi 12457done 12458 12459for ac_func in sigaction siginterrupt getpwuid 12460do : 12461 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12462ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12463if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12464 cat >>confdefs.h <<_ACEOF 12465#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12466_ACEOF 12467 12468fi 12469done 12470 12471for ac_func in setpgrp setpgid 12472do : 12473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12474ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12475if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12476 cat >>confdefs.h <<_ACEOF 12477#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 12478_ACEOF 12479 12480fi 12481done 12482 12483for ac_func in lstat 12484do : 12485 ac_fn_c_check_func "$LINENO" "lstat" "ac_cv_func_lstat" 12486if test "x$ac_cv_func_lstat" = xyes; then : 12487 cat >>confdefs.h <<_ACEOF 12488#define HAVE_LSTAT 1 12489_ACEOF 12490 12491fi 12492done 12493 12494 12495 12496 12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sig_atomic_t" >&5 12498$as_echo_n "checking for sig_atomic_t... " >&6; } 12499if ${ac_cv_type_sig_atomic_t+:} false; then : 12500 $as_echo_n "(cached) " >&6 12501else 12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12503/* end confdefs.h. */ 12504#include <sys/types.h> 12505#if STDC_HEADERS 12506#include <stdlib.h> 12507#include <stddef.h> 12508#endif 12509#include <signal.h> 12510_ACEOF 12511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12512 $EGREP "(^|[^a-zA-Z_0-9])sig_atomic_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 12513 ac_cv_type_sig_atomic_t=yes 12514else 12515 ac_cv_type_$1=no 12516fi 12517rm -f conftest* 12518 12519fi 12520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_sig_atomic_t" >&5 12521$as_echo "$ac_cv_type_sig_atomic_t" >&6; } 12522if test $ac_cv_type_sig_atomic_t = no; then 12523 12524 cat >>confdefs.h <<_ACEOF 12525#define sig_atomic_t int 12526_ACEOF 12527 12528fi 12529 12530 12531if test x$ac_cv_func_setvbuf = xyes; then 12532 if ${ac_cv_func_setvbuf_reversed+:} false; then : 12533 $as_echo_n "(cached) " >&6 12534else 12535 ac_cv_func_setvbuf_reversed=no 12536fi 12537 12538 12539fi 12540 12541for ac_func in select 12542do : 12543 ac_fn_c_check_func "$LINENO" "select" "ac_cv_func_select" 12544if test "x$ac_cv_func_select" = xyes; then : 12545 cat >>confdefs.h <<_ACEOF 12546#define HAVE_SELECT 1 12547_ACEOF 12548 12549fi 12550done 12551 12552if test "$ac_cv_func_select" = yes; then 12553 for ac_header in unistd.h sys/types.h sys/time.h sys/select.h sys/socket.h 12554do : 12555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12556ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 12557if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12558 cat >>confdefs.h <<_ACEOF 12559#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12560_ACEOF 12561 12562fi 12563 12564done 12565 12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking argument types of select()" >&5 12567$as_echo_n "checking argument types of select()... " >&6; } 12568 if ${ac_cv_type_fd_set_size_t+:} false; then : 12569 $as_echo_n "(cached) " >&6 12570else 12571 if ${ac_cv_type_fd_set+:} false; then : 12572 $as_echo_n "(cached) " >&6 12573else 12574 for ac_cv_type_fd_set in 'fd_set' 'int' 'void'; do 12575 for ac_cv_type_fd_set_size_t in 'int' 'size_t' 'unsigned long' 'unsigned'; do 12576 for ac_type_timeval in 'struct timeval' 'const struct timeval'; do 12577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12578/* end confdefs.h. */ 12579#ifdef HAVE_SYS_TIME_H 12580#include <sys/time.h> 12581#endif 12582#ifdef HAVE_SYS_TYPES_H 12583#include <sys/types.h> 12584#endif 12585#ifdef HAVE_UNISTD_H 12586#include <unistd.h> 12587#endif 12588#ifdef HAVE_SYS_SELECT_H 12589#include <sys/select.h> 12590#endif 12591#ifdef HAVE_SYS_SOCKET_H 12592#include <sys/socket.h> 12593#endif 12594int 12595main () 12596{ 12597extern select ($ac_cv_type_fd_set_size_t, 12598 $ac_cv_type_fd_set *, $ac_cv_type_fd_set *, $ac_cv_type_fd_set *, 12599 $ac_type_timeval *); 12600 ; 12601 return 0; 12602} 12603_ACEOF 12604if ac_fn_c_try_compile "$LINENO"; then : 12605 ac_found=yes ; break 3 12606else 12607 ac_found=no 12608fi 12609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12610 done 12611 done 12612 done 12613 12614fi 12615 12616fi 12617 if test "$ac_found" = no; then 12618 as_fn_error $? "can not determine argument types" "$LINENO" 5 12619 fi 12620 12621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: select($ac_cv_type_fd_set_size_t,$ac_cv_type_fd_set *,...)" >&5 12622$as_echo "select($ac_cv_type_fd_set_size_t,$ac_cv_type_fd_set *,...)" >&6; } 12623 12624 cat >>confdefs.h <<_ACEOF 12625#define fd_set_size_t $ac_cv_type_fd_set_size_t 12626_ACEOF 12627 12628 ac_cast= 12629 if test "$ac_cv_type_fd_set" != fd_set; then 12630 # Arguments 2-4 are not fd_set. Some weirdo systems use fd_set type for 12631 # FD_SET macros, but insist that you cast the argument to select. I don't 12632 # understand why that might be, but it means we cannot define fd_set. 12633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12634/* end confdefs.h. */ 12635#ifdef HAVE_SYS_TIME_H 12636#include <sys/time.h> 12637#endif 12638#ifdef HAVE_SYS_TYPES_H 12639#include <sys/types.h> 12640#endif 12641#ifdef HAVE_UNISTD_H 12642#include <unistd.h> 12643#endif 12644#ifdef HAVE_SYS_SELECT_H 12645#include <sys/select.h> 12646#endif 12647#ifdef HAVE_SYS_SOCKET_H 12648#include <sys/socket.h> 12649#endif 12650_ACEOF 12651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12652 $EGREP "(^|[^a-zA-Z_0-9])fd_set[^a-zA-Z_0-9]" >/dev/null 2>&1; then : 12653 # We found fd_set type in a header, need special cast 12654 ac_cast="($ac_cv_type_fd_set *)" 12655else 12656 # No fd_set type; it is safe to define it 12657 12658 cat >>confdefs.h <<_ACEOF 12659#define fd_set $ac_cv_type_fd_set 12660_ACEOF 12661 12662fi 12663rm -f conftest* 12664 12665 fi 12666 12667 cat >>confdefs.h <<_ACEOF 12668#define SELECT_FD_SET_CAST $ac_cast 12669_ACEOF 12670 12671fi 12672 12673if test ! x"$ac_cv_func_select" = xyes; then 12674 as_fn_error $? "select required" "$LINENO" 5 12675fi 12676 12677# check for mkstemp, see the discution on this subject on the fvwm workers 12678# list (2001-02-16 and 2001-02-24) 12679 12680 for ac_func in mkstemp 12681do : 12682 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 12683if test "x$ac_cv_func_mkstemp" = xyes; then : 12684 cat >>confdefs.h <<_ACEOF 12685#define HAVE_MKSTEMP 1 12686_ACEOF 12687 12688fi 12689done 12690 12691 has_safety_mkstemp=no 12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if mkstemp is safe" >&5 12693$as_echo_n "checking if mkstemp is safe... " >&6; } 12694 if test x$ac_cv_func_mkstemp != xno; then 12695 if test "$cross_compiling" = yes; then : 12696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12697$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12698as_fn_error $? "cannot run test program while cross compiling 12699See \`config.log' for more details" "$LINENO" 5; } 12700else 12701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12702/* end confdefs.h. */ 12703 12704#include <stdio.h> 12705#include <stdlib.h> 12706#include <string.h> 12707int main(void) 12708{ 12709 char template[128]; 12710 char template_orig[128]; 12711 int fd; 12712 12713 sprintf(template, "configure-mkstemp-test.XXXXXX"); 12714 strcpy(template_orig, template); 12715 fd = mkstemp(template); 12716 if (fd == -1) 12717 { 12718 /* could not create temp file */ 12719 return 1; 12720 } 12721 if (strcmp(template, template_orig) == 0) 12722 { 12723 /* mkstemp broken */ 12724 return 2; 12725 } 12726 if (close(fd) != 0) 12727 { 12728 /* doh! */ 12729 return 3; 12730 } 12731 if (unlink(template)) 12732 { 12733 return 4; 12734 } 12735 /* mkstemp works properly */ 12736 return 0; 12737} 12738 12739_ACEOF 12740if ac_fn_c_try_run "$LINENO"; then : 12741 has_safety_mkstemp=yes 12742else 12743 has_safety_mkstemp=no 12744fi 12745rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12746 conftest.$ac_objext conftest.beam conftest.$ac_ext 12747fi 12748 12749 fi 12750 12751 if test x$has_safety_mkstemp = xno; then 12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12753$as_echo "no" >&6; } 12754 else 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12756$as_echo "yes" >&6; } 12757 $as_echo "#define HAVE_SAFETY_MKSTEMP 1" >>confdefs.h 12758 12759 fi 12760 12761 12762# ********* IMLIB, GNOME 12763# Check the availability of gdk-imlib 12764 12765 12766# Check whether --with-imlib-prefix was given. 12767if test "${with_imlib_prefix+set}" = set; then : 12768 withval=$with_imlib_prefix; imlib_prefix="$withval" 12769else 12770 imlib_prefix="" 12771fi 12772 12773 12774# Check whether --with-imlib-exec-prefix was given. 12775if test "${with_imlib_exec_prefix+set}" = set; then : 12776 withval=$with_imlib_exec_prefix; imlib_exec_prefix="$withval" 12777else 12778 imlib_exec_prefix="" 12779fi 12780 12781# Check whether --enable-imlibtest was given. 12782if test "${enable_imlibtest+set}" = set; then : 12783 enableval=$enable_imlibtest; 12784else 12785 enable_imlibtest=yes 12786fi 12787 12788 12789 if test x$imlib_exec_prefix != x ; then 12790 imlib_args="$imlib_args --exec-prefix=$imlib_exec_prefix" 12791 if test x${IMLIBCONF+set} != xset ; then 12792 IMLIBCONF=$imlib_exec_prefix/bin/imlib-config 12793 fi 12794 fi 12795 if test x$imlib_prefix != x ; then 12796 imlib_args="$imlib_args --prefix=$imlib_prefix" 12797 if test x${IMLIBCONF+set} != xset ; then 12798 IMLIBCONF=$imlib_prefix/bin/imlib-config 12799 fi 12800 fi 12801 12802 # Extract the first word of "imlib-config", so it can be a program name with args. 12803set dummy imlib-config; ac_word=$2 12804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12805$as_echo_n "checking for $ac_word... " >&6; } 12806if ${ac_cv_path_IMLIBCONF+:} false; then : 12807 $as_echo_n "(cached) " >&6 12808else 12809 case $IMLIBCONF in 12810 [\\/]* | ?:[\\/]*) 12811 ac_cv_path_IMLIBCONF="$IMLIBCONF" # Let the user override the test with a path. 12812 ;; 12813 *) 12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12815for as_dir in $PATH 12816do 12817 IFS=$as_save_IFS 12818 test -z "$as_dir" && as_dir=. 12819 for ac_exec_ext in '' $ac_executable_extensions; do 12820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12821 ac_cv_path_IMLIBCONF="$as_dir/$ac_word$ac_exec_ext" 12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12823 break 2 12824 fi 12825done 12826 done 12827IFS=$as_save_IFS 12828 12829 test -z "$ac_cv_path_IMLIBCONF" && ac_cv_path_IMLIBCONF="no" 12830 ;; 12831esac 12832fi 12833IMLIBCONF=$ac_cv_path_IMLIBCONF 12834if test -n "$IMLIBCONF"; then 12835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IMLIBCONF" >&5 12836$as_echo "$IMLIBCONF" >&6; } 12837else 12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12839$as_echo "no" >&6; } 12840fi 12841 12842 12843 min_imlib_version=1.8.0 12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK IMLIB - version >= $min_imlib_version" >&5 12845$as_echo_n "checking for GDK IMLIB - version >= $min_imlib_version... " >&6; } 12846 no_imlib="" 12847 if test "$IMLIBCONF" = "no" ; then 12848 no_imlib=yes 12849 else 12850 GDK_IMLIB_CFLAGS=`$IMLIBCONF $imlibconf_args --cflags-gdk` 12851 GDK_IMLIB_LIBS=`$IMLIBCONF $imlibconf_args --libs-gdk` 12852 12853 imlib_major_version=`$IMLIBCONF $imlib_args --version | \ 12854 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\1/'` 12855 imlib_minor_version=`$IMLIBCONF $imlib_args --version | \ 12856 sed 's/^[^0-9.]*\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*$/\2/'` 12857 if test "x$enable_imlibtest" = "xyes" ; then 12858 ac_save_CFLAGS="$CFLAGS" 12859 ac_save_LIBS="$LIBS" 12860 CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS" 12861 LIBS="$LIBS $GDK_IMLIB_LIBS" 12862 rm -f conf.imlibtest 12863 if test "$cross_compiling" = yes; then : 12864 echo $ac_n "cross compiling; assumed OK... $ac_c" 12865else 12866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12867/* end confdefs.h. */ 12868 12869#include <stdio.h> 12870#include <stdlib.h> 12871#include <gdk_imlib.h> 12872 12873/* migo: originally it was GdkImLibColor with incorrect spelling */ 12874GdkImlibImage testimage; 12875 12876int main () 12877{ 12878 int major, minor; 12879 char *tmp_version; 12880 12881 system ("touch conf.gdkimlibtest"); 12882 12883 /* HP/UX 9 (%@#!) writes to sscanf strings */ 12884 tmp_version = g_strdup("$min_imlib_version"); 12885 if (sscanf(tmp_version, "%d.%d", &major, &minor) != 2) { 12886 printf("%s, bad version string\n", "$min_imlib_version"); 12887 exit(1); 12888 } 12889 12890 if (($imlib_major_version > major) || 12891 (($imlib_major_version == major) && ($imlib_minor_version > minor))) 12892 { 12893 return 0; 12894 } 12895 else 12896 { 12897 printf("\n*** 'imlib-config --version' returned %d.%d, but the minimum version\n", $imlib_major_version, $imlib_minor_version); 12898 printf("*** of IMLIB required is %d.%d. If imlib-config is correct, then it is\n", major, minor); 12899 printf("*** best to upgrade to the required version.\n"); 12900 printf("*** If imlib-config was wrong, set the environment variable IMLIBCONF\n"); 12901 printf("*** to point to the correct copy of imlib-config, and remove the file\n"); 12902 printf("*** config.cache before re-running configure\n"); 12903 return 1; 12904 } 12905} 12906 12907 12908_ACEOF 12909if ac_fn_c_try_run "$LINENO"; then : 12910 12911else 12912 no_imlib=yes 12913fi 12914rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12915 conftest.$ac_objext conftest.beam conftest.$ac_ext 12916fi 12917 12918 CFLAGS="$ac_save_CFLAGS" 12919 LIBS="$ac_save_LIBS" 12920 fi 12921 fi 12922 if test "x$no_imlib" = x ; then 12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12924$as_echo "yes" >&6; } 12925 $as_echo "#define GDK_IMLIB 1" >>confdefs.h 12926 12927 else 12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12929$as_echo "no" >&6; } 12930 if test "$IMLIBCONF" = "no" ; then 12931 (echo "*** The imlib-config script installed by IMLIB could not be found" >&5) 2>/dev/null || \ 12932 echo "*** The imlib-config script installed by IMLIB could not be found" 12933 (echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in" >&5) 2>/dev/null || \ 12934 echo "*** If IMLIB was installed in PREFIX, make sure PREFIX/bin is in" 12935 (echo "*** your path, or set the IMLIBCONF environment variable to the" >&5) 2>/dev/null || \ 12936 echo "*** your path, or set the IMLIBCONF environment variable to the" 12937 (echo "*** full path to imlib-config." >&5) 2>/dev/null || \ 12938 echo "*** full path to imlib-config." 12939 else 12940 if test -f conf.gdkimlibtest ; then 12941 : 12942 else 12943 (echo "*** Could not run IMLIB test program, checking why..." >&5) 2>/dev/null || \ 12944 echo "*** Could not run IMLIB test program, checking why..." 12945 CFLAGS="$CFLAGS $GDK_IMLIB_CFLAGS" 12946 LIBS="$LIBS $GDK_IMLIB_LIBS" 12947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12948/* end confdefs.h. */ 12949 12950#include <stdio.h> 12951#include <gdk_imlib.h> 12952 12953int 12954main () 12955{ 12956 return 0; 12957 ; 12958 return 0; 12959} 12960_ACEOF 12961if ac_fn_c_try_link "$LINENO"; then : 12962 (echo "*** The test program compiled, but did not run. This usually means" >&5) 2>/dev/null || \ 12963 echo "*** The test program compiled, but did not run. This usually means" 12964 (echo "*** that the run-time linker is not finding IMLIB or finding the wrong" >&5) 2>/dev/null || \ 12965 echo "*** that the run-time linker is not finding IMLIB or finding the wrong" 12966 (echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your" >&5) 2>/dev/null || \ 12967 echo "*** version of IMLIB. If it is not finding IMLIB, you'll need to set your" 12968 (echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" >&5) 2>/dev/null || \ 12969 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" 12970 (echo "*** to the installed location Also, make sure you have run ldconfig if that" >&5) 2>/dev/null || \ 12971 echo "*** to the installed location Also, make sure you have run ldconfig if that" 12972 (echo "*** is required on your system" >&5) 2>/dev/null || \ 12973 echo "*** is required on your system" 12974 (echo "***" >&5) 2>/dev/null || \ 12975 echo "***" 12976 (echo "*** If you have an old version installed, it is best to remove it, although" >&5) 2>/dev/null || \ 12977 echo "*** If you have an old version installed, it is best to remove it, although" 12978 (echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" >&5) 2>/dev/null || \ 12979 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" 12980else 12981 (echo "*** The test program failed to compile or link. See the file config.log for the" >&5) 2>/dev/null || \ 12982 echo "*** The test program failed to compile or link. See the file config.log for the" 12983 (echo "*** exact error that occured. This usually means IMLIB was incorrectly installed" >&5) 2>/dev/null || \ 12984 echo "*** exact error that occured. This usually means IMLIB was incorrectly installed" 12985 (echo "*** or that you have moved IMLIB since it was installed. In the latter case, you" >&5) 2>/dev/null || \ 12986 echo "*** or that you have moved IMLIB since it was installed. In the latter case, you" 12987 (echo "*** may want to edit the imlib-config script: $IMLIBCONF" >&5) 2>/dev/null || \ 12988 echo "*** may want to edit the imlib-config script: $IMLIBCONF" 12989fi 12990rm -f core conftest.err conftest.$ac_objext \ 12991 conftest$ac_exeext conftest.$ac_ext 12992 CFLAGS="$ac_save_CFLAGS" 12993 LIBS="$ac_save_LIBS" 12994 fi 12995 fi 12996 GDK_IMLIB_CFLAGS="" 12997 GDK_IMLIB_LIBS="" 12998 : 12999 fi 13000 13001 13002 rm -f conf.gdkimlibtest 13003 13004if test x"$no_imlib" = x; then 13005 with_gdkimlib=yes 13006 problem_gdkimlib="" 13007else 13008 with_gdkimlib=no 13009 problem_gdkimlib=": Failed on gdk-imlib, see config.log" 13010fi 13011 13012# Define some compatibility macros needed for config.h. 13013 13014mg_save_CPPFLAGS="$CPPFLAGS" 13015CPPFLAGS="$CPPFLAGS $X_CFLAGS" 13016 13017 13018if test "$cross_compiling" = yes; then : 13019 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13020$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13021as_fn_error $? "cannot run test program while cross compiling 13022See \`config.log' for more details" "$LINENO" 5; } 13023else 13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13025/* end confdefs.h. */ 13026 13027#include <stdio.h> 13028int main(int c, char **v) { 13029#include <X11/keysym.h> 13030#if defined XK_Page_Up && defined XK_Page_Down 13031 return 0; 13032#else 13033 return 1; 13034#endif 13035} 13036 13037_ACEOF 13038if ac_fn_c_try_run "$LINENO"; then : 13039 : 13040else 13041 $as_echo "#define COMPAT_OLD_KEYSYMDEF 1" >>confdefs.h 13042 13043fi 13044rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13045 conftest.$ac_objext conftest.beam conftest.$ac_ext 13046fi 13047 13048 13049CPPFLAGS="$mg_save_CPPFLAGS" 13050 13051 13052 13053if test x"$with_stroke" = xyes; then 13054 13055mg_save_CPPFLAGS="$CPPFLAGS" 13056CPPFLAGS="$CPPFLAGS $stroke_CFLAGS" 13057 13058 13059if test "$cross_compiling" = yes; then : 13060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13061$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13062as_fn_error $? "cannot run test program while cross compiling 13063See \`config.log' for more details" "$LINENO" 5; } 13064else 13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13066/* end confdefs.h. */ 13067 13068#include <stdio.h> 13069int main(int c, char **v) { 13070#include <stroke.h> 13071#if defined STROKE_MAX_SEQUENCE 13072 return 0; 13073#else 13074 return 1; 13075#endif 13076} 13077 13078_ACEOF 13079if ac_fn_c_try_run "$LINENO"; then : 13080 : 13081else 13082 $as_echo "#define COMPAT_OLD_LIBSTROKE 1" >>confdefs.h 13083 13084fi 13085rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13086 conftest.$ac_objext conftest.beam conftest.$ac_ext 13087fi 13088 13089 13090CPPFLAGS="$mg_save_CPPFLAGS" 13091 13092fi 13093 13094 13095 13096# Allow building with dmalloc. Do this last to avoid screwing up any 13097# other checks above. 13098case "$ac_cv_dmalloc" in 13099 yes) for ac_header in dmalloc.h 13100do : 13101 ac_fn_c_check_header_mongrel "$LINENO" "dmalloc.h" "ac_cv_header_dmalloc_h" "$ac_includes_default" 13102if test "x$ac_cv_header_dmalloc_h" = xyes; then : 13103 cat >>confdefs.h <<_ACEOF 13104#define HAVE_DMALLOC_H 1 13105_ACEOF 13106 13107fi 13108 13109done 13110 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dmalloc_shutdown in -ldmalloc" >&5 13112$as_echo_n "checking for dmalloc_shutdown in -ldmalloc... " >&6; } 13113if ${ac_cv_lib_dmalloc_dmalloc_shutdown+:} false; then : 13114 $as_echo_n "(cached) " >&6 13115else 13116 ac_check_lib_save_LIBS=$LIBS 13117LIBS="-ldmalloc $LIBS" 13118cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13119/* end confdefs.h. */ 13120 13121/* Override any GCC internal prototype to avoid an error. 13122 Use char because int might match the return type of a GCC 13123 builtin and then its argument prototype would still apply. */ 13124#ifdef __cplusplus 13125extern "C" 13126#endif 13127char dmalloc_shutdown (); 13128int 13129main () 13130{ 13131return dmalloc_shutdown (); 13132 ; 13133 return 0; 13134} 13135_ACEOF 13136if ac_fn_c_try_link "$LINENO"; then : 13137 ac_cv_lib_dmalloc_dmalloc_shutdown=yes 13138else 13139 ac_cv_lib_dmalloc_dmalloc_shutdown=no 13140fi 13141rm -f core conftest.err conftest.$ac_objext \ 13142 conftest$ac_exeext conftest.$ac_ext 13143LIBS=$ac_check_lib_save_LIBS 13144fi 13145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dmalloc_dmalloc_shutdown" >&5 13146$as_echo "$ac_cv_lib_dmalloc_dmalloc_shutdown" >&6; } 13147if test "x$ac_cv_lib_dmalloc_dmalloc_shutdown" = xyes; then : 13148 cat >>confdefs.h <<_ACEOF 13149#define HAVE_LIBDMALLOC 1 13150_ACEOF 13151 13152 LIBS="-ldmalloc $LIBS" 13153 13154fi 13155 13156 CPPFLAGS="$CPPFLAGS -DDMALLOC_FUNC_CHECK" ;; 13157esac 13158 13159 13160# Allow building with efence. 13161case "$ac_cv_efence" in 13162 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -lefence" >&5 13163$as_echo_n "checking for malloc in -lefence... " >&6; } 13164if ${ac_cv_lib_efence_malloc+:} false; then : 13165 $as_echo_n "(cached) " >&6 13166else 13167 ac_check_lib_save_LIBS=$LIBS 13168LIBS="-lefence $LIBS" 13169cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13170/* end confdefs.h. */ 13171 13172/* Override any GCC internal prototype to avoid an error. 13173 Use char because int might match the return type of a GCC 13174 builtin and then its argument prototype would still apply. */ 13175#ifdef __cplusplus 13176extern "C" 13177#endif 13178char malloc (); 13179int 13180main () 13181{ 13182return malloc (); 13183 ; 13184 return 0; 13185} 13186_ACEOF 13187if ac_fn_c_try_link "$LINENO"; then : 13188 ac_cv_lib_efence_malloc=yes 13189else 13190 ac_cv_lib_efence_malloc=no 13191fi 13192rm -f core conftest.err conftest.$ac_objext \ 13193 conftest$ac_exeext conftest.$ac_ext 13194LIBS=$ac_check_lib_save_LIBS 13195fi 13196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_efence_malloc" >&5 13197$as_echo "$ac_cv_lib_efence_malloc" >&6; } 13198if test "x$ac_cv_lib_efence_malloc" = xyes; then : 13199 cat >>confdefs.h <<_ACEOF 13200#define HAVE_LIBEFENCE 1 13201_ACEOF 13202 13203 LIBS="-lefence $LIBS" 13204 13205fi 13206 ;; 13207esac 13208 13209# some explicit definitions for config.h file 13210 13211 13212# mainly for fvwm-config 13213 13214 13215 13216 13217 13218 13219 13220 13221 13222 13223 13224 13225 13226 13227 13228 13229 13230 13231 13232 13233 13234 13235LOCAL_BUGADDR=${FVWM_BUGADDR-${USER-${LOGNAME-`whoami`}}} 13236 13237 13238ac_config_files="$ac_config_files Makefile libs/Makefile fvwm/Makefile modules/Makefile bin/fvwm-bug.1 bin/fvwm-config.1 bin/fvwm-convert-2.6.1 bin/fvwm-menu-desktop.1 bin/fvwm-root.1 modules/FvwmAnimate/FvwmAnimate.1 modules/FvwmAuto/FvwmAuto.1 modules/FvwmBacker/FvwmBacker.1 modules/FvwmBanner/FvwmBanner.1 modules/FvwmButtons/FvwmButtons.1 modules/FvwmCommand/FvwmCommand.1 modules/FvwmConsole/FvwmConsole.1 modules/FvwmConsole/FvwmConsoleC.pl.1 modules/FvwmCpp/FvwmCpp.1 modules/FvwmEvent/FvwmEvent.1 modules/FvwmForm/FvwmForm.1 modules/FvwmIconMan/FvwmIconMan.1 modules/FvwmIdent/FvwmIdent.1 modules/FvwmM4/FvwmM4.1 modules/FvwmPager/FvwmPager.1 modules/FvwmProxy/FvwmProxy.1 modules/FvwmRearrange/FvwmRearrange.1 modules/FvwmScript/FvwmScript.1 bin/Makefile bin/fvwm-config bin/fvwm-bug bin/fvwm-perllib bin/fvwm-menu-xlock bin/fvwm-menu-directory bin/fvwm-menu-desktop bin/fvwm-menu-headlines bin/fvwm-convert-2.6 utils/Makefile perllib/Makefile perllib/General/Makefile perllib/FVWM/Makefile perllib/FVWM/Module/Makefile perllib/FVWM/Tracker/Makefile perllib/FVWM/Module.pm default-config/Makefile doc/fvwm.ent doc/footer.html doc/Makefile doc/fvwm/Makefile doc/commands/Makefile doc/docbook-xml/Makefile doc/docbook-xml/ent/Makefile doc/docbook-xsl/Makefile doc/docbook-xsl/common/Makefile doc/docbook-xsl/manpages/Makefile doc/docbook-xsl/profiling/Makefile doc/docbook-xsl/highlighting/Makefile doc/docbook-xsl/lib/Makefile doc/docbook-xsl/html/Makefile doc/images/Makefile doc/images/svg_rendering/Makefile docs/Makefile tests/Makefile tests/hints/Makefile po/Makefile modules/FvwmAnimate/Makefile modules/FvwmAuto/Makefile modules/FvwmBacker/Makefile modules/FvwmBanner/Makefile modules/FvwmButtons/Makefile modules/FvwmCommand/Makefile modules/FvwmCommandS/Makefile modules/FvwmCommand/scripts/Makefile modules/FvwmConsole/Makefile modules/FvwmConsole/FvwmConsoleC.pl modules/FvwmCpp/Makefile modules/FvwmEvent/Makefile modules/FvwmForm/Makefile modules/FvwmIconMan/Makefile modules/FvwmIdent/Makefile modules/FvwmM4/Makefile modules/FvwmPager/Makefile modules/FvwmPerl/Makefile modules/FvwmPerl/FvwmPerl modules/FvwmProxy/Makefile modules/FvwmRearrange/Makefile modules/FvwmScript/Makefile modules/FvwmScript/Scripts/Makefile modules/FvwmScript/Widgets/Makefile" 13239 13240cat >confcache <<\_ACEOF 13241# This file is a shell script that caches the results of configure 13242# tests run on this system so they can be shared between configure 13243# scripts and configure runs, see configure's option --config-cache. 13244# It is not useful on other systems. If it contains results you don't 13245# want to keep, you may remove or edit it. 13246# 13247# config.status only pays attention to the cache file if you give it 13248# the --recheck option to rerun configure. 13249# 13250# `ac_cv_env_foo' variables (set or unset) will be overridden when 13251# loading this file, other *unset* `ac_cv_foo' will be assigned the 13252# following values. 13253 13254_ACEOF 13255 13256# The following way of writing the cache mishandles newlines in values, 13257# but we know of no workaround that is simple, portable, and efficient. 13258# So, we kill variables containing newlines. 13259# Ultrix sh set writes to stderr and can't be redirected directly, 13260# and sets the high bit in the cache file unless we assign to the vars. 13261( 13262 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13263 eval ac_val=\$$ac_var 13264 case $ac_val in #( 13265 *${as_nl}*) 13266 case $ac_var in #( 13267 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13268$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13269 esac 13270 case $ac_var in #( 13271 _ | IFS | as_nl) ;; #( 13272 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13273 *) { eval $ac_var=; unset $ac_var;} ;; 13274 esac ;; 13275 esac 13276 done 13277 13278 (set) 2>&1 | 13279 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13280 *${as_nl}ac_space=\ *) 13281 # `set' does not quote correctly, so add quotes: double-quote 13282 # substitution turns \\\\ into \\, and sed turns \\ into \. 13283 sed -n \ 13284 "s/'/'\\\\''/g; 13285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13286 ;; #( 13287 *) 13288 # `set' quotes correctly as required by POSIX, so do not add quotes. 13289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13290 ;; 13291 esac | 13292 sort 13293) | 13294 sed ' 13295 /^ac_cv_env_/b end 13296 t clear 13297 :clear 13298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13299 t end 13300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13301 :end' >>confcache 13302if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13303 if test -w "$cache_file"; then 13304 if test "x$cache_file" != "x/dev/null"; then 13305 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13306$as_echo "$as_me: updating cache $cache_file" >&6;} 13307 if test ! -f "$cache_file" || test -h "$cache_file"; then 13308 cat confcache >"$cache_file" 13309 else 13310 case $cache_file in #( 13311 */* | ?:*) 13312 mv -f confcache "$cache_file"$$ && 13313 mv -f "$cache_file"$$ "$cache_file" ;; #( 13314 *) 13315 mv -f confcache "$cache_file" ;; 13316 esac 13317 fi 13318 fi 13319 else 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13321$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13322 fi 13323fi 13324rm -f confcache 13325 13326test "x$prefix" = xNONE && prefix=$ac_default_prefix 13327# Let make expand exec_prefix. 13328test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13329 13330DEFS=-DHAVE_CONFIG_H 13331 13332ac_libobjs= 13333ac_ltlibobjs= 13334for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13335 # 1. Remove the extension, and $U if already installed. 13336 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13337 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13338 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13339 # will be set to the directory where LIBOBJS objects are built. 13340 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13341 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13342done 13343LIBOBJS=$ac_libobjs 13344 13345LTLIBOBJS=$ac_ltlibobjs 13346 13347 13348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13349$as_echo_n "checking that generated files are newer than configure... " >&6; } 13350 if test -n "$am_sleep_pid"; then 13351 # Hide warnings about reused PIDs. 13352 wait $am_sleep_pid 2>/dev/null 13353 fi 13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13355$as_echo "done" >&6; } 13356 if test -n "$EXEEXT"; then 13357 am__EXEEXT_TRUE= 13358 am__EXEEXT_FALSE='#' 13359else 13360 am__EXEEXT_TRUE='#' 13361 am__EXEEXT_FALSE= 13362fi 13363 13364if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13365 as_fn_error $? "conditional \"AMDEP\" was never defined. 13366Usually this means the macro was only invoked conditionally." "$LINENO" 5 13367fi 13368if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13369 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13370Usually this means the macro was only invoked conditionally." "$LINENO" 5 13371fi 13372if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13373 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13374Usually this means the macro was only invoked conditionally." "$LINENO" 5 13375fi 13376if test -z "${FVWM_BUILD_MANDOC_TRUE}" && test -z "${FVWM_BUILD_MANDOC_FALSE}"; then 13377 as_fn_error $? "conditional \"FVWM_BUILD_MANDOC\" was never defined. 13378Usually this means the macro was only invoked conditionally." "$LINENO" 5 13379fi 13380if test -z "${FVWM_BUILD_HTMLDOC_TRUE}" && test -z "${FVWM_BUILD_HTMLDOC_FALSE}"; then 13381 as_fn_error $? "conditional \"FVWM_BUILD_HTMLDOC\" was never defined. 13382Usually this means the macro was only invoked conditionally." "$LINENO" 5 13383fi 13384 13385 13386: "${CONFIG_STATUS=./config.status}" 13387ac_write_fail=0 13388ac_clean_files_save=$ac_clean_files 13389ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13390{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13391$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13392as_write_fail=0 13393cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13394#! $SHELL 13395# Generated by $as_me. 13396# Run this file to recreate the current configuration. 13397# Compiler output produced by configure, useful for debugging 13398# configure, is in config.log if it exists. 13399 13400debug=false 13401ac_cs_recheck=false 13402ac_cs_silent=false 13403 13404SHELL=\${CONFIG_SHELL-$SHELL} 13405export SHELL 13406_ASEOF 13407cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13408## -------------------- ## 13409## M4sh Initialization. ## 13410## -------------------- ## 13411 13412# Be more Bourne compatible 13413DUALCASE=1; export DUALCASE # for MKS sh 13414if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13415 emulate sh 13416 NULLCMD=: 13417 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13418 # is contrary to our usage. Disable this feature. 13419 alias -g '${1+"$@"}'='"$@"' 13420 setopt NO_GLOB_SUBST 13421else 13422 case `(set -o) 2>/dev/null` in #( 13423 *posix*) : 13424 set -o posix ;; #( 13425 *) : 13426 ;; 13427esac 13428fi 13429 13430 13431as_nl=' 13432' 13433export as_nl 13434# Printing a long string crashes Solaris 7 /usr/bin/printf. 13435as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13436as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13437as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13438# Prefer a ksh shell builtin over an external printf program on Solaris, 13439# but without wasting forks for bash or zsh. 13440if test -z "$BASH_VERSION$ZSH_VERSION" \ 13441 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13442 as_echo='print -r --' 13443 as_echo_n='print -rn --' 13444elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13445 as_echo='printf %s\n' 13446 as_echo_n='printf %s' 13447else 13448 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13449 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13450 as_echo_n='/usr/ucb/echo -n' 13451 else 13452 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13453 as_echo_n_body='eval 13454 arg=$1; 13455 case $arg in #( 13456 *"$as_nl"*) 13457 expr "X$arg" : "X\\(.*\\)$as_nl"; 13458 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13459 esac; 13460 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13461 ' 13462 export as_echo_n_body 13463 as_echo_n='sh -c $as_echo_n_body as_echo' 13464 fi 13465 export as_echo_body 13466 as_echo='sh -c $as_echo_body as_echo' 13467fi 13468 13469# The user is always right. 13470if test "${PATH_SEPARATOR+set}" != set; then 13471 PATH_SEPARATOR=: 13472 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13473 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13474 PATH_SEPARATOR=';' 13475 } 13476fi 13477 13478 13479# IFS 13480# We need space, tab and new line, in precisely that order. Quoting is 13481# there to prevent editors from complaining about space-tab. 13482# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13483# splitting by setting IFS to empty value.) 13484IFS=" "" $as_nl" 13485 13486# Find who we are. Look in the path if we contain no directory separator. 13487as_myself= 13488case $0 in #(( 13489 *[\\/]* ) as_myself=$0 ;; 13490 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13491for as_dir in $PATH 13492do 13493 IFS=$as_save_IFS 13494 test -z "$as_dir" && as_dir=. 13495 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13496 done 13497IFS=$as_save_IFS 13498 13499 ;; 13500esac 13501# We did not find ourselves, most probably we were run as `sh COMMAND' 13502# in which case we are not to be found in the path. 13503if test "x$as_myself" = x; then 13504 as_myself=$0 13505fi 13506if test ! -f "$as_myself"; then 13507 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13508 exit 1 13509fi 13510 13511# Unset variables that we do not need and which cause bugs (e.g. in 13512# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13513# suppresses any "Segmentation fault" message there. '((' could 13514# trigger a bug in pdksh 5.2.14. 13515for as_var in BASH_ENV ENV MAIL MAILPATH 13516do eval test x\${$as_var+set} = xset \ 13517 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13518done 13519PS1='$ ' 13520PS2='> ' 13521PS4='+ ' 13522 13523# NLS nuisances. 13524LC_ALL=C 13525export LC_ALL 13526LANGUAGE=C 13527export LANGUAGE 13528 13529# CDPATH. 13530(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13531 13532 13533# as_fn_error STATUS ERROR [LINENO LOG_FD] 13534# ---------------------------------------- 13535# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13536# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13537# script with STATUS, using 1 if that was 0. 13538as_fn_error () 13539{ 13540 as_status=$1; test $as_status -eq 0 && as_status=1 13541 if test "$4"; then 13542 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13543 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13544 fi 13545 $as_echo "$as_me: error: $2" >&2 13546 as_fn_exit $as_status 13547} # as_fn_error 13548 13549 13550# as_fn_set_status STATUS 13551# ----------------------- 13552# Set $? to STATUS, without forking. 13553as_fn_set_status () 13554{ 13555 return $1 13556} # as_fn_set_status 13557 13558# as_fn_exit STATUS 13559# ----------------- 13560# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13561as_fn_exit () 13562{ 13563 set +e 13564 as_fn_set_status $1 13565 exit $1 13566} # as_fn_exit 13567 13568# as_fn_unset VAR 13569# --------------- 13570# Portably unset VAR. 13571as_fn_unset () 13572{ 13573 { eval $1=; unset $1;} 13574} 13575as_unset=as_fn_unset 13576# as_fn_append VAR VALUE 13577# ---------------------- 13578# Append the text in VALUE to the end of the definition contained in VAR. Take 13579# advantage of any shell optimizations that allow amortized linear growth over 13580# repeated appends, instead of the typical quadratic growth present in naive 13581# implementations. 13582if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 13583 eval 'as_fn_append () 13584 { 13585 eval $1+=\$2 13586 }' 13587else 13588 as_fn_append () 13589 { 13590 eval $1=\$$1\$2 13591 } 13592fi # as_fn_append 13593 13594# as_fn_arith ARG... 13595# ------------------ 13596# Perform arithmetic evaluation on the ARGs, and store the result in the 13597# global $as_val. Take advantage of shells that can avoid forks. The arguments 13598# must be portable across $(()) and expr. 13599if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 13600 eval 'as_fn_arith () 13601 { 13602 as_val=$(( $* )) 13603 }' 13604else 13605 as_fn_arith () 13606 { 13607 as_val=`expr "$@" || test $? -eq 1` 13608 } 13609fi # as_fn_arith 13610 13611 13612if expr a : '\(a\)' >/dev/null 2>&1 && 13613 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13614 as_expr=expr 13615else 13616 as_expr=false 13617fi 13618 13619if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 13620 as_basename=basename 13621else 13622 as_basename=false 13623fi 13624 13625if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 13626 as_dirname=dirname 13627else 13628 as_dirname=false 13629fi 13630 13631as_me=`$as_basename -- "$0" || 13632$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13633 X"$0" : 'X\(//\)$' \| \ 13634 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13635$as_echo X/"$0" | 13636 sed '/^.*\/\([^/][^/]*\)\/*$/{ 13637 s//\1/ 13638 q 13639 } 13640 /^X\/\(\/\/\)$/{ 13641 s//\1/ 13642 q 13643 } 13644 /^X\/\(\/\).*/{ 13645 s//\1/ 13646 q 13647 } 13648 s/.*/./; q'` 13649 13650# Avoid depending upon Character Ranges. 13651as_cr_letters='abcdefghijklmnopqrstuvwxyz' 13652as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 13653as_cr_Letters=$as_cr_letters$as_cr_LETTERS 13654as_cr_digits='0123456789' 13655as_cr_alnum=$as_cr_Letters$as_cr_digits 13656 13657ECHO_C= ECHO_N= ECHO_T= 13658case `echo -n x` in #((((( 13659-n*) 13660 case `echo 'xy\c'` in 13661 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13662 xy) ECHO_C='\c';; 13663 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 13664 ECHO_T=' ';; 13665 esac;; 13666*) 13667 ECHO_N='-n';; 13668esac 13669 13670rm -f conf$$ conf$$.exe conf$$.file 13671if test -d conf$$.dir; then 13672 rm -f conf$$.dir/conf$$.file 13673else 13674 rm -f conf$$.dir 13675 mkdir conf$$.dir 2>/dev/null 13676fi 13677if (echo >conf$$.file) 2>/dev/null; then 13678 if ln -s conf$$.file conf$$ 2>/dev/null; then 13679 as_ln_s='ln -s' 13680 # ... but there are two gotchas: 13681 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 13682 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 13683 # In both cases, we have to default to `cp -pR'. 13684 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 13685 as_ln_s='cp -pR' 13686 elif ln conf$$.file conf$$ 2>/dev/null; then 13687 as_ln_s=ln 13688 else 13689 as_ln_s='cp -pR' 13690 fi 13691else 13692 as_ln_s='cp -pR' 13693fi 13694rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 13695rmdir conf$$.dir 2>/dev/null 13696 13697 13698# as_fn_mkdir_p 13699# ------------- 13700# Create "$as_dir" as a directory, including parents if necessary. 13701as_fn_mkdir_p () 13702{ 13703 13704 case $as_dir in #( 13705 -*) as_dir=./$as_dir;; 13706 esac 13707 test -d "$as_dir" || eval $as_mkdir_p || { 13708 as_dirs= 13709 while :; do 13710 case $as_dir in #( 13711 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13712 *) as_qdir=$as_dir;; 13713 esac 13714 as_dirs="'$as_qdir' $as_dirs" 13715 as_dir=`$as_dirname -- "$as_dir" || 13716$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13717 X"$as_dir" : 'X\(//\)[^/]' \| \ 13718 X"$as_dir" : 'X\(//\)$' \| \ 13719 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13720$as_echo X"$as_dir" | 13721 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13722 s//\1/ 13723 q 13724 } 13725 /^X\(\/\/\)[^/].*/{ 13726 s//\1/ 13727 q 13728 } 13729 /^X\(\/\/\)$/{ 13730 s//\1/ 13731 q 13732 } 13733 /^X\(\/\).*/{ 13734 s//\1/ 13735 q 13736 } 13737 s/.*/./; q'` 13738 test -d "$as_dir" && break 13739 done 13740 test -z "$as_dirs" || eval "mkdir $as_dirs" 13741 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13742 13743 13744} # as_fn_mkdir_p 13745if mkdir -p . 2>/dev/null; then 13746 as_mkdir_p='mkdir -p "$as_dir"' 13747else 13748 test -d ./-p && rmdir ./-p 13749 as_mkdir_p=false 13750fi 13751 13752 13753# as_fn_executable_p FILE 13754# ----------------------- 13755# Test if FILE is an executable regular file. 13756as_fn_executable_p () 13757{ 13758 test -f "$1" && test -x "$1" 13759} # as_fn_executable_p 13760as_test_x='test -x' 13761as_executable_p=as_fn_executable_p 13762 13763# Sed expression to map a string onto a valid CPP name. 13764as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13765 13766# Sed expression to map a string onto a valid variable name. 13767as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13768 13769 13770exec 6>&1 13771## ----------------------------------- ## 13772## Main body of $CONFIG_STATUS script. ## 13773## ----------------------------------- ## 13774_ASEOF 13775test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13776 13777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13778# Save the log message, to keep $0 and so on meaningful, and to 13779# report actual input values of CONFIG_FILES etc. instead of their 13780# values after options handling. 13781ac_log=" 13782This file was extended by fvwm $as_me 2.6.9, which was 13783generated by GNU Autoconf 2.69. Invocation command line was 13784 13785 CONFIG_FILES = $CONFIG_FILES 13786 CONFIG_HEADERS = $CONFIG_HEADERS 13787 CONFIG_LINKS = $CONFIG_LINKS 13788 CONFIG_COMMANDS = $CONFIG_COMMANDS 13789 $ $0 $@ 13790 13791on `(hostname || uname -n) 2>/dev/null | sed 1q` 13792" 13793 13794_ACEOF 13795 13796case $ac_config_files in *" 13797"*) set x $ac_config_files; shift; ac_config_files=$*;; 13798esac 13799 13800case $ac_config_headers in *" 13801"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13802esac 13803 13804 13805cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13806# Files that config.status was made for. 13807config_files="$ac_config_files" 13808config_headers="$ac_config_headers" 13809config_commands="$ac_config_commands" 13810 13811_ACEOF 13812 13813cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13814ac_cs_usage="\ 13815\`$as_me' instantiates files and other configuration actions 13816from templates according to the current configuration. Unless the files 13817and actions are specified as TAGs, all are instantiated by default. 13818 13819Usage: $0 [OPTION]... [TAG]... 13820 13821 -h, --help print this help, then exit 13822 -V, --version print version number and configuration settings, then exit 13823 --config print configuration, then exit 13824 -q, --quiet, --silent 13825 do not print progress messages 13826 -d, --debug don't remove temporary files 13827 --recheck update $as_me by reconfiguring in the same conditions 13828 --file=FILE[:TEMPLATE] 13829 instantiate the configuration file FILE 13830 --header=FILE[:TEMPLATE] 13831 instantiate the configuration header FILE 13832 13833Configuration files: 13834$config_files 13835 13836Configuration headers: 13837$config_headers 13838 13839Configuration commands: 13840$config_commands 13841 13842Report bugs to <fvwm-workers@fvwm.org>." 13843 13844_ACEOF 13845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13846ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13847ac_cs_version="\\ 13848fvwm config.status 2.6.9 13849configured by $0, generated by GNU Autoconf 2.69, 13850 with options \\"\$ac_cs_config\\" 13851 13852Copyright (C) 2012 Free Software Foundation, Inc. 13853This config.status script is free software; the Free Software Foundation 13854gives unlimited permission to copy, distribute and modify it." 13855 13856ac_pwd='$ac_pwd' 13857srcdir='$srcdir' 13858INSTALL='$INSTALL' 13859MKDIR_P='$MKDIR_P' 13860AWK='$AWK' 13861test -n "\$AWK" || AWK=awk 13862_ACEOF 13863 13864cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13865# The default lists apply if the user does not specify any file. 13866ac_need_defaults=: 13867while test $# != 0 13868do 13869 case $1 in 13870 --*=?*) 13871 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13872 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13873 ac_shift=: 13874 ;; 13875 --*=) 13876 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13877 ac_optarg= 13878 ac_shift=: 13879 ;; 13880 *) 13881 ac_option=$1 13882 ac_optarg=$2 13883 ac_shift=shift 13884 ;; 13885 esac 13886 13887 case $ac_option in 13888 # Handling of the options. 13889 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13890 ac_cs_recheck=: ;; 13891 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13892 $as_echo "$ac_cs_version"; exit ;; 13893 --config | --confi | --conf | --con | --co | --c ) 13894 $as_echo "$ac_cs_config"; exit ;; 13895 --debug | --debu | --deb | --de | --d | -d ) 13896 debug=: ;; 13897 --file | --fil | --fi | --f ) 13898 $ac_shift 13899 case $ac_optarg in 13900 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13901 '') as_fn_error $? "missing file argument" ;; 13902 esac 13903 as_fn_append CONFIG_FILES " '$ac_optarg'" 13904 ac_need_defaults=false;; 13905 --header | --heade | --head | --hea ) 13906 $ac_shift 13907 case $ac_optarg in 13908 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13909 esac 13910 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13911 ac_need_defaults=false;; 13912 --he | --h) 13913 # Conflict between --help and --header 13914 as_fn_error $? "ambiguous option: \`$1' 13915Try \`$0 --help' for more information.";; 13916 --help | --hel | -h ) 13917 $as_echo "$ac_cs_usage"; exit ;; 13918 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13919 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13920 ac_cs_silent=: ;; 13921 13922 # This is an error. 13923 -*) as_fn_error $? "unrecognized option: \`$1' 13924Try \`$0 --help' for more information." ;; 13925 13926 *) as_fn_append ac_config_targets " $1" 13927 ac_need_defaults=false ;; 13928 13929 esac 13930 shift 13931done 13932 13933ac_configure_extra_args= 13934 13935if $ac_cs_silent; then 13936 exec 6>/dev/null 13937 ac_configure_extra_args="$ac_configure_extra_args --silent" 13938fi 13939 13940_ACEOF 13941cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13942if \$ac_cs_recheck; then 13943 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13944 shift 13945 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13946 CONFIG_SHELL='$SHELL' 13947 export CONFIG_SHELL 13948 exec "\$@" 13949fi 13950 13951_ACEOF 13952cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13953exec 5>>config.log 13954{ 13955 echo 13956 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13957## Running $as_me. ## 13958_ASBOX 13959 $as_echo "$ac_log" 13960} >&5 13961 13962_ACEOF 13963cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13964# 13965# INIT-COMMANDS 13966# 13967AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 13968 13969_ACEOF 13970 13971cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13972 13973# Handling of arguments. 13974for ac_config_target in $ac_config_targets 13975do 13976 case $ac_config_target in 13977 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13978 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13979 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13980 "libs/Makefile") CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;; 13981 "fvwm/Makefile") CONFIG_FILES="$CONFIG_FILES fvwm/Makefile" ;; 13982 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;; 13983 "bin/fvwm-bug.1") CONFIG_FILES="$CONFIG_FILES bin/fvwm-bug.1" ;; 13984 "bin/fvwm-config.1") CONFIG_FILES="$CONFIG_FILES bin/fvwm-config.1" ;; 13985 "bin/fvwm-convert-2.6.1") CONFIG_FILES="$CONFIG_FILES bin/fvwm-convert-2.6.1" ;; 13986 "bin/fvwm-menu-desktop.1") CONFIG_FILES="$CONFIG_FILES bin/fvwm-menu-desktop.1" ;; 13987 "bin/fvwm-root.1") CONFIG_FILES="$CONFIG_FILES bin/fvwm-root.1" ;; 13988 "modules/FvwmAnimate/FvwmAnimate.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmAnimate/FvwmAnimate.1" ;; 13989 "modules/FvwmAuto/FvwmAuto.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmAuto/FvwmAuto.1" ;; 13990 "modules/FvwmBacker/FvwmBacker.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmBacker/FvwmBacker.1" ;; 13991 "modules/FvwmBanner/FvwmBanner.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmBanner/FvwmBanner.1" ;; 13992 "modules/FvwmButtons/FvwmButtons.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmButtons/FvwmButtons.1" ;; 13993 "modules/FvwmCommand/FvwmCommand.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmCommand/FvwmCommand.1" ;; 13994 "modules/FvwmConsole/FvwmConsole.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmConsole/FvwmConsole.1" ;; 13995 "modules/FvwmConsole/FvwmConsoleC.pl.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmConsole/FvwmConsoleC.pl.1" ;; 13996 "modules/FvwmCpp/FvwmCpp.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmCpp/FvwmCpp.1" ;; 13997 "modules/FvwmEvent/FvwmEvent.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmEvent/FvwmEvent.1" ;; 13998 "modules/FvwmForm/FvwmForm.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmForm/FvwmForm.1" ;; 13999 "modules/FvwmIconMan/FvwmIconMan.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmIconMan/FvwmIconMan.1" ;; 14000 "modules/FvwmIdent/FvwmIdent.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmIdent/FvwmIdent.1" ;; 14001 "modules/FvwmM4/FvwmM4.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmM4/FvwmM4.1" ;; 14002 "modules/FvwmPager/FvwmPager.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmPager/FvwmPager.1" ;; 14003 "modules/FvwmProxy/FvwmProxy.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmProxy/FvwmProxy.1" ;; 14004 "modules/FvwmRearrange/FvwmRearrange.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmRearrange/FvwmRearrange.1" ;; 14005 "modules/FvwmScript/FvwmScript.1") CONFIG_FILES="$CONFIG_FILES modules/FvwmScript/FvwmScript.1" ;; 14006 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; 14007 "bin/fvwm-config") CONFIG_FILES="$CONFIG_FILES bin/fvwm-config" ;; 14008 "bin/fvwm-bug") CONFIG_FILES="$CONFIG_FILES bin/fvwm-bug" ;; 14009 "bin/fvwm-perllib") CONFIG_FILES="$CONFIG_FILES bin/fvwm-perllib" ;; 14010 "bin/fvwm-menu-xlock") CONFIG_FILES="$CONFIG_FILES bin/fvwm-menu-xlock" ;; 14011 "bin/fvwm-menu-directory") CONFIG_FILES="$CONFIG_FILES bin/fvwm-menu-directory" ;; 14012 "bin/fvwm-menu-desktop") CONFIG_FILES="$CONFIG_FILES bin/fvwm-menu-desktop" ;; 14013 "bin/fvwm-menu-headlines") CONFIG_FILES="$CONFIG_FILES bin/fvwm-menu-headlines" ;; 14014 "bin/fvwm-convert-2.6") CONFIG_FILES="$CONFIG_FILES bin/fvwm-convert-2.6" ;; 14015 "utils/Makefile") CONFIG_FILES="$CONFIG_FILES utils/Makefile" ;; 14016 "perllib/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/Makefile" ;; 14017 "perllib/General/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/General/Makefile" ;; 14018 "perllib/FVWM/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/FVWM/Makefile" ;; 14019 "perllib/FVWM/Module/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/FVWM/Module/Makefile" ;; 14020 "perllib/FVWM/Tracker/Makefile") CONFIG_FILES="$CONFIG_FILES perllib/FVWM/Tracker/Makefile" ;; 14021 "perllib/FVWM/Module.pm") CONFIG_FILES="$CONFIG_FILES perllib/FVWM/Module.pm" ;; 14022 "default-config/Makefile") CONFIG_FILES="$CONFIG_FILES default-config/Makefile" ;; 14023 "doc/fvwm.ent") CONFIG_FILES="$CONFIG_FILES doc/fvwm.ent" ;; 14024 "doc/footer.html") CONFIG_FILES="$CONFIG_FILES doc/footer.html" ;; 14025 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14026 "doc/fvwm/Makefile") CONFIG_FILES="$CONFIG_FILES doc/fvwm/Makefile" ;; 14027 "doc/commands/Makefile") CONFIG_FILES="$CONFIG_FILES doc/commands/Makefile" ;; 14028 "doc/docbook-xml/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook-xml/Makefile" ;; 14029 "doc/docbook-xml/ent/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook-xml/ent/Makefile" ;; 14030 "doc/docbook-xsl/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook-xsl/Makefile" ;; 14031 "doc/docbook-xsl/common/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook-xsl/common/Makefile" ;; 14032 "doc/docbook-xsl/manpages/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook-xsl/manpages/Makefile" ;; 14033 "doc/docbook-xsl/profiling/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook-xsl/profiling/Makefile" ;; 14034 "doc/docbook-xsl/highlighting/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook-xsl/highlighting/Makefile" ;; 14035 "doc/docbook-xsl/lib/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook-xsl/lib/Makefile" ;; 14036 "doc/docbook-xsl/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/docbook-xsl/html/Makefile" ;; 14037 "doc/images/Makefile") CONFIG_FILES="$CONFIG_FILES doc/images/Makefile" ;; 14038 "doc/images/svg_rendering/Makefile") CONFIG_FILES="$CONFIG_FILES doc/images/svg_rendering/Makefile" ;; 14039 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;; 14040 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 14041 "tests/hints/Makefile") CONFIG_FILES="$CONFIG_FILES tests/hints/Makefile" ;; 14042 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;; 14043 "modules/FvwmAnimate/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmAnimate/Makefile" ;; 14044 "modules/FvwmAuto/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmAuto/Makefile" ;; 14045 "modules/FvwmBacker/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmBacker/Makefile" ;; 14046 "modules/FvwmBanner/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmBanner/Makefile" ;; 14047 "modules/FvwmButtons/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmButtons/Makefile" ;; 14048 "modules/FvwmCommand/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmCommand/Makefile" ;; 14049 "modules/FvwmCommandS/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmCommandS/Makefile" ;; 14050 "modules/FvwmCommand/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmCommand/scripts/Makefile" ;; 14051 "modules/FvwmConsole/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmConsole/Makefile" ;; 14052 "modules/FvwmConsole/FvwmConsoleC.pl") CONFIG_FILES="$CONFIG_FILES modules/FvwmConsole/FvwmConsoleC.pl" ;; 14053 "modules/FvwmCpp/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmCpp/Makefile" ;; 14054 "modules/FvwmEvent/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmEvent/Makefile" ;; 14055 "modules/FvwmForm/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmForm/Makefile" ;; 14056 "modules/FvwmIconMan/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmIconMan/Makefile" ;; 14057 "modules/FvwmIdent/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmIdent/Makefile" ;; 14058 "modules/FvwmM4/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmM4/Makefile" ;; 14059 "modules/FvwmPager/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmPager/Makefile" ;; 14060 "modules/FvwmPerl/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmPerl/Makefile" ;; 14061 "modules/FvwmPerl/FvwmPerl") CONFIG_FILES="$CONFIG_FILES modules/FvwmPerl/FvwmPerl" ;; 14062 "modules/FvwmProxy/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmProxy/Makefile" ;; 14063 "modules/FvwmRearrange/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmRearrange/Makefile" ;; 14064 "modules/FvwmScript/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmScript/Makefile" ;; 14065 "modules/FvwmScript/Scripts/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmScript/Scripts/Makefile" ;; 14066 "modules/FvwmScript/Widgets/Makefile") CONFIG_FILES="$CONFIG_FILES modules/FvwmScript/Widgets/Makefile" ;; 14067 14068 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14069 esac 14070done 14071 14072 14073# If the user did not use the arguments to specify the items to instantiate, 14074# then the envvar interface is used. Set only those that are not. 14075# We use the long form for the default assignment because of an extremely 14076# bizarre bug on SunOS 4.1.3. 14077if $ac_need_defaults; then 14078 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14079 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14080 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14081fi 14082 14083# Have a temporary directory for convenience. Make it in the build tree 14084# simply because there is no reason against having it here, and in addition, 14085# creating and moving files from /tmp can sometimes cause problems. 14086# Hook for its removal unless debugging. 14087# Note that there is a small window in which the directory will not be cleaned: 14088# after its creation but before its name has been assigned to `$tmp'. 14089$debug || 14090{ 14091 tmp= ac_tmp= 14092 trap 'exit_status=$? 14093 : "${ac_tmp:=$tmp}" 14094 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14095' 0 14096 trap 'as_fn_exit 1' 1 2 13 15 14097} 14098# Create a (secure) tmp directory for tmp files. 14099 14100{ 14101 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14102 test -d "$tmp" 14103} || 14104{ 14105 tmp=./conf$$-$RANDOM 14106 (umask 077 && mkdir "$tmp") 14107} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14108ac_tmp=$tmp 14109 14110# Set up the scripts for CONFIG_FILES section. 14111# No need to generate them if there are no CONFIG_FILES. 14112# This happens for instance with `./config.status config.h'. 14113if test -n "$CONFIG_FILES"; then 14114 14115 14116ac_cr=`echo X | tr X '\015'` 14117# On cygwin, bash can eat \r inside `` if the user requested igncr. 14118# But we know of no other shell where ac_cr would be empty at this 14119# point, so we can use a bashism as a fallback. 14120if test "x$ac_cr" = x; then 14121 eval ac_cr=\$\'\\r\' 14122fi 14123ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14124if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14125 ac_cs_awk_cr='\\r' 14126else 14127 ac_cs_awk_cr=$ac_cr 14128fi 14129 14130echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14131_ACEOF 14132 14133 14134{ 14135 echo "cat >conf$$subs.awk <<_ACEOF" && 14136 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14137 echo "_ACEOF" 14138} >conf$$subs.sh || 14139 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14140ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14141ac_delim='%!_!# ' 14142for ac_last_try in false false false false false :; do 14143 . ./conf$$subs.sh || 14144 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14145 14146 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14147 if test $ac_delim_n = $ac_delim_num; then 14148 break 14149 elif $ac_last_try; then 14150 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14151 else 14152 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14153 fi 14154done 14155rm -f conf$$subs.sh 14156 14157cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14158cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14159_ACEOF 14160sed -n ' 14161h 14162s/^/S["/; s/!.*/"]=/ 14163p 14164g 14165s/^[^!]*!// 14166:repl 14167t repl 14168s/'"$ac_delim"'$// 14169t delim 14170:nl 14171h 14172s/\(.\{148\}\)..*/\1/ 14173t more1 14174s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14175p 14176n 14177b repl 14178:more1 14179s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14180p 14181g 14182s/.\{148\}// 14183t nl 14184:delim 14185h 14186s/\(.\{148\}\)..*/\1/ 14187t more2 14188s/["\\]/\\&/g; s/^/"/; s/$/"/ 14189p 14190b 14191:more2 14192s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14193p 14194g 14195s/.\{148\}// 14196t delim 14197' <conf$$subs.awk | sed ' 14198/^[^""]/{ 14199 N 14200 s/\n// 14201} 14202' >>$CONFIG_STATUS || ac_write_fail=1 14203rm -f conf$$subs.awk 14204cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14205_ACAWK 14206cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14207 for (key in S) S_is_set[key] = 1 14208 FS = "" 14209 14210} 14211{ 14212 line = $ 0 14213 nfields = split(line, field, "@") 14214 substed = 0 14215 len = length(field[1]) 14216 for (i = 2; i < nfields; i++) { 14217 key = field[i] 14218 keylen = length(key) 14219 if (S_is_set[key]) { 14220 value = S[key] 14221 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14222 len += length(value) + length(field[++i]) 14223 substed = 1 14224 } else 14225 len += 1 + keylen 14226 } 14227 14228 print line 14229} 14230 14231_ACAWK 14232_ACEOF 14233cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14234if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14235 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14236else 14237 cat 14238fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14239 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14240_ACEOF 14241 14242# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14243# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14244# trailing colons and then remove the whole line if VPATH becomes empty 14245# (actually we leave an empty line to preserve line numbers). 14246if test "x$srcdir" = x.; then 14247 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14248h 14249s/// 14250s/^/:/ 14251s/[ ]*$/:/ 14252s/:\$(srcdir):/:/g 14253s/:\${srcdir}:/:/g 14254s/:@srcdir@:/:/g 14255s/^:*// 14256s/:*$// 14257x 14258s/\(=[ ]*\).*/\1/ 14259G 14260s/\n// 14261s/^[^=]*=[ ]*$// 14262}' 14263fi 14264 14265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14266fi # test -n "$CONFIG_FILES" 14267 14268# Set up the scripts for CONFIG_HEADERS section. 14269# No need to generate them if there are no CONFIG_HEADERS. 14270# This happens for instance with `./config.status Makefile'. 14271if test -n "$CONFIG_HEADERS"; then 14272cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14273BEGIN { 14274_ACEOF 14275 14276# Transform confdefs.h into an awk script `defines.awk', embedded as 14277# here-document in config.status, that substitutes the proper values into 14278# config.h.in to produce config.h. 14279 14280# Create a delimiter string that does not exist in confdefs.h, to ease 14281# handling of long lines. 14282ac_delim='%!_!# ' 14283for ac_last_try in false false :; do 14284 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14285 if test -z "$ac_tt"; then 14286 break 14287 elif $ac_last_try; then 14288 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14289 else 14290 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14291 fi 14292done 14293 14294# For the awk script, D is an array of macro values keyed by name, 14295# likewise P contains macro parameters if any. Preserve backslash 14296# newline sequences. 14297 14298ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14299sed -n ' 14300s/.\{148\}/&'"$ac_delim"'/g 14301t rset 14302:rset 14303s/^[ ]*#[ ]*define[ ][ ]*/ / 14304t def 14305d 14306:def 14307s/\\$// 14308t bsnl 14309s/["\\]/\\&/g 14310s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14311D["\1"]=" \3"/p 14312s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14313d 14314:bsnl 14315s/["\\]/\\&/g 14316s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14317D["\1"]=" \3\\\\\\n"\\/p 14318t cont 14319s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14320t cont 14321d 14322:cont 14323n 14324s/.\{148\}/&'"$ac_delim"'/g 14325t clear 14326:clear 14327s/\\$// 14328t bsnlc 14329s/["\\]/\\&/g; s/^/"/; s/$/"/p 14330d 14331:bsnlc 14332s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14333b cont 14334' <confdefs.h | sed ' 14335s/'"$ac_delim"'/"\\\ 14336"/g' >>$CONFIG_STATUS || ac_write_fail=1 14337 14338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14339 for (key in D) D_is_set[key] = 1 14340 FS = "" 14341} 14342/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14343 line = \$ 0 14344 split(line, arg, " ") 14345 if (arg[1] == "#") { 14346 defundef = arg[2] 14347 mac1 = arg[3] 14348 } else { 14349 defundef = substr(arg[1], 2) 14350 mac1 = arg[2] 14351 } 14352 split(mac1, mac2, "(") #) 14353 macro = mac2[1] 14354 prefix = substr(line, 1, index(line, defundef) - 1) 14355 if (D_is_set[macro]) { 14356 # Preserve the white space surrounding the "#". 14357 print prefix "define", macro P[macro] D[macro] 14358 next 14359 } else { 14360 # Replace #undef with comments. This is necessary, for example, 14361 # in the case of _POSIX_SOURCE, which is predefined and required 14362 # on some systems where configure will not decide to define it. 14363 if (defundef == "undef") { 14364 print "/*", prefix defundef, macro, "*/" 14365 next 14366 } 14367 } 14368} 14369{ print } 14370_ACAWK 14371_ACEOF 14372cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14373 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 14374fi # test -n "$CONFIG_HEADERS" 14375 14376 14377eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14378shift 14379for ac_tag 14380do 14381 case $ac_tag in 14382 :[FHLC]) ac_mode=$ac_tag; continue;; 14383 esac 14384 case $ac_mode$ac_tag in 14385 :[FHL]*:*);; 14386 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 14387 :[FH]-) ac_tag=-:-;; 14388 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14389 esac 14390 ac_save_IFS=$IFS 14391 IFS=: 14392 set x $ac_tag 14393 IFS=$ac_save_IFS 14394 shift 14395 ac_file=$1 14396 shift 14397 14398 case $ac_mode in 14399 :L) ac_source=$1;; 14400 :[FH]) 14401 ac_file_inputs= 14402 for ac_f 14403 do 14404 case $ac_f in 14405 -) ac_f="$ac_tmp/stdin";; 14406 *) # Look for the file first in the build tree, then in the source tree 14407 # (if the path is not absolute). The absolute path cannot be DOS-style, 14408 # because $ac_f cannot contain `:'. 14409 test -f "$ac_f" || 14410 case $ac_f in 14411 [\\/$]*) false;; 14412 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14413 esac || 14414 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 14415 esac 14416 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14417 as_fn_append ac_file_inputs " '$ac_f'" 14418 done 14419 14420 # Let's still pretend it is `configure' which instantiates (i.e., don't 14421 # use $as_me), people would be surprised to read: 14422 # /* config.h. Generated by config.status. */ 14423 configure_input='Generated from '` 14424 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14425 `' by configure.' 14426 if test x"$ac_file" != x-; then 14427 configure_input="$ac_file. $configure_input" 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 14429$as_echo "$as_me: creating $ac_file" >&6;} 14430 fi 14431 # Neutralize special characters interpreted by sed in replacement strings. 14432 case $configure_input in #( 14433 *\&* | *\|* | *\\* ) 14434 ac_sed_conf_input=`$as_echo "$configure_input" | 14435 sed 's/[\\\\&|]/\\\\&/g'`;; #( 14436 *) ac_sed_conf_input=$configure_input;; 14437 esac 14438 14439 case $ac_tag in 14440 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 14441 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 14442 esac 14443 ;; 14444 esac 14445 14446 ac_dir=`$as_dirname -- "$ac_file" || 14447$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14448 X"$ac_file" : 'X\(//\)[^/]' \| \ 14449 X"$ac_file" : 'X\(//\)$' \| \ 14450 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 14451$as_echo X"$ac_file" | 14452 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14453 s//\1/ 14454 q 14455 } 14456 /^X\(\/\/\)[^/].*/{ 14457 s//\1/ 14458 q 14459 } 14460 /^X\(\/\/\)$/{ 14461 s//\1/ 14462 q 14463 } 14464 /^X\(\/\).*/{ 14465 s//\1/ 14466 q 14467 } 14468 s/.*/./; q'` 14469 as_dir="$ac_dir"; as_fn_mkdir_p 14470 ac_builddir=. 14471 14472case "$ac_dir" in 14473.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14474*) 14475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 14476 # A ".." for each directory in $ac_dir_suffix. 14477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 14478 case $ac_top_builddir_sub in 14479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 14480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 14481 esac ;; 14482esac 14483ac_abs_top_builddir=$ac_pwd 14484ac_abs_builddir=$ac_pwd$ac_dir_suffix 14485# for backward compatibility: 14486ac_top_builddir=$ac_top_build_prefix 14487 14488case $srcdir in 14489 .) # We are building in place. 14490 ac_srcdir=. 14491 ac_top_srcdir=$ac_top_builddir_sub 14492 ac_abs_top_srcdir=$ac_pwd ;; 14493 [\\/]* | ?:[\\/]* ) # Absolute name. 14494 ac_srcdir=$srcdir$ac_dir_suffix; 14495 ac_top_srcdir=$srcdir 14496 ac_abs_top_srcdir=$srcdir ;; 14497 *) # Relative name. 14498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 14499 ac_top_srcdir=$ac_top_build_prefix$srcdir 14500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 14501esac 14502ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 14503 14504 14505 case $ac_mode in 14506 :F) 14507 # 14508 # CONFIG_FILE 14509 # 14510 14511 case $INSTALL in 14512 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 14513 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 14514 esac 14515 ac_MKDIR_P=$MKDIR_P 14516 case $MKDIR_P in 14517 [\\/$]* | ?:[\\/]* ) ;; 14518 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14519 esac 14520_ACEOF 14521 14522cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14523# If the template does not know about datarootdir, expand it. 14524# FIXME: This hack should be removed a few years after 2.60. 14525ac_datarootdir_hack=; ac_datarootdir_seen= 14526ac_sed_dataroot=' 14527/datarootdir/ { 14528 p 14529 q 14530} 14531/@datadir@/p 14532/@docdir@/p 14533/@infodir@/p 14534/@localedir@/p 14535/@mandir@/p' 14536case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14537*datarootdir*) ac_datarootdir_seen=yes;; 14538*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14540$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14541_ACEOF 14542cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14543 ac_datarootdir_hack=' 14544 s&@datadir@&$datadir&g 14545 s&@docdir@&$docdir&g 14546 s&@infodir@&$infodir&g 14547 s&@localedir@&$localedir&g 14548 s&@mandir@&$mandir&g 14549 s&\\\${datarootdir}&$datarootdir&g' ;; 14550esac 14551_ACEOF 14552 14553# Neutralize VPATH when `$srcdir' = `.'. 14554# Shell code in configure.ac might set extrasub. 14555# FIXME: do we really want to maintain this feature? 14556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14557ac_sed_extra="$ac_vpsub 14558$extrasub 14559_ACEOF 14560cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14561:t 14562/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14563s|@configure_input@|$ac_sed_conf_input|;t t 14564s&@top_builddir@&$ac_top_builddir_sub&;t t 14565s&@top_build_prefix@&$ac_top_build_prefix&;t t 14566s&@srcdir@&$ac_srcdir&;t t 14567s&@abs_srcdir@&$ac_abs_srcdir&;t t 14568s&@top_srcdir@&$ac_top_srcdir&;t t 14569s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14570s&@builddir@&$ac_builddir&;t t 14571s&@abs_builddir@&$ac_abs_builddir&;t t 14572s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14573s&@INSTALL@&$ac_INSTALL&;t t 14574s&@MKDIR_P@&$ac_MKDIR_P&;t t 14575$ac_datarootdir_hack 14576" 14577eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14578 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14579 14580test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14581 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14582 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14583 "$ac_tmp/out"`; test -z "$ac_out"; } && 14584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14585which seems to be undefined. Please make sure it is defined" >&5 14586$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14587which seems to be undefined. Please make sure it is defined" >&2;} 14588 14589 rm -f "$ac_tmp/stdin" 14590 case $ac_file in 14591 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14592 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14593 esac \ 14594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14595 ;; 14596 :H) 14597 # 14598 # CONFIG_HEADER 14599 # 14600 if test x"$ac_file" != x-; then 14601 { 14602 $as_echo "/* $configure_input */" \ 14603 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14604 } >"$ac_tmp/config.h" \ 14605 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14606 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14607 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14608$as_echo "$as_me: $ac_file is unchanged" >&6;} 14609 else 14610 rm -f "$ac_file" 14611 mv "$ac_tmp/config.h" "$ac_file" \ 14612 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14613 fi 14614 else 14615 $as_echo "/* $configure_input */" \ 14616 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14617 || as_fn_error $? "could not create -" "$LINENO" 5 14618 fi 14619# Compute "$ac_file"'s index in $config_headers. 14620_am_arg="$ac_file" 14621_am_stamp_count=1 14622for _am_header in $config_headers :; do 14623 case $_am_header in 14624 $_am_arg | $_am_arg:* ) 14625 break ;; 14626 * ) 14627 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14628 esac 14629done 14630echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14631$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14632 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14633 X"$_am_arg" : 'X\(//\)$' \| \ 14634 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14635$as_echo X"$_am_arg" | 14636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14637 s//\1/ 14638 q 14639 } 14640 /^X\(\/\/\)[^/].*/{ 14641 s//\1/ 14642 q 14643 } 14644 /^X\(\/\/\)$/{ 14645 s//\1/ 14646 q 14647 } 14648 /^X\(\/\).*/{ 14649 s//\1/ 14650 q 14651 } 14652 s/.*/./; q'`/stamp-h$_am_stamp_count 14653 ;; 14654 14655 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14656$as_echo "$as_me: executing $ac_file commands" >&6;} 14657 ;; 14658 esac 14659 14660 14661 case $ac_file$ac_mode in 14662 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14663 # Older Autoconf quotes --file arguments for eval, but not when files 14664 # are listed without --file. Let's play safe and only enable the eval 14665 # if we detect the quoting. 14666 # TODO: see whether this extra hack can be removed once we start 14667 # requiring Autoconf 2.70 or later. 14668 case $CONFIG_FILES in #( 14669 *\'*) : 14670 eval set x "$CONFIG_FILES" ;; #( 14671 *) : 14672 set x $CONFIG_FILES ;; #( 14673 *) : 14674 ;; 14675esac 14676 shift 14677 # Used to flag and report bootstrapping failures. 14678 am_rc=0 14679 for am_mf 14680 do 14681 # Strip MF so we end up with the name of the file. 14682 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 14683 # Check whether this is an Automake generated Makefile which includes 14684 # dependency-tracking related rules and includes. 14685 # Grep'ing the whole file directly is not great: AIX grep has a line 14686 # limit of 2048, but all sed's we know have understand at least 4000. 14687 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 14688 || continue 14689 am_dirpart=`$as_dirname -- "$am_mf" || 14690$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14691 X"$am_mf" : 'X\(//\)[^/]' \| \ 14692 X"$am_mf" : 'X\(//\)$' \| \ 14693 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14694$as_echo X"$am_mf" | 14695 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14696 s//\1/ 14697 q 14698 } 14699 /^X\(\/\/\)[^/].*/{ 14700 s//\1/ 14701 q 14702 } 14703 /^X\(\/\/\)$/{ 14704 s//\1/ 14705 q 14706 } 14707 /^X\(\/\).*/{ 14708 s//\1/ 14709 q 14710 } 14711 s/.*/./; q'` 14712 am_filepart=`$as_basename -- "$am_mf" || 14713$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 14714 X"$am_mf" : 'X\(//\)$' \| \ 14715 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 14716$as_echo X/"$am_mf" | 14717 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14718 s//\1/ 14719 q 14720 } 14721 /^X\/\(\/\/\)$/{ 14722 s//\1/ 14723 q 14724 } 14725 /^X\/\(\/\).*/{ 14726 s//\1/ 14727 q 14728 } 14729 s/.*/./; q'` 14730 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 14731 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14732 | $MAKE -f - am--depfiles" >&5 14733 (cd "$am_dirpart" \ 14734 && sed -e '/# am--include-marker/d' "$am_filepart" \ 14735 | $MAKE -f - am--depfiles) >&5 2>&5 14736 ac_status=$? 14737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14738 (exit $ac_status); } || am_rc=$? 14739 done 14740 if test $am_rc -ne 0; then 14741 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14742$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14743as_fn_error $? "Something went wrong bootstrapping makefile fragments 14744 for automatic dependency tracking. Try re-running configure with the 14745 '--disable-dependency-tracking' option to at least be able to build 14746 the package (albeit without support for automatic dependency tracking). 14747See \`config.log' for more details" "$LINENO" 5; } 14748 fi 14749 { am_dirpart=; unset am_dirpart;} 14750 { am_filepart=; unset am_filepart;} 14751 { am_mf=; unset am_mf;} 14752 { am_rc=; unset am_rc;} 14753 rm -f conftest-deps.mk 14754} 14755 ;; 14756 14757 esac 14758done # for ac_tag 14759 14760 14761as_fn_exit 0 14762_ACEOF 14763ac_clean_files=$ac_clean_files_save 14764 14765test $ac_write_fail = 0 || 14766 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14767 14768 14769# configure is writing to config.log, and then calls config.status. 14770# config.status does its own redirection, appending to config.log. 14771# Unfortunately, on DOS this fails, as config.log is still kept open 14772# by configure, so config.status won't be able to write to it; its 14773# output is simply discarded. So we exec the FD to /dev/null, 14774# effectively closing config.log, so it can be properly (re)opened and 14775# appended to by config.status. When coming back to configure, we 14776# need to make the FD available again. 14777if test "$no_create" != yes; then 14778 ac_cs_success=: 14779 ac_config_status_args= 14780 test "$silent" = yes && 14781 ac_config_status_args="$ac_config_status_args --quiet" 14782 exec 5>/dev/null 14783 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14784 exec 5>>config.log 14785 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14786 # would make configure fail if this is the last instruction. 14787 $ac_cs_success || as_fn_exit 1 14788fi 14789if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14791$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14792fi 14793 14794 14795# --------------------------------------------------------------------------- 14796# Original config.status is patched to make generated scripts executable. 14797sed 's/> $ac_file/> $ac_file; test x"`head -1 $ac_file | cut -c1-2`" = x"#!" \&\& chmod a+rx $ac_file/' <config.status >config.status-t && \ 14798mv config.status-t config.status 14799chmod +x config.status 14800# --------------------------------------------------------------------------- 14801 14802# --------------------------------------------------------------------------- 14803cat >config.status-t <<EOF 14804#! /bin/sh 14805 14806# Original config.status is patched to satisfy processing *.in with 'make -j'. 14807# This bug seems to be partially fixed in autoconf-2.50 (not in all places). 14808UNIQUE_POSTFIX=\$\$ 14809 14810EOF 14811sed 's/conftest/conftest\${UNIQUE_POSTFIX}/g' <config.status >>config.status-t && \ 14812mv config.status-t config.status 14813chmod +x config.status 14814# --------------------------------------------------------------------------- 14815 14816eval my_bindir="`eval echo ${bindir}`" 14817eval my_mandir="`eval echo ${mandir}`" 14818eval my_moddir="`eval echo ${FVWM_MODULEDIR}`"; eval my_moddir="$my_moddir" 14819eval my_datdir="`eval echo ${FVWM_DATADIR}`" 14820eval my_docdir="`eval echo ${FVWM_DOCDIR}`" 14821eval my_plldir="`eval echo ${FVWM_PERLLIBDIR}`" 14822test x"$FVWM_PERLLIB" = x && my_plldir="(Not installed) $my_plldir" 14823eval my_localedir="`eval echo ${LOCALEDIR}`" 14824test x"$USE_NLS" = xno && my_localedir="(Not installed) $my_localdir" 14825 14826echo " 14827Fvwm Configuration: 14828 14829 Version: $VERSION$VERSIONINFO 14830 14831 Executables: $my_bindir 14832 Man pages: $my_mandir 14833 Modules: $my_moddir 14834 Data files: $my_datdir 14835 Doc files: $my_docdir 14836 Perl lib: $my_plldir 14837 Locale msg: $my_localedir $INST_LINGUAS 14838 14839 With Asian bi-direct. text support? $with_bidi$problem_bidi 14840 With Gettext Native Lang support? $with_gettext$problem_gettext 14841 With Iconv support? $with_iconv_type$problem_iconv 14842 With Mouse strokes (gestures)? $with_stroke$problem_stroke 14843 With ReadLine sup. in FvwmConsole? $with_readline$problem_readline 14844 With RPlay support in FvwmEvent? $with_rplay$problem_rplay 14845 With Shaped window support? $with_shape$problem_shape 14846 With Shared memory for XImage? $with_shm$problem_shm 14847 With Session Management support? $with_sm$problem_sm 14848 With SVG image support? $with_rsvg$problem_rsvg 14849 With Xcursor support? $with_xcursor$problem_xcursor 14850 With Xinerama multi-head support? $with_xinerama$problem_xinerama 14851 With Xft anti-alias font support? $with_xft$problem_xft 14852 With XPM image support? $with_xpm$problem_xpm 14853 With Xrender image support? $with_xrender$problem_xrender 14854 Build man pages? $with_mandoc$problem_mandoc 14855 Build HTML documentation? $with_htmldoc$problem_htmldoc 14856 14857" 14858 14859case "$with_xinerama_emulation" in 14860 yes) echo " Xinerama emulation enabled." ;; 14861esac 14862case "$ac_cv_dmalloc" in 14863 yes) echo " DMALLOC heap debugging library enabled." ;; 14864esac 14865case "$ac_cv_efence" in 14866 yes) echo " EFENCE debugging library enabled." ;; 14867esac 14868