configure revision c44a0236
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for xlsclients 1.1.4. 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='xlsclients' 583PACKAGE_TARNAME='xlsclients' 584PACKAGE_VERSION='1.1.4' 585PACKAGE_STRING='xlsclients 1.1.4' 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 629XLSCLIENTS_LIBS 630XLSCLIENTS_CFLAGS 631LIBOBJS 632MAN_SUBSTS 633XORG_MAN_PAGE 634ADMIN_MAN_DIR 635DRIVER_MAN_DIR 636MISC_MAN_DIR 637FILE_MAN_DIR 638LIB_MAN_DIR 639APP_MAN_DIR 640ADMIN_MAN_SUFFIX 641DRIVER_MAN_SUFFIX 642MISC_MAN_SUFFIX 643FILE_MAN_SUFFIX 644LIB_MAN_SUFFIX 645APP_MAN_SUFFIX 646SED 647host_os 648host_vendor 649host_cpu 650host 651build_os 652build_vendor 653build_cpu 654build 655INSTALL_CMD 656PKG_CONFIG_LIBDIR 657PKG_CONFIG_PATH 658PKG_CONFIG 659CHANGELOG_CMD 660STRICT_CFLAGS 661CWARNFLAGS 662BASE_CFLAGS 663AM_BACKSLASH 664AM_DEFAULT_VERBOSITY 665AM_DEFAULT_V 666AM_V 667am__fastdepCC_FALSE 668am__fastdepCC_TRUE 669CCDEPMODE 670am__nodep 671AMDEPBACKSLASH 672AMDEP_FALSE 673AMDEP_TRUE 674am__quote 675am__include 676DEPDIR 677am__untar 678am__tar 679AMTAR 680am__leading_dot 681SET_MAKE 682AWK 683mkdir_p 684MKDIR_P 685INSTALL_STRIP_PROGRAM 686STRIP 687install_sh 688MAKEINFO 689AUTOHEADER 690AUTOMAKE 691AUTOCONF 692ACLOCAL 693VERSION 694PACKAGE 695CYGPATH_W 696am__isrc 697INSTALL_DATA 698INSTALL_SCRIPT 699INSTALL_PROGRAM 700EGREP 701GREP 702CPP 703OBJEXT 704EXEEXT 705ac_ct_CC 706CPPFLAGS 707LDFLAGS 708CFLAGS 709CC 710target_alias 711host_alias 712build_alias 713LIBS 714ECHO_T 715ECHO_N 716ECHO_C 717DEFS 718mandir 719localedir 720libdir 721psdir 722pdfdir 723dvidir 724htmldir 725infodir 726docdir 727oldincludedir 728includedir 729localstatedir 730sharedstatedir 731sysconfdir 732datadir 733datarootdir 734libexecdir 735sbindir 736bindir 737program_transform_name 738prefix 739exec_prefix 740PACKAGE_URL 741PACKAGE_BUGREPORT 742PACKAGE_STRING 743PACKAGE_VERSION 744PACKAGE_TARNAME 745PACKAGE_NAME 746PATH_SEPARATOR 747SHELL' 748ac_subst_files='' 749ac_user_opts=' 750enable_option_checking 751enable_dependency_tracking 752enable_silent_rules 753enable_selective_werror 754enable_strict_compilation 755' 756 ac_precious_vars='build_alias 757host_alias 758target_alias 759CC 760CFLAGS 761LDFLAGS 762LIBS 763CPPFLAGS 764CPP 765PKG_CONFIG 766PKG_CONFIG_PATH 767PKG_CONFIG_LIBDIR 768XLSCLIENTS_CFLAGS 769XLSCLIENTS_LIBS' 770 771 772# Initialize some variables set by options. 773ac_init_help= 774ac_init_version=false 775ac_unrecognized_opts= 776ac_unrecognized_sep= 777# The variables have the same names as the options, with 778# dashes changed to underlines. 779cache_file=/dev/null 780exec_prefix=NONE 781no_create= 782no_recursion= 783prefix=NONE 784program_prefix=NONE 785program_suffix=NONE 786program_transform_name=s,x,x, 787silent= 788site= 789srcdir= 790verbose= 791x_includes=NONE 792x_libraries=NONE 793 794# Installation directory options. 795# These are left unexpanded so users can "make install exec_prefix=/foo" 796# and all the variables that are supposed to be based on exec_prefix 797# by default will actually change. 798# Use braces instead of parens because sh, perl, etc. also accept them. 799# (The list follows the same order as the GNU Coding Standards.) 800bindir='${exec_prefix}/bin' 801sbindir='${exec_prefix}/sbin' 802libexecdir='${exec_prefix}/libexec' 803datarootdir='${prefix}/share' 804datadir='${datarootdir}' 805sysconfdir='${prefix}/etc' 806sharedstatedir='${prefix}/com' 807localstatedir='${prefix}/var' 808includedir='${prefix}/include' 809oldincludedir='/usr/include' 810docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 811infodir='${datarootdir}/info' 812htmldir='${docdir}' 813dvidir='${docdir}' 814pdfdir='${docdir}' 815psdir='${docdir}' 816libdir='${exec_prefix}/lib' 817localedir='${datarootdir}/locale' 818mandir='${datarootdir}/man' 819 820ac_prev= 821ac_dashdash= 822for ac_option 823do 824 # If the previous option needs an argument, assign it. 825 if test -n "$ac_prev"; then 826 eval $ac_prev=\$ac_option 827 ac_prev= 828 continue 829 fi 830 831 case $ac_option in 832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 833 *=) ac_optarg= ;; 834 *) ac_optarg=yes ;; 835 esac 836 837 # Accept the important Cygnus configure options, so we can diagnose typos. 838 839 case $ac_dashdash$ac_option in 840 --) 841 ac_dashdash=yes ;; 842 843 -bindir | --bindir | --bindi | --bind | --bin | --bi) 844 ac_prev=bindir ;; 845 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 846 bindir=$ac_optarg ;; 847 848 -build | --build | --buil | --bui | --bu) 849 ac_prev=build_alias ;; 850 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 851 build_alias=$ac_optarg ;; 852 853 -cache-file | --cache-file | --cache-fil | --cache-fi \ 854 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 855 ac_prev=cache_file ;; 856 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 857 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 858 cache_file=$ac_optarg ;; 859 860 --config-cache | -C) 861 cache_file=config.cache ;; 862 863 -datadir | --datadir | --datadi | --datad) 864 ac_prev=datadir ;; 865 -datadir=* | --datadir=* | --datadi=* | --datad=*) 866 datadir=$ac_optarg ;; 867 868 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 869 | --dataroo | --dataro | --datar) 870 ac_prev=datarootdir ;; 871 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 872 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 873 datarootdir=$ac_optarg ;; 874 875 -disable-* | --disable-*) 876 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 877 # Reject names that are not valid shell variable names. 878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879 as_fn_error $? "invalid feature name: $ac_useropt" 880 ac_useropt_orig=$ac_useropt 881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882 case $ac_user_opts in 883 *" 884"enable_$ac_useropt" 885"*) ;; 886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 887 ac_unrecognized_sep=', ';; 888 esac 889 eval enable_$ac_useropt=no ;; 890 891 -docdir | --docdir | --docdi | --doc | --do) 892 ac_prev=docdir ;; 893 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 894 docdir=$ac_optarg ;; 895 896 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 897 ac_prev=dvidir ;; 898 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 899 dvidir=$ac_optarg ;; 900 901 -enable-* | --enable-*) 902 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 903 # Reject names that are not valid shell variable names. 904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 905 as_fn_error $? "invalid feature name: $ac_useropt" 906 ac_useropt_orig=$ac_useropt 907 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 908 case $ac_user_opts in 909 *" 910"enable_$ac_useropt" 911"*) ;; 912 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 913 ac_unrecognized_sep=', ';; 914 esac 915 eval enable_$ac_useropt=\$ac_optarg ;; 916 917 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 918 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 919 | --exec | --exe | --ex) 920 ac_prev=exec_prefix ;; 921 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 922 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 923 | --exec=* | --exe=* | --ex=*) 924 exec_prefix=$ac_optarg ;; 925 926 -gas | --gas | --ga | --g) 927 # Obsolete; use --with-gas. 928 with_gas=yes ;; 929 930 -help | --help | --hel | --he | -h) 931 ac_init_help=long ;; 932 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 933 ac_init_help=recursive ;; 934 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 935 ac_init_help=short ;; 936 937 -host | --host | --hos | --ho) 938 ac_prev=host_alias ;; 939 -host=* | --host=* | --hos=* | --ho=*) 940 host_alias=$ac_optarg ;; 941 942 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 943 ac_prev=htmldir ;; 944 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 945 | --ht=*) 946 htmldir=$ac_optarg ;; 947 948 -includedir | --includedir | --includedi | --included | --include \ 949 | --includ | --inclu | --incl | --inc) 950 ac_prev=includedir ;; 951 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 952 | --includ=* | --inclu=* | --incl=* | --inc=*) 953 includedir=$ac_optarg ;; 954 955 -infodir | --infodir | --infodi | --infod | --info | --inf) 956 ac_prev=infodir ;; 957 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 958 infodir=$ac_optarg ;; 959 960 -libdir | --libdir | --libdi | --libd) 961 ac_prev=libdir ;; 962 -libdir=* | --libdir=* | --libdi=* | --libd=*) 963 libdir=$ac_optarg ;; 964 965 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 966 | --libexe | --libex | --libe) 967 ac_prev=libexecdir ;; 968 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 969 | --libexe=* | --libex=* | --libe=*) 970 libexecdir=$ac_optarg ;; 971 972 -localedir | --localedir | --localedi | --localed | --locale) 973 ac_prev=localedir ;; 974 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 975 localedir=$ac_optarg ;; 976 977 -localstatedir | --localstatedir | --localstatedi | --localstated \ 978 | --localstate | --localstat | --localsta | --localst | --locals) 979 ac_prev=localstatedir ;; 980 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 982 localstatedir=$ac_optarg ;; 983 984 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 985 ac_prev=mandir ;; 986 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 987 mandir=$ac_optarg ;; 988 989 -nfp | --nfp | --nf) 990 # Obsolete; use --without-fp. 991 with_fp=no ;; 992 993 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 994 | --no-cr | --no-c | -n) 995 no_create=yes ;; 996 997 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 998 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 999 no_recursion=yes ;; 1000 1001 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1002 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1003 | --oldin | --oldi | --old | --ol | --o) 1004 ac_prev=oldincludedir ;; 1005 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1006 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1007 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1008 oldincludedir=$ac_optarg ;; 1009 1010 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1011 ac_prev=prefix ;; 1012 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1013 prefix=$ac_optarg ;; 1014 1015 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1016 | --program-pre | --program-pr | --program-p) 1017 ac_prev=program_prefix ;; 1018 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1019 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1020 program_prefix=$ac_optarg ;; 1021 1022 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1023 | --program-suf | --program-su | --program-s) 1024 ac_prev=program_suffix ;; 1025 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1026 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1027 program_suffix=$ac_optarg ;; 1028 1029 -program-transform-name | --program-transform-name \ 1030 | --program-transform-nam | --program-transform-na \ 1031 | --program-transform-n | --program-transform- \ 1032 | --program-transform | --program-transfor \ 1033 | --program-transfo | --program-transf \ 1034 | --program-trans | --program-tran \ 1035 | --progr-tra | --program-tr | --program-t) 1036 ac_prev=program_transform_name ;; 1037 -program-transform-name=* | --program-transform-name=* \ 1038 | --program-transform-nam=* | --program-transform-na=* \ 1039 | --program-transform-n=* | --program-transform-=* \ 1040 | --program-transform=* | --program-transfor=* \ 1041 | --program-transfo=* | --program-transf=* \ 1042 | --program-trans=* | --program-tran=* \ 1043 | --progr-tra=* | --program-tr=* | --program-t=*) 1044 program_transform_name=$ac_optarg ;; 1045 1046 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1047 ac_prev=pdfdir ;; 1048 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1049 pdfdir=$ac_optarg ;; 1050 1051 -psdir | --psdir | --psdi | --psd | --ps) 1052 ac_prev=psdir ;; 1053 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1054 psdir=$ac_optarg ;; 1055 1056 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 | -silent | --silent | --silen | --sile | --sil) 1058 silent=yes ;; 1059 1060 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1061 ac_prev=sbindir ;; 1062 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1063 | --sbi=* | --sb=*) 1064 sbindir=$ac_optarg ;; 1065 1066 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1067 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1068 | --sharedst | --shareds | --shared | --share | --shar \ 1069 | --sha | --sh) 1070 ac_prev=sharedstatedir ;; 1071 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1072 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1073 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1074 | --sha=* | --sh=*) 1075 sharedstatedir=$ac_optarg ;; 1076 1077 -site | --site | --sit) 1078 ac_prev=site ;; 1079 -site=* | --site=* | --sit=*) 1080 site=$ac_optarg ;; 1081 1082 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1083 ac_prev=srcdir ;; 1084 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1085 srcdir=$ac_optarg ;; 1086 1087 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1088 | --syscon | --sysco | --sysc | --sys | --sy) 1089 ac_prev=sysconfdir ;; 1090 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1091 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1092 sysconfdir=$ac_optarg ;; 1093 1094 -target | --target | --targe | --targ | --tar | --ta | --t) 1095 ac_prev=target_alias ;; 1096 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1097 target_alias=$ac_optarg ;; 1098 1099 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1100 verbose=yes ;; 1101 1102 -version | --version | --versio | --versi | --vers | -V) 1103 ac_init_version=: ;; 1104 1105 -with-* | --with-*) 1106 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1107 # Reject names that are not valid shell variable names. 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1109 as_fn_error $? "invalid package name: $ac_useropt" 1110 ac_useropt_orig=$ac_useropt 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1112 case $ac_user_opts in 1113 *" 1114"with_$ac_useropt" 1115"*) ;; 1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1117 ac_unrecognized_sep=', ';; 1118 esac 1119 eval with_$ac_useropt=\$ac_optarg ;; 1120 1121 -without-* | --without-*) 1122 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1123 # Reject names that are not valid shell variable names. 1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1125 as_fn_error $? "invalid package name: $ac_useropt" 1126 ac_useropt_orig=$ac_useropt 1127 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1128 case $ac_user_opts in 1129 *" 1130"with_$ac_useropt" 1131"*) ;; 1132 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1133 ac_unrecognized_sep=', ';; 1134 esac 1135 eval with_$ac_useropt=no ;; 1136 1137 --x) 1138 # Obsolete; use --with-x. 1139 with_x=yes ;; 1140 1141 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1142 | --x-incl | --x-inc | --x-in | --x-i) 1143 ac_prev=x_includes ;; 1144 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1145 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1146 x_includes=$ac_optarg ;; 1147 1148 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1149 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1150 ac_prev=x_libraries ;; 1151 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1152 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1153 x_libraries=$ac_optarg ;; 1154 1155 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1156Try \`$0 --help' for more information" 1157 ;; 1158 1159 *=*) 1160 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1161 # Reject names that are not valid shell variable names. 1162 case $ac_envvar in #( 1163 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1164 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1165 esac 1166 eval $ac_envvar=\$ac_optarg 1167 export $ac_envvar ;; 1168 1169 *) 1170 # FIXME: should be removed in autoconf 3.0. 1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1174 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1175 ;; 1176 1177 esac 1178done 1179 1180if test -n "$ac_prev"; then 1181 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1182 as_fn_error $? "missing argument to $ac_option" 1183fi 1184 1185if test -n "$ac_unrecognized_opts"; then 1186 case $enable_option_checking in 1187 no) ;; 1188 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1190 esac 1191fi 1192 1193# Check all directory arguments for consistency. 1194for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1195 datadir sysconfdir sharedstatedir localstatedir includedir \ 1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1197 libdir localedir mandir 1198do 1199 eval ac_val=\$$ac_var 1200 # Remove trailing slashes. 1201 case $ac_val in 1202 */ ) 1203 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1204 eval $ac_var=\$ac_val;; 1205 esac 1206 # Be sure to have absolute directory names. 1207 case $ac_val in 1208 [\\/$]* | ?:[\\/]* ) continue;; 1209 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1210 esac 1211 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1212done 1213 1214# There might be people who depend on the old broken behavior: `$host' 1215# used to hold the argument of --host etc. 1216# FIXME: To remove some day. 1217build=$build_alias 1218host=$host_alias 1219target=$target_alias 1220 1221# FIXME: To remove some day. 1222if test "x$host_alias" != x; then 1223 if test "x$build_alias" = x; then 1224 cross_compiling=maybe 1225 elif test "x$build_alias" != "x$host_alias"; then 1226 cross_compiling=yes 1227 fi 1228fi 1229 1230ac_tool_prefix= 1231test -n "$host_alias" && ac_tool_prefix=$host_alias- 1232 1233test "$silent" = yes && exec 6>/dev/null 1234 1235 1236ac_pwd=`pwd` && test -n "$ac_pwd" && 1237ac_ls_di=`ls -di .` && 1238ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1239 as_fn_error $? "working directory cannot be determined" 1240test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1241 as_fn_error $? "pwd does not report name of working directory" 1242 1243 1244# Find the source files, if location was not specified. 1245if test -z "$srcdir"; then 1246 ac_srcdir_defaulted=yes 1247 # Try the directory containing this script, then the parent directory. 1248 ac_confdir=`$as_dirname -- "$as_myself" || 1249$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1250 X"$as_myself" : 'X\(//\)[^/]' \| \ 1251 X"$as_myself" : 'X\(//\)$' \| \ 1252 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1253$as_echo X"$as_myself" | 1254 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1255 s//\1/ 1256 q 1257 } 1258 /^X\(\/\/\)[^/].*/{ 1259 s//\1/ 1260 q 1261 } 1262 /^X\(\/\/\)$/{ 1263 s//\1/ 1264 q 1265 } 1266 /^X\(\/\).*/{ 1267 s//\1/ 1268 q 1269 } 1270 s/.*/./; q'` 1271 srcdir=$ac_confdir 1272 if test ! -r "$srcdir/$ac_unique_file"; then 1273 srcdir=.. 1274 fi 1275else 1276 ac_srcdir_defaulted=no 1277fi 1278if test ! -r "$srcdir/$ac_unique_file"; then 1279 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1280 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1281fi 1282ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1283ac_abs_confdir=`( 1284 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1285 pwd)` 1286# When building in place, set srcdir=. 1287if test "$ac_abs_confdir" = "$ac_pwd"; then 1288 srcdir=. 1289fi 1290# Remove unnecessary trailing slashes from srcdir. 1291# Double slashes in file names in object file debugging info 1292# mess up M-x gdb in Emacs. 1293case $srcdir in 1294*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1295esac 1296for ac_var in $ac_precious_vars; do 1297 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1298 eval ac_env_${ac_var}_value=\$${ac_var} 1299 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1300 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1301done 1302 1303# 1304# Report the --help message. 1305# 1306if test "$ac_init_help" = "long"; then 1307 # Omit some internal or obsolete options to make the list less imposing. 1308 # This message is too long to be a string in the A/UX 3.1 sh. 1309 cat <<_ACEOF 1310\`configure' configures xlsclients 1.1.4 to adapt to many kinds of systems. 1311 1312Usage: $0 [OPTION]... [VAR=VALUE]... 1313 1314To assign environment variables (e.g., CC, CFLAGS...), specify them as 1315VAR=VALUE. See below for descriptions of some of the useful variables. 1316 1317Defaults for the options are specified in brackets. 1318 1319Configuration: 1320 -h, --help display this help and exit 1321 --help=short display options specific to this package 1322 --help=recursive display the short help of all the included packages 1323 -V, --version display version information and exit 1324 -q, --quiet, --silent do not print \`checking ...' messages 1325 --cache-file=FILE cache test results in FILE [disabled] 1326 -C, --config-cache alias for \`--cache-file=config.cache' 1327 -n, --no-create do not create output files 1328 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1329 1330Installation directories: 1331 --prefix=PREFIX install architecture-independent files in PREFIX 1332 [$ac_default_prefix] 1333 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1334 [PREFIX] 1335 1336By default, \`make install' will install all the files in 1337\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1338an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1339for instance \`--prefix=\$HOME'. 1340 1341For better control, use the options below. 1342 1343Fine tuning of the installation directories: 1344 --bindir=DIR user executables [EPREFIX/bin] 1345 --sbindir=DIR system admin executables [EPREFIX/sbin] 1346 --libexecdir=DIR program executables [EPREFIX/libexec] 1347 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1348 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1349 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1350 --libdir=DIR object code libraries [EPREFIX/lib] 1351 --includedir=DIR C header files [PREFIX/include] 1352 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1353 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1354 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1355 --infodir=DIR info documentation [DATAROOTDIR/info] 1356 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1357 --mandir=DIR man documentation [DATAROOTDIR/man] 1358 --docdir=DIR documentation root [DATAROOTDIR/doc/xlsclients] 1359 --htmldir=DIR html documentation [DOCDIR] 1360 --dvidir=DIR dvi documentation [DOCDIR] 1361 --pdfdir=DIR pdf documentation [DOCDIR] 1362 --psdir=DIR ps documentation [DOCDIR] 1363_ACEOF 1364 1365 cat <<\_ACEOF 1366 1367Program names: 1368 --program-prefix=PREFIX prepend PREFIX to installed program names 1369 --program-suffix=SUFFIX append SUFFIX to installed program names 1370 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1371 1372System types: 1373 --build=BUILD configure for building on BUILD [guessed] 1374 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1375_ACEOF 1376fi 1377 1378if test -n "$ac_init_help"; then 1379 case $ac_init_help in 1380 short | recursive ) echo "Configuration of xlsclients 1.1.4:";; 1381 esac 1382 cat <<\_ACEOF 1383 1384Optional Features: 1385 --disable-option-checking ignore unrecognized --enable/--with options 1386 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1387 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1388 --enable-dependency-tracking 1389 do not reject slow dependency extractors 1390 --disable-dependency-tracking 1391 speeds up one-time build 1392 --enable-silent-rules less verbose build output (undo: "make V=1") 1393 --disable-silent-rules verbose build output (undo: "make V=0") 1394 --disable-selective-werror 1395 Turn off selective compiler errors. (default: 1396 enabled) 1397 --enable-strict-compilation 1398 Enable all warnings from compiler and make them 1399 errors (default: disabled) 1400 1401Some influential environment variables: 1402 CC C compiler command 1403 CFLAGS C compiler flags 1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1405 nonstandard directory <lib dir> 1406 LIBS libraries to pass to the linker, e.g. -l<library> 1407 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1408 you have headers in a nonstandard directory <include dir> 1409 CPP C preprocessor 1410 PKG_CONFIG path to pkg-config utility 1411 PKG_CONFIG_PATH 1412 directories to add to pkg-config's search path 1413 PKG_CONFIG_LIBDIR 1414 path overriding pkg-config's built-in search path 1415 XLSCLIENTS_CFLAGS 1416 C compiler flags for XLSCLIENTS, overriding pkg-config 1417 XLSCLIENTS_LIBS 1418 linker flags for XLSCLIENTS, overriding pkg-config 1419 1420Use these variables to override the choices made by `configure' or to help 1421it to find libraries and programs with nonstandard names/locations. 1422 1423Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1424_ACEOF 1425ac_status=$? 1426fi 1427 1428if test "$ac_init_help" = "recursive"; then 1429 # If there are subdirs, report their specific --help. 1430 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1431 test -d "$ac_dir" || 1432 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1433 continue 1434 ac_builddir=. 1435 1436case "$ac_dir" in 1437.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1438*) 1439 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1440 # A ".." for each directory in $ac_dir_suffix. 1441 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1442 case $ac_top_builddir_sub in 1443 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1444 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1445 esac ;; 1446esac 1447ac_abs_top_builddir=$ac_pwd 1448ac_abs_builddir=$ac_pwd$ac_dir_suffix 1449# for backward compatibility: 1450ac_top_builddir=$ac_top_build_prefix 1451 1452case $srcdir in 1453 .) # We are building in place. 1454 ac_srcdir=. 1455 ac_top_srcdir=$ac_top_builddir_sub 1456 ac_abs_top_srcdir=$ac_pwd ;; 1457 [\\/]* | ?:[\\/]* ) # Absolute name. 1458 ac_srcdir=$srcdir$ac_dir_suffix; 1459 ac_top_srcdir=$srcdir 1460 ac_abs_top_srcdir=$srcdir ;; 1461 *) # Relative name. 1462 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1463 ac_top_srcdir=$ac_top_build_prefix$srcdir 1464 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1465esac 1466ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1467 1468 cd "$ac_dir" || { ac_status=$?; continue; } 1469 # Check for guested configure. 1470 if test -f "$ac_srcdir/configure.gnu"; then 1471 echo && 1472 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1473 elif test -f "$ac_srcdir/configure"; then 1474 echo && 1475 $SHELL "$ac_srcdir/configure" --help=recursive 1476 else 1477 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1478 fi || ac_status=$? 1479 cd "$ac_pwd" || { ac_status=$?; break; } 1480 done 1481fi 1482 1483test -n "$ac_init_help" && exit $ac_status 1484if $ac_init_version; then 1485 cat <<\_ACEOF 1486xlsclients configure 1.1.4 1487generated by GNU Autoconf 2.69 1488 1489Copyright (C) 2012 Free Software Foundation, Inc. 1490This configure script is free software; the Free Software Foundation 1491gives unlimited permission to copy, distribute and modify it. 1492_ACEOF 1493 exit 1494fi 1495 1496## ------------------------ ## 1497## Autoconf initialization. ## 1498## ------------------------ ## 1499 1500# ac_fn_c_try_compile LINENO 1501# -------------------------- 1502# Try to compile conftest.$ac_ext, and return whether this succeeded. 1503ac_fn_c_try_compile () 1504{ 1505 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1506 rm -f conftest.$ac_objext 1507 if { { ac_try="$ac_compile" 1508case "(($ac_try" in 1509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1510 *) ac_try_echo=$ac_try;; 1511esac 1512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1513$as_echo "$ac_try_echo"; } >&5 1514 (eval "$ac_compile") 2>conftest.err 1515 ac_status=$? 1516 if test -s conftest.err; then 1517 grep -v '^ *+' conftest.err >conftest.er1 1518 cat conftest.er1 >&5 1519 mv -f conftest.er1 conftest.err 1520 fi 1521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1522 test $ac_status = 0; } && { 1523 test -z "$ac_c_werror_flag" || 1524 test ! -s conftest.err 1525 } && test -s conftest.$ac_objext; then : 1526 ac_retval=0 1527else 1528 $as_echo "$as_me: failed program was:" >&5 1529sed 's/^/| /' conftest.$ac_ext >&5 1530 1531 ac_retval=1 1532fi 1533 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1534 as_fn_set_status $ac_retval 1535 1536} # ac_fn_c_try_compile 1537 1538# ac_fn_c_try_cpp LINENO 1539# ---------------------- 1540# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1541ac_fn_c_try_cpp () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 if { { ac_try="$ac_cpp conftest.$ac_ext" 1545case "(($ac_try" in 1546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1547 *) ac_try_echo=$ac_try;; 1548esac 1549eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1550$as_echo "$ac_try_echo"; } >&5 1551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1552 ac_status=$? 1553 if test -s conftest.err; then 1554 grep -v '^ *+' conftest.err >conftest.er1 1555 cat conftest.er1 >&5 1556 mv -f conftest.er1 conftest.err 1557 fi 1558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1559 test $ac_status = 0; } > conftest.i && { 1560 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1561 test ! -s conftest.err 1562 }; then : 1563 ac_retval=0 1564else 1565 $as_echo "$as_me: failed program was:" >&5 1566sed 's/^/| /' conftest.$ac_ext >&5 1567 1568 ac_retval=1 1569fi 1570 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1571 as_fn_set_status $ac_retval 1572 1573} # ac_fn_c_try_cpp 1574 1575# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1576# ------------------------------------------------------- 1577# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1578# the include files in INCLUDES and setting the cache variable VAR 1579# accordingly. 1580ac_fn_c_check_header_mongrel () 1581{ 1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1583 if eval \${$3+:} false; then : 1584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1585$as_echo_n "checking for $2... " >&6; } 1586if eval \${$3+:} false; then : 1587 $as_echo_n "(cached) " >&6 1588fi 1589eval ac_res=\$$3 1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1591$as_echo "$ac_res" >&6; } 1592else 1593 # Is the header compilable? 1594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1595$as_echo_n "checking $2 usability... " >&6; } 1596cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1597/* end confdefs.h. */ 1598$4 1599#include <$2> 1600_ACEOF 1601if ac_fn_c_try_compile "$LINENO"; then : 1602 ac_header_compiler=yes 1603else 1604 ac_header_compiler=no 1605fi 1606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1608$as_echo "$ac_header_compiler" >&6; } 1609 1610# Is the header present? 1611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1612$as_echo_n "checking $2 presence... " >&6; } 1613cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1614/* end confdefs.h. */ 1615#include <$2> 1616_ACEOF 1617if ac_fn_c_try_cpp "$LINENO"; then : 1618 ac_header_preproc=yes 1619else 1620 ac_header_preproc=no 1621fi 1622rm -f conftest.err conftest.i conftest.$ac_ext 1623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1624$as_echo "$ac_header_preproc" >&6; } 1625 1626# So? What about this header? 1627case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1628 yes:no: ) 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1630$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1632$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1633 ;; 1634 no:yes:* ) 1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1636$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1638$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1640$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1642$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1644$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1645( $as_echo "## ---------------------------------------------------------------------- ## 1646## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ## 1647## ---------------------------------------------------------------------- ##" 1648 ) | sed "s/^/$as_me: WARNING: /" >&2 1649 ;; 1650esac 1651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1652$as_echo_n "checking for $2... " >&6; } 1653if eval \${$3+:} false; then : 1654 $as_echo_n "(cached) " >&6 1655else 1656 eval "$3=\$ac_header_compiler" 1657fi 1658eval ac_res=\$$3 1659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1660$as_echo "$ac_res" >&6; } 1661fi 1662 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1663 1664} # ac_fn_c_check_header_mongrel 1665 1666# ac_fn_c_try_run LINENO 1667# ---------------------- 1668# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1669# that executables *can* be run. 1670ac_fn_c_try_run () 1671{ 1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1673 if { { ac_try="$ac_link" 1674case "(($ac_try" in 1675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1676 *) ac_try_echo=$ac_try;; 1677esac 1678eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1679$as_echo "$ac_try_echo"; } >&5 1680 (eval "$ac_link") 2>&5 1681 ac_status=$? 1682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1683 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1684 { { case "(($ac_try" in 1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1686 *) ac_try_echo=$ac_try;; 1687esac 1688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1689$as_echo "$ac_try_echo"; } >&5 1690 (eval "$ac_try") 2>&5 1691 ac_status=$? 1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1693 test $ac_status = 0; }; }; then : 1694 ac_retval=0 1695else 1696 $as_echo "$as_me: program exited with status $ac_status" >&5 1697 $as_echo "$as_me: failed program was:" >&5 1698sed 's/^/| /' conftest.$ac_ext >&5 1699 1700 ac_retval=$ac_status 1701fi 1702 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1703 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1704 as_fn_set_status $ac_retval 1705 1706} # ac_fn_c_try_run 1707 1708# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1709# ------------------------------------------------------- 1710# Tests whether HEADER exists and can be compiled using the include files in 1711# INCLUDES, setting the cache variable VAR accordingly. 1712ac_fn_c_check_header_compile () 1713{ 1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1716$as_echo_n "checking for $2... " >&6; } 1717if eval \${$3+:} false; then : 1718 $as_echo_n "(cached) " >&6 1719else 1720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1721/* end confdefs.h. */ 1722$4 1723#include <$2> 1724_ACEOF 1725if ac_fn_c_try_compile "$LINENO"; then : 1726 eval "$3=yes" 1727else 1728 eval "$3=no" 1729fi 1730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1731fi 1732eval ac_res=\$$3 1733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1734$as_echo "$ac_res" >&6; } 1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1736 1737} # ac_fn_c_check_header_compile 1738 1739# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1740# --------------------------------------------- 1741# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1742# accordingly. 1743ac_fn_c_check_decl () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 as_decl_name=`echo $2|sed 's/ *(.*//'` 1747 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1749$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1750if eval \${$3+:} false; then : 1751 $as_echo_n "(cached) " >&6 1752else 1753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1754/* end confdefs.h. */ 1755$4 1756int 1757main () 1758{ 1759#ifndef $as_decl_name 1760#ifdef __cplusplus 1761 (void) $as_decl_use; 1762#else 1763 (void) $as_decl_name; 1764#endif 1765#endif 1766 1767 ; 1768 return 0; 1769} 1770_ACEOF 1771if ac_fn_c_try_compile "$LINENO"; then : 1772 eval "$3=yes" 1773else 1774 eval "$3=no" 1775fi 1776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1777fi 1778eval ac_res=\$$3 1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1780$as_echo "$ac_res" >&6; } 1781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1782 1783} # ac_fn_c_check_decl 1784 1785# ac_fn_c_try_link LINENO 1786# ----------------------- 1787# Try to link conftest.$ac_ext, and return whether this succeeded. 1788ac_fn_c_try_link () 1789{ 1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1791 rm -f conftest.$ac_objext conftest$ac_exeext 1792 if { { ac_try="$ac_link" 1793case "(($ac_try" in 1794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1795 *) ac_try_echo=$ac_try;; 1796esac 1797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1798$as_echo "$ac_try_echo"; } >&5 1799 (eval "$ac_link") 2>conftest.err 1800 ac_status=$? 1801 if test -s conftest.err; then 1802 grep -v '^ *+' conftest.err >conftest.er1 1803 cat conftest.er1 >&5 1804 mv -f conftest.er1 conftest.err 1805 fi 1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1807 test $ac_status = 0; } && { 1808 test -z "$ac_c_werror_flag" || 1809 test ! -s conftest.err 1810 } && test -s conftest$ac_exeext && { 1811 test "$cross_compiling" = yes || 1812 test -x conftest$ac_exeext 1813 }; then : 1814 ac_retval=0 1815else 1816 $as_echo "$as_me: failed program was:" >&5 1817sed 's/^/| /' conftest.$ac_ext >&5 1818 1819 ac_retval=1 1820fi 1821 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1822 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1823 # interfere with the next link command; also delete a directory that is 1824 # left behind by Apple's compiler. We do this before executing the actions. 1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1826 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1827 as_fn_set_status $ac_retval 1828 1829} # ac_fn_c_try_link 1830cat >config.log <<_ACEOF 1831This file contains any messages produced by compilers while 1832running configure, to aid debugging if configure makes a mistake. 1833 1834It was created by xlsclients $as_me 1.1.4, which was 1835generated by GNU Autoconf 2.69. Invocation command line was 1836 1837 $ $0 $@ 1838 1839_ACEOF 1840exec 5>>config.log 1841{ 1842cat <<_ASUNAME 1843## --------- ## 1844## Platform. ## 1845## --------- ## 1846 1847hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1848uname -m = `(uname -m) 2>/dev/null || echo unknown` 1849uname -r = `(uname -r) 2>/dev/null || echo unknown` 1850uname -s = `(uname -s) 2>/dev/null || echo unknown` 1851uname -v = `(uname -v) 2>/dev/null || echo unknown` 1852 1853/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1854/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1855 1856/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1857/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1858/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1859/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1860/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1861/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1862/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1863 1864_ASUNAME 1865 1866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1867for as_dir in $PATH 1868do 1869 IFS=$as_save_IFS 1870 test -z "$as_dir" && as_dir=. 1871 $as_echo "PATH: $as_dir" 1872 done 1873IFS=$as_save_IFS 1874 1875} >&5 1876 1877cat >&5 <<_ACEOF 1878 1879 1880## ----------- ## 1881## Core tests. ## 1882## ----------- ## 1883 1884_ACEOF 1885 1886 1887# Keep a trace of the command line. 1888# Strip out --no-create and --no-recursion so they do not pile up. 1889# Strip out --silent because we don't want to record it for future runs. 1890# Also quote any args containing shell meta-characters. 1891# Make two passes to allow for proper duplicate-argument suppression. 1892ac_configure_args= 1893ac_configure_args0= 1894ac_configure_args1= 1895ac_must_keep_next=false 1896for ac_pass in 1 2 1897do 1898 for ac_arg 1899 do 1900 case $ac_arg in 1901 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1902 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1903 | -silent | --silent | --silen | --sile | --sil) 1904 continue ;; 1905 *\'*) 1906 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1907 esac 1908 case $ac_pass in 1909 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1910 2) 1911 as_fn_append ac_configure_args1 " '$ac_arg'" 1912 if test $ac_must_keep_next = true; then 1913 ac_must_keep_next=false # Got value, back to normal. 1914 else 1915 case $ac_arg in 1916 *=* | --config-cache | -C | -disable-* | --disable-* \ 1917 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1918 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1919 | -with-* | --with-* | -without-* | --without-* | --x) 1920 case "$ac_configure_args0 " in 1921 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1922 esac 1923 ;; 1924 -* ) ac_must_keep_next=true ;; 1925 esac 1926 fi 1927 as_fn_append ac_configure_args " '$ac_arg'" 1928 ;; 1929 esac 1930 done 1931done 1932{ ac_configure_args0=; unset ac_configure_args0;} 1933{ ac_configure_args1=; unset ac_configure_args1;} 1934 1935# When interrupted or exit'd, cleanup temporary files, and complete 1936# config.log. We remove comments because anyway the quotes in there 1937# would cause problems or look ugly. 1938# WARNING: Use '\'' to represent an apostrophe within the trap. 1939# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1940trap 'exit_status=$? 1941 # Save into config.log some information that might help in debugging. 1942 { 1943 echo 1944 1945 $as_echo "## ---------------- ## 1946## Cache variables. ## 1947## ---------------- ##" 1948 echo 1949 # The following way of writing the cache mishandles newlines in values, 1950( 1951 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1952 eval ac_val=\$$ac_var 1953 case $ac_val in #( 1954 *${as_nl}*) 1955 case $ac_var in #( 1956 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1957$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1958 esac 1959 case $ac_var in #( 1960 _ | IFS | as_nl) ;; #( 1961 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1962 *) { eval $ac_var=; unset $ac_var;} ;; 1963 esac ;; 1964 esac 1965 done 1966 (set) 2>&1 | 1967 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1968 *${as_nl}ac_space=\ *) 1969 sed -n \ 1970 "s/'\''/'\''\\\\'\'''\''/g; 1971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1972 ;; #( 1973 *) 1974 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1975 ;; 1976 esac | 1977 sort 1978) 1979 echo 1980 1981 $as_echo "## ----------------- ## 1982## Output variables. ## 1983## ----------------- ##" 1984 echo 1985 for ac_var in $ac_subst_vars 1986 do 1987 eval ac_val=\$$ac_var 1988 case $ac_val in 1989 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1990 esac 1991 $as_echo "$ac_var='\''$ac_val'\''" 1992 done | sort 1993 echo 1994 1995 if test -n "$ac_subst_files"; then 1996 $as_echo "## ------------------- ## 1997## File substitutions. ## 1998## ------------------- ##" 1999 echo 2000 for ac_var in $ac_subst_files 2001 do 2002 eval ac_val=\$$ac_var 2003 case $ac_val in 2004 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2005 esac 2006 $as_echo "$ac_var='\''$ac_val'\''" 2007 done | sort 2008 echo 2009 fi 2010 2011 if test -s confdefs.h; then 2012 $as_echo "## ----------- ## 2013## confdefs.h. ## 2014## ----------- ##" 2015 echo 2016 cat confdefs.h 2017 echo 2018 fi 2019 test "$ac_signal" != 0 && 2020 $as_echo "$as_me: caught signal $ac_signal" 2021 $as_echo "$as_me: exit $exit_status" 2022 } >&5 2023 rm -f core *.core core.conftest.* && 2024 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2025 exit $exit_status 2026' 0 2027for ac_signal in 1 2 13 15; do 2028 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2029done 2030ac_signal=0 2031 2032# confdefs.h avoids OS command line length limits that DEFS can exceed. 2033rm -f -r conftest* confdefs.h 2034 2035$as_echo "/* confdefs.h */" > confdefs.h 2036 2037# Predefined preprocessor variables. 2038 2039cat >>confdefs.h <<_ACEOF 2040#define PACKAGE_NAME "$PACKAGE_NAME" 2041_ACEOF 2042 2043cat >>confdefs.h <<_ACEOF 2044#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2045_ACEOF 2046 2047cat >>confdefs.h <<_ACEOF 2048#define PACKAGE_VERSION "$PACKAGE_VERSION" 2049_ACEOF 2050 2051cat >>confdefs.h <<_ACEOF 2052#define PACKAGE_STRING "$PACKAGE_STRING" 2053_ACEOF 2054 2055cat >>confdefs.h <<_ACEOF 2056#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2057_ACEOF 2058 2059cat >>confdefs.h <<_ACEOF 2060#define PACKAGE_URL "$PACKAGE_URL" 2061_ACEOF 2062 2063 2064# Let the site file select an alternate cache file if it wants to. 2065# Prefer an explicitly selected file to automatically selected ones. 2066ac_site_file1=NONE 2067ac_site_file2=NONE 2068if test -n "$CONFIG_SITE"; then 2069 # We do not want a PATH search for config.site. 2070 case $CONFIG_SITE in #(( 2071 -*) ac_site_file1=./$CONFIG_SITE;; 2072 */*) ac_site_file1=$CONFIG_SITE;; 2073 *) ac_site_file1=./$CONFIG_SITE;; 2074 esac 2075elif test "x$prefix" != xNONE; then 2076 ac_site_file1=$prefix/share/config.site 2077 ac_site_file2=$prefix/etc/config.site 2078else 2079 ac_site_file1=$ac_default_prefix/share/config.site 2080 ac_site_file2=$ac_default_prefix/etc/config.site 2081fi 2082for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2083do 2084 test "x$ac_site_file" = xNONE && continue 2085 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2086 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2087$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2088 sed 's/^/| /' "$ac_site_file" >&5 2089 . "$ac_site_file" \ 2090 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2091$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2092as_fn_error $? "failed to load site script $ac_site_file 2093See \`config.log' for more details" "$LINENO" 5; } 2094 fi 2095done 2096 2097if test -r "$cache_file"; then 2098 # Some versions of bash will fail to source /dev/null (special files 2099 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2100 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2101 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2102$as_echo "$as_me: loading cache $cache_file" >&6;} 2103 case $cache_file in 2104 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2105 *) . "./$cache_file";; 2106 esac 2107 fi 2108else 2109 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2110$as_echo "$as_me: creating cache $cache_file" >&6;} 2111 >$cache_file 2112fi 2113 2114# Check that the precious variables saved in the cache have kept the same 2115# value. 2116ac_cache_corrupted=false 2117for ac_var in $ac_precious_vars; do 2118 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2119 eval ac_new_set=\$ac_env_${ac_var}_set 2120 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2121 eval ac_new_val=\$ac_env_${ac_var}_value 2122 case $ac_old_set,$ac_new_set in 2123 set,) 2124 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2125$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2126 ac_cache_corrupted=: ;; 2127 ,set) 2128 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2129$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2130 ac_cache_corrupted=: ;; 2131 ,);; 2132 *) 2133 if test "x$ac_old_val" != "x$ac_new_val"; then 2134 # differences in whitespace do not lead to failure. 2135 ac_old_val_w=`echo x $ac_old_val` 2136 ac_new_val_w=`echo x $ac_new_val` 2137 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2139$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2140 ac_cache_corrupted=: 2141 else 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2143$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2144 eval $ac_var=\$ac_old_val 2145 fi 2146 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2147$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2149$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2150 fi;; 2151 esac 2152 # Pass precious variables to config.status. 2153 if test "$ac_new_set" = set; then 2154 case $ac_new_val in 2155 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2156 *) ac_arg=$ac_var=$ac_new_val ;; 2157 esac 2158 case " $ac_configure_args " in 2159 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2160 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2161 esac 2162 fi 2163done 2164if $ac_cache_corrupted; then 2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2166$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2167 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2168$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2169 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2170fi 2171## -------------------- ## 2172## Main body of script. ## 2173## -------------------- ## 2174 2175ac_ext=c 2176ac_cpp='$CPP $CPPFLAGS' 2177ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2178ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2179ac_compiler_gnu=$ac_cv_c_compiler_gnu 2180 2181 2182 2183ac_config_headers="$ac_config_headers config.h" 2184 2185ac_aux_dir= 2186for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2187 if test -f "$ac_dir/install-sh"; then 2188 ac_aux_dir=$ac_dir 2189 ac_install_sh="$ac_aux_dir/install-sh -c" 2190 break 2191 elif test -f "$ac_dir/install.sh"; then 2192 ac_aux_dir=$ac_dir 2193 ac_install_sh="$ac_aux_dir/install.sh -c" 2194 break 2195 elif test -f "$ac_dir/shtool"; then 2196 ac_aux_dir=$ac_dir 2197 ac_install_sh="$ac_aux_dir/shtool install -c" 2198 break 2199 fi 2200done 2201if test -z "$ac_aux_dir"; then 2202 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2203fi 2204 2205# These three variables are undocumented and unsupported, 2206# and are intended to be withdrawn in a future Autoconf release. 2207# They can cause serious problems if a builder's source tree is in a directory 2208# whose full name contains unusual characters. 2209ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2210ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2211ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2212 2213 2214# Expand $ac_aux_dir to an absolute path. 2215am_aux_dir=`cd "$ac_aux_dir" && pwd` 2216 2217ac_ext=c 2218ac_cpp='$CPP $CPPFLAGS' 2219ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2220ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2221ac_compiler_gnu=$ac_cv_c_compiler_gnu 2222if test -n "$ac_tool_prefix"; then 2223 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2224set dummy ${ac_tool_prefix}gcc; ac_word=$2 2225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2226$as_echo_n "checking for $ac_word... " >&6; } 2227if ${ac_cv_prog_CC+:} false; then : 2228 $as_echo_n "(cached) " >&6 2229else 2230 if test -n "$CC"; then 2231 ac_cv_prog_CC="$CC" # Let the user override the test. 2232else 2233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2234for as_dir in $PATH 2235do 2236 IFS=$as_save_IFS 2237 test -z "$as_dir" && as_dir=. 2238 for ac_exec_ext in '' $ac_executable_extensions; do 2239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2240 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2242 break 2 2243 fi 2244done 2245 done 2246IFS=$as_save_IFS 2247 2248fi 2249fi 2250CC=$ac_cv_prog_CC 2251if test -n "$CC"; then 2252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2253$as_echo "$CC" >&6; } 2254else 2255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2256$as_echo "no" >&6; } 2257fi 2258 2259 2260fi 2261if test -z "$ac_cv_prog_CC"; then 2262 ac_ct_CC=$CC 2263 # Extract the first word of "gcc", so it can be a program name with args. 2264set dummy gcc; ac_word=$2 2265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2266$as_echo_n "checking for $ac_word... " >&6; } 2267if ${ac_cv_prog_ac_ct_CC+:} false; then : 2268 $as_echo_n "(cached) " >&6 2269else 2270 if test -n "$ac_ct_CC"; then 2271 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2272else 2273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2274for as_dir in $PATH 2275do 2276 IFS=$as_save_IFS 2277 test -z "$as_dir" && as_dir=. 2278 for ac_exec_ext in '' $ac_executable_extensions; do 2279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2280 ac_cv_prog_ac_ct_CC="gcc" 2281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2282 break 2 2283 fi 2284done 2285 done 2286IFS=$as_save_IFS 2287 2288fi 2289fi 2290ac_ct_CC=$ac_cv_prog_ac_ct_CC 2291if test -n "$ac_ct_CC"; then 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2293$as_echo "$ac_ct_CC" >&6; } 2294else 2295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2296$as_echo "no" >&6; } 2297fi 2298 2299 if test "x$ac_ct_CC" = x; then 2300 CC="" 2301 else 2302 case $cross_compiling:$ac_tool_warned in 2303yes:) 2304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2306ac_tool_warned=yes ;; 2307esac 2308 CC=$ac_ct_CC 2309 fi 2310else 2311 CC="$ac_cv_prog_CC" 2312fi 2313 2314if test -z "$CC"; then 2315 if test -n "$ac_tool_prefix"; then 2316 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2317set dummy ${ac_tool_prefix}cc; ac_word=$2 2318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2319$as_echo_n "checking for $ac_word... " >&6; } 2320if ${ac_cv_prog_CC+:} false; then : 2321 $as_echo_n "(cached) " >&6 2322else 2323 if test -n "$CC"; then 2324 ac_cv_prog_CC="$CC" # Let the user override the test. 2325else 2326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2327for as_dir in $PATH 2328do 2329 IFS=$as_save_IFS 2330 test -z "$as_dir" && as_dir=. 2331 for ac_exec_ext in '' $ac_executable_extensions; do 2332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2333 ac_cv_prog_CC="${ac_tool_prefix}cc" 2334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2335 break 2 2336 fi 2337done 2338 done 2339IFS=$as_save_IFS 2340 2341fi 2342fi 2343CC=$ac_cv_prog_CC 2344if test -n "$CC"; then 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2346$as_echo "$CC" >&6; } 2347else 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2349$as_echo "no" >&6; } 2350fi 2351 2352 2353 fi 2354fi 2355if test -z "$CC"; then 2356 # Extract the first word of "cc", so it can be a program name with args. 2357set dummy cc; ac_word=$2 2358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2359$as_echo_n "checking for $ac_word... " >&6; } 2360if ${ac_cv_prog_CC+:} false; then : 2361 $as_echo_n "(cached) " >&6 2362else 2363 if test -n "$CC"; then 2364 ac_cv_prog_CC="$CC" # Let the user override the test. 2365else 2366 ac_prog_rejected=no 2367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2368for as_dir in $PATH 2369do 2370 IFS=$as_save_IFS 2371 test -z "$as_dir" && as_dir=. 2372 for ac_exec_ext in '' $ac_executable_extensions; do 2373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2374 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2375 ac_prog_rejected=yes 2376 continue 2377 fi 2378 ac_cv_prog_CC="cc" 2379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2380 break 2 2381 fi 2382done 2383 done 2384IFS=$as_save_IFS 2385 2386if test $ac_prog_rejected = yes; then 2387 # We found a bogon in the path, so make sure we never use it. 2388 set dummy $ac_cv_prog_CC 2389 shift 2390 if test $# != 0; then 2391 # We chose a different compiler from the bogus one. 2392 # However, it has the same basename, so the bogon will be chosen 2393 # first if we set CC to just the basename; use the full file name. 2394 shift 2395 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2396 fi 2397fi 2398fi 2399fi 2400CC=$ac_cv_prog_CC 2401if test -n "$CC"; then 2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2403$as_echo "$CC" >&6; } 2404else 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2406$as_echo "no" >&6; } 2407fi 2408 2409 2410fi 2411if test -z "$CC"; then 2412 if test -n "$ac_tool_prefix"; then 2413 for ac_prog in cl.exe 2414 do 2415 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2416set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2418$as_echo_n "checking for $ac_word... " >&6; } 2419if ${ac_cv_prog_CC+:} false; then : 2420 $as_echo_n "(cached) " >&6 2421else 2422 if test -n "$CC"; then 2423 ac_cv_prog_CC="$CC" # Let the user override the test. 2424else 2425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2426for as_dir in $PATH 2427do 2428 IFS=$as_save_IFS 2429 test -z "$as_dir" && as_dir=. 2430 for ac_exec_ext in '' $ac_executable_extensions; do 2431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2432 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2434 break 2 2435 fi 2436done 2437 done 2438IFS=$as_save_IFS 2439 2440fi 2441fi 2442CC=$ac_cv_prog_CC 2443if test -n "$CC"; then 2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2445$as_echo "$CC" >&6; } 2446else 2447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2448$as_echo "no" >&6; } 2449fi 2450 2451 2452 test -n "$CC" && break 2453 done 2454fi 2455if test -z "$CC"; then 2456 ac_ct_CC=$CC 2457 for ac_prog in cl.exe 2458do 2459 # Extract the first word of "$ac_prog", so it can be a program name with args. 2460set dummy $ac_prog; ac_word=$2 2461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2462$as_echo_n "checking for $ac_word... " >&6; } 2463if ${ac_cv_prog_ac_ct_CC+:} false; then : 2464 $as_echo_n "(cached) " >&6 2465else 2466 if test -n "$ac_ct_CC"; then 2467 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2468else 2469as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2470for as_dir in $PATH 2471do 2472 IFS=$as_save_IFS 2473 test -z "$as_dir" && as_dir=. 2474 for ac_exec_ext in '' $ac_executable_extensions; do 2475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2476 ac_cv_prog_ac_ct_CC="$ac_prog" 2477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2478 break 2 2479 fi 2480done 2481 done 2482IFS=$as_save_IFS 2483 2484fi 2485fi 2486ac_ct_CC=$ac_cv_prog_ac_ct_CC 2487if test -n "$ac_ct_CC"; then 2488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2489$as_echo "$ac_ct_CC" >&6; } 2490else 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2492$as_echo "no" >&6; } 2493fi 2494 2495 2496 test -n "$ac_ct_CC" && break 2497done 2498 2499 if test "x$ac_ct_CC" = x; then 2500 CC="" 2501 else 2502 case $cross_compiling:$ac_tool_warned in 2503yes:) 2504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2506ac_tool_warned=yes ;; 2507esac 2508 CC=$ac_ct_CC 2509 fi 2510fi 2511 2512fi 2513 2514 2515test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2517as_fn_error $? "no acceptable C compiler found in \$PATH 2518See \`config.log' for more details" "$LINENO" 5; } 2519 2520# Provide some information about the compiler. 2521$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2522set X $ac_compile 2523ac_compiler=$2 2524for ac_option in --version -v -V -qversion; do 2525 { { ac_try="$ac_compiler $ac_option >&5" 2526case "(($ac_try" in 2527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2528 *) ac_try_echo=$ac_try;; 2529esac 2530eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2531$as_echo "$ac_try_echo"; } >&5 2532 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2533 ac_status=$? 2534 if test -s conftest.err; then 2535 sed '10a\ 2536... rest of stderr output deleted ... 2537 10q' conftest.err >conftest.er1 2538 cat conftest.er1 >&5 2539 fi 2540 rm -f conftest.er1 conftest.err 2541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2542 test $ac_status = 0; } 2543done 2544 2545cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2546/* end confdefs.h. */ 2547 2548int 2549main () 2550{ 2551 2552 ; 2553 return 0; 2554} 2555_ACEOF 2556ac_clean_files_save=$ac_clean_files 2557ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2558# Try to create an executable without -o first, disregard a.out. 2559# It will help us diagnose broken compilers, and finding out an intuition 2560# of exeext. 2561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2562$as_echo_n "checking whether the C compiler works... " >&6; } 2563ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2564 2565# The possible output files: 2566ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 2567 2568ac_rmfiles= 2569for ac_file in $ac_files 2570do 2571 case $ac_file in 2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2573 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 2574 esac 2575done 2576rm -f $ac_rmfiles 2577 2578if { { ac_try="$ac_link_default" 2579case "(($ac_try" in 2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2581 *) ac_try_echo=$ac_try;; 2582esac 2583eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2584$as_echo "$ac_try_echo"; } >&5 2585 (eval "$ac_link_default") 2>&5 2586 ac_status=$? 2587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2588 test $ac_status = 0; }; then : 2589 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 2590# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 2591# in a Makefile. We should not override ac_cv_exeext if it was cached, 2592# so that the user can short-circuit this test for compilers unknown to 2593# Autoconf. 2594for ac_file in $ac_files '' 2595do 2596 test -f "$ac_file" || continue 2597 case $ac_file in 2598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 2599 ;; 2600 [ab].out ) 2601 # We found the default executable, but exeext='' is most 2602 # certainly right. 2603 break;; 2604 *.* ) 2605 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 2606 then :; else 2607 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2608 fi 2609 # We set ac_cv_exeext here because the later test for it is not 2610 # safe: cross compilers may not add the suffix if given an `-o' 2611 # argument, so we may need to know it at that point already. 2612 # Even if this section looks crufty: it has the advantage of 2613 # actually working. 2614 break;; 2615 * ) 2616 break;; 2617 esac 2618done 2619test "$ac_cv_exeext" = no && ac_cv_exeext= 2620 2621else 2622 ac_file='' 2623fi 2624if test -z "$ac_file"; then : 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2626$as_echo "no" >&6; } 2627$as_echo "$as_me: failed program was:" >&5 2628sed 's/^/| /' conftest.$ac_ext >&5 2629 2630{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2631$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2632as_fn_error 77 "C compiler cannot create executables 2633See \`config.log' for more details" "$LINENO" 5; } 2634else 2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2636$as_echo "yes" >&6; } 2637fi 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 2639$as_echo_n "checking for C compiler default output file name... " >&6; } 2640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 2641$as_echo "$ac_file" >&6; } 2642ac_exeext=$ac_cv_exeext 2643 2644rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 2645ac_clean_files=$ac_clean_files_save 2646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 2647$as_echo_n "checking for suffix of executables... " >&6; } 2648if { { ac_try="$ac_link" 2649case "(($ac_try" in 2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2651 *) ac_try_echo=$ac_try;; 2652esac 2653eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2654$as_echo "$ac_try_echo"; } >&5 2655 (eval "$ac_link") 2>&5 2656 ac_status=$? 2657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2658 test $ac_status = 0; }; then : 2659 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2660# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2661# work properly (i.e., refer to `conftest.exe'), while it won't with 2662# `rm'. 2663for ac_file in conftest.exe conftest conftest.*; do 2664 test -f "$ac_file" || continue 2665 case $ac_file in 2666 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 2667 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2668 break;; 2669 * ) break;; 2670 esac 2671done 2672else 2673 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2675as_fn_error $? "cannot compute suffix of executables: cannot compile and link 2676See \`config.log' for more details" "$LINENO" 5; } 2677fi 2678rm -f conftest conftest$ac_cv_exeext 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 2680$as_echo "$ac_cv_exeext" >&6; } 2681 2682rm -f conftest.$ac_ext 2683EXEEXT=$ac_cv_exeext 2684ac_exeext=$EXEEXT 2685cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2686/* end confdefs.h. */ 2687#include <stdio.h> 2688int 2689main () 2690{ 2691FILE *f = fopen ("conftest.out", "w"); 2692 return ferror (f) || fclose (f) != 0; 2693 2694 ; 2695 return 0; 2696} 2697_ACEOF 2698ac_clean_files="$ac_clean_files conftest.out" 2699# Check that the compiler produces executables we can run. If not, either 2700# the compiler is broken, or we cross compile. 2701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 2702$as_echo_n "checking whether we are cross compiling... " >&6; } 2703if test "$cross_compiling" != yes; then 2704 { { ac_try="$ac_link" 2705case "(($ac_try" in 2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2707 *) ac_try_echo=$ac_try;; 2708esac 2709eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2710$as_echo "$ac_try_echo"; } >&5 2711 (eval "$ac_link") 2>&5 2712 ac_status=$? 2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2714 test $ac_status = 0; } 2715 if { ac_try='./conftest$ac_cv_exeext' 2716 { { case "(($ac_try" in 2717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2718 *) ac_try_echo=$ac_try;; 2719esac 2720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2721$as_echo "$ac_try_echo"; } >&5 2722 (eval "$ac_try") 2>&5 2723 ac_status=$? 2724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2725 test $ac_status = 0; }; }; then 2726 cross_compiling=no 2727 else 2728 if test "$cross_compiling" = maybe; then 2729 cross_compiling=yes 2730 else 2731 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2732$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2733as_fn_error $? "cannot run C compiled programs. 2734If you meant to cross compile, use \`--host'. 2735See \`config.log' for more details" "$LINENO" 5; } 2736 fi 2737 fi 2738fi 2739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 2740$as_echo "$cross_compiling" >&6; } 2741 2742rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 2743ac_clean_files=$ac_clean_files_save 2744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 2745$as_echo_n "checking for suffix of object files... " >&6; } 2746if ${ac_cv_objext+:} false; then : 2747 $as_echo_n "(cached) " >&6 2748else 2749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2750/* end confdefs.h. */ 2751 2752int 2753main () 2754{ 2755 2756 ; 2757 return 0; 2758} 2759_ACEOF 2760rm -f conftest.o conftest.obj 2761if { { ac_try="$ac_compile" 2762case "(($ac_try" in 2763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2764 *) ac_try_echo=$ac_try;; 2765esac 2766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2767$as_echo "$ac_try_echo"; } >&5 2768 (eval "$ac_compile") 2>&5 2769 ac_status=$? 2770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2771 test $ac_status = 0; }; then : 2772 for ac_file in conftest.o conftest.obj conftest.*; do 2773 test -f "$ac_file" || continue; 2774 case $ac_file in 2775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 2776 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2777 break;; 2778 esac 2779done 2780else 2781 $as_echo "$as_me: failed program was:" >&5 2782sed 's/^/| /' conftest.$ac_ext >&5 2783 2784{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2785$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2786as_fn_error $? "cannot compute suffix of object files: cannot compile 2787See \`config.log' for more details" "$LINENO" 5; } 2788fi 2789rm -f conftest.$ac_cv_objext conftest.$ac_ext 2790fi 2791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 2792$as_echo "$ac_cv_objext" >&6; } 2793OBJEXT=$ac_cv_objext 2794ac_objext=$OBJEXT 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 2796$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 2797if ${ac_cv_c_compiler_gnu+:} false; then : 2798 $as_echo_n "(cached) " >&6 2799else 2800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2801/* end confdefs.h. */ 2802 2803int 2804main () 2805{ 2806#ifndef __GNUC__ 2807 choke me 2808#endif 2809 2810 ; 2811 return 0; 2812} 2813_ACEOF 2814if ac_fn_c_try_compile "$LINENO"; then : 2815 ac_compiler_gnu=yes 2816else 2817 ac_compiler_gnu=no 2818fi 2819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2820ac_cv_c_compiler_gnu=$ac_compiler_gnu 2821 2822fi 2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 2824$as_echo "$ac_cv_c_compiler_gnu" >&6; } 2825if test $ac_compiler_gnu = yes; then 2826 GCC=yes 2827else 2828 GCC= 2829fi 2830ac_test_CFLAGS=${CFLAGS+set} 2831ac_save_CFLAGS=$CFLAGS 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 2833$as_echo_n "checking whether $CC accepts -g... " >&6; } 2834if ${ac_cv_prog_cc_g+:} false; then : 2835 $as_echo_n "(cached) " >&6 2836else 2837 ac_save_c_werror_flag=$ac_c_werror_flag 2838 ac_c_werror_flag=yes 2839 ac_cv_prog_cc_g=no 2840 CFLAGS="-g" 2841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2842/* end confdefs.h. */ 2843 2844int 2845main () 2846{ 2847 2848 ; 2849 return 0; 2850} 2851_ACEOF 2852if ac_fn_c_try_compile "$LINENO"; then : 2853 ac_cv_prog_cc_g=yes 2854else 2855 CFLAGS="" 2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2857/* end confdefs.h. */ 2858 2859int 2860main () 2861{ 2862 2863 ; 2864 return 0; 2865} 2866_ACEOF 2867if ac_fn_c_try_compile "$LINENO"; then : 2868 2869else 2870 ac_c_werror_flag=$ac_save_c_werror_flag 2871 CFLAGS="-g" 2872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2873/* end confdefs.h. */ 2874 2875int 2876main () 2877{ 2878 2879 ; 2880 return 0; 2881} 2882_ACEOF 2883if ac_fn_c_try_compile "$LINENO"; then : 2884 ac_cv_prog_cc_g=yes 2885fi 2886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2887fi 2888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2889fi 2890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2891 ac_c_werror_flag=$ac_save_c_werror_flag 2892fi 2893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 2894$as_echo "$ac_cv_prog_cc_g" >&6; } 2895if test "$ac_test_CFLAGS" = set; then 2896 CFLAGS=$ac_save_CFLAGS 2897elif test $ac_cv_prog_cc_g = yes; then 2898 if test "$GCC" = yes; then 2899 CFLAGS="-g -O2" 2900 else 2901 CFLAGS="-g" 2902 fi 2903else 2904 if test "$GCC" = yes; then 2905 CFLAGS="-O2" 2906 else 2907 CFLAGS= 2908 fi 2909fi 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 2911$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 2912if ${ac_cv_prog_cc_c89+:} false; then : 2913 $as_echo_n "(cached) " >&6 2914else 2915 ac_cv_prog_cc_c89=no 2916ac_save_CC=$CC 2917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2918/* end confdefs.h. */ 2919#include <stdarg.h> 2920#include <stdio.h> 2921struct stat; 2922/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2923struct buf { int x; }; 2924FILE * (*rcsopen) (struct buf *, struct stat *, int); 2925static char *e (p, i) 2926 char **p; 2927 int i; 2928{ 2929 return p[i]; 2930} 2931static char *f (char * (*g) (char **, int), char **p, ...) 2932{ 2933 char *s; 2934 va_list v; 2935 va_start (v,p); 2936 s = g (p, va_arg (v,int)); 2937 va_end (v); 2938 return s; 2939} 2940 2941/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2942 function prototypes and stuff, but not '\xHH' hex character constants. 2943 These don't provoke an error unfortunately, instead are silently treated 2944 as 'x'. The following induces an error, until -std is added to get 2945 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2946 array size at least. It's necessary to write '\x00'==0 to get something 2947 that's true only with -std. */ 2948int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2949 2950/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 2951 inside strings and character constants. */ 2952#define FOO(x) 'x' 2953int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 2954 2955int test (int i, double x); 2956struct s1 {int (*f) (int a);}; 2957struct s2 {int (*f) (double a);}; 2958int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2959int argc; 2960char **argv; 2961int 2962main () 2963{ 2964return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2965 ; 2966 return 0; 2967} 2968_ACEOF 2969for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 2970 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2971do 2972 CC="$ac_save_CC $ac_arg" 2973 if ac_fn_c_try_compile "$LINENO"; then : 2974 ac_cv_prog_cc_c89=$ac_arg 2975fi 2976rm -f core conftest.err conftest.$ac_objext 2977 test "x$ac_cv_prog_cc_c89" != "xno" && break 2978done 2979rm -f conftest.$ac_ext 2980CC=$ac_save_CC 2981 2982fi 2983# AC_CACHE_VAL 2984case "x$ac_cv_prog_cc_c89" in 2985 x) 2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 2987$as_echo "none needed" >&6; } ;; 2988 xno) 2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 2990$as_echo "unsupported" >&6; } ;; 2991 *) 2992 CC="$CC $ac_cv_prog_cc_c89" 2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 2994$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 2995esac 2996if test "x$ac_cv_prog_cc_c89" != xno; then : 2997 2998fi 2999 3000ac_ext=c 3001ac_cpp='$CPP $CPPFLAGS' 3002ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3003ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3004ac_compiler_gnu=$ac_cv_c_compiler_gnu 3005 3006ac_ext=c 3007ac_cpp='$CPP $CPPFLAGS' 3008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3010ac_compiler_gnu=$ac_cv_c_compiler_gnu 3011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3012$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3013if ${am_cv_prog_cc_c_o+:} false; then : 3014 $as_echo_n "(cached) " >&6 3015else 3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3017/* end confdefs.h. */ 3018 3019int 3020main () 3021{ 3022 3023 ; 3024 return 0; 3025} 3026_ACEOF 3027 # Make sure it works both with $CC and with simple cc. 3028 # Following AC_PROG_CC_C_O, we do the test twice because some 3029 # compilers refuse to overwrite an existing .o file with -o, 3030 # though they will create one. 3031 am_cv_prog_cc_c_o=yes 3032 for am_i in 1 2; do 3033 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3034 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3035 ac_status=$? 3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3037 (exit $ac_status); } \ 3038 && test -f conftest2.$ac_objext; then 3039 : OK 3040 else 3041 am_cv_prog_cc_c_o=no 3042 break 3043 fi 3044 done 3045 rm -f core conftest* 3046 unset am_i 3047fi 3048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3049$as_echo "$am_cv_prog_cc_c_o" >&6; } 3050if test "$am_cv_prog_cc_c_o" != yes; then 3051 # Losing compiler, so override with the script. 3052 # FIXME: It is wrong to rewrite CC. 3053 # But if we don't then we get into trouble of one sort or another. 3054 # A longer-term fix would be to have automake use am__CC in this case, 3055 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3056 CC="$am_aux_dir/compile $CC" 3057fi 3058ac_ext=c 3059ac_cpp='$CPP $CPPFLAGS' 3060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3062ac_compiler_gnu=$ac_cv_c_compiler_gnu 3063 3064 3065 3066ac_ext=c 3067ac_cpp='$CPP $CPPFLAGS' 3068ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3069ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3070ac_compiler_gnu=$ac_cv_c_compiler_gnu 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3072$as_echo_n "checking how to run the C preprocessor... " >&6; } 3073# On Suns, sometimes $CPP names a directory. 3074if test -n "$CPP" && test -d "$CPP"; then 3075 CPP= 3076fi 3077if test -z "$CPP"; then 3078 if ${ac_cv_prog_CPP+:} false; then : 3079 $as_echo_n "(cached) " >&6 3080else 3081 # Double quotes because CPP needs to be expanded 3082 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3083 do 3084 ac_preproc_ok=false 3085for ac_c_preproc_warn_flag in '' yes 3086do 3087 # Use a header file that comes with gcc, so configuring glibc 3088 # with a fresh cross-compiler works. 3089 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3090 # <limits.h> exists even on freestanding compilers. 3091 # On the NeXT, cc -E runs the code through the compiler's parser, 3092 # not just through cpp. "Syntax error" is here to catch this case. 3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3094/* end confdefs.h. */ 3095#ifdef __STDC__ 3096# include <limits.h> 3097#else 3098# include <assert.h> 3099#endif 3100 Syntax error 3101_ACEOF 3102if ac_fn_c_try_cpp "$LINENO"; then : 3103 3104else 3105 # Broken: fails on valid input. 3106continue 3107fi 3108rm -f conftest.err conftest.i conftest.$ac_ext 3109 3110 # OK, works on sane cases. Now check whether nonexistent headers 3111 # can be detected and how. 3112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3113/* end confdefs.h. */ 3114#include <ac_nonexistent.h> 3115_ACEOF 3116if ac_fn_c_try_cpp "$LINENO"; then : 3117 # Broken: success on invalid input. 3118continue 3119else 3120 # Passes both tests. 3121ac_preproc_ok=: 3122break 3123fi 3124rm -f conftest.err conftest.i conftest.$ac_ext 3125 3126done 3127# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3128rm -f conftest.i conftest.err conftest.$ac_ext 3129if $ac_preproc_ok; then : 3130 break 3131fi 3132 3133 done 3134 ac_cv_prog_CPP=$CPP 3135 3136fi 3137 CPP=$ac_cv_prog_CPP 3138else 3139 ac_cv_prog_CPP=$CPP 3140fi 3141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3142$as_echo "$CPP" >&6; } 3143ac_preproc_ok=false 3144for ac_c_preproc_warn_flag in '' yes 3145do 3146 # Use a header file that comes with gcc, so configuring glibc 3147 # with a fresh cross-compiler works. 3148 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3149 # <limits.h> exists even on freestanding compilers. 3150 # On the NeXT, cc -E runs the code through the compiler's parser, 3151 # not just through cpp. "Syntax error" is here to catch this case. 3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3153/* end confdefs.h. */ 3154#ifdef __STDC__ 3155# include <limits.h> 3156#else 3157# include <assert.h> 3158#endif 3159 Syntax error 3160_ACEOF 3161if ac_fn_c_try_cpp "$LINENO"; then : 3162 3163else 3164 # Broken: fails on valid input. 3165continue 3166fi 3167rm -f conftest.err conftest.i conftest.$ac_ext 3168 3169 # OK, works on sane cases. Now check whether nonexistent headers 3170 # can be detected and how. 3171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3172/* end confdefs.h. */ 3173#include <ac_nonexistent.h> 3174_ACEOF 3175if ac_fn_c_try_cpp "$LINENO"; then : 3176 # Broken: success on invalid input. 3177continue 3178else 3179 # Passes both tests. 3180ac_preproc_ok=: 3181break 3182fi 3183rm -f conftest.err conftest.i conftest.$ac_ext 3184 3185done 3186# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3187rm -f conftest.i conftest.err conftest.$ac_ext 3188if $ac_preproc_ok; then : 3189 3190else 3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3192$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3193as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 3194See \`config.log' for more details" "$LINENO" 5; } 3195fi 3196 3197ac_ext=c 3198ac_cpp='$CPP $CPPFLAGS' 3199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3201ac_compiler_gnu=$ac_cv_c_compiler_gnu 3202 3203 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3205$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3206if ${ac_cv_path_GREP+:} false; then : 3207 $as_echo_n "(cached) " >&6 3208else 3209 if test -z "$GREP"; then 3210 ac_path_GREP_found=false 3211 # Loop through the user's path and test for each of PROGNAME-LIST 3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3213for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3214do 3215 IFS=$as_save_IFS 3216 test -z "$as_dir" && as_dir=. 3217 for ac_prog in grep ggrep; do 3218 for ac_exec_ext in '' $ac_executable_extensions; do 3219 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3220 as_fn_executable_p "$ac_path_GREP" || continue 3221# Check for GNU ac_path_GREP and select it if it is found. 3222 # Check for GNU $ac_path_GREP 3223case `"$ac_path_GREP" --version 2>&1` in 3224*GNU*) 3225 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3226*) 3227 ac_count=0 3228 $as_echo_n 0123456789 >"conftest.in" 3229 while : 3230 do 3231 cat "conftest.in" "conftest.in" >"conftest.tmp" 3232 mv "conftest.tmp" "conftest.in" 3233 cp "conftest.in" "conftest.nl" 3234 $as_echo 'GREP' >> "conftest.nl" 3235 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3236 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3237 as_fn_arith $ac_count + 1 && ac_count=$as_val 3238 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3239 # Best one so far, save it but keep looking for a better one 3240 ac_cv_path_GREP="$ac_path_GREP" 3241 ac_path_GREP_max=$ac_count 3242 fi 3243 # 10*(2^10) chars as input seems more than enough 3244 test $ac_count -gt 10 && break 3245 done 3246 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3247esac 3248 3249 $ac_path_GREP_found && break 3 3250 done 3251 done 3252 done 3253IFS=$as_save_IFS 3254 if test -z "$ac_cv_path_GREP"; then 3255 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3256 fi 3257else 3258 ac_cv_path_GREP=$GREP 3259fi 3260 3261fi 3262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3263$as_echo "$ac_cv_path_GREP" >&6; } 3264 GREP="$ac_cv_path_GREP" 3265 3266 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3268$as_echo_n "checking for egrep... " >&6; } 3269if ${ac_cv_path_EGREP+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3273 then ac_cv_path_EGREP="$GREP -E" 3274 else 3275 if test -z "$EGREP"; then 3276 ac_path_EGREP_found=false 3277 # Loop through the user's path and test for each of PROGNAME-LIST 3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3279for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3280do 3281 IFS=$as_save_IFS 3282 test -z "$as_dir" && as_dir=. 3283 for ac_prog in egrep; do 3284 for ac_exec_ext in '' $ac_executable_extensions; do 3285 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3286 as_fn_executable_p "$ac_path_EGREP" || continue 3287# Check for GNU ac_path_EGREP and select it if it is found. 3288 # Check for GNU $ac_path_EGREP 3289case `"$ac_path_EGREP" --version 2>&1` in 3290*GNU*) 3291 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3292*) 3293 ac_count=0 3294 $as_echo_n 0123456789 >"conftest.in" 3295 while : 3296 do 3297 cat "conftest.in" "conftest.in" >"conftest.tmp" 3298 mv "conftest.tmp" "conftest.in" 3299 cp "conftest.in" "conftest.nl" 3300 $as_echo 'EGREP' >> "conftest.nl" 3301 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3302 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3303 as_fn_arith $ac_count + 1 && ac_count=$as_val 3304 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3305 # Best one so far, save it but keep looking for a better one 3306 ac_cv_path_EGREP="$ac_path_EGREP" 3307 ac_path_EGREP_max=$ac_count 3308 fi 3309 # 10*(2^10) chars as input seems more than enough 3310 test $ac_count -gt 10 && break 3311 done 3312 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3313esac 3314 3315 $ac_path_EGREP_found && break 3 3316 done 3317 done 3318 done 3319IFS=$as_save_IFS 3320 if test -z "$ac_cv_path_EGREP"; then 3321 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3322 fi 3323else 3324 ac_cv_path_EGREP=$EGREP 3325fi 3326 3327 fi 3328fi 3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3330$as_echo "$ac_cv_path_EGREP" >&6; } 3331 EGREP="$ac_cv_path_EGREP" 3332 3333 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3335$as_echo_n "checking for ANSI C header files... " >&6; } 3336if ${ac_cv_header_stdc+:} false; then : 3337 $as_echo_n "(cached) " >&6 3338else 3339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3340/* end confdefs.h. */ 3341#include <stdlib.h> 3342#include <stdarg.h> 3343#include <string.h> 3344#include <float.h> 3345 3346int 3347main () 3348{ 3349 3350 ; 3351 return 0; 3352} 3353_ACEOF 3354if ac_fn_c_try_compile "$LINENO"; then : 3355 ac_cv_header_stdc=yes 3356else 3357 ac_cv_header_stdc=no 3358fi 3359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3360 3361if test $ac_cv_header_stdc = yes; then 3362 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3364/* end confdefs.h. */ 3365#include <string.h> 3366 3367_ACEOF 3368if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3369 $EGREP "memchr" >/dev/null 2>&1; then : 3370 3371else 3372 ac_cv_header_stdc=no 3373fi 3374rm -f conftest* 3375 3376fi 3377 3378if test $ac_cv_header_stdc = yes; then 3379 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 3380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3381/* end confdefs.h. */ 3382#include <stdlib.h> 3383 3384_ACEOF 3385if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3386 $EGREP "free" >/dev/null 2>&1; then : 3387 3388else 3389 ac_cv_header_stdc=no 3390fi 3391rm -f conftest* 3392 3393fi 3394 3395if test $ac_cv_header_stdc = yes; then 3396 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 3397 if test "$cross_compiling" = yes; then : 3398 : 3399else 3400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3401/* end confdefs.h. */ 3402#include <ctype.h> 3403#include <stdlib.h> 3404#if ((' ' & 0x0FF) == 0x020) 3405# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 3406# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 3407#else 3408# define ISLOWER(c) \ 3409 (('a' <= (c) && (c) <= 'i') \ 3410 || ('j' <= (c) && (c) <= 'r') \ 3411 || ('s' <= (c) && (c) <= 'z')) 3412# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 3413#endif 3414 3415#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 3416int 3417main () 3418{ 3419 int i; 3420 for (i = 0; i < 256; i++) 3421 if (XOR (islower (i), ISLOWER (i)) 3422 || toupper (i) != TOUPPER (i)) 3423 return 2; 3424 return 0; 3425} 3426_ACEOF 3427if ac_fn_c_try_run "$LINENO"; then : 3428 3429else 3430 ac_cv_header_stdc=no 3431fi 3432rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 3433 conftest.$ac_objext conftest.beam conftest.$ac_ext 3434fi 3435 3436fi 3437fi 3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 3439$as_echo "$ac_cv_header_stdc" >&6; } 3440if test $ac_cv_header_stdc = yes; then 3441 3442$as_echo "#define STDC_HEADERS 1" >>confdefs.h 3443 3444fi 3445 3446# On IRIX 5.3, sys/types and inttypes.h are conflicting. 3447for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 3448 inttypes.h stdint.h unistd.h 3449do : 3450 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 3451ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 3452" 3453if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 3454 cat >>confdefs.h <<_ACEOF 3455#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 3456_ACEOF 3457 3458fi 3459 3460done 3461 3462 3463 3464 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 3465if test "x$ac_cv_header_minix_config_h" = xyes; then : 3466 MINIX=yes 3467else 3468 MINIX= 3469fi 3470 3471 3472 if test "$MINIX" = yes; then 3473 3474$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 3475 3476 3477$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 3478 3479 3480$as_echo "#define _MINIX 1" >>confdefs.h 3481 3482 fi 3483 3484 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 3486$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 3487if ${ac_cv_safe_to_define___extensions__+:} false; then : 3488 $as_echo_n "(cached) " >&6 3489else 3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3491/* end confdefs.h. */ 3492 3493# define __EXTENSIONS__ 1 3494 $ac_includes_default 3495int 3496main () 3497{ 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503if ac_fn_c_try_compile "$LINENO"; then : 3504 ac_cv_safe_to_define___extensions__=yes 3505else 3506 ac_cv_safe_to_define___extensions__=no 3507fi 3508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3509fi 3510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 3511$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 3512 test $ac_cv_safe_to_define___extensions__ = yes && 3513 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 3514 3515 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 3516 3517 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 3518 3519 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 3520 3521 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 3522 3523 3524 3525# Initialize Automake 3526am__api_version='1.15' 3527 3528# Find a good install program. We prefer a C program (faster), 3529# so one script is as good as another. But avoid the broken or 3530# incompatible versions: 3531# SysV /etc/install, /usr/sbin/install 3532# SunOS /usr/etc/install 3533# IRIX /sbin/install 3534# AIX /bin/install 3535# AmigaOS /C/install, which installs bootblocks on floppy discs 3536# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3537# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3538# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3539# OS/2's system install, which has a completely different semantic 3540# ./install, which can be erroneously created by make from ./install.sh. 3541# Reject install programs that cannot install multiple files. 3542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3543$as_echo_n "checking for a BSD-compatible install... " >&6; } 3544if test -z "$INSTALL"; then 3545if ${ac_cv_path_install+:} false; then : 3546 $as_echo_n "(cached) " >&6 3547else 3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3549for as_dir in $PATH 3550do 3551 IFS=$as_save_IFS 3552 test -z "$as_dir" && as_dir=. 3553 # Account for people who put trailing slashes in PATH elements. 3554case $as_dir/ in #(( 3555 ./ | .// | /[cC]/* | \ 3556 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3557 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3558 /usr/ucb/* ) ;; 3559 *) 3560 # OSF1 and SCO ODT 3.0 have their own names for install. 3561 # Don't use installbsd from OSF since it installs stuff as root 3562 # by default. 3563 for ac_prog in ginstall scoinst install; do 3564 for ac_exec_ext in '' $ac_executable_extensions; do 3565 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3566 if test $ac_prog = install && 3567 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3568 # AIX install. It has an incompatible calling convention. 3569 : 3570 elif test $ac_prog = install && 3571 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3572 # program-specific install script used by HP pwplus--don't use. 3573 : 3574 else 3575 rm -rf conftest.one conftest.two conftest.dir 3576 echo one > conftest.one 3577 echo two > conftest.two 3578 mkdir conftest.dir 3579 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3580 test -s conftest.one && test -s conftest.two && 3581 test -s conftest.dir/conftest.one && 3582 test -s conftest.dir/conftest.two 3583 then 3584 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3585 break 3 3586 fi 3587 fi 3588 fi 3589 done 3590 done 3591 ;; 3592esac 3593 3594 done 3595IFS=$as_save_IFS 3596 3597rm -rf conftest.one conftest.two conftest.dir 3598 3599fi 3600 if test "${ac_cv_path_install+set}" = set; then 3601 INSTALL=$ac_cv_path_install 3602 else 3603 # As a last resort, use the slow shell script. Don't cache a 3604 # value for INSTALL within a source directory, because that will 3605 # break other packages using the cache if that directory is 3606 # removed, or if the value is a relative name. 3607 INSTALL=$ac_install_sh 3608 fi 3609fi 3610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3611$as_echo "$INSTALL" >&6; } 3612 3613# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3614# It thinks the first close brace ends the variable substitution. 3615test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3616 3617test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3618 3619test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3620 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3622$as_echo_n "checking whether build environment is sane... " >&6; } 3623# Reject unsafe characters in $srcdir or the absolute working directory 3624# name. Accept space and tab only in the latter. 3625am_lf=' 3626' 3627case `pwd` in 3628 *[\\\"\#\$\&\'\`$am_lf]*) 3629 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3630esac 3631case $srcdir in 3632 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3633 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3634esac 3635 3636# Do 'set' in a subshell so we don't clobber the current shell's 3637# arguments. Must try -L first in case configure is actually a 3638# symlink; some systems play weird games with the mod time of symlinks 3639# (eg FreeBSD returns the mod time of the symlink's containing 3640# directory). 3641if ( 3642 am_has_slept=no 3643 for am_try in 1 2; do 3644 echo "timestamp, slept: $am_has_slept" > conftest.file 3645 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3646 if test "$*" = "X"; then 3647 # -L didn't work. 3648 set X `ls -t "$srcdir/configure" conftest.file` 3649 fi 3650 if test "$*" != "X $srcdir/configure conftest.file" \ 3651 && test "$*" != "X conftest.file $srcdir/configure"; then 3652 3653 # If neither matched, then we have a broken ls. This can happen 3654 # if, for instance, CONFIG_SHELL is bash and it inherits a 3655 # broken ls alias from the environment. This has actually 3656 # happened. Such a system could not be considered "sane". 3657 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3658 alias in your environment" "$LINENO" 5 3659 fi 3660 if test "$2" = conftest.file || test $am_try -eq 2; then 3661 break 3662 fi 3663 # Just in case. 3664 sleep 1 3665 am_has_slept=yes 3666 done 3667 test "$2" = conftest.file 3668 ) 3669then 3670 # Ok. 3671 : 3672else 3673 as_fn_error $? "newly created file is older than distributed files! 3674Check your system clock" "$LINENO" 5 3675fi 3676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3677$as_echo "yes" >&6; } 3678# If we didn't sleep, we still need to ensure time stamps of config.status and 3679# generated files are strictly newer. 3680am_sleep_pid= 3681if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3682 ( sleep 1 ) & 3683 am_sleep_pid=$! 3684fi 3685 3686rm -f conftest.file 3687 3688test "$program_prefix" != NONE && 3689 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3690# Use a double $ so make ignores it. 3691test "$program_suffix" != NONE && 3692 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3693# Double any \ or $. 3694# By default was `s,x,x', remove it if useless. 3695ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3696program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3697 3698if test x"${MISSING+set}" != xset; then 3699 case $am_aux_dir in 3700 *\ * | *\ *) 3701 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3702 *) 3703 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3704 esac 3705fi 3706# Use eval to expand $SHELL 3707if eval "$MISSING --is-lightweight"; then 3708 am_missing_run="$MISSING " 3709else 3710 am_missing_run= 3711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3712$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3713fi 3714 3715if test x"${install_sh+set}" != xset; then 3716 case $am_aux_dir in 3717 *\ * | *\ *) 3718 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3719 *) 3720 install_sh="\${SHELL} $am_aux_dir/install-sh" 3721 esac 3722fi 3723 3724# Installed binaries are usually stripped using 'strip' when the user 3725# run "make install-strip". However 'strip' might not be the right 3726# tool to use in cross-compilation environments, therefore Automake 3727# will honor the 'STRIP' environment variable to overrule this program. 3728if test "$cross_compiling" != no; then 3729 if test -n "$ac_tool_prefix"; then 3730 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3731set dummy ${ac_tool_prefix}strip; ac_word=$2 3732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3733$as_echo_n "checking for $ac_word... " >&6; } 3734if ${ac_cv_prog_STRIP+:} false; then : 3735 $as_echo_n "(cached) " >&6 3736else 3737 if test -n "$STRIP"; then 3738 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3739else 3740as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3741for as_dir in $PATH 3742do 3743 IFS=$as_save_IFS 3744 test -z "$as_dir" && as_dir=. 3745 for ac_exec_ext in '' $ac_executable_extensions; do 3746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3747 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3749 break 2 3750 fi 3751done 3752 done 3753IFS=$as_save_IFS 3754 3755fi 3756fi 3757STRIP=$ac_cv_prog_STRIP 3758if test -n "$STRIP"; then 3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3760$as_echo "$STRIP" >&6; } 3761else 3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3763$as_echo "no" >&6; } 3764fi 3765 3766 3767fi 3768if test -z "$ac_cv_prog_STRIP"; then 3769 ac_ct_STRIP=$STRIP 3770 # Extract the first word of "strip", so it can be a program name with args. 3771set dummy strip; ac_word=$2 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3773$as_echo_n "checking for $ac_word... " >&6; } 3774if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3775 $as_echo_n "(cached) " >&6 3776else 3777 if test -n "$ac_ct_STRIP"; then 3778 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3779else 3780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3781for as_dir in $PATH 3782do 3783 IFS=$as_save_IFS 3784 test -z "$as_dir" && as_dir=. 3785 for ac_exec_ext in '' $ac_executable_extensions; do 3786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3787 ac_cv_prog_ac_ct_STRIP="strip" 3788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3789 break 2 3790 fi 3791done 3792 done 3793IFS=$as_save_IFS 3794 3795fi 3796fi 3797ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3798if test -n "$ac_ct_STRIP"; then 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3800$as_echo "$ac_ct_STRIP" >&6; } 3801else 3802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3803$as_echo "no" >&6; } 3804fi 3805 3806 if test "x$ac_ct_STRIP" = x; then 3807 STRIP=":" 3808 else 3809 case $cross_compiling:$ac_tool_warned in 3810yes:) 3811{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3812$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3813ac_tool_warned=yes ;; 3814esac 3815 STRIP=$ac_ct_STRIP 3816 fi 3817else 3818 STRIP="$ac_cv_prog_STRIP" 3819fi 3820 3821fi 3822INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3823 3824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3825$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3826if test -z "$MKDIR_P"; then 3827 if ${ac_cv_path_mkdir+:} false; then : 3828 $as_echo_n "(cached) " >&6 3829else 3830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3831for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3832do 3833 IFS=$as_save_IFS 3834 test -z "$as_dir" && as_dir=. 3835 for ac_prog in mkdir gmkdir; do 3836 for ac_exec_ext in '' $ac_executable_extensions; do 3837 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3838 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3839 'mkdir (GNU coreutils) '* | \ 3840 'mkdir (coreutils) '* | \ 3841 'mkdir (fileutils) '4.1*) 3842 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3843 break 3;; 3844 esac 3845 done 3846 done 3847 done 3848IFS=$as_save_IFS 3849 3850fi 3851 3852 test -d ./--version && rmdir ./--version 3853 if test "${ac_cv_path_mkdir+set}" = set; then 3854 MKDIR_P="$ac_cv_path_mkdir -p" 3855 else 3856 # As a last resort, use the slow shell script. Don't cache a 3857 # value for MKDIR_P within a source directory, because that will 3858 # break other packages using the cache if that directory is 3859 # removed, or if the value is a relative name. 3860 MKDIR_P="$ac_install_sh -d" 3861 fi 3862fi 3863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3864$as_echo "$MKDIR_P" >&6; } 3865 3866for ac_prog in gawk mawk nawk awk 3867do 3868 # Extract the first word of "$ac_prog", so it can be a program name with args. 3869set dummy $ac_prog; ac_word=$2 3870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3871$as_echo_n "checking for $ac_word... " >&6; } 3872if ${ac_cv_prog_AWK+:} false; then : 3873 $as_echo_n "(cached) " >&6 3874else 3875 if test -n "$AWK"; then 3876 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3877else 3878as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3879for as_dir in $PATH 3880do 3881 IFS=$as_save_IFS 3882 test -z "$as_dir" && as_dir=. 3883 for ac_exec_ext in '' $ac_executable_extensions; do 3884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3885 ac_cv_prog_AWK="$ac_prog" 3886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3887 break 2 3888 fi 3889done 3890 done 3891IFS=$as_save_IFS 3892 3893fi 3894fi 3895AWK=$ac_cv_prog_AWK 3896if test -n "$AWK"; then 3897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3898$as_echo "$AWK" >&6; } 3899else 3900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3901$as_echo "no" >&6; } 3902fi 3903 3904 3905 test -n "$AWK" && break 3906done 3907 3908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3909$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3910set x ${MAKE-make} 3911ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3912if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3913 $as_echo_n "(cached) " >&6 3914else 3915 cat >conftest.make <<\_ACEOF 3916SHELL = /bin/sh 3917all: 3918 @echo '@@@%%%=$(MAKE)=@@@%%%' 3919_ACEOF 3920# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3921case `${MAKE-make} -f conftest.make 2>/dev/null` in 3922 *@@@%%%=?*=@@@%%%*) 3923 eval ac_cv_prog_make_${ac_make}_set=yes;; 3924 *) 3925 eval ac_cv_prog_make_${ac_make}_set=no;; 3926esac 3927rm -f conftest.make 3928fi 3929if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3931$as_echo "yes" >&6; } 3932 SET_MAKE= 3933else 3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3935$as_echo "no" >&6; } 3936 SET_MAKE="MAKE=${MAKE-make}" 3937fi 3938 3939rm -rf .tst 2>/dev/null 3940mkdir .tst 2>/dev/null 3941if test -d .tst; then 3942 am__leading_dot=. 3943else 3944 am__leading_dot=_ 3945fi 3946rmdir .tst 2>/dev/null 3947 3948DEPDIR="${am__leading_dot}deps" 3949 3950ac_config_commands="$ac_config_commands depfiles" 3951 3952 3953am_make=${MAKE-make} 3954cat > confinc << 'END' 3955am__doit: 3956 @echo this is the am__doit target 3957.PHONY: am__doit 3958END 3959# If we don't find an include directive, just comment out the code. 3960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3961$as_echo_n "checking for style of include used by $am_make... " >&6; } 3962am__include="#" 3963am__quote= 3964_am_result=none 3965# First try GNU make style include. 3966echo "include confinc" > confmf 3967# Ignore all kinds of additional output from 'make'. 3968case `$am_make -s -f confmf 2> /dev/null` in #( 3969*the\ am__doit\ target*) 3970 am__include=include 3971 am__quote= 3972 _am_result=GNU 3973 ;; 3974esac 3975# Now try BSD make style include. 3976if test "$am__include" = "#"; then 3977 echo '.include "confinc"' > confmf 3978 case `$am_make -s -f confmf 2> /dev/null` in #( 3979 *the\ am__doit\ target*) 3980 am__include=.include 3981 am__quote="\"" 3982 _am_result=BSD 3983 ;; 3984 esac 3985fi 3986 3987 3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3989$as_echo "$_am_result" >&6; } 3990rm -f confinc confmf 3991 3992# Check whether --enable-dependency-tracking was given. 3993if test "${enable_dependency_tracking+set}" = set; then : 3994 enableval=$enable_dependency_tracking; 3995fi 3996 3997if test "x$enable_dependency_tracking" != xno; then 3998 am_depcomp="$ac_aux_dir/depcomp" 3999 AMDEPBACKSLASH='\' 4000 am__nodep='_no' 4001fi 4002 if test "x$enable_dependency_tracking" != xno; then 4003 AMDEP_TRUE= 4004 AMDEP_FALSE='#' 4005else 4006 AMDEP_TRUE='#' 4007 AMDEP_FALSE= 4008fi 4009 4010 4011# Check whether --enable-silent-rules was given. 4012if test "${enable_silent_rules+set}" = set; then : 4013 enableval=$enable_silent_rules; 4014fi 4015 4016case $enable_silent_rules in # ((( 4017 yes) AM_DEFAULT_VERBOSITY=0;; 4018 no) AM_DEFAULT_VERBOSITY=1;; 4019 *) AM_DEFAULT_VERBOSITY=1;; 4020esac 4021am_make=${MAKE-make} 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 4023$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 4024if ${am_cv_make_support_nested_variables+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026else 4027 if $as_echo 'TRUE=$(BAR$(V)) 4028BAR0=false 4029BAR1=true 4030V=1 4031am__doit: 4032 @$(TRUE) 4033.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 4034 am_cv_make_support_nested_variables=yes 4035else 4036 am_cv_make_support_nested_variables=no 4037fi 4038fi 4039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 4040$as_echo "$am_cv_make_support_nested_variables" >&6; } 4041if test $am_cv_make_support_nested_variables = yes; then 4042 AM_V='$(V)' 4043 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 4044else 4045 AM_V=$AM_DEFAULT_VERBOSITY 4046 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 4047fi 4048AM_BACKSLASH='\' 4049 4050if test "`cd $srcdir && pwd`" != "`pwd`"; then 4051 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 4052 # is not polluted with repeated "-I." 4053 am__isrc=' -I$(srcdir)' 4054 # test to see if srcdir already configured 4055 if test -f $srcdir/config.status; then 4056 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 4057 fi 4058fi 4059 4060# test whether we have cygpath 4061if test -z "$CYGPATH_W"; then 4062 if (cygpath --version) >/dev/null 2>/dev/null; then 4063 CYGPATH_W='cygpath -w' 4064 else 4065 CYGPATH_W=echo 4066 fi 4067fi 4068 4069 4070# Define the identity of the package. 4071 PACKAGE='xlsclients' 4072 VERSION='1.1.4' 4073 4074 4075cat >>confdefs.h <<_ACEOF 4076#define PACKAGE "$PACKAGE" 4077_ACEOF 4078 4079 4080cat >>confdefs.h <<_ACEOF 4081#define VERSION "$VERSION" 4082_ACEOF 4083 4084# Some tools Automake needs. 4085 4086ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 4087 4088 4089AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 4090 4091 4092AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 4093 4094 4095AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 4096 4097 4098MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 4099 4100# For better backward compatibility. To be removed once Automake 1.9.x 4101# dies out for good. For more background, see: 4102# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 4103# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 4104mkdir_p='$(MKDIR_P)' 4105 4106# We need awk for the "check" target (and possibly the TAP driver). The 4107# system "awk" is bad on some platforms. 4108# Always define AMTAR for backward compatibility. Yes, it's still used 4109# in the wild :-( We should find a proper way to deprecate it ... 4110AMTAR='$${TAR-tar}' 4111 4112 4113# We'll loop over all known methods to create a tar archive until one works. 4114_am_tools='gnutar pax cpio none' 4115 4116am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 4117 4118 4119 4120 4121 4122depcc="$CC" am_compiler_list= 4123 4124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4125$as_echo_n "checking dependency style of $depcc... " >&6; } 4126if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4127 $as_echo_n "(cached) " >&6 4128else 4129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4130 # We make a subdir and do the tests there. Otherwise we can end up 4131 # making bogus files that we don't know about and never remove. For 4132 # instance it was reported that on HP-UX the gcc test will end up 4133 # making a dummy file named 'D' -- because '-MD' means "put the output 4134 # in D". 4135 rm -rf conftest.dir 4136 mkdir conftest.dir 4137 # Copy depcomp to subdir because otherwise we won't find it if we're 4138 # using a relative directory. 4139 cp "$am_depcomp" conftest.dir 4140 cd conftest.dir 4141 # We will build objects and dependencies in a subdirectory because 4142 # it helps to detect inapplicable dependency modes. For instance 4143 # both Tru64's cc and ICC support -MD to output dependencies as a 4144 # side effect of compilation, but ICC will put the dependencies in 4145 # the current directory while Tru64 will put them in the object 4146 # directory. 4147 mkdir sub 4148 4149 am_cv_CC_dependencies_compiler_type=none 4150 if test "$am_compiler_list" = ""; then 4151 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4152 fi 4153 am__universal=false 4154 case " $depcc " in #( 4155 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4156 esac 4157 4158 for depmode in $am_compiler_list; do 4159 # Setup a source with many dependencies, because some compilers 4160 # like to wrap large dependency lists on column 80 (with \), and 4161 # we should not choose a depcomp mode which is confused by this. 4162 # 4163 # We need to recreate these files for each test, as the compiler may 4164 # overwrite some of them when testing with obscure command lines. 4165 # This happens at least with the AIX C compiler. 4166 : > sub/conftest.c 4167 for i in 1 2 3 4 5 6; do 4168 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4169 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4170 # Solaris 10 /bin/sh. 4171 echo '/* dummy */' > sub/conftst$i.h 4172 done 4173 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4174 4175 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4176 # mode. It turns out that the SunPro C++ compiler does not properly 4177 # handle '-M -o', and we need to detect this. Also, some Intel 4178 # versions had trouble with output in subdirs. 4179 am__obj=sub/conftest.${OBJEXT-o} 4180 am__minus_obj="-o $am__obj" 4181 case $depmode in 4182 gcc) 4183 # This depmode causes a compiler race in universal mode. 4184 test "$am__universal" = false || continue 4185 ;; 4186 nosideeffect) 4187 # After this tag, mechanisms are not by side-effect, so they'll 4188 # only be used when explicitly requested. 4189 if test "x$enable_dependency_tracking" = xyes; then 4190 continue 4191 else 4192 break 4193 fi 4194 ;; 4195 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4196 # This compiler won't grok '-c -o', but also, the minuso test has 4197 # not run yet. These depmodes are late enough in the game, and 4198 # so weak that their functioning should not be impacted. 4199 am__obj=conftest.${OBJEXT-o} 4200 am__minus_obj= 4201 ;; 4202 none) break ;; 4203 esac 4204 if depmode=$depmode \ 4205 source=sub/conftest.c object=$am__obj \ 4206 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4207 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4208 >/dev/null 2>conftest.err && 4209 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4210 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4211 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4212 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4213 # icc doesn't choke on unknown options, it will just issue warnings 4214 # or remarks (even with -Werror). So we grep stderr for any message 4215 # that says an option was ignored or not supported. 4216 # When given -MP, icc 7.0 and 7.1 complain thusly: 4217 # icc: Command line warning: ignoring option '-M'; no argument required 4218 # The diagnosis changed in icc 8.0: 4219 # icc: Command line remark: option '-MP' not supported 4220 if (grep 'ignoring option' conftest.err || 4221 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4222 am_cv_CC_dependencies_compiler_type=$depmode 4223 break 4224 fi 4225 fi 4226 done 4227 4228 cd .. 4229 rm -rf conftest.dir 4230else 4231 am_cv_CC_dependencies_compiler_type=none 4232fi 4233 4234fi 4235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4236$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4237CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4238 4239 if 4240 test "x$enable_dependency_tracking" != xno \ 4241 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4242 am__fastdepCC_TRUE= 4243 am__fastdepCC_FALSE='#' 4244else 4245 am__fastdepCC_TRUE='#' 4246 am__fastdepCC_FALSE= 4247fi 4248 4249 4250 4251# POSIX will say in a future version that running "rm -f" with no argument 4252# is OK; and we want to be able to make that assumption in our Makefile 4253# recipes. So use an aggressive probe to check that the usage we want is 4254# actually supported "in the wild" to an acceptable degree. 4255# See automake bug#10828. 4256# To make any issue more visible, cause the running configure to be aborted 4257# by default if the 'rm' program in use doesn't match our expectations; the 4258# user can still override this though. 4259if rm -f && rm -fr && rm -rf; then : OK; else 4260 cat >&2 <<'END' 4261Oops! 4262 4263Your 'rm' program seems unable to run without file operands specified 4264on the command line, even when the '-f' option is present. This is contrary 4265to the behaviour of most rm programs out there, and not conforming with 4266the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 4267 4268Please tell bug-automake@gnu.org about your system, including the value 4269of your $PATH and any error possibly output before this message. This 4270can help us improve future automake versions. 4271 4272END 4273 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 4274 echo 'Configuration will proceed anyway, since you have set the' >&2 4275 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 4276 echo >&2 4277 else 4278 cat >&2 <<'END' 4279Aborting the configuration process, to ensure you take notice of the issue. 4280 4281You can download and install GNU coreutils to get an 'rm' implementation 4282that behaves properly: <http://www.gnu.org/software/coreutils/>. 4283 4284If you want to complete the configuration process using your problematic 4285'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 4286to "yes", and re-run configure. 4287 4288END 4289 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 4290 fi 4291fi 4292 4293 4294# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 4307$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 4308if ${ac_cv_prog_cc_c99+:} false; then : 4309 $as_echo_n "(cached) " >&6 4310else 4311 ac_cv_prog_cc_c99=no 4312ac_save_CC=$CC 4313cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4314/* end confdefs.h. */ 4315#include <stdarg.h> 4316#include <stdbool.h> 4317#include <stdlib.h> 4318#include <wchar.h> 4319#include <stdio.h> 4320 4321// Check varargs macros. These examples are taken from C99 6.10.3.5. 4322#define debug(...) fprintf (stderr, __VA_ARGS__) 4323#define showlist(...) puts (#__VA_ARGS__) 4324#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 4325static void 4326test_varargs_macros (void) 4327{ 4328 int x = 1234; 4329 int y = 5678; 4330 debug ("Flag"); 4331 debug ("X = %d\n", x); 4332 showlist (The first, second, and third items.); 4333 report (x>y, "x is %d but y is %d", x, y); 4334} 4335 4336// Check long long types. 4337#define BIG64 18446744073709551615ull 4338#define BIG32 4294967295ul 4339#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 4340#if !BIG_OK 4341 your preprocessor is broken; 4342#endif 4343#if BIG_OK 4344#else 4345 your preprocessor is broken; 4346#endif 4347static long long int bignum = -9223372036854775807LL; 4348static unsigned long long int ubignum = BIG64; 4349 4350struct incomplete_array 4351{ 4352 int datasize; 4353 double data[]; 4354}; 4355 4356struct named_init { 4357 int number; 4358 const wchar_t *name; 4359 double average; 4360}; 4361 4362typedef const char *ccp; 4363 4364static inline int 4365test_restrict (ccp restrict text) 4366{ 4367 // See if C++-style comments work. 4368 // Iterate through items via the restricted pointer. 4369 // Also check for declarations in for loops. 4370 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 4371 continue; 4372 return 0; 4373} 4374 4375// Check varargs and va_copy. 4376static void 4377test_varargs (const char *format, ...) 4378{ 4379 va_list args; 4380 va_start (args, format); 4381 va_list args_copy; 4382 va_copy (args_copy, args); 4383 4384 const char *str; 4385 int number; 4386 float fnumber; 4387 4388 while (*format) 4389 { 4390 switch (*format++) 4391 { 4392 case 's': // string 4393 str = va_arg (args_copy, const char *); 4394 break; 4395 case 'd': // int 4396 number = va_arg (args_copy, int); 4397 break; 4398 case 'f': // float 4399 fnumber = va_arg (args_copy, double); 4400 break; 4401 default: 4402 break; 4403 } 4404 } 4405 va_end (args_copy); 4406 va_end (args); 4407} 4408 4409int 4410main () 4411{ 4412 4413 // Check bool. 4414 _Bool success = false; 4415 4416 // Check restrict. 4417 if (test_restrict ("String literal") == 0) 4418 success = true; 4419 char *restrict newvar = "Another string"; 4420 4421 // Check varargs. 4422 test_varargs ("s, d' f .", "string", 65, 34.234); 4423 test_varargs_macros (); 4424 4425 // Check flexible array members. 4426 struct incomplete_array *ia = 4427 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 4428 ia->datasize = 10; 4429 for (int i = 0; i < ia->datasize; ++i) 4430 ia->data[i] = i * 1.234; 4431 4432 // Check named initializers. 4433 struct named_init ni = { 4434 .number = 34, 4435 .name = L"Test wide string", 4436 .average = 543.34343, 4437 }; 4438 4439 ni.number = 58; 4440 4441 int dynamic_array[ni.number]; 4442 dynamic_array[ni.number - 1] = 543; 4443 4444 // work around unused variable warnings 4445 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 4446 || dynamic_array[ni.number - 1] != 543); 4447 4448 ; 4449 return 0; 4450} 4451_ACEOF 4452for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99 4453do 4454 CC="$ac_save_CC $ac_arg" 4455 if ac_fn_c_try_compile "$LINENO"; then : 4456 ac_cv_prog_cc_c99=$ac_arg 4457fi 4458rm -f core conftest.err conftest.$ac_objext 4459 test "x$ac_cv_prog_cc_c99" != "xno" && break 4460done 4461rm -f conftest.$ac_ext 4462CC=$ac_save_CC 4463 4464fi 4465# AC_CACHE_VAL 4466case "x$ac_cv_prog_cc_c99" in 4467 x) 4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4469$as_echo "none needed" >&6; } ;; 4470 xno) 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4472$as_echo "unsupported" >&6; } ;; 4473 *) 4474 CC="$CC $ac_cv_prog_cc_c99" 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 4476$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 4477esac 4478if test "x$ac_cv_prog_cc_c99" != xno; then : 4479 4480fi 4481 4482 4483 4484 4485 4486 4487ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 4488if test "x$ac_cv_have_decl___clang__" = xyes; then : 4489 CLANGCC="yes" 4490else 4491 CLANGCC="no" 4492fi 4493 4494ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4495if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4496 INTELCC="yes" 4497else 4498 INTELCC="no" 4499fi 4500 4501ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4502if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4503 SUNCC="yes" 4504else 4505 SUNCC="no" 4506fi 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4517 if test -n "$ac_tool_prefix"; then 4518 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4519set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4521$as_echo_n "checking for $ac_word... " >&6; } 4522if ${ac_cv_path_PKG_CONFIG+:} false; then : 4523 $as_echo_n "(cached) " >&6 4524else 4525 case $PKG_CONFIG in 4526 [\\/]* | ?:[\\/]*) 4527 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4528 ;; 4529 *) 4530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4531for as_dir in $PATH 4532do 4533 IFS=$as_save_IFS 4534 test -z "$as_dir" && as_dir=. 4535 for ac_exec_ext in '' $ac_executable_extensions; do 4536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4537 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4539 break 2 4540 fi 4541done 4542 done 4543IFS=$as_save_IFS 4544 4545 ;; 4546esac 4547fi 4548PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4549if test -n "$PKG_CONFIG"; then 4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4551$as_echo "$PKG_CONFIG" >&6; } 4552else 4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4554$as_echo "no" >&6; } 4555fi 4556 4557 4558fi 4559if test -z "$ac_cv_path_PKG_CONFIG"; then 4560 ac_pt_PKG_CONFIG=$PKG_CONFIG 4561 # Extract the first word of "pkg-config", so it can be a program name with args. 4562set dummy pkg-config; ac_word=$2 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4564$as_echo_n "checking for $ac_word... " >&6; } 4565if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 case $ac_pt_PKG_CONFIG in 4569 [\\/]* | ?:[\\/]*) 4570 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4571 ;; 4572 *) 4573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4574for as_dir in $PATH 4575do 4576 IFS=$as_save_IFS 4577 test -z "$as_dir" && as_dir=. 4578 for ac_exec_ext in '' $ac_executable_extensions; do 4579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4580 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4582 break 2 4583 fi 4584done 4585 done 4586IFS=$as_save_IFS 4587 4588 ;; 4589esac 4590fi 4591ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4592if test -n "$ac_pt_PKG_CONFIG"; then 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4594$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4595else 4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4597$as_echo "no" >&6; } 4598fi 4599 4600 if test "x$ac_pt_PKG_CONFIG" = x; then 4601 PKG_CONFIG="" 4602 else 4603 case $cross_compiling:$ac_tool_warned in 4604yes:) 4605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4607ac_tool_warned=yes ;; 4608esac 4609 PKG_CONFIG=$ac_pt_PKG_CONFIG 4610 fi 4611else 4612 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4613fi 4614 4615fi 4616if test -n "$PKG_CONFIG"; then 4617 _pkg_min_version=0.9.0 4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4619$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4620 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4622$as_echo "yes" >&6; } 4623 else 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4625$as_echo "no" >&6; } 4626 PKG_CONFIG="" 4627 fi 4628fi 4629# Make sure we can run config.sub. 4630$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4631 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4632 4633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4634$as_echo_n "checking build system type... " >&6; } 4635if ${ac_cv_build+:} false; then : 4636 $as_echo_n "(cached) " >&6 4637else 4638 ac_build_alias=$build_alias 4639test "x$ac_build_alias" = x && 4640 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4641test "x$ac_build_alias" = x && 4642 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4643ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4644 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4645 4646fi 4647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4648$as_echo "$ac_cv_build" >&6; } 4649case $ac_cv_build in 4650*-*-*) ;; 4651*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4652esac 4653build=$ac_cv_build 4654ac_save_IFS=$IFS; IFS='-' 4655set x $ac_cv_build 4656shift 4657build_cpu=$1 4658build_vendor=$2 4659shift; shift 4660# Remember, the first character of IFS is used to create $*, 4661# except with old shells: 4662build_os=$* 4663IFS=$ac_save_IFS 4664case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4665 4666 4667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4668$as_echo_n "checking host system type... " >&6; } 4669if ${ac_cv_host+:} false; then : 4670 $as_echo_n "(cached) " >&6 4671else 4672 if test "x$host_alias" = x; then 4673 ac_cv_host=$ac_cv_build 4674else 4675 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4676 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4677fi 4678 4679fi 4680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4681$as_echo "$ac_cv_host" >&6; } 4682case $ac_cv_host in 4683*-*-*) ;; 4684*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4685esac 4686host=$ac_cv_host 4687ac_save_IFS=$IFS; IFS='-' 4688set x $ac_cv_host 4689shift 4690host_cpu=$1 4691host_vendor=$2 4692shift; shift 4693# Remember, the first character of IFS is used to create $*, 4694# except with old shells: 4695host_os=$* 4696IFS=$ac_save_IFS 4697case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4698 4699 4700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4701$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4702if ${ac_cv_path_SED+:} false; then : 4703 $as_echo_n "(cached) " >&6 4704else 4705 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4706 for ac_i in 1 2 3 4 5 6 7; do 4707 ac_script="$ac_script$as_nl$ac_script" 4708 done 4709 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4710 { ac_script=; unset ac_script;} 4711 if test -z "$SED"; then 4712 ac_path_SED_found=false 4713 # Loop through the user's path and test for each of PROGNAME-LIST 4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4715for as_dir in $PATH 4716do 4717 IFS=$as_save_IFS 4718 test -z "$as_dir" && as_dir=. 4719 for ac_prog in sed gsed; do 4720 for ac_exec_ext in '' $ac_executable_extensions; do 4721 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4722 as_fn_executable_p "$ac_path_SED" || continue 4723# Check for GNU ac_path_SED and select it if it is found. 4724 # Check for GNU $ac_path_SED 4725case `"$ac_path_SED" --version 2>&1` in 4726*GNU*) 4727 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4728*) 4729 ac_count=0 4730 $as_echo_n 0123456789 >"conftest.in" 4731 while : 4732 do 4733 cat "conftest.in" "conftest.in" >"conftest.tmp" 4734 mv "conftest.tmp" "conftest.in" 4735 cp "conftest.in" "conftest.nl" 4736 $as_echo '' >> "conftest.nl" 4737 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4738 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4739 as_fn_arith $ac_count + 1 && ac_count=$as_val 4740 if test $ac_count -gt ${ac_path_SED_max-0}; then 4741 # Best one so far, save it but keep looking for a better one 4742 ac_cv_path_SED="$ac_path_SED" 4743 ac_path_SED_max=$ac_count 4744 fi 4745 # 10*(2^10) chars as input seems more than enough 4746 test $ac_count -gt 10 && break 4747 done 4748 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4749esac 4750 4751 $ac_path_SED_found && break 3 4752 done 4753 done 4754 done 4755IFS=$as_save_IFS 4756 if test -z "$ac_cv_path_SED"; then 4757 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4758 fi 4759else 4760 ac_cv_path_SED=$SED 4761fi 4762 4763fi 4764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4765$as_echo "$ac_cv_path_SED" >&6; } 4766 SED="$ac_cv_path_SED" 4767 rm -f conftest.sed 4768 4769 4770 4771 4772 4773 4774# Check whether --enable-selective-werror was given. 4775if test "${enable_selective_werror+set}" = set; then : 4776 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval 4777else 4778 SELECTIVE_WERROR=yes 4779fi 4780 4781 4782 4783 4784 4785# -v is too short to test reliably with XORG_TESTSET_CFLAG 4786if test "x$SUNCC" = "xyes"; then 4787 BASE_CFLAGS="-v" 4788else 4789 BASE_CFLAGS="" 4790fi 4791 4792# This chunk of warnings were those that existed in the legacy CWARNFLAGS 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806xorg_testset_save_CFLAGS="$CFLAGS" 4807 4808if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4809 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4811$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4812if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4813 $as_echo_n "(cached) " >&6 4814else 4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4816/* end confdefs.h. */ 4817int i; 4818_ACEOF 4819if ac_fn_c_try_compile "$LINENO"; then : 4820 xorg_cv_cc_flag_unknown_warning_option=yes 4821else 4822 xorg_cv_cc_flag_unknown_warning_option=no 4823fi 4824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4825fi 4826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4827$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4828 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4829 CFLAGS="$xorg_testset_save_CFLAGS" 4830fi 4831 4832if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4834 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4835 fi 4836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4838$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4839if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4840 $as_echo_n "(cached) " >&6 4841else 4842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4843/* end confdefs.h. */ 4844int i; 4845_ACEOF 4846if ac_fn_c_try_compile "$LINENO"; then : 4847 xorg_cv_cc_flag_unused_command_line_argument=yes 4848else 4849 xorg_cv_cc_flag_unused_command_line_argument=no 4850fi 4851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4852fi 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4854$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4855 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4856 CFLAGS="$xorg_testset_save_CFLAGS" 4857fi 4858 4859found="no" 4860 4861 if test $found = "no" ; then 4862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4863 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4864 fi 4865 4866 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4867 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4868 fi 4869 4870 CFLAGS="$CFLAGS -Wall" 4871 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5 4873$as_echo_n "checking if $CC supports -Wall... " >&6; } 4874 cacheid=xorg_cv_cc_flag__Wall 4875 if eval \${$cacheid+:} false; then : 4876 $as_echo_n "(cached) " >&6 4877else 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4879/* end confdefs.h. */ 4880int i; 4881int 4882main () 4883{ 4884 4885 ; 4886 return 0; 4887} 4888_ACEOF 4889if ac_fn_c_try_link "$LINENO"; then : 4890 eval $cacheid=yes 4891else 4892 eval $cacheid=no 4893fi 4894rm -f core conftest.err conftest.$ac_objext \ 4895 conftest$ac_exeext conftest.$ac_ext 4896fi 4897 4898 4899 CFLAGS="$xorg_testset_save_CFLAGS" 4900 4901 eval supported=\$$cacheid 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 4903$as_echo "$supported" >&6; } 4904 if test "$supported" = "yes" ; then 4905 BASE_CFLAGS="$BASE_CFLAGS -Wall" 4906 found="yes" 4907 fi 4908 fi 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924xorg_testset_save_CFLAGS="$CFLAGS" 4925 4926if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 4927 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 4929$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 4930if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 4931 $as_echo_n "(cached) " >&6 4932else 4933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4934/* end confdefs.h. */ 4935int i; 4936_ACEOF 4937if ac_fn_c_try_compile "$LINENO"; then : 4938 xorg_cv_cc_flag_unknown_warning_option=yes 4939else 4940 xorg_cv_cc_flag_unknown_warning_option=no 4941fi 4942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4943fi 4944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 4945$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 4946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 4947 CFLAGS="$xorg_testset_save_CFLAGS" 4948fi 4949 4950if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 4951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4952 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4953 fi 4954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 4956$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 4957if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4961/* end confdefs.h. */ 4962int i; 4963_ACEOF 4964if ac_fn_c_try_compile "$LINENO"; then : 4965 xorg_cv_cc_flag_unused_command_line_argument=yes 4966else 4967 xorg_cv_cc_flag_unused_command_line_argument=no 4968fi 4969rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4970fi 4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 4972$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 4973 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 4974 CFLAGS="$xorg_testset_save_CFLAGS" 4975fi 4976 4977found="no" 4978 4979 if test $found = "no" ; then 4980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 4981 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 4982 fi 4983 4984 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 4985 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 4986 fi 4987 4988 CFLAGS="$CFLAGS -Wpointer-arith" 4989 4990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5 4991$as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; } 4992 cacheid=xorg_cv_cc_flag__Wpointer_arith 4993 if eval \${$cacheid+:} false; then : 4994 $as_echo_n "(cached) " >&6 4995else 4996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4997/* end confdefs.h. */ 4998int i; 4999int 5000main () 5001{ 5002 5003 ; 5004 return 0; 5005} 5006_ACEOF 5007if ac_fn_c_try_link "$LINENO"; then : 5008 eval $cacheid=yes 5009else 5010 eval $cacheid=no 5011fi 5012rm -f core conftest.err conftest.$ac_objext \ 5013 conftest$ac_exeext conftest.$ac_ext 5014fi 5015 5016 5017 CFLAGS="$xorg_testset_save_CFLAGS" 5018 5019 eval supported=\$$cacheid 5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5021$as_echo "$supported" >&6; } 5022 if test "$supported" = "yes" ; then 5023 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith" 5024 found="yes" 5025 fi 5026 fi 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042xorg_testset_save_CFLAGS="$CFLAGS" 5043 5044if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5045 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5047$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5048if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5049 $as_echo_n "(cached) " >&6 5050else 5051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5052/* end confdefs.h. */ 5053int i; 5054_ACEOF 5055if ac_fn_c_try_compile "$LINENO"; then : 5056 xorg_cv_cc_flag_unknown_warning_option=yes 5057else 5058 xorg_cv_cc_flag_unknown_warning_option=no 5059fi 5060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5061fi 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5063$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5064 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5065 CFLAGS="$xorg_testset_save_CFLAGS" 5066fi 5067 5068if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5070 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5071 fi 5072 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5074$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5075if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5076 $as_echo_n "(cached) " >&6 5077else 5078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5079/* end confdefs.h. */ 5080int i; 5081_ACEOF 5082if ac_fn_c_try_compile "$LINENO"; then : 5083 xorg_cv_cc_flag_unused_command_line_argument=yes 5084else 5085 xorg_cv_cc_flag_unused_command_line_argument=no 5086fi 5087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5088fi 5089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5090$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5091 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5092 CFLAGS="$xorg_testset_save_CFLAGS" 5093fi 5094 5095found="no" 5096 5097 if test $found = "no" ; then 5098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5099 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5100 fi 5101 5102 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5103 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5104 fi 5105 5106 CFLAGS="$CFLAGS -Wmissing-declarations" 5107 5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5 5109$as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; } 5110 cacheid=xorg_cv_cc_flag__Wmissing_declarations 5111 if eval \${$cacheid+:} false; then : 5112 $as_echo_n "(cached) " >&6 5113else 5114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5115/* end confdefs.h. */ 5116int i; 5117int 5118main () 5119{ 5120 5121 ; 5122 return 0; 5123} 5124_ACEOF 5125if ac_fn_c_try_link "$LINENO"; then : 5126 eval $cacheid=yes 5127else 5128 eval $cacheid=no 5129fi 5130rm -f core conftest.err conftest.$ac_objext \ 5131 conftest$ac_exeext conftest.$ac_ext 5132fi 5133 5134 5135 CFLAGS="$xorg_testset_save_CFLAGS" 5136 5137 eval supported=\$$cacheid 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5139$as_echo "$supported" >&6; } 5140 if test "$supported" = "yes" ; then 5141 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations" 5142 found="yes" 5143 fi 5144 fi 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160xorg_testset_save_CFLAGS="$CFLAGS" 5161 5162if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5163 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5165$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5166if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5167 $as_echo_n "(cached) " >&6 5168else 5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5170/* end confdefs.h. */ 5171int i; 5172_ACEOF 5173if ac_fn_c_try_compile "$LINENO"; then : 5174 xorg_cv_cc_flag_unknown_warning_option=yes 5175else 5176 xorg_cv_cc_flag_unknown_warning_option=no 5177fi 5178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5179fi 5180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5181$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5182 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5183 CFLAGS="$xorg_testset_save_CFLAGS" 5184fi 5185 5186if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5188 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5189 fi 5190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5192$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5193if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5194 $as_echo_n "(cached) " >&6 5195else 5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5197/* end confdefs.h. */ 5198int i; 5199_ACEOF 5200if ac_fn_c_try_compile "$LINENO"; then : 5201 xorg_cv_cc_flag_unused_command_line_argument=yes 5202else 5203 xorg_cv_cc_flag_unused_command_line_argument=no 5204fi 5205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5206fi 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5208$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5209 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5210 CFLAGS="$xorg_testset_save_CFLAGS" 5211fi 5212 5213found="no" 5214 5215 if test $found = "no" ; then 5216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5217 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5218 fi 5219 5220 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5221 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5222 fi 5223 5224 CFLAGS="$CFLAGS -Wformat=2" 5225 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5 5227$as_echo_n "checking if $CC supports -Wformat=2... " >&6; } 5228 cacheid=xorg_cv_cc_flag__Wformat_2 5229 if eval \${$cacheid+:} false; then : 5230 $as_echo_n "(cached) " >&6 5231else 5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5233/* end confdefs.h. */ 5234int i; 5235int 5236main () 5237{ 5238 5239 ; 5240 return 0; 5241} 5242_ACEOF 5243if ac_fn_c_try_link "$LINENO"; then : 5244 eval $cacheid=yes 5245else 5246 eval $cacheid=no 5247fi 5248rm -f core conftest.err conftest.$ac_objext \ 5249 conftest$ac_exeext conftest.$ac_ext 5250fi 5251 5252 5253 CFLAGS="$xorg_testset_save_CFLAGS" 5254 5255 eval supported=\$$cacheid 5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5257$as_echo "$supported" >&6; } 5258 if test "$supported" = "yes" ; then 5259 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2" 5260 found="yes" 5261 fi 5262 fi 5263 5264 if test $found = "no" ; then 5265 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5266 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5267 fi 5268 5269 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5270 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5271 fi 5272 5273 CFLAGS="$CFLAGS -Wformat" 5274 5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5 5276$as_echo_n "checking if $CC supports -Wformat... " >&6; } 5277 cacheid=xorg_cv_cc_flag__Wformat 5278 if eval \${$cacheid+:} false; then : 5279 $as_echo_n "(cached) " >&6 5280else 5281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5282/* end confdefs.h. */ 5283int i; 5284int 5285main () 5286{ 5287 5288 ; 5289 return 0; 5290} 5291_ACEOF 5292if ac_fn_c_try_link "$LINENO"; then : 5293 eval $cacheid=yes 5294else 5295 eval $cacheid=no 5296fi 5297rm -f core conftest.err conftest.$ac_objext \ 5298 conftest$ac_exeext conftest.$ac_ext 5299fi 5300 5301 5302 CFLAGS="$xorg_testset_save_CFLAGS" 5303 5304 eval supported=\$$cacheid 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5306$as_echo "$supported" >&6; } 5307 if test "$supported" = "yes" ; then 5308 BASE_CFLAGS="$BASE_CFLAGS -Wformat" 5309 found="yes" 5310 fi 5311 fi 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329xorg_testset_save_CFLAGS="$CFLAGS" 5330 5331if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5332 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5334$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5335if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5336 $as_echo_n "(cached) " >&6 5337else 5338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5339/* end confdefs.h. */ 5340int i; 5341_ACEOF 5342if ac_fn_c_try_compile "$LINENO"; then : 5343 xorg_cv_cc_flag_unknown_warning_option=yes 5344else 5345 xorg_cv_cc_flag_unknown_warning_option=no 5346fi 5347rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5348fi 5349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5350$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5351 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5352 CFLAGS="$xorg_testset_save_CFLAGS" 5353fi 5354 5355if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5356 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5357 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5358 fi 5359 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5361$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5362if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5363 $as_echo_n "(cached) " >&6 5364else 5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5366/* end confdefs.h. */ 5367int i; 5368_ACEOF 5369if ac_fn_c_try_compile "$LINENO"; then : 5370 xorg_cv_cc_flag_unused_command_line_argument=yes 5371else 5372 xorg_cv_cc_flag_unused_command_line_argument=no 5373fi 5374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5375fi 5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5377$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5378 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5379 CFLAGS="$xorg_testset_save_CFLAGS" 5380fi 5381 5382found="no" 5383 5384 if test $found = "no" ; then 5385 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5386 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5387 fi 5388 5389 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5390 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5391 fi 5392 5393 CFLAGS="$CFLAGS -Wstrict-prototypes" 5394 5395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5 5396$as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; } 5397 cacheid=xorg_cv_cc_flag__Wstrict_prototypes 5398 if eval \${$cacheid+:} false; then : 5399 $as_echo_n "(cached) " >&6 5400else 5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5402/* end confdefs.h. */ 5403int i; 5404int 5405main () 5406{ 5407 5408 ; 5409 return 0; 5410} 5411_ACEOF 5412if ac_fn_c_try_link "$LINENO"; then : 5413 eval $cacheid=yes 5414else 5415 eval $cacheid=no 5416fi 5417rm -f core conftest.err conftest.$ac_objext \ 5418 conftest$ac_exeext conftest.$ac_ext 5419fi 5420 5421 5422 CFLAGS="$xorg_testset_save_CFLAGS" 5423 5424 eval supported=\$$cacheid 5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5426$as_echo "$supported" >&6; } 5427 if test "$supported" = "yes" ; then 5428 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes" 5429 found="yes" 5430 fi 5431 fi 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447xorg_testset_save_CFLAGS="$CFLAGS" 5448 5449if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5450 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5452$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5453if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5454 $as_echo_n "(cached) " >&6 5455else 5456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5457/* end confdefs.h. */ 5458int i; 5459_ACEOF 5460if ac_fn_c_try_compile "$LINENO"; then : 5461 xorg_cv_cc_flag_unknown_warning_option=yes 5462else 5463 xorg_cv_cc_flag_unknown_warning_option=no 5464fi 5465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5466fi 5467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5468$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5469 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5470 CFLAGS="$xorg_testset_save_CFLAGS" 5471fi 5472 5473if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5474 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5475 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5476 fi 5477 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5479$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5480if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5481 $as_echo_n "(cached) " >&6 5482else 5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5484/* end confdefs.h. */ 5485int i; 5486_ACEOF 5487if ac_fn_c_try_compile "$LINENO"; then : 5488 xorg_cv_cc_flag_unused_command_line_argument=yes 5489else 5490 xorg_cv_cc_flag_unused_command_line_argument=no 5491fi 5492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5493fi 5494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5495$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5496 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5497 CFLAGS="$xorg_testset_save_CFLAGS" 5498fi 5499 5500found="no" 5501 5502 if test $found = "no" ; then 5503 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5504 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5505 fi 5506 5507 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5509 fi 5510 5511 CFLAGS="$CFLAGS -Wmissing-prototypes" 5512 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5 5514$as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; } 5515 cacheid=xorg_cv_cc_flag__Wmissing_prototypes 5516 if eval \${$cacheid+:} false; then : 5517 $as_echo_n "(cached) " >&6 5518else 5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5520/* end confdefs.h. */ 5521int i; 5522int 5523main () 5524{ 5525 5526 ; 5527 return 0; 5528} 5529_ACEOF 5530if ac_fn_c_try_link "$LINENO"; then : 5531 eval $cacheid=yes 5532else 5533 eval $cacheid=no 5534fi 5535rm -f core conftest.err conftest.$ac_objext \ 5536 conftest$ac_exeext conftest.$ac_ext 5537fi 5538 5539 5540 CFLAGS="$xorg_testset_save_CFLAGS" 5541 5542 eval supported=\$$cacheid 5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5544$as_echo "$supported" >&6; } 5545 if test "$supported" = "yes" ; then 5546 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes" 5547 found="yes" 5548 fi 5549 fi 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565xorg_testset_save_CFLAGS="$CFLAGS" 5566 5567if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5568 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5570$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5571if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5572 $as_echo_n "(cached) " >&6 5573else 5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5575/* end confdefs.h. */ 5576int i; 5577_ACEOF 5578if ac_fn_c_try_compile "$LINENO"; then : 5579 xorg_cv_cc_flag_unknown_warning_option=yes 5580else 5581 xorg_cv_cc_flag_unknown_warning_option=no 5582fi 5583rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5584fi 5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5586$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5587 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5588 CFLAGS="$xorg_testset_save_CFLAGS" 5589fi 5590 5591if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5592 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5593 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5594 fi 5595 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5597$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5598if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5599 $as_echo_n "(cached) " >&6 5600else 5601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5602/* end confdefs.h. */ 5603int i; 5604_ACEOF 5605if ac_fn_c_try_compile "$LINENO"; then : 5606 xorg_cv_cc_flag_unused_command_line_argument=yes 5607else 5608 xorg_cv_cc_flag_unused_command_line_argument=no 5609fi 5610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5611fi 5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5613$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5614 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5615 CFLAGS="$xorg_testset_save_CFLAGS" 5616fi 5617 5618found="no" 5619 5620 if test $found = "no" ; then 5621 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5622 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5623 fi 5624 5625 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5626 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5627 fi 5628 5629 CFLAGS="$CFLAGS -Wnested-externs" 5630 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5 5632$as_echo_n "checking if $CC supports -Wnested-externs... " >&6; } 5633 cacheid=xorg_cv_cc_flag__Wnested_externs 5634 if eval \${$cacheid+:} false; then : 5635 $as_echo_n "(cached) " >&6 5636else 5637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5638/* end confdefs.h. */ 5639int i; 5640int 5641main () 5642{ 5643 5644 ; 5645 return 0; 5646} 5647_ACEOF 5648if ac_fn_c_try_link "$LINENO"; then : 5649 eval $cacheid=yes 5650else 5651 eval $cacheid=no 5652fi 5653rm -f core conftest.err conftest.$ac_objext \ 5654 conftest$ac_exeext conftest.$ac_ext 5655fi 5656 5657 5658 CFLAGS="$xorg_testset_save_CFLAGS" 5659 5660 eval supported=\$$cacheid 5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5662$as_echo "$supported" >&6; } 5663 if test "$supported" = "yes" ; then 5664 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs" 5665 found="yes" 5666 fi 5667 fi 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683xorg_testset_save_CFLAGS="$CFLAGS" 5684 5685if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5686 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5688$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5689if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691else 5692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5693/* end confdefs.h. */ 5694int i; 5695_ACEOF 5696if ac_fn_c_try_compile "$LINENO"; then : 5697 xorg_cv_cc_flag_unknown_warning_option=yes 5698else 5699 xorg_cv_cc_flag_unknown_warning_option=no 5700fi 5701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5702fi 5703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5704$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5705 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5706 CFLAGS="$xorg_testset_save_CFLAGS" 5707fi 5708 5709if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5710 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5711 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5712 fi 5713 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5715$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5716if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718else 5719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5720/* end confdefs.h. */ 5721int i; 5722_ACEOF 5723if ac_fn_c_try_compile "$LINENO"; then : 5724 xorg_cv_cc_flag_unused_command_line_argument=yes 5725else 5726 xorg_cv_cc_flag_unused_command_line_argument=no 5727fi 5728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5729fi 5730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5731$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5732 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5733 CFLAGS="$xorg_testset_save_CFLAGS" 5734fi 5735 5736found="no" 5737 5738 if test $found = "no" ; then 5739 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5740 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5741 fi 5742 5743 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5745 fi 5746 5747 CFLAGS="$CFLAGS -Wbad-function-cast" 5748 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5 5750$as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; } 5751 cacheid=xorg_cv_cc_flag__Wbad_function_cast 5752 if eval \${$cacheid+:} false; then : 5753 $as_echo_n "(cached) " >&6 5754else 5755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5756/* end confdefs.h. */ 5757int i; 5758int 5759main () 5760{ 5761 5762 ; 5763 return 0; 5764} 5765_ACEOF 5766if ac_fn_c_try_link "$LINENO"; then : 5767 eval $cacheid=yes 5768else 5769 eval $cacheid=no 5770fi 5771rm -f core conftest.err conftest.$ac_objext \ 5772 conftest$ac_exeext conftest.$ac_ext 5773fi 5774 5775 5776 CFLAGS="$xorg_testset_save_CFLAGS" 5777 5778 eval supported=\$$cacheid 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5780$as_echo "$supported" >&6; } 5781 if test "$supported" = "yes" ; then 5782 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast" 5783 found="yes" 5784 fi 5785 fi 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801xorg_testset_save_CFLAGS="$CFLAGS" 5802 5803if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5804 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5806$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5807if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5808 $as_echo_n "(cached) " >&6 5809else 5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5811/* end confdefs.h. */ 5812int i; 5813_ACEOF 5814if ac_fn_c_try_compile "$LINENO"; then : 5815 xorg_cv_cc_flag_unknown_warning_option=yes 5816else 5817 xorg_cv_cc_flag_unknown_warning_option=no 5818fi 5819rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5820fi 5821{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5822$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5823 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5824 CFLAGS="$xorg_testset_save_CFLAGS" 5825fi 5826 5827if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5828 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5829 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5830 fi 5831 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 5833$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 5834if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5838/* end confdefs.h. */ 5839int i; 5840_ACEOF 5841if ac_fn_c_try_compile "$LINENO"; then : 5842 xorg_cv_cc_flag_unused_command_line_argument=yes 5843else 5844 xorg_cv_cc_flag_unused_command_line_argument=no 5845fi 5846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5847fi 5848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 5849$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 5850 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 5851 CFLAGS="$xorg_testset_save_CFLAGS" 5852fi 5853 5854found="no" 5855 5856 if test $found = "no" ; then 5857 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5858 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5859 fi 5860 5861 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5862 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5863 fi 5864 5865 CFLAGS="$CFLAGS -Wold-style-definition" 5866 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5 5868$as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; } 5869 cacheid=xorg_cv_cc_flag__Wold_style_definition 5870 if eval \${$cacheid+:} false; then : 5871 $as_echo_n "(cached) " >&6 5872else 5873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5874/* end confdefs.h. */ 5875int i; 5876int 5877main () 5878{ 5879 5880 ; 5881 return 0; 5882} 5883_ACEOF 5884if ac_fn_c_try_link "$LINENO"; then : 5885 eval $cacheid=yes 5886else 5887 eval $cacheid=no 5888fi 5889rm -f core conftest.err conftest.$ac_objext \ 5890 conftest$ac_exeext conftest.$ac_ext 5891fi 5892 5893 5894 CFLAGS="$xorg_testset_save_CFLAGS" 5895 5896 eval supported=\$$cacheid 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5898$as_echo "$supported" >&6; } 5899 if test "$supported" = "yes" ; then 5900 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition" 5901 found="yes" 5902 fi 5903 fi 5904 5905 if test $found = "no" ; then 5906 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5907 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5908 fi 5909 5910 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 5911 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5912 fi 5913 5914 CFLAGS="$CFLAGS -fd" 5915 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5 5917$as_echo_n "checking if $CC supports -fd... " >&6; } 5918 cacheid=xorg_cv_cc_flag__fd 5919 if eval \${$cacheid+:} false; then : 5920 $as_echo_n "(cached) " >&6 5921else 5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5923/* end confdefs.h. */ 5924int i; 5925int 5926main () 5927{ 5928 5929 ; 5930 return 0; 5931} 5932_ACEOF 5933if ac_fn_c_try_link "$LINENO"; then : 5934 eval $cacheid=yes 5935else 5936 eval $cacheid=no 5937fi 5938rm -f core conftest.err conftest.$ac_objext \ 5939 conftest$ac_exeext conftest.$ac_ext 5940fi 5941 5942 5943 CFLAGS="$xorg_testset_save_CFLAGS" 5944 5945 eval supported=\$$cacheid 5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 5947$as_echo "$supported" >&6; } 5948 if test "$supported" = "yes" ; then 5949 BASE_CFLAGS="$BASE_CFLAGS -fd" 5950 found="yes" 5951 fi 5952 fi 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968xorg_testset_save_CFLAGS="$CFLAGS" 5969 5970if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 5971 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 5973$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 5974if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 5975 $as_echo_n "(cached) " >&6 5976else 5977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5978/* end confdefs.h. */ 5979int i; 5980_ACEOF 5981if ac_fn_c_try_compile "$LINENO"; then : 5982 xorg_cv_cc_flag_unknown_warning_option=yes 5983else 5984 xorg_cv_cc_flag_unknown_warning_option=no 5985fi 5986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5987fi 5988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 5989$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 5990 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 5991 CFLAGS="$xorg_testset_save_CFLAGS" 5992fi 5993 5994if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 5995 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 5996 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 5997 fi 5998 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6000$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6001if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6002 $as_echo_n "(cached) " >&6 6003else 6004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6005/* end confdefs.h. */ 6006int i; 6007_ACEOF 6008if ac_fn_c_try_compile "$LINENO"; then : 6009 xorg_cv_cc_flag_unused_command_line_argument=yes 6010else 6011 xorg_cv_cc_flag_unused_command_line_argument=no 6012fi 6013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6014fi 6015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6016$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6017 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6018 CFLAGS="$xorg_testset_save_CFLAGS" 6019fi 6020 6021found="no" 6022 6023 if test $found = "no" ; then 6024 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6025 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6026 fi 6027 6028 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6030 fi 6031 6032 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 6033 6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5 6035$as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; } 6036 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement 6037 if eval \${$cacheid+:} false; then : 6038 $as_echo_n "(cached) " >&6 6039else 6040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6041/* end confdefs.h. */ 6042int i; 6043int 6044main () 6045{ 6046 6047 ; 6048 return 0; 6049} 6050_ACEOF 6051if ac_fn_c_try_link "$LINENO"; then : 6052 eval $cacheid=yes 6053else 6054 eval $cacheid=no 6055fi 6056rm -f core conftest.err conftest.$ac_objext \ 6057 conftest$ac_exeext conftest.$ac_ext 6058fi 6059 6060 6061 CFLAGS="$xorg_testset_save_CFLAGS" 6062 6063 eval supported=\$$cacheid 6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6065$as_echo "$supported" >&6; } 6066 if test "$supported" = "yes" ; then 6067 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement" 6068 found="yes" 6069 fi 6070 fi 6071 6072 6073 6074 6075 6076# This chunk adds additional warnings that could catch undesired effects. 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090xorg_testset_save_CFLAGS="$CFLAGS" 6091 6092if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6093 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6095$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6096if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6097 $as_echo_n "(cached) " >&6 6098else 6099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6100/* end confdefs.h. */ 6101int i; 6102_ACEOF 6103if ac_fn_c_try_compile "$LINENO"; then : 6104 xorg_cv_cc_flag_unknown_warning_option=yes 6105else 6106 xorg_cv_cc_flag_unknown_warning_option=no 6107fi 6108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6109fi 6110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6111$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6112 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6113 CFLAGS="$xorg_testset_save_CFLAGS" 6114fi 6115 6116if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6117 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6118 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6119 fi 6120 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6122$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6123if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6124 $as_echo_n "(cached) " >&6 6125else 6126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6127/* end confdefs.h. */ 6128int i; 6129_ACEOF 6130if ac_fn_c_try_compile "$LINENO"; then : 6131 xorg_cv_cc_flag_unused_command_line_argument=yes 6132else 6133 xorg_cv_cc_flag_unused_command_line_argument=no 6134fi 6135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6136fi 6137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6138$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6140 CFLAGS="$xorg_testset_save_CFLAGS" 6141fi 6142 6143found="no" 6144 6145 if test $found = "no" ; then 6146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6147 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6148 fi 6149 6150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6152 fi 6153 6154 CFLAGS="$CFLAGS -Wunused" 6155 6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5 6157$as_echo_n "checking if $CC supports -Wunused... " >&6; } 6158 cacheid=xorg_cv_cc_flag__Wunused 6159 if eval \${$cacheid+:} false; then : 6160 $as_echo_n "(cached) " >&6 6161else 6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6163/* end confdefs.h. */ 6164int i; 6165int 6166main () 6167{ 6168 6169 ; 6170 return 0; 6171} 6172_ACEOF 6173if ac_fn_c_try_link "$LINENO"; then : 6174 eval $cacheid=yes 6175else 6176 eval $cacheid=no 6177fi 6178rm -f core conftest.err conftest.$ac_objext \ 6179 conftest$ac_exeext conftest.$ac_ext 6180fi 6181 6182 6183 CFLAGS="$xorg_testset_save_CFLAGS" 6184 6185 eval supported=\$$cacheid 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6187$as_echo "$supported" >&6; } 6188 if test "$supported" = "yes" ; then 6189 BASE_CFLAGS="$BASE_CFLAGS -Wunused" 6190 found="yes" 6191 fi 6192 fi 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208xorg_testset_save_CFLAGS="$CFLAGS" 6209 6210if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6211 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6213$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6214if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6215 $as_echo_n "(cached) " >&6 6216else 6217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6218/* end confdefs.h. */ 6219int i; 6220_ACEOF 6221if ac_fn_c_try_compile "$LINENO"; then : 6222 xorg_cv_cc_flag_unknown_warning_option=yes 6223else 6224 xorg_cv_cc_flag_unknown_warning_option=no 6225fi 6226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6227fi 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6229$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6230 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6231 CFLAGS="$xorg_testset_save_CFLAGS" 6232fi 6233 6234if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6237 fi 6238 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6240$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6241if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6242 $as_echo_n "(cached) " >&6 6243else 6244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6245/* end confdefs.h. */ 6246int i; 6247_ACEOF 6248if ac_fn_c_try_compile "$LINENO"; then : 6249 xorg_cv_cc_flag_unused_command_line_argument=yes 6250else 6251 xorg_cv_cc_flag_unused_command_line_argument=no 6252fi 6253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6254fi 6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6256$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6257 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6258 CFLAGS="$xorg_testset_save_CFLAGS" 6259fi 6260 6261found="no" 6262 6263 if test $found = "no" ; then 6264 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6265 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6266 fi 6267 6268 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6270 fi 6271 6272 CFLAGS="$CFLAGS -Wuninitialized" 6273 6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5 6275$as_echo_n "checking if $CC supports -Wuninitialized... " >&6; } 6276 cacheid=xorg_cv_cc_flag__Wuninitialized 6277 if eval \${$cacheid+:} false; then : 6278 $as_echo_n "(cached) " >&6 6279else 6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6281/* end confdefs.h. */ 6282int i; 6283int 6284main () 6285{ 6286 6287 ; 6288 return 0; 6289} 6290_ACEOF 6291if ac_fn_c_try_link "$LINENO"; then : 6292 eval $cacheid=yes 6293else 6294 eval $cacheid=no 6295fi 6296rm -f core conftest.err conftest.$ac_objext \ 6297 conftest$ac_exeext conftest.$ac_ext 6298fi 6299 6300 6301 CFLAGS="$xorg_testset_save_CFLAGS" 6302 6303 eval supported=\$$cacheid 6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6305$as_echo "$supported" >&6; } 6306 if test "$supported" = "yes" ; then 6307 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized" 6308 found="yes" 6309 fi 6310 fi 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326xorg_testset_save_CFLAGS="$CFLAGS" 6327 6328if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6329 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6331$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6332if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6333 $as_echo_n "(cached) " >&6 6334else 6335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336/* end confdefs.h. */ 6337int i; 6338_ACEOF 6339if ac_fn_c_try_compile "$LINENO"; then : 6340 xorg_cv_cc_flag_unknown_warning_option=yes 6341else 6342 xorg_cv_cc_flag_unknown_warning_option=no 6343fi 6344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6345fi 6346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6347$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6348 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6349 CFLAGS="$xorg_testset_save_CFLAGS" 6350fi 6351 6352if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6355 fi 6356 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6358$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6359if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6360 $as_echo_n "(cached) " >&6 6361else 6362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6363/* end confdefs.h. */ 6364int i; 6365_ACEOF 6366if ac_fn_c_try_compile "$LINENO"; then : 6367 xorg_cv_cc_flag_unused_command_line_argument=yes 6368else 6369 xorg_cv_cc_flag_unused_command_line_argument=no 6370fi 6371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6372fi 6373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6374$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6375 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6376 CFLAGS="$xorg_testset_save_CFLAGS" 6377fi 6378 6379found="no" 6380 6381 if test $found = "no" ; then 6382 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6383 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6384 fi 6385 6386 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6388 fi 6389 6390 CFLAGS="$CFLAGS -Wshadow" 6391 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5 6393$as_echo_n "checking if $CC supports -Wshadow... " >&6; } 6394 cacheid=xorg_cv_cc_flag__Wshadow 6395 if eval \${$cacheid+:} false; then : 6396 $as_echo_n "(cached) " >&6 6397else 6398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6399/* end confdefs.h. */ 6400int i; 6401int 6402main () 6403{ 6404 6405 ; 6406 return 0; 6407} 6408_ACEOF 6409if ac_fn_c_try_link "$LINENO"; then : 6410 eval $cacheid=yes 6411else 6412 eval $cacheid=no 6413fi 6414rm -f core conftest.err conftest.$ac_objext \ 6415 conftest$ac_exeext conftest.$ac_ext 6416fi 6417 6418 6419 CFLAGS="$xorg_testset_save_CFLAGS" 6420 6421 eval supported=\$$cacheid 6422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6423$as_echo "$supported" >&6; } 6424 if test "$supported" = "yes" ; then 6425 BASE_CFLAGS="$BASE_CFLAGS -Wshadow" 6426 found="yes" 6427 fi 6428 fi 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444xorg_testset_save_CFLAGS="$CFLAGS" 6445 6446if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6447 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6449$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6450if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6451 $as_echo_n "(cached) " >&6 6452else 6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6454/* end confdefs.h. */ 6455int i; 6456_ACEOF 6457if ac_fn_c_try_compile "$LINENO"; then : 6458 xorg_cv_cc_flag_unknown_warning_option=yes 6459else 6460 xorg_cv_cc_flag_unknown_warning_option=no 6461fi 6462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6463fi 6464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6465$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6467 CFLAGS="$xorg_testset_save_CFLAGS" 6468fi 6469 6470if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6472 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6473 fi 6474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6476$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6477if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6478 $as_echo_n "(cached) " >&6 6479else 6480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6481/* end confdefs.h. */ 6482int i; 6483_ACEOF 6484if ac_fn_c_try_compile "$LINENO"; then : 6485 xorg_cv_cc_flag_unused_command_line_argument=yes 6486else 6487 xorg_cv_cc_flag_unused_command_line_argument=no 6488fi 6489rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6490fi 6491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6492$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6493 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6494 CFLAGS="$xorg_testset_save_CFLAGS" 6495fi 6496 6497found="no" 6498 6499 if test $found = "no" ; then 6500 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6501 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6502 fi 6503 6504 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6506 fi 6507 6508 CFLAGS="$CFLAGS -Wmissing-noreturn" 6509 6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5 6511$as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; } 6512 cacheid=xorg_cv_cc_flag__Wmissing_noreturn 6513 if eval \${$cacheid+:} false; then : 6514 $as_echo_n "(cached) " >&6 6515else 6516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6517/* end confdefs.h. */ 6518int i; 6519int 6520main () 6521{ 6522 6523 ; 6524 return 0; 6525} 6526_ACEOF 6527if ac_fn_c_try_link "$LINENO"; then : 6528 eval $cacheid=yes 6529else 6530 eval $cacheid=no 6531fi 6532rm -f core conftest.err conftest.$ac_objext \ 6533 conftest$ac_exeext conftest.$ac_ext 6534fi 6535 6536 6537 CFLAGS="$xorg_testset_save_CFLAGS" 6538 6539 eval supported=\$$cacheid 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6541$as_echo "$supported" >&6; } 6542 if test "$supported" = "yes" ; then 6543 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn" 6544 found="yes" 6545 fi 6546 fi 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562xorg_testset_save_CFLAGS="$CFLAGS" 6563 6564if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6565 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6567$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6568if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6572/* end confdefs.h. */ 6573int i; 6574_ACEOF 6575if ac_fn_c_try_compile "$LINENO"; then : 6576 xorg_cv_cc_flag_unknown_warning_option=yes 6577else 6578 xorg_cv_cc_flag_unknown_warning_option=no 6579fi 6580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6581fi 6582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6583$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6584 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6585 CFLAGS="$xorg_testset_save_CFLAGS" 6586fi 6587 6588if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6589 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6590 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6591 fi 6592 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6594$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6595if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6596 $as_echo_n "(cached) " >&6 6597else 6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6599/* end confdefs.h. */ 6600int i; 6601_ACEOF 6602if ac_fn_c_try_compile "$LINENO"; then : 6603 xorg_cv_cc_flag_unused_command_line_argument=yes 6604else 6605 xorg_cv_cc_flag_unused_command_line_argument=no 6606fi 6607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6608fi 6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6610$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6611 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6612 CFLAGS="$xorg_testset_save_CFLAGS" 6613fi 6614 6615found="no" 6616 6617 if test $found = "no" ; then 6618 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6619 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6620 fi 6621 6622 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6624 fi 6625 6626 CFLAGS="$CFLAGS -Wmissing-format-attribute" 6627 6628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5 6629$as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; } 6630 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute 6631 if eval \${$cacheid+:} false; then : 6632 $as_echo_n "(cached) " >&6 6633else 6634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6635/* end confdefs.h. */ 6636int i; 6637int 6638main () 6639{ 6640 6641 ; 6642 return 0; 6643} 6644_ACEOF 6645if ac_fn_c_try_link "$LINENO"; then : 6646 eval $cacheid=yes 6647else 6648 eval $cacheid=no 6649fi 6650rm -f core conftest.err conftest.$ac_objext \ 6651 conftest$ac_exeext conftest.$ac_ext 6652fi 6653 6654 6655 CFLAGS="$xorg_testset_save_CFLAGS" 6656 6657 eval supported=\$$cacheid 6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6659$as_echo "$supported" >&6; } 6660 if test "$supported" = "yes" ; then 6661 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute" 6662 found="yes" 6663 fi 6664 fi 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680xorg_testset_save_CFLAGS="$CFLAGS" 6681 6682if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6683 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6685$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6686if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6690/* end confdefs.h. */ 6691int i; 6692_ACEOF 6693if ac_fn_c_try_compile "$LINENO"; then : 6694 xorg_cv_cc_flag_unknown_warning_option=yes 6695else 6696 xorg_cv_cc_flag_unknown_warning_option=no 6697fi 6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6699fi 6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6701$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6702 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6703 CFLAGS="$xorg_testset_save_CFLAGS" 6704fi 6705 6706if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6707 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6708 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6709 fi 6710 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6712$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6713if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6714 $as_echo_n "(cached) " >&6 6715else 6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6717/* end confdefs.h. */ 6718int i; 6719_ACEOF 6720if ac_fn_c_try_compile "$LINENO"; then : 6721 xorg_cv_cc_flag_unused_command_line_argument=yes 6722else 6723 xorg_cv_cc_flag_unused_command_line_argument=no 6724fi 6725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6726fi 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6728$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6729 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6730 CFLAGS="$xorg_testset_save_CFLAGS" 6731fi 6732 6733found="no" 6734 6735 if test $found = "no" ; then 6736 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6737 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6738 fi 6739 6740 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6742 fi 6743 6744 CFLAGS="$CFLAGS -Wredundant-decls" 6745 6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5 6747$as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; } 6748 cacheid=xorg_cv_cc_flag__Wredundant_decls 6749 if eval \${$cacheid+:} false; then : 6750 $as_echo_n "(cached) " >&6 6751else 6752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6753/* end confdefs.h. */ 6754int i; 6755int 6756main () 6757{ 6758 6759 ; 6760 return 0; 6761} 6762_ACEOF 6763if ac_fn_c_try_link "$LINENO"; then : 6764 eval $cacheid=yes 6765else 6766 eval $cacheid=no 6767fi 6768rm -f core conftest.err conftest.$ac_objext \ 6769 conftest$ac_exeext conftest.$ac_ext 6770fi 6771 6772 6773 CFLAGS="$xorg_testset_save_CFLAGS" 6774 6775 eval supported=\$$cacheid 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6777$as_echo "$supported" >&6; } 6778 if test "$supported" = "yes" ; then 6779 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls" 6780 found="yes" 6781 fi 6782 fi 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798xorg_testset_save_CFLAGS="$CFLAGS" 6799 6800if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6801 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6803$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6804if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6805 $as_echo_n "(cached) " >&6 6806else 6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6808/* end confdefs.h. */ 6809int i; 6810_ACEOF 6811if ac_fn_c_try_compile "$LINENO"; then : 6812 xorg_cv_cc_flag_unknown_warning_option=yes 6813else 6814 xorg_cv_cc_flag_unknown_warning_option=no 6815fi 6816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6817fi 6818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6819$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6820 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6821 CFLAGS="$xorg_testset_save_CFLAGS" 6822fi 6823 6824if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6825 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6826 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6827 fi 6828 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6830$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6831if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6832 $as_echo_n "(cached) " >&6 6833else 6834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6835/* end confdefs.h. */ 6836int i; 6837_ACEOF 6838if ac_fn_c_try_compile "$LINENO"; then : 6839 xorg_cv_cc_flag_unused_command_line_argument=yes 6840else 6841 xorg_cv_cc_flag_unused_command_line_argument=no 6842fi 6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6844fi 6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6846$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6848 CFLAGS="$xorg_testset_save_CFLAGS" 6849fi 6850 6851found="no" 6852 6853 if test $found = "no" ; then 6854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6856 fi 6857 6858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6860 fi 6861 6862 CFLAGS="$CFLAGS -Wlogical-op" 6863 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5 6865$as_echo_n "checking if $CC supports -Wlogical-op... " >&6; } 6866 cacheid=xorg_cv_cc_flag__Wlogical_op 6867 if eval \${$cacheid+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869else 6870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6871/* end confdefs.h. */ 6872int i; 6873int 6874main () 6875{ 6876 6877 ; 6878 return 0; 6879} 6880_ACEOF 6881if ac_fn_c_try_link "$LINENO"; then : 6882 eval $cacheid=yes 6883else 6884 eval $cacheid=no 6885fi 6886rm -f core conftest.err conftest.$ac_objext \ 6887 conftest$ac_exeext conftest.$ac_ext 6888fi 6889 6890 6891 CFLAGS="$xorg_testset_save_CFLAGS" 6892 6893 eval supported=\$$cacheid 6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 6895$as_echo "$supported" >&6; } 6896 if test "$supported" = "yes" ; then 6897 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op" 6898 found="yes" 6899 fi 6900 fi 6901 6902 6903 6904# These are currently disabled because they are noisy. They will be enabled 6905# in the future once the codebase is sufficiently modernized to silence 6906# them. For now, I don't want them to drown out the other warnings. 6907# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses]) 6908# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align]) 6909# XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual]) 6910 6911# Turn some warnings into errors, so we don't accidently get successful builds 6912# when there are problems that should be fixed. 6913 6914if test "x$SELECTIVE_WERROR" = "xyes" ; then 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928xorg_testset_save_CFLAGS="$CFLAGS" 6929 6930if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 6931 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 6933$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 6934if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 6935 $as_echo_n "(cached) " >&6 6936else 6937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6938/* end confdefs.h. */ 6939int i; 6940_ACEOF 6941if ac_fn_c_try_compile "$LINENO"; then : 6942 xorg_cv_cc_flag_unknown_warning_option=yes 6943else 6944 xorg_cv_cc_flag_unknown_warning_option=no 6945fi 6946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6947fi 6948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 6949$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 6950 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 6951 CFLAGS="$xorg_testset_save_CFLAGS" 6952fi 6953 6954if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 6955 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6956 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6957 fi 6958 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 6960$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 6961if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 6962 $as_echo_n "(cached) " >&6 6963else 6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6965/* end confdefs.h. */ 6966int i; 6967_ACEOF 6968if ac_fn_c_try_compile "$LINENO"; then : 6969 xorg_cv_cc_flag_unused_command_line_argument=yes 6970else 6971 xorg_cv_cc_flag_unused_command_line_argument=no 6972fi 6973rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6974fi 6975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 6976$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 6977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 6978 CFLAGS="$xorg_testset_save_CFLAGS" 6979fi 6980 6981found="no" 6982 6983 if test $found = "no" ; then 6984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 6985 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 6986 fi 6987 6988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 6989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 6990 fi 6991 6992 CFLAGS="$CFLAGS -Werror=implicit" 6993 6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5 6995$as_echo_n "checking if $CC supports -Werror=implicit... " >&6; } 6996 cacheid=xorg_cv_cc_flag__Werror_implicit 6997 if eval \${$cacheid+:} false; then : 6998 $as_echo_n "(cached) " >&6 6999else 7000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7001/* end confdefs.h. */ 7002int i; 7003int 7004main () 7005{ 7006 7007 ; 7008 return 0; 7009} 7010_ACEOF 7011if ac_fn_c_try_link "$LINENO"; then : 7012 eval $cacheid=yes 7013else 7014 eval $cacheid=no 7015fi 7016rm -f core conftest.err conftest.$ac_objext \ 7017 conftest$ac_exeext conftest.$ac_ext 7018fi 7019 7020 7021 CFLAGS="$xorg_testset_save_CFLAGS" 7022 7023 eval supported=\$$cacheid 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7025$as_echo "$supported" >&6; } 7026 if test "$supported" = "yes" ; then 7027 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit" 7028 found="yes" 7029 fi 7030 fi 7031 7032 if test $found = "no" ; then 7033 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7034 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7035 fi 7036 7037 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7039 fi 7040 7041 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7042 7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5 7044$as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; } 7045 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED 7046 if eval \${$cacheid+:} false; then : 7047 $as_echo_n "(cached) " >&6 7048else 7049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7050/* end confdefs.h. */ 7051int i; 7052int 7053main () 7054{ 7055 7056 ; 7057 return 0; 7058} 7059_ACEOF 7060if ac_fn_c_try_link "$LINENO"; then : 7061 eval $cacheid=yes 7062else 7063 eval $cacheid=no 7064fi 7065rm -f core conftest.err conftest.$ac_objext \ 7066 conftest$ac_exeext conftest.$ac_ext 7067fi 7068 7069 7070 CFLAGS="$xorg_testset_save_CFLAGS" 7071 7072 eval supported=\$$cacheid 7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7074$as_echo "$supported" >&6; } 7075 if test "$supported" = "yes" ; then 7076 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" 7077 found="yes" 7078 fi 7079 fi 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7095xorg_testset_save_CFLAGS="$CFLAGS" 7096 7097if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7098 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7100$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7101if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7102 $as_echo_n "(cached) " >&6 7103else 7104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7105/* end confdefs.h. */ 7106int i; 7107_ACEOF 7108if ac_fn_c_try_compile "$LINENO"; then : 7109 xorg_cv_cc_flag_unknown_warning_option=yes 7110else 7111 xorg_cv_cc_flag_unknown_warning_option=no 7112fi 7113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7114fi 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7116$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7117 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7118 CFLAGS="$xorg_testset_save_CFLAGS" 7119fi 7120 7121if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7122 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7123 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7124 fi 7125 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7127$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7128if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7129 $as_echo_n "(cached) " >&6 7130else 7131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7132/* end confdefs.h. */ 7133int i; 7134_ACEOF 7135if ac_fn_c_try_compile "$LINENO"; then : 7136 xorg_cv_cc_flag_unused_command_line_argument=yes 7137else 7138 xorg_cv_cc_flag_unused_command_line_argument=no 7139fi 7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7141fi 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7143$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7144 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7145 CFLAGS="$xorg_testset_save_CFLAGS" 7146fi 7147 7148found="no" 7149 7150 if test $found = "no" ; then 7151 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7152 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7153 fi 7154 7155 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7157 fi 7158 7159 CFLAGS="$CFLAGS -Werror=nonnull" 7160 7161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5 7162$as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; } 7163 cacheid=xorg_cv_cc_flag__Werror_nonnull 7164 if eval \${$cacheid+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7168/* end confdefs.h. */ 7169int i; 7170int 7171main () 7172{ 7173 7174 ; 7175 return 0; 7176} 7177_ACEOF 7178if ac_fn_c_try_link "$LINENO"; then : 7179 eval $cacheid=yes 7180else 7181 eval $cacheid=no 7182fi 7183rm -f core conftest.err conftest.$ac_objext \ 7184 conftest$ac_exeext conftest.$ac_ext 7185fi 7186 7187 7188 CFLAGS="$xorg_testset_save_CFLAGS" 7189 7190 eval supported=\$$cacheid 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7192$as_echo "$supported" >&6; } 7193 if test "$supported" = "yes" ; then 7194 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull" 7195 found="yes" 7196 fi 7197 fi 7198 7199 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213xorg_testset_save_CFLAGS="$CFLAGS" 7214 7215if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7216 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7218$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7219if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7220 $as_echo_n "(cached) " >&6 7221else 7222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7223/* end confdefs.h. */ 7224int i; 7225_ACEOF 7226if ac_fn_c_try_compile "$LINENO"; then : 7227 xorg_cv_cc_flag_unknown_warning_option=yes 7228else 7229 xorg_cv_cc_flag_unknown_warning_option=no 7230fi 7231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7232fi 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7234$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7235 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7236 CFLAGS="$xorg_testset_save_CFLAGS" 7237fi 7238 7239if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7240 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7241 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7242 fi 7243 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7245$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7246if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7247 $as_echo_n "(cached) " >&6 7248else 7249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7250/* end confdefs.h. */ 7251int i; 7252_ACEOF 7253if ac_fn_c_try_compile "$LINENO"; then : 7254 xorg_cv_cc_flag_unused_command_line_argument=yes 7255else 7256 xorg_cv_cc_flag_unused_command_line_argument=no 7257fi 7258rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7259fi 7260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7261$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7262 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7263 CFLAGS="$xorg_testset_save_CFLAGS" 7264fi 7265 7266found="no" 7267 7268 if test $found = "no" ; then 7269 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7270 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7271 fi 7272 7273 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7274 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7275 fi 7276 7277 CFLAGS="$CFLAGS -Werror=init-self" 7278 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5 7280$as_echo_n "checking if $CC supports -Werror=init-self... " >&6; } 7281 cacheid=xorg_cv_cc_flag__Werror_init_self 7282 if eval \${$cacheid+:} false; then : 7283 $as_echo_n "(cached) " >&6 7284else 7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7286/* end confdefs.h. */ 7287int i; 7288int 7289main () 7290{ 7291 7292 ; 7293 return 0; 7294} 7295_ACEOF 7296if ac_fn_c_try_link "$LINENO"; then : 7297 eval $cacheid=yes 7298else 7299 eval $cacheid=no 7300fi 7301rm -f core conftest.err conftest.$ac_objext \ 7302 conftest$ac_exeext conftest.$ac_ext 7303fi 7304 7305 7306 CFLAGS="$xorg_testset_save_CFLAGS" 7307 7308 eval supported=\$$cacheid 7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7310$as_echo "$supported" >&6; } 7311 if test "$supported" = "yes" ; then 7312 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self" 7313 found="yes" 7314 fi 7315 fi 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331xorg_testset_save_CFLAGS="$CFLAGS" 7332 7333if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7334 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7336$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7337if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7338 $as_echo_n "(cached) " >&6 7339else 7340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7341/* end confdefs.h. */ 7342int i; 7343_ACEOF 7344if ac_fn_c_try_compile "$LINENO"; then : 7345 xorg_cv_cc_flag_unknown_warning_option=yes 7346else 7347 xorg_cv_cc_flag_unknown_warning_option=no 7348fi 7349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7350fi 7351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7352$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7353 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7354 CFLAGS="$xorg_testset_save_CFLAGS" 7355fi 7356 7357if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7358 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7359 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7360 fi 7361 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7363$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7364if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7368/* end confdefs.h. */ 7369int i; 7370_ACEOF 7371if ac_fn_c_try_compile "$LINENO"; then : 7372 xorg_cv_cc_flag_unused_command_line_argument=yes 7373else 7374 xorg_cv_cc_flag_unused_command_line_argument=no 7375fi 7376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7377fi 7378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7379$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7380 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7381 CFLAGS="$xorg_testset_save_CFLAGS" 7382fi 7383 7384found="no" 7385 7386 if test $found = "no" ; then 7387 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7388 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7389 fi 7390 7391 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7392 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7393 fi 7394 7395 CFLAGS="$CFLAGS -Werror=main" 7396 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5 7398$as_echo_n "checking if $CC supports -Werror=main... " >&6; } 7399 cacheid=xorg_cv_cc_flag__Werror_main 7400 if eval \${$cacheid+:} false; then : 7401 $as_echo_n "(cached) " >&6 7402else 7403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7404/* end confdefs.h. */ 7405int i; 7406int 7407main () 7408{ 7409 7410 ; 7411 return 0; 7412} 7413_ACEOF 7414if ac_fn_c_try_link "$LINENO"; then : 7415 eval $cacheid=yes 7416else 7417 eval $cacheid=no 7418fi 7419rm -f core conftest.err conftest.$ac_objext \ 7420 conftest$ac_exeext conftest.$ac_ext 7421fi 7422 7423 7424 CFLAGS="$xorg_testset_save_CFLAGS" 7425 7426 eval supported=\$$cacheid 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7428$as_echo "$supported" >&6; } 7429 if test "$supported" = "yes" ; then 7430 BASE_CFLAGS="$BASE_CFLAGS -Werror=main" 7431 found="yes" 7432 fi 7433 fi 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 7444 7445 7446 7447 7448 7449xorg_testset_save_CFLAGS="$CFLAGS" 7450 7451if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7452 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7454$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7455if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7456 $as_echo_n "(cached) " >&6 7457else 7458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7459/* end confdefs.h. */ 7460int i; 7461_ACEOF 7462if ac_fn_c_try_compile "$LINENO"; then : 7463 xorg_cv_cc_flag_unknown_warning_option=yes 7464else 7465 xorg_cv_cc_flag_unknown_warning_option=no 7466fi 7467rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7468fi 7469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7470$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7471 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7472 CFLAGS="$xorg_testset_save_CFLAGS" 7473fi 7474 7475if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7476 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7477 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7478 fi 7479 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7481$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7482if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7483 $as_echo_n "(cached) " >&6 7484else 7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7486/* end confdefs.h. */ 7487int i; 7488_ACEOF 7489if ac_fn_c_try_compile "$LINENO"; then : 7490 xorg_cv_cc_flag_unused_command_line_argument=yes 7491else 7492 xorg_cv_cc_flag_unused_command_line_argument=no 7493fi 7494rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7495fi 7496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7497$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7498 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7499 CFLAGS="$xorg_testset_save_CFLAGS" 7500fi 7501 7502found="no" 7503 7504 if test $found = "no" ; then 7505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7506 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7507 fi 7508 7509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7511 fi 7512 7513 CFLAGS="$CFLAGS -Werror=missing-braces" 7514 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5 7516$as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; } 7517 cacheid=xorg_cv_cc_flag__Werror_missing_braces 7518 if eval \${$cacheid+:} false; then : 7519 $as_echo_n "(cached) " >&6 7520else 7521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7522/* end confdefs.h. */ 7523int i; 7524int 7525main () 7526{ 7527 7528 ; 7529 return 0; 7530} 7531_ACEOF 7532if ac_fn_c_try_link "$LINENO"; then : 7533 eval $cacheid=yes 7534else 7535 eval $cacheid=no 7536fi 7537rm -f core conftest.err conftest.$ac_objext \ 7538 conftest$ac_exeext conftest.$ac_ext 7539fi 7540 7541 7542 CFLAGS="$xorg_testset_save_CFLAGS" 7543 7544 eval supported=\$$cacheid 7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7546$as_echo "$supported" >&6; } 7547 if test "$supported" = "yes" ; then 7548 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces" 7549 found="yes" 7550 fi 7551 fi 7552 7553 7554 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567xorg_testset_save_CFLAGS="$CFLAGS" 7568 7569if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7570 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7572$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7573if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7574 $as_echo_n "(cached) " >&6 7575else 7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7577/* end confdefs.h. */ 7578int i; 7579_ACEOF 7580if ac_fn_c_try_compile "$LINENO"; then : 7581 xorg_cv_cc_flag_unknown_warning_option=yes 7582else 7583 xorg_cv_cc_flag_unknown_warning_option=no 7584fi 7585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7586fi 7587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7588$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7589 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7590 CFLAGS="$xorg_testset_save_CFLAGS" 7591fi 7592 7593if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7595 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7596 fi 7597 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7599$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7600if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7601 $as_echo_n "(cached) " >&6 7602else 7603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7604/* end confdefs.h. */ 7605int i; 7606_ACEOF 7607if ac_fn_c_try_compile "$LINENO"; then : 7608 xorg_cv_cc_flag_unused_command_line_argument=yes 7609else 7610 xorg_cv_cc_flag_unused_command_line_argument=no 7611fi 7612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7613fi 7614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7615$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7616 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7617 CFLAGS="$xorg_testset_save_CFLAGS" 7618fi 7619 7620found="no" 7621 7622 if test $found = "no" ; then 7623 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7624 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7625 fi 7626 7627 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7628 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7629 fi 7630 7631 CFLAGS="$CFLAGS -Werror=sequence-point" 7632 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5 7634$as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; } 7635 cacheid=xorg_cv_cc_flag__Werror_sequence_point 7636 if eval \${$cacheid+:} false; then : 7637 $as_echo_n "(cached) " >&6 7638else 7639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7640/* end confdefs.h. */ 7641int i; 7642int 7643main () 7644{ 7645 7646 ; 7647 return 0; 7648} 7649_ACEOF 7650if ac_fn_c_try_link "$LINENO"; then : 7651 eval $cacheid=yes 7652else 7653 eval $cacheid=no 7654fi 7655rm -f core conftest.err conftest.$ac_objext \ 7656 conftest$ac_exeext conftest.$ac_ext 7657fi 7658 7659 7660 CFLAGS="$xorg_testset_save_CFLAGS" 7661 7662 eval supported=\$$cacheid 7663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7664$as_echo "$supported" >&6; } 7665 if test "$supported" = "yes" ; then 7666 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point" 7667 found="yes" 7668 fi 7669 fi 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 7683 7684 7685xorg_testset_save_CFLAGS="$CFLAGS" 7686 7687if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7688 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7690$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7691if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7692 $as_echo_n "(cached) " >&6 7693else 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7695/* end confdefs.h. */ 7696int i; 7697_ACEOF 7698if ac_fn_c_try_compile "$LINENO"; then : 7699 xorg_cv_cc_flag_unknown_warning_option=yes 7700else 7701 xorg_cv_cc_flag_unknown_warning_option=no 7702fi 7703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7704fi 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7706$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7707 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7708 CFLAGS="$xorg_testset_save_CFLAGS" 7709fi 7710 7711if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7712 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7713 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7714 fi 7715 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7717$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7718if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7719 $as_echo_n "(cached) " >&6 7720else 7721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7722/* end confdefs.h. */ 7723int i; 7724_ACEOF 7725if ac_fn_c_try_compile "$LINENO"; then : 7726 xorg_cv_cc_flag_unused_command_line_argument=yes 7727else 7728 xorg_cv_cc_flag_unused_command_line_argument=no 7729fi 7730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7731fi 7732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7733$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7734 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7735 CFLAGS="$xorg_testset_save_CFLAGS" 7736fi 7737 7738found="no" 7739 7740 if test $found = "no" ; then 7741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7742 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7743 fi 7744 7745 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7746 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7747 fi 7748 7749 CFLAGS="$CFLAGS -Werror=return-type" 7750 7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5 7752$as_echo_n "checking if $CC supports -Werror=return-type... " >&6; } 7753 cacheid=xorg_cv_cc_flag__Werror_return_type 7754 if eval \${$cacheid+:} false; then : 7755 $as_echo_n "(cached) " >&6 7756else 7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7758/* end confdefs.h. */ 7759int i; 7760int 7761main () 7762{ 7763 7764 ; 7765 return 0; 7766} 7767_ACEOF 7768if ac_fn_c_try_link "$LINENO"; then : 7769 eval $cacheid=yes 7770else 7771 eval $cacheid=no 7772fi 7773rm -f core conftest.err conftest.$ac_objext \ 7774 conftest$ac_exeext conftest.$ac_ext 7775fi 7776 7777 7778 CFLAGS="$xorg_testset_save_CFLAGS" 7779 7780 eval supported=\$$cacheid 7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7782$as_echo "$supported" >&6; } 7783 if test "$supported" = "yes" ; then 7784 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type" 7785 found="yes" 7786 fi 7787 fi 7788 7789 if test $found = "no" ; then 7790 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7791 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7792 fi 7793 7794 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7795 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7796 fi 7797 7798 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7799 7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5 7801$as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; } 7802 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT 7803 if eval \${$cacheid+:} false; then : 7804 $as_echo_n "(cached) " >&6 7805else 7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7807/* end confdefs.h. */ 7808int i; 7809int 7810main () 7811{ 7812 7813 ; 7814 return 0; 7815} 7816_ACEOF 7817if ac_fn_c_try_link "$LINENO"; then : 7818 eval $cacheid=yes 7819else 7820 eval $cacheid=no 7821fi 7822rm -f core conftest.err conftest.$ac_objext \ 7823 conftest$ac_exeext conftest.$ac_ext 7824fi 7825 7826 7827 CFLAGS="$xorg_testset_save_CFLAGS" 7828 7829 eval supported=\$$cacheid 7830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7831$as_echo "$supported" >&6; } 7832 if test "$supported" = "yes" ; then 7833 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT" 7834 found="yes" 7835 fi 7836 fi 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852xorg_testset_save_CFLAGS="$CFLAGS" 7853 7854if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7855 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7857$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7858if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7859 $as_echo_n "(cached) " >&6 7860else 7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7862/* end confdefs.h. */ 7863int i; 7864_ACEOF 7865if ac_fn_c_try_compile "$LINENO"; then : 7866 xorg_cv_cc_flag_unknown_warning_option=yes 7867else 7868 xorg_cv_cc_flag_unknown_warning_option=no 7869fi 7870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7871fi 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7873$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7874 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7875 CFLAGS="$xorg_testset_save_CFLAGS" 7876fi 7877 7878if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7879 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7880 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7881 fi 7882 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 7884$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 7885if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 7886 $as_echo_n "(cached) " >&6 7887else 7888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7889/* end confdefs.h. */ 7890int i; 7891_ACEOF 7892if ac_fn_c_try_compile "$LINENO"; then : 7893 xorg_cv_cc_flag_unused_command_line_argument=yes 7894else 7895 xorg_cv_cc_flag_unused_command_line_argument=no 7896fi 7897rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7898fi 7899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 7900$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 7901 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 7902 CFLAGS="$xorg_testset_save_CFLAGS" 7903fi 7904 7905found="no" 7906 7907 if test $found = "no" ; then 7908 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7909 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7910 fi 7911 7912 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 7913 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 7914 fi 7915 7916 CFLAGS="$CFLAGS -Werror=trigraphs" 7917 7918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5 7919$as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; } 7920 cacheid=xorg_cv_cc_flag__Werror_trigraphs 7921 if eval \${$cacheid+:} false; then : 7922 $as_echo_n "(cached) " >&6 7923else 7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7925/* end confdefs.h. */ 7926int i; 7927int 7928main () 7929{ 7930 7931 ; 7932 return 0; 7933} 7934_ACEOF 7935if ac_fn_c_try_link "$LINENO"; then : 7936 eval $cacheid=yes 7937else 7938 eval $cacheid=no 7939fi 7940rm -f core conftest.err conftest.$ac_objext \ 7941 conftest$ac_exeext conftest.$ac_ext 7942fi 7943 7944 7945 CFLAGS="$xorg_testset_save_CFLAGS" 7946 7947 eval supported=\$$cacheid 7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 7949$as_echo "$supported" >&6; } 7950 if test "$supported" = "yes" ; then 7951 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs" 7952 found="yes" 7953 fi 7954 fi 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970xorg_testset_save_CFLAGS="$CFLAGS" 7971 7972if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 7973 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 7975$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 7976if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 7977 $as_echo_n "(cached) " >&6 7978else 7979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980/* end confdefs.h. */ 7981int i; 7982_ACEOF 7983if ac_fn_c_try_compile "$LINENO"; then : 7984 xorg_cv_cc_flag_unknown_warning_option=yes 7985else 7986 xorg_cv_cc_flag_unknown_warning_option=no 7987fi 7988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7989fi 7990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 7991$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 7992 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 7993 CFLAGS="$xorg_testset_save_CFLAGS" 7994fi 7995 7996if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 7997 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 7998 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 7999 fi 8000 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8002$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8003if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8004 $as_echo_n "(cached) " >&6 8005else 8006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8007/* end confdefs.h. */ 8008int i; 8009_ACEOF 8010if ac_fn_c_try_compile "$LINENO"; then : 8011 xorg_cv_cc_flag_unused_command_line_argument=yes 8012else 8013 xorg_cv_cc_flag_unused_command_line_argument=no 8014fi 8015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8016fi 8017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8018$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8019 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8020 CFLAGS="$xorg_testset_save_CFLAGS" 8021fi 8022 8023found="no" 8024 8025 if test $found = "no" ; then 8026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8027 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8028 fi 8029 8030 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8031 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8032 fi 8033 8034 CFLAGS="$CFLAGS -Werror=array-bounds" 8035 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5 8037$as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; } 8038 cacheid=xorg_cv_cc_flag__Werror_array_bounds 8039 if eval \${$cacheid+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8043/* end confdefs.h. */ 8044int i; 8045int 8046main () 8047{ 8048 8049 ; 8050 return 0; 8051} 8052_ACEOF 8053if ac_fn_c_try_link "$LINENO"; then : 8054 eval $cacheid=yes 8055else 8056 eval $cacheid=no 8057fi 8058rm -f core conftest.err conftest.$ac_objext \ 8059 conftest$ac_exeext conftest.$ac_ext 8060fi 8061 8062 8063 CFLAGS="$xorg_testset_save_CFLAGS" 8064 8065 eval supported=\$$cacheid 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8067$as_echo "$supported" >&6; } 8068 if test "$supported" = "yes" ; then 8069 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds" 8070 found="yes" 8071 fi 8072 fi 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088xorg_testset_save_CFLAGS="$CFLAGS" 8089 8090if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8091 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8093$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8094if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8095 $as_echo_n "(cached) " >&6 8096else 8097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8098/* end confdefs.h. */ 8099int i; 8100_ACEOF 8101if ac_fn_c_try_compile "$LINENO"; then : 8102 xorg_cv_cc_flag_unknown_warning_option=yes 8103else 8104 xorg_cv_cc_flag_unknown_warning_option=no 8105fi 8106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8107fi 8108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8109$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8111 CFLAGS="$xorg_testset_save_CFLAGS" 8112fi 8113 8114if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8116 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8117 fi 8118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8120$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8121if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8122 $as_echo_n "(cached) " >&6 8123else 8124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8125/* end confdefs.h. */ 8126int i; 8127_ACEOF 8128if ac_fn_c_try_compile "$LINENO"; then : 8129 xorg_cv_cc_flag_unused_command_line_argument=yes 8130else 8131 xorg_cv_cc_flag_unused_command_line_argument=no 8132fi 8133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8134fi 8135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8136$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8137 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8138 CFLAGS="$xorg_testset_save_CFLAGS" 8139fi 8140 8141found="no" 8142 8143 if test $found = "no" ; then 8144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8145 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8146 fi 8147 8148 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8149 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8150 fi 8151 8152 CFLAGS="$CFLAGS -Werror=write-strings" 8153 8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5 8155$as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; } 8156 cacheid=xorg_cv_cc_flag__Werror_write_strings 8157 if eval \${$cacheid+:} false; then : 8158 $as_echo_n "(cached) " >&6 8159else 8160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8161/* end confdefs.h. */ 8162int i; 8163int 8164main () 8165{ 8166 8167 ; 8168 return 0; 8169} 8170_ACEOF 8171if ac_fn_c_try_link "$LINENO"; then : 8172 eval $cacheid=yes 8173else 8174 eval $cacheid=no 8175fi 8176rm -f core conftest.err conftest.$ac_objext \ 8177 conftest$ac_exeext conftest.$ac_ext 8178fi 8179 8180 8181 CFLAGS="$xorg_testset_save_CFLAGS" 8182 8183 eval supported=\$$cacheid 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8185$as_echo "$supported" >&6; } 8186 if test "$supported" = "yes" ; then 8187 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings" 8188 found="yes" 8189 fi 8190 fi 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206xorg_testset_save_CFLAGS="$CFLAGS" 8207 8208if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8209 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8211$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8212if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8213 $as_echo_n "(cached) " >&6 8214else 8215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8216/* end confdefs.h. */ 8217int i; 8218_ACEOF 8219if ac_fn_c_try_compile "$LINENO"; then : 8220 xorg_cv_cc_flag_unknown_warning_option=yes 8221else 8222 xorg_cv_cc_flag_unknown_warning_option=no 8223fi 8224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8225fi 8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8227$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8228 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8229 CFLAGS="$xorg_testset_save_CFLAGS" 8230fi 8231 8232if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8233 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8234 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8235 fi 8236 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8238$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8239if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8243/* end confdefs.h. */ 8244int i; 8245_ACEOF 8246if ac_fn_c_try_compile "$LINENO"; then : 8247 xorg_cv_cc_flag_unused_command_line_argument=yes 8248else 8249 xorg_cv_cc_flag_unused_command_line_argument=no 8250fi 8251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8252fi 8253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8254$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8255 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8256 CFLAGS="$xorg_testset_save_CFLAGS" 8257fi 8258 8259found="no" 8260 8261 if test $found = "no" ; then 8262 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8263 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8264 fi 8265 8266 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8267 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8268 fi 8269 8270 CFLAGS="$CFLAGS -Werror=address" 8271 8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5 8273$as_echo_n "checking if $CC supports -Werror=address... " >&6; } 8274 cacheid=xorg_cv_cc_flag__Werror_address 8275 if eval \${$cacheid+:} false; then : 8276 $as_echo_n "(cached) " >&6 8277else 8278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8279/* end confdefs.h. */ 8280int i; 8281int 8282main () 8283{ 8284 8285 ; 8286 return 0; 8287} 8288_ACEOF 8289if ac_fn_c_try_link "$LINENO"; then : 8290 eval $cacheid=yes 8291else 8292 eval $cacheid=no 8293fi 8294rm -f core conftest.err conftest.$ac_objext \ 8295 conftest$ac_exeext conftest.$ac_ext 8296fi 8297 8298 8299 CFLAGS="$xorg_testset_save_CFLAGS" 8300 8301 eval supported=\$$cacheid 8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8303$as_echo "$supported" >&6; } 8304 if test "$supported" = "yes" ; then 8305 BASE_CFLAGS="$BASE_CFLAGS -Werror=address" 8306 found="yes" 8307 fi 8308 fi 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324xorg_testset_save_CFLAGS="$CFLAGS" 8325 8326if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8327 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8329$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8330if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8331 $as_echo_n "(cached) " >&6 8332else 8333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8334/* end confdefs.h. */ 8335int i; 8336_ACEOF 8337if ac_fn_c_try_compile "$LINENO"; then : 8338 xorg_cv_cc_flag_unknown_warning_option=yes 8339else 8340 xorg_cv_cc_flag_unknown_warning_option=no 8341fi 8342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8343fi 8344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8345$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8346 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8347 CFLAGS="$xorg_testset_save_CFLAGS" 8348fi 8349 8350if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8351 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8352 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8353 fi 8354 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8356$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8357if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8358 $as_echo_n "(cached) " >&6 8359else 8360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8361/* end confdefs.h. */ 8362int i; 8363_ACEOF 8364if ac_fn_c_try_compile "$LINENO"; then : 8365 xorg_cv_cc_flag_unused_command_line_argument=yes 8366else 8367 xorg_cv_cc_flag_unused_command_line_argument=no 8368fi 8369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8370fi 8371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8372$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8373 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8374 CFLAGS="$xorg_testset_save_CFLAGS" 8375fi 8376 8377found="no" 8378 8379 if test $found = "no" ; then 8380 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8381 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8382 fi 8383 8384 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8385 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8386 fi 8387 8388 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast" 8389 8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5 8391$as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; } 8392 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast 8393 if eval \${$cacheid+:} false; then : 8394 $as_echo_n "(cached) " >&6 8395else 8396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8397/* end confdefs.h. */ 8398int i; 8399int 8400main () 8401{ 8402 8403 ; 8404 return 0; 8405} 8406_ACEOF 8407if ac_fn_c_try_link "$LINENO"; then : 8408 eval $cacheid=yes 8409else 8410 eval $cacheid=no 8411fi 8412rm -f core conftest.err conftest.$ac_objext \ 8413 conftest$ac_exeext conftest.$ac_ext 8414fi 8415 8416 8417 CFLAGS="$xorg_testset_save_CFLAGS" 8418 8419 eval supported=\$$cacheid 8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8421$as_echo "$supported" >&6; } 8422 if test "$supported" = "yes" ; then 8423 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast" 8424 found="yes" 8425 fi 8426 fi 8427 8428 if test $found = "no" ; then 8429 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8430 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8431 fi 8432 8433 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8435 fi 8436 8437 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8438 8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5 8440$as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; } 8441 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION 8442 if eval \${$cacheid+:} false; then : 8443 $as_echo_n "(cached) " >&6 8444else 8445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8446/* end confdefs.h. */ 8447int i; 8448int 8449main () 8450{ 8451 8452 ; 8453 return 0; 8454} 8455_ACEOF 8456if ac_fn_c_try_link "$LINENO"; then : 8457 eval $cacheid=yes 8458else 8459 eval $cacheid=no 8460fi 8461rm -f core conftest.err conftest.$ac_objext \ 8462 conftest$ac_exeext conftest.$ac_ext 8463fi 8464 8465 8466 CFLAGS="$xorg_testset_save_CFLAGS" 8467 8468 eval supported=\$$cacheid 8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8470$as_echo "$supported" >&6; } 8471 if test "$supported" = "yes" ; then 8472 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION" 8473 found="yes" 8474 fi 8475 fi 8476 8477 8478 8479 8480 8481 8482 8483 8484 8485 8486 8487 8488 8489 8490 8491xorg_testset_save_CFLAGS="$CFLAGS" 8492 8493if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8494 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8496$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8497if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8501/* end confdefs.h. */ 8502int i; 8503_ACEOF 8504if ac_fn_c_try_compile "$LINENO"; then : 8505 xorg_cv_cc_flag_unknown_warning_option=yes 8506else 8507 xorg_cv_cc_flag_unknown_warning_option=no 8508fi 8509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8510fi 8511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8512$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8513 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8514 CFLAGS="$xorg_testset_save_CFLAGS" 8515fi 8516 8517if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8518 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8519 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8520 fi 8521 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8523$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8524if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8525 $as_echo_n "(cached) " >&6 8526else 8527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8528/* end confdefs.h. */ 8529int i; 8530_ACEOF 8531if ac_fn_c_try_compile "$LINENO"; then : 8532 xorg_cv_cc_flag_unused_command_line_argument=yes 8533else 8534 xorg_cv_cc_flag_unused_command_line_argument=no 8535fi 8536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8537fi 8538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8539$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8540 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8541 CFLAGS="$xorg_testset_save_CFLAGS" 8542fi 8543 8544found="no" 8545 8546 if test $found = "no" ; then 8547 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8548 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8549 fi 8550 8551 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8552 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8553 fi 8554 8555 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast" 8556 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5 8558$as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; } 8559 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast 8560 if eval \${$cacheid+:} false; then : 8561 $as_echo_n "(cached) " >&6 8562else 8563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8564/* end confdefs.h. */ 8565int i; 8566int 8567main () 8568{ 8569 8570 ; 8571 return 0; 8572} 8573_ACEOF 8574if ac_fn_c_try_link "$LINENO"; then : 8575 eval $cacheid=yes 8576else 8577 eval $cacheid=no 8578fi 8579rm -f core conftest.err conftest.$ac_objext \ 8580 conftest$ac_exeext conftest.$ac_ext 8581fi 8582 8583 8584 CFLAGS="$xorg_testset_save_CFLAGS" 8585 8586 eval supported=\$$cacheid 8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8588$as_echo "$supported" >&6; } 8589 if test "$supported" = "yes" ; then 8590 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast" 8591 found="yes" 8592 fi 8593 fi 8594 8595 # Also -errwarn=E_BAD_PTR_INT_COMBINATION 8596else 8597{ $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 8598$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;} 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609 8610 8611 8612xorg_testset_save_CFLAGS="$CFLAGS" 8613 8614if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8615 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8617$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8618if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8619 $as_echo_n "(cached) " >&6 8620else 8621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8622/* end confdefs.h. */ 8623int i; 8624_ACEOF 8625if ac_fn_c_try_compile "$LINENO"; then : 8626 xorg_cv_cc_flag_unknown_warning_option=yes 8627else 8628 xorg_cv_cc_flag_unknown_warning_option=no 8629fi 8630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8631fi 8632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8633$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8634 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8635 CFLAGS="$xorg_testset_save_CFLAGS" 8636fi 8637 8638if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8639 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8640 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8641 fi 8642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8644$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8645if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8646 $as_echo_n "(cached) " >&6 8647else 8648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8649/* end confdefs.h. */ 8650int i; 8651_ACEOF 8652if ac_fn_c_try_compile "$LINENO"; then : 8653 xorg_cv_cc_flag_unused_command_line_argument=yes 8654else 8655 xorg_cv_cc_flag_unused_command_line_argument=no 8656fi 8657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8658fi 8659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8660$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8662 CFLAGS="$xorg_testset_save_CFLAGS" 8663fi 8664 8665found="no" 8666 8667 if test $found = "no" ; then 8668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8669 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8670 fi 8671 8672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8674 fi 8675 8676 CFLAGS="$CFLAGS -Wimplicit" 8677 8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5 8679$as_echo_n "checking if $CC supports -Wimplicit... " >&6; } 8680 cacheid=xorg_cv_cc_flag__Wimplicit 8681 if eval \${$cacheid+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8685/* end confdefs.h. */ 8686int i; 8687int 8688main () 8689{ 8690 8691 ; 8692 return 0; 8693} 8694_ACEOF 8695if ac_fn_c_try_link "$LINENO"; then : 8696 eval $cacheid=yes 8697else 8698 eval $cacheid=no 8699fi 8700rm -f core conftest.err conftest.$ac_objext \ 8701 conftest$ac_exeext conftest.$ac_ext 8702fi 8703 8704 8705 CFLAGS="$xorg_testset_save_CFLAGS" 8706 8707 eval supported=\$$cacheid 8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8709$as_echo "$supported" >&6; } 8710 if test "$supported" = "yes" ; then 8711 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit" 8712 found="yes" 8713 fi 8714 fi 8715 8716 8717 8718 8719 8720 8721 8722 8723 8724 8725 8726 8727 8728 8729 8730xorg_testset_save_CFLAGS="$CFLAGS" 8731 8732if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8733 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8735$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8736if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8737 $as_echo_n "(cached) " >&6 8738else 8739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8740/* end confdefs.h. */ 8741int i; 8742_ACEOF 8743if ac_fn_c_try_compile "$LINENO"; then : 8744 xorg_cv_cc_flag_unknown_warning_option=yes 8745else 8746 xorg_cv_cc_flag_unknown_warning_option=no 8747fi 8748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8749fi 8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8751$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8752 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8753 CFLAGS="$xorg_testset_save_CFLAGS" 8754fi 8755 8756if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8758 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8759 fi 8760 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8762$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8763if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8764 $as_echo_n "(cached) " >&6 8765else 8766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8767/* end confdefs.h. */ 8768int i; 8769_ACEOF 8770if ac_fn_c_try_compile "$LINENO"; then : 8771 xorg_cv_cc_flag_unused_command_line_argument=yes 8772else 8773 xorg_cv_cc_flag_unused_command_line_argument=no 8774fi 8775rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8776fi 8777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8778$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8779 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8780 CFLAGS="$xorg_testset_save_CFLAGS" 8781fi 8782 8783found="no" 8784 8785 if test $found = "no" ; then 8786 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8787 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8788 fi 8789 8790 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8791 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8792 fi 8793 8794 CFLAGS="$CFLAGS -Wnonnull" 8795 8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5 8797$as_echo_n "checking if $CC supports -Wnonnull... " >&6; } 8798 cacheid=xorg_cv_cc_flag__Wnonnull 8799 if eval \${$cacheid+:} false; then : 8800 $as_echo_n "(cached) " >&6 8801else 8802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8803/* end confdefs.h. */ 8804int i; 8805int 8806main () 8807{ 8808 8809 ; 8810 return 0; 8811} 8812_ACEOF 8813if ac_fn_c_try_link "$LINENO"; then : 8814 eval $cacheid=yes 8815else 8816 eval $cacheid=no 8817fi 8818rm -f core conftest.err conftest.$ac_objext \ 8819 conftest$ac_exeext conftest.$ac_ext 8820fi 8821 8822 8823 CFLAGS="$xorg_testset_save_CFLAGS" 8824 8825 eval supported=\$$cacheid 8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8827$as_echo "$supported" >&6; } 8828 if test "$supported" = "yes" ; then 8829 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull" 8830 found="yes" 8831 fi 8832 fi 8833 8834 8835 8836 8837 8838 8839 8840 8841 8842 8843 8844 8845 8846 8847 8848xorg_testset_save_CFLAGS="$CFLAGS" 8849 8850if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8851 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8853$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8854if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8855 $as_echo_n "(cached) " >&6 8856else 8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8858/* end confdefs.h. */ 8859int i; 8860_ACEOF 8861if ac_fn_c_try_compile "$LINENO"; then : 8862 xorg_cv_cc_flag_unknown_warning_option=yes 8863else 8864 xorg_cv_cc_flag_unknown_warning_option=no 8865fi 8866rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8867fi 8868{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8869$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8870 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8871 CFLAGS="$xorg_testset_save_CFLAGS" 8872fi 8873 8874if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8876 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8877 fi 8878 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8880$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8881if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 8882 $as_echo_n "(cached) " >&6 8883else 8884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8885/* end confdefs.h. */ 8886int i; 8887_ACEOF 8888if ac_fn_c_try_compile "$LINENO"; then : 8889 xorg_cv_cc_flag_unused_command_line_argument=yes 8890else 8891 xorg_cv_cc_flag_unused_command_line_argument=no 8892fi 8893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8894fi 8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 8896$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 8897 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 8898 CFLAGS="$xorg_testset_save_CFLAGS" 8899fi 8900 8901found="no" 8902 8903 if test $found = "no" ; then 8904 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8905 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8906 fi 8907 8908 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 8909 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8910 fi 8911 8912 CFLAGS="$CFLAGS -Winit-self" 8913 8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5 8915$as_echo_n "checking if $CC supports -Winit-self... " >&6; } 8916 cacheid=xorg_cv_cc_flag__Winit_self 8917 if eval \${$cacheid+:} false; then : 8918 $as_echo_n "(cached) " >&6 8919else 8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8921/* end confdefs.h. */ 8922int i; 8923int 8924main () 8925{ 8926 8927 ; 8928 return 0; 8929} 8930_ACEOF 8931if ac_fn_c_try_link "$LINENO"; then : 8932 eval $cacheid=yes 8933else 8934 eval $cacheid=no 8935fi 8936rm -f core conftest.err conftest.$ac_objext \ 8937 conftest$ac_exeext conftest.$ac_ext 8938fi 8939 8940 8941 CFLAGS="$xorg_testset_save_CFLAGS" 8942 8943 eval supported=\$$cacheid 8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 8945$as_echo "$supported" >&6; } 8946 if test "$supported" = "yes" ; then 8947 BASE_CFLAGS="$BASE_CFLAGS -Winit-self" 8948 found="yes" 8949 fi 8950 fi 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966xorg_testset_save_CFLAGS="$CFLAGS" 8967 8968if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 8969 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 8971$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 8972if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 8973 $as_echo_n "(cached) " >&6 8974else 8975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8976/* end confdefs.h. */ 8977int i; 8978_ACEOF 8979if ac_fn_c_try_compile "$LINENO"; then : 8980 xorg_cv_cc_flag_unknown_warning_option=yes 8981else 8982 xorg_cv_cc_flag_unknown_warning_option=no 8983fi 8984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8985fi 8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 8987$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 8988 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 8989 CFLAGS="$xorg_testset_save_CFLAGS" 8990fi 8991 8992if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 8993 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 8994 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 8995 fi 8996 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 8998$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 8999if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9000 $as_echo_n "(cached) " >&6 9001else 9002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9003/* end confdefs.h. */ 9004int i; 9005_ACEOF 9006if ac_fn_c_try_compile "$LINENO"; then : 9007 xorg_cv_cc_flag_unused_command_line_argument=yes 9008else 9009 xorg_cv_cc_flag_unused_command_line_argument=no 9010fi 9011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9012fi 9013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9014$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9015 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9016 CFLAGS="$xorg_testset_save_CFLAGS" 9017fi 9018 9019found="no" 9020 9021 if test $found = "no" ; then 9022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9023 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9024 fi 9025 9026 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9027 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9028 fi 9029 9030 CFLAGS="$CFLAGS -Wmain" 9031 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5 9033$as_echo_n "checking if $CC supports -Wmain... " >&6; } 9034 cacheid=xorg_cv_cc_flag__Wmain 9035 if eval \${$cacheid+:} false; then : 9036 $as_echo_n "(cached) " >&6 9037else 9038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9039/* end confdefs.h. */ 9040int i; 9041int 9042main () 9043{ 9044 9045 ; 9046 return 0; 9047} 9048_ACEOF 9049if ac_fn_c_try_link "$LINENO"; then : 9050 eval $cacheid=yes 9051else 9052 eval $cacheid=no 9053fi 9054rm -f core conftest.err conftest.$ac_objext \ 9055 conftest$ac_exeext conftest.$ac_ext 9056fi 9057 9058 9059 CFLAGS="$xorg_testset_save_CFLAGS" 9060 9061 eval supported=\$$cacheid 9062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9063$as_echo "$supported" >&6; } 9064 if test "$supported" = "yes" ; then 9065 BASE_CFLAGS="$BASE_CFLAGS -Wmain" 9066 found="yes" 9067 fi 9068 fi 9069 9070 9071 9072 9073 9074 9075 9076 9077 9078 9079 9080 9081 9082 9083 9084xorg_testset_save_CFLAGS="$CFLAGS" 9085 9086if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9087 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9089$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9090if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9091 $as_echo_n "(cached) " >&6 9092else 9093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9094/* end confdefs.h. */ 9095int i; 9096_ACEOF 9097if ac_fn_c_try_compile "$LINENO"; then : 9098 xorg_cv_cc_flag_unknown_warning_option=yes 9099else 9100 xorg_cv_cc_flag_unknown_warning_option=no 9101fi 9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9103fi 9104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9105$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9106 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9107 CFLAGS="$xorg_testset_save_CFLAGS" 9108fi 9109 9110if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9111 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9112 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9113 fi 9114 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9116$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9117if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9118 $as_echo_n "(cached) " >&6 9119else 9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9121/* end confdefs.h. */ 9122int i; 9123_ACEOF 9124if ac_fn_c_try_compile "$LINENO"; then : 9125 xorg_cv_cc_flag_unused_command_line_argument=yes 9126else 9127 xorg_cv_cc_flag_unused_command_line_argument=no 9128fi 9129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9130fi 9131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9132$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9133 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9134 CFLAGS="$xorg_testset_save_CFLAGS" 9135fi 9136 9137found="no" 9138 9139 if test $found = "no" ; then 9140 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9141 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9142 fi 9143 9144 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9145 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9146 fi 9147 9148 CFLAGS="$CFLAGS -Wmissing-braces" 9149 9150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5 9151$as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; } 9152 cacheid=xorg_cv_cc_flag__Wmissing_braces 9153 if eval \${$cacheid+:} false; then : 9154 $as_echo_n "(cached) " >&6 9155else 9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9157/* end confdefs.h. */ 9158int i; 9159int 9160main () 9161{ 9162 9163 ; 9164 return 0; 9165} 9166_ACEOF 9167if ac_fn_c_try_link "$LINENO"; then : 9168 eval $cacheid=yes 9169else 9170 eval $cacheid=no 9171fi 9172rm -f core conftest.err conftest.$ac_objext \ 9173 conftest$ac_exeext conftest.$ac_ext 9174fi 9175 9176 9177 CFLAGS="$xorg_testset_save_CFLAGS" 9178 9179 eval supported=\$$cacheid 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9181$as_echo "$supported" >&6; } 9182 if test "$supported" = "yes" ; then 9183 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces" 9184 found="yes" 9185 fi 9186 fi 9187 9188 9189 9190 9191 9192 9193 9194 9195 9196 9197 9198 9199 9200 9201 9202xorg_testset_save_CFLAGS="$CFLAGS" 9203 9204if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9205 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9207$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9208if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9209 $as_echo_n "(cached) " >&6 9210else 9211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9212/* end confdefs.h. */ 9213int i; 9214_ACEOF 9215if ac_fn_c_try_compile "$LINENO"; then : 9216 xorg_cv_cc_flag_unknown_warning_option=yes 9217else 9218 xorg_cv_cc_flag_unknown_warning_option=no 9219fi 9220rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9221fi 9222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9223$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9224 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9225 CFLAGS="$xorg_testset_save_CFLAGS" 9226fi 9227 9228if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9229 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9230 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9231 fi 9232 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9234$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9235if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9236 $as_echo_n "(cached) " >&6 9237else 9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9239/* end confdefs.h. */ 9240int i; 9241_ACEOF 9242if ac_fn_c_try_compile "$LINENO"; then : 9243 xorg_cv_cc_flag_unused_command_line_argument=yes 9244else 9245 xorg_cv_cc_flag_unused_command_line_argument=no 9246fi 9247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9248fi 9249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9250$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9251 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9252 CFLAGS="$xorg_testset_save_CFLAGS" 9253fi 9254 9255found="no" 9256 9257 if test $found = "no" ; then 9258 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9259 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9260 fi 9261 9262 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9263 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9264 fi 9265 9266 CFLAGS="$CFLAGS -Wsequence-point" 9267 9268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5 9269$as_echo_n "checking if $CC supports -Wsequence-point... " >&6; } 9270 cacheid=xorg_cv_cc_flag__Wsequence_point 9271 if eval \${$cacheid+:} false; then : 9272 $as_echo_n "(cached) " >&6 9273else 9274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9275/* end confdefs.h. */ 9276int i; 9277int 9278main () 9279{ 9280 9281 ; 9282 return 0; 9283} 9284_ACEOF 9285if ac_fn_c_try_link "$LINENO"; then : 9286 eval $cacheid=yes 9287else 9288 eval $cacheid=no 9289fi 9290rm -f core conftest.err conftest.$ac_objext \ 9291 conftest$ac_exeext conftest.$ac_ext 9292fi 9293 9294 9295 CFLAGS="$xorg_testset_save_CFLAGS" 9296 9297 eval supported=\$$cacheid 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9299$as_echo "$supported" >&6; } 9300 if test "$supported" = "yes" ; then 9301 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point" 9302 found="yes" 9303 fi 9304 fi 9305 9306 9307 9308 9309 9310 9311 9312 9313 9314 9315 9316 9317 9318 9319 9320xorg_testset_save_CFLAGS="$CFLAGS" 9321 9322if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9323 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9325$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9326if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9327 $as_echo_n "(cached) " >&6 9328else 9329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9330/* end confdefs.h. */ 9331int i; 9332_ACEOF 9333if ac_fn_c_try_compile "$LINENO"; then : 9334 xorg_cv_cc_flag_unknown_warning_option=yes 9335else 9336 xorg_cv_cc_flag_unknown_warning_option=no 9337fi 9338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9339fi 9340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9341$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9342 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9343 CFLAGS="$xorg_testset_save_CFLAGS" 9344fi 9345 9346if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9347 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9348 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9349 fi 9350 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9352$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9353if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9354 $as_echo_n "(cached) " >&6 9355else 9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9357/* end confdefs.h. */ 9358int i; 9359_ACEOF 9360if ac_fn_c_try_compile "$LINENO"; then : 9361 xorg_cv_cc_flag_unused_command_line_argument=yes 9362else 9363 xorg_cv_cc_flag_unused_command_line_argument=no 9364fi 9365rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9366fi 9367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9368$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9369 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9370 CFLAGS="$xorg_testset_save_CFLAGS" 9371fi 9372 9373found="no" 9374 9375 if test $found = "no" ; then 9376 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9377 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9378 fi 9379 9380 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9382 fi 9383 9384 CFLAGS="$CFLAGS -Wreturn-type" 9385 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5 9387$as_echo_n "checking if $CC supports -Wreturn-type... " >&6; } 9388 cacheid=xorg_cv_cc_flag__Wreturn_type 9389 if eval \${$cacheid+:} false; then : 9390 $as_echo_n "(cached) " >&6 9391else 9392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9393/* end confdefs.h. */ 9394int i; 9395int 9396main () 9397{ 9398 9399 ; 9400 return 0; 9401} 9402_ACEOF 9403if ac_fn_c_try_link "$LINENO"; then : 9404 eval $cacheid=yes 9405else 9406 eval $cacheid=no 9407fi 9408rm -f core conftest.err conftest.$ac_objext \ 9409 conftest$ac_exeext conftest.$ac_ext 9410fi 9411 9412 9413 CFLAGS="$xorg_testset_save_CFLAGS" 9414 9415 eval supported=\$$cacheid 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9417$as_echo "$supported" >&6; } 9418 if test "$supported" = "yes" ; then 9419 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type" 9420 found="yes" 9421 fi 9422 fi 9423 9424 9425 9426 9427 9428 9429 9430 9431 9432 9433 9434 9435 9436 9437 9438xorg_testset_save_CFLAGS="$CFLAGS" 9439 9440if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9441 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9443$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9444if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9445 $as_echo_n "(cached) " >&6 9446else 9447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9448/* end confdefs.h. */ 9449int i; 9450_ACEOF 9451if ac_fn_c_try_compile "$LINENO"; then : 9452 xorg_cv_cc_flag_unknown_warning_option=yes 9453else 9454 xorg_cv_cc_flag_unknown_warning_option=no 9455fi 9456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9457fi 9458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9459$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9461 CFLAGS="$xorg_testset_save_CFLAGS" 9462fi 9463 9464if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9466 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9467 fi 9468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9470$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9471if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9472 $as_echo_n "(cached) " >&6 9473else 9474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9475/* end confdefs.h. */ 9476int i; 9477_ACEOF 9478if ac_fn_c_try_compile "$LINENO"; then : 9479 xorg_cv_cc_flag_unused_command_line_argument=yes 9480else 9481 xorg_cv_cc_flag_unused_command_line_argument=no 9482fi 9483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9484fi 9485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9486$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9487 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9488 CFLAGS="$xorg_testset_save_CFLAGS" 9489fi 9490 9491found="no" 9492 9493 if test $found = "no" ; then 9494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9496 fi 9497 9498 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9499 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9500 fi 9501 9502 CFLAGS="$CFLAGS -Wtrigraphs" 9503 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5 9505$as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; } 9506 cacheid=xorg_cv_cc_flag__Wtrigraphs 9507 if eval \${$cacheid+:} false; then : 9508 $as_echo_n "(cached) " >&6 9509else 9510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9511/* end confdefs.h. */ 9512int i; 9513int 9514main () 9515{ 9516 9517 ; 9518 return 0; 9519} 9520_ACEOF 9521if ac_fn_c_try_link "$LINENO"; then : 9522 eval $cacheid=yes 9523else 9524 eval $cacheid=no 9525fi 9526rm -f core conftest.err conftest.$ac_objext \ 9527 conftest$ac_exeext conftest.$ac_ext 9528fi 9529 9530 9531 CFLAGS="$xorg_testset_save_CFLAGS" 9532 9533 eval supported=\$$cacheid 9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9535$as_echo "$supported" >&6; } 9536 if test "$supported" = "yes" ; then 9537 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs" 9538 found="yes" 9539 fi 9540 fi 9541 9542 9543 9544 9545 9546 9547 9548 9549 9550 9551 9552 9553 9554 9555 9556xorg_testset_save_CFLAGS="$CFLAGS" 9557 9558if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9559 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9561$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9562if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9563 $as_echo_n "(cached) " >&6 9564else 9565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9566/* end confdefs.h. */ 9567int i; 9568_ACEOF 9569if ac_fn_c_try_compile "$LINENO"; then : 9570 xorg_cv_cc_flag_unknown_warning_option=yes 9571else 9572 xorg_cv_cc_flag_unknown_warning_option=no 9573fi 9574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9575fi 9576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9577$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9578 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9579 CFLAGS="$xorg_testset_save_CFLAGS" 9580fi 9581 9582if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9583 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9584 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9585 fi 9586 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9588$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9589if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9590 $as_echo_n "(cached) " >&6 9591else 9592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9593/* end confdefs.h. */ 9594int i; 9595_ACEOF 9596if ac_fn_c_try_compile "$LINENO"; then : 9597 xorg_cv_cc_flag_unused_command_line_argument=yes 9598else 9599 xorg_cv_cc_flag_unused_command_line_argument=no 9600fi 9601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9602fi 9603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9604$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9605 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9606 CFLAGS="$xorg_testset_save_CFLAGS" 9607fi 9608 9609found="no" 9610 9611 if test $found = "no" ; then 9612 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9613 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9614 fi 9615 9616 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9618 fi 9619 9620 CFLAGS="$CFLAGS -Warray-bounds" 9621 9622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5 9623$as_echo_n "checking if $CC supports -Warray-bounds... " >&6; } 9624 cacheid=xorg_cv_cc_flag__Warray_bounds 9625 if eval \${$cacheid+:} false; then : 9626 $as_echo_n "(cached) " >&6 9627else 9628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9629/* end confdefs.h. */ 9630int i; 9631int 9632main () 9633{ 9634 9635 ; 9636 return 0; 9637} 9638_ACEOF 9639if ac_fn_c_try_link "$LINENO"; then : 9640 eval $cacheid=yes 9641else 9642 eval $cacheid=no 9643fi 9644rm -f core conftest.err conftest.$ac_objext \ 9645 conftest$ac_exeext conftest.$ac_ext 9646fi 9647 9648 9649 CFLAGS="$xorg_testset_save_CFLAGS" 9650 9651 eval supported=\$$cacheid 9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9653$as_echo "$supported" >&6; } 9654 if test "$supported" = "yes" ; then 9655 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds" 9656 found="yes" 9657 fi 9658 fi 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674xorg_testset_save_CFLAGS="$CFLAGS" 9675 9676if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9677 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9679$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9680if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9681 $as_echo_n "(cached) " >&6 9682else 9683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9684/* end confdefs.h. */ 9685int i; 9686_ACEOF 9687if ac_fn_c_try_compile "$LINENO"; then : 9688 xorg_cv_cc_flag_unknown_warning_option=yes 9689else 9690 xorg_cv_cc_flag_unknown_warning_option=no 9691fi 9692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9693fi 9694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9695$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9696 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9697 CFLAGS="$xorg_testset_save_CFLAGS" 9698fi 9699 9700if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9701 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9702 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9703 fi 9704 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9706$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9707if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9708 $as_echo_n "(cached) " >&6 9709else 9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9711/* end confdefs.h. */ 9712int i; 9713_ACEOF 9714if ac_fn_c_try_compile "$LINENO"; then : 9715 xorg_cv_cc_flag_unused_command_line_argument=yes 9716else 9717 xorg_cv_cc_flag_unused_command_line_argument=no 9718fi 9719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9720fi 9721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9722$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9723 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9724 CFLAGS="$xorg_testset_save_CFLAGS" 9725fi 9726 9727found="no" 9728 9729 if test $found = "no" ; then 9730 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9731 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9732 fi 9733 9734 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9735 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9736 fi 9737 9738 CFLAGS="$CFLAGS -Wwrite-strings" 9739 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5 9741$as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; } 9742 cacheid=xorg_cv_cc_flag__Wwrite_strings 9743 if eval \${$cacheid+:} false; then : 9744 $as_echo_n "(cached) " >&6 9745else 9746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9747/* end confdefs.h. */ 9748int i; 9749int 9750main () 9751{ 9752 9753 ; 9754 return 0; 9755} 9756_ACEOF 9757if ac_fn_c_try_link "$LINENO"; then : 9758 eval $cacheid=yes 9759else 9760 eval $cacheid=no 9761fi 9762rm -f core conftest.err conftest.$ac_objext \ 9763 conftest$ac_exeext conftest.$ac_ext 9764fi 9765 9766 9767 CFLAGS="$xorg_testset_save_CFLAGS" 9768 9769 eval supported=\$$cacheid 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9771$as_echo "$supported" >&6; } 9772 if test "$supported" = "yes" ; then 9773 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings" 9774 found="yes" 9775 fi 9776 fi 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792xorg_testset_save_CFLAGS="$CFLAGS" 9793 9794if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9795 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9797$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9798if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9799 $as_echo_n "(cached) " >&6 9800else 9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9802/* end confdefs.h. */ 9803int i; 9804_ACEOF 9805if ac_fn_c_try_compile "$LINENO"; then : 9806 xorg_cv_cc_flag_unknown_warning_option=yes 9807else 9808 xorg_cv_cc_flag_unknown_warning_option=no 9809fi 9810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9811fi 9812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9813$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9814 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9815 CFLAGS="$xorg_testset_save_CFLAGS" 9816fi 9817 9818if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9819 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9820 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9821 fi 9822 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9824$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9825if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9826 $as_echo_n "(cached) " >&6 9827else 9828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9829/* end confdefs.h. */ 9830int i; 9831_ACEOF 9832if ac_fn_c_try_compile "$LINENO"; then : 9833 xorg_cv_cc_flag_unused_command_line_argument=yes 9834else 9835 xorg_cv_cc_flag_unused_command_line_argument=no 9836fi 9837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9838fi 9839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9840$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9841 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9842 CFLAGS="$xorg_testset_save_CFLAGS" 9843fi 9844 9845found="no" 9846 9847 if test $found = "no" ; then 9848 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9849 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9850 fi 9851 9852 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9854 fi 9855 9856 CFLAGS="$CFLAGS -Waddress" 9857 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5 9859$as_echo_n "checking if $CC supports -Waddress... " >&6; } 9860 cacheid=xorg_cv_cc_flag__Waddress 9861 if eval \${$cacheid+:} false; then : 9862 $as_echo_n "(cached) " >&6 9863else 9864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9865/* end confdefs.h. */ 9866int i; 9867int 9868main () 9869{ 9870 9871 ; 9872 return 0; 9873} 9874_ACEOF 9875if ac_fn_c_try_link "$LINENO"; then : 9876 eval $cacheid=yes 9877else 9878 eval $cacheid=no 9879fi 9880rm -f core conftest.err conftest.$ac_objext \ 9881 conftest$ac_exeext conftest.$ac_ext 9882fi 9883 9884 9885 CFLAGS="$xorg_testset_save_CFLAGS" 9886 9887 eval supported=\$$cacheid 9888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 9889$as_echo "$supported" >&6; } 9890 if test "$supported" = "yes" ; then 9891 BASE_CFLAGS="$BASE_CFLAGS -Waddress" 9892 found="yes" 9893 fi 9894 fi 9895 9896 9897 9898 9899 9900 9901 9902 9903 9904 9905 9906 9907 9908 9909 9910xorg_testset_save_CFLAGS="$CFLAGS" 9911 9912if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 9913 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 9915$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 9916if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 9917 $as_echo_n "(cached) " >&6 9918else 9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9920/* end confdefs.h. */ 9921int i; 9922_ACEOF 9923if ac_fn_c_try_compile "$LINENO"; then : 9924 xorg_cv_cc_flag_unknown_warning_option=yes 9925else 9926 xorg_cv_cc_flag_unknown_warning_option=no 9927fi 9928rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9929fi 9930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 9931$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 9932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 9933 CFLAGS="$xorg_testset_save_CFLAGS" 9934fi 9935 9936if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 9937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9938 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9939 fi 9940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 9942$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 9943if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 9944 $as_echo_n "(cached) " >&6 9945else 9946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9947/* end confdefs.h. */ 9948int i; 9949_ACEOF 9950if ac_fn_c_try_compile "$LINENO"; then : 9951 xorg_cv_cc_flag_unused_command_line_argument=yes 9952else 9953 xorg_cv_cc_flag_unused_command_line_argument=no 9954fi 9955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9956fi 9957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 9958$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 9959 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 9960 CFLAGS="$xorg_testset_save_CFLAGS" 9961fi 9962 9963found="no" 9964 9965 if test $found = "no" ; then 9966 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 9967 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 9968 fi 9969 9970 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 9971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 9972 fi 9973 9974 CFLAGS="$CFLAGS -Wint-to-pointer-cast" 9975 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5 9977$as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; } 9978 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast 9979 if eval \${$cacheid+:} false; then : 9980 $as_echo_n "(cached) " >&6 9981else 9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9983/* end confdefs.h. */ 9984int i; 9985int 9986main () 9987{ 9988 9989 ; 9990 return 0; 9991} 9992_ACEOF 9993if ac_fn_c_try_link "$LINENO"; then : 9994 eval $cacheid=yes 9995else 9996 eval $cacheid=no 9997fi 9998rm -f core conftest.err conftest.$ac_objext \ 9999 conftest$ac_exeext conftest.$ac_ext 10000fi 10001 10002 10003 CFLAGS="$xorg_testset_save_CFLAGS" 10004 10005 eval supported=\$$cacheid 10006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10007$as_echo "$supported" >&6; } 10008 if test "$supported" = "yes" ; then 10009 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast" 10010 found="yes" 10011 fi 10012 fi 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028xorg_testset_save_CFLAGS="$CFLAGS" 10029 10030if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10031 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10033$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10034if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10035 $as_echo_n "(cached) " >&6 10036else 10037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10038/* end confdefs.h. */ 10039int i; 10040_ACEOF 10041if ac_fn_c_try_compile "$LINENO"; then : 10042 xorg_cv_cc_flag_unknown_warning_option=yes 10043else 10044 xorg_cv_cc_flag_unknown_warning_option=no 10045fi 10046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10047fi 10048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10049$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10050 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10051 CFLAGS="$xorg_testset_save_CFLAGS" 10052fi 10053 10054if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10056 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10057 fi 10058 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10060$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10061if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10062 $as_echo_n "(cached) " >&6 10063else 10064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10065/* end confdefs.h. */ 10066int i; 10067_ACEOF 10068if ac_fn_c_try_compile "$LINENO"; then : 10069 xorg_cv_cc_flag_unused_command_line_argument=yes 10070else 10071 xorg_cv_cc_flag_unused_command_line_argument=no 10072fi 10073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10074fi 10075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10076$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10077 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10078 CFLAGS="$xorg_testset_save_CFLAGS" 10079fi 10080 10081found="no" 10082 10083 if test $found = "no" ; then 10084 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10085 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10086 fi 10087 10088 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10089 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10090 fi 10091 10092 CFLAGS="$CFLAGS -Wpointer-to-int-cast" 10093 10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5 10095$as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; } 10096 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast 10097 if eval \${$cacheid+:} false; then : 10098 $as_echo_n "(cached) " >&6 10099else 10100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10101/* end confdefs.h. */ 10102int i; 10103int 10104main () 10105{ 10106 10107 ; 10108 return 0; 10109} 10110_ACEOF 10111if ac_fn_c_try_link "$LINENO"; then : 10112 eval $cacheid=yes 10113else 10114 eval $cacheid=no 10115fi 10116rm -f core conftest.err conftest.$ac_objext \ 10117 conftest$ac_exeext conftest.$ac_ext 10118fi 10119 10120 10121 CFLAGS="$xorg_testset_save_CFLAGS" 10122 10123 eval supported=\$$cacheid 10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10125$as_echo "$supported" >&6; } 10126 if test "$supported" = "yes" ; then 10127 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast" 10128 found="yes" 10129 fi 10130 fi 10131 10132 10133fi 10134 10135 10136 10137 10138 10139 10140 10141 CWARNFLAGS="$BASE_CFLAGS" 10142 if test "x$GCC" = xyes ; then 10143 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing" 10144 fi 10145 10146 10147 10148 10149 10150 10151 10152 10153# Check whether --enable-strict-compilation was given. 10154if test "${enable_strict_compilation+set}" = set; then : 10155 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 10156else 10157 STRICT_COMPILE=no 10158fi 10159 10160 10161 10162 10163 10164 10165STRICT_CFLAGS="" 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179xorg_testset_save_CFLAGS="$CFLAGS" 10180 10181if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10182 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10184$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10185if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10186 $as_echo_n "(cached) " >&6 10187else 10188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10189/* end confdefs.h. */ 10190int i; 10191_ACEOF 10192if ac_fn_c_try_compile "$LINENO"; then : 10193 xorg_cv_cc_flag_unknown_warning_option=yes 10194else 10195 xorg_cv_cc_flag_unknown_warning_option=no 10196fi 10197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10198fi 10199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10200$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10201 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10202 CFLAGS="$xorg_testset_save_CFLAGS" 10203fi 10204 10205if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10207 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10208 fi 10209 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10211$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10212if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10213 $as_echo_n "(cached) " >&6 10214else 10215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10216/* end confdefs.h. */ 10217int i; 10218_ACEOF 10219if ac_fn_c_try_compile "$LINENO"; then : 10220 xorg_cv_cc_flag_unused_command_line_argument=yes 10221else 10222 xorg_cv_cc_flag_unused_command_line_argument=no 10223fi 10224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10225fi 10226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10227$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10228 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10229 CFLAGS="$xorg_testset_save_CFLAGS" 10230fi 10231 10232found="no" 10233 10234 if test $found = "no" ; then 10235 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10236 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10237 fi 10238 10239 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10240 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10241 fi 10242 10243 CFLAGS="$CFLAGS -pedantic" 10244 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5 10246$as_echo_n "checking if $CC supports -pedantic... " >&6; } 10247 cacheid=xorg_cv_cc_flag__pedantic 10248 if eval \${$cacheid+:} false; then : 10249 $as_echo_n "(cached) " >&6 10250else 10251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10252/* end confdefs.h. */ 10253int i; 10254int 10255main () 10256{ 10257 10258 ; 10259 return 0; 10260} 10261_ACEOF 10262if ac_fn_c_try_link "$LINENO"; then : 10263 eval $cacheid=yes 10264else 10265 eval $cacheid=no 10266fi 10267rm -f core conftest.err conftest.$ac_objext \ 10268 conftest$ac_exeext conftest.$ac_ext 10269fi 10270 10271 10272 CFLAGS="$xorg_testset_save_CFLAGS" 10273 10274 eval supported=\$$cacheid 10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10276$as_echo "$supported" >&6; } 10277 if test "$supported" = "yes" ; then 10278 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic" 10279 found="yes" 10280 fi 10281 fi 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297xorg_testset_save_CFLAGS="$CFLAGS" 10298 10299if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10300 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10302$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10303if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10304 $as_echo_n "(cached) " >&6 10305else 10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10307/* end confdefs.h. */ 10308int i; 10309_ACEOF 10310if ac_fn_c_try_compile "$LINENO"; then : 10311 xorg_cv_cc_flag_unknown_warning_option=yes 10312else 10313 xorg_cv_cc_flag_unknown_warning_option=no 10314fi 10315rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10316fi 10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10318$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10319 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10320 CFLAGS="$xorg_testset_save_CFLAGS" 10321fi 10322 10323if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10324 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10325 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10326 fi 10327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10329$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10330if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10331 $as_echo_n "(cached) " >&6 10332else 10333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10334/* end confdefs.h. */ 10335int i; 10336_ACEOF 10337if ac_fn_c_try_compile "$LINENO"; then : 10338 xorg_cv_cc_flag_unused_command_line_argument=yes 10339else 10340 xorg_cv_cc_flag_unused_command_line_argument=no 10341fi 10342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10343fi 10344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10345$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10347 CFLAGS="$xorg_testset_save_CFLAGS" 10348fi 10349 10350found="no" 10351 10352 if test $found = "no" ; then 10353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10354 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10355 fi 10356 10357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10359 fi 10360 10361 CFLAGS="$CFLAGS -Werror" 10362 10363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5 10364$as_echo_n "checking if $CC supports -Werror... " >&6; } 10365 cacheid=xorg_cv_cc_flag__Werror 10366 if eval \${$cacheid+:} false; then : 10367 $as_echo_n "(cached) " >&6 10368else 10369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10370/* end confdefs.h. */ 10371int i; 10372int 10373main () 10374{ 10375 10376 ; 10377 return 0; 10378} 10379_ACEOF 10380if ac_fn_c_try_link "$LINENO"; then : 10381 eval $cacheid=yes 10382else 10383 eval $cacheid=no 10384fi 10385rm -f core conftest.err conftest.$ac_objext \ 10386 conftest$ac_exeext conftest.$ac_ext 10387fi 10388 10389 10390 CFLAGS="$xorg_testset_save_CFLAGS" 10391 10392 eval supported=\$$cacheid 10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10394$as_echo "$supported" >&6; } 10395 if test "$supported" = "yes" ; then 10396 STRICT_CFLAGS="$STRICT_CFLAGS -Werror" 10397 found="yes" 10398 fi 10399 fi 10400 10401 if test $found = "no" ; then 10402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10403 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10404 fi 10405 10406 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10407 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10408 fi 10409 10410 CFLAGS="$CFLAGS -errwarn" 10411 10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5 10413$as_echo_n "checking if $CC supports -errwarn... " >&6; } 10414 cacheid=xorg_cv_cc_flag__errwarn 10415 if eval \${$cacheid+:} false; then : 10416 $as_echo_n "(cached) " >&6 10417else 10418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10419/* end confdefs.h. */ 10420int i; 10421int 10422main () 10423{ 10424 10425 ; 10426 return 0; 10427} 10428_ACEOF 10429if ac_fn_c_try_link "$LINENO"; then : 10430 eval $cacheid=yes 10431else 10432 eval $cacheid=no 10433fi 10434rm -f core conftest.err conftest.$ac_objext \ 10435 conftest$ac_exeext conftest.$ac_ext 10436fi 10437 10438 10439 CFLAGS="$xorg_testset_save_CFLAGS" 10440 10441 eval supported=\$$cacheid 10442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10443$as_echo "$supported" >&6; } 10444 if test "$supported" = "yes" ; then 10445 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn" 10446 found="yes" 10447 fi 10448 fi 10449 10450 10451 10452# Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not 10453# activate it with -Werror, so we add it here explicitly. 10454 10455 10456 10457 10458 10459 10460 10461 10462 10463 10464 10465 10466 10467xorg_testset_save_CFLAGS="$CFLAGS" 10468 10469if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then 10470 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5 10472$as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; } 10473if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then : 10474 $as_echo_n "(cached) " >&6 10475else 10476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10477/* end confdefs.h. */ 10478int i; 10479_ACEOF 10480if ac_fn_c_try_compile "$LINENO"; then : 10481 xorg_cv_cc_flag_unknown_warning_option=yes 10482else 10483 xorg_cv_cc_flag_unknown_warning_option=no 10484fi 10485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10486fi 10487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5 10488$as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; } 10489 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option 10490 CFLAGS="$xorg_testset_save_CFLAGS" 10491fi 10492 10493if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then 10494 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10495 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10496 fi 10497 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5 10499$as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; } 10500if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then : 10501 $as_echo_n "(cached) " >&6 10502else 10503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10504/* end confdefs.h. */ 10505int i; 10506_ACEOF 10507if ac_fn_c_try_compile "$LINENO"; then : 10508 xorg_cv_cc_flag_unused_command_line_argument=yes 10509else 10510 xorg_cv_cc_flag_unused_command_line_argument=no 10511fi 10512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10513fi 10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5 10515$as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; } 10516 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument 10517 CFLAGS="$xorg_testset_save_CFLAGS" 10518fi 10519 10520found="no" 10521 10522 if test $found = "no" ; then 10523 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then 10524 CFLAGS="$CFLAGS -Werror=unknown-warning-option" 10525 fi 10526 10527 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then 10528 CFLAGS="$CFLAGS -Werror=unused-command-line-argument" 10529 fi 10530 10531 CFLAGS="$CFLAGS -Werror=attributes" 10532 10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 10534$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 10535 cacheid=xorg_cv_cc_flag__Werror_attributes 10536 if eval \${$cacheid+:} false; then : 10537 $as_echo_n "(cached) " >&6 10538else 10539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10540/* end confdefs.h. */ 10541int i; 10542int 10543main () 10544{ 10545 10546 ; 10547 return 0; 10548} 10549_ACEOF 10550if ac_fn_c_try_link "$LINENO"; then : 10551 eval $cacheid=yes 10552else 10553 eval $cacheid=no 10554fi 10555rm -f core conftest.err conftest.$ac_objext \ 10556 conftest$ac_exeext conftest.$ac_ext 10557fi 10558 10559 10560 CFLAGS="$xorg_testset_save_CFLAGS" 10561 10562 eval supported=\$$cacheid 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5 10564$as_echo "$supported" >&6; } 10565 if test "$supported" = "yes" ; then 10566 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 10567 found="yes" 10568 fi 10569 fi 10570 10571 10572 10573if test "x$STRICT_COMPILE" = "xyes"; then 10574 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS" 10575 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 10576fi 10577 10578 10579 10580 10581 10582 10583cat >>confdefs.h <<_ACEOF 10584#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 10585_ACEOF 10586 10587 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 10588 if test "x$PVM" = "x"; then 10589 PVM="0" 10590 fi 10591 10592cat >>confdefs.h <<_ACEOF 10593#define PACKAGE_VERSION_MINOR $PVM 10594_ACEOF 10595 10596 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 10597 if test "x$PVP" = "x"; then 10598 PVP="0" 10599 fi 10600 10601cat >>confdefs.h <<_ACEOF 10602#define PACKAGE_VERSION_PATCHLEVEL $PVP 10603_ACEOF 10604 10605 10606 10607CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 10608mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 10609|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 10610echo 'git directory not found: installing possibly empty changelog.' >&2)" 10611 10612 10613 10614 10615macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 10616INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 10617mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 10618|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 10619echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 10620 10621 10622 10623 10624 10625 10626if test x$APP_MAN_SUFFIX = x ; then 10627 APP_MAN_SUFFIX=1 10628fi 10629if test x$APP_MAN_DIR = x ; then 10630 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 10631fi 10632 10633if test x$LIB_MAN_SUFFIX = x ; then 10634 LIB_MAN_SUFFIX=3 10635fi 10636if test x$LIB_MAN_DIR = x ; then 10637 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 10638fi 10639 10640if test x$FILE_MAN_SUFFIX = x ; then 10641 case $host_os in 10642 # Solaris 2.0 - 11 use SysV man page sections 10643 solaris2.?|solaris2.1[01]) FILE_MAN_SUFFIX=4 ;; 10644 *) FILE_MAN_SUFFIX=5 ;; 10645 esac 10646fi 10647if test x$FILE_MAN_DIR = x ; then 10648 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 10649fi 10650 10651if test x$MISC_MAN_SUFFIX = x ; then 10652 case $host_os in 10653 # Solaris 2.0 - 11 use SysV man page sections 10654 solaris2.?|solaris2.1[01]) MISC_MAN_SUFFIX=5 ;; 10655 *) MISC_MAN_SUFFIX=7 ;; 10656 esac 10657fi 10658if test x$MISC_MAN_DIR = x ; then 10659 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 10660fi 10661 10662if test x$DRIVER_MAN_SUFFIX = x ; then 10663 case $host_os in 10664 # Solaris 2.0 - 11 use SysV man page sections 10665 solaris2.?|solaris2.1[01]) DRIVER_MAN_SUFFIX=7 ;; 10666 *) DRIVER_MAN_SUFFIX=4 ;; 10667 esac 10668fi 10669if test x$DRIVER_MAN_DIR = x ; then 10670 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 10671fi 10672 10673if test x$ADMIN_MAN_SUFFIX = x ; then 10674 case $host_os in 10675 # Solaris 2.0 - 11 use SysV man page sections 10676 solaris2.?|solaris2.1[01]) ADMIN_MAN_SUFFIX=1m ;; 10677 *) ADMIN_MAN_SUFFIX=8 ;; 10678 esac 10679fi 10680if test x$ADMIN_MAN_DIR = x ; then 10681 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 10682fi 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698XORG_MAN_PAGE="X Version 11" 10699 10700MAN_SUBSTS="\ 10701 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10702 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 10703 -e 's|__xservername__|Xorg|g' \ 10704 -e 's|__xconfigfile__|xorg.conf|g' \ 10705 -e 's|__projectroot__|\$(prefix)|g' \ 10706 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 10707 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 10708 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 10709 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 10710 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 10711 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 10712 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 10713 10714 10715 10716# Check whether --enable-silent-rules was given. 10717if test "${enable_silent_rules+set}" = set; then : 10718 enableval=$enable_silent_rules; 10719fi 10720 10721case $enable_silent_rules in # ((( 10722 yes) AM_DEFAULT_VERBOSITY=0;; 10723 no) AM_DEFAULT_VERBOSITY=1;; 10724 *) AM_DEFAULT_VERBOSITY=0;; 10725esac 10726am_make=${MAKE-make} 10727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 10728$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 10729if ${am_cv_make_support_nested_variables+:} false; then : 10730 $as_echo_n "(cached) " >&6 10731else 10732 if $as_echo 'TRUE=$(BAR$(V)) 10733BAR0=false 10734BAR1=true 10735V=1 10736am__doit: 10737 @$(TRUE) 10738.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 10739 am_cv_make_support_nested_variables=yes 10740else 10741 am_cv_make_support_nested_variables=no 10742fi 10743fi 10744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 10745$as_echo "$am_cv_make_support_nested_variables" >&6; } 10746if test $am_cv_make_support_nested_variables = yes; then 10747 AM_V='$(V)' 10748 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 10749else 10750 AM_V=$AM_DEFAULT_VERBOSITY 10751 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 10752fi 10753AM_BACKSLASH='\' 10754 10755 10756 10757# Use POSIX strnlen or the implementation supplied in this module 10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strnlen" >&5 10759$as_echo_n "checking for working strnlen... " >&6; } 10760if ${ac_cv_func_strnlen_working+:} false; then : 10761 $as_echo_n "(cached) " >&6 10762else 10763 if test "$cross_compiling" = yes; then : 10764 # Guess no on AIX systems, yes otherwise. 10765 case "$host_os" in 10766 aix*) ac_cv_func_strnlen_working=no;; 10767 *) ac_cv_func_strnlen_working=yes;; 10768 esac 10769else 10770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10771/* end confdefs.h. */ 10772$ac_includes_default 10773int 10774main () 10775{ 10776 10777#define S "foobar" 10778#define S_LEN (sizeof S - 1) 10779 10780 /* At least one implementation is buggy: that of AIX 4.3 would 10781 give strnlen (S, 1) == 3. */ 10782 10783 int i; 10784 for (i = 0; i < S_LEN + 1; ++i) 10785 { 10786 int expected = i <= S_LEN ? i : S_LEN; 10787 if (strnlen (S, i) != expected) 10788 return 1; 10789 } 10790 return 0; 10791 10792 ; 10793 return 0; 10794} 10795_ACEOF 10796if ac_fn_c_try_run "$LINENO"; then : 10797 ac_cv_func_strnlen_working=yes 10798else 10799 ac_cv_func_strnlen_working=no 10800fi 10801rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10802 conftest.$ac_objext conftest.beam conftest.$ac_ext 10803fi 10804 10805fi 10806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strnlen_working" >&5 10807$as_echo "$ac_cv_func_strnlen_working" >&6; } 10808test $ac_cv_func_strnlen_working = no && case " $LIBOBJS " in 10809 *" strnlen.$ac_objext "* ) ;; 10810 *) LIBOBJS="$LIBOBJS strnlen.$ac_objext" 10811 ;; 10812esac 10813 10814 10815if test "x$ac_cv_func_strnlen_working" = xyes; then 10816 10817$as_echo "#define HAVE_STRNLEN 1" >>confdefs.h 10818 10819fi 10820 10821# Obtain compiler/linker options for xlsclients dependencies 10822 10823pkg_failed=no 10824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLSCLIENTS" >&5 10825$as_echo_n "checking for XLSCLIENTS... " >&6; } 10826 10827if test -n "$XLSCLIENTS_CFLAGS"; then 10828 pkg_cv_XLSCLIENTS_CFLAGS="$XLSCLIENTS_CFLAGS" 10829 elif test -n "$PKG_CONFIG"; then 10830 if test -n "$PKG_CONFIG" && \ 10831 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5 10832 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5 10833 ac_status=$? 10834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10835 test $ac_status = 0; }; then 10836 pkg_cv_XLSCLIENTS_CFLAGS=`$PKG_CONFIG --cflags "xcb >= 1.6" 2>/dev/null` 10837 test "x$?" != "x0" && pkg_failed=yes 10838else 10839 pkg_failed=yes 10840fi 10841 else 10842 pkg_failed=untried 10843fi 10844if test -n "$XLSCLIENTS_LIBS"; then 10845 pkg_cv_XLSCLIENTS_LIBS="$XLSCLIENTS_LIBS" 10846 elif test -n "$PKG_CONFIG"; then 10847 if test -n "$PKG_CONFIG" && \ 10848 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xcb >= 1.6\""; } >&5 10849 ($PKG_CONFIG --exists --print-errors "xcb >= 1.6") 2>&5 10850 ac_status=$? 10851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10852 test $ac_status = 0; }; then 10853 pkg_cv_XLSCLIENTS_LIBS=`$PKG_CONFIG --libs "xcb >= 1.6" 2>/dev/null` 10854 test "x$?" != "x0" && pkg_failed=yes 10855else 10856 pkg_failed=yes 10857fi 10858 else 10859 pkg_failed=untried 10860fi 10861 10862 10863 10864if test $pkg_failed = yes; then 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10866$as_echo "no" >&6; } 10867 10868if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 10869 _pkg_short_errors_supported=yes 10870else 10871 _pkg_short_errors_supported=no 10872fi 10873 if test $_pkg_short_errors_supported = yes; then 10874 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xcb >= 1.6" 2>&1` 10875 else 10876 XLSCLIENTS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xcb >= 1.6" 2>&1` 10877 fi 10878 # Put the nasty error message in config.log where it belongs 10879 echo "$XLSCLIENTS_PKG_ERRORS" >&5 10880 10881 as_fn_error $? "Package requirements (xcb >= 1.6) were not met: 10882 10883$XLSCLIENTS_PKG_ERRORS 10884 10885Consider adjusting the PKG_CONFIG_PATH environment variable if you 10886installed software in a non-standard prefix. 10887 10888Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS 10889and XLSCLIENTS_LIBS to avoid the need to call pkg-config. 10890See the pkg-config man page for more details." "$LINENO" 5 10891elif test $pkg_failed = untried; then 10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10893$as_echo "no" >&6; } 10894 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10895$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10896as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 10897is in your PATH or set the PKG_CONFIG environment variable to the full 10898path to pkg-config. 10899 10900Alternatively, you may set the environment variables XLSCLIENTS_CFLAGS 10901and XLSCLIENTS_LIBS to avoid the need to call pkg-config. 10902See the pkg-config man page for more details. 10903 10904To get pkg-config, see <http://pkg-config.freedesktop.org/>. 10905See \`config.log' for more details" "$LINENO" 5; } 10906else 10907 XLSCLIENTS_CFLAGS=$pkg_cv_XLSCLIENTS_CFLAGS 10908 XLSCLIENTS_LIBS=$pkg_cv_XLSCLIENTS_LIBS 10909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10910$as_echo "yes" >&6; } 10911 10912fi 10913 10914ac_config_files="$ac_config_files Makefile man/Makefile" 10915 10916cat >confcache <<\_ACEOF 10917# This file is a shell script that caches the results of configure 10918# tests run on this system so they can be shared between configure 10919# scripts and configure runs, see configure's option --config-cache. 10920# It is not useful on other systems. If it contains results you don't 10921# want to keep, you may remove or edit it. 10922# 10923# config.status only pays attention to the cache file if you give it 10924# the --recheck option to rerun configure. 10925# 10926# `ac_cv_env_foo' variables (set or unset) will be overridden when 10927# loading this file, other *unset* `ac_cv_foo' will be assigned the 10928# following values. 10929 10930_ACEOF 10931 10932# The following way of writing the cache mishandles newlines in values, 10933# but we know of no workaround that is simple, portable, and efficient. 10934# So, we kill variables containing newlines. 10935# Ultrix sh set writes to stderr and can't be redirected directly, 10936# and sets the high bit in the cache file unless we assign to the vars. 10937( 10938 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 10939 eval ac_val=\$$ac_var 10940 case $ac_val in #( 10941 *${as_nl}*) 10942 case $ac_var in #( 10943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 10944$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 10945 esac 10946 case $ac_var in #( 10947 _ | IFS | as_nl) ;; #( 10948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 10949 *) { eval $ac_var=; unset $ac_var;} ;; 10950 esac ;; 10951 esac 10952 done 10953 10954 (set) 2>&1 | 10955 case $as_nl`(ac_space=' '; set) 2>&1` in #( 10956 *${as_nl}ac_space=\ *) 10957 # `set' does not quote correctly, so add quotes: double-quote 10958 # substitution turns \\\\ into \\, and sed turns \\ into \. 10959 sed -n \ 10960 "s/'/'\\\\''/g; 10961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 10962 ;; #( 10963 *) 10964 # `set' quotes correctly as required by POSIX, so do not add quotes. 10965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 10966 ;; 10967 esac | 10968 sort 10969) | 10970 sed ' 10971 /^ac_cv_env_/b end 10972 t clear 10973 :clear 10974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 10975 t end 10976 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 10977 :end' >>confcache 10978if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 10979 if test -w "$cache_file"; then 10980 if test "x$cache_file" != "x/dev/null"; then 10981 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 10982$as_echo "$as_me: updating cache $cache_file" >&6;} 10983 if test ! -f "$cache_file" || test -h "$cache_file"; then 10984 cat confcache >"$cache_file" 10985 else 10986 case $cache_file in #( 10987 */* | ?:*) 10988 mv -f confcache "$cache_file"$$ && 10989 mv -f "$cache_file"$$ "$cache_file" ;; #( 10990 *) 10991 mv -f confcache "$cache_file" ;; 10992 esac 10993 fi 10994 fi 10995 else 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 10997$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 10998 fi 10999fi 11000rm -f confcache 11001 11002test "x$prefix" = xNONE && prefix=$ac_default_prefix 11003# Let make expand exec_prefix. 11004test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11005 11006DEFS=-DHAVE_CONFIG_H 11007 11008ac_libobjs= 11009ac_ltlibobjs= 11010U= 11011for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11012 # 1. Remove the extension, and $U if already installed. 11013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11014 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11016 # will be set to the directory where LIBOBJS objects are built. 11017 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11018 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11019done 11020LIBOBJS=$ac_libobjs 11021 11022LTLIBOBJS=$ac_ltlibobjs 11023 11024 11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 11026$as_echo_n "checking that generated files are newer than configure... " >&6; } 11027 if test -n "$am_sleep_pid"; then 11028 # Hide warnings about reused PIDs. 11029 wait $am_sleep_pid 2>/dev/null 11030 fi 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 11032$as_echo "done" >&6; } 11033if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 11034 as_fn_error $? "conditional \"AMDEP\" was never defined. 11035Usually this means the macro was only invoked conditionally." "$LINENO" 5 11036fi 11037if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 11038 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 11039Usually this means the macro was only invoked conditionally." "$LINENO" 5 11040fi 11041 if test -n "$EXEEXT"; then 11042 am__EXEEXT_TRUE= 11043 am__EXEEXT_FALSE='#' 11044else 11045 am__EXEEXT_TRUE='#' 11046 am__EXEEXT_FALSE= 11047fi 11048 11049 11050: "${CONFIG_STATUS=./config.status}" 11051ac_write_fail=0 11052ac_clean_files_save=$ac_clean_files 11053ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11054{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11055$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11056as_write_fail=0 11057cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11058#! $SHELL 11059# Generated by $as_me. 11060# Run this file to recreate the current configuration. 11061# Compiler output produced by configure, useful for debugging 11062# configure, is in config.log if it exists. 11063 11064debug=false 11065ac_cs_recheck=false 11066ac_cs_silent=false 11067 11068SHELL=\${CONFIG_SHELL-$SHELL} 11069export SHELL 11070_ASEOF 11071cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11072## -------------------- ## 11073## M4sh Initialization. ## 11074## -------------------- ## 11075 11076# Be more Bourne compatible 11077DUALCASE=1; export DUALCASE # for MKS sh 11078if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11079 emulate sh 11080 NULLCMD=: 11081 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11082 # is contrary to our usage. Disable this feature. 11083 alias -g '${1+"$@"}'='"$@"' 11084 setopt NO_GLOB_SUBST 11085else 11086 case `(set -o) 2>/dev/null` in #( 11087 *posix*) : 11088 set -o posix ;; #( 11089 *) : 11090 ;; 11091esac 11092fi 11093 11094 11095as_nl=' 11096' 11097export as_nl 11098# Printing a long string crashes Solaris 7 /usr/bin/printf. 11099as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11100as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11101as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11102# Prefer a ksh shell builtin over an external printf program on Solaris, 11103# but without wasting forks for bash or zsh. 11104if test -z "$BASH_VERSION$ZSH_VERSION" \ 11105 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11106 as_echo='print -r --' 11107 as_echo_n='print -rn --' 11108elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11109 as_echo='printf %s\n' 11110 as_echo_n='printf %s' 11111else 11112 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11113 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11114 as_echo_n='/usr/ucb/echo -n' 11115 else 11116 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11117 as_echo_n_body='eval 11118 arg=$1; 11119 case $arg in #( 11120 *"$as_nl"*) 11121 expr "X$arg" : "X\\(.*\\)$as_nl"; 11122 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11123 esac; 11124 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11125 ' 11126 export as_echo_n_body 11127 as_echo_n='sh -c $as_echo_n_body as_echo' 11128 fi 11129 export as_echo_body 11130 as_echo='sh -c $as_echo_body as_echo' 11131fi 11132 11133# The user is always right. 11134if test "${PATH_SEPARATOR+set}" != set; then 11135 PATH_SEPARATOR=: 11136 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11137 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11138 PATH_SEPARATOR=';' 11139 } 11140fi 11141 11142 11143# IFS 11144# We need space, tab and new line, in precisely that order. Quoting is 11145# there to prevent editors from complaining about space-tab. 11146# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11147# splitting by setting IFS to empty value.) 11148IFS=" "" $as_nl" 11149 11150# Find who we are. Look in the path if we contain no directory separator. 11151as_myself= 11152case $0 in #(( 11153 *[\\/]* ) as_myself=$0 ;; 11154 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11155for as_dir in $PATH 11156do 11157 IFS=$as_save_IFS 11158 test -z "$as_dir" && as_dir=. 11159 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11160 done 11161IFS=$as_save_IFS 11162 11163 ;; 11164esac 11165# We did not find ourselves, most probably we were run as `sh COMMAND' 11166# in which case we are not to be found in the path. 11167if test "x$as_myself" = x; then 11168 as_myself=$0 11169fi 11170if test ! -f "$as_myself"; then 11171 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11172 exit 1 11173fi 11174 11175# Unset variables that we do not need and which cause bugs (e.g. in 11176# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11177# suppresses any "Segmentation fault" message there. '((' could 11178# trigger a bug in pdksh 5.2.14. 11179for as_var in BASH_ENV ENV MAIL MAILPATH 11180do eval test x\${$as_var+set} = xset \ 11181 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11182done 11183PS1='$ ' 11184PS2='> ' 11185PS4='+ ' 11186 11187# NLS nuisances. 11188LC_ALL=C 11189export LC_ALL 11190LANGUAGE=C 11191export LANGUAGE 11192 11193# CDPATH. 11194(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11195 11196 11197# as_fn_error STATUS ERROR [LINENO LOG_FD] 11198# ---------------------------------------- 11199# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11200# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11201# script with STATUS, using 1 if that was 0. 11202as_fn_error () 11203{ 11204 as_status=$1; test $as_status -eq 0 && as_status=1 11205 if test "$4"; then 11206 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11207 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 11208 fi 11209 $as_echo "$as_me: error: $2" >&2 11210 as_fn_exit $as_status 11211} # as_fn_error 11212 11213 11214# as_fn_set_status STATUS 11215# ----------------------- 11216# Set $? to STATUS, without forking. 11217as_fn_set_status () 11218{ 11219 return $1 11220} # as_fn_set_status 11221 11222# as_fn_exit STATUS 11223# ----------------- 11224# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11225as_fn_exit () 11226{ 11227 set +e 11228 as_fn_set_status $1 11229 exit $1 11230} # as_fn_exit 11231 11232# as_fn_unset VAR 11233# --------------- 11234# Portably unset VAR. 11235as_fn_unset () 11236{ 11237 { eval $1=; unset $1;} 11238} 11239as_unset=as_fn_unset 11240# as_fn_append VAR VALUE 11241# ---------------------- 11242# Append the text in VALUE to the end of the definition contained in VAR. Take 11243# advantage of any shell optimizations that allow amortized linear growth over 11244# repeated appends, instead of the typical quadratic growth present in naive 11245# implementations. 11246if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11247 eval 'as_fn_append () 11248 { 11249 eval $1+=\$2 11250 }' 11251else 11252 as_fn_append () 11253 { 11254 eval $1=\$$1\$2 11255 } 11256fi # as_fn_append 11257 11258# as_fn_arith ARG... 11259# ------------------ 11260# Perform arithmetic evaluation on the ARGs, and store the result in the 11261# global $as_val. Take advantage of shells that can avoid forks. The arguments 11262# must be portable across $(()) and expr. 11263if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11264 eval 'as_fn_arith () 11265 { 11266 as_val=$(( $* )) 11267 }' 11268else 11269 as_fn_arith () 11270 { 11271 as_val=`expr "$@" || test $? -eq 1` 11272 } 11273fi # as_fn_arith 11274 11275 11276if expr a : '\(a\)' >/dev/null 2>&1 && 11277 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11278 as_expr=expr 11279else 11280 as_expr=false 11281fi 11282 11283if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11284 as_basename=basename 11285else 11286 as_basename=false 11287fi 11288 11289if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11290 as_dirname=dirname 11291else 11292 as_dirname=false 11293fi 11294 11295as_me=`$as_basename -- "$0" || 11296$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11297 X"$0" : 'X\(//\)$' \| \ 11298 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11299$as_echo X/"$0" | 11300 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11301 s//\1/ 11302 q 11303 } 11304 /^X\/\(\/\/\)$/{ 11305 s//\1/ 11306 q 11307 } 11308 /^X\/\(\/\).*/{ 11309 s//\1/ 11310 q 11311 } 11312 s/.*/./; q'` 11313 11314# Avoid depending upon Character Ranges. 11315as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11316as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11317as_cr_Letters=$as_cr_letters$as_cr_LETTERS 11318as_cr_digits='0123456789' 11319as_cr_alnum=$as_cr_Letters$as_cr_digits 11320 11321ECHO_C= ECHO_N= ECHO_T= 11322case `echo -n x` in #((((( 11323-n*) 11324 case `echo 'xy\c'` in 11325 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 11326 xy) ECHO_C='\c';; 11327 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 11328 ECHO_T=' ';; 11329 esac;; 11330*) 11331 ECHO_N='-n';; 11332esac 11333 11334rm -f conf$$ conf$$.exe conf$$.file 11335if test -d conf$$.dir; then 11336 rm -f conf$$.dir/conf$$.file 11337else 11338 rm -f conf$$.dir 11339 mkdir conf$$.dir 2>/dev/null 11340fi 11341if (echo >conf$$.file) 2>/dev/null; then 11342 if ln -s conf$$.file conf$$ 2>/dev/null; then 11343 as_ln_s='ln -s' 11344 # ... but there are two gotchas: 11345 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 11346 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 11347 # In both cases, we have to default to `cp -pR'. 11348 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 11349 as_ln_s='cp -pR' 11350 elif ln conf$$.file conf$$ 2>/dev/null; then 11351 as_ln_s=ln 11352 else 11353 as_ln_s='cp -pR' 11354 fi 11355else 11356 as_ln_s='cp -pR' 11357fi 11358rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 11359rmdir conf$$.dir 2>/dev/null 11360 11361 11362# as_fn_mkdir_p 11363# ------------- 11364# Create "$as_dir" as a directory, including parents if necessary. 11365as_fn_mkdir_p () 11366{ 11367 11368 case $as_dir in #( 11369 -*) as_dir=./$as_dir;; 11370 esac 11371 test -d "$as_dir" || eval $as_mkdir_p || { 11372 as_dirs= 11373 while :; do 11374 case $as_dir in #( 11375 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 11376 *) as_qdir=$as_dir;; 11377 esac 11378 as_dirs="'$as_qdir' $as_dirs" 11379 as_dir=`$as_dirname -- "$as_dir" || 11380$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 11381 X"$as_dir" : 'X\(//\)[^/]' \| \ 11382 X"$as_dir" : 'X\(//\)$' \| \ 11383 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 11384$as_echo X"$as_dir" | 11385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 11386 s//\1/ 11387 q 11388 } 11389 /^X\(\/\/\)[^/].*/{ 11390 s//\1/ 11391 q 11392 } 11393 /^X\(\/\/\)$/{ 11394 s//\1/ 11395 q 11396 } 11397 /^X\(\/\).*/{ 11398 s//\1/ 11399 q 11400 } 11401 s/.*/./; q'` 11402 test -d "$as_dir" && break 11403 done 11404 test -z "$as_dirs" || eval "mkdir $as_dirs" 11405 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 11406 11407 11408} # as_fn_mkdir_p 11409if mkdir -p . 2>/dev/null; then 11410 as_mkdir_p='mkdir -p "$as_dir"' 11411else 11412 test -d ./-p && rmdir ./-p 11413 as_mkdir_p=false 11414fi 11415 11416 11417# as_fn_executable_p FILE 11418# ----------------------- 11419# Test if FILE is an executable regular file. 11420as_fn_executable_p () 11421{ 11422 test -f "$1" && test -x "$1" 11423} # as_fn_executable_p 11424as_test_x='test -x' 11425as_executable_p=as_fn_executable_p 11426 11427# Sed expression to map a string onto a valid CPP name. 11428as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 11429 11430# Sed expression to map a string onto a valid variable name. 11431as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 11432 11433 11434exec 6>&1 11435## ----------------------------------- ## 11436## Main body of $CONFIG_STATUS script. ## 11437## ----------------------------------- ## 11438_ASEOF 11439test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 11440 11441cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11442# Save the log message, to keep $0 and so on meaningful, and to 11443# report actual input values of CONFIG_FILES etc. instead of their 11444# values after options handling. 11445ac_log=" 11446This file was extended by xlsclients $as_me 1.1.4, which was 11447generated by GNU Autoconf 2.69. Invocation command line was 11448 11449 CONFIG_FILES = $CONFIG_FILES 11450 CONFIG_HEADERS = $CONFIG_HEADERS 11451 CONFIG_LINKS = $CONFIG_LINKS 11452 CONFIG_COMMANDS = $CONFIG_COMMANDS 11453 $ $0 $@ 11454 11455on `(hostname || uname -n) 2>/dev/null | sed 1q` 11456" 11457 11458_ACEOF 11459 11460case $ac_config_files in *" 11461"*) set x $ac_config_files; shift; ac_config_files=$*;; 11462esac 11463 11464case $ac_config_headers in *" 11465"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 11466esac 11467 11468 11469cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11470# Files that config.status was made for. 11471config_files="$ac_config_files" 11472config_headers="$ac_config_headers" 11473config_commands="$ac_config_commands" 11474 11475_ACEOF 11476 11477cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11478ac_cs_usage="\ 11479\`$as_me' instantiates files and other configuration actions 11480from templates according to the current configuration. Unless the files 11481and actions are specified as TAGs, all are instantiated by default. 11482 11483Usage: $0 [OPTION]... [TAG]... 11484 11485 -h, --help print this help, then exit 11486 -V, --version print version number and configuration settings, then exit 11487 --config print configuration, then exit 11488 -q, --quiet, --silent 11489 do not print progress messages 11490 -d, --debug don't remove temporary files 11491 --recheck update $as_me by reconfiguring in the same conditions 11492 --file=FILE[:TEMPLATE] 11493 instantiate the configuration file FILE 11494 --header=FILE[:TEMPLATE] 11495 instantiate the configuration header FILE 11496 11497Configuration files: 11498$config_files 11499 11500Configuration headers: 11501$config_headers 11502 11503Configuration commands: 11504$config_commands 11505 11506Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 11507 11508_ACEOF 11509cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11510ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 11511ac_cs_version="\\ 11512xlsclients config.status 1.1.4 11513configured by $0, generated by GNU Autoconf 2.69, 11514 with options \\"\$ac_cs_config\\" 11515 11516Copyright (C) 2012 Free Software Foundation, Inc. 11517This config.status script is free software; the Free Software Foundation 11518gives unlimited permission to copy, distribute and modify it." 11519 11520ac_pwd='$ac_pwd' 11521srcdir='$srcdir' 11522INSTALL='$INSTALL' 11523MKDIR_P='$MKDIR_P' 11524AWK='$AWK' 11525test -n "\$AWK" || AWK=awk 11526_ACEOF 11527 11528cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11529# The default lists apply if the user does not specify any file. 11530ac_need_defaults=: 11531while test $# != 0 11532do 11533 case $1 in 11534 --*=?*) 11535 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 11537 ac_shift=: 11538 ;; 11539 --*=) 11540 ac_option=`expr "X$1" : 'X\([^=]*\)='` 11541 ac_optarg= 11542 ac_shift=: 11543 ;; 11544 *) 11545 ac_option=$1 11546 ac_optarg=$2 11547 ac_shift=shift 11548 ;; 11549 esac 11550 11551 case $ac_option in 11552 # Handling of the options. 11553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 11554 ac_cs_recheck=: ;; 11555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 11556 $as_echo "$ac_cs_version"; exit ;; 11557 --config | --confi | --conf | --con | --co | --c ) 11558 $as_echo "$ac_cs_config"; exit ;; 11559 --debug | --debu | --deb | --de | --d | -d ) 11560 debug=: ;; 11561 --file | --fil | --fi | --f ) 11562 $ac_shift 11563 case $ac_optarg in 11564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11565 '') as_fn_error $? "missing file argument" ;; 11566 esac 11567 as_fn_append CONFIG_FILES " '$ac_optarg'" 11568 ac_need_defaults=false;; 11569 --header | --heade | --head | --hea ) 11570 $ac_shift 11571 case $ac_optarg in 11572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 11573 esac 11574 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 11575 ac_need_defaults=false;; 11576 --he | --h) 11577 # Conflict between --help and --header 11578 as_fn_error $? "ambiguous option: \`$1' 11579Try \`$0 --help' for more information.";; 11580 --help | --hel | -h ) 11581 $as_echo "$ac_cs_usage"; exit ;; 11582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 11583 | -silent | --silent | --silen | --sile | --sil | --si | --s) 11584 ac_cs_silent=: ;; 11585 11586 # This is an error. 11587 -*) as_fn_error $? "unrecognized option: \`$1' 11588Try \`$0 --help' for more information." ;; 11589 11590 *) as_fn_append ac_config_targets " $1" 11591 ac_need_defaults=false ;; 11592 11593 esac 11594 shift 11595done 11596 11597ac_configure_extra_args= 11598 11599if $ac_cs_silent; then 11600 exec 6>/dev/null 11601 ac_configure_extra_args="$ac_configure_extra_args --silent" 11602fi 11603 11604_ACEOF 11605cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11606if \$ac_cs_recheck; then 11607 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 11608 shift 11609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 11610 CONFIG_SHELL='$SHELL' 11611 export CONFIG_SHELL 11612 exec "\$@" 11613fi 11614 11615_ACEOF 11616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11617exec 5>>config.log 11618{ 11619 echo 11620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 11621## Running $as_me. ## 11622_ASBOX 11623 $as_echo "$ac_log" 11624} >&5 11625 11626_ACEOF 11627cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11628# 11629# INIT-COMMANDS 11630# 11631AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 11632 11633_ACEOF 11634 11635cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11636 11637# Handling of arguments. 11638for ac_config_target in $ac_config_targets 11639do 11640 case $ac_config_target in 11641 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 11642 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 11643 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 11644 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 11645 11646 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 11647 esac 11648done 11649 11650 11651# If the user did not use the arguments to specify the items to instantiate, 11652# then the envvar interface is used. Set only those that are not. 11653# We use the long form for the default assignment because of an extremely 11654# bizarre bug on SunOS 4.1.3. 11655if $ac_need_defaults; then 11656 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 11657 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 11658 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 11659fi 11660 11661# Have a temporary directory for convenience. Make it in the build tree 11662# simply because there is no reason against having it here, and in addition, 11663# creating and moving files from /tmp can sometimes cause problems. 11664# Hook for its removal unless debugging. 11665# Note that there is a small window in which the directory will not be cleaned: 11666# after its creation but before its name has been assigned to `$tmp'. 11667$debug || 11668{ 11669 tmp= ac_tmp= 11670 trap 'exit_status=$? 11671 : "${ac_tmp:=$tmp}" 11672 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 11673' 0 11674 trap 'as_fn_exit 1' 1 2 13 15 11675} 11676# Create a (secure) tmp directory for tmp files. 11677 11678{ 11679 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 11680 test -d "$tmp" 11681} || 11682{ 11683 tmp=./conf$$-$RANDOM 11684 (umask 077 && mkdir "$tmp") 11685} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 11686ac_tmp=$tmp 11687 11688# Set up the scripts for CONFIG_FILES section. 11689# No need to generate them if there are no CONFIG_FILES. 11690# This happens for instance with `./config.status config.h'. 11691if test -n "$CONFIG_FILES"; then 11692 11693 11694ac_cr=`echo X | tr X '\015'` 11695# On cygwin, bash can eat \r inside `` if the user requested igncr. 11696# But we know of no other shell where ac_cr would be empty at this 11697# point, so we can use a bashism as a fallback. 11698if test "x$ac_cr" = x; then 11699 eval ac_cr=\$\'\\r\' 11700fi 11701ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 11702if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 11703 ac_cs_awk_cr='\\r' 11704else 11705 ac_cs_awk_cr=$ac_cr 11706fi 11707 11708echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 11709_ACEOF 11710 11711 11712{ 11713 echo "cat >conf$$subs.awk <<_ACEOF" && 11714 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 11715 echo "_ACEOF" 11716} >conf$$subs.sh || 11717 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11718ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 11719ac_delim='%!_!# ' 11720for ac_last_try in false false false false false :; do 11721 . ./conf$$subs.sh || 11722 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11723 11724 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 11725 if test $ac_delim_n = $ac_delim_num; then 11726 break 11727 elif $ac_last_try; then 11728 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 11729 else 11730 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11731 fi 11732done 11733rm -f conf$$subs.sh 11734 11735cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11736cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 11737_ACEOF 11738sed -n ' 11739h 11740s/^/S["/; s/!.*/"]=/ 11741p 11742g 11743s/^[^!]*!// 11744:repl 11745t repl 11746s/'"$ac_delim"'$// 11747t delim 11748:nl 11749h 11750s/\(.\{148\}\)..*/\1/ 11751t more1 11752s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 11753p 11754n 11755b repl 11756:more1 11757s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11758p 11759g 11760s/.\{148\}// 11761t nl 11762:delim 11763h 11764s/\(.\{148\}\)..*/\1/ 11765t more2 11766s/["\\]/\\&/g; s/^/"/; s/$/"/ 11767p 11768b 11769:more2 11770s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 11771p 11772g 11773s/.\{148\}// 11774t delim 11775' <conf$$subs.awk | sed ' 11776/^[^""]/{ 11777 N 11778 s/\n// 11779} 11780' >>$CONFIG_STATUS || ac_write_fail=1 11781rm -f conf$$subs.awk 11782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11783_ACAWK 11784cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 11785 for (key in S) S_is_set[key] = 1 11786 FS = "" 11787 11788} 11789{ 11790 line = $ 0 11791 nfields = split(line, field, "@") 11792 substed = 0 11793 len = length(field[1]) 11794 for (i = 2; i < nfields; i++) { 11795 key = field[i] 11796 keylen = length(key) 11797 if (S_is_set[key]) { 11798 value = S[key] 11799 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 11800 len += length(value) + length(field[++i]) 11801 substed = 1 11802 } else 11803 len += 1 + keylen 11804 } 11805 11806 print line 11807} 11808 11809_ACAWK 11810_ACEOF 11811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11812if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 11813 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 11814else 11815 cat 11816fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 11817 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 11818_ACEOF 11819 11820# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 11821# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 11822# trailing colons and then remove the whole line if VPATH becomes empty 11823# (actually we leave an empty line to preserve line numbers). 11824if test "x$srcdir" = x.; then 11825 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 11826h 11827s/// 11828s/^/:/ 11829s/[ ]*$/:/ 11830s/:\$(srcdir):/:/g 11831s/:\${srcdir}:/:/g 11832s/:@srcdir@:/:/g 11833s/^:*// 11834s/:*$// 11835x 11836s/\(=[ ]*\).*/\1/ 11837G 11838s/\n// 11839s/^[^=]*=[ ]*$// 11840}' 11841fi 11842 11843cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11844fi # test -n "$CONFIG_FILES" 11845 11846# Set up the scripts for CONFIG_HEADERS section. 11847# No need to generate them if there are no CONFIG_HEADERS. 11848# This happens for instance with `./config.status Makefile'. 11849if test -n "$CONFIG_HEADERS"; then 11850cat >"$ac_tmp/defines.awk" <<\_ACAWK || 11851BEGIN { 11852_ACEOF 11853 11854# Transform confdefs.h into an awk script `defines.awk', embedded as 11855# here-document in config.status, that substitutes the proper values into 11856# config.h.in to produce config.h. 11857 11858# Create a delimiter string that does not exist in confdefs.h, to ease 11859# handling of long lines. 11860ac_delim='%!_!# ' 11861for ac_last_try in false false :; do 11862 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 11863 if test -z "$ac_tt"; then 11864 break 11865 elif $ac_last_try; then 11866 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 11867 else 11868 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 11869 fi 11870done 11871 11872# For the awk script, D is an array of macro values keyed by name, 11873# likewise P contains macro parameters if any. Preserve backslash 11874# newline sequences. 11875 11876ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 11877sed -n ' 11878s/.\{148\}/&'"$ac_delim"'/g 11879t rset 11880:rset 11881s/^[ ]*#[ ]*define[ ][ ]*/ / 11882t def 11883d 11884:def 11885s/\\$// 11886t bsnl 11887s/["\\]/\\&/g 11888s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11889D["\1"]=" \3"/p 11890s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 11891d 11892:bsnl 11893s/["\\]/\\&/g 11894s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 11895D["\1"]=" \3\\\\\\n"\\/p 11896t cont 11897s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 11898t cont 11899d 11900:cont 11901n 11902s/.\{148\}/&'"$ac_delim"'/g 11903t clear 11904:clear 11905s/\\$// 11906t bsnlc 11907s/["\\]/\\&/g; s/^/"/; s/$/"/p 11908d 11909:bsnlc 11910s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 11911b cont 11912' <confdefs.h | sed ' 11913s/'"$ac_delim"'/"\\\ 11914"/g' >>$CONFIG_STATUS || ac_write_fail=1 11915 11916cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 11917 for (key in D) D_is_set[key] = 1 11918 FS = "" 11919} 11920/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 11921 line = \$ 0 11922 split(line, arg, " ") 11923 if (arg[1] == "#") { 11924 defundef = arg[2] 11925 mac1 = arg[3] 11926 } else { 11927 defundef = substr(arg[1], 2) 11928 mac1 = arg[2] 11929 } 11930 split(mac1, mac2, "(") #) 11931 macro = mac2[1] 11932 prefix = substr(line, 1, index(line, defundef) - 1) 11933 if (D_is_set[macro]) { 11934 # Preserve the white space surrounding the "#". 11935 print prefix "define", macro P[macro] D[macro] 11936 next 11937 } else { 11938 # Replace #undef with comments. This is necessary, for example, 11939 # in the case of _POSIX_SOURCE, which is predefined and required 11940 # on some systems where configure will not decide to define it. 11941 if (defundef == "undef") { 11942 print "/*", prefix defundef, macro, "*/" 11943 next 11944 } 11945 } 11946} 11947{ print } 11948_ACAWK 11949_ACEOF 11950cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 11951 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 11952fi # test -n "$CONFIG_HEADERS" 11953 11954 11955eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 11956shift 11957for ac_tag 11958do 11959 case $ac_tag in 11960 :[FHLC]) ac_mode=$ac_tag; continue;; 11961 esac 11962 case $ac_mode$ac_tag in 11963 :[FHL]*:*);; 11964 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 11965 :[FH]-) ac_tag=-:-;; 11966 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 11967 esac 11968 ac_save_IFS=$IFS 11969 IFS=: 11970 set x $ac_tag 11971 IFS=$ac_save_IFS 11972 shift 11973 ac_file=$1 11974 shift 11975 11976 case $ac_mode in 11977 :L) ac_source=$1;; 11978 :[FH]) 11979 ac_file_inputs= 11980 for ac_f 11981 do 11982 case $ac_f in 11983 -) ac_f="$ac_tmp/stdin";; 11984 *) # Look for the file first in the build tree, then in the source tree 11985 # (if the path is not absolute). The absolute path cannot be DOS-style, 11986 # because $ac_f cannot contain `:'. 11987 test -f "$ac_f" || 11988 case $ac_f in 11989 [\\/$]*) false;; 11990 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 11991 esac || 11992 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 11993 esac 11994 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 11995 as_fn_append ac_file_inputs " '$ac_f'" 11996 done 11997 11998 # Let's still pretend it is `configure' which instantiates (i.e., don't 11999 # use $as_me), people would be surprised to read: 12000 # /* config.h. Generated by config.status. */ 12001 configure_input='Generated from '` 12002 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12003 `' by configure.' 12004 if test x"$ac_file" != x-; then 12005 configure_input="$ac_file. $configure_input" 12006 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12007$as_echo "$as_me: creating $ac_file" >&6;} 12008 fi 12009 # Neutralize special characters interpreted by sed in replacement strings. 12010 case $configure_input in #( 12011 *\&* | *\|* | *\\* ) 12012 ac_sed_conf_input=`$as_echo "$configure_input" | 12013 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12014 *) ac_sed_conf_input=$configure_input;; 12015 esac 12016 12017 case $ac_tag in 12018 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 12019 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 12020 esac 12021 ;; 12022 esac 12023 12024 ac_dir=`$as_dirname -- "$ac_file" || 12025$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12026 X"$ac_file" : 'X\(//\)[^/]' \| \ 12027 X"$ac_file" : 'X\(//\)$' \| \ 12028 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12029$as_echo X"$ac_file" | 12030 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12031 s//\1/ 12032 q 12033 } 12034 /^X\(\/\/\)[^/].*/{ 12035 s//\1/ 12036 q 12037 } 12038 /^X\(\/\/\)$/{ 12039 s//\1/ 12040 q 12041 } 12042 /^X\(\/\).*/{ 12043 s//\1/ 12044 q 12045 } 12046 s/.*/./; q'` 12047 as_dir="$ac_dir"; as_fn_mkdir_p 12048 ac_builddir=. 12049 12050case "$ac_dir" in 12051.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 12052*) 12053 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 12054 # A ".." for each directory in $ac_dir_suffix. 12055 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 12056 case $ac_top_builddir_sub in 12057 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 12058 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 12059 esac ;; 12060esac 12061ac_abs_top_builddir=$ac_pwd 12062ac_abs_builddir=$ac_pwd$ac_dir_suffix 12063# for backward compatibility: 12064ac_top_builddir=$ac_top_build_prefix 12065 12066case $srcdir in 12067 .) # We are building in place. 12068 ac_srcdir=. 12069 ac_top_srcdir=$ac_top_builddir_sub 12070 ac_abs_top_srcdir=$ac_pwd ;; 12071 [\\/]* | ?:[\\/]* ) # Absolute name. 12072 ac_srcdir=$srcdir$ac_dir_suffix; 12073 ac_top_srcdir=$srcdir 12074 ac_abs_top_srcdir=$srcdir ;; 12075 *) # Relative name. 12076 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 12077 ac_top_srcdir=$ac_top_build_prefix$srcdir 12078 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 12079esac 12080ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 12081 12082 12083 case $ac_mode in 12084 :F) 12085 # 12086 # CONFIG_FILE 12087 # 12088 12089 case $INSTALL in 12090 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 12091 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 12092 esac 12093 ac_MKDIR_P=$MKDIR_P 12094 case $MKDIR_P in 12095 [\\/$]* | ?:[\\/]* ) ;; 12096 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 12097 esac 12098_ACEOF 12099 12100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12101# If the template does not know about datarootdir, expand it. 12102# FIXME: This hack should be removed a few years after 2.60. 12103ac_datarootdir_hack=; ac_datarootdir_seen= 12104ac_sed_dataroot=' 12105/datarootdir/ { 12106 p 12107 q 12108} 12109/@datadir@/p 12110/@docdir@/p 12111/@infodir@/p 12112/@localedir@/p 12113/@mandir@/p' 12114case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 12115*datarootdir*) ac_datarootdir_seen=yes;; 12116*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 12118$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 12119_ACEOF 12120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12121 ac_datarootdir_hack=' 12122 s&@datadir@&$datadir&g 12123 s&@docdir@&$docdir&g 12124 s&@infodir@&$infodir&g 12125 s&@localedir@&$localedir&g 12126 s&@mandir@&$mandir&g 12127 s&\\\${datarootdir}&$datarootdir&g' ;; 12128esac 12129_ACEOF 12130 12131# Neutralize VPATH when `$srcdir' = `.'. 12132# Shell code in configure.ac might set extrasub. 12133# FIXME: do we really want to maintain this feature? 12134cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12135ac_sed_extra="$ac_vpsub 12136$extrasub 12137_ACEOF 12138cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12139:t 12140/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 12141s|@configure_input@|$ac_sed_conf_input|;t t 12142s&@top_builddir@&$ac_top_builddir_sub&;t t 12143s&@top_build_prefix@&$ac_top_build_prefix&;t t 12144s&@srcdir@&$ac_srcdir&;t t 12145s&@abs_srcdir@&$ac_abs_srcdir&;t t 12146s&@top_srcdir@&$ac_top_srcdir&;t t 12147s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 12148s&@builddir@&$ac_builddir&;t t 12149s&@abs_builddir@&$ac_abs_builddir&;t t 12150s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 12151s&@INSTALL@&$ac_INSTALL&;t t 12152s&@MKDIR_P@&$ac_MKDIR_P&;t t 12153$ac_datarootdir_hack 12154" 12155eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 12156 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12157 12158test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 12159 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 12160 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 12161 "$ac_tmp/out"`; test -z "$ac_out"; } && 12162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12163which seems to be undefined. Please make sure it is defined" >&5 12164$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 12165which seems to be undefined. Please make sure it is defined" >&2;} 12166 12167 rm -f "$ac_tmp/stdin" 12168 case $ac_file in 12169 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 12170 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 12171 esac \ 12172 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12173 ;; 12174 :H) 12175 # 12176 # CONFIG_HEADER 12177 # 12178 if test x"$ac_file" != x-; then 12179 { 12180 $as_echo "/* $configure_input */" \ 12181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 12182 } >"$ac_tmp/config.h" \ 12183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12184 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 12186$as_echo "$as_me: $ac_file is unchanged" >&6;} 12187 else 12188 rm -f "$ac_file" 12189 mv "$ac_tmp/config.h" "$ac_file" \ 12190 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 12191 fi 12192 else 12193 $as_echo "/* $configure_input */" \ 12194 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 12195 || as_fn_error $? "could not create -" "$LINENO" 5 12196 fi 12197# Compute "$ac_file"'s index in $config_headers. 12198_am_arg="$ac_file" 12199_am_stamp_count=1 12200for _am_header in $config_headers :; do 12201 case $_am_header in 12202 $_am_arg | $_am_arg:* ) 12203 break ;; 12204 * ) 12205 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 12206 esac 12207done 12208echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 12209$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12210 X"$_am_arg" : 'X\(//\)[^/]' \| \ 12211 X"$_am_arg" : 'X\(//\)$' \| \ 12212 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 12213$as_echo X"$_am_arg" | 12214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12215 s//\1/ 12216 q 12217 } 12218 /^X\(\/\/\)[^/].*/{ 12219 s//\1/ 12220 q 12221 } 12222 /^X\(\/\/\)$/{ 12223 s//\1/ 12224 q 12225 } 12226 /^X\(\/\).*/{ 12227 s//\1/ 12228 q 12229 } 12230 s/.*/./; q'`/stamp-h$_am_stamp_count 12231 ;; 12232 12233 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 12234$as_echo "$as_me: executing $ac_file commands" >&6;} 12235 ;; 12236 esac 12237 12238 12239 case $ac_file$ac_mode in 12240 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 12241 # Older Autoconf quotes --file arguments for eval, but not when files 12242 # are listed without --file. Let's play safe and only enable the eval 12243 # if we detect the quoting. 12244 case $CONFIG_FILES in 12245 *\'*) eval set x "$CONFIG_FILES" ;; 12246 *) set x $CONFIG_FILES ;; 12247 esac 12248 shift 12249 for mf 12250 do 12251 # Strip MF so we end up with the name of the file. 12252 mf=`echo "$mf" | sed -e 's/:.*$//'` 12253 # Check whether this is an Automake generated Makefile or not. 12254 # We used to match only the files named 'Makefile.in', but 12255 # some people rename them; so instead we look at the file content. 12256 # Grep'ing the first line is not enough: some people post-process 12257 # each Makefile.in and add a new line on top of each file to say so. 12258 # Grep'ing the whole file is not good either: AIX grep has a line 12259 # limit of 2048, but all sed's we know have understand at least 4000. 12260 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 12261 dirpart=`$as_dirname -- "$mf" || 12262$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12263 X"$mf" : 'X\(//\)[^/]' \| \ 12264 X"$mf" : 'X\(//\)$' \| \ 12265 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 12266$as_echo X"$mf" | 12267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12268 s//\1/ 12269 q 12270 } 12271 /^X\(\/\/\)[^/].*/{ 12272 s//\1/ 12273 q 12274 } 12275 /^X\(\/\/\)$/{ 12276 s//\1/ 12277 q 12278 } 12279 /^X\(\/\).*/{ 12280 s//\1/ 12281 q 12282 } 12283 s/.*/./; q'` 12284 else 12285 continue 12286 fi 12287 # Extract the definition of DEPDIR, am__include, and am__quote 12288 # from the Makefile without running 'make'. 12289 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 12290 test -z "$DEPDIR" && continue 12291 am__include=`sed -n 's/^am__include = //p' < "$mf"` 12292 test -z "$am__include" && continue 12293 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 12294 # Find all dependency output files, they are included files with 12295 # $(DEPDIR) in their names. We invoke sed twice because it is the 12296 # simplest approach to changing $(DEPDIR) to its actual value in the 12297 # expansion. 12298 for file in `sed -n " 12299 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 12300 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 12301 # Make sure the directory exists. 12302 test -f "$dirpart/$file" && continue 12303 fdir=`$as_dirname -- "$file" || 12304$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12305 X"$file" : 'X\(//\)[^/]' \| \ 12306 X"$file" : 'X\(//\)$' \| \ 12307 X"$file" : 'X\(/\)' \| . 2>/dev/null || 12308$as_echo X"$file" | 12309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12310 s//\1/ 12311 q 12312 } 12313 /^X\(\/\/\)[^/].*/{ 12314 s//\1/ 12315 q 12316 } 12317 /^X\(\/\/\)$/{ 12318 s//\1/ 12319 q 12320 } 12321 /^X\(\/\).*/{ 12322 s//\1/ 12323 q 12324 } 12325 s/.*/./; q'` 12326 as_dir=$dirpart/$fdir; as_fn_mkdir_p 12327 # echo "creating $dirpart/$file" 12328 echo '# dummy' > "$dirpart/$file" 12329 done 12330 done 12331} 12332 ;; 12333 12334 esac 12335done # for ac_tag 12336 12337 12338as_fn_exit 0 12339_ACEOF 12340ac_clean_files=$ac_clean_files_save 12341 12342test $ac_write_fail = 0 || 12343 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 12344 12345 12346# configure is writing to config.log, and then calls config.status. 12347# config.status does its own redirection, appending to config.log. 12348# Unfortunately, on DOS this fails, as config.log is still kept open 12349# by configure, so config.status won't be able to write to it; its 12350# output is simply discarded. So we exec the FD to /dev/null, 12351# effectively closing config.log, so it can be properly (re)opened and 12352# appended to by config.status. When coming back to configure, we 12353# need to make the FD available again. 12354if test "$no_create" != yes; then 12355 ac_cs_success=: 12356 ac_config_status_args= 12357 test "$silent" = yes && 12358 ac_config_status_args="$ac_config_status_args --quiet" 12359 exec 5>/dev/null 12360 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 12361 exec 5>>config.log 12362 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 12363 # would make configure fail if this is the last instruction. 12364 $ac_cs_success || as_fn_exit 1 12365fi 12366if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 12368$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 12369fi 12370 12371