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