configure revision 4a1eb5db
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for twm 1.0.10. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 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: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 271$0: about your system, including any error possibly output 272$0: before this message. Then install a modern shell, or 273$0: manually run the script under such a shell if you do 274$0: have one." 275 fi 276 exit 1 277fi 278fi 279fi 280SHELL=${CONFIG_SHELL-/bin/sh} 281export SHELL 282# Unset more variables known to interfere with behavior of common tools. 283CLICOLOR_FORCE= GREP_OPTIONS= 284unset CLICOLOR_FORCE GREP_OPTIONS 285 286## --------------------- ## 287## M4sh Shell Functions. ## 288## --------------------- ## 289# as_fn_unset VAR 290# --------------- 291# Portably unset VAR. 292as_fn_unset () 293{ 294 { eval $1=; unset $1;} 295} 296as_unset=as_fn_unset 297 298# as_fn_set_status STATUS 299# ----------------------- 300# Set $? to STATUS, without forking. 301as_fn_set_status () 302{ 303 return $1 304} # as_fn_set_status 305 306# as_fn_exit STATUS 307# ----------------- 308# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 309as_fn_exit () 310{ 311 set +e 312 as_fn_set_status $1 313 exit $1 314} # as_fn_exit 315 316# as_fn_mkdir_p 317# ------------- 318# Create "$as_dir" as a directory, including parents if necessary. 319as_fn_mkdir_p () 320{ 321 322 case $as_dir in #( 323 -*) as_dir=./$as_dir;; 324 esac 325 test -d "$as_dir" || eval $as_mkdir_p || { 326 as_dirs= 327 while :; do 328 case $as_dir in #( 329 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 330 *) as_qdir=$as_dir;; 331 esac 332 as_dirs="'$as_qdir' $as_dirs" 333 as_dir=`$as_dirname -- "$as_dir" || 334$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 335 X"$as_dir" : 'X\(//\)[^/]' \| \ 336 X"$as_dir" : 'X\(//\)$' \| \ 337 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 338$as_echo X"$as_dir" | 339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 340 s//\1/ 341 q 342 } 343 /^X\(\/\/\)[^/].*/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)$/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\).*/{ 352 s//\1/ 353 q 354 } 355 s/.*/./; q'` 356 test -d "$as_dir" && break 357 done 358 test -z "$as_dirs" || eval "mkdir $as_dirs" 359 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 360 361 362} # as_fn_mkdir_p 363 364# as_fn_executable_p FILE 365# ----------------------- 366# Test if FILE is an executable regular file. 367as_fn_executable_p () 368{ 369 test -f "$1" && test -x "$1" 370} # as_fn_executable_p 371# as_fn_append VAR VALUE 372# ---------------------- 373# Append the text in VALUE to the end of the definition contained in VAR. Take 374# advantage of any shell optimizations that allow amortized linear growth over 375# repeated appends, instead of the typical quadratic growth present in naive 376# implementations. 377if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 378 eval 'as_fn_append () 379 { 380 eval $1+=\$2 381 }' 382else 383 as_fn_append () 384 { 385 eval $1=\$$1\$2 386 } 387fi # as_fn_append 388 389# as_fn_arith ARG... 390# ------------------ 391# Perform arithmetic evaluation on the ARGs, and store the result in the 392# global $as_val. Take advantage of shells that can avoid forks. The arguments 393# must be portable across $(()) and expr. 394if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 395 eval 'as_fn_arith () 396 { 397 as_val=$(( $* )) 398 }' 399else 400 as_fn_arith () 401 { 402 as_val=`expr "$@" || test $? -eq 1` 403 } 404fi # as_fn_arith 405 406 407# as_fn_error STATUS ERROR [LINENO LOG_FD] 408# ---------------------------------------- 409# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 410# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 411# script with STATUS, using 1 if that was 0. 412as_fn_error () 413{ 414 as_status=$1; test $as_status -eq 0 && as_status=1 415 if test "$4"; then 416 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 417 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 418 fi 419 $as_echo "$as_me: error: $2" >&2 420 as_fn_exit $as_status 421} # as_fn_error 422 423if expr a : '\(a\)' >/dev/null 2>&1 && 424 test "X`expr 00001 : '.*\(...\)'`" = X001; then 425 as_expr=expr 426else 427 as_expr=false 428fi 429 430if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 431 as_basename=basename 432else 433 as_basename=false 434fi 435 436if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 437 as_dirname=dirname 438else 439 as_dirname=false 440fi 441 442as_me=`$as_basename -- "$0" || 443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 444 X"$0" : 'X\(//\)$' \| \ 445 X"$0" : 'X\(/\)' \| . 2>/dev/null || 446$as_echo X/"$0" | 447 sed '/^.*\/\([^/][^/]*\)\/*$/{ 448 s//\1/ 449 q 450 } 451 /^X\/\(\/\/\)$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\).*/{ 456 s//\1/ 457 q 458 } 459 s/.*/./; q'` 460 461# Avoid depending upon Character Ranges. 462as_cr_letters='abcdefghijklmnopqrstuvwxyz' 463as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 464as_cr_Letters=$as_cr_letters$as_cr_LETTERS 465as_cr_digits='0123456789' 466as_cr_alnum=$as_cr_Letters$as_cr_digits 467 468 469 as_lineno_1=$LINENO as_lineno_1a=$LINENO 470 as_lineno_2=$LINENO as_lineno_2a=$LINENO 471 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 472 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 473 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 474 sed -n ' 475 p 476 /[$]LINENO/= 477 ' <$as_myself | 478 sed ' 479 s/[$]LINENO.*/&-/ 480 t lineno 481 b 482 :lineno 483 N 484 :loop 485 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 486 t loop 487 s/-\n.*// 488 ' >$as_me.lineno && 489 chmod +x "$as_me.lineno" || 490 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 491 492 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 493 # already done that, so ensure we don't try to do so again and fall 494 # in an infinite loop. This has already happened in practice. 495 _as_can_reexec=no; export _as_can_reexec 496 # Don't try to exec as it changes $[0], causing all sort of problems 497 # (the dirname of $[0] is not the place where we might find the 498 # original and so on. Autoconf is especially sensitive to this). 499 . "./$as_me.lineno" 500 # Exit status is that of the last command. 501 exit 502} 503 504ECHO_C= ECHO_N= ECHO_T= 505case `echo -n x` in #((((( 506-n*) 507 case `echo 'xy\c'` in 508 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 509 xy) ECHO_C='\c';; 510 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 511 ECHO_T=' ';; 512 esac;; 513*) 514 ECHO_N='-n';; 515esac 516 517rm -f conf$$ conf$$.exe conf$$.file 518if test -d conf$$.dir; then 519 rm -f conf$$.dir/conf$$.file 520else 521 rm -f conf$$.dir 522 mkdir conf$$.dir 2>/dev/null 523fi 524if (echo >conf$$.file) 2>/dev/null; then 525 if ln -s conf$$.file conf$$ 2>/dev/null; then 526 as_ln_s='ln -s' 527 # ... but there are two gotchas: 528 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 529 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 530 # In both cases, we have to default to `cp -pR'. 531 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 532 as_ln_s='cp -pR' 533 elif ln conf$$.file conf$$ 2>/dev/null; then 534 as_ln_s=ln 535 else 536 as_ln_s='cp -pR' 537 fi 538else 539 as_ln_s='cp -pR' 540fi 541rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 542rmdir conf$$.dir 2>/dev/null 543 544if mkdir -p . 2>/dev/null; then 545 as_mkdir_p='mkdir -p "$as_dir"' 546else 547 test -d ./-p && rmdir ./-p 548 as_mkdir_p=false 549fi 550 551as_test_x='test -x' 552as_executable_p=as_fn_executable_p 553 554# Sed expression to map a string onto a valid CPP name. 555as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 556 557# Sed expression to map a string onto a valid variable name. 558as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 559 560 561test -n "$DJDIR" || exec 7<&0 </dev/null 562exec 6>&1 563 564# Name of the host. 565# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 566# so uname gets run too. 567ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 568 569# 570# Initializations. 571# 572ac_default_prefix=/usr/local 573ac_clean_files= 574ac_config_libobj_dir=. 575LIBOBJS= 576cross_compiling=no 577subdirs= 578MFLAGS= 579MAKEFLAGS= 580 581# Identity of this package. 582PACKAGE_NAME='twm' 583PACKAGE_TARNAME='twm' 584PACKAGE_VERSION='1.0.10' 585PACKAGE_STRING='twm 1.0.10' 586PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 587PACKAGE_URL='' 588 589ac_unique_file="Makefile.am" 590# Factoring default headers for most tests. 591ac_includes_default="\ 592#include <stdio.h> 593#ifdef HAVE_SYS_TYPES_H 594# include <sys/types.h> 595#endif 596#ifdef HAVE_SYS_STAT_H 597# include <sys/stat.h> 598#endif 599#ifdef STDC_HEADERS 600# include <stdlib.h> 601# include <stddef.h> 602#else 603# ifdef HAVE_STDLIB_H 604# include <stdlib.h> 605# endif 606#endif 607#ifdef HAVE_STRING_H 608# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 609# include <memory.h> 610# endif 611# include <string.h> 612#endif 613#ifdef HAVE_STRINGS_H 614# include <strings.h> 615#endif 616#ifdef HAVE_INTTYPES_H 617# include <inttypes.h> 618#endif 619#ifdef HAVE_STDINT_H 620# include <stdint.h> 621#endif 622#ifdef HAVE_UNISTD_H 623# include <unistd.h> 624#endif" 625 626ac_subst_vars='am__EXEEXT_FALSE 627am__EXEEXT_TRUE 628LTLIBOBJS 629LIBOBJS 630TWM_LIBS 631TWM_CFLAGS 632LEXLIB 633LEX_OUTPUT_ROOT 634LEX 635YACC_INST 636YFLAGS 637YACC 638MAN_SUBSTS 639XORG_MAN_PAGE 640ADMIN_MAN_DIR 641DRIVER_MAN_DIR 642MISC_MAN_DIR 643FILE_MAN_DIR 644LIB_MAN_DIR 645APP_MAN_DIR 646ADMIN_MAN_SUFFIX 647DRIVER_MAN_SUFFIX 648MISC_MAN_SUFFIX 649FILE_MAN_SUFFIX 650LIB_MAN_SUFFIX 651APP_MAN_SUFFIX 652SED 653host_os 654host_vendor 655host_cpu 656host 657build_os 658build_vendor 659build_cpu 660build 661INSTALL_CMD 662PKG_CONFIG_LIBDIR 663PKG_CONFIG_PATH 664PKG_CONFIG 665CHANGELOG_CMD 666STRICT_CFLAGS 667CWARNFLAGS 668BASE_CFLAGS 669AM_BACKSLASH 670AM_DEFAULT_VERBOSITY 671AM_DEFAULT_V 672AM_V 673am__fastdepCC_FALSE 674am__fastdepCC_TRUE 675CCDEPMODE 676am__nodep 677AMDEPBACKSLASH 678AMDEP_FALSE 679AMDEP_TRUE 680am__quote 681am__include 682DEPDIR 683am__untar 684am__tar 685AMTAR 686am__leading_dot 687SET_MAKE 688AWK 689mkdir_p 690MKDIR_P 691INSTALL_STRIP_PROGRAM 692STRIP 693install_sh 694MAKEINFO 695AUTOHEADER 696AUTOMAKE 697AUTOCONF 698ACLOCAL 699VERSION 700PACKAGE 701CYGPATH_W 702am__isrc 703INSTALL_DATA 704INSTALL_SCRIPT 705INSTALL_PROGRAM 706EGREP 707GREP 708CPP 709OBJEXT 710EXEEXT 711ac_ct_CC 712CPPFLAGS 713LDFLAGS 714CFLAGS 715CC 716target_alias 717host_alias 718build_alias 719LIBS 720ECHO_T 721ECHO_N 722ECHO_C 723DEFS 724mandir 725localedir 726libdir 727psdir 728pdfdir 729dvidir 730htmldir 731infodir 732docdir 733oldincludedir 734includedir 735localstatedir 736sharedstatedir 737sysconfdir 738datadir 739datarootdir 740libexecdir 741sbindir 742bindir 743program_transform_name 744prefix 745exec_prefix 746PACKAGE_URL 747PACKAGE_BUGREPORT 748PACKAGE_STRING 749PACKAGE_VERSION 750PACKAGE_TARNAME 751PACKAGE_NAME 752PATH_SEPARATOR 753SHELL' 754ac_subst_files='' 755ac_user_opts=' 756enable_option_checking 757enable_dependency_tracking 758enable_silent_rules 759enable_selective_werror 760enable_strict_compilation 761' 762 ac_precious_vars='build_alias 763host_alias 764target_alias 765CC 766CFLAGS 767LDFLAGS 768LIBS 769CPPFLAGS 770CPP 771PKG_CONFIG 772PKG_CONFIG_PATH 773PKG_CONFIG_LIBDIR 774YACC 775YFLAGS 776TWM_CFLAGS 777TWM_LIBS' 778 779 780# Initialize some variables set by options. 781ac_init_help= 782ac_init_version=false 783ac_unrecognized_opts= 784ac_unrecognized_sep= 785# The variables have the same names as the options, with 786# dashes changed to underlines. 787cache_file=/dev/null 788exec_prefix=NONE 789no_create= 790no_recursion= 791prefix=NONE 792program_prefix=NONE 793program_suffix=NONE 794program_transform_name=s,x,x, 795silent= 796site= 797srcdir= 798verbose= 799x_includes=NONE 800x_libraries=NONE 801 802# Installation directory options. 803# These are left unexpanded so users can "make install exec_prefix=/foo" 804# and all the variables that are supposed to be based on exec_prefix 805# by default will actually change. 806# Use braces instead of parens because sh, perl, etc. also accept them. 807# (The list follows the same order as the GNU Coding Standards.) 808bindir='${exec_prefix}/bin' 809sbindir='${exec_prefix}/sbin' 810libexecdir='${exec_prefix}/libexec' 811datarootdir='${prefix}/share' 812datadir='${datarootdir}' 813sysconfdir='${prefix}/etc' 814sharedstatedir='${prefix}/com' 815localstatedir='${prefix}/var' 816includedir='${prefix}/include' 817oldincludedir='/usr/include' 818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 819infodir='${datarootdir}/info' 820htmldir='${docdir}' 821dvidir='${docdir}' 822pdfdir='${docdir}' 823psdir='${docdir}' 824libdir='${exec_prefix}/lib' 825localedir='${datarootdir}/locale' 826mandir='${datarootdir}/man' 827 828ac_prev= 829ac_dashdash= 830for ac_option 831do 832 # If the previous option needs an argument, assign it. 833 if test -n "$ac_prev"; then 834 eval $ac_prev=\$ac_option 835 ac_prev= 836 continue 837 fi 838 839 case $ac_option in 840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 841 *=) ac_optarg= ;; 842 *) ac_optarg=yes ;; 843 esac 844 845 # Accept the important Cygnus configure options, so we can diagnose typos. 846 847 case $ac_dashdash$ac_option in 848 --) 849 ac_dashdash=yes ;; 850 851 -bindir | --bindir | --bindi | --bind | --bin | --bi) 852 ac_prev=bindir ;; 853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 854 bindir=$ac_optarg ;; 855 856 -build | --build | --buil | --bui | --bu) 857 ac_prev=build_alias ;; 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 859 build_alias=$ac_optarg ;; 860 861 -cache-file | --cache-file | --cache-fil | --cache-fi \ 862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 863 ac_prev=cache_file ;; 864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 866 cache_file=$ac_optarg ;; 867 868 --config-cache | -C) 869 cache_file=config.cache ;; 870 871 -datadir | --datadir | --datadi | --datad) 872 ac_prev=datadir ;; 873 -datadir=* | --datadir=* | --datadi=* | --datad=*) 874 datadir=$ac_optarg ;; 875 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 877 | --dataroo | --dataro | --datar) 878 ac_prev=datarootdir ;; 879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 881 datarootdir=$ac_optarg ;; 882 883 -disable-* | --disable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error $? "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892"enable_$ac_useropt" 893"*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=no ;; 898 899 -docdir | --docdir | --docdi | --doc | --do) 900 ac_prev=docdir ;; 901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 902 docdir=$ac_optarg ;; 903 904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 905 ac_prev=dvidir ;; 906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 907 dvidir=$ac_optarg ;; 908 909 -enable-* | --enable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=\$ac_optarg ;; 924 925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 927 | --exec | --exe | --ex) 928 ac_prev=exec_prefix ;; 929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 931 | --exec=* | --exe=* | --ex=*) 932 exec_prefix=$ac_optarg ;; 933 934 -gas | --gas | --ga | --g) 935 # Obsolete; use --with-gas. 936 with_gas=yes ;; 937 938 -help | --help | --hel | --he | -h) 939 ac_init_help=long ;; 940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 941 ac_init_help=recursive ;; 942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 943 ac_init_help=short ;; 944 945 -host | --host | --hos | --ho) 946 ac_prev=host_alias ;; 947 -host=* | --host=* | --hos=* | --ho=*) 948 host_alias=$ac_optarg ;; 949 950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 951 ac_prev=htmldir ;; 952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 953 | --ht=*) 954 htmldir=$ac_optarg ;; 955 956 -includedir | --includedir | --includedi | --included | --include \ 957 | --includ | --inclu | --incl | --inc) 958 ac_prev=includedir ;; 959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 960 | --includ=* | --inclu=* | --incl=* | --inc=*) 961 includedir=$ac_optarg ;; 962 963 -infodir | --infodir | --infodi | --infod | --info | --inf) 964 ac_prev=infodir ;; 965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 966 infodir=$ac_optarg ;; 967 968 -libdir | --libdir | --libdi | --libd) 969 ac_prev=libdir ;; 970 -libdir=* | --libdir=* | --libdi=* | --libd=*) 971 libdir=$ac_optarg ;; 972 973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 974 | --libexe | --libex | --libe) 975 ac_prev=libexecdir ;; 976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 977 | --libexe=* | --libex=* | --libe=*) 978 libexecdir=$ac_optarg ;; 979 980 -localedir | --localedir | --localedi | --localed | --locale) 981 ac_prev=localedir ;; 982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 983 localedir=$ac_optarg ;; 984 985 -localstatedir | --localstatedir | --localstatedi | --localstated \ 986 | --localstate | --localstat | --localsta | --localst | --locals) 987 ac_prev=localstatedir ;; 988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 990 localstatedir=$ac_optarg ;; 991 992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 993 ac_prev=mandir ;; 994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 995 mandir=$ac_optarg ;; 996 997 -nfp | --nfp | --nf) 998 # Obsolete; use --without-fp. 999 with_fp=no ;; 1000 1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1002 | --no-cr | --no-c | -n) 1003 no_create=yes ;; 1004 1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1007 no_recursion=yes ;; 1008 1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1011 | --oldin | --oldi | --old | --ol | --o) 1012 ac_prev=oldincludedir ;; 1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1016 oldincludedir=$ac_optarg ;; 1017 1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1019 ac_prev=prefix ;; 1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1021 prefix=$ac_optarg ;; 1022 1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1024 | --program-pre | --program-pr | --program-p) 1025 ac_prev=program_prefix ;; 1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1028 program_prefix=$ac_optarg ;; 1029 1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1031 | --program-suf | --program-su | --program-s) 1032 ac_prev=program_suffix ;; 1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1035 program_suffix=$ac_optarg ;; 1036 1037 -program-transform-name | --program-transform-name \ 1038 | --program-transform-nam | --program-transform-na \ 1039 | --program-transform-n | --program-transform- \ 1040 | --program-transform | --program-transfor \ 1041 | --program-transfo | --program-transf \ 1042 | --program-trans | --program-tran \ 1043 | --progr-tra | --program-tr | --program-t) 1044 ac_prev=program_transform_name ;; 1045 -program-transform-name=* | --program-transform-name=* \ 1046 | --program-transform-nam=* | --program-transform-na=* \ 1047 | --program-transform-n=* | --program-transform-=* \ 1048 | --program-transform=* | --program-transfor=* \ 1049 | --program-transfo=* | --program-transf=* \ 1050 | --program-trans=* | --program-tran=* \ 1051 | --progr-tra=* | --program-tr=* | --program-t=*) 1052 program_transform_name=$ac_optarg ;; 1053 1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1055 ac_prev=pdfdir ;; 1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1057 pdfdir=$ac_optarg ;; 1058 1059 -psdir | --psdir | --psdi | --psd | --ps) 1060 ac_prev=psdir ;; 1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1062 psdir=$ac_optarg ;; 1063 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 silent=yes ;; 1067 1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1069 ac_prev=sbindir ;; 1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1071 | --sbi=* | --sb=*) 1072 sbindir=$ac_optarg ;; 1073 1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1076 | --sharedst | --shareds | --shared | --share | --shar \ 1077 | --sha | --sh) 1078 ac_prev=sharedstatedir ;; 1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1082 | --sha=* | --sh=*) 1083 sharedstatedir=$ac_optarg ;; 1084 1085 -site | --site | --sit) 1086 ac_prev=site ;; 1087 -site=* | --site=* | --sit=*) 1088 site=$ac_optarg ;; 1089 1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1091 ac_prev=srcdir ;; 1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1093 srcdir=$ac_optarg ;; 1094 1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1096 | --syscon | --sysco | --sysc | --sys | --sy) 1097 ac_prev=sysconfdir ;; 1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1100 sysconfdir=$ac_optarg ;; 1101 1102 -target | --target | --targe | --targ | --tar | --ta | --t) 1103 ac_prev=target_alias ;; 1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1105 target_alias=$ac_optarg ;; 1106 1107 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1108 verbose=yes ;; 1109 1110 -version | --version | --versio | --versi | --vers | -V) 1111 ac_init_version=: ;; 1112 1113 -with-* | --with-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error $? "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=\$ac_optarg ;; 1128 1129 -without-* | --without-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error $? "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138"with_$ac_useropt" 1139"*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=no ;; 1144 1145 --x) 1146 # Obsolete; use --with-x. 1147 with_x=yes ;; 1148 1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1150 | --x-incl | --x-inc | --x-in | --x-i) 1151 ac_prev=x_includes ;; 1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1154 x_includes=$ac_optarg ;; 1155 1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1158 ac_prev=x_libraries ;; 1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1161 x_libraries=$ac_optarg ;; 1162 1163 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1164Try \`$0 --help' for more information" 1165 ;; 1166 1167 *=*) 1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1169 # Reject names that are not valid shell variable names. 1170 case $ac_envvar in #( 1171 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1173 esac 1174 eval $ac_envvar=\$ac_optarg 1175 export $ac_envvar ;; 1176 1177 *) 1178 # FIXME: should be removed in autoconf 3.0. 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1183 ;; 1184 1185 esac 1186done 1187 1188if test -n "$ac_prev"; then 1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1190 as_fn_error $? "missing argument to $ac_option" 1191fi 1192 1193if test -n "$ac_unrecognized_opts"; then 1194 case $enable_option_checking in 1195 no) ;; 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1198 esac 1199fi 1200 1201# Check all directory arguments for consistency. 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206do 1207 eval ac_val=\$$ac_var 1208 # Remove trailing slashes. 1209 case $ac_val in 1210 */ ) 1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1212 eval $ac_var=\$ac_val;; 1213 esac 1214 # Be sure to have absolute directory names. 1215 case $ac_val in 1216 [\\/$]* | ?:[\\/]* ) continue;; 1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1218 esac 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1220done 1221 1222# There might be people who depend on the old broken behavior: `$host' 1223# used to hold the argument of --host etc. 1224# FIXME: To remove some day. 1225build=$build_alias 1226host=$host_alias 1227target=$target_alias 1228 1229# FIXME: To remove some day. 1230if test "x$host_alias" != x; then 1231 if test "x$build_alias" = x; then 1232 cross_compiling=maybe 1233 elif test "x$build_alias" != "x$host_alias"; then 1234 cross_compiling=yes 1235 fi 1236fi 1237 1238ac_tool_prefix= 1239test -n "$host_alias" && ac_tool_prefix=$host_alias- 1240 1241test "$silent" = yes && exec 6>/dev/null 1242 1243 1244ac_pwd=`pwd` && test -n "$ac_pwd" && 1245ac_ls_di=`ls -di .` && 1246ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1247 as_fn_error $? "working directory cannot be determined" 1248test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1249 as_fn_error $? "pwd does not report name of working directory" 1250 1251 1252# Find the source files, if location was not specified. 1253if test -z "$srcdir"; then 1254 ac_srcdir_defaulted=yes 1255 # Try the directory containing this script, then the parent directory. 1256 ac_confdir=`$as_dirname -- "$as_myself" || 1257$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1258 X"$as_myself" : 'X\(//\)[^/]' \| \ 1259 X"$as_myself" : 'X\(//\)$' \| \ 1260 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1261$as_echo X"$as_myself" | 1262 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\/\)[^/].*/{ 1267 s//\1/ 1268 q 1269 } 1270 /^X\(\/\/\)$/{ 1271 s//\1/ 1272 q 1273 } 1274 /^X\(\/\).*/{ 1275 s//\1/ 1276 q 1277 } 1278 s/.*/./; q'` 1279 srcdir=$ac_confdir 1280 if test ! -r "$srcdir/$ac_unique_file"; then 1281 srcdir=.. 1282 fi 1283else 1284 ac_srcdir_defaulted=no 1285fi 1286if test ! -r "$srcdir/$ac_unique_file"; then 1287 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1288 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1289fi 1290ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1291ac_abs_confdir=`( 1292 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1293 pwd)` 1294# When building in place, set srcdir=. 1295if test "$ac_abs_confdir" = "$ac_pwd"; then 1296 srcdir=. 1297fi 1298# Remove unnecessary trailing slashes from srcdir. 1299# Double slashes in file names in object file debugging info 1300# mess up M-x gdb in Emacs. 1301case $srcdir in 1302*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1303esac 1304for ac_var in $ac_precious_vars; do 1305 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1306 eval ac_env_${ac_var}_value=\$${ac_var} 1307 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1309done 1310 1311# 1312# Report the --help message. 1313# 1314if test "$ac_init_help" = "long"; then 1315 # Omit some internal or obsolete options to make the list less imposing. 1316 # This message is too long to be a string in the A/UX 3.1 sh. 1317 cat <<_ACEOF 1318\`configure' configures twm 1.0.10 to adapt to many kinds of systems. 1319 1320Usage: $0 [OPTION]... [VAR=VALUE]... 1321 1322To assign environment variables (e.g., CC, CFLAGS...), specify them as 1323VAR=VALUE. See below for descriptions of some of the useful variables. 1324 1325Defaults for the options are specified in brackets. 1326 1327Configuration: 1328 -h, --help display this help and exit 1329 --help=short display options specific to this package 1330 --help=recursive display the short help of all the included packages 1331 -V, --version display version information and exit 1332 -q, --quiet, --silent do not print \`checking ...' messages 1333 --cache-file=FILE cache test results in FILE [disabled] 1334 -C, --config-cache alias for \`--cache-file=config.cache' 1335 -n, --no-create do not create output files 1336 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1337 1338Installation directories: 1339 --prefix=PREFIX install architecture-independent files in PREFIX 1340 [$ac_default_prefix] 1341 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1342 [PREFIX] 1343 1344By default, \`make install' will install all the files in 1345\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1346an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1347for instance \`--prefix=\$HOME'. 1348 1349For better control, use the options below. 1350 1351Fine tuning of the installation directories: 1352 --bindir=DIR user executables [EPREFIX/bin] 1353 --sbindir=DIR system admin executables [EPREFIX/sbin] 1354 --libexecdir=DIR program executables [EPREFIX/libexec] 1355 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1356 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1357 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1358 --libdir=DIR object code libraries [EPREFIX/lib] 1359 --includedir=DIR C header files [PREFIX/include] 1360 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1363 --infodir=DIR info documentation [DATAROOTDIR/info] 1364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1365 --mandir=DIR man documentation [DATAROOTDIR/man] 1366 --docdir=DIR documentation root [DATAROOTDIR/doc/twm] 1367 --htmldir=DIR html documentation [DOCDIR] 1368 --dvidir=DIR dvi documentation [DOCDIR] 1369 --pdfdir=DIR pdf documentation [DOCDIR] 1370 --psdir=DIR ps documentation [DOCDIR] 1371_ACEOF 1372 1373 cat <<\_ACEOF 1374 1375Program names: 1376 --program-prefix=PREFIX prepend PREFIX to installed program names 1377 --program-suffix=SUFFIX append SUFFIX to installed program names 1378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1379 1380System types: 1381 --build=BUILD configure for building on BUILD [guessed] 1382 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1383_ACEOF 1384fi 1385 1386if test -n "$ac_init_help"; then 1387 case $ac_init_help in 1388 short | recursive ) echo "Configuration of twm 1.0.10:";; 1389 esac 1390 cat <<\_ACEOF 1391 1392Optional Features: 1393 --disable-option-checking ignore unrecognized --enable/--with options 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1396 --enable-dependency-tracking 1397 do not reject slow dependency extractors 1398 --disable-dependency-tracking 1399 speeds up one-time build 1400 --enable-silent-rules less verbose build output (undo: "make V=1") 1401 --disable-silent-rules verbose build output (undo: "make V=0") 1402 --disable-selective-werror 1403 Turn off selective compiler errors. (default: 1404 enabled) 1405 --enable-strict-compilation 1406 Enable all warnings from compiler and make them 1407 errors (default: disabled) 1408 1409Some influential environment variables: 1410 CC C compiler command 1411 CFLAGS C compiler flags 1412 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1413 nonstandard directory <lib dir> 1414 LIBS libraries to pass to the linker, e.g. -l<library> 1415 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1416 you have headers in a nonstandard directory <include dir> 1417 CPP C preprocessor 1418 PKG_CONFIG path to pkg-config utility 1419 PKG_CONFIG_PATH 1420 directories to add to pkg-config's search path 1421 PKG_CONFIG_LIBDIR 1422 path overriding pkg-config's built-in search path 1423 YACC The `Yet Another Compiler Compiler' implementation to use. 1424 Defaults to the first program found out of: `bison -y', `byacc', 1425 `yacc'. 1426 YFLAGS The list of arguments that will be passed by default to $YACC. 1427 This script will default YFLAGS to the empty string to avoid a 1428 default value of `-d' given by some make applications. 1429 TWM_CFLAGS C compiler flags for TWM, overriding pkg-config 1430 TWM_LIBS linker flags for TWM, overriding pkg-config 1431 1432Use these variables to override the choices made by `configure' or to help 1433it to find libraries and programs with nonstandard names/locations. 1434 1435Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1436_ACEOF 1437ac_status=$? 1438fi 1439 1440if test "$ac_init_help" = "recursive"; then 1441 # If there are subdirs, report their specific --help. 1442 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1443 test -d "$ac_dir" || 1444 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1445 continue 1446 ac_builddir=. 1447 1448case "$ac_dir" in 1449.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1450*) 1451 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1452 # A ".." for each directory in $ac_dir_suffix. 1453 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1454 case $ac_top_builddir_sub in 1455 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1456 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1457 esac ;; 1458esac 1459ac_abs_top_builddir=$ac_pwd 1460ac_abs_builddir=$ac_pwd$ac_dir_suffix 1461# for backward compatibility: 1462ac_top_builddir=$ac_top_build_prefix 1463 1464case $srcdir in 1465 .) # We are building in place. 1466 ac_srcdir=. 1467 ac_top_srcdir=$ac_top_builddir_sub 1468 ac_abs_top_srcdir=$ac_pwd ;; 1469 [\\/]* | ?:[\\/]* ) # Absolute name. 1470 ac_srcdir=$srcdir$ac_dir_suffix; 1471 ac_top_srcdir=$srcdir 1472 ac_abs_top_srcdir=$srcdir ;; 1473 *) # Relative name. 1474 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1475 ac_top_srcdir=$ac_top_build_prefix$srcdir 1476 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1477esac 1478ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1479 1480 cd "$ac_dir" || { ac_status=$?; continue; } 1481 # Check for guested configure. 1482 if test -f "$ac_srcdir/configure.gnu"; then 1483 echo && 1484 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1485 elif test -f "$ac_srcdir/configure"; then 1486 echo && 1487 $SHELL "$ac_srcdir/configure" --help=recursive 1488 else 1489 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1490 fi || ac_status=$? 1491 cd "$ac_pwd" || { ac_status=$?; break; } 1492 done 1493fi 1494 1495test -n "$ac_init_help" && exit $ac_status 1496if $ac_init_version; then 1497 cat <<\_ACEOF 1498twm configure 1.0.10 1499generated by GNU Autoconf 2.69 1500 1501Copyright (C) 2012 Free Software Foundation, Inc. 1502This configure script is free software; the Free Software Foundation 1503gives unlimited permission to copy, distribute and modify it. 1504_ACEOF 1505 exit 1506fi 1507 1508## ------------------------ ## 1509## Autoconf initialization. ## 1510## ------------------------ ## 1511 1512# ac_fn_c_try_compile LINENO 1513# -------------------------- 1514# Try to compile conftest.$ac_ext, and return whether this succeeded. 1515ac_fn_c_try_compile () 1516{ 1517 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1518 rm -f conftest.$ac_objext 1519 if { { ac_try="$ac_compile" 1520case "(($ac_try" in 1521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1522 *) ac_try_echo=$ac_try;; 1523esac 1524eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1525$as_echo "$ac_try_echo"; } >&5 1526 (eval "$ac_compile") 2>conftest.err 1527 ac_status=$? 1528 if test -s conftest.err; then 1529 grep -v '^ *+' conftest.err >conftest.er1 1530 cat conftest.er1 >&5 1531 mv -f conftest.er1 conftest.err 1532 fi 1533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1534 test $ac_status = 0; } && { 1535 test -z "$ac_c_werror_flag" || 1536 test ! -s conftest.err 1537 } && test -s conftest.$ac_objext; then : 1538 ac_retval=0 1539else 1540 $as_echo "$as_me: failed program was:" >&5 1541sed 's/^/| /' conftest.$ac_ext >&5 1542 1543 ac_retval=1 1544fi 1545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1546 as_fn_set_status $ac_retval 1547 1548} # ac_fn_c_try_compile 1549 1550# ac_fn_c_try_cpp LINENO 1551# ---------------------- 1552# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1553ac_fn_c_try_cpp () 1554{ 1555 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1556 if { { ac_try="$ac_cpp conftest.$ac_ext" 1557case "(($ac_try" in 1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1559 *) ac_try_echo=$ac_try;; 1560esac 1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1562$as_echo "$ac_try_echo"; } >&5 1563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1564 ac_status=$? 1565 if test -s conftest.err; then 1566 grep -v '^ *+' conftest.err >conftest.er1 1567 cat conftest.er1 >&5 1568 mv -f conftest.er1 conftest.err 1569 fi 1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1571 test $ac_status = 0; } > conftest.i && { 1572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1573 test ! -s conftest.err 1574 }; then : 1575 ac_retval=0 1576else 1577 $as_echo "$as_me: failed program was:" >&5 1578sed 's/^/| /' conftest.$ac_ext >&5 1579 1580 ac_retval=1 1581fi 1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1583 as_fn_set_status $ac_retval 1584 1585} # ac_fn_c_try_cpp 1586 1587# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1588# ------------------------------------------------------- 1589# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1590# the include files in INCLUDES and setting the cache variable VAR 1591# accordingly. 1592ac_fn_c_check_header_mongrel () 1593{ 1594 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1595 if eval \${$3+:} false; then : 1596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1597$as_echo_n "checking for $2... " >&6; } 1598if eval \${$3+:} false; then : 1599 $as_echo_n "(cached) " >&6 1600fi 1601eval ac_res=\$$3 1602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1603$as_echo "$ac_res" >&6; } 1604else 1605 # Is the header compilable? 1606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1607$as_echo_n "checking $2 usability... " >&6; } 1608cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1609/* end confdefs.h. */ 1610$4 1611#include <$2> 1612_ACEOF 1613if ac_fn_c_try_compile "$LINENO"; then : 1614 ac_header_compiler=yes 1615else 1616 ac_header_compiler=no 1617fi 1618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1620$as_echo "$ac_header_compiler" >&6; } 1621 1622# Is the header present? 1623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1624$as_echo_n "checking $2 presence... " >&6; } 1625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1626/* end confdefs.h. */ 1627#include <$2> 1628_ACEOF 1629if ac_fn_c_try_cpp "$LINENO"; then : 1630 ac_header_preproc=yes 1631else 1632 ac_header_preproc=no 1633fi 1634rm -f conftest.err conftest.i conftest.$ac_ext 1635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1636$as_echo "$ac_header_preproc" >&6; } 1637 1638# So? What about this header? 1639case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1640 yes:no: ) 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1642$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1644$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1645 ;; 1646 no:yes:* ) 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1648$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1650$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1652$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1654$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1656$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1657( $as_echo "## ---------------------------------------------------------------------- ## 1658## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1659## ---------------------------------------------------------------------- ##" 1660 ) | sed "s/^/$as_me: WARNING: /" >&2 1661 ;; 1662esac 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1664$as_echo_n "checking for $2... " >&6; } 1665if eval \${$3+:} false; then : 1666 $as_echo_n "(cached) " >&6 1667else 1668 eval "$3=\$ac_header_compiler" 1669fi 1670eval ac_res=\$$3 1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1672$as_echo "$ac_res" >&6; } 1673fi 1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1675 1676} # ac_fn_c_check_header_mongrel 1677 1678# ac_fn_c_try_run LINENO 1679# ---------------------- 1680# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1681# that executables *can* be run. 1682ac_fn_c_try_run () 1683{ 1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1685 if { { ac_try="$ac_link" 1686case "(($ac_try" in 1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1688 *) ac_try_echo=$ac_try;; 1689esac 1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1691$as_echo "$ac_try_echo"; } >&5 1692 (eval "$ac_link") 2>&5 1693 ac_status=$? 1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1695 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1696 { { case "(($ac_try" in 1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1698 *) ac_try_echo=$ac_try;; 1699esac 1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1701$as_echo "$ac_try_echo"; } >&5 1702 (eval "$ac_try") 2>&5 1703 ac_status=$? 1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1705 test $ac_status = 0; }; }; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: program exited with status $ac_status" >&5 1709 $as_echo "$as_me: failed program was:" >&5 1710sed 's/^/| /' conftest.$ac_ext >&5 1711 1712 ac_retval=$ac_status 1713fi 1714 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1715 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1716 as_fn_set_status $ac_retval 1717 1718} # ac_fn_c_try_run 1719 1720# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1721# ------------------------------------------------------- 1722# Tests whether HEADER exists and can be compiled using the include files in 1723# INCLUDES, setting the cache variable VAR accordingly. 1724ac_fn_c_check_header_compile () 1725{ 1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1728$as_echo_n "checking for $2... " >&6; } 1729if eval \${$3+:} false; then : 1730 $as_echo_n "(cached) " >&6 1731else 1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1733/* end confdefs.h. */ 1734$4 1735#include <$2> 1736_ACEOF 1737if ac_fn_c_try_compile "$LINENO"; then : 1738 eval "$3=yes" 1739else 1740 eval "$3=no" 1741fi 1742rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1743fi 1744eval ac_res=\$$3 1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1746$as_echo "$ac_res" >&6; } 1747 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1748 1749} # ac_fn_c_check_header_compile 1750 1751# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1752# --------------------------------------------- 1753# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1754# accordingly. 1755ac_fn_c_check_decl () 1756{ 1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1758 as_decl_name=`echo $2|sed 's/ *(.*//'` 1759 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1761$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1762if eval \${$3+:} false; then : 1763 $as_echo_n "(cached) " >&6 1764else 1765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1766/* end confdefs.h. */ 1767$4 1768int 1769main () 1770{ 1771#ifndef $as_decl_name 1772#ifdef __cplusplus 1773 (void) $as_decl_use; 1774#else 1775 (void) $as_decl_name; 1776#endif 1777#endif 1778 1779 ; 1780 return 0; 1781} 1782_ACEOF 1783if ac_fn_c_try_compile "$LINENO"; then : 1784 eval "$3=yes" 1785else 1786 eval "$3=no" 1787fi 1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1789fi 1790eval ac_res=\$$3 1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1792$as_echo "$ac_res" >&6; } 1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1794 1795} # ac_fn_c_check_decl 1796 1797# ac_fn_c_try_link LINENO 1798# ----------------------- 1799# Try to link conftest.$ac_ext, and return whether this succeeded. 1800ac_fn_c_try_link () 1801{ 1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1803 rm -f conftest.$ac_objext conftest$ac_exeext 1804 if { { ac_try="$ac_link" 1805case "(($ac_try" in 1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1807 *) ac_try_echo=$ac_try;; 1808esac 1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1810$as_echo "$ac_try_echo"; } >&5 1811 (eval "$ac_link") 2>conftest.err 1812 ac_status=$? 1813 if test -s conftest.err; then 1814 grep -v '^ *+' conftest.err >conftest.er1 1815 cat conftest.er1 >&5 1816 mv -f conftest.er1 conftest.err 1817 fi 1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1819 test $ac_status = 0; } && { 1820 test -z "$ac_c_werror_flag" || 1821 test ! -s conftest.err 1822 } && test -s conftest$ac_exeext && { 1823 test "$cross_compiling" = yes || 1824 test -x conftest$ac_exeext 1825 }; then : 1826 ac_retval=0 1827else 1828 $as_echo "$as_me: failed program was:" >&5 1829sed 's/^/| /' conftest.$ac_ext >&5 1830 1831 ac_retval=1 1832fi 1833 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1834 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1835 # interfere with the next link command; also delete a directory that is 1836 # left behind by Apple's compiler. We do this before executing the actions. 1837 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1839 as_fn_set_status $ac_retval 1840 1841} # ac_fn_c_try_link 1842 1843# ac_fn_c_check_func LINENO FUNC VAR 1844# ---------------------------------- 1845# Tests whether FUNC exists, setting the cache variable VAR accordingly 1846ac_fn_c_check_func () 1847{ 1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1850$as_echo_n "checking for $2... " >&6; } 1851if eval \${$3+:} false; then : 1852 $as_echo_n "(cached) " >&6 1853else 1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1855/* end confdefs.h. */ 1856/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1857 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1858#define $2 innocuous_$2 1859 1860/* System header to define __stub macros and hopefully few prototypes, 1861 which can conflict with char $2 (); below. 1862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1863 <limits.h> exists even on freestanding compilers. */ 1864 1865#ifdef __STDC__ 1866# include <limits.h> 1867#else 1868# include <assert.h> 1869#endif 1870 1871#undef $2 1872 1873/* Override any GCC internal prototype to avoid an error. 1874 Use char because int might match the return type of a GCC 1875 builtin and then its argument prototype would still apply. */ 1876#ifdef __cplusplus 1877extern "C" 1878#endif 1879char $2 (); 1880/* The GNU C library defines this for functions which it implements 1881 to always fail with ENOSYS. Some functions are actually named 1882 something starting with __ and the normal name is an alias. */ 1883#if defined __stub_$2 || defined __stub___$2 1884choke me 1885#endif 1886 1887int 1888main () 1889{ 1890return $2 (); 1891 ; 1892 return 0; 1893} 1894_ACEOF 1895if ac_fn_c_try_link "$LINENO"; then : 1896 eval "$3=yes" 1897else 1898 eval "$3=no" 1899fi 1900rm -f core conftest.err conftest.$ac_objext \ 1901 conftest$ac_exeext conftest.$ac_ext 1902fi 1903eval ac_res=\$$3 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1905$as_echo "$ac_res" >&6; } 1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907 1908} # ac_fn_c_check_func 1909cat >config.log <<_ACEOF 1910This file contains any messages produced by compilers while 1911running configure, to aid debugging if configure makes a mistake. 1912 1913It was created by twm $as_me 1.0.10, which was 1914generated by GNU Autoconf 2.69. Invocation command line was 1915 1916 $ $0 $@ 1917 1918_ACEOF 1919exec 5>>config.log 1920{ 1921cat <<_ASUNAME 1922## --------- ## 1923## Platform. ## 1924## --------- ## 1925 1926hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1927uname -m = `(uname -m) 2>/dev/null || echo unknown` 1928uname -r = `(uname -r) 2>/dev/null || echo unknown` 1929uname -s = `(uname -s) 2>/dev/null || echo unknown` 1930uname -v = `(uname -v) 2>/dev/null || echo unknown` 1931 1932/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1933/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1934 1935/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1936/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1937/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1938/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1939/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1940/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1941/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1942 1943_ASUNAME 1944 1945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1946for as_dir in $PATH 1947do 1948 IFS=$as_save_IFS 1949 test -z "$as_dir" && as_dir=. 1950 $as_echo "PATH: $as_dir" 1951 done 1952IFS=$as_save_IFS 1953 1954} >&5 1955 1956cat >&5 <<_ACEOF 1957 1958 1959## ----------- ## 1960## Core tests. ## 1961## ----------- ## 1962 1963_ACEOF 1964 1965 1966# Keep a trace of the command line. 1967# Strip out --no-create and --no-recursion so they do not pile up. 1968# Strip out --silent because we don't want to record it for future runs. 1969# Also quote any args containing shell meta-characters. 1970# Make two passes to allow for proper duplicate-argument suppression. 1971ac_configure_args= 1972ac_configure_args0= 1973ac_configure_args1= 1974ac_must_keep_next=false 1975for ac_pass in 1 2 1976do 1977 for ac_arg 1978 do 1979 case $ac_arg in 1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1982 | -silent | --silent | --silen | --sile | --sil) 1983 continue ;; 1984 *\'*) 1985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1986 esac 1987 case $ac_pass in 1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1989 2) 1990 as_fn_append ac_configure_args1 " '$ac_arg'" 1991 if test $ac_must_keep_next = true; then 1992 ac_must_keep_next=false # Got value, back to normal. 1993 else 1994 case $ac_arg in 1995 *=* | --config-cache | -C | -disable-* | --disable-* \ 1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1998 | -with-* | --with-* | -without-* | --without-* | --x) 1999 case "$ac_configure_args0 " in 2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2001 esac 2002 ;; 2003 -* ) ac_must_keep_next=true ;; 2004 esac 2005 fi 2006 as_fn_append ac_configure_args " '$ac_arg'" 2007 ;; 2008 esac 2009 done 2010done 2011{ ac_configure_args0=; unset ac_configure_args0;} 2012{ ac_configure_args1=; unset ac_configure_args1;} 2013 2014# When interrupted or exit'd, cleanup temporary files, and complete 2015# config.log. We remove comments because anyway the quotes in there 2016# would cause problems or look ugly. 2017# WARNING: Use '\'' to represent an apostrophe within the trap. 2018# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2019trap 'exit_status=$? 2020 # Save into config.log some information that might help in debugging. 2021 { 2022 echo 2023 2024 $as_echo "## ---------------- ## 2025## Cache variables. ## 2026## ---------------- ##" 2027 echo 2028 # The following way of writing the cache mishandles newlines in values, 2029( 2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2031 eval ac_val=\$$ac_var 2032 case $ac_val in #( 2033 *${as_nl}*) 2034 case $ac_var in #( 2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2036$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2037 esac 2038 case $ac_var in #( 2039 _ | IFS | as_nl) ;; #( 2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2041 *) { eval $ac_var=; unset $ac_var;} ;; 2042 esac ;; 2043 esac 2044 done 2045 (set) 2>&1 | 2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2047 *${as_nl}ac_space=\ *) 2048 sed -n \ 2049 "s/'\''/'\''\\\\'\'''\''/g; 2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2051 ;; #( 2052 *) 2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2054 ;; 2055 esac | 2056 sort 2057) 2058 echo 2059 2060 $as_echo "## ----------------- ## 2061## Output variables. ## 2062## ----------------- ##" 2063 echo 2064 for ac_var in $ac_subst_vars 2065 do 2066 eval ac_val=\$$ac_var 2067 case $ac_val in 2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2069 esac 2070 $as_echo "$ac_var='\''$ac_val'\''" 2071 done | sort 2072 echo 2073 2074 if test -n "$ac_subst_files"; then 2075 $as_echo "## ------------------- ## 2076## File substitutions. ## 2077## ------------------- ##" 2078 echo 2079 for ac_var in $ac_subst_files 2080 do 2081 eval ac_val=\$$ac_var 2082 case $ac_val in 2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2084 esac 2085 $as_echo "$ac_var='\''$ac_val'\''" 2086 done | sort 2087 echo 2088 fi 2089 2090 if test -s confdefs.h; then 2091 $as_echo "## ----------- ## 2092## confdefs.h. ## 2093## ----------- ##" 2094 echo 2095 cat confdefs.h 2096 echo 2097 fi 2098 test "$ac_signal" != 0 && 2099 $as_echo "$as_me: caught signal $ac_signal" 2100 $as_echo "$as_me: exit $exit_status" 2101 } >&5 2102 rm -f core *.core core.conftest.* && 2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2104 exit $exit_status 2105' 0 2106for ac_signal in 1 2 13 15; do 2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2108done 2109ac_signal=0 2110 2111# confdefs.h avoids OS command line length limits that DEFS can exceed. 2112rm -f -r conftest* confdefs.h 2113 2114$as_echo "/* confdefs.h */" > confdefs.h 2115 2116# Predefined preprocessor variables. 2117 2118cat >>confdefs.h <<_ACEOF 2119#define PACKAGE_NAME "$PACKAGE_NAME" 2120_ACEOF 2121 2122cat >>confdefs.h <<_ACEOF 2123#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2124_ACEOF 2125 2126cat >>confdefs.h <<_ACEOF 2127#define PACKAGE_VERSION "$PACKAGE_VERSION" 2128_ACEOF 2129 2130cat >>confdefs.h <<_ACEOF 2131#define PACKAGE_STRING "$PACKAGE_STRING" 2132_ACEOF 2133 2134cat >>confdefs.h <<_ACEOF 2135#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2136_ACEOF 2137 2138cat >>confdefs.h <<_ACEOF 2139#define PACKAGE_URL "$PACKAGE_URL" 2140_ACEOF 2141 2142 2143# Let the site file select an alternate cache file if it wants to. 2144# Prefer an explicitly selected file to automatically selected ones. 2145ac_site_file1=NONE 2146ac_site_file2=NONE 2147if test -n "$CONFIG_SITE"; then 2148 # We do not want a PATH search for config.site. 2149 case $CONFIG_SITE in #(( 2150 -*) ac_site_file1=./$CONFIG_SITE;; 2151 */*) ac_site_file1=$CONFIG_SITE;; 2152 *) ac_site_file1=./$CONFIG_SITE;; 2153 esac 2154elif test "x$prefix" != xNONE; then 2155 ac_site_file1=$prefix/share/config.site 2156 ac_site_file2=$prefix/etc/config.site 2157else 2158 ac_site_file1=$ac_default_prefix/share/config.site 2159 ac_site_file2=$ac_default_prefix/etc/config.site 2160fi 2161for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2162do 2163 test "x$ac_site_file" = xNONE && continue 2164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2166$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2167 sed 's/^/| /' "$ac_site_file" >&5 2168 . "$ac_site_file" \ 2169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2171as_fn_error $? "failed to load site script $ac_site_file 2172See \`config.log' for more details" "$LINENO" 5; } 2173 fi 2174done 2175 2176if test -r "$cache_file"; then 2177 # Some versions of bash will fail to source /dev/null (special files 2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2181$as_echo "$as_me: loading cache $cache_file" >&6;} 2182 case $cache_file in 2183 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2184 *) . "./$cache_file";; 2185 esac 2186 fi 2187else 2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2189$as_echo "$as_me: creating cache $cache_file" >&6;} 2190 >$cache_file 2191fi 2192 2193# Check that the precious variables saved in the cache have kept the same 2194# value. 2195ac_cache_corrupted=false 2196for ac_var in $ac_precious_vars; do 2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2198 eval ac_new_set=\$ac_env_${ac_var}_set 2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2200 eval ac_new_val=\$ac_env_${ac_var}_value 2201 case $ac_old_set,$ac_new_set in 2202 set,) 2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2204$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2205 ac_cache_corrupted=: ;; 2206 ,set) 2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2208$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2209 ac_cache_corrupted=: ;; 2210 ,);; 2211 *) 2212 if test "x$ac_old_val" != "x$ac_new_val"; then 2213 # differences in whitespace do not lead to failure. 2214 ac_old_val_w=`echo x $ac_old_val` 2215 ac_new_val_w=`echo x $ac_new_val` 2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2218$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2219 ac_cache_corrupted=: 2220 else 2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2222$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2223 eval $ac_var=\$ac_old_val 2224 fi 2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2226$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2228$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2229 fi;; 2230 esac 2231 # Pass precious variables to config.status. 2232 if test "$ac_new_set" = set; then 2233 case $ac_new_val in 2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2235 *) ac_arg=$ac_var=$ac_new_val ;; 2236 esac 2237 case " $ac_configure_args " in 2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2240 esac 2241 fi 2242done 2243if $ac_cache_corrupted; then 2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2247$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2248 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2249fi 2250## -------------------- ## 2251## Main body of script. ## 2252## -------------------- ## 2253 2254ac_ext=c 2255ac_cpp='$CPP $CPPFLAGS' 2256ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2257ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2258ac_compiler_gnu=$ac_cv_c_compiler_gnu 2259 2260 2261 2262ac_config_headers="$ac_config_headers config.h" 2263 2264ac_aux_dir= 2265for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2266 if test -f "$ac_dir/install-sh"; then 2267 ac_aux_dir=$ac_dir 2268 ac_install_sh="$ac_aux_dir/install-sh -c" 2269 break 2270 elif test -f "$ac_dir/install.sh"; then 2271 ac_aux_dir=$ac_dir 2272 ac_install_sh="$ac_aux_dir/install.sh -c" 2273 break 2274 elif test -f "$ac_dir/shtool"; then 2275 ac_aux_dir=$ac_dir 2276 ac_install_sh="$ac_aux_dir/shtool install -c" 2277 break 2278 fi 2279done 2280if test -z "$ac_aux_dir"; then 2281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2282fi 2283 2284# These three variables are undocumented and unsupported, 2285# and are intended to be withdrawn in a future Autoconf release. 2286# They can cause serious problems if a builder's source tree is in a directory 2287# whose full name contains unusual characters. 2288ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2289ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2290ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2291 2292 2293# Expand $ac_aux_dir to an absolute path. 2294am_aux_dir=`cd "$ac_aux_dir" && pwd` 2295 2296ac_ext=c 2297ac_cpp='$CPP $CPPFLAGS' 2298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2300ac_compiler_gnu=$ac_cv_c_compiler_gnu 2301if test -n "$ac_tool_prefix"; then 2302 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2303set dummy ${ac_tool_prefix}gcc; ac_word=$2 2304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2305$as_echo_n "checking for $ac_word... " >&6; } 2306if ${ac_cv_prog_CC+:} false; then : 2307 $as_echo_n "(cached) " >&6 2308else 2309 if test -n "$CC"; then 2310 ac_cv_prog_CC="$CC" # Let the user override the test. 2311else 2312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2313for as_dir in $PATH 2314do 2315 IFS=$as_save_IFS 2316 test -z "$as_dir" && as_dir=. 2317 for ac_exec_ext in '' $ac_executable_extensions; do 2318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2319 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2321 break 2 2322 fi 2323done 2324 done 2325IFS=$as_save_IFS 2326 2327fi 2328fi 2329CC=$ac_cv_prog_CC 2330if test -n "$CC"; then 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2332$as_echo "$CC" >&6; } 2333else 2334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2335$as_echo "no" >&6; } 2336fi 2337 2338 2339fi 2340if test -z "$ac_cv_prog_CC"; then 2341 ac_ct_CC=$CC 2342 # Extract the first word of "gcc", so it can be a program name with args. 2343set dummy gcc; ac_word=$2 2344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2345$as_echo_n "checking for $ac_word... " >&6; } 2346if ${ac_cv_prog_ac_ct_CC+:} false; then : 2347 $as_echo_n "(cached) " >&6 2348else 2349 if test -n "$ac_ct_CC"; then 2350 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2351else 2352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2353for as_dir in $PATH 2354do 2355 IFS=$as_save_IFS 2356 test -z "$as_dir" && as_dir=. 2357 for ac_exec_ext in '' $ac_executable_extensions; do 2358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2359 ac_cv_prog_ac_ct_CC="gcc" 2360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2361 break 2 2362 fi 2363done 2364 done 2365IFS=$as_save_IFS 2366 2367fi 2368fi 2369ac_ct_CC=$ac_cv_prog_ac_ct_CC 2370if test -n "$ac_ct_CC"; then 2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2372$as_echo "$ac_ct_CC" >&6; } 2373else 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2375$as_echo "no" >&6; } 2376fi 2377 2378 if test "x$ac_ct_CC" = x; then 2379 CC="" 2380 else 2381 case $cross_compiling:$ac_tool_warned in 2382yes:) 2383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2385ac_tool_warned=yes ;; 2386esac 2387 CC=$ac_ct_CC 2388 fi 2389else 2390 CC="$ac_cv_prog_CC" 2391fi 2392 2393if test -z "$CC"; then 2394 if test -n "$ac_tool_prefix"; then 2395 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2396set dummy ${ac_tool_prefix}cc; ac_word=$2 2397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2398$as_echo_n "checking for $ac_word... " >&6; } 2399if ${ac_cv_prog_CC+:} false; then : 2400 $as_echo_n "(cached) " >&6 2401else 2402 if test -n "$CC"; then 2403 ac_cv_prog_CC="$CC" # Let the user override the test. 2404else 2405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2406for as_dir in $PATH 2407do 2408 IFS=$as_save_IFS 2409 test -z "$as_dir" && as_dir=. 2410 for ac_exec_ext in '' $ac_executable_extensions; do 2411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2412 ac_cv_prog_CC="${ac_tool_prefix}cc" 2413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2414 break 2 2415 fi 2416done 2417 done 2418IFS=$as_save_IFS 2419 2420fi 2421fi 2422CC=$ac_cv_prog_CC 2423if test -n "$CC"; then 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2425$as_echo "$CC" >&6; } 2426else 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2428$as_echo "no" >&6; } 2429fi 2430 2431 2432 fi 2433fi 2434if test -z "$CC"; then 2435 # Extract the first word of "cc", so it can be a program name with args. 2436set dummy cc; ac_word=$2 2437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2438$as_echo_n "checking for $ac_word... " >&6; } 2439if ${ac_cv_prog_CC+:} false; then : 2440 $as_echo_n "(cached) " >&6 2441else 2442 if test -n "$CC"; then 2443 ac_cv_prog_CC="$CC" # Let the user override the test. 2444else 2445 ac_prog_rejected=no 2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2447for as_dir in $PATH 2448do 2449 IFS=$as_save_IFS 2450 test -z "$as_dir" && as_dir=. 2451 for ac_exec_ext in '' $ac_executable_extensions; do 2452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2453 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2454 ac_prog_rejected=yes 2455 continue 2456 fi 2457 ac_cv_prog_CC="cc" 2458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2459 break 2 2460 fi 2461done 2462 done 2463IFS=$as_save_IFS 2464 2465if test $ac_prog_rejected = yes; then 2466 # We found a bogon in the path, so make sure we never use it. 2467 set dummy $ac_cv_prog_CC 2468 shift 2469 if test $# != 0; then 2470 # We chose a different compiler from the bogus one. 2471 # However, it has the same basename, so the bogon will be chosen 2472 # first if we set CC to just the basename; use the full file name. 2473 shift 2474 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2475 fi 2476fi 2477fi 2478fi 2479CC=$ac_cv_prog_CC 2480if test -n "$CC"; then 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2482$as_echo "$CC" >&6; } 2483else 2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2485$as_echo "no" >&6; } 2486fi 2487 2488 2489fi 2490if test -z "$CC"; then 2491 if test -n "$ac_tool_prefix"; then 2492 for ac_prog in cl.exe 2493 do 2494 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2495set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2497$as_echo_n "checking for $ac_word... " >&6; } 2498if ${ac_cv_prog_CC+:} false; then : 2499 $as_echo_n "(cached) " >&6 2500else 2501 if test -n "$CC"; then 2502 ac_cv_prog_CC="$CC" # Let the user override the test. 2503else 2504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2505for as_dir in $PATH 2506do 2507 IFS=$as_save_IFS 2508 test -z "$as_dir" && as_dir=. 2509 for ac_exec_ext in '' $ac_executable_extensions; do 2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2511 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2513 break 2 2514 fi 2515done 2516 done 2517IFS=$as_save_IFS 2518 2519fi 2520fi 2521CC=$ac_cv_prog_CC 2522if test -n "$CC"; then 2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2524$as_echo "$CC" >&6; } 2525else 2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2527$as_echo "no" >&6; } 2528fi 2529 2530 2531 test -n "$CC" && break 2532 done 2533fi 2534if test -z "$CC"; then 2535 ac_ct_CC=$CC 2536 for ac_prog in cl.exe 2537do 2538 # Extract the first word of "$ac_prog", so it can be a program name with args. 2539set dummy $ac_prog; ac_word=$2 2540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2541$as_echo_n "checking for $ac_word... " >&6; } 2542if ${ac_cv_prog_ac_ct_CC+:} false; then : 2543 $as_echo_n "(cached) " >&6 2544else 2545 if test -n "$ac_ct_CC"; then 2546 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2547else 2548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2549for as_dir in $PATH 2550do 2551 IFS=$as_save_IFS 2552 test -z "$as_dir" && as_dir=. 2553 for ac_exec_ext in '' $ac_executable_extensions; do 2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2555 ac_cv_prog_ac_ct_CC="$ac_prog" 2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2557 break 2 2558 fi 2559done 2560 done 2561IFS=$as_save_IFS 2562 2563fi 2564fi 2565ac_ct_CC=$ac_cv_prog_ac_ct_CC 2566if test -n "$ac_ct_CC"; then 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2568$as_echo "$ac_ct_CC" >&6; } 2569else 2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2571$as_echo "no" >&6; } 2572fi 2573 2574 2575 test -n "$ac_ct_CC" && break 2576done 2577 2578 if test "x$ac_ct_CC" = x; then 2579 CC="" 2580 else 2581 case $cross_compiling:$ac_tool_warned in 2582yes:) 2583{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2584$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2585ac_tool_warned=yes ;; 2586esac 2587 CC=$ac_ct_CC 2588 fi 2589fi 2590 2591fi 2592 2593 2594test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2595$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2596as_fn_error $? "no acceptable C compiler found in \$PATH 2597See \`config.log' for more details" "$LINENO" 5; } 2598 2599# Provide some information about the compiler. 2600$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2601set X $ac_compile 2602ac_compiler=$2 2603for ac_option in --version -v -V -qversion; do 2604 { { ac_try="$ac_compiler $ac_option >&5" 2605case "(($ac_try" in 2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2607 *) ac_try_echo=$ac_try;; 2608esac 2609eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2610$as_echo "$ac_try_echo"; } >&5 2611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2612 ac_status=$? 2613 if test -s conftest.err; then 2614 sed '10a\ 2615... rest of stderr output deleted ... 2616 10q' conftest.err >conftest.er1 2617 cat conftest.er1 >&5 2618 fi 2619 rm -f conftest.er1 conftest.err 2620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2621 test $ac_status = 0; } 2622done 2623 2624cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2625/* end confdefs.h. */ 2626 2627int 2628main () 2629{ 2630 2631 ; 2632 return 0; 2633} 2634_ACEOF 2635ac_clean_files_save=$ac_clean_files 2636ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2637# Try to create an executable without -o first, disregard a.out. 2638# It will help us diagnose broken compilers, and finding out an intuition 2639# of exeext. 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2641$as_echo_n "checking whether the C compiler works... " >&6; } 2642ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2643 2644# The possible output files: 2645ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2646 2647ac_rmfiles= 2648for ac_file in $ac_files 2649do 2650 case $ac_file in 2651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2652 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2653 esac 2654done 2655rm -f $ac_rmfiles 2656 2657if { { ac_try="$ac_link_default" 2658case "(($ac_try" in 2659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2660 *) ac_try_echo=$ac_try;; 2661esac 2662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2663$as_echo "$ac_try_echo"; } >&5 2664 (eval "$ac_link_default") 2>&5 2665 ac_status=$? 2666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2667 test $ac_status = 0; }; then : 2668 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2669# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2670# in a Makefile. We should not override ac_cv_exeext if it was cached, 2671# so that the user can short-circuit this test for compilers unknown to 2672# Autoconf. 2673for ac_file in $ac_files '' 2674do 2675 test -f "$ac_file" || continue 2676 case $ac_file in 2677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2678 ;; 2679 [ab].out ) 2680 # We found the default executable, but exeext='' is most 2681 # certainly right. 2682 break;; 2683 *.* ) 2684 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2685 then :; else 2686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2687 fi 2688 # We set ac_cv_exeext here because the later test for it is not 2689 # safe: cross compilers may not add the suffix if given an `-o' 2690 # argument, so we may need to know it at that point already. 2691 # Even if this section looks crufty: it has the advantage of 2692 # actually working. 2693 break;; 2694 * ) 2695 break;; 2696 esac 2697done 2698test "$ac_cv_exeext" = no && ac_cv_exeext= 2699 2700else 2701 ac_file='' 2702fi 2703if test -z "$ac_file"; then : 2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2705$as_echo "no" >&6; } 2706$as_echo "$as_me: failed program was:" >&5 2707sed 's/^/| /' conftest.$ac_ext >&5 2708 2709{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2710$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2711as_fn_error 77 "C compiler cannot create executables 2712See \`config.log' for more details" "$LINENO" 5; } 2713else 2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2715$as_echo "yes" >&6; } 2716fi 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2718$as_echo_n "checking for C compiler default output file name... " >&6; } 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2720$as_echo "$ac_file" >&6; } 2721ac_exeext=$ac_cv_exeext 2722 2723rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2724ac_clean_files=$ac_clean_files_save 2725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2726$as_echo_n "checking for suffix of executables... " >&6; } 2727if { { ac_try="$ac_link" 2728case "(($ac_try" in 2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2730 *) ac_try_echo=$ac_try;; 2731esac 2732eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2733$as_echo "$ac_try_echo"; } >&5 2734 (eval "$ac_link") 2>&5 2735 ac_status=$? 2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2737 test $ac_status = 0; }; then : 2738 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2739# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2740# work properly (i.e., refer to `conftest.exe'), while it won't with 2741# `rm'. 2742for ac_file in conftest.exe conftest conftest.*; do 2743 test -f "$ac_file" || continue 2744 case $ac_file in 2745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2747 break;; 2748 * ) break;; 2749 esac 2750done 2751else 2752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2753$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2754as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2755See \`config.log' for more details" "$LINENO" 5; } 2756fi 2757rm -f conftest conftest$ac_cv_exeext 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2759$as_echo "$ac_cv_exeext" >&6; } 2760 2761rm -f conftest.$ac_ext 2762EXEEXT=$ac_cv_exeext 2763ac_exeext=$EXEEXT 2764cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2765/* end confdefs.h. */ 2766#include <stdio.h> 2767int 2768main () 2769{ 2770FILE *f = fopen ("conftest.out", "w"); 2771 return ferror (f) || fclose (f) != 0; 2772 2773 ; 2774 return 0; 2775} 2776_ACEOF 2777ac_clean_files="$ac_clean_files conftest.out" 2778# Check that the compiler produces executables we can run. If not, either 2779# the compiler is broken, or we cross compile. 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2781$as_echo_n "checking whether we are cross compiling... " >&6; } 2782if test "$cross_compiling" != yes; then 2783 { { ac_try="$ac_link" 2784case "(($ac_try" in 2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2786 *) ac_try_echo=$ac_try;; 2787esac 2788eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2789$as_echo "$ac_try_echo"; } >&5 2790 (eval "$ac_link") 2>&5 2791 ac_status=$? 2792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2793 test $ac_status = 0; } 2794 if { ac_try='./conftest$ac_cv_exeext' 2795 { { case "(($ac_try" in 2796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2797 *) ac_try_echo=$ac_try;; 2798esac 2799eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2800$as_echo "$ac_try_echo"; } >&5 2801 (eval "$ac_try") 2>&5 2802 ac_status=$? 2803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2804 test $ac_status = 0; }; }; then 2805 cross_compiling=no 2806 else 2807 if test "$cross_compiling" = maybe; then 2808 cross_compiling=yes 2809 else 2810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2811$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2812as_fn_error $? "cannot run C compiled programs. 2813If you meant to cross compile, use \`--host'. 2814See \`config.log' for more details" "$LINENO" 5; } 2815 fi 2816 fi 2817fi 2818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2819$as_echo "$cross_compiling" >&6; } 2820 2821rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2822ac_clean_files=$ac_clean_files_save 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2824$as_echo_n "checking for suffix of object files... " >&6; } 2825if ${ac_cv_objext+:} false; then : 2826 $as_echo_n "(cached) " >&6 2827else 2828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2829/* end confdefs.h. */ 2830 2831int 2832main () 2833{ 2834 2835 ; 2836 return 0; 2837} 2838_ACEOF 2839rm -f conftest.o conftest.obj 2840if { { ac_try="$ac_compile" 2841case "(($ac_try" in 2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2843 *) ac_try_echo=$ac_try;; 2844esac 2845eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2846$as_echo "$ac_try_echo"; } >&5 2847 (eval "$ac_compile") 2>&5 2848 ac_status=$? 2849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2850 test $ac_status = 0; }; then : 2851 for ac_file in conftest.o conftest.obj conftest.*; do 2852 test -f "$ac_file" || continue; 2853 case $ac_file in 2854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2856 break;; 2857 esac 2858done 2859else 2860 $as_echo "$as_me: failed program was:" >&5 2861sed 's/^/| /' conftest.$ac_ext >&5 2862 2863{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2865as_fn_error $? "cannot compute suffix of object files: cannot compile 2866See \`config.log' for more details" "$LINENO" 5; } 2867fi 2868rm -f conftest.$ac_cv_objext conftest.$ac_ext 2869fi 2870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2871$as_echo "$ac_cv_objext" >&6; } 2872OBJEXT=$ac_cv_objext 2873ac_objext=$OBJEXT 2874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2875$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2876if ${ac_cv_c_compiler_gnu+:} false; then : 2877 $as_echo_n "(cached) " >&6 2878else 2879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2880/* end confdefs.h. */ 2881 2882int 2883main () 2884{ 2885#ifndef __GNUC__ 2886 choke me 2887#endif 2888 2889 ; 2890 return 0; 2891} 2892_ACEOF 2893if ac_fn_c_try_compile "$LINENO"; then : 2894 ac_compiler_gnu=yes 2895else 2896 ac_compiler_gnu=no 2897fi 2898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2899ac_cv_c_compiler_gnu=$ac_compiler_gnu 2900 2901fi 2902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2903$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2904if test $ac_compiler_gnu = yes; then 2905 GCC=yes 2906else 2907 GCC= 2908fi 2909ac_test_CFLAGS=${CFLAGS+set} 2910ac_save_CFLAGS=$CFLAGS 2911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2912$as_echo_n "checking whether $CC accepts -g... " >&6; } 2913if ${ac_cv_prog_cc_g+:} false; then : 2914 $as_echo_n "(cached) " >&6 2915else 2916 ac_save_c_werror_flag=$ac_c_werror_flag 2917 ac_c_werror_flag=yes 2918 ac_cv_prog_cc_g=no 2919 CFLAGS="-g" 2920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2921/* end confdefs.h. */ 2922 2923int 2924main () 2925{ 2926 2927 ; 2928 return 0; 2929} 2930_ACEOF 2931if ac_fn_c_try_compile "$LINENO"; then : 2932 ac_cv_prog_cc_g=yes 2933else 2934 CFLAGS="" 2935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2936/* end confdefs.h. */ 2937 2938int 2939main () 2940{ 2941 2942 ; 2943 return 0; 2944} 2945_ACEOF 2946if ac_fn_c_try_compile "$LINENO"; then : 2947 2948else 2949 ac_c_werror_flag=$ac_save_c_werror_flag 2950 CFLAGS="-g" 2951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2952/* end confdefs.h. */ 2953 2954int 2955main () 2956{ 2957 2958 ; 2959 return 0; 2960} 2961_ACEOF 2962if ac_fn_c_try_compile "$LINENO"; then : 2963 ac_cv_prog_cc_g=yes 2964fi 2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2966fi 2967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2968fi 2969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2970 ac_c_werror_flag=$ac_save_c_werror_flag 2971fi 2972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2973$as_echo "$ac_cv_prog_cc_g" >&6; } 2974if test "$ac_test_CFLAGS" = set; then 2975 CFLAGS=$ac_save_CFLAGS 2976elif test $ac_cv_prog_cc_g = yes; then 2977 if test "$GCC" = yes; then 2978 CFLAGS="-g -O2" 2979 else 2980 CFLAGS="-g" 2981 fi 2982else 2983 if test "$GCC" = yes; then 2984 CFLAGS="-O2" 2985 else 2986 CFLAGS= 2987 fi 2988fi 2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2990$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2991if ${ac_cv_prog_cc_c89+:} false; then : 2992 $as_echo_n "(cached) " >&6 2993else 2994 ac_cv_prog_cc_c89=no 2995ac_save_CC=$CC 2996cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2997/* end confdefs.h. */ 2998#include <stdarg.h> 2999#include <stdio.h> 3000struct stat; 3001/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3002struct buf { int x; }; 3003FILE * (*rcsopen) (struct buf *, struct stat *, int); 3004static char *e (p, i) 3005 char **p; 3006 int i; 3007{ 3008 return p[i]; 3009} 3010static char *f (char * (*g) (char **, int), char **p, ...) 3011{ 3012 char *s; 3013 va_list v; 3014 va_start (v,p); 3015 s = g (p, va_arg (v,int)); 3016 va_end (v); 3017 return s; 3018} 3019 3020/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3021 function prototypes and stuff, but not '\xHH' hex character constants. 3022 These don't provoke an error unfortunately, instead are silently treated 3023 as 'x'. The following induces an error, until -std is added to get 3024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3025 array size at least. It's necessary to write '\x00'==0 to get something 3026 that's true only with -std. */ 3027int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3028 3029/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3030 inside strings and character constants. */ 3031#define FOO(x) 'x' 3032int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3033 3034int test (int i, double x); 3035struct s1 {int (*f) (int a);}; 3036struct s2 {int (*f) (double a);}; 3037int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3038int argc; 3039char **argv; 3040int 3041main () 3042{ 3043return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3044 ; 3045 return 0; 3046} 3047_ACEOF 3048for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3050do 3051 CC="$ac_save_CC $ac_arg" 3052 if ac_fn_c_try_compile "$LINENO"; then : 3053 ac_cv_prog_cc_c89=$ac_arg 3054fi 3055rm -f core conftest.err conftest.$ac_objext 3056 test "x$ac_cv_prog_cc_c89" != "xno" && break 3057done 3058rm -f conftest.$ac_ext 3059CC=$ac_save_CC 3060 3061fi 3062# AC_CACHE_VAL 3063case "x$ac_cv_prog_cc_c89" in 3064 x) 3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3066$as_echo "none needed" >&6; } ;; 3067 xno) 3068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3069$as_echo "unsupported" >&6; } ;; 3070 *) 3071 CC="$CC $ac_cv_prog_cc_c89" 3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3073$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3074esac 3075if test "x$ac_cv_prog_cc_c89" != xno; then : 3076 3077fi 3078 3079ac_ext=c 3080ac_cpp='$CPP $CPPFLAGS' 3081ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3082ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3083ac_compiler_gnu=$ac_cv_c_compiler_gnu 3084 3085ac_ext=c 3086ac_cpp='$CPP $CPPFLAGS' 3087ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3088ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3089ac_compiler_gnu=$ac_cv_c_compiler_gnu 3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3091$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3092if ${am_cv_prog_cc_c_o+:} false; then : 3093 $as_echo_n "(cached) " >&6 3094else 3095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3096/* end confdefs.h. */ 3097 3098int 3099main () 3100{ 3101 3102 ; 3103 return 0; 3104} 3105_ACEOF 3106 # Make sure it works both with $CC and with simple cc. 3107 # Following AC_PROG_CC_C_O, we do the test twice because some 3108 # compilers refuse to overwrite an existing .o file with -o, 3109 # though they will create one. 3110 am_cv_prog_cc_c_o=yes 3111 for am_i in 1 2; do 3112 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3113 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3114 ac_status=$? 3115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3116 (exit $ac_status); } \ 3117 && test -f conftest2.$ac_objext; then 3118 : OK 3119 else 3120 am_cv_prog_cc_c_o=no 3121 break 3122 fi 3123 done 3124 rm -f core conftest* 3125 unset am_i 3126fi 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3128$as_echo "$am_cv_prog_cc_c_o" >&6; } 3129if test "$am_cv_prog_cc_c_o" != yes; then 3130 # Losing compiler, so override with the script. 3131 # FIXME: It is wrong to rewrite CC. 3132 # But if we don't then we get into trouble of one sort or another. 3133 # A longer-term fix would be to have automake use am__CC in this case, 3134 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3135 CC="$am_aux_dir/compile $CC" 3136fi 3137ac_ext=c 3138ac_cpp='$CPP $CPPFLAGS' 3139ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3140ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3141ac_compiler_gnu=$ac_cv_c_compiler_gnu 3142 3143 3144 3145ac_ext=c 3146ac_cpp='$CPP $CPPFLAGS' 3147ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3148ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3149ac_compiler_gnu=$ac_cv_c_compiler_gnu 3150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3151$as_echo_n "checking how to run the C preprocessor... " >&6; } 3152# On Suns, sometimes $CPP names a directory. 3153if test -n "$CPP" && test -d "$CPP"; then 3154 CPP= 3155fi 3156if test -z "$CPP"; then 3157 if ${ac_cv_prog_CPP+:} false; then : 3158 $as_echo_n "(cached) " >&6 3159else 3160 # Double quotes because CPP needs to be expanded 3161 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3162 do 3163 ac_preproc_ok=false 3164for ac_c_preproc_warn_flag in '' yes 3165do 3166 # Use a header file that comes with gcc, so configuring glibc 3167 # with a fresh cross-compiler works. 3168 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3169 # <limits.h> exists even on freestanding compilers. 3170 # On the NeXT, cc -E runs the code through the compiler's parser, 3171 # not just through cpp. "Syntax error" is here to catch this case. 3172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3173/* end confdefs.h. */ 3174#ifdef __STDC__ 3175# include <limits.h> 3176#else 3177# include <assert.h> 3178#endif 3179 Syntax error 3180_ACEOF 3181if ac_fn_c_try_cpp "$LINENO"; then : 3182 3183else 3184 # Broken: fails on valid input. 3185continue 3186fi 3187rm -f conftest.err conftest.i conftest.$ac_ext 3188 3189 # OK, works on sane cases. Now check whether nonexistent headers 3190 # can be detected and how. 3191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3192/* end confdefs.h. */ 3193#include <ac_nonexistent.h> 3194_ACEOF 3195if ac_fn_c_try_cpp "$LINENO"; then : 3196 # Broken: success on invalid input. 3197continue 3198else 3199 # Passes both tests. 3200ac_preproc_ok=: 3201break 3202fi 3203rm -f conftest.err conftest.i conftest.$ac_ext 3204 3205done 3206# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3207rm -f conftest.i conftest.err conftest.$ac_ext 3208if $ac_preproc_ok; then : 3209 break 3210fi 3211 3212 done 3213 ac_cv_prog_CPP=$CPP 3214 3215fi 3216 CPP=$ac_cv_prog_CPP 3217else 3218 ac_cv_prog_CPP=$CPP 3219fi 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3221$as_echo "$CPP" >&6; } 3222ac_preproc_ok=false 3223for ac_c_preproc_warn_flag in '' yes 3224do 3225 # Use a header file that comes with gcc, so configuring glibc 3226 # with a fresh cross-compiler works. 3227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3228 # <limits.h> exists even on freestanding compilers. 3229 # On the NeXT, cc -E runs the code through the compiler's parser, 3230 # not just through cpp. "Syntax error" is here to catch this case. 3231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3232/* end confdefs.h. */ 3233#ifdef __STDC__ 3234# include <limits.h> 3235#else 3236# include <assert.h> 3237#endif 3238 Syntax error 3239_ACEOF 3240if ac_fn_c_try_cpp "$LINENO"; then : 3241 3242else 3243 # Broken: fails on valid input. 3244continue 3245fi 3246rm -f conftest.err conftest.i conftest.$ac_ext 3247 3248 # OK, works on sane cases. Now check whether nonexistent headers 3249 # can be detected and how. 3250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3251/* end confdefs.h. */ 3252#include <ac_nonexistent.h> 3253_ACEOF 3254if ac_fn_c_try_cpp "$LINENO"; then : 3255 # Broken: success on invalid input. 3256continue 3257else 3258 # Passes both tests. 3259ac_preproc_ok=: 3260break 3261fi 3262rm -f conftest.err conftest.i conftest.$ac_ext 3263 3264done 3265# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3266rm -f conftest.i conftest.err conftest.$ac_ext 3267if $ac_preproc_ok; then : 3268 3269else 3270 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3271$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3272as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3273See \`config.log' for more details" "$LINENO" 5; } 3274fi 3275 3276ac_ext=c 3277ac_cpp='$CPP $CPPFLAGS' 3278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3280ac_compiler_gnu=$ac_cv_c_compiler_gnu 3281 3282 3283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3284$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3285if ${ac_cv_path_GREP+:} false; then : 3286 $as_echo_n "(cached) " >&6 3287else 3288 if test -z "$GREP"; then 3289 ac_path_GREP_found=false 3290 # Loop through the user's path and test for each of PROGNAME-LIST 3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3292for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3293do 3294 IFS=$as_save_IFS 3295 test -z "$as_dir" && as_dir=. 3296 for ac_prog in grep ggrep; do 3297 for ac_exec_ext in '' $ac_executable_extensions; do 3298 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3299 as_fn_executable_p "$ac_path_GREP" || continue 3300# Check for GNU ac_path_GREP and select it if it is found. 3301 # Check for GNU $ac_path_GREP 3302case `"$ac_path_GREP" --version 2>&1` in 3303*GNU*) 3304 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3305*) 3306 ac_count=0 3307 $as_echo_n 0123456789 >"conftest.in" 3308 while : 3309 do 3310 cat "conftest.in" "conftest.in" >"conftest.tmp" 3311 mv "conftest.tmp" "conftest.in" 3312 cp "conftest.in" "conftest.nl" 3313 $as_echo 'GREP' >> "conftest.nl" 3314 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3315 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3316 as_fn_arith $ac_count + 1 && ac_count=$as_val 3317 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3318 # Best one so far, save it but keep looking for a better one 3319 ac_cv_path_GREP="$ac_path_GREP" 3320 ac_path_GREP_max=$ac_count 3321 fi 3322 # 10*(2^10) chars as input seems more than enough 3323 test $ac_count -gt 10 && break 3324 done 3325 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3326esac 3327 3328 $ac_path_GREP_found && break 3 3329 done 3330 done 3331 done 3332IFS=$as_save_IFS 3333 if test -z "$ac_cv_path_GREP"; then 3334 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3335 fi 3336else 3337 ac_cv_path_GREP=$GREP 3338fi 3339 3340fi 3341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3342$as_echo "$ac_cv_path_GREP" >&6; } 3343 GREP="$ac_cv_path_GREP" 3344 3345 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3347$as_echo_n "checking for egrep... " >&6; } 3348if ${ac_cv_path_EGREP+:} false; then : 3349 $as_echo_n "(cached) " >&6 3350else 3351 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3352 then ac_cv_path_EGREP="$GREP -E" 3353 else 3354 if test -z "$EGREP"; then 3355 ac_path_EGREP_found=false 3356 # Loop through the user's path and test for each of PROGNAME-LIST 3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3358for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3359do 3360 IFS=$as_save_IFS 3361 test -z "$as_dir" && as_dir=. 3362 for ac_prog in egrep; do 3363 for ac_exec_ext in '' $ac_executable_extensions; do 3364 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3365 as_fn_executable_p "$ac_path_EGREP" || continue 3366# Check for GNU ac_path_EGREP and select it if it is found. 3367 # Check for GNU $ac_path_EGREP 3368case `"$ac_path_EGREP" --version 2>&1` in 3369*GNU*) 3370 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3371*) 3372 ac_count=0 3373 $as_echo_n 0123456789 >"conftest.in" 3374 while : 3375 do 3376 cat "conftest.in" "conftest.in" >"conftest.tmp" 3377 mv "conftest.tmp" "conftest.in" 3378 cp "conftest.in" "conftest.nl" 3379 $as_echo 'EGREP' >> "conftest.nl" 3380 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3381 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3382 as_fn_arith $ac_count + 1 && ac_count=$as_val 3383 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3384 # Best one so far, save it but keep looking for a better one 3385 ac_cv_path_EGREP="$ac_path_EGREP" 3386 ac_path_EGREP_max=$ac_count 3387 fi 3388 # 10*(2^10) chars as input seems more than enough 3389 test $ac_count -gt 10 && break 3390 done 3391 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3392esac 3393 3394 $ac_path_EGREP_found && break 3 3395 done 3396 done 3397 done 3398IFS=$as_save_IFS 3399 if test -z "$ac_cv_path_EGREP"; then 3400 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3401 fi 3402else 3403 ac_cv_path_EGREP=$EGREP 3404fi 3405 3406 fi 3407fi 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3409$as_echo "$ac_cv_path_EGREP" >&6; } 3410 EGREP="$ac_cv_path_EGREP" 3411 3412 3413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3414$as_echo_n "checking for ANSI C header files... " >&6; } 3415if ${ac_cv_header_stdc+:} false; then : 3416 $as_echo_n "(cached) " >&6 3417else 3418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3419/* end confdefs.h. */ 3420#include <stdlib.h> 3421#include <stdarg.h> 3422#include <string.h> 3423#include <float.h> 3424 3425int 3426main () 3427{ 3428 3429 ; 3430 return 0; 3431} 3432_ACEOF 3433if ac_fn_c_try_compile "$LINENO"; then : 3434 ac_cv_header_stdc=yes 3435else 3436 ac_cv_header_stdc=no 3437fi 3438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3439 3440if test $ac_cv_header_stdc = yes; then 3441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3443/* end confdefs.h. */ 3444#include <string.h> 3445 3446_ACEOF 3447if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3448 $EGREP "memchr" >/dev/null 2>&1; then : 3449 3450else 3451 ac_cv_header_stdc=no 3452fi 3453rm -f conftest* 3454 3455fi 3456 3457if test $ac_cv_header_stdc = yes; then 3458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460/* end confdefs.h. */ 3461#include <stdlib.h> 3462 3463_ACEOF 3464if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3465 $EGREP "free" >/dev/null 2>&1; then : 3466 3467else 3468 ac_cv_header_stdc=no 3469fi 3470rm -f conftest* 3471 3472fi 3473 3474if test $ac_cv_header_stdc = yes; then 3475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3476 if test "$cross_compiling" = yes; then : 3477 : 3478else 3479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3480/* end confdefs.h. */ 3481#include <ctype.h> 3482#include <stdlib.h> 3483#if ((' ' & 0x0FF) == 0x020) 3484# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3485# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3486#else 3487# define ISLOWER(c) \ 3488 (('a' <= (c) && (c) <= 'i') \ 3489 || ('j' <= (c) && (c) <= 'r') \ 3490 || ('s' <= (c) && (c) <= 'z')) 3491# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3492#endif 3493 3494#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3495int 3496main () 3497{ 3498 int i; 3499 for (i = 0; i < 256; i++) 3500 if (XOR (islower (i), ISLOWER (i)) 3501 || toupper (i) != TOUPPER (i)) 3502 return 2; 3503 return 0; 3504} 3505_ACEOF 3506if ac_fn_c_try_run "$LINENO"; then : 3507 3508else 3509 ac_cv_header_stdc=no 3510fi 3511rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3512 conftest.$ac_objext conftest.beam conftest.$ac_ext 3513fi 3514 3515fi 3516fi 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3518$as_echo "$ac_cv_header_stdc" >&6; } 3519if test $ac_cv_header_stdc = yes; then 3520 3521$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3522 3523fi 3524 3525# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3526for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3527 inttypes.h stdint.h unistd.h 3528do : 3529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3530ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3531" 3532if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3533 cat >>confdefs.h <<_ACEOF 3534#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3535_ACEOF 3536 3537fi 3538 3539done 3540 3541 3542 3543 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3544if test "x$ac_cv_header_minix_config_h" = xyes; then : 3545 MINIX=yes 3546else 3547 MINIX= 3548fi 3549 3550 3551 if test "$MINIX" = yes; then 3552 3553$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3554 3555 3556$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3557 3558 3559$as_echo "#define _MINIX 1" >>confdefs.h 3560 3561 fi 3562 3563 3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3565$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3566if ${ac_cv_safe_to_define___extensions__+:} false; then : 3567 $as_echo_n "(cached) " >&6 3568else 3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3570/* end confdefs.h. */ 3571 3572# define __EXTENSIONS__ 1 3573 $ac_includes_default 3574int 3575main () 3576{ 3577 3578 ; 3579 return 0; 3580} 3581_ACEOF 3582if ac_fn_c_try_compile "$LINENO"; then : 3583 ac_cv_safe_to_define___extensions__=yes 3584else 3585 ac_cv_safe_to_define___extensions__=no 3586fi 3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3588fi 3589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3590$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3591 test $ac_cv_safe_to_define___extensions__ = yes && 3592 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3593 3594 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3595 3596 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3597 3598 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3599 3600 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3601 3602 3603 3604# Initialize Automake 3605am__api_version='1.15' 3606 3607# Find a good install program. We prefer a C program (faster), 3608# so one script is as good as another. But avoid the broken or 3609# incompatible versions: 3610# SysV /etc/install, /usr/sbin/install 3611# SunOS /usr/etc/install 3612# IRIX /sbin/install 3613# AIX /bin/install 3614# AmigaOS /C/install, which installs bootblocks on floppy discs 3615# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3616# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3617# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3618# OS/2's system install, which has a completely different semantic 3619# ./install, which can be erroneously created by make from ./install.sh. 3620# Reject install programs that cannot install multiple files. 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3622$as_echo_n "checking for a BSD-compatible install... " >&6; } 3623if test -z "$INSTALL"; then 3624if ${ac_cv_path_install+:} false; then : 3625 $as_echo_n "(cached) " >&6 3626else 3627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3628for as_dir in $PATH 3629do 3630 IFS=$as_save_IFS 3631 test -z "$as_dir" && as_dir=. 3632 # Account for people who put trailing slashes in PATH elements. 3633case $as_dir/ in #(( 3634 ./ | .// | /[cC]/* | \ 3635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3636 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3637 /usr/ucb/* ) ;; 3638 *) 3639 # OSF1 and SCO ODT 3.0 have their own names for install. 3640 # Don't use installbsd from OSF since it installs stuff as root 3641 # by default. 3642 for ac_prog in ginstall scoinst install; do 3643 for ac_exec_ext in '' $ac_executable_extensions; do 3644 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3645 if test $ac_prog = install && 3646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3647 # AIX install. It has an incompatible calling convention. 3648 : 3649 elif test $ac_prog = install && 3650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3651 # program-specific install script used by HP pwplus--don't use. 3652 : 3653 else 3654 rm -rf conftest.one conftest.two conftest.dir 3655 echo one > conftest.one 3656 echo two > conftest.two 3657 mkdir conftest.dir 3658 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3659 test -s conftest.one && test -s conftest.two && 3660 test -s conftest.dir/conftest.one && 3661 test -s conftest.dir/conftest.two 3662 then 3663 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3664 break 3 3665 fi 3666 fi 3667 fi 3668 done 3669 done 3670 ;; 3671esac 3672 3673 done 3674IFS=$as_save_IFS 3675 3676rm -rf conftest.one conftest.two conftest.dir 3677 3678fi 3679 if test "${ac_cv_path_install+set}" = set; then 3680 INSTALL=$ac_cv_path_install 3681 else 3682 # As a last resort, use the slow shell script. Don't cache a 3683 # value for INSTALL within a source directory, because that will 3684 # break other packages using the cache if that directory is 3685 # removed, or if the value is a relative name. 3686 INSTALL=$ac_install_sh 3687 fi 3688fi 3689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3690$as_echo "$INSTALL" >&6; } 3691 3692# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3693# It thinks the first close brace ends the variable substitution. 3694test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3695 3696test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3697 3698test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3699 3700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3701$as_echo_n "checking whether build environment is sane... " >&6; } 3702# Reject unsafe characters in $srcdir or the absolute working directory 3703# name. Accept space and tab only in the latter. 3704am_lf=' 3705' 3706case `pwd` in 3707 *[\\\"\#\$\&\'\`$am_lf]*) 3708 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3709esac 3710case $srcdir in 3711 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3712 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3713esac 3714 3715# Do 'set' in a subshell so we don't clobber the current shell's 3716# arguments. Must try -L first in case configure is actually a 3717# symlink; some systems play weird games with the mod time of symlinks 3718# (eg FreeBSD returns the mod time of the symlink's containing 3719# directory). 3720if ( 3721 am_has_slept=no 3722 for am_try in 1 2; do 3723 echo "timestamp, slept: $am_has_slept" > conftest.file 3724 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3725 if test "$*" = "X"; then 3726 # -L didn't work. 3727 set X `ls -t "$srcdir/configure" conftest.file` 3728 fi 3729 if test "$*" != "X $srcdir/configure conftest.file" \ 3730 && test "$*" != "X conftest.file $srcdir/configure"; then 3731 3732 # If neither matched, then we have a broken ls. This can happen 3733 # if, for instance, CONFIG_SHELL is bash and it inherits a 3734 # broken ls alias from the environment. This has actually 3735 # happened. Such a system could not be considered "sane". 3736 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3737 alias in your environment" "$LINENO" 5 3738 fi 3739 if test "$2" = conftest.file || test $am_try -eq 2; then 3740 break 3741 fi 3742 # Just in case. 3743 sleep 1 3744 am_has_slept=yes 3745 done 3746 test "$2" = conftest.file 3747 ) 3748then 3749 # Ok. 3750 : 3751else 3752 as_fn_error $? "newly created file is older than distributed files! 3753Check your system clock" "$LINENO" 5 3754fi 3755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3756$as_echo "yes" >&6; } 3757# If we didn't sleep, we still need to ensure time stamps of config.status and 3758# generated files are strictly newer. 3759am_sleep_pid= 3760if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3761 ( sleep 1 ) & 3762 am_sleep_pid=$! 3763fi 3764 3765rm -f conftest.file 3766 3767test "$program_prefix" != NONE && 3768 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3769# Use a double $ so make ignores it. 3770test "$program_suffix" != NONE && 3771 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3772# Double any \ or $. 3773# By default was `s,x,x', remove it if useless. 3774ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3775program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3776 3777if test x"${MISSING+set}" != xset; then 3778 case $am_aux_dir in 3779 *\ * | *\ *) 3780 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3781 *) 3782 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3783 esac 3784fi 3785# Use eval to expand $SHELL 3786if eval "$MISSING --is-lightweight"; then 3787 am_missing_run="$MISSING " 3788else 3789 am_missing_run= 3790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3791$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3792fi 3793 3794if test x"${install_sh+set}" != xset; then 3795 case $am_aux_dir in 3796 *\ * | *\ *) 3797 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3798 *) 3799 install_sh="\${SHELL} $am_aux_dir/install-sh" 3800 esac 3801fi 3802 3803# Installed binaries are usually stripped using 'strip' when the user 3804# run "make install-strip". However 'strip' might not be the right 3805# tool to use in cross-compilation environments, therefore Automake 3806# will honor the 'STRIP' environment variable to overrule this program. 3807if test "$cross_compiling" != no; then 3808 if test -n "$ac_tool_prefix"; then 3809 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3810set dummy ${ac_tool_prefix}strip; ac_word=$2 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3812$as_echo_n "checking for $ac_word... " >&6; } 3813if ${ac_cv_prog_STRIP+:} false; then : 3814 $as_echo_n "(cached) " >&6 3815else 3816 if test -n "$STRIP"; then 3817 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3818else 3819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3820for as_dir in $PATH 3821do 3822 IFS=$as_save_IFS 3823 test -z "$as_dir" && as_dir=. 3824 for ac_exec_ext in '' $ac_executable_extensions; do 3825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3826 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3828 break 2 3829 fi 3830done 3831 done 3832IFS=$as_save_IFS 3833 3834fi 3835fi 3836STRIP=$ac_cv_prog_STRIP 3837if test -n "$STRIP"; then 3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3839$as_echo "$STRIP" >&6; } 3840else 3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3842$as_echo "no" >&6; } 3843fi 3844 3845 3846fi 3847if test -z "$ac_cv_prog_STRIP"; then 3848 ac_ct_STRIP=$STRIP 3849 # Extract the first word of "strip", so it can be a program name with args. 3850set dummy strip; ac_word=$2 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3852$as_echo_n "checking for $ac_word... " >&6; } 3853if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3854 $as_echo_n "(cached) " >&6 3855else 3856 if test -n "$ac_ct_STRIP"; then 3857 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3858else 3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3860for as_dir in $PATH 3861do 3862 IFS=$as_save_IFS 3863 test -z "$as_dir" && as_dir=. 3864 for ac_exec_ext in '' $ac_executable_extensions; do 3865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3866 ac_cv_prog_ac_ct_STRIP="strip" 3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3868 break 2 3869 fi 3870done 3871 done 3872IFS=$as_save_IFS 3873 3874fi 3875fi 3876ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3877if test -n "$ac_ct_STRIP"; then 3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3879$as_echo "$ac_ct_STRIP" >&6; } 3880else 3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3882$as_echo "no" >&6; } 3883fi 3884 3885 if test "x$ac_ct_STRIP" = x; then 3886 STRIP=":" 3887 else 3888 case $cross_compiling:$ac_tool_warned in 3889yes:) 3890{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3891$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3892ac_tool_warned=yes ;; 3893esac 3894 STRIP=$ac_ct_STRIP 3895 fi 3896else 3897 STRIP="$ac_cv_prog_STRIP" 3898fi 3899 3900fi 3901INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3902 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3904$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3905if test -z "$MKDIR_P"; then 3906 if ${ac_cv_path_mkdir+:} false; then : 3907 $as_echo_n "(cached) " >&6 3908else 3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3910for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3911do 3912 IFS=$as_save_IFS 3913 test -z "$as_dir" && as_dir=. 3914 for ac_prog in mkdir gmkdir; do 3915 for ac_exec_ext in '' $ac_executable_extensions; do 3916 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3917 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3918 'mkdir (GNU coreutils) '* | \ 3919 'mkdir (coreutils) '* | \ 3920 'mkdir (fileutils) '4.1*) 3921 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3922 break 3;; 3923 esac 3924 done 3925 done 3926 done 3927IFS=$as_save_IFS 3928 3929fi 3930 3931 test -d ./--version && rmdir ./--version 3932 if test "${ac_cv_path_mkdir+set}" = set; then 3933 MKDIR_P="$ac_cv_path_mkdir -p" 3934 else 3935 # As a last resort, use the slow shell script. Don't cache a 3936 # value for MKDIR_P within a source directory, because that will 3937 # break other packages using the cache if that directory is 3938 # removed, or if the value is a relative name. 3939 MKDIR_P="$ac_install_sh -d" 3940 fi 3941fi 3942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3943$as_echo "$MKDIR_P" >&6; } 3944 3945for ac_prog in gawk mawk nawk awk 3946do 3947 # Extract the first word of "$ac_prog", so it can be a program name with args. 3948set dummy $ac_prog; ac_word=$2 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3950$as_echo_n "checking for $ac_word... " >&6; } 3951if ${ac_cv_prog_AWK+:} false; then : 3952 $as_echo_n "(cached) " >&6 3953else 3954 if test -n "$AWK"; then 3955 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3956else 3957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3958for as_dir in $PATH 3959do 3960 IFS=$as_save_IFS 3961 test -z "$as_dir" && as_dir=. 3962 for ac_exec_ext in '' $ac_executable_extensions; do 3963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3964 ac_cv_prog_AWK="$ac_prog" 3965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3966 break 2 3967 fi 3968done 3969 done 3970IFS=$as_save_IFS 3971 3972fi 3973fi 3974AWK=$ac_cv_prog_AWK 3975if test -n "$AWK"; then 3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3977$as_echo "$AWK" >&6; } 3978else 3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3980$as_echo "no" >&6; } 3981fi 3982 3983 3984 test -n "$AWK" && break 3985done 3986 3987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3988$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3989set x ${MAKE-make} 3990ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3991if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3992 $as_echo_n "(cached) " >&6 3993else 3994 cat >conftest.make <<\_ACEOF 3995SHELL = /bin/sh 3996all: 3997 @echo '@@@%%%=$(MAKE)=@@@%%%' 3998_ACEOF 3999# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 4000case `${MAKE-make} -f conftest.make 2>/dev/null` in 4001 *@@@%%%=?*=@@@%%%*) 4002 eval ac_cv_prog_make_${ac_make}_set=yes;; 4003 *) 4004 eval ac_cv_prog_make_${ac_make}_set=no;; 4005esac 4006rm -f conftest.make 4007fi 4008if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4010$as_echo "yes" >&6; } 4011 SET_MAKE= 4012else 4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4014$as_echo "no" >&6; } 4015 SET_MAKE="MAKE=${MAKE-make}" 4016fi 4017 4018rm -rf .tst 2>/dev/null 4019mkdir .tst 2>/dev/null 4020if test -d .tst; then 4021 am__leading_dot=. 4022else 4023 am__leading_dot=_ 4024fi 4025rmdir .tst 2>/dev/null 4026 4027DEPDIR="${am__leading_dot}deps" 4028 4029ac_config_commands="$ac_config_commands depfiles" 4030 4031 4032am_make=${MAKE-make} 4033cat > confinc << 'END' 4034am__doit: 4035 @echo this is the am__doit target 4036.PHONY: am__doit 4037END 4038# If we don't find an include directive, just comment out the code. 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4040$as_echo_n "checking for style of include used by $am_make... " >&6; } 4041am__include="#" 4042am__quote= 4043_am_result=none 4044# First try GNU make style include. 4045echo "include confinc" > confmf 4046# Ignore all kinds of additional output from 'make'. 4047case `$am_make -s -f confmf 2> /dev/null` in #( 4048*the\ am__doit\ target*) 4049 am__include=include 4050 am__quote= 4051 _am_result=GNU 4052 ;; 4053esac 4054# Now try BSD make style include. 4055if test "$am__include" = "#"; then 4056 echo '.include "confinc"' > confmf 4057 case `$am_make -s -f confmf 2> /dev/null` in #( 4058 *the\ am__doit\ target*) 4059 am__include=.include 4060 am__quote="\"" 4061 _am_result=BSD 4062 ;; 4063 esac 4064fi 4065 4066 4067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4068$as_echo "$_am_result" >&6; } 4069rm -f confinc confmf 4070 4071# Check whether --enable-dependency-tracking was given. 4072if test "${enable_dependency_tracking+set}" = set; then : 4073 enableval=$enable_dependency_tracking; 4074fi 4075 4076if test "x$enable_dependency_tracking" != xno; then 4077 am_depcomp="$ac_aux_dir/depcomp" 4078 AMDEPBACKSLASH='\' 4079 am__nodep='_no' 4080fi 4081 if test "x$enable_dependency_tracking" != xno; then 4082 AMDEP_TRUE= 4083 AMDEP_FALSE='#' 4084else 4085 AMDEP_TRUE='#' 4086 AMDEP_FALSE= 4087fi 4088 4089 4090# Check whether --enable-silent-rules was given. 4091if test "${enable_silent_rules+set}" = set; then : 4092 enableval=$enable_silent_rules; 4093fi 4094 4095case $enable_silent_rules in # ((( 4096 yes) AM_DEFAULT_VERBOSITY=0;; 4097 no) AM_DEFAULT_VERBOSITY=1;; 4098 *) AM_DEFAULT_VERBOSITY=1;; 4099esac 4100am_make=${MAKE-make} 4101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4102$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4103if ${am_cv_make_support_nested_variables+:} false; then : 4104 $as_echo_n "(cached) " >&6 4105else 4106 if $as_echo 'TRUE=$(BAR$(V)) 4107BAR0=false 4108BAR1=true 4109V=1 4110am__doit: 4111 @$(TRUE) 4112.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4113 am_cv_make_support_nested_variables=yes 4114else 4115 am_cv_make_support_nested_variables=no 4116fi 4117fi 4118{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4119$as_echo "$am_cv_make_support_nested_variables" >&6; } 4120if test $am_cv_make_support_nested_variables = yes; then 4121 AM_V='$(V)' 4122 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4123else 4124 AM_V=$AM_DEFAULT_VERBOSITY 4125 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4126fi 4127AM_BACKSLASH='\' 4128 4129if test "`cd $srcdir && pwd`" != "`pwd`"; then 4130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4131 # is not polluted with repeated "-I." 4132 am__isrc=' -I$(srcdir)' 4133 # test to see if srcdir already configured 4134 if test -f $srcdir/config.status; then 4135 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4136 fi 4137fi 4138 4139# test whether we have cygpath 4140if test -z "$CYGPATH_W"; then 4141 if (cygpath --version) >/dev/null 2>/dev/null; then 4142 CYGPATH_W='cygpath -w' 4143 else 4144 CYGPATH_W=echo 4145 fi 4146fi 4147 4148 4149# Define the identity of the package. 4150 PACKAGE='twm' 4151 VERSION='1.0.10' 4152 4153 4154cat >>confdefs.h <<_ACEOF 4155#define PACKAGE "$PACKAGE" 4156_ACEOF 4157 4158 4159cat >>confdefs.h <<_ACEOF 4160#define VERSION "$VERSION" 4161_ACEOF 4162 4163# Some tools Automake needs. 4164 4165ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4166 4167 4168AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4169 4170 4171AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4172 4173 4174AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4175 4176 4177MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4178 4179# For better backward compatibility. To be removed once Automake 1.9.x 4180# dies out for good. For more background, see: 4181# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4182# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4183mkdir_p='$(MKDIR_P)' 4184 4185# We need awk for the "check" target (and possibly the TAP driver). The 4186# system "awk" is bad on some platforms. 4187# Always define AMTAR for backward compatibility. Yes, it's still used 4188# in the wild :-( We should find a proper way to deprecate it ... 4189AMTAR='$${TAR-tar}' 4190 4191 4192# We'll loop over all known methods to create a tar archive until one works. 4193_am_tools='gnutar pax cpio none' 4194 4195am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4196 4197 4198 4199 4200 4201depcc="$CC" am_compiler_list= 4202 4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4204$as_echo_n "checking dependency style of $depcc... " >&6; } 4205if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4206 $as_echo_n "(cached) " >&6 4207else 4208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4209 # We make a subdir and do the tests there. Otherwise we can end up 4210 # making bogus files that we don't know about and never remove. For 4211 # instance it was reported that on HP-UX the gcc test will end up 4212 # making a dummy file named 'D' -- because '-MD' means "put the output 4213 # in D". 4214 rm -rf conftest.dir 4215 mkdir conftest.dir 4216 # Copy depcomp to subdir because otherwise we won't find it if we're 4217 # using a relative directory. 4218 cp "$am_depcomp" conftest.dir 4219 cd conftest.dir 4220 # We will build objects and dependencies in a subdirectory because 4221 # it helps to detect inapplicable dependency modes. For instance 4222 # both Tru64's cc and ICC support -MD to output dependencies as a 4223 # side effect of compilation, but ICC will put the dependencies in 4224 # the current directory while Tru64 will put them in the object 4225 # directory. 4226 mkdir sub 4227 4228 am_cv_CC_dependencies_compiler_type=none 4229 if test "$am_compiler_list" = ""; then 4230 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4231 fi 4232 am__universal=false 4233 case " $depcc " in #( 4234 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4235 esac 4236 4237 for depmode in $am_compiler_list; do 4238 # Setup a source with many dependencies, because some compilers 4239 # like to wrap large dependency lists on column 80 (with \), and 4240 # we should not choose a depcomp mode which is confused by this. 4241 # 4242 # We need to recreate these files for each test, as the compiler may 4243 # overwrite some of them when testing with obscure command lines. 4244 # This happens at least with the AIX C compiler. 4245 : > sub/conftest.c 4246 for i in 1 2 3 4 5 6; do 4247 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4248 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4249 # Solaris 10 /bin/sh. 4250 echo '/* dummy */' > sub/conftst$i.h 4251 done 4252 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4253 4254 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4255 # mode. It turns out that the SunPro C++ compiler does not properly 4256 # handle '-M -o', and we need to detect this. Also, some Intel 4257 # versions had trouble with output in subdirs. 4258 am__obj=sub/conftest.${OBJEXT-o} 4259 am__minus_obj="-o $am__obj" 4260 case $depmode in 4261 gcc) 4262 # This depmode causes a compiler race in universal mode. 4263 test "$am__universal" = false || continue 4264 ;; 4265 nosideeffect) 4266 # After this tag, mechanisms are not by side-effect, so they'll 4267 # only be used when explicitly requested. 4268 if test "x$enable_dependency_tracking" = xyes; then 4269 continue 4270 else 4271 break 4272 fi 4273 ;; 4274 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4275 # This compiler won't grok '-c -o', but also, the minuso test has 4276 # not run yet. These depmodes are late enough in the game, and 4277 # so weak that their functioning should not be impacted. 4278 am__obj=conftest.${OBJEXT-o} 4279 am__minus_obj= 4280 ;; 4281 none) break ;; 4282 esac 4283 if depmode=$depmode \ 4284 source=sub/conftest.c object=$am__obj \ 4285 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4286 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4287 >/dev/null 2>conftest.err && 4288 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4289 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4290 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4291 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4292 # icc doesn't choke on unknown options, it will just issue warnings 4293 # or remarks (even with -Werror). So we grep stderr for any message 4294 # that says an option was ignored or not supported. 4295 # When given -MP, icc 7.0 and 7.1 complain thusly: 4296 # icc: Command line warning: ignoring option '-M'; no argument required 4297 # The diagnosis changed in icc 8.0: 4298 # icc: Command line remark: option '-MP' not supported 4299 if (grep 'ignoring option' conftest.err || 4300 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4301 am_cv_CC_dependencies_compiler_type=$depmode 4302 break 4303 fi 4304 fi 4305 done 4306 4307 cd .. 4308 rm -rf conftest.dir 4309else 4310 am_cv_CC_dependencies_compiler_type=none 4311fi 4312 4313fi 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4315$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4316CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4317 4318 if 4319 test "x$enable_dependency_tracking" != xno \ 4320 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4321 am__fastdepCC_TRUE= 4322 am__fastdepCC_FALSE='#' 4323else 4324 am__fastdepCC_TRUE='#' 4325 am__fastdepCC_FALSE= 4326fi 4327 4328 4329 4330# POSIX will say in a future version that running "rm -f" with no argument 4331# is OK; and we want to be able to make that assumption in our Makefile 4332# recipes. So use an aggressive probe to check that the usage we want is 4333# actually supported "in the wild" to an acceptable degree. 4334# See automake bug#10828. 4335# To make any issue more visible, cause the running configure to be aborted 4336# by default if the 'rm' program in use doesn't match our expectations; the 4337# user can still override this though. 4338if rm -f && rm -fr && rm -rf; then : OK; else 4339 cat >&2 <<'END' 4340Oops! 4341 4342Your 'rm' program seems unable to run without file operands specified 4343on the command line, even when the '-f' option is present. This is contrary 4344to the behaviour of most rm programs out there, and not conforming with 4345the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4346 4347Please tell bug-automake@gnu.org about your system, including the value 4348of your $PATH and any error possibly output before this message. This 4349can help us improve future automake versions. 4350 4351END 4352 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4353 echo 'Configuration will proceed anyway, since you have set the' >&2 4354 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4355 echo >&2 4356 else 4357 cat >&2 <<'END' 4358Aborting the configuration process, to ensure you take notice of the issue. 4359 4360You can download and install GNU coreutils to get an 'rm' implementation 4361that behaves properly: <http://www.gnu.org/software/coreutils/>. 4362 4363If you want to complete the configuration process using your problematic 4364'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4365to "yes", and re-run configure. 4366 4367END 4368 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4369 fi 4370fi 4371 4372 4373# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4386$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4387if ${ac_cv_prog_cc_c99+:} false; then : 4388 $as_echo_n "(cached) " >&6 4389else 4390 ac_cv_prog_cc_c99=no 4391ac_save_CC=$CC 4392cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4393/* end confdefs.h. */ 4394#include <stdarg.h> 4395#include <stdbool.h> 4396#include <stdlib.h> 4397#include <wchar.h> 4398#include <stdio.h> 4399 4400// Check varargs macros. These examples are taken from C99 6.10.3.5. 4401#define debug(...) fprintf (stderr, __VA_ARGS__) 4402#define showlist(...) puts (#__VA_ARGS__) 4403#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4404static void 4405test_varargs_macros (void) 4406{ 4407 int x = 1234; 4408 int y = 5678; 4409 debug ("Flag"); 4410 debug ("X = %d\n", x); 4411 showlist (The first, second, and third items.); 4412 report (x>y, "x is %d but y is %d", x, y); 4413} 4414 4415// Check long long types. 4416#define BIG64 18446744073709551615ull 4417#define BIG32 4294967295ul 4418#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4419#if !BIG_OK 4420 your preprocessor is broken; 4421#endif 4422#if BIG_OK 4423#else 4424 your preprocessor is broken; 4425#endif 4426static long long int bignum = -9223372036854775807LL; 4427static unsigned long long int ubignum = BIG64; 4428 4429struct incomplete_array 4430{ 4431 int datasize; 4432 double data[]; 4433}; 4434 4435struct named_init { 4436 int number; 4437 const wchar_t *name; 4438 double average; 4439}; 4440 4441typedef const char *ccp; 4442 4443static inline int 4444test_restrict (ccp restrict text) 4445{ 4446 // See if C++-style comments work. 4447 // Iterate through items via the restricted pointer. 4448 // Also check for declarations in for loops. 4449 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4450 continue; 4451 return 0; 4452} 4453 4454// Check varargs and va_copy. 4455static void 4456test_varargs (const char *format, ...) 4457{ 4458 va_list args; 4459 va_start (args, format); 4460 va_list args_copy; 4461 va_copy (args_copy, args); 4462 4463 const char *str; 4464 int number; 4465 float fnumber; 4466 4467 while (*format) 4468 { 4469 switch (*format++) 4470 { 4471 case 's': // string 4472 str = va_arg (args_copy, const char *); 4473 break; 4474 case 'd': // int 4475 number = va_arg (args_copy, int); 4476 break; 4477 case 'f': // float 4478 fnumber = va_arg (args_copy, double); 4479 break; 4480 default: 4481 break; 4482 } 4483 } 4484 va_end (args_copy); 4485 va_end (args); 4486} 4487 4488int 4489main () 4490{ 4491 4492 // Check bool. 4493 _Bool success = false; 4494 4495 // Check restrict. 4496 if (test_restrict ("String literal") == 0) 4497 success = true; 4498 char *restrict newvar = "Another string"; 4499 4500 // Check varargs. 4501 test_varargs ("s, d' f .", "string", 65, 34.234); 4502 test_varargs_macros (); 4503 4504 // Check flexible array members. 4505 struct incomplete_array *ia = 4506 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4507 ia->datasize = 10; 4508 for (int i = 0; i < ia->datasize; ++i) 4509 ia->data[i] = i * 1.234; 4510 4511 // Check named initializers. 4512 struct named_init ni = { 4513 .number = 34, 4514 .name = L"Test wide string", 4515 .average = 543.34343, 4516 }; 4517 4518 ni.number = 58; 4519 4520 int dynamic_array[ni.number]; 4521 dynamic_array[ni.number - 1] = 543; 4522 4523 // work around unused variable warnings 4524 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4525 || dynamic_array[ni.number - 1] != 543); 4526 4527 ; 4528 return 0; 4529} 4530_ACEOF 4531for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4532do 4533 CC="$ac_save_CC $ac_arg" 4534 if ac_fn_c_try_compile "$LINENO"; then : 4535 ac_cv_prog_cc_c99=$ac_arg 4536fi 4537rm -f core conftest.err conftest.$ac_objext 4538 test "x$ac_cv_prog_cc_c99" != "xno" && break 4539done 4540rm -f conftest.$ac_ext 4541CC=$ac_save_CC 4542 4543fi 4544# AC_CACHE_VAL 4545case "x$ac_cv_prog_cc_c99" in 4546 x) 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4548$as_echo "none needed" >&6; } ;; 4549 xno) 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4551$as_echo "unsupported" >&6; } ;; 4552 *) 4553 CC="$CC $ac_cv_prog_cc_c99" 4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4555$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4556esac 4557if test "x$ac_cv_prog_cc_c99" != xno; then : 4558 4559fi 4560 4561 4562 4563 4564 4565 4566ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4567if test "x$ac_cv_have_decl___clang__" = xyes; then : 4568 CLANGCC="yes" 4569else 4570 CLANGCC="no" 4571fi 4572 4573ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4574if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4575 INTELCC="yes" 4576else 4577 INTELCC="no" 4578fi 4579 4580ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4581if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4582 SUNCC="yes" 4583else 4584 SUNCC="no" 4585fi 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4596 if test -n "$ac_tool_prefix"; then 4597 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4598set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4600$as_echo_n "checking for $ac_word... " >&6; } 4601if ${ac_cv_path_PKG_CONFIG+:} false; then : 4602 $as_echo_n "(cached) " >&6 4603else 4604 case $PKG_CONFIG in 4605 [\\/]* | ?:[\\/]*) 4606 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4607 ;; 4608 *) 4609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4610for as_dir in $PATH 4611do 4612 IFS=$as_save_IFS 4613 test -z "$as_dir" && as_dir=. 4614 for ac_exec_ext in '' $ac_executable_extensions; do 4615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4616 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4618 break 2 4619 fi 4620done 4621 done 4622IFS=$as_save_IFS 4623 4624 ;; 4625esac 4626fi 4627PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4628if test -n "$PKG_CONFIG"; then 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4630$as_echo "$PKG_CONFIG" >&6; } 4631else 4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4633$as_echo "no" >&6; } 4634fi 4635 4636 4637fi 4638if test -z "$ac_cv_path_PKG_CONFIG"; then 4639 ac_pt_PKG_CONFIG=$PKG_CONFIG 4640 # Extract the first word of "pkg-config", so it can be a program name with args. 4641set dummy pkg-config; ac_word=$2 4642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4643$as_echo_n "checking for $ac_word... " >&6; } 4644if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4645 $as_echo_n "(cached) " >&6 4646else 4647 case $ac_pt_PKG_CONFIG in 4648 [\\/]* | ?:[\\/]*) 4649 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4650 ;; 4651 *) 4652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4653for as_dir in $PATH 4654do 4655 IFS=$as_save_IFS 4656 test -z "$as_dir" && as_dir=. 4657 for ac_exec_ext in '' $ac_executable_extensions; do 4658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4659 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4661 break 2 4662 fi 4663done 4664 done 4665IFS=$as_save_IFS 4666 4667 ;; 4668esac 4669fi 4670ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4671if test -n "$ac_pt_PKG_CONFIG"; then 4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4673$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4674else 4675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4676$as_echo "no" >&6; } 4677fi 4678 4679 if test "x$ac_pt_PKG_CONFIG" = x; then 4680 PKG_CONFIG="" 4681 else 4682 case $cross_compiling:$ac_tool_warned in 4683yes:) 4684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4686ac_tool_warned=yes ;; 4687esac 4688 PKG_CONFIG=$ac_pt_PKG_CONFIG 4689 fi 4690else 4691 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4692fi 4693 4694fi 4695if test -n "$PKG_CONFIG"; then 4696 _pkg_min_version=0.9.0 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4698$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4699 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4701$as_echo "yes" >&6; } 4702 else 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4704$as_echo "no" >&6; } 4705 PKG_CONFIG="" 4706 fi 4707fi 4708# Make sure we can run config.sub. 4709$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4710 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4711 4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4713$as_echo_n "checking build system type... " >&6; } 4714if ${ac_cv_build+:} false; then : 4715 $as_echo_n "(cached) " >&6 4716else 4717 ac_build_alias=$build_alias 4718test "x$ac_build_alias" = x && 4719 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4720test "x$ac_build_alias" = x && 4721 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4722ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4723 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4724 4725fi 4726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4727$as_echo "$ac_cv_build" >&6; } 4728case $ac_cv_build in 4729*-*-*) ;; 4730*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4731esac 4732build=$ac_cv_build 4733ac_save_IFS=$IFS; IFS='-' 4734set x $ac_cv_build 4735shift 4736build_cpu=$1 4737build_vendor=$2 4738shift; shift 4739# Remember, the first character of IFS is used to create $*, 4740# except with old shells: 4741build_os=$* 4742IFS=$ac_save_IFS 4743case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4744 4745 4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4747$as_echo_n "checking host system type... " >&6; } 4748if ${ac_cv_host+:} false; then : 4749 $as_echo_n "(cached) " >&6 4750else 4751 if test "x$host_alias" = x; then 4752 ac_cv_host=$ac_cv_build 4753else 4754 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4755 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4756fi 4757 4758fi 4759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4760$as_echo "$ac_cv_host" >&6; } 4761case $ac_cv_host in 4762*-*-*) ;; 4763*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4764esac 4765host=$ac_cv_host 4766ac_save_IFS=$IFS; IFS='-' 4767set x $ac_cv_host 4768shift 4769host_cpu=$1 4770host_vendor=$2 4771shift; shift 4772# Remember, the first character of IFS is used to create $*, 4773# except with old shells: 4774host_os=$* 4775IFS=$ac_save_IFS 4776case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4777 4778 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4780$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4781if ${ac_cv_path_SED+:} false; then : 4782 $as_echo_n "(cached) " >&6 4783else 4784 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4785 for ac_i in 1 2 3 4 5 6 7; do 4786 ac_script="$ac_script$as_nl$ac_script" 4787 done 4788 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4789 { ac_script=; unset ac_script;} 4790 if test -z "$SED"; then 4791 ac_path_SED_found=false 4792 # Loop through the user's path and test for each of PROGNAME-LIST 4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4794for as_dir in $PATH 4795do 4796 IFS=$as_save_IFS 4797 test -z "$as_dir" && as_dir=. 4798 for ac_prog in sed gsed; do 4799 for ac_exec_ext in '' $ac_executable_extensions; do 4800 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4801 as_fn_executable_p "$ac_path_SED" || continue 4802# Check for GNU ac_path_SED and select it if it is found. 4803 # Check for GNU $ac_path_SED 4804case `"$ac_path_SED" --version 2>&1` in 4805*GNU*) 4806 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4807*) 4808 ac_count=0 4809 $as_echo_n 0123456789 >"conftest.in" 4810 while : 4811 do 4812 cat "conftest.in" "conftest.in" >"conftest.tmp" 4813 mv "conftest.tmp" "conftest.in" 4814 cp "conftest.in" "conftest.nl" 4815 $as_echo '' >> "conftest.nl" 4816 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4817 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4818 as_fn_arith $ac_count + 1 && ac_count=$as_val 4819 if test $ac_count -gt ${ac_path_SED_max-0}; then 4820 # Best one so far, save it but keep looking for a better one 4821 ac_cv_path_SED="$ac_path_SED" 4822 ac_path_SED_max=$ac_count 4823 fi 4824 # 10*(2^10) chars as input seems more than enough 4825 test $ac_count -gt 10 && break 4826 done 4827 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4828esac 4829 4830 $ac_path_SED_found && break 3 4831 done 4832 done 4833 done 4834IFS=$as_save_IFS 4835 if test -z "$ac_cv_path_SED"; then 4836 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4837 fi 4838else 4839 ac_cv_path_SED=$SED 4840fi 4841 4842fi 4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4844$as_echo "$ac_cv_path_SED" >&6; } 4845 SED="$ac_cv_path_SED" 4846 rm -f conftest.sed 4847 4848 4849 4850 4851 4852 4853# Check whether --enable-selective-werror was given. 4854if test "${enable_selective_werror+set}" = set; then : 4855 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4856else 4857 SELECTIVE_WERROR=yes 4858fi 4859 4860 4861 4862 4863 4864# -v is too short to test reliably with XORG_TESTSET_CFLAG 4865if test "x$SUNCC" = "xyes"; then 4866 BASE_CFLAGS="-v" 4867else 4868 BASE_CFLAGS="" 4869fi 4870 4871# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885xorg_testset_save_CFLAGS="$CFLAGS" 4886 4887if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4888 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4890$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4891if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4892 $as_echo_n "(cached) " >&6 4893else 4894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4895/* end confdefs.h. */ 4896int i; 4897_ACEOF 4898if ac_fn_c_try_compile "$LINENO"; then : 4899 xorg_cv_cc_flag_unknown_warning_option=yes 4900else 4901 xorg_cv_cc_flag_unknown_warning_option=no 4902fi 4903rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4904fi 4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4906$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4907 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4908 CFLAGS="$xorg_testset_save_CFLAGS" 4909fi 4910 4911if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4912 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4914 fi 4915 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4917$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4918if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4919 $as_echo_n "(cached) " >&6 4920else 4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4922/* end confdefs.h. */ 4923int i; 4924_ACEOF 4925if ac_fn_c_try_compile "$LINENO"; then : 4926 xorg_cv_cc_flag_unused_command_line_argument=yes 4927else 4928 xorg_cv_cc_flag_unused_command_line_argument=no 4929fi 4930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4931fi 4932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4933$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4934 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4935 CFLAGS="$xorg_testset_save_CFLAGS" 4936fi 4937 4938found="no" 4939 4940 if test $found = "no" ; then 4941 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4942 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4943 fi 4944 4945 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4946 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4947 fi 4948 4949 CFLAGS="$CFLAGS -Wall" 4950 4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4952$as_echo_n "checking if $CC supports -Wall... " >&6; } 4953 cacheid=xorg_cv_cc_flag__Wall 4954 if eval \${$cacheid+:} false; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4958/* end confdefs.h. */ 4959int i; 4960int 4961main () 4962{ 4963 4964 ; 4965 return 0; 4966} 4967_ACEOF 4968if ac_fn_c_try_link "$LINENO"; then : 4969 eval $cacheid=yes 4970else 4971 eval $cacheid=no 4972fi 4973rm -f core conftest.err conftest.$ac_objext \ 4974 conftest$ac_exeext conftest.$ac_ext 4975fi 4976 4977 4978 CFLAGS="$xorg_testset_save_CFLAGS" 4979 4980 eval supported=\$$cacheid 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4982$as_echo "$supported" >&6; } 4983 if test "$supported" = "yes" ; then 4984 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4985 found="yes" 4986 fi 4987 fi 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003xorg_testset_save_CFLAGS="$CFLAGS" 5004 5005if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5006 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5008$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5009if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5010 $as_echo_n "(cached) " >&6 5011else 5012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5013/* end confdefs.h. */ 5014int i; 5015_ACEOF 5016if ac_fn_c_try_compile "$LINENO"; then : 5017 xorg_cv_cc_flag_unknown_warning_option=yes 5018else 5019 xorg_cv_cc_flag_unknown_warning_option=no 5020fi 5021rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5022fi 5023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5024$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5026 CFLAGS="$xorg_testset_save_CFLAGS" 5027fi 5028 5029if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5032 fi 5033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5035$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5036if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5037 $as_echo_n "(cached) " >&6 5038else 5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5040/* end confdefs.h. */ 5041int i; 5042_ACEOF 5043if ac_fn_c_try_compile "$LINENO"; then : 5044 xorg_cv_cc_flag_unused_command_line_argument=yes 5045else 5046 xorg_cv_cc_flag_unused_command_line_argument=no 5047fi 5048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5049fi 5050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5051$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5053 CFLAGS="$xorg_testset_save_CFLAGS" 5054fi 5055 5056found="no" 5057 5058 if test $found = "no" ; then 5059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5060 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5061 fi 5062 5063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5065 fi 5066 5067 CFLAGS="$CFLAGS -Wpointer-arith" 5068 5069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 5070$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 5071 cacheid=xorg_cv_cc_flag__Wpointer_arith 5072 if eval \${$cacheid+:} false; then : 5073 $as_echo_n "(cached) " >&6 5074else 5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5076/* end confdefs.h. */ 5077int i; 5078int 5079main () 5080{ 5081 5082 ; 5083 return 0; 5084} 5085_ACEOF 5086if ac_fn_c_try_link "$LINENO"; then : 5087 eval $cacheid=yes 5088else 5089 eval $cacheid=no 5090fi 5091rm -f core conftest.err conftest.$ac_objext \ 5092 conftest$ac_exeext conftest.$ac_ext 5093fi 5094 5095 5096 CFLAGS="$xorg_testset_save_CFLAGS" 5097 5098 eval supported=\$$cacheid 5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5100$as_echo "$supported" >&6; } 5101 if test "$supported" = "yes" ; then 5102 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5103 found="yes" 5104 fi 5105 fi 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121xorg_testset_save_CFLAGS="$CFLAGS" 5122 5123if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5124 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5126$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5127if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5128 $as_echo_n "(cached) " >&6 5129else 5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132int i; 5133_ACEOF 5134if ac_fn_c_try_compile "$LINENO"; then : 5135 xorg_cv_cc_flag_unknown_warning_option=yes 5136else 5137 xorg_cv_cc_flag_unknown_warning_option=no 5138fi 5139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5140fi 5141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5142$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5144 CFLAGS="$xorg_testset_save_CFLAGS" 5145fi 5146 5147if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5149 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5150 fi 5151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5153$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5154if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5155 $as_echo_n "(cached) " >&6 5156else 5157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5158/* end confdefs.h. */ 5159int i; 5160_ACEOF 5161if ac_fn_c_try_compile "$LINENO"; then : 5162 xorg_cv_cc_flag_unused_command_line_argument=yes 5163else 5164 xorg_cv_cc_flag_unused_command_line_argument=no 5165fi 5166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5167fi 5168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5169$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5171 CFLAGS="$xorg_testset_save_CFLAGS" 5172fi 5173 5174found="no" 5175 5176 if test $found = "no" ; then 5177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5178 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5179 fi 5180 5181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5183 fi 5184 5185 CFLAGS="$CFLAGS -Wmissing-declarations" 5186 5187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5188$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5189 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5190 if eval \${$cacheid+:} false; then : 5191 $as_echo_n "(cached) " >&6 5192else 5193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5194/* end confdefs.h. */ 5195int i; 5196int 5197main () 5198{ 5199 5200 ; 5201 return 0; 5202} 5203_ACEOF 5204if ac_fn_c_try_link "$LINENO"; then : 5205 eval $cacheid=yes 5206else 5207 eval $cacheid=no 5208fi 5209rm -f core conftest.err conftest.$ac_objext \ 5210 conftest$ac_exeext conftest.$ac_ext 5211fi 5212 5213 5214 CFLAGS="$xorg_testset_save_CFLAGS" 5215 5216 eval supported=\$$cacheid 5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5218$as_echo "$supported" >&6; } 5219 if test "$supported" = "yes" ; then 5220 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5221 found="yes" 5222 fi 5223 fi 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239xorg_testset_save_CFLAGS="$CFLAGS" 5240 5241if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5242 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5244$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5245if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5246 $as_echo_n "(cached) " >&6 5247else 5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5249/* end confdefs.h. */ 5250int i; 5251_ACEOF 5252if ac_fn_c_try_compile "$LINENO"; then : 5253 xorg_cv_cc_flag_unknown_warning_option=yes 5254else 5255 xorg_cv_cc_flag_unknown_warning_option=no 5256fi 5257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5258fi 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5260$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5262 CFLAGS="$xorg_testset_save_CFLAGS" 5263fi 5264 5265if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5267 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5268 fi 5269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5271$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5272if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274else 5275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5276/* end confdefs.h. */ 5277int i; 5278_ACEOF 5279if ac_fn_c_try_compile "$LINENO"; then : 5280 xorg_cv_cc_flag_unused_command_line_argument=yes 5281else 5282 xorg_cv_cc_flag_unused_command_line_argument=no 5283fi 5284rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5285fi 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5287$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5289 CFLAGS="$xorg_testset_save_CFLAGS" 5290fi 5291 5292found="no" 5293 5294 if test $found = "no" ; then 5295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5296 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5297 fi 5298 5299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5301 fi 5302 5303 CFLAGS="$CFLAGS -Wformat=2" 5304 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5306$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5307 cacheid=xorg_cv_cc_flag__Wformat_2 5308 if eval \${$cacheid+:} false; then : 5309 $as_echo_n "(cached) " >&6 5310else 5311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5312/* end confdefs.h. */ 5313int i; 5314int 5315main () 5316{ 5317 5318 ; 5319 return 0; 5320} 5321_ACEOF 5322if ac_fn_c_try_link "$LINENO"; then : 5323 eval $cacheid=yes 5324else 5325 eval $cacheid=no 5326fi 5327rm -f core conftest.err conftest.$ac_objext \ 5328 conftest$ac_exeext conftest.$ac_ext 5329fi 5330 5331 5332 CFLAGS="$xorg_testset_save_CFLAGS" 5333 5334 eval supported=\$$cacheid 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5336$as_echo "$supported" >&6; } 5337 if test "$supported" = "yes" ; then 5338 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5339 found="yes" 5340 fi 5341 fi 5342 5343 if test $found = "no" ; then 5344 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5345 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5346 fi 5347 5348 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5350 fi 5351 5352 CFLAGS="$CFLAGS -Wformat" 5353 5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5355$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5356 cacheid=xorg_cv_cc_flag__Wformat 5357 if eval \${$cacheid+:} false; then : 5358 $as_echo_n "(cached) " >&6 5359else 5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5361/* end confdefs.h. */ 5362int i; 5363int 5364main () 5365{ 5366 5367 ; 5368 return 0; 5369} 5370_ACEOF 5371if ac_fn_c_try_link "$LINENO"; then : 5372 eval $cacheid=yes 5373else 5374 eval $cacheid=no 5375fi 5376rm -f core conftest.err conftest.$ac_objext \ 5377 conftest$ac_exeext conftest.$ac_ext 5378fi 5379 5380 5381 CFLAGS="$xorg_testset_save_CFLAGS" 5382 5383 eval supported=\$$cacheid 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5385$as_echo "$supported" >&6; } 5386 if test "$supported" = "yes" ; then 5387 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5388 found="yes" 5389 fi 5390 fi 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408xorg_testset_save_CFLAGS="$CFLAGS" 5409 5410if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5411 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5413$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5414if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5415 $as_echo_n "(cached) " >&6 5416else 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419int i; 5420_ACEOF 5421if ac_fn_c_try_compile "$LINENO"; then : 5422 xorg_cv_cc_flag_unknown_warning_option=yes 5423else 5424 xorg_cv_cc_flag_unknown_warning_option=no 5425fi 5426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5427fi 5428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5429$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5430 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5431 CFLAGS="$xorg_testset_save_CFLAGS" 5432fi 5433 5434if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5436 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5437 fi 5438 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5440$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5441if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5442 $as_echo_n "(cached) " >&6 5443else 5444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5445/* end confdefs.h. */ 5446int i; 5447_ACEOF 5448if ac_fn_c_try_compile "$LINENO"; then : 5449 xorg_cv_cc_flag_unused_command_line_argument=yes 5450else 5451 xorg_cv_cc_flag_unused_command_line_argument=no 5452fi 5453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5454fi 5455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5456$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5458 CFLAGS="$xorg_testset_save_CFLAGS" 5459fi 5460 5461found="no" 5462 5463 if test $found = "no" ; then 5464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5465 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5466 fi 5467 5468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5470 fi 5471 5472 CFLAGS="$CFLAGS -Wstrict-prototypes" 5473 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5475$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5476 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5477 if eval \${$cacheid+:} false; then : 5478 $as_echo_n "(cached) " >&6 5479else 5480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5481/* end confdefs.h. */ 5482int i; 5483int 5484main () 5485{ 5486 5487 ; 5488 return 0; 5489} 5490_ACEOF 5491if ac_fn_c_try_link "$LINENO"; then : 5492 eval $cacheid=yes 5493else 5494 eval $cacheid=no 5495fi 5496rm -f core conftest.err conftest.$ac_objext \ 5497 conftest$ac_exeext conftest.$ac_ext 5498fi 5499 5500 5501 CFLAGS="$xorg_testset_save_CFLAGS" 5502 5503 eval supported=\$$cacheid 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5505$as_echo "$supported" >&6; } 5506 if test "$supported" = "yes" ; then 5507 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5508 found="yes" 5509 fi 5510 fi 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526xorg_testset_save_CFLAGS="$CFLAGS" 5527 5528if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5529 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5531$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5532if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5533 $as_echo_n "(cached) " >&6 5534else 5535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5536/* end confdefs.h. */ 5537int i; 5538_ACEOF 5539if ac_fn_c_try_compile "$LINENO"; then : 5540 xorg_cv_cc_flag_unknown_warning_option=yes 5541else 5542 xorg_cv_cc_flag_unknown_warning_option=no 5543fi 5544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5545fi 5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5547$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5548 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5549 CFLAGS="$xorg_testset_save_CFLAGS" 5550fi 5551 5552if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5553 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5554 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5555 fi 5556 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5558$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5559if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5560 $as_echo_n "(cached) " >&6 5561else 5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5563/* end confdefs.h. */ 5564int i; 5565_ACEOF 5566if ac_fn_c_try_compile "$LINENO"; then : 5567 xorg_cv_cc_flag_unused_command_line_argument=yes 5568else 5569 xorg_cv_cc_flag_unused_command_line_argument=no 5570fi 5571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5572fi 5573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5574$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5575 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5576 CFLAGS="$xorg_testset_save_CFLAGS" 5577fi 5578 5579found="no" 5580 5581 if test $found = "no" ; then 5582 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5583 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5584 fi 5585 5586 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5588 fi 5589 5590 CFLAGS="$CFLAGS -Wmissing-prototypes" 5591 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5593$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5594 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5595 if eval \${$cacheid+:} false; then : 5596 $as_echo_n "(cached) " >&6 5597else 5598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5599/* end confdefs.h. */ 5600int i; 5601int 5602main () 5603{ 5604 5605 ; 5606 return 0; 5607} 5608_ACEOF 5609if ac_fn_c_try_link "$LINENO"; then : 5610 eval $cacheid=yes 5611else 5612 eval $cacheid=no 5613fi 5614rm -f core conftest.err conftest.$ac_objext \ 5615 conftest$ac_exeext conftest.$ac_ext 5616fi 5617 5618 5619 CFLAGS="$xorg_testset_save_CFLAGS" 5620 5621 eval supported=\$$cacheid 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5623$as_echo "$supported" >&6; } 5624 if test "$supported" = "yes" ; then 5625 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5626 found="yes" 5627 fi 5628 fi 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644xorg_testset_save_CFLAGS="$CFLAGS" 5645 5646if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5647 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5649$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5650if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5651 $as_echo_n "(cached) " >&6 5652else 5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5654/* end confdefs.h. */ 5655int i; 5656_ACEOF 5657if ac_fn_c_try_compile "$LINENO"; then : 5658 xorg_cv_cc_flag_unknown_warning_option=yes 5659else 5660 xorg_cv_cc_flag_unknown_warning_option=no 5661fi 5662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5663fi 5664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5665$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5666 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5667 CFLAGS="$xorg_testset_save_CFLAGS" 5668fi 5669 5670if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5671 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5672 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5673 fi 5674 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5676$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5677if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5678 $as_echo_n "(cached) " >&6 5679else 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5681/* end confdefs.h. */ 5682int i; 5683_ACEOF 5684if ac_fn_c_try_compile "$LINENO"; then : 5685 xorg_cv_cc_flag_unused_command_line_argument=yes 5686else 5687 xorg_cv_cc_flag_unused_command_line_argument=no 5688fi 5689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5690fi 5691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5692$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5693 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5694 CFLAGS="$xorg_testset_save_CFLAGS" 5695fi 5696 5697found="no" 5698 5699 if test $found = "no" ; then 5700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5701 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5702 fi 5703 5704 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5705 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5706 fi 5707 5708 CFLAGS="$CFLAGS -Wnested-externs" 5709 5710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5711$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5712 cacheid=xorg_cv_cc_flag__Wnested_externs 5713 if eval \${$cacheid+:} false; then : 5714 $as_echo_n "(cached) " >&6 5715else 5716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5717/* end confdefs.h. */ 5718int i; 5719int 5720main () 5721{ 5722 5723 ; 5724 return 0; 5725} 5726_ACEOF 5727if ac_fn_c_try_link "$LINENO"; then : 5728 eval $cacheid=yes 5729else 5730 eval $cacheid=no 5731fi 5732rm -f core conftest.err conftest.$ac_objext \ 5733 conftest$ac_exeext conftest.$ac_ext 5734fi 5735 5736 5737 CFLAGS="$xorg_testset_save_CFLAGS" 5738 5739 eval supported=\$$cacheid 5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5741$as_echo "$supported" >&6; } 5742 if test "$supported" = "yes" ; then 5743 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5744 found="yes" 5745 fi 5746 fi 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762xorg_testset_save_CFLAGS="$CFLAGS" 5763 5764if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5765 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5767$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5768if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5769 $as_echo_n "(cached) " >&6 5770else 5771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772/* end confdefs.h. */ 5773int i; 5774_ACEOF 5775if ac_fn_c_try_compile "$LINENO"; then : 5776 xorg_cv_cc_flag_unknown_warning_option=yes 5777else 5778 xorg_cv_cc_flag_unknown_warning_option=no 5779fi 5780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5781fi 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5783$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5784 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5785 CFLAGS="$xorg_testset_save_CFLAGS" 5786fi 5787 5788if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5789 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5790 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5791 fi 5792 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5794$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5795if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5796 $as_echo_n "(cached) " >&6 5797else 5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5799/* end confdefs.h. */ 5800int i; 5801_ACEOF 5802if ac_fn_c_try_compile "$LINENO"; then : 5803 xorg_cv_cc_flag_unused_command_line_argument=yes 5804else 5805 xorg_cv_cc_flag_unused_command_line_argument=no 5806fi 5807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5808fi 5809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5810$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5812 CFLAGS="$xorg_testset_save_CFLAGS" 5813fi 5814 5815found="no" 5816 5817 if test $found = "no" ; then 5818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5819 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5820 fi 5821 5822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5824 fi 5825 5826 CFLAGS="$CFLAGS -Wbad-function-cast" 5827 5828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5829$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5830 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5831 if eval \${$cacheid+:} false; then : 5832 $as_echo_n "(cached) " >&6 5833else 5834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5835/* end confdefs.h. */ 5836int i; 5837int 5838main () 5839{ 5840 5841 ; 5842 return 0; 5843} 5844_ACEOF 5845if ac_fn_c_try_link "$LINENO"; then : 5846 eval $cacheid=yes 5847else 5848 eval $cacheid=no 5849fi 5850rm -f core conftest.err conftest.$ac_objext \ 5851 conftest$ac_exeext conftest.$ac_ext 5852fi 5853 5854 5855 CFLAGS="$xorg_testset_save_CFLAGS" 5856 5857 eval supported=\$$cacheid 5858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5859$as_echo "$supported" >&6; } 5860 if test "$supported" = "yes" ; then 5861 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5862 found="yes" 5863 fi 5864 fi 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880xorg_testset_save_CFLAGS="$CFLAGS" 5881 5882if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5883 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5885$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5886if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888else 5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5890/* end confdefs.h. */ 5891int i; 5892_ACEOF 5893if ac_fn_c_try_compile "$LINENO"; then : 5894 xorg_cv_cc_flag_unknown_warning_option=yes 5895else 5896 xorg_cv_cc_flag_unknown_warning_option=no 5897fi 5898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5899fi 5900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5901$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5902 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5903 CFLAGS="$xorg_testset_save_CFLAGS" 5904fi 5905 5906if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5907 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5908 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5909 fi 5910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5912$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5913if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5914 $as_echo_n "(cached) " >&6 5915else 5916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5917/* end confdefs.h. */ 5918int i; 5919_ACEOF 5920if ac_fn_c_try_compile "$LINENO"; then : 5921 xorg_cv_cc_flag_unused_command_line_argument=yes 5922else 5923 xorg_cv_cc_flag_unused_command_line_argument=no 5924fi 5925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5926fi 5927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5928$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5930 CFLAGS="$xorg_testset_save_CFLAGS" 5931fi 5932 5933found="no" 5934 5935 if test $found = "no" ; then 5936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5937 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5938 fi 5939 5940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5942 fi 5943 5944 CFLAGS="$CFLAGS -Wold-style-definition" 5945 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5947$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5948 cacheid=xorg_cv_cc_flag__Wold_style_definition 5949 if eval \${$cacheid+:} false; then : 5950 $as_echo_n "(cached) " >&6 5951else 5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5953/* end confdefs.h. */ 5954int i; 5955int 5956main () 5957{ 5958 5959 ; 5960 return 0; 5961} 5962_ACEOF 5963if ac_fn_c_try_link "$LINENO"; then : 5964 eval $cacheid=yes 5965else 5966 eval $cacheid=no 5967fi 5968rm -f core conftest.err conftest.$ac_objext \ 5969 conftest$ac_exeext conftest.$ac_ext 5970fi 5971 5972 5973 CFLAGS="$xorg_testset_save_CFLAGS" 5974 5975 eval supported=\$$cacheid 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5977$as_echo "$supported" >&6; } 5978 if test "$supported" = "yes" ; then 5979 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5980 found="yes" 5981 fi 5982 fi 5983 5984 if test $found = "no" ; then 5985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5986 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5987 fi 5988 5989 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5991 fi 5992 5993 CFLAGS="$CFLAGS -fd" 5994 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5996$as_echo_n "checking if $CC supports -fd... " >&6; } 5997 cacheid=xorg_cv_cc_flag__fd 5998 if eval \${$cacheid+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6002/* end confdefs.h. */ 6003int i; 6004int 6005main () 6006{ 6007 6008 ; 6009 return 0; 6010} 6011_ACEOF 6012if ac_fn_c_try_link "$LINENO"; then : 6013 eval $cacheid=yes 6014else 6015 eval $cacheid=no 6016fi 6017rm -f core conftest.err conftest.$ac_objext \ 6018 conftest$ac_exeext conftest.$ac_ext 6019fi 6020 6021 6022 CFLAGS="$xorg_testset_save_CFLAGS" 6023 6024 eval supported=\$$cacheid 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6026$as_echo "$supported" >&6; } 6027 if test "$supported" = "yes" ; then 6028 BASE_CFLAGS="$BASE_CFLAGS -fd" 6029 found="yes" 6030 fi 6031 fi 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047xorg_testset_save_CFLAGS="$CFLAGS" 6048 6049if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6050 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6052$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6053if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6054 $as_echo_n "(cached) " >&6 6055else 6056 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6057/* end confdefs.h. */ 6058int i; 6059_ACEOF 6060if ac_fn_c_try_compile "$LINENO"; then : 6061 xorg_cv_cc_flag_unknown_warning_option=yes 6062else 6063 xorg_cv_cc_flag_unknown_warning_option=no 6064fi 6065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6066fi 6067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6068$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6069 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6070 CFLAGS="$xorg_testset_save_CFLAGS" 6071fi 6072 6073if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6075 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6076 fi 6077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6079$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6080if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6081 $as_echo_n "(cached) " >&6 6082else 6083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6084/* end confdefs.h. */ 6085int i; 6086_ACEOF 6087if ac_fn_c_try_compile "$LINENO"; then : 6088 xorg_cv_cc_flag_unused_command_line_argument=yes 6089else 6090 xorg_cv_cc_flag_unused_command_line_argument=no 6091fi 6092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6093fi 6094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6095$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6097 CFLAGS="$xorg_testset_save_CFLAGS" 6098fi 6099 6100found="no" 6101 6102 if test $found = "no" ; then 6103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6104 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6105 fi 6106 6107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6109 fi 6110 6111 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6112 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6114$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6115 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6116 if eval \${$cacheid+:} false; then : 6117 $as_echo_n "(cached) " >&6 6118else 6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6120/* end confdefs.h. */ 6121int i; 6122int 6123main () 6124{ 6125 6126 ; 6127 return 0; 6128} 6129_ACEOF 6130if ac_fn_c_try_link "$LINENO"; then : 6131 eval $cacheid=yes 6132else 6133 eval $cacheid=no 6134fi 6135rm -f core conftest.err conftest.$ac_objext \ 6136 conftest$ac_exeext conftest.$ac_ext 6137fi 6138 6139 6140 CFLAGS="$xorg_testset_save_CFLAGS" 6141 6142 eval supported=\$$cacheid 6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6144$as_echo "$supported" >&6; } 6145 if test "$supported" = "yes" ; then 6146 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6147 found="yes" 6148 fi 6149 fi 6150 6151 6152 6153 6154 6155# This chunk adds additional warnings that could catch undesired effects. 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169xorg_testset_save_CFLAGS="$CFLAGS" 6170 6171if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6172 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6174$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6175if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6179/* end confdefs.h. */ 6180int i; 6181_ACEOF 6182if ac_fn_c_try_compile "$LINENO"; then : 6183 xorg_cv_cc_flag_unknown_warning_option=yes 6184else 6185 xorg_cv_cc_flag_unknown_warning_option=no 6186fi 6187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6188fi 6189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6190$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6192 CFLAGS="$xorg_testset_save_CFLAGS" 6193fi 6194 6195if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6197 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6198 fi 6199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6201$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6202if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6203 $as_echo_n "(cached) " >&6 6204else 6205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6206/* end confdefs.h. */ 6207int i; 6208_ACEOF 6209if ac_fn_c_try_compile "$LINENO"; then : 6210 xorg_cv_cc_flag_unused_command_line_argument=yes 6211else 6212 xorg_cv_cc_flag_unused_command_line_argument=no 6213fi 6214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6215fi 6216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6217$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6219 CFLAGS="$xorg_testset_save_CFLAGS" 6220fi 6221 6222found="no" 6223 6224 if test $found = "no" ; then 6225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6226 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6227 fi 6228 6229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6231 fi 6232 6233 CFLAGS="$CFLAGS -Wunused" 6234 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6236$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6237 cacheid=xorg_cv_cc_flag__Wunused 6238 if eval \${$cacheid+:} false; then : 6239 $as_echo_n "(cached) " >&6 6240else 6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6242/* end confdefs.h. */ 6243int i; 6244int 6245main () 6246{ 6247 6248 ; 6249 return 0; 6250} 6251_ACEOF 6252if ac_fn_c_try_link "$LINENO"; then : 6253 eval $cacheid=yes 6254else 6255 eval $cacheid=no 6256fi 6257rm -f core conftest.err conftest.$ac_objext \ 6258 conftest$ac_exeext conftest.$ac_ext 6259fi 6260 6261 6262 CFLAGS="$xorg_testset_save_CFLAGS" 6263 6264 eval supported=\$$cacheid 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6266$as_echo "$supported" >&6; } 6267 if test "$supported" = "yes" ; then 6268 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6269 found="yes" 6270 fi 6271 fi 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287xorg_testset_save_CFLAGS="$CFLAGS" 6288 6289if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6290 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6292$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6293if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6294 $as_echo_n "(cached) " >&6 6295else 6296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6297/* end confdefs.h. */ 6298int i; 6299_ACEOF 6300if ac_fn_c_try_compile "$LINENO"; then : 6301 xorg_cv_cc_flag_unknown_warning_option=yes 6302else 6303 xorg_cv_cc_flag_unknown_warning_option=no 6304fi 6305rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6306fi 6307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6308$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6309 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6310 CFLAGS="$xorg_testset_save_CFLAGS" 6311fi 6312 6313if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6316 fi 6317 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6319$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6320if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6321 $as_echo_n "(cached) " >&6 6322else 6323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6324/* end confdefs.h. */ 6325int i; 6326_ACEOF 6327if ac_fn_c_try_compile "$LINENO"; then : 6328 xorg_cv_cc_flag_unused_command_line_argument=yes 6329else 6330 xorg_cv_cc_flag_unused_command_line_argument=no 6331fi 6332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6333fi 6334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6335$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6336 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6337 CFLAGS="$xorg_testset_save_CFLAGS" 6338fi 6339 6340found="no" 6341 6342 if test $found = "no" ; then 6343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6344 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6345 fi 6346 6347 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6348 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6349 fi 6350 6351 CFLAGS="$CFLAGS -Wuninitialized" 6352 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6354$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6355 cacheid=xorg_cv_cc_flag__Wuninitialized 6356 if eval \${$cacheid+:} false; then : 6357 $as_echo_n "(cached) " >&6 6358else 6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6360/* end confdefs.h. */ 6361int i; 6362int 6363main () 6364{ 6365 6366 ; 6367 return 0; 6368} 6369_ACEOF 6370if ac_fn_c_try_link "$LINENO"; then : 6371 eval $cacheid=yes 6372else 6373 eval $cacheid=no 6374fi 6375rm -f core conftest.err conftest.$ac_objext \ 6376 conftest$ac_exeext conftest.$ac_ext 6377fi 6378 6379 6380 CFLAGS="$xorg_testset_save_CFLAGS" 6381 6382 eval supported=\$$cacheid 6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6384$as_echo "$supported" >&6; } 6385 if test "$supported" = "yes" ; then 6386 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6387 found="yes" 6388 fi 6389 fi 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405xorg_testset_save_CFLAGS="$CFLAGS" 6406 6407if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6408 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6410$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6411if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6412 $as_echo_n "(cached) " >&6 6413else 6414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6415/* end confdefs.h. */ 6416int i; 6417_ACEOF 6418if ac_fn_c_try_compile "$LINENO"; then : 6419 xorg_cv_cc_flag_unknown_warning_option=yes 6420else 6421 xorg_cv_cc_flag_unknown_warning_option=no 6422fi 6423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6424fi 6425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6426$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6427 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6428 CFLAGS="$xorg_testset_save_CFLAGS" 6429fi 6430 6431if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6434 fi 6435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6437$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6438if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6439 $as_echo_n "(cached) " >&6 6440else 6441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6442/* end confdefs.h. */ 6443int i; 6444_ACEOF 6445if ac_fn_c_try_compile "$LINENO"; then : 6446 xorg_cv_cc_flag_unused_command_line_argument=yes 6447else 6448 xorg_cv_cc_flag_unused_command_line_argument=no 6449fi 6450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6451fi 6452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6453$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6454 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6455 CFLAGS="$xorg_testset_save_CFLAGS" 6456fi 6457 6458found="no" 6459 6460 if test $found = "no" ; then 6461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6462 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6463 fi 6464 6465 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6466 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6467 fi 6468 6469 CFLAGS="$CFLAGS -Wshadow" 6470 6471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6472$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6473 cacheid=xorg_cv_cc_flag__Wshadow 6474 if eval \${$cacheid+:} false; then : 6475 $as_echo_n "(cached) " >&6 6476else 6477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6478/* end confdefs.h. */ 6479int i; 6480int 6481main () 6482{ 6483 6484 ; 6485 return 0; 6486} 6487_ACEOF 6488if ac_fn_c_try_link "$LINENO"; then : 6489 eval $cacheid=yes 6490else 6491 eval $cacheid=no 6492fi 6493rm -f core conftest.err conftest.$ac_objext \ 6494 conftest$ac_exeext conftest.$ac_ext 6495fi 6496 6497 6498 CFLAGS="$xorg_testset_save_CFLAGS" 6499 6500 eval supported=\$$cacheid 6501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6502$as_echo "$supported" >&6; } 6503 if test "$supported" = "yes" ; then 6504 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6505 found="yes" 6506 fi 6507 fi 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523xorg_testset_save_CFLAGS="$CFLAGS" 6524 6525if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6526 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6528$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6529if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531else 6532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6533/* end confdefs.h. */ 6534int i; 6535_ACEOF 6536if ac_fn_c_try_compile "$LINENO"; then : 6537 xorg_cv_cc_flag_unknown_warning_option=yes 6538else 6539 xorg_cv_cc_flag_unknown_warning_option=no 6540fi 6541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6542fi 6543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6544$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6545 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6546 CFLAGS="$xorg_testset_save_CFLAGS" 6547fi 6548 6549if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6551 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6552 fi 6553 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6555$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6556if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6557 $as_echo_n "(cached) " >&6 6558else 6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6560/* end confdefs.h. */ 6561int i; 6562_ACEOF 6563if ac_fn_c_try_compile "$LINENO"; then : 6564 xorg_cv_cc_flag_unused_command_line_argument=yes 6565else 6566 xorg_cv_cc_flag_unused_command_line_argument=no 6567fi 6568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6569fi 6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6571$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6572 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6573 CFLAGS="$xorg_testset_save_CFLAGS" 6574fi 6575 6576found="no" 6577 6578 if test $found = "no" ; then 6579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6580 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6581 fi 6582 6583 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6584 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6585 fi 6586 6587 CFLAGS="$CFLAGS -Wmissing-noreturn" 6588 6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6590$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6591 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6592 if eval \${$cacheid+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6596/* end confdefs.h. */ 6597int i; 6598int 6599main () 6600{ 6601 6602 ; 6603 return 0; 6604} 6605_ACEOF 6606if ac_fn_c_try_link "$LINENO"; then : 6607 eval $cacheid=yes 6608else 6609 eval $cacheid=no 6610fi 6611rm -f core conftest.err conftest.$ac_objext \ 6612 conftest$ac_exeext conftest.$ac_ext 6613fi 6614 6615 6616 CFLAGS="$xorg_testset_save_CFLAGS" 6617 6618 eval supported=\$$cacheid 6619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6620$as_echo "$supported" >&6; } 6621 if test "$supported" = "yes" ; then 6622 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6623 found="yes" 6624 fi 6625 fi 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641xorg_testset_save_CFLAGS="$CFLAGS" 6642 6643if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6644 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6646$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6647if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6648 $as_echo_n "(cached) " >&6 6649else 6650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6651/* end confdefs.h. */ 6652int i; 6653_ACEOF 6654if ac_fn_c_try_compile "$LINENO"; then : 6655 xorg_cv_cc_flag_unknown_warning_option=yes 6656else 6657 xorg_cv_cc_flag_unknown_warning_option=no 6658fi 6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6660fi 6661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6662$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6663 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6664 CFLAGS="$xorg_testset_save_CFLAGS" 6665fi 6666 6667if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6670 fi 6671 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6673$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6674if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6675 $as_echo_n "(cached) " >&6 6676else 6677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6678/* end confdefs.h. */ 6679int i; 6680_ACEOF 6681if ac_fn_c_try_compile "$LINENO"; then : 6682 xorg_cv_cc_flag_unused_command_line_argument=yes 6683else 6684 xorg_cv_cc_flag_unused_command_line_argument=no 6685fi 6686rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6687fi 6688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6689$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6690 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6691 CFLAGS="$xorg_testset_save_CFLAGS" 6692fi 6693 6694found="no" 6695 6696 if test $found = "no" ; then 6697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6698 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6699 fi 6700 6701 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6702 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6703 fi 6704 6705 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6706 6707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6708$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6709 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6710 if eval \${$cacheid+:} false; then : 6711 $as_echo_n "(cached) " >&6 6712else 6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6714/* end confdefs.h. */ 6715int i; 6716int 6717main () 6718{ 6719 6720 ; 6721 return 0; 6722} 6723_ACEOF 6724if ac_fn_c_try_link "$LINENO"; then : 6725 eval $cacheid=yes 6726else 6727 eval $cacheid=no 6728fi 6729rm -f core conftest.err conftest.$ac_objext \ 6730 conftest$ac_exeext conftest.$ac_ext 6731fi 6732 6733 6734 CFLAGS="$xorg_testset_save_CFLAGS" 6735 6736 eval supported=\$$cacheid 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6738$as_echo "$supported" >&6; } 6739 if test "$supported" = "yes" ; then 6740 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6741 found="yes" 6742 fi 6743 fi 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759xorg_testset_save_CFLAGS="$CFLAGS" 6760 6761if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6762 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6764$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6765if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6766 $as_echo_n "(cached) " >&6 6767else 6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6769/* end confdefs.h. */ 6770int i; 6771_ACEOF 6772if ac_fn_c_try_compile "$LINENO"; then : 6773 xorg_cv_cc_flag_unknown_warning_option=yes 6774else 6775 xorg_cv_cc_flag_unknown_warning_option=no 6776fi 6777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6778fi 6779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6780$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6781 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6782 CFLAGS="$xorg_testset_save_CFLAGS" 6783fi 6784 6785if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6788 fi 6789 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6791$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6792if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6793 $as_echo_n "(cached) " >&6 6794else 6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6796/* end confdefs.h. */ 6797int i; 6798_ACEOF 6799if ac_fn_c_try_compile "$LINENO"; then : 6800 xorg_cv_cc_flag_unused_command_line_argument=yes 6801else 6802 xorg_cv_cc_flag_unused_command_line_argument=no 6803fi 6804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6805fi 6806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6807$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6808 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6809 CFLAGS="$xorg_testset_save_CFLAGS" 6810fi 6811 6812found="no" 6813 6814 if test $found = "no" ; then 6815 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6816 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6817 fi 6818 6819 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6820 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6821 fi 6822 6823 CFLAGS="$CFLAGS -Wredundant-decls" 6824 6825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6826$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6827 cacheid=xorg_cv_cc_flag__Wredundant_decls 6828 if eval \${$cacheid+:} false; then : 6829 $as_echo_n "(cached) " >&6 6830else 6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6832/* end confdefs.h. */ 6833int i; 6834int 6835main () 6836{ 6837 6838 ; 6839 return 0; 6840} 6841_ACEOF 6842if ac_fn_c_try_link "$LINENO"; then : 6843 eval $cacheid=yes 6844else 6845 eval $cacheid=no 6846fi 6847rm -f core conftest.err conftest.$ac_objext \ 6848 conftest$ac_exeext conftest.$ac_ext 6849fi 6850 6851 6852 CFLAGS="$xorg_testset_save_CFLAGS" 6853 6854 eval supported=\$$cacheid 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6856$as_echo "$supported" >&6; } 6857 if test "$supported" = "yes" ; then 6858 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6859 found="yes" 6860 fi 6861 fi 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877xorg_testset_save_CFLAGS="$CFLAGS" 6878 6879if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6882$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6883if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6884 $as_echo_n "(cached) " >&6 6885else 6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6887/* end confdefs.h. */ 6888int i; 6889_ACEOF 6890if ac_fn_c_try_compile "$LINENO"; then : 6891 xorg_cv_cc_flag_unknown_warning_option=yes 6892else 6893 xorg_cv_cc_flag_unknown_warning_option=no 6894fi 6895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6896fi 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6898$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6899 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6900 CFLAGS="$xorg_testset_save_CFLAGS" 6901fi 6902 6903if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6906 fi 6907 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6909$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6910if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6911 $as_echo_n "(cached) " >&6 6912else 6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6914/* end confdefs.h. */ 6915int i; 6916_ACEOF 6917if ac_fn_c_try_compile "$LINENO"; then : 6918 xorg_cv_cc_flag_unused_command_line_argument=yes 6919else 6920 xorg_cv_cc_flag_unused_command_line_argument=no 6921fi 6922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6923fi 6924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6925$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6926 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6927 CFLAGS="$xorg_testset_save_CFLAGS" 6928fi 6929 6930found="no" 6931 6932 if test $found = "no" ; then 6933 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6935 fi 6936 6937 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6938 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6939 fi 6940 6941 CFLAGS="$CFLAGS -Wlogical-op" 6942 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6944$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6945 cacheid=xorg_cv_cc_flag__Wlogical_op 6946 if eval \${$cacheid+:} false; then : 6947 $as_echo_n "(cached) " >&6 6948else 6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6950/* end confdefs.h. */ 6951int i; 6952int 6953main () 6954{ 6955 6956 ; 6957 return 0; 6958} 6959_ACEOF 6960if ac_fn_c_try_link "$LINENO"; then : 6961 eval $cacheid=yes 6962else 6963 eval $cacheid=no 6964fi 6965rm -f core conftest.err conftest.$ac_objext \ 6966 conftest$ac_exeext conftest.$ac_ext 6967fi 6968 6969 6970 CFLAGS="$xorg_testset_save_CFLAGS" 6971 6972 eval supported=\$$cacheid 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6974$as_echo "$supported" >&6; } 6975 if test "$supported" = "yes" ; then 6976 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6977 found="yes" 6978 fi 6979 fi 6980 6981 6982 6983# These are currently disabled because they are noisy. They will be enabled 6984# in the future once the codebase is sufficiently modernized to silence 6985# them. For now, I don't want them to drown out the other warnings. 6986# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6987# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6988# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6989 6990# Turn some warnings into errors, so we don't accidently get successful builds 6991# when there are problems that should be fixed. 6992 6993if test "x$SELECTIVE_WERROR" = "xyes" ; then 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007xorg_testset_save_CFLAGS="$CFLAGS" 7008 7009if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7010 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7012$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7013if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7014 $as_echo_n "(cached) " >&6 7015else 7016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7017/* end confdefs.h. */ 7018int i; 7019_ACEOF 7020if ac_fn_c_try_compile "$LINENO"; then : 7021 xorg_cv_cc_flag_unknown_warning_option=yes 7022else 7023 xorg_cv_cc_flag_unknown_warning_option=no 7024fi 7025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7026fi 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7028$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7030 CFLAGS="$xorg_testset_save_CFLAGS" 7031fi 7032 7033if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7035 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7036 fi 7037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7039$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7040if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7041 $as_echo_n "(cached) " >&6 7042else 7043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7044/* end confdefs.h. */ 7045int i; 7046_ACEOF 7047if ac_fn_c_try_compile "$LINENO"; then : 7048 xorg_cv_cc_flag_unused_command_line_argument=yes 7049else 7050 xorg_cv_cc_flag_unused_command_line_argument=no 7051fi 7052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7053fi 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7055$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7057 CFLAGS="$xorg_testset_save_CFLAGS" 7058fi 7059 7060found="no" 7061 7062 if test $found = "no" ; then 7063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7064 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7065 fi 7066 7067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7069 fi 7070 7071 CFLAGS="$CFLAGS -Werror=implicit" 7072 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 7074$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 7075 cacheid=xorg_cv_cc_flag__Werror_implicit 7076 if eval \${$cacheid+:} false; then : 7077 $as_echo_n "(cached) " >&6 7078else 7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7080/* end confdefs.h. */ 7081int i; 7082int 7083main () 7084{ 7085 7086 ; 7087 return 0; 7088} 7089_ACEOF 7090if ac_fn_c_try_link "$LINENO"; then : 7091 eval $cacheid=yes 7092else 7093 eval $cacheid=no 7094fi 7095rm -f core conftest.err conftest.$ac_objext \ 7096 conftest$ac_exeext conftest.$ac_ext 7097fi 7098 7099 7100 CFLAGS="$xorg_testset_save_CFLAGS" 7101 7102 eval supported=\$$cacheid 7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7104$as_echo "$supported" >&6; } 7105 if test "$supported" = "yes" ; then 7106 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7107 found="yes" 7108 fi 7109 fi 7110 7111 if test $found = "no" ; then 7112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7113 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7114 fi 7115 7116 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7117 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7118 fi 7119 7120 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7121 7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7123$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7124 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7125 if eval \${$cacheid+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127else 7128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7129/* end confdefs.h. */ 7130int i; 7131int 7132main () 7133{ 7134 7135 ; 7136 return 0; 7137} 7138_ACEOF 7139if ac_fn_c_try_link "$LINENO"; then : 7140 eval $cacheid=yes 7141else 7142 eval $cacheid=no 7143fi 7144rm -f core conftest.err conftest.$ac_objext \ 7145 conftest$ac_exeext conftest.$ac_ext 7146fi 7147 7148 7149 CFLAGS="$xorg_testset_save_CFLAGS" 7150 7151 eval supported=\$$cacheid 7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7153$as_echo "$supported" >&6; } 7154 if test "$supported" = "yes" ; then 7155 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7156 found="yes" 7157 fi 7158 fi 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 7172 7173 7174xorg_testset_save_CFLAGS="$CFLAGS" 7175 7176if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7177 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7179$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7180if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7181 $as_echo_n "(cached) " >&6 7182else 7183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7184/* end confdefs.h. */ 7185int i; 7186_ACEOF 7187if ac_fn_c_try_compile "$LINENO"; then : 7188 xorg_cv_cc_flag_unknown_warning_option=yes 7189else 7190 xorg_cv_cc_flag_unknown_warning_option=no 7191fi 7192rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7193fi 7194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7195$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7196 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7197 CFLAGS="$xorg_testset_save_CFLAGS" 7198fi 7199 7200if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7202 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7203 fi 7204 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7206$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7207if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7208 $as_echo_n "(cached) " >&6 7209else 7210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7211/* end confdefs.h. */ 7212int i; 7213_ACEOF 7214if ac_fn_c_try_compile "$LINENO"; then : 7215 xorg_cv_cc_flag_unused_command_line_argument=yes 7216else 7217 xorg_cv_cc_flag_unused_command_line_argument=no 7218fi 7219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7220fi 7221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7222$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7223 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7224 CFLAGS="$xorg_testset_save_CFLAGS" 7225fi 7226 7227found="no" 7228 7229 if test $found = "no" ; then 7230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7231 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7232 fi 7233 7234 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7235 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7236 fi 7237 7238 CFLAGS="$CFLAGS -Werror=nonnull" 7239 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7241$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7242 cacheid=xorg_cv_cc_flag__Werror_nonnull 7243 if eval \${$cacheid+:} false; then : 7244 $as_echo_n "(cached) " >&6 7245else 7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7247/* end confdefs.h. */ 7248int i; 7249int 7250main () 7251{ 7252 7253 ; 7254 return 0; 7255} 7256_ACEOF 7257if ac_fn_c_try_link "$LINENO"; then : 7258 eval $cacheid=yes 7259else 7260 eval $cacheid=no 7261fi 7262rm -f core conftest.err conftest.$ac_objext \ 7263 conftest$ac_exeext conftest.$ac_ext 7264fi 7265 7266 7267 CFLAGS="$xorg_testset_save_CFLAGS" 7268 7269 eval supported=\$$cacheid 7270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7271$as_echo "$supported" >&6; } 7272 if test "$supported" = "yes" ; then 7273 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7274 found="yes" 7275 fi 7276 fi 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 7291 7292xorg_testset_save_CFLAGS="$CFLAGS" 7293 7294if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7295 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7297$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7298if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7299 $as_echo_n "(cached) " >&6 7300else 7301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7302/* end confdefs.h. */ 7303int i; 7304_ACEOF 7305if ac_fn_c_try_compile "$LINENO"; then : 7306 xorg_cv_cc_flag_unknown_warning_option=yes 7307else 7308 xorg_cv_cc_flag_unknown_warning_option=no 7309fi 7310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7311fi 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7313$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7314 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7315 CFLAGS="$xorg_testset_save_CFLAGS" 7316fi 7317 7318if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7319 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7320 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7321 fi 7322 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7324$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7325if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7326 $as_echo_n "(cached) " >&6 7327else 7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7329/* end confdefs.h. */ 7330int i; 7331_ACEOF 7332if ac_fn_c_try_compile "$LINENO"; then : 7333 xorg_cv_cc_flag_unused_command_line_argument=yes 7334else 7335 xorg_cv_cc_flag_unused_command_line_argument=no 7336fi 7337rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7338fi 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7340$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7341 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7342 CFLAGS="$xorg_testset_save_CFLAGS" 7343fi 7344 7345found="no" 7346 7347 if test $found = "no" ; then 7348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7349 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7350 fi 7351 7352 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7353 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7354 fi 7355 7356 CFLAGS="$CFLAGS -Werror=init-self" 7357 7358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7359$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7360 cacheid=xorg_cv_cc_flag__Werror_init_self 7361 if eval \${$cacheid+:} false; then : 7362 $as_echo_n "(cached) " >&6 7363else 7364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7365/* end confdefs.h. */ 7366int i; 7367int 7368main () 7369{ 7370 7371 ; 7372 return 0; 7373} 7374_ACEOF 7375if ac_fn_c_try_link "$LINENO"; then : 7376 eval $cacheid=yes 7377else 7378 eval $cacheid=no 7379fi 7380rm -f core conftest.err conftest.$ac_objext \ 7381 conftest$ac_exeext conftest.$ac_ext 7382fi 7383 7384 7385 CFLAGS="$xorg_testset_save_CFLAGS" 7386 7387 eval supported=\$$cacheid 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7389$as_echo "$supported" >&6; } 7390 if test "$supported" = "yes" ; then 7391 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7392 found="yes" 7393 fi 7394 fi 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410xorg_testset_save_CFLAGS="$CFLAGS" 7411 7412if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7413 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7415$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7416if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7417 $as_echo_n "(cached) " >&6 7418else 7419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7420/* end confdefs.h. */ 7421int i; 7422_ACEOF 7423if ac_fn_c_try_compile "$LINENO"; then : 7424 xorg_cv_cc_flag_unknown_warning_option=yes 7425else 7426 xorg_cv_cc_flag_unknown_warning_option=no 7427fi 7428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7429fi 7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7431$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7432 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7433 CFLAGS="$xorg_testset_save_CFLAGS" 7434fi 7435 7436if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7437 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7438 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7439 fi 7440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7442$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7443if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7444 $as_echo_n "(cached) " >&6 7445else 7446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7447/* end confdefs.h. */ 7448int i; 7449_ACEOF 7450if ac_fn_c_try_compile "$LINENO"; then : 7451 xorg_cv_cc_flag_unused_command_line_argument=yes 7452else 7453 xorg_cv_cc_flag_unused_command_line_argument=no 7454fi 7455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7456fi 7457{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7458$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7459 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7460 CFLAGS="$xorg_testset_save_CFLAGS" 7461fi 7462 7463found="no" 7464 7465 if test $found = "no" ; then 7466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7467 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7468 fi 7469 7470 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7471 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7472 fi 7473 7474 CFLAGS="$CFLAGS -Werror=main" 7475 7476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7477$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7478 cacheid=xorg_cv_cc_flag__Werror_main 7479 if eval \${$cacheid+:} false; then : 7480 $as_echo_n "(cached) " >&6 7481else 7482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7483/* end confdefs.h. */ 7484int i; 7485int 7486main () 7487{ 7488 7489 ; 7490 return 0; 7491} 7492_ACEOF 7493if ac_fn_c_try_link "$LINENO"; then : 7494 eval $cacheid=yes 7495else 7496 eval $cacheid=no 7497fi 7498rm -f core conftest.err conftest.$ac_objext \ 7499 conftest$ac_exeext conftest.$ac_ext 7500fi 7501 7502 7503 CFLAGS="$xorg_testset_save_CFLAGS" 7504 7505 eval supported=\$$cacheid 7506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7507$as_echo "$supported" >&6; } 7508 if test "$supported" = "yes" ; then 7509 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7510 found="yes" 7511 fi 7512 fi 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 7524 7525 7526 7527 7528xorg_testset_save_CFLAGS="$CFLAGS" 7529 7530if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7531 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7533$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7534if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7535 $as_echo_n "(cached) " >&6 7536else 7537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7538/* end confdefs.h. */ 7539int i; 7540_ACEOF 7541if ac_fn_c_try_compile "$LINENO"; then : 7542 xorg_cv_cc_flag_unknown_warning_option=yes 7543else 7544 xorg_cv_cc_flag_unknown_warning_option=no 7545fi 7546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7547fi 7548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7549$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7550 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7551 CFLAGS="$xorg_testset_save_CFLAGS" 7552fi 7553 7554if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7555 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7556 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7557 fi 7558 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7560$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7561if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7562 $as_echo_n "(cached) " >&6 7563else 7564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7565/* end confdefs.h. */ 7566int i; 7567_ACEOF 7568if ac_fn_c_try_compile "$LINENO"; then : 7569 xorg_cv_cc_flag_unused_command_line_argument=yes 7570else 7571 xorg_cv_cc_flag_unused_command_line_argument=no 7572fi 7573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7574fi 7575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7576$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7577 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7578 CFLAGS="$xorg_testset_save_CFLAGS" 7579fi 7580 7581found="no" 7582 7583 if test $found = "no" ; then 7584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7585 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7586 fi 7587 7588 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7589 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7590 fi 7591 7592 CFLAGS="$CFLAGS -Werror=missing-braces" 7593 7594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7595$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7596 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7597 if eval \${$cacheid+:} false; then : 7598 $as_echo_n "(cached) " >&6 7599else 7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7601/* end confdefs.h. */ 7602int i; 7603int 7604main () 7605{ 7606 7607 ; 7608 return 0; 7609} 7610_ACEOF 7611if ac_fn_c_try_link "$LINENO"; then : 7612 eval $cacheid=yes 7613else 7614 eval $cacheid=no 7615fi 7616rm -f core conftest.err conftest.$ac_objext \ 7617 conftest$ac_exeext conftest.$ac_ext 7618fi 7619 7620 7621 CFLAGS="$xorg_testset_save_CFLAGS" 7622 7623 eval supported=\$$cacheid 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7625$as_echo "$supported" >&6; } 7626 if test "$supported" = "yes" ; then 7627 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7628 found="yes" 7629 fi 7630 fi 7631 7632 7633 7634 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646xorg_testset_save_CFLAGS="$CFLAGS" 7647 7648if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7649 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7651$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7652if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7653 $as_echo_n "(cached) " >&6 7654else 7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7656/* end confdefs.h. */ 7657int i; 7658_ACEOF 7659if ac_fn_c_try_compile "$LINENO"; then : 7660 xorg_cv_cc_flag_unknown_warning_option=yes 7661else 7662 xorg_cv_cc_flag_unknown_warning_option=no 7663fi 7664rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7665fi 7666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7667$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7668 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7669 CFLAGS="$xorg_testset_save_CFLAGS" 7670fi 7671 7672if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7673 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7674 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7675 fi 7676 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7678$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7679if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7680 $as_echo_n "(cached) " >&6 7681else 7682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7683/* end confdefs.h. */ 7684int i; 7685_ACEOF 7686if ac_fn_c_try_compile "$LINENO"; then : 7687 xorg_cv_cc_flag_unused_command_line_argument=yes 7688else 7689 xorg_cv_cc_flag_unused_command_line_argument=no 7690fi 7691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7692fi 7693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7694$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7695 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7696 CFLAGS="$xorg_testset_save_CFLAGS" 7697fi 7698 7699found="no" 7700 7701 if test $found = "no" ; then 7702 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7703 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7704 fi 7705 7706 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7707 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7708 fi 7709 7710 CFLAGS="$CFLAGS -Werror=sequence-point" 7711 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7713$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7714 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7715 if eval \${$cacheid+:} false; then : 7716 $as_echo_n "(cached) " >&6 7717else 7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7719/* end confdefs.h. */ 7720int i; 7721int 7722main () 7723{ 7724 7725 ; 7726 return 0; 7727} 7728_ACEOF 7729if ac_fn_c_try_link "$LINENO"; then : 7730 eval $cacheid=yes 7731else 7732 eval $cacheid=no 7733fi 7734rm -f core conftest.err conftest.$ac_objext \ 7735 conftest$ac_exeext conftest.$ac_ext 7736fi 7737 7738 7739 CFLAGS="$xorg_testset_save_CFLAGS" 7740 7741 eval supported=\$$cacheid 7742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7743$as_echo "$supported" >&6; } 7744 if test "$supported" = "yes" ; then 7745 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7746 found="yes" 7747 fi 7748 fi 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 7763 7764xorg_testset_save_CFLAGS="$CFLAGS" 7765 7766if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7767 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7769$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7770if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7771 $as_echo_n "(cached) " >&6 7772else 7773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7774/* end confdefs.h. */ 7775int i; 7776_ACEOF 7777if ac_fn_c_try_compile "$LINENO"; then : 7778 xorg_cv_cc_flag_unknown_warning_option=yes 7779else 7780 xorg_cv_cc_flag_unknown_warning_option=no 7781fi 7782rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7783fi 7784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7785$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7786 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7787 CFLAGS="$xorg_testset_save_CFLAGS" 7788fi 7789 7790if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7791 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7792 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7793 fi 7794 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7796$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7797if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7798 $as_echo_n "(cached) " >&6 7799else 7800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7801/* end confdefs.h. */ 7802int i; 7803_ACEOF 7804if ac_fn_c_try_compile "$LINENO"; then : 7805 xorg_cv_cc_flag_unused_command_line_argument=yes 7806else 7807 xorg_cv_cc_flag_unused_command_line_argument=no 7808fi 7809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7810fi 7811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7812$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7814 CFLAGS="$xorg_testset_save_CFLAGS" 7815fi 7816 7817found="no" 7818 7819 if test $found = "no" ; then 7820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7821 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7822 fi 7823 7824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7826 fi 7827 7828 CFLAGS="$CFLAGS -Werror=return-type" 7829 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7831$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7832 cacheid=xorg_cv_cc_flag__Werror_return_type 7833 if eval \${$cacheid+:} false; then : 7834 $as_echo_n "(cached) " >&6 7835else 7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7837/* end confdefs.h. */ 7838int i; 7839int 7840main () 7841{ 7842 7843 ; 7844 return 0; 7845} 7846_ACEOF 7847if ac_fn_c_try_link "$LINENO"; then : 7848 eval $cacheid=yes 7849else 7850 eval $cacheid=no 7851fi 7852rm -f core conftest.err conftest.$ac_objext \ 7853 conftest$ac_exeext conftest.$ac_ext 7854fi 7855 7856 7857 CFLAGS="$xorg_testset_save_CFLAGS" 7858 7859 eval supported=\$$cacheid 7860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7861$as_echo "$supported" >&6; } 7862 if test "$supported" = "yes" ; then 7863 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7864 found="yes" 7865 fi 7866 fi 7867 7868 if test $found = "no" ; then 7869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7870 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7871 fi 7872 7873 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7874 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7875 fi 7876 7877 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7878 7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7880$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7881 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7882 if eval \${$cacheid+:} false; then : 7883 $as_echo_n "(cached) " >&6 7884else 7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7886/* end confdefs.h. */ 7887int i; 7888int 7889main () 7890{ 7891 7892 ; 7893 return 0; 7894} 7895_ACEOF 7896if ac_fn_c_try_link "$LINENO"; then : 7897 eval $cacheid=yes 7898else 7899 eval $cacheid=no 7900fi 7901rm -f core conftest.err conftest.$ac_objext \ 7902 conftest$ac_exeext conftest.$ac_ext 7903fi 7904 7905 7906 CFLAGS="$xorg_testset_save_CFLAGS" 7907 7908 eval supported=\$$cacheid 7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7910$as_echo "$supported" >&6; } 7911 if test "$supported" = "yes" ; then 7912 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7913 found="yes" 7914 fi 7915 fi 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931xorg_testset_save_CFLAGS="$CFLAGS" 7932 7933if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7934 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7936$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7937if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7938 $as_echo_n "(cached) " >&6 7939else 7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7941/* end confdefs.h. */ 7942int i; 7943_ACEOF 7944if ac_fn_c_try_compile "$LINENO"; then : 7945 xorg_cv_cc_flag_unknown_warning_option=yes 7946else 7947 xorg_cv_cc_flag_unknown_warning_option=no 7948fi 7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7950fi 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7952$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7953 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7954 CFLAGS="$xorg_testset_save_CFLAGS" 7955fi 7956 7957if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7959 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7960 fi 7961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7963$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7964if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7965 $as_echo_n "(cached) " >&6 7966else 7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7968/* end confdefs.h. */ 7969int i; 7970_ACEOF 7971if ac_fn_c_try_compile "$LINENO"; then : 7972 xorg_cv_cc_flag_unused_command_line_argument=yes 7973else 7974 xorg_cv_cc_flag_unused_command_line_argument=no 7975fi 7976rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7977fi 7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7979$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7980 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7981 CFLAGS="$xorg_testset_save_CFLAGS" 7982fi 7983 7984found="no" 7985 7986 if test $found = "no" ; then 7987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7988 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7989 fi 7990 7991 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7993 fi 7994 7995 CFLAGS="$CFLAGS -Werror=trigraphs" 7996 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7998$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7999 cacheid=xorg_cv_cc_flag__Werror_trigraphs 8000 if eval \${$cacheid+:} false; then : 8001 $as_echo_n "(cached) " >&6 8002else 8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8004/* end confdefs.h. */ 8005int i; 8006int 8007main () 8008{ 8009 8010 ; 8011 return 0; 8012} 8013_ACEOF 8014if ac_fn_c_try_link "$LINENO"; then : 8015 eval $cacheid=yes 8016else 8017 eval $cacheid=no 8018fi 8019rm -f core conftest.err conftest.$ac_objext \ 8020 conftest$ac_exeext conftest.$ac_ext 8021fi 8022 8023 8024 CFLAGS="$xorg_testset_save_CFLAGS" 8025 8026 eval supported=\$$cacheid 8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8028$as_echo "$supported" >&6; } 8029 if test "$supported" = "yes" ; then 8030 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 8031 found="yes" 8032 fi 8033 fi 8034 8035 8036 8037 8038 8039 8040 8041 8042 8043 8044 8045 8046 8047 8048 8049xorg_testset_save_CFLAGS="$CFLAGS" 8050 8051if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8052 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8054$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8055if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8056 $as_echo_n "(cached) " >&6 8057else 8058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8059/* end confdefs.h. */ 8060int i; 8061_ACEOF 8062if ac_fn_c_try_compile "$LINENO"; then : 8063 xorg_cv_cc_flag_unknown_warning_option=yes 8064else 8065 xorg_cv_cc_flag_unknown_warning_option=no 8066fi 8067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8068fi 8069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8070$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8071 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8072 CFLAGS="$xorg_testset_save_CFLAGS" 8073fi 8074 8075if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8076 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8077 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8078 fi 8079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8081$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8082if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8083 $as_echo_n "(cached) " >&6 8084else 8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8086/* end confdefs.h. */ 8087int i; 8088_ACEOF 8089if ac_fn_c_try_compile "$LINENO"; then : 8090 xorg_cv_cc_flag_unused_command_line_argument=yes 8091else 8092 xorg_cv_cc_flag_unused_command_line_argument=no 8093fi 8094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8095fi 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8097$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8098 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8099 CFLAGS="$xorg_testset_save_CFLAGS" 8100fi 8101 8102found="no" 8103 8104 if test $found = "no" ; then 8105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8106 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8107 fi 8108 8109 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8111 fi 8112 8113 CFLAGS="$CFLAGS -Werror=array-bounds" 8114 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8116$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8117 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8118 if eval \${$cacheid+:} false; then : 8119 $as_echo_n "(cached) " >&6 8120else 8121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8122/* end confdefs.h. */ 8123int i; 8124int 8125main () 8126{ 8127 8128 ; 8129 return 0; 8130} 8131_ACEOF 8132if ac_fn_c_try_link "$LINENO"; then : 8133 eval $cacheid=yes 8134else 8135 eval $cacheid=no 8136fi 8137rm -f core conftest.err conftest.$ac_objext \ 8138 conftest$ac_exeext conftest.$ac_ext 8139fi 8140 8141 8142 CFLAGS="$xorg_testset_save_CFLAGS" 8143 8144 eval supported=\$$cacheid 8145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8146$as_echo "$supported" >&6; } 8147 if test "$supported" = "yes" ; then 8148 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8149 found="yes" 8150 fi 8151 fi 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167xorg_testset_save_CFLAGS="$CFLAGS" 8168 8169if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8170 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8172$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8173if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8174 $as_echo_n "(cached) " >&6 8175else 8176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8177/* end confdefs.h. */ 8178int i; 8179_ACEOF 8180if ac_fn_c_try_compile "$LINENO"; then : 8181 xorg_cv_cc_flag_unknown_warning_option=yes 8182else 8183 xorg_cv_cc_flag_unknown_warning_option=no 8184fi 8185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8186fi 8187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8188$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8190 CFLAGS="$xorg_testset_save_CFLAGS" 8191fi 8192 8193if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8195 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8196 fi 8197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8199$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8200if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8201 $as_echo_n "(cached) " >&6 8202else 8203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8204/* end confdefs.h. */ 8205int i; 8206_ACEOF 8207if ac_fn_c_try_compile "$LINENO"; then : 8208 xorg_cv_cc_flag_unused_command_line_argument=yes 8209else 8210 xorg_cv_cc_flag_unused_command_line_argument=no 8211fi 8212rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8213fi 8214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8215$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8216 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8217 CFLAGS="$xorg_testset_save_CFLAGS" 8218fi 8219 8220found="no" 8221 8222 if test $found = "no" ; then 8223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8224 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8225 fi 8226 8227 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8229 fi 8230 8231 CFLAGS="$CFLAGS -Werror=write-strings" 8232 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8234$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8235 cacheid=xorg_cv_cc_flag__Werror_write_strings 8236 if eval \${$cacheid+:} false; then : 8237 $as_echo_n "(cached) " >&6 8238else 8239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8240/* end confdefs.h. */ 8241int i; 8242int 8243main () 8244{ 8245 8246 ; 8247 return 0; 8248} 8249_ACEOF 8250if ac_fn_c_try_link "$LINENO"; then : 8251 eval $cacheid=yes 8252else 8253 eval $cacheid=no 8254fi 8255rm -f core conftest.err conftest.$ac_objext \ 8256 conftest$ac_exeext conftest.$ac_ext 8257fi 8258 8259 8260 CFLAGS="$xorg_testset_save_CFLAGS" 8261 8262 eval supported=\$$cacheid 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8264$as_echo "$supported" >&6; } 8265 if test "$supported" = "yes" ; then 8266 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8267 found="yes" 8268 fi 8269 fi 8270 8271 8272 8273 8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285xorg_testset_save_CFLAGS="$CFLAGS" 8286 8287if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8288 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8290$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8291if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8292 $as_echo_n "(cached) " >&6 8293else 8294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8295/* end confdefs.h. */ 8296int i; 8297_ACEOF 8298if ac_fn_c_try_compile "$LINENO"; then : 8299 xorg_cv_cc_flag_unknown_warning_option=yes 8300else 8301 xorg_cv_cc_flag_unknown_warning_option=no 8302fi 8303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8304fi 8305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8306$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8307 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8308 CFLAGS="$xorg_testset_save_CFLAGS" 8309fi 8310 8311if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8312 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8313 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8314 fi 8315 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8317$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8318if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320else 8321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8322/* end confdefs.h. */ 8323int i; 8324_ACEOF 8325if ac_fn_c_try_compile "$LINENO"; then : 8326 xorg_cv_cc_flag_unused_command_line_argument=yes 8327else 8328 xorg_cv_cc_flag_unused_command_line_argument=no 8329fi 8330rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8331fi 8332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8333$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8334 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8335 CFLAGS="$xorg_testset_save_CFLAGS" 8336fi 8337 8338found="no" 8339 8340 if test $found = "no" ; then 8341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8342 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8343 fi 8344 8345 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8347 fi 8348 8349 CFLAGS="$CFLAGS -Werror=address" 8350 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8352$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8353 cacheid=xorg_cv_cc_flag__Werror_address 8354 if eval \${$cacheid+:} false; then : 8355 $as_echo_n "(cached) " >&6 8356else 8357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8358/* end confdefs.h. */ 8359int i; 8360int 8361main () 8362{ 8363 8364 ; 8365 return 0; 8366} 8367_ACEOF 8368if ac_fn_c_try_link "$LINENO"; then : 8369 eval $cacheid=yes 8370else 8371 eval $cacheid=no 8372fi 8373rm -f core conftest.err conftest.$ac_objext \ 8374 conftest$ac_exeext conftest.$ac_ext 8375fi 8376 8377 8378 CFLAGS="$xorg_testset_save_CFLAGS" 8379 8380 eval supported=\$$cacheid 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8382$as_echo "$supported" >&6; } 8383 if test "$supported" = "yes" ; then 8384 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8385 found="yes" 8386 fi 8387 fi 8388 8389 8390 8391 8392 8393 8394 8395 8396 8397 8398 8399 8400 8401 8402 8403xorg_testset_save_CFLAGS="$CFLAGS" 8404 8405if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8406 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8408$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8409if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8410 $as_echo_n "(cached) " >&6 8411else 8412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8413/* end confdefs.h. */ 8414int i; 8415_ACEOF 8416if ac_fn_c_try_compile "$LINENO"; then : 8417 xorg_cv_cc_flag_unknown_warning_option=yes 8418else 8419 xorg_cv_cc_flag_unknown_warning_option=no 8420fi 8421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8422fi 8423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8424$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8425 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8426 CFLAGS="$xorg_testset_save_CFLAGS" 8427fi 8428 8429if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8431 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8432 fi 8433 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8435$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8436if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8437 $as_echo_n "(cached) " >&6 8438else 8439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8440/* end confdefs.h. */ 8441int i; 8442_ACEOF 8443if ac_fn_c_try_compile "$LINENO"; then : 8444 xorg_cv_cc_flag_unused_command_line_argument=yes 8445else 8446 xorg_cv_cc_flag_unused_command_line_argument=no 8447fi 8448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8449fi 8450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8451$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8452 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8453 CFLAGS="$xorg_testset_save_CFLAGS" 8454fi 8455 8456found="no" 8457 8458 if test $found = "no" ; then 8459 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8460 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8461 fi 8462 8463 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8465 fi 8466 8467 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8468 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8470$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8471 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8472 if eval \${$cacheid+:} false; then : 8473 $as_echo_n "(cached) " >&6 8474else 8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8476/* end confdefs.h. */ 8477int i; 8478int 8479main () 8480{ 8481 8482 ; 8483 return 0; 8484} 8485_ACEOF 8486if ac_fn_c_try_link "$LINENO"; then : 8487 eval $cacheid=yes 8488else 8489 eval $cacheid=no 8490fi 8491rm -f core conftest.err conftest.$ac_objext \ 8492 conftest$ac_exeext conftest.$ac_ext 8493fi 8494 8495 8496 CFLAGS="$xorg_testset_save_CFLAGS" 8497 8498 eval supported=\$$cacheid 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8500$as_echo "$supported" >&6; } 8501 if test "$supported" = "yes" ; then 8502 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8503 found="yes" 8504 fi 8505 fi 8506 8507 if test $found = "no" ; then 8508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8509 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8510 fi 8511 8512 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8513 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8514 fi 8515 8516 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8517 8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8519$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8520 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8521 if eval \${$cacheid+:} false; then : 8522 $as_echo_n "(cached) " >&6 8523else 8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8525/* end confdefs.h. */ 8526int i; 8527int 8528main () 8529{ 8530 8531 ; 8532 return 0; 8533} 8534_ACEOF 8535if ac_fn_c_try_link "$LINENO"; then : 8536 eval $cacheid=yes 8537else 8538 eval $cacheid=no 8539fi 8540rm -f core conftest.err conftest.$ac_objext \ 8541 conftest$ac_exeext conftest.$ac_ext 8542fi 8543 8544 8545 CFLAGS="$xorg_testset_save_CFLAGS" 8546 8547 eval supported=\$$cacheid 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8549$as_echo "$supported" >&6; } 8550 if test "$supported" = "yes" ; then 8551 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8552 found="yes" 8553 fi 8554 fi 8555 8556 8557 8558 8559 8560 8561 8562 8563 8564 8565 8566 8567 8568 8569 8570xorg_testset_save_CFLAGS="$CFLAGS" 8571 8572if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8573 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8575$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8576if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8577 $as_echo_n "(cached) " >&6 8578else 8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8580/* end confdefs.h. */ 8581int i; 8582_ACEOF 8583if ac_fn_c_try_compile "$LINENO"; then : 8584 xorg_cv_cc_flag_unknown_warning_option=yes 8585else 8586 xorg_cv_cc_flag_unknown_warning_option=no 8587fi 8588rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8589fi 8590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8591$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8593 CFLAGS="$xorg_testset_save_CFLAGS" 8594fi 8595 8596if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8598 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8599 fi 8600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8602$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8603if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8604 $as_echo_n "(cached) " >&6 8605else 8606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8607/* end confdefs.h. */ 8608int i; 8609_ACEOF 8610if ac_fn_c_try_compile "$LINENO"; then : 8611 xorg_cv_cc_flag_unused_command_line_argument=yes 8612else 8613 xorg_cv_cc_flag_unused_command_line_argument=no 8614fi 8615rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8616fi 8617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8618$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8620 CFLAGS="$xorg_testset_save_CFLAGS" 8621fi 8622 8623found="no" 8624 8625 if test $found = "no" ; then 8626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8627 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8628 fi 8629 8630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8632 fi 8633 8634 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8635 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8637$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8638 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8639 if eval \${$cacheid+:} false; then : 8640 $as_echo_n "(cached) " >&6 8641else 8642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8643/* end confdefs.h. */ 8644int i; 8645int 8646main () 8647{ 8648 8649 ; 8650 return 0; 8651} 8652_ACEOF 8653if ac_fn_c_try_link "$LINENO"; then : 8654 eval $cacheid=yes 8655else 8656 eval $cacheid=no 8657fi 8658rm -f core conftest.err conftest.$ac_objext \ 8659 conftest$ac_exeext conftest.$ac_ext 8660fi 8661 8662 8663 CFLAGS="$xorg_testset_save_CFLAGS" 8664 8665 eval supported=\$$cacheid 8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8667$as_echo "$supported" >&6; } 8668 if test "$supported" = "yes" ; then 8669 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8670 found="yes" 8671 fi 8672 fi 8673 8674 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8675else 8676{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&5 8677$as_echo "$as_me: WARNING: You have chosen not to turn some select compiler warnings into errors. This should not be necessary. Please report why you needed to do so in a bug report at $PACKAGE_BUGREPORT" >&2;} 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 8690 8691xorg_testset_save_CFLAGS="$CFLAGS" 8692 8693if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8694 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8696$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8697if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8698 $as_echo_n "(cached) " >&6 8699else 8700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8701/* end confdefs.h. */ 8702int i; 8703_ACEOF 8704if ac_fn_c_try_compile "$LINENO"; then : 8705 xorg_cv_cc_flag_unknown_warning_option=yes 8706else 8707 xorg_cv_cc_flag_unknown_warning_option=no 8708fi 8709rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8710fi 8711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8712$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8713 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8714 CFLAGS="$xorg_testset_save_CFLAGS" 8715fi 8716 8717if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8718 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8719 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8720 fi 8721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8723$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8724if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8725 $as_echo_n "(cached) " >&6 8726else 8727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8728/* end confdefs.h. */ 8729int i; 8730_ACEOF 8731if ac_fn_c_try_compile "$LINENO"; then : 8732 xorg_cv_cc_flag_unused_command_line_argument=yes 8733else 8734 xorg_cv_cc_flag_unused_command_line_argument=no 8735fi 8736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8737fi 8738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8739$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8740 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8741 CFLAGS="$xorg_testset_save_CFLAGS" 8742fi 8743 8744found="no" 8745 8746 if test $found = "no" ; then 8747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8748 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8749 fi 8750 8751 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8753 fi 8754 8755 CFLAGS="$CFLAGS -Wimplicit" 8756 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8758$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8759 cacheid=xorg_cv_cc_flag__Wimplicit 8760 if eval \${$cacheid+:} false; then : 8761 $as_echo_n "(cached) " >&6 8762else 8763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8764/* end confdefs.h. */ 8765int i; 8766int 8767main () 8768{ 8769 8770 ; 8771 return 0; 8772} 8773_ACEOF 8774if ac_fn_c_try_link "$LINENO"; then : 8775 eval $cacheid=yes 8776else 8777 eval $cacheid=no 8778fi 8779rm -f core conftest.err conftest.$ac_objext \ 8780 conftest$ac_exeext conftest.$ac_ext 8781fi 8782 8783 8784 CFLAGS="$xorg_testset_save_CFLAGS" 8785 8786 eval supported=\$$cacheid 8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8788$as_echo "$supported" >&6; } 8789 if test "$supported" = "yes" ; then 8790 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8791 found="yes" 8792 fi 8793 fi 8794 8795 8796 8797 8798 8799 8800 8801 8802 8803 8804 8805 8806 8807 8808 8809xorg_testset_save_CFLAGS="$CFLAGS" 8810 8811if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8812 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8814$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8815if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8816 $as_echo_n "(cached) " >&6 8817else 8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8819/* end confdefs.h. */ 8820int i; 8821_ACEOF 8822if ac_fn_c_try_compile "$LINENO"; then : 8823 xorg_cv_cc_flag_unknown_warning_option=yes 8824else 8825 xorg_cv_cc_flag_unknown_warning_option=no 8826fi 8827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8828fi 8829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8830$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8831 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8832 CFLAGS="$xorg_testset_save_CFLAGS" 8833fi 8834 8835if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8837 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8838 fi 8839 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8841$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8842if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8843 $as_echo_n "(cached) " >&6 8844else 8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8846/* end confdefs.h. */ 8847int i; 8848_ACEOF 8849if ac_fn_c_try_compile "$LINENO"; then : 8850 xorg_cv_cc_flag_unused_command_line_argument=yes 8851else 8852 xorg_cv_cc_flag_unused_command_line_argument=no 8853fi 8854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8855fi 8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8857$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8858 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8859 CFLAGS="$xorg_testset_save_CFLAGS" 8860fi 8861 8862found="no" 8863 8864 if test $found = "no" ; then 8865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8866 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8867 fi 8868 8869 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8871 fi 8872 8873 CFLAGS="$CFLAGS -Wnonnull" 8874 8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8876$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8877 cacheid=xorg_cv_cc_flag__Wnonnull 8878 if eval \${$cacheid+:} false; then : 8879 $as_echo_n "(cached) " >&6 8880else 8881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8882/* end confdefs.h. */ 8883int i; 8884int 8885main () 8886{ 8887 8888 ; 8889 return 0; 8890} 8891_ACEOF 8892if ac_fn_c_try_link "$LINENO"; then : 8893 eval $cacheid=yes 8894else 8895 eval $cacheid=no 8896fi 8897rm -f core conftest.err conftest.$ac_objext \ 8898 conftest$ac_exeext conftest.$ac_ext 8899fi 8900 8901 8902 CFLAGS="$xorg_testset_save_CFLAGS" 8903 8904 eval supported=\$$cacheid 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8906$as_echo "$supported" >&6; } 8907 if test "$supported" = "yes" ; then 8908 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8909 found="yes" 8910 fi 8911 fi 8912 8913 8914 8915 8916 8917 8918 8919 8920 8921 8922 8923 8924 8925 8926 8927xorg_testset_save_CFLAGS="$CFLAGS" 8928 8929if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8930 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8932$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8933if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8934 $as_echo_n "(cached) " >&6 8935else 8936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8937/* end confdefs.h. */ 8938int i; 8939_ACEOF 8940if ac_fn_c_try_compile "$LINENO"; then : 8941 xorg_cv_cc_flag_unknown_warning_option=yes 8942else 8943 xorg_cv_cc_flag_unknown_warning_option=no 8944fi 8945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8946fi 8947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8948$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8949 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8950 CFLAGS="$xorg_testset_save_CFLAGS" 8951fi 8952 8953if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8955 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8956 fi 8957 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8959$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8960if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8961 $as_echo_n "(cached) " >&6 8962else 8963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8964/* end confdefs.h. */ 8965int i; 8966_ACEOF 8967if ac_fn_c_try_compile "$LINENO"; then : 8968 xorg_cv_cc_flag_unused_command_line_argument=yes 8969else 8970 xorg_cv_cc_flag_unused_command_line_argument=no 8971fi 8972rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8973fi 8974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8975$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8977 CFLAGS="$xorg_testset_save_CFLAGS" 8978fi 8979 8980found="no" 8981 8982 if test $found = "no" ; then 8983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8984 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8985 fi 8986 8987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8989 fi 8990 8991 CFLAGS="$CFLAGS -Winit-self" 8992 8993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8994$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8995 cacheid=xorg_cv_cc_flag__Winit_self 8996 if eval \${$cacheid+:} false; then : 8997 $as_echo_n "(cached) " >&6 8998else 8999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9000/* end confdefs.h. */ 9001int i; 9002int 9003main () 9004{ 9005 9006 ; 9007 return 0; 9008} 9009_ACEOF 9010if ac_fn_c_try_link "$LINENO"; then : 9011 eval $cacheid=yes 9012else 9013 eval $cacheid=no 9014fi 9015rm -f core conftest.err conftest.$ac_objext \ 9016 conftest$ac_exeext conftest.$ac_ext 9017fi 9018 9019 9020 CFLAGS="$xorg_testset_save_CFLAGS" 9021 9022 eval supported=\$$cacheid 9023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9024$as_echo "$supported" >&6; } 9025 if test "$supported" = "yes" ; then 9026 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 9027 found="yes" 9028 fi 9029 fi 9030 9031 9032 9033 9034 9035 9036 9037 9038 9039 9040 9041 9042 9043 9044 9045xorg_testset_save_CFLAGS="$CFLAGS" 9046 9047if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9048 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9050$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9051if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9052 $as_echo_n "(cached) " >&6 9053else 9054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9055/* end confdefs.h. */ 9056int i; 9057_ACEOF 9058if ac_fn_c_try_compile "$LINENO"; then : 9059 xorg_cv_cc_flag_unknown_warning_option=yes 9060else 9061 xorg_cv_cc_flag_unknown_warning_option=no 9062fi 9063rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9064fi 9065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9066$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9068 CFLAGS="$xorg_testset_save_CFLAGS" 9069fi 9070 9071if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9073 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9074 fi 9075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9077$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9078if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9079 $as_echo_n "(cached) " >&6 9080else 9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9082/* end confdefs.h. */ 9083int i; 9084_ACEOF 9085if ac_fn_c_try_compile "$LINENO"; then : 9086 xorg_cv_cc_flag_unused_command_line_argument=yes 9087else 9088 xorg_cv_cc_flag_unused_command_line_argument=no 9089fi 9090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9091fi 9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9093$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9095 CFLAGS="$xorg_testset_save_CFLAGS" 9096fi 9097 9098found="no" 9099 9100 if test $found = "no" ; then 9101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9102 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9103 fi 9104 9105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9107 fi 9108 9109 CFLAGS="$CFLAGS -Wmain" 9110 9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9112$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9113 cacheid=xorg_cv_cc_flag__Wmain 9114 if eval \${$cacheid+:} false; then : 9115 $as_echo_n "(cached) " >&6 9116else 9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9118/* end confdefs.h. */ 9119int i; 9120int 9121main () 9122{ 9123 9124 ; 9125 return 0; 9126} 9127_ACEOF 9128if ac_fn_c_try_link "$LINENO"; then : 9129 eval $cacheid=yes 9130else 9131 eval $cacheid=no 9132fi 9133rm -f core conftest.err conftest.$ac_objext \ 9134 conftest$ac_exeext conftest.$ac_ext 9135fi 9136 9137 9138 CFLAGS="$xorg_testset_save_CFLAGS" 9139 9140 eval supported=\$$cacheid 9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9142$as_echo "$supported" >&6; } 9143 if test "$supported" = "yes" ; then 9144 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9145 found="yes" 9146 fi 9147 fi 9148 9149 9150 9151 9152 9153 9154 9155 9156 9157 9158 9159 9160 9161 9162 9163xorg_testset_save_CFLAGS="$CFLAGS" 9164 9165if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9166 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9168$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9169if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9170 $as_echo_n "(cached) " >&6 9171else 9172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9173/* end confdefs.h. */ 9174int i; 9175_ACEOF 9176if ac_fn_c_try_compile "$LINENO"; then : 9177 xorg_cv_cc_flag_unknown_warning_option=yes 9178else 9179 xorg_cv_cc_flag_unknown_warning_option=no 9180fi 9181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9182fi 9183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9184$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9185 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9186 CFLAGS="$xorg_testset_save_CFLAGS" 9187fi 9188 9189if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9191 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9192 fi 9193 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9195$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9196if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9197 $as_echo_n "(cached) " >&6 9198else 9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9200/* end confdefs.h. */ 9201int i; 9202_ACEOF 9203if ac_fn_c_try_compile "$LINENO"; then : 9204 xorg_cv_cc_flag_unused_command_line_argument=yes 9205else 9206 xorg_cv_cc_flag_unused_command_line_argument=no 9207fi 9208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9209fi 9210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9211$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9212 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9213 CFLAGS="$xorg_testset_save_CFLAGS" 9214fi 9215 9216found="no" 9217 9218 if test $found = "no" ; then 9219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9220 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9221 fi 9222 9223 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9224 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9225 fi 9226 9227 CFLAGS="$CFLAGS -Wmissing-braces" 9228 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9230$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9231 cacheid=xorg_cv_cc_flag__Wmissing_braces 9232 if eval \${$cacheid+:} false; then : 9233 $as_echo_n "(cached) " >&6 9234else 9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236/* end confdefs.h. */ 9237int i; 9238int 9239main () 9240{ 9241 9242 ; 9243 return 0; 9244} 9245_ACEOF 9246if ac_fn_c_try_link "$LINENO"; then : 9247 eval $cacheid=yes 9248else 9249 eval $cacheid=no 9250fi 9251rm -f core conftest.err conftest.$ac_objext \ 9252 conftest$ac_exeext conftest.$ac_ext 9253fi 9254 9255 9256 CFLAGS="$xorg_testset_save_CFLAGS" 9257 9258 eval supported=\$$cacheid 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9260$as_echo "$supported" >&6; } 9261 if test "$supported" = "yes" ; then 9262 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9263 found="yes" 9264 fi 9265 fi 9266 9267 9268 9269 9270 9271 9272 9273 9274 9275 9276 9277 9278 9279 9280 9281xorg_testset_save_CFLAGS="$CFLAGS" 9282 9283if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9284 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9286$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9287if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9288 $as_echo_n "(cached) " >&6 9289else 9290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9291/* end confdefs.h. */ 9292int i; 9293_ACEOF 9294if ac_fn_c_try_compile "$LINENO"; then : 9295 xorg_cv_cc_flag_unknown_warning_option=yes 9296else 9297 xorg_cv_cc_flag_unknown_warning_option=no 9298fi 9299rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9300fi 9301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9302$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9303 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9304 CFLAGS="$xorg_testset_save_CFLAGS" 9305fi 9306 9307if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9309 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9310 fi 9311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9313$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9314if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9315 $as_echo_n "(cached) " >&6 9316else 9317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9318/* end confdefs.h. */ 9319int i; 9320_ACEOF 9321if ac_fn_c_try_compile "$LINENO"; then : 9322 xorg_cv_cc_flag_unused_command_line_argument=yes 9323else 9324 xorg_cv_cc_flag_unused_command_line_argument=no 9325fi 9326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9327fi 9328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9329$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9330 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9331 CFLAGS="$xorg_testset_save_CFLAGS" 9332fi 9333 9334found="no" 9335 9336 if test $found = "no" ; then 9337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9338 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9339 fi 9340 9341 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9342 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9343 fi 9344 9345 CFLAGS="$CFLAGS -Wsequence-point" 9346 9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9348$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9349 cacheid=xorg_cv_cc_flag__Wsequence_point 9350 if eval \${$cacheid+:} false; then : 9351 $as_echo_n "(cached) " >&6 9352else 9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9354/* end confdefs.h. */ 9355int i; 9356int 9357main () 9358{ 9359 9360 ; 9361 return 0; 9362} 9363_ACEOF 9364if ac_fn_c_try_link "$LINENO"; then : 9365 eval $cacheid=yes 9366else 9367 eval $cacheid=no 9368fi 9369rm -f core conftest.err conftest.$ac_objext \ 9370 conftest$ac_exeext conftest.$ac_ext 9371fi 9372 9373 9374 CFLAGS="$xorg_testset_save_CFLAGS" 9375 9376 eval supported=\$$cacheid 9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9378$as_echo "$supported" >&6; } 9379 if test "$supported" = "yes" ; then 9380 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9381 found="yes" 9382 fi 9383 fi 9384 9385 9386 9387 9388 9389 9390 9391 9392 9393 9394 9395 9396 9397 9398 9399xorg_testset_save_CFLAGS="$CFLAGS" 9400 9401if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9402 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9404$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9405if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9406 $as_echo_n "(cached) " >&6 9407else 9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9409/* end confdefs.h. */ 9410int i; 9411_ACEOF 9412if ac_fn_c_try_compile "$LINENO"; then : 9413 xorg_cv_cc_flag_unknown_warning_option=yes 9414else 9415 xorg_cv_cc_flag_unknown_warning_option=no 9416fi 9417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9418fi 9419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9420$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9421 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9422 CFLAGS="$xorg_testset_save_CFLAGS" 9423fi 9424 9425if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9427 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9428 fi 9429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9431$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9432if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9433 $as_echo_n "(cached) " >&6 9434else 9435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9436/* end confdefs.h. */ 9437int i; 9438_ACEOF 9439if ac_fn_c_try_compile "$LINENO"; then : 9440 xorg_cv_cc_flag_unused_command_line_argument=yes 9441else 9442 xorg_cv_cc_flag_unused_command_line_argument=no 9443fi 9444rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9445fi 9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9447$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9448 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9449 CFLAGS="$xorg_testset_save_CFLAGS" 9450fi 9451 9452found="no" 9453 9454 if test $found = "no" ; then 9455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9456 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9457 fi 9458 9459 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9460 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9461 fi 9462 9463 CFLAGS="$CFLAGS -Wreturn-type" 9464 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9466$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9467 cacheid=xorg_cv_cc_flag__Wreturn_type 9468 if eval \${$cacheid+:} false; then : 9469 $as_echo_n "(cached) " >&6 9470else 9471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9472/* end confdefs.h. */ 9473int i; 9474int 9475main () 9476{ 9477 9478 ; 9479 return 0; 9480} 9481_ACEOF 9482if ac_fn_c_try_link "$LINENO"; then : 9483 eval $cacheid=yes 9484else 9485 eval $cacheid=no 9486fi 9487rm -f core conftest.err conftest.$ac_objext \ 9488 conftest$ac_exeext conftest.$ac_ext 9489fi 9490 9491 9492 CFLAGS="$xorg_testset_save_CFLAGS" 9493 9494 eval supported=\$$cacheid 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9496$as_echo "$supported" >&6; } 9497 if test "$supported" = "yes" ; then 9498 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9499 found="yes" 9500 fi 9501 fi 9502 9503 9504 9505 9506 9507 9508 9509 9510 9511 9512 9513 9514 9515 9516 9517xorg_testset_save_CFLAGS="$CFLAGS" 9518 9519if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9520 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9522$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9523if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9524 $as_echo_n "(cached) " >&6 9525else 9526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9527/* end confdefs.h. */ 9528int i; 9529_ACEOF 9530if ac_fn_c_try_compile "$LINENO"; then : 9531 xorg_cv_cc_flag_unknown_warning_option=yes 9532else 9533 xorg_cv_cc_flag_unknown_warning_option=no 9534fi 9535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9536fi 9537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9538$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9539 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9540 CFLAGS="$xorg_testset_save_CFLAGS" 9541fi 9542 9543if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9544 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9545 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9546 fi 9547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9549$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9550if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9551 $as_echo_n "(cached) " >&6 9552else 9553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9554/* end confdefs.h. */ 9555int i; 9556_ACEOF 9557if ac_fn_c_try_compile "$LINENO"; then : 9558 xorg_cv_cc_flag_unused_command_line_argument=yes 9559else 9560 xorg_cv_cc_flag_unused_command_line_argument=no 9561fi 9562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9563fi 9564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9565$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9566 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9567 CFLAGS="$xorg_testset_save_CFLAGS" 9568fi 9569 9570found="no" 9571 9572 if test $found = "no" ; then 9573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9575 fi 9576 9577 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9578 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9579 fi 9580 9581 CFLAGS="$CFLAGS -Wtrigraphs" 9582 9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9584$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9585 cacheid=xorg_cv_cc_flag__Wtrigraphs 9586 if eval \${$cacheid+:} false; then : 9587 $as_echo_n "(cached) " >&6 9588else 9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9590/* end confdefs.h. */ 9591int i; 9592int 9593main () 9594{ 9595 9596 ; 9597 return 0; 9598} 9599_ACEOF 9600if ac_fn_c_try_link "$LINENO"; then : 9601 eval $cacheid=yes 9602else 9603 eval $cacheid=no 9604fi 9605rm -f core conftest.err conftest.$ac_objext \ 9606 conftest$ac_exeext conftest.$ac_ext 9607fi 9608 9609 9610 CFLAGS="$xorg_testset_save_CFLAGS" 9611 9612 eval supported=\$$cacheid 9613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9614$as_echo "$supported" >&6; } 9615 if test "$supported" = "yes" ; then 9616 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9617 found="yes" 9618 fi 9619 fi 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635xorg_testset_save_CFLAGS="$CFLAGS" 9636 9637if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9638 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9640$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9641if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9642 $as_echo_n "(cached) " >&6 9643else 9644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9645/* end confdefs.h. */ 9646int i; 9647_ACEOF 9648if ac_fn_c_try_compile "$LINENO"; then : 9649 xorg_cv_cc_flag_unknown_warning_option=yes 9650else 9651 xorg_cv_cc_flag_unknown_warning_option=no 9652fi 9653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9654fi 9655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9656$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9657 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9658 CFLAGS="$xorg_testset_save_CFLAGS" 9659fi 9660 9661if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9662 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9663 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9664 fi 9665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9667$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9668if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9669 $as_echo_n "(cached) " >&6 9670else 9671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9672/* end confdefs.h. */ 9673int i; 9674_ACEOF 9675if ac_fn_c_try_compile "$LINENO"; then : 9676 xorg_cv_cc_flag_unused_command_line_argument=yes 9677else 9678 xorg_cv_cc_flag_unused_command_line_argument=no 9679fi 9680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9681fi 9682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9683$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9684 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9685 CFLAGS="$xorg_testset_save_CFLAGS" 9686fi 9687 9688found="no" 9689 9690 if test $found = "no" ; then 9691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9692 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9693 fi 9694 9695 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9696 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9697 fi 9698 9699 CFLAGS="$CFLAGS -Warray-bounds" 9700 9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9702$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9703 cacheid=xorg_cv_cc_flag__Warray_bounds 9704 if eval \${$cacheid+:} false; then : 9705 $as_echo_n "(cached) " >&6 9706else 9707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9708/* end confdefs.h. */ 9709int i; 9710int 9711main () 9712{ 9713 9714 ; 9715 return 0; 9716} 9717_ACEOF 9718if ac_fn_c_try_link "$LINENO"; then : 9719 eval $cacheid=yes 9720else 9721 eval $cacheid=no 9722fi 9723rm -f core conftest.err conftest.$ac_objext \ 9724 conftest$ac_exeext conftest.$ac_ext 9725fi 9726 9727 9728 CFLAGS="$xorg_testset_save_CFLAGS" 9729 9730 eval supported=\$$cacheid 9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9732$as_echo "$supported" >&6; } 9733 if test "$supported" = "yes" ; then 9734 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9735 found="yes" 9736 fi 9737 fi 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753xorg_testset_save_CFLAGS="$CFLAGS" 9754 9755if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9756 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9758$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9759if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9760 $as_echo_n "(cached) " >&6 9761else 9762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9763/* end confdefs.h. */ 9764int i; 9765_ACEOF 9766if ac_fn_c_try_compile "$LINENO"; then : 9767 xorg_cv_cc_flag_unknown_warning_option=yes 9768else 9769 xorg_cv_cc_flag_unknown_warning_option=no 9770fi 9771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9772fi 9773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9774$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9775 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9776 CFLAGS="$xorg_testset_save_CFLAGS" 9777fi 9778 9779if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9780 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9781 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9782 fi 9783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9785$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9786if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9787 $as_echo_n "(cached) " >&6 9788else 9789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9790/* end confdefs.h. */ 9791int i; 9792_ACEOF 9793if ac_fn_c_try_compile "$LINENO"; then : 9794 xorg_cv_cc_flag_unused_command_line_argument=yes 9795else 9796 xorg_cv_cc_flag_unused_command_line_argument=no 9797fi 9798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9799fi 9800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9801$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9802 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9803 CFLAGS="$xorg_testset_save_CFLAGS" 9804fi 9805 9806found="no" 9807 9808 if test $found = "no" ; then 9809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9810 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9811 fi 9812 9813 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9814 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9815 fi 9816 9817 CFLAGS="$CFLAGS -Wwrite-strings" 9818 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9820$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9821 cacheid=xorg_cv_cc_flag__Wwrite_strings 9822 if eval \${$cacheid+:} false; then : 9823 $as_echo_n "(cached) " >&6 9824else 9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9826/* end confdefs.h. */ 9827int i; 9828int 9829main () 9830{ 9831 9832 ; 9833 return 0; 9834} 9835_ACEOF 9836if ac_fn_c_try_link "$LINENO"; then : 9837 eval $cacheid=yes 9838else 9839 eval $cacheid=no 9840fi 9841rm -f core conftest.err conftest.$ac_objext \ 9842 conftest$ac_exeext conftest.$ac_ext 9843fi 9844 9845 9846 CFLAGS="$xorg_testset_save_CFLAGS" 9847 9848 eval supported=\$$cacheid 9849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9850$as_echo "$supported" >&6; } 9851 if test "$supported" = "yes" ; then 9852 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9853 found="yes" 9854 fi 9855 fi 9856 9857 9858 9859 9860 9861 9862 9863 9864 9865 9866 9867 9868 9869 9870 9871xorg_testset_save_CFLAGS="$CFLAGS" 9872 9873if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9874 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9876$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9877if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9878 $as_echo_n "(cached) " >&6 9879else 9880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9881/* end confdefs.h. */ 9882int i; 9883_ACEOF 9884if ac_fn_c_try_compile "$LINENO"; then : 9885 xorg_cv_cc_flag_unknown_warning_option=yes 9886else 9887 xorg_cv_cc_flag_unknown_warning_option=no 9888fi 9889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9890fi 9891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9892$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9893 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9894 CFLAGS="$xorg_testset_save_CFLAGS" 9895fi 9896 9897if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9898 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9899 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9900 fi 9901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9903$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9904if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9905 $as_echo_n "(cached) " >&6 9906else 9907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9908/* end confdefs.h. */ 9909int i; 9910_ACEOF 9911if ac_fn_c_try_compile "$LINENO"; then : 9912 xorg_cv_cc_flag_unused_command_line_argument=yes 9913else 9914 xorg_cv_cc_flag_unused_command_line_argument=no 9915fi 9916rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9917fi 9918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9919$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9920 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9921 CFLAGS="$xorg_testset_save_CFLAGS" 9922fi 9923 9924found="no" 9925 9926 if test $found = "no" ; then 9927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9928 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9929 fi 9930 9931 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9932 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9933 fi 9934 9935 CFLAGS="$CFLAGS -Waddress" 9936 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9938$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9939 cacheid=xorg_cv_cc_flag__Waddress 9940 if eval \${$cacheid+:} false; then : 9941 $as_echo_n "(cached) " >&6 9942else 9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9944/* end confdefs.h. */ 9945int i; 9946int 9947main () 9948{ 9949 9950 ; 9951 return 0; 9952} 9953_ACEOF 9954if ac_fn_c_try_link "$LINENO"; then : 9955 eval $cacheid=yes 9956else 9957 eval $cacheid=no 9958fi 9959rm -f core conftest.err conftest.$ac_objext \ 9960 conftest$ac_exeext conftest.$ac_ext 9961fi 9962 9963 9964 CFLAGS="$xorg_testset_save_CFLAGS" 9965 9966 eval supported=\$$cacheid 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9968$as_echo "$supported" >&6; } 9969 if test "$supported" = "yes" ; then 9970 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9971 found="yes" 9972 fi 9973 fi 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 9988 9989xorg_testset_save_CFLAGS="$CFLAGS" 9990 9991if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9992 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9994$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9995if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9996 $as_echo_n "(cached) " >&6 9997else 9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9999/* end confdefs.h. */ 10000int i; 10001_ACEOF 10002if ac_fn_c_try_compile "$LINENO"; then : 10003 xorg_cv_cc_flag_unknown_warning_option=yes 10004else 10005 xorg_cv_cc_flag_unknown_warning_option=no 10006fi 10007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10008fi 10009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10010$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10011 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10012 CFLAGS="$xorg_testset_save_CFLAGS" 10013fi 10014 10015if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10016 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10017 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10018 fi 10019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10021$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10022if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10023 $as_echo_n "(cached) " >&6 10024else 10025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10026/* end confdefs.h. */ 10027int i; 10028_ACEOF 10029if ac_fn_c_try_compile "$LINENO"; then : 10030 xorg_cv_cc_flag_unused_command_line_argument=yes 10031else 10032 xorg_cv_cc_flag_unused_command_line_argument=no 10033fi 10034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10035fi 10036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10037$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10038 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10039 CFLAGS="$xorg_testset_save_CFLAGS" 10040fi 10041 10042found="no" 10043 10044 if test $found = "no" ; then 10045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10046 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10047 fi 10048 10049 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10051 fi 10052 10053 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 10054 10055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 10056$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 10057 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 10058 if eval \${$cacheid+:} false; then : 10059 $as_echo_n "(cached) " >&6 10060else 10061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10062/* end confdefs.h. */ 10063int i; 10064int 10065main () 10066{ 10067 10068 ; 10069 return 0; 10070} 10071_ACEOF 10072if ac_fn_c_try_link "$LINENO"; then : 10073 eval $cacheid=yes 10074else 10075 eval $cacheid=no 10076fi 10077rm -f core conftest.err conftest.$ac_objext \ 10078 conftest$ac_exeext conftest.$ac_ext 10079fi 10080 10081 10082 CFLAGS="$xorg_testset_save_CFLAGS" 10083 10084 eval supported=\$$cacheid 10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10086$as_echo "$supported" >&6; } 10087 if test "$supported" = "yes" ; then 10088 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10089 found="yes" 10090 fi 10091 fi 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107xorg_testset_save_CFLAGS="$CFLAGS" 10108 10109if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10110 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10112$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10113if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115else 10116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10117/* end confdefs.h. */ 10118int i; 10119_ACEOF 10120if ac_fn_c_try_compile "$LINENO"; then : 10121 xorg_cv_cc_flag_unknown_warning_option=yes 10122else 10123 xorg_cv_cc_flag_unknown_warning_option=no 10124fi 10125rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10126fi 10127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10128$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10129 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10130 CFLAGS="$xorg_testset_save_CFLAGS" 10131fi 10132 10133if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10134 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10135 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10136 fi 10137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10139$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10140if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10141 $as_echo_n "(cached) " >&6 10142else 10143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10144/* end confdefs.h. */ 10145int i; 10146_ACEOF 10147if ac_fn_c_try_compile "$LINENO"; then : 10148 xorg_cv_cc_flag_unused_command_line_argument=yes 10149else 10150 xorg_cv_cc_flag_unused_command_line_argument=no 10151fi 10152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10153fi 10154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10155$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10156 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10157 CFLAGS="$xorg_testset_save_CFLAGS" 10158fi 10159 10160found="no" 10161 10162 if test $found = "no" ; then 10163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10164 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10165 fi 10166 10167 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10168 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10169 fi 10170 10171 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10172 10173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10174$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10175 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10176 if eval \${$cacheid+:} false; then : 10177 $as_echo_n "(cached) " >&6 10178else 10179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10180/* end confdefs.h. */ 10181int i; 10182int 10183main () 10184{ 10185 10186 ; 10187 return 0; 10188} 10189_ACEOF 10190if ac_fn_c_try_link "$LINENO"; then : 10191 eval $cacheid=yes 10192else 10193 eval $cacheid=no 10194fi 10195rm -f core conftest.err conftest.$ac_objext \ 10196 conftest$ac_exeext conftest.$ac_ext 10197fi 10198 10199 10200 CFLAGS="$xorg_testset_save_CFLAGS" 10201 10202 eval supported=\$$cacheid 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10204$as_echo "$supported" >&6; } 10205 if test "$supported" = "yes" ; then 10206 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10207 found="yes" 10208 fi 10209 fi 10210 10211 10212fi 10213 10214 10215 10216 10217 10218 10219 10220 CWARNFLAGS="$BASE_CFLAGS" 10221 if test "x$GCC" = xyes ; then 10222 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10223 fi 10224 10225 10226 10227 10228 10229 10230 10231 10232# Check whether --enable-strict-compilation was given. 10233if test "${enable_strict_compilation+set}" = set; then : 10234 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10235else 10236 STRICT_COMPILE=no 10237fi 10238 10239 10240 10241 10242 10243 10244STRICT_CFLAGS="" 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258xorg_testset_save_CFLAGS="$CFLAGS" 10259 10260if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10261 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10263$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10264if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10265 $as_echo_n "(cached) " >&6 10266else 10267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10268/* end confdefs.h. */ 10269int i; 10270_ACEOF 10271if ac_fn_c_try_compile "$LINENO"; then : 10272 xorg_cv_cc_flag_unknown_warning_option=yes 10273else 10274 xorg_cv_cc_flag_unknown_warning_option=no 10275fi 10276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10277fi 10278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10279$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10280 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10281 CFLAGS="$xorg_testset_save_CFLAGS" 10282fi 10283 10284if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10285 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10286 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10287 fi 10288 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10290$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10291if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10292 $as_echo_n "(cached) " >&6 10293else 10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10295/* end confdefs.h. */ 10296int i; 10297_ACEOF 10298if ac_fn_c_try_compile "$LINENO"; then : 10299 xorg_cv_cc_flag_unused_command_line_argument=yes 10300else 10301 xorg_cv_cc_flag_unused_command_line_argument=no 10302fi 10303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10304fi 10305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10306$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10308 CFLAGS="$xorg_testset_save_CFLAGS" 10309fi 10310 10311found="no" 10312 10313 if test $found = "no" ; then 10314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10315 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10316 fi 10317 10318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10320 fi 10321 10322 CFLAGS="$CFLAGS -pedantic" 10323 10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10325$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10326 cacheid=xorg_cv_cc_flag__pedantic 10327 if eval \${$cacheid+:} false; then : 10328 $as_echo_n "(cached) " >&6 10329else 10330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10331/* end confdefs.h. */ 10332int i; 10333int 10334main () 10335{ 10336 10337 ; 10338 return 0; 10339} 10340_ACEOF 10341if ac_fn_c_try_link "$LINENO"; then : 10342 eval $cacheid=yes 10343else 10344 eval $cacheid=no 10345fi 10346rm -f core conftest.err conftest.$ac_objext \ 10347 conftest$ac_exeext conftest.$ac_ext 10348fi 10349 10350 10351 CFLAGS="$xorg_testset_save_CFLAGS" 10352 10353 eval supported=\$$cacheid 10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10355$as_echo "$supported" >&6; } 10356 if test "$supported" = "yes" ; then 10357 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10358 found="yes" 10359 fi 10360 fi 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376xorg_testset_save_CFLAGS="$CFLAGS" 10377 10378if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10379 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10381$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10382if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10383 $as_echo_n "(cached) " >&6 10384else 10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10386/* end confdefs.h. */ 10387int i; 10388_ACEOF 10389if ac_fn_c_try_compile "$LINENO"; then : 10390 xorg_cv_cc_flag_unknown_warning_option=yes 10391else 10392 xorg_cv_cc_flag_unknown_warning_option=no 10393fi 10394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10395fi 10396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10397$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10398 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10399 CFLAGS="$xorg_testset_save_CFLAGS" 10400fi 10401 10402if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10403 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10404 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10405 fi 10406 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10408$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10409if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10410 $as_echo_n "(cached) " >&6 10411else 10412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10413/* end confdefs.h. */ 10414int i; 10415_ACEOF 10416if ac_fn_c_try_compile "$LINENO"; then : 10417 xorg_cv_cc_flag_unused_command_line_argument=yes 10418else 10419 xorg_cv_cc_flag_unused_command_line_argument=no 10420fi 10421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10422fi 10423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10424$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10426 CFLAGS="$xorg_testset_save_CFLAGS" 10427fi 10428 10429found="no" 10430 10431 if test $found = "no" ; then 10432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10433 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10434 fi 10435 10436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10438 fi 10439 10440 CFLAGS="$CFLAGS -Werror" 10441 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10443$as_echo_n "checking if $CC supports -Werror... " >&6; } 10444 cacheid=xorg_cv_cc_flag__Werror 10445 if eval \${$cacheid+:} false; then : 10446 $as_echo_n "(cached) " >&6 10447else 10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10449/* end confdefs.h. */ 10450int i; 10451int 10452main () 10453{ 10454 10455 ; 10456 return 0; 10457} 10458_ACEOF 10459if ac_fn_c_try_link "$LINENO"; then : 10460 eval $cacheid=yes 10461else 10462 eval $cacheid=no 10463fi 10464rm -f core conftest.err conftest.$ac_objext \ 10465 conftest$ac_exeext conftest.$ac_ext 10466fi 10467 10468 10469 CFLAGS="$xorg_testset_save_CFLAGS" 10470 10471 eval supported=\$$cacheid 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10473$as_echo "$supported" >&6; } 10474 if test "$supported" = "yes" ; then 10475 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10476 found="yes" 10477 fi 10478 fi 10479 10480 if test $found = "no" ; then 10481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10482 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10483 fi 10484 10485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10487 fi 10488 10489 CFLAGS="$CFLAGS -errwarn" 10490 10491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10492$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10493 cacheid=xorg_cv_cc_flag__errwarn 10494 if eval \${$cacheid+:} false; then : 10495 $as_echo_n "(cached) " >&6 10496else 10497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10498/* end confdefs.h. */ 10499int i; 10500int 10501main () 10502{ 10503 10504 ; 10505 return 0; 10506} 10507_ACEOF 10508if ac_fn_c_try_link "$LINENO"; then : 10509 eval $cacheid=yes 10510else 10511 eval $cacheid=no 10512fi 10513rm -f core conftest.err conftest.$ac_objext \ 10514 conftest$ac_exeext conftest.$ac_ext 10515fi 10516 10517 10518 CFLAGS="$xorg_testset_save_CFLAGS" 10519 10520 eval supported=\$$cacheid 10521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10522$as_echo "$supported" >&6; } 10523 if test "$supported" = "yes" ; then 10524 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10525 found="yes" 10526 fi 10527 fi 10528 10529 10530 10531# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10532# activate it with -Werror, so we add it here explicitly. 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546xorg_testset_save_CFLAGS="$CFLAGS" 10547 10548if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10549 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10551$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10552if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10553 $as_echo_n "(cached) " >&6 10554else 10555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10556/* end confdefs.h. */ 10557int i; 10558_ACEOF 10559if ac_fn_c_try_compile "$LINENO"; then : 10560 xorg_cv_cc_flag_unknown_warning_option=yes 10561else 10562 xorg_cv_cc_flag_unknown_warning_option=no 10563fi 10564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10565fi 10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10567$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10569 CFLAGS="$xorg_testset_save_CFLAGS" 10570fi 10571 10572if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10574 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10575 fi 10576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10578$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10579if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10580 $as_echo_n "(cached) " >&6 10581else 10582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10583/* end confdefs.h. */ 10584int i; 10585_ACEOF 10586if ac_fn_c_try_compile "$LINENO"; then : 10587 xorg_cv_cc_flag_unused_command_line_argument=yes 10588else 10589 xorg_cv_cc_flag_unused_command_line_argument=no 10590fi 10591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10592fi 10593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10594$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10596 CFLAGS="$xorg_testset_save_CFLAGS" 10597fi 10598 10599found="no" 10600 10601 if test $found = "no" ; then 10602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10603 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10604 fi 10605 10606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10608 fi 10609 10610 CFLAGS="$CFLAGS -Werror=attributes" 10611 10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10613$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10614 cacheid=xorg_cv_cc_flag__Werror_attributes 10615 if eval \${$cacheid+:} false; then : 10616 $as_echo_n "(cached) " >&6 10617else 10618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10619/* end confdefs.h. */ 10620int i; 10621int 10622main () 10623{ 10624 10625 ; 10626 return 0; 10627} 10628_ACEOF 10629if ac_fn_c_try_link "$LINENO"; then : 10630 eval $cacheid=yes 10631else 10632 eval $cacheid=no 10633fi 10634rm -f core conftest.err conftest.$ac_objext \ 10635 conftest$ac_exeext conftest.$ac_ext 10636fi 10637 10638 10639 CFLAGS="$xorg_testset_save_CFLAGS" 10640 10641 eval supported=\$$cacheid 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10643$as_echo "$supported" >&6; } 10644 if test "$supported" = "yes" ; then 10645 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10646 found="yes" 10647 fi 10648 fi 10649 10650 10651 10652if test "x$STRICT_COMPILE" = "xyes"; then 10653 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10654 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10655fi 10656 10657 10658 10659 10660 10661 10662cat >>confdefs.h <<_ACEOF 10663#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10664_ACEOF 10665 10666 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10667 if test "x$PVM" = "x"; then 10668 PVM="0" 10669 fi 10670 10671cat >>confdefs.h <<_ACEOF 10672#define PACKAGE_VERSION_MINOR $PVM 10673_ACEOF 10674 10675 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10676 if test "x$PVP" = "x"; then 10677 PVP="0" 10678 fi 10679 10680cat >>confdefs.h <<_ACEOF 10681#define PACKAGE_VERSION_PATCHLEVEL $PVP 10682_ACEOF 10683 10684 10685 10686CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10687mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10688|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10689echo 'git directory not found: installing possibly empty changelog.' >&2)" 10690 10691 10692 10693 10694macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10695INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10696mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10697|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10698echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10699 10700 10701 10702 10703 10704 10705if test x$APP_MAN_SUFFIX = x ; then 10706 APP_MAN_SUFFIX=1 10707fi 10708if test x$APP_MAN_DIR = x ; then 10709 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10710fi 10711 10712if test x$LIB_MAN_SUFFIX = x ; then 10713 LIB_MAN_SUFFIX=3 10714fi 10715if test x$LIB_MAN_DIR = x ; then 10716 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10717fi 10718 10719if test x$FILE_MAN_SUFFIX = x ; then 10720 case $host_os in 10721 # Solaris 2.0 - 11 use SysV man page sections 10722 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10723 *) FILE_MAN_SUFFIX=5 ;; 10724 esac 10725fi 10726if test x$FILE_MAN_DIR = x ; then 10727 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10728fi 10729 10730if test x$MISC_MAN_SUFFIX = x ; then 10731 case $host_os in 10732 # Solaris 2.0 - 11 use SysV man page sections 10733 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10734 *) MISC_MAN_SUFFIX=7 ;; 10735 esac 10736fi 10737if test x$MISC_MAN_DIR = x ; then 10738 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10739fi 10740 10741if test x$DRIVER_MAN_SUFFIX = x ; then 10742 case $host_os in 10743 # Solaris 2.0 - 11 use SysV man page sections 10744 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10745 *) DRIVER_MAN_SUFFIX=4 ;; 10746 esac 10747fi 10748if test x$DRIVER_MAN_DIR = x ; then 10749 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10750fi 10751 10752if test x$ADMIN_MAN_SUFFIX = x ; then 10753 case $host_os in 10754 # Solaris 2.0 - 11 use SysV man page sections 10755 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10756 *) ADMIN_MAN_SUFFIX=8 ;; 10757 esac 10758fi 10759if test x$ADMIN_MAN_DIR = x ; then 10760 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10761fi 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777XORG_MAN_PAGE="X Version 11" 10778 10779MAN_SUBSTS="\ 10780 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10781 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10782 -e 's|__xservername__|Xorg|g' \ 10783 -e 's|__xconfigfile__|xorg.conf|g' \ 10784 -e 's|__projectroot__|\$(prefix)|g' \ 10785 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10786 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10787 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10788 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10789 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10790 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10791 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10792 10793 10794 10795# Check whether --enable-silent-rules was given. 10796if test "${enable_silent_rules+set}" = set; then : 10797 enableval=$enable_silent_rules; 10798fi 10799 10800case $enable_silent_rules in # ((( 10801 yes) AM_DEFAULT_VERBOSITY=0;; 10802 no) AM_DEFAULT_VERBOSITY=1;; 10803 *) AM_DEFAULT_VERBOSITY=0;; 10804esac 10805am_make=${MAKE-make} 10806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10807$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10808if ${am_cv_make_support_nested_variables+:} false; then : 10809 $as_echo_n "(cached) " >&6 10810else 10811 if $as_echo 'TRUE=$(BAR$(V)) 10812BAR0=false 10813BAR1=true 10814V=1 10815am__doit: 10816 @$(TRUE) 10817.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10818 am_cv_make_support_nested_variables=yes 10819else 10820 am_cv_make_support_nested_variables=no 10821fi 10822fi 10823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10824$as_echo "$am_cv_make_support_nested_variables" >&6; } 10825if test $am_cv_make_support_nested_variables = yes; then 10826 AM_V='$(V)' 10827 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10828else 10829 AM_V=$AM_DEFAULT_VERBOSITY 10830 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10831fi 10832AM_BACKSLASH='\' 10833 10834 10835 10836for ac_prog in 'bison -y' byacc 10837do 10838 # Extract the first word of "$ac_prog", so it can be a program name with args. 10839set dummy $ac_prog; ac_word=$2 10840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10841$as_echo_n "checking for $ac_word... " >&6; } 10842if ${ac_cv_prog_YACC+:} false; then : 10843 $as_echo_n "(cached) " >&6 10844else 10845 if test -n "$YACC"; then 10846 ac_cv_prog_YACC="$YACC" # Let the user override the test. 10847else 10848as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10849for as_dir in $PATH 10850do 10851 IFS=$as_save_IFS 10852 test -z "$as_dir" && as_dir=. 10853 for ac_exec_ext in '' $ac_executable_extensions; do 10854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10855 ac_cv_prog_YACC="$ac_prog" 10856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10857 break 2 10858 fi 10859done 10860 done 10861IFS=$as_save_IFS 10862 10863fi 10864fi 10865YACC=$ac_cv_prog_YACC 10866if test -n "$YACC"; then 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 10868$as_echo "$YACC" >&6; } 10869else 10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10871$as_echo "no" >&6; } 10872fi 10873 10874 10875 test -n "$YACC" && break 10876done 10877test -n "$YACC" || YACC="yacc" 10878 10879# Extract the first word of "$YACC", so it can be a program name with args. 10880set dummy $YACC; ac_word=$2 10881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10882$as_echo_n "checking for $ac_word... " >&6; } 10883if ${ac_cv_path_YACC_INST+:} false; then : 10884 $as_echo_n "(cached) " >&6 10885else 10886 case $YACC_INST in 10887 [\\/]* | ?:[\\/]*) 10888 ac_cv_path_YACC_INST="$YACC_INST" # Let the user override the test with a path. 10889 ;; 10890 *) 10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10892for as_dir in $PATH 10893do 10894 IFS=$as_save_IFS 10895 test -z "$as_dir" && as_dir=. 10896 for ac_exec_ext in '' $ac_executable_extensions; do 10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10898 ac_cv_path_YACC_INST="$as_dir/$ac_word$ac_exec_ext" 10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10900 break 2 10901 fi 10902done 10903 done 10904IFS=$as_save_IFS 10905 10906 ;; 10907esac 10908fi 10909YACC_INST=$ac_cv_path_YACC_INST 10910if test -n "$YACC_INST"; then 10911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC_INST" >&5 10912$as_echo "$YACC_INST" >&6; } 10913else 10914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10915$as_echo "no" >&6; } 10916fi 10917 10918 10919if test ! -f "$srcdir/gram.c"; then 10920 if test -z "$YACC_INST"; then 10921 as_fn_error $? "yacc not found - unable to compile gram.y" "$LINENO" 5 10922 fi 10923fi 10924for ac_prog in flex lex 10925do 10926 # Extract the first word of "$ac_prog", so it can be a program name with args. 10927set dummy $ac_prog; ac_word=$2 10928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10929$as_echo_n "checking for $ac_word... " >&6; } 10930if ${ac_cv_prog_LEX+:} false; then : 10931 $as_echo_n "(cached) " >&6 10932else 10933 if test -n "$LEX"; then 10934 ac_cv_prog_LEX="$LEX" # Let the user override the test. 10935else 10936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10937for as_dir in $PATH 10938do 10939 IFS=$as_save_IFS 10940 test -z "$as_dir" && as_dir=. 10941 for ac_exec_ext in '' $ac_executable_extensions; do 10942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10943 ac_cv_prog_LEX="$ac_prog" 10944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10945 break 2 10946 fi 10947done 10948 done 10949IFS=$as_save_IFS 10950 10951fi 10952fi 10953LEX=$ac_cv_prog_LEX 10954if test -n "$LEX"; then 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 10956$as_echo "$LEX" >&6; } 10957else 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10959$as_echo "no" >&6; } 10960fi 10961 10962 10963 test -n "$LEX" && break 10964done 10965test -n "$LEX" || LEX=":" 10966 10967if test "x$LEX" != "x:"; then 10968 cat >conftest.l <<_ACEOF 10969%% 10970a { ECHO; } 10971b { REJECT; } 10972c { yymore (); } 10973d { yyless (1); } 10974e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 10975 yyless ((input () != 0)); } 10976f { unput (yytext[0]); } 10977. { BEGIN INITIAL; } 10978%% 10979#ifdef YYTEXT_POINTER 10980extern char *yytext; 10981#endif 10982int 10983main (void) 10984{ 10985 return ! yylex () + ! yywrap (); 10986} 10987_ACEOF 10988{ { ac_try="$LEX conftest.l" 10989case "(($ac_try" in 10990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 10991 *) ac_try_echo=$ac_try;; 10992esac 10993eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 10994$as_echo "$ac_try_echo"; } >&5 10995 (eval "$LEX conftest.l") 2>&5 10996 ac_status=$? 10997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10998 test $ac_status = 0; } 10999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 11000$as_echo_n "checking lex output file root... " >&6; } 11001if ${ac_cv_prog_lex_root+:} false; then : 11002 $as_echo_n "(cached) " >&6 11003else 11004 11005if test -f lex.yy.c; then 11006 ac_cv_prog_lex_root=lex.yy 11007elif test -f lexyy.c; then 11008 ac_cv_prog_lex_root=lexyy 11009else 11010 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 11011fi 11012fi 11013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 11014$as_echo "$ac_cv_prog_lex_root" >&6; } 11015LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 11016 11017if test -z "${LEXLIB+set}"; then 11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 11019$as_echo_n "checking lex library... " >&6; } 11020if ${ac_cv_lib_lex+:} false; then : 11021 $as_echo_n "(cached) " >&6 11022else 11023 11024 ac_save_LIBS=$LIBS 11025 ac_cv_lib_lex='none needed' 11026 for ac_lib in '' -lfl -ll; do 11027 LIBS="$ac_lib $ac_save_LIBS" 11028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11029/* end confdefs.h. */ 11030`cat $LEX_OUTPUT_ROOT.c` 11031_ACEOF 11032if ac_fn_c_try_link "$LINENO"; then : 11033 ac_cv_lib_lex=$ac_lib 11034fi 11035rm -f core conftest.err conftest.$ac_objext \ 11036 conftest$ac_exeext conftest.$ac_ext 11037 test "$ac_cv_lib_lex" != 'none needed' && break 11038 done 11039 LIBS=$ac_save_LIBS 11040 11041fi 11042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 11043$as_echo "$ac_cv_lib_lex" >&6; } 11044 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 11045fi 11046 11047 11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 11049$as_echo_n "checking whether yytext is a pointer... " >&6; } 11050if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 11051 $as_echo_n "(cached) " >&6 11052else 11053 # POSIX says lex can declare yytext either as a pointer or an array; the 11054# default is implementation-dependent. Figure out which it is, since 11055# not all implementations provide the %pointer and %array declarations. 11056ac_cv_prog_lex_yytext_pointer=no 11057ac_save_LIBS=$LIBS 11058LIBS="$LEXLIB $ac_save_LIBS" 11059cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11060/* end confdefs.h. */ 11061 11062 #define YYTEXT_POINTER 1 11063`cat $LEX_OUTPUT_ROOT.c` 11064_ACEOF 11065if ac_fn_c_try_link "$LINENO"; then : 11066 ac_cv_prog_lex_yytext_pointer=yes 11067fi 11068rm -f core conftest.err conftest.$ac_objext \ 11069 conftest$ac_exeext conftest.$ac_ext 11070LIBS=$ac_save_LIBS 11071 11072fi 11073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 11074$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 11075if test $ac_cv_prog_lex_yytext_pointer = yes; then 11076 11077$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 11078 11079fi 11080rm -f conftest.l $LEX_OUTPUT_ROOT.c 11081 11082fi 11083 11084for ac_func in mkstemp 11085do : 11086 ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" 11087if test "x$ac_cv_func_mkstemp" = xyes; then : 11088 cat >>confdefs.h <<_ACEOF 11089#define HAVE_MKSTEMP 1 11090_ACEOF 11091 11092fi 11093done 11094 11095 11096# Checks for pkg-config packages 11097 11098pkg_failed=no 11099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TWM" >&5 11100$as_echo_n "checking for TWM... " >&6; } 11101 11102if test -n "$TWM_CFLAGS"; then 11103 pkg_cv_TWM_CFLAGS="$TWM_CFLAGS" 11104 elif test -n "$PKG_CONFIG"; then 11105 if test -n "$PKG_CONFIG" && \ 11106 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5 11107 ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5 11108 ac_status=$? 11109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11110 test $ac_status = 0; }; then 11111 pkg_cv_TWM_CFLAGS=`$PKG_CONFIG --cflags "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null` 11112 test "x$?" != "x0" && pkg_failed=yes 11113else 11114 pkg_failed=yes 11115fi 11116 else 11117 pkg_failed=untried 11118fi 11119if test -n "$TWM_LIBS"; then 11120 pkg_cv_TWM_LIBS="$TWM_LIBS" 11121 elif test -n "$PKG_CONFIG"; then 11122 if test -n "$PKG_CONFIG" && \ 11123 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext xt xmu ice sm xproto >= 7.0.17\""; } >&5 11124 ($PKG_CONFIG --exists --print-errors "x11 xext xt xmu ice sm xproto >= 7.0.17") 2>&5 11125 ac_status=$? 11126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11127 test $ac_status = 0; }; then 11128 pkg_cv_TWM_LIBS=`$PKG_CONFIG --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>/dev/null` 11129 test "x$?" != "x0" && pkg_failed=yes 11130else 11131 pkg_failed=yes 11132fi 11133 else 11134 pkg_failed=untried 11135fi 11136 11137 11138 11139if test $pkg_failed = yes; then 11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11141$as_echo "no" >&6; } 11142 11143if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11144 _pkg_short_errors_supported=yes 11145else 11146 _pkg_short_errors_supported=no 11147fi 11148 if test $_pkg_short_errors_supported = yes; then 11149 TWM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1` 11150 else 11151 TWM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11 xext xt xmu ice sm xproto >= 7.0.17" 2>&1` 11152 fi 11153 # Put the nasty error message in config.log where it belongs 11154 echo "$TWM_PKG_ERRORS" >&5 11155 11156 as_fn_error $? "Package requirements (x11 xext xt xmu ice sm xproto >= 7.0.17) were not met: 11157 11158$TWM_PKG_ERRORS 11159 11160Consider adjusting the PKG_CONFIG_PATH environment variable if you 11161installed software in a non-standard prefix. 11162 11163Alternatively, you may set the environment variables TWM_CFLAGS 11164and TWM_LIBS to avoid the need to call pkg-config. 11165See the pkg-config man page for more details." "$LINENO" 5 11166elif test $pkg_failed = untried; then 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11168$as_echo "no" >&6; } 11169 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11170$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11171as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11172is in your PATH or set the PKG_CONFIG environment variable to the full 11173path to pkg-config. 11174 11175Alternatively, you may set the environment variables TWM_CFLAGS 11176and TWM_LIBS to avoid the need to call pkg-config. 11177See the pkg-config man page for more details. 11178 11179To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11180See \`config.log' for more details" "$LINENO" 5; } 11181else 11182 TWM_CFLAGS=$pkg_cv_TWM_CFLAGS 11183 TWM_LIBS=$pkg_cv_TWM_LIBS 11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11185$as_echo "yes" >&6; } 11186 11187fi 11188 11189ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile" 11190 11191cat >confcache <<\_ACEOF 11192# This file is a shell script that caches the results of configure 11193# tests run on this system so they can be shared between configure 11194# scripts and configure runs, see configure's option --config-cache. 11195# It is not useful on other systems. If it contains results you don't 11196# want to keep, you may remove or edit it. 11197# 11198# config.status only pays attention to the cache file if you give it 11199# the --recheck option to rerun configure. 11200# 11201# `ac_cv_env_foo' variables (set or unset) will be overridden when 11202# loading this file, other *unset* `ac_cv_foo' will be assigned the 11203# following values. 11204 11205_ACEOF 11206 11207# The following way of writing the cache mishandles newlines in values, 11208# but we know of no workaround that is simple, portable, and efficient. 11209# So, we kill variables containing newlines. 11210# Ultrix sh set writes to stderr and can't be redirected directly, 11211# and sets the high bit in the cache file unless we assign to the vars. 11212( 11213 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11214 eval ac_val=\$$ac_var 11215 case $ac_val in #( 11216 *${as_nl}*) 11217 case $ac_var in #( 11218 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11219$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11220 esac 11221 case $ac_var in #( 11222 _ | IFS | as_nl) ;; #( 11223 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11224 *) { eval $ac_var=; unset $ac_var;} ;; 11225 esac ;; 11226 esac 11227 done 11228 11229 (set) 2>&1 | 11230 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11231 *${as_nl}ac_space=\ *) 11232 # `set' does not quote correctly, so add quotes: double-quote 11233 # substitution turns \\\\ into \\, and sed turns \\ into \. 11234 sed -n \ 11235 "s/'/'\\\\''/g; 11236 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11237 ;; #( 11238 *) 11239 # `set' quotes correctly as required by POSIX, so do not add quotes. 11240 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11241 ;; 11242 esac | 11243 sort 11244) | 11245 sed ' 11246 /^ac_cv_env_/b end 11247 t clear 11248 :clear 11249 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11250 t end 11251 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11252 :end' >>confcache 11253if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11254 if test -w "$cache_file"; then 11255 if test "x$cache_file" != "x/dev/null"; then 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11257$as_echo "$as_me: updating cache $cache_file" >&6;} 11258 if test ! -f "$cache_file" || test -h "$cache_file"; then 11259 cat confcache >"$cache_file" 11260 else 11261 case $cache_file in #( 11262 */* | ?:*) 11263 mv -f confcache "$cache_file"$$ && 11264 mv -f "$cache_file"$$ "$cache_file" ;; #( 11265 *) 11266 mv -f confcache "$cache_file" ;; 11267 esac 11268 fi 11269 fi 11270 else 11271 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11272$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11273 fi 11274fi 11275rm -f confcache 11276 11277test "x$prefix" = xNONE && prefix=$ac_default_prefix 11278# Let make expand exec_prefix. 11279test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11280 11281DEFS=-DHAVE_CONFIG_H 11282 11283ac_libobjs= 11284ac_ltlibobjs= 11285U= 11286for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11287 # 1. Remove the extension, and $U if already installed. 11288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11289 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11291 # will be set to the directory where LIBOBJS objects are built. 11292 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11293 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11294done 11295LIBOBJS=$ac_libobjs 11296 11297LTLIBOBJS=$ac_ltlibobjs 11298 11299 11300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11301$as_echo_n "checking that generated files are newer than configure... " >&6; } 11302 if test -n "$am_sleep_pid"; then 11303 # Hide warnings about reused PIDs. 11304 wait $am_sleep_pid 2>/dev/null 11305 fi 11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11307$as_echo "done" >&6; } 11308if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11309 as_fn_error $? "conditional \"AMDEP\" was never defined. 11310Usually this means the macro was only invoked conditionally." "$LINENO" 5 11311fi 11312if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11313 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11314Usually this means the macro was only invoked conditionally." "$LINENO" 5 11315fi 11316 if test -n "$EXEEXT"; then 11317 am__EXEEXT_TRUE= 11318 am__EXEEXT_FALSE='#' 11319else 11320 am__EXEEXT_TRUE='#' 11321 am__EXEEXT_FALSE= 11322fi 11323 11324 11325: "${CONFIG_STATUS=./config.status}" 11326ac_write_fail=0 11327ac_clean_files_save=$ac_clean_files 11328ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11329{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11330$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11331as_write_fail=0 11332cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11333#! $SHELL 11334# Generated by $as_me. 11335# Run this file to recreate the current configuration. 11336# Compiler output produced by configure, useful for debugging 11337# configure, is in config.log if it exists. 11338 11339debug=false 11340ac_cs_recheck=false 11341ac_cs_silent=false 11342 11343SHELL=\${CONFIG_SHELL-$SHELL} 11344export SHELL 11345_ASEOF 11346cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11347## -------------------- ## 11348## M4sh Initialization. ## 11349## -------------------- ## 11350 11351# Be more Bourne compatible 11352DUALCASE=1; export DUALCASE # for MKS sh 11353if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11354 emulate sh 11355 NULLCMD=: 11356 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11357 # is contrary to our usage. Disable this feature. 11358 alias -g '${1+"$@"}'='"$@"' 11359 setopt NO_GLOB_SUBST 11360else 11361 case `(set -o) 2>/dev/null` in #( 11362 *posix*) : 11363 set -o posix ;; #( 11364 *) : 11365 ;; 11366esac 11367fi 11368 11369 11370as_nl=' 11371' 11372export as_nl 11373# Printing a long string crashes Solaris 7 /usr/bin/printf. 11374as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11375as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11376as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11377# Prefer a ksh shell builtin over an external printf program on Solaris, 11378# but without wasting forks for bash or zsh. 11379if test -z "$BASH_VERSION$ZSH_VERSION" \ 11380 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11381 as_echo='print -r --' 11382 as_echo_n='print -rn --' 11383elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11384 as_echo='printf %s\n' 11385 as_echo_n='printf %s' 11386else 11387 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11388 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11389 as_echo_n='/usr/ucb/echo -n' 11390 else 11391 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11392 as_echo_n_body='eval 11393 arg=$1; 11394 case $arg in #( 11395 *"$as_nl"*) 11396 expr "X$arg" : "X\\(.*\\)$as_nl"; 11397 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11398 esac; 11399 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11400 ' 11401 export as_echo_n_body 11402 as_echo_n='sh -c $as_echo_n_body as_echo' 11403 fi 11404 export as_echo_body 11405 as_echo='sh -c $as_echo_body as_echo' 11406fi 11407 11408# The user is always right. 11409if test "${PATH_SEPARATOR+set}" != set; then 11410 PATH_SEPARATOR=: 11411 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11412 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11413 PATH_SEPARATOR=';' 11414 } 11415fi 11416 11417 11418# IFS 11419# We need space, tab and new line, in precisely that order. Quoting is 11420# there to prevent editors from complaining about space-tab. 11421# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11422# splitting by setting IFS to empty value.) 11423IFS=" "" $as_nl" 11424 11425# Find who we are. Look in the path if we contain no directory separator. 11426as_myself= 11427case $0 in #(( 11428 *[\\/]* ) as_myself=$0 ;; 11429 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11430for as_dir in $PATH 11431do 11432 IFS=$as_save_IFS 11433 test -z "$as_dir" && as_dir=. 11434 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11435 done 11436IFS=$as_save_IFS 11437 11438 ;; 11439esac 11440# We did not find ourselves, most probably we were run as `sh COMMAND' 11441# in which case we are not to be found in the path. 11442if test "x$as_myself" = x; then 11443 as_myself=$0 11444fi 11445if test ! -f "$as_myself"; then 11446 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11447 exit 1 11448fi 11449 11450# Unset variables that we do not need and which cause bugs (e.g. in 11451# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11452# suppresses any "Segmentation fault" message there. '((' could 11453# trigger a bug in pdksh 5.2.14. 11454for as_var in BASH_ENV ENV MAIL MAILPATH 11455do eval test x\${$as_var+set} = xset \ 11456 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11457done 11458PS1='$ ' 11459PS2='> ' 11460PS4='+ ' 11461 11462# NLS nuisances. 11463LC_ALL=C 11464export LC_ALL 11465LANGUAGE=C 11466export LANGUAGE 11467 11468# CDPATH. 11469(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11470 11471 11472# as_fn_error STATUS ERROR [LINENO LOG_FD] 11473# ---------------------------------------- 11474# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11475# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11476# script with STATUS, using 1 if that was 0. 11477as_fn_error () 11478{ 11479 as_status=$1; test $as_status -eq 0 && as_status=1 11480 if test "$4"; then 11481 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11482 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11483 fi 11484 $as_echo "$as_me: error: $2" >&2 11485 as_fn_exit $as_status 11486} # as_fn_error 11487 11488 11489# as_fn_set_status STATUS 11490# ----------------------- 11491# Set $? to STATUS, without forking. 11492as_fn_set_status () 11493{ 11494 return $1 11495} # as_fn_set_status 11496 11497# as_fn_exit STATUS 11498# ----------------- 11499# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11500as_fn_exit () 11501{ 11502 set +e 11503 as_fn_set_status $1 11504 exit $1 11505} # as_fn_exit 11506 11507# as_fn_unset VAR 11508# --------------- 11509# Portably unset VAR. 11510as_fn_unset () 11511{ 11512 { eval $1=; unset $1;} 11513} 11514as_unset=as_fn_unset 11515# as_fn_append VAR VALUE 11516# ---------------------- 11517# Append the text in VALUE to the end of the definition contained in VAR. Take 11518# advantage of any shell optimizations that allow amortized linear growth over 11519# repeated appends, instead of the typical quadratic growth present in naive 11520# implementations. 11521if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11522 eval 'as_fn_append () 11523 { 11524 eval $1+=\$2 11525 }' 11526else 11527 as_fn_append () 11528 { 11529 eval $1=\$$1\$2 11530 } 11531fi # as_fn_append 11532 11533# as_fn_arith ARG... 11534# ------------------ 11535# Perform arithmetic evaluation on the ARGs, and store the result in the 11536# global $as_val. Take advantage of shells that can avoid forks. The arguments 11537# must be portable across $(()) and expr. 11538if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11539 eval 'as_fn_arith () 11540 { 11541 as_val=$(( $* )) 11542 }' 11543else 11544 as_fn_arith () 11545 { 11546 as_val=`expr "$@" || test $? -eq 1` 11547 } 11548fi # as_fn_arith 11549 11550 11551if expr a : '\(a\)' >/dev/null 2>&1 && 11552 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11553 as_expr=expr 11554else 11555 as_expr=false 11556fi 11557 11558if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11559 as_basename=basename 11560else 11561 as_basename=false 11562fi 11563 11564if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11565 as_dirname=dirname 11566else 11567 as_dirname=false 11568fi 11569 11570as_me=`$as_basename -- "$0" || 11571$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11572 X"$0" : 'X\(//\)$' \| \ 11573 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11574$as_echo X/"$0" | 11575 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11576 s//\1/ 11577 q 11578 } 11579 /^X\/\(\/\/\)$/{ 11580 s//\1/ 11581 q 11582 } 11583 /^X\/\(\/\).*/{ 11584 s//\1/ 11585 q 11586 } 11587 s/.*/./; q'` 11588 11589# Avoid depending upon Character Ranges. 11590as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11591as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11592as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11593as_cr_digits='0123456789' 11594as_cr_alnum=$as_cr_Letters$as_cr_digits 11595 11596ECHO_C= ECHO_N= ECHO_T= 11597case `echo -n x` in #((((( 11598-n*) 11599 case `echo 'xy\c'` in 11600 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11601 xy) ECHO_C='\c';; 11602 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11603 ECHO_T=' ';; 11604 esac;; 11605*) 11606 ECHO_N='-n';; 11607esac 11608 11609rm -f conf$$ conf$$.exe conf$$.file 11610if test -d conf$$.dir; then 11611 rm -f conf$$.dir/conf$$.file 11612else 11613 rm -f conf$$.dir 11614 mkdir conf$$.dir 2>/dev/null 11615fi 11616if (echo >conf$$.file) 2>/dev/null; then 11617 if ln -s conf$$.file conf$$ 2>/dev/null; then 11618 as_ln_s='ln -s' 11619 # ... but there are two gotchas: 11620 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11621 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11622 # In both cases, we have to default to `cp -pR'. 11623 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11624 as_ln_s='cp -pR' 11625 elif ln conf$$.file conf$$ 2>/dev/null; then 11626 as_ln_s=ln 11627 else 11628 as_ln_s='cp -pR' 11629 fi 11630else 11631 as_ln_s='cp -pR' 11632fi 11633rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11634rmdir conf$$.dir 2>/dev/null 11635 11636 11637# as_fn_mkdir_p 11638# ------------- 11639# Create "$as_dir" as a directory, including parents if necessary. 11640as_fn_mkdir_p () 11641{ 11642 11643 case $as_dir in #( 11644 -*) as_dir=./$as_dir;; 11645 esac 11646 test -d "$as_dir" || eval $as_mkdir_p || { 11647 as_dirs= 11648 while :; do 11649 case $as_dir in #( 11650 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11651 *) as_qdir=$as_dir;; 11652 esac 11653 as_dirs="'$as_qdir' $as_dirs" 11654 as_dir=`$as_dirname -- "$as_dir" || 11655$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11656 X"$as_dir" : 'X\(//\)[^/]' \| \ 11657 X"$as_dir" : 'X\(//\)$' \| \ 11658 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11659$as_echo X"$as_dir" | 11660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11661 s//\1/ 11662 q 11663 } 11664 /^X\(\/\/\)[^/].*/{ 11665 s//\1/ 11666 q 11667 } 11668 /^X\(\/\/\)$/{ 11669 s//\1/ 11670 q 11671 } 11672 /^X\(\/\).*/{ 11673 s//\1/ 11674 q 11675 } 11676 s/.*/./; q'` 11677 test -d "$as_dir" && break 11678 done 11679 test -z "$as_dirs" || eval "mkdir $as_dirs" 11680 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11681 11682 11683} # as_fn_mkdir_p 11684if mkdir -p . 2>/dev/null; then 11685 as_mkdir_p='mkdir -p "$as_dir"' 11686else 11687 test -d ./-p && rmdir ./-p 11688 as_mkdir_p=false 11689fi 11690 11691 11692# as_fn_executable_p FILE 11693# ----------------------- 11694# Test if FILE is an executable regular file. 11695as_fn_executable_p () 11696{ 11697 test -f "$1" && test -x "$1" 11698} # as_fn_executable_p 11699as_test_x='test -x' 11700as_executable_p=as_fn_executable_p 11701 11702# Sed expression to map a string onto a valid CPP name. 11703as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11704 11705# Sed expression to map a string onto a valid variable name. 11706as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11707 11708 11709exec 6>&1 11710## ----------------------------------- ## 11711## Main body of $CONFIG_STATUS script. ## 11712## ----------------------------------- ## 11713_ASEOF 11714test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11715 11716cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11717# Save the log message, to keep $0 and so on meaningful, and to 11718# report actual input values of CONFIG_FILES etc. instead of their 11719# values after options handling. 11720ac_log=" 11721This file was extended by twm $as_me 1.0.10, which was 11722generated by GNU Autoconf 2.69. Invocation command line was 11723 11724 CONFIG_FILES = $CONFIG_FILES 11725 CONFIG_HEADERS = $CONFIG_HEADERS 11726 CONFIG_LINKS = $CONFIG_LINKS 11727 CONFIG_COMMANDS = $CONFIG_COMMANDS 11728 $ $0 $@ 11729 11730on `(hostname || uname -n) 2>/dev/null | sed 1q` 11731" 11732 11733_ACEOF 11734 11735case $ac_config_files in *" 11736"*) set x $ac_config_files; shift; ac_config_files=$*;; 11737esac 11738 11739case $ac_config_headers in *" 11740"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11741esac 11742 11743 11744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11745# Files that config.status was made for. 11746config_files="$ac_config_files" 11747config_headers="$ac_config_headers" 11748config_commands="$ac_config_commands" 11749 11750_ACEOF 11751 11752cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11753ac_cs_usage="\ 11754\`$as_me' instantiates files and other configuration actions 11755from templates according to the current configuration. Unless the files 11756and actions are specified as TAGs, all are instantiated by default. 11757 11758Usage: $0 [OPTION]... [TAG]... 11759 11760 -h, --help print this help, then exit 11761 -V, --version print version number and configuration settings, then exit 11762 --config print configuration, then exit 11763 -q, --quiet, --silent 11764 do not print progress messages 11765 -d, --debug don't remove temporary files 11766 --recheck update $as_me by reconfiguring in the same conditions 11767 --file=FILE[:TEMPLATE] 11768 instantiate the configuration file FILE 11769 --header=FILE[:TEMPLATE] 11770 instantiate the configuration header FILE 11771 11772Configuration files: 11773$config_files 11774 11775Configuration headers: 11776$config_headers 11777 11778Configuration commands: 11779$config_commands 11780 11781Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11782 11783_ACEOF 11784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11785ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11786ac_cs_version="\\ 11787twm config.status 1.0.10 11788configured by $0, generated by GNU Autoconf 2.69, 11789 with options \\"\$ac_cs_config\\" 11790 11791Copyright (C) 2012 Free Software Foundation, Inc. 11792This config.status script is free software; the Free Software Foundation 11793gives unlimited permission to copy, distribute and modify it." 11794 11795ac_pwd='$ac_pwd' 11796srcdir='$srcdir' 11797INSTALL='$INSTALL' 11798MKDIR_P='$MKDIR_P' 11799AWK='$AWK' 11800test -n "\$AWK" || AWK=awk 11801_ACEOF 11802 11803cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11804# The default lists apply if the user does not specify any file. 11805ac_need_defaults=: 11806while test $# != 0 11807do 11808 case $1 in 11809 --*=?*) 11810 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11811 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11812 ac_shift=: 11813 ;; 11814 --*=) 11815 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11816 ac_optarg= 11817 ac_shift=: 11818 ;; 11819 *) 11820 ac_option=$1 11821 ac_optarg=$2 11822 ac_shift=shift 11823 ;; 11824 esac 11825 11826 case $ac_option in 11827 # Handling of the options. 11828 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11829 ac_cs_recheck=: ;; 11830 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11831 $as_echo "$ac_cs_version"; exit ;; 11832 --config | --confi | --conf | --con | --co | --c ) 11833 $as_echo "$ac_cs_config"; exit ;; 11834 --debug | --debu | --deb | --de | --d | -d ) 11835 debug=: ;; 11836 --file | --fil | --fi | --f ) 11837 $ac_shift 11838 case $ac_optarg in 11839 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11840 '') as_fn_error $? "missing file argument" ;; 11841 esac 11842 as_fn_append CONFIG_FILES " '$ac_optarg'" 11843 ac_need_defaults=false;; 11844 --header | --heade | --head | --hea ) 11845 $ac_shift 11846 case $ac_optarg in 11847 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11848 esac 11849 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11850 ac_need_defaults=false;; 11851 --he | --h) 11852 # Conflict between --help and --header 11853 as_fn_error $? "ambiguous option: \`$1' 11854Try \`$0 --help' for more information.";; 11855 --help | --hel | -h ) 11856 $as_echo "$ac_cs_usage"; exit ;; 11857 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11858 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11859 ac_cs_silent=: ;; 11860 11861 # This is an error. 11862 -*) as_fn_error $? "unrecognized option: \`$1' 11863Try \`$0 --help' for more information." ;; 11864 11865 *) as_fn_append ac_config_targets " $1" 11866 ac_need_defaults=false ;; 11867 11868 esac 11869 shift 11870done 11871 11872ac_configure_extra_args= 11873 11874if $ac_cs_silent; then 11875 exec 6>/dev/null 11876 ac_configure_extra_args="$ac_configure_extra_args --silent" 11877fi 11878 11879_ACEOF 11880cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11881if \$ac_cs_recheck; then 11882 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11883 shift 11884 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11885 CONFIG_SHELL='$SHELL' 11886 export CONFIG_SHELL 11887 exec "\$@" 11888fi 11889 11890_ACEOF 11891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11892exec 5>>config.log 11893{ 11894 echo 11895 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11896## Running $as_me. ## 11897_ASBOX 11898 $as_echo "$ac_log" 11899} >&5 11900 11901_ACEOF 11902cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11903# 11904# INIT-COMMANDS 11905# 11906AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11907 11908_ACEOF 11909 11910cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11911 11912# Handling of arguments. 11913for ac_config_target in $ac_config_targets 11914do 11915 case $ac_config_target in 11916 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11917 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11918 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11919 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 11920 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11921 11922 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11923 esac 11924done 11925 11926 11927# If the user did not use the arguments to specify the items to instantiate, 11928# then the envvar interface is used. Set only those that are not. 11929# We use the long form for the default assignment because of an extremely 11930# bizarre bug on SunOS 4.1.3. 11931if $ac_need_defaults; then 11932 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11933 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11934 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11935fi 11936 11937# Have a temporary directory for convenience. Make it in the build tree 11938# simply because there is no reason against having it here, and in addition, 11939# creating and moving files from /tmp can sometimes cause problems. 11940# Hook for its removal unless debugging. 11941# Note that there is a small window in which the directory will not be cleaned: 11942# after its creation but before its name has been assigned to `$tmp'. 11943$debug || 11944{ 11945 tmp= ac_tmp= 11946 trap 'exit_status=$? 11947 : "${ac_tmp:=$tmp}" 11948 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11949' 0 11950 trap 'as_fn_exit 1' 1 2 13 15 11951} 11952# Create a (secure) tmp directory for tmp files. 11953 11954{ 11955 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11956 test -d "$tmp" 11957} || 11958{ 11959 tmp=./conf$$-$RANDOM 11960 (umask 077 && mkdir "$tmp") 11961} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11962ac_tmp=$tmp 11963 11964# Set up the scripts for CONFIG_FILES section. 11965# No need to generate them if there are no CONFIG_FILES. 11966# This happens for instance with `./config.status config.h'. 11967if test -n "$CONFIG_FILES"; then 11968 11969 11970ac_cr=`echo X | tr X '\015'` 11971# On cygwin, bash can eat \r inside `` if the user requested igncr. 11972# But we know of no other shell where ac_cr would be empty at this 11973# point, so we can use a bashism as a fallback. 11974if test "x$ac_cr" = x; then 11975 eval ac_cr=\$\'\\r\' 11976fi 11977ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11978if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11979 ac_cs_awk_cr='\\r' 11980else 11981 ac_cs_awk_cr=$ac_cr 11982fi 11983 11984echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11985_ACEOF 11986 11987 11988{ 11989 echo "cat >conf$$subs.awk <<_ACEOF" && 11990 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11991 echo "_ACEOF" 11992} >conf$$subs.sh || 11993 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11994ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11995ac_delim='%!_!# ' 11996for ac_last_try in false false false false false :; do 11997 . ./conf$$subs.sh || 11998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11999 12000 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12001 if test $ac_delim_n = $ac_delim_num; then 12002 break 12003 elif $ac_last_try; then 12004 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 12005 else 12006 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12007 fi 12008done 12009rm -f conf$$subs.sh 12010 12011cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12012cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 12013_ACEOF 12014sed -n ' 12015h 12016s/^/S["/; s/!.*/"]=/ 12017p 12018g 12019s/^[^!]*!// 12020:repl 12021t repl 12022s/'"$ac_delim"'$// 12023t delim 12024:nl 12025h 12026s/\(.\{148\}\)..*/\1/ 12027t more1 12028s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12029p 12030n 12031b repl 12032:more1 12033s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12034p 12035g 12036s/.\{148\}// 12037t nl 12038:delim 12039h 12040s/\(.\{148\}\)..*/\1/ 12041t more2 12042s/["\\]/\\&/g; s/^/"/; s/$/"/ 12043p 12044b 12045:more2 12046s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12047p 12048g 12049s/.\{148\}// 12050t delim 12051' <conf$$subs.awk | sed ' 12052/^[^""]/{ 12053 N 12054 s/\n// 12055} 12056' >>$CONFIG_STATUS || ac_write_fail=1 12057rm -f conf$$subs.awk 12058cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12059_ACAWK 12060cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 12061 for (key in S) S_is_set[key] = 1 12062 FS = "" 12063 12064} 12065{ 12066 line = $ 0 12067 nfields = split(line, field, "@") 12068 substed = 0 12069 len = length(field[1]) 12070 for (i = 2; i < nfields; i++) { 12071 key = field[i] 12072 keylen = length(key) 12073 if (S_is_set[key]) { 12074 value = S[key] 12075 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12076 len += length(value) + length(field[++i]) 12077 substed = 1 12078 } else 12079 len += 1 + keylen 12080 } 12081 12082 print line 12083} 12084 12085_ACAWK 12086_ACEOF 12087cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12088if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12089 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12090else 12091 cat 12092fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 12093 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 12094_ACEOF 12095 12096# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 12097# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 12098# trailing colons and then remove the whole line if VPATH becomes empty 12099# (actually we leave an empty line to preserve line numbers). 12100if test "x$srcdir" = x.; then 12101 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 12102h 12103s/// 12104s/^/:/ 12105s/[ ]*$/:/ 12106s/:\$(srcdir):/:/g 12107s/:\${srcdir}:/:/g 12108s/:@srcdir@:/:/g 12109s/^:*// 12110s/:*$// 12111x 12112s/\(=[ ]*\).*/\1/ 12113G 12114s/\n// 12115s/^[^=]*=[ ]*$// 12116}' 12117fi 12118 12119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12120fi # test -n "$CONFIG_FILES" 12121 12122# Set up the scripts for CONFIG_HEADERS section. 12123# No need to generate them if there are no CONFIG_HEADERS. 12124# This happens for instance with `./config.status Makefile'. 12125if test -n "$CONFIG_HEADERS"; then 12126cat >"$ac_tmp/defines.awk" <<\_ACAWK || 12127BEGIN { 12128_ACEOF 12129 12130# Transform confdefs.h into an awk script `defines.awk', embedded as 12131# here-document in config.status, that substitutes the proper values into 12132# config.h.in to produce config.h. 12133 12134# Create a delimiter string that does not exist in confdefs.h, to ease 12135# handling of long lines. 12136ac_delim='%!_!# ' 12137for ac_last_try in false false :; do 12138 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 12139 if test -z "$ac_tt"; then 12140 break 12141 elif $ac_last_try; then 12142 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 12143 else 12144 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12145 fi 12146done 12147 12148# For the awk script, D is an array of macro values keyed by name, 12149# likewise P contains macro parameters if any. Preserve backslash 12150# newline sequences. 12151 12152ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12153sed -n ' 12154s/.\{148\}/&'"$ac_delim"'/g 12155t rset 12156:rset 12157s/^[ ]*#[ ]*define[ ][ ]*/ / 12158t def 12159d 12160:def 12161s/\\$// 12162t bsnl 12163s/["\\]/\\&/g 12164s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12165D["\1"]=" \3"/p 12166s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12167d 12168:bsnl 12169s/["\\]/\\&/g 12170s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12171D["\1"]=" \3\\\\\\n"\\/p 12172t cont 12173s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12174t cont 12175d 12176:cont 12177n 12178s/.\{148\}/&'"$ac_delim"'/g 12179t clear 12180:clear 12181s/\\$// 12182t bsnlc 12183s/["\\]/\\&/g; s/^/"/; s/$/"/p 12184d 12185:bsnlc 12186s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12187b cont 12188' <confdefs.h | sed ' 12189s/'"$ac_delim"'/"\\\ 12190"/g' >>$CONFIG_STATUS || ac_write_fail=1 12191 12192cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12193 for (key in D) D_is_set[key] = 1 12194 FS = "" 12195} 12196/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12197 line = \$ 0 12198 split(line, arg, " ") 12199 if (arg[1] == "#") { 12200 defundef = arg[2] 12201 mac1 = arg[3] 12202 } else { 12203 defundef = substr(arg[1], 2) 12204 mac1 = arg[2] 12205 } 12206 split(mac1, mac2, "(") #) 12207 macro = mac2[1] 12208 prefix = substr(line, 1, index(line, defundef) - 1) 12209 if (D_is_set[macro]) { 12210 # Preserve the white space surrounding the "#". 12211 print prefix "define", macro P[macro] D[macro] 12212 next 12213 } else { 12214 # Replace #undef with comments. This is necessary, for example, 12215 # in the case of _POSIX_SOURCE, which is predefined and required 12216 # on some systems where configure will not decide to define it. 12217 if (defundef == "undef") { 12218 print "/*", prefix defundef, macro, "*/" 12219 next 12220 } 12221 } 12222} 12223{ print } 12224_ACAWK 12225_ACEOF 12226cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12227 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 12228fi # test -n "$CONFIG_HEADERS" 12229 12230 12231eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12232shift 12233for ac_tag 12234do 12235 case $ac_tag in 12236 :[FHLC]) ac_mode=$ac_tag; continue;; 12237 esac 12238 case $ac_mode$ac_tag in 12239 :[FHL]*:*);; 12240 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 12241 :[FH]-) ac_tag=-:-;; 12242 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12243 esac 12244 ac_save_IFS=$IFS 12245 IFS=: 12246 set x $ac_tag 12247 IFS=$ac_save_IFS 12248 shift 12249 ac_file=$1 12250 shift 12251 12252 case $ac_mode in 12253 :L) ac_source=$1;; 12254 :[FH]) 12255 ac_file_inputs= 12256 for ac_f 12257 do 12258 case $ac_f in 12259 -) ac_f="$ac_tmp/stdin";; 12260 *) # Look for the file first in the build tree, then in the source tree 12261 # (if the path is not absolute). The absolute path cannot be DOS-style, 12262 # because $ac_f cannot contain `:'. 12263 test -f "$ac_f" || 12264 case $ac_f in 12265 [\\/$]*) false;; 12266 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12267 esac || 12268 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12269 esac 12270 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12271 as_fn_append ac_file_inputs " '$ac_f'" 12272 done 12273 12274 # Let's still pretend it is `configure' which instantiates (i.e., don't 12275 # use $as_me), people would be surprised to read: 12276 # /* config.h. Generated by config.status. */ 12277 configure_input='Generated from '` 12278 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12279 `' by configure.' 12280 if test x"$ac_file" != x-; then 12281 configure_input="$ac_file. $configure_input" 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12283$as_echo "$as_me: creating $ac_file" >&6;} 12284 fi 12285 # Neutralize special characters interpreted by sed in replacement strings. 12286 case $configure_input in #( 12287 *\&* | *\|* | *\\* ) 12288 ac_sed_conf_input=`$as_echo "$configure_input" | 12289 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12290 *) ac_sed_conf_input=$configure_input;; 12291 esac 12292 12293 case $ac_tag in 12294 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12295 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12296 esac 12297 ;; 12298 esac 12299 12300 ac_dir=`$as_dirname -- "$ac_file" || 12301$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12302 X"$ac_file" : 'X\(//\)[^/]' \| \ 12303 X"$ac_file" : 'X\(//\)$' \| \ 12304 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12305$as_echo X"$ac_file" | 12306 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12307 s//\1/ 12308 q 12309 } 12310 /^X\(\/\/\)[^/].*/{ 12311 s//\1/ 12312 q 12313 } 12314 /^X\(\/\/\)$/{ 12315 s//\1/ 12316 q 12317 } 12318 /^X\(\/\).*/{ 12319 s//\1/ 12320 q 12321 } 12322 s/.*/./; q'` 12323 as_dir="$ac_dir"; as_fn_mkdir_p 12324 ac_builddir=. 12325 12326case "$ac_dir" in 12327.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12328*) 12329 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12330 # A ".." for each directory in $ac_dir_suffix. 12331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12332 case $ac_top_builddir_sub in 12333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12335 esac ;; 12336esac 12337ac_abs_top_builddir=$ac_pwd 12338ac_abs_builddir=$ac_pwd$ac_dir_suffix 12339# for backward compatibility: 12340ac_top_builddir=$ac_top_build_prefix 12341 12342case $srcdir in 12343 .) # We are building in place. 12344 ac_srcdir=. 12345 ac_top_srcdir=$ac_top_builddir_sub 12346 ac_abs_top_srcdir=$ac_pwd ;; 12347 [\\/]* | ?:[\\/]* ) # Absolute name. 12348 ac_srcdir=$srcdir$ac_dir_suffix; 12349 ac_top_srcdir=$srcdir 12350 ac_abs_top_srcdir=$srcdir ;; 12351 *) # Relative name. 12352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12353 ac_top_srcdir=$ac_top_build_prefix$srcdir 12354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12355esac 12356ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12357 12358 12359 case $ac_mode in 12360 :F) 12361 # 12362 # CONFIG_FILE 12363 # 12364 12365 case $INSTALL in 12366 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12367 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12368 esac 12369 ac_MKDIR_P=$MKDIR_P 12370 case $MKDIR_P in 12371 [\\/$]* | ?:[\\/]* ) ;; 12372 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12373 esac 12374_ACEOF 12375 12376cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12377# If the template does not know about datarootdir, expand it. 12378# FIXME: This hack should be removed a few years after 2.60. 12379ac_datarootdir_hack=; ac_datarootdir_seen= 12380ac_sed_dataroot=' 12381/datarootdir/ { 12382 p 12383 q 12384} 12385/@datadir@/p 12386/@docdir@/p 12387/@infodir@/p 12388/@localedir@/p 12389/@mandir@/p' 12390case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12391*datarootdir*) ac_datarootdir_seen=yes;; 12392*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12394$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12395_ACEOF 12396cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12397 ac_datarootdir_hack=' 12398 s&@datadir@&$datadir&g 12399 s&@docdir@&$docdir&g 12400 s&@infodir@&$infodir&g 12401 s&@localedir@&$localedir&g 12402 s&@mandir@&$mandir&g 12403 s&\\\${datarootdir}&$datarootdir&g' ;; 12404esac 12405_ACEOF 12406 12407# Neutralize VPATH when `$srcdir' = `.'. 12408# Shell code in configure.ac might set extrasub. 12409# FIXME: do we really want to maintain this feature? 12410cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12411ac_sed_extra="$ac_vpsub 12412$extrasub 12413_ACEOF 12414cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12415:t 12416/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12417s|@configure_input@|$ac_sed_conf_input|;t t 12418s&@top_builddir@&$ac_top_builddir_sub&;t t 12419s&@top_build_prefix@&$ac_top_build_prefix&;t t 12420s&@srcdir@&$ac_srcdir&;t t 12421s&@abs_srcdir@&$ac_abs_srcdir&;t t 12422s&@top_srcdir@&$ac_top_srcdir&;t t 12423s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12424s&@builddir@&$ac_builddir&;t t 12425s&@abs_builddir@&$ac_abs_builddir&;t t 12426s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12427s&@INSTALL@&$ac_INSTALL&;t t 12428s&@MKDIR_P@&$ac_MKDIR_P&;t t 12429$ac_datarootdir_hack 12430" 12431eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12432 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12433 12434test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12435 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12436 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12437 "$ac_tmp/out"`; test -z "$ac_out"; } && 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12439which seems to be undefined. Please make sure it is defined" >&5 12440$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12441which seems to be undefined. Please make sure it is defined" >&2;} 12442 12443 rm -f "$ac_tmp/stdin" 12444 case $ac_file in 12445 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12446 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12447 esac \ 12448 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12449 ;; 12450 :H) 12451 # 12452 # CONFIG_HEADER 12453 # 12454 if test x"$ac_file" != x-; then 12455 { 12456 $as_echo "/* $configure_input */" \ 12457 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12458 } >"$ac_tmp/config.h" \ 12459 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12460 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12461 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12462$as_echo "$as_me: $ac_file is unchanged" >&6;} 12463 else 12464 rm -f "$ac_file" 12465 mv "$ac_tmp/config.h" "$ac_file" \ 12466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12467 fi 12468 else 12469 $as_echo "/* $configure_input */" \ 12470 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12471 || as_fn_error $? "could not create -" "$LINENO" 5 12472 fi 12473# Compute "$ac_file"'s index in $config_headers. 12474_am_arg="$ac_file" 12475_am_stamp_count=1 12476for _am_header in $config_headers :; do 12477 case $_am_header in 12478 $_am_arg | $_am_arg:* ) 12479 break ;; 12480 * ) 12481 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12482 esac 12483done 12484echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12485$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12486 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12487 X"$_am_arg" : 'X\(//\)$' \| \ 12488 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12489$as_echo X"$_am_arg" | 12490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12491 s//\1/ 12492 q 12493 } 12494 /^X\(\/\/\)[^/].*/{ 12495 s//\1/ 12496 q 12497 } 12498 /^X\(\/\/\)$/{ 12499 s//\1/ 12500 q 12501 } 12502 /^X\(\/\).*/{ 12503 s//\1/ 12504 q 12505 } 12506 s/.*/./; q'`/stamp-h$_am_stamp_count 12507 ;; 12508 12509 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12510$as_echo "$as_me: executing $ac_file commands" >&6;} 12511 ;; 12512 esac 12513 12514 12515 case $ac_file$ac_mode in 12516 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12517 # Older Autoconf quotes --file arguments for eval, but not when files 12518 # are listed without --file. Let's play safe and only enable the eval 12519 # if we detect the quoting. 12520 case $CONFIG_FILES in 12521 *\'*) eval set x "$CONFIG_FILES" ;; 12522 *) set x $CONFIG_FILES ;; 12523 esac 12524 shift 12525 for mf 12526 do 12527 # Strip MF so we end up with the name of the file. 12528 mf=`echo "$mf" | sed -e 's/:.*$//'` 12529 # Check whether this is an Automake generated Makefile or not. 12530 # We used to match only the files named 'Makefile.in', but 12531 # some people rename them; so instead we look at the file content. 12532 # Grep'ing the first line is not enough: some people post-process 12533 # each Makefile.in and add a new line on top of each file to say so. 12534 # Grep'ing the whole file is not good either: AIX grep has a line 12535 # limit of 2048, but all sed's we know have understand at least 4000. 12536 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12537 dirpart=`$as_dirname -- "$mf" || 12538$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12539 X"$mf" : 'X\(//\)[^/]' \| \ 12540 X"$mf" : 'X\(//\)$' \| \ 12541 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12542$as_echo X"$mf" | 12543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12544 s//\1/ 12545 q 12546 } 12547 /^X\(\/\/\)[^/].*/{ 12548 s//\1/ 12549 q 12550 } 12551 /^X\(\/\/\)$/{ 12552 s//\1/ 12553 q 12554 } 12555 /^X\(\/\).*/{ 12556 s//\1/ 12557 q 12558 } 12559 s/.*/./; q'` 12560 else 12561 continue 12562 fi 12563 # Extract the definition of DEPDIR, am__include, and am__quote 12564 # from the Makefile without running 'make'. 12565 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12566 test -z "$DEPDIR" && continue 12567 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12568 test -z "$am__include" && continue 12569 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12570 # Find all dependency output files, they are included files with 12571 # $(DEPDIR) in their names. We invoke sed twice because it is the 12572 # simplest approach to changing $(DEPDIR) to its actual value in the 12573 # expansion. 12574 for file in `sed -n " 12575 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12576 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12577 # Make sure the directory exists. 12578 test -f "$dirpart/$file" && continue 12579 fdir=`$as_dirname -- "$file" || 12580$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12581 X"$file" : 'X\(//\)[^/]' \| \ 12582 X"$file" : 'X\(//\)$' \| \ 12583 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12584$as_echo X"$file" | 12585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12586 s//\1/ 12587 q 12588 } 12589 /^X\(\/\/\)[^/].*/{ 12590 s//\1/ 12591 q 12592 } 12593 /^X\(\/\/\)$/{ 12594 s//\1/ 12595 q 12596 } 12597 /^X\(\/\).*/{ 12598 s//\1/ 12599 q 12600 } 12601 s/.*/./; q'` 12602 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12603 # echo "creating $dirpart/$file" 12604 echo '# dummy' > "$dirpart/$file" 12605 done 12606 done 12607} 12608 ;; 12609 12610 esac 12611done # for ac_tag 12612 12613 12614as_fn_exit 0 12615_ACEOF 12616ac_clean_files=$ac_clean_files_save 12617 12618test $ac_write_fail = 0 || 12619 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12620 12621 12622# configure is writing to config.log, and then calls config.status. 12623# config.status does its own redirection, appending to config.log. 12624# Unfortunately, on DOS this fails, as config.log is still kept open 12625# by configure, so config.status won't be able to write to it; its 12626# output is simply discarded. So we exec the FD to /dev/null, 12627# effectively closing config.log, so it can be properly (re)opened and 12628# appended to by config.status. When coming back to configure, we 12629# need to make the FD available again. 12630if test "$no_create" != yes; then 12631 ac_cs_success=: 12632 ac_config_status_args= 12633 test "$silent" = yes && 12634 ac_config_status_args="$ac_config_status_args --quiet" 12635 exec 5>/dev/null 12636 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12637 exec 5>>config.log 12638 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12639 # would make configure fail if this is the last instruction. 12640 $ac_cs_success || as_fn_exit 1 12641fi 12642if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12644$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12645fi 12646 12647